:root{--ink:#172b29;--muted:#62716d;--line:#dce4df;--paper:#f5f7f4;--green:#176851;--green-dark:#10513e;--green-light:#e7f2eb;--amber:#956111;--amber-bg:#fff4dc;--red:#ab3535;--red-bg:#fff0ef;--radius:15px;--shadow:0 5px 24px rgba(26,50,40,.045)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--green)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.1px;line-height:1.2;margin-bottom:12px}h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;margin-bottom:7px}p{margin-bottom:12px}strong{font-weight:650}.muted,.help{color:var(--muted)}.help{font-size:13px;line-height:1.55;margin-top:10px;margin-bottom:0}.eyebrow{display:block;color:var(--green);font-size:12px;letter-spacing:1.3px;font-weight:750;text-transform:uppercase;margin-bottom:8px}.topbar{height:86px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1280px)/2));gap:24px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{display:grid;place-content:center;border-radius:12px;background:var(--ink);color:white;font-size:19px;font-weight:800;width:45px;height:45px}.brand div{display:grid}.brand strong{font-size:17px;letter-spacing:-.3px}.brand div>span{font-size:12px;color:var(--muted)}.connection{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px}.connection-dot{width:8px;height:8px;border-radius:50%;background:#a5b1a8;flex-shrink:0}.connection-dot.online{background:#2b9a6a}.connection-dot.offline{background:#c78431}.shell{width:min(1280px,calc(100% - 56px));margin:36px auto 56px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:23px}.page-heading p{margin:0;color:var(--muted)}.version-card{border-left:3px solid var(--green);padding:5px 0 5px 18px;min-width:200px;display:grid;gap:3px}.version-card>span{color:var(--muted);font-size:12px}.version-card strong{font-size:20px}.version-card small{font-size:12px;color:var(--muted)}.scope-note{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--muted);margin-bottom:27px}.tiny-label{display:inline-block;padding:3px 7px;background:#e9ede8;border-radius:4px;font-size:10px;font-weight:750;letter-spacing:.6px;line-height:1.5;color:#475d52;white-space:nowrap}.steps{display:grid;grid-template-columns:repeat(3,1fr);padding:0 0 27px;gap:26px}.step{display:flex;align-items:center;gap:11px;color:#7b8781}.step>span{display:grid;place-content:center;border-radius:50%;width:34px;height:34px;background:#e7ece6;flex-shrink:0;font-weight:650}.step.active{color:var(--ink)}.step.active>span{background:var(--green);color:white}.step.done>span{background:var(--green-light);color:var(--green)}.step strong,.step small{display:block}.step strong{font-size:14px}.step small{font-size:12px;color:var(--muted)}.card{padding:25px 27px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px}.upload-card h2{font-size:20px}.upload-card>.muted{max-width:800px}.upload-form{display:flex;align-items:end;gap:18px;margin-top:21px}.file-field{flex:1;border:1px dashed #a8bdae;padding:16px;background:#f7faf7;border-radius:9px}.file-field label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}.file-field input{display:block;width:100%;font-size:13px;min-height:36px;background:transparent;border:none;padding:0}.file-field input::file-selector-button{padding:8px 13px;margin-right:14px;border:1px solid #c5d3c8;border-radius:5px;background:white;color:var(--ink);font:inherit;cursor:pointer}.file-field small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.button{border:1px solid transparent;border-radius:8px;font-weight:600;min-height:46px;padding:10px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;text-align:center;transition:background .15s,box-shadow .15s}.button.primary{background:var(--green);color:white}.button.primary:hover:not(:disabled){background:var(--green-dark)}.button.secondary{background:#fff;border-color:#ccd8cf;color:#2e493e}.button.secondary:hover:not(:disabled){background:#f0f5ef}.button.quiet{background:transparent;color:var(--muted)}.button.quiet:hover{background:#f0f3ee}.button.small{min-height:38px;font-size:13px;padding:8px 13px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #86b9a0;outline-offset:2px}input,select,textarea{border:1px solid #bfcfc4;border-radius:7px;min-height:43px;background:#fff;color:var(--ink);padding:9px 11px;max-width:100%}input:read-only{background:#edf1ec;color:#52685b}input[type=checkbox]{min-height:0;width:19px;height:19px;accent-color:var(--green)}textarea{width:100%;resize:vertical}.empty-state{text-align:center;padding:53px 22px 58px;color:var(--muted)}.empty-symbol{width:48px;height:48px;border:1px solid #cfd9ce;border-radius:12px;display:grid;place-content:center;color:var(--green);font-size:25px;margin:0 auto 17px}.empty-state h2{font-size:19px;color:#3b5348}.empty-state p{max-width:570px;margin:0 auto;font-size:14px}.draft-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:34px 0 18px}.draft-heading h2{font-size:23px;overflow-wrap:anywhere}.draft-heading p{font-size:12px;margin:0}.draft-heading .eyebrow{font-size:11px;margin-bottom:5px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.metric{padding:21px 19px;border:1px solid var(--line);background:white;border-radius:12px;display:grid;gap:8px;align-content:start}.metric>span{font-size:12px;font-weight:550;color:var(--muted)}.metric strong{font-size:29px;letter-spacing:-.7px;line-height:1.2;font-variant-numeric:tabular-nums}.metric small{font-size:11px;color:var(--muted)}.metric.accent{background:var(--green);color:white;border-color:var(--green)}.metric.accent>span,.metric.accent small{color:#d1e6d9}.finance-line{display:flex;flex-wrap:wrap;gap:7px 24px;font-size:12px;color:var(--muted);margin:17px 3px 24px}.finance-line strong{color:var(--ink);font-variant-numeric:tabular-nums}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-title .muted{margin-bottom:0;font-size:13px}.pill{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 10px;border-radius:20px;background:#eef3ed;color:#4b6555;font-size:12px;font-weight:600}.pill.review{background:var(--amber-bg);color:var(--amber)}.pill.error{background:var(--red-bg);color:var(--red)}.table-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:22px 0 16px}.filters{display:flex;gap:4px;flex-wrap:wrap}.filter{font-size:12px;min-height:38px;padding:7px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted)}.filter span{display:inline-block;margin-left:4px;background:#eef1eb;padding:0 5px;border-radius:3px;min-width:20px;font-size:11px}.filter.active{background:var(--green-light);color:var(--green);font-weight:650}.filter.active span{background:#d6e8dc}.filter:hover{background:#f0f5ef}.search-label input{min-height:39px;font-size:13px;width:242px}.table-scroll{position:relative;overflow:auto;margin:0 -27px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#f7f9f5;color:#66776c;font-size:11px;letter-spacing:.35px;font-weight:650;text-transform:uppercase;padding:12px 13px;border-bottom:1px solid var(--line);white-space:nowrap}th:first-child,td:first-child{padding-left:27px}th:last-child,td:last-child{padding-right:27px}td{padding:14px 13px;border-bottom:1px solid #edf1eb;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf8}td:first-child{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cell-secondary{display:block;font-size:11px;color:var(--muted);margin-top:3px}.cell-name{min-width:150px;max-width:250px;overflow-wrap:anywhere}.cell-ticket{max-width:230px;font-size:12px}.cell-extras{font-size:12px;min-width:120px;max-width:190px}.cell-status{min-width:145px}.cell-status .cell-secondary{max-width:180px;line-height:1.4}.status-badge{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-size:11px;font-weight:650}.status-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.status-badge.review{color:var(--amber)}.status-badge.errors{color:var(--red)}.pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px;font-size:12px;color:var(--muted)}.pagination>div{display:flex;gap:8px}.table-empty{text-align:center;color:var(--muted);padding:30px!important}.diff-summary{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px}.diff-item{padding:10px 15px;background:#f4f7f1;border-radius:7px;font-size:13px;color:var(--muted)}.diff-item strong{display:block;color:var(--ink);font-size:20px}.check-line{display:flex;align-items:flex-start;gap:10px;margin:23px 0 18px;font-size:13px}.check-line input{flex-shrink:0;margin:1px 0 0}.approval-actions{display:flex;align-items:center;gap:17px}.approval-actions .muted{font-size:12px}.commit-blockers{font-size:13px;color:var(--amber);margin-top:16px}.commit-blockers:empty{display:none}.change-details{font-size:13px;margin-top:16px}.change-details summary{color:var(--green);cursor:pointer}.change-details ul{max-height:220px;overflow:auto;margin-bottom:0;padding-left:22px}.change-details li{padding:4px 0}.history-card{margin-top:27px}.history-card #history{margin-top:16px}.history-item{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);padding:13px 0;font-size:13px}.history-item:last-child{padding-bottom:0}.history-item strong{display:block}.history-item span{font-size:12px;color:var(--muted)}.history-item>span{white-space:nowrap}.footer{text-align:center;font-size:11px;color:#7a867e;padding:0 22px 30px}.login-card{max-width:570px;margin:70px auto 130px;padding:35px}.login-card h1{font-size:31px}.login-card .intro{font-size:14px;color:var(--muted);margin-bottom:28px}.login-card label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}.login-card input{width:100%}.login-card .button{margin-top:20px;width:100%}.message{display:flex;align-items:center;gap:15px;background:#edf5ee;border:1px solid #bed7c4;padding:16px 18px;border-radius:11px;margin-bottom:24px;position:relative;padding-right:46px}.message.error{background:var(--red-bg);border-color:#edc4bc}.message.warning{background:var(--amber-bg);border-color:#ead3a7}.message strong{font-size:14px;display:block}.message p{font-size:13px;margin:3px 0 0;overflow-wrap:anywhere}.message>div{flex:1}.message-close{position:absolute;right:9px;top:10px;background:transparent;border:0;font-size:24px;color:var(--muted);line-height:1;width:30px;height:30px}.file-issues{background:var(--amber-bg);border:1px solid #ebd8ad;border-radius:10px;padding:15px 18px;font-size:13px;margin-bottom:18px}.file-issues ul{margin:6px 0 0;padding-left:20px}.file-issues.error{background:var(--red-bg);border-color:#eac8c1}.file-issues strong{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #d1ddd3;border-radius:16px;padding:25px 28px;width:min(760px,calc(100vw - 30px));max-height:90vh;color:var(--ink);box-shadow:0 22px 100px rgba(20,42,29,.22)}dialog::backdrop{background:rgba(18,35,27,.42)}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.dialog-heading .eyebrow{font-size:11px}.dialog-heading h2{font-size:24px;margin-bottom:18px}.icon-button{width:36px;height:36px;flex-shrink:0;background:#f2f5ef;border:0;border-radius:50%;font-size:23px;color:#53685a;display:grid;place-content:center}.dialog-issues{font-size:13px}.issue{padding:10px 13px;margin-bottom:7px;background:var(--amber-bg);border-radius:7px;border-left:3px solid #d2a04d}.issue.error{background:var(--red-bg);border-color:#c46457}.issue.warning{background:#f0f5ec;border-color:#9cb292}.issue small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.source-details{font-size:12px;margin:15px 0 20px;background:#f6f8f3;padding:11px 13px;border-radius:7px}.source-details summary{cursor:pointer;color:#52685b}.source-details dl{display:grid;grid-template-columns:160px 1fr;gap:6px 12px;margin:12px 0 0;overflow-wrap:anywhere}.source-details dt{color:var(--muted)}.source-details dd{margin:0;white-space:pre-wrap}fieldset{border:0;border-top:1px solid var(--line);padding:17px 0 20px;margin:0}legend{font-weight:650;font-size:14px;padding-right:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 17px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:550}.form-grid input,.form-grid select{width:100%;font-size:14px}.form-grid label small{font-size:11px;line-height:1.4;font-weight:400;color:var(--muted)}.review-note-label{display:block;font-size:13px;font-weight:650;margin:2px 0 8px}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}.form-error{background:var(--red-bg);color:var(--red);padding:11px;border-radius:7px;font-size:13px;margin:14px 0 0}.money-invalid{color:var(--red)!important}.busy{cursor:progress}.busy .connection-dot{animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.busy .connection-dot{animation:none}}
@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,1fr)}.metric strong{font-size:30px}.table-tools{align-items:stretch}.search-label{flex:1;min-width:210px}.search-label input{width:100%}.topbar{padding:0 28px}.filters{flex-wrap:wrap}}
@media(max-width:700px){body{font-size:14px}.shell{width:calc(100% - 28px);margin-top:24px}.topbar{height:76px;padding:0 15px;gap:10px}.brand-mark{width:38px;height:38px;font-size:16px}.brand{gap:9px}.brand strong{font-size:14px}.brand div>span{font-size:10px}.connection{font-size:11px;gap:6px}.connection #connection-label{max-width:85px}.connection .button{padding:5px;font-size:11px;min-height:32px}h1{font-size:28px}.page-heading{align-items:flex-start;flex-direction:column;gap:18px}.version-card{min-width:0;display:flex;gap:9px;align-items:baseline;flex-wrap:wrap;width:100%;padding:5px 0 5px 12px}.version-card strong{font-size:15px}.version-card small{font-size:11px}.scope-note{font-size:12px;gap:7px}.tiny-label{font-size:9px}.steps{gap:10px;padding-bottom:20px}.step{gap:7px;align-items:start}.step>span{width:25px;height:25px;font-size:12px}.step strong{font-size:11px}.step small{display:none}.card{padding:20px 17px}.upload-form{align-items:stretch;flex-direction:column;gap:12px}.upload-form .button{width:100%}.file-field{padding:13px}.section-title{align-items:flex-start;gap:12px}.section-title h2{font-size:18px}.section-title .muted{font-size:12px}.section-title>.button{font-size:11px;max-width:140px}.section-title>.pill{font-size:10px;white-space:normal}.draft-heading{align-items:flex-start}.draft-heading h2{font-size:19px}.draft-heading .button{font-size:11px;padding:8px}.metrics{gap:10px}.metric{padding:16px 13px;gap:7px}.metric strong{font-size:24px}.metric>span{font-size:11px}.metric small{font-size:10px}.finance-line{font-size:11px;gap:6px 15px}.table-scroll{margin:0 -17px}th:first-child,td:first-child{padding-left:17px}th:last-child,td:last-child{padding-right:17px}.table-tools{margin-top:16px}.filters{gap:1px}.filter{font-size:11px;padding:6px}.filter span{margin-left:2px;font-size:10px}.table-tools .search-label{width:100%}.table-tools .search-label input{min-height:43px}.pagination{align-items:flex-start;flex-direction:column;gap:9px}.pagination>div{width:100%;justify-content:space-between}.diff-summary{gap:8px}.diff-item{flex:1;min-width:120px;padding:9px 11px;font-size:11px}.diff-item strong{font-size:18px}.approval-actions{align-items:stretch;flex-direction:column;gap:9px}.approval-actions .button{width:100%}.check-line{font-size:12px}.history-item{align-items:flex-start;font-size:12px;gap:10px}.history-item>span{font-size:10px}.message{align-items:flex-start;flex-wrap:wrap}.message strong{font-size:13px}.message p{font-size:12px}.login-card{margin:30px auto 80px;padding:25px 20px}.login-card h1{font-size:27px}dialog{padding:20px 17px;width:calc(100vw - 20px)}.form-grid{gap:12px}.form-grid.three{grid-template-columns:1fr}.form-grid label{font-size:11px}.source-details dl{grid-template-columns:115px 1fr;font-size:11px}.dialog-actions{justify-content:stretch}.dialog-actions .button{flex:1;font-size:12px;padding:10px}.dialog-heading h2{font-size:21px}.footer{font-size:10px}}

.partial-summary{padding:12px 16px;background:var(--amber-bg);color:var(--amber);border:1px solid #ead3a7;border-radius:9px;font-size:13px;margin:14px 0 0}.price-inputs{margin-top:14px}

.cash-boxes { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:20px; }
@media(max-width:650px) { .cash-boxes{grid-template-columns:1fr} .topbar .connection{flex-wrap:wrap} }

#receipt-dialog {max-width: min(94vw, 1000px); max-height: 94vh; border: 1px solid var(--line); border-radius: 16px; padding: 20px;}
#receipt-image {display:block; max-width:100%; max-height:76vh; object-fit:contain; margin:auto;}
.receipt-action {display:block; margin:4px 0;}

/* Import issue navigation: counts describe overlapping groups, not approval. */
.issue-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0 10px}.issue-card{display:grid;grid-template-columns:1fr auto;gap:8px 15px;text-align:left;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);min-height:151px}.issue-card>span{font-weight:700;font-size:15px;align-self:center}.issue-card>strong{font-size:31px;line-height:1.2;font-variant-numeric:tabular-nums}.issue-card>small{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.5}.issue-card>b{grid-column:1/-1;color:var(--green);font-size:12px;font-weight:650}.issue-card.attention{border-color:#e6c47d;background:#fffaf0}.issue-card.attention>strong{color:var(--amber)}.issue-card.contacts{background:#f5f8fc;border-color:#c9d7e6}.issue-card.contacts>strong{color:#345f82}.issue-card.corrected{background:#f3f8f2;border-color:#cbdcc9}.issue-card.active{outline:2px solid var(--green);outline-offset:1px}.issue-card:hover{box-shadow:0 4px 16px #153d2712}.filter-help{font-size:12px;color:var(--muted);margin-bottom:18px}.review-card .table-tools{position:sticky;top:0;z-index:2;background:#fff;padding:10px 0;margin-top:14px;margin-bottom:4px}.filter-state{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.filter-state p{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}.filter-state .button{flex-shrink:0}.status-badge.contact,.contact-note{color:#345f82}.correction-note{color:#4f6f51}.filter{border-color:#dbe4dc}.filter.active{border-color:#a6c7b4}
@media(max-width:850px){.issue-overview{grid-template-columns:1fr;gap:9px}.issue-card{min-height:0;padding:15px 17px;grid-template-columns:1fr auto}.issue-card>strong{grid-row:1/3;grid-column:2;align-self:center}.issue-card>small{grid-column:1}.issue-card>b{display:none}.review-card .table-tools{gap:10px}.filters{flex:1 1 100%}.filter-state{align-items:flex-start}.filter-state .button{font-size:11px}.search-label{width:100%}}

.environment-banner{margin:0 0 22px;padding:18px 22px;border:2px solid #b97c16;border-radius:12px;background:#fff2ce;color:#62420b}.environment-banner strong{display:block;font-size:20px;letter-spacing:.03em}.environment-banner p{margin:7px 0 0;font-size:14px;line-height:1.5}.environment-banner.production{background:#e7f1ee;border-color:#24715e;color:#174e40}.environment-banner.unknown{background:#f3f3f1;border-color:#777;color:#333}
