:root{--blue:#1975da;--ink:#172128;--body:#46545d;--muted:#71808a;--line:#e4e9ef;--soft:#ecf2fe;--subtle:#f7f9fc;--orange:#c35a0a;--green:#15803d;--red:#b42318;--note:#8a6408;font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
.enterprise-records-layout{display:block;min-width:0}
.message-invoices.upload-recovery-workspace{height:auto;min-height:0}.message-invoices.upload-recovery-workspace #api-items{flex:none}.upload-recovery .document-icon{display:grid}.upload-recovery{padding:24px}.upload-recovery header{display:flex;gap:16px;align-items:center}.upload-recovery-icon{display:grid;place-items:center;width:48px;height:48px;flex:none;background:var(--soft);border-radius:6px;color:var(--blue)}.upload-recovery-icon .icon{width:24px;height:24px}.upload-recovery h3{font-size:18px;line-height:24px;margin:0 0 8px}.upload-recovery p{font-size:13px;line-height:24px;color:var(--body);margin:0}.upload-recovery-charge{margin-left:auto;flex:none;font-size:13px;color:var(--body)}.upload-recovery-files{margin-top:24px;border-top:1px solid var(--line)}.upload-recovery-file{display:flex;align-items:center;gap:12px;padding:24px 0;border-bottom:1px solid var(--line)}.upload-recovery-file:last-child{border-bottom:0;padding-bottom:0}.upload-recovery-file strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:24px}.upload-recovery-file .button{flex:none;min-height:44px}dialog .upload-recovery{padding:0}@media(max-width:600px){.upload-recovery{padding:16px}.upload-recovery header{flex-wrap:wrap;gap:12px}.upload-recovery header>div{flex:1;min-width:0}.upload-recovery-charge{margin-left:60px}.upload-recovery-file{display:grid;grid-template-columns:32px minmax(0,1fr);padding:16px 0}.upload-recovery-file .button{grid-column:2;justify-self:start}.upload-recovery h3{font-size:16px}}
.message-invoices #message-job-mount{flex:1;min-height:0;overflow:auto}
.bulk-job-inline{padding:20px;min-width:0}.bulk-job-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:16px}.bulk-job-inline .execution-summary{margin:0 0 20px;background:#fff;padding:0 0 20px;border-bottom:1px solid var(--line)}
.bulk-job-inline .execution-invoice-list{overflow:auto}.bulk-job-inline .execution-summary-primary{align-items:center}
.bulk-job-inline .bulk-job-status{background:none;padding:0;border:0}.import-record-meta:empty{display:none}.enterprise-message-list .message-sync:empty{display:none}
.message-invoices .invoice-ledger-table{min-width:0;table-layout:fixed;width:100%}
.message-invoices .invoice-ledger-table .ledger-people,.message-invoices .invoice-ledger-table th:nth-child(5){display:none}
.message-invoices .invoice-ledger-table :is(th,td):nth-child(1){width:30%}.message-invoices .invoice-ledger-table :is(th,td):nth-child(2){width:20%}.message-invoices .invoice-ledger-table :is(th,td):nth-child(3){width:30%}.message-invoices .invoice-ledger-table :is(th,td):nth-child(4){width:20%}
@media(max-width:760px){.message-invoices .invoice-ledger-table td:nth-child(n){width:100%;max-width:none}}
.enterprise-message-list{min-width:0;font-variant-numeric:tabular-nums}
.enterprise-message-list h2{font-size:16px;margin:0 0 12px}.enterprise-message-list h3{font-size:13px;color:var(--muted);margin:16px 12px 6px}
.message-active{padding:16px;background:var(--subtle);border-radius:8px;margin-bottom:24px}
.message-active-scroll{height:188px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.message-active-scroll>.muted{margin:12px 0;font-size:13px}
.message-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.message-filters label{display:grid;gap:6px;font-size:12px;color:var(--body)}.message-filters select{width:100%;min-width:0;height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 8px;font:inherit;font-size:13px}
.message-sync{display:flex;justify-content:space-between;align-items:center;gap:8px;height:44px;font-size:12px;color:var(--muted);overflow:hidden}
.enterprise-message-list .message-record{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px 10px;align-items:start;width:100%;min-height:118px;padding:14px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.enterprise-message-list .message-record[aria-pressed=true]{background:var(--soft)}.enterprise-message-list .message-record:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.enterprise-message-list .record-operation-main{min-width:0}.enterprise-message-list .record-operation-icon{width:24px;height:24px;padding:0;background:none}.enterprise-message-list .record-operation-icon .icon{width:20px;height:20px}
.enterprise-message-list .record-operation-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center}.enterprise-message-list .record-operation-top strong{font-size:14px;white-space:nowrap}.enterprise-message-list .record-operation-top time{grid-column:1/-1;font-size:12px;margin:0;color:var(--muted);white-space:nowrap}.enterprise-message-list .record-source{font-size:12px;white-space:nowrap}
.enterprise-message-list .record-operation-bottom{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:12px;min-height:20px}.enterprise-message-list .record-open{flex:none}.enterprise-message-list .message-progress{grid-column:2;display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;align-items:center;font-size:12px;color:var(--body);height:20px}.message-progress progress{display:block;width:100%;height:6px;accent-color:var(--blue);border:0}.message-stage{grid-column:2;font-size:12px;white-space:nowrap;color:var(--body);height:20px}.message-more{width:100%;margin-top:16px}
.message-invoices{min-width:0;min-height:620px;overflow:hidden}.message-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--line);height:110px;box-sizing:border-box}.message-detail-heading>div{min-width:0}.message-detail-heading h2{font-size:18px;margin:0 0 8px}.message-detail-heading p{margin:0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-detail-heading>.button{flex:none}.message-invoices .filters{padding:16px;min-height:76px;box-sizing:border-box}.message-invoices .table-wrap{min-height:400px;scrollbar-gutter:stable}.message-invoices .invoice-ledger-row{height:112px}.message-invoices #api-items{min-height:440px}.message-invoices .heading-actions{padding:12px 16px;min-height:52px;box-sizing:border-box}.message-invoices .table-foot{min-height:48px;box-sizing:border-box}
@media(max-width:1100px){.enterprise-records-layout{grid-template-columns:1fr}.enterprise-records-layout>aside{max-height:500px}.message-active-scroll{height:140px}.enterprise-message-list .message-record{min-height:112px}.message-detail-heading{padding:16px}.message-invoices{min-height:560px}}
.personal-risk-policy{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.personal-risk-policy legend{padding:0 6px;font-weight:600;color:var(--ink)}
.personal-risk-policy>label:not(.field){display:flex;align-items:center;gap:10px;min-height:32px;line-height:1.6}
.personal-risk-policy input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--blue);flex:none}
.personal-risk-policy .field{display:grid;gap:8px;margin:16px 0 8px}
#modal .personal-risk-policy .note,#modal .workflow-note{padding:0;background:none;margin:10px 0;font-size:12px;line-height:1.8;color:var(--body)}
.personal-risk-policy .field input{max-width:240px}
.bulk-check-list{margin:14px 0;border-top:1px solid var(--line)}
.bulk-check-list>label{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer;line-height:1.6}
.bulk-check-list>label input{width:18px;height:18px;margin:0;accent-color:var(--blue)}
.bulk-check-list>label span{overflow-wrap:anywhere}.bulk-check-list>label small{display:block;margin-top:4px;color:var(--muted)}
.bulk-check-list>label strong{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.bulk-check-list>div{display:grid;grid-template-columns:minmax(80px,.6fr) minmax(0,1fr);gap:8px 16px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line);line-height:1.7}
.bulk-check-list>div small{grid-column:1/-1;color:var(--muted)}
@media(max-width:600px){.bulk-check-list>label{grid-template-columns:18px minmax(0,1fr);gap:8px}.bulk-check-list>label strong{grid-column:2;text-align:left}.bulk-check-list>div{grid-template-columns:1fr;gap:4px}}
.risk-analysis .heading{margin-bottom:12px}.risk-analysis .analysis-filters{padding:8px 0 12px}.risk-analysis .analysis-levels{margin-top:12px}.risk-analysis .analysis-summary{padding:16px 0;margin-top:4px}.risk-analysis .analysis-path{padding:4px 0 12px}.risk-analysis .analysis-detail-note{margin:6px 0 10px}.analysis-detail-note summary{cursor:pointer}.analysis-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--line)}
.analysis-status:empty{display:none}.analysis-status{font-size:13px;color:var(--body);line-height:1.8}.analysis-levels{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.analysis-levels button,.analysis-metric button{border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--body);padding:9px 12px;font:inherit;font-size:13px}.analysis-levels button[aria-pressed=true],.analysis-metric button[aria-pressed=true]{border-color:var(--blue);color:var(--blue);background:#ecf2fe}.analysis-levels b{font-variant-numeric:tabular-nums;margin-left:8px}.risk-analysis .analysis-summary{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px;margin-bottom:12px}.risk-analysis .analysis-value{font-size:clamp(22px,3vw,36px);overflow-wrap:anywhere;letter-spacing:-.6px}.analysis-path,.analysis-path>div,.analysis-chart-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.analysis-path{justify-content:space-between;padding:12px 0 20px}.analysis-path span{font-size:13px;color:var(--body)}.analysis-priorities{border:1px solid var(--line);border-radius:8px;margin-bottom:28px;padding:0 20px}.analysis-priorities>details{border-top:1px solid var(--line);padding:14px 0}.analysis-priorities summary{font-size:13px;cursor:pointer;color:var(--body)}.analysis-finding{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0}.analysis-finding h3{display:inline;margin-left:10px;font-size:16px;line-height:1.8}.analysis-finding p{font-size:13px;line-height:1.8;color:var(--body);margin:8px 0 0}.analysis-finding .button{flex:none}.analysis-chart-toolbar{justify-content:space-between}.analysis-chart-toolbar .subnav{margin:0;flex-wrap:wrap}.analysis-metric{display:flex;gap:4px}.analysis-share{display:block;margin-top:8px;font-size:11px;line-height:1.7;color:var(--muted)}.analysis-distribution-finding{background:#ecf2fe;padding:12px 16px;border-radius:4px;font-size:13px;line-height:1.8}.analysis-periods{display:flex;gap:12px;overflow-x:auto;padding:24px 0;border-bottom:1px solid var(--line)}.analysis-periods button{flex:1;min-width:96px;max-width:160px;display:flex;flex-direction:column;gap:10px;align-items:center;background:#fff;border:0;font:inherit;font-size:12px;color:var(--body);padding:8px}.analysis-periods button:disabled{opacity:1}.analysis-periods strong{color:var(--ink);font-variant-numeric:tabular-nums}.analysis-periods small{font-size:11px;white-space:nowrap}.analysis-period-bar{height:100px;width:32px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}.analysis-period-bar i{display:block;width:100%;background:#7ea8dc;border-radius:3px 3px 0 0}.analysis-period-bar em{font-size:10px;font-style:normal;color:var(--muted)}/* Help reuses the existing line icons and page navigation. */
.desktop-guide{display:block}
.guide-context{margin:0 0 12px;color:var(--muted);font-size:13px}
.guide-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px;margin:0 0 24px;background:var(--soft);border-radius:3px}
.guide-steps li{display:flex;flex-direction:column;gap:8px;align-items:center;min-width:0;text-align:center}
.guide-steps li>.icon{color:var(--blue);flex:none;width:24px;height:24px}
.guide-steps strong{font-size:14px;line-height:1.6;display:block}
.desktop-guide small{display:block;color:var(--body);font-size:13px;line-height:1.6;margin-top:4px}
.guide-faq-group{margin:24px 0}
.desktop-guide h3{font-size:15px;line-height:1.5;margin:0 0 8px}
.guide-question{border-bottom:1px solid var(--line)}
.guide-question summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:10px 0;box-sizing:border-box;list-style:none;font-size:14px;line-height:1.6;color:var(--ink);cursor:pointer}
.guide-question summary::-webkit-details-marker{display:none}
.guide-question summary>.icon{flex:none;width:16px;height:16px;color:var(--muted);transform:rotate(90deg)}
.guide-question[open] summary>.icon{transform:rotate(-90deg)}
.guide-question summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.guide-answer{padding:0 28px 14px 0;color:var(--body);font-size:13px;line-height:1.7}
.guide-answer p{margin:0;overflow-wrap:anywhere}
.guide-answer p+p{margin-top:6px}
.guide-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:24px}
.guide-ai-entry{margin:20px 0 0}.guide-ai-entry a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--blue);font-size:14px;line-height:1.7}.guide-ai-entry a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.guide-ai-entry .icon{width:16px;height:16px}
.guide-link{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:3px;background:white;min-width:0;font:inherit;color:var(--ink);cursor:pointer}
.guide-link>span:not(.icon){flex:1;min-width:0}.guide-link>.icon{flex:none;color:var(--blue)}.guide-link>.icon:last-child{color:var(--muted)}
.guide-link:hover{border-color:var(--blue);background:var(--subtle)}.guide-link:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.guide-link strong{font-size:14px}
@media(max-width:700px){.guide-steps{gap:8px;padding:16px 8px}.guide-steps strong{font-size:13px}.guide-links{grid-template-columns:1fr}}
.personal-list-actions{flex-wrap:wrap}
@media(max-width:700px){.risk-analysis .analysis-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.risk-analysis .analysis-filters .field{min-width:0}.risk-analysis .analysis-filters .field:first-child{grid-column:1/-1}.risk-analysis .analysis-summary{grid-template-columns:1fr;gap:16px}.analysis-chart-toolbar{align-items:flex-start}.analysis-finding{align-items:flex-start;flex-direction:column;gap:12px}.analysis-priorities{padding:0 16px}.analysis-path>div{max-width:100%}.analysis-path .button{font-size:12px}.desktop-guide{grid-template-columns:1fr}.analysis-levels{gap:6px}.analysis-levels button{padding:8px;font-size:12px}.analysis-periods button{min-width:90px}}
.analysis-filters .field{margin:0;min-width:170px;flex:1}.analysis-filters .field:first-child{flex:2}
.analysis-summary{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.5fr) auto;align-items:center;gap:32px;padding:24px 0;margin:8px 0 24px;border-bottom:1px solid var(--line)}
.analysis-primary>span{font-size:13px;color:var(--body)}.analysis-summary strong{display:block;font-size:40px;line-height:1.3;font-variant-numeric:tabular-nums;margin:6px 0}.analysis-summary strong small{font-size:13px;font-weight:400;color:var(--body)}
.analysis-summary p{color:var(--muted);font-size:12px;line-height:1.8;margin:0}.analysis-coverage{border-left:1px solid var(--line);padding:8px 28px}.analysis-coverage>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--body)}.analysis-coverage b{font-weight:600;color:var(--ink)}.analysis-coverage progress{display:block;width:100%;height:6px;margin:12px 0;accent-color:var(--blue)}.analysis-coverage .analysis-remaining{display:flex;flex-wrap:wrap;gap:8px 20px;padding:0;margin:10px 0 0;list-style:none;font-size:13px;line-height:1.8;color:var(--body)}.analysis-level-note{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 16px}.analysis-column-head{display:grid;grid-template-columns:minmax(100px,1fr) minmax(60px,2fr) 130px 170px;gap:20px;padding:12px 0;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.analysis-column-head span:nth-child(n+3){text-align:right}
.analysis-group{display:grid;grid-template-columns:minmax(100px,1fr) minmax(60px,2fr) 130px 170px;gap:20px;align-items:center;width:100%;padding:20px 0;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;font-variant-numeric:tabular-nums}
.analysis-group:hover:not(:disabled){background:var(--subtle)}.analysis-group-name{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;font-weight:600}.analysis-level-dot{display:inline-block;width:6px;height:6px;background:currentColor;border-radius:50%;flex:none}.analysis-group-count,.analysis-group-amount{text-align:right;overflow-wrap:anywhere}.analysis-group-count{font-weight:600}.analysis-group-count small{font-weight:400;display:block;color:var(--body);margin-top:4px}.analysis-bar{display:block;height:6px;background:var(--subtle);border-radius:2px;overflow:hidden}.analysis-bar i{display:block;background:#7ea8dc;height:100%}.analysis-detail-note{font-size:12px;color:var(--muted);margin:10px 0 18px}.analysis-risk-tag{display:inline-block;border:1px solid var(--line);border-radius:3px;padding:2px 6px;margin:2px 4px 2px 0;font-size:12px}.analysis-invoice-table{min-width:760px}.analysis-invoice-table td{vertical-align:top;line-height:23px}.analysis-invoice-table td:nth-child(2){white-space:nowrap}.analysis-invoice-table td:first-child{font-weight:600;max-width:240px}.analysis-invoice-table .invoice-sub{font-weight:400;color:var(--muted)}
@media(max-width:700px){.analysis-summary{grid-template-columns:1fr auto;gap:20px;padding:20px 0}.analysis-primary{grid-column:1}.analysis-coverage{grid-column:1/-1;grid-row:2;padding:16px 0 0;border-left:0;border-top:1px solid var(--line)}.analysis-column-head{display:none}.analysis-group{grid-template-columns:minmax(0,1fr) 110px;gap:12px}.analysis-bar{grid-column:1;grid-row:2}.analysis-group-count{grid-column:2;grid-row:1}.analysis-group-amount{grid-column:2;grid-row:2;font-size:12px}.analysis-filters .field{min-width:130px}.risk-analysis .table-foot{gap:12px;flex-wrap:wrap}}

*{box-sizing:border-box}
body{margin:0;background:#fff}
button,input,select{font:inherit}
button,a,input,select{outline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue)}
button{cursor:pointer;color:inherit}
button:disabled{opacity:.45;cursor:not-allowed}
.auth-panel{max-width:540px;margin:48px auto;padding:28px;border:1px solid var(--line);border-radius:8px;background:#fff}
.auth-panel h1{font-size:26px;line-height:1.4;margin:12px 0}
.auth-panel>p{color:var(--body);line-height:1.8}
.auth-panel form{margin:24px 0 16px}
.auth-panel .field{display:grid;gap:8px}
.auth-gate .sidebar,.auth-gate .topbar{display:none}
.auth-gate .shell{margin-left:0}
.auth-qr{display:grid;place-items:center;min-height:400px;margin:20px 0 8px;text-align:center}
.auth-qr iframe{display:block;width:300px;max-width:100%;height:400px;border:0;background:#fff}
.binding-steps{padding-left:22px;color:var(--body);line-height:1.8;margin:20px 0}
.binding-steps li+li{margin-top:8px}
.account-confirmation{margin-top:24px}.account-confirmation>summary{cursor:pointer;color:var(--body);padding:10px 0;line-height:1.5}
.auth-panel .field+.field{margin-top:18px}.application-status{padding:16px;background:var(--soft);border-radius:6px;margin:20px 0}.application-status p{line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}
.auth-panel input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:6px}
.auth-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:20px}
.auth-legal{display:flex;gap:12px;margin-top:28px!important;padding-top:20px;border-top:1px solid var(--line);font-size:12px}
.auth-legal a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.auth-panel{margin:20px 0;padding:20px}.auth-panel h1{font-size:23px}}
a{color:inherit;text-decoration:none}
button{background:none;border:0}
button svg{pointer-events:none}
[hidden]{display:none!important}
.icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;vertical-align:middle}
.icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}
h1{font-size:24px;line-height:32px;letter-spacing:-.5px;font-weight:600}
h2{font-size:18px;line-height:28px;font-weight:600}
h3{font-size:14px;line-height:24px;font-weight:600}
.muted,small{color:var(--muted)}
small{font-size:11px}
strong{font-weight:600}
.skip{position:fixed;top:-60px;left:12px;z-index:20;background:white;padding:12px}
.skip:focus{top:42px}

.preview{height:32px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;color:#61717c;font-size:11px;background:#fafbfd;position:fixed;inset:0 0 auto;z-index:5}
.preview>span{display:flex;align-items:center;gap:9px}
.preview i{width:3px;height:3px;background:#b5c0cb;border-radius:50%}
.preview>div{display:flex;align-items:center;gap:18px}
.preview select{border:0;background:none;color:var(--body);font-size:11px}
.preview button{font-size:11px;color:var(--muted);padding:0}
.preview a:hover{color:var(--blue)}

.sidebar{position:fixed;left:0;top:32px;bottom:0;width:218px;border-right:1px solid var(--line);padding:29px 16px 0;background:#fff;display:flex;flex-direction:column;z-index:4}
.brand{display:flex;align-items:center;gap:10px;padding:0 14px}
.brand img{width:33px;height:33px}
.brand>span{font-size:21px;font-weight:600;letter-spacing:-.5px}
.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:.6px;margin-top:2px}
.space-label{font-size:10px;color:var(--muted);margin:35px 13px 9px}
.space{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;padding:10px;text-align:left;width:100%;font-size:12px}
.space>span:nth-child(2){flex:1;min-width:0;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.space>.avatar,.space>.icon{flex:none}
.space-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#finance-ledger .bulk-table{width:100%;min-width:660px;table-layout:fixed}
#finance-ledger .bulk-table th:first-child{width:24%}
#finance-ledger .bulk-table th:nth-child(2){width:22%}
#finance-ledger .bulk-table th:nth-child(3){width:22%}
#finance-ledger .bulk-table th:nth-child(4){width:20%}
#finance-ledger .bulk-table th:last-child,#finance-ledger .bulk-table td:last-child{text-align:right;white-space:nowrap}
.space small{display:block;font-size:10px}
.space>.icon{width:14px;height:14px;color:var(--muted)}
.avatar{background:var(--soft);color:var(--blue);width:30px;height:30px;border-radius:6px;display:grid;place-items:center;font-size:14px;flex:none}
.sidebar nav{margin-top:30px;display:grid;gap:7px}
.sidebar nav :is([data-page],[data-api="personal-people"]){display:flex;align-items:center;gap:12px;padding:12px 14px;width:100%;text-align:left;border-radius:6px;color:#52606b;font-size:13px}
.sidebar nav :is([data-page],[data-api="personal-people"]).active{background:var(--soft);color:var(--blue);font-weight:600}
.sidebar nav :is([data-page],[data-api="personal-people"]):hover:not(.active){background:var(--subtle)}
.nav-count{margin-left:auto;font-size:10px;color:var(--orange);background:#fff;padding:2px 5px;border-radius:3px}
.sidebar-bottom{margin-top:auto}
.help{display:flex;align-items:center;gap:8px;padding:17px 14px;color:var(--muted);font-size:12px}
.help .icon{width:16px;height:16px}
.help button{padding:0}
.profile{border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:20px 8px}
.personal{background:#f0f3f6;color:#52606b}
.profile>div{flex:1;font-size:12px}
.profile small{display:block;margin-top:4px;font-size:10px}
.profile>.icon{width:14px;height:14px;color:var(--muted)}

.shell{margin-left:218px;padding-top:32px;min-height:100vh;display:flex;flex-direction:column}
.topbar{height:52px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px}
.breadcrumb{display:flex;gap:12px;color:var(--muted);font-size:11px}
.breadcrumb strong{color:var(--body);font-weight:400}
.top-actions{display:flex;align-items:center;gap:24px;font-size:10px;color:var(--muted)}
.secure{display:flex;align-items:center;gap:5px}
.secure .icon{width:14px;height:14px}
.mobile-menu{display:none}
main{padding:32px 32px 40px;min-width:0;flex:1;width:100%}
footer{font-size:10px;padding:18px 28px;color:var(--muted);border-top:1px solid var(--line);display:flex;align-items:center;gap:12px}
.foot-right{margin-left:auto}
.heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;margin-bottom:28px}
.heading h1{font-size:28px;line-height:38px;font-weight:600;letter-spacing:-.7px}
.heading p{color:var(--muted);font-size:12px;line-height:20px;margin-top:8px}
.heading-actions{display:flex;align-items:center;gap:8px;min-height:40px;flex-wrap:wrap}
.heading>.heading-actions:empty{display:none}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:8px 16px;border-radius:6px;min-height:40px;border:1px solid var(--line);background:#fff;font-size:12px;line-height:20px;white-space:nowrap}
.button .icon{width:16px;height:16px}
.button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.button.light{background:var(--soft);color:var(--blue);border-color:transparent}
.button:hover:not(:disabled){filter:brightness(.97)}
.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--blue);font-size:12px;line-height:20px;min-height:32px;padding:4px 0;white-space:nowrap}
.text-btn .icon{width:14px;height:14px}
.link-muted{color:var(--muted)}

.subnav{display:flex;gap:27px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}
.subnav button{padding:0 0 13px;font-size:12px;color:var(--body);white-space:nowrap;position:relative}
.subnav button.active{color:var(--blue);font-weight:600}
.subnav button.active:after{content:"";position:absolute;height:2px;background:var(--blue);bottom:0;left:0;right:0}
.subnav .count{font-size:10px;margin-left:7px;color:var(--muted);font-weight:400}
.subnav button.active .count{color:var(--blue)}

.filters{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}
.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:0 12px;height:40px;min-width:240px;flex:0 1 360px;color:var(--muted)}
.search .icon{width:16px;height:16px}
.search input{border:0;outline:none;min-width:0;width:100%;font-size:12px;background:none;color:var(--ink);line-height:24px}
.filters select{height:40px;border:1px solid var(--line);border-radius:6px;color:var(--body);background:#fff;padding:0 28px 0 12px;font-size:12px;width:216px;max-width:100%}
.filters .clear{margin-left:auto;min-height:40px;font-size:12px;color:var(--muted);padding:0}
.selection-bar{background:var(--soft);border-radius:3px;padding:12px 16px;display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:12px;flex-wrap:wrap}
.selection-bar .end{margin-left:auto}
.selection-bar strong{color:var(--blue)}
.table-wrap{width:100%;overflow:auto}
.invoice-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;min-width:940px}
.invoice-table th{background:var(--subtle);font-size:11px;color:var(--body);font-weight:400;text-align:left;line-height:20px;padding:12px;border-bottom:1px solid var(--line)}
.invoice-table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle;height:60px}
.invoice-table tbody tr:hover{background:#fbfcfe}
.invoice-table tbody tr.selected{background:#f5f9ff}
.invoice-table th:nth-child(1){width:36px}
.invoice-table th:nth-child(2){width:auto}
.invoice-table th:nth-child(3){width:120px}
.invoice-table th:nth-child(4){width:132px;text-align:right}
.invoice-table th:nth-child(5){width:102px}
.invoice-table th:nth-child(6){width:116px}
.invoice-table th:nth-child(7){width:88px}
.invoice-table td:nth-child(4){text-align:right}
.invoice-table input{display:block;margin:0 auto;accent-color:var(--blue);width:14px;height:14px;cursor:pointer}
.invoice-name{font-weight:600;color:var(--ink);line-height:22px;font-size:14px;text-align:left;padding:0;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.invoice-name:hover{color:var(--blue)}
.invoice-sub{display:block;margin-top:2px;font-size:12px;line-height:18px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amount{font-family:"Bahnschrift","Aptos","Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums;font-size:14px}
.badge{font-size:12px;display:inline-flex;align-items:center;gap:5px;color:var(--body);line-height:20px;white-space:nowrap}
.badge.ok{color:var(--green)}
.badge.warn{color:var(--orange)}
.badge.is-duplicate,.home-operation-state.is-duplicate{color:#8a6408;background:none}
.badge.fail{color:var(--red)}
.badge.blue{color:var(--blue)}
.badge.muted{color:var(--muted)}
.badge .icon{width:13px;height:13px}
.table-foot{padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;flex-wrap:wrap}
.empty{padding:36px 20px;text-align:center}
.empty>.icon{width:34px;height:34px;color:#b8c5d3;margin-bottom:17px}
.empty h3{font-size:15px}
.empty p{font-size:12px;color:var(--muted);margin:10px 0 20px}

.work-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:32px;align-items:start}
.work-focus{background:var(--soft);border-radius:3px;padding:24px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.work-focus h2{font-size:24px;line-height:34px;font-weight:500;letter-spacing:-.4px}
.work-focus p{font-size:12px;line-height:20px;color:var(--body);margin-top:8px}
.eyebrow{font-size:11px;line-height:18px;letter-spacing:.3px;color:var(--muted);margin-bottom:8px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px;margin-bottom:12px}
.section-head h2{font-size:15px}
.task-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);min-height:80px}
.task-row>span{color:var(--orange);background:var(--subtle);width:34px;height:34px;border-radius:4px;display:grid;place-items:center;flex:none}
.task-row>div{flex:1;min-width:0}
.task-row strong{font-size:12px;font-weight:500}
.task-row p{color:var(--muted);font-size:11px;line-height:18px;margin-top:4px}
.aside-section{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.compact-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:center;justify-content:space-between}
.compact-row div{min-width:0}
.compact-row strong{font-size:12px;font-weight:500}
.compact-row p{font-size:10px;color:var(--muted);margin-top:7px}
.compact-row .amount{font-size:13px}
.batch-list .compact-row{padding:20px 0;align-items:flex-start}
.batch-list .compact-row>div{flex:1;overflow-wrap:anywhere}
.batch-list .text-btn{flex:none}
.batch-list p{line-height:18px}
.spreadsheet-entry{padding:16px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.spreadsheet-entry p{flex-basis:100%;font-size:11px;line-height:18px;color:var(--muted)}
.modal-body .preflight-pagination{padding:12px 0;justify-content:flex-start;gap:12px}
.preflight-pagination nav,.preflight-pagination form,.preflight-pagination label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.preflight-pagination>span{flex-basis:100%}.preflight-pagination .button{min-height:36px;padding:6px 10px;font-size:12px}
.preflight-pagination input{width:80px;min-height:36px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;font:inherit;color:var(--ink);background:#fff}
.spreadsheet-rows .compact-row{align-items:flex-start}
.spreadsheet-rows .compact-row>div{flex:1;overflow-wrap:anywhere}
.spreadsheet-rows p{line-height:18px}
.preflight-filters,.preflight-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.preflight-filters .button{padding:8px 10px;font-size:11px}
.preflight-filters [aria-pressed="true"]{background:var(--soft);border-color:var(--blue);color:var(--blue)}
.preflight-filename{margin:0 0 16px;color:var(--body);font-size:13px;overflow-wrap:anywhere}
.spreadsheet-summary{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem;background:var(--soft);border-radius:.25rem;font-variant-numeric:tabular-nums}
.preflight-total,.preflight-count{display:flex;flex-direction:column;gap:.25rem;color:var(--body)}
.preflight-total strong{font-size:2rem;line-height:2.5rem;color:var(--ink)}
.preflight-count strong{font-size:1.25rem;line-height:1.75rem;color:var(--ink)}
.preflight-total span,.preflight-count span{font-size:.8125rem}.preflight-equation{font-size:1.25rem;color:var(--body)}
.modal-body .preflight-caption{font-size:.8125rem;color:var(--body);margin:.75rem 0 1rem}
.preflight-saved-states{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.5rem 0}
.spreadsheet-rows{border-top:1px solid var(--line)}.spreadsheet-rows .compact-row{padding:16px 0}.spreadsheet-rows .compact-row strong{font-weight:500}
.spreadsheet-rows .preflight-issue{color:var(--orange)}.spreadsheet-rows small{font-size:12px;color:var(--muted)}
.batch-list .compact-row:hover{background:var(--subtle)}

.settings-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:32px;align-items:start}
.settings-nav{display:grid;align-content:start;gap:6px}
.settings-nav button{padding:8px 12px;min-height:40px;text-align:left;color:var(--body);border-radius:6px;font-size:12px}
.settings-nav button.active{color:var(--blue);background:var(--soft)}
.settings-content{max-width:860px;min-width:0}
.setting-row{display:flex;align-items:center;min-height:80px;padding:18px 0;border-bottom:1px solid var(--line);gap:16px}
.setting-row>div{flex:1;min-width:0}
.setting-row p{margin-top:7px;color:var(--muted);font-size:11px}
.note{padding:14px 16px;background:var(--subtle);font-size:12px;line-height:22px;color:var(--body);border-radius:3px;margin:16px 0}
.setting-form{display:grid;gap:24px;margin-top:24px}
.field{display:grid;gap:8px;font-size:12px;line-height:20px;color:var(--body)}
.field input,.field select{height:40px;border:1px solid var(--line);border-radius:6px;padding:0 12px;color:var(--ink);background:#fff;width:100%;min-width:0;max-width:none}
.field small{font-size:10px}
.balance{padding:24px 0;border-bottom:1px solid var(--line)}
.balance>strong{display:block;font-size:33px;font-weight:500;font-variant-numeric:tabular-nums;margin:12px 0}
.balance .price-row{display:flex;gap:28px;font-size:11px;color:var(--muted)}

dialog{color:var(--ink);border:0;padding:0;background:#fff}
dialog::backdrop{background:rgba(26,39,50,.2)}
.navigation-shade{display:none}
@media(max-width:1100px){.sidebar.open~.navigation-shade{display:block;position:fixed;inset:32px 0 0 218px;z-index:3;background:rgba(26,39,50,.2);border:0;padding:0;width:auto;height:auto;border-radius:0}}
.drawer{position:fixed;inset:32px 0 0 auto;margin:0;width:min(600px,100%);height:calc(100% - 32px);max-height:none;max-width:none;border-left:1px solid var(--line)}
.drawer-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}
.drawer-head h2{font-size:18px;line-height:28px}
.drawer-head .small-label{font-size:10px;color:var(--muted);margin-bottom:5px}
.icon-button{display:grid;place-items:center;width:32px;height:32px;border-radius:5px;color:var(--muted)}
.icon-button:hover{background:var(--subtle)}
.drawer-body{padding:24px;overflow-wrap:anywhere}
.report-status{padding:20px 22px;background:var(--soft);border-radius:3px;margin-bottom:25px}
.report-status h3{font-size:23px;font-weight:500;margin:7px 0 10px}
.report-status p{font-size:12px;color:var(--body);line-height:22px}
.report-status .eyebrow{margin:0}
.report-status.warn h3{color:var(--orange)}
.facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 24px;padding:0 0 24px;border-bottom:1px solid var(--line);margin:0 0 24px}
.facts dt{color:var(--muted);font-size:11px;line-height:18px;margin-bottom:4px}
.facts dd{margin:0;font-size:13px;line-height:22px;overflow-wrap:anywhere}
.full{grid-column:1/-1}
.report-section{margin-top:24px}
.report-section .section-head h3{font-size:13px}
.step-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}
.step-row small{font-size:10px;display:block;margin-top:5px}
.step-row>div:last-child{text-align:right}
.report-hint{padding:14px 16px;background:var(--subtle);border-radius:3px;font-size:12px;line-height:22px;color:var(--body);margin:12px 0 16px}
.history-line{display:flex;gap:16px;margin:19px 0;font-size:11px}
.history-line>span{color:var(--muted);width:43px;flex:none}
.history-line strong{font-size:11px;font-weight:500}
.history-line p{font-size:10px;color:var(--muted);margin-top:6px}
.drawer-actions{display:flex;gap:10px;margin-top:27px;flex-wrap:wrap}
.modal{width:min(520px,calc(100% - 32px));border-radius:10px;max-height:calc(100dvh - 64px)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.modal-head h2{font-size:18px;line-height:28px;overflow-wrap:anywhere}
.modal-body{padding:24px}
.modal-body>p{font-size:12px;color:var(--body);line-height:1.9}
.modal-foot{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--line)}
.modal-body:has(#risk-state){overflow-wrap:anywhere}
.modal-body:has(#risk-state) .amount{font-size:24px;line-height:32px;color:var(--ink)}
.modal-body:has(#risk-state)+.modal-foot{flex-wrap:wrap}
.quote{display:flex;align-items:baseline;justify-content:space-between;gap:24px;border-radius:3px;padding:16px;background:var(--subtle);margin-top:16px}
.quote .amount{font-size:20px}
.option{display:flex;gap:10px;align-items:flex-start;padding:12px 0;font-size:12px}
.option input{accent-color:var(--blue);margin-top:2px}
.option small{display:block;line-height:1.8;margin-top:5px}
.toast{position:fixed;bottom:30px;left:calc(50% + 80px);transform:translateX(-50%);background:#24313b;color:#fff;padding:13px 20px;border-radius:6px;z-index:12;font-size:12px;max-width:90vw}


/* Shared workspace rhythm: data first, one focus, readable secondary text. */
small{font-size:12px}.heading p{font-size:14px;line-height:22px;margin-top:6px}
.nav-label{font-size:12px;color:var(--muted);padding:0 14px;margin:0 0 4px}.admin-nav-label{margin-top:22px}
.sidebar nav :is([data-page],[data-api="personal-people"]){min-height:44px;font-size:14px}.sidebar nav{gap:4px;margin-top:26px}
.sidebar{padding-top:24px}.space-label{margin-top:24px}.space{font-size:13px}.space small,.profile small{font-size:12px}
.brand small{letter-spacing:0;font-size:11px}.breadcrumb{font-size:12px}.top-actions{font-size:12px}
.heading-actions{gap:8px}.button,.text-btn{font-size:13px}.icon-button{width:36px;height:36px;flex:none}
.search:focus-within{outline:2px solid var(--blue);outline-offset:2px}summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.invoice-workspace{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.invoice-workspace .subnav{padding:12px 16px;margin:0;gap:8px;align-items:center}.subnav button{font-size:13px;padding:9px 12px;border-radius:6px}.subnav .count{font-family:"Bahnschrift","Aptos",sans-serif;font-size:12px;margin-left:8px;display:inline-grid;place-items:center;min-width:20px;line-height:20px;border-radius:4px;background:var(--subtle);color:var(--body)}
.invoice-workspace .subnav button.active{background:var(--soft)}.invoice-workspace .subnav button.active:after{display:none}.invoice-workspace .subnav button.active .count{background:#fff;color:var(--blue)}.invoice-workspace .subnav button:hover:not(.active){background:var(--subtle)}
.invoice-workspace .filters{margin:0;padding:18px 20px;gap:10px;border-bottom:1px solid var(--line)}
.filters .search{flex:1 1 240px;min-width:200px;max-width:360px}.search input{font-size:13px}
.filters select{font-size:13px;width:180px;flex:0 1 180px}.filters .field{margin:0;min-width:0}.filters .clear{font-size:12px}
.invoice-table{min-width:820px;font-size:13px}.invoice-table th{font-size:12px;padding:12px;height:44px;white-space:nowrap}.invoice-table td{height:76px;padding-top:14px;padding-bottom:14px}.invoice-table td:last-child>.text-btn{padding:4px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;min-height:32px}.invoice-table td:last-child>.text-btn:hover{border-color:var(--blue)}
.invoice-table th:first-child{width:36px}.invoice-table th:nth-child(3){width:116px}.invoice-table th:nth-child(4){width:120px}
.invoice-table th:nth-child(5){width:124px}.invoice-table th:nth-child(6){width:130px}.invoice-table th:nth-child(7){width:76px}.invoice-table th:nth-child(8){width:88px;text-align:right}
.invoice-table td:last-child{text-align:right}.invoice-table tbody tr:last-child td{border-bottom:0}.invoice-table.readonly th:first-child,.invoice-table.readonly td:first-child{display:none}
.invoice-identity{display:flex;align-items:center;gap:12px;min-width:0}.invoice-identity>div{min-width:0}.document-icon{display:grid;place-items:center;flex:none;width:32px;height:38px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--muted)}.document-icon .icon{width:17px;height:17px}
.company-name{font-size:13px}.invoice-sub{color:var(--body)}.badge.muted{color:var(--body)}.table-foot{padding:12px 16px;font-size:12px;border-top:1px solid var(--line)}
.selection-bar{margin:0;border-radius:0;padding:10px 16px;font-size:13px}
.import-receipt{padding:16px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);background:var(--soft)}
.import-receipt strong{display:flex;align-items:center;gap:8px;font-size:14px}.import-receipt p{margin:6px 0;line-height:22px}.import-receipt small{color:var(--body)}
.work-overview{grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:24px;align-items:start}.work-overview>section{border:1px solid var(--line);border-radius:8px;overflow:hidden;padding:24px}.work-overview>.work-primary{padding:0}.work-focus{padding:28px;margin-bottom:24px;min-height:170px;border-radius:4px;align-items:flex-end}.work-primary .work-focus{margin:0;border-radius:0}
.work-focus h2{font-size:26px;line-height:38px;font-weight:600}.work-focus p{font-size:13px;line-height:22px}.eyebrow{font-size:12px}.work-focus .eyebrow{color:var(--blue);font-weight:500;margin-bottom:14px}.work-focus .focus-number{display:inline-block;font-family:"Bahnschrift","Aptos",sans-serif;font-size:64px;font-weight:500;line-height:64px;letter-spacing:-2px;margin-right:12px}.focus-unit{font-size:17px;line-height:26px;font-weight:500}.work-focus>.button{flex:none;margin-bottom:2px}.section-head h2{font-size:16px;display:flex;align-items:center;gap:8px}.section-head h2>.icon{width:18px;height:18px;color:var(--muted)}
.work-status-strip{display:flex;gap:24px;flex-wrap:wrap;padding:17px 28px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.work-status-strip strong{font-family:"Bahnschrift","Aptos",sans-serif;color:var(--ink);font-size:17px;font-weight:500;margin:0 4px}.work-list{padding:24px 28px 8px}.work-list>.section-head{margin-bottom:4px}
.task-row{min-height:104px;padding:20px 0;gap:14px}.task-row>span{width:40px;height:40px;background:var(--subtle);color:var(--body);border:1px solid var(--line);border-radius:8px}.task-row strong{font-size:14px;display:block;font-weight:500;line-height:22px}.task-row p{font-size:12px;line-height:20px}.task-row .task-status{display:block;font-size:11px;line-height:18px;color:var(--orange);margin-bottom:3px}.task-row:last-child{border-bottom:0}.task-row>.text-btn{flex:none}.compact-row strong{font-size:14px}.compact-row p{font-size:12px;line-height:20px;margin-top:4px}
.recent-import{display:flex;gap:12px;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--line)}.recent-import:last-child{border:0;padding-bottom:0}.recent-import>div{min-width:0;flex:1}.recent-import strong{font-size:13px;line-height:22px;font-weight:600;overflow-wrap:anywhere}
.recent-import p,.recent-import small{font-size:12px;line-height:20px;color:var(--muted);margin:3px 0}.recent-import small{color:var(--body)}.source-icon{display:grid;place-items:center;flex:none;width:34px;height:40px;border:1px solid var(--line);border-radius:4px;color:var(--blue);background:#fff}.source-icon .icon{width:18px;height:18px}.aside-section,.aside-section:last-child{border:1px solid var(--line);border-radius:8px;padding:20px 24px;margin:0 0 24px}.aside-section>.section-head{margin-bottom:4px}.aside-section>.compact-row:last-child{border:0;padding-bottom:0}
.attention-summary{display:flex;align-items:center;gap:14px;margin:20px 0 4px}.attention-summary>strong{font-family:"Bahnschrift","Aptos",sans-serif;font-size:36px;font-weight:500;line-height:44px}.attention-summary>span{font-size:13px;line-height:22px}.attention-summary small{display:block;font-size:12px;color:var(--muted)}
.result-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:var(--soft);margin-bottom:24px}.result-overview h2{font-size:26px}.result-overview p{margin-top:8px;line-height:22px;color:var(--body)}
.settings-layout{grid-template-columns:170px minmax(0,1fr);gap:32px}.settings-nav{border-right:1px solid var(--line);padding-right:16px}.settings-nav button{font-size:14px;min-height:42px}.settings-content{max-width:800px}.settings-content>h2{margin-bottom:16px}.setting-row{min-height:68px;padding:14px 0}.setting-row p{font-size:13px}.setting-form{max-width:640px;gap:24px}.settings-content>.note{max-width:640px}.field{font-size:14px}
.note{font-size:13px;line-height:22px}.modal-body>p{font-size:14px}.modal-body>p+.field{margin-top:16px}.modal-body .note a{color:var(--blue);text-decoration:underline}
.connection-state{padding:0;margin:0 0 12px;background:transparent}.batch-filter{flex:1 1 340px}.api-mode .filters{align-items:flex-end}.batch-filter select{width:100%;max-width:none}
.report-version{padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.report-version p{color:var(--body);margin-top:4px;font-size:13px;line-height:22px}.evidence-item{padding:12px 0;border-bottom:1px solid var(--line)}.report-basic-result{margin-bottom:16px}.report-basic-result h3{font-size:18px}.report-basic-result p{color:var(--body);font-size:13px}
.setting-form>.button{justify-self:start;min-width:140px}
.member-limit-settings{border-top:1px solid var(--line);padding:20px 0;margin-top:20px}
#member-count-form{display:block;margin-top:16px}
#member-count-form fieldset{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#member-count-form p{margin:12px 0}
#member-count-form .button{margin:0 8px 0 0;min-width:100px}
#member-count-form p:empty{display:none}
@media(max-width:600px){#member-count-form fieldset{grid-template-columns:1fr}}
#nav-count:empty{display:none}.api-mode .task-row>span{color:var(--body);background:transparent}
.management-surface .member-editor{grid-column:2;grid-row:1;justify-self:end}.management-surface .member-editor>summary{color:var(--blue);cursor:pointer;font-size:13px;padding:8px 0;min-height:40px}.management-surface .member-editor[open]{grid-column:1/-1;grid-row:auto;justify-self:stretch}.management-surface .member-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin-top:16px;align-items:start}.management-surface .member-fields>button{justify-self:start;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--blue);font:inherit}.management-surface .member-fields>button:disabled{opacity:.55}
.management-surface{max-width:760px;min-width:0}.management-surface[data-section=companies] .management-members,.management-surface[data-section=members] .management-companies{display:none}.management-surface .settings-section>.note{margin:16px 0 24px}.management-surface h3{margin:28px 0 12px;font-size:16px}.management-surface .settings-form{max-width:640px;display:grid;gap:20px;margin-bottom:24px}.management-surface label{display:grid;gap:8px;font-size:13px;color:var(--body);min-width:0}.management-surface input:not([type=checkbox]),.management-surface select{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:6px;min-height:40px;padding:8px 12px;width:100%;min-width:0}.management-surface select[multiple]{min-height:92px}.management-surface input:disabled,.management-surface select:disabled{background:var(--subtle);color:var(--muted)}.management-surface .settings-form>.button{justify-self:start;min-width:128px}.management-surface .settings-row{padding:16px 0;border-bottom:1px solid var(--line)}.management-surface .settings-row>span{display:grid;gap:5px}.management-surface small{font-size:12px;color:var(--body)}.management-surface .settings-form-state,.management-surface .member-update-state{padding:12px 16px;background:var(--soft);font-size:13px;line-height:22px;overflow-wrap:anywhere}.management-surface code{display:block;margin-top:8px;user-select:all;overflow-wrap:anywhere}.management-surface .member-settings-row{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;align-items:start;padding:24px 0;border-bottom:1px solid var(--line)}.management-surface .member-settings-row>span,.management-surface .member-update-state{grid-column:1/-1;display:grid;gap:5px}.management-surface .member-settings-row>span{grid-column:1;grid-row:1}.management-surface .member-all-entities{display:flex;align-items:center;gap:8px;align-self:end;min-height:40px}.management-surface .member-settings-row>button{justify-self:start;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--blue);font:inherit}.management-surface .member-settings-row>button:disabled{opacity:.55}
.modal{width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 48px)}.modal[open]{display:flex}.modal>#modal-content{display:flex;flex-direction:column;max-height:calc(100dvh - 48px);width:100%;min-height:0}
.modal-head,.modal-foot{flex:none}.modal-body{overflow:auto;min-height:0;overscroll-behavior:contain}.modal-body .file-list{margin:16px 0}.modal-body .compact-row{align-items:flex-start;overflow-wrap:anywhere}
.modal:has(.spreadsheet-rows){width:min(760px,calc(100% - 32px))}.preflight-filters .button{font-size:12px}.spreadsheet-entry p{font-size:12px;color:var(--body)}
.dropzone{border:1px dashed #8da6bf;padding:20px;text-align:center;border-radius:6px}.dropzone>.icon{color:var(--blue);width:28px;height:28px}.dropzone h3{font-size:16px;margin:8px 0}.dropzone p{font-size:13px;line-height:22px;color:var(--body);margin:8px 0 16px}
.quote{font-size:14px}.quote strong{white-space:nowrap}.receipt-total{font-size:24px;line-height:32px;margin:12px 0}.receipt-counts{display:flex;gap:24px;flex-wrap:wrap;padding:16px 0}
.drawer{width:min(640px,100%);overflow:auto;overscroll-behavior:contain}.drawer.expanded{inset:32px 0 0 218px;width:auto}.drawer.expanded .drawer-body{max-width:1120px;padding:28px 36px}.drawer.expanded .drawer-head{padding:20px 36px}
.report-status{padding:20px;margin-bottom:24px}.report-status h3{font-size:24px;font-weight:600;line-height:32px;margin:6px 0}.report-status p{font-size:14px;line-height:24px}
.report-section{margin:24px 0}.report-section .section-head h3{font-size:16px}.report-hint{background:none;padding:0;margin:12px 0;font-size:14px;line-height:24px}
.risk-detail{background:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:16px 0}.risk-detail summary{font-size:14px;font-weight:600;cursor:pointer}.risk-detail dl{margin:16px 0 0;line-height:24px}.risk-detail dt{color:var(--body);font-size:13px;margin-top:16px}.risk-detail dd{margin:4px 0;font-size:14px}
.facts{gap:20px 28px;margin-top:24px}.facts dt{font-size:13px;color:var(--body)}.facts dd{font-size:14px}.step-row{font-size:14px}.step-row small{font-size:12px}.drawer-actions{margin-top:20px}
.api-mode .filters{align-items:flex-end}.api-mode .filters .field{margin:0}.api-mode .note:empty{display:none}
@media(min-width:761px) and (max-width:1280px){
 .invoice-table{min-width:680px}.invoice-table th:nth-child(7),.invoice-table td:nth-child(7){display:none}
 .invoice-table th:nth-child(3){width:98px}.invoice-table th:nth-child(4){width:104px}.invoice-table th:nth-child(5){width:112px}.invoice-table th:nth-child(6){width:118px}.invoice-table th:nth-child(8){width:76px}
 .invoice-table th,.invoice-table td{padding-left:8px;padding-right:8px}.invoice-table .invoice-name{font-size:13px}
 .work-overview{grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);gap:20px}.work-focus{padding:24px;flex-wrap:wrap}.work-list{padding:20px}.work-status-strip{padding:16px 20px;gap:14px}.aside-section,.aside-section:last-child{padding:20px}.document-icon{display:none}
}
@media(max-width:1100px){
 .sidebar{display:none;top:32px;width:218px}.sidebar.open{display:flex;border-right:1px solid var(--line)}.shell{margin-left:0}.mobile-menu{display:grid;place-items:center}
 .topbar{padding:0 20px}.top-actions .secure{display:none}.drawer.expanded{left:0}.preview{padding:0 12px}.preview>div{gap:10px}.preview label{font-size:0}
 .preview>span{font-size:0}.preview>span:before{content:'设计预览 · 示例';font-size:11px}.api-mode .preview>span:before{content:var(--preview-label,'接口接入候选')}
}
@media(max-width:760px){
 .management-surface .member-editor{grid-column:1;grid-row:auto;justify-self:start}.management-surface .member-fields{grid-template-columns:1fr}
 .management-surface .member-settings-row{grid-template-columns:1fr;gap:16px}.management-surface .settings-form{gap:16px}.management-surface .section-head{gap:12px}
 main{padding:20px 16px 28px}.topbar{padding:0 16px;height:48px}.breadcrumb>span{display:none}.top-actions{display:none}
 .api-mode .top-actions:has(#web-sign-out){display:flex}.api-mode .top-actions .date{display:none}
 .preview{height:32px;font-size:11px}.preview>span{display:none}.preview:before{content:'示例预览';font-size:11px}.api-mode .preview:before{content:var(--preview-label,'接口接入候选')}.preview #design{display:none}.preview>div{gap:8px}
 .heading{grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:20px}.heading h1{font-size:22px}.heading p{font-size:13px;line-height:20px}.heading-actions .button{padding:8px 10px}.heading-actions .button .icon{display:none}
 .invoice-workspace .subnav{gap:4px;padding:10px 8px;scrollbar-width:none;overscroll-behavior-x:contain}.subnav button{font-size:13px;padding:8px}.subnav .count{margin-left:5px}.invoice-workspace .filters{padding:12px;gap:8px}.filters .search{flex:1 0 100%;min-width:0;max-width:none}.filters select{flex:1 0 100%;min-width:0;width:100%}.filters .field{flex:1 0 100%}.batch-filter select{max-width:none}.filters .clear{margin:0 auto 0 0}.filters .button{font-size:12px;padding:8px}.filters>.button .icon{display:none}
 .invoice-table{min-width:0;display:block}.invoice-table thead{display:none}.invoice-table tbody{display:block}.invoice-table tr{display:grid;position:relative;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px 12px 14px 32px;border-bottom:1px solid var(--line)}
 .invoice-table.readonly tr{padding-left:12px}.invoice-table td{display:block;padding:0;border:0;height:auto;min-width:0}.invoice-table td:first-child{position:absolute;left:10px;top:18px}
 .invoice-table td:nth-child(2){grid-column:1;grid-row:1}.invoice-table td:nth-child(4){grid-column:2;grid-row:1;padding-top:2px}.invoice-table td:nth-child(3){grid-column:1;grid-row:2}.invoice-table td:nth-child(8){grid-column:2;grid-row:2}
 .invoice-table td:nth-child(5){grid-column:1;grid-row:3}.invoice-table td:nth-child(6){grid-column:2;grid-row:3;text-align:right}.invoice-table td:nth-child(7){display:none}
 .document-icon{display:none}.invoice-name{font-size:14px}.invoice-sub,.company-name{font-size:12px}.badge{font-size:12px}.invoice-table td:nth-child(5):before{content:'查验 · ';font-size:12px}.invoice-table td:nth-child(6):before{content:'风险 · ';font-size:12px}.api-mode .invoice-table td:nth-child(5):before{content:'处理 · '}
 .invoice-table .text-btn{font-size:13px;min-height:24px;padding:0}.table-foot{padding:12px;font-size:12px;line-height:20px}.table-foot>span:last-child{display:none}
 .work-overview{grid-template-columns:1fr;gap:20px}.work-overview>section{padding:20px}.work-overview>.work-primary{padding:0}.work-focus{padding:24px 20px;gap:20px;flex-wrap:wrap;min-height:0}.work-focus h2{font-size:24px}.work-focus .focus-number{font-size:52px;line-height:56px}.focus-unit{font-size:16px}.work-focus>.button{padding:8px 12px;font-size:13px}.work-status-strip{padding:16px 20px;gap:12px}.work-status-strip strong{font-size:15px}.work-list{padding:20px 16px 4px}.task-row{gap:10px}.task-row strong{font-size:13px}.task-row p{font-size:12px}.task-row>span{width:34px;height:34px}.task-row .text-btn{font-size:12px}.aside-section,.aside-section:last-child{padding:20px;margin-bottom:20px}
 .settings-layout{grid-template-columns:1fr;gap:20px}.settings-nav{display:flex;overflow:auto;gap:4px;padding:0 0 12px;border:0;border-bottom:1px solid var(--line)}.settings-nav button{white-space:nowrap;font-size:13px;padding:8px}.setting-row{align-items:flex-start;flex-wrap:wrap}.setting-row>div{min-width:180px}
 .drawer{width:100%}.drawer.expanded .drawer-body,.drawer-body{padding:20px 16px}.drawer.expanded .drawer-head,.drawer-head{padding:16px}.drawer-head .heading-actions{flex-wrap:nowrap}.drawer-head .button{font-size:12px;padding:6px 8px}.report-status{padding:16px}.report-status h3{font-size:22px}.facts{gap:16px}
 .modal-head{padding:16px}.modal-body{padding:20px 16px}.modal-foot{padding:12px 16px}.modal-body .compact-row{gap:10px}.compact-row strong{font-size:13px}.preflight-filters .button{padding:6px 8px}.dropzone{padding:16px}.import-receipt{align-items:flex-start;flex-direction:column}.import-receipt .heading-actions{justify-content:space-between;width:100%}
 footer{padding:16px;font-size:11px}.foot-right{display:none}.toast{left:50%;font-size:13px}.result-overview{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Bounded invoice pool pages reuse the existing flat workspace and form controls. */
.settings-content,.modal-body{min-width:0;overflow-wrap:anywhere}
.bulk-job-guide{padding:16px 16px 0}.bulk-job-status{padding:16px;background:var(--blue-soft,#ecf2fe);border-radius:3px;margin-bottom:16px}.bulk-job-status h3{font-size:20px;line-height:28px}.bulk-job-status p{font-size:14px;line-height:1.8;margin:8px 0 16px}.bulk-job-status label{display:block;font-size:13px}.bulk-job-status progress{display:block;width:100%;height:8px;margin:8px 0;accent-color:var(--blue)}.bulk-job-status small{color:var(--body);line-height:1.6}.modal-body:has(.bulk-job-status)+.modal-foot{flex-wrap:wrap}
.bulk-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}
.bulk-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:var(--muted,#697586)}
.bulk-fields input,.bulk-fields select{min-width:0;width:100%;height:36px;padding:7px 10px;border:1px solid var(--line,#dce3ec);border-radius:6px;background:#fff;color:var(--text,#1c293c);font:inherit}
.bulk-fields input:focus-visible,.bulk-fields select:focus-visible{outline:2px solid #3079db;outline-offset:2px}
.bulk-workspace .preflight-actions{padding:0 16px 16px}.bulk-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;border-top:1px solid var(--line,#dce3ec)}
.bulk-selection label{display:flex;align-items:center;gap:8px}.bulk-workspace input[type=checkbox]{width:16px;height:16px;accent-color:#2163bc}
#bulk-plan-form fieldset{min-width:0;margin:16px 0;border:1px solid var(--line,#dce3ec);border-radius:8px}
#bulk-plan-form .bulk-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
#bulk-plan-form legend{padding:0 6px;font-weight:600}
@media(max-width:700px){.bulk-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.bulk-selection{padding:12px;gap:10px}}
@media(max-width:420px){#bulk-plan-form .bulk-fields{grid-template-columns:minmax(0,1fr)}}
.bulk-table{border-collapse:collapse;width:100%;min-width:900px;font-size:13px;text-align:left}.bulk-table th{font-size:12px;font-weight:500;color:#677489;background:#fafbfd;padding:12px;white-space:nowrap;border-bottom:1px solid #e5e9f0}.bulk-table td{padding:12px;border-bottom:1px solid #eef1f5;vertical-align:middle}.bulk-table tbody tr:last-child td{border-bottom:0}.bulk-table .amount{white-space:nowrap;text-align:right}.bulk-table .text-btn{white-space:nowrap}.bulk-table .invoice-sub{display:block;margin-top:5px}.bulk-workspace .table-wrap{max-width:100%;overflow:auto}.bulk-quote{width:100%;border-collapse:collapse;margin:16px 0;font-size:13px}.bulk-quote th,.bulk-quote td{padding:10px 8px;text-align:right;border-bottom:1px solid #e5e9f0}.bulk-quote th:first-child,.bulk-quote td:first-child{text-align:left}.bulk-quote th{font-weight:500;color:#677489}#finance-mount{min-width:0}#finance-mount .table-wrap{max-width:100%;overflow:auto}#finance-mount .field input,#finance-mount .field select{max-width:100%}.bulk-workspace [role=region]:focus-visible,#finance-mount [role=region]:focus-visible{outline:2px solid #3079db;outline-offset:-2px}

.settings-content>.field:has(#finance-rule-company){max-width:640px}

.public-mode{--preview-label:'票加一工作区'}
.scenario-options{display:grid;gap:12px;margin:20px 0}.scenario-option{display:flex;flex-direction:column;gap:8px;width:100%;padding:20px;text-align:left;border:1px solid var(--line,#dce5ee);border-radius:12px;background:#fff;color:#18324a;cursor:pointer}.scenario-option:hover,.scenario-option:focus-visible{border-color:#1677d2;background:#f1f7fd}.scenario-option strong{font-size:18px}.scenario-option small{color:#496176}.scenario-options .scenario-option{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;min-height:64px;border-color:var(--line,#dce5ee);border-radius:9px}.scenario-options .scenario-option-label{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}.scenario-options .scenario-option-action{display:flex;align-items:center;gap:8px;flex:none;color:var(--blue,#1975da);font-size:14px;white-space:nowrap}.scenario-options .scenario-option[aria-current=true]{border-color:var(--blue,#1975da);background:var(--soft,#ecf2fe)}.scenario-options .scenario-option:focus-visible{outline:2px solid var(--blue,#1975da);outline-offset:3px}.scenario-summary{display:flex;align-items:center;gap:32px;padding:20px 24px;margin-bottom:20px;border:1px solid #dce8f3;border-radius:12px;background:#f4f9fd}.scenario-summary>div{display:flex;flex-direction:column;gap:6px;white-space:nowrap}.scenario-summary span{font-size:12px;color:#526879}.scenario-summary strong{font-size:20px;color:#18324a}.scenario-summary p{margin:0;font-size:13px;line-height:1.8;color:#496176}.personal-workspace .setting-row small,.compact-row>span>small{display:block;margin-top:4px;color:#526879}.personal-workspace .table-wrap{min-width:0}.personal-workspace .personal-invoice-table td{max-width:280px;overflow-wrap:anywhere}.personal-workspace .heading-actions{flex-wrap:wrap}
@media(max-width:640px){.scenario-summary{align-items:flex-start;gap:18px;flex-wrap:wrap;padding:16px}.scenario-summary p{flex-basis:100%}.scenario-option{padding:16px}.personal-workspace .heading{align-items:flex-start;gap:16px;flex-direction:column}}

/* Invoice workspace: buyer context, whole-scope totals, then the working list. */
.enterprise-opening-nav{display:flex;align-items:center;gap:10px;color:var(--blue);width:100%;padding:14px;font-size:14px;min-height:44px}.enterprise-opening-nav:hover{background:var(--soft)}.enterprise-opening-nav svg{width:18px;height:18px;flex:none}
.modal:has(.enterprise-opening){width:min(960px,calc(100% - 32px))}.enterprise-opening>header{margin-bottom:24px}.enterprise-opening .eyebrow{letter-spacing:0;font-size:12px;color:var(--muted)}.enterprise-opening h3{font-size:22px;line-height:32px;margin:6px 0 10px;font-weight:600}.enterprise-opening p,.enterprise-contact p,.enterprise-application>p{font-size:14px;line-height:24px;color:var(--body)}.enterprise-comparison{border-collapse:collapse;table-layout:fixed;width:100%;font-size:13px;line-height:22px;min-width:550px}.enterprise-comparison th,.enterprise-comparison td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}.enterprise-comparison thead th{background:var(--subtle);font-size:14px;font-weight:600}.enterprise-comparison th:first-child{width:24%}.enterprise-comparison tbody th{font-weight:500}.enterprise-comparison td:last-child{background:#f6f9ff}.enterprise-count-note{padding:16px 0;border-bottom:1px solid var(--line);margin:0}.enterprise-opening-ways{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:24px 0}.enterprise-opening-ways>section{display:flex;flex-direction:column;align-items:flex-start}.enterprise-opening-ways h3{font-size:18px;line-height:26px;margin:6px 0 8px}.enterprise-opening-ways p{flex:1;margin:0 0 16px}.enterprise-existing{font-size:12px!important;color:var(--muted)!important}.enterprise-contact h3{font-size:20px;line-height:30px;margin-bottom:16px}.enterprise-contact p{margin:12px 0}.enterprise-contact-email{background:var(--soft);padding:18px;margin:20px 0;display:flex;flex-direction:column;gap:8px;font-size:13px}.enterprise-contact-email a{font-size:17px;color:var(--blue);overflow-wrap:anywhere}.enterprise-application #enterprise-application-form{display:grid;gap:16px;margin-top:20px}.enterprise-application .application-status{padding:18px;background:var(--soft);margin:20px 0}.enterprise-application .application-status strong{font-size:18px}.enterprise-application .application-status p{margin:10px 0;font-size:14px;line-height:24px}.enterprise-application>.text-btn{margin-top:16px}.modal:has(.enterprise-opening) .modal-body{padding:24px 28px}
@media(max-width:640px){.enterprise-opening h3{font-size:19px;line-height:28px}.enterprise-opening-ways{grid-template-columns:1fr;gap:22px}.enterprise-opening-ways>section+section{border-top:1px solid var(--line);padding-top:22px}.modal:has(.enterprise-opening) .modal-body{padding:20px 16px}.enterprise-comparison{min-width:0;font-size:12px;line-height:20px}.enterprise-comparison th,.enterprise-comparison td{padding:10px 6px}.enterprise-comparison th:first-child{width:22%}.enterprise-comparison thead th{font-size:13px}.modal:has(.enterprise-application) .modal-foot{flex-wrap:wrap}}
.personal-feedback{font-size:13px;color:var(--body);line-height:22px;margin:0 0 16px}.personal-feedback:empty{display:none}
.personal-risk-counts{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin:24px 0 0}.personal-risk-counts button{display:flex;align-items:center;gap:10px;padding:14px 18px;border:0;border-bottom:2px solid transparent;background:white;font-size:13px;min-height:48px}.personal-risk-counts button[aria-pressed=true]{border-bottom-color:var(--blue);background:#f5f9ff;color:var(--blue)}.personal-risk-counts strong{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.personal-risk-counts button:hover{background:var(--subtle)}.pending-count-note{font-size:12px;line-height:20px;color:var(--muted);margin:10px 0 20px}.personal-list-actions{display:flex;gap:10px;margin-left:auto}.personal-batch>.field{max-width:260px;margin:20px 0}.personal-batch-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.personal-batch-rows>label{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.personal-batch-rows input{flex:none;width:16px;height:16px;accent-color:var(--blue)}.personal-batch-rows span{flex:1;min-width:0}.personal-batch-rows strong{font-weight:500}.personal-batch-rows small{display:block;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.personal-batch-rows>label>strong{white-space:nowrap;font-variant-numeric:tabular-nums}.personal-batch-charge{padding:16px;background:var(--soft);border-radius:3px;line-height:24px}.personal-upload-options{display:grid;gap:16px}.personal-upload-options .scenario-option{cursor:default}.personal-upload-options button.scenario-option{cursor:pointer}.personal-upload-options .scenario-option>span{font-size:14px;line-height:24px}.personal-upload-options small{font-size:12px;line-height:22px}.personal-upload-options .text-btn{align-self:flex-start}.modal:has(.personal-batch){width:min(760px,calc(100% - 32px))}
@media(max-width:760px){.personal-risk-counts{gap:0}.personal-risk-counts button{padding:12px 9px;gap:5px}.personal-risk-counts strong{font-size:13px}.personal-list-heading{flex-wrap:wrap}.personal-list-actions{margin-left:0;width:100%}.personal-batch-summary{flex-wrap:wrap}.personal-batch-rows>label{gap:8px;font-size:12px}.personal-batch-rows>label>strong{font-size:12px}}
.personal-account-note{display:flex;gap:24px;flex-wrap:wrap;padding:16px 0;margin-bottom:24px;border-bottom:1px solid var(--line);font-size:14px;color:var(--body)}.personal-account-note strong{margin-left:8px;color:var(--ink)}
.personal-usage-confirm{display:flex;flex-wrap:wrap;gap:12px 28px;padding:18px;margin:18px 0;background:var(--soft);border-radius:3px;font-size:14px}.personal-usage-confirm strong{font-variant-numeric:tabular-nums}.personal-usage-confirm p{flex-basis:100%;margin:0;font-size:13px;line-height:22px}
.personal-overview{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:0 24px;margin:4px 0 20px}.personal-scope{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px}.personal-scope .field{min-width:0;max-width:100%;font-size:13px}.personal-scope select{min-height:42px;font-size:15px;max-width:100%}.personal-scope>span{font-size:12px;color:var(--muted);padding-bottom:10px}
.personal-metrics{display:flex;gap:52px;margin:0;background:var(--soft);padding:22px 24px;border-radius:3px}.personal-metrics>div+div{border-left:1px solid #d6e2f2;padding-left:52px}.personal-metrics dt{color:var(--body);font-size:13px;margin-bottom:8px}.personal-metrics dd{margin:0;font-size:32px;line-height:40px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.5px}.personal-metrics small{font-size:13px;font-weight:400;letter-spacing:0;color:var(--body);margin-left:10px}.personal-overview-note{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:20px;margin:9px 0 0}
.personal-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:0 0 20px;border-bottom:1px solid var(--line)}.personal-filters .field{font-size:12px;min-width:120px;flex:1}.personal-filters input,.personal-filters select{min-width:0;width:100%;min-height:40px}.personal-filters .button{min-height:40px}
.personal-list-heading{display:flex;align-items:baseline;gap:12px;margin:24px 0 14px}.personal-list-heading h2{font-size:17px;font-weight:600}.personal-list-heading>span{font-size:12px;color:var(--muted)}
.personal-workspace .personal-invoice-table{width:100%;min-width:0;table-layout:fixed}.personal-invoice-table th:nth-child(1){width:34%}.personal-invoice-table th:nth-child(2){width:24%}.personal-invoice-table th:nth-child(3){width:14%;text-align:right}.personal-invoice-table th:nth-child(4){width:28%}.personal-invoice-table td{padding:19px 12px;vertical-align:top;line-height:22px}.personal-invoice-table td:first-child{padding-left:12px}.personal-invoice-table td strong{font-size:14px;line-height:22px;font-weight:600}.personal-invoice-table .invoice-sub{font-size:12px;line-height:20px;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}.personal-project{display:block;margin-top:5px;font-size:12px;color:var(--body);line-height:20px}.personal-invoice-table td.amount{white-space:nowrap;font-size:14px;font-weight:600}.personal-invoice-table .text-btn{white-space:nowrap;min-height:32px;padding:3px 0}
.personal-risk-line{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:13px;line-height:21px}.risk-level{display:inline-flex;align-items:center;gap:5px;width:fit-content;white-space:nowrap;padding:1px 7px;border:1px solid color-mix(in srgb,currentColor 24%,white);border-radius:3px;background:color-mix(in srgb,currentColor 7%,white);font-size:12px;font-weight:600;line-height:20px;color:var(--muted)}.risk-level::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}.level-major,.level-urgent{color:var(--red)}.level-concern{color:var(--orange)}.level-note,.level-general{color:var(--note)}.level-none,.level-normal{color:var(--green)}.personal-verification{display:block;font-size:12px;color:var(--body);margin-top:8px}.personal-empty{text-align:center;padding:40px!important;color:var(--body)}
.report-summary-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--body);margin-top:18px}.report-findings>h3{display:flex;align-items:baseline;gap:8px;margin:22px 0 12px}.report-findings>h3 .risk-level{font-size:15px}.report-findings>h3 small{font-size:12px;color:var(--muted);font-weight:400}.report-finding{background:#fff;border:1px solid var(--line);border-radius:6px;margin:12px 0;padding:0}.report-finding[open]{border-color:#b9cde5}.report-finding[open]>summary{border-bottom:1px solid var(--line)}.report-finding summary:hover{background:#fafbfd}.report-finding summary{position:relative;display:block;padding:16px 40px 16px 16px;cursor:pointer;list-style:none;font-size:15px;line-height:24px}.report-finding summary::-webkit-details-marker{display:none}.report-finding summary::after{content:'＋';position:absolute;right:16px;top:16px;color:var(--blue);font-weight:400}.report-finding[open] summary::after{content:'−'}.report-finding summary>span{font-weight:600}.report-finding summary>small{display:block;margin-top:6px;font-weight:400;font-size:13px;line-height:22px;color:var(--body)}.report-finding-body{margin:0;padding:20px;background:white;border-radius:0 0 6px 6px;display:flow-root}.report-finding-body dl{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px}.report-finding-body dl dt,.report-finding-body dl dd{margin:0;line-height:24px}.report-finding-body h4{padding-top:16px;border-top:1px solid var(--line)}.report-finding-body .evidence-item{padding:10px 0}.report-finding-body .evidence-item:last-child{border-bottom:0}.report-finding-body dl{margin:0}.report-finding-body dt{font-size:12px;color:var(--muted);margin:14px 0 6px}.report-finding-body dt:first-child{margin-top:0}.report-finding-body dd{font-size:14px;line-height:24px;margin:0}.report-finding-body h4{font-size:13px;margin:22px 0 8px}.report-finding-body p{font-size:13px;line-height:23px}.report-version{padding:0 0 12px;margin-bottom:16px;font-size:12px}.report-version strong{font-weight:500;color:var(--body)}.report-version p{font-size:12px;margin:4px 0 0;line-height:20px;color:var(--muted)}.report-scope>summary{font-size:14px;cursor:pointer;line-height:24px}.report-scope-list{margin-top:8px}.report-scope-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:22px}.report-scope-row strong{font-weight:500}.report-scope-row>div{min-width:0;overflow-wrap:anywhere}.report-scope-finding,.report-scope-row .note{display:block;margin:0;padding:0;background:none;font-size:13px;line-height:22px}.report-version-facts{font-size:12px;line-height:22px;overflow-wrap:anywhere}.report-version-facts dt{color:var(--muted);margin-top:12px}.report-version-facts dd{margin:0}
@media(max-width:1100px){.personal-invoice-table th:nth-child(1){width:33%}.personal-invoice-table th:nth-child(2){width:23%}.personal-invoice-table th:nth-child(3){width:16%}.personal-invoice-table th:nth-child(4){width:28%}}
@media(max-width:760px){.personal-overview{display:block}.personal-scope{align-items:start;flex-direction:column;gap:8px;margin-bottom:16px}.personal-scope .field{width:100%;min-width:0}.personal-scope>span{padding:0}.personal-metrics{gap:20px;padding:18px 16px}.personal-metrics>div+div{padding-left:20px}.personal-metrics dd{font-size:25px;line-height:34px}.personal-metrics small{font-size:11px;margin-left:5px}.personal-filters .field{flex-basis:calc(50% - 12px);min-width:0}.personal-invoice-table thead{display:none}.personal-invoice-table,.personal-invoice-table tbody{display:block}.personal-invoice-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:16px 0;gap:8px 12px;border-bottom:1px solid var(--line)}.personal-workspace .personal-invoice-table td{display:block;width:auto;max-width:none;padding:0!important;border:0;background:none}.personal-invoice-table td:first-child{grid-column:1;grid-row:1}.personal-invoice-table td:nth-child(2){grid-column:1/-1;grid-row:2;font-size:12px;color:var(--muted)}.personal-invoice-table td:nth-child(2)>span::before{content:'购方 '}.personal-invoice-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right}.personal-invoice-table td:nth-child(4){grid-column:1/-1;grid-row:3}.personal-invoice-table .personal-empty{grid-column:1/-1}.personal-invoice-table .invoice-sub{margin-top:3px}.report-scope-row{grid-template-columns:84px minmax(0,1fr);gap:12px}}

/* One invoice in context: two direct entries, one inline result, no extra page. */
.personal-invoice-table [data-invoice-id]{scroll-margin-top:90px}
.personal-invoice-link,.personal-risk-link{display:block;appearance:none;border:0;background:none;text-align:left;font:inherit;color:inherit;padding:0;cursor:pointer;max-width:100%;min-height:32px}
.personal-invoice-link:hover strong,.personal-risk-link:hover>span:last-child{text-decoration:underline;text-underline-offset:3px}
.personal-invoice-link:focus-visible,.personal-risk-link:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.personal-risk-link{display:flex}.personal-workspace .personal-invoice-table>tbody>.invoice-expanded>td{background:var(--subtle);border-bottom-color:transparent}
.personal-workspace .personal-invoice-table>tbody>.personal-result-row>td{padding:0 0 24px!important;white-space:normal}
.personal-result-host{border:1px solid var(--line);border-top:2px solid var(--blue);padding:0 24px 24px;border-radius:0 0 3px 3px;background:#fff}
.enterprise-report-heading{padding:20px 0 4px;overflow-wrap:anywhere}.enterprise-report-heading h3{font-size:18px;line-height:28px;font-weight:600;margin:4px 0}.enterprise-report-heading p{font-size:12px;color:var(--muted);margin:4px 0}
[data-enterprise-row]{scroll-margin-top:90px}.invoice-table>tbody>.invoice-expanded>td,.bulk-table>tbody>.invoice-expanded>td{background:var(--subtle);border-bottom-color:transparent}
.enterprise-result-host{min-width:0;overflow-wrap:anywhere}.enterprise-report-history{margin-top:24px}.enterprise-report-history>summary{cursor:pointer;font-size:14px;min-height:32px}
.drawer.enterprise-report-dialog{inset:32px 24px;margin:auto;width:min(1080px,calc(100% - 48px));height:calc(100% - 64px);max-height:100%;border:1px solid var(--line);border-radius:3px}
.drawer.enterprise-report-dialog .drawer-body{padding:0 28px 24px}
@media(max-width:760px){
 .drawer.enterprise-report-dialog{inset:12px;margin:auto;width:calc(100% - 24px);height:calc(100% - 24px)}.drawer.enterprise-report-dialog .drawer-body{padding:0 14px 20px}
 .enterprise-report-heading h3{font-size:16px;line-height:26px}
 .bulk-table:has([data-enterprise-row]),.bulk-table:has([data-enterprise-row])>tbody{display:block;min-width:0}
 .bulk-table:has([data-enterprise-row])>thead{display:none}
 .bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}
 .bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td{padding:0;border:0;min-width:0;overflow-wrap:anywhere}
 .bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:first-child{grid-column:1;grid-row:1}.bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(2){grid-column:2;grid-row:1}.bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(3){grid-column:2/-1;grid-row:2;color:var(--muted)}
 .bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(4){grid-column:3;grid-row:1}.bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(5){grid-column:2/-1;grid-row:3;color:var(--muted)}
 .bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(6){grid-column:2;grid-row:4}.bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(7){grid-column:2;grid-row:5}.bulk-table:not(.invoice-ledger-table)>tbody>[data-enterprise-row]>td:nth-child(8){grid-column:3;grid-row:4/6;align-self:end}
}
.personal-result-error{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:24px 0}.personal-result-error p{flex:1}
.personal-result-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}
.personal-result-nav [role=tablist]{display:flex;gap:28px}.personal-result-nav [role=tab]{background:none;border:0;border-bottom:2px solid transparent;padding:18px 0 16px;min-height:48px;font-size:15px;color:var(--body);font-weight:500;cursor:pointer}
.personal-result-nav [role=tab][aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue)}.personal-result-nav>.button{border:0;color:var(--muted);padding:6px 0;font-size:12px}
.personal-report [hidden]{display:none!important}.personal-report [role=tabpanel]{min-width:0;padding:16px 0 0}.personal-report [role=tabpanel]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.personal-verification-result{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.personal-verification-result small{margin-left:auto;font-size:12px}
.personal-report{width:100%;max-width:880px;margin-inline:auto}.personal-report-heading{display:flex;align-items:start;justify-content:flex-start;gap:32px;padding-bottom:12px}.personal-report-heading>div:first-child{max-width:560px}.personal-report-heading h3{font-size:20px;line-height:30px;margin:0 0 4px}.personal-report-heading p{margin:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.personal-report-amount{text-align:left;flex:none}.personal-report-amount small{display:block;color:var(--muted);font-size:12px}.personal-report-amount strong{font-size:26px;line-height:38px;font-variant-numeric:tabular-nums}
.personal-invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;background:var(--subtle);border-radius:3px}
.personal-invoice-parties dl{margin:0}.personal-invoice-parties dl>div+div{margin-top:12px}.personal-report-facts dt{font-size:12px;color:var(--muted);margin:0 0 5px}.personal-report-facts dd{margin:0;font-size:14px;line-height:24px;overflow-wrap:anywhere}.personal-invoice-parties dl>div:first-child dd{font-size:16px;font-weight:500}
.personal-report-facts .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding:0;margin:0;border:0}.personal-report-facts .facts-identity{grid-template-columns:repeat(4,minmax(0,1fr))}.personal-report-facts .facts-amounts{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-fact-group{margin:16px 0}.invoice-fact-group h4{font-size:14px;line-height:24px;font-weight:600;margin:0 0 8px}
.personal-invoice-items{border-top:1px solid var(--line);padding-top:16px}.personal-invoice-items>summary{cursor:pointer;font-size:14px;font-weight:500;min-height:32px;line-height:24px}
.personal-item-table{margin-top:12px}.personal-item-table table{width:100%;table-layout:fixed;border-collapse:collapse}
.personal-report .personal-item-table thead{display:table-header-group}.personal-report .personal-item-table tbody{display:table-row-group}.personal-report .personal-item-table tr{display:table-row;border:0}.personal-report .personal-item-table td,.personal-report .personal-item-table th{display:table-cell!important;position:static;padding:12px!important;height:auto;white-space:normal;border-bottom:1px solid var(--line);font-size:13px;text-align:left;background:#fff}.personal-report .personal-item-table td::before{content:none}
.personal-report .personal-item-table th{background:var(--subtle);font-size:12px;font-weight:400;color:var(--muted)}.personal-report .personal-item-table th:first-child{width:60%}.personal-report .personal-item-table th:nth-child(2),.personal-report .personal-item-table th:nth-child(3){width:20%}
.personal-report .personal-item-table td:not(:first-child),.personal-report .personal-item-table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.personal-risk-empty{padding:24px;background:var(--soft);border-radius:3px}.personal-risk-empty h3{font-size:20px;line-height:30px;font-weight:600;margin:4px 0 8px}.personal-risk-empty p{font-size:14px;line-height:24px;color:var(--body);margin:4px 0}.personal-report .report-section:first-child{margin-top:0}
.personal-report-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.personal-report-actions [data-personal=risk]{background:var(--blue);color:#fff;border-color:var(--blue)}.personal-report-actions .button{font-size:13px;min-height:38px}
.report-title-line{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin:6px 0 12px}.report-title-line h3{margin:0}.report-score{display:inline-flex;align-items:baseline;gap:6px;padding-left:16px;border-left:1px solid #cbd7e8;white-space:nowrap;font-size:12px;color:var(--body)}.report-score strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.report-risk-counts{display:flex;align-items:baseline;gap:10px 22px;flex-wrap:wrap;margin:4px 0;font-size:13px;color:var(--body)}.report-risk-counts>span{white-space:nowrap}.report-risk-counts strong{font-size:16px;font-weight:600}.report-status>.report-risk-counts+p{margin-top:10px}
.report-finding{border:0;border-top:1px solid var(--line);border-radius:0;margin:0}.report-finding:last-child{border-bottom:1px solid var(--line)}.report-finding[open]{border-color:var(--line)}
.report-finding .report-finding-line{display:grid;grid-template-columns:minmax(120px,20%) minmax(0,1fr);gap:20px;padding:12px 36px 12px 0;font-size:14px;line-height:24px}.report-finding-line>span{font-weight:600}.report-finding .report-finding-line>small{margin:0;font-size:14px;font-weight:400;color:var(--body)}.report-finding-body{padding:16px 0}.report-finding summary::after{top:12px}
.report-status.report-status-compact{padding:12px 16px;margin-bottom:12px}.report-status-compact .report-title-line{margin:0;gap:12px}.report-status-compact .report-title-line h3{font-size:20px;line-height:28px;margin:0}.report-status-compact .report-risk-counts{border-left:1px solid #cbd7e8;padding-left:12px;margin:0}.report-status-compact p{margin:8px 0 0}
.report-section.report-findings{margin:0 0 12px}.report-findings>h3{margin:12px 0 8px}.report-more{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.report-more>.report-section{margin:0;padding:0;border:0;font-size:12px}.report-more>.report-section[open]{flex-basis:100%}.report-more summary{font-size:12px;cursor:pointer;line-height:24px}.personal-report-actions{margin-top:16px;padding-top:12px}
.report-overview{border:1px solid var(--line);border-radius:4px;background:#fff}.report-overview .report-status{margin:0;border-radius:3px 3px 0 0;border-bottom:1px solid var(--line)}.report-overview .report-findings{margin:0;padding:0 16px}.report-overview .report-finding:first-child{border-top:0}.report-overview .report-findings:last-of-type .report-finding:last-child{border-bottom:0}.report-overview>.note{margin:12px 16px}.report-finding-name{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}.report-finding-category{font-size:11px;line-height:20px;font-weight:600}
@media(max-width:760px){.report-title-line{gap:10px}.report-score{padding-left:10px}.report-finding .report-finding-line{grid-template-columns:1fr;gap:2px}.report-finding .report-finding-line>small{font-size:13px}.report-status-compact .report-risk-counts{flex-basis:100%;padding:0;border:0}}
.modal:has(.personal-report){width:min(1080px,calc(100% - 48px))}.modal:has(.personal-report) .modal-body{padding:24px 32px}
@media(max-width:760px){
 .personal-workspace .personal-invoice-table>tbody>.personal-result-row{display:block;padding:0;border:0}.personal-workspace .personal-invoice-table>tbody>.personal-result-row>td{display:block}
 .personal-result-host{padding:0 14px 20px}.personal-result-nav{gap:10px}.personal-result-nav [role=tablist]{gap:22px}.personal-result-nav [role=tab]{font-size:14px}.personal-verification-result{gap:6px 10px}.personal-verification-result small{flex-basis:100%;margin:0}
 .personal-invoice-parties{grid-template-columns:1fr;gap:20px}.personal-report-facts .facts{grid-template-columns:1fr 1fr;gap:18px}.personal-invoice-parties dl>div:first-child dd{font-size:15px}
 .personal-report-heading{display:block}.personal-report-amount{text-align:left;margin-top:12px}.personal-risk-empty{padding:18px}.personal-report .report-status{padding:18px}.personal-report .report-status h3{font-size:20px}
 .personal-report-actions{gap:8px}.personal-report-actions .button{font-size:12px}.modal:has(.personal-report){width:calc(100% - 24px)}.modal:has(.personal-report) .modal-body{padding:20px 16px}
}

invoice-date-range{display:flex;min-width:260px}.date-range-trigger{text-align:left;width:100%}.date-range-popup{position:fixed;inset:auto;margin:0;width:min(320px,calc(100vw - 32px));padding:16px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--body);z-index:1000}.date-range-nav{display:flex;justify-content:space-between;align-items:center;gap:10px}.date-range-nav input{min-width:0;width:180px}.date-range-popup p{font-size:12px;margin:10px 0}.date-range-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.date-range-grid button{min-height:34px;border:0;background:white;color:inherit;border-radius:3px;cursor:pointer}.date-range-grid span{font-size:12px;line-height:28px}.date-range-grid .in-range{background:#ECF2FE}.date-range-grid button[aria-pressed=true]{background:#1975DA;color:white}.date-range-popup button:focus-visible{outline:2px solid #1975DA;outline-offset:2px}
.personal-risk-line{flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px 8px}.personal-invoice-table td{padding-top:16px;padding-bottom:16px}
html{scrollbar-gutter:stable}html:has(dialog:modal){overflow:hidden}
.personal-export-filters fieldset{border:0;padding:0;margin:16px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:16px}.personal-export-filters .field,.personal-export-filters invoice-date-range{min-width:0}.personal-export-filters select{width:100%;min-width:0}.personal-verification{display:inline-flex;align-items:center;gap:6px;padding:1px 6px;border:1px solid var(--line);border-radius:3px;font-size:11px;line-height:20px}.personal-verification::before{content:'真伪';color:var(--muted);padding-right:6px;border-right:1px solid var(--line)}
@media(max-width:640px){.personal-export-filters fieldset{grid-template-columns:1fr}}
.modal:has(.personal-report),.drawer.enterprise-report-dialog{inset:0 0 0 auto;margin:0 0 0 auto;width:min(760px,92vw);height:100dvh;max-height:100dvh;border-radius:0;border-left:1px solid var(--line);z-index:6}
.modal:has(.personal-report) .modal-body{padding:20px 24px}.modal:has(.personal-report) .personal-report-heading h3{font-size:18px;line-height:27px}
.personal-invoice-table th:nth-child(1){width:32%}.personal-invoice-table th:nth-child(2){width:23%}.personal-invoice-table th:nth-child(3){width:13%}.personal-invoice-table th:nth-child(4){width:22%}.personal-invoice-table th:nth-child(5){width:10%}
.personal-verification{margin:0;white-space:nowrap}.personal-verification::before{content:none}
@media(max-width:760px){.modal:has(.personal-report),.drawer.enterprise-report-dialog{width:100%;max-width:100%;height:100dvh}.modal:has(.personal-report) .modal-body{padding:20px 16px}.personal-invoice-table td:nth-child(4){grid-column:1;grid-row:3}.personal-invoice-table td:nth-child(5){grid-column:2;grid-row:3;text-align:right}}
.modal-body,.drawer{scrollbar-gutter:stable}
.modal-head,.drawer-head{background:var(--subtle)}
.modal-foot,.drawer-actions{background:var(--subtle)}
.modal-head{padding:16px 24px}.modal-body{padding:20px 24px}.modal-foot{padding:12px 24px}
.modal-body>p{margin:0 0 12px;line-height:1.7}.modal-body>p:last-child{margin-bottom:0}
.modal-body>p:empty{display:none}
.modal-body>.field select,.modal-foot>.field select{min-width:0;width:100%;text-overflow:ellipsis}
.modal-foot>.field{flex:1 1 240px;min-width:0;max-width:100%}
.dialog-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 24px;padding:16px;margin-bottom:12px;border-radius:4px;background:var(--soft);color:var(--body);font-size:14px}
.dialog-summary strong{color:var(--ink);font-size:18px}
.modal:has(.risk-confirm-list){width:min(760px,calc(100% - 32px))}
.risk-confirm-list>div{grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;align-items:start}
.risk-confirm-list>div>span{min-width:0;overflow-wrap:anywhere}
.risk-confirm-list>div>span:last-child{text-align:right;max-width:180px;color:var(--body);font-size:13px}
.risk-confirm-list small{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
@media(max-width:640px){.modal-head{padding:16px}.modal-body{padding:16px}.modal-foot{padding:12px 16px}.modal-foot>.field{flex-basis:100%}.dialog-summary{gap:6px 16px;padding:12px}.risk-confirm-list>div{grid-template-columns:minmax(0,1fr);gap:6px}.risk-confirm-list>div>span:last-child{text-align:left;max-width:none}}

/* Personal upload: one file list and one query settings group. */
.upload-files{max-height:220px;overflow:auto;border-top:1px solid var(--line,#dce4ee);margin:16px 0}
.upload-file{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-left:3px solid transparent;border-bottom:1px solid var(--line,#dce4ee)}
.upload-file>span:first-child{display:flex;align-items:center;gap:10px;min-width:0}.upload-file strong{font-size:14px;overflow-wrap:anywhere}.upload-file small,.upload-file>span:last-child{color:#536579;font-size:13px}.upload-file svg{width:20px;height:20px;flex-shrink:0}.upload-file small{white-space:nowrap}
.personal-risk-policy .upload-verification,.upload-risk-toggle{display:flex;align-items:center;gap:10px}.upload-verification{padding:0 0 12px;border-bottom:1px solid var(--line,#dce4ee)}.upload-verification span,.upload-risk-toggle>span{font-size:13px;color:#536579}.upload-risk-toggle{margin-top:12px!important}.upload-risk-options{padding-left:28px}.upload-risk-options .field{max-width:340px}.upload-risk-options .note{margin:8px 0}.personal-risk-policy .upload-remember{font-size:13px;color:#536579;margin-top:12px}.upload-counts{display:flex;gap:12px 28px;flex-wrap:wrap;background:#edf3ff;padding:14px 16px;margin-top:16px}.upload-counts p{width:100%;margin:0}.upload-counts strong{font-weight:700}
@media(max-width:600px){.upload-file{gap:12px}.upload-file>span:first-child{flex-wrap:wrap}.upload-file>span:last-child{min-width:60px}.upload-risk-options{padding-left:0}}

#modal .modal-body:has(.upload-files){padding:24px}#modal .modal-body:has(.upload-files)>p.note{background:none;padding:0;margin:0 0 12px}.upload-risk-options .field{margin-top:10px}.upload-verification+.upload-verification{padding-top:12px;border-bottom:0}

@media(max-width:600px){#modal:has(.upload-files) button,#modal:has(.upload-files) select{min-height:44px}#modal:has(.upload-files) .icon-button{min-width:44px;padding:0}.personal-risk-policy>label{min-height:44px}}

.personal-overview-note:empty,.pending-count-note:empty{display:none}

.upload-file-preview{display:flex;align-items:center;gap:10px;min-width:0;padding:4px 0;border:0;background:none;color:var(--blue,#176dc2);text-align:left;cursor:pointer}.upload-file-preview:hover strong{text-decoration:underline}.upload-file-preview small{color:inherit}.upload-file-preview:focus-visible{outline:2px solid #176dc2;outline-offset:3px}
#modal:has(.upload-preview){width:min(1000px,calc(100vw - 32px))}.upload-preview{border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-top:12px}.upload-preview-toolbar{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#fff}.upload-preview-toolbar strong{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}.upload-preview-toolbar span{white-space:nowrap;font-size:13px;color:var(--body)}.upload-preview-toolbar .button{padding:6px 10px;min-height:36px;flex-shrink:0}.upload-preview-body{height:clamp(240px,36dvh,440px);overflow:auto;text-align:center;background:#f7f9fc}.upload-preview-body iframe{width:100%;height:100%;display:block;border:0}.upload-preview-body img{display:block;max-width:100%;height:auto;margin:auto}.upload-preview-body>p{padding:24px 16px 8px}.upload-file-preview[aria-pressed=true] strong{color:var(--blue);text-decoration:underline}.upload-preview+.upload-files{max-height:132px;margin-top:8px}.upload-preview+.upload-files .upload-file{padding:6px 0}

.upload-file.is-previewing{background:var(--soft,#eef4ff);border-left-color:var(--blue,#176dc2)}.upload-preview-toolbar button[hidden]{display:none}

.document-page-controls{position:sticky;top:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:6px;background:#fff;border-bottom:1px solid var(--line);z-index:1}.document-page-controls[hidden]{display:none}.document-page-controls .button{min-height:44px;padding:4px 10px}.upload-preview-body canvas,.original-file-preview canvas{display:block;background:white;margin:auto;max-width:100%}.original-file-preview{min-height:240px;max-height:65dvh;overflow:auto;background:var(--subtle,#f7f9fc)}.original-file-preview img{max-width:100%;height:auto;display:block;margin:auto}#modal:has(.original-file-preview):not(:has(.personal-report)){width:min(1000px,calc(100vw - 32px))}.original-file-name{overflow-wrap:anywhere}
.original-preview-enlarge-target{cursor:zoom-in}.original-preview-enlarge-target:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
dialog.original-preview-fullscreen{inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;overflow:hidden;scrollbar-gutter:auto}
dialog.original-preview-fullscreen[open]{display:flex;flex-direction:column}.original-preview-fullscreen>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:12px 16px;border-bottom:1px solid var(--line)}.original-preview-fullscreen>header strong{min-width:0;overflow-wrap:anywhere;font-size:14px}.original-preview-fullscreen>header .button{flex:none;min-height:44px}
.original-preview-viewport{flex:1;min-height:0;overflow:auto;padding:16px;scrollbar-gutter:stable}.original-preview-fullscreen .original-file-preview,.original-preview-fullscreen .upload-review-original,.original-preview-fullscreen [data-upload-pdf]{width:100%;min-height:0;max-height:none;overflow:visible;margin:0;padding:0;border:0;border-radius:0;background:#fff}
dialog.original-preview-fullscreen img,dialog.original-preview-fullscreen canvas{display:block;width:100%!important;max-width:100%;height:auto!important;max-height:none;object-fit:contain;margin:auto;cursor:default}

.company-scope-choices{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow:auto;grid-column:1/-1;padding:8px 12px;border:1px solid #dfe5ed;border-radius:6px}.company-scope-choices[hidden]{display:none}.company-scope-choices legend{padding:0 4px;font-weight:600}.company-scope-choices label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.company-scope-choices input{width:18px;min-width:18px;height:18px;margin:0}.company-scope-tree,.company-scope-tree ul{list-style:none;padding:0;margin:0}.company-scope-tree ul{margin-left:20px}.company-scope-row{display:flex;align-items:center;gap:4px;min-width:0}.company-scope-row>label,.company-scope-row>span:not(.company-scope-toggle-space){min-width:0;overflow-wrap:anywhere}.company-scope-row>small{color:var(--body)}.company-scope-toggle,.company-scope-toggle-space{flex:0 0 44px;width:44px;min-height:44px}.company-scope-toggle{display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--blue)}.company-scope-toggle .icon{width:16px;height:16px}.company-scope-toggle[aria-expanded=true] .icon{transform:rotate(90deg)}

.inline-original .original-file-preview{min-height:0;max-height:none;overflow:visible;background:#fff}.original-download{display:inline-block;margin:8px 0 16px}.original-fields>summary{cursor:pointer;font-weight:600;padding:12px 0}

.member-recipient-fields{border:0;padding:0;margin:0;min-width:0;display:grid;gap:16px;grid-column:1/-1}.member-recipient-fields legend{padding:0;margin-bottom:12px;font-weight:600}.member-recipient-fields label{display:grid;gap:8px}.member-recipient-fields label[hidden]{display:none}

.upload-file>span:first-child{flex:1;min-width:0}.upload-file-remove{flex:none;min-height:36px;padding:6px 12px}.document-browser-preview{display:block;width:100%;height:480px;border:0;background:#fff}

.upload-relative-path{display:block;max-width:100%;overflow-wrap:anywhere;color:var(--muted)}

.upload-history-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.upload-history-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.upload-history-row small{display:block;margin-top:6px;color:var(--muted)}
.upload-history-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.modal:has([data-upload-review-panel]){width:min(1320px,96vw)}
.upload-review-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:24px;align-items:start}
.upload-review-heading{display:flex;justify-content:space-between;gap:16px}.upload-review-heading h3{margin:0;font-size:20px}.upload-review-heading p{margin:8px 0}.upload-review-heading>strong{white-space:nowrap;font-size:22px}
.upload-review-item{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);padding:16px;cursor:pointer;color:var(--ink);overflow-wrap:anywhere}
.upload-review-item.is-selected{background:#ecf2fe;box-shadow:inset 3px 0 var(--blue)}
.upload-review-item strong,.upload-review-item span,.upload-review-item small{display:block}.upload-review-item strong{font-size:16px}.upload-review-item span,.upload-review-item small{margin-top:7px}.upload-review-item small{color:var(--muted)}
.upload-review-original{border:1px solid var(--line);border-radius:4px;padding:12px;min-height:180px}.upload-review-original img,.upload-review-original canvas{display:block;max-width:100%;max-height:52vh;object-fit:contain;margin:auto}.upload-review-original canvas{width:auto!important;height:auto!important}.upload-review-original .document-browser-preview{height:48vh}.upload-review-original>a{display:inline-block;margin-top:12px}
.upload-review-layout [data-upload-confirm]{margin-top:16px}.upload-review-layout [data-upload-confirm] .button{margin-right:10px}
.upload-review-layout .note{padding:10px 12px;margin:12px 0}.upload-review-layout .upload-history-actions{margin-top:12px}.upload-review-original{margin-top:16px}
@media(max-width:720px){.upload-review-layout{grid-template-columns:1fr}.upload-review-list{grid-row:1;display:flex;overflow-x:auto}.upload-review-item{min-width:220px;max-width:260px;border:1px solid var(--line)}.upload-review-heading{flex-wrap:wrap}}

.upload-files{max-height:260px;overflow:auto;scrollbar-gutter:stable}

/* Upload starts with choosing files; settings appear after selection. */
.modal:has(.upload-flow){width:min(760px,calc(100vw - 32px))}
.modal:has(.upload-flow .upload-preview){width:min(1000px,calc(100vw - 32px))}
#modal:has(.upload-flow) .modal-body{padding:24px 28px}
.upload-flow{font-size:16px;line-height:1.6}
.upload-picker{text-align:center;padding:28px 16px;background:var(--subtle);border:1px dashed var(--line);border-radius:6px}
.upload-picker-icon{display:inline-flex;color:var(--blue);margin-bottom:12px}
.upload-picker-icon .icon,.upload-picker-icon svg{width:44px;height:44px}
.upload-picker h3{font-size:24px;line-height:1.4;margin:0 0 8px}
.upload-picker p{margin:0 0 24px;color:var(--body)}
.upload-picker-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
#modal .upload-picker-actions .button{min-height:52px;padding:12px 24px;font-size:18px;font-weight:600}
#modal .upload-picker .upload-formats{font-size:14px;line-height:1.7;margin:20px 0 0}
.upload-other{margin-top:20px}
.upload-other>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0}
.upload-other span{font-size:14px;color:var(--body)}
.upload-selection-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.upload-selection-head>strong{font-size:20px}
.upload-flow .upload-files{margin:12px 0 24px}
.upload-flow .upload-file strong{font-size:16px}
.upload-flow .upload-file-remove{min-height:44px;font-size:15px}
.upload-flow .upload-preview-toolbar strong{font-size:16px}
.upload-flow .upload-preview-body{height:clamp(280px,40dvh,440px)}
.upload-flow .upload-company{display:grid;gap:8px;font-size:16px}
.upload-flow .upload-company select{font-size:16px;min-height:48px}
.upload-flow .upload-company small{font-size:14px;color:var(--body)}
.upload-flow .personal-risk-policy{margin:20px 0;padding:16px}
.upload-flow .upload-verification span,.upload-flow .upload-risk-toggle>span,.upload-flow .upload-remember{font-size:15px}
#modal .upload-flow .personal-risk-policy .note{font-size:14px}
.upload-flow .upload-counts{margin-top:20px;font-size:16px}
.upload-flow .upload-caption,.upload-flow .upload-charge-note{font-size:14px;color:var(--body);margin:14px 0 0}
.upload-flow .upload-charge-note{padding-top:14px;border-top:1px solid var(--line)}
#modal:has(.upload-flow) .text-btn{font-size:15px;min-height:44px}
#modal:has(.upload-flow) .modal-foot .button{font-size:16px;min-height:48px}
#modal:has(.upload-flow) .modal-foot .upload-counts{flex:1;margin:0;padding:0;background:none;gap:4px 16px;font-size:15px;text-align:left}
#modal:has(.upload-flow) .modal-foot .upload-counts p{font-size:14px;line-height:1.5}
#modal:has(.upload-picker) .modal-foot{display:none}
#modal:has(.upload-flow) .modal-head .icon-button{width:44px;height:44px;padding:0}
@media(max-width:600px){
 #modal:has(.upload-flow) .modal-body{padding:20px 16px}
 .upload-picker{padding:24px 12px}.upload-picker h3{font-size:22px}
 .upload-picker-actions{flex-direction:column}.upload-picker-actions .button{width:100%}
 .upload-flow .upload-file{flex-wrap:wrap;gap:8px}.upload-flow .upload-file>span:first-child{flex-basis:100%}
 .upload-flow .upload-file-preview{flex:1}.upload-flow .upload-file-preview strong{word-break:break-all}
 .upload-flow .upload-file>span:nth-child(2){flex:1}
 .upload-flow .upload-preview-toolbar{flex-wrap:wrap}.upload-flow .upload-preview-toolbar strong{flex-basis:100%}
 .upload-flow .upload-preview-body{height:280px}
 #modal:has(.upload-flow) .modal-foot{flex-wrap:wrap;gap:10px}
 #modal:has(.upload-flow) .modal-foot .upload-counts{flex-basis:100%;justify-content:space-between}
}

/* Desktop working surfaces: one filter per decision, readable controls and full-width records. */
.connection-state:empty,.personal-feedback:empty{display:none}
.personal-filters{padding-top:16px;gap:16px}
.personal-filters .field,.personal-filters .date-range-field{font-size:14px}
.personal-filters input,.personal-filters select,.personal-filters .button,.personal-filters .date-range>summary{min-height:44px;font-size:15px}
.invoice-date-inputs{min-width:300px!important;flex:2!important}
.invoice-date-inputs>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.invoice-date-inputs label{display:flex;flex-direction:column;gap:4px;font:inherit;color:inherit;min-width:0}
.invoice-date-inputs input{width:100%;min-width:0;color:var(--text)}
[data-filter-error]:empty{display:none}
[data-filter-error]{font-size:14px;color:var(--body);flex-basis:100%}
@media(max-width:600px){.invoice-date-inputs{min-width:0!important;flex-basis:100%!important;grid-column:1/-1}}
.personal-workspace .personal-risk-counts button{min-height:44px;font-size:14px}
.personal-workspace .personal-invoice-table td,.invoice-workspace .bulk-table td{font-size:15px}
.personal-workspace .personal-invoice-table .invoice-sub,.personal-workspace .personal-project{font-size:13px;line-height:1.6}
.personal-workspace .personal-verification{font-size:13px}
.personal-workspace .personal-scope .field{font-size:14px}
.personal-workspace .personal-overview{margin-bottom:16px}
.personal-workspace .personal-metrics{padding:16px 24px}
.personal-account-note{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:24px;background:var(--soft);border-radius:4px;font-size:15px}
.personal-account-note strong{font-size:28px;color:var(--ink);font-variant-numeric:tabular-nums}
.personal-count-ledger{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.personal-count-ledger p:empty{display:none}
.personal-count-ledger .bulk-table{min-width:560px;width:100%;font-size:15px}
.personal-count-ledger .bulk-table th,.personal-count-ledger .bulk-table td{padding:16px}
.personal-count-ledger .button,.account-upgrade>summary{min-height:44px;font-size:15px}
.account-upgrade{margin-top:16px}
.account-upgrade>summary{cursor:pointer;padding:12px 0;color:var(--blue)}
#menu{min-width:44px;min-height:44px;padding:8px}
.heading:has(+.personal-feedback) .button,.heading:has(+.connection-state) .button{min-height:44px}
.personal-workspace .workbench-recent .personal-risk-link{min-height:44px}
/* Workbench keeps related actions together instead of stretching them across wide screens. */
#main:has(>.workbench-start),.personal-workspace:has(>.workbench-start){max-width:1280px;margin-inline:auto}
.heading:has(+.home-feedback){grid-template-columns:minmax(0,1fr) auto;margin-bottom:16px}
.heading:has(+.home-feedback) .button{min-height:44px}
.home-feedback:empty,.workbench-record-status:empty{display:none}
.workbench-start{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:24px;margin-bottom:24px}
.workbench-upload{display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:16px;padding:24px;background:var(--soft);border:1px solid var(--line);border-radius:8px}
.workbench-upload h2{font-size:24px;line-height:1.4;margin:0 0 8px}.workbench-upload p{font-size:16px;line-height:1.7;margin:0;color:var(--body)}.workbench-upload>div>span{display:block;margin-top:8px;font-size:13px;color:var(--body);line-height:1.7}
.workbench-upload-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;flex:none}.workbench-upload-actions .button{font-size:15px;min-height:44px;padding:10px 16px;justify-content:center}
.workbench-shortcuts{display:grid;align-content:center;gap:0}.workbench-shortcuts>button{display:flex;align-items:center;gap:16px;min-height:80px;padding:16px 8px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left}.workbench-shortcuts>button:last-child{border-bottom:0}.workbench-shortcuts>button>span:nth-child(2){flex:1;min-width:0}.workbench-shortcuts strong{display:block;font-size:16px;font-weight:600}.workbench-shortcuts small{display:block;font-size:14px;line-height:1.6;color:var(--body);margin-top:4px}.workbench-shortcuts .icon{color:var(--body);flex:none}
.workbench-section{margin-top:28px;min-width:0}.workbench-section .section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}.workbench-section h2{font-size:20px;line-height:1.5;margin:0}.workbench-section .section-head>div{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.workbench-scope{font-size:13px;color:var(--body)}.workbench-section .text-btn{font-size:15px;min-height:44px}
.workbench-section.workbench-attention-section .section-head{margin-bottom:4px}
.workbench-attention{display:flex;flex-wrap:wrap;gap:4px 12px;border-bottom:1px solid var(--line);padding-bottom:8px}.workbench-attention>button{display:flex;gap:8px;align-items:center;padding:6px 8px;text-align:left;border:0;background:#fff;min-width:0;min-height:44px}.workbench-attention>button>span:first-child{font-size:15px;font-weight:500}.workbench-attention strong{font-size:18px;line-height:1.3;color:var(--ink);font-variant-numeric:tabular-nums}.workbench-action-label{display:flex;align-items:center;font-size:13px;color:var(--body)}.workbench-attention-note{font-size:14px;line-height:1.7;color:var(--body);margin:6px 0}.workbench-attention-note:empty{display:none}
.enterprise-workbench{width:100%}
.workbench-section.enterprise-workbench .task-row{grid-template-columns:28px minmax(0,1fr) 110px 110px;min-height:88px}
.enterprise-workbench .task-row>.workbench-task-state{width:auto;height:auto;border:0;background:none;display:block;font-size:14px;color:var(--body);text-align:right}
.enterprise-workbench .task-row>.button{justify-content:center;min-height:44px;font-size:15px}
@media(hover:hover) and (pointer:fine){.workbench-shortcuts>button:hover:not(:disabled),.workbench-attention>button:hover:not(:disabled){background:var(--subtle)}}
@media(max-width:1100px){.workbench-start{grid-template-columns:1fr}.workbench-shortcuts{grid-template-columns:1fr 1fr;gap:24px}.workbench-shortcuts>button{border-bottom:0}}
@media(max-width:600px){.workbench-start{gap:12px;margin-bottom:24px}.workbench-upload{padding:20px;align-items:flex-start;flex-direction:column;gap:16px}.workbench-upload-actions{flex-direction:row;flex-wrap:wrap;width:100%}.workbench-upload-actions .button{flex:1}.workbench-shortcuts{grid-template-columns:1fr;gap:0}.workbench-shortcuts>button{border-bottom:1px solid var(--line)}.workbench-attention>button{padding-inline:4px;gap:6px}.workbench-section{margin-top:24px}.workbench-section .section-head{gap:8px}.workbench-section.enterprise-workbench .task-row{grid-template-columns:24px minmax(0,1fr) auto;gap:12px}.enterprise-workbench .task-row>.workbench-task-state{grid-column:2;text-align:left;grid-row:2}.enterprise-workbench .task-row>.button{grid-column:3;grid-row:2}.enterprise-workbench .task-row>div{grid-column:2/-1}}
.enterprise-workbench .task-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}
.enterprise-workbench .task-row strong{font-size:16px;overflow-wrap:anywhere}
.enterprise-workbench .task-row p{font-size:14px;margin:8px 0 0;color:var(--body)}
.enterprise-workbench .task-row .text-btn{min-height:44px;font-size:15px;white-space:nowrap}
@media(max-width:600px){.personal-account-note{align-items:flex-start;flex-direction:column;padding:20px}.personal-filters{gap:12px}.personal-filters>.field,.personal-filters>.date-range-field{flex-basis:calc(50% - 12px)}.enterprise-workbench .task-row{grid-template-columns:24px minmax(0,1fr);gap:12px}.enterprise-workbench .task-row>.text-btn{grid-column:2;justify-self:start}.personal-workspace .personal-invoice-table td{font-size:14px}}

.account-allowances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.account-allowances .personal-usage-confirm{margin:0;padding:16px 0;background:#fff;border-top:1px solid var(--line);border-radius:0;font-size:15px}
.task-dialog-content{display:grid;gap:20px}.task-dialog-content>p{margin:0}.task-dialog-status{min-height:48px;line-height:24px;margin:0;display:flex;align-items:center}.task-summary-object{min-width:0}.task-summary-object>div{min-width:0}.task-summary-object strong{overflow-wrap:anywhere}.task-summary-object>.icon{flex:none}.personal-usage-confirm.allowance-summary{display:block;padding:16px;background:var(--subtle);margin:0;border-radius:6px}.allowance-summary header{display:flex;align-items:center;justify-content:space-between;gap:12px}.allowance-summary header strong{display:flex;align-items:center;gap:8px;font-size:14px}.allowance-summary .icon{width:18px;height:18px;color:var(--body)}.allowance-summary small{font-size:12px;line-height:20px;color:var(--body)}.allowance-available{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:12px;font-size:13px;flex-wrap:wrap}.allowance-available strong{font-size:24px;font-variant-numeric:tabular-nums;margin:0 4px}.allowance-summary progress{display:block;width:100%;height:6px;margin:12px 0;accent-color:var(--blue)}.allowance-summary p{margin:8px 0;font-size:13px}.allowance-summary .allowance-shortfall{color:var(--orange)}.usage-explanation{margin:16px 0 24px;font-size:13px;line-height:24px;color:var(--body)}.usage-explanation summary{cursor:pointer;width:fit-content;min-height:32px;padding:4px 0}.usage-explanation p{max-width:680px;margin:8px 0}.contact-steps{padding-left:24px;margin:0 0 24px}.contact-steps li{padding:8px 0}.contact-steps span{display:block;color:var(--body);font-size:14px;margin-top:4px}
@media(pointer:coarse){.modal .button,.modal input:not([type=checkbox]):not([type=radio]),.modal select,.reimbursement-dialog .button{min-height:44px}.modal .icon-button,.reimbursement-dialog .icon-button{width:44px;height:44px;padding:8px}}
.personal-workspace .settings-section:has(.account-allowances)>.note{background:none;padding:0;font-size:14px}
@media(max-width:600px){.account-allowances{grid-template-columns:1fr;gap:0}}

.bulk-fields{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding:16px 0;align-items:end}
.bulk-fields .invoice-date-inputs{grid-column:span 2;min-width:0!important}
.bulk-fields label,.bulk-fields .field{font-size:14px;color:var(--body)}
.bulk-fields select,.bulk-fields input,.bulk-fields .date-range-trigger{min-height:44px;font-size:15px}
.bulk-more-filters{grid-column:1/-1;border-top:1px solid var(--line)}
.bulk-more-filters>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--blue);font-size:14px}
.bulk-more-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:8px 0}
#bulk-plan-form .bulk-more-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:800px){.bulk-fields,.bulk-more-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#bulk-plan-form .bulk-more-fields{grid-template-columns:1fr}}

.bulk-workspace>.subnav [data-bulk="reload"]{margin-left:auto}
.bulk-workspace>.filters[hidden]{display:none}
#bulk-filter{padding:0 16px 16px}
#bulk-filter>.preflight-actions{padding:0;gap:12px}
.bulk-fields invoice-date-range{min-width:0;max-width:100%}.bulk-fields .date-range-trigger{white-space:normal;overflow-wrap:anywhere;text-align:left}

.count-mobile-label{display:none}
@media(max-width:600px){
 .personal-count-ledger .bulk-table{min-width:0;display:block}
 .personal-count-ledger thead{display:none}
 .personal-count-ledger tbody{display:block}
 .personal-count-ledger tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 0;border-bottom:1px solid var(--line)}
 .personal-count-ledger .bulk-table td{padding:4px 0;border:0;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
 .personal-count-ledger td:nth-child(1),.personal-count-ledger td:nth-child(2){grid-column:1/-1}
 .count-mobile-label{display:block;color:var(--body);font-size:13px;font-weight:400;margin-top:8px;margin-bottom:4px}
}
/* Selected-file workspace: full-page preview beside the queue and query settings. */
#modal:has(.upload-workspace){inset:0;margin:auto;border:0;border-radius:12px;width:min(1320px,calc(100vw - 32px));height:min(850px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}
#modal:has(.upload-workspace)>#modal-content{height:100%;max-height:100%}
#modal:has(.upload-workspace) .modal-head{padding:16px 24px}
#modal:has(.upload-workspace) .modal-body{flex:1;overflow:hidden;padding:12px 24px}
.upload-workspace{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;height:100%;min-height:0}
.upload-controls{min-width:0}
.upload-result .upload-controls{display:grid;gap:16px}
.upload-result-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 20px}
.upload-result-heading strong{font-size:20px;color:var(--ink)}
.upload-result-heading span{font-size:14px;color:var(--body)}
.upload-result .upload-files{max-height:none;margin:0}
.upload-result .recognition-summary{padding:12px 16px;height:auto;min-height:48px;box-sizing:border-box}
.upload-result .upload-caption{margin:0}
.upload-result [data-recognition-message]{margin:0;font-size:14px;color:var(--body)}
.upload-workspace .upload-controls{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;scrollbar-gutter:stable;overflow-anchor:none;overscroll-behavior:contain}
.upload-workspace .upload-settings{position:sticky;top:0;z-index:4;flex:none;display:grid;gap:8px;padding-bottom:8px;background:#fff}.upload-workspace .upload-settings .personal-risk-policy{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:8px;border:0;border-radius:0}.upload-workspace .upload-settings .personal-risk-policy legend{padding:0;font-size:14px;line-height:24px}.upload-workspace .upload-settings .personal-risk-policy .upload-check-choice{display:flex;gap:8px;min-height:44px;padding:8px;box-sizing:border-box;margin:0;font-size:14px}.upload-workspace .upload-settings .upload-check-choice strong{font-size:14px}.upload-workspace .upload-settings .upload-check-choice>span{display:none}.upload-workspace .upload-settings .upload-risk-options{grid-column:1/-1;padding:0}.upload-workspace .upload-settings .personal-risk-policy .field{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:20px}.upload-workspace .upload-settings .personal-risk-policy .field select,.upload-workspace .upload-settings .personal-risk-policy .field input{flex:1;min-width:0;min-height:36px;padding:6px 8px;font-size:13px}.upload-workspace .upload-settings .personal-risk-policy .upload-risk-options .field+.field{margin-top:8px}.upload-workspace .upload-settings .personal-risk-policy .note{display:none}.upload-workspace .upload-settings .personal-risk-policy .upload-remember{grid-column:1/-1;min-height:32px;margin:0;padding:0;border:0;font-size:13px}.upload-workspace .upload-settings .upload-company{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:0 8px;margin:0;font-size:13px}.upload-workspace .upload-settings .upload-company select{min-height:36px;padding:6px 8px;font-size:13px}.upload-workspace .upload-settings .upload-company small{grid-column:2;font-size:12px;line-height:20px}
.upload-workspace .upload-selection-head{margin:0;flex:none}
.upload-workspace [data-recognition-review] .task-status{height:40px;min-width:0;max-width:46%;font-size:13px;line-height:20px;overflow:hidden}
.upload-workspace .upload-selection-head strong{font-size:18px}
.upload-workspace .upload-files{flex:0 1 auto;min-height:148px;max-height:none;margin:0;overscroll-behavior:contain}
.upload-workspace .upload-file{gap:8px;padding:2px 4px}
.upload-workspace .upload-file>span:first-child{display:grid;grid-template-columns:20px minmax(0,1fr);gap:0 8px}
.upload-workspace .upload-file>span:first-child>small{grid-column:2;font-size:12px}
.upload-workspace .upload-file-preview{display:block;padding:0;overflow:hidden}
.upload-workspace .upload-file-preview strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upload-workspace .upload-file-preview small{display:none}
.upload-workspace .upload-file>span:nth-child(2){font-size:12px;white-space:nowrap}
.upload-workspace .upload-file>.upload-row-state{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:end;gap:4px 8px;max-width:230px;font-size:14px}
.upload-workspace .upload-row-state small{white-space:normal;font-size:12px;text-align:right}
.upload-workspace .upload-row-state .button{font-size:14px;padding:6px 8px;min-height:40px}
.upload-workspace .upload-row-state .text-btn{min-height:40px}
.upload-workspace .upload-file-remove{padding:4px 8px;font-size:14px}
.upload-workspace .personal-risk-policy{flex:none;margin:0;padding:12px}
.personal-risk-policy>label.upload-check-choice{display:grid;grid-template-columns:22px auto minmax(0,1fr);gap:12px;min-height:56px;padding:12px;border:1px solid #b5c2d1;border-radius:6px;background:#fff}
.personal-risk-policy .upload-check-choice+ .upload-check-choice{margin-top:8px}
.personal-risk-policy .upload-check-choice strong{font-size:16px;font-weight:600;white-space:nowrap}
.personal-risk-policy .upload-check-choice>span{font-size:13px;line-height:20px;color:var(--body)}
.personal-risk-policy .upload-check-choice:has(input:checked){border-color:var(--blue);background:var(--soft)}
.personal-risk-policy .upload-check-choice input{appearance:none;position:relative;width:20px;height:20px;flex:none;margin:0;border:1.5px solid #718298;border-radius:50%;background:#fff;opacity:1}
.personal-risk-policy .upload-check-choice input:checked{border-color:var(--blue);background:var(--blue)}
.personal-risk-policy .upload-check-choice input:checked::after{content:'';position:absolute;inset:5px;border-radius:50%;background:#fff}
.personal-risk-policy .upload-check-choice:has(input:not(:disabled)){cursor:pointer}
.personal-risk-policy .upload-check-choice:has(input:not(:disabled)):hover{border-color:var(--blue)}
.personal-risk-policy .upload-check-choice:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.personal-risk-policy .upload-check-choice input:focus-visible{outline:none}
.personal-risk-policy .upload-check-choice:has(input:disabled){opacity:1}
.personal-risk-policy .upload-policy-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:8px;min-height:44px}
#modal .personal-risk-policy .upload-policy-options .upload-remember{grid-column:auto;display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:0;border:0;font-size:13px;font-weight:400;color:var(--body);white-space:nowrap}
#modal .personal-risk-policy .upload-policy-options .upload-risk-options{grid-column:auto;display:flex;gap:8px;min-width:0;margin:0;padding:0}
.personal-risk-policy .upload-policy-options .upload-risk-options[inert]{visibility:hidden}
.personal-risk-policy .upload-policy-options select,.personal-risk-policy .upload-policy-options input[type=number]{flex:1;width:0;min-width:0;max-width:none;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:13px}
.upload-workspace .upload-risk-options{padding-left:0}
.upload-workspace .upload-risk-options .field{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;margin:4px 0;gap:8px;font-size:14px;max-width:none}
.upload-workspace .upload-verification{padding-bottom:4px}
.upload-workspace .upload-risk-toggle{margin-top:4px!important}
.upload-workspace .personal-risk-policy .upload-remember{margin-top:4px}
.upload-workspace .upload-risk-options .field select,.upload-workspace .upload-risk-options .field input{min-height:40px;padding:6px 10px}
#modal .upload-workspace .personal-risk-policy .note{font-size:13px;line-height:1.4;margin:6px 0}
.upload-workspace .upload-caption,.upload-workspace .upload-charge-note{margin:0;font-size:13px;padding-top:0;border:0}
.upload-workspace .upload-caption[hidden]{display:none}
.upload-workspace .bulk-check-list:empty{display:none}
.upload-workspace .upload-preview{display:flex;flex-direction:column;min-height:0;margin:0}
.upload-workspace .upload-preview[hidden]{display:none}
.upload-inspector{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);border-radius:3px;background:#fff}
.upload-controls>.upload-inspector{flex:none}
.upload-inspector>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px;border-bottom:1px solid var(--line);flex:none}
.upload-inspector-body{padding:16px;overflow:auto;scrollbar-gutter:stable;min-height:0;overscroll-behavior:contain}
.upload-inspector-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.upload-inspector [data-api="close-report"]{display:none}
.upload-inspector .personal-report-facts .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.upload-inspector .personal-report-heading{display:block}
.upload-inspector .personal-report-amount{text-align:left;margin-top:8px}
.upload-workspace .upload-preview-toolbar{gap:8px;flex-wrap:wrap;padding:8px 12px;flex:none}
.upload-workspace .upload-preview-toolbar strong{flex-basis:100%;font-size:16px}
.upload-workspace .upload-preview-toolbar .button{min-height:40px}
.upload-workspace .upload-preview-toolbar button:last-child{margin-left:auto}
.upload-workspace .upload-preview-body{flex:1;height:auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:8px}
.upload-workspace .upload-preview-body img,.upload-workspace .upload-preview-body canvas{object-fit:contain;width:auto!important;height:auto!important;max-width:100%;max-height:100%;min-height:0;margin:auto}
.upload-workspace .upload-preview-body:has(.document-page-controls:not([hidden])) canvas{max-height:calc(100% - 56px)}
.upload-workspace .document-page-controls{flex:none;width:100%;position:static}
.upload-workspace .upload-preview-body.is-zoomed{display:block;overflow:auto;overscroll-behavior:contain}
.upload-workspace .upload-preview-body.is-zoomed img,.upload-workspace .upload-preview-body.is-zoomed canvas{width:100%!important;max-height:none;height:auto!important}
@media(max-width:900px),(max-height:650px){
 #modal:has(.upload-workspace){height:auto}
 #modal:has(.upload-workspace) .modal-body{overflow:auto}
 .upload-workspace{display:flex;flex-direction:column;height:auto;gap:20px}
 .upload-workspace .upload-preview{height:320px;flex:none}
 .upload-workspace .upload-files{flex:none;max-height:none;min-height:0;overflow:visible}
 .upload-workspace .upload-controls{overflow:visible}
}
@media(max-width:600px){
 #modal:has(.upload-workspace){width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 #modal:has(.upload-workspace) .modal-body{padding:16px}
 .upload-workspace .upload-file{flex-wrap:nowrap}
 .upload-workspace .upload-file>span:first-child{flex-basis:auto}
 .upload-workspace .upload-file>span:nth-child(2){flex:0}
 .upload-workspace .upload-file-preview strong{word-break:normal}
}

/* Risk analysis: scope, classification, then records. */
.risk-analysis .analysis-filters{gap:16px;padding:8px 0 16px}
.risk-analysis .analysis-filters .invoice-date-inputs{flex:2}
.risk-analysis .analysis-overview-line{padding:12px 0 0}
.risk-analysis .analysis-coverage{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border:0;padding:0;font-size:13px;color:var(--body)}
.risk-analysis .analysis-coverage details{position:relative}
.risk-analysis .analysis-coverage summary{cursor:pointer;color:var(--body)}
.risk-analysis .analysis-remaining{position:absolute;z-index:2;top:24px;left:0;min-width:220px;background:#fff;border:1px solid var(--line);padding:12px 16px;margin:0;display:grid;gap:8px}
.risk-analysis .analysis-levels{gap:0;margin:12px 0 0;border-bottom:1px solid var(--line)}
.analysis-priority-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0}
.analysis-priority-levels>section{min-width:0;border-bottom:1px solid var(--line);padding-bottom:8px}
.analysis-priority-select{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;width:100%;padding:12px 16px;border:1px solid transparent;border-radius:6px;background:var(--soft);font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.analysis-priority-select[aria-pressed=true]{border-color:var(--blue)}.analysis-priority-label{display:flex;align-items:center;justify-content:space-between;color:var(--blue)}
.analysis-priority-label .risk-level{display:inline-flex;align-items:center;gap:6px}.analysis-priority-label svg{width:16px;height:16px}.analysis-priority-select>strong{grid-column:2;grid-row:1/3;align-self:center;font-size:26px;font-variant-numeric:tabular-nums}.analysis-priority-select>span:last-child{grid-column:1;color:var(--muted)}
.analysis-priority-levels .text-btn{display:flex;align-items:center;gap:8px;margin:4px 0 0;padding:8px 16px;font-size:13px}.analysis-priority-levels .text-btn svg{width:14px;height:14px}
.analysis-group:has(.level-urgent) .analysis-bar i{background:var(--red)}.analysis-group:has(.level-concern) .analysis-bar i{background:var(--orange)}
@media(max-width:700px){.analysis-priority-levels{gap:10px}.analysis-priority-select{padding:12px;gap:8px;grid-template-columns:1fr}.analysis-priority-select>strong{font-size:20px;grid-column:1;grid-row:2}}
.risk-analysis .analysis-levels button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 18px;background:#fff;font-size:15px}
.risk-analysis .analysis-levels button[aria-pressed=true]{border-bottom-color:var(--blue);background:var(--pale,#ecf2fe);color:var(--ink)}
.analysis-level-label.tone-urgent{color:var(--red)}.analysis-level-label.tone-concern{color:var(--orange)}
.risk-analysis .analysis-path{padding:16px 0;gap:12px}
.risk-analysis .analysis-path strong{font-size:15px}
.risk-analysis .analysis-path .button{padding:8px 12px;min-height:36px}
.analysis-chart-options{display:flex;align-items:center;gap:16px}
.analysis-chart-options label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--body)}
.analysis-chart-options select{padding:8px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:#fff}
.risk-analysis .analysis-group{padding:16px 0}
.risk-analysis .analysis-share{margin-top:4px}
.risk-analysis .analysis-detail-note{margin:12px 0;font-size:13px}
@media(max-width:700px){.risk-analysis .analysis-levels button{padding:12px 10px;font-size:14px}.risk-analysis .analysis-levels b{margin-left:4px}.risk-analysis .analysis-filters .invoice-date-inputs{grid-column:1/-1}.risk-analysis .analysis-chart-toolbar{gap:12px}.analysis-chart-options{flex-wrap:wrap;gap:12px}.risk-analysis .analysis-path{align-items:flex-start}.risk-analysis .analysis-group{gap:12px}}

.risk-analysis .analysis-coverage summary,.risk-analysis .analysis-detail-note>summary{min-height:44px;line-height:44px;cursor:pointer}
.risk-analysis .analysis-remaining{top:44px}
.inline-risk-bar{position:sticky;bottom:12px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding:16px 20px;background:#fff;border:1px solid #c3d7f0;border-radius:8px}
.inline-risk-bar strong{font-size:18px;margin-right:16px}
.inline-risk-bar span,.inline-risk-bar p{font-size:14px}
.inline-risk-bar p{margin:6px 0 0;color:#526677}
.inline-risk-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.inline-risk-actions [data-personal="confirm-batch-risk"]{background:#1677dd;color:#fff;border-color:#1677dd}
@media(max-width:900px){.inline-risk-bar{align-items:flex-start;flex-direction:column;gap:12px}.inline-risk-actions{justify-content:flex-start}.inline-risk-bar span{display:block;margin-top:6px}}

.table-wrap:has(>.invoice-ledger-table){max-width:1280px;width:100%;min-width:0;overflow-x:auto}
.invoice-ledger-table{width:100%;max-width:1280px;min-width:1080px;table-layout:fixed}
.invoice-ledger-table th{font-size:13px;font-weight:500;white-space:normal}
.invoice-ledger-table th:nth-child(1){width:26%;text-align:left}
.invoice-ledger-table th:nth-child(2){width:14rem;text-align:left}
.invoice-ledger-table th:nth-child(3){width:auto;text-align:left}
.invoice-ledger-table th:nth-child(4){width:10.5rem;text-align:left}
.invoice-ledger-table th:nth-child(5){width:10rem;text-align:left}
.ledger-header-line{display:block;white-space:nowrap}
.modal:has(.ledger-export-confirm){width:min(640px,calc(100vw - 32px))}.ledger-export-confirm h3{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:20px}.ledger-export-confirm h3 .icon{color:var(--blue)}.ledger-export-confirm p{font-size:14px;line-height:24px;color:var(--body)}.ledger-export-confirm .note{background:var(--soft)}.ledger-export-confirm .note strong{font-size:14px}.ledger-export-confirm ul{list-style:none;margin:12px 0 0;padding:0;line-height:24px}
.ledger-export-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;border:0;margin:0;padding:0}.ledger-export-filter-grid .field{min-width:0}.ledger-export-filter-grid .invoice-date-inputs{grid-column:1/-1}.ledger-export-filter-grid input,.ledger-export-filter-grid select{width:100%;min-width:0}.ledger-export-confirm [data-export-error]{color:var(--danger,#b42318)}.ledger-export-total{background:var(--soft);border-radius:6px;padding:16px 20px}.ledger-export-total>span{display:flex;align-items:center;gap:8px}.ledger-export-total strong{font-size:36px;line-height:48px;font-variant-numeric:tabular-nums;color:var(--blue)}.ledger-export-total small{color:var(--muted)}.ledger-export-status{min-height:76px}.ledger-export-status p{margin:4px 0}
.ledger-export-setup{display:grid;gap:24px}.task-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;background:var(--soft);border-radius:6px}.task-summary-object{display:flex;align-items:center;gap:12px}.task-summary-object>.icon{width:32px;height:40px;color:var(--blue)}.task-summary-object strong{display:block;font-size:16px;line-height:24px}.task-summary-object small{display:block;margin-top:4px;font-size:13px;line-height:20px;color:var(--body)}.task-summary-value{text-align:right;flex:none;font-size:13px;line-height:20px}.task-summary-value>span{color:var(--body)}.task-summary-value strong{font-size:36px;line-height:44px;color:var(--blue);font-variant-numeric:tabular-nums}.ledger-export-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.ledger-export-section-head h3{font-size:15px;line-height:24px;margin:0}.ledger-export-section-head>span{font-size:12px;line-height:24px;color:var(--body);padding:0 8px;background:var(--subtle);border:1px solid var(--line);border-radius:4px}.ledger-export-filter-grid .field:has([name=legalEntityId]){grid-column:1/-1}.ledger-export-setup .ledger-export-status{min-height:48px;margin-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:0 12px}.ledger-export-setup .ledger-export-status p{margin:0;font-size:13px;line-height:24px}.ledger-export-setup .ledger-export-status p:empty{display:none}.ledger-export-inherited{margin:12px 0 0}.ledger-export-free{display:flex;align-items:center;gap:6px;margin-right:auto;font-size:12px;color:var(--body)}.ledger-export-free .icon{width:16px;height:16px}
@media(max-width:480px){.ledger-export-filter-grid{grid-template-columns:minmax(0,1fr)}.task-summary{padding:16px;gap:16px}.ledger-export-free{width:100%;margin-bottom:4px}.task-summary-value strong{font-size:32px}.ledger-export-setup{gap:20px}}
.invoice-ledger-table td,.personal-workspace .invoice-ledger-table td,.invoice-workspace .invoice-ledger-table td{font-size:15px;padding:18px 12px;max-width:none;vertical-align:top;border-bottom:1px solid var(--line);line-height:24px}
.ledger-select{display:flex;align-items:flex-start;gap:12px;min-width:0}
.ledger-company-content{min-width:0;flex:1}
.ledger-results{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0;font-size:13px;line-height:24px}
.ledger-results:empty{display:none}
.invoice-ledger-row input[type=checkbox]{width:18px;height:18px;margin-top:3px;flex:none;accent-color:var(--blue,#1975da)}
.ledger-invoice-link,.ledger-parties-text{display:grid;gap:8px;min-width:0;width:100%;padding:0;text-align:left;color:var(--ink);background:none;border:0;font:inherit}
.ledger-invoice-link{cursor:pointer}
.ledger-party,.ledger-number,.ledger-project{display:grid;grid-template-columns:minmax(0,1fr);align-items:baseline;line-height:24px}
.ledger-party>span,.ledger-number>span,.ledger-project>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ledger-party>span{font-size:15px;font-weight:500}
.ledger-party:first-child>span{font-weight:600}
.ledger-party+.ledger-party>span{font-size:13px;color:var(--body);font-weight:400}
.ledger-project{font-size:14px;margin-top:8px}
.ledger-number{font-size:14px;font-variant-numeric:tabular-nums}
.ledger-number>span{white-space:normal;overflow-wrap:anywhere}
.invoice-ledger-row .ledger-amount{text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}
.ledger-amount>strong{display:block;font-size:15px;font-weight:600}
.ledger-date{display:block;margin-top:8px;font-size:13px;color:var(--body);font-weight:400}
.ledger-results .personal-risk-link{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;max-width:100%;min-width:0;min-height:24px;padding:0;text-align:left;line-height:24px}
.ledger-results .risk-level{flex:none;margin:0}
.ledger-results .personal-risk-link>span:last-child:not(.risk-result-badge){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ledger-results>.ledger-verification{display:inline-flex;margin:0;flex:none}
.verification-badge::before{display:none}.verification-badge .icon{width:14px;height:14px}.verification-badge svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ledger-note{display:block;color:var(--body);margin-top:8px}
.ledger-invoice-link:focus-visible{outline:2px solid var(--blue,#1975da);outline-offset:3px}
@media(hover:hover) and (pointer:fine){.ledger-invoice-link:hover .ledger-party>span{text-decoration:underline;text-underline-offset:3px}}
@media(max-width:760px){
 .invoice-ledger-table thead{display:none}.invoice-ledger-table,.invoice-ledger-table tbody{display:block;min-width:0}
 .invoice-ledger-table .invoice-ledger-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
 .invoice-ledger-table .invoice-ledger-row>td,.personal-workspace .invoice-ledger-table .invoice-ledger-row>td,.invoice-workspace .invoice-ledger-table .invoice-ledger-row>td{display:block;width:auto;min-width:0;max-width:none;padding:0!important;border:0;background:none;text-align:left;grid-row:auto;grid-column:auto}
 .invoice-ledger-table .invoice-ledger-row>td.ledger-amount{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .ledger-date{margin:0}
 .ledger-party>span,.ledger-project>span{white-space:normal;overflow-wrap:anywhere}
}

/* Report facts stay visible by default; the conclusion remains the single emphasis. */
.report-overview .report-finding .report-finding-line{grid-template-columns:minmax(168px,24%) minmax(0,1fr);gap:8px 16px;align-items:start;padding:16px 92px 12px 0}
.report-finding summary::after{display:none}
.report-finding-toggle{position:absolute;right:0;top:12px;min-height:32px;display:flex;align-items:center;gap:4px;padding:2px 6px;color:var(--blue);border:1px solid var(--line);border-radius:4px;font-size:12px;font-weight:500!important}
.report-finding-toggle .icon{width:16px;height:16px;transform:rotate(90deg)}
.report-finding-toggle .when-open,.report-finding[open] .when-closed{display:none}
.report-finding[open] .when-open{display:inline}.report-finding[open] .report-finding-toggle .icon{transform:rotate(-90deg)}
.report-finding summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.report-overview .report-finding{--finding-label-inset:0px}
.report-overview .report-finding:has(.report-finding-category){--finding-label-inset:56px}
.report-overview .report-finding-name{align-items:center;gap:10px;font-size:15px;line-height:24px;flex-wrap:nowrap}
.report-overview .report-finding-category{box-sizing:border-box;width:46px;flex:none;justify-content:center}
.report-overview .report-finding[open]>summary{border-bottom:0}
.report-overview .report-finding-body{padding:14px 92px 14px 0;margin-bottom:12px;background:var(--subtle);border-radius:4px}
.report-overview .report-finding-body dl{grid-template-columns:minmax(168px,24%) minmax(0,1fr);gap:8px 16px}
.report-overview .report-finding-body dt,.report-overview .report-finding-body dd{margin:0;line-height:24px}
.report-overview .report-finding-body dt{padding-left:var(--finding-label-inset);font-size:13px;font-weight:500;color:var(--body)}
.report-overview .report-finding-body dd{min-width:0;overflow-wrap:anywhere}
.report-overview .report-finding-body .evidence-item:first-child{padding-top:0}
.report-overview .report-finding-body .evidence-item:last-child{padding-bottom:0}
.report-overview .report-finding-body p{margin:0 0 8px;font-size:14px;line-height:24px}
.report-overview .report-finding-body .evidence-item p:last-child{margin-bottom:0}
.report-evidence-link{display:inline-flex;align-items:center;min-height:32px;color:var(--blue);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.report-evidence-link:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}
.report-evidence-policy{display:block;min-height:44px;color:var(--ink);text-decoration:none}.report-evidence-policy p:first-child{color:var(--blue)}.report-evidence-policy:is(:hover,:focus-visible) p:first-child{text-decoration:underline;text-underline-offset:3px}
.report-count-label{font-weight:500}.report-status-compact .report-risk-counts strong{font-size:16px}
.report-more>.report-scope{width:100%;flex-basis:100%}.report-more>.report-scope>summary{font-size:14px;font-weight:500;padding:8px 0}
.report-more .report-scope-list{margin-top:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.report-more .report-scope-row{display:block;min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fff}
.report-scope-row header{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:15px;line-height:24px}
.report-scope-row header strong{display:flex;align-items:center;gap:8px;font-weight:600}.report-scope-row header strong .icon{color:var(--body);width:18px;height:18px}.report-scope-row header+div:not(:empty){margin-top:10px}
.report-scope-state{flex:none;font-weight:600}.report-scope-state::before{display:none}
.report-scope-state .icon{width:13px;height:13px}.report-scope-state.level-muted{color:var(--blue)}
[data-scope-state="unknown"] .report-scope-state{color:var(--muted);background:#f6f8fa}
@media(max-width:760px){.report-more .report-scope-list{grid-template-columns:repeat(2,minmax(0,1fr))}.report-scope-row header{font-size:14px}}
@media(max-width:760px){.report-overview .report-finding .report-finding-line{grid-template-columns:minmax(0,1fr);padding-right:0}.report-overview summary.report-finding-line .report-finding-name{padding-right:92px;min-height:32px}.report-overview .report-finding-body{padding:12px 12px 12px max(12px,var(--finding-label-inset))}.report-overview .report-finding-body dl{grid-template-columns:minmax(0,1fr);gap:4px}.report-overview .report-finding-body dt{padding-left:0}.report-overview .report-finding-body dd+dt{margin-top:8px}}
.record-risk-changes,.processing-record-list article,.processing-record-list details{border-bottom:1px solid var(--line,#e2e8f0);padding:16px 0}
#modal:has([data-processing-records]){width:min(1120px,calc(100vw - 32px))}
[data-processing-records]{container-type:inline-size;container-name:processing-records;min-width:0}
[data-processing-records]>.subnav{flex-wrap:wrap;overflow:visible}
[data-processing-records] .operation-date-filters{padding:12px 16px;align-items:flex-start}
[data-processing-records] .operation-date-filters details{padding:0;min-width:0}
[data-processing-records] .operation-date-filters .button{min-height:44px}
[data-processing-records] .operation-date-filters details>summary{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:6px;background:#fff;line-height:20px}
[data-processing-records] .processing-record-list summary{padding-inline:16px}
[data-processing-records] [data-record-feedback]:empty{display:none}
[data-processing-records] .button,[data-processing-records] .subnav button{min-height:44px}
#modal:has([data-processing-records]) .modal-head{border-radius:10px 10px 0 0}
#modal:has([data-processing-records]) .modal-foot{border-radius:0 0 10px 10px}
#modal:has([data-processing-records]) .modal-head .icon-button{width:44px;height:44px}
#modal:has([data-processing-records]) .modal-foot .button{min-height:44px}
[data-processing-records] .table-wrap{border:0;border-radius:0;overflow:visible}
:is([data-processing-records],.record-detail-list) .record-invoice-table,:is([data-processing-records],.record-detail-list) .record-invoice-table tbody{display:block;min-width:0;width:100%}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table thead{display:table-header-group;position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.15fr) 6.5rem 12rem;gap:1rem;padding:0;border:0;align-items:start}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>td{display:block;grid-row:1;min-width:0;width:auto;max-width:none;padding:0!important;border:0!important;background:none;line-height:1.5rem;white-space:normal}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-parties{grid-column:1}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-status{grid-column:2}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-document{grid-column:3}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-amount{grid-column:4}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-people{grid-column:5}
:is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-results{flex-direction:column;gap:.25rem}
:is([data-processing-records],.record-detail-list) .record-invoice-table .ledger-party>span,:is([data-processing-records],.record-detail-list) .record-invoice-table .ledger-project>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is([data-processing-records],.record-detail-list) .record-invoice-table .ledger-number>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is([data-processing-records],.record-detail-list) .record-invoice-table .ledger-amount>strong{font-size:1.07143rem}
:is([data-processing-records],.record-detail-list) .record-invoice-table .invoice-people{display:grid;gap:.25rem}
:is([data-processing-records],.record-detail-list) .record-invoice-table .invoice-reimbursement,:is([data-processing-records],.record-detail-list) .record-invoice-table .invoice-uploader{display:flex;align-items:center;gap:.5rem;min-height:2rem;min-width:0}
:is([data-processing-records],.record-detail-list) .record-invoice-table .people-mobile-label{display:inline!important;flex:none;width:auto;margin:0;font-size:.92857rem;color:var(--muted);white-space:nowrap}
:is([data-processing-records],.record-detail-list) .record-invoice-table .invoice-reimbursement>[data-rb-edit]{width:auto;min-height:2rem;font-size:.92857rem}
:is([data-processing-records],.record-detail-list) .record-invoice-table .invoice-uploader>[data-rb-uploader]{font-size:.92857rem}
@container processing-records (max-width:800px){
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row{grid-template-columns:minmax(0,1fr) 11rem;gap:.5rem 1rem}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-parties{grid-column:1;grid-row:1}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-amount{grid-column:2;grid-row:1}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-document{grid-column:1;grid-row:2}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-status{grid-column:2;grid-row:2}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-people{grid-column:1/-1;grid-row:3}
 :is([data-processing-records],.record-detail-list) .record-invoice-table .invoice-people{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
}
@container processing-records (max-width:480px){
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row{grid-template-columns:minmax(0,1fr) 6.5rem}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-document{grid-column:1/-1;grid-row:2}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-status{grid-column:1/-1;grid-row:3}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-people{grid-column:1/-1;grid-row:4}
 :is([data-processing-records],.record-detail-list) .table-wrap .record-invoice-table .invoice-ledger-row>.ledger-results{flex-direction:row;flex-wrap:wrap}
}
[data-processing-records] .note{padding:8px 0;background:none;font-size:13px;color:var(--muted)}
.record-change-heading,.processing-record-list summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.record-risk-changes article{padding:12px 0}.record-risk-changes .record-change-heading>strong{color:var(--red)}
.record-change-heading{padding-bottom:12px}.record-change-heading time{color:var(--muted);font-size:13px}
.batch-new-risks{font-weight:600;color:var(--red)}
.record-risk-changes small,.processing-record-list small{display:block;color:var(--muted,#657789);margin-top:6px}
.processing-record-list summary{cursor:pointer;flex-wrap:wrap}.processing-record-list time{color:var(--muted,#657789);font-size:13px}
.processing-record-list [data-record-detail]{margin-top:12px;padding:16px 16px 8px;border-top:1px solid var(--line)}.processing-record-list .button{flex:none}
.record-detail-list{container-type:inline-size;container-name:processing-records;display:grid;gap:8px;list-style:none;margin:0;padding:0}
.record-detail-list>li{min-width:0}
.processing-record-list .processing-invoice,.record-detail-list .processing-invoice{margin:0;padding:12px;border:1px solid var(--line);border-radius:3px;background:#fff}
.record-detail-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start}
.record-item-marker{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin-top:8px;border-radius:4px;background:var(--subtle);color:var(--muted)}
.record-item-marker>.icon{width:18px;height:18px}.record-item-marker.is-complete{color:#147A3A;background:#e9f5ed}.record-item-marker.is-failed{color:var(--red);background:#fef0ee}.record-item-marker.is-duplicate{color:#8a6408;background:#faf7ed}.record-item-marker.is-active{color:var(--blue);background:var(--soft)}
.record-item-main{min-width:0;grid-column:2}
.record-item-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px 16px;min-height:44px}
.record-item-heading>.record-file-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px;font-weight:500}
.record-item-states{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.record-item-body{margin-top:8px;min-width:0}
.record-item-body>.table-wrap{border:0;border-radius:0;overflow:visible}
.record-step{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:2px 6px;background:var(--soft);border-radius:3px;font-size:12px;line-height:20px;color:var(--body);white-space:nowrap}
.record-step>.icon{width:14px;height:14px;flex:none}
.record-step-symbol{display:inline-flex;align-items:center}
.record-step-symbol>.icon{width:12px;height:12px}
.record-step.is-done .record-step-symbol{color:var(--blue)}
.record-step.is-active .record-step-symbol{color:var(--blue)}
.record-step.is-failed{color:var(--red);background:#fff5f4}
.processing-invoice .record-status{display:inline-flex;align-items:center;gap:.375rem;font-size:.92857rem;font-weight:500;color:var(--body)}
.processing-invoice .record-status .icon{width:1rem;height:1rem;flex:none}
.record-status.is-failed{color:var(--red);background:#fef0ee;padding:.125rem .5rem;border-radius:.25rem}
.record-status.is-duplicate{color:#8a6408;background:#faf7ed;padding:.125rem .5rem;border-radius:.25rem}
.record-status.needs-attention{color:var(--orange);background:#fcf5ee;padding:.125rem .5rem;border-radius:.25rem}
.processing-invoice .record-item-billing{font-size:.85714rem;color:var(--muted);white-space:nowrap}
.record-item-action:empty{display:none}
.record-item-action>.button{min-width:44px;min-height:44px;padding:4px 8px;font-size:13px}
.processing-invoice .record-item-note{grid-column:1/-1;margin:.25rem 0 0;font-size:.92857rem;line-height:1.5rem;color:var(--body);overflow-wrap:anywhere}
[data-processing-records] .processing-record-list summary{align-items:center;gap:.75rem;min-height:4rem}
[data-processing-records] .record-operation-icon{width:1.71429rem;height:1.71429rem;display:flex;align-items:center;justify-content:center}
[data-processing-records] .record-operation-icon .icon,[data-processing-records] .record-operation-icon svg{width:1.71429rem;height:1.71429rem}
@container processing-records (max-width:560px){
 .record-detail-item{grid-template-columns:24px minmax(0,1fr);gap:8px}
 .record-item-marker{width:24px;height:24px;margin-top:10px}
 .record-item-heading{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
 .record-item-heading>.record-file-name{grid-column:1/-1;min-height:28px;display:flex;align-items:center}
 .record-item-states{grid-column:1;grid-row:2;gap:4px}
 .record-item-billing{grid-column:1;grid-row:3}
 .record-item-action{grid-column:2;grid-row:2/4}
}
@media(max-width:600px){.record-detail-list .record-detail-item{padding:8px;grid-template-columns:24px minmax(0,1fr);gap:8px}.record-detail-list .record-item-heading{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.record-detail-list .record-item-heading>.record-file-name{grid-column:1/-1;min-height:28px}.record-detail-list .record-item-states{grid-column:1;grid-row:2;gap:4px}.record-detail-list .record-item-billing{grid-column:1;grid-row:3}.record-detail-list .record-item-action{grid-column:2;grid-row:2/4}}
.invoice-workspace>.personal-filters{padding:12px 20px 16px}
.ledger-filters{display:block}
.ledger-risk-filters{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 12px}
.ledger-risk-filters button{min-height:40px;padding:6px 12px;border:1px solid transparent;border-radius:4px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;white-space:nowrap}
.ledger-risk-filters button:hover{background:var(--soft)}
.ledger-risk-filters button[aria-pressed="true"]{border-color:var(--blue);background:#ECF2FE;color:var(--blue)}
.ledger-filter-main{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.ledger-filter-main>.field{flex:1 1 150px;min-width:0}
.ledger-filter-main>.invoice-date-inputs{flex:2 1 300px!important}
.ledger-filters .field{font-size:13px}
.ledger-filters input,.ledger-filters select,.ledger-filters .button{min-height:40px;font-size:14px}
.ledger-filters>[data-filter-error]{margin:12px 0 0;color:var(--muted)}
@media(max-width:600px){.ledger-filter-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-filter-main>.field{grid-row:auto}.ledger-filter-main>.field:first-child{grid-column:1/-1;grid-row:1}.ledger-filter-main>.invoice-date-inputs{grid-column:1/-1;grid-row:2}.ledger-filter-main>.button{grid-column:2;justify-self:end}.ledger-risk-filters button{padding-inline:9px}}

.personal-import-summary{padding:24px 0;margin:16px 0;border-bottom:1px solid var(--line)}.personal-import-summary h3{font-size:18px;margin:0 0 16px;overflow-wrap:anywhere}.personal-import-summary p{font-size:18px;margin:0}.personal-import-summary strong{font-size:32px;color:var(--blue);margin:0 6px;font-variant-numeric:tabular-nums}
/* A single quiet entry above the workbench, with the same message title as the miniapp. */
.latest-message{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:12px 16px;margin:0 0 20px;border:1px solid var(--line,#e1e8f0);border-radius:6px;background:#fff;color:inherit;text-align:left;cursor:pointer}
.latest-message .icon{flex:none;color:var(--blue,#1677e8)}
.latest-message-label{font-size:12px;color:var(--blue,#1677e8);flex:none}
.latest-message strong{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:500}
.latest-message time{flex:none;font-size:13px;color:var(--muted,#66778a)}
.latest-message:focus-visible{outline:2px solid var(--blue,#1677e8);outline-offset:2px}
@media(max-width:600px){.latest-message{gap:6px;padding:10px}.latest-message time{display:none}}
.operation-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.operation-day-heading strong{font-size:14px;font-weight:600}.operation-day-heading>span{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.operation-day{margin-bottom:16px}.operation-day-heading:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.operation-day-heading[aria-expanded="true"] svg{transform:rotate(90deg)}
.operation-day .workbench-operation[aria-pressed="true"]{background:var(--soft)}
.enterprise-message-list .workbench-operation .record-operation-main{grid-template-columns:minmax(0,1fr) 76px;gap:8px 12px}
.enterprise-message-list .workbench-operation .record-operation-bottom{grid-column:1/-1;grid-row:2}.enterprise-message-list .workbench-operation .record-operation-meta{grid-column:1/-1;grid-row:3}.enterprise-message-list .workbench-operation .record-open{grid-column:2;grid-row:1}
.operation-date-filters{display:flex;align-items:start;flex-wrap:wrap;gap:12px;padding:12px 0}.operation-date-filters details{padding:8px 0}.operation-date-filters summary{cursor:pointer;font-size:14px}.operation-date-filters .invoice-date-inputs{margin-top:12px}.operation-date-filters [role=alert]:empty{display:none}
.operation-billing{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.record-recovery-result{gap:.375rem;color:var(--blue);font-size:.92857rem;line-height:1.5rem}.record-recovery-result:disabled{color:var(--muted);opacity:1;cursor:default}
.record-period{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--muted);font-size:14px}
.record-period select{width:auto;min-height:40px;border:1px solid var(--line);border-radius:6px;padding:6px 12px;background:#fff;color:var(--text)}
.processing-record-list summary{display:flex;flex-wrap:nowrap;gap:16px;list-style:none}
.processing-record-list summary::-webkit-details-marker{display:none}
.record-operation-icon{flex:none;color:var(--muted)}
.record-operation-icon .icon,.record-operation-icon svg{width:32px;height:32px}
.record-operation-icon.is-risk{color:var(--blue)}
.record-operation-main{flex:1;min-width:0;display:grid;gap:8px}
.record-operation-top,.record-operation-bottom{display:flex;align-items:center;gap:12px}
.record-operation-top{flex-wrap:wrap}.record-operation-top strong{font-size:17px}.record-operation-top time{margin-left:auto}
.record-source{font-size:13px;font-weight:400;line-height:1.5;padding:2px 6px;border:1px solid var(--line);border-radius:4px;color:var(--body);overflow-wrap:anywhere}
.record-operation-bottom{font-size:14px;color:var(--muted)}.record-operation-bottom>span:first-child{min-width:0}
.record-open{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none;color:var(--blue)}
.record-unread{width:6px;height:6px;border-radius:50%;background:var(--blue)}.record-unread.is-read{visibility:hidden}
.record-abnormal-badge{color:var(--text);font-weight:600}.record-abnormal-heading{padding:12px 16px;background:#ECF2FE;font-weight:600;border-radius:6px}
.record-risk-changes .record-change-heading>strong{color:var(--text)}.abnormal-invoice{padding:16px 0;border-bottom:1px solid var(--line)}
.latest-message strong.latest-abnormal{font-weight:600}
@media(max-width:600px){.processing-record-list summary{gap:10px}.record-operation-top{align-items:flex-start}.record-operation-top time{font-size:12px}.record-operation-bottom{flex-wrap:wrap;gap:8px}.record-operation-bottom>span:first-child{flex-basis:calc(100% - 60px)}.record-abnormal-badge{order:2}.record-change-heading{align-items:flex-start}}

/* Step completion is separate from the invoice risk result. */
.badge.upload-status{padding:4px 8px;border:1px solid currentColor;border-radius:4px;font-size:13px;font-weight:600;gap:6px;min-width:86px;justify-content:center}
.badge.upload-status .icon{width:16px;height:16px}
.badge.upload-status.ok{background:#F0F8F3}
.badge.upload-status.blue{background:#ECF2FE}
.badge.upload-status.warn{background:#FFF7ED}
.badge.upload-status.muted{background:#F7F9FC}
@media(max-width:760px){.api-mode .invoice-table td:nth-child(5):before{content:"查真伪 · "}}

/* Stable upload rows: progress never competes with file names or moves controls. */
.upload-workspace .upload-files-stable{display:grid;gap:8px;flex:none;height:auto;min-height:0;max-height:none;overflow:visible;overflow-anchor:none}
.upload-workspace .upload-files-stable .upload-file{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:36px 36px;gap:0;padding:8px;position:relative;height:88px;min-height:88px;box-sizing:border-box}
.upload-files-stable .upload-file>span:first-child{width:100%;min-width:0;align-self:start}
.upload-workspace .upload-files-stable .upload-row-state{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:12px;max-width:none;width:100%;justify-content:stretch;align-items:center;height:36px;min-height:36px}
.upload-files-stable .upload-step{display:flex;align-items:center;gap:4px;min-width:0}
.upload-workspace .upload-files-stable .upload-step small{font-size:12px;white-space:nowrap;text-align:left}
.upload-files-stable .badge.upload-status{font-size:14px;padding:2px 0;min-width:0;gap:8px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.upload-files-stable .badge.upload-status .icon{width:20px;height:20px;flex:none}
.upload-files-stable .upload-row-action{display:flex;justify-content:end;align-items:center}
.upload-workspace .upload-files-stable .text-btn{font-size:13px;min-height:36px;padding:4px;white-space:nowrap}
.upload-files-stable .upload-file-remove{position:absolute;right:8px;top:8px}
.upload-files-stable .upload-file:has(.upload-file-remove:not([hidden]))>span:first-child{padding-right:88px}
.upload-files-stable .upload-relative-path{display:none}
.upload-files-stable [hidden],.upload-selection-head [hidden]{display:none!important}
@media(max-width:600px){.upload-workspace .upload-files-stable .upload-file>span:nth-child(2){flex:initial}}

.upload-workspace:has(.upload-files-stable) .upload-selection-head{min-height:44px;align-items:center}
.upload-files-stable .upload-file>span:first-child{padding-right:116px}
.upload-workspace .upload-files-stable .upload-file>span:first-child{grid-template-rows:36px;height:36px;align-items:center}
.upload-workspace .upload-files-stable .upload-file-preview{grid-column:2;grid-row:1;display:flex;align-items:center;height:36px;min-height:36px}
.upload-files-stable .upload-file-preview strong{line-height:24px;font-weight:400}
.upload-workspace .upload-files-stable .upload-file>span:first-child>small{grid-row:2;font-size:13px;line-height:20px;pointer-events:none}
.upload-files-stable .upload-row-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:4px;min-width:0;overflow:hidden}
.upload-files-stable .upload-stage-label{display:none}
.upload-workspace .upload-files-stable .upload-row-summary>:is(.badge,.risk-level),.upload-workspace .upload-files-stable .upload-row-summary>.personal-risk-link>:is(.badge,.risk-level){width:100%;height:26px;min-height:26px;font-size:14px;line-height:20px;font-weight:400;padding:2px 0;gap:8px;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;justify-content:flex-start;border:0;box-sizing:border-box}
.upload-files-stable .upload-row-summary>.personal-risk-link{min-width:0;max-width:100%;justify-content:flex-start}
.upload-files-stable .upload-row-summary>:is(.badge,.risk-level)>.icon,.upload-files-stable .upload-row-summary svg{width:20px;height:20px;flex:none}
.upload-files-stable .upload-row-summary .badge.muted{border-color:var(--line);background:#fff;color:var(--body)}
#modal .upload-workspace .upload-files-stable .upload-row-action{position:absolute;right:8px;top:8px;display:grid;grid-template-rows:36px 36px;align-items:stretch;gap:0;white-space:nowrap;width:104px;height:72px}
#modal .upload-workspace .upload-files-stable .upload-row-action .text-btn{width:104px;min-width:44px;height:36px;min-height:36px;line-height:20px;box-sizing:border-box}
.upload-files-stable .upload-row-action .upload-continue{flex-direction:column;justify-content:center;gap:0;padding:2px 4px;border:1px solid var(--line);border-radius:6px;background:#fff}
.upload-workspace .upload-files-stable .upload-row-action small{display:block;font-size:12px;line-height:16px;text-align:center;color:var(--body)}
@media(max-width:600px),(pointer:coarse){.upload-files-stable .upload-stage-verb{display:none}.upload-workspace .upload-files-stable .upload-file{height:104px;min-height:104px;grid-template-rows:44px 44px}.upload-workspace .upload-files-stable .upload-file>span:first-child{grid-template-rows:44px}#modal .upload-workspace .upload-files-stable .upload-row-action{height:88px;grid-template-rows:44px 44px}.upload-workspace .upload-files-stable .upload-file-preview,.upload-workspace .upload-files-stable .upload-file>span:first-child,.upload-workspace .upload-files-stable .upload-row-state,#modal .upload-workspace .upload-files-stable .upload-row-action .text-btn{height:44px;min-height:44px}}
.usage-confirm-clear{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;padding:20px;background:var(--soft);border-radius:6px}
.usage-confirm-clear .usage-required,.usage-confirm-clear .usage-available{display:grid;gap:8px}
.usage-confirm-clear .usage-required>span,.usage-confirm-clear .usage-available>span{font-size:14px;color:var(--body)}
.usage-confirm-clear strong{font-size:32px;line-height:40px;font-variant-numeric:tabular-nums;color:var(--ink)}
.usage-confirm-clear .usage-available strong{font-size:24px;line-height:40px}
.usage-confirm-clear strong small{font-size:14px;font-weight:400;margin-left:6px}
.usage-confirm-clear .usage-readiness{grid-column:1/-1;display:flex;align-items:center;gap:8px;margin:0;padding-top:12px;border-top:1px solid var(--line);font-size:14px;color:var(--body)}
.usage-readiness>.icon{width:18px;height:18px;color:var(--green)}.usage-readiness.is-shortfall,.usage-readiness.is-shortfall>.icon{color:var(--orange)}
.personal-report>.invoice-people{display:flex;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px;padding:0;border:0}
.personal-report .invoice-reimbursement,.personal-report .invoice-uploader{display:inline-flex;gap:8px;align-items:center;padding:6px 10px;min-width:0;max-width:100%;background:var(--subtle);border-radius:6px}
.personal-report .invoice-people .people-mobile-label{display:inline!important;flex:none;width:auto;color:var(--body);font-size:12px;white-space:nowrap}
.personal-report .invoice-people>.invoice-reimbursement>.icon,.personal-report .invoice-people>.invoice-uploader>.icon{width:18px;height:18px;flex:none;color:var(--muted)}
.personal-report .invoice-reimbursement>[data-rb-edit]{width:auto;min-height:32px;font-size:14px}.personal-report .invoice-uploader>[data-rb-uploader]{font-size:14px}
.personal-result-statuses{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px 0 0}
.personal-result-stage{min-width:0;display:flex;align-items:center;gap:8px;min-height:36px}.result-stage-label{font-size:13px;color:var(--body);white-space:nowrap}
.personal-result-stage .risk-level{height:auto;min-height:28px;max-width:100%;white-space:normal}.personal-report .personal-result-stage .status-label{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.personal-result-statuses[hidden]{display:none}.personal-report .personal-result-nav [role=tab]{font-size:16px;min-height:44px}
.personal-query-history{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}.personal-query-history>summary{min-height:40px;line-height:40px;width:fit-content;cursor:pointer;font-size:14px;color:var(--body)}
.personal-query-history [data-personal-history]>.muted{font-size:13px;margin:8px 0 12px}

[data-read-pending]{cursor:progress}
.excel-query-counts{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0;padding:16px;background:var(--soft);border-radius:4px;font-size:14px;color:var(--body)}.excel-query-counts>span:first-child{grid-column:1/-1}.excel-query-counts strong{font-size:24px;line-height:32px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.excel-query-counts small{font-size:14px;font-weight:400}.excel-confirm #excel-submit-state{min-height:24px;margin:0;padding:0;background:transparent}
#excel-query-policy .personal-risk-policy{margin:12px 0;padding:10px 12px}
#excel-query-policy .upload-check-choice{min-height:40px;padding:6px 8px;background:#fff;border-color:var(--line)}
#excel-query-policy .upload-risk-options{padding-left:0}
#excel-query-policy .field{margin:8px 0}
.unified-ledger{overflow:clip}
.ledger-actions{position:sticky;top:32px;z-index:3;background:#fff;border-bottom:1px solid var(--line);min-height:76px}
.ledger-actions [data-ledger="query"],[data-ledger="batch-start"]{background:var(--blue);border-color:var(--blue);color:#fff}
.ledger-actions [role="status"]{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){.ledger-actions{gap:8px;padding:12px}.ledger-actions label{flex-basis:100%}}
#modal:has(.risk-confirm-list){height:min(680px,calc(100dvh - 32px))}
#modal:has(.risk-confirm-list) .modal-body{flex:1;display:flex;flex-direction:column;overflow:hidden}
.risk-confirm-list{flex:1;min-height:80px;overflow:auto;scrollbar-gutter:stable}
[data-ledger-content]>p[role="status"],.analysis-status,.personal-feedback,.connection-state{min-height:22px;line-height:22px;margin:0 0 12px}.analysis-status:empty,.personal-feedback:empty,.connection-state:empty{display:none}
.modal.excel-flow-dialog { width: min(880px, calc(100% - 32px)); height: min(760px, calc(100dvh - 32px)); }
.excel-flow-dialog #modal-content { height: 100%; }
.excel-flow-dialog .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.excel-flow-dialog .modal-foot { min-height: 84px; flex-shrink: 0; border-radius:0 0 10px 10px; }
.excel-flow-dialog .modal-head { border-radius:10px 10px 0 0; }
.excel-flow-dialog .modal-head .icon-button { width:44px;height:44px; }
.excel-file-name { overflow-wrap: anywhere; }
.excel-flow-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.excel-stage { display:grid;grid-template-columns:1fr;gap:12px;min-height:132px;padding:16px;border:1px solid var(--line);border-radius:4px;background:#fff;align-content:start; }
.excel-stage h3{display:flex;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:500;color:var(--body)}
.excel-stage h3 .icon{width:20px;height:20px;color:var(--blue)}
.excel-stage-value{font-size:28px;line-height:32px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.excel-stage .excel-stage-value small{font-size:14px;color:var(--body);font-weight:400}
.excel-stage-detail{min-height:40px;font-size:14px;line-height:20px;color:var(--body)}
.excel-stage .badge { justify-self:start; }
.excel-stage small { color:var(--muted);font-variant-numeric:tabular-nums; }
.excel-reasons { margin:16px 0;padding-left:20px;color:var(--body);line-height:1.6; }
.excel-flow-dialog .dialog-summary { display: block; min-height: 120px; background:#fff;padding:16px 0; }
.excel-flow-dialog .dialog-summary p { margin: 12px 0 0; }
.excel-flow-dialog .dialog-summary h3 { margin: 0 0 12px; font-size:16px; }
.excel-progress-note { min-height: 2em; }
@media(max-width:640px){.excel-flow-dialog .modal-foot{min-height:136px;align-content:center}.excel-flow-dialog .modal-foot .button{min-height:44px}}
/* Record updates reserve their own space; narrow screens use the existing invoice cards. */
.message-progress progress::-webkit-progress-bar{background:var(--line);border-radius:3px}
.message-progress progress::-webkit-progress-value{background:var(--blue);border-radius:3px}
.enterprise-message-list .record-operation-bottom>span:first-child{min-height:34px;line-height:17px}
.enterprise-message-list .message-stage{margin:0}
@media(max-width:600px){
 .message-invoices .invoice-ledger-table{min-width:0}
 .message-invoices .invoice-ledger-row{height:auto;min-height:180px}
 .message-detail-heading{gap:12px}.message-detail-heading>.button{font-size:12px;padding:10px}
 .message-active-scroll{height:188px}
}
.ledger-month th{padding:0!important;background:var(--subtle)}
.invoice-ledger-table .ledger-month th{width:auto}.ledger-month button{display:flex;align-items:center;gap:calc(12rem / 14);width:100%;min-height:calc(44rem / 14);padding:calc(12rem / 14) calc(16rem / 14);text-align:left;font:inherit;font-size:calc(13rem / 14);color:var(--body);background:none;border:0;cursor:pointer}.invoice-month-label{display:flex;align-items:center;gap:calc(8rem / 14)}.ledger-month .icon{width:calc(18rem / 14);height:calc(18rem / 14);flex:none}.invoice-month-count{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.ledger-month button[aria-expanded=true]>.icon{transform:rotate(90deg)}
@media(max-width:760px){.invoice-ledger-table .ledger-month,.invoice-ledger-table .ledger-month th{display:block;width:auto!important}.ledger-month button{padding:calc(12rem / 14)}}
.ledger-month button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.message-filters select{height:44px}
.message-sync .text-btn{min-width:44px;min-height:44px}
.message-invoices .button{min-height:44px}
.enterprise-message-list .record-operation-bottom>span:first-child{height:34px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.message-invoices .embedded-record{border:0;border-radius:0}
.message-invoices .embedded-record>.subnav,.message-invoices .embedded-record [data-bulk="all-sources"]{display:none}
#modal:has(.bulk-job-status){height:min(760px,calc(100dvh - 48px))}
#modal:has(.bulk-job-status) .modal-body{flex:1;scrollbar-gutter:stable}
#modal:has(.bulk-job-status) .modal-foot{min-height:112px;box-sizing:border-box;align-content:center}
.task-dock{position:fixed;right:20px;bottom:20px;width:320px;max-width:calc(100vw - 32px);z-index:12;border:1px solid #b8cde8;border-radius:8px;background:#fff;overflow:hidden}
.task-dock[hidden],.task-dock [hidden]{display:none}
.task-dock button{font:inherit;color:inherit;cursor:pointer}
.task-dock-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:12px 16px;border:0;background:var(--subtle);text-align:left}
.task-dock-toggle>.icon{color:var(--blue);flex-shrink:0}.task-dock-toggle>span:nth-child(2){flex:1;min-width:0}
.task-dock-toggle strong,.task-dock-toggle small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task-dock-toggle strong{font-size:14px}.task-dock-toggle small{font-size:12px;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}
.task-dock-toggle>span:last-child{font-size:12px;color:var(--blue)}
.task-dock-items{height:160px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.task-dock-item{display:grid;gap:8px;width:100%;min-height:108px;padding:14px 16px;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);font-size:12px!important}
.task-dock-item>span:first-child{display:flex;justify-content:space-between;gap:12px}.task-dock-item strong{font-size:14px}.task-dock-item small{color:var(--muted)}
.task-dock-item time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.task-dock-item>span:nth-child(2){font-variant-numeric:tabular-nums}.task-dock-item progress{width:100%;height:4px;appearance:none;border:0;background:var(--line);accent-color:var(--blue)}
.task-dock-item progress::-webkit-progress-bar{background:var(--line)}.task-dock-item progress::-webkit-progress-value{background:var(--blue)}.task-dock-item progress::-moz-progress-bar{background:var(--blue)}
.task-dock #floating-task-list>.text-btn{width:100%;min-height:44px;border-top:1px solid var(--line);color:var(--blue)}
.task-dock button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
body:has(dialog[open]) .task-dock{visibility:hidden}
@media(max-width:600px){.task-dock{right:16px;bottom:16px}.task-dock-items{height:min(160px,35dvh)}}

/* Personal Excel uses one stable frame through selection, confirmation and execution. */
.excel-flow-dialog:has([data-personal-excel-flow]) .modal-body{display:flex;overflow:hidden}
[data-personal-excel-flow]{display:flex;flex-direction:column;min-height:0;width:100%;overflow:auto;scrollbar-gutter:stable}
[data-personal-excel-flow]>p{margin:8px 0}
[data-personal-excel-flow]>.bulk-check-list{flex:1;min-height:140px;overflow:auto;scrollbar-gutter:stable}
[data-personal-excel-flow]>.table-foot{flex-shrink:0;gap:8px;flex-wrap:wrap}
.personal-excel-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.personal-excel-filter .field{display:flex;align-items:center;gap:10px;margin:0}
.personal-excel-filter input{width:150px}
.excel-selection-table{flex:1;min-height:8.75rem;overflow:auto;scrollbar-gutter:stable;border-top:0.0625rem solid var(--line)}
.excel-selection-table .invoice-ledger-table{min-width:0;width:100%}
.excel-selection-table .invoice-ledger-table th{position:sticky;top:0;z-index:1;background:var(--subtle,#f7f9fc);padding:0.75rem;text-align:left}
.excel-selection-table .invoice-ledger-table th:nth-child(1){width:40%}
.excel-selection-table .invoice-ledger-table th:nth-child(2){width:auto}
.excel-selection-table .invoice-ledger-table th:nth-child(3){width:10rem}
.excel-selection-table .ledger-note{font-size:0.75rem;line-height:1.25rem;overflow-wrap:anywhere}
.excel-selection-table .ledger-party>span,.excel-selection-table .ledger-project>span{white-space:normal;overflow-wrap:anywhere}
.excel-selection-table .ledger-amount{text-align:right}
@media(max-width:760px){.excel-selection-table .invoice-ledger-row{padding:1rem 0.75rem;gap:0.5rem}.excel-selection-table .invoice-ledger-table .invoice-ledger-row>td.ledger-amount{grid-row:2}.excel-selection-table .ledger-document,.excel-selection-table .ledger-amount{padding-left:1.875rem!important}}
.excel-stage-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.excel-leave-cue{display:flex;align-items:center;gap:8px;min-height:44px;padding:12px 16px;background:var(--soft);border-radius:4px;font-size:14px;color:var(--body)}
.excel-task-progress{padding:24px 0;line-height:1.7}
.excel-task-progress progress{display:block;width:100%;height:8px;margin:16px 0;accent-color:var(--blue)}
.excel-task-progress .task-spinner[hidden]{display:inline-block!important;visibility:hidden}
.task-status{display:flex;align-items:center;gap:8px;min-height:24px;font-variant-numeric:tabular-nums}.task-status strong{color:var(--blue)}
.task-spinner{display:inline-block;width:14px;height:14px;flex:none;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:task-spin 1s linear infinite}
.task-spinner[hidden]{display:inline-block;visibility:hidden;animation:none}
.task-meter{display:block;width:100%;height:6px;margin:12px 0;accent-color:var(--blue)}
@keyframes task-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.task-spinner{animation:none}}

/* Import records: one batch per row, with independent scrolling for invoices. */
.import-record-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 8px}.import-record-toolbar h2{margin:0}
.import-source-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 12px}.import-source-filters button{min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--body);font:inherit;font-size:12px;cursor:pointer}.import-source-filters [aria-pressed=true]{color:var(--blue);border-color:var(--blue);background:var(--soft)}
.enterprise-message-list .message-active{padding:8px 12px;margin:0;background:var(--subtle);border-radius:0}.enterprise-message-list .message-active h3{margin:0 0 6px}.enterprise-message-list .message-active-scroll{height:240px}.enterprise-message-list .message-sync{height:32px;padding:0 12px}.enterprise-message-list .message-record.import-record{min-height:106px;padding:12px;gap:10px}.import-record-main{display:grid;gap:8px;min-width:0}.import-record-title{display:flex;align-items:start;justify-content:space-between;gap:8px}.import-record-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:22px}.import-state{flex:none;font-size:12px;line-height:22px;color:var(--body)}.import-state.is-complete{color:var(--green)}.import-state.needs-attention{color:var(--orange)}.import-record-meta,.import-record-progress{font-size:12px;line-height:20px;color:var(--body)}.import-record .record-open{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:12px;color:var(--blue)}.import-record .record-open .icon{width:14px;height:14px}
.message-invoices{height:calc(100dvh - 260px);min-height:540px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.message-detail-heading{position:sticky;top:0;background:#fff;z-index:2;height:88px}.message-detail-heading h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.import-detail-empty{display:flex;min-height:400px;align-items:center;justify-content:center;flex-direction:column;color:var(--muted)}.import-detail-empty>.icon{width:32px;height:32px}.import-detail-empty h3{font-size:16px;color:var(--body);margin:16px 0 0}.import-detail-empty p{font-size:13px}.message-invoices .embedded-record>.filters[hidden]{display:none}
@media(max-width:1100px){.enterprise-records-layout>aside{height:380px;min-height:380px;max-height:380px;border-bottom:1px solid var(--line)}.message-invoices{height:620px;min-height:480px}.message-detail-heading{height:88px;gap:8px}.message-detail-heading .button{font-size:12px;padding:8px}.import-source-filters{position:sticky;top:0;background:#fff;z-index:2}}

.enterprise-message-list .message-active{padding:0 12px}.import-active-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;border:0;background:none;color:var(--body);font:inherit;font-size:12px;cursor:pointer}.import-active-toggle[aria-expanded=true]>.icon{transform:rotate(90deg)}.enterprise-message-list .message-active-scroll[hidden]{display:none}

/* One fixed workspace from confirmation through the last saved result. */
#modal.risk-batch-dialog{width:min(1180px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(680px,calc(100dvh - 32px))}
#modal.risk-batch-dialog .modal-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#modal.risk-batch-dialog .modal-body>.bulk-check-list,#modal.risk-batch-dialog [data-risk-batch-results]{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
#modal.risk-batch-dialog .modal-foot{min-height:82px;flex-shrink:0}
#modal.risk-batch-dialog .batch-risk-groups{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
#modal.risk-batch-dialog .batch-risk-groups [data-risk-batch-results]{flex:none;height:auto;min-height:0;max-height:none;overflow:visible}
#modal.risk-batch-dialog .batch-risk-groups>section+section{margin-top:16px}
#modal.risk-batch-dialog .batch-risk-groups>section>h3{margin:0 0 8px;font-size:14px}

#modal.risk-batch-dialog .task-status,#modal.risk-batch-dialog .task-meter{flex-shrink:0}

#modal.risk-batch-dialog>#modal-content{height:100%;max-height:100%}

/* Reuse the ledger; keep progress and actions outside its scroll area. */
[data-risk-batch-results] .invoice-ledger-table thead{position:sticky;top:0;z-index:1;background:var(--surface,#f5f8fc)}
[data-risk-batch-results] .invoice-ledger-row{height:144px}
.batch-risk-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex-basis:100%;order:1}
.batch-score,.batch-change,.batch-risk-state{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:24px;white-space:nowrap}
.batch-score,.batch-change{padding:0 6px;border:1px solid var(--line);border-radius:4px;background:var(--surface,#f5f8fc)}
.batch-score strong{font-size:16px;font-variant-numeric:tabular-nums}
.batch-score .icon,.batch-change .icon,.batch-risk-state .icon{width:14px;height:14px}
.batch-risk-state{color:var(--muted)}.batch-risk-state.is-failed{color:var(--red)}.batch-risk-state.is-active{color:var(--blue)}.batch-risk-state.is-complete{color:var(--green)}.batch-risk-state>.icon{width:16px;height:16px}
.batch-risk-state.is-abnormal{color:var(--orange)}
.batch-risk-overview{height:96px;flex:none;display:flex;flex-direction:column;justify-content:center;gap:6px;overflow:auto}.batch-risk-overview>p,.batch-risk-overview>.dialog-summary{margin:0}.batch-risk-meter{height:24px;flex:none}.batch-risk-meter>.task-meter{margin:0}
#modal.risk-batch-dialog .task-spinner[hidden]{display:inline-block;visibility:hidden}
#modal.risk-batch-dialog [data-risk-batch-results]{container-type:normal}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-ledger-table{display:table;width:100%;min-width:0;table-layout:fixed}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-ledger-table thead{display:table-header-group}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-ledger-table tbody{display:table-row-group}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-ledger-row{display:table-row;height:64px;min-height:0;padding:0}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-ledger-row>td{display:table-cell;width:auto;min-width:0;max-width:none;padding:10px!important;vertical-align:middle}
#modal.risk-batch-dialog [data-risk-batch-results] th:nth-child(1){width:30%}#modal.risk-batch-dialog [data-risk-batch-results] th:nth-child(2){width:22%}#modal.risk-batch-dialog [data-risk-batch-results] th:nth-child(3){width:32%}#modal.risk-batch-dialog [data-risk-batch-results] th:nth-child(4){width:16%}
#modal.risk-batch-dialog [data-risk-batch-results] :is(.ledger-party,.ledger-number,.ledger-project,.ledger-date,.ledger-amount strong){display:block;height:20px;line-height:20px;margin:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal.risk-batch-dialog [data-risk-batch-results] :is(.ledger-results,.ledger-invoice-link,.ledger-parties-text){height:40px;min-height:0;gap:0}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-results{flex-direction:column;flex-wrap:nowrap;justify-content:center;overflow:hidden}
#modal.risk-batch-dialog [data-risk-batch-results] :is(.batch-risk-state,.personal-risk-link,.risk-result-badge){height:20px;min-height:20px;line-height:20px;margin:0;padding:0;max-width:100%;width:100%;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal.risk-batch-dialog [data-risk-batch-results] .batch-risk-state>span:not(.icon){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-number>span{white-space:nowrap;overflow-wrap:normal}
.batch-change:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
[data-risk-batch-results] .ledger-results>.ledger-verification{display:inline-flex}
@media(max-width:760px){
 [data-risk-batch-results] .invoice-ledger-row{height:auto;min-height:232px}
 [data-risk-batch-results] .batch-risk-badges{margin:0}
}

/* Operation records keep their heading and actions fixed; only invoice rows scroll. */
.operation-record-filters,.record-invoice-filters{display:flex;gap:12px;padding:12px 16px}
.operation-record-filters label,.record-invoice-filters label{display:grid;gap:6px;min-width:0;flex:1;font-size:12px;color:var(--muted)}
.operation-record-filters select,.record-invoice-filters select{width:100%;min-height:36px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:6px}
.message-invoices{display:flex;flex-direction:column;overflow:hidden}
.message-invoices .message-detail-heading{position:static;flex:none;height:76px;padding:16px 20px}
.message-invoices #bulk-mount,.message-invoices #api-items{flex:1;min-height:0;overflow:hidden}
.message-invoices .embedded-record{height:100%;display:flex;flex-direction:column}
.message-invoices .embedded-record>.filters{flex:none;min-height:24px;height:24px;padding:0 16px;border:0;font-size:12px}
.message-invoices .embedded-record>#bulk-filter{flex:none;display:flex;align-items:end;border-bottom:1px solid var(--line);padding:0 0 4px}
.message-invoices .record-invoice-filters{flex:1;padding:12px 16px}
.message-invoices .embedded-record .preflight-actions{padding:12px 16px 12px 0}
.message-invoices .bulk-selection{flex:none;gap:8px;padding:8px 16px;min-height:88px;box-sizing:border-box;align-content:center}
.message-invoices .bulk-selection .button{padding:8px 12px;min-height:36px}
.message-invoices .table-wrap{flex:1;min-height:0;overflow:auto}
.message-invoices .table-foot{flex:none}
.message-invoices #api-items{display:flex;flex-direction:column}
.message-invoices #api-items>.heading-actions{flex:none}
.message-invoices .invoice-ledger-table thead{position:sticky;top:0;z-index:1;background:#fff}
@media(max-width:760px){.message-invoices .invoice-ledger-table{min-width:0}.message-invoices .invoice-ledger-row{height:auto;min-height:232px;padding:16px}.message-invoices .embedded-record>#bulk-filter{align-items:center}.message-invoices .bulk-selection{min-height:112px}}

/* Read the batch list first; expand one saved detail directly beneath its summary. */
.operation-filter-bar{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"outcome source" "time category";align-items:center;gap:10px 24px;padding:12px 16px;background:var(--subtle);border:1px solid var(--line);border-radius:6px;margin-bottom:16px}
.operation-filter-group{display:flex;align-items:center;gap:10px;min-width:0}
.operation-filter-label{flex:none;color:var(--muted);font-size:13px;line-height:20px;white-space:nowrap}
.operation-outcome-group{grid-area:outcome}.operation-time-group{grid-area:time}
.operation-filter-bar .import-source-filters{grid-area:source;position:static;background:none;gap:6px}
.operation-filter-bar .operation-record-filters{grid-area:category;justify-content:end}
.operation-filter-bar .import-source-filters,.operation-filter-bar .operation-record-filters{padding:0;align-items:center}
.operation-filter-bar .operation-record-filters label{grid-template-columns:auto 148px;align-items:center;gap:10px;flex:none;font-size:13px;line-height:20px}
.operation-filter-bar .operation-date-filters{margin:0;padding:0;align-items:center;gap:6px;min-width:0}
.operation-filter-bar :is(.heading-actions,.operation-outcome-filters){gap:6px;margin:0}
.operation-filter-bar :is(.operation-outcome-filters>button,.import-source-filters>button,.operation-date-filters>.button,.operation-date-filters .heading-actions>.button,.operation-record-filters select){box-sizing:border-box;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--body);font:inherit;font-size:13px;line-height:20px;white-space:nowrap;box-shadow:none}
.operation-filter-bar :is(.operation-outcome-filters>button,.import-source-filters>button,.operation-date-filters>.button,.operation-date-filters .heading-actions>.button)[aria-pressed=true]{border-color:var(--blue);background:var(--soft);color:var(--blue)}
.operation-filter-bar :is(button,select):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.enterprise-records-layout .enterprise-message-list .workbench-operation{min-height:76px;padding:12px 16px;grid-template-columns:28px minmax(0,1fr);gap:12px}
.enterprise-records-layout .enterprise-message-list .workbench-operation .record-operation-main{grid-template-columns:minmax(180px,24%) minmax(0,1fr) 76px;gap:6px 24px}
.enterprise-records-layout .record-operation-top{grid-column:1;grid-row:1;display:block;min-width:0}
.enterprise-records-layout .record-operation-top strong{display:block;overflow:hidden;text-overflow:ellipsis;line-height:24px;font-size:14px}
.enterprise-records-layout .enterprise-message-list .record-operation-meta{display:contents;font-size:12px;white-space:nowrap}
.enterprise-records-layout .record-operation-meta .operation-actor{grid-column:1;grid-row:2;line-height:24px;font-size:12px;color:var(--muted)}
.enterprise-records-layout .record-operation-meta time{grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0;color:var(--muted);font-size:12px}
.enterprise-records-layout .enterprise-message-list .record-operation-bottom{grid-column:2;grid-row:1/3;display:flex;justify-content:start;align-items:center;gap:8px;margin:0;min-height:24px}
.enterprise-records-layout .record-operation-bottom>span:first-child{height:auto;min-height:24px;overflow:visible;display:flex;align-items:center;flex-wrap:wrap;gap:6px;-webkit-line-clamp:unset}
.enterprise-records-layout .enterprise-message-list .record-open{grid-column:3;grid-row:2;align-self:center;justify-self:end;margin:0;font-size:12px;white-space:nowrap}
.enterprise-records-layout .workbench-operation[aria-expanded=true]{position:relative}
.enterprise-records-layout .workbench-operation[aria-expanded=true]::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--blue)}
.enterprise-records-layout [data-message-detail-slot]{padding:0}
.enterprise-records-layout .message-invoices{height:auto;min-height:0;overflow:visible;margin:0;padding:0 16px 16px;border-radius:6px}
.enterprise-records-layout .message-invoices .message-detail-heading{height:auto;min-height:56px;padding:12px 16px;gap:12px;background:var(--subtle)}
.enterprise-records-layout .message-detail-heading>div{display:flex;align-items:baseline;gap:16px}
.enterprise-records-layout .message-detail-heading h2{font-size:14px;line-height:24px;margin:0}
.enterprise-records-layout .message-detail-heading>.text-btn{flex:none;min-height:32px}
.enterprise-records-layout .message-invoices :is(#api-items,#bulk-mount,#message-job-mount,.embedded-record){height:auto;min-height:0;overflow:visible;flex:none}
.enterprise-records-layout .message-invoices .table-wrap{max-height:480px;overflow:auto}
.enterprise-records-layout .message-invoices .bulk-selection{min-height:56px}
.enterprise-records-layout .message-invoices .embedded-record>#bulk-filter{flex-wrap:wrap}
@media(max-width:1100px){
 .operation-filter-bar{display:flex;flex-wrap:wrap;gap:10px 20px}.operation-filter-bar .operation-record-filters{margin-left:auto}
 .enterprise-records-layout .enterprise-message-list .workbench-operation .record-operation-main{grid-template-columns:minmax(150px,24%) minmax(0,1fr) 56px;gap:6px 12px}
}
@media(max-width:600px){
 .operation-filter-bar{padding:12px;gap:10px}.operation-filter-bar>.operation-filter-group,.operation-filter-bar>.import-source-filters,.operation-filter-bar>.operation-record-filters{width:100%;margin:0}.operation-filter-bar .operation-record-filters{justify-content:start}.operation-filter-bar .operation-record-filters label{flex:1;grid-template-columns:auto minmax(0,1fr)}.operation-filter-bar :is(.operation-outcome-filters>button,.import-source-filters>button,.operation-date-filters>.button,.operation-date-filters .heading-actions>.button,.operation-record-filters select){min-height:44px}.operation-filter-bar .import-source-filters{padding-left:38px;position:relative}.operation-filter-bar .import-source-filters>.operation-filter-label{position:absolute;left:0;top:12px}.operation-filter-bar .operation-time-group{align-items:start}.operation-time-group>.operation-filter-label{padding-top:12px}
 .enterprise-records-layout .enterprise-message-list .workbench-operation{padding:12px;gap:8px;grid-template-columns:24px minmax(0,1fr)}
 .enterprise-records-layout .enterprise-message-list .workbench-operation .record-operation-main{grid-template-columns:minmax(0,1fr) 40px;gap:6px 8px}
 .enterprise-records-layout .enterprise-message-list .record-operation-meta{grid-column:1/-1;grid-row:3;display:flex;flex-direction:row;gap:12px}
 .enterprise-records-layout .enterprise-message-list .record-open{grid-column:2;grid-row:1}
 .enterprise-records-layout .enterprise-message-list .record-operation-bottom{grid-column:1/-1;grid-row:2}
 .enterprise-records-layout .message-invoices{padding:0 8px 12px}
 .enterprise-records-layout .message-detail-heading>div{display:block}.enterprise-records-layout .message-detail-heading p{white-space:normal}
}

/* Risk analysis keeps the overview in place while invoices open in the shared list format. */
.analysis-dashboard{margin:12px 0 16px;border:1px solid var(--line);border-radius:6px}
.analysis-dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line)}
.analysis-dashboard-head h2{font-size:16px;margin:0;flex:none}
.analysis-dashboard-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.analysis-dashboard-level{display:grid;grid-template-columns:1fr auto;gap:12px 16px;text-align:left;padding:20px;background:#fff;border:0;color:var(--ink);font:inherit;cursor:pointer;min-width:0}
.analysis-dashboard-level+.analysis-dashboard-level{border-left:1px solid var(--line)}
.analysis-dashboard-level[aria-pressed=true]{background:var(--soft)}
.analysis-dashboard-level>.risk-level{justify-self:start;display:inline-flex;align-items:center;gap:6px}
.analysis-dashboard-level .icon{width:16px;height:16px}
.analysis-dashboard-amount{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.analysis-dashboard-count{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--body)}
.analysis-dashboard-link{display:flex;align-items:center;justify-content:end;gap:6px;font-size:13px;color:var(--blue)}
.analysis-risk-tag{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:0;margin:4px 12px 4px 0;font-size:14px;white-space:normal}
.analysis-risk-tag .risk-level{white-space:nowrap;font-size:12px;flex:none}
.analysis-company-table{width:100%;min-width:700px;table-layout:auto}
.analysis-company-table td:first-child{font-weight:600;min-width:200px;max-width:440px;white-space:normal;overflow-wrap:anywhere}
.analysis-company-table td:last-child{white-space:nowrap}
.analysis-invoices-dialog{width:min(1180px,calc(100vw - 40px));height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0}
.analysis-invoices-dialog[open]{display:flex;flex-direction:column}
.analysis-invoices-dialog .modal-head{flex:none;padding:16px 24px;gap:16px;min-height:80px;box-sizing:border-box}
.analysis-invoices-dialog .modal-head>div{min-width:0}.analysis-invoices-dialog .modal-head small{font-size:12px;color:var(--muted)}
.analysis-invoices-dialog .modal-head h2{font-size:20px;line-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0}
.analysis-invoice-status{flex:none;min-height:22px;line-height:22px;padding:8px 24px;font-size:13px;color:var(--body)}
.analysis-invoice-body{flex:1;min-height:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.analysis-invoice-body .table-wrap{overflow:visible}.analysis-invoice-body thead{position:sticky;top:0;z-index:1;background:var(--subtle)}
.analysis-invoice-risks{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.analysis-invoice-risks .analysis-risk-tag{margin:0;flex-wrap:wrap}
.analysis-invoice-body .ledger-results>.text-btn{display:flex;align-items:center;gap:6px;min-height:36px;order:2}
.analysis-invoice-body .ledger-results>.text-btn .icon{width:16px;height:16px}
.analysis-invoice-body .ledger-results>.text-btn[aria-expanded=true] .icon{transform:rotate(90deg)}
.analysis-invoice-body .analysis-expanded-row>td{padding:16px 24px;background:var(--soft)}
.analysis-saved-report{white-space:normal;overflow-wrap:anywhere;min-height:120px}.analysis-saved-report>.original-fields{padding:12px 16px;background:#fff;margin:0 0 16px}
.analysis-invoices-dialog .modal-foot{flex:none;justify-content:space-between;align-items:center;padding:12px 24px;gap:12px}
.analysis-invoices-dialog .modal-foot>span{font-size:13px;color:var(--muted)}.analysis-invoices-dialog .modal-foot>div{display:flex;gap:8px}
@media(hover:hover) and (pointer:fine){.analysis-dashboard-level:hover:not([aria-pressed=true]){background:var(--subtle)}}
@media(max-width:760px){
 .risk-analysis button,.risk-analysis input,.risk-analysis select,.analysis-invoices-dialog button{min-height:44px}
 .analysis-invoices-dialog .icon-button{min-width:44px;flex:none}
 .analysis-dashboard-head{align-items:flex-start;flex-direction:column;padding:12px 16px}.analysis-dashboard-levels{grid-template-columns:1fr}
 .analysis-dashboard-level{padding:16px}.analysis-dashboard-level+.analysis-dashboard-level{border-left:0;border-top:1px solid var(--line)}.analysis-dashboard-amount{font-size:22px}
 .analysis-invoices-dialog{width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .analysis-invoices-dialog .modal-head{padding:12px 16px}.analysis-invoice-status{padding:8px 16px}
 .analysis-invoice-body .invoice-ledger-row{height:auto;padding:16px}
 .analysis-invoice-body .analysis-expanded-row,.analysis-invoice-body .analysis-expanded-row>td{display:block}.analysis-invoice-body .analysis-expanded-row>td{padding:12px}
 .analysis-invoices-dialog .modal-foot{padding:12px;flex-wrap:wrap}.analysis-invoices-dialog .modal-foot .button{padding:8px 10px}
}

/* The import and record entry points share one stable execution surface. */
.excel-reasons{min-height:52px;margin:16px 0;padding-left:20px}
.excel-flow-dialog .dialog-summary progress{width:100%;height:8px;accent-color:var(--blue)}
.bulk-job-status:has(.excel-flow-steps){background:transparent;padding:0}
.excel-flow-dialog .excel-stage small{min-height:24px;font-variant-numeric:tabular-nums}

.import-record-time{font-size:12px;line-height:20px;color:var(--body);font-variant-numeric:tabular-nums;white-space:nowrap}
.message-section-hint,.message-history-heading p{margin:0 0 10px;font-size:12px;line-height:20px;color:var(--body)}
.message-history-heading{padding:8px 12px 0}.enterprise-message-list .message-history-heading h2{margin:0 0 4px;font-size:14px}

.risk-result-badge{max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;text-align:left}
/* Enterprise settings: compact summaries, explicit actions and readable audit details. */
.settings-create{margin:24px 0;border-top:1px solid var(--line);padding-top:16px}.settings-create>summary{width:fit-content;cursor:pointer;color:var(--blue);font-weight:600;min-height:40px;padding:10px 0}.settings-create[open]>.settings-form{margin-top:16px}.settings-create>summary:focus-visible,.company-members>summary:focus-visible,.invitation-history>summary:focus-visible,.billing-detail>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.management-surface .settings-row>span>small:empty{display:none}.company-members{margin-top:12px}.company-members>summary{cursor:pointer;color:var(--blue);font-size:13px;min-height:36px;padding:8px 0}.company-member-list{list-style:none;padding:0;margin:8px 0 0;max-height:260px;overflow:auto;scrollbar-gutter:stable}.company-member-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:10px 12px;border-bottom:1px solid var(--line);font-size:13px;background:var(--subtle)}.company-member-list li>span{overflow-wrap:anywhere}.member-self{display:inline-block;font-size:12px;line-height:20px;font-weight:500;padding:0 6px;color:var(--blue);background:var(--soft);border-radius:3px}.management-surface .member-settings-row{grid-template-columns:minmax(0,1fr) auto;padding:18px 0}.management-surface .member-settings-row>span{min-width:0;overflow-wrap:anywhere}.management-surface .member-settings-row>span>small{line-height:22px}.invitation-history{margin-top:16px}.invitation-history>summary{cursor:pointer;color:var(--body);padding:12px 0;min-height:40px}.management-surface .invitation-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.invitation-row>span{grid-column:1}.invitation-row>span>small{width:fit-content;padding:2px 8px;background:var(--subtle);border-radius:3px}.invitation-row>p,.invitation-row>small{grid-column:1;margin:0;line-height:22px}.invitation-row>.button{grid-column:2;grid-row:1/3;align-self:center}.invitation-role{font-size:13px;color:var(--body)}
.settings-balance{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;background:var(--soft);border-radius:6px}.settings-balance>div:first-child{display:grid;gap:8px}.settings-balance strong{font-size:36px;line-height:44px;font-variant-numeric:tabular-nums}.settings-balance strong small{font-size:14px;font-weight:400}.balance-held{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--body)}.settings-prices{display:flex;gap:24px;flex-wrap:wrap;padding:20px 0 8px}.settings-prices>span{display:flex;align-items:center;gap:8px;font-size:13px}.settings-prices .icon,.balance-held .icon,.rule-flow .icon,.settings-current-rule>strong .icon{width:18px;height:18px}.settings-content>#finance-ledger{margin-top:28px}#finance-ledger .bulk-table th:first-child{width:19%}#finance-ledger .bulk-table th:nth-child(2){width:22%}#finance-ledger .bulk-table th:nth-child(3){width:19%}#finance-ledger .bulk-table th:nth-child(4){width:22%}#finance-ledger .bulk-table th:last-child,#finance-ledger .bulk-table td:last-child{text-align:left;white-space:normal}#finance-ledger .bulk-table td{vertical-align:top;padding:16px 12px;font-size:13px}#finance-ledger td>.icon{width:16px;height:16px;margin-right:6px;vertical-align:middle}.billing-change{white-space:nowrap;font-variant-numeric:tabular-nums}.billing-detail>summary{cursor:pointer;color:var(--blue);min-height:28px}.billing-detail dl{margin:12px 0;font-size:12px;overflow-wrap:anywhere}.billing-detail dt{color:var(--muted);margin-top:8px}.billing-detail dd{margin:4px 0 0}
.settings-current-rule{margin:calc(20rem / 14) 0 calc(24rem / 14);padding:calc(24rem / 14);background:var(--soft);border:calc(1rem / 14) solid var(--line);border-radius:calc(6rem / 14)}.current-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:calc(12rem / 14);font-size:calc(13rem / 14);font-weight:600}.current-rule-state{display:inline-flex;align-items:center;gap:calc(6rem / 14);color:var(--blue);font-size:calc(12rem / 14);white-space:nowrap}.current-rule-state .icon{width:calc(16rem / 14);height:calc(16rem / 14)}.current-rule-flow{display:grid;grid-template-columns:minmax(0,1fr) calc(32rem / 14) minmax(0,1fr);align-items:center;max-width:calc(480rem / 14);margin:calc(16rem / 14) auto 0}.current-rule-step{display:grid;justify-items:center;gap:calc(8rem / 14);text-align:center}.current-rule-icon{display:grid;place-items:center;width:calc(48rem / 14);height:calc(48rem / 14);background:#fff;color:var(--blue)}.current-rule-icon .icon{width:calc(28rem / 14);height:calc(28rem / 14)}.current-rule-step strong{font-size:calc(18rem / 14);line-height:calc(24rem / 14)}.current-rule-step small{color:var(--blue);font-size:calc(12rem / 14);line-height:calc(20rem / 14)}.current-rule-step.manual .current-rule-icon,.current-rule-step.manual small{color:var(--body)}.current-rule-step.manual .current-rule-icon{background:transparent}.current-rule-arrow{align-self:start;display:grid;place-items:center;height:calc(48rem / 14);color:var(--blue)}.current-rule-arrow .icon{width:calc(24rem / 14);height:calc(24rem / 14)}.current-rule-flow:has(.manual) .current-rule-arrow{color:var(--body)}.current-rule-empty{margin:calc(16rem / 14) 0 0;font-size:calc(18rem / 14)}.settings-current-rule .current-rule-condition{margin:calc(16rem / 14) 0 0;text-align:center;font-size:calc(12rem / 14);line-height:calc(20rem / 14);color:var(--body)}.current-rule-meta{margin-top:calc(16rem / 14);font-size:calc(12rem / 14);line-height:calc(20rem / 14);color:var(--body);overflow-wrap:anywhere}.rule-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:calc(12rem / 14);min-width:0}.rule-choices legend{margin-bottom:calc(12rem / 14);font-weight:600}.rule-choices legend span{margin-left:calc(12rem / 14);color:var(--body);font-size:calc(12rem / 14);font-weight:400}.rule-choices>label{display:flex;align-items:center;gap:calc(8rem / 14);padding:calc(16rem / 14) calc(12rem / 14);min-height:calc(64rem / 14);border:calc(1rem / 14) solid var(--line);border-radius:calc(6rem / 14);cursor:pointer}.rule-choices>label:has(:checked){border-color:var(--blue);background:var(--soft)}.rule-choices input{accent-color:var(--blue);width:calc(20rem / 14);height:calc(20rem / 14);flex:none}.rule-choice-flow{display:flex;align-items:center;gap:calc(6rem / 14);font-size:calc(14rem / 14);white-space:nowrap}.rule-choice-flow .icon{width:calc(20rem / 14);height:calc(20rem / 14);color:var(--blue);flex:none}.rule-choice-hint{margin-left:auto;color:var(--body);font-size:calc(12rem / 14);white-space:nowrap}.rule-editor-actions{display:flex;align-items:center;gap:calc(12rem / 14);justify-content:space-between}.rule-editor-actions .button{min-height:calc(44rem / 14)}.rule-help .icon{width:calc(16rem / 14);height:calc(16rem / 14)}.rule-threshold input{max-width:calc(220rem / 14)}.rule-threshold p,.rule-editor>p{font-size:calc(13rem / 14);line-height:calc(22rem / 14)}.rule-editor:has([name=defaultMode][value=basic]:checked) .rule-threshold input{background:var(--subtle);color:var(--muted)}.rule-editor>.button{justify-self:start}.settings-content>[role=status]:empty{display:none}
@media(max-width:760px){.settings-balance{padding:20px;align-items:flex-start;flex-direction:column;gap:12px}.rule-choices{grid-template-columns:1fr}.settings-prices{gap:12px;flex-direction:column}.management-surface .member-settings-row{grid-template-columns:minmax(0,1fr)}.management-surface .invitation-row{grid-template-columns:minmax(0,1fr)}.invitation-row>.button{grid-column:1;grid-row:auto;justify-self:start}.company-member-list li{grid-template-columns:minmax(0,1fr);gap:4px}}
.current-rule-flow.single{grid-template-columns:minmax(0,1fr)}
.settings-layout>*{min-width:0}.management-surface #api-member-list{max-height:480px;overflow:auto;scrollbar-gutter:stable;padding-right:8px}
@media(max-width:760px){.settings-current-rule{padding:calc(16rem / 14)}.rule-choices{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#finance-ledger .bulk-table{min-width:0;display:block}#finance-ledger .bulk-table thead{display:none}#finance-ledger .bulk-table tbody{display:block}#finance-ledger .bulk-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px 0;border-bottom:1px solid var(--line)}#finance-ledger .bulk-table td{padding:0;border:0;min-width:0}#finance-ledger .bulk-table td:nth-child(1){grid-column:1;grid-row:1}#finance-ledger .bulk-table td:nth-child(2){grid-column:1;grid-row:2}#finance-ledger .bulk-table td:nth-child(3){grid-column:1;grid-row:3}#finance-ledger .bulk-table td:nth-child(4){grid-column:2;grid-row:1;text-align:right}#finance-ledger .bulk-table td:nth-child(5){grid-column:2;grid-row:2/4;max-width:150px;text-align:right}#finance-ledger .table-foot{flex-wrap:wrap;gap:8px}}
.billing-date-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}
.billing-date-filter label{display:grid;gap:8px;color:var(--muted);font-size:14px}
.billing-date-filter input{width:168px}
.billing-day{border-top:1px solid var(--border,#dfe7f1)}
.billing-day:last-child{border-bottom:1px solid var(--border,#dfe7f1)}
.billing-day>summary{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) auto 20px;align-items:center;gap:16px;cursor:pointer;padding:20px 16px;font-size:14px;list-style:none}
.billing-day>summary::-webkit-details-marker{display:none}
.billing-day>summary>strong{font-size:16px}
.billing-day-total b{font-size:20px;margin-left:8px;font-variant-numeric:tabular-nums}
.billing-day-total small{margin-left:4px}
.billing-day>summary>small{color:var(--muted)}
.billing-day[open]>summary{background:var(--surface,#f5f8fc)}
.billing-day>summary>.icon{transform:rotate(90deg)}
.billing-day[open]>summary>.icon{transform:rotate(-90deg)}
.billing-day>summary:focus-visible{outline:2px solid var(--primary,#1677ff);outline-offset:-2px}
.billing-day-content{padding:0 12px 16px}
.billing-day-content .table-wrap{max-height:440px;overflow:auto;scrollbar-gutter:stable}
@media(max-width:700px){.billing-day>summary{grid-template-columns:1fr auto 20px;gap:8px;padding:16px 8px}.billing-day>summary>strong{grid-column:1}.billing-day>summary>small{grid-column:2;grid-row:1}.billing-day>summary>.icon{grid-column:3;grid-row:1}.billing-day-total{grid-column:1;grid-row:2}.billing-day>summary>span:not(.billing-day-total):not(.icon){grid-column:1/-1;grid-row:3}.billing-date-filter{gap:8px}.billing-date-filter label{flex:1;min-width:132px}.billing-date-filter input{width:100%;min-width:0}.billing-day-content{padding:0 4px 12px}}

.settings-nav button,.settings-content .button,.settings-content select,.settings-content input:not([type=radio]),.settings-create>summary,.company-members>summary,.invitation-history>summary,.member-editor>summary,.billing-detail>summary{min-height:44px}
.company-members>summary,.settings-create>summary,.invitation-history>summary,.member-editor>summary,.billing-detail>summary{align-content:center}
.billing-date-filter .field{width:auto;gap:8px;margin:0}
.billing-date-filter select{max-width:280px;min-width:160px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font:inherit;background:#fff;color:var(--ink)}
.billing-days{min-height:180px}.member-records{min-height:44px;display:inline-flex;align-items:center;justify-self:start;margin-top:8px}
@media(max-width:700px){.billing-date-filter select{width:100%;max-width:100%;min-width:0}}
.management-surface .member-editor>summary,.management-surface .button{min-height:44px}
.member-editor:not([open])>summary>.member-edit-open,.member-editor[open]>summary>.member-edit-closed{display:none}
.member-role{display:inline-flex;padding:2px 8px;border-radius:3px;background:var(--soft);color:var(--blue);font-weight:500;vertical-align:middle}.member-disabled{justify-self:start;padding:2px 8px;background:var(--subtle);border-radius:3px}.member-company-scope>summary{cursor:pointer;font-size:13px;min-height:32px;align-content:center;color:var(--blue)}.member-company-scope>p{margin:8px 0;line-height:22px;font-size:13px}.member-role-help{margin:24px 0 0;color:var(--body);font-size:13px;line-height:22px}.member-admin-note{margin:0;color:var(--body);font-size:13px}.member-fields>.member-all-entities,.member-fields>label:has([name=legalEntityIds]),.member-fields>.company-scope-choices{grid-column:1/-1}.member-limit-usage{margin:0;grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:14px}.member-limit-usage>span{white-space:nowrap}.member-limit-usage strong{font-variant-numeric:tabular-nums}.member-confirm{grid-column:1/-1;padding:12px 16px;background:var(--soft);border-radius:6px}.member-confirm>p{margin:0 0 12px;font-size:14px}.member-confirm>.button{margin-right:8px}.invitation-actions{grid-column:2;grid-row:1/4;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.invite-role-help{font-weight:400;line-height:20px}.invitation-row>small:empty{display:none}
@media(max-width:760px){.member-role-help{margin:0}.invitation-actions{grid-column:1;grid-row:auto}.member-role{font-size:12px}}

/* Five recent operations stay expanded; refresh preserves existing rows. */
.workbench-record-status{height:24px;margin:0;color:var(--body);font-size:13px;line-height:24px}.workbench-operation-list{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.workbench-operation{display:flex;gap:16px;align-items:flex-start;width:100%;min-height:88px;padding:16px;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;cursor:pointer}.workbench-operation:last-child{border-bottom:0}.workbench-operation .record-operation-icon{width:24px;height:24px;padding:0;background:none;flex:none;color:var(--blue)}.workbench-operation .record-operation-main{flex:1;min-width:0}.workbench-operation .record-operation-top strong{font-size:15px}.workbench-operation .record-operation-top time{font-size:12px;color:var(--body);white-space:nowrap}.workbench-operation .record-operation-bottom{font-size:13px;align-items:center;flex-wrap:wrap;gap:8px}.workbench-operation .record-open{margin-left:auto;color:var(--blue);white-space:nowrap}.home-operation-state{font-size:12px;border:1px solid var(--line);border-radius:4px;padding:2px 8px;white-space:nowrap}.home-operation-state.is-complete{color:var(--green);border-color:#bbdfc9;background:#f0f7f2}.home-operation-state.needs-attention{color:var(--orange);border-color:#f3d4b9;background:#fcf5ee}.home-operation-state.is-failed{color:var(--red);border-color:#f1c4be;background:#fff5f3}.home-operation-state.is-active{color:var(--blue);background:var(--soft)}.workbench-record-empty{margin:0;padding:24px 16px;color:var(--body)}.workbench-operation:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.member-quota{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 24px;margin-top:12px;color:var(--body);font-size:14px}.member-quota span{white-space:nowrap}.member-quota strong{color:var(--ink);font-variant-numeric:tabular-nums}.member-quota small{flex-basis:100%}.member-limit-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding-top:16px;border-top:1px solid var(--line)}.member-limit-fields>p{grid-column:1/-1;margin:0}.member-count-details{display:flex;flex-direction:column;gap:12px}.member-count-details>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.member-count-details .icon{width:18px;height:18px}.enterprise-balance-summary{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0}.member-count-balance strong small{font-size:16px;font-weight:400}@media(max-width:700px){.member-limit-fields{grid-template-columns:minmax(0,1fr)}.member-quota{gap:8px 16px}.member-count-balance{grid-template-columns:minmax(0,1fr)}}
@media(hover:hover) and (pointer:fine){.workbench-operation:hover{background:var(--subtle)}}
@media(max-width:700px){.workbench-operation{padding:16px 8px;gap:12px}.workbench-operation .record-operation-top time{flex-basis:100%;margin-left:0}.workbench-operation .record-operation-bottom>span:first-child{flex-basis:100%}}

.home-feedback{height:24px;line-height:24px;margin:0 0 8px;color:var(--body);font-size:13px}.home-operation-state{display:inline-flex;align-items:center;gap:4px}.home-operation-state>.icon{width:14px;height:14px;flex:none}
@media(min-width:701px){.workbench-upload{min-height:176px}}

/* Shared personal / enterprise reimbursement controls. */
.invoice-people{display:grid;gap:0;min-width:0;font-size:13px;color:var(--body)}
.people-mobile-label{display:none}
.invoice-reimbursement>[data-rb-edit]{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.operation-actor{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:400;color:var(--muted);min-width:0;max-width:100%}.operation-actor>span{color:var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.invoice-uploader{display:inline-flex;gap:6px;align-items:center;min-height:32px;min-width:0;max-width:100%}.invoice-uploader>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--body)}
.invoice-reimbursement{display:flex;align-items:center;gap:8px;min-height:32px;font-size:12px;color:var(--muted);min-width:0}
.invoice-reimbursement>.text-btn{display:block;width:100%;font-size:13px;min-width:0;max-width:100%;min-height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.reimbursement-upload{display:block;width:fit-content;max-width:100%;min-width:min(260px,100%);margin:0;padding:0;background:#fff;flex:none}.reimbursement-picker{position:relative;min-width:0}.reimbursement-picker>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:13px;line-height:20px;cursor:pointer;list-style:none}.reimbursement-picker>summary::-webkit-details-marker{display:none}.reimbursement-picker>summary>.icon{width:18px;height:18px;color:var(--muted);flex:none}.reimbursement-picker>summary>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.reimbursement-setting{color:var(--blue);flex:none}.reimbursement-picker-body{position:absolute;z-index:6;top:calc(100% + 4px);inset-inline:auto 0;width:320px;max-width:calc(100vw - 48px);display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 16px #17212818}.reimbursement-picker-body>.field,.reimbursement-picker-body>.reimbursement-options,.reimbursement-picker-body>small{grid-column:1/-1}.reimbursement-picker-body .text-btn{min-height:44px;font-size:13px}.reimbursement-picker-body>.reimbursement-own{justify-self:end}.reimbursement-picker>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.reimbursement-options{grid-column:1/-1;font-size:12px;color:var(--body)}.reimbursement-options>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;gap:6px}.reimbursement-options>summary::before{content:'＋';color:var(--muted)}.reimbursement-options[open]>summary::before{content:'−'}
.reimbursement-upload>.field{grid-column:1/-1}.reimbursement-upload>.text-btn{text-align:left;justify-self:start}.reimbursement-upload>.reimbursement-own{justify-self:end}
.reimbursement-upload .field{margin:0}.reimbursement-upload .field select{width:100%}.reimbursement-upload>.text-btn{align-self:end;min-height:44px}.reimbursement-upload>small,.reimbursement-match{grid-column:1/-1;font-size:12px;color:var(--body)}
.reimbursement-match{display:flex;gap:8px;align-items:center;min-height:32px}.reimbursement-match input{width:18px;height:18px}
.reimbursement-picker-body>.reimbursement-dismiss{grid-column:1/-1;justify-self:end}
@media(max-width:600px){.reimbursement-picker-body{position:fixed;inset:auto 24px 152px;max-height:calc(100dvh - 244px);overflow:auto;scrollbar-gutter:stable}}
.reimbursement-dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border-radius:12px}
.reimbursement-add-modes{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:16px}.reimbursement-add-modes button{border:0;border-bottom:2px solid transparent;background:none;padding:10px 0;font:inherit;color:var(--muted);cursor:pointer}.reimbursement-add-modes button[aria-pressed=true]{border-bottom-color:var(--blue);color:var(--blue);font-weight:600}
.reimbursement-members>button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;font:inherit;cursor:pointer}.reimbursement-members strong{display:block;font-weight:500}.reimbursement-members small{display:block;color:var(--muted);margin-top:4px}.reimbursement-members>button>span:last-child{color:var(--blue);font-size:13px}.reimbursement-members>button:disabled>span:last-child{color:var(--muted)}.reimbursement-members .icon{width:18px;height:18px}
.reimbursement-phone-clear{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.reimbursement-link-confirm{padding:16px;background:var(--soft);border-radius:6px}.reimbursement-link-confirm h3{font-size:16px;margin:0 0 12px}.reimbursement-link-confirm p{margin:8px 0;overflow-wrap:anywhere}
.reimbursement-notice{min-height:24px;margin:0 0 12px;color:var(--muted);font-size:14px;line-height:24px}
.reimbursement-name-hint{display:block;min-height:20px;color:var(--muted);font-size:14px;line-height:20px}
.reimbursement-removal-actions{display:flex;gap:8px}
.reimbursement-dialog .reimbursement-remove{margin-right:auto;color:var(--red)}
.reimbursement-dialog [data-rb-removal]{padding:12px 0;border-top:1px solid var(--line)}
.reimbursement-dialog[open]{display:flex;flex-direction:column}.reimbursement-dialog>form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 48px)}
.reimbursement-dialog .modal-head,.reimbursement-dialog .modal-foot{flex:none;background:var(--subtle)}.reimbursement-dialog .modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.reimbursement-dialog h2{font-size:20px;margin:0}
.reimbursement-dialog .modal-body{overflow:auto;scrollbar-gutter:stable;min-height:200px;overscroll-behavior:contain}.reimbursement-dialog .field{display:grid;gap:8px;margin:12px 0}.reimbursement-dialog select,.reimbursement-dialog input:not([type=checkbox]){width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font:inherit;box-sizing:border-box}
.reimbursement-invoices{max-height:200px;overflow:auto;border-block:1px solid var(--line);margin-bottom:16px}.reimbursement-invoices label{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.reimbursement-invoices input{width:18px;height:18px;flex:none}.reimbursement-invoices span{min-width:0;overflow-wrap:anywhere}
.personal-workspace:has(>.reimbursement-profile){max-width:1040px;margin-inline:auto}.personal-workspace:has(>.reimbursement-profile)>.heading{margin-bottom:20px;align-items:center}.personal-workspace:has(>.reimbursement-profile)>.heading h1{font-size:28px}
.reimbursement-profile{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start;margin-bottom:28px;container-type:inline-size}.reimbursement-profile h2{font-size:18px;margin:0}.reimbursement-profile .muted{font-size:13px;line-height:1.6;margin:8px 0 20px}.reimbursement-self{padding:24px;background:var(--soft);border-radius:8px;min-width:0}.reimbursement-avatar{display:grid;place-items:center;width:40px;height:40px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--blue);margin-bottom:20px}.reimbursement-self [data-rb-profile]{margin-top:16px;font-size:20px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}.reimbursement-self .button{background:#fff}.reimbursement-directory{min-width:0;padding:24px;border:1px solid var(--line);border-radius:8px}.reimbursement-directory .section-head{justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:12px;margin:0}.reimbursement-directory [data-rb-count]{font-size:13px;font-weight:400;color:var(--muted);margin-left:8px}.reimbursement-directory .section-head .button{margin-left:auto}.reimbursement-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:160px;border-top:1px solid var(--line);text-align:center;color:var(--muted)}.reimbursement-empty>.icon{width:28px;height:28px}.reimbursement-empty strong{font-size:14px;font-weight:400}.reimbursement-empty .text-btn{display:inline-flex;gap:6px;align-items:center;min-height:40px}.reimbursement-people-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));column-gap:20px;list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}.reimbursement-people-list li{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px;min-width:0;overflow-wrap:anywhere}.reimbursement-person-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;background:var(--subtle);border-radius:6px;color:var(--muted)}.reimbursement-people-list li>div{min-width:0;display:grid;gap:4px}.reimbursement-people-list li strong{font-weight:500}.reimbursement-people-list li>div>span{color:var(--muted);font-size:13px}.reimbursement-dialog [data-rb-error]{min-height:24px;color:var(--orange)}
@media(max-width:1000px){.reimbursement-profile{grid-template-columns:1fr}.reimbursement-self{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:4px 16px;align-items:center}.reimbursement-avatar{grid-column:1;grid-row:1/4;margin:0}.reimbursement-self h2,.reimbursement-self [data-rb-profile],.reimbursement-self .muted{grid-column:2;margin:0}.reimbursement-self .button{grid-column:3;grid-row:1/4}.reimbursement-self [data-rb-profile]{font-size:18px}}
@media(max-width:600px){.reimbursement-profile{gap:16px}.reimbursement-self,.reimbursement-directory{padding:20px}.reimbursement-self{grid-template-columns:32px minmax(0,1fr)}.reimbursement-avatar{width:32px;height:32px}.reimbursement-self .button{grid-column:2;grid-row:4;justify-self:start;margin-top:12px}.reimbursement-directory .section-head .button{margin-left:0}.personal-workspace:has(>.reimbursement-profile)>.heading{flex-direction:row}.reimbursement-directory .muted{margin-bottom:16px}}
.reimbursement-directory:has(.reimbursement-empty) .section-head>button{display:none}
.personal-workspace:has(>.reimbursement-profile)>.heading{display:flex;justify-content:space-between}.personal-workspace:has(>.reimbursement-profile)>.heading .button{width:auto;flex:none}
@media(max-width:600px){.reimbursement-dialog .modal-body{padding:16px}.reimbursement-dialog .modal-head,.reimbursement-dialog .modal-foot{padding:16px}.reimbursement-upload{grid-template-columns:minmax(0,1fr) auto}}

.invoice-people [data-rb-history]{padding:4px;min-width:28px;min-height:32px}.invoice-people [data-rb-history] .icon{width:15px;height:15px}
.invoice-operation-history{list-style:none;margin:0;padding:0}.invoice-operation-history li{padding:16px 0;border-bottom:1px solid var(--line,#e2e8f0)}.invoice-operation-history li>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.invoice-operation-history time{color:var(--muted,#718096);font-size:12px;font-variant-numeric:tabular-nums}.invoice-operation-history p{font-size:13px;margin:8px 0 0}.invoice-operation-history .operation-actor{margin-top:8px}

.people-history-dialog{height:fit-content;max-height:min(680px,calc(100dvh - 32px))}.people-history-dialog>.modal-body{flex:1;min-height:0}.invoice-operation-history time{margin-left:auto}.invoice-operation-history .home-operation-state{display:inline-flex;gap:4px;align-items:center}.invoice-operation-history .home-operation-state .icon{width:14px;height:14px}

.record-result-badges{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;min-width:0}.record-result-badges .record-total{color:var(--body);font-size:.93rem;white-space:nowrap}.record-result-badges .home-operation-state{font-weight:500;line-height:1.5}.record-operation-bottom:has(.record-result-badges){flex-wrap:wrap}.record-operation-bottom>.record-result-badges{flex:1}.latest-message>.record-result-badges{flex:1}.import-record-main>.record-result-badges{padding:.25rem 0}.record-operation-bottom>.record-result-badges:first-child{height:auto;overflow:visible;display:flex;-webkit-line-clamp:unset}
.execution-summary{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;padding:1.25rem;background:var(--info,#ecf2fe);border-radius:6px;margin-bottom:1rem}.execution-summary-count{display:flex;gap:calc(8rem / 14);align-items:center;flex:1;white-space:nowrap}.execution-summary-count>.icon{color:var(--blue,#1975da);width:calc(20rem / 14);height:calc(20rem / 14);flex:none}.execution-summary-count>div{display:flex;align-items:baseline;gap:calc(8rem / 14)}.execution-summary-count strong{display:inline-flex;align-items:baseline;gap:calc(4rem / 14);color:var(--blue,#1975da);font-size:calc(20rem / 14);line-height:2rem;font-variant-numeric:tabular-nums}.execution-summary .execution-summary-count small{display:inline;margin:0;font-size:1rem;line-height:calc(20rem / 14);font-weight:400;color:var(--body)}.execution-summary-meta{display:flex;gap:calc(8rem / 14);flex-wrap:wrap;color:var(--muted);font-size:.9rem}.execution-summary-results{display:flex;gap:.5rem;flex-wrap:wrap;flex-basis:100%}.execution-summary progress{width:100%;height:6px;flex-basis:100%}.execution-reasons{margin:0 0 1rem;padding-left:1.25rem;color:var(--body)}.execution-invoice-list .invoice-ledger-table{min-width:0;width:100%;table-layout:fixed}.execution-invoice-list .invoice-ledger-table th:nth-child(1),.execution-invoice-list .invoice-ledger-table td:nth-child(1){width:30%}.execution-invoice-list .invoice-ledger-table th:nth-child(2),.execution-invoice-list .invoice-ledger-table td:nth-child(2){width:16%}.execution-invoice-list .invoice-ledger-table th:nth-child(3),.execution-invoice-list .invoice-ledger-table td:nth-child(3){width:32%}.execution-invoice-list .invoice-ledger-table th:nth-child(4),.execution-invoice-list .invoice-ledger-table td:nth-child(4){width:22%}.execution-invoice-list .ledger-number{overflow-wrap:anywhere;white-space:normal}.execution-invoice-list .ledger-parties-text{overflow:hidden}.execution-invoice-list .ledger-party span{white-space:normal;overflow-wrap:anywhere}.execution-invoice-list .ledger-results{min-width:0}.execution-invoice-list .badge{white-space:nowrap}@media(max-width:600px){.execution-invoice-list .invoice-ledger-table td:nth-child(n){width:100%;max-width:none}.execution-summary-meta{flex-basis:100%}.execution-invoice-list .invoice-ledger-table th,.execution-invoice-list .invoice-ledger-table td{padding:.75rem .35rem}.execution-invoice-list .invoice-ledger-table{font-size:.8rem}.execution-invoice-list .ledger-amount strong{font-size:.95rem}.execution-invoice-list .badge{font-size:.75rem;padding:.2rem}.execution-invoice-list .icon{width:12px;height:12px}}
.excel-confirm{flex:none;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:12px}.excel-confirm>*{min-width:0}.excel-import-confirm-summary{margin:0}.excel-import-count{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;padding:12px 16px;background:var(--soft);border-radius:6px}.excel-import-count>span{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:15px}.excel-import-count .icon{color:var(--blue);flex:none}.excel-import-count strong{font-size:32px;line-height:40px;font-variant-numeric:tabular-nums;color:var(--blue);font-weight:600}.excel-import-count small{flex:1;min-width:0;color:var(--body);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.excel-import-allowance{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;color:var(--body);font-size:13px}.excel-import-allowance details{margin-left:auto}.excel-import-allowance summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}.excel-import-allowance p{margin:8px 0;line-height:1.6}.excel-import-warning{color:var(--orange)}
.excel-confirm .excel-preflight-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:22px}.excel-preflight-counts>span{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:44px 32px;align-items:center;gap:4px 6px;min-width:0}.excel-preflight-counts .icon{width:18px;height:18px;flex:none}.excel-preflight-counts strong{grid-column:1/-1;font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}.excel-preflight-counts small{font-size:14px;font-weight:400;color:var(--body)}.excel-preflight-counts .excel-import-warning .icon{color:var(--orange)}
#modal .excel-confirm .personal-risk-policy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:0;padding:8px 12px 12px}
#modal .excel-confirm .upload-check-choice{min-height:44px;padding:6px 8px;margin:0;gap:8px;background:#fff;border-color:var(--line)}
#modal .excel-confirm .upload-check-choice strong{font-size:15px;font-weight:500}
#modal .excel-confirm .upload-check-choice:has(input:checked){border-color:var(--blue);background:var(--soft)}
#modal .excel-confirm .upload-risk-options{grid-column:1/-1;padding:0}
#modal .excel-confirm .upload-risk-options .field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:center;gap:8px;margin:0;max-width:none;font-size:13px}
#modal .excel-confirm .upload-risk-options .field+.field{margin-top:8px}
#modal .excel-confirm .upload-risk-options .field select,#modal .excel-confirm .upload-risk-options .field input{width:100%;max-width:none;min-height:44px;padding:6px 10px}
#modal .excel-confirm .personal-risk-policy .note{display:none}
#modal .excel-confirm .upload-remember{grid-column:1/-1;min-height:44px;margin:0;padding:0;border:0}
.excel-confirm .excel-risk-counts,.excel-confirm .excel-confirm-caption{margin:0;color:var(--body);font-size:13px;line-height:20px}
.excel-confirm .excel-risk-counts{display:flex;align-items:center;gap:8px;min-height:24px}.excel-risk-counts>.icon{width:18px;height:18px;flex:none;color:var(--blue)}
#modal:has(.excel-confirm) .modal-foot{min-height:84px;align-items:center;align-content:center}
.excel-confirm-footer{flex:1;min-width:0;text-align:left}
.excel-confirm-footer .usage-confirm-clear{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;background:transparent;border:0;border-radius:0;padding:0;margin:0}
.excel-confirm-footer .usage-required,.excel-confirm-footer .usage-available{display:flex;align-items:baseline;gap:8px}
.excel-confirm-footer .usage-confirm-clear strong{font-size:22px;line-height:28px;font-weight:600}.excel-confirm-footer .usage-available strong{font-size:16px;font-weight:400}
.excel-confirm-footer .usage-readiness:not(.is-shortfall){display:none}.excel-confirm-footer .usage-readiness.is-shortfall{flex-basis:100%;padding:0;border:0}
.excel-confirm .reimbursement-upload{display:block;padding:0;margin:0;border:0}
.excel-confirm .reimbursement-upload>.field{grid-column:1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;font-size:13px}
.excel-confirm .reimbursement-upload>.text-btn{align-self:center;font-size:13px}.excel-confirm .reimbursement-upload .reimbursement-options{grid-column:1/-1}.excel-confirm .reimbursement-options>summary{min-height:44px}
.excel-confirm-details{border-top:1px solid var(--line);font-size:13px}.excel-confirm-details>summary{cursor:pointer;min-height:44px;align-content:center}.excel-confirm-details ul{padding-left:20px;line-height:1.7}.excel-confirm-details .note{background:transparent;padding:0}
@media(max-width:600px){#modal .excel-confirm .personal-risk-policy{grid-template-columns:1fr}#modal .excel-confirm .upload-risk-options .field{grid-template-columns:1fr;gap:4px}.excel-import-count{padding:10px 12px}.excel-import-count small{flex-basis:100%}.excel-import-allowance details{margin-left:0}.excel-confirm .reimbursement-upload{grid-template-columns:minmax(0,1fr) auto}.excel-confirm .reimbursement-upload>.field{grid-column:1/-1}.excel-confirm .reimbursement-upload>.reimbursement-own{grid-column:2}.excel-confirm-footer{flex-basis:100%}}
.invoice-person-filters{display:flex;gap:12px;flex:0 1 370px;min-width:0}.invoice-person-filters>.field{flex:1;min-width:0}.invoice-uploader [data-rb-history]{flex:none}.invoice-uploader>[data-rb-uploader]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(min-width:761px){.invoice-ledger-row .invoice-people{gap:8px;line-height:24px}.invoice-ledger-row .invoice-reimbursement,.invoice-ledger-row .invoice-uploader{min-height:24px;height:24px}.invoice-ledger-row .invoice-reimbursement>[data-rb-edit],.invoice-ledger-row .invoice-people [data-rb-history]{min-height:24px;height:24px;padding-block:0;line-height:24px}.invoice-ledger-row .invoice-reimbursement>[data-rb-edit]{padding-inline:0}.invoice-ledger-row .invoice-uploader>[data-rb-uploader]{line-height:24px}}
@media(max-width:600px){.invoice-person-filters{grid-column:1/-1;flex-basis:100%}}
@media(max-width:760px){.people-mobile-label{display:inline-block!important;flex:none;width:3.5em;color:var(--muted)}.invoice-ledger-row .ledger-people{border-top:1px solid var(--line)!important;padding-top:8px!important}.invoice-uploader>[data-rb-uploader]{flex:initial}}

.workbench-section .section-head{justify-content:flex-start;gap:16px}
/* Keep query controls aligned and related facts together across both editions. */
.upload-workspace .upload-settings .personal-risk-policy,#modal .excel-confirm .personal-risk-policy{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 10px 10px;border:1px solid var(--line);border-radius:6px;gap:8px}
.upload-workspace .upload-settings .personal-risk-policy legend,#modal .excel-confirm .personal-risk-policy legend{padding:0 6px;font-size:14px;line-height:20px;font-weight:600}
.upload-workspace .upload-settings>.reimbursement-upload,.excel-confirm>.reimbursement-upload{width:100%;min-width:0}
.upload-workspace .upload-settings .personal-risk-policy .upload-check-choice,#modal .excel-confirm .upload-check-choice{display:flex;align-items:center;min-height:44px;gap:8px;margin:0;padding:8px;box-sizing:border-box}
.upload-workspace .upload-settings .upload-check-choice strong,#modal .excel-confirm .upload-check-choice strong{font-size:14px;line-height:20px}
.upload-workspace .upload-settings .personal-risk-policy .field,.upload-workspace .upload-settings .upload-company,#modal .excel-confirm .upload-risk-options .field,.excel-confirm>.field{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:8px;margin:0;font-size:13px}
.upload-workspace .upload-settings .personal-risk-policy .field select,.upload-workspace .upload-settings .personal-risk-policy .field input,.upload-workspace .upload-settings .upload-company select,.excel-confirm>.field select{width:100%;min-width:0;min-height:36px;margin:0}
.excel-confirm .excel-preflight-counts{padding:8px 0;gap:16px}
.excel-confirm .excel-preflight-counts>span{white-space:nowrap}
.excel-preflight-counts>span{grid-template-rows:24px 28px;gap:4px 6px}
.excel-preflight-counts strong{font-size:24px;line-height:28px}
.excel-query-counts{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 24px;padding:12px 16px}
.excel-query-counts>span:first-child{flex-basis:auto}
.excel-query-counts>span:nth-child(2) strong{font-size:18px;font-weight:400}
.query-count-breakdown{flex-basis:100%;font-size:14px;color:var(--body)}
#modal:has([data-upload-inspector][data-inspector-title="批量查风险"]) .modal-foot>.upload-counts{visibility:hidden}
#modal:has([data-upload-inspector][data-inspector-title="批量查风险"]) .modal-foot>[data-api="upload-counts"]{visibility:hidden}
.workbench-operation-list{max-width:1000px}
.workbench-operation{min-height:76px;padding-block:12px;align-items:center}
.workbench-operation .record-operation-main{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr) 76px;gap:8px 24px;align-items:center}
.workbench-operation .record-operation-top{grid-column:1;grid-row:1;min-width:0;display:block}
.workbench-operation .record-operation-top strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workbench-operation .record-operation-meta{grid-column:1/3;grid-row:2;display:flex;align-items:center;gap:16px;min-width:0;font-size:12px;color:var(--body)}
.workbench-operation .record-operation-meta .operation-actor{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workbench-operation .record-operation-meta time{white-space:nowrap;flex:none}
.workbench-operation .record-operation-bottom{grid-column:2;grid-row:1;margin:0;min-width:0}
.workbench-operation .record-operation-bottom>.record-result-badges{flex:0 1 auto}
.workbench-operation .record-open{grid-column:3;grid-row:1/3;margin:0;justify-self:end;display:inline-flex;align-items:center;gap:6px}
.latest-message{flex-wrap:wrap;gap:8px 12px}
.latest-message>strong,.latest-message>.record-result-badges{flex:0 1 auto}
.workbench-shortcuts>button>span:nth-child(2){flex:0 1 auto}
@media(max-width:1100px){.workbench-operation .record-operation-main{grid-template-columns:minmax(0,1fr) 76px;gap:8px 16px}.workbench-operation .record-operation-bottom{grid-column:1;grid-row:2}.workbench-operation .record-operation-meta{grid-column:1/-1;grid-row:3;gap:8px 16px;flex-wrap:wrap}.workbench-operation .record-open{grid-column:2;grid-row:1/3}.workbench-operation .record-operation-bottom>.record-result-badges{flex-basis:auto}}
@media(max-width:600px){.latest-message{display:grid;grid-template-columns:16px 24px minmax(0,1fr) 16px;gap:8px}.latest-message>.record-result-badges{gap:4px}.latest-message>.icon:last-child{grid-column:4}}

/* One status treatment for every shared invoice row, including operation details. */
.risk-result-badge{background:transparent}.risk-result-badge :is(.status-description,.status-more){color:var(--body)}
.risk-result-badge::before{display:none}
.risk-result-badge,.verification-badge{height:32px;box-sizing:border-box;gap:8px;padding:4px 8px;border-radius:4px;line-height:22px;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden}
.risk-result-badge>.icon,.verification-badge>.icon{width:16px;height:16px;flex:none}
.risk-result-badge svg,.verification-badge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.risk-result-badge .status-label,.verification-badge .status-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.status-more{flex:none;font-size:12px;margin-left:auto}
.ledger-results .risk-result-badge,.ledger-results .verification-badge,.preflight-saved-states .risk-result-badge,.preflight-saved-states .verification-badge{width:12.5rem;max-width:100%}
.ledger-results{gap:8px;min-width:0}
.ledger-results .personal-risk-link,.personal-workspace .workbench-recent .personal-risk-link{min-height:32px;width:12.5rem;max-width:100%}
.preflight-saved-states{align-items:flex-start;flex-direction:column;gap:8px}.preflight-risk-result{max-width:100%;min-width:0}


/* Unified workbench, ledger and risk-analysis layout. */
/* Three-page layout candidate. Uses the existing product tokens and renderers. */
.analysis-dashboard .analysis-dashboard-level{grid-template-columns:5.71429rem minmax(10.28571rem,1fr) minmax(12.85714rem,1fr) 6.57143rem}.analysis-dashboard .analysis-dashboard-amount{text-align:left}.analysis-dashboard-count strong{font-size:1.42857rem;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:600px){.analysis-dashboard .analysis-dashboard-level{grid-template-columns:5.42857rem minmax(0,1fr)}.analysis-dashboard .analysis-dashboard-amount{text-align:right}}
.analysis-invoices-dialog{height:fit-content;max-height:calc(100dvh - 3.42857rem)}.analysis-invoice-body{flex:0 1 auto;padding:0 1.14286rem}.analysis-invoices-dialog .modal-foot{min-height:4.57143rem}
.table-wrap:has(>.invoice-ledger-table){container-type:inline-size;container-name:invoice-list}
@container invoice-list (max-width:960px){
 .table-wrap .invoice-ledger-table thead{display:none}.table-wrap .invoice-ledger-table,.table-wrap .invoice-ledger-table tbody{display:block;min-width:0}
 .table-wrap .invoice-ledger-table .invoice-ledger-row{display:grid;grid-template-columns:minmax(0,1fr) 12.57143rem;gap:0.85714rem;padding:1.14286rem 0;border-bottom:0.07143rem solid var(--line)}
 .table-wrap .invoice-ledger-table .invoice-ledger-row>td{display:block;width:auto;min-width:0;max-width:none;padding:0!important;border:0;background:none}
 .table-wrap .invoice-ledger-table .invoice-ledger-row>.ledger-parties{grid-column:1;grid-row:1}.table-wrap .invoice-ledger-table .invoice-ledger-row>.ledger-status{grid-column:2;grid-row:1}.table-wrap .invoice-ledger-table .invoice-ledger-row>.ledger-document{grid-column:1;grid-row:2}.table-wrap .invoice-ledger-table .invoice-ledger-row>.ledger-amount{grid-column:2;grid-row:2}.table-wrap .invoice-ledger-table .invoice-ledger-row>.ledger-people{grid-column:1/-1;grid-row:3}
 .table-wrap .invoice-ledger-table .ledger-month{display:block}.table-wrap .invoice-ledger-table .ledger-month th{display:block;width:100%}
}
@container invoice-list (max-width:520px){.table-wrap .invoice-ledger-table .invoice-ledger-row{grid-template-columns:minmax(0,1fr)}.table-wrap .invoice-ledger-table .invoice-ledger-row>td[class]{grid-column:1;grid-row:auto}.table-wrap .invoice-ledger-table .invoice-ledger-row>.ledger-amount{display:flex;justify-content:space-between;gap:0.85714rem}.table-wrap .ledger-results{flex-direction:row;flex-wrap:wrap}}
/* Workbench sections keep the same order and width before and after reads. */
#main[data-workspace-layout]{width:100%;max-width:85.71429rem;margin:0 auto;padding:2.28571rem 2.28571rem 3.42857rem}
.workspace-public-value{display:inline-block;min-width:2ch;height:1em;vertical-align:middle;border-radius:3px;background:var(--subtle)}
.invoice-filter-group .workspace-public-value{min-width:1ch}
.account-balance-value>.workspace-public-value{height:auto}.workspace-public-control{visibility:hidden}
.workspace-public-lines{display:grid;gap:16px;padding:24px 0}.workspace-public-lines>span{display:block;width:80%;height:12px;border-radius:3px;background:var(--subtle)}.workspace-public-lines>span:nth-child(2){width:60%}.workspace-public-lines>span:nth-child(3){width:70%}
.heading{margin-bottom:1.71429rem;align-items:center}#main[data-workspace-layout] .heading h1{font-size:2rem;line-height:2.57143rem}#main[data-workspace-layout] .heading p:empty{display:none}
.workbench-start{display:block;margin:0;border:0;border-radius:0;overflow:visible}
.workbench-upload{flex-direction:row;align-items:center;justify-content:space-between;gap:1.71429rem;padding:1.14286rem 1.42857rem;min-height:6.85714rem;border:0;border-radius:6px;background:var(--soft)}
.workbench-upload h2{font-size:1.42857rem;margin:0 0 0.57143rem}.workbench-upload>div>span{margin:0;font-size:0.92857rem}.workbench-upload-actions{justify-content:flex-end}
.workbench-shortcuts{display:flex;align-content:initial;gap:1.71429rem;padding:0;background:#fff;min-height:3.14286rem}
.workbench-shortcuts>button{min-height:4rem;padding:0.57143rem 0;border:0;gap:0.57143rem}.workbench-shortcuts strong{font-size:1rem;font-weight:500}.workbench-shortcuts small{display:none}.workbench-shortcuts .icon{width:1.14286rem;height:1.14286rem}.workbench-shortcuts>button>span:nth-child(2){flex:initial}
.workbench-section{margin-top:1.42857rem}.workbench-section .section-head{justify-content:flex-start;gap:1.14286rem;margin-bottom:0.85714rem}.workbench-section .section-head>.text-btn{margin-left:0}.workbench-section h2{font-size:1.28571rem}.workbench-section .section-head>div{gap:0.85714rem}.workbench-scope{font-size:0.85714rem}
.workbench-operation-list{width:100%;max-width:none}.workbench-operation{padding:1.14286rem 0.85714rem;gap:0.85714rem;min-height:5.71429rem;align-items:center}
.workbench-operation .record-operation-main{display:grid;grid-template-columns:minmax(9.42857rem,1fr) minmax(15rem,1.7fr) minmax(10.57143rem,1fr) 4.57143rem;gap:1.14286rem;align-items:center}
.workbench-operation .record-operation-top{grid-column:1;grid-row:1}.workbench-operation .record-operation-bottom{grid-column:2;grid-row:1}.workbench-operation .record-operation-meta{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:0.28571rem;font-size:0.85714rem}.workbench-operation .record-open{grid-column:4;grid-row:1;font-size:0.92857rem}.workbench-operation .record-operation-icon{width:1.42857rem;height:1.42857rem}.record-operation-meta .operation-actor{max-width:100%}
.workbench-operation .record-operation-bottom{gap:0.57143rem}.record-operation-bottom .record-result-badges{gap:0.42857rem}.record-result-badge{font-size:0.85714rem}
.workbench-recent .table-wrap,.table-wrap:has(>.invoice-ledger-table){width:100%;max-width:none;overflow-x:visible}
.invoice-ledger-table{width:100%;max-width:none;min-width:0;table-layout:fixed}
.invoice-ledger-table th:nth-child(1){width:25%}.invoice-ledger-table th:nth-child(2){width:14rem}.invoice-ledger-table th:nth-child(3){width:auto}.invoice-ledger-table th:nth-child(4){width:8.85714rem}.invoice-ledger-table th:nth-child(5){width:9rem}
.invoice-ledger-table th{padding:0.85714rem 0.71429rem;background:#f8fafc;font-size:0.85714rem;font-weight:400}
.invoice-ledger-table td,.personal-workspace .invoice-ledger-table td,.invoice-workspace .invoice-ledger-table td{padding:1.14286rem 0.71429rem;font-size:1rem;line-height:1.71429rem}
.invoice-ledger-row .ledger-party:first-child>span,.invoice-ledger-row .ledger-amount>strong{font-size:1.07143rem;font-weight:400}.invoice-ledger-row .ledger-party+.ledger-party>span,.invoice-ledger-row :is(.ledger-project,.ledger-number,.ledger-date,.ledger-people,.ledger-note){font-size:0.92857rem;font-weight:400}.ledger-invoice-link,.ledger-parties-text{gap:0.28571rem}.ledger-project,.ledger-date{margin-top:0.28571rem}
.ledger-results,.preflight-saved-states{gap:0.28571rem}
.risk-result-badge,.verification-badge{height:2rem;padding:0.21429rem 0.57143rem;gap:0.57143rem;border-color:transparent;border-radius:0.28571rem;font-size:0.92857rem;font-weight:500;line-height:1.42857rem}
.ledger-results .risk-result-badge,.ledger-results .verification-badge,.preflight-saved-states .risk-result-badge,.preflight-saved-states .verification-badge,.ledger-results .personal-risk-link,.personal-workspace .workbench-recent .personal-risk-link{width:12.57143rem;max-width:100%;min-height:2rem}
.verification-badge.level-normal{background:#f6faf7;color:var(--green)}.risk-result-badge .icon,.verification-badge .icon{width:1.14286rem;height:1.14286rem;flex:none}.risk-result-badge::before{display:none}.status-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.invoice-ledger-row .ledger-status :is(.risk-result-badge,.verification-badge,.badge,.batch-risk-state){font-size:0.92857rem;font-weight:400;background:transparent}.invoice-ledger-row :is(.status-more,.status-description){font-size:inherit;font-weight:400;color:var(--body)}.invoice-ledger-row .invoice-reimbursement{font-size:0.92857rem;font-weight:400}.invoice-ledger-row .verification-badge.level-normal{color:var(--body)}.invoice-ledger-row .verification-badge.level-normal>.icon{color:var(--green)}
.invoice-ledger-row .ledger-status .risk-result-badge{background:var(--subtle)}
.invoice-ledger-row .ledger-status .risk-result-badge:is(.level-major,.level-urgent){background:color-mix(in srgb,var(--red) 7%,white)}
.invoice-ledger-row .ledger-status .risk-result-badge.level-concern{background:color-mix(in srgb,var(--orange) 7%,white)}
.invoice-ledger-row .ledger-status .risk-result-badge:is(.level-note,.level-general){background:color-mix(in srgb,var(--note) 7%,white)}
.invoice-ledger-row .ledger-status .risk-result-badge:is(.level-none,.level-normal){background:color-mix(in srgb,var(--green) 7%,white)}
.ledger-risk-tags{display:contents;font-size:13px}
.invoice-ledger-row .ledger-risk-tags>:first-child,.invoice-ledger-row .ledger-risk-tags>.personal-risk-link{grid-column:1/-1;grid-row:1;min-width:0;width:100%;max-width:100%}
.invoice-ledger-row .ledger-risk-tags .risk-result-badge,.invoice-ledger-row .ledger-verification,.invoice-score-badge{display:flex;align-items:center;justify-content:center;height:28px;min-height:28px;padding:3px 8px;box-sizing:border-box;border-radius:4px;font-size:13px;font-weight:400;line-height:22px;white-space:nowrap;overflow:hidden}
.invoice-ledger-row .ledger-risk-tags .risk-result-badge{width:100%;justify-content:flex-start;gap:4px}
.invoice-score-slot{grid-column:1;grid-row:2;min-width:0}.invoice-score-badge{width:100%;background:var(--subtle);color:var(--body);font-variant-numeric:tabular-nums}
.invoice-ledger-row .ledger-verification.level-normal{background:#edf8f0;color:var(--green)}
.invoice-ledger-row .ledger-verification.level-major{background:#fff1f0;color:var(--red)}
.invoice-ledger-row .ledger-verification{grid-column:2;grid-row:2;width:7.4em;justify-self:start}
@media(min-width:1200px){.invoice-ledger-table th:nth-child(2){width:16.5rem}}
.invoice-ledger-row .ledger-results:has(.ledger-risk-tags){display:grid;grid-template-columns:minmax(4em,1fr) minmax(7.4em,1fr);align-items:start;gap:6px}
.invoice-ledger-row .ledger-results:has(.ledger-risk-tags)>.ledger-verification{width:100%}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-results:has(.ledger-risk-tags){height:auto;min-height:44px;overflow:visible;grid-template-columns:minmax(0,1fr);gap:4px}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-risk-tags>.batch-risk-state{grid-column:1/-1;grid-row:1;height:auto;min-height:20px}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-risk-tags>.personal-risk-link{grid-column:1;grid-row:1;min-width:0;justify-self:start;text-align:left}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-score-slot{grid-column:1;grid-row:2;min-width:0;justify-self:start;width:auto;max-width:100%}
#modal.risk-batch-dialog [data-risk-batch-results] .invoice-score-badge{height:20px;min-height:20px;line-height:20px;padding:0 4px;justify-content:flex-start;width:auto}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-results:has(>.ledger-verification){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-results:has(>.ledger-verification) .ledger-risk-tags>.personal-risk-link{grid-column:1/-1}
#modal.risk-batch-dialog [data-risk-batch-results] .ledger-verification{grid-column:2;grid-row:2;width:100%;justify-self:start;height:20px;min-height:20px;line-height:20px;padding:0 4px}
@media(max-width:600px){.table-wrap .invoice-ledger-table .invoice-ledger-row{grid-template-columns:minmax(0,1fr)}.table-wrap .invoice-ledger-table .invoice-ledger-row>td[class]{grid-column:1/-1;grid-row:auto}}
.ledger-filters,.analysis-filters{background:#fff;border:0;padding:0 0 1.14286rem}.ledger-risk-filters{padding:0;gap:0.57143rem}.ledger-filter-main{display:flex;flex-wrap:wrap;gap:0.85714rem;align-items:end}.ledger-filter-main>.field{flex:1 1 10.71429rem;min-width:0}.ledger-filter-main>.invoice-date-inputs{flex:2 1 21.42857rem}.ledger-filter-main input,.ledger-filter-main select{min-width:0;width:100%}.ledger-actions{padding:0.85714rem 0;border-top:0.07143rem solid var(--line);border-bottom:0.07143rem solid var(--line);gap:0.57143rem}.ledger-actions .button{min-height:2.57143rem;font-size:0.92857rem}.ledger-actions [data-ledger=export]{margin-left:auto}.ledger-actions+p:empty{display:none}
.risk-analysis .analysis-status:empty{display:none}.risk-analysis .analysis-filters{padding:0 0 1.42857rem;margin-bottom:0}.analysis-dashboard{border:0;border-top:0.07143rem solid var(--line);border-bottom:0.07143rem solid var(--line);border-radius:0;margin:0 0 1.42857rem;display:grid;grid-template-columns:17.14286rem minmax(0,1fr);gap:1.71429rem;padding:1.42857rem 0}
.analysis-dashboard-head{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0.85714rem;padding:0;border:0}.analysis-dashboard-head h2{font-size:1.14286rem}.analysis-dashboard .analysis-coverage{display:block;border:0;padding:0;gap:0}.analysis-dashboard-levels{justify-content:center}.analysis-coverage details{margin-top:0.57143rem}.analysis-dashboard-levels{display:flex;flex-direction:column}.analysis-dashboard-level{grid-template-columns:5.71429rem minmax(10rem,1fr) 11.42857rem 6.57143rem;align-items:center;padding:0.85714rem;gap:0.85714rem;min-height:4.57143rem;border-radius:0.28571rem}.analysis-dashboard-level+.analysis-dashboard-level{border-left:0;border-top:0.07143rem solid var(--line)}.analysis-dashboard-level[aria-pressed=true]{background:#f8fafc}.analysis-dashboard-amount{grid-column:3;grid-row:1;font-size:1.42857rem}.analysis-dashboard-count{grid-column:2;grid-row:1;gap:0.42857rem;font-size:0.92857rem}.analysis-dashboard-link{grid-column:4;grid-row:1;font-size:0.85714rem}.analysis-dashboard-level>.risk-level{grid-column:1;grid-row:1}.analysis-dashboard-level>.risk-level::before{display:none}
.risk-analysis .analysis-levels{margin:0 0 0.85714rem}.analysis-path{padding:0.85714rem 0!important;border-bottom:0.07143rem solid var(--line)}.analysis-chart-toolbar{margin-top:0.57143rem}.analysis-group{padding:1.14286rem 0.57143rem;min-height:5.71429rem}.analysis-group-name{font-size:1rem}.analysis-group-amount{font-size:1.07143rem}.analysis-detail-note{font-size:0.85714rem;color:var(--body)}
.analysis-coverage-caption{font-size:0.85714rem}.analysis-coverage-number{display:block;font-size:2.28571rem;color:var(--ink);line-height:3rem;font-variant-numeric:tabular-nums}.analysis-coverage-number small{font-size:0.92857rem;color:var(--body);font-weight:400}.analysis-coverage progress{display:block;width:13.14286rem;height:0.42857rem;margin:0.57143rem 0 0.85714rem;accent-color:var(--blue);border:0;border-radius:0.28571rem;overflow:hidden}.analysis-coverage progress::-webkit-progress-bar{background:var(--line)}.analysis-coverage progress::-webkit-progress-value{background:var(--blue)}.analysis-coverage progress::-moz-progress-bar{background:var(--blue)}
@media(max-width:1100px){#main[data-workspace-layout]{padding:1.71429rem}.workbench-upload{align-items:flex-start;flex-direction:column;gap:1.14286rem}.workbench-operation .record-operation-main{grid-template-columns:minmax(9.28571rem,1fr) minmax(15rem,1.5fr) 4.57143rem;gap:0.42857rem 1.14286rem}.workbench-operation .record-operation-meta{grid-column:1/3;grid-row:2;flex-direction:row;gap:1.14286rem}.workbench-operation .record-open{grid-column:3;grid-row:1/3}.invoice-ledger-table th:nth-child(1){width:24%}.invoice-ledger-table th:nth-child(2){width:12.57143rem}.invoice-ledger-table th:nth-child(4){width:8rem}.invoice-ledger-table th:nth-child(5){width:8.14286rem}.analysis-dashboard{grid-template-columns:1fr;gap:0.85714rem}.analysis-dashboard-head{flex-direction:row;align-items:center;justify-content:space-between}.analysis-coverage{display:flex;gap:0.85714rem}.analysis-coverage details{margin:0}}
@media(max-width:800px){.invoice-ledger-table thead{display:none}.invoice-ledger-table,.invoice-ledger-table tbody{display:block}.invoice-ledger-table .invoice-ledger-row{display:grid;grid-template-columns:minmax(0,1fr) 12.57143rem;gap:0.85714rem;padding:1.14286rem 0;border-bottom:0.07143rem solid var(--line)}.invoice-ledger-table .invoice-ledger-row>td,.invoice-workspace .invoice-ledger-table .invoice-ledger-row>td{display:block;width:auto;max-width:none;min-width:0;padding:0;border:0}.invoice-ledger-row>.ledger-parties{grid-column:1;grid-row:1}.invoice-ledger-row>.ledger-status{grid-column:2;grid-row:1}.invoice-ledger-row>.ledger-document{grid-column:1;grid-row:2}.invoice-ledger-row>.ledger-amount{grid-column:2;grid-row:2}.invoice-ledger-row>.ledger-people{grid-column:1/-1;grid-row:3}.ledger-month{display:block}.ledger-month th{display:block}}
@media(max-width:600px){#main[data-workspace-layout]{padding:1.42857rem 1.14286rem}#main[data-workspace-layout] .heading{gap:0.85714rem;margin-bottom:1.42857rem}#main[data-workspace-layout] .heading h1{font-size:1.71429rem}#main[data-workspace-layout] .heading-actions{flex-wrap:wrap}#main[data-workspace-layout] .heading-actions .button{padding:0.57143rem;font-size:0.92857rem}.workbench-upload{padding:1.42857rem}.workbench-upload-actions{width:100%;justify-content:flex-start}.workbench-upload-actions .button{flex:none}.workbench-shortcuts{padding:0 1.42857rem;gap:1.71429rem;flex-wrap:wrap}.workbench-shortcuts>button{flex:none}.workbench-operation{padding:0.85714rem 0;gap:0.57143rem}.workbench-operation .record-operation-main{grid-template-columns:minmax(0,1fr) 4.57143rem;gap:0.57143rem}.workbench-operation .record-operation-top{grid-column:1;grid-row:1}.workbench-operation .record-operation-bottom{grid-column:1/-1;grid-row:2}.workbench-operation .record-operation-meta{grid-column:1/-1;grid-row:3;flex-wrap:wrap;gap:0.28571rem 0.85714rem}.workbench-operation .record-open{grid-column:2;grid-row:1}.workbench-section .section-head{gap:0.57143rem}.workbench-section .section-head>div{gap:0.57143rem}.workbench-section h2{font-size:1.21429rem}.workbench-section .text-btn{font-size:0.92857rem}.invoice-ledger-table .invoice-ledger-row{grid-template-columns:minmax(0,1fr)}.invoice-ledger-table .invoice-ledger-row>td{grid-column:1;grid-row:auto}.invoice-ledger-row>.ledger-status .ledger-results{flex-direction:row;flex-wrap:wrap;gap:0.42857rem}.ledger-results .risk-result-badge,.ledger-results .verification-badge,.ledger-results .personal-risk-link{width:12.57143rem}.invoice-ledger-table .invoice-ledger-row>.ledger-amount{display:flex;justify-content:space-between}.analysis-dashboard-head{align-items:flex-start;flex-direction:column}.analysis-dashboard-level{grid-template-columns:5.42857rem minmax(0,1fr);gap:0.57143rem;padding:0.85714rem 0}.analysis-dashboard-amount{grid-column:2;grid-row:1;font-size:1.35714rem}.analysis-dashboard-count{grid-column:1/3;grid-row:2}.analysis-dashboard-link{grid-column:2;grid-row:3}.analysis-coverage{flex-wrap:wrap}.prototype-filters label{min-width:0;flex:1 1 45%}}
/* Personal account: one balance focus, compact allowances and dated ledger. */
.personal-workspace:has(.account-overview){max-width:1160px;margin-inline:auto}
.account-overview{display:block}
.account-balance{padding:20px 24px;background:var(--soft)}
.account-balance-main{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:end;gap:16px}
.account-balance-main>.icon{width:48px;height:48px;color:var(--blue)}
.account-balance-label{margin:0;font-size:16px;font-weight:600}
.account-balance-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px}
.account-balance-label,.account-quota-title,.account-business,.account-day-date{display:flex;align-items:center;gap:8px}
.account-balance-label .icon,.account-quota-title .icon{color:var(--blue);width:20px;height:20px}
.account-balance-value{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.account-balance-value strong{font-size:48px;line-height:48px;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.account-balance-value>span{font-size:14px;line-height:20px;color:var(--body)}.account-sync{font-size:13px;line-height:20px;color:var(--body)}
.account-topup.button{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-left:24px;font-size:14px;white-space:nowrap;color:var(--blue);border-color:var(--blue)}
.personal-count-ledger h2{font-size:20px;margin:0}.account-quota>small,.account-ledger-caption{font-size:13px;color:var(--body)}
.account-quota-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.account-quota+ .account-quota{border-left:1px solid var(--line);padding-left:24px}
.account-quota-title{font-size:14px}.account-quota-value{display:flex;align-items:baseline;gap:8px;margin:16px 0 12px}.account-quota-value strong{font-size:28px;font-variant-numeric:tabular-nums}.account-quota-value>span{font-size:13px;color:var(--body)}
.account-quota progress{appearance:none;width:100%;height:5px;display:block;border:0;border-radius:3px;background:var(--line);margin-bottom:12px}.account-quota progress::-webkit-progress-bar{background:var(--line);border-radius:3px}.account-quota progress::-webkit-progress-value{background:var(--blue);border-radius:3px}.account-quota progress::-moz-progress-bar{background:var(--blue)}
.account-allowance-bar{display:flex;align-items:center;gap:16px;padding:8px 24px;background:#fff;border-top:1px solid var(--line);font-size:13px;line-height:20px;color:var(--body)}
.account-allowance-label{white-space:nowrap}
.account-allowance-values,.account-allowance-item,.account-allowance-actions{display:flex;align-items:center;gap:8px}
.account-allowance-values{flex:1;gap:32px;flex-wrap:wrap}
.account-allowance-item{white-space:nowrap}.account-allowance-item b{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}
.account-allowance-item .icon,.account-help-link .icon{width:20px;height:20px;flex:none}
.account-help-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px;border:0;background:transparent;color:var(--blue);font:inherit;white-space:nowrap;cursor:pointer}
.account-help{width:min(480px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:14px;line-height:1.6}
.account-help h3{margin:0;font-size:18px}.account-help p{margin:16px 0}.account-help .icon-button{width:44px;height:44px}.account-help .account-quota-grid{margin-top:20px}.account-help .account-quota-value strong{font-size:20px}
.personal-count-ledger .section-head{margin-bottom:20px}.account-ledger-caption{display:block;margin-top:6px}.account-day{border-bottom:1px solid var(--line)}
.account-day>summary{display:grid;grid-template-columns:180px 64px minmax(0,1fr) 20px;gap:16px;align-items:center;min-height:76px;padding:16px 12px;cursor:pointer;list-style:none;font-size:14px}
.account-day>summary::-webkit-details-marker{display:none}.account-day>summary:hover,.account-day[open]>summary{background:var(--subtle)}
.account-day-date .icon{width:18px;height:18px;color:var(--muted)}.account-day-count{color:var(--body)}.account-day-totals{display:flex;align-items:center;gap:24px;justify-content:flex-end;font-variant-numeric:tabular-nums}.account-day-totals small{color:var(--body);font-size:12px}.account-day-totals b{font-size:16px}.account-day>summary>.icon{width:16px;height:16px}.account-day[open]>summary>.icon{transform:rotate(90deg)}
.personal-count-ledger .bulk-table{min-width:0;table-layout:fixed}.personal-count-ledger .bulk-table th,.personal-count-ledger .bulk-table td{font-size:14px;padding:14px 12px;overflow-wrap:anywhere}.personal-count-ledger .bulk-table th:nth-child(1){width:26%}.personal-count-ledger .bulk-table th:nth-child(2){width:34%}.personal-count-ledger .bulk-table th:nth-child(n+3){width:20%;text-align:right}.account-business .icon{width:16px;height:16px;flex:none;color:var(--muted)}.account-credit{color:var(--green,#15803D)}.account-empty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:100px;color:var(--body)}
@media(max-width:850px){.account-quota-grid{gap:16px}.account-quota+.account-quota{padding-left:16px}.account-day>summary{grid-template-columns:155px 45px minmax(0,1fr) 16px;gap:8px}.account-day-totals{gap:12px}}
@media(max-width:600px){.account-balance{padding:20px}.account-balance-main{grid-template-columns:40px minmax(0,1fr);gap:12px}.account-balance-main>.icon{width:40px;height:40px;margin-bottom:4px}.account-balance-heading{gap:4px 8px}.account-balance-value strong{font-size:36px}.account-topup.button{padding:8px;margin-left:8px}.account-allowance-bar{flex-wrap:wrap;gap:8px;padding:8px 12px}.account-allowance-values{flex:none;width:100%;gap:12px}.account-allowance-actions{margin-left:-8px}.account-help{padding:20px}.account-day>summary{grid-template-columns:minmax(0,1fr) auto 16px;gap:10px;padding:16px 4px}.account-day-date{grid-column:1}.account-day-count{grid-column:2}.account-day>summary>.icon{grid-column:3;grid-row:1}.account-day-totals{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:16px}.personal-count-ledger .section-head{gap:8px}.personal-count-ledger .bulk-table td{padding:5px 8px}.personal-count-ledger .bulk-table tbody tr{padding:12px 0}.personal-count-ledger{margin-top:24px}.personal-count-ledger .table-foot{flex-wrap:wrap;gap:12px}}
.personal-workspace:has(.account-overview){max-width:1040px}.personal-workspace:has(.account-overview)>.heading{margin-bottom:32px}.account-day-totals{justify-content:flex-start}.account-day>summary{grid-template-columns:180px 64px minmax(0,1fr) 20px}
@media(max-width:600px){.personal-workspace:has(.account-overview)>.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.personal-workspace:has(.account-overview)>.heading .heading-actions{width:auto;margin:0}.account-day>summary{grid-template-columns:minmax(0,1fr) auto 16px}}
/* Keep account areas visibly bounded without adding decorative cards. */
.account-overview{gap:0;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.account-balance{border-radius:0}
@media(min-width:1200px){.account-overview{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.account-allowance-bar{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:center;gap:8px 16px;padding:16px 24px;border-top:0;border-left:1px solid var(--line)}.account-allowance-values{grid-column:1/-1;grid-row:2;gap:24px}.account-allowance-actions{justify-content:flex-end;gap:8px}.account-allowance-actions .account-help-link{padding:8px 4px}}
.personal-workspace:has(.account-overview)>.personal-count-ledger{margin-top:24px;padding-top:0;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.personal-count-ledger>.section-head{margin:0;padding:18px 24px;background:var(--subtle);border-bottom:1px solid var(--line)}
.personal-count-ledger>.account-days{padding:0 20px}.personal-count-ledger>.table-foot{padding:12px 24px;margin:0;background:var(--subtle)}
.personal-count-ledger>p[role=status]:not(:empty){padding:12px 24px}
.account-day>summary{min-height:72px}.account-day:last-child{border-bottom:0}
@media(max-width:600px){.personal-count-ledger>.section-head{padding:16px}.personal-count-ledger>.account-days{padding:0 12px}.personal-count-ledger>.table-foot{padding:12px}.account-day-totals{gap:12px}}
.personal-workspace:has(.account-overview)>.personal-feedback:empty{display:none}
.account-day-body{padding:12px 16px 18px;border-top:1px solid var(--line)}.account-day-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--body);font-size:13px;padding:8px 0}.account-day-subhead strong{color:var(--ink);font-size:14px}.account-day-operations{margin-top:8px}.account-operation-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,2fr);align-items:center;gap:20px;padding:11px 0;border-top:1px solid var(--line)}.account-operation-row>span:first-child{display:grid;gap:3px}.account-operation-row small{font-size:12px;color:var(--body)}.account-operation-row .record-result-badges{justify-content:flex-start;flex-wrap:wrap}.account-day-operations>.button{margin-top:12px}.account-day-credits{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.account-day-credits>ul{padding:0;margin:8px 0 0;list-style:none}.account-credit-row{display:flex;align-items:center;gap:16px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}.account-credit-row>span:first-child{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.account-credit-row .icon{width:16px;height:16px}.account-credit-row>small{color:var(--body)}
@media(max-width:700px){.account-operation-row{grid-template-columns:1fr;gap:6px}.account-credit-row{flex-wrap:wrap}.account-credit-row>small{width:100%;padding-left:24px}}

/* Account: one balance focus, compact rate/help row and continuous day details. */
.finance-account{font-size:14px;line-height:1.6}
.finance-account h2{font-size:22px;line-height:1.4}
.finance-account h3{font-size:16px;line-height:1.5}
.finance-account input,.finance-account select,.finance-account button{font:inherit}
.finance-account small{font-size:13px;line-height:1.5}
.finance-account p[role=status]:empty{display:none}
.finance-overview{border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-top:16px}
.finance-overview .member-count-balance{display:block;border-radius:0;padding:24px;background:#fff}
.finance-overview .member-count-balance>div:first-child>small{color:var(--body)}
.finance-overview .member-count-details{font-size:14px;gap:12px}
.finance-account .finance-overview .finance-asset-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}
.finance-asset-heading>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}
.finance-asset-heading strong{white-space:nowrap}
.finance-mode-control{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:6px;background:var(--soft);color:var(--blue);cursor:pointer}
.finance-mode-control .icon{width:16px;height:16px;transform:rotate(90deg)}
.finance-mode-status{color:var(--body)}
.finance-usage-values{display:flex;align-items:center;gap:0;margin-top:16px}
.finance-usage-values>div,.finance-reserved-help{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:52px;padding:0 24px}
.finance-usage-values>div{padding-left:0;border-right:1px solid var(--line)}
.finance-usage-values b{font-size:20px;line-height:28px;font-weight:500;font-variant-numeric:tabular-nums}
.finance-usage-values b small{font-weight:400;color:var(--body)}
.finance-usage-values>div>span,.finance-reserved-help>span{font-size:13px;color:var(--muted)}
.finance-reserved-help{border:0;background:none;color:var(--ink);cursor:pointer}
.finance-reserved-help>span{display:flex;align-items:center;gap:6px}
.finance-reserved-help .icon{width:16px;height:16px;color:var(--muted)}
.finance-reserved-help:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.finance-rate-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 16px;background:#fff}
.finance-rate-bar .settings-prices{padding:0;gap:24px;flex-direction:row}
.finance-rate-bar .settings-prices>span{font-size:14px;gap:8px}
.finance-help.button{border:0;background:transparent;color:var(--blue);display:inline-flex;align-items:center;gap:8px;padding:8px;white-space:nowrap}
.finance-help .icon{width:18px;height:18px}
.finance-count-help{width:min(440px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:14px;line-height:1.6}
.finance-count-help h3{margin:0;font-size:18px}
.finance-count-help p{margin:16px 0 0}
.finance-count-help .icon-button{width:44px;height:44px}
.finance-record-heading .subnav{margin:0;border:0;gap:16px}
.finance-record-heading .subnav button{font-size:14px;min-height:44px;padding:8px 12px}
.finance-account .billing-date-filter{display:grid;grid-template-columns:minmax(140px,1fr) repeat(2,minmax(140px,1fr)) auto;gap:12px;margin:16px 0 24px}
.finance-account .billing-date-filter:not(:has(select)){grid-template-columns:repeat(2,minmax(140px,1fr)) auto}
.finance-account .billing-date-filter input,.finance-account .billing-date-filter select{width:100%;min-width:0;max-width:none}
.billing-filter-actions{display:flex;gap:8px}
.billing-day-extra{display:inline-block;color:var(--body);margin-left:16px}
.finance-account .billing-day>summary{grid-template-columns:minmax(140px,1fr) auto 20px;font-size:14px;background:#fff}
.finance-account .billing-day>summary>strong,.finance-account .billing-day-total b{font-size:14px}
.finance-account .billing-day-total b{margin-left:4px}
.finance-account .billing-day-total strong{font-size:14px;font-weight:500;margin-left:4px}
.finance-account .billing-day-content{padding:0 16px 16px}
.billing-usage-groups>div{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}
.billing-record{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.billing-record-main{display:flex;align-items:baseline;justify-content:space-between;gap:24px;font-size:14px}
.billing-record-main>time{color:var(--body);font-variant-numeric:tabular-nums}
.billing-usage-groups>div>span:first-child,.billing-record-title{display:flex;align-items:baseline;gap:12px}
.billing-usage-groups>div>span:last-child,.billing-change{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.billing-usage-groups small{margin-left:12px;color:var(--muted)}
.billing-record-title>span,.billing-record-meta{color:var(--muted);font-size:13px}
.billing-record-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;margin-top:6px;min-width:0;overflow-wrap:anywhere}
.billing-record strong,.billing-usage-groups strong{font-weight:500}
.billing-record-title>strong{color:var(--body);font-size:13px;font-weight:400}
.billing-records:last-child .billing-record:last-child{border-bottom:0}
.finance-account .billing-days{min-height:0}
@media(max-width:760px){.finance-overview .member-count-balance{flex-direction:row;align-items:flex-start;gap:16px;padding:20px}.finance-overview .member-count-balance strong{font-size:32px;line-height:40px}.finance-overview .member-count-details{gap:8px}.finance-rate-bar{align-items:flex-start;flex-wrap:wrap;padding:8px 12px}.finance-rate-bar .settings-prices{gap:8px 16px;padding:8px 0}.finance-account .billing-date-filter,.finance-account .billing-date-filter:not(:has(select)){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finance-account .billing-date-filter label:has(select){grid-column:1/-1}.billing-filter-actions{grid-column:1/-1}.finance-account .billing-day-content{padding:0 12px 12px}.finance-account #finance-ledger .bulk-table td{padding:0}.finance-count-help{padding:20px}.finance-record-heading{gap:8px}.finance-record-heading .subnav{gap:4px}.finance-record-heading .button{padding:8px}.finance-account .billing-day>summary{gap:8px;padding:16px 12px}}
/* Company/person workspace shares the existing tokens and one type scale. */
.org-dialog:not([open]){display:none!important}
.org-dialog.org-company-dialog{width:calc(720rem / 14)}
.org-structure-heading{display:flex;align-items:center;justify-content:space-between;gap:calc(16rem / 14)}.org-structure-heading h3{font-size:calc(16rem / 14);margin:0}.org-structure-heading>span{font-size:calc(13rem / 14);color:var(--body)}.org-structure-form>.org-structure-hint{margin:calc(8rem / 14) 0 calc(20rem / 14);font-size:calc(13rem / 14);color:var(--body)}
.org-company-tree,.org-company-tree ul{list-style:none;margin:0;padding:0}.org-company-tree>li+li{margin-top:calc(16rem / 14)}.org-company-tree ul{margin-left:calc(22rem / 14);padding-left:calc(24rem / 14)}.org-company-tree ul[hidden]{display:none}.org-company-tree ul>li{position:relative;padding-top:calc(12rem / 14)}.org-company-tree ul>li::before{content:'';position:absolute;left:calc(-24rem / 14);top:0;bottom:0;border-left:calc(2rem / 14) solid var(--line)}.org-company-tree ul>li:last-child::before{bottom:auto;height:calc(48rem / 14)}.org-company-tree ul>li::after{content:'';position:absolute;left:calc(-24rem / 14);top:calc(48rem / 14);width:calc(24rem / 14);border-top:calc(2rem / 14) solid var(--line)}
.org-company-node{display:grid;grid-template-columns:calc(44rem / 14) minmax(0,1fr) auto;align-items:center;gap:calc(8rem / 14);min-height:calc(72rem / 14);padding:calc(12rem / 14);border:calc(1rem / 14) solid var(--line);border-radius:calc(6rem / 14);background:#fff}.org-company-tree>li>.org-company-node{background:var(--soft)}.org-company-identity{display:flex;align-items:center;gap:calc(12rem / 14);min-width:0}.org-company-identity>.icon{width:calc(24rem / 14);height:calc(24rem / 14);color:var(--blue);flex:none}.org-company-identity strong{display:block;font-size:calc(14rem / 14);font-weight:600;overflow-wrap:anywhere}.org-company-identity small{display:block;margin-top:calc(4rem / 14);font-size:calc(12rem / 14);color:var(--body)}
.org-branch-toggle,.org-branch-leaf{width:calc(44rem / 14);height:calc(44rem / 14)}.org-branch-toggle{display:flex;align-items:center;justify-content:center;border:0;border-radius:calc(4rem / 14);background:transparent;color:var(--body);cursor:pointer}.org-dialog .org-branch-toggle{padding:0}.org-branch-toggle[aria-expanded=true]>.icon{transform:rotate(90deg)}.org-position-button{min-height:calc(44rem / 14);padding:0 calc(8rem / 14);border:0;background:transparent;color:var(--blue);font:inherit;white-space:nowrap;cursor:pointer}.org-position-editor{grid-column:2 / -1;display:grid;gap:calc(8rem / 14);padding-top:calc(12rem / 14);border-top:calc(1rem / 14) solid var(--line)}.org-position-editor>small{font-size:calc(12rem / 14);color:var(--body)}.org-parent-choice{display:grid;gap:calc(4rem / 14);font-size:calc(13rem / 14);color:var(--body);min-width:0}.org-parent-choice select{width:100%;min-width:0;min-height:calc(44rem / 14);color:var(--ink);font-size:calc(14rem / 14)}
.org-structure-actions{display:flex;align-items:center;justify-content:space-between;gap:calc(8rem / 14);border-top:calc(1rem / 14) solid var(--line);padding-top:calc(16rem / 14);margin-top:calc(20rem / 14)}.org-structure-actions>[role=status]{margin:0;font-size:calc(13rem / 14);color:var(--body)}.org-structure-actions>div{display:flex;gap:calc(8rem / 14)}.org-company-create{margin-top:calc(20rem / 14)!important;border-top:calc(1rem / 14) solid var(--line);padding-top:calc(16rem / 14)!important}.org-company-create>summary{min-height:calc(44rem / 14);display:flex;align-items:center;color:var(--blue)}.org-dialog .org-company-create>summary{padding:calc(8rem / 14) 0}.org-company-create>summary::before{content:'+';margin-right:calc(8rem / 14);font-size:calc(20rem / 14)}
@media(max-width:700px){.org-dialog.org-company-dialog{width:100%}.org-company-dialog .org-editor-body{padding:calc(16rem / 14)}.org-company-node{grid-template-columns:calc(44rem / 14) minmax(0,1fr);padding:calc(8rem / 14)}.org-position-button{grid-column:2;justify-self:start;padding:0}.org-position-editor{grid-column:1 / -1}.org-company-tree ul{margin-left:calc(12rem / 14);padding-left:calc(12rem / 14)}.org-company-tree ul>li::before,.org-company-tree ul>li::after{left:calc(-12rem / 14)}.org-company-tree ul>li::after{width:calc(12rem / 14)}.org-structure-actions{flex-wrap:wrap}.org-structure-actions>[role=status]:not(:empty){flex-basis:100%}.org-structure-actions>div{margin-left:auto}}
.org-company-tree ul ul ul ul{margin-left:0;padding-left:0}
.org-company-tree ul ul ul ul>li::before,.org-company-tree ul ul ul ul>li::after{display:none}
.org-managed .org-search input:not([type=checkbox]){padding-right:0}.org-layout>.org-companies{border-radius:5px 0 0 5px}.org-managed .org-dialog .button,.org-managed .org-dialog .row-action{min-height:44px}.org-dialog .icon-button{padding:0}.org-dialog fieldset{margin:0}
.org-managed .org-dialog .member-fields>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;min-height:44px}
@media(max-width:700px){.org-person-cell[data-label=权限]{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 8px}.org-person-cell[data-label=权限]:before{grid-row:1/3}.org-person-cell[data-label=权限] small{grid-column:2}}
@media(max-width:1000px){.org-layout>.org-companies{border-radius:5px 5px 0 0}}
.org-managed.management-surface,.organization-settings>.settings-content{max-width:none}.org-managed .org-search{display:flex}.org-managed .org-row-check{display:flex}.org-dialog .management-companies{display:block!important}.org-managed .org-dialog .member-settings-row{display:block}.org-managed .org-dialog .member-fields{grid-template-columns:1fr}
.organization-settings.settings-layout{display:block}.organization-settings>.settings-nav{display:flex;gap:8px;margin-bottom:20px;border:0;flex-wrap:wrap}.organization-settings>.settings-nav button{width:auto;min-height:44px}.org-managed>#api-settings-layout{display:none!important}.org-managed .org-live{display:block}.org-live{font-size:14px;line-height:1.6;min-width:0}.org-live [hidden]{display:none!important}.org-live input:not([type=checkbox]),.org-live select{font:inherit;min-height:44px;min-width:0;width:100%;border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 12px}.org-live input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue)}
.org-live-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}.org-live-actions>span{margin-right:auto;color:var(--body)}.org-live .button{font-size:14px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:none}.org-layout{display:grid;grid-template-columns:184px minmax(0,1fr);border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}.org-companies{padding:20px 12px;background:var(--subtle);border-right:1px solid var(--line)}.org-companies h2{font-size:16px;margin:0 8px 16px}.org-company{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;padding:10px 8px;border:0;border-radius:4px;background:transparent;text-align:left;font:inherit}.org-company>span:not(.icon){flex:1;min-width:0;overflow-wrap:anywhere}.org-company small{color:var(--body)}.org-company[aria-pressed=true]{background:var(--soft);color:var(--blue);font-weight:600}.org-company.child>.icon{margin-left:12px}.org-companies p{font-size:13px;color:var(--body);margin:24px 8px 0}.org-directory{min-width:0}.org-directory-head{padding:20px;border-bottom:1px solid var(--line)}.org-directory-head>div:first-child{display:flex;align-items:center;gap:12px;margin-bottom:12px}.org-directory-head h2{font-size:18px;margin:0}.org-directory-head small{color:var(--body)}.org-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.org-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:0 12px;max-width:100%;width:260px}.org-search input:not([type=checkbox]){border:0;padding-left:0;flex:1}.org-filters{display:flex;gap:4px}.org-filters button{border:0;background:#fff;min-height:44px;border-radius:4px;font:inherit;padding:8px 12px}.org-filters button[aria-pressed=true]{background:var(--soft);color:var(--blue);font-weight:600}.org-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:60px;padding:8px 20px;border-bottom:1px solid var(--line);color:var(--body)}.org-selection small{font-size:12px}
.org-person-head,.org-person{display:grid;grid-template-columns:36px minmax(128px,1.1fr) minmax(92px,.8fr) minmax(150px,1.3fr) minmax(78px,.6fr) 44px;gap:12px;align-items:center;padding:16px 20px}.org-person-head{font-size:13px;color:var(--body);background:var(--subtle)}.org-person{min-height:88px;border-bottom:1px solid var(--line)}.org-person:last-child{border-bottom:0}.org-person:has(input:checked){background:var(--subtle)}.org-row-check{width:44px;height:44px;display:flex;align-items:center;justify-content:center}.org-name{display:flex;gap:10px;align-items:center;min-width:0;overflow-wrap:anywhere}.org-name>span:last-child{min-width:0}.org-name strong{font-size:14px}.org-name small,.org-person-cell small{display:block;margin-top:4px;color:var(--body);font-size:13px}.org-avatar{width:32px;height:32px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:var(--subtle);color:var(--blue);font-weight:600}.org-tag{display:inline-flex;white-space:nowrap;padding:0 6px;border:1px solid var(--line);border-radius:4px;font-size:12px;margin-left:4px;font-weight:400;color:var(--body)}.org-person-cell{min-width:0;overflow-wrap:anywhere}.org-person-count{text-align:right;font-variant-numeric:tabular-nums}.org-person-count strong{font-size:16px}.org-person-head>span:nth-last-child(2){text-align:right}.org-edit{min-width:44px;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--blue);font:inherit}.org-empty{padding:40px 20px;text-align:center;color:var(--body)}.org-table-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-top:1px solid var(--line);font-size:13px;color:var(--body)}.org-table-foot span:last-child{display:flex;align-items:center;gap:12px}.org-personal-layout{grid-template-columns:1fr}.org-personal-layout .org-person-head,.org-personal-layout .org-person{grid-template-columns:minmax(160px,1.3fr) minmax(100px,1fr) minmax(140px,1fr) 44px}.org-personal-layout .org-person-head>span:nth-last-child(2){text-align:left}
.org-dialog{width:460px;max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink)}.org-dialog::backdrop{background:rgba(23,33,40,.25)}.org-editor-form{display:flex;flex-direction:column;height:100%}.org-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid var(--line)}.org-editor-head h2{font-size:20px;margin:0}.org-editor-head .icon-button{width:44px;height:44px}.org-editor-body{flex:1;overflow:auto;padding:20px;scrollbar-gutter:stable}.org-editor-body .member-settings-row{display:block;border:0;padding:0}.org-editor-body .member-settings-row>span{display:block;padding:16px 0;border-bottom:1px solid var(--line)}.org-editor-body .member-editor{margin:20px 0}.org-editor-body .member-editor>summary{display:none}.org-editor-body .member-fields,.org-editor-body .settings-form{display:grid;gap:16px;grid-template-columns:1fr}.org-editor-body .member-fields>label,.org-field{display:grid;gap:8px;font-size:14px;margin-bottom:8px}.org-editor-body .member-confirm{padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:6px}.org-editor-body .member-role-help,.org-editor-body small,.org-editor-body p{font-size:13px;color:var(--body)}.org-editor-body .settings-section{margin:0;padding:0;border:0}.org-editor-section{padding:20px 0;border-top:1px solid var(--line)}.org-editor-section h3{font-size:16px;margin:0 0 16px}.org-editor-body [role=alert]{color:var(--red)}.org-editor-body .company-scope-choices label,.org-editor-body .member-all-entities{min-height:44px}.org-live.reimbursement-profile{display:block;margin:0;padding:0;border:0}
@media(max-width:1250px){.org-layout{grid-template-columns:164px minmax(0,1fr)}.org-person-head,.org-person{grid-template-columns:32px minmax(110px,1fr) minmax(80px,.8fr) minmax(120px,1.2fr) 72px 44px;padding:16px;gap:8px}}
@media(max-width:1000px){.org-layout{display:block}.org-companies{display:flex;flex-wrap:wrap;gap:8px;border-right:0;border-bottom:1px solid var(--line);padding:16px}.org-companies h2{width:100%;margin:0}.org-company{width:auto;max-width:100%;border:1px solid var(--line);background:#fff}.org-companies p{display:none}}
@media(max-width:700px){.org-live-actions>span{width:100%}.org-live-actions .button{flex:1}.org-person-head{display:none}.org-person,.org-personal-layout .org-person{grid-template-columns:32px minmax(0,1fr) 44px;padding:16px;gap:8px}.org-name{grid-column:2;grid-row:1}.org-personal-layout .org-name{grid-column:1/3}.org-person .org-edit{grid-column:3;grid-row:1}.org-person-cell{grid-column:2/-1;display:flex;gap:8px;align-items:baseline;font-size:13px}.org-personal-layout .org-person-cell{grid-column:1/-1}.org-person-cell:before{content:attr(data-label);min-width:56px;color:var(--body)}.org-person-cell small{display:inline;margin:0}.org-person-count{text-align:left;flex-wrap:wrap}.org-tools{display:block}.org-search{width:100%}.org-filters{margin-top:8px}.org-table-foot{flex-wrap:wrap}.org-dialog{width:100%}.organization-settings>.settings-nav{gap:4px}}
/* Personnel: one toolbar, contextual company actions and grouped editing. */
.org-companies .org-mobile-company{display:none}
.org-name{gap:12px}.org-company{padding-top:12px;padding-bottom:12px}.org-member-form .company-scope-choices{gap:8px}.org-member-form .member-editor-actions>.row-action{padding:8px 12px}
.org-company-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.org-company-heading h2{margin:0 0 0 8px}.org-company-heading .org-edit{display:flex;align-items:center;gap:4px;font-size:.8125rem}.org-company-heading .icon{width:16px;height:16px}
.org-directory-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.org-directory-head>div:first-child{margin:0;flex:1}.org-tools{gap:8px}.org-filters{padding:3px;background:var(--subtle);border-radius:6px}.org-filters button{background:transparent}.org-filters button[aria-pressed=true]{background:#fff;box-shadow:none;outline:1px solid var(--line)}
.org-person-head,.org-person{grid-template-columns:44px minmax(132px,1fr) minmax(110px,.9fr) minmax(170px,1.2fr) minmax(90px,.6fr) 76px;padding:12px 20px;gap:12px}.org-person{min-height:80px}.org-person .org-edit{border:1px solid var(--line);border-radius:6px;background:#fff;font-size:.8125rem;padding:8px}.org-person-head>span:last-child{text-align:center}.org-selection{background:var(--soft);min-height:56px}.org-selection .org-edit{margin-left:auto}.org-live .org-edit:focus-visible,.org-company:focus-visible,.org-filters button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.org-personal-layout .org-person-head,.org-personal-layout .org-person{grid-template-columns:minmax(160px,1.3fr) minmax(100px,1fr) minmax(140px,1fr) 76px}
.management-surface .member-fields>.member-field-section,.management-surface .member-fields>.member-editor-actions{grid-column:1/-1}.member-field-section{min-width:0;border:0;border-top:1px solid var(--line);padding:16px 0 0;display:grid;gap:12px}.member-field-section legend{padding:0 8px 0 0;font-size:1rem;font-weight:600;color:var(--ink)}.member-field-section>label{display:grid;gap:6px}.member-field-section>.member-all-entities{display:flex;align-items:center;gap:8px}.member-field-section p,.member-field-section small{margin:0;line-height:1.6}
.org-editor-person{display:flex;align-items:center;gap:12px;background:var(--soft);padding:16px;border-radius:6px;margin-bottom:20px}.org-editor-person>.org-avatar{width:44px;height:44px;background:#fff;color:var(--body)}.org-editor-person>div{min-width:0;flex:1;overflow-wrap:anywhere}.org-editor-person strong{font-size:1rem;font-weight:600}.org-editor-person small{display:block;margin-top:4px}.org-editor-person>.button{font-size:.8125rem;padding:8px}.org-editor-company{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.org-editor-company>div{min-width:0;flex:1}.org-editor-company h3{font-size:.875rem;font-weight:600;margin:0}.org-editor-company p{margin:4px 0 0;overflow-wrap:anywhere}.org-editor-company .button{font-size:.8125rem;flex:none}
.org-member-form>span{display:none!important}.org-member-form .member-editor{margin:0}.org-managed .org-dialog .member-fields{gap:24px}.org-dialog .member-fields>.member-field-section{padding:16px 0 0;margin:0}.org-dialog .member-field-section>label{margin:0}.org-dialog .member-field-section .member-role-help{margin:-4px 0 0}.org-member-form .member-editor-actions{position:sticky;bottom:-20px;display:flex;justify-content:flex-end;gap:8px;padding:16px 0;margin:0;background:#fff;border-top:1px solid var(--line);z-index:1}.org-member-form .member-editor-actions>.row-action{background:var(--blue);color:#fff;border-color:var(--blue);font-size:.875rem}.org-editor-body:has(.org-member-form){scroll-padding-bottom:88px}.org-member-form .member-confirm{margin:12px 0}.org-member-form .member-confirm p{margin:0 0 12px}
@media(max-width:1250px){.org-person-head,.org-person{grid-template-columns:44px minmax(110px,1fr) minmax(90px,.8fr) minmax(130px,1.2fr) 76px 76px;padding:12px 16px;gap:8px}}
@media(max-width:1000px){.org-company-heading{width:100%;margin:0}.org-company-heading h2{margin:0}.org-directory-head>div:first-child{flex-basis:100%}}
@media(max-width:700px){.org-companies>.org-company{display:none}.org-companies .org-mobile-company{display:block;width:100%}.org-person,.org-personal-layout .org-person{grid-template-columns:44px minmax(0,1fr) 76px;padding:16px;gap:8px}.org-directory-head{gap:12px;padding:16px}.org-tools{width:100%;display:grid;gap:12px}.org-filters{margin:0;display:flex}.org-filters button{flex:1}.org-person .org-person-cell{grid-column:2/-1}.org-personal-layout .org-person .org-person-cell{grid-column:1/-1}.org-editor-person{flex-wrap:wrap}.org-editor-person>.button{margin-left:56px}.org-editor-person>div{flex-basis:calc(100% - 56px)}.org-person .org-edit{grid-column:3}.org-editor-company{align-items:flex-start}.org-editor-company .button{padding:8px}.org-member-form .member-editor-actions{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
.modal:has(.excel-leave-confirm) .modal-head{border-top-left-radius:inherit;border-top-right-radius:inherit}
.modal:has(.excel-leave-confirm) .modal-foot{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
.modal:has(.excel-leave-confirm) .icon-button{width:44px;height:44px;padding:0}
.modal:has(.excel-leave-confirm) .button{min-height:44px}
.excel-leave-confirm{font-size:12px;line-height:1.9;color:var(--body)}
.modal:has(.excel-leave-confirm)>#modal-content{border-radius:inherit}

/* One workspace frame for each step; content scrolls without resizing its shell. */
#modal.workspace-dialog,.drawer.enterprise-report-dialog{inset:0;margin:auto;width:min(1320px,calc(100vw - 32px));height:min(850px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:12px;overflow:hidden;scrollbar-gutter:auto}
#modal.workspace-dialog>#modal-content,.drawer.enterprise-report-dialog>#drawer-content{display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0;width:100%}
#modal.workspace-dialog .modal-head,.drawer.enterprise-report-dialog .drawer-head{height:76px;flex:none;padding:16px 24px;box-sizing:border-box;position:static;border-radius:0;gap:16px}
#modal.workspace-dialog .modal-head h2,.drawer.enterprise-report-dialog .drawer-head h2,.reimbursement-dialog .modal-head h2{font-size:18px;line-height:28px;font-weight:600;margin:0}
#modal.workspace-dialog .modal-head .icon-button,.drawer.enterprise-report-dialog .drawer-head .icon-button{width:44px;height:44px;padding:8px;flex:none}
#modal.workspace-dialog .modal-body,.drawer.enterprise-report-dialog .drawer-body{flex:1;min-height:0;padding:20px 24px;overflow:auto;scrollbar-gutter:stable;overflow-anchor:none}
#modal.workspace-dialog .modal-foot,.drawer.enterprise-report-dialog .modal-foot{display:flex;height:84px;min-height:84px;flex:none;align-items:center;align-content:center;gap:8px;padding:12px 24px;border-radius:0;box-sizing:border-box;overflow:auto}
#modal.workspace-dialog .modal-foot .button,.drawer.enterprise-report-dialog .modal-foot .button{min-height:44px;font-size:14px;line-height:20px}
#modal.workspace-dialog .modal-body:has(.upload-picker){display:flex;align-items:center;justify-content:center}
#modal.workspace-dialog .upload-flow:has(.upload-picker){width:100%;max-width:760px}
#modal.workspace-dialog .modal-body:has(.upload-workspace){overflow:hidden}
#modal.workspace-dialog.excel-flow-dialog{width:min(1320px,calc(100vw - 32px));height:min(850px,calc(100dvh - 32px))}
#modal.workspace-dialog.excel-preflight-dialog>#modal-content{display:grid;grid-template-rows:76px minmax(0,1fr) auto}
#modal.workspace-dialog.excel-preflight-dialog .modal-body{overflow-y:auto;overscroll-behavior:contain}
#modal.workspace-dialog.excel-flow-dialog .excel-confirm,#modal.workspace-dialog.excel-flow-dialog [data-personal-excel-progress],#modal.workspace-dialog.excel-flow-dialog .bulk-job-status{width:100%;max-width:1000px;margin-inline:auto}
#modal.workspace-dialog.excel-flow-dialog:has([data-personal-excel-flow]) .modal-body{overflow:hidden}
.reimbursement-dialog:not(.people-history-dialog){height:fit-content;max-height:calc(100dvh - 32px)}
.reimbursement-dialog>form{height:auto;max-height:calc(100dvh - 32px)}.reimbursement-dialog .modal-body{flex:0 1 auto;min-height:0}
.reimbursement-dialog.people-history-dialog>.modal-body{flex:0 1 auto;min-height:0}
[data-processing-records]>.subnav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
[data-processing-records]>.subnav button{flex:none;font-weight:500;min-width:44px}
[data-processing-records] .record-filter-slot{min-height:68px;border-bottom:1px solid var(--line)}
[data-processing-records] .operation-date-filters{flex-wrap:nowrap;gap:8px;margin:0;padding:12px 16px;align-items:center}
[data-processing-records] .operation-date-filters .heading-actions{flex-wrap:nowrap;margin:0}
[data-processing-records] .operation-date-filters .button{padding:8px 12px;font-size:13px}
.record-filter-caption{display:flex;align-items:center;gap:8px;min-height:68px;padding:12px 16px;font-size:13px;line-height:20px;color:var(--body)}
.record-filter-caption>.icon{width:20px;height:20px;flex:none;color:var(--blue)}
[data-processing-records] [data-record-feedback]{min-height:24px;margin:0;padding:2px 16px;font-size:13px;line-height:20px}
[data-processing-records] [data-record-feedback]:empty{display:block;visibility:hidden}
[data-processing-records] .record-tools{padding:12px 16px;margin:0;border-top:1px solid var(--line)}
.processing-record-list article.record-credit{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px;min-height:112px}
.record-credit-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--soft);border-radius:6px;color:var(--blue)}
.record-credit-icon>.icon{width:24px;height:24px}
.record-credit-main{min-width:0}.record-credit-main>strong{font-size:15px;line-height:24px;font-weight:600}
.record-credit-main>p{margin:4px 0;font-size:13px;line-height:20px;color:var(--body)}
.record-credit-main>time{font-size:13px;line-height:20px;color:var(--muted)}
.record-credit-result{display:grid;gap:4px;justify-items:end;align-content:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.record-credit-result>strong{font-size:24px;line-height:32px;font-weight:600;color:var(--blue)}
.record-credit-result>strong>small{display:inline;margin:0;font-size:13px;line-height:20px;font-weight:400;color:var(--body)}
.record-credit-result>span{display:flex;align-items:center;gap:4px;font-size:13px;line-height:20px;color:var(--body)}
.record-credit-result>span>.icon{width:16px;height:16px;color:var(--green)}
.record-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:220px;padding:24px;color:var(--body)}
.record-empty>.icon{width:32px;height:32px;color:var(--muted)}.record-empty>strong{font-size:15px;font-weight:500}.record-empty>p{margin:0;font-size:13px}
.operation-date-popup{inset:0;margin:auto;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);box-sizing:border-box}
.operation-date-popup::backdrop{background:rgba(23,33,40,.15)}
.operation-date-popup-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.operation-date-popup-head>strong{font-size:16px}.operation-date-popup-head .icon-button{width:44px;height:44px}
.operation-date-popup .invoice-date-inputs>div{display:grid;grid-template-columns:1fr;gap:12px}.operation-date-popup input{width:100%;min-width:0;min-height:44px;font:inherit}.operation-date-popup [role=alert]{font-size:13px;line-height:20px;color:var(--red)}
@media(max-width:900px),(max-height:650px){#modal.workspace-dialog .modal-body:has(.upload-workspace){overflow:auto}}
@media(max-width:640px){
 .upload-workspace .upload-settings .personal-risk-policy .upload-check-choice,#modal .excel-confirm .upload-check-choice{padding:6px 4px;gap:4px}
 .upload-workspace .upload-settings .upload-check-choice strong,#modal .excel-confirm .upload-check-choice strong{font-size:13px;min-width:0;white-space:normal;word-break:keep-all}
 #modal.workspace-dialog,.drawer.enterprise-report-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:10px}
 #modal.workspace-dialog .modal-head,.drawer.enterprise-report-dialog .drawer-head{padding:16px;height:76px}
 #modal.workspace-dialog .modal-body,.drawer.enterprise-report-dialog .drawer-body{padding:16px}
 #modal.workspace-dialog .modal-foot,.drawer.enterprise-report-dialog .modal-foot{height:136px;min-height:136px;padding:12px 16px;align-content:flex-end}
 #modal.workspace-dialog .modal-foot:has(.upload-counts){height:176px;min-height:176px;align-content:center}
 #modal.workspace-dialog.excel-flow-dialog .modal-foot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:44px;align-content:center;height:124px;min-height:124px;overflow:auto}
 #modal.workspace-dialog.excel-flow-dialog .modal-foot>.excel-confirm-footer{grid-column:1/-1}
 #modal.workspace-dialog.excel-flow-dialog .modal-foot>.button.primary:last-child{grid-column:2}
 #modal.workspace-dialog.excel-flow-dialog .reimbursement-picker-body{bottom:140px}
 .excel-task-progress [data-excel-continuation]{min-height:2lh}
 [data-processing-records]>.subnav{padding:12px 8px;gap:4px}[data-processing-records]>.subnav button{padding:8px}
 [data-processing-records] .operation-date-filters{padding:12px 8px;gap:8px}[data-processing-records] .operation-date-filters .heading-actions{gap:4px}[data-processing-records] .operation-date-filters .button{padding:8px;font-size:13px}
 .processing-record-list article.record-credit{grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:16px 12px;align-items:start}.record-credit-icon{width:32px;height:32px}.record-credit-icon>.icon{width:20px;height:20px}.record-credit-result>strong{font-size:20px;line-height:28px}
}
@media(max-width:360px){.upload-workspace .upload-settings .personal-risk-policy .upload-check-choice,#modal .excel-confirm .upload-check-choice{height:56px}}
/* Reading groups use bounded columns instead of spreading small facts to both edges. */
.personal-filters.invoice-toolbar,.invoice-workspace>.personal-filters.invoice-toolbar{width:100%;display:block;margin:0;padding:12px 0 0}
.invoice-filter-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding-bottom:12px}
.unified-ledger .invoice-filter-fields{grid-template-columns:repeat(6,minmax(0,1fr))}
.invoice-toolbar .invoice-filter-fields .field.invoice-date-inputs,.invoice-toolbar .invoice-date-inputs>div,.invoice-toolbar .invoice-person-filters{display:contents}
.invoice-toolbar .invoice-filter-fields .field,.invoice-toolbar .invoice-filter-fields label{min-width:0!important;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:20px;margin:0;color:var(--muted)}
.invoice-toolbar input,.invoice-toolbar select{min-height:44px;font-size:14px;line-height:20px;padding:8px 10px}
.invoice-toolbar-bottom{display:flex;align-items:center;gap:12px;min-height:68px;padding:12px 0;border-top:1px solid var(--line)}
.invoice-toolbar-bottom>.field.filter-sort{display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 1 200px;min-width:160px;margin:0;font-size:12px;white-space:nowrap}
.invoice-toolbar-bottom>.filter-sort select{flex:1;min-width:0}
.invoice-toolbar-bottom>.button,.invoice-toolbar-bottom .button{min-height:44px;padding:8px 12px;font-size:14px;white-space:nowrap}
.invoice-toolbar-bottom>.personal-list-actions{margin-left:auto;gap:8px;width:auto;flex:none}
.invoice-toolbar-bottom>.ledger-actions{position:static;min-height:44px;flex:1;flex-wrap:nowrap;border:0;margin:0;padding:0;gap:8px;z-index:auto}
.invoice-toolbar-bottom .ledger-actions label{flex:none;gap:6px;font-size:12px;white-space:nowrap}
.invoice-toolbar-bottom .ledger-actions input[type=checkbox]{width:16px;min-height:16px;accent-color:var(--blue)}
.invoice-toolbar-bottom .ledger-actions [role=status]{font-size:12px}
.invoice-toolbar-bottom .ledger-actions .toolbar-menu{margin-left:auto}
.invoice-toolbar [data-filter-error]{display:block;min-height:20px;margin:0;font-size:12px;line-height:20px;color:var(--red)}
.invoice-toolbar [data-filter-error]:empty{display:none}
/* Progressive filters and searchable choices share the existing form controls. */
invoice-more-filters{display:block;min-width:0}
.invoice-more-filters{padding:0;border:0;margin:0}
.invoice-more-filters>summary,.invoice-more-filters>[data-filter-collapse]{display:none}
.invoice-filter-primary .field{min-width:0;margin:0;font-size:12px;color:var(--muted)}
.unified-ledger .personal-filters.invoice-toolbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0 12px}
.unified-ledger .invoice-toolbar>.ledger-risk-filters,.unified-ledger .invoice-toolbar>.invoice-toolbar-bottom,.unified-ledger .invoice-toolbar>[data-filter-error]{grid-column:1/-1}
.unified-ledger invoice-more-filters{grid-column:span 5}
.unified-ledger .invoice-filter-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
.date-field-error{grid-column:1/-1;margin:4px 0 0;font-size:12px;line-height:20px;color:var(--red)}
.date-field-error[hidden]{display:none}
input[aria-invalid=true],.search-select-trigger[aria-invalid=true]{border-color:var(--red)}
.mobile-navigation-head{display:none}
.navigation-shade[hidden]{display:none!important}
.searchable-select{display:block;min-width:0;width:100%}
.search-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit;text-align:left;color:var(--text)}
.search-select-trigger>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-select-trigger>.icon{flex:none}
.search-select-trigger:disabled{opacity:.55;cursor:not-allowed}
.search-select-popup{inset:auto;margin:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);max-height:min(350px,calc(100dvh - 24px));overflow:auto}
.search-select-label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}
.search-select-label input{min-height:44px;width:100%;font-size:14px}
.search-select-list{display:block;max-height:244px;overflow:auto;margin-top:8px}
.search-select-list>[role=option]{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px;border-radius:4px;font-size:14px;cursor:pointer}
.search-select-list>[role=option]:is(:hover,.is-highlighted){background:var(--soft)}
.search-select-list>[aria-selected=true]{color:var(--blue)}
.search-select-empty{margin:12px 0;font-size:13px;color:var(--muted)}
.invoice-action-steps{margin:12px 0 0}
.invoice-action-steps p{margin:8px 0 0;font-size:13px;line-height:20px}
@media(max-width:1100px){.mobile-navigation-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.mobile-navigation-head h2{font-size:16px;margin:0}.mobile-navigation-head button{min-width:44px;min-height:44px}.sidebar.open{overflow-y:auto}.sidebar.open~.navigation-shade{inset:0 0 0 218px}.sidebar.open{top:0}}
@media(max-width:700px){
 .unified-ledger .personal-filters.invoice-toolbar{display:block}
 .invoice-filter-primary{margin-bottom:8px}
 .invoice-more-filters>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;font-size:14px;cursor:pointer;list-style:none}
 .invoice-more-filters>summary::-webkit-details-marker{display:none}
 .invoice-more-filters>summary>.icon{margin-left:auto}
 .invoice-more-filters[open]>summary>.icon{transform:rotate(180deg)}
 .invoice-more-filters>[data-filter-collapse]{display:block;min-height:44px;padding:8px 0;margin-bottom:8px}
 .unified-ledger .invoice-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.toolbar-menu>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer;list-style:none;font-size:14px;box-sizing:border-box}
.toolbar-menu>summary::-webkit-details-marker{display:none}
.toolbar-menu>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.toolbar-menu{position:relative;margin-left:auto}
.toolbar-menu>div{position:absolute;right:0;top:calc(100% + 4px);z-index:3;display:grid;gap:4px;min-width:140px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:6px}
.ledger-actions .toolbar-menu [data-ledger=export]{margin:0}
.ledger-actions .toolbar-menu button{width:100%;text-align:left;min-height:44px}
.personal-risk-policy.query-controls{background:var(--subtle)}
.upload-workspace .upload-settings .personal-risk-policy.query-controls,#modal .excel-confirm .personal-risk-policy.query-controls{padding:10px 12px 12px;border:1px solid var(--line);border-radius:6px;gap:8px;background:var(--subtle)}
.personal-risk-policy.query-controls .upload-policy-options{padding-top:8px;border-top:1px solid var(--line);min-height:52px}
.query-controls .upload-policy-options .upload-risk-options{justify-self:stretch}
.upload-settings>.reimbursement-upload{width:100%}
.settings-layout,.organization-settings.settings-layout{display:block}
.settings-layout>.settings-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;margin-bottom:20px;padding:0 0 12px;border:0;border-bottom:1px solid var(--line)}
.settings-layout>.settings-nav button{flex:none;width:auto;min-height:44px}
.personal-workspace .personal-overview-note{min-height:20px}.personal-workspace .personal-overview-note:empty{display:block}
.compact-invoice-overview .personal-metrics{padding:12px 20px;gap:24px;align-items:center}
.compact-invoice-overview .personal-metrics>div+div{padding-left:24px}
.compact-invoice-overview .personal-metrics dt{margin-bottom:4px}
.compact-invoice-overview .personal-metrics dd{font-size:28px;line-height:36px}
.compact-invoice-overview .personal-scope .field{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:8px}
@media(max-width:760px){
 .ledger-risk-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.ledger-risk-filters button{flex:none;min-height:44px}
 #main .heading:has(>.heading-actions>.button:only-child){display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
 #main .heading:has(>.heading-actions>.button:only-child)>.heading-actions{width:auto;flex:none;margin:0}
 .invoice-toolbar .invoice-filter-fields,.unified-ledger .invoice-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .invoice-toolbar-bottom{flex-wrap:wrap;gap:8px;padding:8px 0}
 .invoice-toolbar-bottom>.field.filter-sort{flex:1;min-width:0}
 .invoice-toolbar-bottom>.personal-list-actions{width:100%;margin:0;display:flex}
 .invoice-toolbar-bottom .personal-list-actions>.button{flex:1;padding:8px;font-size:13px}
 .invoice-toolbar-bottom>.ledger-actions{flex-basis:100%;flex-wrap:wrap}
 .invoice-toolbar-bottom .ledger-actions>.button,.invoice-toolbar-bottom .ledger-actions>.text-btn{font-size:13px;padding:8px;min-height:44px}
 .personal-workspace .personal-risk-counts{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;margin-top:16px}
 .personal-workspace .personal-risk-counts>button{flex:none;white-space:nowrap;padding:12px 10px}
 .compact-invoice-overview .personal-scope{margin-bottom:12px}.compact-invoice-overview .personal-metrics{padding:12px 16px;gap:20px}.compact-invoice-overview .personal-metrics>div+div{padding-left:20px}
 .personal-workspace .heading{margin-bottom:12px}.personal-workspace>.personal-feedback{margin-bottom:8px}
 .personal-workspace .compact-invoice-overview{margin-bottom:8px}.personal-workspace .personal-risk-counts{margin-top:8px}
 .personal-list-actions{gap:8px}.personal-list-actions .button{min-height:44px;padding:8px;font-size:13px}
 .workbench-upload{flex-direction:column;align-items:stretch;gap:12px;padding:16px;min-height:0}.workbench-upload-actions{display:flex;flex-wrap:wrap;gap:8px}.workbench-upload-actions>.button{flex:1 1 120px}
 .workbench-shortcuts{gap:16px}.workbench-section{margin-top:20px}
 .ledger-actions{gap:8px}.ledger-actions>.button,.ledger-actions>.text-btn{min-height:44px}
}
[data-processing-records]{max-width:1080px;margin-inline:auto}
.invoice-attribution{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px;width:100%;max-width:100%}
.invoice-attribution>.reimbursement-upload{width:100%;min-width:0}
.invoice-attribution>.upload-company,.upload-workspace .upload-settings .invoice-attribution>.upload-company{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:8px;margin:0;font-size:13px;line-height:20px;min-width:0}
.invoice-attribution>.upload-company select,.upload-workspace .upload-settings .invoice-attribution>.upload-company select{min-width:0;width:100%;min-height:44px;padding:6px 8px;font-size:13px}
[data-processing-records] .record-operation-top time{margin-left:0}
.excel-import-allowance details{margin-left:0}
@media(min-width:641px){.processing-record-list article.record-credit{grid-template-columns:44px minmax(240px,400px) max-content}}
.personal-report .facts-amounts{grid-template-columns:repeat(3,minmax(0,180px));gap:24px}
#modal.workspace-dialog.excel-flow-dialog .excel-confirm{max-width:880px}
@media(min-width:1101px){
 .workbench-operation .record-operation-main,.workbench-overview .workbench-operation .record-operation-main{grid-template-columns:minmax(180px,280px) minmax(210px,300px) 64px;gap:4px 24px}
 .workbench-operation .record-operation-top{grid-column:1;grid-row:1}
 .workbench-operation .record-operation-meta,.workbench-overview .workbench-operation .record-operation-meta{grid-column:1;grid-row:2;flex-direction:row;flex-wrap:wrap;gap:4px 12px}
 .workbench-operation .record-operation-bottom{grid-column:2;grid-row:1/3}
 .workbench-operation .record-open,.workbench-overview .workbench-operation .record-open{grid-column:3;grid-row:1/3}
}
@media(max-width:640px){
 .invoice-attribution{grid-template-columns:minmax(0,1fr);gap:8px;max-width:100%}
 .reimbursement-picker-body{width:auto}
 .upload-workspace .upload-settings .personal-risk-policy .field select,.upload-workspace .upload-settings .personal-risk-policy .field input,.upload-workspace .upload-settings .upload-company select{min-height:44px}
 #modal.workspace-dialog:has(.personal-report) .modal-foot,#modal.workspace-dialog:has([data-processing-records]) .modal-foot,.drawer.enterprise-report-dialog .modal-foot{height:76px;min-height:76px;align-content:center}
 .personal-report .facts-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .excel-import-count{gap:4px 12px}.excel-import-count>span{font-size:14px}.excel-import-count strong{font-size:26px;line-height:32px}
 .excel-confirm .excel-preflight-counts{gap:8px}.excel-preflight-counts strong{font-size:24px}
 .excel-confirm-footer .usage-confirm-clear{gap:4px 12px}.excel-confirm-footer .usage-required,.excel-confirm-footer .usage-available{gap:4px}
}

/* Settings preview follows the draft; saved state stays beside the save action. */
.settings-content:has(.compact-rule-preview)>.field:has(#finance-rule-company){max-width:none}
.settings-current-rule.compact-rule-preview{padding:16px;margin:16px 0 20px;min-height:124px;box-sizing:border-box}
.compact-rule-preview .current-rule-heading{min-height:20px;gap:12px;font-size:13px;line-height:20px}
.compact-rule-preview .current-rule-heading>small{font-size:12px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
.compact-rule-preview .current-rule-flow{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);max-width:none;min-height:60px;margin-top:12px;gap:12px;align-items:center}
.compact-rule-preview .current-rule-flow.single{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}
.compact-rule-preview .current-rule-step{display:grid;grid-template-columns:40px minmax(0,1fr);gap:2px 12px;justify-items:start;text-align:left;min-width:0}
.compact-rule-preview .current-rule-icon{grid-column:1;grid-row:1/3;width:40px;height:40px;border-radius:6px}
.compact-rule-preview .current-rule-icon .icon{width:24px;height:24px}
.compact-rule-preview .current-rule-step strong{grid-column:2;font-size:16px;line-height:24px}
.compact-rule-preview .current-rule-step small{grid-column:2;color:var(--muted);font-size:12px;line-height:20px;overflow-wrap:anywhere}
.compact-rule-preview .current-rule-arrow{height:24px;align-self:center}
.compact-rule-preview .current-rule-empty{font-size:16px;line-height:24px;margin:16px 0}
.settings-content .setting-form.rule-editor{max-width:none;gap:16px}
.rule-editor .rule-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rule-editor .rule-choices legend{margin-bottom:8px;font-size:13px}
.rule-editor .rule-choices>label{min-height:52px;padding:12px;box-sizing:border-box}
.rule-editor .rule-threshold{display:flex;align-items:flex-end;gap:12px;min-height:68px}
.rule-editor .rule-threshold>.field{flex:0 1 220px;min-width:0;font-size:13px}
.rule-editor .rule-threshold input{width:100%;max-width:none;min-height:44px;box-sizing:border-box}
.rule-editor .rule-threshold>.muted{font-size:12px;line-height:20px;padding-bottom:12px}
.rule-editor .rule-save-state{display:grid;gap:4px;min-width:0}
.rule-editor .rule-save-state>span{display:flex;align-items:center;gap:6px;font-size:13px;line-height:20px}
.rule-editor .rule-save-state .icon{width:16px;height:16px;color:var(--blue);flex:none}
.rule-editor .rule-save-state>small{color:var(--muted);font-size:12px;line-height:20px}
.rule-editor .rule-save-buttons{display:flex;align-items:center;gap:8px;flex:none}
@media(max-width:640px){
 .compact-rule-preview .current-rule-flow,.compact-rule-preview .current-rule-flow.single{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:8px}
 .compact-rule-preview .current-rule-step{grid-template-columns:28px minmax(0,1fr);gap:2px 6px}
 .compact-rule-preview .current-rule-icon{width:28px;height:28px}.compact-rule-preview .current-rule-icon .icon{width:20px;height:20px}
 .compact-rule-preview .current-rule-step strong{font-size:14px;line-height:22px}.compact-rule-preview .current-rule-step small{font-size:12px;line-height:18px}
 .rule-editor .rule-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .rule-editor .rule-choices>label{padding:10px 8px;gap:6px}.rule-editor .rule-choices input{width:18px;height:18px}.rule-editor .rule-choice-flow{font-size:13px}
 .rule-editor .rule-threshold{align-items:flex-start;min-height:88px}.rule-editor .rule-threshold>.field{flex:1}.rule-editor .rule-threshold>.muted{flex:1;padding-top:26px;padding-bottom:0}
 .rule-editor .rule-editor-actions{align-items:flex-start;flex-direction:column;gap:12px}.rule-editor .rule-save-buttons{width:100%}.rule-editor .rule-save-buttons .primary{margin-left:auto}
}

/* Operation actions: compact peer steps; each result owns its semantic color. */
.operation-outcome-filters{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.operation-outcome-filters>button{min-width:52px;min-height:44px;padding:8px 12px;border:0;border-radius:4px;background:none;color:var(--body);font-size:13px;line-height:20px}
.operation-outcome-filters>button[aria-pressed=true]{background:var(--soft);color:var(--blue)}
.operation-outcome-context{margin-left:8px;font-size:13px;color:var(--muted)}
[data-processing-records] .record-operation-filters{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:8px 16px}
[data-processing-records] .record-operation-filters .operation-date-filters{padding:0}
@media(max-width:600px){[data-processing-records] .record-operation-filters{padding:8px}}
.record-operation-main.operation-action-main,
.workbench-operation .record-operation-main.operation-action-main,
.enterprise-records-layout .enterprise-message-list .workbench-operation .record-operation-main.operation-action-main{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;container:operation-record / inline-size}
.enterprise-records-layout .enterprise-message-list .workbench-operation:has(.operation-action-main){padding-block:0}
.enterprise-records-layout .processing-record-list .operation-record{padding:16px 0;border-bottom:1px solid var(--line)}
.operation-action-top{display:grid;grid-template-columns:minmax(100px,180px) 88px minmax(0,1fr) auto max-content;align-items:center;gap:10px;min-width:0;line-height:24px}
.operation-action-main.is-record-summary>.operation-action-top{grid-template-columns:minmax(100px,180px) 112px minmax(0,1fr) 88px 64px 64px}
.is-record-summary .operation-action-total{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.is-record-summary .operation-action-billing{min-height:24px;font-size:13px;line-height:24px;white-space:nowrap;color:var(--muted)}
.operation-action-top.recognition-record-summary{grid-template-columns:minmax(88px,180px) max-content minmax(0,1fr) auto max-content}
.operation-action-top>strong{font-size:16px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.operation-action-total{font-size:13px;color:var(--body);white-space:nowrap}
.operation-action-actor{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operation-action-actor .record-status{font-size:11px;line-height:18px;padding:2px 6px;flex:none}
.operation-action-actor .operation-actor{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operation-action-top>time{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.operation-action-open{display:inline-flex;align-items:center;justify-content:end;gap:6px;min-width:56px;margin:0;font-size:13px;color:var(--blue);white-space:nowrap}
.operation-action-open .icon{width:14px;height:14px}
.operation-action-results{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0;font-size:13px;line-height:20px;color:var(--body)}
.record-operation-icon:has(+.operation-action-main){font-size:16px;width:1em;height:1em}.record-operation-icon:has(+.operation-action-main)>.icon{width:1em;height:1em}
.operation-action-main.is-expanded>.operation-action-results{gap:6px 16px}
.operation-action-main.is-expanded .operation-action-results :is(.record-status,.home-operation-state){padding:0;border:0;border-radius:0;background:none}
.operation-action-main.is-expanded .operation-action-results .icon{width:1em;height:1em;flex:none}

.operation-open-arrow{display:inline-flex}.operation-open-arrow.is-expand{transform:rotate(90deg)}.operation-open-arrow.is-collapse{transform:rotate(-90deg)}
.operation-stages{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0;max-width:100%;font-size:13px;line-height:20px}
.operation-single-status{display:inline-flex;align-items:center;gap:6px;padding:2px 0;border:0;background:none;font-size:13px;font-weight:400;line-height:20px;white-space:nowrap}
.operation-single-status>.icon,.operation-single-status .operation-stage-result>.icon{width:16px;height:16px;flex:none}
.operation-single-status>.icon{color:var(--muted)}.operation-single-status.is-active>.icon{color:var(--blue)}.operation-single-status.is-duplicate>.icon{color:#8a6408}.operation-single-status .operation-stage-result{padding:0}
.operation-action-results .operation-single-status .operation-stage-result.is-failed{color:var(--red)}
.operation-stage{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px;flex:0 1 auto;min-width:0;padding:0;border:0;background:none;line-height:20px;text-align:left}
.operation-result-group{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;padding:2px 0;background:none;color:var(--muted)}
.operation-result-group>.icon{width:16px;height:16px;flex:none}.operation-result-group.is-complete{color:#147A3A}.operation-result-group.is-failed{color:var(--red)}.operation-result-group.is-active{color:var(--blue)}
.operation-result-group .operation-stage{gap:4px}.operation-result-group .operation-stage-label{color:var(--body)}.operation-result-group .operation-stage-result{color:inherit;padding:0;background:none}
.operation-result-divider{height:12px;width:1px;background:var(--line);flex:none}
.operation-status-label,.upload-status.is-duplicate .status-label{color:var(--body)}.operation-status-count{color:inherit;font-variant-numeric:tabular-nums}
.operation-action-results .operation-stage-state,.operation-action-results .operation-stage-state.is-active,.operation-action-results .operation-stage-result[aria-label="查询未完成"]{color:var(--body)}
.home-operation-state.is-duplicate>.icon,.badge.upload-status.is-duplicate>.icon,.record-status.is-duplicate>.icon{width:16px;height:16px}
.latest-message .record-result-badges .home-operation-state{border:0;padding:0;background:none;font-size:13px;font-weight:400;line-height:20px;gap:6px}.latest-message .record-result-badges .icon{color:inherit}
.badge.upload-status.is-duplicate{border:0;padding:2px 0;min-width:0;background:none;font-weight:400}
.badge.upload-status.is-duplicate>.icon svg{width:100%;height:100%}
.execution-summary.is-duplicate .execution-summary-count>.icon{width:16px;height:16px;color:#8a6408}.execution-summary.is-duplicate .execution-summary-count strong{color:#8a6408}
.operation-stage-label{flex:none;font-size:13px;font-weight:400;white-space:nowrap;color:var(--body)}
.operation-stage-count{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;max-width:100%;font-size:13px;color:var(--body);font-variant-numeric:tabular-nums}
.operation-stage-result{display:inline-flex;align-items:center;gap:4px;padding:2px 0;line-height:20px;white-space:nowrap;background:none;color:var(--body)}
.operation-stage-result.is-complete{color:#147A3A}
.operation-stage-result.is-failed{color:var(--red)}
.operation-stage-result.is-active{color:var(--blue)}
.operation-stage-result>.icon{width:16px;height:16px}
.operation-stage-state{color:var(--muted);white-space:nowrap}
.operation-stage-state.is-active{color:var(--blue)}
.operation-stage-state.is-unqueried{display:inline-flex;align-items:center;padding:2px 0;line-height:20px;color:var(--muted)}
.invoice-charge-table th:nth-child(2),.invoice-charge-table td:nth-child(2){text-align:left}
.invoice-charge-table td{vertical-align:top;white-space:nowrap}
.invoice-charge-detail>summary{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;min-height:20px}
.invoice-charge-detail>summary::-webkit-details-marker{display:none}
.invoice-charge-detail .icon{width:14px;height:14px}
.invoice-charge-detail>summary>.icon:last-child{color:var(--muted);margin-left:4px;transform:rotate(90deg)}
.invoice-charge-detail[open]>summary>.icon:last-child{transform:rotate(-90deg)}
.invoice-charge-detail>div{margin-top:8px;font-size:12px;white-space:normal;color:var(--muted)}
.invoice-charge-detail p{margin:4px 0 0}
.invoice-charge-state{display:inline-flex;color:var(--muted)}
.invoice-charge-state.is-complete{color:#147A3A}.invoice-charge-state.is-failed{color:var(--red)}.invoice-charge-state.is-active{color:var(--blue)}
.operation-stage-notes{display:flex;gap:8px;flex-wrap:wrap;font-size:13px}
.operation-stage-notes .record-status{display:inline-flex;align-items:center;gap:6px;padding:2px 0;line-height:20px;background:none;font-weight:400}.operation-stage-notes .record-status>.icon{width:16px;height:16px}
.message-invoices .record-status,.record-detail-item .record-status{display:inline-flex;align-items:center;gap:6px;padding:2px 0;background:none;font-size:13px;font-weight:400;line-height:20px}.message-invoices .record-status>.icon{width:16px;height:16px}.message-invoices .badge.upload-status{gap:6px;padding:2px 0;background:none;font-size:13px;font-weight:400;line-height:20px}.message-invoices .badge.upload-status>.icon{width:16px;height:16px}.record-item-marker[class]{background:none}
.operation-action-note,.operation-action-empty{font-size:13px;color:var(--body);line-height:20px}
@container operation-record (max-width:600px){
 .operation-action-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:2px 8px}
 .operation-action-top>strong{grid-column:1;font-size:14px}
 .operation-action-total{grid-column:2;font-size:12px}
 .operation-action-open{grid-column:3;grid-row:1;margin:0;min-width:40px;font-size:12px}
 .operation-action-actor{grid-column:1/3;grid-row:2;margin:0;font-size:11px}
 .operation-action-top>time{grid-column:3;grid-row:2;font-size:11px;margin:0;justify-self:end}
 .operation-action-main.is-record-summary>.operation-action-top{grid-template-columns:minmax(0,1fr) 80px 56px}
 .is-record-summary .operation-action-actor{grid-column:1;grid-row:2}
 .is-record-summary .operation-action-billing{grid-column:2;grid-row:2;font-size:12px}
 .operation-stages{gap:8px}.operation-stage{gap:6px}
 .operation-action-top.recognition-record-summary{grid-template-columns:minmax(0,1fr) auto auto}.invoice-action-history .workbench-operation .record-operation-main.operation-action-main{grid-template-columns:minmax(0,max-content) minmax(0,1fr) auto auto;gap:8px;align-items:center}.invoice-action-history .workbench-operation .operation-action-top{display:contents}.invoice-action-history .workbench-operation .operation-action-top>strong{grid-column:1;grid-row:1}.invoice-action-history .workbench-operation .operation-action-total{grid-column:2;grid-row:1}.invoice-action-history .workbench-operation .operation-action-top>time{grid-column:3;grid-row:1}.invoice-action-history .workbench-operation .operation-action-open{grid-column:4;grid-row:1}.invoice-action-history .workbench-operation .operation-action-actor{grid-column:1;grid-row:2;line-height:20px}.invoice-action-history .workbench-operation .operation-action-results{grid-column:2/4;grid-row:2}.invoice-action-history .workbench-operation .operation-action-main .operation-action-billing{grid-column:4;grid-row:2}
}

[data-recognition-record-detail] .record-detail-item>.record-item-billing:empty,
[data-recognition-record-detail] .record-detail-item .record-item-action:empty,
[data-recognition-record-detail] .record-detail-item .record-item-heading>.record-item-billing:empty{display:none}
@container processing-records (max-width:600px){
 .record-detail-list[data-recognition-record-detail] .record-invoice-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;grid-template-rows:22px 22px;gap:0 8px}
 [data-recognition-record-detail] .record-invoice-row :is(.record-invoice-facts,.record-fact-parties,.record-fact-financial){display:contents}
 [data-recognition-record-detail] .record-invoice-row .record-fact-parties>strong{grid-area:1/1}
 [data-recognition-record-detail] .record-invoice-row .record-fact-parties>span{grid-area:2/1}
 [data-recognition-record-detail] .record-invoice-row .record-fact-number{grid-area:1/2;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 [data-recognition-record-detail] .record-invoice-row .record-item-states{grid-area:2/2;flex-wrap:nowrap;overflow:hidden}
 [data-recognition-record-detail] .record-invoice-row .record-fact-amount{grid-area:1/3}
 [data-recognition-record-detail] .record-invoice-row .record-fact-financial>time{grid-area:2/3}
}

/* Workbook statistics and bounded, source-addressed inspection. */
.excel-import-confirm-summary.is-statistics{display:flex;flex-wrap:wrap;align-items:start;gap:0 16px}
.is-statistics>.excel-import-count{flex:1;min-width:180px;min-height:44px;padding:0;background:transparent}
.is-statistics>.excel-import-warning{flex-basis:100%}
.is-statistics>.excel-import-allowance{max-width:100%}
.query-controls .upload-policy-options:has(>.upload-risk-options[inert]):not(:has(.upload-remember)){display:none}
.reimbursement-profile .org-empty{padding:24px 20px}
.reimbursement-profile .reimbursement-self{display:flex;align-items:center;gap:12px;padding:16px 0;margin-bottom:16px;border-bottom:1px solid var(--line);background:transparent;border-radius:0}.reimbursement-profile .reimbursement-avatar{width:32px;height:32px;margin:0;border:0;border-radius:3px;background:var(--soft);flex:none}.reimbursement-profile .reimbursement-self [data-rb-profile]{flex:1;margin:0;font-size:16px;line-height:24px;min-width:0}.reimbursement-profile .reimbursement-self .button{margin:0;flex:none}
.org-company-capacity{display:grid;gap:8px;min-width:180px;margin-right:auto}.org-company-capacity progress{width:100%;height:6px;accent-color:var(--blue)}.org-access{font-size:12px;color:var(--body)}.org-access>summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer}.org-access>div{padding-bottom:8px;overflow-wrap:anywhere}.org-access>summary:focus-visible,.rule-editor-toggle>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.rule-editor-toggle>summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer;color:var(--blue)}.rule-editor-toggle>summary small{margin-left:12px;color:var(--body)}.rule-editor-toggle .rule-editor{margin-top:16px}
.upload-stage-summary .excel-stage{min-height:0;padding:12px;border:0}.upload-stage-summary .excel-stage h3{font-size:14px}.upload-stage-summary .excel-stage p{margin:0;font-size:12px;line-height:20px}
.excel-stat-bar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-bottom:1px solid var(--line);margin:0}
.excel-stat-bar>button{appearance:none;text-align:left;border:0;border-bottom:3px solid transparent;background:transparent;padding:12px;color:var(--body);cursor:pointer;min-width:0;font:inherit;display:grid;align-content:start;gap:3px}
.excel-stat-bar>button[aria-selected="true"]{border-bottom-color:var(--blue);background:#ECF2FE;color:var(--ink)}
.excel-stat-bar.enterprise-preflight-stats strong{font-size:20px;line-height:32px;font-weight:500}
.excel-stat-bar.enterprise-preflight-stats .preflight-primary-stat strong{font-size:30px;font-weight:600;color:var(--blue)}
.enterprise-preflight-stats>button[aria-pressed="true"]{border-bottom-color:var(--blue);background:var(--soft);color:var(--ink)}
.excel-confirm .excel-plan-source{margin:0;color:var(--muted);font-size:13px;line-height:20px}
.excel-confirm .excel-plan-steps{margin:0;color:var(--body);font-size:14px;line-height:22px}
.excel-confirm .excel-zero-query{margin:0;color:var(--body);font-size:14px;line-height:24px}
#modal.workspace-dialog:has(.excel-confirm),#modal.workspace-dialog:has(.upload-result){height:fit-content;width:min(1040px,calc(100vw - 32px))}
#modal.workspace-dialog:has(.excel-confirm)>#modal-content,#modal.workspace-dialog:has(.upload-result)>#modal-content{height:auto;max-height:calc(100dvh - 32px)}
.enterprise-preflight-stats+.excel-inspection{margin-top:10px}
#modal.workspace-dialog:has(.excel-confirm) .modal-body,#modal.workspace-dialog:has(.upload-result) .modal-body{flex:0 1 auto}
#modal.workspace-dialog:has(.excel-confirm) .modal-foot,#modal.workspace-dialog:has(.upload-result) .modal-foot{height:auto;min-height:76px}
@media(max-width:600px){.excel-stat-bar.enterprise-preflight-stats>button{padding:12px 4px;font-size:11px}.enterprise-preflight-stats>button>span{white-space:nowrap;line-height:18px}.excel-stat-bar.enterprise-preflight-stats strong{font-size:14px;line-height:24px}.excel-stat-bar.enterprise-preflight-stats .preflight-primary-stat strong{font-size:20px;line-height:24px}.excel-stat-bar.enterprise-preflight-stats strong small{font-size:11px}.excel-plan-count>span{white-space:normal;flex-wrap:wrap}}
.excel-stat-bar>button:hover{background:#F7F9FC}.excel-stat-bar>button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.excel-stat-bar strong{font-size:26px;line-height:32px;font-variant-numeric:tabular-nums;color:var(--ink)}.excel-stat-bar strong small{font-size:13px;font-weight:400;color:var(--body)}
.excel-exclusion-filters{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.excel-exclusion-filters>.button{min-height:32px;padding:4px 10px;font-size:13px}
.excel-exclusion-filters>.button[aria-pressed="true"]{background:var(--soft);border-color:var(--blue);color:var(--ink)}
@media(max-width:760px){.excel-stat-bar{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}}
.excel-inspection{min-width:0}
.excel-reasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;min-height:0;margin:8px 0 12px;padding:0}
@media(max-width:600px){.excel-reasons{grid-template-columns:minmax(0,1fr)}}
.excel-inspection-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px 16px;margin:0 0 8px}
.excel-inspection-tools>.text-btn{flex:none;font-size:13px}
#modal.workspace-dialog .modal-foot:has(>.excel-preflight-footer){display:flex;flex-wrap:nowrap;height:auto;min-height:0;overflow:visible}
.excel-preflight-footer{display:flex;align-items:flex-end;gap:12px;width:100%;min-width:0}
.excel-preflight-company.field{display:grid;flex:1;max-width:480px;min-width:0;margin:0;gap:6px}
.excel-preflight-company>span{display:flex;justify-content:space-between;gap:8px}
.excel-preflight-company.field select{height:44px;margin:0;text-overflow:ellipsis}
.excel-preflight-count{align-self:center;color:var(--body);font-size:13px;white-space:nowrap}
.excel-preflight-count strong{color:var(--ink);font-variant-numeric:tabular-nums}
.excel-preflight-actions{display:flex;gap:8px;margin-left:auto}
.excel-preflight-actions>.button{height:44px}
@media(max-width:640px){
 .excel-preflight-footer{display:grid;gap:10px}
 .excel-preflight-actions{display:flex;margin:0}
 .excel-preflight-actions>.button{flex:1;min-width:0;white-space:nowrap;padding-inline:8px}
}
.excel-inspection-search{display:flex;align-items:center;flex:1;gap:8px;min-width:0;margin:0}
.excel-inspection-search input,.excel-inspection-search select{box-sizing:border-box;min-width:0;height:38px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);font:inherit;font-size:14px;padding:8px}
.excel-inspection-search input{flex:1}.excel-inspection-search .button{height:38px;min-height:0;white-space:nowrap}
.excel-inspection-table{min-width:0}.excel-inspection-table table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.excel-inspection-table th{text-align:left;background:#F7F9FC;color:var(--body);font-weight:500}.excel-inspection-table td,.excel-inspection-table th{padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.excel-inspection-table th:first-child{width:6em}.excel-inspection-table th:nth-child(2){width:52%}.excel-inspection-table td>span,.excel-inspection-table td>small{display:block;line-height:21px}.excel-inspection-table td>small{font-size:12px;color:var(--muted);margin-top:3px}.excel-inspection-pager{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;color:var(--body);margin-top:14px}.excel-inspection-pager>div{display:flex;gap:8px}
.excel-inspection-table .preflight-row-position{white-space:nowrap;color:var(--muted)}.excel-inspection-table .preflight-row-status{display:flex;align-items:baseline;gap:4px;color:var(--body);white-space:nowrap}.excel-inspection-table .preflight-row-status.is-valid{align-items:center;color:var(--green)}.preflight-row-status .icon{width:15px;height:15px;flex:none}.excel-inspection-table .preflight-row-reason{min-width:0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.excel-inspection-table .preflight-row-reason::before{content:"· "}
.preflight-invoice>summary{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:start;gap:6px;list-style:none;cursor:pointer;line-height:21px}.preflight-invoice>summary::-webkit-details-marker{display:none}.preflight-invoice>summary>.icon{width:14px;height:14px;margin-top:3px;transform:rotate(90deg)}.preflight-invoice[open]>summary>.icon{transform:rotate(-90deg)}.preflight-invoice>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.preflight-invoice-label{display:flex;align-items:baseline;gap:10px;min-width:0}.preflight-invoice-label strong{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preflight-invoice-label .invoice-number{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.preflight-invoice>dl{display:grid;grid-template-columns:5em minmax(0,1fr);gap:4px 8px;margin:8px 0 0;line-height:20px;font-size:12px}.preflight-invoice>dl dt{color:var(--muted)}.preflight-invoice>dl dd{margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.excel-stat-bar>button{padding:12px 6px;font-size:12px}.excel-stat-bar strong{font-size:23px}.excel-stat-bar strong small{font-size:11px}.excel-inspection-tools{flex-wrap:wrap}.excel-inspection-search{flex-basis:100%}.excel-inspection-table td,.excel-inspection-table th{padding:10px 6px;font-size:12px}.excel-inspection-table th:first-child{width:5em}.excel-inspection-table th:nth-child(2){width:44%}.preflight-invoice-label{align-items:stretch;flex-direction:column;gap:0}.preflight-invoice-label .invoice-number{max-width:100%}.preflight-invoice>dl{grid-template-columns:minmax(0,1fr);gap:0}.preflight-invoice>dl dd{margin-bottom:4px}.excel-inspection-pager{flex-wrap:wrap}.excel-inspection-pager .button{font-size:12px;padding:8px 12px}}

.invoice-action-history{list-style:none;margin:0;padding:0;container:operation-record / inline-size}.invoice-action-history>li{border-bottom:1px solid var(--line);padding:16px 0}.invoice-action-history summary.workbench-operation{display:flex;align-items:start;gap:12px;list-style:none;cursor:pointer;padding:0;border-bottom:0}.invoice-action-history summary::-webkit-details-marker{display:none}.invoice-action-history .record-operation-main{flex:1;min-width:0}.invoice-action-history .record-operation-icon{flex:none}.invoice-action-detail{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;margin:16px 0 0 32px;padding:16px;background:#F7F9FC;border-radius:6px;font-size:13px}.invoice-action-detail>.record-item-marker{margin-top:0}.invoice-action-detail>p{font-size:12px;margin:6px 0 12px}.invoice-history-audit{display:flex;align-items:start;gap:12px;font-size:13px}.invoice-history-audit .operation-action-top{grid-template-columns:minmax(0,1fr) auto}.invoice-action-history .invoice-history-audit .operation-action-top>time{grid-column:2;grid-row:1;justify-self:end}.invoice-action-history details[open] .operation-open-arrow{transform:rotate(180deg)}
@media(max-width:600px){.invoice-action-history .operation-action-top{grid-template-columns:minmax(0,1fr) auto}.invoice-action-history .operation-action-open{grid-column:2;grid-row:3}.invoice-action-history .operation-action-top>time{grid-column:1/3;grid-row:2;justify-self:start}.invoice-action-history .operation-action-actor{grid-column:1;grid-row:3}.invoice-action-detail{margin-left:0;padding:12px}.invoice-action-history .invoice-history-audit .operation-action-actor{white-space:normal;overflow:visible}}


.invoice-action-detail>div{grid-column:2}
.workbench-operation .home-operation-state{background:none;border:0;padding:0;font-size:13px;font-weight:400;gap:6px}.workbench-operation .home-operation-state>.icon{width:16px;height:16px}
/* Enterprise reports reuse the workbench controls and preserve the analysis behind the dialog. */
.enterprise-reports-dialog{width:min(1000px,calc(100vw - 32px));max-width:none;height:fit-content;max-height:calc(100dvh - 32px);padding:0;border-radius:12px}
.enterprise-reports-dialog[open]{display:flex;flex-direction:column}
.enterprise-reports-dialog .modal-head,.enterprise-reports-dialog .modal-foot{padding:18px 24px}
.enterprise-reports-dialog .modal-head h2{margin:0}
.enterprise-reports-dialog .eyebrow{margin:0 0 4px}
.enterprise-reports-body{flex:0 1 auto;padding:0 24px 24px;overflow:auto;min-height:0}
.enterprise-report-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px 0 10px}
.enterprise-report-batch-toolbar,.enterprise-report-batch-actions,.enterprise-report-format-options{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.enterprise-report-batch-toolbar{margin:10px 0 12px}
.enterprise-report-batch-toolbar input{flex:1;min-width:140px;max-width:320px}
.enterprise-report-batch-toolbar>span,.enterprise-report-archive small{font-size:12px;color:var(--muted)}
.enterprise-report-company-list{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:6px}
.enterprise-report-company{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.enterprise-report-company:last-child{border-bottom:0}
.enterprise-report-company:has(input:checked){background:var(--blue-soft,#ecf2fe)}
.enterprise-report-company input,.enterprise-report-format-options input{width:16px;height:16px;flex:none;accent-color:var(--blue)}
.enterprise-report-company>span{display:grid;gap:4px;min-width:0}
.enterprise-report-company strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
.enterprise-report-company small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.enterprise-report-batch-actions{margin:16px 0 22px}
.enterprise-report-batch-actions>[data-enterprise-report="batch-generate"]{margin-left:auto}
.enterprise-report-archive{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px}
.enterprise-report-archive>div:first-child{display:grid;gap:5px;margin-right:auto}
.enterprise-report-archive>div:first-child span{font-size:12px;color:var(--muted)}
.enterprise-report-format-options label{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.enterprise-report-archive>small{flex-basis:100%}
.enterprise-report-filters .field{flex:1 1 140px;min-width:120px;max-width:260px}
.enterprise-report-filters input,.enterprise-report-filters select{width:100%}
.enterprise-report-hint,.enterprise-report-status{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 8px}
.enterprise-report-status{min-height:22px;color:var(--ink);overflow-wrap:anywhere}
.enterprise-report-status:empty{display:none}
.enterprise-report-layout{display:block}
.enterprise-report-scope{border-bottom:1px solid var(--line)}
.enterprise-report-scope>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:12px 0;font-size:12px;color:var(--muted)}
.enterprise-report-scope>summary::-webkit-details-marker,.enterprise-reports-history>summary::-webkit-details-marker{display:none}
.enterprise-report-scope>summary strong{flex:1;min-width:0;font-size:13px;font-weight:500;color:var(--ink);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.enterprise-report-scope>summary>span:last-child{display:flex;align-items:center;gap:4px;color:var(--blue);white-space:nowrap}
.enterprise-report-scope>summary .icon,.enterprise-reports-history>summary .icon{width:14px;height:14px}
.enterprise-report-tools{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.enterprise-report-tool-actions{display:flex;gap:8px;flex:none}
.enterprise-reports-history{flex:1;max-width:540px;padding:0;border:0;margin:0;min-width:0}
.enterprise-reports-history>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font-size:12px}
.enterprise-reports-history>summary>span:first-child{color:var(--muted)}
.enterprise-reports-history>summary strong{flex:1;font-size:13px;font-weight:500;min-width:0}
.enterprise-reports-history>summary>span:last-child{display:flex;gap:4px;align-items:center;color:var(--blue)}
.enterprise-reports-history[open]{padding-bottom:12px}
.enterprise-reports-history .section-head{margin:0 0 10px;gap:8px}
.enterprise-reports-history h3{font-size:15px;margin:0}
.enterprise-reports-history-row{width:100%;display:grid;gap:5px;text-align:left;background:white;border:0;border-bottom:1px solid var(--line);padding:14px 10px;cursor:pointer;color:var(--ink);border-radius:3px}
.enterprise-reports-history-row[aria-pressed=true]{background:var(--blue-soft,#ecf2fe);box-shadow:inset 3px 0 var(--blue,#1975da)}
.enterprise-reports-history-row strong{font-size:14px;font-weight:600}
.enterprise-reports-history-row span,.enterprise-reports-history-row small{font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.enterprise-report-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;margin-top:16px}
.enterprise-report-pagination>span{width:100%;color:var(--muted)}
.enterprise-report-preview{min-width:0;padding-top:24px}
.enterprise-report-downloads{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.enterprise-report-downloads>span{margin-right:auto;font-size:13px;color:var(--muted)}
.enterprise-report-document>header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:0 0 20px;border:0}
.enterprise-report-document h2{font-size:17px;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}
.enterprise-report-document>header p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}
.enterprise-report-document>header .eyebrow{flex:none;font-size:12px;color:var(--muted)}
.enterprise-report-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.enterprise-report-file{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:24px 20px;border:1px solid var(--line);border-radius:3px;background:#fff}
.enterprise-report-file.is-brief{background:var(--blue-soft,#ecf2fe);border-color:transparent}
.enterprise-report-file-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--blue)}
.enterprise-report-file-heading .icon{width:32px;height:32px}
.enterprise-report-file-heading>span:last-child{font-size:12px;letter-spacing:.04em;color:var(--muted)}
.enterprise-report-file h3{font-size:22px;line-height:1.4;margin:24px 0 8px}
.enterprise-report-file p{font-size:13px;line-height:1.6;color:var(--body);margin:0 0 28px}
.enterprise-report-file .button{display:flex;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin-top:auto;white-space:normal;text-align:left}
.enterprise-report-file .button .icon{flex:none;width:17px;height:17px}
.enterprise-report-asof{font-size:12px;line-height:1.6;color:var(--muted);margin:14px 0 0}
.enterprise-report-share{display:flex;justify-content:flex-end;margin-top:12px}
.enterprise-report-document .enterprise-report-amount{color:#1975DA;font-variant-numeric:tabular-nums}
.enterprise-report-document .enterprise-report-amount-priority{color:#C35A0A}
.enterprise-report-document .note{background:none;border:0;padding:0}
.enterprise-report-document header>p{margin:5px 0;line-height:1.6}
.enterprise-report-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:24px;background:#ecf2fe;border-radius:3px;min-width:0}
.enterprise-report-metric-group{min-width:0;color:#1975DA}.enterprise-report-metric-priority{color:#C35A0A}
.enterprise-report-metric-group h3{font-size:13px;font-weight:500;margin:0 0 14px}
.enterprise-report-metric-pair{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:12px;min-width:0;font-size:20px;line-height:1.3;font-variant-numeric:tabular-nums}
.enterprise-report-metric-count{display:flex;align-items:baseline;gap:6px;min-width:0}.enterprise-report-metric-count .icon{width:16px;height:16px;align-self:center;color:inherit;flex:none}
.enterprise-report-metric-count strong{font-size:inherit;font-weight:600;line-height:inherit}.enterprise-report-metric-count small{font-size:12px;font-weight:400}
.enterprise-report-metric-money{min-width:0;text-align:right;overflow-wrap:anywhere}.enterprise-report-metric-money .enterprise-report-amount{font-weight:600}
.enterprise-report-metric-group .enterprise-report-metric-pair{font-size:28px}.enterprise-report-metric-priority .enterprise-report-metric-pair{font-size:32px}
.enterprise-report-section{margin:24px 0}
.enterprise-report-section h3{font-size:16px;margin:0 0 12px}
.enterprise-report-actions article{padding:12px 0;border-bottom:1px solid var(--line)}
.enterprise-report-actions article header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border:0;padding:0;font-size:13px}
.enterprise-report-actions article header span{color:var(--muted);font-size:12px}
.enterprise-report-actions h4{font-size:14px;margin:14px 0 6px}
.enterprise-report-actions p{line-height:1.8;font-size:13px;margin:4px 0;overflow-wrap:anywhere}
.enterprise-report-summary{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr);gap:36px;align-items:center;margin:20px 0}
.enterprise-report-composition .analysis-composition{width:100%;grid-template-columns:190px minmax(120px,1fr);gap:12px 24px}
.enterprise-report-composition .analysis-ring{width:190px;height:190px;padding:20px}
.enterprise-report-composition .analysis-ring strong{font-size:40px;line-height:1.1}
.enterprise-report-composition .analysis-composition>small{display:none}
.enterprise-report-coverage{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:12px;font-size:13px;margin:18px 0 26px}
.enterprise-report-coverage>progress{width:100%;height:8px;border:0;overflow:hidden;background:var(--line);border-radius:4px}
.enterprise-report-coverage>progress::-webkit-progress-bar{background:var(--line)}
.enterprise-report-coverage>progress::-webkit-progress-value{background:var(--blue)}
.enterprise-report-coverage>progress::-moz-progress-bar{background:var(--blue)}
.enterprise-report-coverage .note{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px}
.enterprise-report-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid var(--line)}
.enterprise-report-chart>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0;border:0;margin:0 0 14px}
.enterprise-report-chart>header h3{margin:0}
.enterprise-report-chart>header>span{font-size:12px;color:var(--muted);white-space:nowrap}
.enterprise-report-bars{display:grid;gap:18px}
.enterprise-report-risk-matrix{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px 18px}
.enterprise-report-risk-cell{padding:0 0 12px;border-bottom:1px solid var(--line);display:grid;align-content:start;gap:8px}
.enterprise-report-risk-cell>header{display:flex;align-items:start;justify-content:space-between;gap:8px;padding:0;border:0}
.enterprise-report-risk-cell h4{margin:0;font-size:13px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.enterprise-report-risk-cell>span{font-size:12px;color:var(--body)}
.enterprise-report-risk-cell .enterprise-report-metric-pair{gap:8px;color:var(--orange)}
.enterprise-report-risk-cell .enterprise-report-metric-count .icon{width:14px;height:14px}
.report-risk-level{font-size:11px;line-height:1.5;white-space:nowrap}
.enterprise-report-document .report-risk-level-urgent,.enterprise-report-document .report-risk-level-major{color:var(--red)}.enterprise-report-document .report-risk-level-concern{color:var(--orange)}.report-risk-level-general,.report-risk-level-note{color:var(--note)}.report-risk-level-none,.report-risk-level-normal{color:var(--green)}
.enterprise-report-cell-track{height:4px;background:var(--subtle);overflow:hidden;border-radius:2px}
.enterprise-report-cell-track>i{display:block;height:100%;background:var(--blue)}
.enterprise-report-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;align-items:center;font-size:13px}
.enterprise-report-bar>span:first-child{grid-column:1;grid-row:1;overflow-wrap:anywhere}
.enterprise-report-bar>.enterprise-report-metric-pair{grid-column:2;grid-row:1;font-size:14px;min-width:150px}
.enterprise-report-bar .analysis-rank-track{grid-column:1/-1;grid-row:2;height:7px}
.enterprise-report-time-scroll{overflow:auto;max-width:100%;padding:8px 0;overscroll-behavior-inline:contain}
.enterprise-report-columns{display:grid;grid-template-columns:repeat(var(--report-columns),minmax(74px,1fr));gap:16px}
.enterprise-report-columns>div{display:grid;gap:8px;justify-items:center;font-size:12px;text-align:center;min-width:0}
.enterprise-report-columns strong{font-size:14px;font-weight:600}
.enterprise-report-columns strong small{font-size:12px;font-weight:400;color:var(--muted)}
.enterprise-report-column-track{height:100px;width:100%;display:flex;align-items:end;justify-content:center;border-bottom:1px solid var(--line)}
.enterprise-report-column-track>i{display:block;width:min(60%,42px);background:var(--blue);border-radius:3px 3px 0 0}
.enterprise-report-columns>div>small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.enterprise-report-period-legend{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:14px;font-size:12px;color:var(--body)}
.enterprise-report-period-legend span{display:flex;align-items:center;gap:6px}
.enterprise-report-period-legend i{width:9px;height:9px;display:inline-block;border-radius:2px}
.report-series-total{background:#B9C8D8}.report-series-analyzed{background:var(--blue)}.report-series-priority{background:var(--orange)}
.enterprise-report-period-bars{height:132px;display:flex;align-items:end;justify-content:center;gap:9px;width:100%;border-bottom:1px solid var(--line);padding-top:18px}
.enterprise-report-period-bars>span{position:relative;height:100%;width:16px;display:flex;align-items:end;justify-content:center}
.enterprise-report-period-bars strong{position:absolute;bottom:calc(100% + 4px);font-size:12px;font-weight:400;color:var(--body)}
.enterprise-report-period-bars i{display:block;width:100%;min-width:12px;max-width:20px;border-radius:2px 2px 0 0}
.enterprise-report-document .table-wrap{overflow:auto;max-width:100%}
.enterprise-report-document .bulk-table{width:100%;min-width:0;font-size:13px}
.enterprise-report-document .bulk-table :is(th,td){white-space:normal;overflow-wrap:anywhere}
.enterprise-report-document .bulk-table :is(th,td):nth-last-child(-n+2){white-space:nowrap}
.enterprise-report-document .enterprise-report-invoices{min-width:700px}
.enterprise-report-document .bulk-table small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.enterprise-report-boundary{display:block;border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.enterprise-report-boundary p{margin:4px 0}
.enterprise-report-boundary summary{cursor:pointer;color:var(--ink)}
@media(max-width:760px){
 .enterprise-reports-dialog{width:calc(100vw - 16px);height:fit-content;max-height:calc(100dvh - 16px);margin:auto;border-radius:10px}
 .enterprise-reports-dialog .modal-head,.enterprise-reports-dialog .modal-foot{padding:14px 16px}
 .enterprise-reports-body{padding:0 16px 20px}
 .enterprise-report-layout{display:block}
 .enterprise-reports-history{border:0;padding:0}
 .enterprise-reports-history>summary{gap:6px;padding:8px;min-height:36px}
 .enterprise-reports-history>summary>span:first-child{display:none}
 .enterprise-reports-history>summary>span:last-child{font-size:11px}
 .enterprise-report-tools{gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:14px}
 .enterprise-report-tool-actions{gap:6px}
 .enterprise-report-tool-actions .button,.enterprise-report-downloads .button{font-size:12px;min-height:36px;padding:8px 10px}
 .enterprise-report-scope>summary{gap:8px}
 .enterprise-report-scope>summary>span:first-child{display:none}
 .enterprise-report-preview{padding-top:18px}
 .enterprise-report-document>header{gap:8px;padding-bottom:16px}
 .enterprise-report-document h2{font-size:15px}
 .enterprise-report-document>header p{font-size:12px}
 .enterprise-report-files{grid-template-columns:1fr;gap:10px}
 .enterprise-report-file{display:grid;grid-template-columns:24px minmax(0,1fr) 96px;gap:4px 10px;align-items:center;padding:18px 12px}
 .enterprise-report-file-heading{grid-column:1;grid-row:1/3}
 .enterprise-report-file-heading .icon{width:24px;height:28px}
 .enterprise-report-file-heading>span:last-child{display:none}
 .enterprise-report-file h3{grid-column:2;grid-row:1;font-size:16px;margin:0}
 .enterprise-report-file p{grid-column:2;grid-row:2;font-size:12px;margin:0}
 .enterprise-report-file .button{grid-column:3;grid-row:1/3;width:100%;min-height:44px;margin:0;padding:8px;font-size:12px}
 .enterprise-report-file .button .icon{display:none}
 .enterprise-report-overview{grid-template-columns:1fr;gap:22px;padding:16px}
 .enterprise-report-summary{grid-template-columns:minmax(0,1fr);gap:20px}
 .enterprise-report-metric-group h3{margin-bottom:10px}
 .enterprise-report-composition{padding:0 8px}
 .enterprise-report-composition .analysis-composition{grid-template-columns:174px minmax(0,1fr);gap:18px}
 .enterprise-report-composition .analysis-ring{width:174px;height:174px;padding:18px}
 .enterprise-report-chart-grid{grid-template-columns:minmax(0,1fr);gap:0}
 .enterprise-report-filters .field{max-width:none;flex-basis:calc(50% - 12px)}
 .enterprise-report-filters>.primary{width:100%}
}

.recognition-summary{position:relative;height:52px;line-height:26px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--body);text-align:left;font-weight:400;border-radius:8px;background:var(--soft);margin-bottom:12px}.recognition-summary-number{padding:0 2px;font-size:18px;font-weight:600;color:var(--blue);font-variant-numeric:tabular-nums}.recognition-transfer{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;visibility:hidden}.recognition-transfer.is-running{visibility:visible}.recognition-transfer>span{display:block;width:100%;height:100%;border-radius:inherit;background:var(--blue);opacity:.04}.recognition-transfer.is-running>span{animation:recognition-transfer-breathe 3s ease-in-out infinite alternate}@keyframes recognition-transfer-breathe{from{opacity:.015}to{opacity:.055}}@media(prefers-reduced-motion:reduce){.recognition-transfer.is-running>span{animation:none}}
.upload-workspace[data-recognition-upload] [data-recognition-review] .upload-files{border:0;border-radius:0}.upload-workspace[data-recognition-upload] .recognition-file{border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:76px;box-sizing:border-box}.recognition-file-content{flex:1;min-width:0;display:grid;grid-template-rows:24px 20px;gap:2px}.recognition-file-content .upload-file-preview{min-height:24px;padding:0;text-align:left;min-width:0}.recognition-file-content strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recognition-file-meta{display:flex;gap:12px;min-width:0;line-height:20px;font-size:12px;color:var(--muted)}.recognition-file-meta>.recognition-file-number{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recognition-file-meta .recognition-file-status{flex:none;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--body)}
@media(max-width:600px){.recognition-file-meta{gap:6px}.recognition-file-meta .recognition-file-status{max-width:65%}}

.upload-workspace[data-recognition-upload] .upload-files>.upload-file{display:flex;align-items:center;gap:12px;height:76px;min-height:76px;max-height:76px;box-sizing:border-box;padding:10px 12px;flex-wrap:nowrap}.upload-workspace[data-recognition-upload] .upload-files>.upload-file>span:first-child{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.upload-workspace[data-recognition-upload] .upload-files>.upload-file>span:first-child>.icon{flex:none}.upload-workspace[data-recognition-upload] .upload-files>.upload-file>.upload-row-state{flex:none;max-width:42%;width:auto}.recognition-file-content .upload-file-preview{display:block;width:100%;max-width:100%;height:24px;min-height:24px}.recognition-file-meta .recognition-file-status{display:inline-flex;align-items:center;gap:4px;max-width:65%;height:20px;min-width:0;overflow:hidden;white-space:nowrap}.recognition-file-status>*{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-workspace[data-recognition-upload] .recognition-file>.upload-row-state{flex:none;width:auto;max-width:42%;height:44px;display:flex;align-items:center;margin:0}.upload-workspace[data-recognition-upload] .recognition-file .upload-row-action{display:flex;align-items:center;flex-wrap:nowrap;height:44px;min-height:44px;gap:6px}.upload-workspace[data-recognition-upload] .recognition-file .upload-row-action>.text-btn{min-height:44px;max-width:100%;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-workspace[data-recognition-upload] .upload-files-stable .upload-file-preview{display:grid;grid-template-rows:24px 20px;gap:2px;min-width:0}.upload-files-stable .upload-file-preview>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-files-stable .upload-file-preview>small{display:block;font-size:12px;line-height:20px;color:var(--muted)}

.upload-workspace[data-recognition-upload] .recognition-file-meta .recognition-file-status:only-child{max-width:100%}
[data-recognition-upload] .recognition-file-status>.invoice-score-badge{width:auto;flex:none;padding-inline:0}
[data-recognition-upload] .recognition-file-status>:is(.badge,.risk-level){flex:none;min-width:max-content;padding-inline:0;gap:4px}
.upload-workspace[data-recognition-upload] [data-recognition-review] .upload-selection-head>strong{line-height:22px}
.recognition-check-progress{height:44px;min-height:44px;max-height:44px;line-height:22px;overflow:hidden;margin:8px 0}
.upload-workspace[data-recognition-upload] :is([data-recognition-message],#api-upload-state,[data-import-progress]){height:44px;min-height:44px;max-height:44px;line-height:22px;margin:8px 0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}

.upload-workspace[data-recognition-upload] .upload-files-stable>.upload-file>span:first-child{padding-right:0;flex-wrap:nowrap;width:auto;align-self:center;height:46px;min-height:46px}.upload-workspace[data-recognition-upload] .upload-files-stable .upload-file-preview{flex:1;height:46px;min-height:46px}.upload-workspace[data-recognition-upload] .upload-files-stable .upload-file-preview>small{display:block}.upload-workspace[data-recognition-upload] .upload-files-stable>.upload-file>.upload-row-state{display:flex;align-items:center;height:44px;min-height:44px;margin:0}

.upload-workspace[data-recognition-upload] .recognition-file-content .upload-file-preview{display:flex;gap:8px}.recognition-file-content .upload-file-preview>strong{flex:1;min-width:0}.recognition-file-amount{flex:none;white-space:nowrap;color:var(--text)}
