/* Shared screen interface. Financial rules, document templates and print styles stay separate. */
@media screen {
 html{--bg:#f5f6f7;--surface:#ffffff;--raised:#f0f2f3;--text:#252a30;--muted:#5d656e;--line:#dadddf;--green:#087b56;--ui-accent:#087b56;--ui-on-accent:#ffffff;--ui-focus:#087b56;--ui-field:#ffffff;--ui-soft:#edf5f1;--ui-radius:16px;--studio-line:var(--line);--studio-panel:var(--surface);--studio-soft:var(--raised);--studio-accent:var(--ui-accent);--studio-ink:var(--text);--ex-bg:var(--bg);--ex-surface:var(--surface);--ex-raised:var(--raised);--ex-wash:var(--raised);--ex-line:var(--line);--ex-muted:var(--muted);--ex-text:var(--text);color-scheme:light}
 html[data-theme="dark"]{--bg:#181a1d;--surface:#212428;--raised:#292d31;--text:#f0f1f2;--muted:#bac0c7;--line:#3b4148;--green:#a1dfc0;--ui-accent:#a1dfc0;--ui-on-accent:#172b21;--ui-focus:#a1dfc0;--ui-field:#1b1e22;--ui-soft:#292d31;--studio-line:var(--line);--studio-panel:var(--surface);--studio-soft:var(--raised);--studio-accent:var(--ui-accent);--studio-ink:var(--text);--ex-bg:var(--bg);--ex-surface:var(--surface);--ex-raised:var(--raised);--ex-wash:var(--raised);--ex-line:var(--line);--ex-muted:var(--muted);--ex-text:var(--text);color-scheme:dark}
 html:root body{background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
 *,*::before,*::after{box-sizing:border-box}
 :is(button,input,select,textarea){font:inherit}
 :is(h1,h2,h3,h4,p){overflow-wrap:break-word}
 h1{line-height:1.2}h2{line-height:1.3}h3{line-height:1.4}
 :is(.section-head,.section-header){gap:16px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
 .section-head h2{margin:0;font-size:21px;font-weight:700;letter-spacing:-.4px}
 .section-head p{margin:6px 0 0;color:var(--muted);font-size:13px}
 .actions{gap:8px;align-items:center;flex-wrap:wrap}
 .actions>*{max-width:100%;min-width:0}
 .page :is(section,article,form,aside),.modal :is(section,article,form,aside){min-width:0}
 html:root body :is(.home-panel,.company-global-panel,.company-overview-details,.ranking-panel,.finance-breakdown,.table-wrap,.order,.product-catalog,.garage-summary,.ems-panel,.ledger-summary,.revenue-history,.public-booking-card,.exchange-card,.company-card){background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:none}
 html:root body :is(.home-panel,.company-global-panel,.company-overview-details,.ranking-panel,.ledger-summary,.revenue-history,.public-booking-card){padding:22px}
 html:root body :is(.home-panel,.ranking-panel,.ledger-summary)>:first-child{margin-top:0}
 html:root body :is(.home-panel,.ranking-panel,.ledger-summary)>:last-child{margin-bottom:0}
 html:root body .finance-breakdown{padding:8px 18px;margin:16px 0}
 html:root body .finance-row{gap:16px;padding:13px 0;border-bottom:1px solid var(--line);line-height:1.5}
 html:root body .finance-row:last-child{border-bottom:0}
 .finance-row>span{color:var(--muted)}.finance-row>strong{flex:none;font-variant-numeric:tabular-nums}
 html:root body :is(.stat,.company-metrics>div){background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0}
 html:root body .stat>span{font-size:12px;font-weight:600;color:var(--muted);line-height:1.5}
 html:root body .stat>strong{font-size:clamp(24px,2.1vw,32px);line-height:1.2;letter-spacing:-.7px;margin-top:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 html:root body :is(.help-line,.muted,.small.help-line){color:var(--muted);font-size:13px;line-height:1.7}
 p.help-line{padding:0;background:transparent;border:0;border-radius:0;margin:14px 0}
 html:root body :is(.primary,.secondary,.danger,.text-button,.theme-toggle,.toolbar-tools>summary){min-height:42px;border-radius:24px;font-size:13px;line-height:1.35;font-weight:650;padding:10px 16px;max-width:100%;text-decoration:none;box-shadow:none;transition:background-color .12s,border-color .12s,color .12s}
 html:root body .primary{background:var(--ui-accent);color:var(--ui-on-accent);border:1px solid var(--ui-accent)}
 html:root body .primary:hover:not(:disabled){background:color-mix(in srgb,var(--ui-accent) 88%,var(--ui-on-accent));color:var(--ui-on-accent);border-color:var(--ui-accent)}
 html:root body :is(.secondary,.theme-toggle,.toolbar-tools>summary){background:var(--raised);color:var(--text);border:1px solid var(--line)}
 html:root body :is(.secondary,.theme-toggle,.toolbar-tools>summary):hover:not(:disabled){background:var(--surface);border-color:var(--ui-accent)}
 html:root body .text-button{background:transparent;color:var(--ui-accent);border-color:transparent}
 html:root body .danger{background:#fff0ef;color:#a62831;border:1px solid #d29498}
 html[data-theme="dark"] body .danger{background:#3b252d;color:#ffbbc2;border-color:#a56570}
 html:root body button:disabled{opacity:.55;cursor:not-allowed}
 html:root body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px;box-shadow:none}
 html:root body :is(.input,.select,.week,textarea.input,select.input){background:var(--ui-field);color:var(--text);border:1px solid var(--line);border-radius:11px;min-height:44px;padding:11px 13px;max-width:100%;box-shadow:none;line-height:1.45}
 html:root body :is(.input,.select,.week):focus{border-color:var(--ui-focus)}
 html:root body :is(.input,.select,.week){border-color:#8294a3}
 html[data-theme="dark"] body :is(.input,.select,.week){border-color:#6c747e}
 html:root body :is(.input,.select,.week):focus{border-color:var(--ui-focus)}
 html:root body :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
 html:root body option{background:var(--surface);color:var(--text)}
 html:root body input[readonly]{background:var(--raised);color:var(--muted)}
 html:root body textarea{resize:vertical;min-height:100px}
 html:root body input:is([type=checkbox],[type=radio]){accent-color:var(--ui-accent);flex:none}
 .form-grid{gap:18px 20px;align-items:start}
 .field{display:grid;gap:8px;align-content:start;min-width:0;font-size:13px;font-weight:600;color:var(--text)}
 .field>.input,.field>select,.field>textarea{width:100%;margin:0;font-weight:400}
 .form-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6}
 .form-check input{margin-top:3px;min-width:17px;min-height:17px}
 html:root body .form-error{color:#a62831;font-size:13px;line-height:1.6}
 html[data-theme="dark"] body .form-error{color:#ffbbc2}
 .form-error:empty{display:none}
 html:root body .table-wrap{overflow:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
 html:root body table{font-size:13px;font-variant-numeric:tabular-nums;line-height:1.5}
 html:root body table :is(th,td){padding:14px 16px;border-color:var(--line);vertical-align:middle}
 html:root body table th{background:var(--raised);color:var(--muted);font-size:12px;font-weight:650;text-transform:none;letter-spacing:.1px}
 html:root body table tbody tr{background:var(--surface)}
 html:root body table tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface) 72%,var(--raised))}
 html:root body table tbody tr:hover{background:var(--raised)}
 html:root body table td{color:var(--text)}
 html:root body .product-inactive td,html:root body .product-inactive td strong{color:#991b1b;background:#fff1f2}
 html[data-theme="dark"] body .product-inactive td,html[data-theme="dark"] body .product-inactive td strong{color:#ffc1c9;background:#3a252e}
 html:root body table td small{font-size:12px;color:var(--muted);line-height:1.5}
 html:root body table td .text-button{min-height:36px;padding:6px 10px;text-align:left}
 html:root body table td :is(.secondary,.danger){min-height:36px;font-size:12px;padding:8px 12px}
 html:root body .modal{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;padding:26px;max-width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #0004}
 .modal .modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 0 20px;margin:0 0 22px;border-bottom:1px solid var(--line)}
 .modal .modal-head h2{margin:0;padding-top:4px;font-size:22px;line-height:1.3}
 .modal .modal-close{display:grid;place-items:center;flex:0 0 36px;min-height:36px;width:36px;height:36px;padding:0;border-radius:12px;background:var(--raised);color:var(--muted);border:1px solid var(--line)}
 .modal .modal-actions{background:var(--surface);border-top:1px solid var(--line);padding:18px 0 0;margin-top:22px;display:flex;gap:10px;justify-content:flex-end}
 .modal .form-grid .full{grid-column:1/-1}
 .modal .form-grid>label:not(.form-check){display:grid;gap:8px;font-size:13px;font-weight:600;min-width:0}
 .modal .form-grid>label:not(.form-check)>:is(input,select,textarea){width:100%;font-weight:400}
 .modal::backdrop{background:#080d14b3;backdrop-filter:none}
 html:root body :is(.company-group-nav,.workspace-nav,.exchange-tabs){gap:6px;align-items:center;max-width:100%;scrollbar-width:thin}
 html:root body .company-group-nav{background:var(--surface);border:1px solid var(--line);padding:5px;border-radius:28px}
 html:root body .company-group-nav>button{color:var(--muted);font-size:13px;min-height:40px;line-height:1.35}
 html:root body .company-group-nav>button.active{background:var(--ui-accent);color:var(--ui-on-accent)}
 html:root body .company-subnav>button.active{background:var(--ui-soft);color:var(--ui-accent);border-color:var(--line)}
 html:root body .premium-toolbar{padding-bottom:18px;margin-bottom:26px;border-bottom:1px solid var(--line);gap:12px}
 html:root body .top{background:#f9fbfd!important;border-color:var(--line)}
 html[data-theme="dark"] body .top{background:#15181b!important}
 html:root body .topnav .nav{min-height:44px;padding:11px 14px;gap:10px;font-size:13px;line-height:1.35}
 html:root body .topnav .nav:hover:not(.active){background:var(--raised);color:var(--text)}
 html:root body .topnav .nav.active{background:var(--ui-soft);color:var(--ui-accent)}
 html:root body :is(.pd-panel-title h2,.ranking-panel h2){font-size:18px}
 html:root body :is(.pd-chart-legend,.pd-panel-heading>span,.pd-summary-tax small,.pd-summary-tax,.pd-secondary-summary,.pd-treasury-note){font-size:12px;line-height:1.6}
 html:root body :is(.pd-team-list small,.pd-top-product small,.ex-kpi small){font-size:12px}
 html:root body :is(.ex-kpi,.exchange-card,.directory-card,.admin-control-card){border-radius:16px}
 html:root body :is(.public-booking-card,.auth-page,.login-panel){color:var(--text)}
 html:root body .empty{padding:24px 18px;color:var(--muted);font-size:14px;line-height:1.7;text-align:center}
 html:root body .empty:empty{display:none}
 html:root body .toast{background:var(--surface);color:var(--text);border:1px solid var(--line);border-left:4px solid var(--ui-accent);border-radius:14px;padding:14px 18px;font-size:14px;box-shadow:0 8px 28px #0002}
 html:root body .garage-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:24px;align-items:start;height:auto;overflow:visible}
 html:root body .garage-grid>.order{position:static;overflow:visible;height:auto}
 html:root body .garage-grid .order-head{padding:20px 24px;border-bottom:1px solid var(--line)}
 html:root body .garage-grid .order-head h2{margin:0;font-size:20px}
 html:root body .garage-grid .order-bottom{padding:24px;display:grid;gap:18px}
 .garage-grid .order-bottom>h3{margin:6px 0 0;font-size:16px}
 .garage-grid .options{margin:0;border:1px solid var(--line);border-radius:12px;background:transparent;overflow:hidden}
 .garage-grid .options>summary{padding:13px 16px;color:var(--text);font-size:13px;cursor:pointer}
 .garage-grid .options-body{padding:4px 16px 16px;display:grid;gap:14px}
 html:root body .garage-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html:root body .garage-service{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px 10px;align-items:center;padding:16px;border-radius:12px;background:var(--surface);border:1px solid var(--line);min-height:84px;color:var(--text)}
 .garage-service input{grid-row:1/3}.garage-service>span{font-size:13px;font-weight:650}.garage-service>strong{grid-column:2;font-size:14px;color:var(--ui-accent)}
 html:root body .garage-service:has(input:checked){background:var(--ui-soft);border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
 html:root body .garage-summary{padding:24px;position:sticky;top:20px;display:grid;gap:20px;overflow:hidden}
 .garage-summary .gs-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}
 .garage-summary .gs-heading h2{margin:3px 0 0;font-size:20px;line-height:1.3}
 .garage-summary .gs-kicker{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}
 .garage-summary .gs-count{padding:5px 10px;border:1px solid var(--line);border-radius:20px;color:var(--muted);font-size:12px;white-space:nowrap}
 .garage-summary .gs-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .garage-summary .gs-metric{padding:18px;border-radius:12px;background:var(--raised);min-width:0}
 .garage-summary .gs-metric:first-child{background:var(--ui-soft)}
 .garage-summary .gs-metric span{font-size:12px;display:block;color:var(--muted);font-weight:600;line-height:1.5}
 .garage-summary .gs-metric strong{display:block;margin-top:10px;font-size:clamp(26px,2.4vw,36px);line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.8px;overflow-wrap:anywhere;color:var(--text)}
 .garage-summary .gs-metric:first-child strong{color:var(--ui-accent)}
 .garage-summary #garage-lines{display:grid;gap:0;background:transparent;border:0;border-radius:0;padding:0;margin:0}
 .garage-summary .gs-empty{padding:22px 14px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}
 .garage-summary .gs-empty strong{display:block;color:var(--text);margin-bottom:4px;font-size:14px}
 .garage-summary .gs-line{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
 .garage-summary .gs-line>span{min-width:0}.garage-summary .gs-line small{display:block;color:var(--muted);margin-top:3px;font-size:12px}.garage-summary .gs-line>strong{font-variant-numeric:tabular-nums;flex:none}
 .garage-summary .gs-breakdown{margin:0;padding:0;border:0;background:transparent}
 .garage-summary .gs-breakdown>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;font-size:13px}
 .garage-summary .gs-breakdown dt{color:var(--muted);font-weight:400}.garage-summary .gs-breakdown dd{margin:0;flex:none;font-weight:600;font-variant-numeric:tabular-nums}
 .garage-summary .gs-costs{border-top:1px solid var(--line);padding-top:10px}
 .garage-summary .gs-rules{border-top:1px solid var(--line);padding-top:16px;color:var(--muted);font-size:12px;line-height:1.7}
 .garage-summary .gs-rules summary{cursor:pointer;color:var(--text);font-weight:600}.garage-summary .gs-rules p{margin:10px 0 0;font-size:12px}
 .garage-grid .submit-sale{min-height:48px;font-size:14px}
 @media(min-width:961px){.page{padding-top:24px}.garage-grid .garage-summary{align-self:start}}
 @media(max-width:1100px){html:root body .garage-grid{grid-template-columns:minmax(0,1fr)}html:root body .garage-summary{position:static}.garage-summary .gs-metrics{grid-template-columns:1fr 1fr}}
 @media(max-width:960px){html:root body .premium-toolbar{margin-bottom:20px;padding-bottom:12px}.modal .modal-actions{bottom:-20px;padding-bottom:10px}.field :is(input,select,textarea){font-size:16px}html:root body .table-wrap table th{font-size:12px}html:root body .table-wrap table td{font-size:13px}.garage-summary .gs-metric strong{font-size:30px}}
 @media(max-width:600px){html:root body :is(.home-panel,.company-global-panel,.company-overview-details,.ranking-panel,.ledger-summary,.revenue-history,.public-booking-card){padding:18px}html:root body :is(.section-head,.section-header){align-items:flex-start;gap:12px}.section-head h2{font-size:20px}.section-head>.actions{width:100%}.section-head>.actions>:is(button,select){flex:1 1 auto}html:root body .modal{padding:20px 16px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.modal .modal-head h2{font-size:20px}.modal .form-grid{grid-template-columns:minmax(0,1fr)}.modal .modal-actions{position:sticky;bottom:-20px;margin-top:18px;padding-bottom:max(10px,env(safe-area-inset-bottom));z-index:4}.modal .modal-actions>button{flex:1}.garage-grid .order-bottom,html:root body .garage-summary{padding:18px}.garage-summary{gap:18px}.garage-summary .gs-metric{padding:15px 12px}.garage-summary .gs-metric strong{font-size:26px}.garage-summary .gs-metric span{font-size:12px}.garage-summary .gs-heading h2{font-size:19px}.garage-summary .gs-count{font-size:11px;padding:5px 8px}.garage-service{padding:12px}.garage-grid .order-head{padding:18px}.garage-grid .order-bottom .contract-checkout{padding:14px}html:root body :is(.primary,.secondary,.danger,.theme-toggle){min-height:44px}html:root body .table-wrap :is(th,td){padding:12px}.page .form-grid{gap:16px}}
 @media(prefers-reduced-motion:reduce){*:not(.auth-horizon):not(.auth-horizon *),*:not(.auth-horizon):not(.auth-horizon *)::before,*:not(.auth-horizon):not(.auth-horizon *)::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
 /* Neutral surfaces and joined corners take precedence over the historical theme rules. */
 html:root body .cash-workspace :is(.order,.product-catalog,.garage-summary),html:root body :is(.order-head,.order-bottom,.contract-checkout,.cash-pole,.garage-service,.options){background:var(--surface);color:var(--text);border-color:var(--line)}
 html:root body .order>.order-head{border-radius:calc(var(--ui-radius) - 1px) calc(var(--ui-radius) - 1px) 0 0;background:var(--surface);margin:0;border-top:0;border-left:0;border-right:0}
 html:root body .order>.order-bottom:last-child{border-radius:0 0 calc(var(--ui-radius) - 1px) calc(var(--ui-radius) - 1px);margin:0;border:0;background:var(--surface)}
 html:root body .order-head h2{background:transparent}
 html:root body :is(.contract-checkout,.cash-pole,.garage-service){box-shadow:none}
 html:root body :is(.cash-pole.selected,.cash-pole[aria-pressed=true],.garage-service:has(input:checked)){background:var(--raised);border:1px solid var(--ui-accent);box-shadow:none;color:var(--text)}
 html:root body .cash-pole.selected :is(strong,span){color:var(--text)}
 html:root body .cash-pole small{color:var(--muted)}
 .actions:has(>#garage-edit-prices){margin-bottom:18px}
 html:root body .garage-summary .gs-metric{background:var(--raised);border:1px solid var(--line)}
 html:root body .garage-summary .gs-metric:first-child{background:var(--raised)}
 html:root body .garage-summary .gs-count{background:transparent}
 html:root body .garage-summary .gs-empty{border:1px solid var(--line);background:transparent}
 html:root body .topnav .nav.active{background:var(--raised);color:var(--ui-accent)}
 html:root body .garage-service:hover,html:root body .cash-pole:hover{background:var(--raised)}
 html:root body .order-bottom .options-body{background:transparent}
 html:root body .table-wrap{border-radius:14px}
 html:root body .table-wrap table thead tr:first-child th:first-child{border-top-left-radius:13px}
 html:root body .table-wrap table thead tr:first-child th:last-child{border-top-right-radius:13px}
 html:root body .table-wrap table tbody tr:last-child td:first-child{border-bottom-left-radius:13px}
 html:root body .table-wrap table tbody tr:last-child td:last-child{border-bottom-right-radius:13px}
 html:root body .company-group-nav{padding:5px;gap:5px;overflow: auto}
 html:root body .company-group-nav>button{border-radius:22px}
 html:root body .company-group-nav>button.active{background:var(--raised);color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--line)}
 .pawn-workshop{margin-top:24px}.pawn-workshop>.section-head p{max-width:760px}
 .pawn-recipes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}
 .pawn-recipe{padding:20px;border:1px solid var(--line);border-top:3px solid var(--ui-accent);border-radius:14px;background:var(--surface);display:flex;flex-direction:column;min-width:0}
 .pawn-recipe .section-head{gap:10px;margin-bottom:10px}.pawn-recipe h3{font-size:17px;margin:0}.pawn-recipe.is-inactive{border-top-color:var(--muted)}
 .pawn-recipe-output{font-size:13px;font-weight:650;color:var(--ui-accent);margin:0 0 12px}
 .pawn-recipe ul{list-style:none;padding:0;margin:0 0 16px}.pawn-recipe li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.pawn-recipe li small{color:var(--muted);flex:none}
 .pawn-recipe-cost{padding:12px;margin:0 0 16px;border-radius:10px;background:var(--raised)}.pawn-recipe-cost>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px}.pawn-recipe-cost dt{color:var(--muted)}.pawn-recipe-cost dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
 .pawn-recipe>.actions{margin-top:auto}.pawn-recipe-input{display:grid;grid-template-columns:minmax(0,2fr) minmax(85px,1fr) auto;gap:10px;align-items:end;margin-bottom:14px}.pawn-recipe-input .field{min-width:0}
 .pawn-craft-preview{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}.pawn-craft-preview h3{font-size:16px;margin-top:0}.pawn-craft-preview p{margin:8px 0;font-size:13px}.pawn-craft-preview small{color:var(--muted)}
 .direct-commission-note{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:var(--muted);white-space:normal}
 html:root body #service-cash select{color:var(--text);background:var(--ui-field);color-scheme:light}
 html[data-theme="dark"] body #service-cash select{color-scheme:dark}
 html:root body #service-cash select option{color:var(--text);background:var(--surface);-webkit-text-fill-color:var(--text);font-size:14px}
 .taxi-fleet-panel .farm-card .secondary{margin-top:10px}.taxi-fleet-panel>details{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.taxi-fleet-panel #service-fleet{margin-top:18px}
 @media(max-width:600px){.pawn-recipe{padding:16px}.pawn-recipe-input{grid-template-columns:minmax(0,1fr) 85px}.pawn-recipe-input>button{grid-column:1/-1;justify-self:end}.pawn-recipes{grid-template-columns:minmax(0,1fr)}}

}

/* Previous completed week, independent of dashboard filters. */
.pd-tax-card{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:18px;border:1px solid #b98b47;border-left:4px solid #d6a555;padding:22px}.pd-tax-card p,.pd-tax-amount small{color:var(--muted,#b9c2cc);font-size:12px}.pd-tax-card.is-paid,.pd-tax-card.is-zero{border-color:#589f83}.pd-tax-amount{display:grid;gap:7px;text-align:right}.pd-tax-amount strong{font-size:30px;color:inherit}.pd-tax-amount span{font-weight:600}@media(max-width:640px){.pd-tax-card{align-items:stretch;flex-direction:column;gap:18px;padding:18px}.pd-tax-amount{text-align:left}.pd-tax-amount strong{font-size:27px}}

@media screen{html:root body .premium-home .pd-secondary-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;padding:0;margin:20px 0;font-size:15px}html:root body .premium-home .pd-secondary-summary>span{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;padding:24px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;color:var(--text);font-size:15px;font-weight:600}html:root body .premium-home .pd-secondary-summary>span:nth-child(2){border-left-color:#bc914e}html:root body .premium-home .pd-secondary-summary>span>strong{font-size:clamp(28px,2.6vw,40px);font-weight:750;line-height:1.2;letter-spacing:-.6px;color:var(--text);overflow-wrap:anywhere}html:root body .premium-home .pd-secondary-summary>span:nth-child(n+3){grid-column:1/-1;flex-direction:row;align-items:center;padding:14px 20px;border-left-width:1px}html:root body .premium-home .pd-secondary-summary>span:nth-child(n+3)>strong{font-size:20px}@media(max-width:600px){html:root body .premium-home .pd-secondary-summary{grid-template-columns:1fr;gap:12px}html:root body .premium-home .pd-secondary-summary>span{padding:20px}}}

.government-scope-picker{display:grid;gap:8px;max-width:340px;margin:0 0 22px;font-weight:600}.government-scope-picker select{min-height:46px}

.pd-service-staff{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.pd-service-staff article{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:10px}.pd-service-staff small{display:block;color:var(--muted);margin-top:5px}@media(max-width:900px){.pd-service-staff{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.pd-service-staff{grid-template-columns:1fr}}

.police-service-badge{display:inline-flex;float:left;margin-right:16px;width:68px;height:68px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface);font-size:19px;font-weight:750}
@media screen{
html:root body .service-pay-workspace{--sp-bg:var(--surface,#23272c);--sp-line:var(--line,#3b4148);--sp-text:var(--text,#f0f3f5);color:var(--sp-text);margin-top:18px}.sp-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.sp-main{min-width:0}.sp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.sp-heading h2{font-size:clamp(24px,2.1vw,34px);letter-spacing:-.6px;line-height:1.2;margin-bottom:10px}.sp-heading p{color:var(--muted);font-size:14px}.sp-week{display:flex;flex:none;align-items:stretch}.sp-week button{border-radius:0!important;padding:12px;min-height:58px}.sp-week button:first-child{border-radius:9px 0 0 9px!important}.sp-week button:last-child{border-radius:0 9px 9px 0!important}.sp-week small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.sp-metrics{display:grid;grid-template-columns:1fr 1.15fr 1.15fr;gap:14px;margin-bottom:18px}.sp-metrics article{display:flex;align-items:center;gap:16px;background:var(--sp-bg);border:1px solid var(--sp-line);border-radius:9px;padding:20px;min-width:0}.sp-metrics article>span{color:var(--green);flex:none}.sp-metrics svg{height:34px;width:34px}.sp-metrics strong{font-size:clamp(22px,2.1vw,31px);line-height:1.2;overflow-wrap:anywhere}.sp-metrics small{display:block;color:var(--muted);margin-top:6px;font-size:12px}.sp-metrics .sp-state strong{font-size:18px}.sp-state>span{color:#d8b274!important}.sp-toolbar{display:flex;gap:12px;margin-bottom:16px;align-items:stretch}.sp-toolbar label{min-width:0}.sp-search{flex:1}.sp-toolbar .input{height:46px;margin:0;width:100%}.sp-settings{position:relative}.sp-settings>summary{display:flex;align-items:center;min-height:46px;cursor:pointer;padding:10px 16px;white-space:nowrap}.sp-settings>div{position:absolute;right:0;top:52px;z-index:12;display:grid;gap:10px;background:var(--sp-bg);border:1px solid var(--sp-line);border-radius:10px;padding:16px;min-width:250px;box-shadow:0 12px 25px #0003}.sp-grade{background:var(--sp-bg);border:1px solid var(--sp-line);border-radius:9px;margin-bottom:16px;overflow:visible}.sp-grade>header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--sp-line);gap:15px}.sp-grade h3{font-size:15px;text-transform:uppercase;letter-spacing:.5px;color:var(--grade-color);display:flex;align-items:center;gap:10px}.sp-grade h3:before{content:'';width:12px;height:12px;border-radius:50%;background:var(--grade-color);flex:none}.sp-grade>header>span{font-size:12px;color:var(--muted)}.sp-column-head,.sp-agent{display:grid;grid-template-columns:minmax(170px,1.6fr) 150px minmax(110px,.8fr) minmax(100px,.8fr) 30px;gap:18px;align-items:center;padding:16px}.sp-column-head{font-size:11px;color:var(--muted);padding-top:12px;padding-bottom:12px;border-bottom:1px solid var(--sp-line)}.sp-agent+.sp-agent{border-top:1px solid var(--sp-line)}.sp-identity{display:flex;gap:12px;align-items:center;min-width:0}.sp-identity strong{font-size:14px;display:block}.sp-identity small{color:var(--grade-color);display:block;margin-top:5px;font-size:11px;overflow-wrap:anywhere}.sp-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border:1px solid var(--sp-line);border-radius:50%;color:var(--grade-color);font-size:14px;font-weight:650;background:var(--surface2,var(--sp-bg))}.sp-stepper{display:flex;height:38px;border:1px solid var(--sp-line);border-radius:7px;overflow:hidden}.sp-stepper button{border:0!important;border-radius:0!important;width:36px;min-height:0!important;padding:0!important;flex:none;background:var(--surface2,var(--sp-bg));color:var(--sp-text);font-size:21px}.sp-stepper input.input{border:0!important;border-left:1px solid var(--sp-line)!important;border-right:1px solid var(--sp-line)!important;border-radius:0!important;min-width:0;width:100%;height:36px;min-height:0;text-align:center;padding:4px;appearance:textfield}.sp-stepper input::-webkit-inner-spin-button{appearance:none}.sp-days small{display:block;text-align:center;margin-top:5px;font-size:10px;color:var(--muted)}.sp-bonus>span:last-child{display:flex;align-items:center;border:1px solid var(--sp-line);border-radius:7px;overflow:hidden;height:38px}.sp-bonus .input{border:0!important;border-radius:0!important;min-width:0;width:100%;height:36px;min-height:0;padding:8px;text-align:center}.sp-bonus b{padding:8px 10px;border-left:1px solid var(--sp-line);font-size:12px;color:var(--muted)}.sp-total strong{font-size:18px;white-space:nowrap}.sp-total small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.sp-mobile-label{display:none}.sp-agent-details{position:relative}.sp-agent-details>summary{cursor:pointer;font-size:24px;list-style:none;text-align:center;border-radius:6px}.sp-agent-details>summary:focus-visible,.sp-settings>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.sp-agent-details>div{position:absolute;right:0;top:34px;z-index:8;background:var(--sp-bg);border:1px solid var(--sp-line);padding:18px;border-radius:9px;min-width:240px;display:grid;gap:12px;box-shadow:0 12px 25px #0003;font-size:12px}.sp-footer{margin:18px 0}.sp-save-state{border:1px solid var(--sp-line);border-radius:9px;background:var(--sp-bg);padding:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px}.sp-save-state>span:first-child{color:var(--green)}.sp-save-state strong{margin-left:15px;color:var(--green);font-size:23px}.sp-footer-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:14px}.sp-footer>p{text-align:right;font-size:11px;color:var(--muted);margin-top:10px}.sp-aside>section,.sp-aside>details{background:var(--sp-bg);border:1px solid var(--sp-line);border-radius:9px;padding:22px;margin-bottom:18px}.sp-aside h3{font-size:16px;margin-bottom:16px}.sp-aside p{padding:15px 0;line-height:1.5}.sp-aside p+p{border-top:1px solid var(--sp-line)}.sp-aside strong{font-size:13px}.sp-aside small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:7px}.sp-aside ol{list-style:none;counter-reset:step;margin:0;padding:0}.sp-aside li{counter-increment:step;position:relative;padding:15px 0 20px 40px}.sp-aside li:before{content:counter(step);position:absolute;left:0;top:12px;background:var(--surface2,var(--sp-bg));border:1px solid var(--sp-line);border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:var(--green)}.sp-aside summary{cursor:pointer;font-size:13px;font-weight:600}.sp-grade[hidden],.sp-agent[hidden],#attendance-no-results[hidden]{display:none!important}
@media(min-width:1200px) and (max-width:1550px){.sp-layout{grid-template-columns:minmax(0,1fr) 230px;gap:16px}.sp-column-head,.sp-agent{grid-template-columns:minmax(135px,1.2fr) 120px 95px 95px 24px;gap:12px}.sp-heading{align-items:flex-start;flex-direction:column}.sp-metrics article{padding:16px;gap:10px}.sp-metrics svg{width:26px;height:26px}.sp-identity{gap:8px}.sp-avatar{width:32px;height:32px}}
@media(max-width:1199px){.sp-layout{grid-template-columns:1fr}.sp-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sp-aside>details{grid-column:1/-1}.sp-metrics article{padding:16px}.sp-heading{flex-wrap:wrap}}
@media(max-width:700px){.sp-metrics{grid-template-columns:1fr 1fr;gap:10px}.sp-metrics .sp-state{grid-column:1/-1}.sp-heading h2{font-size:26px}.sp-week{width:100%}.sp-week button:nth-child(2){flex:1}.sp-toolbar{flex-wrap:wrap}.sp-search{flex-basis:100%}.sp-toolbar>label:nth-child(2){flex:1}.sp-column-head{display:none}.sp-agent{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:14px;padding:16px}.sp-identity{grid-column:1/3}.sp-agent-details{grid-column:3;grid-row:1}.sp-days{grid-column:1;grid-row:2}.sp-bonus{grid-column:2/4;grid-row:2}.sp-total{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.sp-mobile-label{display:block!important;font-size:11px;color:var(--muted);margin-bottom:7px}.sp-aside{display:block}.sp-save-state{flex-direction:column;align-items:flex-start}.sp-footer-actions>button{flex:1 1 160px}.sp-footer>p{text-align:left}.sp-agent-details>div{right:0;max-width:calc(100vw - 60px)}.sp-metrics strong{font-size:24px}}
}
@media screen{.service-pay-workspace .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.service-pay-workspace input:focus-visible,.service-pay-workspace button:focus-visible,.service-pay-workspace select:focus-visible{outline:2px solid var(--green);outline-offset:2px}.service-pay-workspace input:disabled,.service-pay-workspace button:disabled{opacity:.55;cursor:not-allowed}}
@media screen{
html:root body .cash-workspace{container-type:inline-size;min-width:0}html:root body .cash-workspace .cash-grid{width:100%;min-width:0;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:20px}html:root body .cash-workspace .cash-grid>*,html:root body .cash-workspace .worker,html:root body .cash-workspace .worker .select{min-width:0;max-width:100%;box-sizing:border-box}html:root body .catalog-tools{gap:10px;align-items:end;flex-wrap:wrap}html:root body .catalog-tools>label{min-width:0}html:root body .catalog-tools .catalog-search{flex:1 1 220px}html:root body .catalog-tools select{max-width:100%}.catalog-view-switch{display:flex;gap:0;flex:none}.catalog-view-switch button{border-radius:0!important}.catalog-view-switch button:first-child{border-radius:8px 0 0 8px!important}.catalog-view-switch button:last-child{border-radius:0 8px 8px 0!important}html:root body .catalog-view-switch button[aria-pressed="true"]{background:var(--green);color:var(--on-primary,#132b22);border-color:var(--green);font-weight:700}html:root body .cash-workspace #cash-products{grid-template-columns:repeat(var(--catalog-cols,3),minmax(0,1fr))!important;grid-auto-rows:minmax(132px,auto)!important;align-content:start;align-items:stretch;overflow-y:auto;overflow-x:hidden;max-height:none!important;min-width:0;padding:3px 6px 6px 3px;gap:12px!important;scrollbar-gutter:stable}html:root body .cash-workspace #cash-products .product{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;min-width:0;height:auto;min-height:132px!important;max-width:100%;padding:14px!important;gap:10px;overflow:visible;border-radius:10px;box-sizing:border-box}html:root body .cash-workspace #cash-products .product-symbol{font-size:28px;line-height:1.2;align-self:flex-start;min-width:0}html:root body .cash-workspace #cash-products .product-name{display:block!important;font-size:14px!important;line-height:1.4!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;-webkit-line-clamp:unset!important;line-clamp:unset!important;max-height:none!important;height:auto;text-align:left;min-width:0}html:root body .cash-workspace #cash-products .product-bottom{display:flex;justify-content:space-between;align-items:center;min-width:0;width:100%;gap:8px;margin-top:auto}html:root body .cash-workspace #cash-products .price{font-size:17px!important;white-space:normal;overflow-wrap:anywhere}html:root body .cash-workspace #cash-products .add-symbol{width:30px;height:30px;flex:0 0 30px}html:root body .cash-workspace #cash-products .add-symbol svg{width:18px;height:18px}html:root body .cash-workspace #cash-products.catalog-list{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:minmax(76px,auto)!important}html:root body .cash-workspace #cash-products.catalog-list .product{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(85px,auto);gap:12px;align-items:center;min-height:76px!important}html:root body .cash-workspace #cash-products.catalog-list .product-symbol{align-self:center}html:root body .cash-workspace #cash-products.catalog-list .product-bottom{width:auto;margin:0;gap:12px}html:root body .cash-workspace #cash-products.catalog-list .price-flag{grid-column:2/-1}html:root body .cash-workspace .catalog-view-switch button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@container(max-width:900px){html:root body .cash-workspace .cash-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important}html:root body .cash-workspace .order{position:static!important;width:100%}html:root body .cash-workspace #cash-products{max-height:65dvh!important}}
@media(max-width:760px){html:root body .cash-workspace .cash-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important}html:root body .cash-workspace #cash-products{max-height:60dvh!important}html:root body .catalog-tools .catalog-search{flex-basis:100%}html:root body .catalog-tools>label:not(.catalog-search){flex:1 1 150px}html:root body .catalog-view-switch button{min-height:44px}html:root body .cash-workspace #cash-products .product{padding:12px!important}html:root body .cash-workspace #cash-products.catalog-list .product{grid-template-columns:30px minmax(0,1fr) minmax(72px,auto);gap:8px}html:root body .cash-workspace #cash-products.catalog-list .product-bottom{gap:7px}html:root body .cash-workspace #cash-products.catalog-list .price{font-size:15px!important}}
}

@media screen{html:root body .cash-workspace .cash-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important}html:root body .cash-workspace .order{min-width:0!important;width:100%;max-width:100%}html:root body .cash-workspace .order :is(.input,.select,select,input:not([type=checkbox]),button){max-width:100%;box-sizing:border-box}html:root body .cash-workspace .order :is(.order-row-top,.order-row-controls,.total){flex-wrap:wrap;min-width:0}html:root body .cash-workspace .order :is(.order-head,.order-bottom,.order-list){min-width:0}html:root body .cash-workspace .order :is(strong,h2,h3,small,label,.number){overflow-wrap:anywhere;white-space:normal}html:root body .cash-workspace .order .cash-poles{grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr))!important}html:root body .cash-workspace .order .cash-pole{min-width:0;width:100%;padding:10px}html:root body .cash-workspace .order .qty{display:flex;min-width:0;max-width:100%}html:root body .cash-workspace .order .qty input{min-width:0;width:42px}html:root body .cash-workspace .order .qty button{flex-shrink:0}@container(max-width:600px){html:root body .cash-workspace .cash-grid{gap:10px}html:root body .cash-workspace .order :is(.order-head,.order-bottom,.order-list){padding:10px!important}html:root body .cash-workspace .order :is(h2,h3){font-size:15px}html:root body .cash-workspace .order :is(.field,.order-row-top,.pay-check,.cash-pole){font-size:12px}html:root body .cash-workspace .order .qty button,html:root body .cash-workspace .order .qty input{width:32px!important;height:40px!important;min-height:40px!important;padding:3px}html:root body .cash-workspace .order .total strong{font-size:22px}html:root body .cash-workspace .order .order-row{padding:12px 0}html:root body .cash-workspace #cash-products.catalog-list .product{grid-template-columns:24px minmax(0,1fr);gap:8px}html:root body .cash-workspace #cash-products.catalog-list .product-bottom{grid-column:1/-1;width:100%}html:root body .cash-workspace #cash-products .product-name{font-size:13px!important}html:root body .cash-workspace .catalog-tools>label{flex-basis:100%}html:root body .cash-workspace .catalog-view-switch{width:100%}html:root body .cash-workspace .catalog-view-switch button{flex:1}}}
@media screen{
/* The catalogue scrolls; each track measures the full product, including its footer. */
html:root body .cash-workspace #cash-products{grid-auto-rows:max-content!important;align-content:start!important;align-items:stretch!important}
html:root body .cash-workspace #cash-products:not(.catalog-list) .product{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:max-content max-content max-content!important;align-content:start!important;align-items:start!important;height:auto!important;min-height:176px!important;max-height:none!important;gap:10px!important;padding:14px!important}
html:root body .cash-workspace #cash-products .product>*{min-height:0;flex-shrink:0;box-sizing:border-box}
html:root body .cash-workspace #cash-products .product .product-bottom{position:static!important;align-self:end;flex-shrink:0!important;margin-top:0!important;min-height:30px!important;max-height:none!important}
html:root body .cash-workspace #cash-products:not(.catalog-list) .price-flag{grid-row:auto;grid-column:1}
html:root body .cash-workspace #cash-products.catalog-list{grid-auto-rows:max-content!important}
html:root body .cash-workspace #cash-products.catalog-list .product{height:auto!important;max-height:none!important;grid-template-rows:auto!important;min-height:76px!important}
}

/* Territorial public dashboard */
.municipal-dashboard{display:grid;gap:20px;margin:24px 0}.md-period,.md-period strong{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.md-period{color:var(--muted);font-size:13px}.md-hero,.md-analysis{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px}.md-treasury,.md-tax,.md-panel,.md-metric{background:var(--panel,#202429);border:1px solid var(--line,#3b424b);border-radius:18px;padding:24px;min-width:0}.md-treasury{border-top:3px solid #90d8b4}.md-tax{border-top:3px solid #e0ba75}.municipal-dashboard h2{font-size:18px;display:flex;align-items:center;gap:10px;margin:0}.municipal-dashboard svg:not(.md-donut){width:22px;height:22px;flex-shrink:0}.municipal-dashboard .section-head{gap:16px;margin-bottom:20px}.md-balance-label{display:block;color:var(--muted);font-size:13px;margin-top:20px}.md-balance,.md-tax-total{display:block;font-size:clamp(28px,3.3vw,52px);line-height:1.2;letter-spacing:-1px;margin:10px 0 22px;overflow-wrap:anywhere}.md-tax-total{color:#e0ba75}.md-observed{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.md-observed div,.md-tax-split,.md-cash-flow{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.md-observed small{display:block;margin-top:8px;color:var(--muted)}.md-cash-flow{margin:20px 0}.md-cash-flow span,.md-tax-split span{color:var(--muted);font-size:13px}.md-cash-flow strong,.md-tax-split strong{display:block;color:var(--text);font-size:21px;margin-top:8px}.md-help{color:var(--muted);font-size:12px;line-height:1.7}.md-tax-status{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.md-tax-status>*{border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:12px}.md-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.md-metric>span{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}.md-metric>strong{display:block;font-size:26px;margin:14px 0 8px;overflow-wrap:anywhere}.md-metric small{color:var(--muted);line-height:1.5}.md-distribution{display:flex;align-items:center;gap:24px}.md-donut{width:180px;max-width:40%;flex-shrink:0}.md-donut text{fill:var(--text);font-size:17px;font-weight:700}.md-donut .md-donut-caption{font-size:7px;font-weight:400}.md-distribution ol{list-style:none;margin:0;padding:0;flex:1;min-width:0}.md-distribution li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:13px}.md-distribution li span{overflow-wrap:anywhere}.md-distribution li span:before{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--md-color);margin-right:9px}.md-distribution strong{white-space:nowrap}.md-history{height:210px;display:flex;gap:12px;align-items:stretch}.md-history>div{display:flex;flex-direction:column;flex:1;min-width:0;text-align:center;gap:8px}.md-history strong{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.md-bar{flex:1;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}.md-bar i{display:block;width:65%;max-width:40px;background:#90d8b4;border-radius:6px 6px 0 0}.md-history small{font-size:11px;color:var(--muted)}.md-panel td small{display:block;margin-top:6px;color:var(--muted)}.md-panel .table-wrap{max-width:100%;overflow:auto}.md-budget{display:grid;gap:10px;padding:14px 0;border-top:1px solid var(--line)}.md-budget span{font-size:13px;color:var(--muted)}.md-budget progress{width:100%;height:8px;accent-color:#90d8b4}.md-movement{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.md-movement small{display:block;color:var(--muted);margin-top:6px}.md-movement .is-income{color:#90d8b4}.md-movement .is-expense{color:#e5a8ac}.municipal-dashboard .text-button{background:none;border:0;color:var(--text);padding:8px 0;text-align:left;cursor:pointer}.municipal-dashboard .section-head p{font-size:13px;color:var(--muted);line-height:1.6}.municipal-dashboard .section-head>span{color:var(--muted);font-size:12px}
@media(max-width:1100px){.md-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.md-hero,.md-analysis{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.md-treasury,.md-tax,.md-panel,.md-metric{padding:16px;border-radius:14px}.md-metrics{gap:10px}.md-metric>strong{font-size:22px}.md-history{gap:5px}.md-distribution{gap:12px}.md-distribution li{flex-wrap:wrap}.md-observed div{display:grid}.municipal-dashboard .section-head{flex-wrap:wrap}}

.pawn-purchase-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start}.pawn-purchase-layout>*{min-width:0}.pawn-purchase-layout h3{margin-top:0}.pawn-purchase-layout p{line-height:1.6}.pawn-purchase-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;max-height:720px;overflow:auto;padding:2px}.pawn-purchase-item,.pawn-purchase-basket{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:16px}.pawn-purchase-item{display:grid;gap:10px}.pawn-purchase-item h4{margin:0;overflow-wrap:anywhere}.pawn-purchase-item small{color:var(--muted);line-height:1.5}.pawn-purchase-item label{display:grid;gap:6px;font-size:13px}.pawn-purchase-item input,.pawn-purchase-basket input,.pawn-purchase-basket select{width:100%;min-width:0;box-sizing:border-box}.pawn-purchase-basket{position:sticky;top:20px;display:grid;gap:14px}.pawn-purchase-basket .purchase-total{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:16px}.pawn-purchase-basket .purchase-total strong{font-size:30px;color:var(--text);overflow-wrap:anywhere}.pawn-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.pawn-cart-line span{overflow-wrap:anywhere}.pawn-cart-line small{display:block;color:var(--muted);margin-top:5px}.pawn-purchase-layout .field{display:grid;gap:7px}.pawn-purchase-layout .form-check{display:flex;align-items:start;gap:8px}.pawn-purchase-layout .form-check input{width:auto}.pawn-purchase-layout fieldset{min-width:0}#pawn-purchase-cart-form>fieldset{border:0;padding:0;margin:0;min-width:0}
@media(max-width:700px){.pawn-purchase-layout{gap:10px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.pawn-purchase-item,.pawn-purchase-basket{padding:10px;border-radius:12px}.pawn-purchase-basket{position:static}.pawn-cart-line{grid-template-columns:minmax(0,1fr) auto;gap:5px}.pawn-cart-line strong{grid-row:2}.pawn-cart-line button{grid-column:2;grid-row:1/3}.pawn-purchase-basket .purchase-total strong{font-size:23px}.pawn-purchase-layout h3{font-size:16px}.pawn-purchase-layout input,.pawn-purchase-layout select{font-size:14px}.pawn-purchase-items{max-height:70vh}}

.dealer-sale-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start}.dealer-sale-layout.is-catalog{grid-template-columns:minmax(0,1fr)}.dealer-catalog,.dealer-order{min-width:0}.dealer-catalog .farm-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}.dealer-order{border:1px solid var(--line);border-top:3px solid #90d8b4;border-radius:18px;padding:20px;background:var(--surface);position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}.dealer-order h2{font-size:20px;margin:0}.dealer-order h3{font-size:23px;margin:0;overflow-wrap:anywhere}.dealer-order fieldset{border:0;margin:0;padding:0;display:grid;gap:15px;min-width:0}.dealer-order .field{display:grid;gap:7px}.dealer-order .input{width:100%;min-width:0;box-sizing:border-box}.dealer-order .form-check{display:flex;gap:8px;align-items:start}.dealer-order .help-line{line-height:1.6}.dealer-order-totals{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;display:grid;gap:13px}.dealer-order-totals>span{display:flex;justify-content:space-between;gap:12px;font-size:13px}.dealer-order-totals strong{white-space:nowrap}.dealer-order-totals>span:nth-child(2){font-size:18px;font-weight:700}.dealer-order .form-error:empty{display:none}.dealer-catalog .is-selected{border-color:#90d8b4;box-shadow:inset 0 0 0 1px #90d8b4}.dealer-order #dealer-order-warning{color:var(--text)}
@media(max-width:700px){.dealer-sale-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:10px}.dealer-order{position:static;max-height:none;padding:10px;border-radius:12px}.dealer-order h2{font-size:16px}.dealer-order h3{font-size:18px}.dealer-order-totals>span{flex-wrap:wrap;gap:5px}.dealer-order-totals>span:nth-child(2){font-size:17px}.dealer-catalog .farm-card{padding:10px;min-width:0}.dealer-catalog .farm-card h3{overflow-wrap:anywhere}.dealer-order input,.dealer-order select{font-size:14px}}

/* Shared containment and document flow. Screen only: original printed documents stay intact. */
@media screen{
 html:root body .page :is(.company-content,.home-panel,.catalog-panel,.table-wrap,.form-grid,.stats,.actions,.options-body,.columns,.company-card,.farm-grid,.purchase-layout,.purchase-basket,.pawn-purchase-layout,.dealer-sale-layout,.garage-grid,.cash-grid){min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
 html:root body :is(.form-grid,.options-body,.stats,.columns,.farm-grid,.cash-grid,.garage-grid,.dealer-sale-layout,.pawn-purchase-layout)>*{min-inline-size:0;box-sizing:border-box}
 html:root body .page :is(h1,h2,h3,h4,.stat strong,.company-card-title,.help-line,.form-error){overflow-wrap:anywhere}
 html:root body .page .section-head>div:not(.actions){min-width:0;max-width:100%}
 html:root body .page :is(.section-head,.section-header)>.actions{max-width:100%;flex-wrap:wrap;row-gap:10px}
 html:root body .page :is(.actions,.employee-actions)>:is(button,a){white-space:normal;overflow-wrap:anywhere;line-height:1.4;height:auto}
 html:root body :is(.page,.modal) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
 html:root body .page :is(.table-wrap,.records-table-wrap){min-width:0;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
 html:root body .page .table-wrap :is(th,td){overflow-wrap:anywhere}
 html:root body .page .table-wrap .actions{flex-wrap:wrap;min-width:0}
 html:root body .page :is(.farm-card,.pawn-item,.pawn-purchase-item){height:auto;max-height:none;min-width:0;box-sizing:border-box}
 html:root body .page :is(.farm-card,.pawn-item,.pawn-purchase-item) :is(h3,h4,p,small){min-width:0;max-width:100%;overflow-wrap:anywhere}
 html:root body #pawnshop-workspace>.field{display:grid;position:static;margin-block:20px 22px;min-width:0}
 html:root body #pawnshop-workspace>:is(#pawn-purchase-workspace,#pawn-sale-workspace){clear:both;min-width:0;max-width:100%;padding-top:2px}
 html:root body #pawnshop-workspace .pawn-purchase-layout h3{line-height:1.4;margin:0 0 8px}
 html:root body #pawnshop-workspace .pawn-purchase-layout p{margin:0 0 14px}
 html:root body :is(.home-panel,.company-content)>.field+ :is(.table-wrap,.farm-grid,.products,section,form){margin-top:18px}
 html:root body .dealer-catalog>.actions{align-items:stretch;margin-bottom:18px;gap:10px}
 html:root body .dealer-catalog>.actions>:is(input,select){flex:1 1 170px;min-width:0}
 html:root body .modal :is(fieldset,.form-grid,.modal-head,.modal-actions){min-width:0;max-width:100%;box-sizing:border-box}
 html:root body .modal .modal-head h2{min-width:0;overflow-wrap:anywhere}
 html:root body .modal .modal-actions{position:static;inset:auto;z-index:auto;flex-wrap:wrap;gap:10px;padding-bottom:max(4px,env(safe-area-inset-bottom))}
 html:root body .modal .modal-actions>:is(button,a){min-width:0;max-width:100%;white-space:normal;height:auto;overflow-wrap:anywhere}
 html:root body .modal :is(input,select,textarea){scroll-margin-block:24px}
 html:root body .toolbar-tools-menu{min-width:min(240px,calc(100vw - 32px));max-width:min(360px,calc(100vw - 32px));box-sizing:border-box}
 html:root body .toolbar-tools-menu button{white-space:normal;overflow-wrap:anywhere;text-align:left}
 @media(min-width:701px){html:root body .pawn-purchase-basket{max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}
 @media(max-width:700px){
  html:root body .page :is(.stat strong,.pd-kpi strong){font-size:clamp(19px,5vw,30px);line-height:1.3}
  html:root body .page :is(.pawn-purchase-layout,.dealer-sale-layout){grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:10px}
  html:root body .page .dealer-sale-layout.is-catalog{grid-template-columns:minmax(0,1fr)}
  html:root body .pawn-cart-line{grid-template-columns:minmax(0,1fr) auto}
  html:root body .dealer-order-totals>span{min-width:0;flex-wrap:wrap}
  html:root body .dealer-order-totals strong{white-space:normal;overflow-wrap:anywhere}
  html:root body .page .pawn-purchase-item label{font-size:12px}
  html:root body .page :is(.company-location,.view-nav,.company-group-nav){max-width:100%;box-sizing:border-box}
 }
}

/* Horizon / Los Santos — scoped login, no animated layout or financial UI changes. */
@media screen{
 html:root body .auth-scene.auth-horizon{--auth-form-text:#f1f4f3;--auth-form-muted:#bdc8c1;--auth-form-bg:#141b19;--auth-form-line:#7b8f83;position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:100dvh;width:100%;max-width:none;margin:0;padding:0;background:#101614;color:#f1f4f3;overflow:hidden}
 .auth-horizon .auth-city-art{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;contain:paint}
 .auth-horizon .auth-city-image{position:absolute;inset:-4%;background:#14221c url('/login-los-santos.webp?v=1') center/cover no-repeat;animation:legacy-city-camera 28s ease-in-out infinite alternate;will-change:transform}
 .auth-horizon .auth-cloud-layer{position:absolute;top:7%;left:-30%;width:110%;height:35%;background:radial-gradient(ellipse at 40% 50%,#d5e3d62b,transparent 60%);opacity:.6;animation:legacy-city-clouds 42s ease-in-out infinite alternate}
 .auth-horizon .auth-cinematic-shade{position:absolute;inset:0;background:linear-gradient(90deg,#06110d45 0,#0b151250 44%,#101614ec 62%,#101614 78%),linear-gradient(0deg,#101614c9,transparent 35%)}
 .auth-horizon .auth-traffic{position:absolute;bottom:15%;left:-8%;height:3px;width:9px;border-radius:50%;background:#ffdfb0;box-shadow:0 0 12px 3px #ffd7a269;animation:legacy-city-traffic 19s linear infinite}
 .auth-horizon .auth-traffic.t2{bottom:20%;animation-duration:25s;animation-delay:-11s;background:#ffb38d;box-shadow:0 0 9px 2px #ec815a66}
 .auth-horizon .auth-traffic.t3{bottom:8%;animation-duration:22s;animation-delay:-7s}
 html:root body .auth-horizon .auth-top{position:relative;inset:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:none;padding:26px 4vw;border-bottom:1px solid #8bac982b;background:#0d1412bd;z-index:2}
 .auth-horizon .auth-brand{display:flex;align-items:center;gap:24px;min-width:0}.auth-horizon .auth-brand .brand{margin:0;flex:none}.auth-horizon .auth-brand img{width:190px;height:54px;object-fit:contain}.auth-horizon .auth-brand>span{border-left:1px solid #7a8e8066;padding-left:24px;font-size:16px;font-weight:600;color:#e7eee9}
 .auth-horizon .auth-display-controls{display:flex;flex-wrap:wrap;justify-content:end;gap:10px}.auth-horizon .auth-display-controls button{min-height:36px;border:1px solid #5e7669;border-radius:7px;background:#17241ee6;color:#dae9df;font-size:11px;padding:9px 12px}.auth-horizon .auth-display-controls button:hover{background:#293e33}.auth-horizon .auth-display-controls button:disabled{opacity:.8;cursor:default}
 html:root body .auth-horizon .auth-layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(360px,1fr);gap:7vw;align-items:center;flex:1;width:100%;max-width:1800px;margin:0 auto;padding:60px 6vw}
 html:root body .auth-horizon .auth-intro{margin:0;padding:0;max-width:740px;min-width:0;background:none;align-self:center}.auth-horizon .auth-eyebrow{color:#d0e7d8;font-size:10px;letter-spacing:2.5px;font-weight:700}
 html:root body .auth-horizon .auth-intro h1{font-family:inherit;font-size:clamp(52px,6.3vw,96px);font-weight:750;letter-spacing:-3.5px;line-height:1.03;margin:23px 0 26px;color:#fff;text-shadow:0 3px 28px #0006;max-width:100%}.auth-horizon .auth-intro h1 em{font-style:normal;color:#a6f0c8}
 html:root body .auth-horizon .auth-intro p{font-size:16px;line-height:1.8;color:#f0f4f1;margin:0 0 28px;max-width:550px;text-shadow:0 2px 8px #000}.auth-horizon .auth-intro>*{animation:legacy-login-enter .9s ease both}.auth-horizon .auth-intro h1{animation-delay:.1s}.auth-horizon .auth-intro p{animation-delay:.2s}.auth-horizon .auth-public-link{display:inline-block;color:#d6f7e4;font-size:12px;text-underline-offset:4px;animation-delay:.3s}
 html:root body .auth-horizon .auth-card{justify-self:end;max-width:470px;width:100%;min-width:0;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--auth-form-text);backdrop-filter:none}
 html:root body .auth-horizon .auth-card h2{font-size:clamp(32px,4vw,54px);line-height:1.1;letter-spacing:-1.8px;margin:0 0 16px;color:var(--auth-form-text)}.auth-horizon .auth-card-subtitle{font-size:13px;line-height:1.7;color:var(--auth-form-muted);margin:0 0 32px}
 html:root body .auth-horizon .auth-card .field{display:grid;gap:10px;color:var(--auth-form-text);font-size:13px;margin:23px 0;min-width:0}.auth-horizon .auth-card .input{display:block;width:100%;min-width:0;min-height:52px;padding:15px 16px;border:1px solid var(--auth-form-line);border-radius:7px;background:var(--auth-form-bg);color:var(--auth-form-text);font-size:15px;transition:border-color .18s ease,box-shadow .18s ease}.auth-horizon .auth-card .input:focus{border-color:#a1dfc0;box-shadow:0 0 0 3px #9de2b622}.auth-horizon .auth-card input::placeholder{color:var(--auth-form-muted);opacity:1}
 .auth-horizon .auth-show-password{margin:12px 0 22px;font-size:12px;color:var(--auth-form-muted)}.auth-horizon .form-check{display:flex;align-items:center;gap:9px;line-height:1.5;min-width:0}.auth-horizon input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;accent-color:#92dbb3}
 html:root body .auth-horizon .auth-form-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0 8px;color:var(--auth-form-text);font-size:12px}.auth-horizon .auth-recovery-link{color:#a6efc8;background:transparent;border:0;padding:6px 0;text-decoration:underline;text-underline-offset:4px;font-size:12px}.auth-horizon .auth-session-help{color:var(--auth-form-muted);font-size:11px;line-height:1.6;min-height:20px;margin:0 0 14px}.auth-horizon #login-hint:empty,.auth-horizon #login-error:empty{display:none}.auth-horizon #login-error{line-height:1.5;margin:15px 0}
 html:root body .auth-horizon .auth-submit{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;border:0;border-radius:7px;background:#a1dfc0;color:#172b21;padding:16px 20px;font-size:14px;font-weight:750;box-shadow:none;transition:background .18s ease,box-shadow .18s ease}.auth-horizon .auth-submit:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#ffffff5c 45%,transparent 70%);transform:translateX(-130%);transition:transform .8s ease}.auth-horizon .auth-submit:hover:after{transform:translateX(130%)}.auth-horizon .auth-submit:hover{background:#b9f0d3;box-shadow:0 0 24px #8fd7b529}.auth-horizon .auth-submit>span:last-child{transition:transform .2s}.auth-horizon .auth-submit:hover>span:last-child{transform:translateX(4px)}
 .auth-horizon .auth-card-footer{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #71857766;margin-top:26px;padding-top:22px}.auth-horizon .auth-card-footer a{color:var(--auth-form-muted);font-size:11px;text-underline-offset:4px}
 html:root body .auth-horizon .auth-footer{position:relative;max-width:none;margin:0;padding:22px 4vw;display:flex;justify-content:space-between;align-items:center;gap:24px;color:#cad7cf;background:#0d1412e8;border-top:1px solid #829d8a33;font-size:10px;line-height:1.7}.auth-horizon .auth-footer strong{white-space:nowrap}.auth-horizon .auth-footer p{font-size:10px;line-height:1.7;max-width:650px;margin:0;color:#bdc9c1}
 html[data-theme=light] .auth-horizon{--auth-form-text:#252a30!important;--auth-form-muted:#53645a!important;--auth-form-bg:#f7faf8!important;--auth-form-line:#829487!important}html[data-theme=light] body .auth-horizon .auth-card{background:#ffffffed;border:1px solid #cad7cd;padding:30px;border-radius:14px}html[data-theme=light] .auth-horizon .auth-recovery-link{color:#076344}html[data-theme=light] body .auth-horizon .auth-submit{background:#087b56;color:#fff}html[data-theme=light] .auth-horizon .auth-card-footer{border-color:#bdcec2}
 .auth-horizon.auth-paused *,.auth-horizon.auth-paused *:before,.auth-horizon.auth-paused *:after,.auth-horizon.auth-idle *,.auth-horizon.auth-idle *:before,.auth-horizon.auth-idle *:after{animation-play-state:paused!important}
 @keyframes legacy-city-camera{from{transform:translate3d(-.8%,0,0) scale(1.025)}to{transform:translate3d(1.1%,.3%,0) scale(1.085)}}@keyframes legacy-city-clouds{from{transform:translateX(0)}to{transform:translateX(22%)}}@keyframes legacy-city-traffic{0%{transform:translateX(0);opacity:0}10%,80%{opacity:.6}100%{transform:translateX(58vw);opacity:0}}@keyframes legacy-login-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
 @media(max-width:1000px){html:root body .auth-horizon .auth-layout{gap:5vw;padding:45px 5vw;grid-template-columns:minmax(0,1fr) minmax(300px,1fr)}.auth-horizon .auth-intro h1{letter-spacing:-2px!important}.auth-horizon .auth-intro p{font-size:14px!important}.auth-horizon .auth-brand>span{font-size:13px}}
 @media(max-width:700px){html:root body .auth-horizon .auth-top{padding:16px 20px;align-items:start;gap:10px}.auth-horizon .auth-brand>span{display:none}.auth-horizon .auth-brand img{width:145px;height:auto}.auth-horizon .auth-display-controls{gap:6px}.auth-horizon .auth-display-controls button{font-size:10px;padding:7px;min-height:34px}.auth-horizon .auth-city-image{background-position:35% center;animation-duration:36s}.auth-horizon .auth-cinematic-shade{background:linear-gradient(#07130f35,#101614b0 38%,#101614f2 70%)}.auth-horizon .auth-cloud-layer,.auth-horizon .auth-traffic{display:none}html:root body .auth-horizon .auth-layout{display:grid;grid-template-columns:minmax(0,1fr);padding:35px 24px;gap:30px}.auth-horizon .auth-intro h1{font-size:49px;margin:15px 0}.auth-horizon .auth-intro p{font-size:12px!important;margin-bottom:14px}.auth-horizon .auth-public-link{font-size:11px}html:root body .auth-horizon .auth-card{justify-self:stretch;max-width:none;background:#15201deb;border:1px solid #5e7468;border-radius:12px;padding:25px}html:root body .auth-horizon .auth-card h2{font-size:33px;letter-spacing:-1px}.auth-horizon .auth-card-subtitle{margin-bottom:22px}.auth-horizon .auth-form-options{gap:8px}.auth-horizon .auth-card .input{font-size:16px}.auth-horizon .auth-session-help{min-height:0}html:root body .auth-horizon .auth-footer{padding:18px 24px;display:grid;gap:8px}.auth-horizon .auth-footer strong{font-size:11px}}

 /* QoL mobile : la caisse passe sur une seule colonne (produits puis vente en cours) ; le bouton flottant « Panier » ramène à la vente. */
 @media(max-width:760px){html:root body .cash-workspace .cash-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}}

}
