:root{--bg:#f0f2f5;--surface:#fff;--surface-2:#f6f7f9;--surface-3:#eceff3;--border:#d8dce2;--border-strong:#b9c0c9;--text:#1a1e23;--muted:#59626e;--accent:#1b5aa3;--accent-hover:#164a87;--accent-soft:#e6eef8;--green:#1d7444;--green-bg:#e3f2e9;--amber:#875a00;--amber-bg:#fcf1d8;--red:#b3261e;--red-bg:#fbe9e7;--blue:#1b5aa3;--blue-bg:#e6eef8;--gray:#4a525d;--gray-bg:#eceef1;--chart-1:#1b5aa3;--chart-2:#9aa6b4;--chart-3:#c47f17;--radius:8px;--sidebar:248px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:Segoe UI,system-ui,-apple-system,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.45}*,:before,:after{box-sizing:border-box}body{background:var(--bg);margin:0}h1,h2,h3,p{margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.num,td,.stat-value{font-variant-numeric:tabular-nums}.skip-link{z-index:100;background:var(--surface);border-radius:var(--radius);padding:8px 12px;position:absolute;top:8px;left:-9999px}.skip-link:focus{left:8px}.app{grid-template-columns:var(--sidebar) 1fr;min-height:100dvh;display:grid}.sidebar{background:var(--surface);flex-direction:column;height:100dvh;display:flex;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:10px;padding:18px 18px 10px;display:flex}.brand-mark{border-radius:var(--radius);background:var(--accent);color:#fff;place-items:center;width:34px;height:34px;font-size:17px;font-weight:800;display:grid}.brand-name{font-size:15px;font-weight:700}.brand-sub{color:var(--muted);font-size:12px}.nav-group{padding:14px 12px 2px}.nav-title{color:var(--muted);padding:0 10px 6px;font-size:12px;font-weight:600}.nav-link{border-radius:var(--radius);color:var(--text);align-items:center;gap:10px;padding:8px 10px;font-weight:500;display:flex}.nav-link:hover{background:var(--surface-2);text-decoration:none}.nav-link svg{color:var(--muted);display:block}.nav-link.active{background:var(--accent);color:#fff;font-weight:600}.nav-link.active svg{color:#fff}.nav-badge{color:#fff;text-align:center;background:#e5484d;border-radius:6px;min-width:22px;margin-left:auto;padding:1px 6px;font-size:12px;font-weight:700}.nav-link.active .nav-badge{color:var(--accent);background:#fff}.sidebar-foot{color:var(--muted);margin-top:auto;padding:14px 18px;font-size:12px}.main-col{flex-direction:column;min-width:0;display:flex}.topbar{background:var(--surface);z-index:20;align-items:center;gap:16px;padding:10px 24px;display:flex;position:sticky;top:0}.topbar-company{flex-direction:column;display:flex}.topbar-company span{color:var(--muted);font-size:12px}.topbar-right{align-items:center;gap:14px;margin-left:auto;display:flex}.as-user{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:flex}.as-user select{max-width:340px}.user-chip{align-items:center;gap:8px;display:flex}.avatar{background:var(--surface-3);width:32px;height:32px;color:var(--text);border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:600;display:grid}.user-meta{flex-direction:column;line-height:1.2;display:flex}.user-meta span{color:var(--muted);font-size:12px}.nav-toggle{display:none}.content{outline:none;padding:20px 24px 40px}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;display:flex}.page-header h1{letter-spacing:-.02em;font-size:26px;font-weight:700;line-height:1.15}.page-subtitle{color:var(--muted);margin-top:2px}.page-actions{flex-wrap:wrap;gap:8px;display:flex}.back-link{align-items:center;gap:4px;margin-bottom:6px;font-size:13px;display:inline-flex}.panel{background:var(--surface);border-radius:var(--radius);min-width:0;overflow:hidden}.panel .panel{background:var(--surface-2)}.panel-head{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 10px;display:flex}.panel-head h2{font-size:16px;font-weight:700}.panel-actions{align-items:center;gap:8px;display:flex}.panel-body{padding:16px}.panel-body.flush{padding:0}.grid{gap:16px;display:grid}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.stack{flex-direction:column;gap:16px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.stats{background:var(--surface);border-radius:var(--radius);grid-template-columns:repeat(auto-fit,minmax(190px,1fr));padding:6px 4px;display:grid}.stat{padding:12px 18px}.stat-label{color:var(--muted);font-size:13px}.stat-value{letter-spacing:-.02em;margin-top:2px;font-size:28px;font-weight:700;line-height:1.15}.stat-hint{color:var(--muted);margin-top:2px;font-size:12px}.text-green{color:var(--green)}.text-red{color:var(--red)}.text-amber{color:var(--amber)}.text-blue{color:var(--blue)}.text-gray,.muted{color:var(--muted)}.strong{font-weight:600}.small{font-size:12px}.btn{border-radius:var(--radius);background:var(--surface-3);cursor:pointer;white-space:nowrap;border:none;align-items:center;gap:6px;padding:8px 14px;font-weight:600;line-height:1.3;display:inline-flex}.btn:hover{background:#dcdfe4;text-decoration:none}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-danger{background:var(--red);border-color:var(--red);color:#fff}.btn-danger:hover{background:#922019}.btn-success{background:var(--green);border-color:var(--green);color:#fff}.btn-success:hover{background:#175e37}.btn-ghost{color:var(--accent);background:0 0}.btn-ghost:hover{background:0 0;text-decoration:underline}.btn-sm{padding:4px 10px;font-size:13px}.icon-btn{border-radius:var(--radius);cursor:pointer;color:var(--muted);background:0 0;border:none;place-items:center;padding:4px;display:inline-grid}.icon-btn:hover{background:var(--surface-3);color:var(--text)}input[type=text],input[type=search],input[type=number],input[type=date],input[type=email],select,textarea{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);width:100%;min-height:34px;padding:6px 10px}textarea{resize:vertical;min-height:72px}::placeholder{color:#8a929c;opacity:1}.picker,.select{width:100%;min-width:0;position:relative}.table-toolbar .select,.page-actions .select,.panel-actions .select,.as-user .select{width:auto;min-width:200px}.picker-field,.select-field{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);text-align:left;cursor:pointer;align-items:center;gap:8px;width:100%;min-height:36px;padding:6px 10px;display:flex}.picker-field:hover,.select-field:hover{border-color:var(--accent)}.picker-field[aria-expanded=true],.select-field[aria-expanded=true]{border-color:var(--accent);outline:2px solid var(--accent-soft)}.picker-field:disabled,.select-field:disabled{background:var(--surface-2);cursor:not-allowed;border-color:var(--border)}.picker-icon{color:var(--accent);flex:none}.picker-value,.select-value{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.is-empty .picker-value,.is-empty .select-value{color:#8a929c}.select-chevron{color:var(--muted);flex:none}.picker-clear{position:absolute;top:50%;right:6px;transform:translateY(-50%)}.popover{background:var(--surface);border-radius:var(--radius);box-shadow:0 0 0 1px #10182814,0 12px 32px #1018282e}.calendar{max-width:320px;padding:12px}.cal-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.cal-title{font-size:16px;font-weight:700}.cal-nav{width:34px;height:34px;color:var(--text);background:var(--surface-2)}.cal-grid{grid-template-columns:repeat(7,1fr);gap:3px;display:grid}.cal-weekday{text-align:center;color:var(--muted);padding:4px 0;font-size:12px;font-weight:700}.cal-day{cursor:pointer;background:0 0;border:none;border-radius:6px;height:36px;font-size:14px;font-weight:500}.cal-day:hover{background:var(--surface-3)}.cal-day.other{color:#a3aab3}.cal-day.today{color:var(--accent);background:var(--accent-soft);font-weight:800}.cal-day.selected{background:var(--accent);color:#fff;font-weight:700}.cal-day:disabled{color:#c8cdd3;cursor:not-allowed;background:0 0;text-decoration:line-through}.cal-foot{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;display:flex}.select-panel{flex-direction:column;max-height:340px;display:flex}.select-search{padding:8px;position:relative}.select-search svg{color:var(--muted);position:absolute;top:50%;left:18px;transform:translateY(-50%)}.select-search input{padding-left:32px}.select-list{margin:0;padding:0 6px 6px;list-style:none;overflow-y:auto}.select-group{color:var(--muted);padding:8px 8px 4px;font-size:12px;font-weight:700}.select-option{cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:7px 8px;display:flex}.select-option.active{background:var(--surface-3)}.select-option.selected{color:var(--accent);font-weight:600}.select-option svg{flex:none;margin-left:auto}.select-option-text{flex-direction:column;min-width:0;display:flex}.select-option-sub{color:var(--muted);font-size:12px;font-weight:400}.select-empty{color:var(--muted);padding:10px 8px}input:disabled,select:disabled{background:var(--surface-2)}.form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;display:grid}.field{flex-direction:column;gap:4px;min-width:0;display:flex}.field-label{font-size:13px;font-weight:600}.field-hint{color:var(--muted);font-size:12px}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:1/-1}.input-num{text-align:right;max-width:130px}.checkbox{cursor:pointer;align-items:center;gap:8px;display:inline-flex}.checkbox input{width:16px;height:16px;accent-color:var(--accent)}.table-wrap{min-width:0}.table-toolbar{flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;display:flex}.table-toolbar select{width:auto;min-width:160px}.toolbar-spacer{flex:1}.search{min-width:260px;position:relative}.search svg{color:var(--muted);position:absolute;top:50%;left:10px;transform:translateY(-50%)}.search input{padding-left:32px}.table-scroll{overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th{background:var(--surface-2);color:var(--muted);white-space:nowrap;padding:9px 12px;font-size:13px;font-weight:600}.table td{border-bottom:1px solid var(--surface-3);vertical-align:middle;padding:8px 12px}.table tbody tr:hover td{background:#fafbfc}.table tr.clickable{cursor:pointer}.table tfoot td{background:var(--surface-2);border-bottom:none;font-weight:700}.table .group-row td{background:var(--surface-2);font-weight:600}.th-sort{color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:3px;padding:0;font-weight:600;display:inline-flex}.th-sort.right{flex-direction:row}.empty-row{text-align:center;color:var(--muted);padding:28px 12px!important}.table-foot{color:var(--muted);justify-content:space-between;align-items:center;padding:8px 12px;font-size:13px;display:flex}.pager{align-items:center;gap:8px;display:flex}.cell-title{font-weight:600}.cell-sub{color:var(--muted);font-size:12px}.badge{--sc:var(--gray);color:var(--text);white-space:nowrap;align-items:center;gap:7px;font-size:13px;font-weight:500;display:inline-flex}.badge:before{content:"";background:var(--sc);border-radius:50%;flex:none;width:8px;height:8px}.badge-gray{--sc:#8a929c}.badge-blue{--sc:var(--blue)}.badge-green{--sc:var(--green)}.badge-amber{--sc:#d08c00}.badge-red{--sc:var(--red)}.progress{background:var(--surface-3);border-radius:999px;min-width:80px;height:6px;overflow:hidden}.progress-fill{border-radius:999px;height:100%}.tone-blue{background:var(--blue)}.tone-green{background:var(--green)}.tone-amber{background:#c98a12}.tone-red{background:var(--red)}.tone-gray{background:var(--border-strong)}.progress-cell{align-items:center;gap:8px;display:flex}.progress-cell .progress{flex:1}.progress-cell span{text-align:right;width:52px;font-size:13px}.tabs{gap:4px;margin-bottom:16px;display:flex;overflow-x:auto}.panel .tabs{margin:0;padding:12px 12px 4px}.tab{border-radius:var(--radius);color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;gap:7px;padding:8px 12px;font-weight:600;display:inline-flex}.tab:hover{background:var(--surface-2);color:var(--text)}.tab.active{color:#fff;background:var(--accent)}.tab-icon{color:var(--accent);display:inline-grid}.tab.active .tab-icon{color:#fff}.tab-count{background:var(--surface-3);color:var(--text);border-radius:6px;padding:0 6px;font-size:12px;font-weight:700}.tab.active .tab-count{color:#fff;background:#ffffff38}.modal{border-radius:var(--radius);width:min(560px,100vw - 32px);color:var(--text);border:none;padding:0;box-shadow:0 12px 40px #10182840}.modal.wide{width:min(900px,100vw - 32px)}.modal::backdrop{background:#10182873}.modal-head{justify-content:space-between;align-items:center;padding:16px 18px 6px;display:flex}.modal-head h2{font-size:17px;font-weight:700}.modal-body{max-height:70vh;padding:18px;overflow-y:auto}.modal-body p+p{margin-top:8px}.modal-foot{background:var(--surface-2);justify-content:flex-end;gap:8px;padding:12px 18px;display:flex}.facts{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px 20px;margin:0;display:grid}.facts dt{color:var(--muted);font-size:12px}.facts dd{margin:2px 0 0;font-weight:500}.steps{margin:0;padding:0;list-style:none}.steps li{grid-template-columns:28px 1fr;gap:10px;padding-bottom:16px;display:grid;position:relative}.steps li:not(:last-child):before{content:"";background:var(--surface-3);width:2px;position:absolute;top:28px;bottom:0;left:13px}.step-dot{background:var(--surface-3);width:28px;height:28px;color:var(--muted);border-radius:50%;place-items:center;font-size:13px;font-weight:600;display:grid}.step-dot.ok{background:var(--green);color:#fff}.step-dot.no{background:var(--red);color:#fff}.step-dot.now{color:#fff;background:#d08c00}.step-title{font-weight:600}.step-meta{color:var(--muted);font-size:12px}.step-comment{background:var(--surface-2);border-radius:var(--radius);margin-top:4px;padding:6px 10px;font-size:13px}.notice{--nc:var(--accent);border-radius:var(--radius);background:var(--surface);color:var(--text);align-items:flex-start;gap:10px;padding:10px 14px;display:flex}.panel .notice{background:var(--surface-2)}.notice.warn{--nc:#d08c00}.notice.danger{--nc:var(--red)}.notice svg{color:var(--nc);flex:none;margin-top:1px}.empty{text-align:center;color:var(--muted);padding:28px 16px}.totals{border-collapse:collapse;min-width:320px;margin-left:auto}.totals td{padding:4px 0}.totals td:last-child{text-align:right;padding-left:24px}.totals tr.grand td{background:var(--surface-3);padding:8px 10px;font-size:15px;font-weight:700}.list{margin:0;padding:0;list-style:none}.list li{align-items:center;gap:12px;padding:10px 16px;display:flex}.list li:nth-child(2n){background:var(--surface-2)}.list .grow{flex:1;min-width:0}.chart{margin:0}.chart svg{width:100%;height:220px;display:block}.chart-grid{stroke:var(--surface-3);stroke-width:1px}.chart-tick{fill:var(--muted);font-size:11px}.legend{color:var(--muted);gap:16px;margin-top:8px;font-size:13px;display:flex}.legend i{vertical-align:-1px;width:10px;height:10px;margin-right:6px;display:inline-block}.toasts{z-index:200;flex-direction:column;gap:8px;display:flex;position:fixed;bottom:20px;right:20px}.toast{border-radius:var(--radius);background:var(--surface);min-width:300px;max-width:460px;color:var(--text);align-items:flex-start;gap:10px;padding:12px 12px 12px 14px;display:flex;box-shadow:0 0 0 1px #1018280f,0 8px 24px #10182824}.toast-success{--tc:var(--green)}.toast-error{--tc:var(--red)}.toast-body{flex-direction:column;flex:1;gap:2px;display:flex}.toast-title{font-weight:700}.toast-msg{color:var(--muted)}.toast>svg:first-child{color:var(--tc);margin-top:1px}.matrix td,.matrix th{text-align:center}.matrix td:first-child,.matrix th:first-child{text-align:left}@media (width<=1200px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2-1{grid-template-columns:1fr}}@media (width<=900px){.app{grid-template-columns:1fr}.sidebar{width:var(--sidebar);z-index:50;transition:transform .2s;position:fixed;top:0;left:0;transform:translate(-100%)}.nav-open .sidebar{transform:none;box-shadow:0 0 0 100vw #10182859}.nav-toggle{display:inline-grid}.grid-2,.grid-3{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr 1fr}.user-meta,.topbar-company span,.as-user span{display:none}.content{padding:16px}.topbar{padding:10px 16px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
