/* Additional mobile admin modules; existing desktop surfaces remain unchanged. */
@media(max-width:767px){
/* Keep the older dashboard launcher usable as a dark fallback while the
   mobile overview is initializing; once ready, only the mobile overview remains. */
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-btn{background:#151a16!important;border-color:#303b30!important;color:#f0f5ef!important;box-shadow:none!important}
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-icon,
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-label{color:#f0f5ef!important;-webkit-text-fill-color:#f0f5ef!important}
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-hint{color:#aab5ab!important;-webkit-text-fill-color:#aab5ab!important}
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-metric{color:#f0f5ef!important;-webkit-text-fill-color:#f0f5ef!important}
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-metric.good{color:#b8f43a!important;-webkit-text-fill-color:#b8f43a!important}
body.driveos-admin-mobile #adminDashboardLauncher .admin-launcher-metric.bad{color:#ff8585!important;-webkit-text-fill-color:#ff8585!important}
body.driveos-admin-mobile.dam-modules-ready #page-dashboard #adminDashboardLauncher{display:none!important}
body.driveos-admin-mobile.dam-modules-ready #page-dashboard.active>.page-header,
body.driveos-admin-mobile.dam-modules-ready #page-dashboard.active>#kpis,
body.driveos-admin-mobile.dam-modules-ready #page-dashboard.active>.grid-2,
body.driveos-admin-mobile.dam-modules-ready #page-dashboard.active>.card,
body.driveos-admin-mobile.dam-modules-ready #page-dashboard.active>.kpi-grid,
body.driveos-admin-mobile.dam-modules-ready #page-vehicles.active>.page-header,
body.driveos-admin-mobile.dam-modules-ready #page-vehicles.active>:not(#damFleet),
body.driveos-admin-mobile.dam-modules-ready #page-company.active>.page-header,
body.driveos-admin-mobile.dam-modules-ready #page-company.active>:not(#damMore),
body.driveos-admin-mobile.dam-modules-ready #page-cashflow.active>.page-header,
body.driveos-admin-mobile.dam-modules-ready #page-cashflow.active>:not(#damFinance){display:none!important}
body.driveos-admin-mobile.dam-detail-mode #page-cashflow.active>:not(#damFinance){display:block!important}
body.driveos-admin-mobile.dam-detail-mode #page-cashflow.active>#damFinance{display:none!important}
body.driveos-admin-mobile.dam-detail-mode #page-company.active>:not(#damMore){display:block!important}
body.driveos-admin-mobile.dam-detail-mode #page-company.active>#damMore{display:none!important}
.dam-module-root{padding:8px 0 24px}
.dam-heading h2{font-size:25px;margin:0 0 5px}.dam-heading p{color:#aab5ab;font-size:13px;margin:0 0 20px}
.dam-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}
.dam-metric{background:#151a16;border:1px solid #303b30;border-radius:15px;padding:14px 11px;min-width:0}
.dam-metric small{display:block;font-size:12px;color:#aab5ab;margin-bottom:9px}
.dam-metric strong{font-size:clamp(16px,4.8vw,24px);color:#b8f43a;overflow-wrap:anywhere;display:block}
.dam-metric span{font-size:11px;color:#aab5ab}
.dam-module{margin:24px 0}.dam-module h3{font-size:17px;margin:0 0 12px}
.dam-quick{display:grid;gap:9px}.dam-shortcut{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:52px;width:100%;padding:13px 15px;background:#151a16;color:#f0f5ef;border:1px solid #303b30;border-radius:14px;font-size:14px}
.dam-shortcut span{color:#b8f43a;font-size:23px}
.dam-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dam-home-shortcut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  min-width: 0;
  padding: 9px;
  background: var(--driveos-color-surface);
  border: 1px solid var(--driveos-color-border);
  border-radius: 13px;
  color: var(--driveos-color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dam-home-shortcut:focus-visible { outline: 2px solid var(--driveos-color-accent); }
.dam-home-shortcut svg { width: 21px; height: 21px; color: var(--driveos-color-accent); }
.dam-home-shortcut strong { display: block; font-size: 13px; line-height: 1.2; }
.dam-home-shortcut small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.25; color: var(--driveos-color-muted); }
#damHome .dam-metric:last-child strong { color: var(--driveos-color-negative); }
.dam-vehicle-grid{display:grid;gap:10px}
.dam-vehicle-tile{background:#151a16;color:#f0f5ef;border:1px solid #303b30;border-radius:15px;padding:16px;text-align:left;display:flex;flex-direction:column;gap:6px}
.dam-vehicle-tile strong{font-size:17px}.dam-vehicle-tile small{color:#aab5ab}.dam-vehicle-tile span{color:#b8f43a;font-size:13px}
.dam-fleet-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 8px}
.dam-fleet-metrics .dam-metric{padding:10px 7px}.dam-fleet-metrics .dam-metric strong{font-size:14px}
.dam-note{color:#aab5ab;font-size:12px;line-height:1.5}
}


/* Dark-mode consistency found during admin UI audit. Keep existing layouts,
   but prevent legacy light surfaces from washing out the dark/lime interface. */
html[data-driveos-theme="dark"] #page-trips .dispatch-board-card,
html[data-driveos-theme="dark"] #page-trips .dispatch-lane,
html[data-driveos-theme="dark"] #page-trips .dispatch-lane-head,
html[data-driveos-theme="dark"] #page-trips .dispatch-card {
  background: var(--surface, #151515) !important;
  color: var(--text, #f5f5f5) !important;
  border-color: var(--line, #2b2b2b) !important;
}
html[data-driveos-theme="dark"] #page-trips .dispatch-lane-body {
  background: var(--surface-2, #1d1d1d) !important;
}
html[data-driveos-theme="dark"] #page-trips .dispatch-card-route,
html[data-driveos-theme="dark"] #page-trips .dispatch-lane-head span {
  background: #202820 !important;
  color: #dce8d7 !important;
  border-color: #394739 !important;
}
html[data-driveos-theme="dark"] #page-trips .dispatch-board-card :is(h2,strong,label) {
  color: var(--text, #f5f5f5) !important;
}
html[data-driveos-theme="dark"] #page-trips .dispatch-board-card :is(p,small,.muted,.dispatch-lane-empty,.dispatch-card-client,.dispatch-card-appointments span,.dispatch-card-assignment span) {
  color: var(--muted, #a7a7a7) !important;
}
html[data-driveos-theme="dark"] #page-trips .dispatch-board-card :is(input,select,textarea) {
  background: #101710 !important;
  color: #f2f7ee !important;
  border-color: #40513d !important;
}
html[data-driveos-theme="dark"] #page-vehicles #driveosVehicleFilters {
  background: var(--surface, #151515) !important;
  color: var(--text, #f5f5f5) !important;
  border-color: var(--line, #2b2b2b) !important;
}
html[data-driveos-theme="dark"] #page-vehicles #driveosVehicleFilters :is(label,small,span) {
  color: var(--muted, #a7a7a7) !important;
}
html[data-driveos-theme="dark"] #page-vehicles .entity-card,
html[data-driveos-theme="dark"] #page-vehicles .entity-card .mini-stat {
  background: var(--surface, #151515) !important;
  color: var(--text, #f5f5f5) !important;
  border-color: var(--line, #2b2b2b) !important;
}
html[data-driveos-theme="dark"] #modal :is(.form-info,.form-note,.receipt-box,.ocr-summary-card) {
  background: #182018 !important;
  color: #e5eee1 !important;
  border-color: #394b37 !important;
}
html[data-driveos-theme="dark"] #modal :is(.field input,.field select,.field textarea) {
  background: #101710 !important;
  color: #f2f7ee !important;
  border-color: #40513d !important;
  -webkit-text-fill-color: #f2f7ee !important;
}
html[data-driveos-theme="dark"] #modal .btn.primary,
html[data-driveos-theme="dark"] #page-trips .dispatch-board-card .btn.primary,
html[data-driveos-theme="dark"] #page-vehicles .btn.primary {
  background: #b8f43a !important;
  border-color: #b8f43a !important;
  color: #10180d !important;
}


/* Accounts surfaces observed in dark mode retain their light-mode backgrounds. */
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-toolbar {
  background: var(--surface, #151515) !important;
  color: var(--text, #f5f5f5) !important;
  border-color: var(--line, #2b2b2b) !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-toolbar :is(input,select) {
  background: #101710 !important;
  color: #f2f7ee !important;
  border-color: #40513d !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-kpi,
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-detail-stat,
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-settle-summary {
  background: var(--surface-2, #1d1d1d) !important;
  color: var(--text, #f5f5f5) !important;
  border-color: var(--line, #2b2b2b) !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-kpi :is(span,small) {
  color: var(--muted, #a7a7a7) !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-kpi strong,
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-detail-stat strong {
  color: var(--text, #f5f5f5) !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-kpi.attention {
  background: #2a1718 !important;
  border-color: #71333a !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-detail-stat span {
  color: var(--muted, #a7a7a7) !important;
}
html[data-driveos-theme="dark"] #modal .driveos-accounts-detail-stat,
html[data-driveos-theme="dark"] #modal .driveos-accounts-settle-summary {
  background: #182018 !important;
  color: #e5eee1 !important;
  border-color: #394b37 !important;
}
html[data-driveos-theme="dark"] #modal .driveos-accounts-detail-stat :is(span,strong) {
  color: #e5eee1 !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-table-wrap {
  background: var(--surface, #151515) !important;
  border-color: var(--line, #2b2b2b) !important;
}
html[data-driveos-theme="dark"] #page-accounts .driveos-accounts-pro-table :is(th,td) {
  border-color: var(--line, #2b2b2b) !important;
}

.dam-review-shortcut{
  width:100%;min-height:78px;display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:14px 16px;background:var(--driveos-color-surface-raised);
  border:1px solid var(--driveos-color-border-strong);border-radius:15px;
  color:var(--driveos-color-text);font:inherit;text-align:left;cursor:pointer
}
.dam-review-shortcut:focus-visible{outline:2px solid var(--driveos-color-focus);outline-offset:2px}
.dam-review-shortcut strong{display:block;font-size:15px;font-weight:850}
.dam-review-shortcut small{display:block;margin-top:5px;color:var(--driveos-color-muted);font-size:12px;line-height:1.3}
.dam-review-shortcut b{flex:0 0 auto;color:var(--driveos-color-accent);font-size:22px;font-weight:900}
.dam-review-shortcut:active{transform:scale(.99)}
