/* ANZ Tech GPS vehicle panel (left column of map.aspx) */
.anz-host { position: relative; display: flex; flex-direction: column; background: #FFFFFF; height: 100% !important; box-sizing: border-box; }
.anz-host > #myNavigate, .anz-host > #divDeviceSearch, .anz-host > #divAddGroup, .anz-host > #divInputGroup, .anz-host > div:not(#anz-panel) { display: none !important; }
#anz-panel { display: flex; flex-direction: column; height: calc(100% - 26px); min-height: 0; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #2B2F33; font-size: 13px; }
.anz-p-top { padding: 10px 10px 6px; border-bottom: 1px solid #ECEDEF; background: #FFFFFF; }
.anz-p-search { position: relative; }
.anz-p-search input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 30px 0 32px; border: 1px solid #D9DCE0; border-radius: 10px; font: 14px "Segoe UI", Roboto, Arial, sans-serif; outline: none; background: #F7F8F9; }
.anz-p-search input:focus { border-color: #DC5329; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(220,83,41,.12); }
.anz-p-sicon { position: absolute; left: 11px; top: 10px; width: 12px; height: 12px; border: 2px solid #8A8F96; border-radius: 50%; box-sizing: border-box; }
.anz-p-sicon::after { content: ""; position: absolute; left: 9px; top: 9px; width: 6px; height: 2px; background: #8A8F96; transform: rotate(45deg); transform-origin: 0 0; }
.anz-p-clear { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; background: transparent; color: #6B7178; font-size: 18px; cursor: pointer; border-radius: 50%; }
.anz-p-clear:hover { background: #ECEDEF; }
.anz-p-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.anz-pill { border: 1px solid #E3E5E8; background: #FFFFFF; border-radius: 999px; padding: 4px 9px; font: 12px/1.2 "Segoe UI", Roboto, Arial, sans-serif; color: #4B5159; cursor: pointer; }
.anz-pill b { font-weight: 600; color: #2B2F33; }
.anz-pill.on { border-color: #DC5329; background: #FDF0EC; color: #B8431F; }
.anz-pill.on b { color: #B8431F; }
.anz-p-list { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 0 8px; }
.anz-group { border-bottom: 1px solid #F0F1F3; }
.anz-ghead { display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px; cursor: pointer; user-select: none; }
.anz-gtoggle { border: 0; background: transparent; color: #6B7178; font-size: 13px; width: 18px; padding: 0; cursor: pointer; }
.anz-gname { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6B7178; }
.anz-gcount { font-size: 11px; color: #8A8F96; background: #F0F1F3; border-radius: 999px; padding: 1px 7px; }
.anz-gtools { margin-left: auto; display: none; gap: 8px; }
.anz-ghead:hover .anz-gtools { display: flex; }
.anz-p-link { border: 0; background: transparent; color: #B8431F; font: 12px "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.anz-p-link:hover { background: #FDF0EC; }
.anz-row { margin: 0 6px 4px; border-radius: 10px; border: 1px solid transparent; }
.anz-row:hover { background: #F7F8F9; }
.anz-row.sel { background: #FFFFFF; border-color: #F2C4B5; box-shadow: 0 2px 10px rgba(220,83,41,.10); }
.anz-row-main { display: flex; align-items: center; gap: 9px; padding: 8px 8px 8px 10px; cursor: pointer; }
.anz-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #B7BCC2; box-shadow: 0 0 0 3px rgba(183,188,194,.25); }
.anz-moving .anz-dot { background: #1E9E52; box-shadow: 0 0 0 3px rgba(30,158,82,.2); }
.anz-idle .anz-dot { background: #E8A317; box-shadow: 0 0 0 3px rgba(232,163,23,.22); }
.anz-parked .anz-dot { background: #3B7DD8; box-shadow: 0 0 0 3px rgba(59,125,216,.2); }
.anz-row-text { flex: 1; min-width: 0; }
.anz-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anz-plate { font-weight: 500; color: #6B7178; font-size: 12px; margin-left: 4px; }
.anz-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #6B7178; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.anz-moving .anz-status { color: #1E9E52; }
.anz-idle .anz-status { color: #B97A08; }
.anz-parked .anz-status { color: #2F67B8; }
.anz-acc { font-size: 11px; padding: 0 6px; border-radius: 999px; background: #F0F1F3; color: #6B7178; }
.anz-acc-on { background: #E6F6EC; color: #1E7A41; }
.anz-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.anz-ago { font-size: 11px; color: #8A8F96; white-space: nowrap; }
.anz-edit { border: 0; background: transparent; color: #8A8F96; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px; visibility: hidden; }
.anz-row:hover .anz-edit, .anz-row.sel .anz-edit { visibility: visible; }
.anz-edit:hover { color: #DC5329; background: #FDF0EC; }
.anz-actions { padding: 2px 10px 10px; border-top: 1px dashed #EEE; margin: 0 6px; }
.anz-quick { display: flex; gap: 6px; margin: 8px 0 6px; }
.anz-btn { flex: 1; border: 1px solid #D9DCE0; background: #FFFFFF; border-radius: 8px; padding: 7px 6px; font: 600 12px "Segoe UI", Roboto, Arial, sans-serif; color: #2B2F33; cursor: pointer; white-space: nowrap; }
.anz-btn:hover { border-color: #C9CDD2; background: #F7F8F9; }
.anz-btn-primary { background: #DC5329; border-color: #DC5329; color: #FFFFFF; }
.anz-btn-primary:hover { background: #C4481F; }
.anz-sect { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8A8F96; margin: 8px 0 4px; }
.anz-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.anz-ctl-immobilise { border-color: #E57373; color: #B71C1C; }
.anz-ctl-immobilise:hover { background: #FDECEA; }
.anz-ctl-restore { border-color: #81C784; color: #1B5E20; }
.anz-ctl-restore:hover { background: #E8F5E9; }
.anz-settings-toggle { display: block; margin-top: 8px; padding-left: 0; }
.anz-settings { display: flex; flex-direction: column; margin-top: 2px; }
.anz-set { text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; font: 13px "Segoe UI", Roboto, Arial, sans-serif; color: #2B2F33; cursor: pointer; }
.anz-set:hover { background: #F7F8F9; color: #DC5329; }
.anz-move { display: flex; flex-direction: column; margin-left: 14px; border-left: 2px solid #F0F1F3; }
.anz-sub { font-size: 12px; padding: 5px 10px; }
.anz-note { font-size: 12px; color: #6B7178; padding: 8px 0 0; }
.anz-empty a { color: #B8431F; }
.anz-empty { padding: 24px 14px; color: #8A8F96; text-align: center; font-size: 13px; }
.anz-p-foot { display: flex; justify-content: space-between; padding: 6px 8px; border-top: 1px solid #ECEDEF; background: #FFFFFF; }
.anz-p-addgroup[hidden] { display: none !important; }
.anz-p-addgroup { display: flex; gap: 6px; padding: 6px 8px 10px; background: #FFFFFF; }
.anz-p-addgroup input { flex: 1; min-width: 0; height: 32px; border: 1px solid #D9DCE0; border-radius: 8px; padding: 0 10px; font: 13px "Segoe UI", Roboto, Arial, sans-serif; outline: none; }
.anz-p-addgroup input:focus { border-color: #DC5329; }
.anz-p-addgroup .anz-btn { flex: none; padding: 6px 10px; }
#divLeft { background: #FFFFFF !important; }
.anz-pcut { background: #FDECEA; color: #B71C1C; }

/* Phone layout (map.aspx): map fills the screen, vehicle list is a bottom sheet. LKGPS sizes these with inline styles, hence !important. */
.anz-sheet-handle { display: none; }
@media (max-width: 640px) {
  #divLeft { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: 100% !important; height: 88px !important; z-index: 5000; background: #FFFFFF; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 18px rgba(16,24,40,.14); overflow: hidden; transition: height .2s ease; }
  #divLeft.anz-sheet-open { height: 72% !important; }
  #divLeft.anz-sheet-half { height: 52% !important; }
  #divMap { margin-left: 0 !important; left: 0 !important; width: 100% !important; }
  #ifmMap { width: 100% !important; }
  #divMenuLeftImg, #divDevicesList, #divUserTreeMenu { display: none !important; }
  .anz-host { height: 100% !important; }
  #anz-panel { height: 100%; }
  .anz-sheet-handle { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; border: 0; background: transparent; padding: 8px 0 2px; cursor: pointer; }
  .anz-sheet-bar { width: 38px; height: 4px; border-radius: 2px; background: #C9CDD2; }
  .anz-sheet-txt { font: 600 12px "Segoe UI", Roboto, Arial, sans-serif; color: #6B7178; }
  .anz-p-top { padding-top: 4px; }
  .anz-p-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .anz-pill { flex: none; }
  .anz-gtools, .anz-edit { display: flex; visibility: visible; }
  .anz-row-main { padding: 10px 8px 10px 10px; }
}

/* "More" menu from the map pop-up */
.anz-more-pop { position: fixed; z-index: 100001; width: 280px; max-height: calc(100vh - 16px); overflow: auto; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.22); right: 16px; top: 80px; }
.anz-more-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #EEF0F2; font-size: 14px; }
.anz-more-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anz-more-x { border: 0; background: #F3F4F6; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; color: #374151; flex: none; }
.anz-more-pop .anz-row { border: 0 !important; margin: 0 !important; box-shadow: none !important; background: #fff !important; padding: 4px 10px 10px !important; }
@media (max-width: 640px) { .anz-more-pop { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto; max-height: 75vh; border-radius: 16px 16px 0 0; } }
/* Sub-account picker (replaces LKGPS's floating "Users list" box) */
.anz-p-acct { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: #6B7077; }
.anz-p-acct[hidden] { display: none; }
.anz-p-acct select { flex: 1; min-width: 0; height: 34px; border: 1px solid #D5D8DC; border-radius: 8px; padding: 0 8px; font-size: 14px; color: #1F2226; background: #fff; }
.anz-p-acct select:focus { outline: none; border-color: #DC5329; box-shadow: 0 0 0 3px rgba(220,83,41,.15); }
html.anz-has-acct #divUserTree, html.anz-has-acct #divUserTreeMenu { display: none !important; }
