@font-face{font-family:Poppins;src:url('assets/fonts/Poppins-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Poppins;src:url('assets/fonts/Poppins-Medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Poppins;src:url('assets/fonts/Poppins-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--bg:#15111c;--surface:#211a2c;--raised:#2b2337;--border:#82738f;--divider:#44384f;--text:#f8f4fc;--muted:#c6bcd0;--gold:#f4cc4b;--purple:#7350bf;--tertiary:#d8c5ff;--success:#62d399;--danger:#ff8c87}
body{background:var(--bg);color:var(--text);font-size:16px;letter-spacing:0;isolation:isolate}
body:not(.login-body)::before,body:not(.login-body)::after{display:none!important}
body:not(.login-body){background-image:none!important;padding-bottom:32px}
.container{width:calc(100% - 64px);max-width:1280px}
.grid:not(.cols-2):not(.cols-3):not(.cols-4){grid-template-columns:minmax(0,1fr)}
.grid>*{min-width:0}.report-toolbar>*{min-width:0}.report-toolbar>.inline-actions{flex-wrap:wrap}.report-title>*{min-width:0;overflow-wrap:anywhere}
.view-switch{max-width:100%}.view-tab{white-space:normal}.report-table-wrap .table{min-width:600px}.report-table-wrap .table td:first-child{min-width:160px}.plot{min-width:0}.plot-legend{flex-wrap:wrap}a{color:#e7ce7a}
dialog.dialog[open]{animation:none}.dialog footer{flex-wrap:wrap}.dialog-status:empty{display:none}
.header-row{padding-top:28px;padding-bottom:24px;align-items:center;gap:20px}
.header-row h1{font-size:30px;line-height:1.2}.header-row p{margin:8px 0 0}.header-center{position:static;transform:none;margin-left:auto}.brand-logo{width:68px;height:68px;object-fit:contain;opacity:1}
body h2{font-size:23px}body h3{font-size:18px}body button,body input,body select{min-height:38px;font-size:14px;box-shadow:none!important;letter-spacing:0}
button,button.ghost,button.secondary,.btn-neutral{border-radius:8px;background:transparent;color:var(--muted);border:1px solid var(--border);box-shadow:none!important}
button:hover{background:#23262f;color:var(--text)}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px;box-shadow:none!important}
button.btn-primary,.btn-primary{background:#f0c94b26;border-color:#a88c35;color:#f4d879;border-radius:8px;box-shadow:none!important}
button.btn-alt{color:#d6afff;border-color:#8663a8;background:#aa7dde12}.danger-text{color:var(--danger)!important}.good-text{color:var(--success)!important}.manual-text{color:#ffb55c!important}
.icon-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;padding:10px}.icon-control svg,button svg{width:19px;height:19px;flex-shrink:0}
.card{background:var(--surface);border-color:var(--border);border-radius:8px}.table{font-variant-numeric:tabular-nums;font-size:14px}.table th{position:sticky;top:0;background:#1e2028;z-index:1;text-align:left}.table td,.table th{padding:12px 14px}.table .num{text-align:right;white-space:nowrap}.table tr:last-child td{border-bottom:0}
.report-band{padding:24px 0;border-top:1px solid var(--border);min-width:0}.report-band h2{margin:0}.report-title,.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.report-toolbar label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.report-toolbar input{width:180px}.report-toolbar .select-control{min-width:140px}.report-meta{color:var(--muted);font-size:13px;margin:8px 0 16px}.report-kpis{display:flex;gap:32px;flex-wrap:wrap}.report-kpis strong{display:block;font-size:23px;margin-top:5px}.report-kpis small{font-size:13px;color:var(--muted)}
.report-notice{font-size:13px;padding:12px 14px;border-left:3px solid var(--gold);background:#f0c94b0c;color:#dfd5b3;margin:12px 0}.report-error{border-left-color:var(--danger);color:var(--danger)}.report-loading{padding:28px 0;color:var(--muted)}
.plot{width:100%;height:260px;display:block;margin:16px 0}.plot text{fill:var(--muted);font-size:12px}.plot .gridline{stroke:#343742;stroke-width:1}.plot polyline{fill:none;stroke-width:2.5}.plot .budget-line{stroke:var(--gold);stroke-dasharray:7 5}.plot .actual-line{stroke:var(--success)}.plot .bad-line{stroke:var(--danger)}.plot-legend{display:flex;gap:24px;font-size:13px;color:var(--muted)}.plot-legend span::before{content:'';display:inline-block;width:20px;border-top:2px solid var(--success);margin-right:8px}.plot-legend span:first-child::before{border-top:2px dashed var(--gold)}
.report-table-wrap{overflow:auto;max-width:100%}.report-table-wrap .table{width:100%}.report-total td{font-weight:700;border-top:2px solid var(--border)}.report-group{font-weight:700}.table details summary{cursor:pointer;padding:6px 0}.report-subrow{font-size:13px;color:var(--muted)}.status-label{font-size:12px;padding:4px 8px;border:1px solid var(--border);border-radius:4px;white-space:nowrap}
.main-navigation{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);display:grid;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);align-items:center;gap:16px;width:360px;max-width:calc(100% - 32px);height:66px;background:#191b22;border:1px solid var(--border);border-radius:8px;padding:8px 16px;z-index:90;box-shadow:0 8px 24px #0005}.main-navigation a{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-decoration:none;font-size:13px;min-height:44px;white-space:nowrap}.main-navigation a[aria-current=page]{color:var(--text)}.main-navigation svg{width:19px;height:19px;flex-shrink:0}.main-navigation .camera-action{background:var(--gold);color:#161713;border:0;width:52px;height:48px;padding:0;margin:0;justify-self:center}
.app-menu{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;margin:0;background:#101116;color:var(--text);overflow-y:auto}.app-menu-inner{position:relative;display:flex;flex-direction:column;align-items:center;max-width:960px;min-height:100%;margin:0 auto;padding:36px 32px 28px}.app-menu-top{width:100%;display:flex;justify-content:center;align-items:center;padding:16px 52px 24px}.app-menu-top>.icon-control{position:absolute;top:24px;right:24px}.app-menu-logo{width:144px;height:144px;object-fit:contain}.app-menu-links{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px 0 32px}.app-menu-links a{padding:10px 24px;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:23px;color:var(--text);text-decoration:none;border:0}.app-menu-links a:hover{color:var(--gold)}.app-menu-links a[aria-current=page]{font-weight:700}.app-menu footer{width:100%;padding:20px 0 0;margin-top:auto;display:flex;justify-content:center;gap:12px;flex-wrap:wrap;border:0;background:transparent}.app-menu footer a,.app-menu footer button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--muted);text-decoration:none;font-size:14px}.app-menu footer svg{width:19px;height:19px}
dialog.dialog{background:#191b22;color:var(--text);border:1px solid var(--border);border-radius:8px;max-height:calc(100dvh - 40px);box-shadow:0 24px 90px #0008}dialog::backdrop{background:#050609cc!important;backdrop-filter:blur(3px)}dialog header,dialog footer{background:#191b22}dialog main{background:#191b22}dialog input,dialog select,dialog textarea{background:#111319;color:var(--text);border:1px solid var(--border);border-radius:6px}dialog footer{border-top:1px solid var(--border)}.dialog-status{color:var(--muted);font-size:13px;flex:1;white-space:normal}
.wide-dialog{width:1120px;max-width:calc(100vw - 32px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.dialog-heading h3{margin:0}.dialog-heading .icon-control{flex-shrink:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label,.field-label{display:grid;gap:7px;font-size:13px;color:var(--muted)}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-width:0}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.check-label{display:flex!important;align-items:center;gap:8px;font-size:14px}.check-label input{min-height:20px;width:20px;height:20px}.empty-state{padding:48px 20px;text-align:center;color:var(--muted)}
.batch-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}.batch-files{display:flex;flex-direction:column;gap:6px}.batch-file{width:100%;text-align:left;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:6px;padding:12px;border:1px solid var(--border);border-radius:6px;cursor:pointer;min-width:0}.batch-file.is-active{border-color:var(--gold);background:#f0c94b0c}.batch-file strong{font-size:13px;overflow-wrap:anywhere}.batch-file small{display:block;font-size:12px;color:var(--muted)}.batch-file input{width:18px;min-height:18px;height:18px}.batch-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.batch-review{min-width:0}.batch-original{width:100%;height:440px;border:1px solid var(--border);object-fit:contain;background:white}.batch-line{display:grid;grid-template-columns:minmax(140px,2fr) 85px 90px 100px 110px 36px;gap:6px;align-items:end;border-bottom:1px solid var(--border);padding:10px 0}.batch-line input,.batch-line select{width:100%;min-width:0;font-size:13px}.batch-line label{font-size:11px;color:var(--muted);display:grid;gap:5px}.batch-drop{border:1px dashed #6b704f;padding:36px 20px;text-align:center;margin-bottom:20px}.batch-drop.dragover{background:#f0c94b18}.batch-choice{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.batch-summary{font-size:13px;color:var(--muted);margin:12px 0}
.invoice-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.invoice-tools label{font-size:13px;color:var(--muted);display:grid;gap:6px}.invoice-tools input{width:180px}.invoice-tools .search-field{flex:1;min-width:220px}.invoice-tools .search-field input{width:100%}.table-actions{display:flex;gap:6px;align-items:center}.table-actions button{min-height:36px;padding:6px 10px;font-size:12px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin:20px 0;color:var(--muted);font-size:13px}
.usage-settings{border-top:1px solid var(--border);padding-top:16px;margin-top:16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.usage-settings label{display:flex;gap:8px;align-items:center;font-size:13px}.usage-settings input{width:18px;height:18px;min-height:18px}.usage-settings h4{width:100%;margin:0}.account-security{border-top:1px solid var(--border);padding:24px 0}.profile-details{display:block!important}.profile-toggle{display:none!important}.login-card{width:min(420px,100%)}.login-card h1{font-size:28px}.login-card .hero{padding:0}.login-body{background:#101116!important}.password-field{display:flex;gap:8px}.password-field input{min-width:0;flex:1}.login-help{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.session-warning{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:200;background:#2e291b;color:#f4df97;border:1px solid var(--gold);padding:14px 20px;border-radius:6px;max-width:calc(100% - 32px)}
@media(max-width:1023px){.container{width:calc(100% - 48px)}.table td,.table th{padding:10px}.batch-layout{grid-template-columns:190px minmax(0,1fr)}.batch-line{grid-template-columns:minmax(130px,2fr) 70px 80px 90px 100px 36px}.batch-lines{overflow:auto}.batch-line{min-width:590px}}
@media(max-width:767px){.container{width:calc(100% - 32px)}.header-row{padding-top:20px;gap:12px}.header-row h1{font-size:26px}.header-center{display:none}.header-row>div:first-child{flex:1;min-width:0}.header-row p{font-size:14px}.main-navigation{width:calc(100% - 32px);justify-content:space-around;gap:10px;padding:8px 12px}.main-navigation a{font-size:12px}.report-kpis{gap:20px}.report-kpis strong{font-size:21px}.report-toolbar{align-items:flex-end}.report-toolbar input{width:155px}.plot{height:220px}.report-title{gap:12px}.report-title h2{font-size:21px}.wide-dialog,dialog.dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.batch-layout{grid-template-columns:1fr}.batch-files{flex-direction:row;overflow:auto;padding-bottom:8px}.batch-file{min-width:165px;max-width:195px}.batch-tools{margin-top:0}.form-grid{gap:12px}.batch-original{height:360px}.invoice-tools .search-field{min-width:100%}.invoice-tools input{width:155px}.invoice-tools label{max-width:100%}.app-menu-inner{padding:20px}.app-menu-links a{font-size:21px}.usage-settings{gap:12px}.table-actions{flex-wrap:wrap}}
@media(max-width:767px){.header-row{flex-direction:row;align-items:flex-start}.header-row>.icon-control{margin-left:auto}.report-toolbar .inline-actions{gap:8px}.report-toolbar label{min-width:0}.report-toolbar input{max-width:100%}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-day{min-width:0;padding:6px!important;overflow-wrap:anywhere}.calendar-day small{font-size:10px}.calendar-header{font-size:11px}.page-account .card{min-width:0}.profile-card{min-width:0}.profile-meta{min-width:0;overflow-wrap:anywhere}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid input{max-width:100%}.view-switch{flex-wrap:wrap}.view-tab{flex:1 1 auto}.dialog main{padding:16px}.dialog footer{padding:12px 16px}.dialog footer button{min-width:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.header-center{display:flex!important;width:auto}.brand-logo{display:block!important;filter:none}
.environment-label{text-align:center;background:#3e3418;color:#f4d879;font-size:12px;padding:8px 16px;border-bottom:1px solid #806a30}
#account-profile,#user-list-section{background:transparent;border:0;padding:0;border-radius:0}
.batch-line{grid-template-columns:minmax(140px,2fr) 72px 85px 90px 70px 110px 44px;min-width:660px}.batch-lines{overflow:auto}
@media(max-width:767px){.header-center{display:none!important}.batch-line{min-width:660px}}

.site-header{padding:0;border-bottom:1px solid var(--border);background:var(--bg)}
.site-header-inner{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:10px;padding-bottom:10px}
.site-brand{display:flex;align-items:center;flex-shrink:0}.site-brand img{width:72px;height:72px;object-fit:contain;display:block}
.header-row.page-heading{display:block;padding-top:28px;padding-bottom:16px;min-width:0}
.page-heading h1{margin-top:8px}.page-heading p{max-width:760px}
.period-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.report-toolbar{align-items:flex-end}
.period-controls>.icon-control{height:44px;min-height:44px;flex:0 0 44px;padding:0;margin:0}
.period-controls input,.period-controls .custom-select-trigger{height:44px;min-height:44px;min-width:0;margin:0}
.period-controls label{grid-template-columns:minmax(0,1fr)}
.period-controls label{margin:0}.period-controls button:disabled{opacity:.4;cursor:not-allowed}
.expense-table tbody th{position:static;background:transparent;font-weight:400;vertical-align:middle}
.table tbody tr:hover{background:#ffffff05}.expense-table tbody tr.expense-detail-row:hover{background:transparent}
.expense-table>tbody>tr>td{vertical-align:middle}.expense-table>tbody>tr>th{min-width:225px}
.dashboard-expense-forecast small,.expense-table .dashboard-target-rate{display:block}.dashboard-expense-forecast strong{font-variant-numeric:tabular-nums}.expense-table .dashboard-target-rate{margin-top:4px;font-size:12px;color:var(--muted);font-weight:400}
button.expense-toggle{display:flex;align-items:center;gap:8px;text-align:left;border:0;border-radius:4px;background:transparent;color:var(--text);padding:0;min-height:36px;font-weight:400}
.expense-toggle svg{width:16px;height:16px;transition:transform .15s}.expense-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.expense-table .expense-toggle svg{flex:0 0 16px}
.expense-static-label{display:flex;align-items:center;min-height:36px;padding-left:24px;color:var(--text)}
.report-table-wrap .expense-category-table{min-width:0;margin:0;font-size:14px}
.expense-category-table td:first-child{width:70%;overflow-wrap:anywhere}
.expense-category-table .num{font-variant-numeric:tabular-nums}
.expense-detail-content .pagination{margin:12px 0 4px}
.expense-table .expense-detail-row>td{padding:0 12px 16px;border-bottom:1px solid var(--border)}
.expense-detail-content{padding:8px 12px 4px;border-left:2px solid var(--border)}
.expense-provider{border-bottom:1px solid var(--border)}.expense-provider:last-child{border-bottom:0}
.table .expense-provider>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 112px 18px;align-items:center;gap:16px;padding:12px 8px;list-style:none;cursor:pointer}
.expense-provider>summary::-webkit-details-marker{display:none}.expense-provider summary>span{overflow-wrap:anywhere}.expense-provider summary small{font-size:12px;color:var(--muted)}.expense-provider summary strong{text-align:right;white-space:nowrap}.expense-provider summary svg{width:16px;height:16px}.expense-provider[open] summary svg{transform:rotate(180deg)}
.report-table-wrap .expense-document-table,.report-table-wrap .expense-plan-table{min-width:0;font-size:13px;margin:0 0 12px}
.expense-document-table th,.expense-plan-table th{font-size:12px}.expense-document-table button{font-size:12px;min-height:32px;padding:4px 8px}
#account-profile,#user-list-section{box-shadow:none;backdrop-filter:none;min-width:0}
#user-list-section .section-title{align-items:center;gap:16px;margin-bottom:16px}#user-list-section h2{margin:0}
.profile-card{border-radius:8px;background:transparent}.profile-avatar-control{position:relative;width:96px;height:96px;flex:0 0 96px}
.profile-role{letter-spacing:0}
.profile-avatar{border-radius:8px;flex-shrink:0}.profile-photo-edit.icon-control{position:absolute;right:4px;bottom:4px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;background:#191b22;color:var(--text);border-radius:6px}
.profile-details{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:16px}
.profile-details p{margin:0;overflow-wrap:anywhere}.profile-details strong{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-bottom:5px}.profile-details span{color:var(--text)}
.profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}
.profile-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.user-list-table{width:100%;table-layout:auto}.user-list-table td{vertical-align:middle;overflow-wrap:anywhere}.user-list-table .table-actions{flex-wrap:nowrap}
.calendar-status-dot,.calendar-legend{display:none}
@media(max-width:767px){
 .site-header-inner{min-height:76px}.site-brand img{width:56px;height:56px}.header-row.page-heading{padding-top:20px;padding-bottom:12px}
 .period-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;width:100%;max-width:320px}.period-controls input{width:100%}.period-controls>label:last-child:has([data-week]){grid-column:1/-1;max-width:260px}
 .main-navigation{gap:8px;padding:8px;width:360px}.main-navigation a{gap:6px;font-size:12px}
 .app-menu-inner{padding:16px 16px max(20px,env(safe-area-inset-bottom))}.app-menu-top{padding-top:12px;padding-bottom:16px}.app-menu-top>.icon-control{top:16px;right:16px}.app-menu-logo{width:112px;height:112px}.app-menu-links{padding-bottom:20px;gap:4px}.app-menu-links a{font-size:21px;padding:8px 20px}.app-menu footer{gap:8px}.app-menu footer a,.app-menu footer button{padding:10px 12px;font-size:13px}
 .profile-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-details p:has(#profile-email){grid-column:1/-1}.profile-actions{gap:8px}.profile-actions button{white-space:normal;padding:10px 12px;font-size:12px}.profile-actions [data-password-change],.profile-actions [data-sessions]{width:44px;padding:0}.profile-actions [data-password-change] span,.profile-actions [data-sessions] span{display:none}
 .calendar{gap:4px}.calendar-grid .calendar-day{min-height:62px!important;height:62px;align-items:center!important;justify-content:center;gap:5px!important}.calendar-grid .calendar-day small{display:none}
 .calendar-status-dot{display:block;width:6px;height:6px;border-radius:50%;background:#9b9faa}.calendar-status-dot.has-sales{background:var(--success)}.calendar-status-dot.has-budget{background:var(--gold)}
 .calendar-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:var(--muted)}.calendar-legend>span{display:inline-flex;align-items:center;gap:6px}
 #user-list-section .section-title{flex-wrap:wrap}.page-account .table-scroll .user-list-table{display:block;width:100%;min-width:0}.user-list-table thead{display:none}.user-list-table tbody{display:block}.user-list-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:12px 0;border-bottom:1px solid var(--border)}.user-list-table td{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;padding:6px 0;border:0;white-space:normal}.user-list-table td::before{content:attr(data-label);font-size:12px;color:var(--muted)}.user-list-table .table-actions{gap:6px;flex-wrap:wrap}.user-list-table .table-actions button{padding:6px 8px}
}
@media(max-width:374px){
 .profile-avatar-control{width:72px;height:72px;flex-basis:72px}.profile-avatar{width:72px;height:72px}.profile-header{gap:12px}
 .profile-photo-edit.icon-control{width:28px;min-width:28px;height:28px;min-height:28px;right:2px;bottom:2px}
 .profile-details p:has(#profile-phone){grid-column:1/-1}
}

/* Commands, view switches and form controls have separate visual roles. */
body :is(button,.btn){line-height:1.25;padding:8px 14px;font-size:13px;max-width:100%;letter-spacing:0}
body :is(button.ghost,button.secondary,.btn.ghost,.btn.secondary,.btn-neutral){background:transparent;border:1px solid transparent;color:var(--tertiary);border-radius:6px}
body :is(button.ghost,button.secondary,.btn.ghost,.btn.secondary,.btn-neutral):hover:not(:disabled){background:#ffffff0b;border-color:transparent;color:var(--text)}
body :is(button.btn-primary,.btn.btn-primary){background:var(--gold);border-color:var(--gold);color:#211a2c}
body :is(button.btn-primary,.btn.btn-primary):hover:not(:disabled){background:#ffdc6a;border-color:#ffdc6a;color:#15111c}
body :is(button.btn-alt,.btn.btn-alt){background:var(--purple);border-color:var(--purple);color:#fff}
body :is(button.btn-alt,.btn.btn-alt):hover:not(:disabled){background:#8560cd;border-color:#8560cd;color:#fff}
body button:disabled,body .btn[aria-disabled=true]{opacity:.42;cursor:not-allowed}
body :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--gold);outline-offset:3px;box-shadow:none}
body :is(input,textarea,.custom-select-trigger):focus{border-color:#a88c35;box-shadow:none}
body :is(.icon-control,.icon-button,.tool-button){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:0;padding:0;width:38px;min-width:38px;height:38px;min-height:38px;text-decoration:none}
body .tool-button svg{width:17px;height:17px;flex-shrink:0;pointer-events:none}
body .table-actions{gap:6px;flex-wrap:nowrap}
body :is(.table-actions,.pagination,#invoice-pagination,#bank-pagination) .tool-button{width:34px;min-width:34px;height:34px;min-height:34px;padding:0}
body :is(.pagination,#invoice-pagination,#bank-pagination){display:flex;gap:12px;align-items:center;flex-wrap:nowrap;justify-content:flex-end}
body :is(.pagination,#invoice-pagination,#bank-pagination) .tool-button{flex:0 0 auto;background:transparent;color:#d1d4de;border-color:var(--border)}
body :is(.pagination,#invoice-pagination,#bank-pagination) .footer-note{flex:0 1 auto;min-width:0}
body :is(.inline-actions,.control-actions){display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.control-actions{margin-left:auto}.control-actions>.btn-primary{order:1}
body :is(.view-switch,.menu-layer-switch,.segmented-control){display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--border);border-radius:8px;background:transparent;max-width:100%;flex-wrap:wrap}
body :is(.view-tab,.segmented-control>button){min-height:34px;padding:7px 12px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);font-size:13px}
body :is(.view-tab.is-active,.segmented-control>button[aria-pressed=true]){background:#ffffff0d;border-color:#616574;color:var(--text);box-shadow:none}
body :is(.view-tab,.segmented-control>button):hover{background:#ffffff08;color:var(--text)}
body .segmented-control>.tool-button{width:34px;min-width:34px;height:34px;padding:0}
body .custom-select{min-width:0;max-width:100%}
body .custom-select-trigger{min-height:38px;height:38px;padding:7px 32px 7px 11px;border-radius:6px;background:#111319;border-color:var(--border);color:var(--text);font-size:13px;font-weight:400}
body .custom-select-trigger::after{right:12px;width:6px;height:6px;border-color:var(--muted)}
body .custom-select-trigger:hover{background:#191c24;border-color:#626775}
body .custom-select-trigger:focus{border-color:#9c812d;box-shadow:none}
body .custom-select-menu{gap:2px;padding:4px;border-radius:6px;border-color:#555966;background:#191b22;max-height:260px}
body .custom-select-option{min-height:32px;padding:7px 10px;border-radius:4px;font-size:13px;font-weight:400;background:transparent;color:var(--text);white-space:normal;overflow-wrap:anywhere}
body .custom-select-option.is-selected{background:#ffffff0f;border-color:#616574;color:#f4d879;font-weight:600}
body .custom-select-option:hover{background:#ffffff0a;border-color:#555966}
body :is(.report-toolbar,.invoice-tools,.menu-reference-actions) input{height:38px;min-height:38px;padding:7px 11px;border-radius:6px;font-size:13px}
body .report-toolbar{justify-content:flex-start;gap:12px}
body .period-controls{gap:8px}
body .period-controls>.icon-control,body .period-controls input,body .period-controls .custom-select-trigger{height:38px;min-height:38px}
body .period-controls>.icon-control{width:38px;min-width:38px;flex-basis:38px}
body .period-controls input{width:160px;min-width:0}
body .period-controls .custom-select{width:130px}
body .invoice-tools{gap:10px;align-items:end}
body .invoice-tools>label{min-width:0;flex:0 1 150px}
body .invoice-tools>.search-field{flex:1 1 240px}
body .invoice-tools input,body .invoice-tools .custom-select{width:100%}
body .menu-reference-actions{gap:8px;max-width:100%}
body .menu-reference-actions input{width:240px;min-width:0}
body .menu-reference-actions>.custom-select{width:190px}
body .menu-reference-actions>button{width:auto}
.page-cashflow .section-title .bank-filters{gap:8px}
.page-cashflow .section-title .bank-filters input{width:220px;min-width:0;min-height:38px;height:38px;padding:7px 11px;border-radius:6px}
.page-cashflow .section-title .bank-filters>.custom-select{min-width:0;flex:0 1 auto;width:165px}
.page-cashflow .section-title .bank-filters>.bank-month-filter{width:100px}
body :is(.form-grid,.input-group,.field-label)>.custom-select{width:100%}
body .batch-line .custom-select{width:100%;min-width:0}
body .batch-line .custom-select-trigger{padding-left:8px;padding-right:24px}
body .batch-line .custom-select-trigger::after{right:9px}
body .menu-component-selection,body .menu-composition-row{grid-template-columns:minmax(0,1fr) 100px 100px 38px;border-radius:8px;background:#ffffff03;border-color:var(--border)}
body :is(.menu-component-selection,.menu-composition-row) input{min-width:0;width:100%;height:38px;min-height:38px;padding:7px 10px}
body :is(.menu-component-selection,.menu-composition-row) .custom-select{width:100%;min-width:0}
body :is(.menu-component-selection,.menu-composition-row) .custom-select-trigger{padding-left:10px}
body .menu-yield-fields{grid-template-columns:minmax(0,1fr) 100px}
body .usage-settings{gap:12px}.usage-settings>.control-actions{margin-left:0}
body .expense-toggle{padding:0;background:transparent;border:0;min-height:36px;font-size:14px}
body .main-navigation .camera-action{width:52px;height:48px;background:var(--gold);color:#161713;border:0}
body .app-menu footer .btn-primary{background:#f0c94b26;border-color:#a88c35;color:#f4d879}
@media(max-width:767px){
 body :is(button,.btn){min-height:44px}
 body :is(.icon-control,.icon-button,.tool-button){width:44px;min-width:44px;height:44px;min-height:44px}
 body :is(.table-actions,.pagination,#invoice-pagination,#bank-pagination) .tool-button{width:40px;min-width:40px;height:44px;min-height:44px}
 body :is(.view-tab,.segmented-control>button){min-height:40px;padding:8px 10px}
 body .segmented-control>.tool-button{width:40px;min-width:40px;height:40px}
 body .custom-select-trigger,body :is(.report-toolbar,.invoice-tools,.menu-reference-actions) input{height:42px;min-height:42px}
 body .custom-select-option{min-height:40px}
 body .period-controls{grid-template-columns:44px minmax(0,1fr) 44px}
 body .period-controls>.icon-control,body .period-controls input,body .period-controls .custom-select-trigger{height:44px;min-height:44px}
 body .period-controls>.icon-control{min-width:44px;width:44px}
 body .period-controls input{width:100%}
 body .period-controls>label:last-child:has([data-week]){max-width:100%}
 body .period-controls .custom-select{width:100%}
 body .report-toolbar>.control-actions{margin-left:0;width:100%}
 body .invoice-tools>label{flex:1 1 calc(50% - 10px);max-width:calc(50% - 5px)}
 body .invoice-tools>.search-field{flex-basis:100%;min-width:0;max-width:100%}
 body .menu-reference-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
 body .menu-reference-actions input{grid-column:1/-1;width:100%}
 body .menu-reference-actions>.custom-select{width:100%;min-width:0}
 body .menu-reference-actions>button{min-width:0;width:auto;padding:8px 12px}
 .page-cashflow .section-title .bank-filters{display:grid;grid-template-columns:minmax(0,1fr) 100px;width:100%}
 .page-cashflow .section-title .bank-filters input{grid-column:1/-1;width:100%;min-height:42px;height:42px}
 .page-cashflow .section-title .bank-filters>.custom-select{width:100%;min-width:0}
 body .menu-component-selection,body .menu-composition-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px;align-items:end}
 body .menu-component-selection>div:first-child,body .menu-component-selection>span:first-child,body .menu-composition-row>span:first-child{grid-column:1/-1}
 body .menu-composition-row>span>strong{white-space:normal;overflow-wrap:anywhere}
 body :is(.menu-component-selection,.menu-composition-row) input{height:42px;min-height:42px}
 body :is(.menu-component-selection,.menu-composition-row) .input-group{font-size:13px;gap:6px}
 body .profile-photo-edit.icon-control{width:36px;min-width:36px;height:36px;min-height:36px}
}
@media(max-width:374px){body .profile-photo-edit.icon-control{width:28px;min-width:28px;height:28px;min-height:28px}body .menu-reference-actions{grid-template-columns:minmax(0,1fr)}body .menu-reference-actions>button{justify-self:end}}

/* Authentication stays a single column, including verification and errors. */
.login-body .login-page{min-height:100dvh;padding:32px 20px}
.login-body .login-card{width:100%;max-width:420px;padding:28px;background:var(--surface);border-radius:8px;backdrop-filter:none}
.login-card .hero{display:grid;gap:18px;padding:0;margin:0 0 28px;text-align:center}
.login-card .login-logo{width:128px;height:128px;object-fit:contain;margin:0 auto}
.login-card .hero h1{font-size:24px;line-height:1.3;margin:0;letter-spacing:0}
.login-card .login-form{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.login-card .login-form>label:not(.check-label),.login-card .input-group{display:grid;gap:8px;font-size:13px;font-weight:500;color:var(--muted)}
.login-card .login-form input:not([type=checkbox]){width:100%;min-width:0;min-height:48px;height:48px;padding:12px 14px;border-radius:6px;font-size:16px;background:#111319}
.login-card .password-field{position:relative;display:block;min-width:0}
.login-card .login-form .password-field input{padding-right:56px}
.login-card .password-field button{position:absolute;right:4px;top:4px;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:4px;background:transparent}
.login-card .password-field button:hover{background:#ffffff0a}
.login-card .check-label{min-height:28px;font-size:13px;gap:10px;color:var(--muted);cursor:pointer}
.login-card .check-label input{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--gold);cursor:pointer}
.login-card .login-form>button{width:100%;min-height:44px;padding:11px 16px;font-size:14px}
.login-card #login-status{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:480px){
 .login-body .login-page{padding:24px 16px}
 .login-body .login-card{padding:24px 20px}
 .login-card .login-logo{width:112px;height:112px}
 .login-card .hero{gap:16px;margin-bottom:24px}
 .login-card .hero h1{font-size:22px}
}
@media(max-height:650px){.login-body .login-page{padding-top:20px;padding-bottom:20px}.login-card .login-logo{width:96px;height:96px}.login-card .hero{margin-bottom:20px;gap:12px}}

/* Purchasing reports and catalog use the same neutral operational controls. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pending-text{color:#ffb55c!important}
.purchasing-search{margin-left:auto;width:260px;max-width:100%}.purchasing-search input{width:100%}
.purchasing-period{margin-top:-10px}
.purchasing-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:22px 0;margin:0 0 24px;border-block:1px solid var(--border)}
.purchasing-metrics>div{min-width:0}.purchasing-metrics dt{font-size:13px;color:var(--muted);margin-bottom:8px}
.purchasing-metrics dd{margin:0;font-size:21px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.purchasing-metrics small,.purchasing-table small,.purchasing-documents small,.purchasing-analysis td small{display:block;margin-top:5px;font-size:12px;font-weight:400;color:var(--muted)}
.purchasing-metrics>div:nth-child(3) dd{font-size:17px;line-height:1.6}
.purchasing-warnings{padding:12px 0;margin-bottom:20px;border-bottom:1px solid var(--border);font-size:13px;color:var(--muted)}
.purchasing-warnings summary{display:flex;align-items:center;gap:8px;color:#ffb55c;cursor:pointer;min-height:32px}.purchasing-warnings svg{width:17px;height:17px}
.purchasing-table td,.purchasing-documents td{vertical-align:middle}.purchasing-table td:first-child{width:30%;min-width:180px;white-space:normal;overflow-wrap:anywhere}
.purchasing-analysis{margin-top:24px}.purchasing-analysis td:nth-child(2){white-space:normal;min-width:240px}
.page-budget .menu-reference-panel{gap:20px;box-shadow:none;background:transparent;border-radius:0}
.page-budget dialog.dialog,.page-budget dialog.dialog>:is(header,main,footer){background:var(--surface)}
.page-budget .menu-reference-panel>.section-title{align-items:center;gap:20px;margin-bottom:0}
.page-budget .menu-reference-panel>.section-title h2{margin:0;font-size:21px}
.page-budget .menu-reference-panel>.section-title p{margin:8px 0 0;font-size:13px}
.page-budget .menu-reference-actions{align-items:center}
.page-budget .menu-layer-switch{justify-self:start;margin:0}
.page-budget .menu-product-list{gap:8px;padding:0;max-height:none;overflow:visible}
.page-budget .menu-reference-layout.has-selection .menu-product-list{max-height:740px;overflow:auto;padding-right:6px}
.page-budget :is(.menu-category-toggle,.menu-product-item){border-radius:6px;background:transparent;border-color:var(--border);color:var(--text);padding:12px 14px;font-size:13px;box-shadow:none}
.page-budget :is(.menu-category-toggle,.menu-product-item):hover,.page-budget .menu-category-group.is-open .menu-category-toggle,.page-budget .menu-product-item.is-active{background:#ffffff08;border-color:#626775}
.page-budget .menu-category-toggle{grid-template-columns:minmax(0,1fr) auto 20px;gap:14px}
.page-budget .menu-category-icon{width:20px;height:20px;border:0;border-radius:0;background:transparent;color:var(--muted)}
.page-budget .menu-category-icon svg{width:18px;height:18px}
.page-budget .menu-category-title strong{white-space:normal;overflow-wrap:anywhere;font-weight:600}
.page-budget :is(.menu-category-meta,.menu-category-title,.menu-product-main,.menu-product-cost) small{font-weight:400;font-size:12px}
.page-budget .menu-category-products{border-color:var(--border);margin:4px 0 8px 8px;padding-left:12px;gap:0}
.page-budget .menu-subcategory-heading{padding:8px 0;font-size:12px;color:var(--muted)}
.page-budget .menu-subcategory-heading strong{font-weight:500;color:var(--muted)}
.page-budget .menu-product-item{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:12px 6px;gap:16px}
.page-budget .menu-product-item strong{font-size:13px;font-weight:500;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.page-budget .menu-product-main small{white-space:normal;overflow-wrap:anywhere}
.page-budget .menu-product-cost{min-width:128px;align-self:center}
.page-budget .menu-product-detail{border:0;border-left:1px solid var(--border);border-radius:0;padding:0 0 0 24px;background:transparent;box-shadow:none}
.page-budget .menu-catalog-legend{justify-content:flex-start;margin-top:4px;padding-top:16px;border-top:1px solid var(--border);gap:18px}
.page-budget :is(.menu-kpi-grid>div,.menu-ingredient-row),.menu-ingredient-dialog .menu-kpi-grid>div{padding:12px 0;background:transparent;border:0;border-radius:0;min-width:0}
.page-budget .menu-kpi-grid,.menu-ingredient-dialog .menu-kpi-grid{gap:20px;margin-top:16px;border-bottom:1px solid var(--border);padding-bottom:8px}
.page-budget .menu-kpi-grid strong,.menu-ingredient-dialog .menu-kpi-grid strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
.menu-ingredient-dialog>header{align-items:flex-start;gap:16px}.menu-ingredient-dialog>header>div{min-width:0}
.menu-ingredient-dialog h3{margin:6px 0 0;line-height:1.4;overflow-wrap:anywhere}.menu-ingredient-dialog header p{margin:8px 0 0;font-size:13px}
.menu-ingredient-dialog main{grid-auto-rows:max-content;align-content:start}
.menu-ingredient-dialog .menu-kpi-grid{border-bottom:0;padding-bottom:0;margin-top:0}
.menu-ingredient-dialog .menu-detail-section{margin-top:0;padding-top:16px}
.menu-ingredient-dialog .menu-detail-section .section-title{margin-bottom:12px;gap:10px}.menu-ingredient-dialog h4{margin:0;font-size:14px}
body .menu-unit-cost-card{min-height:80px;height:auto;padding:16px;border-radius:6px;background:transparent;border-color:var(--border)}
body .menu-unit-cost-card.is-pending{border-color:#b77e35;color:#ffb55c;background:#ffb55c08}
body .menu-unit-cost-card:disabled{opacity:1;cursor:default}
.menu-unit-cost-card strong{font-size:20px;font-weight:600}.menu-unit-cost-card small{font-weight:400;font-size:12px}
.menu-format-action{display:inline-flex;align-items:center;gap:8px;font-weight:400!important}.menu-format-action svg{width:16px;height:16px}
.menu-ingredient-dialog .menu-supplier-row{padding:12px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}
.menu-ingredient-dialog .menu-supplier-row:last-child{border-bottom:0}
.menu-ingredient-dialog .menu-supplier-row strong{font-weight:500;font-size:13px}
.menu-ingredient-dialog .menu-purchase-history .table{min-width:860px;font-size:13px}
.menu-ingredient-dialog .menu-purchase-history td{vertical-align:middle}
.menu-ingredient-dialog .menu-purchase-history td:nth-child(2){display:table-cell;min-width:150px;max-width:220px;white-space:normal}
.menu-purchase-history td strong{font-weight:500}.menu-purchase-history td small{display:block;font-size:11px;margin-top:4px;line-height:1.4}
.menu-ingredient-dialog .menu-purchase-history td:nth-child(2) small{white-space:normal;overflow-wrap:anywhere}
.menu-ingredient-dialog .menu-format-assistant{padding:0 0 20px;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0}
.menu-ingredient-dialog .menu-format-grid{align-items:start;gap:18px 16px}
.menu-ingredient-dialog .menu-format-grid .input-group{display:grid;grid-template-rows:36px auto;align-content:start;font-size:13px;gap:6px;min-width:0}
.menu-ingredient-dialog .menu-format-grid input{width:100%;min-width:0;height:38px}
.menu-ingredient-dialog .usage-settings input{accent-color:var(--gold)}
.menu-ingredient-dialog .usage-settings>.control-actions{margin-left:auto}
@media(max-width:1023px){.purchasing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.page-budget .menu-reference-panel>.section-title{align-items:flex-start;flex-direction:column}.page-budget .menu-reference-actions{width:100%}}
@media(max-width:767px){
 .purchasing-search{margin:0;width:100%}.purchasing-metrics{gap:20px 16px}.purchasing-metrics dd{font-size:19px}.purchasing-metrics dt{font-size:12px}
 .page-budget .menu-reference-layout.has-selection .menu-product-list{max-height:none;overflow:visible}
 .page-budget .menu-product-detail{border-left:0;border-top:1px solid var(--border);padding:20px 0 0}
 .page-budget .menu-category-toggle{padding:12px 10px;gap:8px}.page-budget .menu-category-meta strong{font-size:12px}
 .page-budget .menu-product-item{grid-template-columns:minmax(0,1fr);gap:8px}
 .page-budget .menu-product-cost{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;text-align:left;min-width:0;width:100%}
 .menu-ingredient-dialog .menu-kpi-grid--ingredient{grid-template-columns:minmax(0,1fr);gap:0}
 .menu-ingredient-dialog .menu-kpi-grid>div{padding:8px 0}.menu-ingredient-dialog .menu-supplier-row{grid-template-columns:minmax(0,1fr) auto}.menu-ingredient-dialog .menu-supplier-row>span:first-child{grid-column:1/-1}
 .menu-ingredient-dialog .menu-format-assistant{grid-template-columns:minmax(0,1fr)}.menu-ingredient-dialog .menu-format-assistant>button{justify-self:end}
 .menu-ingredient-dialog .menu-format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-ingredient-dialog .menu-format-grid .input-group{grid-template-rows:42px auto}
.menu-ingredient-dialog .menu-format-grid input{height:42px}.menu-ingredient-dialog .usage-settings>.control-actions{margin-left:0}
}

/* Shared workspace frame. Navigation owns a grid track; content never runs behind it. */
.purchasing-area-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.purchasing-area-metrics>div:nth-child(3) dd{font-size:21px;line-height:inherit}
.purchasing-area-metrics small{line-height:1.5}.purchasing-area-metrics small.manual-text{color:var(--warning,#ffb55c)}
.purchasing-spend-trend{display:inline-flex;gap:4px;align-items:center;white-space:nowrap;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.purchasing-spend-trend svg{width:15px;height:15px}.purchasing-spend-trend.is-up{color:#ff8787}.purchasing-spend-trend.is-down{color:#74d9a0}.purchasing-spend-trend.is-flat{color:var(--muted)}
.purchasing-sales-basis{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:0 0 16px}.purchasing-sales-basis strong{color:var(--text);font-weight:500}
.purchasing-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:24px}
.purchasing-area-section{min-width:0;display:flex;flex-direction:column}.purchasing-area-section .report-title{min-height:32px;margin-bottom:16px}.purchasing-area-section h3{font-size:18px;margin:0}
.purchasing-area-section>.report-table-wrap{flex:1}.report-table-wrap .table.purchasing-area-table{min-width:475px;font-size:13px;height:100%}.purchasing-area-table th:first-child{width:29%;white-space:normal}.purchasing-area-table tbody th{font-weight:400}
body .table.purchasing-area-table tbody th,body .table.purchasing-months-table tbody th{background:transparent;position:static;color:var(--text)}
body .purchasing-area-table :is(th,td){padding:12px 10px;vertical-align:middle}.purchasing-area-table .num{white-space:nowrap}.purchasing-area-table tfoot :is(th,td){border-top:2px solid var(--border);font-weight:600}
.purchasing-area-table small,.purchasing-months-table small,.purchasing-items-table small{display:block;font-size:11px;color:var(--muted);font-weight:400;line-height:1.5;margin-top:4px}
.purchasing-area-table small.manual-text,.purchasing-months-table small.manual-text{color:var(--warning,#ffb55c)}
.purchasing-area-table small .report-meta{font-size:11px}.purchasing-basis-note{margin-top:16px;font-size:12px}
.purchasing-months-table{min-width:620px}.purchasing-months-table th[scope=row]{font-weight:400}.purchasing-months-table .is-current-month{background:#ffffff06}
body button.purchasing-month-link{padding:4px 0;text-align:left;min-height:32px;font-weight:400;color:inherit;white-space:normal}
.purchasing-items-table{min-width:640px}.purchasing-items-table td:first-child{width:38%;white-space:normal;overflow-wrap:anywhere}.purchasing-items-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.purchasing-items-table td.num{white-space:nowrap}
body button.purchasing-classify-name{padding:0;min-height:32px;text-align:left;white-space:normal;overflow-wrap:anywhere;font-weight:400;justify-content:flex-start}
.purchasing-items-table .purchasing-item-actions{width:96px;min-width:96px;text-align:center}.purchasing-item-actions .table-actions{flex-wrap:nowrap;justify-content:flex-end}
.purchasing-adjustments>summary,.purchasing-supplier-detail>summary{padding:12px 0;cursor:pointer;font-size:16px;font-weight:600}.purchasing-adjustments>summary>span,.purchasing-supplier-detail>summary>span{float:right;font-size:13px;color:var(--muted);font-weight:400}
.purchasing-supplier-detail .purchasing-search{display:block;margin:12px 0 20px}.purchasing-supplier-detail .purchasing-search input{margin-top:8px}
@media(max-width:1279px){.purchasing-area-grid{grid-template-columns:minmax(0,1fr)}.purchasing-area-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.purchasing-area-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.purchasing-area-metrics>div:nth-child(3) dd{font-size:19px}.purchasing-area-grid{gap:28px}.purchasing-area-section .report-title{flex-wrap:wrap}.purchasing-adjustments>summary>span,.purchasing-supplier-detail>summary>span{float:none;display:block;margin-top:4px}.purchasing-pending .report-title{align-items:flex-start;flex-direction:column}}
body.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:64px auto 1fr;grid-template-areas:'side top' 'side title' 'side main';align-content:start;min-height:100dvh;padding:0}
.app-shell>.app-sidebar{grid-area:side;position:sticky;top:0;align-self:start;height:100dvh;display:flex;flex-direction:column;background:#1c1626;border-right:1px solid var(--divider);padding:20px 14px;z-index:5}
.sidebar-brand{display:flex;align-items:center;justify-content:flex-start;padding:0 14px 22px}.sidebar-brand img{width:72px;height:72px;object-fit:contain}
.app-sidebar nav{display:grid;gap:6px}.app-sidebar nav a{min-height:48px;display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--muted);text-decoration:none;border-radius:6px;font-size:14px;border-left:3px solid transparent}
.app-sidebar nav a:hover{background:#ffffff08;color:var(--text)}.app-sidebar nav a[aria-current=page]{background:#7350bf35;color:var(--gold);border-left-color:var(--gold)}
.app-sidebar svg{width:20px;height:20px;flex:0 0 20px}.app-sidebar>button{margin-top:auto;display:flex;gap:12px;align-items:center;justify-content:flex-start}
.app-shell>.site-header{grid-area:top;position:relative;height:64px;background:var(--bg);border-bottom:1px solid var(--divider);z-index:6;padding:0 32px}
.site-header .site-header-inner{display:flex;align-items:center;gap:16px;height:64px;width:100%;max-width:none;margin:0;font-size:13px}
.site-header .shell-local{margin-left:auto;color:var(--muted)}.site-header .avatar-menu-toggle{display:flex;align-items:center;gap:8px}
.avatar-menu{position:absolute;right:24px;top:58px;background:var(--raised);border:1px solid var(--border);border-radius:8px;min-width:230px;padding:8px;box-shadow:0 16px 40px #0006;display:grid;gap:4px}
.avatar-menu a{display:block;padding:12px;color:var(--text);text-decoration:none;font-size:14px;border-radius:4px}.avatar-menu a:hover{background:#ffffff0a}.avatar-menu button{display:flex;gap:8px;align-items:center;justify-content:flex-start}
.environment-chip{font-size:11px;border:1px solid var(--divider);border-radius:4px;padding:3px 8px;color:var(--muted)}
.app-shell>.page-heading{grid-area:title;width:auto;max-width:none;margin:0;padding:30px 32px 24px;min-width:0}.app-shell>.page-heading h1{font-size:28px;font-weight:700}.app-shell>.page-heading p{font-size:14px}
.app-shell>.dashboard-heading h1{margin-bottom:0;overflow-wrap:anywhere}
.app-shell>main.container{grid-area:main;width:auto;max-width:none;margin:0;padding:0 32px 40px;align-content:start;min-width:0}
.app-shell .mobile-menu-toggle{display:none}.app-shell .report-band:first-child{border-top:0;padding-top:0}.app-shell .report-band{border-color:var(--divider)}
body :is(button,input,select,.custom-select-trigger,.icon-control,.icon-button,.tool-button){min-height:44px}
body :is(.icon-control,.icon-button,.tool-button){width:44px;min-width:44px;height:44px}
body :is(input,select,textarea,.custom-select-trigger){background:var(--bg);border-color:var(--border);color:var(--text);font-size:14px}
body .custom-select-trigger{height:44px}.custom-select-trigger::after{display:none}body .custom-select-trigger>svg{position:absolute;right:12px;top:13px;width:18px;height:18px;pointer-events:none}
body .custom-select-menu{background:var(--raised);border-color:var(--border)}body .custom-select-option{min-height:40px}body .custom-select-option.is-selected{background:#7350bf38;color:var(--text)}
body :is(.period-controls input,.period-controls>.icon-control,.report-toolbar input,.invoice-tools input,.menu-reference-actions input){height:44px;min-height:44px}
body .table th{background:var(--raised);color:var(--muted)}body .table td,body .table th{border-color:var(--divider)}
body :is(dialog.dialog,dialog.dialog>header,dialog.dialog>main,dialog.dialog>footer,.page-budget dialog.dialog,.page-budget dialog.dialog>:is(header,main,footer)){background:var(--surface)}
body dialog.dialog{padding:0;border:1px solid var(--border);border-radius:8px}body dialog.dialog>header,body dialog.dialog>footer{padding:20px 24px;border-color:var(--divider)}body dialog.dialog>main{padding:24px;min-width:0}
body dialog.dialog>footer{display:flex;justify-content:flex-end;gap:10px}body dialog.dialog>header h3{font-size:20px;font-weight:700}body:has(dialog[open]){overflow:hidden}html:has(dialog[open]){overflow:hidden}
dialog::backdrop{background:#08060dcc!important;backdrop-filter:none!important}.dialog [data-modal-close]{background:transparent}
body :is(.card,.menu-product-detail){background:var(--surface);border-color:var(--divider)}.report-kpis{padding:20px 0;border-bottom:1px solid var(--divider);margin-bottom:20px}
.report-table-wrap .sticky-first th:first-child,.report-table-wrap .sticky-first td:first-child{position:sticky;left:0;z-index:2;background:var(--bg);min-width:190px}.report-table-wrap .sticky-first th:first-child{z-index:3;background:var(--raised)}
.form-grid{align-items:start}.form-grid label{min-width:0;font-weight:500}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.form-grid textarea{min-height:120px;resize:vertical;padding:12px}
.catalog-identity-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body .purchase-catalog-toolbar{align-items:end;justify-content:space-between;gap:24px}
.purchase-section-tabs{display:flex;gap:8px;max-width:100%;overflow-x:auto;border-bottom:1px solid var(--border);margin:0 0 24px;padding:0 2px 4px;scrollbar-width:thin}
body .purchase-section-tabs .purchase-section-tab{flex:0 0 auto;min-height:44px;padding:10px 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:13px;white-space:nowrap;box-shadow:none}
body .purchase-section-tabs .purchase-section-tab:hover{background:#ffffff08;color:var(--text)}
body .purchase-section-tabs button.purchase-section-tab[aria-selected=true]:not(:disabled){border-bottom-color:var(--gold);color:var(--gold)}
.purchase-catalog-filters{display:flex;align-items:end;gap:16px;min-width:0}
.purchase-catalog-filters>label{display:grid;gap:8px;min-width:0;font-size:12px}
.purchase-catalog-filters>label{width:280px;max-width:100%}
.purchase-catalog-filters input{width:280px;max-width:100%}
.purchase-catalog-filters .custom-select{min-width:180px;max-width:240px}
.purchase-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:8px}
.purchase-list-heading h2{font-size:16px;margin:0}.purchase-list-heading>span{font-size:12px;color:var(--muted)}
.purchase-category{border-bottom:1px solid var(--border)}.purchase-category>h3{margin:0;font-size:14px}
body button.purchase-category-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:66px;padding:12px 4px;border-radius:0;text-align:left;white-space:normal}
.purchase-category-toggle>span{display:flex;align-items:center;gap:12px;min-width:0}.purchase-category-toggle strong{overflow-wrap:anywhere;font-weight:600}
.purchase-category-toggle>small{flex-shrink:0;font-size:12px;font-weight:400;color:var(--muted)}
body button.purchase-category-toggle[aria-expanded=true]{color:var(--gold)}.purchase-category-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.purchase-category>div:not([hidden]){padding:4px 0 20px}
.purchase-supplier{margin-left:16px;border-left:1px solid var(--border);padding-left:16px}.purchase-supplier+.purchase-supplier{margin-top:4px}.purchase-supplier>h4{margin:0;font-size:13px}
body button.purchase-supplier-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:10px 4px;border-radius:0;gap:16px;text-align:left;white-space:normal}
.purchase-supplier-toggle>span{display:flex;align-items:center;gap:10px;min-width:0}.purchase-supplier-toggle strong{font-weight:500;overflow-wrap:anywhere}.purchase-supplier-toggle svg{flex:0 0 16px;width:16px;height:16px}
.purchase-supplier-toggle>small{flex-shrink:0;font-size:12px;font-weight:400;color:var(--muted)}body button.purchase-supplier-toggle[aria-expanded=true]{color:var(--gold)}.purchase-supplier-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.purchase-supplier>div:not([hidden]){padding:8px 0 16px}@media(max-width:767px){.purchase-supplier{margin-left:4px;padding-left:8px}.purchase-supplier-toggle>small{max-width:78px;text-align:right}.purchase-supplier-toggle>span{gap:8px}}
.purchase-products-table{min-width:720px}.purchase-products-table th:first-child{width:42%}
.purchase-products-table .purchase-actions{width:78px;min-width:78px;text-align:center;white-space:nowrap}.purchase-products-table td.purchase-actions{cursor:default}
body dialog.dialog.purchase-classification-dialog{width:960px;height:min(760px,calc(100dvh - 48px))}.purchase-classification-name{overflow-wrap:anywhere;margin:0 0 24px}.purchase-classification-name small{display:block;margin-top:8px;color:var(--muted);font-size:12px}
.purchase-classification-dialog .custom-select-menu{max-height:320px}
@media(max-width:767px){body dialog.dialog.purchase-classification-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}
.purchase-classification-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.purchase-classification-dialog label:not([hidden]){display:grid;gap:8px;min-width:0;font-size:14px;color:var(--muted)}.purchase-classification-dialog label>:is(input,select,.custom-select){width:100%;min-width:0}.purchase-classification-dialog [data-new-category]>label{margin-top:16px}.purchase-classification-scope{margin:24px 0 0;font-size:12px;color:var(--muted)}@media(max-width:767px){.purchase-classification-fields{grid-template-columns:1fr}}
body .purchase-products-table td,body .purchase-history-table td{vertical-align:middle;padding:12px}
.purchase-products-table td.num,.purchase-history-table td.num{white-space:nowrap}
.purchase-products-table small,.purchase-history-table small{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:400;white-space:normal}
.purchase-products-table tr[data-purchase-product]{cursor:pointer}.purchase-products-table tr[data-purchase-product]:hover td{background:#ffffff06}
body button.purchase-product-name{min-height:24px;padding:0;border:0;background:none;box-shadow:none!important;text-align:left;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere;font-weight:500}
.purchase-trend{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}.purchase-trend svg{width:16px;height:16px}
.purchase-trend.is-up{color:#74d9a0}.purchase-trend.is-down{color:#f4b373}.purchase-trend.is-flat,.purchase-unavailable{color:var(--muted)}.purchase-unavailable{font-size:12px}
.purchase-provisional{color:#f4b373}.purchase-provisional small{color:inherit}
.purchase-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;font-size:12px;color:var(--muted)}.purchase-pagination>div{display:flex;align-items:center;gap:12px}
.purchase-empty{padding:32px 0;color:var(--muted)}
.purchase-history-format{margin:0 0 24px;font-size:12px;color:var(--muted)}
.purchase-price-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--border)}
.purchase-price-summary dt{font-size:12px;color:var(--muted);margin-bottom:8px}.purchase-price-summary dd{margin:0;font-size:21px;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.purchase-price-summary dd small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}
.purchase-price-summary dd small.purchase-provisional,.purchase-products-table small.purchase-provisional{color:#f4b373}
.purchase-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.purchase-history-heading h4{margin:0!important}.purchase-history-heading>label{max-width:220px;min-width:180px}
.purchase-history-table{min-width:820px}.purchase-history-table th:nth-child(2){width:28%}.purchase-history-table td:nth-child(2){overflow-wrap:anywhere;max-width:250px}
.purchase-baseline{font-size:12px;color:var(--muted);margin:20px 0 0;overflow-wrap:anywhere}
.purchase-history-dialog .purchase-review-link{display:block;min-height:28px;padding:4px 0;margin-top:2px;font-size:12px;font-weight:400;color:#f4b373;text-decoration:underline;text-underline-offset:3px;border:0;background:transparent;border-radius:4px}
.purchase-history-dialog .purchase-review-link:hover,.purchase-history-dialog .purchase-review-link:focus-visible{color:#ffd0a3;box-shadow:0 0 0 2px var(--border)}
.purchase-review-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}.purchase-review-heading>div{min-width:0}.purchase-review-heading h4{margin:0;overflow-wrap:anywhere}
.purchase-history-dialog fieldset{min-width:0;border:0;padding:0;margin:0}.purchase-history-dialog fieldset legend{font-size:16px;font-weight:600;margin-bottom:12px}
.purchase-adjustments-table{min-width:650px}.purchase-adjustments-table input{width:130px;text-align:right}.purchase-adjustments-table small{display:block;color:var(--muted);margin-top:4px;font-size:11px}
.purchase-review-options{display:grid;gap:0;margin:16px 0}.purchase-review-result{border-block:1px solid var(--border);padding:16px 0;margin:16px 0;font-variant-numeric:tabular-nums}.purchase-history-dialog .check-label{white-space:normal;line-height:1.5;margin-block:8px}.purchase-history-dialog .purchase-review-options .check-label{margin:0}
.purchase-history-dialog fieldset>label:not(.check-label){display:grid;gap:8px;margin-top:16px}.purchase-history-dialog fieldset>label>textarea{width:100%;min-width:0}.purchase-history-dialog input[type=radio]{accent-color:var(--gold);flex:0 0 20px;margin:0;padding:0}
body .dialog .purchase-original-view{display:block;min-width:0;width:100%;overflow:auto;max-height:60vh}.purchase-original-view img{display:block;width:100%;max-width:100%;height:auto}
@media(max-width:1100px){.purchase-catalog-toolbar{flex-wrap:wrap}.purchase-catalog-filters{flex:1;justify-content:flex-end}}
@media(max-width:767px){.purchase-catalog-filters{flex:0 0 100%}.purchase-catalog-filters>label{width:auto}}
@media(max-width:767px){.purchase-catalog-filters{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px}.purchase-catalog-filters input{width:100%}.purchase-catalog-filters .custom-select{min-width:0;max-width:100%}.purchase-price-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-price-summary dd{font-size:20px}.purchase-list-heading{align-items:start}.purchase-list-heading>span{max-width:50%;text-align:right}.purchase-category-toggle>small{max-width:90px}.purchase-history-heading{flex-wrap:wrap}.purchase-pagination{flex-wrap:wrap}.purchase-history-heading>label{min-width:0;width:200px}}
.batch-lines--categories{display:block}
.batch-category-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:24px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}
.batch-category-line>strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
.batch-category-line>label{display:grid;gap:5px;font-size:12px;min-width:0}
.batch-category-line select,.batch-category-line .custom-select{width:100%;min-width:0}
@media(max-width:600px){.batch-category-line{grid-template-columns:minmax(0,1fr);gap:10px}.batch-category-line>label{max-width:100%}}
.catalog-merge-list{max-height:420px;overflow-y:auto;border-block:1px solid var(--border);min-height:100px}
.catalog-merge-option{display:flex;align-items:center;gap:14px;padding:14px 8px;border-bottom:1px solid var(--border);cursor:pointer}
.catalog-merge-option:hover,.catalog-merge-option:has(input:checked){background:var(--surface-hover,rgba(255,255,255,.04))}
.catalog-merge-option input{flex:0 0 18px;width:18px;height:18px;accent-color:var(--gold)}
.catalog-merge-option>span{min-width:0;overflow-wrap:anywhere}.catalog-merge-option small{display:block;color:var(--muted);margin-top:4px}
.catalog-merge-count{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;overflow-wrap:anywhere}
.catalog-merge-selected{display:inline-flex;align-items:center;gap:4px;max-width:100%;border-bottom:1px solid var(--border)}
.catalog-merge-selected .tool-button{flex-shrink:0}
.workflow-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.55fr);gap:28px;align-items:start}.workflow-summary{border-left:1px solid var(--divider);padding:0 0 0 24px}.workflow-summary dl{display:grid;gap:18px}.workflow-summary dt{color:var(--muted);font-size:13px}.workflow-summary dd{margin:5px 0 0;font-size:20px;font-weight:500}.workflow-status{padding:12px 0;border-bottom:1px solid var(--divider)}
.workflow-title{display:flex;gap:12px;align-items:center;margin-bottom:22px}.workflow-title h2{margin:0}.workflow-toolbar{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}
.dialog>main>label{display:grid;gap:6px;max-width:360px;margin-bottom:18px;font-size:13px}.pdf-page-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.pdf-page-grid figure{margin:0;min-width:0}.pdf-page-grid img{width:100%;aspect-ratio:210/297;object-fit:contain;background:#fff;border:1px solid var(--border)}.pdf-page-grid figcaption{padding:8px 0;font-size:13px}.pdf-page-grid label{display:grid;gap:4px}.pdf-page-grid .custom-select{width:100%}
.quality-list{display:grid;max-height:360px;overflow:auto}.quality-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--divider);color:var(--text);text-decoration:none}.quality-row small{display:block;color:var(--muted);font-size:12px}.quality-row svg{width:18px;flex-shrink:0}.report-warnings{margin:16px 0}.segmented-control [aria-selected=true]{background:var(--raised);outline:1px solid var(--border)}
.calendar-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:12px;text-align:left;min-height:108px}.calendar-key:before{content:'';width:10px;height:10px;flex-shrink:0;border:1px solid var(--border);background:transparent}.calendar-key[data-state=closed]:before{background:#5d5668}.calendar-key[data-state=below]:before{background:#9b4b5c}.calendar-key[data-state=achieved]:before{background:#4e8d73}.calendar-key[data-state=budget]:before{background:#e5c29b}.calendar-key[data-state=unbudgeted]:before{background:var(--surface)}
.review-findings{display:grid;gap:12px;margin:16px 0}.review-finding{border-left:3px solid var(--danger);padding:12px 16px;background:#ff8c8710}.review-finding strong{display:block}.manual-evidence{margin-top:20px;border-top:1px solid var(--divider);padding-top:16px}
.calendar-day[data-state=closed]{background:#36323d!important;color:#d2cadb!important;border-color:#5d5668!important}.calendar-day[data-state=below]{background:#51252e!important;border-color:#9b4b5c!important;color:#ffc4c3!important}.calendar-day[data-state=achieved]{background:#1e4137!important;border-color:#4e8d73!important;color:#adf1d0!important}.calendar-day[data-state=budget]{background:#e5c29b!important;border-color:#e5c29b!important;color:#302016!important}.calendar-day[data-state=empty]{background:transparent!important;border-color:var(--divider)!important}.calendar-day[data-state=unbudgeted]{background:var(--surface)!important;border-color:var(--border)!important}
body .calendar-day[data-state=budget]{background:rgba(229,160,81,.16)!important;border-color:transparent!important;color:#edc397!important}
body .calendar-key[data-state=budget]:before{background:rgba(229,160,81,.16);border-color:transparent}
body .calendar-day>span{color:#fff;font-variant-numeric:tabular-nums}
body .inline-actions.sales-period{align-items:flex-end;flex-wrap:nowrap}
body .sales-period>.icon-control{flex:0 0 44px;margin:0}
body .sales-period>label{width:200px;max-width:calc(100vw - 150px);margin:0}
body .sales-table .sales-target{text-align:center;min-width:190px;padding-inline:24px}
.sales-deviation{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sales-deviation.positive{color:#88dfab}.sales-deviation.negative{color:#ff9a9e}.sales-deviation.neutral{color:var(--muted)}
.calendar-day small{color:inherit}.calendar-day .calendar-status-dot{display:none}.calendar-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.calendar-legend span{display:flex;align-items:center;gap:6px}.legend-swatch{width:12px;height:12px;border-radius:2px;border:1px solid var(--divider)}
.login-body .login-card{background:var(--surface)}.login-body .login-form input:not([type=checkbox]){background:var(--bg)}.login-card .hero h1{font-weight:700}
.connection-error{max-width:600px;margin:80px auto;padding:24px}.connection-error h1{font-size:24px}
.document-review-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.document-review-grid:has([data-original-view]:not([hidden])){grid-template-columns:minmax(220px,.8fr) minmax(0,1fr)}.document-review-grid>*{min-width:0}.document-review-grid .batch-original{width:100%;height:650px;max-height:70dvh;object-fit:contain;border:1px solid var(--border);background:#fff}
.original-scroll{overflow:auto;max-height:70dvh;border:1px solid var(--border);background:#fff}.document-review-grid .original-scroll .batch-original{display:block;max-width:none;height:auto;max-height:none;border:0}.pdf-preview-controls{flex-wrap:wrap}
.annual-table th:first-child{position:sticky;left:0;z-index:2;min-width:200px;max-width:260px;white-space:normal;background:var(--surface)}.annual-table thead th:first-child{z-index:3;background:var(--raised)}.annual-table td,.annual-table th{min-width:135px}.annual-table th small{display:block;font-size:11px;font-weight:400}
.annual-table td small{display:block;font-size:11px;color:var(--muted)}.pdf-preview-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}.pdf-preview-controls span{font-size:12px;white-space:nowrap}.has-documents .batch-drop{padding:12px;margin-bottom:12px}.has-documents .batch-summary{margin:8px 0}
@media(max-width:767px){.calendar-grid .calendar-day{height:52px;min-height:52px!important;padding:4px!important;gap:0!important;overflow:hidden}.calendar-grid .calendar-day>span,.calendar-grid .calendar-day>small{display:none}.calendar-grid .calendar-day>strong{font-size:14px;line-height:1.2}.calendar-grid{gap:4px}}
@media(max-width:1023px){.document-review-grid:has([data-original-view]:not([hidden])){grid-template-columns:minmax(0,1fr)}.document-review-grid .batch-original{height:360px}}
@media(max-width:1023px){body.app-shell{grid-template-columns:190px minmax(0,1fr)}.app-shell>.site-header{padding:0 24px}.app-shell>.page-heading{padding:24px}.app-shell>main.container{padding:0 24px 32px}.workflow-layout{grid-template-columns:minmax(0,1fr)}.workflow-summary{border-left:0;border-top:1px solid var(--divider);padding:20px 0 0}}
@media(max-width:767px){body.app-shell{display:block}.app-shell>.app-sidebar{display:none}.app-shell .mobile-menu-toggle{display:inline-flex}.app-shell>.site-header{padding:0 16px}.site-header .site-header-inner{gap:8px}.shell-local{display:none}.avatar-menu-toggle{margin-left:auto}.avatar-menu-toggle span{display:none}.app-shell>.page-heading{padding:24px 16px 20px}.app-shell>.page-heading h1{font-size:25px}.app-shell>main.container{padding:0 16px 32px}body dialog.dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}body dialog.dialog>header,body dialog.dialog>footer{padding:16px}body dialog.dialog>main{padding:16px}.workflow-layout{gap:16px}.workflow-toolbar{justify-content:flex-end}.calendar-day{min-width:0}.report-kpis{gap:20px}.report-kpis strong{font-size:20px}.form-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* UI audit: shared form geometry, dialog hierarchy and restrained motion. */
body :is(button,input,select,textarea){font-family:Poppins,sans-serif;letter-spacing:0}
body :is(.report-toolbar,.invoice-tools,.finance-toolbar,.control-actions,.period-controls){gap:12px 16px}
body :is(.report-toolbar,.invoice-tools,.finance-toolbar,.control-actions,.period-controls)>label:not(:has(input[type=checkbox])){display:grid;gap:8px;min-width:0;margin:0;font-size:14px}
body :is(.report-toolbar,.invoice-tools,.finance-toolbar)>label:not(:has(input[type=checkbox])){flex:0 1 210px;width:210px;max-width:100%}
body :is(.report-toolbar,.invoice-tools,.finance-toolbar) :is(input,select,.custom-select){max-width:100%;min-width:0;width:100%}
body .invoice-tools .custom-select{min-width:0;width:100%}
body .invoice-tools>label:not(:has(input[type=checkbox])){flex:1 1 155px;width:auto}
body .invoice-tools>label:has(input[type=search]){flex:2 1 235px}
body .invoice-tools>label:has([name=pageSize]){flex:0 1 110px}
body .menu-reference-actions .custom-select{width:235px;max-width:100%}
body .dialog form>label:not(.check-label),body .dialog main>label:not(.check-label){display:grid;gap:8px;min-width:0;max-width:none;font-size:14px}
body .dialog form>label:not(.check-label)>:is(input,select,textarea,.custom-select){width:100%;min-width:0}
body :is(.check-label,.finance-checkbox){display:flex!important;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;line-height:1.5;white-space:normal;cursor:pointer;max-width:100%}
body :is(input[type=checkbox],.form-grid input[type=checkbox],.check-label input[type=checkbox],.finance-checkbox input[type=checkbox]){width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px;flex:0 0 20px;margin:0;padding:0;accent-color:var(--gold);align-self:center}
body .dialog .check-label{font-weight:400;color:var(--text)}
body .dialog form>label:has(input[name=concept]),body .dialog form>label:has(input[name=reason]),body .dialog form>label:has(textarea){grid-column:1/-1}
.date-description{display:block;color:var(--muted);font-size:12px;line-height:18px;font-weight:400}
.localized-date-control{position:relative;display:block;min-width:0;width:100%}.localized-date-control>input{width:100%;min-width:0}
body .localized-date-control>input{height:44px;min-height:44px}
/* Native month controls render differently on Android; never overlay a second value. */
.localized-date-control>.date-description{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;pointer-events:none}
body .dialog[data-size=compact]{width:560px}body .dialog[data-size=form]{width:760px}body .dialog[data-size=wide]{width:1120px}
body dialog.dialog{height:fit-content;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
body dialog.dialog[open]{display:flex;flex-direction:column;animation:dialog-enter 180ms ease-out}
body dialog.dialog>header,body dialog.dialog>footer{flex:0 0 auto}
body dialog.dialog>main{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}
body dialog.dialog>footer{flex-wrap:wrap;align-items:center}
body dialog.dialog>footer>.dialog-status{flex:1 0 100%;max-width:100%;overflow-wrap:anywhere}
body dialog.dialog>footer>.dialog-status:empty{display:none}
body dialog.dialog>footer>button:first-of-type:not(.btn-primary):not(.btn-alt){margin-right:auto}
body :is(button.btn-tertiary,.btn.btn-tertiary){background:transparent;border-color:transparent;box-shadow:none;color:var(--muted)}
body .btn-tertiary:hover:not(:disabled){background:#ffffff08;color:var(--text);border-color:transparent}
body .dialog main>h4{margin:24px 0 12px}.dialog main>h4:first-child{margin-top:0}
body .dialog textarea{min-height:88px;resize:vertical;line-height:1.5;padding:12px}
.field-error,.dialog-status.is-error{color:#ffaaa5;font-size:13px;line-height:1.5}
.field-error{display:block;grid-column:1/-1;margin:0 0 8px;padding-left:10px;border-left:3px solid #ffaaa5}
body :is(input,select,textarea)[aria-invalid=true]{border-color:#ffaaa5;outline-color:#ffaaa5}
.dialog-status.is-error::before{content:'!';font-weight:700;margin-right:8px}
body :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.region-loading{font-size:13px;color:var(--muted);min-height:20px;margin:12px 0}
.ui-announcement{position:fixed;right:24px;bottom:24px;z-index:20;max-width:calc(100vw - 32px);padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:6px;font-size:14px;color:var(--text);box-shadow:0 6px 24px #0005}
[data-quality] summary.report-title{justify-content:flex-start;gap:12px}
body :is(.period-controls,.report-toolbar,.invoice-tools) .localized-date-control{min-width:180px}
@media(max-width:767px){body :is(.period-controls,.report-toolbar,.invoice-tools) .localized-date-control{min-width:0}}
[aria-busy=true]:not(button){opacity:.65}
body .table :is(td.num,th.num){text-align:right;font-variant-numeric:tabular-nums}
body .table tfoot :is(td,th){background:var(--raised);font-weight:700;border-top:2px solid var(--border)}
.report-table-wrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-gutter:stable}
body .annual-table th:first-child{width:210px;min-width:210px;max-width:210px;box-shadow:2px 0 0 var(--border);background:var(--surface)}
body .annual-table thead th:first-child{background:var(--raised)}
.table-scroll-note{font-size:12px;color:var(--muted);margin:0 0 8px}
body .dialog details>summary,body .finance-days>details>summary,body .finance-controls-menu>summary,body .report-warnings>summary{list-style:none;cursor:pointer;min-height:32px}
body :is(.dialog,.finance-days,.finance-controls-menu,.report-warnings) summary::-webkit-details-marker{display:none}
body :is(.dialog,.finance-days,.finance-controls-menu,.report-warnings) summary::before{content:'';display:inline-block;width:16px;height:16px;flex:0 0 16px;vertical-align:-3px;margin-right:8px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform 150ms ease-out}
body :is(.dialog,.finance-days,.finance-controls-menu,.report-warnings) details[open]>summary::before,body details:is(.finance-controls-menu,.report-warnings)[open]>summary::before{transform:rotate(90deg)}
.calendar-legend{margin-top:20px}.profile-meta{overflow-wrap:anywhere}
.menu-category-icon svg{transition:transform 150ms ease-out}.menu-category-toggle[aria-expanded=true] .menu-category-icon svg{transform:rotate(90deg)}
body.page-account [data-account-tabs]{justify-content:flex-start;justify-self:start;margin-inline:0}.page-account .profile-actions [data-logout]{background:transparent;border-color:var(--border);color:var(--text)}
button{transition:background-color 100ms ease-out,border-color 100ms ease-out,transform 100ms ease-out}
button.btn-primary:active:not(:disabled){transform:scale(.98)}
button.is-busy{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes dialog-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:767px){body dialog.dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}body :is(.report-toolbar,.invoice-tools,.finance-toolbar)>label:not(:has(input[type=checkbox])){flex:1 1 160px;width:auto}body .dialog footer button{white-space:normal}.finance-step{flex-wrap:wrap}body .menu-reference-actions .custom-select{width:100%}}
@media(prefers-reduced-motion:reduce){body dialog.dialog[open],button{animation:none;transition:none}button.btn-primary:active:not(:disabled){transform:none}}

/* Review comments: bounded controls and dialogs, including short desktop windows. */
.site-header .site-header-inner{height:100%;min-height:0}
.site-header .avatar-menu-toggle{height:40px;min-height:40px;max-height:40px;flex-shrink:0;margin-block:0}
.account-avatar{display:inline-flex!important;width:24px;height:24px;flex:0 0 24px;align-items:center;justify-content:center;overflow:hidden;border-radius:50%}
.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-avatar svg{width:20px;height:20px}
body .invoice-tools{display:grid;grid-template-columns:minmax(210px,2fr) repeat(5,minmax(145px,1fr));align-items:end;gap:16px}
body .invoice-tools>label:not(:has(input[type=checkbox])){width:auto;max-width:100%;min-width:0}
body :is(.period-controls,.report-toolbar,.invoice-tools) .localized-date-control{min-width:0}
body .invoice-tools :is(input,.custom-select,.custom-select-trigger){width:100%;min-width:0;max-width:100%}
body .form-grid{align-items:end}
body .form-grid>label:not(.check-label){align-self:end}
body dialog.dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;min-height:0;max-height:calc(100dvh - 32px);max-width:calc(100vw - 32px)}
body dialog.dialog>main{flex:1 1 auto;min-height:0}
body dialog.dialog>header h3{min-width:0;overflow-wrap:anywhere}
.due-control{position:relative;display:inline-flex;max-width:100%;min-width:0;align-items:center;gap:6px}
body button.due-trigger{display:block;min-height:38px;max-width:100%;padding:6px 8px;margin:-6px -8px;text-align:left;white-space:normal;font:inherit;color:inherit;border:1px solid transparent;background:transparent;transition:background .15s,box-shadow .15s,border-color .15s}
body button.due-trigger:is(:hover,[aria-expanded=true]){background:var(--raised);border-color:var(--divider);box-shadow:0 2px 8px #0004!important}
body button.due-trigger small{display:block;font-weight:400}
.payment-editor-row>td{padding:0 14px 16px!important}
.payment-inline{position:sticky;left:14px;box-sizing:border-box;padding:20px 0 8px;border-top:1px solid var(--divider)}
.payment-inline-form{display:grid;gap:16px;max-width:720px;text-align:left;white-space:normal}
.payment-choices{display:flex;flex-wrap:wrap;gap:8px;padding:0;border:0;margin:0;min-width:0}
.payment-choices legend{font-weight:500;margin-bottom:12px}
.payment-choices>label{position:relative;display:block;margin:0;cursor:pointer}
.payment-choices input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.payment-choices span{display:flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid var(--divider);border-radius:8px;color:var(--muted)}
.payment-choices input:checked+span{background:var(--raised);border-color:var(--gold);color:var(--text)}
.payment-choices input:focus-visible+span{outline:2px solid var(--gold);outline-offset:3px}
.payment-choices input:disabled+span{cursor:default}
.payment-date{display:flex;align-items:end;gap:24px;flex-wrap:wrap}.payment-date>label{max-width:240px}
.payment-inline-form>.inline-actions{justify-content:flex-end;flex-wrap:wrap}
.due-menu{display:grid;gap:4px;min-width:190px}
.due-menu button{text-align:left;justify-content:flex-start}
@media(max-width:1399px){body .invoice-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){body .invoice-tools{grid-template-columns:repeat(2,minmax(0,1fr))}body .invoice-tools>.search-field{grid-column:1/-1}body dialog.dialog{max-height:calc(100dvh - 20px);max-width:calc(100vw - 20px)}body .form-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-height:420px){body dialog.dialog>header,body dialog.dialog>footer{padding:10px 16px}body dialog.dialog>footer .dialog-status{max-height:60px;overflow:auto}}
.unit-review-list{display:grid;gap:8px;margin:16px 0}
body button.unit-review-item{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:16px;text-align:left;width:100%;padding:12px;white-space:normal}
.unit-review-item span{min-width:0;overflow-wrap:anywhere}.unit-review-item span:nth-child(2){text-align:right}
.unit-review-item small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}
[data-unit-form]{display:grid;gap:16px}[data-unit-form]>.inline-actions{flex-wrap:wrap}[data-unit-result]:empty{display:none}
body .batch-layout>aside{min-width:0}
body .batch-file{grid-template-columns:22px minmax(0,1fr) 18px}
body .batch-file-content{min-width:0}
body .batch-review>h3{overflow-wrap:anywhere}
body .batch-file.is-pending{background:rgba(255,255,255,.025)}
body .batch-file.is-pending.is-active{background:rgba(244,204,75,.055)}
body .batch-file.is-pending strong{opacity:.55}
body .batch-file.is-uploading{cursor:progress}
body .batch-file-placeholder{width:18px;height:18px}
body .batch-file-indicator{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:var(--muted)}
body .batch-file-indicator svg{width:18px;height:18px}
body .is-busy>.batch-file-indicator{color:var(--gold)}
body .is-busy>.batch-file-indicator svg{animation:batch-file-spin 1s linear infinite}
body .batch-file[data-file-state=saved] .batch-file-indicator{color:var(--success)}
body .batch-file[data-file-state=error] .batch-file-indicator{color:var(--danger)}
body .batch-processing-status{display:flex;align-items:center;gap:10px;color:var(--muted)}
@keyframes batch-file-spin{to{transform:rotate(360deg)}}
body .batch-line{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;min-width:0}
body .document-review-grid .batch-lines{overflow:visible}
body .batch-line>label:first-child{grid-column:1/-1}
body .batch-line-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body .batch-line-actions [data-remove-line]{margin-left:auto;order:2}
body .batch-line-actions small{color:var(--muted);font-variant-numeric:tabular-nums}
body .piece-panel{grid-column:1/-1;min-width:0;border-top:1px solid var(--border);padding-top:16px;display:grid;gap:12px}
body .piece-panel[hidden],body .piece-panel [hidden]{display:none!important}
body .piece-panel textarea{width:100%;min-height:80px;resize:vertical}
body .piece-panel button{justify-self:start}
body .piece-panel [data-piece-result]{display:grid;gap:12px;min-width:0}
body .piece-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
body .piece-summary small{font-weight:400}
body .piece-portion{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
body .piece-portion input{width:112px;max-width:100%}
body .piece-portion output{padding-bottom:10px;font-weight:600;font-variant-numeric:tabular-nums}
body .piece-confirmed{display:flex;align-items:center;gap:8px;color:var(--success,#77d7a1)}
body .piece-confirmed svg{flex-shrink:0}
body .piece-panel .check-label{align-items:start}
body .document-product-actions{margin:20px 0 12px;flex-wrap:wrap}
body .upload-mode{margin-bottom:16px}
body .upload-mode [aria-pressed=true]:disabled{opacity:1;color:var(--text)}
body .invoice-pages[hidden]{display:none!important}
body .invoice-pages{margin-top:20px;text-align:left;border-top:1px solid var(--border);padding-top:12px}
body .invoice-pages-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body .invoice-pages-list{list-style:none;padding:0;margin:12px 0;max-height:340px;overflow:auto}
body .invoice-pages-list li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
body .invoice-page-preview{display:flex;align-items:center;justify-content:center;width:48px;height:64px;background:var(--bg);border:1px solid var(--border)}
body .invoice-page-preview img{width:100%;height:100%;object-fit:contain}
body .invoice-page-name{min-width:0;display:grid;gap:4px}
body .invoice-page-name strong{font-size:13px;overflow-wrap:anywhere}
body .invoice-page-name small{font-size:12px;color:var(--muted)}
body .invoice-pages-list .inline-actions{gap:4px}
@media(max-width:600px){body .upload-mode{display:grid;grid-template-columns:1fr;width:100%}body .invoice-pages-list li{grid-template-columns:40px minmax(0,1fr);gap:10px}body .invoice-page-preview{width:40px;height:56px}body .invoice-pages-list .inline-actions{grid-column:2;justify-content:flex-end}}
body .document-product-actions h4{margin:0}
body .document-product-actions .inline-actions{flex-wrap:wrap}
body .saved-product-row{padding:18px 0;border-bottom:1px solid var(--border);min-width:0}
body .saved-product-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:12px;margin-bottom:8px}
body .saved-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:14px}
body .saved-product-grid .product-description{grid-column:span 2}
body .saved-product-grid .product-category{grid-column:span 2}
body .saved-product-grid label{display:grid;gap:6px;font-size:13px;color:var(--muted)}
body .saved-product-grid :is(label,input,select,textarea,.custom-select,.custom-select-trigger){min-width:0;width:100%}
body .saved-product-grid textarea{resize:vertical;min-height:68px}
body [data-products-form]>button{margin:14px 0}
@media(max-width:767px){body .saved-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .saved-product-grid .product-category{grid-column:span 1}body .document-product-actions .inline-actions{width:100%}}
[data-payment-fields]{display:grid;gap:16px;grid-column:1/-1}
@media(max-width:767px){body .batch-line{grid-template-columns:repeat(2,minmax(0,1fr))}body button.unit-review-item{grid-template-columns:minmax(0,1fr) 18px}.unit-review-item span:nth-child(2){grid-row:2;text-align:left}.unit-review-item svg{grid-column:2;grid-row:1}}
body.app-shell.finance-embedded-page{display:block;padding:0}
body.finance-embedded-page :is(.app-sidebar,.site-header,.mobile-nav,.navbar){display:none!important}
body.finance-embedded-page>header.container,body.finance-embedded-page>main.container{margin-left:auto;margin-right:auto;width:100%;max-width:none}
body.finance-embedded-page>header.container{padding:20px 24px 0}
body.finance-embedded-page>main.container{padding:16px 24px 32px}
@media(max-width:600px){body.finance-embedded-page>header.container{padding:16px 12px 0}body.finance-embedded-page>main.container{padding:12px}}
