/* Current vehicle stock has one source; daily movements remain in the ledger. */
#operations #ops-stock-panel .report-snapshot-note{margin:0 0 10px!important;padding:0!important;font-size:12px!important;line-height:1.5!important;color:#637a8f}
#operations #ops-stock-panel #operation-inventory{padding:14px!important;margin-bottom:10px!important;border-radius:16px!important;overflow:visible!important;box-shadow:none!important}
#operations #ops-stock-panel #operation-inventory>.section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 8px!important}
#operations #ops-stock-panel .section-head>div:first-child{min-width:0}
#operations #ops-stock-panel .section-head small{font-size:10px!important;line-height:1.5!important;letter-spacing:.08em!important}
#operations #ops-stock-panel .section-head h2{margin:2px 0 0!important;font-size:20px!important;line-height:1.3!important;letter-spacing:-.02em!important}
#operations #ops-stock-panel .inventory-card-tools{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;min-width:0!important}
#operations #ops-stock-panel .af-vehicle-count{height:26px;min-width:0;padding:0 8px;font-size:11px;white-space:nowrap}
#operations #ops-stock-panel #vehicle-stock-summary{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#operations #ops-stock-panel .af-vehicle-driver-list{display:grid;gap:10px}
#operations #ops-stock-panel .af-vehicle-driver-card{display:block;position:relative;min-width:0;padding:12px;border:1px solid #dce7f0;border-radius:12px;background:#fff}
#operations #ops-stock-panel .af-vehicle-driver-card.has-warning{border-color:#edcd94}
#operations #ops-stock-panel .af-vehicle-driver-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-width:0}
#operations #ops-stock-panel .af-vehicle-driver-identity{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;min-width:0}
#operations #ops-stock-panel .af-vehicle-driver-identity strong{font-size:16px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;letter-spacing:0}
#operations #ops-stock-panel .af-vehicle-driver-state{font-size:11px;line-height:1.5;color:#637a8f;letter-spacing:0;white-space:normal}
#operations #ops-stock-panel .needs-attention{color:#975b08}
#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:8px 0;border-radius:9px;background:#f5f9fd;min-width:0;text-align:center}
#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl)>div{min-width:0;padding:0 3px}
#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl)>div+div{border-left:1px solid #e0eaf1}
#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl) dt{position:static;width:auto;height:auto;margin:0;clip-path:none;color:#637a8f;font-size:11px;font-weight:500;line-height:1.5;white-space:normal;letter-spacing:0}
#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl) dd{margin:3px 0 0;color:#0878ef;font-size:22px;font-weight:800;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#operations #ops-stock-panel .vehicle-empty-number dd{color:#087c60!important}
#operations #ops-stock-panel dd.negative{color:#c52c3f!important}
#operations #ops-stock-panel .af-vehicle-team-total{display:block;margin:4px 0 8px;padding:10px;border:1px solid #d9e9fa;border-radius:10px;background:#f0f7ff}
#operations #ops-stock-panel .af-vehicle-team-total>strong{display:block;margin-bottom:5px;font-size:12px;line-height:1.5;letter-spacing:0}
#operations #ops-stock-panel .af-vehicle-team-total dl{background:transparent;padding:0}
#operations #ops-stock-panel :is(.af-vehicle-stock-definition,.af-vehicle-last-receipt,.af-vehicle-driver-warning){margin:7px 0;color:#637a8f;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;letter-spacing:0}
#operations #ops-stock-panel .af-vehicle-stock-definition{margin:0 0 10px;font-size:11px}
#operations #ops-stock-panel .af-vehicle-driver-warning{color:#975b08}
#operations #ops-stock-panel .af-vehicle-day{margin:8px 0 0;border:0;border-top:1px solid #e0eaf1;background:transparent;border-radius:0;padding:0}
#operations #ops-stock-panel :is(.af-vehicle-day,.af-vehicle-day-audit)>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;list-style:none;cursor:pointer;color:#42637f;font-size:12px;line-height:1.5;letter-spacing:0}
#operations #ops-stock-panel .af-vehicle-day>summary>span{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center;min-width:0}
#operations #ops-stock-panel .af-vehicle-day summary small{font-size:11px;line-height:1.5;color:#637a8f;letter-spacing:0}
#operations #ops-stock-panel :is(.af-vehicle-day,.af-vehicle-day-audit)>summary::after{content:none}
#operations #ops-stock-panel .af-vehicle-day summary i{font-style:normal;font-size:18px}
#operations #ops-stock-panel .af-vehicle-day-body{padding-top:3px}
#operations #ops-stock-panel .af-vehicle-day table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.5;letter-spacing:0}
#operations #ops-stock-panel .af-vehicle-day caption{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#operations #ops-stock-panel .af-vehicle-day :is(th,td){padding:7px 2px;border-bottom:1px solid #e0eaf1;text-align:right;overflow-wrap:anywhere;white-space:normal;font-variant-numeric:tabular-nums}
#operations #ops-stock-panel .af-vehicle-day th:first-child{width:28%;text-align:left;font-weight:600}
#operations #ops-stock-panel .af-vehicle-day thead th{font-size:10px;font-weight:500;color:#637a8f}
#operations #ops-stock-panel .af-vehicle-day-body p{margin:8px 0;font-size:11px;line-height:1.6;color:#637a8f;letter-spacing:0;overflow-wrap:anywhere}
#operations #ops-stock-panel .af-vehicle-day-audit{margin:0;border:0;border-top:1px solid #e0eaf1;border-radius:0;padding:0;background:transparent}
#operations #ops-stock-panel .af-vehicle-ledger-link{display:block!important;width:100%!important;min-height:44px!important;padding:8px!important;border:1px solid #d9e6f0!important;border-radius:9px!important;background:#f5f9fd!important;color:#0878ef!important;font-size:12px!important;line-height:1.5!important;white-space:normal!important;letter-spacing:0!important}
/* Native disclosure menus retain keyboard and screen-reader behavior. */
#operations #ops-stock-panel .vehicle-stock-menu{position:relative;margin:0;padding:0;border:0;background:transparent;min-width:0}
#operations #ops-stock-panel .vehicle-stock-menu[open]{z-index:30}
#operations #ops-stock-panel .vehicle-stock-menu>summary{display:grid!important;place-items:center;list-style:none;box-sizing:border-box;width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:#42637f;font-size:17px;font-weight:800;letter-spacing:2px;cursor:pointer}
#operations #ops-stock-panel .vehicle-stock-menu>summary:hover,#operations #ops-stock-panel .vehicle-stock-menu[open]>summary{background:#edf6ff}
#operations #ops-stock-panel summary::-webkit-details-marker{display:none}
#operations #ops-stock-panel .vehicle-stock-menu>summary::after{content:none!important}
#operations #ops-stock-panel .vehicle-stock-menu .af-vehicle-driver-actions{position:absolute;top:calc(100% + 4px);right:0;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;box-sizing:border-box;width:210px;max-width:calc(100vw - 40px);padding:5px;border:1px solid #d9e6f0;border-radius:12px;background:#fff;box-shadow:0 10px 30px #163b6326}
#operations #ops-stock-panel .vehicle-stock-menu button:not(.is-hidden){display:flex!important;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:10px!important;border:0!important;border-radius:8px!important;background:#fff!important;color:#214b70!important;font-size:14px!important;line-height:1.4!important;font-weight:650!important;white-space:normal!important;text-align:left;box-shadow:none!important}
#operations #ops-stock-panel .vehicle-stock-menu button:disabled{opacity:.5;cursor:not-allowed}
#operations #ops-stock-panel .vehicle-stock-menu button:not(:disabled):hover{background:#edf6ff!important}
#operations #ops-stock-panel :is(.vehicle-stock-menu summary,.vehicle-stock-menu button,.inventory-audit-details summary):focus-visible{outline:2px solid #0878ef;outline-offset:2px}
/* A single status row; diagnostics and historical balancing expand on demand. */
#operations #ops-stock-panel #inventory-ledger-status{display:block;margin:8px 0 0;padding:0;border:0;border-radius:0;background:transparent}
#operations #ops-stock-panel .inventory-audit-details{border:1px solid #e0eaf1;border-radius:10px;background:#fbfdff}
#operations #ops-stock-panel .inventory-audit-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 10px;box-sizing:border-box;list-style:none;cursor:pointer}
#operations #ops-stock-panel .inventory-audit-state{color:#42637f;font-size:12px;line-height:1.45;font-weight:700;letter-spacing:0}
#operations #ops-stock-panel .inventory-audit-state.needs-attention{color:#975b08}
#operations #ops-stock-panel .inventory-audit-details>summary>span{display:flex;flex-direction:row;gap:5px;align-items:center;flex:0 0 auto;color:#637a8f;font-size:12px;text-align:right}
#operations #ops-stock-panel .inventory-audit-details summary i{font-style:normal;font-size:17px;transition:transform .15s}
#operations #ops-stock-panel details[open]>summary i{transform:rotate(180deg)}
#operations #ops-stock-panel .inventory-technical-details{margin:0 10px 4px;padding:0;border:0;border-top:1px solid #e0eaf1;background:transparent}
#operations #ops-stock-panel .inventory-technical-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0;list-style:none;cursor:pointer;font-size:12px;color:#637a8f}
#operations #ops-stock-panel .inventory-audit-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:2px 10px 10px}
#operations #ops-stock-panel .inventory-audit-details dt{font-size:11px;line-height:1.5;color:#637a8f}
#operations #ops-stock-panel .inventory-audit-details dd{margin:2px 0 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#operations #ops-stock-panel :is(.inventory-auto-balance-note,.inventory-custody-note){margin:0;padding:0 10px 10px;font-size:12px;line-height:1.5;color:#637a8f;letter-spacing:0}
#operations #ops-stock-panel #inventory-reconciliation-queue{margin:8px 0 0}
#operations #ops-stock-panel .inventory-reconciliation-queue details{padding:0;border-color:#f0d8b2;background:#fffaf1;border-radius:10px}
#operations #ops-stock-panel .inventory-reconciliation-queue summary{min-height:44px;box-sizing:border-box;padding:8px 10px;font-size:13px;line-height:1.4}
#operations #ops-stock-panel .inventory-reconciliation-list{padding:0 10px;gap:6px;margin:0}
#operations #ops-stock-panel .inventory-reconciliation-case{padding:8px;gap:4px;border-radius:8px}
#operations #ops-stock-panel .inventory-reconciliation-case :is(small,span){font-size:12px;line-height:1.5;white-space:normal;letter-spacing:0}
#operations #ops-stock-panel .inventory-reconciliation-foot{margin:0;padding:8px 10px;font-size:12px;line-height:1.5}
#operations #ops-stock-panel .inventory-alert{display:grid;gap:4px;margin:8px 0;padding:10px;border-radius:10px;font-size:13px;line-height:1.5}
#operations #ops-stock-panel .inventory-alert :is(strong,span){display:block;min-width:0;font-size:13px;line-height:1.5;letter-spacing:0;white-space:normal;overflow-wrap:anywhere}
#operations #ops-stock-panel :is([hidden],#inventory-summary:empty,#inventory-reconciliation-queue:empty){display:none!important}
/* Daily ledger: complete labels, no large decorative icon boxes. */
#operations #ops-stock-panel #operation-stock-ledger{margin:0!important;padding:0!important;border-radius:16px!important;box-shadow:none!important}
#operations #ops-stock-panel .stock-ledger-summary{margin:0!important;padding:12px 14px!important;min-height:44px;box-sizing:border-box}
#operations #ops-stock-panel .stock-ledger-title>small{font-size:11px!important;line-height:1.4!important;letter-spacing:0!important}
#operations #ops-stock-panel .stock-ledger-title>h2{margin:2px 0 0!important;font-size:18px!important;line-height:1.4!important;letter-spacing:-.02em!important}
#operations #ops-stock-panel .stock-ledger-chevron{width:28px!important;height:28px!important;border:0!important;background:transparent!important;font-size:22px!important}
#operations #ops-stock-panel .stock-ledger-glance{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin-top:10px!important;padding:0!important;background:#f4f8fc!important;border-radius:10px!important}
#operations #ops-stock-panel .stock-ledger-glance>span{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-height:58px!important;padding:8px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:center!important;overflow:visible!important}
#operations #ops-stock-panel .stock-ledger-glance>span+span{border-left:1px solid #e0eaf1!important}
#operations #ops-stock-panel .stock-ledger-glance>span:before{display:none!important;content:none!important}
#operations #ops-stock-panel .stock-ledger-glance :is(small,strong){grid-column:auto!important;grid-row:auto!important;min-width:0!important;margin:0!important;line-height:1.4!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:0!important}
#operations #ops-stock-panel .stock-ledger-glance small{font-size:12px!important}
#operations #ops-stock-panel .stock-ledger-glance strong{font-size:18px!important;overflow-wrap:anywhere}
#operations #ops-stock-panel .stock-ledger-collapse-hint{display:none!important}
#operations #ops-stock-panel .stock-ledger-body{padding:12px 14px!important}
#operations #ops-stock-panel .stock-ledger-receipt-summary{margin:0 0 8px;font-size:12px;line-height:1.5;color:#3f637f;overflow-wrap:anywhere}
#operations #ops-stock-panel .stock-ledger-note{margin:0 0 10px!important;font-size:12px!important;line-height:1.5!important}
#operations #ops-stock-panel .stock-ledger-filters{gap:4px!important;padding:4px!important}
#operations #ops-stock-panel .stock-ledger-filter{min-height:44px!important;padding:6px 4px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;min-width:0!important}
#operations #ops-stock-panel #stock-ledger-vehicle-filter{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:12px;color:#637a8f}
#operations #ops-stock-panel #stock-ledger-vehicle{flex:1;min-width:0;min-height:44px;padding:8px 10px;font-size:16px;box-sizing:border-box}
#operations #ops-stock-panel :is(.af-vehicle-day summary,.af-vehicle-ledger-link,#stock-ledger-vehicle):focus-visible{outline:2px solid #0878ef;outline-offset:2px}
#operations #ops-stock-panel #stock-ledger-list .stock-ledger-row{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;min-height:0!important;padding:10px!important;border-radius:10px!important}
#operations #ops-stock-panel .stock-ledger-row-icon{display:none!important}
#operations #ops-stock-panel .stock-ledger-main-line{flex-wrap:wrap!important}
#operations #ops-stock-panel .stock-ledger-main strong{font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere!important}
#operations #ops-stock-panel .stock-ledger-main small{display:block;font-size:12px!important;line-height:1.5!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:0!important}
#operations #ops-stock-panel .stock-ledger-tail{align-self:start!important;font-size:11px!important}
@media(max-width:600px){#operations #ops-stock-panel .section-head h2{font-size:18px!important}}
@media(max-width:350px){#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 0}#operations #ops-stock-panel :is(.af-vehicle-driver-stock,.af-vehicle-team-total dl)>div:nth-child(3){border-left:0}}
@media(prefers-reduced-motion:reduce){#operations #ops-stock-panel .inventory-audit-details summary i{transition:none}}
