.reference-page,.ref-dialog,.ref-public{--ref-fg:#2a2218;--ref-muted:#756755;--ref-line:#e6e2dc;--ref-primary:#8a6234;--ref-green:#00845f;color:var(--ref-fg);font-family:'Reference Noto Sans JP',-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',sans-serif;font-size:14px;line-height:1.5}
.content.reference-page{padding:28px 32px;max-width:none;width:100%;background:#f8f7f5;min-height:calc(100vh - 64px)}.main-shell:has(.reference-page){background:#f8f7f5}.main-shell:has(.reference-page)>.page-footer{display:none}.reference-page *,.ref-dialog *,.ref-public *{box-sizing:border-box}.reference-page h1,.ref-public h1{font-size:22px;line-height:33px;font-weight:800;letter-spacing:0;margin:0}.reference-page h2,.ref-public h2{font-size:16px;line-height:24px;font-weight:700;margin:0}.reference-page h3,.ref-dialog h3{font-size:14px;margin:0}.reference-page p,.ref-public p{line-height:1.5;margin:0}.ref-page-heading{margin-bottom:20px}.ref-page-heading p{font-size:14px;color:var(--ref-muted);margin-top:4px}.ref-sales-stack{display:flex;flex-direction:column;gap:28px}.ref-card{border:1px solid var(--ref-line);border-radius:12px;background:#fff;box-shadow:0 1px 2px #0f172a0a;min-width:0}.ref-years{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.ref-years button{display:flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--ref-line);border-radius:8px;background:white;color:#54483a;white-space:nowrap;font-size:12px;line-height:19px}.ref-years button[aria-pressed=true]{background:#2a2218;color:white;border-color:#2a2218}.ref-years button span{opacity:.75}.ref-years button b{font-size:10px;padding:1px 5px;border-radius:4px;background:#ffffff26}.ref-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:28px}.ref-metric{padding:16px;min-height:96px}.ref-metric p{font-size:12px;font-weight:500;color:var(--ref-muted)}.ref-metric strong{display:block;font-size:20px;font-weight:700;line-height:28px;margin-top:8px;white-space:nowrap;font-variant-numeric:tabular-nums}.ref-metric small{display:block;font-size:11px;color:var(--ref-muted);margin-top:4px;line-height:16.5px}.reference-page .ref-profit,.ref-public .ref-profit{color:var(--ref-green)}.ref-section{display:flex;flex-direction:column;gap:12px}.ref-section>h2>span,.ref-section-heading h2 span{font-size:12px;font-weight:400;color:var(--ref-muted);margin-left:8px}.ref-table-scroll{overflow:auto}.reference-page table,.ref-public table,.ref-invoice table{border-collapse:collapse;width:100%;font-size:12px;line-height:16px}.reference-page th,.reference-page td,.ref-invoice td,.ref-invoice th{white-space:nowrap;border-bottom:1px solid var(--ref-line);text-align:left}.reference-page tbody tr:last-child>*{border-bottom:0}.ref-year-table{min-width:1480px}.reference-page .ref-year-table th,.reference-page .ref-year-table td{padding:14px 12px;text-align:right;color:#54483a;font-variant-numeric:tabular-nums}.reference-page .ref-year-table thead th{padding:12px;color:var(--ref-muted);font-weight:500}.reference-page .ref-year-table th:first-child{position:sticky;left:0;text-align:left;width:112px;min-width:112px;background:white;padding-left:16px;font-weight:700}.reference-page .ref-year-table td:last-child,.reference-page .ref-year-table thead th:last-child{background:#f3f1ed;position:sticky;right:0;font-weight:700}.ref-section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}.ref-section-heading p{font-size:12px;color:var(--ref-muted);margin-top:4px}.ref-primary,.ref-secondary,.ref-text{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:0 16px;height:40px;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;text-decoration:none;cursor:pointer}.ref-primary{background:var(--ref-primary);color:white;border:1px solid var(--ref-primary)}.ref-primary:hover{background:#76522a}.ref-secondary{background:white;color:var(--ref-fg);border:1px solid var(--ref-line)}.ref-secondary:hover{background:#f3f1ed}.ref-text{background:none;border:0;color:var(--ref-muted)}.ref-primary:disabled,.ref-secondary:disabled{opacity:.5;cursor:wait}.ref-ledger-filters{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ref-line)}.ref-ledger-filters>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.reference-page label,.ref-dialog label,.ref-public label{margin:0;display:flex;gap:6px;font-size:12px;color:#54483a;font-weight:500}.ref-ledger-filters>div>label{align-items:center;flex-direction:row;white-space:nowrap}.ref-search{position:relative;width:100%;max-width:384px}.ref-search svg{position:absolute;width:16px;height:16px;top:10px;left:12px;color:var(--ref-muted)}.reference-page input,.reference-page select,.ref-dialog input,.ref-dialog select,.ref-dialog textarea,.ref-public input,.ref-public select,.ref-public textarea{border:1px solid #d5cfc5;border-radius:8px;color:var(--ref-fg);background:white;padding:0 10px;height:36px;line-height:18px;font-size:12px;font-weight:400}.reference-page .ref-search input{padding-left:36px}.reference-page select{width:auto}.ref-month-tabs{display:flex;gap:4px;padding:8px 12px 0;overflow:auto}.ref-month-tabs button{padding:8px 12px;border:0;border-bottom:2px solid transparent;color:var(--ref-muted);background:none;font-size:12px;white-space:nowrap}.ref-month-tabs button[aria-pressed=true]{border-bottom-color:#2a2218;color:#2a2218}.ref-month-tabs small{font-size:10px}.ref-roster-scroll{overflow:auto;max-height:1240px}.ref-roster-table{min-width:1420px}.reference-page .ref-roster-table th{padding:12px;font-weight:700;color:var(--ref-muted);background:#f3f1ed}.ref-roster-table thead{position:sticky;top:0;z-index:2}.reference-page .ref-roster-table td{padding:16px 12px;height:60px;color:#54483a}.reference-page .ref-roster-table .ref-money{text-align:right}.reference-page .ref-roster-table .ref-profit{color:#407b64}.ref-roster-table th:nth-child(n+8):nth-child(-n+10){text-align:right}.reference-page input[type=checkbox]{width:16px;height:16px;accent-color:#2a2218;margin:0;vertical-align:middle;padding:0;flex:none}.ref-roster-table tr[role=button]{cursor:pointer}.ref-roster-table tr[role=button]:hover{background:#faf9f7}.ref-roster-table tr.ref-selected{background:#f5f1e9}.ref-ellipsis{max-width:200px;display:block;text-overflow:ellipsis;overflow:hidden}.ref-status{font-size:10px;line-height:15px;background:#fffbeb;color:#92400e;border-radius:4px;padding:2px 6px;white-space:nowrap}.ref-status-paid{background:#ecfdf5;color:#047857}.ref-status-submitted{background:#eff6ff;color:#1d4ed8}.ref-bulk{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 16px;border:1px solid var(--ref-line);background:#f3f1ed;border-radius:8px}.ref-bulk b{font-size:12px}.ref-bulk p{font-size:11px;color:var(--ref-muted);margin-top:4px}.ref-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ref-actions .ref-secondary,.ref-actions .ref-text{height:34px;font-size:12px;padding:0 12px}.ref-menu{position:relative}.ref-menu>summary{list-style:none}.ref-menu>div{position:absolute;top:calc(100% + 4px);right:0;z-index:10;min-width:190px;background:white;border:1px solid var(--ref-line);box-shadow:0 8px 24px #2a22181a;border-radius:8px;padding:6px;display:flex;flex-direction:column}.ref-menu button{border:0;background:white;text-align:left;padding:8px;font-size:12px;border-radius:4px}.ref-menu button:hover{background:#f3f1ed}.ref-menu small{padding:6px 8px;color:var(--ref-muted);font-size:10px}.ref-data-tools{font-size:11px;color:var(--ref-muted)}.ref-data-tools>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.ref-chart-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ref-chart-controls label{flex-direction:row;align-items:center;gap:8px}.ref-segment{display:flex;padding:3px;border-radius:8px;background:#efede9}.ref-segment button{background:transparent;border:0;padding:7px 12px;border-radius:6px;font-size:12px;color:var(--ref-muted)}.ref-segment button[aria-pressed=true]{background:white;color:#2a2218;box-shadow:0 1px 2px #0001}.ref-chart-scroll{padding:20px;overflow-x:auto}.ref-bars{display:flex;gap:20px;min-width:850px}.ref-bar-column{flex:1;min-width:80px;text-align:center}.ref-bar-area{height:210px;display:flex;flex-direction:column;justify-content:end;gap:8px;align-items:center;font-size:11px}.ref-bar-area svg{width:64px;height:175px}.ref-bar-area rect{fill:#8a6234}.ref-bar-column h3{font-size:11px;line-height:16px;margin-top:12px;min-height:32px}.ref-bar-column p{font-size:11px;margin:4px 0;color:var(--ref-muted)}.ref-bar-column small{display:block;font-size:10px;color:var(--ref-muted);line-height:17px}.ref-empty{text-align:center;padding:32px!important;color:var(--ref-muted)}
dialog.ref-dialog{padding:0;border:1px solid var(--ref-line);border-radius:16px;background:white;width:calc(100% - 32px);max-width:768px;max-height:85vh;box-shadow:0 24px 64px #2a22182b;overflow:hidden}.ref-dialog[open]{display:flex;flex-direction:column}.ref-dialog::backdrop{background:#231b1466}.ref-dialog-head{display:flex;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--ref-line);flex-shrink:0}.ref-dialog h2{font-size:16px;font-weight:700;line-height:24px;margin:0}.ref-dialog-head p{font-size:12px;color:var(--ref-muted);margin:2px 0 0;line-height:18px}.ref-dialog-head .icon-button{border:0;width:28px;height:28px;border-radius:8px;color:var(--ref-muted)}.ref-dialog-body{padding:16px 20px;overflow-y:auto;min-height:0}.ref-form{display:flex;flex-direction:column;gap:24px}.ref-form fieldset{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ref-form legend{font-size:14px;font-weight:700;margin-bottom:8px}.ref-form label,.ref-public form label{flex-direction:column}.ref-required{color:#b42318;font-size:11px;margin-left:4px;font-weight:500}.ref-input-unit{position:relative;display:block}.ref-input-unit input{width:100%}.ref-input-unit i{position:absolute;right:12px;top:9px;font-size:11px;font-style:normal;color:var(--ref-muted)}.ref-dialog-footer{display:flex;justify-content:end;gap:8px;border-top:1px solid var(--ref-line);background:#faf9f7;padding:12px 20px;flex-shrink:0}.ref-dialog-footer .ref-primary,.ref-dialog-footer .ref-secondary{height:36px;font-size:12px;padding:0 14px}.ref-dialog-footer .ref-danger{margin-right:auto;color:#b42318}.ref-dialog .form-error{font-size:12px;margin:8px 0;padding:8px}.ref-dialog textarea{height:80px;padding:10px;min-height:80px}.ref-dialog .ref-check{flex-direction:row;align-items:center}.ref-dialog input[type=checkbox]{width:16px;height:16px;accent-color:#8a6234}.ref-dialog .ref-span{grid-column:1/-1}
.ref-partner-heading{display:flex;align-items:baseline;gap:8px}.ref-partner-heading>span{color:var(--ref-muted);font-size:14px}.ref-partner-add{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:16px}.ref-partner-add label{flex-direction:column;min-width:140px}.ref-partner-add label:first-child{flex:1;max-width:400px}.ref-partner-add input,.ref-partner-add select{height:40px;font-size:14px;font-weight:600}.ref-partner-search{margin:20px 0 12px}.ref-partner-table{min-width:950px}.reference-page .ref-partner-table th{background:#f3f1ed;color:var(--ref-muted);padding:14px 16px;font-size:12px;font-weight:800}.reference-page .ref-partner-table td{padding:14px 16px;font-size:14px;height:64px}.ref-partner-table th:nth-child(n+4):nth-child(-n+6),.ref-partner-table td:nth-child(n+4):nth-child(-n+6){text-align:right}.ref-partner-table .ref-actions{justify-content:end;flex-wrap:nowrap}.ref-partner-table .ref-actions button,.ref-partner-table .ref-actions a{font-size:12px;height:32px;padding:0 10px}.ref-partner-table .ref-menu>summary{font-size:18px;padding:0;width:32px}.ref-table-scroll:has(.ref-menu[open]){min-height:300px}.ref-link-output{word-break:break-all;min-height:90px!important}.ref-public{background:#f8f7f5;min-height:100dvh;padding:36px max(20px,calc((100vw - 1080px)/2))}.ref-public-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.ref-public-header p{font-size:12px;color:var(--ref-muted);margin:0 0 4px}.ref-public-header strong{font-size:24px}.ref-public-tabs{display:flex;border-bottom:1px solid var(--ref-line);gap:24px;margin-bottom:24px}.ref-public-tabs button{padding:12px 4px;border:0;border-bottom:2px solid transparent;background:none;font-size:14px;color:var(--ref-muted)}.ref-public-tabs button[aria-pressed=true]{border-color:#8a6234;color:#2a2218;font-weight:700}.ref-public .ref-next-payment{padding:24px;margin-bottom:20px;background:#eee7dc;display:flex;justify-content:space-between;align-items:center;border-radius:12px}.ref-next-payment strong{font-size:28px}.ref-public .ref-card{padding:20px;margin-bottom:16px}.ref-public summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;list-style:none}.ref-public summary h2{font-size:16px}.ref-public table{margin:20px 0;font-size:13px}.ref-public th,.ref-public td{padding:12px;border-bottom:1px solid var(--ref-line);text-align:left}.ref-public td:last-child{text-align:right}.ref-public .ref-form{max-width:768px;margin:auto;padding:24px;background:white;border:1px solid var(--ref-line);border-radius:12px}.ref-public .ref-metrics{grid-template-columns:repeat(3,1fr)}.ref-public .ref-metric{margin:0}.ref-payment-footer{display:flex;gap:16px;justify-content:end;align-items:center}.ref-payment-footer p{margin-right:auto}.ref-payment-footer strong{font-size:20px}
.ref-draft-dialog{max-width:1020px!important;overflow:auto!important;background:#f3f1ed!important}.ref-draft-toolbar{padding:20px;display:flex;align-items:center;gap:16px}.ref-draft-toolbar>div{flex:1}.ref-draft-toolbar p{margin:4px 0;font-size:12px;color:var(--ref-muted)}.ref-invoice{margin:0 24px 24px;padding:36px;background:white;border:1px solid var(--ref-line);border-radius:10px}.ref-invoice>h1{font-size:28px;text-align:center;margin:24px 0 4px}.ref-invoice>h1+p{text-align:center;font-size:12px;color:var(--ref-muted)}.ref-draft-warning{display:block;font-size:11px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;padding:8px}.ref-invoice-dates{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:28px 0}.ref-invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-bottom:28px}.ref-invoice label{display:flex;flex-direction:column;margin-bottom:10px}.ref-invoice table{margin:16px 0}.ref-invoice th,.ref-invoice td{padding:12px}.ref-invoice-total{text-align:right;padding:20px 0}.ref-invoice-total strong{font-size:24px;margin-left:24px}.ref-invoice-total small{display:block;font-size:11px;color:var(--ref-muted);margin-top:6px}
@media(max-width:1100px){.ref-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-ledger-filters{align-items:start;flex-direction:column}.ref-bulk{align-items:start;flex-direction:column}.content.reference-page{padding:20px}.ref-public{padding:24px 16px}}
@media(max-width:600px){.ref-form fieldset,.ref-invoice-parties,.ref-invoice-dates{grid-template-columns:1fr}.ref-dialog-body{padding:16px}.ref-public-header{align-items:start;flex-direction:column}.ref-public .ref-metrics{grid-template-columns:1fr}.ref-public summary{flex-wrap:wrap}.ref-invoice{padding:20px;margin:0}.ref-primary{height:36px;font-size:12px}.ref-ledger-filters>div>label{flex:1}.ref-ledger-filters select{max-width:150px}.ref-metric{padding:12px}.ref-metric strong{font-size:18px}}
@media print{body:has(.ref-draft-dialog[open])>#app,body:has(.ref-draft-dialog[open])>#toast,.ref-draft-toolbar{display:none!important}.ref-draft-dialog[open]{position:static!important;max-height:none!important;width:100%!important;max-width:none!important;overflow:visible!important;border:0!important;box-shadow:none!important}.ref-invoice{page-break-after:always;border:0;margin:0;padding:10mm}.ref-invoice:last-child{page-break-after:auto}.ref-invoice input,.ref-invoice textarea{border:0!important;padding:0!important;background:none!important}.ref-invoice input[type=date]{appearance:none}.ref-draft-warning{print-color-adjust:exact}.ref-invoice-total{break-inside:avoid}}

.reference-page .ref-year-table td.ref-profit{color:#269376}.ref-selection:empty,#sales-selection:empty{display:none}
.ref-public .ref-bars{min-width:600px}.ref-dialog-body>.ref-public{padding:16px;min-height:0}.ref-dialog-body>.ref-public .ref-public-header strong{font-size:20px}.reference-page .ref-year-table td:last-child.ref-profit{color:#269376}
.local-preview-banner,.backup-warning{position:sticky;top:0;z-index:3000;background:#fff1c2;color:#50380b;padding:10px 20px;text-align:center;font-size:14px}.local-preview-banner a{text-decoration:underline;font-weight:700}.backup-warning{background:#fff0ed;color:#a12c21}.backup-status{padding:24px;margin-bottom:20px}.backup-status p{margin:12px 0}.backup-status table{width:100%;border-collapse:collapse}.backup-status th,.backup-status td{padding:12px;border-bottom:1px solid #e2e8ed;text-align:left}.ref-roster-info{display:flex;align-items:center;justify-content:space-between;color:#756755;font-size:13px}.ref-roster-info [hidden]{display:none}
.payment-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:0 0 20px;flex-wrap:wrap}.payment-toolbar>span{flex:1;font-size:13px}.payment-toolbar>div{display:flex;gap:8px}.payment-edit-note{padding:12px;background:#eff6ff;color:#1d4c81;margin-bottom:16px!important}.payment-paper-scroll{overflow:auto;background:#eef2f6;padding:28px 16px}.payment-paper{box-sizing:border-box;width:794px;min-height:1123px;padding:54px 76px;background:#fff;color:#111827;margin:0 auto;font-family:'Reference Noto Sans JP',sans-serif;font-size:10px;line-height:1.5}.payment-paper *{box-sizing:border-box}.payment-paper .payment-top{display:grid;grid-template-columns:1fr 1fr;gap:64px}.payment-paper h1{border:2px solid #27303d;font-size:24px;letter-spacing:3px;width:194px;padding:13px 20px;text-align:center;margin:0 0 42px;font-weight:700;line-height:1.3}.payment-paper h2{display:flex;align-items:center;justify-content:space-between;font-size:17px;border-bottom:1px solid #334155;padding:0 0 8px;margin:0 0 12px;gap:10px}.payment-paper h2>span:first-child{overflow-wrap:anywhere}.payment-paper table{border-collapse:collapse;width:100%;margin:0;table-layout:fixed;font-size:10px}.payment-paper td,.payment-paper th{border:1px solid #c9cfd6;padding:9px 12px;vertical-align:middle;overflow-wrap:anywhere;white-space:normal}.payment-party th{font-weight:400;color:#58677b;width:88px;text-align:left}.payment-party td{line-height:1.6}.payment-bank{display:grid;grid-template-columns:38px 1fr;gap:3px}.payment-bank>span{color:#718096}.payment-paper .payment-issuer{margin-top:24px}.payment-paper .payment-intro{font-size:14px;margin:32px 0 18px}.payment-paper .payment-amount{display:flex;align-items:baseline;gap:20px;font-size:14px;padding-bottom:8px;border-bottom:1px solid #334155;margin-bottom:24px}.payment-amount strong{font-size:25px}.payment-items th{background:#29384c!important;color:white!important;text-align:center;font-weight:500;height:40px;padding:8px}.payment-items td{padding:8px;font-size:10px}.payment-items td:nth-child(1),.payment-items td:nth-child(2),.payment-items td:nth-child(4){text-align:center}.payment-items td:nth-child(5),.payment-items td:nth-child(6){text-align:right}.payment-col-date{width:92px}.payment-col-no{width:44px}.payment-col-qty{width:48px}.payment-col-money{width:105px}.payment-blank{height:36px}.payment-totals{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;margin-top:28px}.payment-totals th{font-weight:400;background:#f8fafc;font-size:10px}.payment-totals td{text-align:right}.payment-totals td:first-child{text-align:left}.payment-totals table:last-child tr:last-child{font-weight:700;background:#f1f5f9}.payment-footnote{font-size:10px;margin-top:24px!important}.payment-paper input{font:inherit!important;color:inherit!important;min-width:0;width:100%;height:auto!important;min-height:0!important;margin:0!important;padding:4px!important;border:1px solid #93c5fd!important;border-radius:2px!important;background:#f8fbff!important}.payment-paper h2 input{width:85%}.payment-paper .document-value{white-space:pre-wrap;overflow-wrap:anywhere}.document-export-stage{position:absolute;left:-20000px;top:0;width:794px;pointer-events:none}.document-export-stage>.payment-paper{margin:0}.document-export-stage>.ref-invoice{width:794px;max-width:none;margin:0;padding:48px;background:white;color:#111827;font-family:'Reference Noto Sans JP',sans-serif}.document-export-stage .ref-invoice table{width:100%;border-collapse:collapse}.document-export-stage .ref-invoice td,.document-export-stage .ref-invoice th{padding:10px;border:1px solid #d1d5db}.document-export-stage .ref-invoice label{display:block}.document-export-stage .ref-invoice .document-value{display:block}#document-print-root{display:none}
@media print{@page{size:A4;margin:10mm}body.printing-document>*{display:none!important}body.printing-document>#document-print-root{display:block!important}#document-print-root .payment-paper{width:190mm;min-height:0;margin:0;padding:8mm 10mm;font-size:9pt;break-after:page}#document-print-root .ref-invoice{width:190mm;max-width:190mm;margin:0;padding:8mm;break-after:page}#document-print-root article:last-child{break-after:auto}#document-print-root tr,#document-print-root .payment-totals,#document-print-root .payment-top{break-inside:avoid}#document-print-root thead{display:table-header-group}#document-print-root *{print-color-adjust:exact;-webkit-print-color-adjust:exact}.local-preview-banner,.backup-warning{display:none!important}}

/* Acceptance revenue: shared records, monthly detail and six-month payroll reference. */
.acceptance-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.acceptance-eyebrow{font-size:11px!important;font-weight:700;letter-spacing:2px;color:#0a7a73!important;margin:0 0 10px!important}.acceptance-heading h1{margin:0}.acceptance-period{display:flex;align-items:center;gap:24px;padding:18px 20px;margin:26px 0 14px;flex-wrap:wrap}.acceptance-period>div{display:flex;align-items:center;gap:20px;flex:1}.acceptance-period>div strong{white-space:nowrap;font-size:16px}.acceptance-period label,.acceptance-filters label{display:flex;gap:8px;align-items:center;font-size:12px;color:#637570}.acceptance-period input{width:160px}.acceptance-info{font-size:12px;line-height:1.85;color:#68736d;margin:14px 0}.acceptance-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.acceptance-profit{color:#265dc5!important}.acceptance-offer{color:#d54b45!important}.acceptance-unknown{color:#a96500!important;font-size:12px}.acceptance-warning{padding:12px 16px;background:#fff5dd;color:#8c600f;border-radius:8px;font-size:13px}.acceptance-tabs{display:flex;border-bottom:1px solid #deded9;gap:22px;margin-top:32px;overflow:auto}.acceptance-tabs button{border:0;border-bottom:3px solid transparent;background:none;white-space:nowrap;font:inherit;font-size:14px;color:#817768;padding:14px 4px;cursor:pointer}.acceptance-tabs button[aria-selected=true]{color:#087970;border-color:#087970;font-weight:700}.acceptance-filters{display:flex;gap:24px;margin:20px 0;flex-wrap:wrap}.acceptance-filters input{width:240px}.acceptance-filters select{max-width:240px}.acceptance-month-tabs{margin-bottom:14px}.acceptance-legend{display:flex;gap:22px;font-size:12px;margin:18px 0}.acceptance-legend small{margin-left:auto;color:#8c9089}.acceptance-scroll{overflow:auto}.acceptance-table{border-collapse:collapse;width:100%;min-width:850px;font-size:13px}.acceptance-table th,.acceptance-table td{padding:18px 16px;border-bottom:1px solid #e7e5e0;vertical-align:middle;text-align:right;white-space:nowrap}.acceptance-table thead th{background:#f5f4f0;color:#847660;font-size:12px}.acceptance-table th:first-child,.acceptance-table td:first-child{position:sticky;left:0;background:#fff;z-index:1;text-align:left;min-width:128px}.acceptance-table thead th:first-child{background:#f5f4f0}.acceptance-table td:last-child{text-align:left}.acceptance-table tfoot th,.acceptance-table tfoot td{background:#edf5f2;font-weight:700;border:0}.acceptance-table small{display:block;font-size:10px;margin-top:5px}.acceptance-entries{display:flex;gap:10px;max-width:900px;min-width:320px;flex-wrap:wrap}.acceptance-entry{display:block;text-align:left;font:inherit;border:1px solid #e3e7e3;border-radius:8px;background:#fff;padding:10px 12px;min-width:185px;max-width:260px;color:#283c39;cursor:pointer}.acceptance-entry:hover{background:#f1f8f6;border-color:#8cbfb3}.acceptance-entry:focus-visible{outline:2px solid #078079;outline-offset:2px}.acceptance-entry>strong,.acceptance-entry>span{display:block;white-space:normal;overflow-wrap:anywhere}.acceptance-entry>strong{font-size:13px}.acceptance-entry>span{font-size:11px;color:#7e8780;margin-top:4px}.acceptance-entry>div{display:flex;gap:12px;margin-top:10px;font-size:12px;flex-wrap:wrap}.acceptance-entry b{font-size:9px;font-weight:400;color:#bd493b;background:#fff0eb;margin-left:8px;padding:2px 5px;border-radius:4px}.acceptance-empty{font-size:12px;color:#a4aaa4}.acceptance-average{min-width:1380px}.acceptance-average td>span{display:block;line-height:1.9}.acceptance-average td:last-child{background:#f0f8f5;text-align:right;font-weight:700}.acceptance-average th:last-child{background:#e5f2ed}.acceptance-average th,.acceptance-average td{padding:16px 18px}#acceptance-edit fieldset{margin-top:20px}#acceptance-edit input,#acceptance-edit select{width:100%}
@media(max-width:1100px){.acceptance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.acceptance-period{gap:12px}.acceptance-period>div{flex-basis:100%}.acceptance-entries{min-width:240px}}@media(max-width:600px){.acceptance-heading{align-items:start;flex-direction:column}.acceptance-period>div{gap:10px}.acceptance-period>div strong{font-size:13px}.acceptance-filters label{flex:1;align-items:start;flex-direction:column}.acceptance-legend{gap:10px;flex-wrap:wrap}.acceptance-legend small{width:100%;margin:0}.acceptance-metrics{gap:8px}.acceptance-tabs{gap:14px}}

.acceptance-table:not(.acceptance-average) thead th:last-child{text-align:left}

.acceptance-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.acceptance-row-add{display:block;border:0;background:none;padding:8px 0 0;color:#087970;font:inherit;font-size:11px;cursor:pointer}.acceptance-row-add:hover{text-decoration:underline}.acceptance-filters label[hidden]{display:none}.acceptance-heading .acceptance-actions{max-width:620px}

.acceptance-metrics[hidden]{display:none}

.acceptance-entry.acceptance-needs-date{background:#fff7d8;border-color:#e8ca72}.acceptance-date-alert{color:#886014;font-size:12px;font-weight:600}.ref-roster-table tr.acceptance-needs-date td{background:#fff7d8}.ref-roster-table tr.acceptance-needs-date:hover td{background:#fff0bd}

/* Comfortable reading size for the acceptance workspace and shared sales editor. */
.reference-page:has(.acceptance-heading){font-size:16px;line-height:1.7}
.reference-page .acceptance-heading h1{font-size:28px;line-height:1.5}
.reference-page .acceptance-heading p,.acceptance-info,.reference-page .acceptance-period label,.reference-page .acceptance-filters label,.acceptance-legend,.acceptance-legend small{font-size:14px;line-height:1.8}
.reference-page:has(.acceptance-heading) input,.reference-page:has(.acceptance-heading) select{font-size:16px;height:44px}
.reference-page:has(.acceptance-heading) button:not(.nav-item){font-size:15px}
.reference-page .acceptance-table{font-size:16px;line-height:1.7}
.reference-page .acceptance-table thead th{font-size:14px}
.acceptance-table small,.acceptance-empty{font-size:13px}
.acceptance-entry{min-width:220px;max-width:300px;padding:14px 16px}
.acceptance-entry>strong{font-size:17px}.acceptance-entry>span{font-size:14px;color:#58665e}.acceptance-entry>div{font-size:16px}.acceptance-entry b{font-size:12px}
div.acceptance-entry{cursor:default}div.acceptance-entry:hover{background:inherit;border-color:#e3e7e3}
.acceptance-metrics .ref-metric p{font-size:15px}.acceptance-metrics .ref-metric strong{font-size:28px;line-height:1.5}.acceptance-metrics .ref-metric small{font-size:13px;line-height:1.8}
.ref-dialog:has(#acceptance-edit),.ref-dialog:has(#sale-form){font-size:16px}
.ref-dialog:has(#acceptance-edit) label,.ref-dialog:has(#sale-form) label{font-size:15px}
.ref-dialog:has(#acceptance-edit) input,.ref-dialog:has(#acceptance-edit) select,.ref-dialog:has(#sale-form) input,.ref-dialog:has(#sale-form) select{font-size:16px;height:44px}
.ref-dialog:has(#acceptance-edit) legend,.ref-dialog:has(#sale-form) legend{font-size:17px}
.ref-dialog:has(#acceptance-edit) .ref-dialog-head p{font-size:14px}
.sale-profit-result{display:flex;flex-direction:column;gap:4px;background:#edf7f2;border:1px solid #cfe5dc;border-radius:10px;padding:14px 18px;grid-column:1/-1}
.sale-profit-result>span{font-size:14px;font-weight:600;color:#365a4d}.sale-profit-result output{font-size:24px;font-weight:700;color:#08745b;min-height:36px}.sale-profit-result small{font-size:13px;color:#57796b}

.acceptance-group-picker{position:relative;min-width:0;display:flex;flex-direction:column;gap:6px}
.acceptance-picker-input{display:flex;position:relative}.ref-dialog #acceptance-group-input{padding-right:46px}
.acceptance-picker-input>button{position:absolute;right:1px;top:1px;bottom:1px;width:42px;border:0;border-left:1px solid #e6e2dc;border-radius:0 8px 8px 0;background:#f8f7f5;color:#54483a;font-size:24px;cursor:pointer}
.acceptance-picker-input>button:hover{background:#eeeae3}.acceptance-picker-input>button:focus-visible{outline:2px solid #087970;outline-offset:-3px}
.acceptance-group-picker>small{font-size:12px;line-height:1.6;color:#756755}
.acceptance-picker-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:8;border:1px solid #d5cfc5;border-radius:10px;background:#fff;box-shadow:0 8px 24px #2a221829;overflow:hidden}
.acceptance-picker-menu[hidden]{display:none}.acceptance-picker-count{font-size:12px;padding:9px 12px;color:#756755;border-bottom:1px solid #eeeae3;background:#faf9f7}
#acceptance-group-options{max-height:240px;overflow:auto;overscroll-behavior:contain}
.acceptance-picker-section{font-size:12px;font-weight:700;color:#756755;background:#f5f4f0;padding:8px 12px}
#acceptance-group-options [role=option]{padding:10px 12px;line-height:1.6;cursor:pointer;overflow-wrap:anywhere;font-size:15px;color:#2a2218}
#acceptance-group-options [role=option]:hover,#acceptance-group-options [role=option].is-active{background:#e6f3ee;color:#076857}
.ref-dialog .acceptance-picker-empty{padding:14px 12px;font-size:13px;color:#756755}

.ref-form label[hidden]{display:none!important}.receipt-editor>label{max-width:100%}.receipt-help{font-size:14px!important;line-height:1.7!important;color:#756755;margin:12px 0!important}.receipt-part{padding:18px;border:1px solid #dbd5cd;background:#faf9f7;border-radius:10px;margin:12px 0}.receipt-part-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:17px}.receipt-part-title strong span{color:#85725d;margin-left:8px}.receipt-part-title output{font-size:22px;font-weight:750;color:#00845f;font-variant-numeric:tabular-nums}.receipt-part>p{font-size:14px;margin:10px 0 16px;color:#756755}.receipt-part-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.receipt-ledger-months{display:block;white-space:nowrap;line-height:1.6;margin-top:4px;font-size:13px}
.ra-heading{margin-bottom:20px}.ra-heading p{margin-top:6px;color:#756755;font-size:15px}.ra-filters{padding:18px}.ra-search-row{display:flex;gap:20px;align-items:end}.ra-search-row>label{flex:1}.ra-filters label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#756755;min-width:0}.ra-filters input,.ra-filters select{height:44px;border:1px solid #dcd6ce;background:white;border-radius:7px;padding:8px 12px;font-size:16px;min-width:0;width:100%;color:#2a2218}.ra-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.ra-filter-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.ra-metrics{display:grid;grid-template-columns:repeat(10,minmax(95px,1fr));gap:10px;overflow-x:auto;margin:20px 0 12px;padding-bottom:5px}.ra-metrics>div{padding:13px}.ra-metrics span{display:block;font-size:13px;color:#756755;white-space:nowrap}.ra-metrics strong{display:block;font-size:23px;margin-top:6px;font-variant-numeric:tabular-nums}.ra-metrics small{font-size:13px;font-weight:400;margin-left:4px}.ra-result-count{font-size:14px;color:#756755;margin:8px 0 14px}.ra-board{display:flex;gap:14px;overflow-x:auto;align-items:stretch;padding-bottom:14px;min-height:420px}.ra-column{flex:0 0 280px;width:280px;background:#efede9;border:2px solid transparent;border-radius:12px;padding:12px;min-height:420px}.ra-column-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.ra-column-head h2{font-size:16px}.ra-column-head>span{background:#e3ded7;border-radius:20px;padding:3px 10px;font-size:14px}.ra-add{width:100%;border:1px dashed #c9bfb1;background:#fff;border-radius:8px;color:#756755;font-size:15px;padding:12px;margin-bottom:12px}.ra-column-cards{display:flex;flex-direction:column;gap:12px}.ra-card{background:#fff;border:1px solid #e6e2dc;border-radius:11px;padding:14px;box-shadow:0 2px 3px #261b1110}.ra-card[draggable=true]{cursor:grab}.ra-card-open{display:block;width:100%;text-align:left;border:0;background:none;padding:0;color:#2a2218}.ra-card-open strong{display:block;font-size:18px;line-height:1.5}.ra-card-open>span{display:block;font-size:15px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}.ra-card-meta{display:flex;flex-direction:column;gap:4px;margin-top:12px;color:#756755;font-size:14px;overflow-wrap:anywhere}.ra-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.ra-tags span{padding:3px 7px;background:#f3f0eb;border-radius:5px;font-size:13px}.ra-stage-label{display:block;font-size:12px;color:#756755;margin-top:13px}.ra-stage-label select{display:block;max-width:100%;width:100%;border:1px solid #e2ddd4;background:#fff;border-radius:6px;font-size:13px;height:34px;margin-top:5px;color:#54483a}.ra-card-today{background:#fff0ef;border-color:#f0bbb6}.ra-card-tomorrow{background:#fff9df;border-color:#e7d487}.ra-reminder{font-size:14px;font-weight:600;margin-top:10px!important}.ra-busy{opacity:.65}.ra-drop-active{border-color:#00845f;background:#e4f1eb}.ra-table{border-collapse:collapse;min-width:2100px;width:100%;font-size:14px}.ra-table th,.ra-table td{padding:14px 16px;border-bottom:1px solid #e6e2dc;text-align:left;white-space:nowrap}.ra-table th{background:#f8f7f5;color:#756755}.ra-table button{font-size:15px}.ref-dialog:has(#ra-edit){font-size:16px}.ref-dialog:has(#ra-edit) label{font-size:15px}.ref-dialog:has(#ra-edit) input,.ref-dialog:has(#ra-edit) select{height:44px;font-size:16px}.ref-dialog:has(#ra-edit) textarea{font-size:16px}.ref-dialog:has(#ra-edit) legend{font-size:17px}
@media(max-width:700px){.receipt-part-fields{grid-template-columns:1fr}.ra-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ra-search-row{flex-direction:column;align-items:stretch}.ra-heading{align-items:start;flex-direction:column}.ra-heading .ref-actions{flex-wrap:wrap}.ra-column{flex-basis:260px;width:260px}}
.reference-page .ra-stage-label{display:flex;flex-direction:column;align-items:stretch;font-size:13px;gap:0}

.ref-form fieldset[hidden]{display:none!important}.receipt-part-title>label{min-width:150px;font-size:14px}.receipt-amounts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.receipt-amounts>div{font-size:14px;color:#74634f}.receipt-amounts output{display:block;font-size:21px;font-weight:700;color:#08755d;margin-top:6px}.receipt-payment-fields{margin-top:20px;padding-top:16px;border-top:1px solid #ded8cd}.receipt-excluded{background:#f1efec;border-style:dashed}.receipt-excluded .receipt-amounts output{font-size:18px;color:#82766b;text-decoration:line-through}.receipt-excluded-hint{color:#775b25!important}.receipt-exclusion-reason{margin:12px 0}.receipt-excluded .receipt-part-fields{opacity:.65}@media(max-width:600px){.receipt-amounts{grid-template-columns:1fr}.receipt-part-title{align-items:start}}

.receipt-part-fields{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.receipt-part-fields{grid-template-columns:1fr}}
/* RA cards keep stage controls inside the editor and use a full-card hit target. */
.ra-card{cursor:pointer}.ra-card:focus-visible{outline:3px solid #00845f;outline-offset:3px}.ra-card .ra-position{font-size:14px;color:#675f55;margin-top:2px;line-height:1.5}.ra-owner{display:block;color:#8b847a;font-size:12px;margin-top:10px}.ra-card .ra-tags{margin-top:8px}.ra-schedule{border-top:1px solid #d7d2c755;padding-top:10px;margin-top:12px}.ra-schedule span{display:block;color:#756755;font-size:12px}.ra-schedule strong{display:block;font-size:14px;font-weight:600;margin-top:4px}.ra-count-help{font-size:13px;color:#756755;margin-top:14px}.ra-datetime{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;min-width:0}.ra-field-label{display:block;font-size:15px;margin-bottom:9px}.ra-tag-options{display:flex;flex-wrap:wrap;gap:8px}.ref-dialog #ra-edit .ra-tag-options label{display:flex;align-items:center;gap:6px;padding:7px 11px;border-radius:6px;font-size:14px;cursor:pointer}.ref-dialog #ra-edit .ra-tag-options input{width:16px;height:16px;min-height:0;accent-color:#00845f}.ra-options-editor{font-size:14px;padding:12px 0}.ra-options-editor summary{cursor:pointer;color:#00845f}.ra-options-editor>div{display:flex;gap:10px;align-items:end;padding-top:10px}.ra-options-editor label{flex:1}.ra-options-editor button{height:44px}.ra-tone-0{background:#dcefea!important;color:#225a4a}.ra-tone-1{background:#e1eafb!important;color:#344e84}.ra-tone-2{background:#f7e5cf!important;color:#845a22}.ra-tone-3{background:#efe1f7!important;color:#704387}.ra-tone-4{background:#f8e0e6!important;color:#853f55}.ra-tone-5{background:#d9edf3!important;color:#326371}.ra-tone-6{background:#e7edcf!important;color:#566229}.ra-tone-7{background:#e9e5df!important;color:#65594b}#ra-save-message{font-size:13px;color:#756755}.ra-save-status{font-size:12px;color:#00845f}@media(max-width:650px){.ra-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ra-options-editor>div{flex-wrap:wrap}.ra-datetime{grid-column:1/-1}}
/* Monthly overview: one compact row per adviser, details expand on demand. */
.reference-page .acceptance-monthly-table{table-layout:fixed;width:100%;min-width:760px;font-size:15px;line-height:1.4}.reference-page .acceptance-monthly-table th,.reference-page .acceptance-monthly-table td{padding:7px 10px;vertical-align:middle}.acceptance-monthly-table th:first-child{width:19%}.acceptance-monthly-table th:nth-child(2),.acceptance-monthly-table th:nth-child(3),.acceptance-monthly-table th:nth-child(4){width:14%}.acceptance-monthly-table .acceptance-row-add{display:inline-block;margin:0 0 0 7px;padding:0 6px;font-size:17px;line-height:24px}.acceptance-row-details{min-width:0}.acceptance-row-details summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;font-size:14px;color:#54716e}.acceptance-row-details[open] summary{margin-bottom:10px}.acceptance-row-details .acceptance-entries{min-width:0}.acceptance-monthly-table tfoot{position:sticky;bottom:0;background:#f4f5f3}.acceptance-heading{margin-bottom:12px}.acceptance-heading .acceptance-eyebrow,.acceptance-heading h1+p{display:none}.acceptance-period{padding:10px 14px;margin-bottom:10px}.acceptance-info{padding:9px 13px;font-size:13px;margin:8px 0}.acceptance-metrics{margin:10px 0;gap:12px}.acceptance-metrics .ref-metric{padding:10px 16px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.acceptance-metrics .ref-metric p,.acceptance-metrics .ref-metric small{margin:0}.acceptance-metrics .ref-metric strong{font-size:24px}.acceptance-filters{margin:10px 0;gap:12px;align-items:center}.acceptance-filters label{display:flex;align-items:center;gap:8px}.acceptance-filters input,.acceptance-filters select{padding:7px 10px;min-height:36px}.acceptance-legend{margin:8px 0}.acceptance-month-tabs button{padding:9px 18px}
.invoice-picker{width:min(1040px,95vw);max-width:95vw}.invoice-tools{display:flex;gap:15px;align-items:end;flex-wrap:wrap;margin:20px 0}.invoice-tools label{display:grid;gap:7px}.invoice-tools input{padding:10px;border:1px solid #ccd7d9;border-radius:7px;min-height:40px}.invoice-tools button{margin-left:auto}.invoice-setup-note{background:#fff4ce;color:#685523;padding:12px 16px;border-radius:8px;font-size:14px}.invoice-help{font-size:13px;color:#5b737b;line-height:1.7}.invoice-group-table{width:100%;border-collapse:collapse;font-size:15px}.invoice-group-table th,.invoice-group-table td{padding:13px 12px;border-bottom:1px solid #e2e8eb;text-align:left}.invoice-group-table th{background:#f0f5f6}.invoice-group-table td:nth-child(3){font-variant-numeric:tabular-nums;white-space:nowrap}.invoice-preview-dialog{width:min(1180px,97vw);max-width:97vw;background:#eef2f4}.invoice-preview-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:20px}.invoice-preview-toolbar>div{margin-right:auto}.invoice-preview-toolbar h2{font-size:19px;margin:0 0 5px}.invoice-preview-toolbar p{font-size:13px;margin:0}.invoice-document{background:#fff;color:#203344;width:794px;max-width:none;min-height:1050px;margin:0 auto;padding:46px 44px;font:14px/1.65 sans-serif;box-sizing:border-box}.invoice-document header{display:flex;justify-content:space-between;border-bottom:2px solid #204b60;padding-bottom:15px}.invoice-document h1{font-size:30px;font-weight:600;letter-spacing:7px;margin:0}.invoice-document header p{font-size:12px;text-align:right;margin:0}.invoice-parties{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;margin:30px 0 22px}.invoice-document h2{font-size:20px;margin:0 0 16px}.invoice-document h3{font-size:15px;margin:0 0 6px}.invoice-parties p{font-size:12px;margin:8px 0;overflow-wrap:anywhere}.invoice-amount{background:#f0f5f7;border-bottom:2px solid #204b60;display:flex;justify-content:space-between;align-items:center;padding:15px 18px;margin:18px 0}.invoice-amount strong{font-size:30px}.invoice-document table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;margin-top:25px}.invoice-document th,.invoice-document td{border-bottom:1px solid #cdd8de;padding:10px 8px;text-align:left;overflow-wrap:anywhere}.invoice-document th{background:#204b60;color:#fff;font-size:12px}.invoice-document th:first-child{width:40px}.invoice-document th:nth-child(3){width:110px}.invoice-document th:last-child{width:125px}.invoice-document th:last-child,.invoice-document td:last-child{text-align:right;white-space:nowrap}.invoice-document td small{display:block;font-size:11px;color:#536c79}.invoice-totals{display:flex;justify-content:flex-end;margin:14px 0 24px}.invoice-totals dl{width:295px;display:grid;grid-template-columns:1fr auto;gap:8px;font-size:13px}.invoice-totals dd{text-align:right;margin:0}.invoice-bank,.invoice-note{border-top:1px solid #cdd8de;padding:14px 0;margin-top:14px;break-inside:avoid}.invoice-bank p,.invoice-note p{font-size:12px;margin:0;overflow-wrap:anywhere}.invoice-preview-dialog>.document-download{margin-bottom:15px}.invoice-picker .ref-form-grid{display:grid;grid-template-columns:1fr 1fr}
@page invoice-portrait{size:A4 portrait;margin:10mm}@media print{#document-print-root .invoice-document{page:invoice-portrait;width:190mm;min-height:0;margin:0;padding:4mm;box-shadow:none}#document-print-root .invoice-document table{font-size:10pt}#document-print-root .invoice-document tr{break-inside:avoid}#document-print-root .invoice-document thead{display:table-header-group}}
.invoice-document{padding:32px 40px;font-size:13px;line-height:1.5}.invoice-parties{margin:22px 0 18px;gap:28px}.invoice-amount{padding:12px 16px}.invoice-document table{font-size:12px;line-height:1.35;margin-top:20px}.invoice-document th,.invoice-document td{padding:7px 8px}.invoice-document td small{line-height:1.35}.invoice-totals{margin:10px 0 18px}.invoice-totals dl{gap:6px}
.acceptance-period{margin-top:12px}.acceptance-metrics .ref-metric{min-height:0}.acceptance-metrics .ref-metric strong{margin-top:0}.acceptance-tabs{margin-top:10px}.acceptance-tabs button{padding:9px 4px}.acceptance-month-tabs{margin-bottom:5px}
/* Invoice dialogs keep the underlying page still and their controls in reach. */
html:has(dialog.invoice-dialog[open]),body:has(dialog.invoice-dialog[open]){overflow:hidden;overscroll-behavior:none}
dialog.ref-dialog.invoice-dialog{width:min(1020px,96vw);max-width:1020px;height:min(920px,94dvh);max-height:94dvh;padding:0;overflow:hidden}
.invoice-dialog>.invoice-dialog-head{flex:none;margin:0;padding:20px 26px;border-bottom:1px solid #e1e6e8;background:white;z-index:2}
.invoice-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:24px;background:#f2f5f6;scrollbar-gutter:stable;touch-action:pan-x pan-y}
.invoice-scroll:focus-visible{outline:2px solid #0b7971;outline-offset:-3px}
.invoice-dialog .invoice-preview-toolbar{display:block}.invoice-title-row{display:flex;align-items:center;gap:14px}.invoice-title-row>div{flex:1;min-width:0}.invoice-title-row h2{font-size:21px;margin:0}.invoice-title-row p{font-size:13px;color:#63767e;margin:5px 0 0;overflow-wrap:anywhere}
.invoice-back{border:1px solid #dbe3e7;border-radius:9px;background:white;width:38px;height:38px;flex:none;font-size:21px}.invoice-actions{display:flex;gap:10px;margin-top:18px;align-items:center;flex-wrap:wrap}.invoice-action-spacer{flex:1}.invoice-more{position:relative}.invoice-more summary{cursor:pointer;padding:10px;font-size:13px}.invoice-more>div{position:absolute;top:100%;left:0;width:170px;display:grid;background:white;border:1px solid #dbe3e7;box-shadow:0 6px 20px #0002;border-radius:10px;overflow:hidden}.invoice-more button{padding:12px;text-align:left;border:0;background:white}.invoice-more button:hover{background:#eef5f4}.invoice-dialog .invoice-setup-note{margin:0 0 18px;padding:12px 16px;border-radius:8px}.invoice-dialog .ref-form{background:white;padding:20px;border-radius:10px}.invoice-dialog .invoice-tools{margin:0 0 20px}.invoice-dialog .invoice-group-table{background:white;border-radius:10px;overflow:hidden}.invoice-group-table td{padding:18px 14px}.invoice-dialog .invoice-help{font-size:12px;color:#63767e}
.invoice-document.invoice-template{box-sizing:border-box;width:794px;max-width:none;min-height:1050px;margin:0 auto;padding:34px 34px 12px;background:#fff;color:#151515;font:12px/1.6 Arial,'Noto Sans JP',sans-serif;box-shadow:0 4px 20px #22334412}
.invoice-template h1,.invoice-template h2,.invoice-template h3,.invoice-template p{color:inherit}.invoice-template p{margin:9px 0}.invoice-template table{border-collapse:collapse;width:100%;margin:0;font-size:11px}.invoice-template td,.invoice-template th{padding:4px 6px;border:1px solid #333;background:white;color:#151515;font-weight:400;text-align:left;white-space:normal}.invoice-template .invoice-paper-head{display:flex;align-items:start;justify-content:space-between;border:0;margin-bottom:16px;padding:0}.invoice-paper-head h1{font-size:28px;letter-spacing:.35em;font-weight:500;background:#d5d5d5;padding:6px 38px 6px 49px;margin:0}.invoice-paper-head dl{display:grid;grid-template-columns:65px 180px;margin:0;font-size:12px}.invoice-paper-head dt,.invoice-paper-head dd{border-bottom:1px solid #222;padding:4px;margin:0}.invoice-paper-head dd{text-align:right}
.invoice-paper-parties{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:start;margin-bottom:26px}.invoice-paper-parties h2{display:flex;align-items:end;gap:7px;font-size:18px;margin:12px 0 0;line-height:1.6}.invoice-paper-parties h2 span{border-bottom:1px solid #333;padding-bottom:4px;flex:1}.invoice-paper-parties h2 small{font-size:12px;flex:none}.invoice-paper-greeting{padding-top:22px}.invoice-paper-amount{border-bottom:2px solid #333;padding:5px 0 7px;font-size:17px;font-weight:600;white-space:nowrap;margin-top:18px}.invoice-paper-amount strong{font-size:22px}.invoice-paper-issuer{position:relative}.invoice-paper-issuer th{width:62px;white-space:nowrap}.invoice-paper-issuer td{overflow-wrap:anywhere}.invoice-issuer-identity{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px}.invoice-seal-frame{display:block;flex:none;width:36px;height:36px;overflow:hidden}.invoice-seal{display:block;width:41.4px;height:38.7px;max-width:none;margin:-1.8px 0 0 -3.6px;object-fit:fill}.invoice-logo{display:block;width:205px;height:auto;margin:12px 0 0 auto}
.invoice-template .invoice-line-table thead th{background:#7d7d7d;color:#fff;text-align:center;font-size:12px;border-color:#333}.invoice-line-table tbody tr{height:32px;break-inside:avoid}.invoice-line-table td:nth-child(1),.invoice-line-table td:nth-child(2),.invoice-line-table td:nth-child(4){text-align:center}.invoice-line-table td:nth-last-child(-n+2){text-align:right;white-space:nowrap}.invoice-line-table small{font-size:10px}.invoice-paper-totals{display:grid;grid-template-columns:1fr 230px;gap:35px;align-items:start;margin-top:18px}.invoice-paper-totals p{font-size:10px;margin:0}.invoice-paper-totals section th{text-align:center}.invoice-paper-totals td{text-align:right}.invoice-paper-totals>table th{background:#ddd}.invoice-paper-bank{display:flex;gap:28px;align-items:start;margin-top:12px;padding-top:12px;border-top:1px solid #333}.invoice-paper-bank h3,.invoice-paper-note h3{font-size:12px;margin:7px 0}.invoice-paper-bank p{font-size:13px}.invoice-paper-note{margin-top:15px;border-top:1px solid #aaa}.invoice-template section{break-inside:avoid}
@media(max-width:700px){dialog.ref-dialog.invoice-dialog{width:98vw;height:96dvh;max-height:96dvh}.invoice-dialog>.invoice-dialog-head{padding:14px}.invoice-scroll{padding:14px}.invoice-actions{gap:6px}.invoice-actions button{padding:9px 12px}.invoice-tools{flex-wrap:wrap}}
@media print{.invoice-document.invoice-template{box-shadow:none;width:190mm;min-height:0;padding:0;margin:0}.invoice-blank{height:6mm}}
.invoice-document.invoice-template table{table-layout:auto;line-height:1.5}.invoice-document.invoice-template th{width:auto}.invoice-document.invoice-template td:last-child,.invoice-document.invoice-template th:last-child{white-space:normal}.invoice-document.invoice-template .invoice-line-table{table-layout:fixed}.invoice-document.invoice-template .invoice-line-table th{width:auto}.invoice-document.invoice-template .invoice-line-table td:first-child{white-space:nowrap;font-size:10px}.invoice-document.invoice-template .invoice-line-table td:nth-last-child(-n+2){white-space:nowrap}.invoice-document.invoice-template .invoice-paper-issuer th{width:65px}.invoice-document.invoice-template .invoice-paper-issuer td{text-align:left}.invoice-document.invoice-template .invoice-paper-parties h2{font-size:18px;margin:12px 0 0}.invoice-document.invoice-template .invoice-paper-bank h3{font-size:12px}
dialog.ref-dialog.invoice-dialog:not(.invoice-preview-dialog){height:auto}.invoice-dialog.invoice-picker .invoice-scroll{min-height:260px}.invoice-template .invoice-line-table td{overflow-wrap:break-word}
.invoice-template .invoice-line-table col:nth-child(1){width:13%}.invoice-template .invoice-line-table col:nth-child(2){width:5%}.invoice-template .invoice-line-table col:nth-child(3){width:40%}.invoice-template .invoice-line-table col:nth-child(4){width:6%}.invoice-template .invoice-line-table col:nth-child(5),.invoice-template .invoice-line-table col:nth-child(6){width:18%}

.invoice-paper-note p:last-child{margin-bottom:0}

.company-picker{position:relative;width:100%}.company-picker input{width:100%}.company-picker-menu{max-height:220px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #d7dedf;border-radius:8px;background:#fff;margin-top:4px;box-shadow:0 4px 12px #203b4814}.company-picker-menu[hidden]{display:none}.company-picker-menu [role=option]{padding:10px 12px;font-size:14px;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}.company-picker-menu [role=option]:hover,.company-picker-menu [aria-selected=true]{background:#e7f4f1;color:#006c62}.company-picker-hint{font-size:12px;line-height:1.6;color:#63777b}

.agency-search-picker>input{padding-right:44px}.agency-picker-toggle{position:absolute;right:1px;top:1px;width:42px;height:40px;border:0;border-left:1px solid #d7dedf;border-radius:0 6px 6px 0;background:#f4f7f7;color:#25404a;cursor:pointer;font-size:22px}.agency-search-picker .company-picker-menu{position:relative;z-index:2;min-width:0}.agency-search-picker [role=option]{white-space:normal}

.ra-board{min-height:0;height:60dvh;overflow-y:hidden;overscroll-behavior-x:contain;box-sizing:border-box}
.ra-column{min-height:0;height:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}
.ra-column-head,.ra-column>.ra-add{flex-shrink:0}.ra-column-cards{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:2px 4px 10px 0}.ra-column-cards>.ra-card,.ra-column-cards>button{flex-shrink:0}
.ra-sub-row{display:flex;gap:8px;margin:8px 0}.ra-sub-row select{flex:1;min-width:0}
.ra-tags span[class*=ra-medium]{border:1px solid;border-radius:999px;font-weight:600;padding:4px 10px}
.ra-tags .ra-medium-circus{background:#ffe4e6;color:#9f1239;border-color:#fecdd3}.ra-tags .ra-medium-agency{background:#fce7f3;color:#9d174d;border-color:#fbcfe8}.ra-tags .ra-medium-internal{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}.ra-tags .ra-medium-z{background:#ede9fe;color:#6d28d9;border-color:#ddd6fe}.ra-tags .ra-medium-jobins{background:#ecfccb;color:#3f6212;border-color:#d9f99d}.ra-tags .ra-medium-navi{background:#ffedd5;color:#9a3412;border-color:#fed7aa}
/* Keep the phase headers visible while each card list scrolls independently. */
.ra-heading{margin-bottom:10px}.ra-heading p{display:none}.ra-filters{padding:10px 14px}.ra-search-row{gap:14px}.ra-filter-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:10px}.ra-filters label{gap:4px}.ra-filters input,.ra-filters select{height:38px;padding:6px 9px}.ra-filter-bottom{margin-top:6px}.ra-count-help{margin-top:8px}.ra-metrics{gap:6px;margin:8px 0 4px;padding-bottom:2px}.ra-metrics>div{padding:7px 10px}.ra-metrics strong{font-size:20px;margin-top:2px}.ra-result-count{margin:5px 0 8px}.ra-column-head{margin-bottom:8px}.ra-column-head h2{margin:0}.ra-add{padding:8px;margin-bottom:8px}
@media(max-width:1000px){.ra-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ra-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ra-search-row{gap:8px}.ra-heading .ref-actions{gap:6px}.ra-heading .ref-actions button{padding:8px;font-size:13px}}
.ra-search-row>label:last-child{flex:0 0 180px}.ra-detail-filters summary{font-size:13px;color:#756755;cursor:pointer;padding-top:8px}.ra-detail-filters .ra-filter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1000px){.ra-detail-filters .ra-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ra-search-row>label:last-child{flex:auto}.ra-detail-filters .ra-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.staff-access-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.staff-access-options label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e3ddd3;border-radius:8px}.staff-access-options input{width:18px;height:18px;margin:0;accent-color:#00845f}
.ref-public{max-width:920px;padding:28px 24px;margin:auto}.ref-public-header{padding-bottom:22px;border-bottom:1px solid #e3e6eb}.ref-public-header h1{font-size:24px}.ref-public-header>div:last-child strong{color:#aa6c30;font-size:26px}.ref-next-payment{background:#fff;border:1px solid #e3e6eb;border-radius:12px;padding:20px;margin:20px 0}.ref-next-payment strong{font-size:28px}.portal-schedule-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.portal-schedule-controls>span,.portal-stats-note{font-size:14px;color:#727b86}.portal-payment-month{padding:0!important;margin-bottom:12px;overflow:hidden}.portal-payment-month summary{display:grid!important;grid-template-columns:minmax(140px,1fr) 50px 100px minmax(120px,1fr) 18px;gap:10px!important;align-items:center;padding:18px 20px;list-style:none}.portal-payment-month summary::-webkit-details-marker{display:none}.portal-payment-month summary h2{font-size:18px;margin:0}.portal-payment-month summary>strong{text-align:right;font-size:20px}.portal-chevron{color:#9299a3;transition:transform .15s}.portal-payment-month details[open] .portal-chevron{transform:rotate(180deg)}.portal-payment-month table{font-size:15px;min-width:620px}.portal-payment-month th{background:#f8fafc;font-size:13px;font-weight:500}.portal-payment-month td,.portal-payment-month th{padding:13px 20px}.portal-payment-month .ref-payment-footer{padding:16px 20px;margin:0}.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}.portal-stats .ref-metric{padding:22px}.portal-stats strong{font-size:30px}.portal-monthly{margin-top:20px}.portal-monthly table{width:100%;font-size:16px}.portal-monthly th,.portal-monthly td{padding:14px;text-align:right;border-bottom:1px solid #eee}.portal-monthly th:first-child,.portal-monthly td:first-child{text-align:left}
@media(max-width:650px){.ref-public{padding:20px 12px}.portal-payment-month summary{grid-template-columns:1fr auto 18px;padding:16px 14px;gap:8px!important}.portal-payment-month summary h2{grid-column:1}.portal-payment-month summary>strong{grid-column:2;grid-row:1;font-size:19px}.portal-chevron{grid-column:3;grid-row:1}.portal-payment-month summary>span:not(.portal-chevron){grid-row:2}.portal-stats .ref-metric{padding:15px}.portal-stats strong{font-size:23px}.ref-next-payment strong{font-size:24px}.portal-schedule-controls{flex-wrap:wrap}.portal-monthly th,.portal-monthly td{padding:10px;font-size:14px}}
#staff-access-form .staff-access-options label{flex-direction:row;justify-content:flex-start;margin:0;padding:10px;gap:8px;font-size:14px;min-height:46px}#staff-access-form .staff-access-options{margin:14px 0;gap:8px}#staff-access-form .form-note{font-size:13px;padding:12px;margin:12px 0}.ref-public .ref-next-payment{background:#fff;padding:20px}.ref-public .portal-payment-month table{margin:0;font-size:15px}.ref-public .portal-payment-month th,.ref-public .portal-payment-month td{padding:13px 20px}.ref-public .portal-payment-month summary h2{font-size:18px}
.ref-public .portal-payment-month th:nth-last-child(-n+2),.ref-public .portal-payment-month td:nth-last-child(-n+2){white-space:nowrap}.ref-public .portal-payment-month table{width:100%}

/* Compact ledger with continuously visible details and pinned totals. */
.acceptance-sheet-scroll{max-height:72vh;overflow:auto;overscroll-behavior:contain;border-radius:6px!important}.reference-page .acceptance-sheet{table-layout:fixed;width:100%;line-height:1.35;font-size:13px;border-collapse:separate;border-spacing:0}.reference-page .acceptance-sheet th,.reference-page .acceptance-sheet td{padding:4px 7px;border-right:1px solid #d9ded9;border-bottom:1px solid #d9ded9;height:48px;vertical-align:middle}.reference-page .acceptance-sheet thead th{height:34px;font-size:13px;background:#e7ece8;position:sticky;top:0;z-index:4;white-space:nowrap}.reference-page .acceptance-sheet th:first-child{width:130px}.reference-page .acceptance-sheet th:nth-child(2),.reference-page .acceptance-sheet th:nth-child(3),.reference-page .acceptance-sheet th:nth-child(4){width:100px}.reference-page .acceptance-sheet tr>:nth-child(-n+4){position:sticky;background:#fff;z-index:2;white-space:nowrap}.reference-page .acceptance-sheet tr>:first-child{left:0;background:#f0f3f0;white-space:normal}.reference-page .acceptance-sheet tr>:nth-child(2){left:130px}.reference-page .acceptance-sheet tr>:nth-child(3){left:230px}.reference-page .acceptance-sheet tr>:nth-child(4){left:330px;box-shadow:2px 0 3px #2233220c}.reference-page .acceptance-sheet thead tr>:nth-child(-n+4){z-index:6;background:#e7ece8}.reference-page .acceptance-sheet tfoot tr>*{background:#eaf0eb;font-weight:700;height:36px}.reference-page .acceptance-sheet .acceptance-sheet-detail{padding:0}.acceptance-sheet-entries{display:flex;gap:0;align-items:stretch;min-height:48px}.reference-page .acceptance-sheet-entry{flex:0 0 210px;width:210px;min-width:210px;max-width:210px;margin:0;padding:0;border:0;border-right:1px solid #d9ded9;border-radius:0;display:grid;grid-template-columns:100px 110px;grid-template-rows:24px 24px;gap:0;background:#fff;font-size:12px;line-height:24px;text-align:left;overflow:hidden}.reference-page .acceptance-sheet-entry>*{display:block;margin:0;padding:0 5px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:24px}.reference-page .acceptance-sheet-entry .sheet-name{font-size:12px;font-weight:700;background:#f7f2e5;border-bottom:1px solid #d9ded9}.reference-page .acceptance-sheet-entry .sheet-company{border-bottom:1px solid #d9ded9;font-size:12px;color:#37483e}.reference-page .acceptance-sheet-entry .sheet-profit,.reference-page .acceptance-sheet-entry .sheet-revenue{text-align:right;font-variant-numeric:tabular-nums}.reference-page .acceptance-sheet-entry.acceptance-needs-date{background:#fff8df}.acceptance-sheet-entry:hover{outline:2px solid #aabfae;outline-offset:-2px}.acceptance-sheet-entry:focus-visible{outline:2px solid #197668;outline-offset:-2px}.acceptance-sheet-empty{padding:12px;color:#92a096}.reference-page .acceptance-sheet .acceptance-row-add{line-height:18px;font-size:14px;padding:0 3px;margin-left:4px}.reference-page .acceptance-sheet tfoot td:last-child{text-align:left}

.sales-exceptions{border-top:1px solid var(--ref-line);padding-top:12px}.sales-exceptions summary{cursor:pointer;font-size:12px;color:var(--ref-muted);padding:4px 0}.sales-exceptions summary small{font-weight:400;margin-left:6px}.sales-exceptions summary [data-exception-status]{margin-left:10px;color:var(--ref-accent,#8a6234);font-size:11px}.sales-exceptions-body{display:grid;gap:18px;padding-top:16px}.ref-form .sales-exception-check{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;font-weight:400}.ref-form .sales-exception-check input[type=checkbox]{width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;flex:0 0 16px}.sales-exceptions [hidden]{display:none!important}

/* Emphasize the annual net profit row, including its sticky label and total. */
.reference-page .ref-year-table tbody tr.sales-profit-row > th,.reference-page .ref-year-table tbody tr.sales-profit-row > td{background:#fff8d6;}
.reference-page .ref-year-table tbody tr.sales-profit-row > td:last-child{background:#fff0ad;font-weight:700;}

.refund-management>summary{cursor:pointer;font-size:20px;font-weight:700;padding:18px 0;color:#254d4a}.refund-management>summary span{font-size:14px;font-weight:400;margin-left:12px}.refund-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.refund-table th,.refund-table td{padding:12px 14px;border:1px solid #e3e7e4;text-align:left}.refund-table th{background:#f4f6f3;color:#56655f}.refund-table td:nth-child(n+7){text-align:right}.refund-table td:nth-child(n+11){text-align:center}.refund-check{font-size:23px;color:#9aa8a2}.refund-check.is-done{color:#087c72}.refund-early{display:block;color:#97631e;font-size:11px}.refund-scroll{max-height:520px;overflow:auto}.refund-table thead{position:sticky;top:0;z-index:1}.refund-management .ref-ledger-filters{flex-wrap:wrap}

.refund-table input.refund-check{width:18px;height:18px;margin:0;accent-color:#087c72;cursor:pointer}
.refund-management .ref-ledger-filters>label{white-space:nowrap}.refund-table th:first-child,.refund-table td:first-child{position:sticky;left:0;z-index:1;background:#fff}.refund-table th:first-child{background:#f4f6f3}
.partner-performance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.partner-performance-metrics strong{font-size:24px;overflow-wrap:anywhere}@media(max-width:600px){.partner-performance-metrics{grid-template-columns:1fr}}

.partner-rankings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.partner-rank-card{padding:18px;border:1px solid #dce6df;border-radius:12px;background:#f6faf7}.partner-rank-card h3{font-size:14px;color:#52675e;margin:0 0 8px}.partner-rank-number{font-size:36px;line-height:1.2;font-weight:700;color:#284e3b;font-variant-numeric:tabular-nums}.partner-rank-number small{font-size:17px;margin-left:5px}.partner-rank-number>span{font-size:13px;color:#76837b;margin-left:10px;font-weight:400}.partner-rank-card p{margin:10px 0;font-size:13px}.partner-rank-card>div>small{font-size:11px;color:#78817b}.partner-rank-up,.partner-rank-down,.partner-rank-flat,.partner-rank-new{display:inline-block;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:600}.partner-rank-up{color:#177647;background:#e3f3e9}.partner-rank-down{color:#ac5149;background:#faebe8}.partner-rank-flat{color:#69736e;background:#eaf0ec}.partner-rank-new{color:#856421;background:#fbf2d9}@media(max-width:560px){.partner-rankings{grid-template-columns:1fr}.partner-rank-card{padding:14px}}

.ref-partner-search{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.ref-partner-search>.ref-search{flex:1;min-width:220px;max-width:420px}.ref-partner-search>label:not(.ref-search){display:grid;gap:5px;font-size:12px}.ref-partner-search select{max-width:100%;min-height:36px}@media(max-width:600px){.ref-partner-search>.ref-search{max-width:none;flex-basis:100%}.ref-partner-search>label:not(.ref-search){flex:1;min-width:140px}}

.ref-grade{display:inline-block;padding:3px 11px;border-radius:6px;font-weight:800;font-size:14px;letter-spacing:.04em}.ref-grade-g1{background:#dcecdc;color:#235e32}.ref-grade-g2{background:#e4ebf5;color:#35597e}.ref-grade-g3{background:#f5ecd9;color:#816027}.ref-grade-g4{background:#eeefed;color:#5b625b}.ref-grade-average{display:block;white-space:nowrap;margin-top:5px;color:#748076;font-size:11px}.ref-grade-note{font-size:12px;color:#69756e;line-height:1.7;margin:0 0 12px}

.ref-partner-add{flex-wrap:wrap}

.ref-partner-period{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 16px;padding:12px 16px;background:#f5f4f0;border-radius:10px}.ref-partner-period strong{align-self:center;font-size:13px;margin-right:6px}.ref-partner-period label{display:grid;gap:4px;font-size:12px;color:#6a7069}.ref-partner-period input{min-height:36px;border:1px solid #dadcd5;border-radius:6px;background:white;padding:6px 8px}.ref-partner-period small{align-self:center;color:#747970}.ref-partner-period>span{align-self:center}

#sales-early-details{font:inherit;text-align:left;color:inherit;cursor:pointer}#sales-early-details:hover{border-color:var(--accent,#21776b)}#sales-early-details:focus-visible{outline:3px solid #21776b;outline-offset:3px}#early-analysis{margin-top:20px}#early-analysis>p{line-height:1.7}#early-analysis details{margin-top:20px}#early-analysis summary{cursor:pointer;padding:12px 0}
#early-analysis .ref-roster-table{min-width:680px;width:100%;table-layout:auto}
#early-analysis .ref-roster-table th,#early-analysis .ref-roster-table td{padding:10px 8px;white-space:normal;min-width:0;font-size:13px}
#early-analysis .ref-roster-table th:nth-child(n+4),#early-analysis .ref-roster-table td:nth-child(n+4){white-space:nowrap}
.ref-dialog-body label:has(#early-mode){display:block}
#early-mode{margin-top:6px;width:100%}

.acceptance-sheet [data-sum-value]{cursor:cell;user-select:none}.reference-page .acceptance-sheet [data-sum-value].sum-selected{background:#d9eee9;box-shadow:inset 0 0 0 2px #008579}.acceptance-sheet [data-sum-value]:focus-visible{outline:2px solid #087d72;outline-offset:-3px}.cell-sum-bar{position:sticky;bottom:12px;z-index:12;display:flex;align-items:center;gap:16px;padding:14px 18px;margin-top:12px;background:#12383b;color:white;border-radius:9px;box-shadow:0 3px 15px #12383b22}.cell-sum-bar output{margin-left:auto;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}.cell-sum-help{font-size:12px;color:#c1ded8}.cell-sum-bar button{white-space:nowrap}.cell-sum-bar button:disabled{opacity:.5}@media(max-width:700px){.cell-sum-bar{flex-wrap:wrap;gap:10px}.cell-sum-help{width:100%}.cell-sum-bar output{margin-left:0;font-size:14px}}

.org-toolbar{display:flex;align-items:center;gap:30px;margin:20px 0}.org-toolbar label{font-size:13px;min-width:260px}.org-toolbar input{display:block;margin-top:8px}.org-toolbar p{font-size:12px;color:#607672;line-height:1.8}.org-scroll{overflow:auto;padding:28px 22px 32px;background:#f3f7f5;border:1px solid #dce6e0;border-radius:12px;max-height:78vh}.org-company{position:relative;width:370px;max-width:100%;margin:0 auto 40px;background:#153b3d;color:white;padding:24px;border-radius:12px;text-align:center}.org-company h2{font-size:23px;margin:10px 0}.org-company small{font-size:10px;letter-spacing:2px;color:#a2d1c4}.org-company>span{font-size:12px;color:#bcd6ce}.org-company:after{content:'';position:absolute;width:1px;height:40px;background:#9eb9b0;bottom:-40px;left:50%}.org-branches{display:flex;align-items:flex-start;gap:28px;min-width:min-content;padding-top:24px;border-top:1px solid #9eb9b0}.org-branch{position:relative;flex:1;min-width:260px;max-width:340px}.org-branch:before{content:'';position:absolute;height:24px;width:1px;background:#9eb9b0;left:50%;top:-24px}.org-person{background:#e0eee7;border:1px solid #afcbbd;padding:20px;border-radius:10px;text-align:center}.org-person h3{margin:8px 0;font-size:20px}.org-person>small,.org-person>span{font-size:12px;color:#52746b}.org-scroll dl{margin:15px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.org-scroll dt{font-size:11px;opacity:.75}.org-scroll dd{margin:6px 0 0;font-weight:700;font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}.org-agencies{margin:0 0 0 16px;border-left:1px solid #9eb9b0;padding:20px 0 0 18px;display:grid;gap:14px}.org-agency{position:relative;background:white;border:1px solid #d6e4dd;border-radius:9px;padding:17px}.org-agency:before{content:'';position:absolute;left:-19px;top:30px;width:18px;height:1px;background:#9eb9b0}.org-agency h4{margin:0;font-size:15px;overflow-wrap:anywhere}.org-agency dl{gap:6px}.org-agency dd{font-size:15px;color:#097a67}.org-agency button{font-size:11px;margin-top:16px;padding:7px 12px}.org-agency>small{font-size:11px;color:#8b7661}#org-edit label[hidden]{display:none}@media(max-width:700px){.org-toolbar{display:block}.org-scroll{padding:20px 12px}.org-branch{min-width:260px}}

.org-cs{font-size:12px;color:#57756a;margin:12px 0 0;overflow-wrap:anywhere}

/* Keep controls full size while scaling the complete network together. */
.org-zoom-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.org-zoom-controls button{min-height:38px;min-width:38px;padding:7px 12px}
.org-zoom-controls output{min-width:48px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.org-zoom-controls>span{font-size:12px;color:#607672;margin-left:8px}
.org-scroll{height:clamp(360px,65vh,760px);max-height:none;padding:12px;box-sizing:border-box}
.org-stage{position:relative;margin:0 auto}
.org-canvas{position:absolute;top:0;left:0;width:max-content;min-width:300px;transform-origin:top left;padding:4px;box-sizing:border-box}
.org-company{width:300px;padding:16px;margin-bottom:28px;box-sizing:border-box}
.org-company h2{font-size:20px;margin:8px 0}
.org-company:after{height:28px;bottom:-28px}
.org-branches{gap:18px;padding-top:18px;min-width:0}
.org-branch{flex:0 0 230px;width:230px;min-width:230px;max-width:230px}
.org-branch:before{height:18px;top:-18px}
.org-person{padding:14px}
.org-person h3{font-size:18px;overflow-wrap:anywhere}
.org-agencies{margin-left:10px;padding:14px 0 0 12px;gap:10px}
.org-agency{padding:12px}
.org-agency:before{left:-13px;width:12px}
.org-scroll dl{margin-top:10px;gap:8px}
.org-scroll dd{font-size:15px}
.org-agency dd{font-size:13px}
.org-agency button{margin-top:10px;padding:6px 8px}
.org-cs{margin:8px 0}
@media(max-width:700px){.org-zoom-controls>span{flex-basis:100%;margin-left:0}.org-scroll{padding:12px}.org-branch{min-width:230px}}

/* Keep assignment confirmation visible even when the fields need scrolling. */
dialog.org-edit-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0;width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.org-edit-dialog>.dialog-head{flex:none;margin:0;padding:22px 24px 14px;gap:16px}
.org-edit-dialog .dialog-head h2{font-size:19px;overflow-wrap:anywhere}
.org-edit-dialog #org-edit{display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:0;margin:0}
.org-edit-fields{min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:18px;padding:8px 24px 22px}
.org-edit-fields>label{flex:none}
.org-edit-fields .acceptance-info{margin:0;padding:0;font-size:12px;line-height:1.7;flex:none}
.org-edit-actions{flex:none;border-top:1px solid #dce6e0;padding:14px 24px;background:white;display:flex;justify-content:flex-end}
.org-edit-actions button{min-width:140px;flex:none}
@media(max-width:540px){.org-edit-dialog>.dialog-head{padding:16px}.org-edit-fields{padding:8px 16px 16px}.org-edit-actions{padding:12px 16px}.org-edit-actions button{width:100%}}

.contract-toolbar{display:flex;gap:16px;align-items:end;padding:18px;margin:20px 0;flex-wrap:wrap}.contract-toolbar label{display:flex;flex-direction:column;gap:7px;min-width:180px}.contract-toolbar label:first-child{flex:1}.contract-board{display:flex;gap:14px;overflow-x:auto;padding-bottom:22px;align-items:stretch;min-height:420px}.contract-column{flex:0 0 260px;min-width:0;background:#f0f3f2;border-radius:12px;border-top:4px solid #008477;padding:14px}.contract-column:last-child{border-color:#68895b}.contract-column h2{font-size:15px;min-height:48px;display:flex;justify-content:space-between;gap:8px;margin:0 0 12px;line-height:1.5}.contract-column h2 span{font-size:12px;background:white;border-radius:20px;padding:3px 9px;align-self:start}.contract-add{width:100%;border:1px dashed #bdcbc7;border-radius:7px;background:transparent;padding:9px;color:#507269;margin-bottom:14px;cursor:pointer}.contract-card{display:block;width:100%;text-align:left;background:white;border:1px solid #dae3df;border-radius:9px;padding:16px;margin-bottom:12px;color:#253e37;cursor:pointer;overflow-wrap:anywhere}.contract-card strong,.contract-card span,.contract-card small{display:block}.contract-card strong{font-size:16px;margin-bottom:12px}.contract-card span{color:#687e75;font-size:13px}.contract-card small{font-size:12px;margin-top:8px;color:#687e75}.contract-card p{font-size:13px;line-height:1.6}.contract-empty{color:#85948d;font-size:12px;text-align:center;padding:28px 0}.contract-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.contract-form label{display:flex;flex-direction:column;gap:8px}.contract-wide{grid-column:1/-1}.contract-form textarea{height:150px}.contract-form input,.contract-form select{width:100%}@media(max-width:600px){.contract-form{grid-template-columns:1fr}.contract-toolbar label{width:100%}.contract-column{flex-basis:250px}}

.acceptance-table .ca-negative{color:#bd3838;font-weight:700}

.acceptance-average .ca-adjustment-column{background:#fff6f3}.acceptance-average .ca-adjustment-column button{display:block;margin:8px 0 0 auto;padding:6px 8px;font-size:11px}
