@charset "UTF-8";
/* Usage of AI: business totals, chronological consumption and readable detail. */
.llm-all-time{display:flex;flex-direction:column;gap:5px;text-align:right;color:var(--muted);font-size:14px;line-height:1.5;min-width:180px}
.llm-all-time strong{color:var(--ink);font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}
.llm-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.llm-metric{padding:22px 24px;min-width:0;border-left:1px solid var(--line)}
.llm-metric:nth-child(3n+1){border-left:0;padding-left:0}
.llm-metric:nth-child(n+4){border-top:1px solid var(--line)}
.llm-metric>span{font-size:14px;color:var(--muted)}
.llm-metric>strong{display:block;font-size:clamp(24px,2.2vw,32px);font-weight:650;margin:8px 0;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.llm-metric>p{font-size:13px;color:var(--muted);line-height:1.6}
.llm-coverage{margin:20px 28px;font-size:14px;line-height:1.7;color:var(--muted)}
.llm-coverage.has-gaps{padding-left:14px;border-left:3px solid var(--amber);color:var(--amber)}
.llm-chart-controls{display:flex;gap:24px;flex-wrap:wrap;padding:4px 28px 14px}
.llm-chart-controls label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.llm-chart-controls select{border:1px solid var(--control-border);border-radius:7px;padding:10px 30px 10px 12px;background:var(--paper);font-size:14px;min-height:42px}
.llm-usage-bar{fill:var(--accent)}
.llm-usage-bar.is-selected{fill:var(--accent-hover);stroke:var(--accent-hover);stroke-width:2}
.llm-chart-empty{font-size:13px;fill:var(--muted)}
.llm-inspector{display:flex;align-items:center;gap:26px;padding:2px 28px 24px;min-height:84px}
.llm-inspector>label{display:flex;flex-direction:column;gap:12px;flex:0 0 230px;color:var(--muted);font-size:13px}
.llm-inspector input{width:100%;accent-color:var(--accent);height:24px;margin:0;cursor:pointer}
.llm-inspector>p{font-size:14px;line-height:1.7;color:var(--ink)}
.llm-partial{display:block;color:var(--amber);font-size:12px;white-space:normal;margin-top:4px}
.llm-table-more{margin:16px 28px 20px}
@media(max-width:900px){.llm-metric{padding:18px 16px}.llm-chart-controls{gap:14px}.llm-inspector{align-items:flex-start;gap:18px}.llm-inspector>label{flex-basis:170px}}
@media(max-width:600px){.llm-all-time{text-align:left;min-width:0;font-size:13px;gap:3px}.llm-all-time strong{font-size:20px}.llm-metrics{margin:0 18px;grid-template-columns:repeat(2,minmax(0,1fr))}.llm-metric{padding:18px 12px;border-left:1px solid var(--line)}.llm-metric:nth-child(3n+1){padding-left:12px;border-left:1px solid var(--line)}.llm-metric:nth-child(2n+1){padding-left:0;border-left:0}.llm-metric:nth-child(n+3){border-top:1px solid var(--line)}.llm-metric>span{font-size:13px}.llm-metric>strong{font-size:24px}.llm-metric>p{font-size:12px}.llm-coverage{margin:18px;font-size:13px}.llm-chart-controls{padding:0 18px 12px;gap:12px}.llm-chart-controls label{width:100%;justify-content:space-between;font-size:13px}.llm-chart-controls select{font-size:13px;min-width:155px}.llm-inspector{padding:4px 18px 20px;flex-direction:column;gap:14px}.llm-inspector>label{flex-basis:auto;width:100%}.llm-inspector>p{font-size:13px}.llm-chart-empty{font-size:11px}.llm-table-more{margin-left:18px}}
:root{--page:#f5f7f9;--paper:#fff;--ink:#20313b;--muted:#536571;--line:#dce3e8;--control-border:#7b8b96;--accent:#0073ad;--accent-hover:#005b8c;--accent-soft:#eaf4fb;--crm-blue:#009fe3;--success:#19643a;--success-soft:#eaf5ed;--green:var(--accent);--green-hover:var(--accent-hover);--green-soft:var(--accent-soft);--red:#b23b42;--red-soft:#fceef0;--amber:#805315;--amber-soft:#fcf3df;--blue:#456282;--radius:12px;font-family:"Avenir Next","Segoe UI",Arial,sans-serif;color:var(--ink);font-size:16px;font-synthesis:none}

*{box-sizing:border-box}
body{margin:0;background:var(--page)}
button,input,select{font:inherit}
button,a,input,summary,select{-webkit-tap-highlight-color:transparent}
button,a,summary{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}
button:disabled:focus{outline:none}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
button{color:inherit}
input,select{color:var(--ink)}
input::placeholder{color:#61727c}
select{cursor:pointer}
button{border:0}
svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-100px;left:20px;padding:12px 20px;background:var(--ink);color:white;z-index:100}
.skip-link:focus{top:12px}

.sidebar{width:208px;position:fixed;inset:0 auto 0 0;background:var(--paper);border-right:1px solid var(--line);padding:32px 18px 24px;display:flex;flex-direction:column;z-index:10}
.brand{display:block;color:var(--green);font-size:28px;font-weight:800;letter-spacing:-1.1px;line-height:1.1;padding:0 13px}
.brand span{display:block;color:var(--muted);font-size:13px;letter-spacing:1.1px;font-weight:500;margin-top:9px}
.sidebar-divider{height:1px;background:var(--line);margin:30px 12px 24px}
.nav-item{display:flex;align-items:center;gap:11px;border-radius:8px;padding:13px 12px;font-size:15px;font-weight:600}
.nav-item.active{background:var(--green-soft);color:var(--green)}
.sidebar-bottom{margin-top:auto}
.help-link{display:flex;align-items:center;gap:9px;text-align:left;font-size:14px;color:var(--muted);background:none;padding:12px}
.help-link:hover{color:var(--green)}
.sidebar-bottom p{color:#61727c;font-size:13px;line-height:1.7;padding:14px 12px 0;border-top:1px solid var(--line);margin-top:10px}
.workspace{margin-left:208px;min-height:100vh}
.topbar{height:66px;border-bottom:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 38px;font-size:14px;color:var(--muted)}
.topbar strong{font-weight:500;color:var(--ink)}
.breadcrumb-separator{margin:0 14px;color:#61727c}
.workspace-label{display:flex;align-items:center;gap:8px;font-size:13px}
.small-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}
main{max-width:1480px;margin:0 auto;padding:33px 38px 0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}
h1{font-size:30px;font-weight:650;letter-spacing:-.9px;line-height:1.25}
.page-heading p{color:var(--muted);font-size:15px;margin-top:8px}
.page-actions{display:flex;gap:8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;min-height:40px;padding:0 16px;font-size:14px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.button.primary{background:var(--green);color:white;min-height:46px;padding:0 21px;gap:18px;font-size:15px}
.button.primary:hover{background:var(--green-hover)}
.button.secondary{background:white;border:1px solid var(--line)}
.button.secondary:hover{background:#edf2f5}
.button.text-button{background:transparent;color:var(--green);font-size:15px;padding:0 5px}
.button.text-button:hover{color:var(--green-hover);text-decoration:underline}
.icon-button{height:32px;width:32px;padding:6px;display:inline-flex;justify-content:center;align-items:center;background:none;border-radius:5px;color:var(--muted)}
.icon-button:hover{background:#edf1f4;color:var(--ink)}

.check-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);padding:21px 24px 0}
.panel-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}
.panel-caption h2{font-size:16px;font-weight:650;letter-spacing:-.2px}
.panel-caption>span{font-size:13px;color:#61727c}
.field-label{font-size:14px;display:block;font-weight:600;margin-bottom:8px}
.check-input-row{display:flex;align-items:stretch;gap:11px}
.order-input-wrap{display:flex;align-items:center;gap:11px;border:1px solid #7b8b96;flex:1;border-radius:7px;padding:0 13px;color:#61727c;background:#fff;min-width:0}
.order-input-wrap:focus-within{border-color:var(--green);box-shadow:0 0 0 2px #0073ad15}
.order-input-wrap:has(input:disabled){background:#f5f7f8}
.order-input-wrap input{border:0;background:transparent;outline:none;min-width:0;flex:1;height:44px;font-size:15px}
.order-input-wrap input:focus-visible{outline:none}
.form-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-bottom:17px}
.form-bottom p{font-size:13px;color:var(--muted)}
.checkbox-label{display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer;line-height:1.5}
.checkbox-label input{accent-color:var(--green);width:14px;height:14px;margin:0;flex-shrink:0}
.check-options{border-top:1px solid #edf0f2}
.check-options>summary{list-style:none;display:flex;align-items:center;gap:6px;padding:12px 0;font-size:13px;color:var(--muted);cursor:pointer;width:fit-content}
.check-options>summary .icon{width:12px;height:12px;transform:rotate(90deg)}
.check-options[open]>summary .icon{transform:rotate(-90deg)}
summary::-webkit-details-marker{display:none}
.options-content{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:4px 0 18px}
.option-label{font-size:14px;align-items:flex-start}
.option-label input{margin-top:3px}
.option-label small{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.model-label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.model-label select{padding:6px;border:1px solid var(--line);border-radius:5px;background:white;font-size:13px;max-width:190px}

.welcome{text-align:center;min-height:405px;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:50px 16px 38px}
.report-illustration{height:111px;width:123px;position:relative;margin:0 0 22px}
.illustration-sheet{position:absolute;width:89px;height:108px;left:12px;top:0;background:white;border:1px solid #dce5ed;border-radius:8px;transform:rotate(-5deg);padding:18px 13px;box-shadow:0 6px 16px #20313b05}
.illustration-line{height:4px;background:#d3dfe9;border-radius:2px}
.illustration-line.long{width:39px}
.illustration-line.short{width:25px;margin:6px 0 13px;background:#e5eaef}
.illustration-row{display:flex;align-items:center;gap:6px;margin-top:9px}
.illustration-row span{background:var(--crm-blue);height:5px;width:5px;border-radius:2px}
.illustration-row i{width:26px;height:3px;background:#dce5ed}
.illustration-row b{margin-left:auto;width:11px;height:3px;background:#dce5ed}
.illustration-total{width:20px;height:4px;background:#abd4ec;margin:13px 0 0 auto}
.illustration-check{position:absolute;right:0;bottom:8px;width:37px;height:37px;display:grid;place-items:center;background:var(--green);color:white;border-radius:50%;border:4px solid var(--page)}
.illustration-check .icon{width:19px;height:19px;stroke-width:2.5}
.welcome h2{font-size:20px;font-weight:600;letter-spacing:-.5px}
.welcome>p{font-size:14px;color:var(--muted);line-height:1.8;margin:11px 0 14px}
.welcome-features{display:flex;gap:24px;margin-top:35px;color:#536571;font-size:13px}
.welcome-features>span{display:flex;align-items:center;gap:5px}
.welcome-features .icon{height:13px;width:13px;color:var(--accent)}
.message{padding:14px 16px;border-radius:8px;margin-top:16px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.error-message{color:#9c3039;background:var(--red-soft);border:1px solid #f2d2d5}
.notice-message{color:var(--amber);background:var(--amber-soft);margin:0 0 16px;border:1px solid #efe1bc}
.busy-region{display:flex;align-items:center;gap:15px;padding:24px;background:white;border:1px solid var(--line);border-radius:10px;margin-top:20px}
.busy-region strong{font-size:15px;font-weight:600}
.busy-region p{color:var(--muted);font-size:14px;margin-top:5px}
.spinner{width:23px;height:23px;border:2px solid #d7e9f5;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}
}

#report{margin-top:27px;scroll-margin-top:20px}
.demo-banner{display:flex;align-items:center;gap:11px;background:#edf3fa;border:1px solid #dbe5f1;color:var(--blue);padding:12px 15px;border-radius:8px;font-size:13px;line-height:1.7;margin-bottom:23px}
.demo-banner .icon{width:17px;height:17px}
.demo-banner strong{font-weight:650}
.link-button{padding:0;background:none;color:inherit;text-decoration:underline;white-space:nowrap;font-size:13px;margin-left:auto}
.report-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
.report-heading h2{font-size:20px;letter-spacing:-.5px;font-weight:600}
.report-heading p{font-size:13px;color:var(--muted);margin-top:6px}
.duration-label{font-size:13px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:5px 10px;background:white}
.summary-panel{background:white;border:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;display:flex;align-items:center;padding:23px 25px;gap:30px}
.summary-main{min-width:145px}
.summary-count{display:flex;align-items:baseline;gap:9px}
.summary-count strong{font-size:32px;font-weight:600;letter-spacing:-1px;line-height:1.1}
.summary-count span{font-size:16px;font-weight:500}
.summary-main>p{font-size:13px;color:var(--muted);margin-top:8px}
.summary-indicators{display:flex;justify-content:space-between;align-items:center;gap:25px;flex:1;border-left:1px solid var(--line);padding-left:32px}
.summary-indicators>div{display:flex;align-items:center;gap:11px}
.summary-indicators>div>div{display:flex;flex-direction:column;gap:3px}
.summary-indicators strong{font-size:24px;font-weight:550;line-height:1.1;letter-spacing:-.6px}
.summary-indicators div div span{color:var(--muted);font-size:13px}
.indicator-icon{display:grid;place-items:center;height:35px;width:35px;border-radius:50%;flex-shrink:0}
.success{background:var(--green-soft);color:var(--green)}
.attention{background:var(--amber-soft);color:var(--amber)}
.neutral{background:#eef1f5;color:#536571}
.indicator-icon .icon{width:18px;height:18px}
.financial-strip{display:flex;align-items:center;gap:40px;background:#fafbfc;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);padding:15px 25px}
.financial-strip>div{display:flex;flex-direction:column;gap:4px;min-width:100px}
.financial-strip>div>span{font-size:12px;color:var(--muted)}
.financial-strip strong{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.financial-strip>p{font-size:12px;color:var(--muted);line-height:1.6;max-width:280px;margin-left:auto}
.negative{color:var(--red)!important}
.positive{color:var(--green)}

.report-controls{margin-top:26px}
.report-controls-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.segmented-control{display:flex;background:#e9edf0;padding:3px;border-radius:7px;flex-shrink:0}
.segmented-control button{background:none;font-size:13px;padding:8px 15px;border-radius:5px;color:var(--muted);font-weight:500}
.segmented-control button[aria-pressed=true]{background:white;box-shadow:0 0 0 1.5px var(--green);font-weight:650;color:var(--ink)}
.search-report{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:7px;max-width:340px;flex:1;padding:0 11px;color:#61727c}
.search-report .icon{height:16px;width:16px}
.search-report input{border:0;outline:none;background:none;width:100%;min-width:0;height:35px;font-size:13px}
.search-report:focus-within{border-color:var(--green)}
.search-report input:focus-visible{outline:none}
.report-controls-bottom{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}
.filter-tabs{display:flex;gap:21px;overflow-x:auto}
.filter-tabs button{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap;padding:9px 0 12px;background:none;color:var(--muted);border-bottom:2px solid transparent}
.filter-tabs button[aria-pressed=true]{color:var(--green);border-bottom-color:var(--green);font-weight:600}
.filter-tabs button span{background:#e9edf0;border-radius:4px;padding:1px 5px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.filter-tabs button[aria-pressed=true] span{background:var(--accent-soft);color:var(--green)}
.expand-controls{display:flex;gap:2px;padding-bottom:6px}
.list-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 10px;font-size:12px;color:var(--muted)}
.list-caption select{border:0;background:none;max-width:230px;color:var(--muted);font-size:12px;outline-offset:0;padding:3px 0}

.report-group{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:11px;overflow:clip}
.group-summary{list-style:none;display:grid;grid-template-columns:18px minmax(180px,1fr) 130px 130px 80px;align-items:center;gap:15px;padding:18px 20px;cursor:pointer;user-select:none}
.group-summary:hover{background:#fbfcfd}
.group-chevron{height:15px!important;width:15px!important;color:#61727c;transition:transform .15s}
.report-group[open]>.group-summary .group-chevron{transform:rotate(90deg)}
.group-title-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.group-title{font-size:16px;letter-spacing:-.2px;font-weight:650;overflow-wrap:anywhere}
.group-subtitle{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.5}
.badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;font-size:12px;line-height:1.4;font-weight:500;padding:4px 7px;border-radius:5px;white-space:normal}
.badge .icon{height:12px;width:12px;stroke-width:2}
.badge.ok{color:var(--success);background:var(--success-soft)}
.badge.attention{color:var(--amber);background:var(--amber-soft)}
.badge.missing{color:#4e606c;background:#eef1f5}
.badge.skipped{color:#536571;background:#f1f3f5}
.group-amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.group-amount span{font-size:12px;color:var(--muted);display:block;margin-bottom:4px}
.group-amount strong{font-size:14px;font-weight:550}
.group-content{border-top:1px solid var(--line)}
.supplier-block+ .supplier-block{border-top:1px solid var(--line)}
.supplier-summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:15px 20px;background:#fbfcfd;flex-wrap:wrap}
.supplier-summary>.icon{height:12px;width:12px;color:#61727c;transition:transform .15s}
.supplier-block[open]>.supplier-summary>.icon{transform:rotate(90deg)}
.supplier-name{font-size:14px;font-weight:600}
.supplier-invoice{font-size:12px;color:var(--muted)}
.supplier-summary .badge{margin-left:auto}
.supplier-staff{font-size:12px;color:var(--muted);padding:0 20px 11px;background:#fbfcfd;line-height:1.6}
.position-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.position-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
.position-table caption{height:0}
.position-table th{font-size:12px;color:#536571;font-weight:500;background:white;white-space:nowrap;padding:12px 10px 9px;border-bottom:1px solid #edf1f3;vertical-align:bottom}
.position-table th:first-child{padding-left:23px;width:35%;min-width:225px}
.position-table th:last-child{padding-right:23px}
.position-table td{padding:14px 10px;vertical-align:top;border-bottom:1px solid #edf1f3;line-height:1.6}
.position-table tbody tr:last-child td{border-bottom:0}
.position-table td:first-child{padding-left:23px}
.position-table td:last-child{padding-right:23px}
.position-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.position-name{font-size:13px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}
.position-note{font-size:12px;color:var(--muted);margin-top:6px;max-width:380px;line-height:1.6}
.position-unit{color:#536571;font-size:12px}
.identity-confidence{display:flex;gap:5px;align-items:flex-start;font-size:12px;line-height:1.6;color:var(--muted);margin-top:7px;min-width:140px;max-width:210px;padding:0;border:0;background:transparent;text-align:left;white-space:normal;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.identity-confidence:hover{color:var(--accent)}
.identity-confidence>.icon{width:13px;height:13px;margin-top:3px}
.position-table .badge{font-size:12px;white-space:normal;min-width:75px}
.negative-marker{display:block;color:var(--red);font-size:12px;margin-top:3px}
.component-list{list-style:none;margin:8px 0 0;padding:0;font-size:12px}
.component-list li{display:flex;align-items:baseline;gap:5px;margin:3px 0;color:var(--muted)}
.component-list li::before{content:"✓";color:var(--green)}
.component-list li.missing-component{color:var(--amber)}
.component-list li.missing-component::before{content:"!";color:var(--amber)}
.supplier-financial-note{font-size:12px;color:var(--muted);padding:11px 23px;background:#fcfdfe;border-top:1px solid #edf1f3;line-height:1.6}
.supplier-warning{display:flex;align-items:flex-start;gap:8px;margin:12px 20px;padding:11px 12px;background:var(--amber-soft);color:var(--amber);border-radius:6px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.supplier-warning .icon{width:15px;height:15px;margin-top:2px}
.invoice-details{margin:0 20px 14px;border-top:1px solid var(--line);padding-top:11px}
.invoice-details>summary{list-style:none;cursor:pointer;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;width:fit-content}
.invoice-details>summary>.icon{width:11px;height:11px}
.invoice-details[open]>summary>.icon{transform:rotate(90deg)}
.invoice-details>summary .badge{font-size:12px;margin-left:5px}
.metadata-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:12px;text-align:left}
.metadata-table th,.metadata-table td{border-bottom:1px solid #edf1f3;padding:8px 9px;font-weight:400}
.metadata-table thead th{color:var(--muted);font-size:12px}
.metadata-table th:first-child,.metadata-table td:first-child{padding-left:0}
.meta-issue{color:var(--amber);font-weight:600!important}
.meta-unknown{color:#536571}
.extra-section{border-top:1px solid var(--line);padding:14px 23px;background:#fffcf5}
.extra-section h4{font-size:13px;color:var(--amber);font-weight:600;margin:0 0 6px}
.extra-section>p{font-size:12px;color:var(--muted);line-height:1.6}
.extra-list{list-style:none;padding:0;margin:10px 0 0}
.extra-list li{display:flex;justify-content:space-between;gap:16px;font-size:13px;padding:6px 0;line-height:1.6}
.extra-list li>span:last-child{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.no-matches{text-align:center;padding:45px 16px;background:white;border:1px solid var(--line);border-radius:10px;color:var(--muted)}
.no-matches>.icon{width:25px;height:25px;margin-bottom:13px}
.no-matches h3{font-size:17px;color:var(--ink);font-weight:550}
.no-matches p{font-size:14px;margin:8px 0 17px}
.report-footnote{display:flex;align-items:flex-start;gap:8px;color:#61727c;font-size:12px;line-height:1.6;padding:9px 0 0}
.report-footnote .icon{width:13px;height:13px;margin-top:1px}
.page-footer{display:flex;align-items:center;justify-content:space-between;color:#61727c;font-size:12px;border-top:1px solid var(--line);padding:18px 0 21px;margin-top:30px}
.page-footer>span:first-child{font-weight:600}
.group-empty{padding:16px 23px;color:var(--muted);font-size:13px}

dialog{border:1px solid var(--line);border-radius:14px;max-width:550px;width:calc(100% - 32px);padding:25px;color:var(--ink);box-shadow:0 24px 70px #142b3b2e}
dialog::backdrop{background:#152c3d55;backdrop-filter:blur(2px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.dialog-heading h2{font-size:20px;letter-spacing:-.5px;font-weight:600}
.help-content{font-size:14px;line-height:1.8;color:var(--muted)}
.help-content dl{margin:17px 0}
.help-content dt{color:var(--ink);font-weight:600;margin-top:13px}
.help-content dd{margin:3px 0 0}


/* WCAG 2.2 AA: text >= 4.5:1, essential control boundaries and focus >= 3:1.
   Decorative separators intentionally use the quieter --line token. */
.order-input-wrap,.search-report,.model-label select,.button.secondary{border-color:var(--control-border)}
.order-input-wrap:focus-within,.search-report:focus-within{outline:3px solid var(--green);outline-offset:2px;border-color:var(--green);box-shadow:none}

.position-table{font-size:14px}
.position-name{font-size:14px}
.position-table th{font-size:12px;font-weight:600}
.position-note{font-size:13px}
.position-table .badge{font-size:12px}
.group-title{font-size:16px}
.group-amount strong{font-size:14px}
.supplier-name{font-size:14px}

.checkbox-label input{appearance:none;width:17px;height:17px;border:1.5px solid var(--control-border);border-radius:3px;background:#fff;display:grid;place-items:center;flex-shrink:0}

.checkbox-label input:checked{background:var(--green);border-color:var(--green)}

.checkbox-label input:checked::before{content:"";width:8px;height:4px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}

@media(forced-colors:active){.checkbox-label input{appearance:auto}
.checkbox-label input:checked::before{display:none}
}


@media(min-width:1600px){.sidebar{width:226px;padding-top:37px}
.workspace{margin-left:226px}
main{padding-top:39px}
.group-summary{grid-template-columns:18px minmax(240px,1fr) 150px 150px 90px}
.position-table th:first-child{width:39%}
}

@media(max-width:1190px){.sidebar{width:180px;padding-inline:12px}
.brand{font-size:25px;padding-inline:8px}
.nav-item{font-size:14px;padding-inline:9px}
.workspace{margin-left:180px}
.topbar{padding:0 25px}
main{padding:28px 25px 0}
.summary-panel{gap:20px;padding:21px}
.summary-indicators{padding-left:22px;gap:16px}
.summary-indicators>div{gap:8px}
.summary-indicators div div span{font-size:12px}
.summary-main{min-width:125px}
.indicator-icon{height:29px;width:29px}
.group-summary{grid-template-columns:15px minmax(160px,1fr) 110px 110px 65px;gap:10px;padding:17px}
.filter-tabs{gap:15px}
.financial-strip{gap:25px;padding-inline:21px}
.financial-strip>p{max-width:210px}
.options-content{align-items:flex-start}
.model-label{flex-direction:column;align-items:flex-start;gap:5px}
.group-title-top .badge{font-size:12px}
}

@media(max-width:980px){.sidebar{width:72px;padding:24px 10px}
.brand{font-size:0;padding:0;text-align:center;line-height:1}
.brand::first-letter{font-size:31px}
.brand span{display:none}
.sidebar-divider{margin:26px 4px 20px}
.nav-item{justify-content:center;font-size:0;padding:13px 8px;gap:0}
.nav-item .icon{height:21px;width:21px}
.help-link{justify-content:center;font-size:0;padding:12px 0;width:100%;gap:0}
.help-link .icon{width:20px;height:20px}
.sidebar-bottom p{display:none}
.workspace{margin-left:72px}
.summary-main{min-width:115px}
.summary-indicators{gap:14px}
.summary-indicators strong{font-size:22px}
.summary-indicators div div span{max-width:90px;line-height:1.5}
.financial-strip{gap:23px}
.financial-strip>div{min-width:90px}
.financial-strip>p{max-width:180px}
.filter-tabs{gap:13px}
.filter-tabs button{font-size:12px}
.group-title{font-size:15px}
.group-summary{grid-template-columns:14px minmax(160px,1fr) 100px 100px 58px;gap:9px}
.group-amount strong{font-size:13px}
.check-panel{padding-inline:20px}
}

@media(max-width:760px){.sidebar{position:relative;inset:auto;width:100%;height:63px;padding:0 20px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);justify-content:space-between}
.brand{font-size:24px;padding:0;text-align:left}
.brand::first-letter{font-size:24px}
.brand span,.sidebar-divider,.sidebar nav,.sidebar-bottom p{display:none}
.sidebar-bottom{margin:0}
.help-link{font-size:13px;gap:7px;padding:0}
.help-link .icon{height:17px;width:17px}
.workspace{margin-left:0}
.topbar{display:none}
main{padding:25px 20px 0}
.page-heading{margin-bottom:23px;gap:12px}
h1{font-size:27px}
.page-heading p{font-size:13px;line-height:1.6;max-width:280px}
.page-actions{gap:5px}
.page-actions .button{font-size:0;gap:0;padding:0;width:35px;min-height:35px}
.page-actions .icon{height:17px;width:17px}
.panel-caption>span{display:none}
.check-panel{padding:19px 18px 0}
.check-input-row{gap:8px}
.button.primary{padding:0 15px;gap:9px;font-size:14px}
.button.primary .icon{width:16px;height:16px}
.form-bottom{align-items:flex-start;flex-direction:column;gap:10px}
.form-bottom p{font-size:12px;line-height:1.6}
.checkbox-label{font-size:13px}
.summary-panel{padding:19px;gap:20px;align-items:flex-start;flex-wrap:wrap}
.summary-main{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}
.summary-main>p{margin:0;font-size:12px}
.summary-count strong{font-size:28px}
.summary-count span{font-size:15px}
.summary-indicators{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:17px;width:100%;gap:13px}
.summary-indicators>div{gap:8px}
.summary-indicators div div span{max-width:none;font-size:12px}
.summary-indicators strong{font-size:22px}
.financial-strip{padding:15px 19px;gap:20px;flex-wrap:wrap}
.financial-strip>div{flex:1;min-width:80px}
.financial-strip>p{max-width:none;flex-basis:100%;margin:0;font-size:12px}
.financial-strip strong{font-size:16px}
.report-controls-top{align-items:stretch}
.search-report{max-width:none}
.search-report input{font-size:12px}
.segmented-control button{padding:8px 10px;font-size:12px}
.filter-tabs{gap:13px}
.filter-tabs button{font-size:12px}
.filter-tabs button span{font-size:12px;padding:0 4px}
.expand-controls{gap:0}
.icon-button{width:29px;height:29px;padding:5px}
.group-summary{grid-template-columns:13px minmax(150px,1fr) 110px;gap:9px;padding:16px}
.group-amount.purchase,.group-amount.sale{display:none}
.group-amount strong{font-size:15px}
.group-title-top{gap:7px}
.group-title{font-size:15px}
.group-title-top .badge{font-size:12px}
.supplier-summary{padding:13px 16px;gap:7px}
.supplier-staff{padding-inline:16px}
.position-table th:first-child{min-width:215px;padding-left:16px}
.position-table td:first-child{padding-left:16px}
.position-table th:last-child,.position-table td:last-child{padding-right:16px}
.position-table td{padding-block:12px}
.report-heading h2{font-size:19px}
.report-heading p{font-size:12px}
.demo-banner{align-items:flex-start;gap:8px;padding:11px 12px;font-size:12px}
.demo-banner>.icon{margin-top:2px}
.demo-banner .link-button{display:none}
.welcome{min-height:385px;padding-top:45px}
.welcome h2{font-size:19px}
.welcome-features{gap:17px;font-size:12px}
.report-footnote{font-size:12px}
.extra-section{padding-inline:16px}
.supplier-warning{margin-inline:16px}
.options-content{flex-direction:column;gap:15px}
.model-label{flex-direction:row;align-items:center;gap:10px}
.duration-label{font-size:12px}
.list-caption select{max-width:195px}
}

@media(max-width:450px){main{padding-inline:14px}
.sidebar{padding-inline:16px}
.check-input-row{flex-direction:column;gap:10px}
.button.primary{min-height:42px;width:100%;justify-content:center;gap:14px}
.order-input-wrap input{font-size:14px}
.panel-caption{margin-bottom:17px}
.check-panel{padding-inline:16px}
.summary-panel{padding:17px}
.summary-indicators{gap:9px;align-items:flex-start}
.summary-indicators>div{align-items:flex-start;gap:6px}
.summary-indicators .indicator-icon{height:24px;width:24px}
.indicator-icon .icon{height:14px;width:14px}
.summary-indicators div div span{font-size:12px;max-width:76px;line-height:1.5}
.summary-indicators strong{font-size:20px}
.summary-main>p{max-width:145px;text-align:right;line-height:1.6}
.financial-strip{padding-inline:17px;gap:12px}
.financial-strip>div{min-width:75px}
.financial-strip strong{font-size:16px}
.report-controls-top{flex-direction:column;gap:11px}
.segmented-control{align-self:flex-start}
.segmented-control button{padding:8px 13px;font-size:13px}
.search-report input{font-size:13px}
.filter-tabs{gap:13px;max-width:calc(100vw - 103px)}
.filter-tabs button{padding-bottom:11px}
.filter-tabs button span{display:none}
.report-controls-bottom{gap:8px}
.expand-controls{gap:0}
.expand-controls .icon-button{width:25px}
.group-summary{grid-template-columns:12px minmax(0,1fr) 61px;padding:14px 12px;gap:8px}
.group-amount strong{font-size:14px}
.group-amount span{font-size:12px}
.group-title-top{gap:6px}
.group-title-top .badge{font-size:12px;padding:3px 5px}
.group-subtitle{font-size:12px}
.welcome-features{gap:12px;font-size:12px}
.welcome-features .icon{height:11px;width:11px}
.welcome h2{font-size:18px}
.welcome>p{font-size:13px}
.desktop-break{display:none}
.report-heading{align-items:flex-start}
.report-heading h2{font-size:18px}
.report-heading p{max-width:210px;line-height:1.7}
.duration-label{font-size:12px;padding:5px 7px}
.supplier-invoice{font-size:12px}
.supplier-summary .badge{font-size:12px}
.list-caption{font-size:12px}
.list-caption select{font-size:12px;max-width:177px}
.page-footer{font-size:12px}
.check-options>summary{font-size:12px}
.help-link{font-size:12px}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}
.spinner{border-top-color:var(--green);border-right-color:var(--green)}
}

@media print{body{background:white;font-size:10pt;color:#111}
.sidebar,.topbar,.page-heading,.check-panel,.page-footer,.report-controls,.list-caption,.report-footnote,.busy-region,.error-message,.page-actions,.demo-banner .link-button,dialog{display:none!important}
.workspace{margin:0}
main{max-width:none;padding:0}
#report{margin-top:0}
.report-heading{margin-bottom:12px}
.report-heading h2{font-size:20px}
.summary-panel{padding:15px;border-radius:0;break-inside:avoid}
.financial-strip{padding:10px 15px;border-radius:0;break-inside:avoid}
.report-group{border-radius:0;break-inside:auto;margin-top:14px}
.group-summary{padding:12px;grid-template-columns:12px minmax(180px,1fr) 100px 100px 60px}
.group-chevron,.supplier-summary>.icon{visibility:hidden}
.group-amount.sale,.group-amount.purchase{display:block}
.supplier-summary{padding:10px 12px}
.position-table-wrap{overflow:visible}
.position-table{font-size:12px}
.position-table th:first-child{min-width:0;width:34%}
.position-table td,.position-table th{padding:8px 6px}
.position-table tr{break-inside:avoid}
.position-table td:first-child,.position-table th:first-child{padding-left:12px}
.position-table td:last-child,.position-table th:last-child{padding-right:12px}
.position-name{font-size:12px}
.position-note{font-size:12px}
.badge{print-color-adjust:exact;-webkit-print-color-adjust:exact}
.invoice-details{margin-inline:12px}
.demo-banner{print-color-adjust:exact;-webkit-print-color-adjust:exact}
.no-matches{border:0}
.report-heading::before{content:"Отделкино";font-size:16px;font-weight:bold;color:var(--accent);margin-right:20px}
.summary-indicators{flex-wrap:nowrap}
.summary-main{width:auto}
.summary-indicators{width:auto}
.metadata-table{font-size:12px}
.financial-strip>p{flex-basis:auto}
.summary-indicators div div span{font-size:12px;max-width:none}
}


/* The queue is a working register: one continuous list, with history in place. */
.queue-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px;overflow:clip}
.queue-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 24px 14px}
.queue-heading h2{font-size:20px;font-weight:650;letter-spacing:-.4px}
.queue-heading p{font-size:14px;line-height:1.7;color:var(--muted);max-width:650px;margin-top:6px}
.connection-status{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--green);white-space:nowrap;padding-top:4px}
.connection-status::before{content:"";width:7px;height:7px;background:currentColor;border-radius:50%;flex-shrink:0}
.connection-status.offline{color:var(--amber)}
.queue-schedule{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--muted);padding:0 24px 18px}
.queue-panel>.notice-message{margin:0 24px 16px}
.queue-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 24px;border-bottom:1px solid var(--line)}
.queue-tabs{gap:24px}
.queue-tabs button{font-size:14px;min-height:48px;padding-top:12px}
.queue-tabs button span{font-size:13px;min-width:23px;text-align:center}
.queue-search{max-width:230px;margin-bottom:8px}
.queue-search input{font-size:14px;height:36px}
.queue-list-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end;padding-bottom:10px}
.queue-list-controls .queue-search{margin-bottom:0}
.queue-sort-hint{padding:10px 24px;color:var(--muted);font-size:13px;line-height:1.5;border-bottom:1px solid var(--line)}
.queue-identity .queue-created{font-size:12px}
@media(max-width:1100px){.queue-tools{flex-wrap:wrap}.queue-list-controls{width:100%;justify-content:space-between}}
@media(max-width:750px){.queue-list-controls{align-items:stretch;gap:10px;padding-bottom:14px}.queue-list-controls .queue-search{margin:0;max-width:none}.queue-sort-hint{padding:10px 18px}}
.queue-column-head,.queue-order-summary{display:grid;grid-template-columns:minmax(165px,1fr) 220px 170px 144px;gap:18px;align-items:center}
.report-repeat-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:750px){.report-repeat-actions{width:100%;gap:8px}.report-repeat-actions .button{flex:1}}
.queue-column-head{font-size:13px;color:var(--muted);padding:13px 24px;background:#fafbfc;border-bottom:1px solid var(--line)}
.queue-order+.queue-order{border-top:1px solid var(--line)}
.queue-order-summary{padding:17px 24px;list-style:none;cursor:pointer;min-height:84px}
.queue-order-summary:hover{background:#f8fafb}
.queue-order-summary>.queue-identity{display:flex;align-items:flex-start;gap:10px;min-width:0}
.queue-identity>.icon{width:14px;height:14px;margin-top:4px;color:var(--muted);transition:transform .15s}
.queue-order[open]>.queue-order-summary .queue-identity>.icon{transform:rotate(90deg)}
.queue-identity strong{font-size:16px;font-weight:650;letter-spacing:-.2px;overflow-wrap:anywhere}
.queue-identity p{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.5}
.queue-state{display:flex;flex-direction:column;gap:7px;align-items:flex-start;font-size:14px}
.queue-state small,.queue-check-date small{font-size:13px;color:var(--muted);line-height:1.5}
.queue-running .queue-order-summary{box-shadow:inset 3px 0 var(--green);background:#f3f8fc}
.queue-running-label{color:var(--muted);font-weight:600;display:flex;align-items:center;gap:8px}
.queue-running-label .spinner{width:15px;height:15px;border-color:var(--line);border-top-color:var(--muted);border-right-color:var(--muted)}
.queue-check-date{font-size:14px;font-variant-numeric:tabular-nums;display:flex;flex-direction:column;gap:5px}
.queue-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.queue-actions .button{font-size:13px;min-height:36px;padding:0 12px}
.queue-actions .button:disabled{cursor:default}
.queue-action{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:10px;background:var(--paper);border:1px solid var(--control-border);border-radius:8px;color:var(--accent);transition:background .15s,border-color .15s}
.queue-action .icon{width:21px;height:21px;stroke-width:1.8}
.queue-action:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent)}
.queue-action:active:not(:disabled){background:#dceefa}
.queue-action:disabled{background:#f1f4f6;border-color:var(--line);color:#8b969e;cursor:not-allowed;opacity:1}
.queue-empty{padding:32px 24px;color:var(--muted);font-size:14px;line-height:1.7}
.queue-footnote{padding:14px 24px;background:#fafbfc;border-top:1px solid var(--line);font-size:13px;line-height:1.7;color:var(--muted)}
.queue-history{padding:18px 24px 18px 48px;background:#f8fafb;border-top:1px solid var(--line)}
.queue-history h3{font-size:14px;font-weight:600;margin-bottom:10px}
.history-entry{display:grid;grid-template-columns:90px minmax(140px,1fr) minmax(160px,1fr) auto;align-items:center;gap:16px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.history-entry:last-child{border-bottom:0}
.history-entry time{font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
.history-entry p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:3px;max-width:460px}
.history-entry .button{min-height:34px;font-size:13px;padding-inline:12px}
.history-more{margin-top:12px}
.queue-more{display:flex;margin:16px auto}
.saved-report-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-left:3px solid var(--green);padding:12px 16px;background:var(--green-soft);margin-bottom:22px;border-radius:0 7px 7px 0}
.saved-report-bar strong{font-size:15px;font-weight:600}
.saved-report-bar p{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.6}
@media(max-width:1200px){.queue-column-head,.queue-order-summary{grid-template-columns:minmax(150px,1fr) minmax(140px,.85fr) 125px}.queue-column-head>span:last-child{display:none}.queue-actions{grid-column:2/-1;justify-content:flex-start}.queue-order-summary{gap:12px 16px}.queue-actions .button{min-height:34px}.history-entry{grid-template-columns:80px 1fr auto}.history-entry>time{grid-column:2;grid-row:2}.history-entry>.button{grid-column:3;grid-row:1/3}.history-entry>div:nth-child(2){grid-column:2}}
@media(max-width:750px){.queue-heading{padding:20px 18px 12px;flex-direction:column;gap:9px}.queue-heading h2{font-size:19px}.queue-heading p{font-size:14px}.connection-status{padding:0}.queue-schedule{padding:0 18px 14px}.queue-tools{padding:0 18px;flex-direction:column;gap:0;align-items:stretch}.queue-tabs{gap:20px;max-width:100%}.queue-tabs button{font-size:14px}.queue-search{max-width:none;margin:6px 0 14px}.queue-column-head{display:none}.queue-order-summary{grid-template-columns:1fr auto;padding:17px 18px;gap:14px}.queue-identity{grid-column:1}.queue-state{grid-column:2;grid-row:1}.queue-check-date{grid-column:1;grid-row:2;padding-left:24px;font-size:13px}.queue-check-date small{display:none}.queue-actions{grid-column:2;grid-row:2;justify-content:flex-end}.queue-actions .button{padding:0 10px;font-size:13px}.queue-state small{max-width:145px}.queue-history{padding:16px 18px}.queue-footnote{padding:14px 18px}.queue-panel>.notice-message{margin-inline:18px}.history-entry{grid-template-columns:76px minmax(0,1fr) auto;gap:8px}.history-entry .button{padding-inline:9px}.saved-report-bar{align-items:flex-start;flex-direction:column}.saved-report-bar .button{align-self:flex-start}.queue-identity strong{font-size:15px}}
@media(max-width:420px){.queue-tabs{gap:15px}.queue-tabs button{font-size:13px;gap:5px}.queue-tabs button span{display:inline;font-size:12px;min-width:19px}.queue-order-summary{column-gap:8px;padding-inline:14px}.queue-state .badge{max-width:145px}.queue-actions .button{padding-inline:8px}.queue-identity{gap:7px}.queue-identity p{max-width:150px}.queue-check-date{padding-left:21px}.history-entry{grid-template-columns:65px minmax(0,1fr) auto;font-size:13px}}
@media print{.queue-panel,.saved-report-bar{display:none!important}}
.queue-tabs button[aria-pressed] .queue-tab-wording,.queue-tabs button[aria-pressed] .queue-tab-short{padding:0;background:none;color:inherit;font-size:inherit;min-width:0}
.queue-tabs button .queue-tab-short{display:none}
@media(max-width:750px){.queue-tabs button .queue-tab-wording{display:none}.queue-tabs button .queue-tab-short{display:inline}}
.queue-crm-link{display:inline-flex;align-items:center;gap:7px;color:var(--green);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.queue-crm-link:hover{color:var(--green-hover)}
.queue-crm-link>.icon{width:13px;height:13px;stroke-width:1.8;flex-shrink:0}
.queue-mobile-date{display:none}
@media(max-width:750px){.queue-order-summary{grid-template-columns:minmax(0,1fr) 130px}.queue-check-date{display:none}.queue-identity .queue-mobile-date{display:block;margin-top:3px}.queue-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}}
@media(max-width:420px){.queue-crm-link>.icon{display:none}.queue-crm-link strong{font-size:14px}}

/* Workspace views: one task per screen, with checks in a modal. */
#welcome{display:none!important}
.nav-item{gap:10px;font-size:14px;line-height:1.5;margin-bottom:5px}
.nav-count{margin-left:auto;flex-shrink:0;background:#e9edf0;color:var(--muted);border-radius:4px;padding:1px 5px;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
.nav-item.active .nav-count{background:var(--accent-soft);color:var(--green)}
.page-heading>div:first-child{min-width:0}
.page-heading h1{overflow-wrap:anywhere}
.page-actions{flex-shrink:0;align-items:center}
.queue-heading{padding:17px 24px 11px;align-items:center}
.queue-heading p{margin:0}
.queue-schedule{padding-bottom:15px}
body[data-view=history] .queue-heading{padding-bottom:16px}
.report-navigation{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 19px;font-size:14px;color:var(--muted)}
.report-navigation a{display:inline-flex;align-items:center;gap:8px;padding:3px 0}
.report-navigation a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}
#back-to-orders .icon{transform:rotate(180deg);width:17px;height:17px}
#report-crm-link .icon{width:14px;height:14px}
body[data-view=report] #report{margin-top:0}
body[data-view=report] .page-heading{margin-bottom:19px}
.report-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 21px;margin-bottom:0;font-size:14px}
.report-context>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.report-context strong{font-weight:600}
.report-context p{font-size:14px;color:var(--muted)}
.report-context .button{background:transparent;color:var(--green);border-color:var(--control-border)}
.report-context .button:hover{background:var(--green-soft)}
.check-dialog{padding:0;width:620px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 80px #20313b30;overflow:auto}
.check-dialog::backdrop{background:#12232e70;backdrop-filter:blur(3px)}
.check-dialog .check-panel{border:0;border-radius:0;padding:25px 27px 0}
.check-dialog .panel-caption{margin-bottom:9px}
.check-dialog .panel-caption h2{font-size:22px;font-weight:650;letter-spacing:-.5px}
.check-dialog-description{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:24px;max-width:55ch}
.check-dialog-error{margin-bottom:16px}
.check-dialog .check-input-row{flex-direction:column;gap:16px}
.check-dialog .order-input-wrap input{height:48px;font-size:16px}
.check-dialog .button.primary{min-height:45px;align-self:flex-end;min-width:140px}
.check-dialog .form-bottom{flex-direction:column;align-items:flex-start;gap:16px;margin-top:15px;padding-bottom:20px}
.check-dialog .checkbox-label{font-size:14px}
.check-dialog .options-content{flex-direction:column;align-items:stretch;gap:16px}
.check-dialog .model-label{flex-direction:row;align-items:center;justify-content:space-between}
.check-dialog .model-label select{max-width:240px;border-color:var(--control-border);font-size:14px;padding:9px}
.check-dialog .check-options>summary{font-size:14px;padding-block:16px}
.check-dialog .option-label small{font-size:13px}
#check-dialog-error{margin:0 0 18px}
body[data-view=report] .busy-region{margin:0 0 22px}
body[data-view=report] .error-message{margin:0 0 22px}
@media(min-width:981px){.sidebar{width:228px}.workspace{margin-left:228px}}
@media(min-width:761px) and (max-width:980px){.nav-item{font-size:0;gap:0}.nav-count{display:none}}
@media(max-width:760px){
.sidebar{display:grid;grid-template-columns:1fr auto;grid-template-areas:"brand help" "nav nav";height:auto;padding:15px 18px 0;gap:14px 12px;position:relative}
.sidebar .brand{grid-area:brand}
.sidebar .sidebar-bottom{grid-area:help}
.sidebar nav{display:flex;grid-area:nav;gap:22px;align-items:stretch;overflow:auto;min-width:0}
.sidebar .nav-item{font-size:13px;border-radius:0;background:transparent;padding:0 0 12px;gap:7px;margin:0;border-bottom:2px solid transparent;white-space:nowrap;line-height:1.6;justify-content:flex-start}
.sidebar .nav-item.active{border-bottom-color:var(--green)}
.sidebar .nav-item .icon{width:17px;height:17px}
.sidebar .nav-count{display:inline;font-size:12px;margin-left:1px;padding:0 5px}
.sidebar .help-link{font-size:12px;line-height:1.5}
.page-actions #new-check-button{font-size:14px;gap:7px;width:auto;min-height:40px;padding:0 13px}
body[data-view=orders] .page-heading,body[data-view=history] .page-heading{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:22px}
body[data-view=report] .page-heading{align-items:flex-start;flex-direction:column;gap:15px}
body[data-view=report] .page-actions .button{font-size:13px;gap:7px;width:auto;padding:0 12px;min-height:36px}
body[data-view=report] .page-actions{align-self:flex-start}
.report-navigation{font-size:13px;gap:12px;margin-bottom:20px}
.report-context{align-items:flex-start;gap:12px;padding-bottom:18px;flex-wrap:wrap}
.report-context>div{gap:6px 10px}
.report-context strong,.report-context p{font-size:13px}
.report-context .button{font-size:13px;min-height:36px;padding:0 12px}
.queue-heading{padding:17px 18px 11px;align-items:flex-start}
.queue-heading p{font-size:14px}
.check-dialog .check-panel{padding:21px 20px 0}
.check-dialog .model-label{flex-direction:column;align-items:flex-start;gap:8px}
.check-dialog .model-label select{max-width:none;width:100%}
.check-dialog .button.primary{width:100%;align-self:stretch}
.check-dialog .panel-caption h2{font-size:21px}
}
@media(max-width:420px){.sidebar .help-link{font-size:0;gap:0;height:32px;width:32px;display:grid;place-items:center}.sidebar .help-link .icon{width:20px;height:20px}.sidebar nav{gap:18px}.sidebar .nav-item{font-size:13px}.check-dialog{max-width:calc(100vw - 24px)}}
@media print{.report-navigation,.report-context{display:none!important}}
.check-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 0 22px;border-top:1px solid var(--line);background:white;position:sticky;bottom:0}
.check-dialog-actions .button.primary{width:auto;min-width:130px;align-self:auto}
.check-dialog .form-bottom{padding-bottom:14px}
@media(max-width:450px){.check-dialog-actions .button{flex:1;min-width:0}.check-dialog-actions .button.primary{min-width:0}}
@media(max-width:450px){.summary-indicators{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.summary-indicators>div{display:block}.summary-indicators .indicator-icon{display:none}.summary-indicators>div>div{gap:7px}.summary-indicators div div span{max-width:none;line-height:1.5}.summary-indicators strong{font-size:24px}.summary-indicators>div:first-child strong{color:var(--green)}.summary-indicators>div:nth-child(2) strong{color:var(--amber)}}
@media print{body[data-view=report] .page-heading{display:block!important;margin:0 0 12px}body[data-view=report] .page-heading h1{font-size:22px}body[data-view=report] .page-heading p{font-size:12px}body[data-view=report] .page-heading .page-actions{display:none!important}body[data-view=report] .report-context{display:flex!important;padding:0 0 12px;break-inside:avoid}body[data-view=report] .report-context .button{display:none!important}}

/* Saved report previews, scoped to the expanded order. */
.queue-preview{padding:20px 24px 22px 48px;border-top:1px solid var(--line);background:#f8fafb}
.brief-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:17px}
.brief-heading h3{font-size:16px;font-weight:650}
.brief-heading p{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.6}
.brief-heading .button{min-height:36px;font-size:13px;padding:0 12px;flex-shrink:0}
.brief-heading .icon{width:15px;height:15px}
.brief-counts{display:flex;flex-wrap:wrap;gap:18px;font-size:14px;font-weight:600;margin-bottom:13px}
.brief-counts>span{display:flex;align-items:center;gap:7px}
.brief-counts .icon{width:16px;height:16px}
.brief-error{color:var(--red)}
.brief-warning{color:var(--amber)}
.badge.issue-error{color:var(--red);background:var(--red-soft)}
.brief-table-wrap{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white}
.brief-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;table-layout:fixed}
.brief-table th{font-size:13px;font-weight:600;color:var(--muted);padding:12px 14px;background:#fafbfc;border-bottom:1px solid var(--line)}
.brief-table th:first-child{width:150px}
.brief-table th:nth-child(2){width:18%}
.brief-table th:nth-child(3){width:29%}
.brief-table td{padding:15px 14px;vertical-align:top;line-height:1.6;overflow-wrap:anywhere}
.brief-table tr+tr td{border-top:1px solid var(--line)}
.brief-supplier strong,.brief-message strong{font-size:14px;font-weight:600}
.brief-supplier span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.brief-message p{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.7}
.brief-success{display:flex;align-items:flex-start;gap:11px;color:var(--green);padding:17px 18px;background:var(--green-soft);border-radius:8px}
.brief-success>.icon{width:19px;height:19px;margin-top:1px}
.brief-success strong{font-size:15px;font-weight:600}
.brief-success p{color:var(--muted);font-size:13px;line-height:1.6;margin-top:4px}
.brief-notice{display:flex;gap:9px;align-items:flex-start;color:var(--amber);background:var(--amber-soft);padding:11px 13px;font-size:13px;line-height:1.7;margin-bottom:15px;border-radius:6px}
.brief-notice .icon{width:16px;height:16px;margin-top:2px}
.brief-empty{font-size:14px;line-height:1.7;color:var(--muted);padding:4px 0 12px}
.brief-loading{display:flex;align-items:center;gap:11px;font-size:14px;color:var(--muted);padding:8px 0;line-height:1.7}
.brief-loading .spinner{width:18px;height:18px}

/* Analytics uses one metric strip and two purposeful charts. */
.statistics-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;padding:18px 20px;background:white;border:1px solid var(--line);border-radius:10px}
.statistics-filters label,.statistics-chart-metric,.daily-inspector label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted)}
.statistics-filters select,.statistics-filters input,.statistics-chart-metric select,.daily-inspector select{border:1px solid var(--control-border);background:white;border-radius:6px;height:40px;padding:0 11px;font-size:14px;color:var(--ink);min-width:0}
.statistics-filters label:first-child{flex:1;min-width:150px}
.statistics-filters label:nth-child(4){flex:1;min-width:170px}
.statistics-definition{font-size:13px;color:var(--muted);line-height:1.7;margin:13px 0 22px;max-width:100ch}
.statistics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:10px;padding:23px 0}
.statistics-metric{padding:0 23px;min-width:0}
.statistics-metric+.statistics-metric{border-left:1px solid var(--line)}
.statistics-metric>span{font-size:14px;color:var(--muted)}
.statistics-metric>strong{display:block;font-size:34px;line-height:1.3;font-weight:650;letter-spacing:-.8px;margin:7px 0;font-variant-numeric:tabular-nums}
.statistics-metric>p{font-size:12px;line-height:1.7;color:var(--muted)}
.statistics-metric.error>strong{color:var(--red)}
.statistics-metric.warning>strong{color:var(--amber)}
.statistics-coverage{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 24px}
.statistics-panel{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;overflow:hidden}
.statistics-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px 15px}
.statistics-panel-heading h2{font-size:20px;font-weight:650;letter-spacing:-.4px}
.statistics-panel-heading p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:5px}
.chart-legend{display:flex;gap:16px;font-size:13px;color:var(--muted);margin-top:5px;flex-shrink:0}
.chart-legend>span{display:flex;align-items:center;gap:7px}
.chart-legend i{display:block;flex-shrink:0}
.legend-orders{width:10px;height:12px;background:var(--green);border-radius:2px}
.legend-errors{width:18px;height:3px;background:var(--red);position:relative}
.legend-errors::after{content:"";position:absolute;width:6px;height:6px;background:var(--red);border-radius:50%;left:6px;top:-1.5px}
.statistics-daily-chart{margin:0 20px;min-width:0}
.statistics-daily-chart>svg{display:block;width:100%;height:auto}
.chart-grid line{stroke:var(--line);stroke-width:1}
.chart-grid text,.chart-date{fill:var(--muted);font-size:12px;font-family:inherit}
.chart-order-bar{fill:var(--green)}
.chart-unavailable{fill:#f1f4f6}
.chart-error-line{fill:none;stroke:var(--red);stroke-width:2.5;stroke-linejoin:round}
.chart-error-point{fill:var(--red);stroke:white;stroke-width:1.5}
.daily-hit rect{fill:transparent;cursor:crosshair}
.daily-hit.is-selected rect{fill:#0073ad0c}
.daily-inspector{padding:10px 24px 19px;display:flex;align-items:center;gap:24px}
.daily-inspector label{flex-shrink:0}
.daily-inspector p{font-size:14px;line-height:1.8;color:var(--muted);max-width:70ch}
.statistics-daily-details{border-top:1px solid var(--line)}
.statistics-daily-details>summary{cursor:pointer;padding:14px 24px;color:var(--green);font-size:14px;font-weight:600;list-style:revert}
.statistics-table-wrap{overflow:auto;max-width:100%}
.statistics-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.statistics-table thead{background:#fafbfc;color:var(--muted);font-size:13px}
.statistics-table th{font-weight:600}
.statistics-table td,.statistics-table th{padding:13px 18px;border-top:1px solid var(--line)}
.statistics-table th:first-child{padding-left:24px}
.statistics-table td:last-child,.statistics-table th:last-child{padding-right:24px}
.statistics-table tbody td{text-align:right}
.statistics-table tbody th{font-weight:500}
.statistics-error-value{color:var(--red)}
.statistics-staff-controls{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:0 24px 18px}
.statistics-staff-controls .search-report{margin-left:auto;min-width:180px;max-width:280px}
.statistics-staff-controls .search-report input{height:38px;font-size:14px}
.statistics-chart-metric{flex-direction:row;align-items:center;font-size:13px}
.statistics-chart-metric select{max-width:250px}
.statistics-staff-chart{padding:4px 24px 21px}
.staff-chart-caption{font-size:13px;color:var(--muted);margin-bottom:16px}
.staff-bar-row{display:grid;grid-template-columns:minmax(150px,28%) 1fr 70px;gap:16px;align-items:center;font-size:14px;padding:10px 0}
.staff-bar-row>span{overflow-wrap:anywhere}
.staff-bar-row>strong{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.staff-bar-row>svg{display:block;width:100%;height:14px}
.staff-bar-track{fill:#e9edf0}
.staff-bar-fill{fill:var(--red)}
.statistics-staff-note{padding:15px 24px 18px;border-top:1px solid var(--line);font-size:13px;line-height:1.8;color:var(--muted)}
.statistics-empty{font-size:14px;color:var(--muted);line-height:1.8;padding:10px 0}
.brand{padding:8px 0;background:transparent;border:0;border-radius:0;box-shadow:none}
.brand img{display:block;width:100%;height:auto;max-width:188px;margin:0 auto}
.brand span{color:var(--muted);font-size:11px;letter-spacing:.8px;line-height:1.6;margin:7px 0 0;text-align:center}
.nav-short{display:none}
@media(max-width:1100px){.brief-table th:first-child{width:130px}.brief-table th:nth-child(2){width:20%}.brief-table td,.brief-table th{padding-inline:11px}.statistics-filters{gap:12px}.statistics-metric{padding-inline:18px}.statistics-chart-metric{flex-direction:column;align-items:flex-start}.statistics-staff-controls{align-items:flex-end}}
@media(max-width:980px){.sidebar{display:grid;grid-template-columns:1fr auto;grid-template-areas:"brand help" "nav nav";position:relative;inset:auto;width:100%;height:auto;padding:12px 20px 0;gap:12px;background:white;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{grid-area:brand;display:block;width:168px;padding:8px 0;font-size:0}.brand img{width:168px;max-width:100%;margin:0}.sidebar .brand span{display:none}.sidebar .sidebar-bottom{grid-area:help;margin:0}.sidebar-divider,.sidebar-bottom p{display:none}.sidebar nav{display:flex;grid-area:nav;gap:22px;align-items:stretch;overflow:auto;min-width:0}.sidebar .nav-item{font-size:13px;border-radius:0;background:transparent;padding:0 0 12px;gap:7px;margin:0;border-bottom:2px solid transparent;white-space:nowrap;line-height:1.6;justify-content:flex-start}.sidebar .nav-item.active{border-bottom-color:var(--green)}.sidebar .nav-item .icon{width:17px;height:17px}.sidebar .nav-count{display:inline;font-size:12px;margin-left:1px;padding:0 5px}.sidebar .help-link{font-size:13px;gap:7px;padding:0;width:auto}.sidebar .help-link .icon{width:18px;height:18px}.workspace{margin-left:0}.topbar{display:none}.nav-label{display:none}.nav-short{display:inline}}
@media(max-width:750px){.queue-preview{padding:18px}.brief-heading{gap:12px}.brief-heading .button{padding:0 10px}.brief-heading p{font-size:13px}.brief-table{table-layout:auto}.brief-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.brief-table tbody{display:block}.brief-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:16px}.brief-table tr+tr{border-top:1px solid var(--line)}.brief-table td{display:block;border:0!important;padding:0;min-width:0}.brief-type{grid-column:1;grid-row:1}.brief-supplier{grid-column:2;grid-row:1;text-align:right;max-width:160px}.brief-subject{grid-column:1/-1;grid-row:2;font-weight:600}.brief-message{grid-column:1/-1;grid-row:3}.brief-message strong{font-size:14px}.brief-message p{font-size:14px}.brief-counts{gap:12px;font-size:13px}.statistics-filters{display:grid;grid-template-columns:1fr 1fr;padding:17px;gap:14px}.statistics-filters label:first-child,.statistics-filters label:nth-child(4){min-width:0}.statistics-filters label:first-child{grid-column:1/-1}.statistics-filters label:nth-child(4){grid-column:1/-1}.statistics-filters .button{grid-column:1/-1}.statistics-filters input,.statistics-filters select{width:100%;font-size:14px}.statistics-metrics{grid-template-columns:1fr 1fr;padding:0}.statistics-metric{padding:18px}.statistics-metric:nth-child(3){border-left:0}.statistics-metric:nth-child(n+3){border-top:1px solid var(--line)}.statistics-metric>strong{font-size:30px}.statistics-panel-heading{padding:18px;flex-direction:column;gap:12px}.statistics-panel-heading h2{font-size:19px}.chart-legend{margin:0}.statistics-daily-chart{margin:0 12px}.daily-inspector{padding:10px 18px 18px;flex-direction:column;align-items:stretch;gap:12px}.daily-inspector select{width:100%}.daily-inspector p{font-size:13px}.statistics-staff-controls{padding:0 18px 17px;align-items:stretch;gap:14px}.statistics-staff-controls .segmented-control{align-self:flex-start}.statistics-chart-metric{width:100%;gap:8px}.statistics-chart-metric select{max-width:none;width:100%}.statistics-staff-controls .search-report{max-width:none;width:100%;margin:0}.statistics-staff-chart{padding-inline:18px}.statistics-staff-note{padding-inline:18px}.staff-bar-row{grid-template-columns:minmax(0,1fr) 64px;gap:9px}.staff-bar-row>span{grid-column:1}.staff-bar-row>strong{grid-column:2;grid-row:1}.staff-bar-row>svg{grid-column:1/-1;grid-row:2}.statistics-daily-details>summary{padding-inline:18px}.statistics-table td,.statistics-table th{padding:12px 14px}.statistics-table th:first-child{padding-left:18px}}
@media(max-width:420px){.sidebar{padding-inline:16px}.sidebar nav{gap:16px}.sidebar .nav-item{font-size:13px;gap:5px}.sidebar .nav-item .icon{display:none}.sidebar .help-link{font-size:0;gap:0;width:32px;height:32px}.sidebar .help-link .icon{display:block;width:20px;height:20px}.queue-preview{padding:16px 14px}.brief-heading{flex-direction:column}.brief-heading .button{align-self:flex-start}.brief-supplier{max-width:130px}.brief-table tr{padding:14px}.statistics-metric{padding:16px 14px}.statistics-metric>span{font-size:13px}}
@media print{#statistics{display:none!important}}
.aliases-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px}
.aliases-toolbar>p{max-width:70ch;font-size:14px;line-height:1.8;color:var(--muted)}
.aliases-toolbar>div{display:flex;gap:10px;flex-shrink:0}
.aliases-toolbar .button.primary{min-height:40px;font-size:14px;padding-inline:16px}
.alias-rules{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.alias-rule{position:relative;padding:22px 24px}
.alias-rule+.alias-rule{border-top:1px solid var(--line)}
.alias-rule-heading{display:flex;align-items:center;gap:12px}
.alias-rule-heading h2{font-size:17px;font-weight:650}
.alias-rule-phrases{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:15px;font-size:14px}
.alias-rule-phrases>span{padding:4px 8px;background:#f1f4f6;border-radius:4px}
.alias-rule-phrases>b{font-weight:400;color:var(--muted)}
.alias-rule-categories{margin-top:14px;color:var(--muted);font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.alias-rule-categories>span{display:block}
.alias-rule-actions{display:flex;gap:16px;margin-top:17px;align-items:center}
.alias-rule-actions .button{min-height:35px;font-size:13px}
.aliases-footnote{font-size:13px;color:var(--muted);line-height:1.8;margin-top:16px}
.alias-dialog{width:720px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:23px 26px 0;overflow:auto;border-radius:14px}
.alias-dialog .dialog-heading{margin-bottom:21px}
.alias-dialog .dialog-heading h2{font-size:22px}
.alias-field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;margin:0 0 20px}
.alias-field input,.alias-field textarea,.alias-category-tools>input{background:white;color:var(--ink);border:1px solid var(--control-border);border-radius:6px;padding:10px 12px;font:inherit;font-size:15px;font-weight:400;width:100%;min-width:0}
.alias-field textarea{font-family:inherit;resize:vertical;line-height:1.7}
.alias-field>span{font-size:13px;line-height:1.7;color:var(--muted);font-weight:400}
.alias-category-field{border:0;padding:0;margin:0 0 17px;min-width:0}
.alias-category-field legend{padding:0;margin-bottom:10px;font-size:14px;font-weight:600}
.alias-category-tools{display:flex;gap:14px;align-items:center}
.alias-category-tools>input{flex:1}
.alias-category-tools .checkbox-label{font-size:13px;flex-shrink:0}
.alias-selected-count{color:var(--muted);font-size:13px;margin:10px 0;line-height:1.7}
.alias-category-options{max-height:230px;overflow:auto;border:1px solid var(--control-border);border-radius:6px}
.alias-category-option{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;cursor:pointer;font-size:14px}
.alias-category-option+.alias-category-option{border-top:1px solid var(--line)}
.alias-category-option input{accent-color:var(--green);width:16px;height:16px;flex-shrink:0;margin:3px 0 0}
.alias-category-option strong{font-weight:500;display:block;line-height:1.6}
.alias-category-option small{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.alias-category-option:has(input:checked){background:var(--green-soft)}
.alias-flags{display:flex;flex-direction:column;gap:12px;margin:19px 0}
.alias-flags .checkbox-label{font-size:14px}
@media(max-width:1100px){.aliases-toolbar{flex-direction:column;gap:16px}}
@media(max-width:750px){.alias-dialog{padding:20px 18px 0;max-width:calc(100vw - 24px)}.alias-category-tools{flex-direction:column;align-items:stretch}.alias-category-options{max-height:210px}.alias-rule{padding:19px 18px}.alias-rule-heading{align-items:flex-start;flex-wrap:wrap}.alias-rule-heading h2{font-size:16px}.aliases-toolbar>div{flex-wrap:wrap}.aliases-toolbar>p{font-size:14px}.alias-dialog .dialog-heading h2{font-size:21px}}
@media(max-width:420px){.sidebar nav{gap:12px}.sidebar .nav-count{display:none}.sidebar .nav-item{font-size:13px}.aliases-toolbar>div{width:100%}.aliases-toolbar .button{flex:1}}
@media print{#name-aliases{display:none!important}}

/* Product evidence uses the same status colours as saved reports. */
.product-checks-dialog{width:800px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);padding:0;overflow:hidden}
.product-checks-dialog[open]{display:flex;flex-direction:column}
.product-checks-header{padding:22px 28px 20px;border-bottom:1px solid var(--line);flex-shrink:0}
.product-checks-header .dialog-heading{margin-bottom:14px;gap:20px}
.product-checks-header .dialog-heading h2{font-size:17px;color:var(--muted);font-weight:500;letter-spacing:0;outline:none}
.product-checks-header .icon-button{width:44px;height:44px;margin:-8px -10px -8px 0;flex-shrink:0}
.product-checks-name{font-size:20px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.product-checks-context{font-size:13px;line-height:1.7;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.product-checks-confidence{margin-top:15px}
.product-checks-confidence>p{font-size:14px;line-height:1.7;margin-top:8px}
.product-checks-confidence>small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:7px}
.product-checks-body{padding:0 28px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.product-checks-body:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.product-checks-legacy{font-size:13px;line-height:1.7;color:var(--muted);background:var(--page);border-radius:6px;padding:12px 14px;margin-top:18px}
.product-checks-totals{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0 12px;background:var(--paper);position:sticky;top:0;z-index:1}
.checks-filter{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 11px;border:1px solid transparent;border-radius:7px;background:var(--page);color:var(--muted);font-size:12px;line-height:1.7}
.checks-filter strong{font-weight:650}
.checks-filter.passed{color:var(--success);background:var(--success-soft)}
.checks-filter.failed{color:var(--red);background:var(--red-soft)}
.checks-filter.unknown{color:var(--amber);background:var(--amber-soft)}
.checks-filter.all{color:var(--accent);background:var(--accent-soft)}
.checks-filter[aria-pressed="true"]{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor}
.checks-filter:hover{border-color:currentColor}
.product-checks-count{font-size:12px;color:var(--muted);line-height:1.7;padding-bottom:12px;border-bottom:1px solid var(--line)}
.product-checks-empty{text-align:center;padding:30px 8px 36px}
.product-checks-empty>.icon{color:var(--success);width:30px;height:30px}
.product-checks-empty>h3{font-size:16px;font-weight:600;margin:11px 0 7px}
.product-checks-empty>p{font-size:13px;color:var(--muted);line-height:1.7;max-width:42ch;margin:0 auto 18px}
.product-check-section{padding-top:22px}
.product-check-section>h3{font-size:15px;font-weight:650;letter-spacing:-.1px;margin-bottom:5px}
.product-check-section>ul{padding:0;margin:0;list-style:none}
.product-check{display:flex;gap:13px;padding:17px 0;border-bottom:1px solid var(--line)}
.product-check:last-child{border-bottom:0;padding-bottom:3px}
.product-check-symbol{display:flex;align-items:center;justify-content:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;background:#edf0f3;color:var(--muted);font-size:18px}
.product-check-symbol>.icon{width:16px;height:16px;stroke-width:2}
.product-check.passed .product-check-symbol{background:var(--success-soft);color:var(--success)}
.product-check.failed .product-check-symbol{background:var(--red-soft);color:var(--red)}
.product-check.unknown .product-check-symbol{background:var(--amber-soft);color:var(--amber)}
.product-check-detail{min-width:0;flex:1}
.product-check-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:1px}
.product-check-heading>h4{font-size:14px;font-weight:600;line-height:1.6;margin:0;overflow-wrap:anywhere}
.product-check-status{font-size:12px;line-height:1.7;white-space:nowrap;color:var(--muted)}
.passed>.product-check-detail .product-check-status{color:var(--success)}
.failed>.product-check-detail .product-check-status{color:var(--red)}
.unknown>.product-check-detail .product-check-status{color:var(--amber)}
.product-check-detail>p{color:var(--muted);font-size:13px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}
.product-check-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 20px;padding:10px 13px;margin:9px 0 0;background:var(--page);border-radius:6px;overflow-wrap:anywhere}
.product-check-values dt{font-size:11px;line-height:1.7;color:var(--muted)}
.product-check-values dd{font-size:13px;line-height:1.7;margin:2px 0 0;color:var(--ink)}
.product-checks-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;border-top:1px solid var(--line);padding:14px 28px;background:white}
.product-checks-footer>p{font-size:12px;line-height:1.7;color:var(--muted)}
body:has(.product-checks-dialog[open]){overflow:hidden}
@media(max-width:600px){.product-checks-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:11px}.product-checks-header{padding:18px 19px 16px}.product-checks-name{font-size:17px;line-height:1.5}.product-checks-header .dialog-heading{margin-bottom:10px}.product-checks-header .dialog-heading h2{font-size:15px}.product-checks-confidence{margin-top:12px}.product-checks-confidence>p{font-size:13px;line-height:1.6}.product-checks-confidence>small{font-size:12px}.product-checks-body{padding:0 19px 20px}.product-checks-footer{padding:12px 19px;gap:12px}.product-check-heading{flex-direction:column;gap:2px}.product-check-values{grid-template-columns:1fr}.product-check{gap:10px}.checks-filter{min-height:40px}}

#page-title:focus{outline:none}
@media(max-width:600px){.product-checks-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.checks-filter{justify-content:space-between;padding:5px 8px;gap:6px;min-height:38px;text-align:left}}
@media(max-width:750px){.queue-search{flex:0 0 auto;width:100%;height:38px}}
@media(max-width:420px){.queue-tabs{gap:6px}.queue-tabs button{font-size:12px;gap:4px}}

.statistics-type-controls{margin:0 24px 20px;display:inline-flex;max-width:calc(100% - 48px)}
.statistics-type-controls button{font-size:13px;padding:8px 14px;min-height:38px}
.statistics-types-chart{padding:0 24px 20px}
.issue-type-bar{display:grid;grid-template-columns:minmax(170px,28%) 1fr 45px;gap:18px;align-items:center;padding:10px 0;font-size:14px}
.issue-type-bar>span{overflow-wrap:anywhere;line-height:1.5}
.issue-type-bar>svg{display:block;width:100%;height:14px}
.issue-type-bar>strong{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.issue-type-errors{fill:var(--red)}
.issue-type-warnings{fill:var(--amber)}
.staff-chart-person,.staff-person-toggle{display:inline-flex;align-items:center;gap:8px;text-align:left;font:inherit;font-weight:500;line-height:1.5;padding:5px 0;background:none;color:var(--accent);min-width:0}
.staff-chart-person>span,.staff-person-toggle>span{overflow-wrap:anywhere;white-space:normal}
.staff-chart-person .icon,.staff-person-toggle .icon{width:13px;height:13px;flex-shrink:0;transition:transform .15s}
.staff-chart-person[aria-expanded=true] .icon,.staff-person-toggle[aria-expanded=true] .icon{transform:rotate(90deg)}
.staff-chart-person:hover>span,.staff-person-toggle:hover>span{text-decoration:underline;text-underline-offset:3px}
.staff-summary-table>.staff-types-row>td{text-align:left}
.statistics-table .staff-types-row>td{padding:0;background:var(--page)}
.staff-type-detail{padding:19px 24px 22px;text-align:left}
.staff-type-detail>h3{font-size:14px;font-weight:600;line-height:1.7;margin-bottom:12px}
.staff-type-detail>.statistics-table{background:white;white-space:normal;font-size:13px;border:1px solid var(--line);border-radius:7px}
.staff-type-detail .statistics-table th:first-child{width:40%;padding-left:16px}
.staff-type-detail .statistics-table td,.staff-type-detail .statistics-table th{padding:10px 16px}
.staff-type-detail .statistics-empty{padding:0}
@media(max-width:600px){.statistics-type-controls{margin-inline:18px;max-width:calc(100% - 36px);display:flex}.statistics-type-controls button{font-size:12px;padding:8px 9px}.statistics-types-chart{padding-inline:18px}.issue-type-bar{grid-template-columns:minmax(0,1fr) 35px;gap:8px;font-size:13px;padding:12px 0}.issue-type-bar>svg{grid-column:1/-1;grid-row:2}.issue-type-bar>strong{grid-column:2;grid-row:1}.staff-type-detail{padding-inline:16px}}

.product-check.failed.check-warning .product-check-symbol{background:var(--amber-soft);color:var(--amber)}
.product-check.failed.check-warning .product-check-status{color:var(--amber)}
.checks-filter.failed.warning-tone{background:var(--amber-soft);color:var(--amber)}

.type-legend{margin:0 0 12px;flex-wrap:wrap}
.legend-type-errors,.legend-type-warnings{width:10px;height:10px;border-radius:2px;background:var(--red)}
.legend-type-warnings{background:var(--amber)}
.issue-type-errors,.issue-type-warnings{stroke:white;stroke-width:.4}

.queue-heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 18px}
.purchase-policy-button{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;min-height:34px;background:var(--page);color:var(--muted);border:1px solid var(--control-border);border-radius:6px;font-size:12px;line-height:1.7}
.purchase-policy-button strong{font-weight:600;color:var(--ink)}
.purchase-policy-button .icon{width:13px;height:13px}
.purchase-policy-button:hover{border-color:var(--accent);color:var(--accent)}
.purchase-policy-button.automatic{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.purchase-policy-button.automatic strong{color:var(--accent)}
.purchase-policy-dialog{width:570px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:25px 27px 0}
.purchase-policy-dialog .dialog-heading{margin-bottom:10px}
.purchase-policy-dialog .dialog-heading h2{font-size:22px}
.purchase-policy-dialog .icon-button{width:40px;height:40px;flex-shrink:0}
.purchase-policy-description{color:var(--muted);font-size:14px;line-height:1.7;margin-bottom:21px}
.purchase-mode-options{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.purchase-mode-option{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--control-border);border-radius:8px;padding:16px;cursor:pointer}
.purchase-mode-option:has(input:checked){background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.purchase-mode-option input{width:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:var(--accent)}
.purchase-mode-option strong{display:block;font-size:15px;font-weight:600;line-height:1.6}
.purchase-mode-option small{display:block;color:var(--muted);font-size:13px;line-height:1.7;margin-top:6px}
.purchase-policy-note{font-size:13px;line-height:1.7;color:var(--muted);margin:20px 0}
.purchase-policy-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:17px 0 21px;background:white}
@media(max-width:750px){.queue-heading-actions{justify-content:flex-start;gap:10px 15px}.purchase-policy-button{font-size:12px}}
@media(max-width:450px){.purchase-policy-dialog{padding:20px 19px 0}.purchase-mode-option{padding:13px}.purchase-policy-actions .button{flex:1;min-width:0;font-size:13px;padding:11px 10px}.purchase-policy-actions #purchase-policy-cancel{flex:0 0 auto}}

/* Sort in the column headings; the selected column keeps a visible direction. */
.queue-column-head{padding-block:6px}
.queue-sort-heading{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;background:transparent;text-align:left;padding:7px 0;font-size:14px;font-weight:600;color:var(--muted);border-radius:4px}
.queue-sort-heading .icon{width:16px;height:16px;stroke-width:2}
.queue-sort-heading[aria-pressed=true]{color:var(--accent)}
.queue-sort-heading:hover{color:var(--accent-hover);text-decoration:underline;text-underline-offset:4px}
.queue-actions-heading{font-size:14px}
.report-view-tabs button[aria-selected=true]{background:white;box-shadow:0 0 0 1.5px var(--accent);font-weight:650;color:var(--ink)}
.report-view-tabs button{min-height:44px;font-size:15px;padding:9px 19px;display:inline-flex;align-items:center;gap:9px}
#report-document-count:not(:empty){background:#dce6ec;color:var(--ink);border-radius:5px;min-width:23px;padding:1px 6px;font-size:13px;font-variant-numeric:tabular-nums}
.documents-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:14px 0 25px}
.documents-heading h3{font-size:20px;font-weight:650}
.documents-heading p{color:var(--muted);font-size:15px;line-height:1.65;margin-top:7px;max-width:70ch}
.documents-message{display:flex;gap:12px;align-items:center;padding:36px 0;font-size:16px;color:var(--muted)}
.documents-empty{text-align:center;padding:60px 24px;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.documents-empty>.icon{width:36px;height:36px;color:var(--muted)}
.documents-empty h3{font-size:20px;margin:16px 0 8px}
.documents-empty p{color:var(--muted);font-size:15px;line-height:1.7;max-width:54ch;margin:auto}
.document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}
.document-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.document-thumbnail{position:relative;display:flex;justify-content:center;align-items:flex-start;width:100%;height:276px;overflow:hidden;background:#e9eef2;border-bottom:1px solid var(--line);padding:22px 34px 0;color:var(--muted)}
.document-thumbnail img{position:relative;width:100%;max-width:230px;height:auto;box-shadow:0 3px 15px #20313b22;z-index:1}
.document-thumbnail-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-size:14px}
.document-thumbnail-placeholder>.icon{width:40px;height:40px}
.document-thumbnail.has-preview .document-thumbnail-placeholder{display:none}
.document-format{position:absolute;top:14px;left:14px;z-index:2;min-width:38px;padding:4px 7px;background:white;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.4px}
.document-thumbnail-action{position:absolute;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;background:white;border:1px solid var(--control-border);border-radius:6px;color:var(--accent);font-size:14px;font-weight:600;box-shadow:0 3px 10px #20313b12}
.document-thumbnail:hover .document-thumbnail-action{background:var(--accent);border-color:var(--accent);color:white}
.document-thumbnail:focus-visible{outline-offset:-4px;outline-width:3px}
.document-card-body{padding:20px 20px 16px}
.document-card-body h4{font-size:17px;line-height:1.5;margin:0 0 6px;font-weight:650}
.document-invoice-number{font-size:14px;line-height:1.7;color:var(--ink)}
.document-filename{margin-top:10px;font-size:13px;color:var(--muted);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.document-card-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;padding-top:10px;border-top:1px solid var(--line)}
.document-card-actions .link-button{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:14px;font-weight:600}
.document-card-actions .icon{width:16px;height:16px}
.invoice-preview-dialog{padding:0;width:min(1360px,calc(100vw - 48px));max-width:none;height:calc(100dvh - 48px);max-height:none;border-radius:12px;background:var(--paper);overflow:hidden}
.invoice-preview-dialog[open]{display:flex;flex-direction:column}
.invoice-preview-dialog::backdrop{background:#15263599;backdrop-filter:blur(3px)}
.invoice-preview-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 26px 16px;flex-shrink:0}
.invoice-preview-header h2{font-size:22px;line-height:1.4;letter-spacing:-.3px;margin:0}
.invoice-preview-header h2:focus{outline:none}
.invoice-preview-header p{font-size:14px;color:var(--muted);line-height:1.6;margin-top:3px}
.invoice-preview-header .icon-button{width:44px;height:44px;border:1px solid var(--control-border);flex-shrink:0}
.invoice-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 26px;border-block:1px solid var(--line);flex-shrink:0;background:var(--paper)}
.invoice-page-controls,.invoice-zoom-controls{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;white-space:nowrap}
.invoice-page-controls label{display:flex;align-items:center;gap:8px}
.invoice-page-controls input{width:54px;border:1px solid var(--control-border);border-radius:5px;padding:8px 4px;text-align:center;font-size:15px;min-height:38px}
.invoice-page-controls .icon-button,.invoice-zoom-controls .icon-button{width:40px;height:40px;border:1px solid var(--control-border);background:white;color:var(--ink)}
.invoice-page-controls .previous-page{transform:rotate(180deg)}
.invoice-preview-dialog button:disabled{cursor:not-allowed;opacity:.45}
#invoice-zoom-level{min-width:48px;text-align:center;color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums}
.invoice-zoom-controls .link-button{min-height:40px;padding:6px 9px;font-size:14px}
.invoice-preview-toolbar .button{font-size:14px;min-height:40px;gap:7px;padding:8px 12px}
.invoice-preview-viewport{overflow:auto;flex:1;min-height:0;background:#e6ebef;position:relative;padding:26px 32px 40px;overscroll-behavior:contain;outline-offset:-4px;text-align:center}
.invoice-preview-viewport img{display:block;max-width:none;height:auto;box-shadow:0 3px 18px #20313b24;margin:0 auto;background:white}
#invoice-preview-status{color:var(--ink);padding:35px 16px;line-height:1.8;font-size:16px;max-width:65ch;margin:0 auto}
.invoice-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 26px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);flex-shrink:0}
#invoice-preview-filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1200px){.queue-column-head>.queue-actions-heading{display:none}}
@media(max-width:750px){.queue-column-head{display:flex;gap:10px;padding:6px 18px;justify-content:space-between;flex-wrap:wrap}.queue-column-head .queue-sort-heading{font-size:12px;gap:5px;min-height:40px}.queue-column-head>.queue-actions-heading{display:none}.report-view-tabs button{font-size:14px;padding-inline:13px}.documents-heading{margin-top:4px}.documents-heading p{font-size:14px}.document-grid{gap:16px;grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.invoice-preview-dialog{width:100vw;height:100dvh;border:0;border-radius:0}.invoice-preview-header{padding:14px 16px 10px}.invoice-preview-header h2{font-size:19px}.invoice-preview-header p{font-size:12px}.invoice-preview-toolbar{padding:8px 12px;gap:8px;flex-wrap:wrap}.invoice-page-controls,.invoice-zoom-controls{font-size:13px;gap:5px}.invoice-preview-toolbar #invoice-original{margin-left:auto}.invoice-zoom-controls .link-button{padding-inline:5px}.invoice-preview-viewport{padding:16px 12px 28px}.invoice-preview-footer{padding:10px 15px;font-size:11px}.invoice-preview-footer>span:last-child{display:none}}
.invoice-preview-viewport{scrollbar-gutter:stable}

/* Compact document chrome leaves more room for the invoice itself. */
.invoice-preview-header{padding:8px 20px;gap:14px;min-height:52px}
.invoice-preview-header>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;min-width:0}
.invoice-preview-header h2{font-size:18px;line-height:1.4}
.invoice-preview-header p{font-size:12px;line-height:1.5;margin:0}
.invoice-preview-header .icon-button{width:36px;height:36px}
.invoice-preview-link{display:inline-flex;align-items:center;padding:2px 0;border:0;background:none;color:#006b9f;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;text-align:left}
.brief-supplier .invoice-preview-link{display:flex;margin-top:4px;font-size:14px}
.invoice-document-choice{display:flex;flex-direction:column;align-items:center;gap:12px}
.invoice-document-choice>.button{text-align:left;max-width:520px;white-space:normal;gap:12px}
.invoice-document-choice small{display:block;margin-top:4px;font-weight:400;color:#526875}
.invoice-preview-toolbar{padding:6px 20px;gap:12px}
.invoice-page-controls,.invoice-zoom-controls{font-size:13px;gap:6px}
.invoice-page-controls input{width:48px;min-height:32px;padding:5px 3px;font-size:14px}
.invoice-page-controls .icon-button,.invoice-zoom-controls .icon-button{width:34px;height:34px}
.invoice-zoom-controls .link-button{min-height:34px;font-size:13px}
.invoice-preview-toolbar .button{min-height:34px;padding:5px 10px;font-size:13px}
.distribution-quantity{display:block;white-space:normal;max-width:150px;color:var(--muted);font-size:12px;line-height:1.6;margin-top:7px}
@media(max-width:750px){.invoice-preview-header{padding:8px 12px;min-height:50px}.invoice-preview-header>div{display:block}.invoice-preview-header h2{font-size:17px}.invoice-preview-header p{font-size:11px;margin-top:2px}.invoice-preview-toolbar{padding:5px 10px;gap:6px}.invoice-page-controls,.invoice-zoom-controls{font-size:12px;gap:4px}}

/* Warehouse workspace: familiar CRM navigation, prepared sections stay explicit. */
.sidebar{overflow-y:auto}
.nav-warehouse{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.nav-warehouse h2{font-size:12px;font-weight:650;line-height:1.5;color:var(--muted);margin:0 12px 10px;letter-spacing:.3px}
.nav-warehouse .nav-item{font-size:14px}
.warehouse-placeholder{display:flex;align-items:flex-start;gap:25px;padding:36px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);max-width:900px;min-height:260px;margin-bottom:32px}
.warehouse-placeholder-symbol{width:68px;height:68px;background:var(--accent-soft);color:var(--accent);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.warehouse-placeholder-symbol .icon{width:32px;height:32px;stroke-width:1.5}
.warehouse-placeholder-copy{min-width:0;padding-top:1px}
.warehouse-placeholder-status{display:inline-block;background:#edf1f4;color:var(--muted);padding:4px 9px;border-radius:5px;font-size:13px;line-height:1.5;font-weight:600}
.warehouse-placeholder-copy h2{font-size:23px;font-weight:650;letter-spacing:-.4px;line-height:1.4;margin:14px 0 9px}
.warehouse-placeholder-copy p{font-size:15px;line-height:1.8;color:var(--muted);max-width:58ch}
.warehouse-placeholder-copy .button{margin-top:24px}
@media(max-width:980px){.sidebar{overflow:visible}.sidebar nav{display:grid;grid-template-columns:minmax(0,1fr);gap:0;overflow:visible}.nav-primary{display:flex;gap:22px;overflow-x:auto;min-width:0;scrollbar-width:thin}.nav-warehouse{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;margin:0;padding:11px 0 0;border-top:1px solid var(--line)}.nav-warehouse h2{margin:0;padding:2px 0 12px;font-size:11px;line-height:1.7;letter-spacing:.2px}.warehouse-links{display:flex;gap:22px;overflow-x:auto;min-width:0;scrollbar-width:thin}.sidebar .nav-warehouse .nav-item{font-size:13px}.warehouse-placeholder{padding:28px;gap:20px}.warehouse-placeholder-copy h2{font-size:22px}}
@media(max-width:600px){.warehouse-placeholder{display:block;padding:24px 20px;min-height:0}.warehouse-placeholder-symbol{width:52px;height:52px;margin-bottom:18px;border-radius:9px}.warehouse-placeholder-symbol .icon{width:27px;height:27px}.warehouse-placeholder-copy h2{font-size:21px}.warehouse-placeholder-copy p{font-size:14px}.nav-primary,.warehouse-links{gap:18px}.nav-warehouse{gap:12px}}
@media print{#warehouse-placeholder{display:none!important}}
.position-mapping-warning{display:flex;align-items:center;gap:7px;color:var(--amber);font-size:13px;line-height:1.6;max-width:100%}
.position-mapping-warning>.icon{width:16px;height:16px;flex-shrink:0}
.position-mapping-warning>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:750px){.position-mapping-warning>span{white-space:normal}}

.brief-dependencies{margin-top:8px;color:var(--muted)}
.brief-dependencies summary{cursor:pointer;font-size:14px}
.brief-dependencies ul{margin:8px 0 0;padding-left:20px;font-size:14px;line-height:1.6}

/* Account placeholder until authentication is connected. */
.sidebar-bottom{position:relative}
.sidebar-account{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:16px 8px 0;margin-top:22px}
.sidebar-avatar{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.sidebar-avatar .icon{width:21px;height:21px}
.sidebar-account-info{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:13px;line-height:1.4}
.sidebar-account-info>span{font-weight:600}
.sidebar-account-info>a{color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:3px;min-height:22px;display:inline-flex;align-items:center}
.sidebar-account-info>a:hover{color:var(--accent)}
.sidebar-account-notice{position:absolute;bottom:calc(100% - 12px);left:0;width:210px;max-width:calc(100vw - 32px);padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:7px;box-shadow:0 4px 18px #20313b18;font-size:12px;color:var(--muted);line-height:1.5;z-index:20}
@media(max-width:980px){.sidebar-account{border:0;padding:0;margin:0;gap:8px}.sidebar-avatar{width:32px;height:32px}.sidebar-account-info{font-size:12px;gap:0}.sidebar-account-notice{bottom:auto;top:calc(100% + 10px);left:auto;right:0}.sidebar .sidebar-account-info>a{min-height:22px}}
