/* ANZ Tech GPS light theme (white + ANZ orange), injected by the anztechgps-web relay */
body, td, th, input, select, textarea, button { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; }
.top, .top_bg, .site_bga, .site_bgb, .site_links { background-color: #FFFFFF !important; background-image: none !important; }
.top { border-bottom: 3px solid #DC5329 !important; box-sizing: border-box; }
.top, .top *, .site_links, .site_links * { color: #2B2F33 !important; }
.top a:hover, .site_links a:hover { color: #DC5329 !important; }
#imgLogo { content: url("/LoginPage/anztechgps/images/logo_03.jpg"); height: 44px !important; width: auto !important; border-radius: 6px; margin-top: 3px; }
input[type=button], input[type=submit], button { border-radius: 6px; }
input[type=text], input[type=password], select { border-radius: 4px; }
::selection { background: #F6C9BB; }
#aServer, #liDevice, #liMoney, #liFxtj { display: none !important; } /* My Service, Device, Recharge, Analysis */

/* Phone: let the LKGPS shell shrink to the viewport (desktop markup assumes >= 1000px). */
@media (max-width: 640px) {
  html, body, form, #header, #main, .main, .content { min-width: 0 !important; width: 100% !important; overflow-x: hidden; }
  iframe#pageShowFrame_Map, iframe#pageShowFrame_Report { width: 100% !important; min-width: 0 !important; }
}

/* LKGPS leftover: broken 'Refresh after  seconds!' countdown in the inner map frame */
#disSecond { display: none !important; }

/* Geo-fence page (and other LKGPS map pages) in ANZ colours */
html.anz-p-geofences body { background: #fff; color: #2B2F33; }
html.anz-p-geofences #divLeft { background: #fff !important; border-right: 1px solid #E5E7EB !important; box-sizing: border-box; padding: 10px !important; }
html.anz-p-geofences #divLeft table { border-collapse: collapse !important; width: 100%; font-size: 13px; }
html.anz-p-geofences #divLeft td, html.anz-p-geofences #divLeft th { border: 0 !important; border-bottom: 1px solid #EEF0F2 !important; padding: 7px 6px !important; }
html.anz-p-geofences #divLeft tr:first-child td { background: #F7F7F8 !important; color: #6B7280 !important; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
html.anz-p-geofences #divLeft a { color: #DC5329 !important; text-decoration: none !important; font-weight: 600; }
html.anz-p-geofences #divLeft a:hover { text-decoration: underline !important; }
#divAddGeofence, #divSearchLatlng, .gm_dialog { border: 1px solid #E5E7EB !important; border-radius: 12px !important; box-shadow: 0 12px 32px rgba(0,0,0,.18) !important; background: #fff !important; }
#divAddGeofence, #divSearchLatlng { height: auto !important; padding-bottom: 10px !important; }
#divAddGeofenceTitle, #divSearchLatlng #div2, .gm_dialog_head { border-radius: 11px 11px 0 0 !important; }
#divAddGeofenceTitle, #divSearchLatlng #div2, .gm_dialog_head { background: #DC5329 !important; color: #fff !important; border: 0 !important; }
#divAddGeofenceTitle *, #divSearchLatlng #div2 * { color: #fff !important; font-weight: 600; }
#divAddGeofence td, #divSearchLatlng td { padding: 5px 8px !important; font-size: 13px; color: #2B2F33; }
#divAddGeofence input[type=text], #divAddGeofence textarea, #divSearchLatlng input[type=text] { border: 1px solid #D1D5DB !important; border-radius: 6px !important; padding: 6px 8px !important; font-size: 13px; outline: none; }
#divAddGeofence input[type=text]:focus, #divAddGeofence textarea:focus { border-color: #DC5329 !important; box-shadow: 0 0 0 3px rgba(220,83,41,.15); }
#btnSave, #btnSearchLatlng { background: #DC5329 !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; padding: 7px 16px !important; font-weight: 600; cursor: pointer; background-image: none !important; }
#btnCancel, #btnCancelLatlng { background: #fff !important; color: #2B2F33 !important; border: 1px solid #D1D5DB !important; border-radius: 8px !important; padding: 7px 16px !important; cursor: pointer; background-image: none !important; }
#divAMAP2 { border: 0 !important; border-radius: 8px !important; box-shadow: 0 2px 8px rgba(0,0,0,.2) !important; padding: 2px 4px; }
#divAMAP2 a { color: #2B2F33 !important; text-decoration: none !important; font-size: 12px; padding: 2px 6px; }
/* Touch: long-press opens LKGPS's right-click menus (theme.js) - stop iOS showing its own selection/preview callout instead */
html.anz-touch body,html.anz-touch a,html.anz-touch li,html.anz-touch td,html.anz-touch span,html.anz-touch div{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
html.anz-touch input,html.anz-touch textarea,html.anz-touch [contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* Distributor Business page: the ID-number search box was absolutely placed and covered the buttons on narrow screens (phones) */
.sub_bar.links { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 18px; height: auto !important; min-height: 32px; }
.sub_bar.links > .search { position: static !important; margin-left: auto; }
#btnToExcel { width: auto !important; padding: 0 12px !important; border-radius: 4px; }

/* Phone (Monitor now uses the real phone width): keep everything inside the screen */
@media (max-width: 640px) {
  html.anz-p-monitor, html.anz-p-monitor body { height: 100%; overflow: hidden !important; }
  html.anz-p-monitor #divExceptionMessageDiv { left: 0 !important; right: 0 !important; width: auto !important; max-width: 100vw; top: 52px !important; bottom: auto !important; } /* alarm bar at the top so it doesn't cover the vehicle sheet */
  html.anz-p-iframemap #divMarkerAddress { font-size: 11px !important; line-height: 1.3; max-width: 62vw; max-height: 30px; overflow: hidden; }
  html.anz-p-iframemap .amap-marker-content > div[style*="background-color"] { max-width: 230px !important; white-space: normal !important; font-size: 11px !important; }
}
