/* Majestic brand accents; existing logo, permissions and live routes retained. */
body{--brand-teal:#176b56;--brand-blue:#315fab;--brand-gold:#b18225}
/* One native UI family throughout login, navigation, dialogs, reports and figures.
   No network font dependency; tabular figures keep money columns aligned. */
:root{--font-ui:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-mono:var(--font-ui)}
body,body *{font-family:var(--font-ui)!important}
body{font-size:14px;line-height:1.5}
#appView :is(h1,h2,h3){font-weight:700;line-height:1.25}
#appView h1{font-size:clamp(24px,2.2vw,30px)}
#appView h2{font-size:20px}
#appView h3{font-size:17px}
#appView :is(button,.primary-button,.secondary-button){font-weight:600;letter-spacing:normal}
#appView :is(.metric-card strong,.report-metrics strong,td,.closing-figures dd){font-variant-numeric:tabular-nums}
#appView .metric-card{background:linear-gradient(145deg,#fff 65%,#f1f6fa)}
#appView .panel{box-shadow:0 2px 8px rgb(23 36 59 / 3%)}
#appView .collection-workspace-toolbar{background:linear-gradient(110deg,#f0f8f4,#fff 70%)}
#appView :is(button,a):focus-visible{outline:3px solid #315fab;outline-offset:3px}
#appView .sidebar{background:#fff;border-right:1px solid #dce4eb}
#appView .sidebar-brand{border-bottom:1px solid #e6ebef;padding-bottom:22px}
#appView .brand-logo-sidebar{object-fit:contain;filter:none;max-width:180px}
#appView .nav-item.active{background:#e8f3ef!important;color:#145d4b!important;border-color:#c7e3d8!important;box-shadow:inset 3px 0 #176b56}
#appView .primary-button{background:#176b56!important;border-color:#176b56!important;color:#fff!important;box-shadow:none}
#appView .primary-button:hover{background:#105540!important}
#appView .panel{border-color:#dce4eb;box-shadow:none;border-radius:12px}
#appView .metric-card:nth-child(1){border-top:3px solid #315fab}
#appView .metric-card:nth-child(2){border-top:3px solid #9c782c}
#appView .metric-card:nth-child(3){border-top:3px solid #176b56}
#appView .metric-card:nth-child(4){border-top:3px solid #805d9b}
#appView h1{letter-spacing:-.7px}#appView h2{letter-spacing:-.3px}
#appView table th{background:#f5f8fa;color:#60727e}
#appView .count-badge{background:#edf3fc;color:#315fab}
.collection-workspace-toolbar{border-top:3px solid #176b56!important}
#collectionWorkspaceNav button.active{color:#176b56;border-color:#b9d9ce;background:#edf6f2}
.collection-steps{list-style:none;display:flex;gap:16px;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #dce4eb;counter-reset:step}
.collection-steps li{counter-increment:step;display:flex;align-items:center;gap:8px;font-size:13px;color:#63757e;flex:1}
.collection-steps li:before{content:counter(step);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#eef2f5;flex-shrink:0}
.collection-steps li.active{font-weight:700;color:#176b56}.collection-steps li.active:before{background:#176b56;color:#fff}
#modernCloseoutsPanel [hidden]{display:none!important}
#modernClosingForm h3{font-size:19px;margin:0 0 16px}
.closing-expected{background:#eaf5ef;padding:22px;border-radius:10px;margin:18px 0;color:#145d4b}
.closing-expected small{font-size:11px;letter-spacing:.5px}.closing-expected strong{display:block;font-size:34px;line-height:1.3;margin-top:6px;font-variant-numeric:tabular-nums}
.closing-figures{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;font-size:14px}
.closing-figures dt{color:#627580}.closing-figures dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#modernClosingForm .closing-actions{border-top:1px solid #dce4eb;padding-top:20px;margin-top:24px;align-items:center}
#modernDiscard{margin-left:auto;font-size:12px}
#collectionsView[data-collection-pane="completed"] #modernClosingForm,
#collectionsView[data-collection-pane="completed"] .collection-steps,
#collectionsView[data-collection-pane="history"] #modernCloseoutsPanel{display:none!important}
#collectionsView[data-collection-pane="completed"] .collection-statement-history{display:block!important}
.ops-directory-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 0;font-size:12px}
.ops-directory-pagination button{min-height:40px;padding:8px 12px;font:inherit;border:1px solid #ccd8e1;border-radius:7px;background:white;color:#254257}
@media(max-width:600px){.collection-steps{gap:6px}.collection-steps li{font-size:11px;gap:4px;flex-direction:column;align-items:flex-start}.closing-expected strong{font-size:30px}#modernDiscard{margin-left:0}.closing-figures{font-size:13px}}
#workspaceNavigation{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:8px 0;border-bottom:1px solid #dce5ec}
#workspaceNavigation[hidden]{display:none}
#workspaceNavigation button{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:8px;background:transparent;color:#526475;cursor:pointer}
#workspaceNavigation button:hover{background:#eef4f7}
#workspaceNavigation button[aria-current="page"]{background:#e4f3ef;color:#145b4e;border-color:#b6dcd1}
#workspaceNavigation button:focus-visible{outline:3px solid #346aca;outline-offset:2px}
@media(max-width:600px){#workspaceNavigation{gap:4px}#workspaceNavigation button{padding:9px 10px;font-size:13px}}
/* Color follows action, not decoration. Destructive controls retain their own styling. */
#appView #modernReview,#appView #modernNext,#appView #previewPdf,#appView #downloadPdf,#appView #downloadCsv{background:#315fab!important;border-color:#315fab!important;color:#fff!important}
#appView #modernReview:hover,#appView #modernNext:hover,#appView #previewPdf:hover,#appView #downloadPdf:hover,#appView #downloadCsv:hover{background:#254b8b!important}
#appView #modernFinalize{background:#176b56!important;border-color:#176b56!important;color:#fff!important}
#collectionWorkspaceNav>button.active{background:#176b56;color:#fff;border-color:#176b56}
#modernCashHint{display:block;font-size:13px;font-weight:400;line-height:1.5;color:#526475;margin-top:6px}
#modernClosingForm input[name="actualMajestic"]{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;min-height:56px}
#modernClosingForm input[name="actualMajestic"]::placeholder{color:#65798a;opacity:1}
#appView button:disabled{opacity:.5;cursor:not-allowed}
#modernClosingForm .closing-actions button{min-height:44px;white-space:normal;text-align:center}
@media print{.collection-steps,#workspaceNavigation{display:none}}
/* Keep the daily collection task compact; technical evidence stays in history. */
#collectionPaneHint[hidden]{display:none!important}
#modernClosingChoices .closing-choice{padding:16px;gap:14px;border:1px solid #dce4eb;border-radius:10px;margin:10px 0;cursor:pointer;background:#fff}
#modernClosingChoices .closing-choice:has(input:checked){border-color:#176b56;background:#f0f8f4}
#modernClosingChoices .closing-choice span{display:grid;gap:5px;min-width:0}
#modernClosingChoices .closing-choice strong{font-size:15px;font-weight:650}
#modernClosingChoices .closing-choice small{font-size:12px;color:#586b7c;overflow-wrap:anywhere}
#modernClosingChoices input{accent-color:#176b56}
#modernHistory{border:0;background:transparent;color:#315fab;padding-left:0!important;font-size:13px!important}
#modernCloseoutsPanel{max-width:960px}
#modernClosingForm .closing-actions{margin-top:18px;padding-top:16px}
#appView .controller-row .action-menu{max-width:min(340px,85vw)}
@media(max-width:700px){.collection-workspace-toolbar{grid-template-columns:1fr;gap:14px}#collectionWorkspaceNav{gap:8px}.collection-workspace-toolbar h2{font-size:20px}#modernClosingChoices .closing-choice{padding:12px}}
/* Task-sized spacing: no fixed-height empty panels or stretched collection form. */
#appView [hidden]{display:none!important}
#collectionsView .collection-workspace-toolbar,#modernCloseoutsPanel,#resetRecordsPanel{max-width:960px;box-sizing:border-box}
#collectionsView{gap:16px}
#collectionsView .panel{margin-bottom:0;padding:20px}
#collectionsView .collection-workspace-toolbar{gap:12px}
#collectionsView .collection-workspace-toolbar p{margin:6px 0 0;line-height:1.45}
#modernCloseoutsPanel .collection-steps{margin-bottom:16px;padding-bottom:12px;gap:12px}
#modernClosingForm h3{margin:0 0 8px;font-size:18px}
#modernClosingForm section>p{margin:0 0 12px;line-height:1.5}
#modernCloseoutsPanel .closing-grid{margin:12px 0;gap:12px}
#modernCloseoutsPanel .closing-choice{margin:8px 0;padding:12px}
#modernCloseoutsPanel .closing-expected{padding:14px 16px;margin:12px 0}
#modernCloseoutsPanel .closing-expected strong{font-size:28px}
#modernCloseoutsPanel .closing-figures{gap:6px 16px;margin:12px 0}
#modernClosingForm .closing-actions{margin:14px 0 0;padding-top:12px;gap:8px}
#modernReportCollections{margin-top:20px}
#modernReportCollections h3{margin-bottom:8px}
#modernReportCollections p{margin:8px 0 12px;line-height:1.5}
#modernReportCollections td small{display:block;margin-top:4px;overflow-wrap:anywhere}
#modernReportCollections table{min-width:540px}
#reportSheet .report-period-stamps{min-width:0;max-width:100%}
#reportSheet .report-generated{min-width:0;flex-wrap:wrap;gap:4px 8px;text-align:right}
#reportSheet #reportGenerated{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px;font-weight:400;line-height:1.5;letter-spacing:normal}
#reportSheet .report-health-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
#appView .organization-disclosure>.panel{margin:0;padding-top:12px}
#appView .view>.panel:empty{display:none}
#appView .dashboard-context{line-height:1.5;padding:10px 14px;margin:12px 0}
@media(max-width:700px){#collectionsView .panel{padding:16px}.collection-steps li{flex-direction:row;align-items:center}#modernCloseoutsPanel .closing-grid{grid-template-columns:minmax(0,1fr)}}
