/* Theme only the working controls. Cargo colors and the geographic map retain
   their operational meanings in both themes. */
.fleet-more-tools{position:relative}
.fleet-more-tools>summary{list-style:none;min-height:38px;cursor:pointer}
.fleet-more-tools>summary::-webkit-details-marker{display:none}
.fleet-more-tools>summary:after{content:' ▾';margin-left:6px}
.fleet-tools-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:10001;display:grid;gap:7px;padding:10px;min-width:220px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow)}
.fleet-tools-menu .btn{width:100%;justify-content:flex-start;white-space:normal}
.fleet-more-tools:not([open])>.fleet-tools-menu{display:none}
.fleet-more-tools>summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
html[data-sbm-theme="light"]{--black:#f1f5f8;--panel:#fff;--panel2:#edf2f6;--white:#203443;--muted:#526674;--line:#bacbd7;--gold2:#7e5800;--shadow:0 8px 28px #17384b22}
html[data-sbm-theme="light"] :is(body,#app){background:#eef3f7;color:#203443}
html[data-sbm-theme="light"] .topbar{background:#fff;border-bottom-color:#b0830b}
html[data-sbm-theme="light"] :is(.btn,.btn-ghost,.icon-btn,.mobile-nav-btn){background:#fff;color:#203d52;border-color:#a9bdcb}
html[data-sbm-theme="light"] :is(.btn-primary,.mobile-nav-primary){background:#f1b600;color:#172a39;border-color:#ad7e00}
html[data-sbm-theme="light"] .btn-danger{background:#fff0f0;color:#892e35;border-color:#b9656c}
html[data-sbm-theme="light"] :is(.summary-strip,.workspace){background:#e0e8ee;border-color:#beced9}
html[data-sbm-theme="light"] :is(.metric,.sidebar,.barge-card,.history-section,.history-collapse,.tools-panel,.data-protection-panel){background:#fff;color:#203443;border-color:#b8cad6}
html[data-sbm-theme="light"] :is(.metric-filter:hover,.barge-card:hover,.morning-boat-card:hover){background:#e9f1f7;border-color:#6b91ad}
html[data-sbm-theme="light"] .metric-filter.active{background:#dcecf7;color:#133a58}
html[data-sbm-theme="light"] :is(input,select,textarea){background:#fff;color:#203443;border-color:#8da8ba;color-scheme:light}
html[data-sbm-theme="light"] :is(input,textarea)::placeholder{color:#687e8d;opacity:1}
html[data-sbm-theme="light"] :is(.notes-row label,.filter-grid label,.detail-grid label,.login-card label,.history-filter-grid label,.tools-panel summary,.sidebar h2,.barge-card-name,.history-section h3,.morning-boat-name,.history-table td strong,.morning-tow strong,.data-protection-status strong){color:#203d52}
html[data-sbm-theme="light"] :is(.barge-card-meta,.toolbar-help,.sidebar p,.history-section p,.history-availability,.history-table td,.history-table td small,.history-empty-cell,.data-protection-note,.morning-barge-empty){color:#526674}
html[data-sbm-theme="light"] :is(dialog,.modal,.login-card,.history-body,.morning-boat-card,.traffic-card,.data-protection-body){background:#fff;color:#203443;border-color:#a7bdcc}
html[data-sbm-theme="light"] :is(.modal-header,.dialog-header,.history-table th,.history-filters,.data-protection-panel summary){background:#e8f0f6;color:#203d52;border-color:#b8cad6}
html[data-sbm-theme="light"] :is(.history-table td,.history-table-wrap,.tools-panel,.data-protection-panel[open]>summary){border-color:#bccedb}
html[data-sbm-theme="light"] .suite-tab{background:#fff;color:#274a62;border-color:#b2c4d1}
html[data-sbm-theme="light"] .suite-tab.active{background:#f1b600;color:#142e42;border-color:#a57900}
html[data-sbm-theme="light"] .sync-badge.live{color:#155938;background:#e4f4eb;border-color:#74a88a}
html[data-sbm-theme="light"] .sync-badge.saving{color:#72520a;background:#fff5d9;border-color:#b79a54}
html[data-sbm-theme="light"] :is(.morning-updated.current,.traffic-progress.complete){color:#17613d}
html[data-sbm-theme="light"] .morning-updated.stale{color:#95343c}
html[data-sbm-theme="light"] .traffic-progress{color:#785509}
html[data-sbm-theme="light"] .fleet-access-notice{background:#e8f0f6;color:#2d5068;border-color:#aec3d2}
html[data-sbm-theme="light"] :is(.detail-panel,.tow-panel,.tow-row,.tow-chip,.weather-strip,.weather-quick-card,.snapshot-boat-row,.fleet-clock-panel,.equipment-directory-row,.billing-cycle-controls,.quickbooks-export-settings,.edit-history-section,.edit-history-audit,.mobile-traffic-mount,.assist-calc,.fuel-surcharge-settings,.attention-panel,.attention-item,.billing-precheck,.billing-precheck-fix,.batch-tow-instructions,.batch-tow-barge-item,.snapshot-summary-card,.snapshot-movements,.audit-entry,.saved-boat-tools,.saved-boat-form,.data-protection-status,.protection-subpanel,.protection-item,.billing-subpanel,.new-barge-flow-options,.quick-clock-panel,.quick-clock-summary,.history-column-nav){background:#fff;color:#203443;border-color:#b8cad6}
html[data-sbm-theme="light"] :is(.detail-header,.detail-footer,.tow-panel summary,.quick-ops-heading,.collapsible-history-section[open]>.history-collapse-summary,.billing-subpanel[open]>summary,.snapshot-meta){background:#e8f0f6;color:#203d52;border-color:#b8cad6}
/* Multi-barge movements use the same light palette in every selection state. */
html[data-sbm-theme="light"] .batch-tow-barge-name{color:#203d52}
html[data-sbm-theme="light"] :is(.batch-tow-barge-meta,.batch-tow-selection-head span){color:#526674}
html[data-sbm-theme="light"] .batch-tow-panel .message{color:#6b4b08}
html[data-sbm-theme="light"] .batch-tow-barge-item:hover{background:#e9f1f7;border-color:#6b91ad}
html[data-sbm-theme="light"] .batch-tow-barge-item.selected{background:#fff4d9;border-color:#9b7400;box-shadow:inset 3px 0 0 #9b7400}
html[data-sbm-theme="light"] .batch-tow-barge-item:focus-within{outline:2px solid #7e5800;outline-offset:2px}
html[data-sbm-theme="light"] .batch-tow-fleet-state{background:#e8f0f6;color:#274a62;border-color:#8da8ba}
html[data-sbm-theme="light"] :is(.detail-panel,.tow-panel,.weather-strip,.history-body,.data-protection-panel,.quick-clock-panel) :is(h2,h3,h4,label,legend){color:#203d52}
html[data-sbm-theme="light"] :is(.detail-panel,.tow-panel,.weather-strip,.history-body,.data-protection-panel,.quick-clock-panel) :is(p,small){color:#526674}
html[data-sbm-theme="light"] :is(.operator-badge,.morning-status-pill,.boat-log-comparison,.morning-barge-chip,.assigned-barge-chip,.snapshot-visitors,.fleet-clock-preview-wrap,.couch-contract-info){background:#fff4d9;color:#6b4b08;border-color:#b89a58}
html[data-sbm-theme="light"] :is(.boat-assigned-editor,.fleet-clock-controls,.fleet-service-grid,.quick-clock-grid,.quick-clock-assist) :is(input,select){background:#fff;color:#203443;border-color:#8da8ba}
html[data-sbm-theme="light"] :is(.quick-clock-barge-group,.quick-clock-assist,.btn-success){background:#e4f4eb;color:#155938;border-color:#74a88a}
html[data-sbm-theme="light"] :is(.barge-card.record-needs-fix,.morning-boat-card.record-needs-fix){background:#fff0f1;color:#76202a;border-color:#bd5964}
html[data-sbm-theme="light"] :is(.barge-card.record-needs-review,.morning-boat-card.record-needs-review){background:#fff7e5;color:#674808;border-color:#b5944c}
html[data-sbm-theme="light"] #visitTableScroll :is(.history-record-head,.history-record-cell){background:#fff;color:#203443;border-color:#bccedb}
html[data-sbm-theme="light"] #visitTableScroll .history-record-head{background:#e8f0f6}
html[data-sbm-theme="light"] #visitTableScroll .open-visit-row .history-record-cell{background:#e4f4eb;color:#155938}
html[data-sbm-theme="light"] #visitTableScroll .record-needs-fix>td{background:#fff0f1;color:#76202a}
html[data-sbm-theme="light"] #visitTableScroll .record-needs-review>td{background:#fff7e5;color:#674808}
@media(max-width:620px){.top-actions{gap:6px}.fleet-tools-menu{min-width:200px}.top-actions .sync-badge{font-size:.68rem}.fleet-more-tools>summary{min-height:40px}}
@media print{.fleet-more-tools{display:none!important}}

html.sbm-one-embedded[data-sbm-theme="light"][data-sbm-page="fleet"],html.sbm-one-embedded[data-sbm-theme="light"][data-sbm-page="fleet"] body{background:#eef3f7!important;color:#203443!important}

@media screen {
/* The board, movement dialogs, billing checks and saved snapshots share the
   same foregrounds. Barge cargo fills and map features are intentionally local. */
html[data-sbm-theme="light"] :is(.metric-filter small,.sidebar-header p,.morning-position,.morning-tow,.morning-destination,.morning-job,.morning-mobile-notes,.record-check-legend,.attention-panel>summary span,.weather-loading,.weather-meta-row,.weather-full>summary,.weather-source-line,.weather-source-line a,.login-card p,.boat-assigned-label,.boat-assigned-help,#boatAssignedBarges,.boat-log-actions span,#boatLastUpdated,.rotation-quick-controls span,.fleet-clock-controls label,.fleet-clock-heading p,.fleet-clock-preview-wrap span,.billing-precheck-note,.protection-empty,.saved-boat-tools span,.equipment-directory-summary,.equipment-directory-name span,.equipment-directory-meta,.equipment-directory-active,.equipment-directory-empty) {color:#526674}
html[data-sbm-theme="light"] :is(.weather-heading strong,.weather-quick-card strong,.weather-period-row strong,.new-barge-flow-title strong,.quick-ops-heading strong,.quick-clock-barge-group-title strong,.quick-clock-summary strong,.fleet-clock-heading h2,.fleet-clock-heading h3,.quickbooks-export-copy strong,.billing-precheck strong,.snapshot-meta strong,.snapshot-boat-row strong,.snapshot-summary-card strong,.audit-entry strong) {color:#203d52}
html[data-sbm-theme="light"] :is(.weather-quick-card span,.weather-period-row span,.new-barge-flow-title span,.quick-ops-heading span,.quick-clock-barge-group-title span,.quick-clock-assist-title span,.quickbooks-export-copy span,.snapshot-meta span,.snapshot-boat-row span,.snapshot-summary-card span,.snapshot-movement,.audit-entry div,.audit-entry small) {color:#526674}
html[data-sbm-theme="light"] :is(.weather-period-row,.empty-board-message) {background:#fff;color:#203443;border-color:#b8cad6}
html[data-sbm-theme="light"] .empty-board-message strong {color:#203d52}
html[data-sbm-theme="light"] .empty-board-message span {color:#526674}
html[data-sbm-theme="light"] .boat-assigned-summary {background:#fff;color:#203443}
html[data-sbm-theme="light"] .boat-assigned-editor {background:#e8f0f6;color:#203d52;border-color:#b8cad6}
html[data-sbm-theme="light"] .fuel-surcharge-settings strong {color:#203d52}
html[data-sbm-theme="light"] :is(#fleetCounts,.barge-card-location,.record-check-legend span,.weather-meta-row span) {color:#526674}
html[data-sbm-theme="light"] .attention-item strong {color:#203d52}
html[data-sbm-theme="light"] :is(input,textarea)::placeholder {color:#526674;opacity:1}
html[data-sbm-theme="light"] .record-check-legend .record-check-fix {color:#892e35}
html[data-sbm-theme="light"] .record-check-legend .record-check-review {color:#6b4b08}
html[data-sbm-theme="light"] .fleet-clock-panel label {color:#203d52}
html[data-sbm-theme="light"] .billing-precheck-panel>summary {color:#203d52}
html[data-sbm-theme="light"] .attention-count {background:#e8f0f6;color:#274a62!important}
html[data-sbm-theme="light"] :is(.attention-panel.has-issues,.billing-precheck-panel.has-issues) .attention-count {background:#fff4d9;color:#6b4b08!important}
html[data-sbm-theme="light"] .billing-precheck-panel.ready .attention-count {background:#e4f4eb;color:#155938!important}
html[data-sbm-theme="light"] :is(.record-check-fix) {color:#892e35}
html[data-sbm-theme="light"] :is(.record-check-review,#quickClockAssistCalc,#currentFuelSurchargeText,.billing-precheck.blocked #billingPrecheckText) {color:#6b4b08}
html[data-sbm-theme="light"] :is(.attention-ok,.billing-precheck.ready #billingPrecheckText) {color:#155938}
html[data-sbm-theme="light"] :is(.couch-contract-info,.snapshot-visitors) :is(strong,span) {color:#6b4b08}
html[data-sbm-theme="dark"] :is(.attention-panel.has-issues,.billing-precheck-panel.has-issues) .attention-count {background:#80530f;color:#fff!important}
}
