:root{--bg: #F7F8FA;--surface: #FFFFFF;--surface-2: #F2F4F7;--border: #E4E7EC;--border-input: #D0D5DD;--text: #101828;--text-2: #344054;--text-3: #475467;--muted: #667085;--faint: #98A2B3;--primary: #1E5EFF;--primary-hover: #1648CC;--primary-50: #EAF0FF;--error: #D92D20;--error-dark: #B42318;--error-bg: #FEF3F2;--error-border-soft: #FECDCA;--success: #12B76A;--success-dark: #027A48;--success-bg: #ECFDF3;--warn-bg: #FFFAEB;--warn-ink: #B54708;--font: Manrope, system-ui, sans-serif;--mono: "JetBrains Mono", monospace}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:var(--font);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-hover)}button,input,select,textarea{font-family:inherit}input:focus,textarea:focus{outline:none;border-color:var(--primary)!important;box-shadow:0 0 0 3px var(--primary-50)}h1,h2{margin:0}h1{font-size:24px;font-weight:800;letter-spacing:-.02em}@keyframes spin{to{transform:rotate(360deg)}}.app{min-height:100vh;display:flex;flex-direction:column;border-top:3px solid var(--primary)}.header{height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px;padding:0 24px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap;color:var(--text)}.brand:hover{color:var(--text)}.brand-mark{width:32px;height:32px;border-radius:8px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex:none}.brand-name{display:flex;flex-direction:column;line-height:1.1}.brand-name b{font-weight:800;font-size:15px}.brand-name span{font-size:11px;color:var(--muted);font-weight:600}.spacer{flex:1}.user{display:flex;align-items:center;gap:10px;white-space:nowrap;min-width:0}.avatar{width:36px;height:36px;border-radius:50%;background:var(--primary-50);color:var(--primary);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;flex:none}.user-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}.user-text b{font-size:14px;font-weight:700}.user-text span{font-size:12px;color:var(--primary);font-weight:600;overflow:hidden;text-overflow:ellipsis}.body{flex:1;display:flex;min-height:0}.nav{width:240px;flex:none;background:var(--surface);border-right:1px solid var(--border);padding:16px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:64px;height:calc(100vh - 67px)}.nav-item{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:8px;color:var(--text-2);font-size:14px;font-weight:600}.nav-item:hover{background:var(--bg);color:var(--text)}.nav-item.active{background:var(--primary-50);color:var(--primary);font-weight:700}.nav-item .label{flex:1}.nav-icon{position:relative;display:inline-flex;flex:none}.nav-count{position:absolute;top:-7px;right:-10px;min-width:18px;height:18px;line-height:18px;text-align:center;font-size:11px;font-weight:700;color:#fff;background:var(--primary);border-radius:9px;padding:0 5px;box-shadow:0 0 0 2px var(--surface)}.only-narrow{display:none}.lookup .input{text-overflow:ellipsis}.main{flex:1;min-width:0;display:flex;flex-direction:column}.content{flex:1;padding:24px 32px 32px;display:flex;flex-direction:column;gap:20px;max-width:1360px;width:100%}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:16px;min-width:0}.card.tight{gap:12px;padding:16px 20px}.card.flush{padding:0;overflow-x:auto}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.card h2{font-size:16px;font-weight:800}.col{display:flex;flex-direction:column;gap:8px;min-width:0}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.muted{color:var(--muted)}.small{font-size:12px}.nowrap{white-space:nowrap}.mono{font-family:var(--mono)}.eyebrow{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.two-line{display:flex;flex-direction:column;gap:2px;min-width:0}.two-line b{font-size:14px;font-weight:700;color:var(--text)}.two-line span{font-size:12px;color:var(--muted)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:12px;font-weight:700;color:var(--text-2)}.input{height:40px;border:1px solid var(--border-input);border-radius:8px;padding:0 12px;font-size:14px;width:100%;background:#fff;color:var(--text)}.textarea{height:110px;padding:10px 12px;resize:vertical}.badge{font-size:12px;font-weight:700;border-radius:10px;padding:2px 8px;white-space:nowrap;display:inline-block}.stage-badge{background:var(--warn-bg);color:var(--warn-ink)}.acting-badge{background:#eef0ff;color:#3730a3;margin-top:6px}.btn{height:40px;padding:0 16px;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:disabled{cursor:default;opacity:.6}.btn-sm{height:36px;padding:0 14px}.btn-primary{border:none;background:var(--primary);color:#fff;padding:0 18px}.btn-primary:hover:not(:disabled){background:var(--primary-hover);color:#fff}.btn-secondary{border:1px solid var(--border-input);background:#fff;color:var(--text-2)}.btn-secondary:hover:not(:disabled){background:var(--bg)}.btn-ghost{border:none;background:none;color:var(--text-3)}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.btn-danger{border:1px solid var(--error-border-soft);background:#fff;color:var(--error-dark)}.btn-danger:hover:not(:disabled){background:var(--error-bg)}.alert-error{background:var(--error-bg);border:1px solid var(--error-border-soft);border-radius:10px;padding:12px 14px;display:flex;gap:10px;align-items:center;color:var(--error-dark)}.alert-error span{flex:1;font-size:14px;font-weight:600;line-height:1.4}.alert-error button,.banner-error button{border:none;background:none;font-size:14px;font-weight:700;color:var(--error-dark);cursor:pointer}.banner-error{background:var(--error-bg);color:var(--error-dark);border-bottom:1px solid var(--error-border-soft);padding:10px 32px;font-size:14px;font-weight:600;display:flex;gap:12px;align-items:center}.acting{background:#eef0ff;color:#3730a3;border:1px solid #C7D2FE;border-radius:10px;padding:10px 14px;font-size:14px;font-weight:600}.info-box{background:var(--primary-50);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-2);line-height:1.45}.note p{margin:4px 0 0;font-size:14px;white-space:pre-line;color:var(--text-2)}.spinner{width:44px;height:44px;border:4px solid var(--primary-50);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}.center-block{display:flex;justify-content:center;align-items:center;padding:48px 0}.empty{padding:40px 20px 48px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.empty b{font-size:18px;font-weight:800}.empty span{font-size:14px;color:var(--muted);max-width:360px}.done-icon{width:48px;height:48px;border-radius:50%;background:var(--success-bg);display:flex;align-items:center;justify-content:center}.page-head{display:flex;flex-direction:column;gap:10px}.page-head .sub{font-size:14px;color:var(--muted)}.crumbs{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden}.crumbs a{color:var(--muted)}.title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.amount{font-size:20px;font-weight:800;letter-spacing:-.01em}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}.tabs button{border:none;background:none;padding:8px 10px 10px;font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:6px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}.tabs button.on{color:var(--primary);border-bottom-color:var(--primary)}.tab-count{font-size:12px;border-radius:10px;padding:1px 7px;background:var(--surface-2);color:var(--muted)}.tabs button.on .tab-count{background:var(--primary-50);color:var(--primary)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips button{border:1px solid var(--border);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700;color:var(--text-2);cursor:pointer;display:flex;gap:6px}.chips button span{color:var(--muted)}.chips button.on{border-color:var(--primary);background:var(--primary-50);color:var(--primary)}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;font-size:12px;font-weight:700;color:var(--muted);padding:12px 16px;border-bottom:1px solid var(--border);background:#fcfcfd;white-space:nowrap}.table td{padding:12px 16px;border-bottom:1px solid var(--surface-2);vertical-align:top}.table tbody tr:last-child td{border-bottom:none}.table.compact th,.table.compact td{padding:8px 10px}.table.compact th{white-space:normal;vertical-align:bottom;line-height:1.3;padding-left:8px;padding-right:8px}.table.compact td{padding-left:8px;padding-right:8px}.table.compact td{overflow-wrap:break-word}.table.compact td.num{white-space:nowrap;overflow-wrap:normal}.table.compact th.num{overflow-wrap:normal}.cell-input{width:96px;height:32px;padding:0 8px;text-align:right;font-variant-numeric:tabular-nums}.cell-input.invalid{border-color:var(--danger, #D92D20)}.cell-error{display:block;font-size:11px;color:var(--danger, #D92D20);white-space:normal;margin-top:2px}.row-deleted td{text-decoration:line-through;color:var(--muted)}.edit-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2)}.edit-bar .input{flex:1;min-width:200px;height:34px}.edit-bar.saved{background:var(--success-bg, #ECFDF3);border-color:transparent}.edit-bar.saved .ok{color:#067647}.info-box.warn{background:#fffaeb;color:#93370d}.table th.num,.table td.num{text-align:right}.table td.num{font-weight:600;font-variant-numeric:tabular-nums}.table.rows-link tbody tr{cursor:pointer}.table.rows-link tbody tr:hover{background:#f9fafb}.table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:8px;background:linear-gradient(to right,var(--surface) 30%,transparent) left / 32px 100% no-repeat local,linear-gradient(to left,var(--surface) 30%,transparent) right / 32px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(16,24,40,.14),transparent) left / 12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(16,24,40,.14),transparent) right / 12px 100% no-repeat scroll;background-color:var(--surface);scrollbar-width:thin;scrollbar-color:var(--border) transparent;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.table-scroll::-webkit-scrollbar{height:8px;width:8px}.table-scroll::-webkit-scrollbar-track{background:transparent;margin:0 8px}.table-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px;border:2px solid var(--surface)}.table-scroll:hover::-webkit-scrollbar-thumb{background:var(--muted)}.table-scroll::-webkit-scrollbar-button{display:none}.table-scroll .table th,.table-scroll .table td{background:transparent}.doc-link{display:flex;flex-direction:column;gap:2px;color:var(--text)}.doc-link b{font-size:14px}.doc-link .mono{color:var(--muted)}.edit-flag{margin-left:6px;color:var(--primary);cursor:help}.doc-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:20px;align-items:start}.doc-side{position:sticky;top:88px;gap:14px}.kv{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.kv>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--surface-2);font-size:14px;min-width:0}.kv>div span{color:var(--muted)}.kv>div b{font-weight:600;text-align:right;overflow-wrap:anywhere}.pdf-frame{width:100%;height:calc(100vh - 300px);min-height:520px;border:1px solid var(--border);border-radius:6px;background:#fff}.pdf-empty{padding:32px 0;text-align:center}.process{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.process li{border-radius:8px;padding:8px 10px;background:var(--surface-2);display:flex;flex-direction:column;gap:2px;font-size:13px;border-top:3px solid var(--border-input)}.process li span{font-size:12px;color:var(--muted)}.process li.ok{border-top-color:var(--success);background:var(--success-bg)}.process li.warn{border-top-color:#f79009;background:var(--warn-bg)}.process li.bad{border-top-color:var(--error);background:var(--error-bg)}.process li.skip{opacity:.55}.stages{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.stage{display:flex;gap:12px}.tl-rail{display:flex;flex-direction:column;align-items:center;width:20px;flex:none;padding-top:12px}.tl-dot{width:12px;height:12px;border-radius:50%;flex:none}.tl-line{flex:1;width:2px;background:var(--border);margin:6px 0 -6px}.stage-body{flex:1;min-width:0;border:1px solid transparent;border-radius:10px;padding:8px 10px;margin-bottom:8px;display:flex;flex-direction:column;gap:4px}.stage-waiting .stage-body{opacity:.7}.stage-head{display:flex;justify-content:space-between;gap:8px}.stage-head b{font-size:14px;font-weight:800}.stage-status{font-size:12px;font-weight:700;white-space:nowrap}.approvers{font-size:13px;color:var(--text-2);line-height:1.45;margin-top:2px}.status-line{font-size:13px;font-weight:600;color:var(--text-2);background:var(--surface-2);border-radius:8px;padding:8px 10px}.history{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.history li{display:flex;gap:10px}.history-dot{width:8px;height:8px;border-radius:50%;background:var(--primary);margin-top:6px;flex:none}.history-dot.bad{background:var(--error)}.history q{font-size:13px;color:var(--text-2);background:var(--surface-2);border-radius:8px;padding:6px 10px;margin-top:4px;quotes:"«" "»"}.history q.bad{background:var(--error-bg);color:var(--error-dark)}.footer-bar{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--border);padding:14px 32px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;z-index:3;box-shadow:0 -4px 12px #1018280a}.footer-hint{font-size:13px;color:var(--text-2);min-width:0}.footer-hint.waiting{flex:1 1 360px}.footer-hint.bad{color:var(--error-dark);font-weight:700}.comment-input{max-width:340px;flex:1 1 220px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182873;display:flex;align-items:center;justify-content:center;padding:24px;z-index:20}.modal{width:480px;max-width:100%;max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:12px;box-shadow:0 24px 48px #1018283d}.modal-body{padding:22px 24px;display:flex;flex-direction:column;gap:18px}.modal-title{display:flex;flex-direction:column;gap:4px}.modal-title b{font-size:18px;font-weight:800}.modal-title b.ok{color:var(--success-dark)}.modal-title b.bad{color:var(--error-dark)}.modal-title span{font-size:14px;color:var(--text-3)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:var(--bg);border-top:3px solid var(--primary)}.login-shell{width:880px;max-width:100%;display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 12px 32px #1018280f}.login-aside{background:var(--primary-50);padding:36px;display:flex;flex-direction:column;gap:28px}.login-aside h2{font-size:22px;font-weight:800;letter-spacing:-.02em;margin-bottom:8px}.login-aside p{margin:0;font-size:14px;color:var(--text-3);line-height:1.5}.login-features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:14px;color:var(--text-2)}.login-features li{display:flex;align-items:center;gap:10px}.login-features li i{width:8px;height:8px;border-radius:50%;background:var(--primary);flex:none}.login-panel{padding:36px;display:flex;flex-direction:column;justify-content:center}.login-form{display:flex;flex-direction:column;gap:16px}.login-form h1{font-size:22px}.login-form p{margin:4px 0 0;font-size:14px;color:var(--muted)}.login-error{margin:0;font-size:13px;font-weight:600;color:var(--error-dark);background:var(--error-bg);border-radius:8px;padding:10px 12px}.login-notice{margin:0;font-size:13px;color:var(--text-2);background:var(--surface-2);border-radius:8px;padding:10px 12px}@media(max-width:1100px){.doc-layout{grid-template-columns:1fr}.doc-side{position:static}}.tabbar{display:none}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182866;z-index:30;display:flex;align-items:flex-end}.sheet{width:100%;background:var(--surface);border-radius:18px 18px 0 0;padding:8px 12px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:2px;box-shadow:0 -12px 32px #1018282e;animation:sheet-in .18s ease-out}@keyframes sheet-in{0%{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}.sheet-grip{align-self:center;width:40px;height:4px;border-radius:2px;background:var(--border);margin:2px 0 10px}.sheet-user{display:flex;align-items:center;gap:12px;padding:4px 8px 14px;border-bottom:1px solid var(--surface-2);margin-bottom:6px}.sheet-user-text{display:flex;flex-direction:column;min-width:0}.sheet-user-text b{font-size:15px}.sheet-user-text span{font-size:13px;color:var(--muted)}.sheet-item{display:flex;align-items:center;gap:14px;min-height:48px;padding:0 10px;border-radius:10px;border:none;background:none;color:var(--text);font-size:15px;font-weight:600;text-align:left;cursor:pointer;width:100%}.sheet-item:active,.sheet-item.active{background:var(--primary-50);color:var(--primary)}.sheet-logout{color:var(--error-dark);margin-top:6px;border-top:1px solid var(--surface-2);border-radius:0 0 10px 10px}@media(max-width:720px){.header{padding:0 16px;gap:10px}.nav{display:none}.tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:6;height:calc(64px + env(safe-area-inset-bottom));padding:4px 6px env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -4px 16px #1018280d}.tab{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:none;background:none;color:var(--muted);font:inherit;font-size:11px;font-weight:600;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}.tab .nav-icon{padding:3px 16px;border-radius:14px;transition:background .15s}.tab.active{color:var(--primary)}.tab.active .nav-icon{background:var(--primary-50)}.tab-label{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-create{justify-content:flex-end;padding-bottom:6px}.tab-create-btn{width:52px;height:52px;margin-top:-26px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px #155eef59,0 0 0 4px var(--surface);transition:transform .12s}.tab-create:active .tab-create-btn{transform:scale(.94)}.tab-create.active .tab-label{color:var(--primary)}.user-text{display:none}.content{padding:16px 16px 96px}.only-wide{display:none}.only-narrow{display:inline}.kv,.login-shell{grid-template-columns:1fr}.login-aside{display:none}.footer-bar{padding:10px 12px;gap:8px;bottom:calc(64px + env(safe-area-inset-bottom));flex-wrap:wrap}.footer-bar .footer-hint,.footer-bar .comment-input{flex:1 1 100%;min-width:0}.footer-bar .spacer{display:none}.footer-bar .save-error{position:absolute;left:12px;right:12px;bottom:calc(100% + 6px);background:var(--error-bg);border:1px solid var(--error-border-soft);border-radius:8px;padding:8px 10px}.comment-input{max-width:none;flex-basis:100%}.footer-bar .btn{flex:1 1 0;min-width:0;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:center}.content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.banner-error{padding:10px 16px}.table.rows-link thead{display:none}.table.rows-link tr{display:block;padding:12px 16px;border-bottom:1px solid var(--surface-2)}.table.rows-link td{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border:none;text-align:right}.table.rows-link td:before{content:attr(data-label);color:var(--muted);font-size:12px;font-weight:700;text-align:left}.table.rows-link td:first-child{display:block;text-align:left}.table.rows-link td:first-child:before{content:none}}.action-badge{background:var(--surface-2);color:var(--text-2)}.action-badge.ok{background:#ecfdf3;color:#067647}.action-badge.bad{background:#fef3f2;color:#b42318}.action-badge.warn{background:#fffaeb;color:#b54708}.modal-wide{width:min(760px,calc(100vw - 32px))}.route-editor{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto}.route-editor li{border:1px solid var(--border);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.route-editor li.parallel{margin-left:24px;border-left:3px solid var(--primary)}.route-step-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.route-step-head select{flex:1;min-width:180px;height:34px}.route-step-no{width:24px;height:24px;border-radius:12px;background:var(--surface-2);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}.route-step-tools{gap:4px;flex-wrap:wrap}.route-step-users{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:12px;background:var(--surface-2);font-size:13px}.chip button{border:none;background:none;cursor:pointer;color:var(--muted);font-size:14px;line-height:1;padding:0 2px}.input-sm{height:30px;font-size:13px;width:auto}.bad{color:#b42318}.stage-parallel .stage-body{margin-left:16px;border-left:3px solid var(--border)}.parallel-mark{color:var(--muted);font-weight:700}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.form-field{display:flex;flex-direction:column;gap:6px;min-width:0}.form-wide{grid-column:1 / -1}.req{color:#b42318;margin-left:2px}.input.invalid{border-color:#d92d20}.lookup{position:relative;min-width:0}.lookup .input{width:100%;padding-right:28px}.lookup-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:none;background:none;cursor:pointer;color:var(--muted);font-size:16px}.lookup-list{position:absolute;z-index:1000;left:0;right:0;top:calc(100% + 4px);margin:0;padding:4px 0;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #1018281f;max-height:260px;overflow-y:auto}.lookup-list li{padding:7px 12px;font-size:14px;cursor:pointer}.lookup-list li[role=option]:hover,.lookup-list li[aria-selected=true]{background:var(--surface-2)}.edit-table td{vertical-align:middle}.edit-table .input{height:32px;font-size:13px;min-width:110px}.edit-table .cell-wide{min-width:220px}.save-error{white-space:pre-line}@media(max-width:720px){.form-grid{grid-template-columns:1fr}}.card-head.pad{padding:16px 20px 0}.role-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.role-list li{border:1px solid var(--border);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.lookup-inline{width:220px}.checks{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}.checks label{display:inline-flex;align-items:center;gap:6px}.step-input{width:64px;margin-left:4px}.allowed-fields{display:flex;flex-direction:column;gap:6px;padding-top:6px;border-top:1px dashed var(--border)}.allowed-row{flex-wrap:wrap;gap:6px}.allowed-row select{max-width:280px}.footer-hint.ok{color:#067647}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;color:var(--text);text-decoration:none}.kpi:hover{border-color:var(--primary)}.kpi span{font-size:13px;color:var(--muted);font-weight:600}.kpi b{font-size:28px;line-height:1.1}.kpi em{font-style:normal;font-size:12px;color:var(--muted)}.kpi .bad,.kpi em.bad{color:#b42318}.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.dash-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.dash-list li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--surface-2)}.dash-list li:last-child{border-bottom:none}.process-counts .count{font-size:22px;font-weight:700}@media(max-width:1100px){.dash-grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}.items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.item{border:1px solid var(--border);border-radius:10px;background:var(--surface)}.item-line{display:flex;align-items:center;gap:12px;padding:10px 12px}.item-no{width:24px;text-align:right;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.item-main b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-qty{display:flex;align-items:center;gap:6px}.item-qty .input{width:96px;text-align:right}.item-remove{font-size:18px;line-height:1;padding:2px 8px}.item-details{padding:4px 12px 12px 48px;border-top:1px dashed var(--border)}.items-empty{width:100%;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:28px 16px;border:1px dashed var(--border);border-radius:10px;background:var(--surface-2);cursor:pointer;font:inherit;color:inherit}.items-empty span{color:var(--muted);font-size:13px;max-width:460px}.items-empty:hover{border-color:var(--primary, #1E5EFF)}.picker .modal-body{gap:14px}.picker-list{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:10px;max-height:min(52vh,440px);overflow-y:auto}.picker-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border-bottom:1px solid var(--border);cursor:pointer}.picker-row:last-child{border-bottom:none}.picker-row:hover{background:var(--surface-2)}.picker-row.selected{background:var(--primary-50)}.picker-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.picker-main b{font-weight:600}.picker-added{color:var(--primary, #1E5EFF)}.picker-qty{display:flex;align-items:center;gap:6px}.picker-qty .input{width:90px;text-align:right}.picker-note{padding:14px 12px}.picker-count{margin-right:auto;align-self:center}@media(max-width:640px){.item-line{flex-wrap:wrap}.item-main{flex-basis:calc(100% - 40px)}.item-details{padding-left:12px}}@media(max-width:720px){.table-scroll:has(.table-cards){border:none;background:none;overflow:visible}.table-cards,.table-cards tbody,.table-cards tr,.table-cards td{display:block;width:100%}.table-cards thead{display:none}.table-cards tbody{display:flex;flex-direction:column;gap:10px}.table-cards tr{border:1px solid var(--border);border-radius:10px;padding:6px 12px;background:var(--surface)}.table-cards tr.row-deleted{opacity:.55}.table-cards td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border:none;border-bottom:1px dashed var(--border);text-align:right;white-space:normal}.table-cards td:last-child{border-bottom:none}.table-cards td:before{content:attr(data-label);color:var(--muted);font-weight:400;text-align:left;flex:0 1 45%}.table-cards td.row-no{justify-content:flex-start;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.table-cards td.row-no:before{content:"Строка";flex:none;margin-right:4px}.table-cards td.row-no+td{font-weight:600}.table-cards td.row-actions{justify-content:flex-end}.table-cards td.row-actions:before,.table-cards td.row-empty:before{content:none}.table-cards td .cell-input{max-width:140px}}.list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.list-search{flex:1 1 240px;min-width:0}.list-select{width:auto;flex:0 1 220px;min-width:0;padding-right:8px}.list-tools-right{display:flex;align-items:center;gap:8px;margin-left:auto}.seg{display:inline-flex;border:1px solid var(--border-input);border-radius:8px;overflow:hidden;background:#fff}.seg button{border:none;background:none;height:36px;padding:0 12px;font-size:13px;font-weight:600;color:var(--text-2);cursor:pointer}.seg button+button{border-left:1px solid var(--border-input)}.seg button.on{background:var(--primary-50);color:var(--primary)}.doc-group{overflow:hidden}.group-head{display:flex;align-items:center;gap:10px;width:100%;border:none;background:#fcfcfd;padding:12px 16px;font-size:14px;color:var(--text);cursor:pointer;text-align:left;border-bottom:1px solid var(--border)}.doc-group.closed .group-head{border-bottom:none}.group-head:hover{background:var(--surface-2)}.group-head .chev{display:inline-block;transition:transform .15s ease;color:var(--muted);font-size:12px}.group-head[aria-expanded=true] .chev{transform:rotate(90deg)}.group-count{font-size:12px;font-weight:700;color:var(--primary);background:var(--primary-50);border-radius:999px;padding:1px 8px}.pager{display:flex;align-items:center;gap:4px;padding:10px 16px;border-top:1px solid var(--surface-2);flex-wrap:wrap}.pager .page-num{min-width:36px;padding:0 8px;border:1px solid transparent;background:none;color:var(--text-2)}.pager .page-num.on{border-color:var(--primary);background:var(--primary-50);color:var(--primary)}.pager .page-size{width:auto;height:36px;margin-left:8px}.create-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.create-card{flex-direction:row;align-items:flex-start;gap:14px;color:inherit;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease}a.create-card:hover{border-color:var(--primary);box-shadow:0 4px 12px #1e5eff14}.create-card.disabled{opacity:.65}.create-icon{flex:none;width:36px;height:36px;border-radius:10px;background:var(--primary-50);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}.create-card.disabled .create-icon{background:var(--surface-2);color:var(--muted)}.create-text{display:flex;flex-direction:column;gap:4px;min-width:0}.create-note{color:var(--muted);font-style:italic}.related,.removed-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.related li,.removed-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--surface-2);flex-wrap:wrap}.related li:first-child,.removed-list li:first-child{border-top:none}.related .spacer,.removed-list .spacer{flex:1}.removed-list li{justify-content:space-between}.picker-row.disabled{opacity:.45;cursor:not-allowed}.pick-requests{max-height:none}.invoice-row{grid-template-columns:repeat(3,minmax(0,1fr))}.num-input{text-align:right;font-variant-numeric:tabular-nums}.sum-value{height:40px;display:flex;align-items:center;justify-content:flex-end;font-variant-numeric:tabular-nums}@media(max-width:720px){.list-select{flex:1 1 45%}.list-tools-right{margin-left:0;width:100%;justify-content:space-between}.pager{justify-content:center}.pager>.small{width:100%;text-align:center}.pager .spacer{display:none}.invoice-row{grid-template-columns:1fr 1fr}.invoice-row .form-field:last-child{grid-column:1 / -1}}.item-details.invoice-row{padding:8px 12px 12px}.push{position:relative}.push-bell{padding:6px;display:flex}.push-bell.on{color:var(--primary)}.push-panel{position:absolute;top:calc(100% + 8px);right:0;width:300px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0000001f;padding:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;z-index:20}.push-panel p{margin:0;font-size:13px;line-height:1.45;color:var(--text-3)}@media(max-width:720px){.push{position:static}.push-panel{top:60px;right:16px}}
