/* Service shell uses the same brand, spacing and controls as the calculator. */
.service-portal{--paper:#fff;--ink:#1D1E1C;--action-hover:#AD291F;--action-soft:#FFF0EE;--action-text:#AA2921;--blue-soft:#EDF7FE;--radius:10px;--surface:#F8FAFC;--line:#DFE4E9;background:var(--bg);color:var(--ink)}
.service-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.service-workspace{min-width:0}.service-sidebar{position:sticky;top:0;height:100vh;padding:24px 16px 18px;background:#20272E;color:#DCE2E8;display:flex;flex-direction:column;gap:24px}.service-brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none;font-weight:650;line-height:1.4;padding:0 4px}.service-brand img{width:64px;height:64px;background:white;border-radius:50%;flex:none}.service-brand small{display:block;color:#AEBAC5;font-size:11px;font-weight:400;margin-top:4px}.service-sidebar nav{display:grid;gap:4px;margin:4px 0}.service-sidebar nav button{min-height:40px;border:0;border-radius:6px;text-align:left;background:transparent;color:#CBD5DF;padding:10px 12px;font-size:13px;font-weight:500;line-height:1.35}.service-sidebar nav button:hover{background:#303B46;color:white;filter:none}.service-sidebar nav button[aria-current=page]{background:#FDEAE7;color:var(--action-text);font-weight:650}.service-sidebar nav .logout{margin-top:20px;color:#B6C0CA;border-top:1px solid #3B4651;border-radius:0;padding-top:16px}.environment-caption{margin-top:auto;padding:12px 8px 0;color:#AAB7C3;font-size:11px;line-height:1.5}.service-workspace>header{border-bottom:1px solid var(--line);padding:16px 28px;min-height:82px;gap:20px}.service-workspace>header h1{font-size:20px;line-height:1.3;letter-spacing:-.35px}.service-workspace>header p{font-size:12px;margin-top:4px}.service-workspace #identity{font-size:12px;color:var(--muted);text-align:right}.service-workspace main{max-width:1460px;padding:20px 28px 32px}.service-workspace footer{max-width:1460px;padding:16px 28px;margin:0 auto;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}
.service-portal section{margin:0 0 16px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}.service-portal section section{margin-top:16px;background:var(--surface)}.service-portal h2{font-size:17px;line-height:1.35;letter-spacing:-.2px;margin:0 0 16px}.service-portal h3{font-size:14px;font-weight:650;margin:0 0 8px}.service-portal p{margin:8px 0;line-height:1.55}.service-portal .muted,.service-portal small{color:var(--muted)}.service-portal a{color:var(--blue);text-underline-offset:3px}.service-portal input,.service-portal select,.service-portal textarea,.service-portal button,.service-portal .button-link{min-height:38px;padding:8px 12px;border-radius:6px;font-size:13px}.service-portal button{color:#35414C;background:var(--paper);border-color:#C7D0D8;font-weight:550}.service-portal button:hover{border-color:#8D9AA7;background:var(--surface);filter:none}.service-portal .primary,.service-portal form>button,.service-portal #retry{background:var(--action);border-color:var(--action);color:white}.service-portal .primary:hover,.service-portal form>button:hover,.service-portal #retry:hover{background:var(--action-hover);border-color:var(--action-hover)}.service-portal button:disabled{cursor:not-allowed;opacity:.5}.service-portal .button-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);text-decoration:none;max-width:100%;font-weight:600;line-height:1.5}.service-portal label{color:#46515C;font-size:12px;font-weight:550;gap:6px}.service-portal label.check{min-height:38px;gap:8px;font-weight:400}.service-portal input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--action)}.service-portal textarea{min-height:78px}.service-portal input[readonly]{background:var(--surface)}.service-portal input:focus,.service-portal select:focus,.service-portal textarea:focus{outline:2px solid #0073B7;outline-offset:1px;border-color:#0073B7}.service-portal :focus-visible{outline:3px solid #0073B7;outline-offset:3px}.service-portal form{gap:14px}.service-portal .stack{display:grid;gap:14px}.service-portal .stack>label{flex:none}.service-portal .stack>button{justify-self:start}.service-portal .auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.service-portal .auth-grid>section{min-width:0}.service-portal .auth-grid form{display:grid;align-items:stretch}.service-portal .auth-grid form>button{justify-self:start}.service-portal .hero{display:flex;gap:8px 24px;align-items:center;flex-wrap:wrap;background:transparent;border:0;padding:0 0 8px}.service-portal .hero h2{font-size:22px;margin:0;flex:1 1 100%}.service-portal .hero p{flex:1}.service-portal .hero button{flex:none}
.service-portal .section-title{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:16px}.service-portal .section-title h2{margin:0 auto 0 0}.service-portal .badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;background:var(--blue-soft);color:var(--blue);font-size:11px;font-weight:600}.service-portal .amount{font-size:28px;font-weight:650;letter-spacing:-.5px;font-variant-numeric:tabular-nums;margin:16px 0}.service-portal .request-card{padding:14px 16px;border:1px solid var(--line);border-radius:8px;display:grid;gap:6px;margin:12px 0;background:var(--paper);overflow-wrap:anywhere}.service-portal .request-card p{margin:0}.service-portal .request-card h3{margin:0}.service-portal .request-card>button,.service-portal .request-card>a{justify-self:start}.service-portal .request-card .actions{justify-content:space-between}.service-portal .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.service-portal .empty{padding:20px 0;color:var(--muted)}.service-portal .portal-table{overflow-x:auto;margin:12px 0}.service-portal .portal-table table{min-width:560px}.service-portal th,.service-portal td{padding:10px 12px;font-size:12px;vertical-align:top}.service-portal th{position:static;background:var(--surface);color:#46515C;font-weight:600}.service-portal .portal-table tbody tr:hover{background:var(--surface)}.service-portal .portal-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.service-portal fieldset{border:1px solid var(--line);border-radius:6px;min-width:0;padding:12px;margin:0}.service-portal legend{color:var(--muted);font-size:12px;padding:0 6px}.service-portal .permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.service-portal .permissions label{flex:none}.service-portal .full{flex:1 1 100%}.service-portal .member-form{align-items:start}.service-portal .member-form fieldset{flex:1 1 100%}.service-portal .member-form>button{align-self:end}.service-portal .timeline{list-style:none;padding:0;margin:16px 0 0}.service-portal .timeline li{border-left:2px solid var(--line);padding:0 0 16px 16px}.service-portal .timeline li:last-child{padding-bottom:0}.service-portal .timeline small{display:block;margin-top:4px;font-size:11px}.service-portal .staff-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.service-portal .staff-meta p{margin:0}.service-portal details{margin-top:12px}.service-portal summary{font-size:12px;color:var(--blue);padding:8px 0;cursor:pointer}.service-portal .secret{font-family:ui-monospace,monospace;overflow-wrap:anywhere;word-break:break-all}.service-portal .receipt{border-top:3px solid var(--brand-red)}.service-portal #message:not(:empty){margin:0 0 16px;padding:10px 14px;border-radius:6px}.service-portal #content[aria-busy=true]{opacity:.7}.service-portal #content:focus{outline:none}.service-portal .notice,.service-portal #pending{font-size:12px;border-radius:6px}.service-portal #pending p{margin-top:0}.service-portal pre{white-space:pre-wrap;overflow-wrap:anywhere}.service-portal .trap{display:none}.skip-link{position:absolute;left:16px;top:-80px;background:white;color:var(--blue);padding:12px;border:2px solid var(--blue);z-index:20}.skip-link:focus{top:8px}
@media(min-width:1400px){.service-portal #request-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.service-portal #request-list .request-card{margin:0}.service-portal #request-list+.button-link,.service-portal #more-requests{margin-top:16px}}
@media(max-width:1000px){.service-shell{grid-template-columns:200px minmax(0,1fr)}.service-sidebar{padding:20px 12px}.service-brand{gap:8px;font-size:12px}.service-brand img{width:48px;height:48px}.service-brand small{font-size:10px}.service-workspace>header,.service-workspace main{padding-left:20px;padding-right:20px}.service-portal .permissions{grid-template-columns:1fr}}
@media(max-width:800px){.service-shell{display:block}.service-sidebar{position:static;height:auto;display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 16px}.service-brand{font-size:13px}.service-brand img{width:42px;height:42px}.service-brand small{display:none}.environment-caption{padding:0;align-self:center;font-size:10px;max-width:130px;text-align:right;margin:0}.service-sidebar nav{grid-column:1/-1;display:flex;overflow-x:auto;flex-wrap:nowrap;gap:6px;margin:0;padding-bottom:4px;scrollbar-width:thin}.service-sidebar nav button{white-space:nowrap;flex:none;min-height:44px;padding:10px 12px}.service-sidebar nav .logout{border:0;margin:0;padding-top:10px;border-radius:6px}.service-workspace>header{padding:14px 16px;min-height:70px;flex-wrap:nowrap;gap:12px}.service-workspace #identity{flex-basis:auto;margin-left:auto;max-width:45%;font-size:11px}.service-workspace>header h1{font-size:18px}.service-workspace>header p{font-size:11px}.service-workspace main{padding:16px}.service-workspace footer{padding:14px 16px}.service-portal section{padding:16px}.service-portal .auth-grid{grid-template-columns:1fr;gap:0}.service-portal input,.service-portal select,.service-portal button,.service-portal .button-link{min-height:44px;font-size:14px}.service-portal .auth-grid form>button,.service-portal .stack>button{justify-self:stretch}.service-portal .hero{display:block;padding:0 0 8px}.service-portal .hero p{margin:8px 0 12px}.service-portal .staff-meta{grid-template-columns:1fr}}
@media(max-width:450px){.service-brand>span{font-size:12px}.service-sidebar{padding:12px}.service-workspace main{padding:12px}.service-workspace>header{padding:12px}.service-portal .section-title>button{font-size:12px;padding:8px}.service-portal .section-title h2{flex-basis:100%;margin-bottom:4px}.service-portal .portal-table table{min-width:0}.service-portal .portal-table thead{display:none}.service-portal .portal-table tr,.service-portal .portal-table td{display:block}.service-portal .portal-table td:before{content:attr(data-label) ': ';font-weight:600;color:#46515C}.service-portal .portal-table tr{border:1px solid var(--line);border-radius:6px;margin-bottom:8px;padding:6px}.service-portal .portal-table td{border:0;padding:5px;font-size:12px}.service-portal .portal-table td:last-child{text-align:left}.service-portal .request-card{padding:12px}.service-portal .permissions{grid-template-columns:1fr}.service-portal .amount{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{.service-sidebar,.service-workspace>header,.service-workspace footer,#message,#pending,.service-portal button,.service-portal form,.skip-link{display:none!important}.service-shell{display:block}.service-workspace main{padding:0;max-width:none}.service-portal section{break-inside:avoid;box-shadow:none}.service-portal .portal-table{overflow:visible}.service-portal .portal-table table{min-width:0}.service-portal .portal-table thead{display:table-header-group}.service-portal .portal-table tr{display:table-row}.service-portal .portal-table td{display:table-cell}.service-portal .portal-table td:before{content:none}}
#warehouse-document{width:min(960px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:10px;padding:0;overflow:auto;color:var(--text);background:white}#warehouse-document::backdrop{background:#15202d88}.statement-actions{position:sticky;top:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;background:white;border-bottom:1px solid var(--line)}.statement-actions strong{margin-right:auto;font-size:14px}.statement-actions button{font-size:12px;min-height:36px;padding:8px 12px}.warehouse-statement{padding:24px;font-size:13px}.warehouse-statement p{margin:14px 0}.statement-brand{display:flex;align-items:center;gap:16px;margin-bottom:20px}.statement-brand img{width:64px;height:64px}.statement-brand h1{font-size:24px}.statement-brand p{margin:4px 0;color:var(--muted)}.warehouse-statement table{margin:20px 0}.warehouse-statement td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}@media(max-width:500px){.warehouse-statement{padding:16px}.statement-brand h1{font-size:20px}.statement-actions strong{width:100%}.warehouse-statement th,.warehouse-statement td{font-size:12px;padding:8px}}@media print{body:has(#warehouse-document[open]) .service-shell{display:none!important}#warehouse-document[open]{position:static;display:block;width:100%;max-height:none;overflow:visible;border:0;border-radius:0}#warehouse-document .statement-actions{display:none!important}.warehouse-statement{padding:0}.warehouse-statement table{break-inside:auto}.warehouse-statement tr{break-inside:avoid}}

.report-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:12px;align-items:end}.report-period label{min-width:0}.statement-table-scroll{max-width:100%;overflow-x:auto}.period-statement table{min-width:680px}.period-statement td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}.period-statement td:last-child{text-align:left}
@media(max-width:700px){.report-period{grid-template-columns:1fr}.statement-actions button{min-height:44px}.statement-brand{align-items:start}.statement-brand>div{min-width:0}.statement-brand h1{overflow-wrap:normal;line-height:1.3}}
@media print{.statement-table-scroll{overflow:visible}.period-statement table{min-width:0;font-size:11px}}

@media screen and (max-width:500px){
 .period-statement table,.period-statement tbody{display:block;min-width:0;width:100%}
 .period-statement thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .period-statement tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:6px}
 .period-statement td{display:block;min-width:0;padding:4px 0;border:0;font-size:14px;overflow-wrap:anywhere}
 .period-statement td:not(:first-child){white-space:normal;text-align:left}
 .period-statement td:first-child,.period-statement td:last-child{grid-column:1/-1}.period-statement td:first-child{font-weight:650}
 .period-statement td:not(:first-child)::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;line-height:1.4}
 .period-statement td:last-child::before{content:attr(data-label) ': ';display:inline}
}
