:root {
  --ui-font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --ui-text: #203345;
  --brand-bg: white;
  --nav-bg: #eef5fd;
  --nav-text: #384e61;
  --nav-muted: #536b7c;
  --nav-border: #d5e1ec;
  --nav-hover: #e2edf7;
  --nav-selected: #d9eaff;
  --nav-accent: #176772;
  --nav-heading-font: 600 15px var(--ui-font);
  --nav-link-font: 400 14px var(--ui-font);
  font-family: var(--ui-font);
  font-size: 13px;
  color: var(--ui-text);
  background: #f6f8fb;
  --cyan: #4bc5c7;
  --cyan-dark: #20b5ba;
  --side: #424255;
  --line: #d8dce3;
  --muted: #88939f;
  --orange: #ff861c;
  --purple: #6548df;
  --green: #7cc737;
  --red: #ed6668;
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:#168d9a;text-decoration:none}a:hover{text-decoration:underline}button{color:inherit}svg{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.topbar{height:54px;background:white;display:flex;align-items:stretch;border-bottom:1px solid #d7dce2;box-shadow:0 2px 3px #26324912;position:sticky;top:0;z-index:20}
.brand { display: flex; align-items: center; flex: 0 1 244px; min-width: 0; padding: 0 12px; border: 0; background: var(--brand-bg); }
.brand img { display: block; width: 100%; height: auto; }
.brand:focus-visible { outline: 2px solid var(--cyan-dark); outline-offset: -2px; }
@media (max-width: 440px) {
  .brand { padding-inline: 8px 4px; }
  .topbar .top-actions { gap: 4px; padding-right: 8px; }
}
.top-actions{margin-left:auto;flex-shrink:0;display:flex;align-items:center;gap:12px;padding-right:15px;white-space:nowrap}.user-avatar{width:32px;height:32px;border:0;border-radius:50%;background:#d9f6f6;color:#22b9bd;display:grid;place-items:center}.user-label{max-width:100px;overflow:hidden;text-overflow:ellipsis}.text-btn,.link-btn{border:0;background:none;padding:0;color:#17617d}.link-btn:hover{text-decoration:underline}.text-btn.danger,.danger{color:#d84e57}.layout{display:flex;min-height:calc(100vh - 54px)}.sidebar{width:82px;flex:0 0 82px;background:var(--side);padding:8px 6px;display:flex;flex-direction:column;gap:4px;position:sticky;top:54px;height:calc(100vh - 54px);color:white}.side-item{min-height:73px;padding:10px 1px 6px;border:0;border-radius:13px;background:none;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font-size:12px;line-height:1.35}.side-item svg{width:24px;height:24px}.side-item.active{background:#292b3b;box-shadow:0 5px 12px #34d5d52a}.side-item:hover{background:#343647}.side-bottom{margin-top:auto;display:grid;gap:18px;justify-content:center;padding-bottom:14px}.side-bottom button{color:white}.workspace{flex:1;min-width:0;padding:15px 12px 25px}.workspace.book-workspace{padding-top:12px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.page-head h1{font-size:17px;margin:0;font-weight:600}.page-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.actions,.inline,.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar{justify-content:space-between;background:#fff;border:1px solid #dce4ed;border-radius:7px;padding:12px 14px;margin-bottom:12px;min-height:59px;box-shadow:0 1px 2px #132c4b0b}.filter-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filter-group input,.filter-group select{height:31px}.period-switch{display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap}.period-switch strong{font-size:15px;color:#152b3b}.round-btn{width:22px;height:22px;border:0;border-radius:50%;background:#e0fafb;color:var(--cyan);font-size:20px;line-height:20px}.period-switch input{max-width:130px;border:0;background:transparent;font-weight:bold;color:#183445}.btn{min-height:30px;border:1px solid #d6dce2;border-radius:3px;background:#fff;padding:5px 12px;display:inline-flex;gap:5px;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;line-height:1.35}.btn:hover{border-color:var(--cyan);color:#119b9d;text-decoration:none}.btn-primary{background:var(--cyan);border-color:var(--cyan);color:white}.btn-primary:hover{background:var(--cyan-dark);color:#fff}.btn-orange{background:#ff8c32;border-color:#ff8c32;color:white}.btn-danger{color:#d84e57;border-color:#f0c5ca}.btn-small{padding:3px 7px;min-height:25px;font-size:12px}.btn svg{width:15px;height:15px}.ai-tools{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}.ai-tools button{border:1px solid #e4eaf0;border-radius:23px;background:white;padding:9px 15px;box-shadow:0 2px 3px #253a5610;font-size:12px;font-weight:600}.ai-tools button:first-child{background:#e8ffff;border-color:var(--cyan);color:var(--cyan-dark)}.ai-tools svg{width:15px;height:15px;color:#7960f4;margin-right:5px}.ai-tools .more-skill{border:0;background:transparent;box-shadow:none;color:#fb8b37}.notice{border:1px solid #bfe9eb;background:#effcfc;color:#468087;padding:9px 12px;border-radius:5px;font-size:12px;line-height:1.6;margin:0 0 12px}.notice.warn{background:#fff9ed;border-color:#f5dfaa;color:#947128}.notice.error{background:#fff2f2;border-color:#efc8ca;color:#b1474f}.notice a{font-weight:600}.progress-cards{display:grid;grid-template-columns:repeat(5,minmax(205px,1fr));gap:10px;margin-bottom:13px;overflow-x:auto;padding-bottom:2px}.progress-card{background:white;border:1px solid #dce5ef;border-radius:8px;padding:12px 11px;box-shadow:0 2px 2px #29456815;min-height:163px}.progress-title{font-size:12px;color:#70b8bd;font-weight:600;background:#eaffff;display:inline;padding:4px;border-radius:4px}.progress-title small{color:#91a8bc;font-weight:400}.card-main{display:flex;align-items:center;gap:10px;margin:11px 0}.donut{width:79px;height:79px;border-radius:50%;background:conic-gradient(var(--orange) 0 var(--a),var(--purple) var(--a) var(--b),var(--green) var(--b) 360deg);position:relative;flex:0 0 79px;display:grid;place-items:center}.donut:after{content:"";position:absolute;inset:8px;background:#fff;border-radius:50%}.donut strong{position:relative;z-index:1;font-size:21px;color:#555}.card-status{flex:1;min-width:0;display:grid;gap:3px}.card-status button{display:flex;justify-content:space-between;align-items:center;gap:6px;background:#fff4e9;color:#f88428;border:0;border-radius:14px;padding:2px 8px;font-size:12px;white-space:nowrap}.card-status button:nth-child(2){background:#f4f1fd;color:#7458e4}.card-status button:nth-child(3){background:#f2f9ed;color:#7eb94e}.card-status b{text-decoration:underline;color:#314456}.progress-track{display:flex;align-items:center;gap:8px;font-size:11px}.progress-track>span{height:7px;flex:1;border-radius:5px;background:#eee;overflow:hidden}.progress-track i{height:100%;display:block;background:var(--green)}.panel{background:#fff;border:1px solid #dce4ed;border-radius:7px;padding:12px;margin-bottom:12px;box-shadow:0 1px 2px #132c4b08}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.panel-title h2{font-size:14px;margin:0;font-weight:600}.searchbar{display:flex;gap:10px;align-items:center;margin-bottom:10px}.search-field{display:flex;flex:1;min-width:160px}.search-field input{border-radius:3px 0 0 3px;flex:1;min-width:100px}.search-field button{border:1px solid var(--line);border-left:0;border-radius:0 3px 3px 0;width:32px;background:#fff}.search-field svg{width:15px;height:15px}.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-bottom:0}.table-wrap.scroll-table{max-height:calc(100vh - 460px);min-height:180px}table{width:100%;border-collapse:collapse;white-space:nowrap;background:#fff;font-size:12px}th{background:var(--cyan);color:#fff;font-weight:600;height:39px;padding:7px 10px;border-right:1px solid #a0dfe0;text-align:center}td{height:37px;padding:6px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center}th:last-child,td:last-child{border-right:0}tbody tr:hover td{background:#f0fbfb}td.left,th.left{text-align:left}td.wrap{white-space:normal;min-width:160px;max-width:320px;line-height:1.55}.row-actions{display:inline-flex;gap:14px;align-items:center}.row-actions .link-btn{font-size:12px}.status{display:inline-flex;align-items:center;gap:4px;font-size:12px;border-radius:10px;padding:2px 7px;background:#f2f5f8;color:#7d8c9a;white-space:nowrap}.status.good{background:#f0f9e9;color:#6aaf38}.status.warn{background:#fff4e7;color:#da872e}.status.bad{background:#fff0f0;color:#d75b63}.status.info{background:#f0edff;color:#7958d7}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-variant-numeric:tabular-nums;font-family:Consolas,"Microsoft YaHei",monospace}.money{text-align:right;font-variant-numeric:tabular-nums}.tax-badge{display:inline-block;margin-right:5px;padding:1px 3px;background:#fff2e4;color:#f18d38;font-size:10px}.tax-badge.general{background:#e9ffff;color:#45bfc5}.tag{display:inline-block;margin:1px 3px 1px 0;padding:1px 6px;border-radius:3px;background:#eaf7f7;color:#338e92;font-size:11px}.empty-state{text-align:center;padding:40px 20px;color:#9aa7b2;white-space:normal}.empty-state svg{width:43px;height:43px;color:#b5d8db;margin-bottom:10px}.empty-state p{margin:0 0 12px}.table-foot{display:flex;justify-content:space-between;align-items:center;padding-top:10px;font-size:12px;color:#8c98a4}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin-bottom:12px}.stat-box{background:#fff;border:1px solid #dce5ee;border-radius:7px;padding:17px}.stat-box label{color:#81909c;font-size:12px}.stat-box strong{display:block;margin-top:9px;font-size:25px;line-height:1.4;color:#29adb2}.stat-box small{display:block;margin-top:5px;color:#9ba7af}.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.data-bars{display:grid;gap:14px}.bar-row{display:grid;grid-template-columns:110px 1fr 70px;align-items:center;gap:10px;font-size:12px}.bar-row span{height:12px;background:#eef3f6;border-radius:6px;overflow:hidden}.bar-row i{display:block;height:100%;background:var(--cyan);border-radius:6px}.bar-row b{text-align:right;font-weight:500}.trend-chart{display:flex;align-items:flex-end;gap:12px;height:190px;padding:14px 12px 25px;border-bottom:1px solid #e5eaf0}.trend-month{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px;position:relative}.trend-month i{width:24%;min-width:6px;background:var(--cyan);border-radius:3px 3px 0 0}.trend-month i.received{background:#f8a059}.trend-month label{position:absolute;bottom:-20px;font-size:10px;color:#8c9ba5}.legend{display:flex;gap:15px;justify-content:center;margin-top:12px;font-size:12px;color:#7c8e9a}.legend i{display:inline-block;width:9px;height:9px;background:var(--cyan);margin-right:4px}.legend .orange{background:#f8a059}.section-tabs{display:flex;gap:2px;border-bottom:1px solid #dce3e9;margin-bottom:12px;flex-wrap:wrap}.section-tabs button{border:0;background:transparent;padding:9px 17px;border-bottom:2px solid transparent}.section-tabs button.active{color:#21afb5;border-bottom-color:var(--cyan)}input,select,textarea{border:1px solid var(--line);border-radius:3px;background:#fff;color:#3d5261;padding:6px 9px;max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--cyan);outline:1px solid #b1eeee}input[type=checkbox]{accent-color:var(--cyan);width:14px;height:14px;vertical-align:middle}textarea{min-height:75px;resize:vertical;line-height:1.6}input[type=file]{font-size:12px;padding:5px}.full-width{width:100%}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>label{font-size:12px;color:#6c7d89}.field input,.field select,.field textarea{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.wide{grid-column:1/-1}.check-label{display:flex;align-items:center;gap:6px}.check-label input{width:15px}.modal-backdrop{position:fixed;inset:0;background:#1e293b50;display:flex;align-items:center;justify-content:center;padding:25px;z-index:100}.modal{background:white;border-radius:9px;box-shadow:0 15px 65px #102d493b;width:650px;max-width:95vw;max-height:92vh;display:flex;flex-direction:column}.modal.wide-modal{width:1050px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e3e8ee}.modal-header h2{margin:0;font-size:16px;font-weight:600}.modal-header button{border:0;background:transparent;color:#8b98a3;font-size:25px;line-height:20px}.modal-body{padding:18px 20px;overflow:auto;max-height:calc(92vh - 125px)}.modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;border-top:1px solid #e3e8ee;background:#fbfcfd;border-radius:0 0 9px 9px}.modal-error{margin:0 20px 12px;background:#fff2f2;color:#bd4f58;border:1px solid #edc6ca;border-radius:4px;padding:9px 11px;font-size:12px;white-space:pre-wrap}.modal-error:empty{display:none}#toast-region{position:fixed;top:70px;right:22px;z-index:200;display:grid;gap:8px;max-width:450px}.toast{padding:11px 16px;border:1px solid #bde6dc;background:#f0fffa;color:#2c967c;border-radius:5px;box-shadow:0 3px 14px #25465c20;font-size:12px;line-height:1.6}.toast.error{background:#fff2f2;border-color:#f0c6cb;color:#bb505a}.auth-screen{min-height:100vh;background:linear-gradient(125deg,#e1f5f6,#f6f9fc 60%,#e8effb);display:grid;place-items:center;padding:24px}.auth-card{width:430px;max-width:100%;background:#fff;border:1px solid #d9e9ee;border-radius:12px;padding:30px;box-shadow:0 12px 40px #2b577416}.auth-card.setup-card{width:760px}.auth-brand{display:flex;align-items:center;gap:12px;color:#28b7bc;margin-bottom:22px}.auth-brand svg{width:38px;height:38px}.auth-brand h1{font-size:22px;margin:0}.auth-brand p{margin:4px 0 0;color:#92a3af;font-size:12px}.auth-form{display:grid;gap:17px}.auth-form button[type=submit]{height:38px}.auth-error{color:#c9555e;font-size:12px;line-height:1.6;white-space:pre-wrap}.auth-foot{margin-top:20px;color:#99a8b2;font-size:11px;text-align:center;line-height:1.6}.setup-user{background:#f7fbfc;border:1px solid #e0edef;border-radius:5px;padding:13px}.setup-user h3{margin:0 0 10px;font-size:13px}.boot-screen{display:flex;gap:12px;align-items:center;justify-content:center;min-height:100vh;color:#7c939f}.loading-dot{width:17px;height:17px;border:2px solid #b9e8e9;border-top-color:#2fbabf;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-content{padding:70px;text-align:center;color:#90a2af}.loading-content .loading-dot{display:inline-block;margin-right:8px}.help-list{display:grid;gap:10px}.help-article{border:1px solid #e0e7ed;border-radius:5px;padding:14px}.help-article h3{font-size:14px;color:#388d95;margin:0 0 8px}.help-article p{margin:0;color:#71838f;line-height:1.8;white-space:pre-wrap}.project-steps{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:500px}.step{display:inline-flex;align-items:center;gap:4px;border:1px solid #d7e5e8;border-radius:14px;background:#f7fafb;padding:3px 8px;font-size:11px}.step.done{border-color:#cde6b9;background:#f1faea;color:#78a94f}.matrix-table td{min-width:74px;padding:4px}.matrix-cell{display:block;border:0;border-radius:3px;background:#f2f5f8;color:#94a4ae;width:100%;font-size:11px;padding:8px 2px}.matrix-cell.closed{background:#edf8e6;color:#6ba442}.matrix-cell.started{background:#e8f7f8;color:#27a7af}.check-summary{display:flex;align-items:center;gap:10px;margin-bottom:12px}.rule-card{border:1px solid #e2e9ef;padding:13px;border-radius:5px;margin-bottom:8px}.rule-card h3{font-size:13px;margin:0 0 5px}.rule-card p{font-size:12px;color:#8c9ba6;margin:0;line-height:1.6}.book-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.book-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px}.book-tabs button{padding:8px 14px;border:1px solid #d9e4e8;background:white;border-radius:4px}.book-tabs button.active{background:#e8fbfb;border-color:var(--cyan);color:#1c9ca4}.book-toolbar{display:flex;gap:8px;align-items:center;margin:10px 0;flex-wrap:wrap}.number-cell{text-align:right}.negative{color:#d95e63}.positive{color:#4aaf84}.page-error{padding:25px;background:#fff2f2;color:#b3535c;border:1px solid #e7c6cb;white-space:pre-wrap}.print-only{display:none}@media(min-width:1700px){.workspace{padding-left:12px;padding-right:20px}}@media(max-width:1380px){.top-actions{gap:8px}.user-label{display:none}.progress-cards{grid-template-columns:repeat(5,230px)}.workspace{padding:12px 10px}.ai-tools{justify-content:flex-start}.ai-tools button{padding:8px 10px}.stat-grid{gap:8px}.stat-box{padding:13px}}@media(max-width:800px){.workspace{min-width:710px}.sidebar{position:static}.split-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.modal-backdrop{padding:10px}.modal{max-width:100%;max-height:95vh}.stat-grid{grid-template-columns:repeat(2,1fr)}}@media print{body{background:#fff}.topbar,.sidebar,.actions,.toolbar,.ai-tools,.notice,.book-tabs,.book-toolbar,.book-top>.btn,.row-actions,.no-print,#toast-region,#modal-root{display:none!important}.workspace{padding:0!important}.layout{display:block}.panel{box-shadow:none;border:0;padding:0}.table-wrap{overflow:visible;max-height:none!important}table{font-size:10px;white-space:normal}th{background:#e8f3f3!important;color:#222!important;print-color-adjust:exact}td{height:auto;padding:5px}.print-only{display:block}.page-head h1{font-size:18px}.progress-cards{overflow:visible}.modal-backdrop{position:static;background:transparent}.modal{box-shadow:none;max-height:none;width:100%}}

@media print{body.printing-modal #app{display:none!important}body.printing-modal #modal-root{display:block!important}body.printing-modal .modal-backdrop{display:block!important;position:static;padding:0;background:white}body.printing-modal .modal{width:100%;max-width:none;max-height:none;box-shadow:none;border:0}body.printing-modal .modal-body{max-height:none;overflow:visible;padding:0}body.printing-modal .modal-header,body.printing-modal .modal-footer,body.printing-modal .modal-body>.btn{display:none!important}}

.risk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.risk-card{border:0;border-radius:5px;padding:20px;text-align:left;color:#fff;display:grid;grid-template-columns:85px 1fr;gap:5px 12px;background:#f5ab56;min-height:120px}.risk-card strong{font-size:43px;grid-row:1/3;align-self:center;text-align:center;font-weight:400}.risk-card span{font-size:18px;align-self:end}.risk-card small{font-size:11px;opacity:.9;line-height:1.6;white-space:normal}.risk-card.purple{background:#a28ae7}.risk-card.red{background:#f48386}.detection-grid{display:grid;grid-template-columns:38% 62%;min-height:300px;align-items:center}.detection-donut{display:flex;align-items:center;justify-content:center;gap:40px}.detection-donut .donut{width:180px;height:180px;flex-basis:180px}.detection-donut .donut:after{inset:24px}.detection-donut .donut strong{font-size:35px}.legend.vertical{display:grid;justify-content:start;gap:18px;margin:0}.legend .legend-0{background:var(--orange)}.legend .legend-1{background:var(--purple)}.legend .legend-2{background:var(--green)}.stack-chart{height:250px;display:flex;align-items:flex-end;justify-content:space-evenly;gap:30px;border-bottom:1px solid #dbe3ea;margin:0 30px 30px;padding-top:10px}.stack-column{height:100%;width:55px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}.stack-bar{height:100%;width:45px;display:flex;flex-direction:column-reverse;justify-content:flex-start}.stack-bar i{display:block;min-height:0}.stack-0{background:var(--orange)}.stack-1{background:var(--purple)}.stack-2{background:var(--green)}.stack-column label{position:absolute;bottom:-23px;font-size:11px;white-space:nowrap}.stack-column small{position:absolute;bottom:-39px;color:#90a0ac;font-size:10px}.employee-chart{padding-bottom:20px}.upload-zone{border:1px dashed #9cdadd;border-radius:6px;padding:35px;text-align:center;background:#f6fdfd}.upload-zone>svg{width:45px;height:45px;color:#59c7cc}.upload-zone h2{font-size:18px;color:#52979e;font-weight:500}.table-foot select{padding:3px 4px;font-size:11px;height:25px}@media(max-width:1400px){.detection-donut{gap:20px}.detection-donut .donut{width:140px;height:140px;flex-basis:140px}.risk-card{padding:15px;grid-template-columns:65px 1fr}.risk-card strong{font-size:35px}}

@media print{.table-foot{display:none!important}}

.company-selection-toolbar{display:flex;align-items:center;gap:17px;flex-wrap:wrap;padding:9px 12px;margin-bottom:8px;border:1px solid #cdebee;background:#f1fcfc;border-radius:4px;color:#5c7a84;font-size:12px;min-height:38px}.company-selection-toolbar strong{font-size:14px;color:#1eabad;font-variant-numeric:tabular-nums}.company-selection-toolbar .link-btn{color:#159ea5;font-size:12px}.company-selection-toolbar button:disabled{color:#a6b5bd;opacity:1;cursor:default;text-decoration:none}.company-selection-toolbar small{margin-left:auto;color:#99aab2;font-size:11px}.company-select-page{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;cursor:pointer;font-size:11px}.company-select-page input{margin:0;accent-color:#21aeb5;width:14px;height:14px}.batch-confirm-list{margin:12px 0 0;padding-left:26px;font-size:12px;line-height:1.8}.batch-confirm-list li{padding:4px 8px;border-bottom:1px solid #edf1f4}.batch-confirm-list small{color:#92a2ad;margin-left:15px}@media print{.company-selection-toolbar{display:none!important}.company-select-page input,[data-company-select]{display:none!important}}

.company-selection-toolbar .btn-danger{margin-left:1px;background:#fff8f8}.company-selection-toolbar [data-action=selection-remove]:disabled{opacity:.5;color:#ae8f93}.company-selection-toolbar .btn{font-size:11px}.batch-confirm-list li{overflow-wrap:anywhere}.table-shell input[data-entity-select]:disabled{opacity:.35;cursor:not-allowed}@media print{.table-shell input[data-entity-select]{display:none!important}}
/* The supplied desktop references use the same compact navigation rhythm. */
.layout:has(>.ticket-list-workspace)>.sidebar,.layout:has(>.bookkeeping-list-workspace)>.sidebar{padding-top:7px;gap:4px}
.layout:has(>.ticket-list-workspace)>.sidebar>.side-item,.layout:has(>.bookkeeping-list-workspace)>.sidebar>.side-item{height:70px;min-height:70px;flex-shrink:0}
.book-print-company{margin:16px 0 24px}.book-print-company h3{font-size:14px}.book-print-pack .table-wrap{max-height:none;overflow:visible}.book-print-pack table{width:100%;border-collapse:collapse;font-size:12px}.book-print-pack th,.book-print-pack td{border:1px solid #d8dce0;padding:7px 8px;vertical-align:top}.book-print-pack th{background:#eafafa}@media print{.book-print-company{break-after:page}.book-print-company:last-child{break-after:auto}.book-print-company h3{break-after:avoid}.book-print-pack tr{break-inside:avoid}}
.sidebar.tax-sidebar{padding-top:7px;gap:4px}.sidebar.tax-sidebar>.side-item{height:70px;min-height:70px;flex-shrink:0}
/* Data text stays black on light surfaces. Teal headers and status chips keep their own colors. */
.workspace td,.workspace .muted,.workspace .table-foot,.workspace .table-foot small{color:#000}
.workspace thead th{color:#fff}
.workspace .status{color:#7d8c9a}
.workspace .status.good{color:#6aaf38}
.workspace .status.warn{color:#da872e}
.workspace .status.bad{color:#d75b63}
.workspace .status.info{color:#7958d7}

/* Home search opens any company without depending on the progress table filters. */
.company-search-field{position:relative}
.company-search-results{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:30;background:#fff;border:1px solid #c9e3e6;border-radius:6px;box-shadow:0 8px 24px #203a5226;overflow:hidden}
.company-search-results[hidden]{display:none}
.company-search-summary{padding:10px 12px;background:#f1fbfb;border-bottom:1px solid #e0eeee;color:#3c626d;font-size:12px;line-height:1.6}
.company-search-options{max-height:340px;overflow-y:auto;overscroll-behavior:contain}
.company-search-field .company-search-option{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:11px 14px;text-align:left;border:0;border-bottom:1px solid #edf2f4;border-radius:0;background:#fff;color:#17617d;white-space:normal;overflow-wrap:anywhere}
.company-search-option:last-child{border-bottom:0}
.company-search-option strong{font-size:14px;font-weight:500;line-height:1.5}
.company-search-option small{font-size:12px;color:#647b86;line-height:1.5}
.company-search-field .company-search-option:hover,.company-search-field .company-search-option:focus-visible,.company-search-field .company-search-option[aria-selected=true]{background:#eafafa;outline:0}
.company-search-field .company-search-option:disabled{color:#87979e;background:#f7f9fa;cursor:not-allowed}
@media print{.company-search-results{display:none!important}}

/* Work progress: clickable status and scoped record details. */
.progress-status-button{border:1px solid transparent;font:inherit;font-size:12px;cursor:pointer}.progress-status-button:hover,.progress-status-button:focus-visible{border-color:var(--cyan);text-decoration:underline}.progress-details-actions{margin-bottom:12px}.progress-details-table{max-height:45vh}.progress-details-table thead th{position:sticky;top:0}.progress-details-table td{max-width:230px;white-space:normal;overflow-wrap:anywhere}

/* Contract reminders keep their own colors after the workspace's black text rule. */
.agency-expiry{display:inline-flex;flex-direction:column;align-items:center;gap:4px;border:1px solid transparent;border-radius:5px;background:#f2f5f8;color:#17617d;padding:5px 9px;line-height:1.5;font:inherit}
.agency-expiry small{font-size:11px;color:inherit}
.agency-expiry:hover,.agency-expiry:focus-visible{border-color:var(--cyan);text-decoration:underline}
.workspace .agency-expiry-due{color:#bc8d00;background:#fff8d6;font-weight:600}
.workspace .agency-expiry-overdue{color:#c24c4c;background:#fff0f0}
.workspace .agency-expiry-terminated{color:#687887;background:#f2f5f8}
.agency-expiry-help strong{display:block;margin-top:4px}
.contract-month-input{display:flex;gap:7px;align-items:stretch}
.contract-month-input input{flex:1;min-width:0}
.contract-month-input input:disabled{background:#f2f4f6;color:#71808c;cursor:not-allowed}
.contract-month-picker{padding:10px;border:1px solid #c9e3e6;border-radius:5px;background:#f7fdfd}
.contract-month-picker[hidden]{display:none}
.contract-month-picker>label{display:flex;align-items:center;gap:8px}
.contract-month-picker select{width:auto;flex:1}
.contract-month-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:9px}
.contract-month-grid [aria-pressed=true]{background:var(--cyan);border-color:var(--cyan);color:#fff}
.workspace-update-notice{position:fixed;right:1rem;bottom:1rem;z-index:10000;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;max-width:calc(100vw - 2rem);padding:.75rem 1rem;background:#fff;border:1px solid #aacdce;border-radius:6px;box-shadow:0 3px 16px #153f4226}
