/* Fleet 1088 — readable light mode, stable navigation and fleet tables */

/* Move collapse / expand control farther left into the rail. */
.fleet-side-toggle{right:30px!important;top:14px!important}
body.fleet-side-collapsed .fleet-side-toggle{right:34px!important}

/* Full LIGHT mode means the entire shell is light, not only the content canvas. */
html[data-theme="light"] body,
html[data-theme="light"] .layout,
html[data-theme="light"] .main,
html[data-theme="light"] .content,
html[data-theme="light"] .headline,
html[data-theme="light"] .top,
html[data-theme="light"] .side{
  background:#fff!important;
  color:#111820!important;
}
html[data-theme="light"] .top{border-bottom:1px solid #dce5eb!important}
html[data-theme="light"] .side{border-right:1px solid #dce5eb!important}
html[data-theme="light"] .side .nav-section,
html[data-theme="light"] .fleet-top-platform{color:#52606b!important}
html[data-theme="light"] .side .nav button,
html[data-theme="light"] .fleet-nav-group-head,
html[data-theme="light"] .fleet-side-signout{
  color:#263642!important;
}
html[data-theme="light"] .side .nav button .ico svg,
html[data-theme="light"] .fleet-nav-group-head .ico svg,
html[data-theme="light"] .fleet-side-signout .ico svg{stroke:#354955!important}
html[data-theme="light"] .fleet-nav-group-head{background:#f7fafc!important;border-color:#e2e9ee!important}
html[data-theme="light"] .fleet-nav-group-head:hover,
html[data-theme="light"] .fleet-nav-sub button:hover:not(.active),
html[data-theme="light"] .fleet-nav-sub button:focus-visible:not(.active){color:#fff!important}
html[data-theme="light"] .fleet-side-signout{background:#fff!important;border-color:#d1dce4!important}
html[data-theme="light"] .top .search input,
html[data-theme="light"] .top .head-tool,
html[data-theme="light"] .top .pill,
html[data-theme="light"] .account-wrap{background:#fff!important;color:#17232c!important;border-color:#d1dce4!important}
html[data-theme="light"] .top .pill.online{background:#e9f8ef!important;color:#16723c!important;border-color:#b9e6c9!important}
html[data-theme="light"] .headline h1,
html[data-theme="light"] .headline h2,
html[data-theme="light"] .headline h3{color:#111820!important}
html[data-theme="light"] .headline p{color:#657581!important}

/* Keep the top Air Dispatch brand visible in both themes. */
.fleet-top-brand-wrap{display:flex!important;align-items:center!important;gap:14px!important;min-width:390px!important;flex:0 0 auto!important}
.fleet-top-brand-wrap .adi-top-brand{display:block!important;width:190px!important;height:34px!important;overflow:visible!important}
.fleet-top-brand-wrap .adi-top-brand svg{display:block!important;width:100%!important;height:100%!important}
.fleet-top-platform{font-size:11px!important;font-weight:800!important;letter-spacing:.12em!important;white-space:nowrap!important}
html[data-theme="dark"] .fleet-top-platform{color:#fff!important}

/* Vehicle table: never allow selected/hovered rows to become white-on-white. */
.asset-table th{font-weight:800!important;letter-spacing:.07em!important}
html[data-theme="light"] .asset-table thead th{background:#f3f6f8!important;color:#4e6070!important;border-bottom:1px solid #d8e1e7!important}
html[data-theme="light"] .asset-table tbody tr,
html[data-theme="light"] .asset-table tbody td,
html[data-theme="light"] .asset-table tbody td b,
html[data-theme="light"] .asset-table tbody td small{color:#17232c!important}
html[data-theme="light"] .asset-table tbody tr:nth-child(even){background:#f8fafb!important}
html[data-theme="light"] .asset-table tbody tr:hover,
html[data-theme="light"] .asset-table tbody tr:focus-within,
html[data-theme="light"] .asset-table tbody tr.selected,
html[data-theme="light"] .asset-table tbody tr[aria-selected="true"]{background:#e9f2f8!important}
html[data-theme="light"] .asset-table tbody tr:hover td,
html[data-theme="light"] .asset-table tbody tr:focus-within td,
html[data-theme="light"] .asset-table tbody tr.selected td,
html[data-theme="light"] .asset-table tbody tr[aria-selected="true"] td{color:#0d1b25!important}
html[data-theme="dark"] .asset-table thead th{background:#111d27!important;color:#aebec9!important;border-bottom-color:#31434f!important}
html[data-theme="dark"] .asset-table tbody tr{background:#16232d!important}
html[data-theme="dark"] .asset-table tbody tr:nth-child(even){background:#13202a!important}
html[data-theme="dark"] .asset-table tbody td,
html[data-theme="dark"] .asset-table tbody td b{color:#f5f8fa!important}
html[data-theme="dark"] .asset-table tbody td small{color:#9eb0bc!important}
html[data-theme="dark"] .asset-table tbody tr:hover,
html[data-theme="dark"] .asset-table tbody tr:focus-within{background:#20313d!important}

/* GLOBAL DARK CONTRAST: no white cards/rows hiding text anywhere in Fleet. */
html[data-theme="dark"] body,
html[data-theme="dark"] .layout,
html[data-theme="dark"] .main,
html[data-theme="dark"] .content,
html[data-theme="dark"] .headline,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .preferences-grid,
html[data-theme="dark"] .settings-pane,
html[data-theme="dark"] .fleet-nav-module-card{
  background:#0d1822!important;
  color:#f3f7fa!important;
  border-color:#30414e!important;
}
html[data-theme="dark"] table,
html[data-theme="dark"] tbody,
html[data-theme="dark"] tr,
html[data-theme="dark"] td{
  background:#13212c!important;
  color:#eef4f7!important;
  border-color:#30414e!important;
}
html[data-theme="dark"] tbody tr:nth-child(even){background:#101c26!important}
html[data-theme="dark"] tbody tr:hover,
html[data-theme="dark"] tbody tr:focus-within,
html[data-theme="dark"] tbody tr.selected,
html[data-theme="dark"] tbody tr[aria-selected="true"]{background:#1d3342!important}
html[data-theme="dark"] tbody tr:hover td,
html[data-theme="dark"] tbody tr:focus-within td,
html[data-theme="dark"] tbody tr.selected td,
html[data-theme="dark"] tbody tr[aria-selected="true"] td{background:transparent!important;color:#fff!important}
html[data-theme="dark"] th,
html[data-theme="dark"] thead th{background:#0f1c26!important;color:#b9c7d1!important;border-color:#30414e!important}
html[data-theme="dark"] td b,
html[data-theme="dark"] td strong,
html[data-theme="dark"] .panel b,
html[data-theme="dark"] .panel strong,
html[data-theme="dark"] .card b,
html[data-theme="dark"] .card strong{color:#fff!important}
html[data-theme="dark"] td small,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .small.muted{color:#a7b7c2!important}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:#101c26!important;
  color:#f3f7fa!important;
  border-color:#3a4d5b!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8093a1!important}
html[data-theme="dark"] .modal,
html[data-theme="dark"] .dialog-backdrop{color:#f3f7fa!important}

/* Shared roster sync status in embedded module toolbar. */
.fleet-roster-sync-status{font-size:10px;color:#788a96;margin-left:8px;white-space:nowrap}
html[data-theme="dark"] .fleet-roster-sync-status{color:#9db0bd}

/* Compact category view after navigation: maintain the clean closed stack the user chose. */
.side .fleet-nav-group:not(.open) .fleet-nav-sub{max-height:0!important;overflow:hidden!important}

/* Unified Fleet roster sync: accessible review when a legacy record needs linking. */
.fleet-embedded-toolbar .fleet-roster-sync-status{
  font-size:11px;line-height:1.35;color:var(--muted,#587083);max-width:460px;
}
.fleet-embedded-toolbar .fleet-time-roster-review{
  max-width:min(480px,100%);border:1px solid var(--border,#ccd6dd);
  border-radius:8px;padding:7px 10px;line-height:1.4;
  background:var(--panel,#fff);color:var(--text,#192a36);font-size:11px;
}
.fleet-embedded-toolbar .fleet-time-roster-review summary{
  font-weight:750;cursor:pointer;color:var(--text,#192a36);
}
.fleet-embedded-toolbar .fleet-time-roster-review div{padding-top:6px}
