.officeLayoutChoice{display:flex;gap:4px;flex-wrap:wrap}.officeLayoutChoice .btn{padding:9px 12px!important}.officeLayoutChoice [aria-pressed=true]{background:#1466da!important;color:#fff!important;border-color:#1466da!important}
.compactHomeGroups,.compactOfficeSidebar{display:none}
#admin[data-office-layout=compact]{padding-left:220px;position:relative}
#admin[data-office-layout=compact]>.top{margin-left:-220px}
#admin[data-office-layout=compact] .compactOfficeSidebar{display:flex;position:absolute;left:0;top:200px;width:200px;flex-direction:column;gap:2px;padding:12px;background:white;border-radius:14px;border:1px solid #dce5f1;box-sizing:border-box}
.compactOfficeSidebar h3{font-size:12px;text-transform:uppercase;color:#687d96;margin:17px 8px 5px}
.compactOfficeSidebar button{border:0;background:transparent;text-align:left;padding:9px 8px;color:#16395e;border-radius:7px;cursor:pointer;font:inherit;font-size:14px}
.compactOfficeSidebar button:hover,.compactOfficeSidebar button:focus-visible{background:#eaf2ff}
#admin[data-office-layout=compact] #officeHome>.officeTileGrid,#admin[data-office-layout=compact] #officeHome>.officeTileEditHint{display:none!important}
#admin[data-office-layout=compact] #officeHome>h2{font-size:23px;margin:14px 0}
#admin[data-office-layout=compact] .compactHomeGroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.compactHomeGroups section{background:white;border:1px solid #dce5f1;border-radius:14px;padding:16px}
.compactHomeGroups h3{margin:0 0 8px;font-size:18px}.compactHomeGroups button{display:block;width:100%;border:0;border-top:1px solid #edf1f6;background:transparent;text-align:left;padding:11px 0;color:#234b76;font:inherit;cursor:pointer}
.compactHomeGroups button:hover{color:#065de1;background:#f7faff}
#admin[data-office-layout=compact] .homeDriverSummary{margin:12px 0!important;padding:12px!important}
#admin[data-office-layout=compact] .driverHubStats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
#admin[data-office-layout=compact] .driverHubStatCard{padding:10px!important;min-height:90px!important}
#admin[data-office-layout=compact] .driverHubStatCard b{font-size:28px!important}
#admin[data-office-layout=compact] .driverHubNames{font-size:14px!important}
@media(max-width:1100px){#admin[data-office-layout=compact]{padding-left:0}#admin[data-office-layout=compact]>.top{margin-left:0}#admin[data-office-layout=compact] .compactOfficeSidebar{display:none}#admin[data-office-layout=compact] .top .right{flex-wrap:wrap}}
@media(max-width:650px){#admin[data-office-layout=compact] .compactHomeGroups{grid-template-columns:1fr}#admin[data-office-layout=compact] .driverHubStats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.officeLayoutChoice{width:100%}.compactHomeGroups section{padding:12px}}
#admin[data-office-layout=compact]{padding-left:220px!important;width:100%;box-sizing:border-box}
#admin[data-office-layout=compact]>.top{margin-left:0!important;width:100%!important}
#admin[data-office-layout=compact] .compactOfficeSidebar{top:0!important;max-height:calc(100vh - 24px);overflow-y:auto}
.compactOfficeSidebar button[aria-current=page]{background:#1466da;color:white;font-weight:700}
[data-compact-destination][hidden]{display:none!important}
@media(max-width:1100px){#admin[data-office-layout=compact]{padding-left:0!important}}
/* Office-only viewport layout; driver and login retain their original sizing. */
.wrap:has(>#admin:not(.hidden)){width:100%!important;max-width:none!important;padding:12px!important;margin:0!important}
@media(min-width:1101px){#admin[data-office-layout=compact] .compactOfficeSidebar{position:fixed!important;left:12px!important;top:12px!important;bottom:12px;width:200px;max-height:none!important;z-index:110;overscroll-behavior:contain}}
#admin[data-office-layout=compact]>.tab{min-width:0;max-width:100%}
#clients .relationTable table{min-width:0!important;width:100%!important;table-layout:fixed!important}
#clients .relationTable th,#clients .relationTable td{white-space:normal!important;overflow-wrap:anywhere;min-width:0!important;max-width:none!important;padding:8px!important}
#clients .relationTable th:first-child{width:19%}#clients .relationTable th:last-child{width:19%}
#clients .clientRowActions{display:flex!important;flex-direction:column;align-items:stretch;min-width:0!important;width:100%!important}
#clients .clientRowActions .btn{white-space:normal!important;min-width:0!important;width:100%!important;height:auto!important}
#clients .clientCost480,#clients .clientCmrEmail480{min-width:0!important;max-width:none!important}
@media(max-width:900px){#clients .relationTable table,#clients .relationTable tbody{display:block}#clients .relationTable thead{display:none}#clients .relationTable tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:2px solid #dce3ed;padding:8px}#clients .relationTable td::before{content:attr(data-label);display:block;font-size:11px;color:#687386;font-weight:bold}#clients .relationTable td:first-child,#clients .relationTable td:last-child{grid-column:1/-1}}
#clients .relationTable th,#clients .relationTable td{width:auto!important;height:auto!important}
#clients .relationTable th:first-child{width:19%!important}#clients .relationTable th:last-child{width:19%!important}
#clients .relationTable th{position:static!important}
#clients .clientRowActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* Compact desktop Home: all four groups on one row, real status remains visible. */
@media(min-width:1101px){
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups section{padding:12px;min-width:0}
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups h3{font-size:16px;margin-bottom:8px}
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups button{font-size:14px;padding:10px 0;line-height:1.3}
 #admin[data-office-layout=compact] .compactOfficeSidebar{gap:0;padding:8px}
 #admin[data-office-layout=compact] .compactOfficeSidebar h3{margin:12px 6px 4px;font-size:11px}
 #admin[data-office-layout=compact] .compactOfficeSidebar button{padding:8px 7px;font-size:13px;line-height:1.2}
 #admin[data-office-layout=compact] .homeDriverSummary{padding:10px!important;margin:10px 0!important}
 #admin[data-office-layout=compact] .driverHubStatCard{min-height:76px!important;padding:8px!important}
 #admin[data-office-layout=compact] .driverHubNames>div{padding:8px!important}
}
/* Two compact action columns per customer. */
#admin #clients .relationTable .clientRowActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important}
#admin #clients .relationTable .clientRowActions .btn{width:100%!important;min-width:0!important;min-height:32px!important;padding:6px!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important}
#admin #clients .relationTable th,#admin #clients .relationTable td{height:auto!important;padding:8px!important}
#admin #clients .relationTable th:last-child{width:23%!important}
.homeArrangeHint{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#eaf2ff;padding:12px;border-radius:10px;margin:10px 0}.homeArrangeHint[hidden]{display:none!important}
.layout-editing .compactHomeGroups button{cursor:grab!important;border:1px dashed #8caad1!important;border-radius:6px;padding:9px!important;margin-bottom:4px}
.compactHomeGroups .homeDropTarget{outline:2px solid #1466da;background:#eaf2ff}.homeDragging{opacity:.4}
.homeMoveDialog{border:1px solid #dce3ed;border-radius:16px;padding:24px;width:min(480px,90vw);color:#172033}.homeMoveDialog::backdrop{background:#142d4d70}.homeMoveDialog label{display:block;margin:16px 0}.homeMoveDialog select{display:block;width:100%;padding:10px;margin-top:6px}.homeMoveDialog button{margin-right:8px}
/* Fill the remaining desktop Home height without hiding overflowing content. */
@media(min-width:1101px){
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups{min-height:var(--home-remaining-height,0px);align-items:stretch}
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups section{display:flex;flex-direction:column}
 #admin[data-office-layout=compact] #officeHome .compactHomeGroups section>button{flex:1;display:flex;align-items:center;text-align:left}
}
.costReceiptShortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}.costReceiptShortcuts .btn{font-size:18px;font-weight:750;padding:14px}#costs .costViewNav{padding:8px;margin-bottom:10px}#costs #fuelRegistrationsCard,#costs .card:has(#tollRows){scroll-margin-top:calc(var(--office-fixed-stack-height,180px) + 85px)}
#admin .officeBackBar{display:flex;justify-content:flex-start;margin:0 0 10px;clear:both}#admin .officeBackBar .btn{font-weight:700;padding:8px 14px}#admin .officeBackBar .btn[hidden]{display:none!important}
/* Full-width office header with fixed navigation immediately underneath. */
@media(min-width:1101px){
 #admin[data-office-layout=compact]>.top{margin-left:-220px!important;width:calc(100% + 220px)!important;z-index:120!important}
 #admin[data-office-layout=compact] .compactOfficeSidebar{top:var(--compact-menu-top,154px)!important;bottom:12px!important;height:auto!important;max-height:none!important}
 #admin[data-office-layout=compact] .compactOfficeSidebar h3{margin:9px 6px 3px;font-size:10px}
 #admin[data-office-layout=compact] .compactOfficeSidebar button{padding:6px 7px;font-size:13px;line-height:1.15}
}
#admin .officeBackBar{display:none!important}
#admin>.top #officeFixedBack{display:inline-flex!important;align-items:center;font-weight:800;white-space:nowrap}
#admin>.top #officeFixedBack[hidden]{display:none!important}
#admin>.top{position:sticky!important;top:8px!important;z-index:120!important}

/* Compact two-by-two cost actions, shared by both office layouts. */
#costs .costReceiptShortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
#costs .costReceiptShortcuts + .costReceiptShortcuts{margin-top:0}
#costs .costReceiptShortcuts .btn{width:100%;min-width:0;min-height:44px;padding:10px 12px;font-size:16px;line-height:1.25;border-radius:9px;justify-content:center;text-align:center;white-space:normal}
@media(max-width:480px){#costs .costReceiptShortcuts .btn{font-size:14px;padding:9px 6px}}

#admin>#officeFixedBack{position:fixed!important;bottom:calc(16px + env(safe-area-inset-bottom));left:16px;z-index:10000;display:inline-flex;background:#fff;box-shadow:0 3px 16px #17345340;min-height:48px;padding:12px 22px;font-weight:800}#admin>#officeFixedBack[hidden]{display:none!important}#admin>.tab.active{padding-bottom:90px}
#rotationDialog header{position:sticky;top:0;z-index:5}
#clbvLeaveOverlay505 .clbvLeaveHead505{position:sticky;top:0;z-index:20;background:#fff;padding:12px 0;border-bottom:1px solid #e2e8f0;box-shadow:0 5px 8px -8px #173453}
