:root{--nav:#242424;--nav-muted:#a9a9a9;--ink:#333333;--muted:#777777;--line:#e1e1e1;--paper:#f4f4f4;--green:#4b4b4b;--lime:#d4d4d4;--white:#fff;--red:#5f5f5f;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--green)}button svg{pointer-events:none}svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;vertical-align:middle;flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:9px 14px;font-weight:550}button:hover{background:#efefef}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:#3c3c3c}button.danger{color:var(--red)}button.small{font-size:12px;padding:6px 10px}.icon-btn{padding:8px}.ghost{background:transparent;border-color:transparent}.layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#fff;display:flex;flex-direction:column;padding:28px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 28px;font-size:18px;letter-spacing:-.5px;font-weight:650}.brand-mark{background:var(--lime);color:var(--nav);border-radius:9px;padding:8px;display:flex}.brand-mark svg{width:23px;height:23px}.brand small{display:block;color:var(--nav-muted);font-size:10px;font-weight:500;letter-spacing:2.5px;margin-top:1px}.side-label{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:var(--nav-muted);padding:20px 12px 10px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{justify-content:flex-start;background:transparent;border-color:transparent;color:#c8c8c8;font-weight:450;font-size:13px;padding:11px 12px;text-align:left}.nav button:hover{background:#353535}.nav button.active{background:#3e3e3e;color:var(--lime)}.nav button svg{width:17px}.side-footer{margin-top:auto;border-top:1px solid #434343;padding:20px 12px 0;color:#c8c8c8;font-size:12px}.status-dot{width:7px;height:7px;background:#a3a3a3;border-radius:50%;display:inline-block;margin-right:7px}.side-footer p{font-size:11px;color:var(--nav-muted);margin:8px 0}.workspace{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumbs{font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center}.breadcrumbs strong{color:var(--ink);font-weight:500}.top-right{display:flex;gap:15px;align-items:center}.company-select{border:1px solid var(--line);border-radius:6px;background:#fff;padding:7px 11px;color:var(--ink);font-weight:600;font-size:12px}.avatar{background:#e7e7e7;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:11px;font-weight:650}.mode-banner{background:#ececec;border-bottom:1px solid #dbdbdb;padding:7px 36px;font-size:11px;display:flex;align-items:center;justify-content:space-between;color:#5e5e5e}.mode-banner select{background:transparent;border:0;color:#444444;font-size:11px}.main{padding:32px 36px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:15px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;text-transform:uppercase;color:var(--green);margin-bottom:6px}h1{font-family:Georgia,"Times New Roman",serif;font-size:32px;font-weight:400;letter-spacing:-.7px;margin:0 0 6px}h2{font-size:16px;font-weight:600;margin:0}h3{font-size:14px;margin:0}p{margin:6px 0 0}.subtext{color:var(--muted);font-size:12px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.hero{padding:27px 30px;background:#e5e5e5;border:1px solid #d9d9d9;border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;position:relative;overflow:hidden}.hero h2{font-family:Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.3px}.hero p{color:#686868;font-size:12px;margin:8px 0 20px;max-width:440px}.hero-graphic{width:200px;height:120px;position:relative;flex-shrink:0}.sheet{position:absolute;border:1px solid #a7a7a7;background:#f2f2f2;width:84px;height:105px;box-shadow:4px 6px 0 #cdcdcd;border-radius:3px;right:45px;transform:rotate(-10deg)}.sheet:nth-child(2){right:5px;top:10px;transform:rotate(12deg);background:#d7d7d7}.sheet:before{content:'';position:absolute;left:13px;top:17px;width:55px;height:28px;background:#b2b2b2}.sheet:after{content:'';position:absolute;left:13px;top:58px;width:47px;height:1px;background:#9b9b9b;box-shadow:0 7px #9b9b9b,0 14px #9b9b9b}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px 22px}.stat-label{color:var(--muted);font-size:12px;display:flex;justify-content:space-between}.stat-label svg{color:#9a9a9a}.stat-value{font-size:30px;font-weight:500;letter-spacing:-1px;margin:9px 0 2px}.stat-note{font-size:11px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 13px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.module-card{padding:21px;background:#fff;border:1px solid var(--line);border-radius:9px;display:block;text-align:left;position:relative;transition:border-color .15s,transform .15s}.module-card:hover{border-color:#8d8d8d;background:#fff;transform:translateY(-2px)}.module-icon{display:inline-flex;background:#ededed;padding:9px;border-radius:7px;color:var(--green);margin-bottom:16px}.module-card h3{font-size:13px;font-weight:600;margin:0 0 5px}.module-card .subtext{font-size:11px;font-weight:400}.module-card .arrow{position:absolute;right:17px;top:24px;color:#969696}.module-card .count{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:17px}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.panel-top{padding:18px 21px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.filterbar{display:flex;gap:16px;align-items:end;padding:20px 21px;border-bottom:1px solid var(--line);background:#fff;flex-wrap:wrap}.filterbar label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);min-width:160px}.filterbar select{padding:9px 30px 9px 10px;border:1px solid var(--line);border-radius:6px;max-width:280px;min-width:160px;color:var(--ink);background:#fff}.filterbar label:first-child{flex:1}.search{position:relative}.search input{padding:8px 12px 8px 34px;border:1px solid var(--line);border-radius:6px;width:220px;font-size:12px}.search svg{position:absolute;left:10px;top:9px;color:var(--muted);width:15px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-size:10px;letter-spacing:.7px;text-transform:uppercase;font-weight:550;color:var(--muted);background:#fafafa;padding:12px 19px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:17px 19px;border-bottom:1px solid #ededed;white-space:nowrap}tr:last-child td{border-bottom:0}.record-title{font-weight:550;display:block;color:var(--ink)}.record-detail{display:block;color:var(--muted);font-size:11px;margin-top:3px}.text-button{padding:0;background:none;border:0;text-align:left;display:block}.text-button:hover{background:none;text-decoration:underline}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.pill{display:inline-flex;padding:3px 8px;border-radius:20px;background:#eeeeee;color:#5a5a5a;font-size:10px;font-weight:550;white-space:nowrap}.pill.gray{background:#efefef;color:#787878}.pill.amber{background:#ededed;color:#666666}.table-foot{padding:12px 20px;font-size:11px;color:var(--muted);background:#fafafa;border-top:1px solid var(--line);display:flex;justify-content:space-between}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.empty svg{width:34px;height:34px;margin-bottom:13px;color:#979797}.empty h3{color:var(--ink);margin-bottom:6px}.empty button{margin-top:18px}.notice{background:#f1f1f1;border:1px solid #e0e0e0;border-radius:7px;padding:12px 15px;font-size:12px;color:#686868;margin-bottom:20px}.loading{padding:80px;text-align:center;color:var(--muted)}.footer-note{color:#8e8e8e;font-size:10px;margin-top:24px;display:flex;justify-content:space-between}.backdrop{position:fixed;inset:0;background:#1d1d1d66;z-index:20;display:flex;justify-content:flex-end}.drawer{background:var(--paper);width:min(790px,100%);height:100%;box-shadow:-8px 0 40px #1d1d1d33;display:flex;flex-direction:column}.drawer-head{background:#fff;padding:23px 28px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.drawer-head h2{font-family:Georgia,serif;font-size:24px;font-weight:400}.drawer-head .subtext{margin-top:4px}.drawer-body{overflow-y:auto;flex:1;padding:24px 28px}.drawer-footer{padding:17px 28px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.tabs{display:flex;gap:5px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line)}.tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;font-size:12px;padding:13px 14px;color:var(--muted)}.tabs button.active{border-color:var(--green);color:var(--green)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 18px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#646464}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{padding:10px 11px;border:1px solid #dadada;border-radius:6px;background:#fff;width:100%;min-width:0;font-size:12px;color:var(--ink)}.field textarea{min-height:85px;resize:vertical}.field input:focus,.field textarea:focus{border-color:var(--green);outline:2px solid #e2e2e2}.field input:disabled,.field textarea:disabled,.field select:disabled{background:#ececec;color:#717171}.field input[type=checkbox]{width:18px;height:18px;margin:8px 0}.field small{font-size:10px;color:var(--muted)}.form-section{background:#fff;padding:22px;border:1px solid var(--line);border-radius:8px;margin-bottom:18px}.form-section h3{margin-bottom:20px;font-size:12px}.calculation{background:#e6e6e6;border:1px solid #d4d4d4;border-radius:8px;padding:18px 20px;margin-top:18px}.calc-row{display:flex;justify-content:space-between;font-size:12px;margin:6px 0}.calc-total{border-top:1px solid #c8c8c8;padding-top:12px;margin-top:12px;font-size:16px;font-weight:600}.inline-error{background:#efefef;color:#5f5f5f;border:1px solid #cfcfcf;border-radius:6px;padding:12px;margin-bottom:17px;font-size:12px}.modal-backdrop{position:fixed;inset:0;background:#1d1d1d66;z-index:40;display:grid;place-items:center;padding:24px}.modal{background:#fff;border-radius:10px;padding:25px;width:min(500px,100%);max-height:85vh;overflow:auto;box-shadow:0 16px 70px #1d1d1d33}.modal h2{font-family:Georgia,serif;font-size:25px;font-weight:400;margin-bottom:10px}.modal .field{margin:17px 0}.modal .actions{justify-content:flex-end;margin-top:25px}.history-item{border-left:2px solid #d4d4d4;padding:0 0 25px 20px;margin-left:8px;position:relative}.history-item:before{position:absolute;content:'';border-radius:50%;background:#7b7b7b;width:8px;height:8px;left:-5px;top:5px}.history-item summary{cursor:pointer;font-size:12px}.history-item pre{white-space:pre-wrap;font-size:11px;background:#fff;border:1px solid var(--line);padding:13px;border-radius:5px;max-height:350px;overflow:auto}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.report-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px}.report-card h3{margin:14px 0 6px}.report-card button{margin-top:20px}.report-paper{background:#fff;border:1px solid var(--line);padding:40px;margin-top:20px;font-size:12px}.report-paper .report-title{font-family:Georgia,serif;font-size:30px;margin-bottom:6px}.report-meta{display:flex;justify-content:space-between;gap:15px;border-top:2px solid var(--ink);border-bottom:1px solid var(--line);padding:15px 0;margin:20px 0}.report-piece{padding:19px 0;border-bottom:1px solid var(--line);break-inside:avoid}.report-piece h3{margin-bottom:10px}.report-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.report-fields span{display:block;font-size:10px;color:var(--muted)}.report-instructions{margin-top:13px;white-space:pre-wrap;overflow-wrap:anywhere}.report-total{text-align:right;margin-top:20px;font-size:16px;font-weight:600}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--nav);color:#fff;padding:12px 22px;box-shadow:0 5px 20px #24242433;border-radius:8px;z-index:60;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}.badge-count{background:#505050;color:var(--lime);border-radius:4px;font-size:9px;margin-left:auto;padding:1px 5px}.checklist{display:flex;flex-direction:column;gap:8px;max-height:170px;overflow:auto;border:1px solid var(--line);padding:10px;background:#fff;border-radius:5px}.checklist label{display:flex;align-items:center;gap:7px;font-size:12px}.checklist input{width:auto}body.overlay-open{overflow:hidden}.print-only{display:none}
@media(max-width:1100px){.layout{grid-template-columns:205px minmax(0,1fr)}.main{padding:25px}.topbar{padding:0 25px}.module-grid{grid-template-columns:repeat(2,1fr)}.stats{gap:10px}.stat{padding:17px}.hero-graphic{width:150px}}@media(max-width:750px){.layout{display:block}.sidebar{position:relative;height:auto;padding:16px}.brand{padding:0 0 15px}.nav{flex-direction:row;overflow:auto}.nav button{white-space:nowrap}.side-label,.side-footer{display:none}.topbar{height:60px;padding:0 16px}.main{padding:22px 16px}.mode-banner{padding:7px 16px}.page-head{align-items:flex-start}h1{font-size:28px}.hero{padding:22px}.hero-graphic{display:none}.stats{grid-template-columns:1fr}.stat{display:grid;grid-template-columns:1fr 1fr;align-items:center}.stat-value{text-align:right}.stat-note{grid-column:1/-1}.module-grid,.report-grid{grid-template-columns:1fr 1fr}.filterbar{padding:16px}.filterbar label{min-width:140px}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.drawer-body{padding:18px}.drawer-head,.drawer-footer{padding:18px}.tabs{padding:0 10px}.report-paper{padding:22px}.report-fields{grid-template-columns:1fr 1fr}.search input{width:170px}.top-right .avatar{display:none}.breadcrumbs{font-size:10px}.report-meta{flex-direction:column}}@media print{body{background:#fff}body *{visibility:hidden}.report-paper,.report-paper *{visibility:visible}.report-paper{position:absolute;left:0;top:0;width:100%;margin:0;border:0;padding:0 15px;font-size:10pt}.report-paper .report-title{font-size:24pt}.report-piece{break-inside:avoid}.report-fields{grid-template-columns:repeat(3,1fr)}.report-meta{flex-direction:row}#toast{display:none}@page{size:letter;margin:18mm 14mm}}

@media print{.sidebar,.topbar,.mode-banner,.page-head,.main>.panel,.main>.section-head,.main>.report-grid,.footer-note,#report-preview>.section-head{display:none!important}.layout{display:block;min-height:0}.main{padding:0;max-width:none;margin:0}.report-paper{position:static;padding:0;margin:0}.report-paper .notice{font-size:9pt}.report-fields>div{overflow-wrap:anywhere}body{overflow:visible}}

.traffic-instructions-picker{display:flex;flex-direction:column;gap:4px}
.traffic-instructions-trigger{width:100%;min-height:36px;justify-content:space-between;text-align:left;font-weight:450}
.traffic-instructions-trigger span:first-child{overflow-wrap:anywhere}
.traffic-instructions-menu{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:#fff;padding:6px}
.traffic-instructions-menu[hidden]{display:none}
.traffic-instructions-menu label{display:flex;align-items:center;gap:8px;padding:5px 7px;border-radius:4px;cursor:pointer;font-size:.84rem;line-height:1.3}
.traffic-instructions-menu label:hover{background:#f4f4f4}
.traffic-instructions-menu input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:none}
.editor-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px}
.editor-sections .form-section{min-width:0;margin:0}
.editor-sections .form-section h3{padding-bottom:6px;border-bottom:1px solid var(--line)}
.traffic-comments-field{margin-top:8px}
@media(max-width:700px){.editor-sections{grid-template-columns:1fr}}
.editor-sections[data-tab="Details"]{display:block;column-count:2;column-gap:8px;column-fill:balance}
.editor-sections[data-tab="Details"]>.form-section{display:inline-block;width:100%;margin:0 0 8px;break-inside:avoid;vertical-align:top}
.editor-sections[data-module="onserts-tip-ons"][data-tab="General"]{display:block;column-count:2;column-gap:8px;column-fill:balance}
.editor-sections[data-module="onserts-tip-ons"][data-tab="General"]>.form-section{display:inline-block;width:100%;margin:0 0 8px;break-inside:avoid;vertical-align:top}
@media(max-width:700px){.editor-sections[data-tab="Details"]{column-count:1}}
@media(max-width:700px){.editor-sections[data-module="onserts-tip-ons"][data-tab="General"]{column-count:1}}

/* Brand system: approved black, bright red and white with grayscale surfaces. */
:root{
 --brand-black:#000000;--brand-red:#EE2E23;--brand-white:#ffffff;
 --gray-100:#f4f4f4;--gray-200:#e8e8e8;--gray-300:#d1d1d1;--gray-600:#595959;
 --nav:var(--brand-black);--nav-muted:#bdbdbd;--ink:var(--brand-black);--muted:var(--gray-600);--line:var(--gray-300);
 --paper:var(--gray-100);--green:var(--brand-red);--lime:var(--brand-white);--white:var(--brand-white);--red:var(--brand-red);
 --surface:#ffffff;--surface-muted:#f1f1f1;--red-tint:#eeeeee;
 font-family:Open Sans,Roboto,Raleway,sans-serif;color:var(--ink);font-size:100%;line-height:1.5;
}
body{background:var(--paper);color:var(--ink);font-family:Open Sans,Roboto,Raleway,sans-serif;font-size:1rem;line-height:1.5}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
:focus-visible{outline:3px solid var(--red)!important;outline-offset:3px!important}
button{background:var(--surface);color:var(--ink);border:1px solid #767676;min-height:44px;transition:background-color .15s,border-color .15s,transform .15s}
button:hover{background:#e8e8e8;border-color:#000}
button:active{transform:translateY(1px);background:#d9d9d9}
button:disabled{background:#e8e8e8;color:#595959;border-color:#bdbdbd;opacity:1}
button.primary{background:var(--red);color:#000;border-color:var(--red);font-weight:700}
button.primary:hover{background:#afafaf;border-color:#000}
button.primary:active{background:#c9c9c9}
button.danger{background:var(--red-tint);color:#000;border-color:var(--red);font-weight:650}
button.small{font-size:.875rem;min-height:40px}
.layout{background:var(--paper)}
.sidebar{background:#000;color:#fff}
.brand-mark{background:#fff;color:#000}

.brand small,.side-label,.side-footer p{color:#d1d1d1}
.nav button{color:#e5e5e5;min-height:44px}
.nav button:hover{background:#333;color:#fff}
.nav button.active{background:var(--red);color:#000;font-weight:700}
.side-footer{border-color:#595959;color:#fff}
.status-dot{background:var(--red);border:1px solid #fff}
.topbar,.panel,.stat,.module-card,.report-card,.form-section,.modal,.drawer-head,.drawer-footer,.tabs,.field input,.field select,.field textarea,.checklist,.report-paper{background:var(--surface);color:var(--ink)}
.topbar,.panel,.stat,.module-card,.report-card,.form-section,.report-paper{border-color:var(--line)}
.company-select{background:#fff;color:#000;border-color:#767676;min-height:44px;font-size:.9375rem}
.avatar{background:#e5e5e5;color:#000}
.mode-banner{background:#ededed;border-color:#d1d1d1;color:#000;font-size:.8125rem}
.mode-banner select{color:#000;font-size:.875rem;min-height:36px}
.main{width:100%}
.eyebrow,.tabs button.active{color:#000}
.eyebrow{font-size:.75rem;letter-spacing:.08em}
h1,h2,h3,h4,.hero h2,.drawer-head h2,.modal h2,.report-paper .report-title{font-family:Rubik,Roboto,Raleway,sans-serif;color:#000}
h1{font-size:clamp(2rem,3vw,2.75rem);line-height:1.15;font-weight:600;letter-spacing:normal}
h2{font-size:clamp(1.25rem,2vw,1.5rem);line-height:1.3;font-weight:600}
h3{font-size:1.125rem;line-height:1.3;font-weight:600}
h4{font-size:1rem;line-height:1.3;font-weight:600}
.form-section h3,.module-card h3,.report-card h3{font-size:1.125rem;line-height:1.3}
p{line-height:1.5}
.subtext{color:#595959;font-size:.875rem;line-height:2}
.hero{background:#ededed;border-color:#d1d1d1}
.hero h2{font-size:clamp(1.5rem,2.5vw,2rem);line-height:1.15;font-weight:500}
.hero p{color:#404040;font-size:1rem;line-height:1.5}
.stat-label,.stat-note,.record-detail,.table-foot,.footer-note,.breadcrumbs{color:#595959}
.stat-label{font-size:.875rem}
.stat-value{color:#000}
.stat-note,.record-detail,.table-foot,.footer-note{font-size:.8125rem;line-height:2}
.stat-label svg,.module-card .arrow,.empty svg{color:#595959}
.module-icon{background:#ededed;color:#000}
.module-card:hover{border-color:#000;transform:translateY(-2px)}
.module-card .subtext{font-size:.875rem;line-height:1.5}
.module-card .count{font-size:.8125rem;line-height:2;color:#595959}
.filterbar,.panel-top,.table-foot{background:#fff;border-color:var(--line)}
.filterbar label,.field{color:#333;font-size:.875rem;line-height:1.5}
.filterbar select,.search input{background:#fff;color:#000;border-color:#767676;font-size:.9375rem;min-height:44px}
.search svg{color:#404040}
table{font-size:.875rem}
th{background:#f1f1f1;color:#333;font-size:.75rem;line-height:2}
td{border-color:#e5e5e5}
.record-title{color:#000}
.pill{background:var(--red-tint);color:#000;border:1px solid var(--red);font-size:.75rem;line-height:1.5}
.pill.gray,.pill.amber{background:#ededed;color:#000;border-color:#bdbdbd}
.notice{background:#ededed;border-color:#d1d1d1;color:#222;font-size:.875rem;line-height:1.5}
.empty{color:#595959}
.empty h3{color:#000}
.loading{color:#595959}
.drawer{background:var(--paper)}
.drawer-head h2{font-size:1.5rem;line-height:1.3}
.tabs button{color:#404040;font-size:.875rem;min-height:44px}
.tabs button.active{border-color:var(--red);box-shadow:inset 0 -2px 0 var(--red)}
.form-grid{gap:20px}
.field input,.field select,.field textarea{border-color:#767676;font-size:.9375rem;min-height:44px}
.field textarea{min-height:100px}
.field input:focus,.field textarea:focus,.field select:focus{border:2px solid var(--red)!important;outline:3px solid var(--red)!important;outline-offset:2px;box-shadow:0 0 0 3px #f7caca!important;position:relative;z-index:1}
.field input:disabled,.field textarea:disabled,.field select:disabled{background:#e8e8e8;color:#595959;border-color:#bdbdbd}
.field small{font-size:.8125rem;color:#595959;line-height:2}
.calculation{background:#ededed;border-color:#d1d1d1}
.calc-row{font-size:.9375rem}
.calc-total{border-color:#bdbdbd;font-size:1.125rem}
.inline-error{background:var(--red-tint);color:#000;border:2px solid var(--red);font-size:.875rem;line-height:1.5}
.modal-backdrop,.backdrop{background:#0009}
.modal{border:1px solid #bdbdbd}
.modal h2{font-size:1.5rem;line-height:1.3}
.history-item{border-color:#bdbdbd}
.history-item:before{background:var(--red)}
.history-item summary{font-size:.875rem}
.history-item pre{background:#f4f4f4;border-color:#d1d1d1;font-size:.8125rem}
.report-paper{font-size:.9375rem}
.report-paper .report-title{font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.15}
.report-fields span{color:#595959;font-size:.8125rem;line-height:2}
.report-meta{border-top-color:#000}
.report-total{font-size:1.125rem}
#toast{background:#000;color:#fff;border:2px solid #fff;font-size:.875rem;line-height:1.5}
.badge-count{background:var(--red);color:#000;font-size:.75rem}
.checklist{border-color:#767676}
.checklist label{font-size:.9375rem;line-height:1.5}
input[type=checkbox],input[type=radio]{accent-color:var(--red);width:20px;height:20px}
@media(max-width:900px){.main{padding:24px}.page-head{flex-wrap:wrap}.page-head>.actions{width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.sidebar{padding:16px}.nav{gap:4px}.nav button{font-size:.875rem;padding:10px}.topbar{min-height:60px;height:auto;padding:10px 16px}.breadcrumbs{font-size:.8125rem}.main{padding:20px 16px}.mode-banner{padding:8px 16px;gap:12px;flex-wrap:wrap}.page-head{align-items:flex-start}.page-head>.actions button{flex:1}.module-grid,.report-grid{grid-template-columns:1fr}.filterbar{align-items:stretch}.filterbar label{flex:1 1 100%;min-width:0}.filterbar select{max-width:none;width:100%}.panel-top{align-items:flex-start;flex-wrap:wrap}.search,.search input{width:100%}.drawer-head,.drawer-footer{gap:12px}.drawer-footer{flex-wrap:wrap}.drawer-footer>.actions{width:100%;justify-content:space-between}.report-paper{padding:20px}.report-fields{grid-template-columns:1fr 1fr}.table-foot{gap:12px;flex-wrap:wrap}}
@media(max-width:480px){.stats{grid-template-columns:1fr}.stat{padding:16px}.module-grid,.report-grid{grid-template-columns:1fr}.hero{padding:20px}.modal-backdrop{padding:12px}.modal{padding:18px}.report-fields{grid-template-columns:1fr}.breadcrumbs{gap:6px}.top-right{gap:8px}.actions{gap:7px}.actions button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
button.primary,.nav button.active{color:#fff}
button.primary:hover{background:#000;color:#fff;border-color:#000}
button.primary:active{background:var(--red);color:#fff;box-shadow:inset 0 0 0 2px #000}
.nav button.active:hover{background:#333;color:#fff}
.po-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;background:#f0f0f0;border:1px solid #d3d3d3;color:#172536;font-size:.875rem}
.po-toolbar button{min-width:36px;padding:7px 9px}.po-toolbar input,.po-toolbar select{min-height:34px;padding:5px 8px;border:1px solid #aab0b7;border-radius:4px;background:#fff;color:#111}.po-toolbar input[type=number]{width:48px}.po-toolbar #po-find{width:min(190px,30vw)}.po-save,.po-zoom{display:flex;align-items:center;gap:6px}.po-separator{height:26px;border-left:2px solid #888;margin:0 3px}
.po-pages{background:#ededed;padding:18px;overflow:auto}.po-page{display:none;background:#fff;color:#111;width:min(100%,8.5in);min-height:11in;margin:0 auto 18px;padding:.3in .42in;box-shadow:0 1px 5px #0002;zoom:var(--po-zoom,100%)}.po-page.active{display:block}.po-page-header,.po-page-footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#333;padding-bottom:8px}.po-page-footer{padding-top:8px;border-top:1px solid #aaa;margin-top:10px}.po-report-title{text-align:center;font-size:16px;font-weight:700;margin:2px 0 7px}.po-card-heading{text-align:center;font-weight:700;border:1px solid #aaa;padding:4px}.po-card-table{width:min(100%,4.1in);font-family:Arial,sans-serif;font-size:11px}.po-row{display:grid;grid-template-columns:1fr 1fr;min-height:22px;border:1px solid #aaa;border-top:0}.po-row>span{padding:3px 5px;overflow-wrap:anywhere}.po-row>span+span{text-align:right;border-left:1px solid #aaa}.po-section{min-height:25px;align-items:center;font-weight:700}.po-section strong{text-align:center;grid-column:1 / -1;padding:3px 5px}.po-section span{display:none}.po-spacer{height:8px;border-left:1px solid #aaa;border-right:1px solid #aaa}.po-card-table .po-report-title+.po-card-heading{border-top:0}
.po-order-table{width:min(100%,6.2in);border-collapse:collapse;table-layout:fixed;color:#111;font:12px Arial,sans-serif}.po-order-table th,.po-order-table td{border:1px solid #d0d0d0;padding:3px 6px;vertical-align:top;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}.po-order-table .po-title td{border:0;padding:0 0 5px;font-size:15px;font-weight:700}.po-order-table .po-card-heading td{border:0;padding:0 0 3px}.po-order-table .po-card-heading td+td{font-weight:700}.po-order-table .po-section th{background:#f1f1f1;text-align:left;font-size:11px}.po-order-table .po-field th{width:45%;text-align:left;font-weight:400}.po-order-table .po-field td{width:55%}.po-order-table .po-spacer td{height:6px;padding:0;border:0}
@media print{body:has(#po-preview) *{visibility:hidden!important}body:has(#po-preview) #po-preview,body:has(#po-preview) #po-preview *{visibility:visible!important}body:has(#po-preview) #po-preview{position:absolute;inset:0;width:100%;margin:0;padding:0}body:has(#po-preview) #po-preview>.section-head,body:has(#po-preview) .po-toolbar{display:none!important}body:has(#po-preview) .po-pages{padding:0;background:#fff;overflow:visible}body:has(#po-preview) .po-page,body:has(#po-preview) .po-page.active{display:block!important;width:100%;height:10.2in;min-height:0;overflow:hidden;margin:0;padding:.15in .25in;box-shadow:none;zoom:100%;break-after:page;page-break-after:always}body:has(#po-preview) .po-page:last-child{break-after:auto;page-break-after:auto}body:has(#po-preview) .po-card-table{font-size:9px;width:4.1in}body:has(#po-preview) .po-row{min-height:17px}body:has(#po-preview) .po-row>span{padding:1px 3px}body:has(#po-preview) .po-spacer{height:5px}body:has(#po-preview) .po-page-header,body:has(#po-preview) .po-page-footer{font-size:8px;padding:3px 0}body:has(#po-preview) .po-order-table{font-size:8.5px;line-height:1.08}body:has(#po-preview) .po-order-table th,body:has(#po-preview) .po-order-table td{padding:1pt 3pt}body:has(#po-preview) .po-order-table .po-title td{font-size:11pt;padding-bottom:3pt}body:has(#po-preview) .po-order-table .po-section th{font-size:8pt}body:has(#po-preview) .po-order-table .po-spacer td{height:4pt}@page{size:letter portrait;margin:.35in}}
/* Report previews share the same print and export path while keeping wide legacy matrices readable. */
.report-dates{margin-top:10px}
.report-dates input[type=date]{background:#fff;color:#111;border:1px solid #767676;border-radius:6px;min-height:44px;padding:8px 10px}
#production-report-preview{overflow-x:auto;margin-top:18px}
#production-report-preview table{background:#fff;color:#111;font-size:12px}
#production-report-preview th{background:#f1f3f2;white-space:nowrap}
#production-report-preview td{vertical-align:top;min-width:90px;white-space:pre-wrap}
#production-report-preview .production-matrix{min-width:760px}
#production-report-preview .production-matrix th:first-child{min-width:190px;text-align:left}
#production-report-preview .production-matrix td{text-align:center}
.attached-mail-memo-page{background:#fff;color:#111;font:14px Arial,sans-serif;overflow-x:auto;min-width:760px}
.attached-mail-memo-page>h2{font-size:18px;line-height:1.25;font-weight:700;margin:10px 0 30px}
#production-report-preview .attached-mail-memo-table{width:100%;max-width:900px;border-collapse:collapse;table-layout:fixed;font:14px Arial,sans-serif}
#production-report-preview .attached-mail-memo-table td{border:1px solid #ccc;padding:4px 5px;min-width:0;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}
#production-report-preview .attached-mail-memo-table .attached-mail-memo-label{width:19%;text-align:center;font-weight:400}
#production-report-preview .attached-mail-memo-table td.numeric{text-align:right}
#production-report-preview .attached-mail-memo-table .attached-mail-memo-spacer td{height:25px;border:0;padding:0}
#production-report-preview .attached-mail-memo-table .attached-mail-memo-empty{text-align:center;color:#667085;padding:18px}
@media print{
 body:has(#production-report-preview) *{visibility:hidden!important}
 body:has(#production-report-preview) #production-report-preview,body:has(#production-report-preview) #production-report-preview *{visibility:visible!important}
 body:has(#production-report-preview) #production-report-preview{position:absolute;inset:0;width:100%;margin:0;padding:0;overflow:visible!important}
 body:has(#production-report-preview) #production-report-preview>.section-head,body:has(#production-report-preview) #production-report-preview>.memo-toolbar{display:none!important}
 body:has(#production-report-preview) #production-report-preview>.attached-mail-report-heading,body:has(#production-report-preview) #production-report-preview>.attached-mail-viewer-toolbar,body:has(#production-report-preview) #production-report-preview>.attached-mail-source-note{display:none!important}
 body:has(#production-report-preview) #production-report-preview .table-wrap{overflow:visible!important}
 body:has(#production-report-preview) #production-report-preview table{width:100%;min-width:0;font-size:8pt}
 body:has(#production-report-preview) #production-report-preview th,body:has(#production-report-preview) #production-report-preview td{padding:3pt;overflow-wrap:anywhere}
 body:has(#production-report-preview) #production-report-preview .attached-mail-memo-page{min-width:0;overflow:visible;padding:0;margin:0;border:0}
 body:has(#production-report-preview) #production-report-preview .attached-mail-memo-page>h2{margin:0 0 20pt;font-size:12pt}
 body:has(#production-report-preview) .layout{display:block;min-height:0}
 @page{size:landscape;margin:.35in}
}

/* Hosted sign-in shell for the Clerk browser components. */
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f6f7}
.auth-card{width:min(100%,460px);padding:32px;border:1px solid #e1e4e8;border-radius:16px;background:#fff;box-shadow:0 12px 40px #14212b12}
.auth-card h1{margin:28px 0 8px;font-size:28px}
.auth-card>p{margin:0 0 24px;color:#5e6872;line-height:1.55}
.auth-card #clerk-sign-in{display:flex;justify-content:center}

/* Bindery Memo layout follows the supplied multi-card spreadsheet reports. */
#report-preview{overflow-x:auto}
.memo-preview-note{font-size:12px;color:#595959;margin:8px 0}
.memo-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#f3f5f4;border:1px solid var(--line);border-radius:7px;margin:12px 0}
.memo-toolbar label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.memo-toolbar input,.memo-toolbar select{height:32px;border:1px solid #ccc;border-radius:5px;background:#fff;padding:5px 8px;color:var(--ink);font-size:12px}
.memo-toolbar input[type=number]{width:52px}
.memo-toolbar #memo-find{width:150px}
.memo-toolbar button{padding:7px 9px;font-size:11px}
.memo-toolbar-separator{height:24px;border-left:1px solid #ccc;margin:0 3px}
.memo-find-status{font-size:11px;color:var(--muted);min-width:90px}
.memo-page{background:#fff;color:#111;border:1px solid #bbb;padding:18px;margin:16px 0 24px;min-width:760px;font-family:"Arial Narrow",Arial,sans-serif;zoom:var(--memo-zoom,100%)}
#po-preview{overflow-x:auto}
.memo-page:not(.active){display:none}
.memo-group+.memo-group{margin-top:9px}
.memo-group-title{font-size:10px;margin:5px 0 3px}
.memo-empty-state{font-size:10px;color:#555;margin:0 0 7px;padding:5px 4px;border:1px solid #aaa;min-height:19px}
.memo-title{font-family:"Arial Narrow",Arial,sans-serif;font-size:16px;font-weight:700;line-height:1.2;margin:0 0 8px}
.memo-grid{display:grid;grid-template-columns:minmax(105px,1.25fr) repeat(5,minmax(0,1fr));font-size:10px;line-height:1.2}
.memo-row{grid-column:1/-1;display:grid;grid-template-columns:inherit}
.memo-label,.memo-value,.memo-card-head,.memo-corner,.memo-ons-title{min-width:0;min-height:19px;padding:2px 4px;border-top:1px solid #aaa;border-left:1px solid #aaa;overflow-wrap:anywhere;white-space:pre-wrap}
.memo-label{font-weight:400}
.memo-value{background:#d3d3d3;text-align:right}
.memo-card-head,.memo-ons-title{font-weight:700;text-align:center}
.memo-grid>.memo-card-head:last-child,.memo-row>*:last-child{border-right:1px solid #aaa}
.memo-ons-title{border-right:1px solid #aaa}
.memo-corner{border-top:0}
.memo-row.memo-section>.memo-label{font-weight:700;text-align:center}
.memo-row:last-child>*{border-bottom:1px solid #aaa}
.memo-empty{background:#fff}
.memo-crossover{display:block;font-size:8px;font-weight:400;color:#555}
.memo-page-count{font-size:10px;color:#666;text-align:right;margin-top:5px}
.attached-mail-report-heading{margin:14px 0 6px;color:#111}
.attached-mail-report-heading h2{font-size:17px;margin:0 0 3px}
.attached-mail-report-heading .subtext{font-size:11px}
.attached-mail-viewer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:7px 9px;background:#f3f5f7;border:1px solid #cbd2da;margin:8px 0 12px;color:#28416a;font:12px Arial,sans-serif}
.attached-mail-viewer-toolbar button{min-width:30px;padding:5px 7px;background:#fff;border:1px solid #c9d0d9;color:#28416a}
.attached-mail-viewer-toolbar button svg{width:16px;height:16px}
.attached-mail-viewer-toolbar label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.attached-mail-viewer-toolbar input,.attached-mail-viewer-toolbar select{height:28px;border:1px solid #bfc6ce;border-radius:4px;padding:3px 6px;background:#fff;color:#1f2937;font:12px Arial,sans-serif}
.attached-mail-viewer-toolbar input[type=number]{width:42px}
.attached-mail-viewer-toolbar input[placeholder]{width:145px}
.attached-mail-viewer-toolbar #attached-mail-find-status{min-width:70px;color:#667085;font-size:11px}
.toolbar-separator{height:24px;border-left:1px solid #aeb7c2;margin:0 2px}
.attached-mail-report-page{background:#fff;color:#111;font:14px Arial,sans-serif;overflow-x:auto}
.attached-mail-report-page>h2{font-size:18px;margin:12px 0 30px;font-weight:700}
.attached-mail-report-group{margin:0 0 30px;break-inside:avoid;page-break-inside:avoid}
.attached-mail-report-group h3{font-size:14px;margin:0 0 7px;font-weight:700}
.attached-mail-report-group .table-wrap{overflow:visible}
.attached-mail-report-group table{width:100%;border-collapse:collapse;table-layout:fixed;font:14px Arial,sans-serif}
.attached-mail-report-group th{background:#bfbfbf;color:#111;text-align:center;font-weight:700}
.attached-mail-report-group th:first-child{width:19%}
.attached-mail-report-group th:nth-child(2){width:18%}
.attached-mail-report-group th:nth-child(3){width:25%}
.attached-mail-report-group th:nth-child(4){width:38%}
.attached-mail-report-group th,.attached-mail-report-group td{border:1px solid #d0d0d0;padding:5px 4px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
.attached-mail-report-group td.numeric{text-align:right;font-variant-numeric:tabular-nums}
.attached-mail-source-note{font-size:10px;color:#667085;margin:8px 0}
.issue-circ-report-page{background:#fff;color:#111;font:13px Arial,sans-serif;overflow-x:auto}
.issue-circ-report-page>h2{font-size:14px;line-height:1.25;font-weight:700;margin:8px 0 14px}
.issue-circ-report-table{width:100%;border-collapse:collapse;table-layout:fixed;font:13px Arial,sans-serif}
.issue-circ-report-table .circ-category{width:22.5%}.issue-circ-report-table .circ-code{width:16%}.issue-circ-report-table .circ-quantity{width:14%}.issue-circ-report-table .circ-description{width:25%}.issue-circ-report-table .circ-spacer{width:1.5%}.issue-circ-report-table .circ-traffic{width:21%}
.issue-circ-report-table th{background:#c0c0c0;color:#111;text-align:center;font-weight:700;white-space:pre-line}
.issue-circ-report-table th,.issue-circ-report-table td{border:1px solid #d0d0d0;padding:4px 5px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
.issue-circ-report-table td.code{text-align:center}.issue-circ-report-table td.numeric{text-align:right;font-variant-numeric:tabular-nums}.issue-circ-report-table td.spacer{padding:0}
@media(max-width:750px){.memo-page{padding:12px;min-width:720px}}
@media print{
 body *{visibility:hidden!important}
 #report-preview,#report-preview *,#po-preview,#po-preview *,#production-report-preview,#production-report-preview *{visibility:visible!important}
 #report-preview,#po-preview{position:absolute!important;left:0;top:0;width:100%;overflow:visible!important;margin:0;padding:0}
 #report-preview>.section-head,#po-preview>.section-head,.memo-preview-note,.memo-toolbar,.memo-page-count{display:none!important}
 #production-report-preview{position:absolute!important;left:0;top:0;width:100%;overflow:visible!important;margin:0;padding:0}
 .attached-mail-report-heading,.attached-mail-viewer-toolbar,.attached-mail-source-note{display:none!important}
 #production-report-preview>.section-head{display:none!important}
 .issue-circ-report-page{width:100%;overflow:visible!important;font:10pt Arial,sans-serif;break-after:page;page-break-after:always}
 .issue-circ-report-page>h2{font-size:10pt;line-height:1.15;margin:0 0 8pt}
 .issue-circ-report-table{font-size:10pt}
 .issue-circ-report-table th,.issue-circ-report-table td{padding:3pt 3pt}
 .issue-circ-report-table tr{break-inside:avoid;page-break-inside:avoid}
 .attached-mail-report-page{width:100%;overflow:visible!important;zoom:100%!important;font:9pt Arial,sans-serif;break-after:page;page-break-after:always}
 .attached-mail-report-page>h2{font-size:13pt;margin:0 0 12pt}
 .attached-mail-report-group{margin:0 0 14pt;break-inside:avoid;page-break-inside:avoid}
 .attached-mail-report-group h3{font-size:9pt;margin:0 0 4pt}
 .attached-mail-report-group table{font-size:8pt}
 .attached-mail-report-group th,.attached-mail-report-group td{padding:3pt 2pt}
 .memo-page,.memo-page:last-of-type{display:block!important;width:100%;min-width:0;margin:0;padding:0;border:0;box-shadow:none;zoom:100%!important;break-after:page;page-break-after:always}
 .po-order-table{width:100%!important;max-width:none!important}
 .memo-page:last-of-type{break-after:auto;page-break-after:auto}
 .memo-title{font-size:9pt;line-height:1.1;margin:0 0 3pt}
 .memo-grid{width:100%;grid-template-columns:minmax(0,1.25fr) repeat(5,minmax(0,1fr));font-size:6.8pt;line-height:1.05}
 .memo-label,.memo-value,.memo-card-head,.memo-corner,.memo-ons-title{min-height:10pt;padding:1pt 2pt;overflow-wrap:anywhere}
 .memo-crossover{font-size:5.5pt}
 body{overflow:visible!important}
 @page{size:letter portrait;margin:.25in}
}
/* Insert Cards list sorting */
.sort-button{width:100%;min-height:0;justify-content:space-between;padding:4px 6px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left;white-space:nowrap}
.sort-button:hover{background:#e8e8e8;border-color:transparent}
.sort-button span{margin-left:8px;font-size:.8em;opacity:.75}

/* Compact navigation and data entry layout */
.sidebar{padding:20px 14px}.brand{padding-bottom:18px}.sidebar .nav{gap:2px}.sidebar .nav button{padding:9px 11px}.topbar{height:62px;padding:0 28px}.top-right{gap:10px}.preview-role{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.preview-role select{border:1px solid var(--line);border-radius:5px;background:#fff;padding:5px 8px;color:var(--ink);font-size:11px}.sidebar-account .preview-role{flex:1 0 100%;padding-left:42px;justify-content:space-between;color:#c8c8c8}.sidebar-account .preview-role select{max-width:112px;background:#333;color:#fff;border-color:#555}.main{padding:22px 28px}.page-head{margin-bottom:16px}.eyebrow{margin-bottom:3px;letter-spacing:1.5px}h1{font-size:28px;margin-bottom:3px}.filterbar{gap:10px;padding:12px 15px}.filterbar label{gap:3px;min-width:0;flex:1 1 220px}.filterbar select{padding:7px 28px 7px 9px;max-width:none;min-width:0;width:100%}.filterbar label:first-child{flex:1 1 220px}.panel-top{padding:12px 15px}.section-head{margin:8px 0 9px}.form-section{padding:17px;margin-bottom:12px}.form-section h3{margin-bottom:13px}.form-grid{gap:12px 15px}@media(max-width:760px){.layout{grid-template-columns:190px minmax(0,1fr)}.main{padding:18px}.topbar{padding:0 18px}}@media(max-width:560px){.layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:10px 12px}.brand{display:none}.sidebar .nav{flex-direction:row;overflow:auto}.sidebar .nav button{white-space:nowrap;padding:8px}.main{padding:14px}.topbar{height:54px}.filterbar{align-items:stretch}.filterbar label{flex-basis:100%}}

/* Keep the Hearst / Condé division switcher with the left navigation. */

/* Compact the Overview dashboard so more content fits above the fold. */
.main:has(.hero) .page-head{margin-bottom:10px}
.main:has(.hero) .hero{padding:16px 20px;margin-bottom:12px}
.main:has(.hero) .hero p{margin:5px 0 10px}
.main:has(.hero) .hero-graphic{height:90px}
.main:has(.hero) .stats{gap:10px;margin-bottom:14px}
.main:has(.hero) .stat{padding:12px 15px}
.main:has(.hero) .stat-value{font-size:24px;margin:4px 0 0}
.main:has(.hero) .stat-note{line-height:1.35}
.main:has(.hero) .section-head{margin:10px 0 7px}
.main:has(.hero) .module-grid{gap:9px}
.main:has(.hero) .module-card{padding:13px}
.main:has(.hero) .module-icon{padding:7px;margin-bottom:8px}
.main:has(.hero) .module-card .arrow{right:12px;top:13px}
.main:has(.hero) .module-card .count{margin-top:8px;line-height:1.4}
.main:has(.hero) .panel td{padding-top:10px;padding-bottom:10px}
.main:has(.hero) .panel th{padding-top:8px;padding-bottom:8px}

/* Place every production module inside the Overview workspace panel. */
.main:has(.overview-modules) .overview-hero{display:block;padding:16px 20px 14px}
.main:has(.overview-modules) .overview-hero-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.main:has(.overview-modules) .overview-hero .hero-graphic{height:74px}
.main:has(.overview-modules) .overview-modules{margin-top:12px}
.main:has(.overview-modules) .overview-modules .section-head{margin:0 0 7px}
.main:has(.overview-modules) .overview-modules .module-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.main:has(.overview-modules) .overview-modules .module-card{padding:9px 10px}
.main:has(.overview-modules) .overview-modules .module-icon{padding:5px;margin-bottom:4px}
.main:has(.overview-modules) .overview-modules .module-card h3{font-size:12px;line-height:1.25}
.main:has(.overview-modules) .overview-modules .module-card .subtext{font-size:11px;line-height:1.3}
.main:has(.overview-modules) .overview-modules .module-card .count{font-size:10px;line-height:1.3;margin-top:5px}
.main:has(.overview-modules) .overview-modules .module-card .arrow{right:9px;top:9px}
@media(max-width:1100px){.main:has(.overview-modules) .overview-modules .module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.main:has(.overview-modules) .overview-modules .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.main:has(.overview-modules) .overview-modules .module-grid{grid-template-columns:1fr}}
.overview-heading-row{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.overview-heading-row>.page-head{flex:0 0 290px;min-width:0;margin:0}
.overview-heading-row .overview-stats{flex:1;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.overview-heading-row .stat{padding:8px 10px;border-radius:7px}
.overview-heading-row .stat-label{font-size:11px;line-height:1.3}
.overview-heading-row .stat-label svg{width:14px;height:14px}
.overview-heading-row .stat-value{font-size:19px;line-height:1.2;letter-spacing:-.4px;margin:3px 0 1px}
.overview-heading-row .stat-note{font-size:10px;line-height:1.25}
@media(max-width:1000px){.overview-heading-row{align-items:stretch;flex-direction:column}.overview-heading-row>.page-head{flex:auto;width:100%}.overview-heading-row .overview-stats{width:100%}}
@media(max-width:750px){.overview-heading-row .stat{display:block;padding:8px}.overview-heading-row .stat-value{text-align:left;font-size:17px}.overview-heading-row .stat-note{font-size:9px}}
.active-samples{margin-top:14px}
.active-samples .section-head{margin:0 0 7px}
.active-samples th,.active-samples td{padding:6px 10px;line-height:1.3}
.active-samples .record-title{line-height:1.2}
.active-samples .record-detail{line-height:1.2;margin-top:1px}
.active-sample-link{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.active-sample-link:hover{color:var(--ink)}
.active-sample-link span{font-size:10px;text-decoration:none}
.delete-review{max-height:180px;overflow:auto;padding-left:22px;margin:10px 0 16px;color:var(--muted)}
.division-switcher{margin:0 8px 16px}
.division-switcher label{display:block;margin:0 0 5px;color:#d1d1d1;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}
.division-switcher select.company-select{width:100%;padding:9px 10px;background:#171717;color:#fff;border-color:#555;border-radius:6px;font-size:14px;font-weight:600}
.division-switcher select.company-select:focus{border-color:var(--red)}

/* Signed-in account control at the bottom of the left rail. */
.sidebar-account{margin-top:auto;padding:14px 8px 0;border-top:1px solid #4a4a4a;display:flex;align-items:center;gap:10px;min-width:0}
.sidebar-user-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center}
.sidebar-account .avatar{width:34px;height:34px;background:#333;color:#fff;border:1px solid #666}
.sidebar-account #clerk-user-button{width:36px;height:36px;flex:0 0 36px;display:flex;align-items:center;justify-content:center}
.sidebar-user-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:12px;font-weight:600}

/* Tighten the production record list so more insert cards fit on screen. */
#records-table tbody td{padding:4px 12px;line-height:1.25}
#records-table .record-title{line-height:1.2}
#records-table .record-detail{line-height:1.2;margin-top:1px}
#records-table button.small{min-height:28px;padding:3px 8px;font-size:11px}

/* Keep all production-module input screens compact and consistent. */
.main:has(#records-table) .page-head{margin-bottom:10px}
.main:has(#records-table) .page-head h1{font-size:25px}
.main:has(#records-table) .page-head .subtext{font-size:.85rem;line-height:1.35}
.main:has(#records-table) .page-head .actions{gap:6px}
.main:has(#records-table) .page-head .actions button{padding:7px 10px;font-size:.88rem}
.main:has(#records-table) .filterbar{gap:10px;padding:8px 12px}
.main:has(#records-table) .filterbar label{gap:2px;line-height:1.3}
.main:has(#records-table) .filterbar select{min-height:36px;padding:5px 28px 5px 9px}
.main:has(#records-table) .panel-top{padding:6px 12px}
.main:has(#records-table) .panel-top h2{font-size:1.15rem;line-height:1.3}
#records-table thead th{padding:5px 10px;line-height:1.3}
#records-table tbody td{padding:4px 10px;line-height:1.2}
#records-table .record-title{line-height:1.15}
#records-table .record-detail{line-height:1.15;margin-top:1px}
.main:has(#records-table) .table-foot{padding:6px 10px;line-height:1.3}
.main:has(#records-table)>.notice{padding:9px 12px;margin:10px 0}
.main:has(#records-table) #records-table>.empty{padding:22px 18px}
.main:has(#records-table) #records-table>.empty svg{width:28px;height:28px;margin-bottom:5px}
.main:has(#records-table) #records-table>.empty h3{margin-bottom:3px}
.main:has(#records-table) #records-table>.empty p{margin-top:2px}
.main:has(#records-table) #records-table>.empty button{margin-top:10px;padding:7px 12px}
.backdrop{inset:52px 0 0}

/* Compact data-entry drawers across production modules. */
.drawer-head{padding:10px 20px 9px;gap:10px}
.drawer-head .eyebrow{margin:0 0 1px;font-size:.65rem;line-height:1.1;letter-spacing:1.2px}
.drawer-head h2{max-width:min(620px,70vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:1.1rem;font-weight:650;line-height:1.2}
.drawer-head .subtext{margin-top:2px;font-size:.75rem;line-height:1.2}
.tabs{padding:0 20px}
.tabs button{min-height:36px;padding:8px 10px;font-size:.8rem}
.drawer-body{padding:14px 20px}
.form-section{padding:11px 13px;margin-bottom:8px}
.form-section h3{margin:0 0 8px;font-size:.8rem;line-height:1.2}
.form-grid{gap:8px 12px}
.field{gap:3px;font-size:.78rem;line-height:1.25}
.field input,.field select,.field textarea{min-height:34px;padding:6px 9px;font-size:.84rem;line-height:1.25}
.field textarea{min-height:68px}
.field small{font-size:.72rem;line-height:1.25}
.field input[type=checkbox]{width:18px;height:18px;min-height:0;margin:2px 0}
.checklist{gap:4px;max-height:145px;padding:7px}
.checklist label{gap:6px;font-size:.82rem;line-height:1.3}
.calculation{padding:10px 13px;margin-top:9px}
.calc-row{margin:4px 0;font-size:.84rem;line-height:1.3}
.calc-total{padding-top:7px;margin-top:7px;font-size:1rem}
.drawer-footer{padding:9px 20px;gap:8px}
.drawer-footer .actions{gap:6px}
.drawer-footer button{min-height:34px;padding:6px 10px}
@media(max-width:750px){.drawer-head,.drawer-body,.drawer-footer{padding-left:14px;padding-right:14px}.tabs{padding:0 14px}.drawer-head h2{max-width:65vw}}

.workspace-tabs{position:relative;z-index:100;display:flex;align-items:flex-end;gap:2px;min-height:43px;padding:7px 12px 0;background:#243b64;overflow-x:auto;scrollbar-width:thin}
.workspace-tab{flex:0 1 310px;min-width:145px;max-width:360px;justify-content:flex-start;gap:8px;padding:7px 9px 6px;border:0;border-radius:9px 9px 0 0;background:#d8dce3;color:#243b64;font-weight:500;white-space:nowrap}
.workspace-tab:hover{background:#eceef2}
.workspace-tab.active{background:#fff;color:#233b63}
.workspace-tab-icon svg{width:18px;height:18px}
.workspace-tab-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.workspace-tab-close{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;margin-left:auto;border-radius:50%;font-size:18px;line-height:1;color:inherit}
.workspace-tab-close:hover{background:#c7ccd4}
.workspace-tab-add-wrap{position:relative;display:flex;align-items:center;align-self:stretch}
.workspace-tab-add{width:38px;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:#fff;font-size:25px;font-weight:400}
.workspace-tab-add:hover{background:#314c77;color:#fff}
.workspace-tab-menu{position:fixed;z-index:1000;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:#10182788}
.workspace-tab-menu.open{display:flex}
.workspace-tab-menu-card{width:min(420px,100%);max-height:min(78vh,620px);overflow:auto;padding:18px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 60px #0004}
.workspace-tab-menu-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.workspace-tab-menu-card h2{margin:0;font-size:19px}
.workspace-tab-menu-card .workspace-tab-menu-close{width:36px;height:36px;padding:0;border:0;background:transparent;font-size:25px;color:var(--muted)}
.workspace-tab-menu-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.workspace-tab-menu-options button{justify-content:flex-start;min-height:45px;padding:9px 11px;text-align:left}
@media(max-width:560px){.workspace-tabs{padding-left:7px;padding-right:7px}.workspace-tab{flex-basis:230px;min-width:145px}.workspace-tab-add{width:34px}.workspace-tab-menu-options{grid-template-columns:1fr}}

.main:has(#report-type){padding-top:14px}
.main:has(#report-type)>.page-head{margin-bottom:8px}
.main:has(#report-type)>.panel{margin-bottom:4px}
.main:has(#report-type)>.section-head{margin:5px 0 4px}
.main:has(#report-type) .filterbar{gap:8px;padding:8px 12px}
.main:has(#report-type) .filterbar label{gap:2px;line-height:1.3}
.main:has(#report-type) .filterbar select{min-height:38px;padding:5px 28px 5px 9px}
.main:has(#report-type) #report-preview{margin-top:4px}
.main:has(#report-type) #report-preview>.section-head{margin:4px 0 4px}
.main:has(#report-type) .memo-preview-note{margin:3px 0 6px}
.insert-card-list th:nth-child(2),.insert-card-list td:nth-child(2){width:112px;max-width:112px;padding-left:10px;padding-right:10px}
.insert-card-list .sort-button{padding-left:0;padding-right:0}
.source-key-link,.record-data-link{color:var(--green);font-weight:600;text-decoration:underline;text-decoration-style:solid;text-underline-offset:2px}
.source-key-link:hover,.record-data-link:hover{background:transparent;color:var(--ink)}
.table-wrap .text-button[data-edit]{color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.table-wrap .text-button[data-edit] .record-title{color:inherit}
.table-wrap .text-button[data-edit]:hover{background:transparent;color:var(--ink)}
.active-sample-link .record-title{color:inherit}


/* Compact pop-out editor cards and avoid empty grid rows in General. */
.drawer-body{padding:10px 18px}
.form-section{padding:9px 11px;margin-bottom:6px}
.form-section h3{margin-bottom:6px}
.form-grid{gap:6px 10px}
.editor-sections[data-tab="General"]{display:block;column-count:2;column-gap:8px;column-fill:balance}
.editor-sections[data-tab="General"]>.form-section{display:inline-block;width:100%;margin:0 0 6px;break-inside:avoid;vertical-align:top}
@media(max-width:700px){.editor-sections[data-tab="General"]{column-count:1}}

/* Access management needs room for employee names, roles, and actions. */
.modal-backdrop:has(.access-modal){z-index:1000}
.modal.access-modal{width:min(1080px,100%);padding:28px;max-height:90vh}
.access-modal>p{max-width:75ch;margin:12px 0 20px}
.access-modal #access-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;margin:24px 0}
.access-modal #access-search label{grid-column:1/-1;font-weight:600}
.access-modal #employee-query{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:7px}
.access-modal #employee-results p{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;overflow-wrap:anywhere;margin:12px 0}
.access-modal>h3{margin:24px 0 12px}
.access-modal .table-wrap{max-width:100%;margin-bottom:20px}
.access-modal table{min-width:720px}
.access-modal th,.access-modal td{padding:14px 12px;vertical-align:middle}
.access-modal td:first-child{white-space:normal;overflow-wrap:anywhere;min-width:210px}
.access-modal td select{width:160px;max-width:100%;padding:9px;border:1px solid var(--line);border-radius:6px}
.access-modal td:last-child{white-space:normal;min-width:240px}
.access-modal td button{margin:4px 6px 4px 0}
@media(max-width:600px){
 .modal.access-modal{padding:18px;max-height:90vh}
 .access-modal #access-search{grid-template-columns:minmax(0,1fr)}
 .access-modal #access-search button{width:100%}
}



.brand-logo{width:48px;height:48px;object-fit:cover;border-radius:7px;display:block;flex:0 0 48px;background:#000}
