:root{--ink:#1c2638;--muted:#738096;--line:#e8ecf2;--bg:#f6f8fb;--accent:#f36b24;--accent-soft:#fff0e6;--radius:18px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);padding:10px 14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .16s,box-shadow .16s}button:hover{background:#f4f6f9}button:focus-visible,a:focus-visible{outline:3px solid #f5a977;outline-offset:2px}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 4px 12px #f36b2420}.primary:hover{background:#dd5917}.soft{background:var(--accent-soft);color:#b74913;border-color:#ffe0c8}.danger{color:#c13c49}.ghost{border-color:transparent;background:transparent}.icon-btn{padding:8px;width:34px;height:34px}svg.icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.8px;line-height:1.25;margin-bottom:9px;font-weight:740}h2{font-size:17px;letter-spacing:-.3px;margin-bottom:0}h3{font-size:14px}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.5}.layout{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:28px 18px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:760;letter-spacing:-.5px;padding:0 10px 32px}.brand-badge{width:40px;height:40px;background:var(--accent);color:white;border-radius:12px;display:grid;place-items:center;font-size:18px;box-shadow:0 5px 12px #f36b2422}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:500;letter-spacing:2px;margin-top:2px}.nav-label{font-size:10px;letter-spacing:1.7px;color:#9aa5b6;padding:12px 14px 9px;font-weight:700}.sidebar nav{display:grid;gap:5px}.nav-item{justify-content:flex-start;border:0;border-radius:10px;padding:13px 14px;background:none;color:#647084;font-weight:550;width:100%}.nav-item.active{background:var(--accent-soft);color:#d45d1f}.nav-item .icon{width:18px}.nav-item span{flex:1;text-align:left}.nav-count{background:#ffe0ca;border-radius:6px;font-size:11px;padding:2px 6px}.sidebar-bottom{margin-top:auto;padding-top:20px}.user-chip{border-top:1px solid var(--line);padding:18px 4px 8px;display:flex;align-items:center;gap:10px}.avatar{height:35px;width:35px;border-radius:11px;background:#f1eafe;color:#7d56b0;display:grid;place-items:center;font-weight:750}.user-info{min-width:0;flex:1}.user-info strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis}.user-info small{color:var(--muted);font-size:11px}.topbar{height:73px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#ffffffc9;gap:14px}.crumb{font-size:12px;color:var(--muted);display:flex;gap:12px;align-items:center}.crumb strong{color:var(--ink);font-weight:550}.lang{display:flex;gap:3px;flex-shrink:0}.lang button{border:none;background:transparent;padding:7px 8px;font-size:11px;color:#8b94a6;border-radius:7px}.lang button.active{background:#fff0e6;color:#cc5417}.main{padding:32px 36px 42px;max-width:1640px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.page-head p{color:var(--muted);margin-bottom:0;line-height:1.5}.eyebrow{display:flex;align-items:center;gap:6px;font-size:11px;color:#c65a24;text-transform:uppercase;font-weight:700;letter-spacing:1.2px;margin-bottom:12px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 26px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:19px 20px;min-height:144px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:6px}.stat-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f2f4f8;color:#64748b}.stat:nth-child(2) .stat-icon{background:#fff1e7;color:#dd7a2a}.stat:nth-child(3) .stat-icon{background:#e9f7ef;color:#318965}.stat:nth-child(4) .stat-icon{background:#eeebfe;color:#8373c5}.stat-value{font-size:29px;font-weight:720;letter-spacing:-1px;margin:12px 0 4px}.stat-amount{font-size:11px;color:var(--muted);line-height:1.6}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px;overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;padding:21px 23px;gap:12px;border-bottom:1px solid var(--line)}.card-body{padding:22px 24px}.filters{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:210px}.search>svg{position:absolute;left:13px;top:12px;color:#9ba6b6}.search input{padding-left:41px;padding-right:38px;background:white}.search button{position:absolute;right:5px;top:5px;width:30px;height:30px;padding:0;border:0;color:var(--muted)}.filters select{width:auto;min-width:150px;background:white}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{color:#8490a1;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.7px;padding:14px 22px;background:#fcfdfe;white-space:nowrap}td{padding:17px 22px;border-top:1px solid #f0f2f6;font-size:12px;vertical-align:middle}td strong{font-size:13px;font-weight:620;line-height:1.4;display:block}td small{display:block;color:var(--muted);margin-top:5px;font-size:11px}tr.clickable{cursor:pointer}tr.clickable:hover{background:#fffaf6}.num{white-space:nowrap;font-variant-numeric:tabular-nums}.tag{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:6px 9px;font-size:10px;white-space:nowrap;font-weight:600}.tag:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.tag.draft{color:#75839a;background:#f0f3f7}.tag.review{color:#bc8526;background:#fff6dd}.tag.approved{color:#4675bb;background:#edf3ff}.tag.sent{color:#8865c2;background:#f2edfd}.tag.accepted{color:#2b9169;background:#eaf7f0}.tag.rejected{color:#c5636c;background:#fff0f1}.company-tag{display:inline-block;background:#f2f4f8;border:1px solid #e9edf3;border-radius:6px;font-size:10px;font-weight:650;padding:4px 6px;max-width:130px}.empty{text-align:center;padding:58px 24px 64px}.empty-art{width:70px;height:70px;border-radius:22px;background:var(--accent-soft);color:#ed8b51;display:grid;place-items:center;margin:0 auto 20px}.empty-art svg{width:31px;height:31px}.empty h2{margin-bottom:10px;font-size:19px}.empty p{color:var(--muted);line-height:1.6;max-width:400px;margin:0 auto 23px}.empty .actions{justify-content:center}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.page-footer{font-size:11px;color:#a2adbd;display:flex;justify-content:space-between;margin-top:24px}.company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.company-card{padding:23px;border-radius:var(--radius);background:white;border:1px solid var(--line)}.company-card h2{margin:15px 0 8px;line-height:1.5}.company-card p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:14px}.company-card .logo{width:55px;height:55px;object-fit:contain;border-radius:11px}.color-dot{height:55px;width:55px;border-radius:14px;display:grid;place-items:center;background:var(--accent-soft);font-weight:750;font-size:18px}.notice{padding:13px 16px;background:#fff7e7;color:#a57731;border:1px solid #f8e7bd;border-radius:10px;font-size:12px;line-height:1.55;margin-bottom:18px}.notice.blue{background:#eef4ff;color:#50729c;border-color:#dce8f9}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.full{grid-column:1/-1}label.field{display:block;min-width:0}label.field>span{display:block;color:#728094;font-size:11px;font-weight:600;margin-bottom:8px}input,select,textarea{width:100%;border:1px solid #dfe5ed;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);outline:none;min-height:40px}input:focus,select:focus,textarea:focus{border-color:#eea473;box-shadow:0 0 0 3px #fff1e5}input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:var(--accent)}input[type=color]{padding:4px}input:disabled,select:disabled,textarea:disabled{background:#f8fafc;color:#6e7c91}textarea{resize:vertical;min-height:84px;line-height:1.5}.field-note{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.5}fieldset{border:0;padding:0;margin:0;min-width:0}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}.editor-main{min-width:0}.summary-panel{position:sticky;top:20px;padding:22px}.summary-panel h2{font-size:15px;margin-bottom:21px}.sum-row{display:flex;justify-content:space-between;font-size:12px;margin-bottom:15px;gap:10px}.sum-row strong{white-space:nowrap}.sum-total{padding-top:16px;border-top:1px solid var(--line);font-size:14px}.sum-total strong{font-size:20px}.sum-divider{height:1px;background:var(--line);margin:20px 0}.profit-box{padding:14px;background:#eff9f2;border-radius:10px;color:#28774f}.profit-box.negative{background:#fff0f1;color:#ba4151}.profit-box strong{font-size:21px;display:block;margin-top:7px}.profit-box small{font-size:11px}.editor-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.save-state{font-size:11px;color:#8a98aa;display:flex;align-items:center;gap:6px}.save-state.ok{color:#4c9873}.save-state.warn{color:#bf7e30}.items-table td,.items-table th{padding:12px 14px}.item-name{max-width:380px}.item-name strong{overflow-wrap:anywhere}.calc-controls{padding:18px 24px;border-top:1px solid var(--line);background:#fcfdff}.editor-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.editor-actions button{font-size:12px;padding:8px 11px}.section-number{font-size:11px;color:var(--accent);background:var(--accent-soft);border-radius:6px;display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-right:9px}.loading{display:grid;place-items:center;height:100vh;color:var(--accent);font-size:23px;font-weight:700}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{padding:55px 10%;background:#fff3e9;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;border:1px solid #f6d7bd;width:580px;height:580px;border-radius:50%;bottom:-240px;right:-280px;pointer-events:none}.login-story .brand{padding-left:0;margin-bottom:70px}.login-story h1{font-size:45px;max-width:450px;line-height:1.15;letter-spacing:-1.5px}.login-story p{font-size:16px;color:#95745f;line-height:1.7;max-width:360px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:35px;position:relative;background:white}.login-form-wrap>.lang{position:absolute;top:30px;right:30px}.login-form{max-width:350px;width:100%}.login-form h2{font-size:25px;margin:0 0 9px}.login-form p{margin:0 0 28px}.login-form .field{margin-bottom:18px}.login-form .primary{width:100%;margin-top:6px;padding:13px}.login-mini{margin-top:26px;color:#a0aabb;font-size:11px;text-align:center}dialog{border:1px solid var(--line);padding:0;border-radius:20px;max-width:720px;width:calc(100vw - 32px);box-shadow:0 30px 100px #17213730;color:var(--ink);max-height:90vh}dialog::backdrop{background:#1a25364d;backdrop-filter:blur(3px)}dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;border-bottom:1px solid var(--line)}dialog .dialog-body{padding:23px 24px;max-height:calc(90vh - 75px);overflow-y:auto}dialog .dialog-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}dialog.wide{max-width:1080px}dialog .pdf-frame{width:100%;height:70vh;border:0;background:#f5f6f8}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#253246;color:white;padding:14px 22px;max-width:calc(100vw - 40px);border-radius:12px;z-index:100;box-shadow:0 10px 30px #19213725;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;font-size:13px;line-height:1.6}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#943c47}.check{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:12px}.check-list{display:grid;gap:13px;padding:12px 0}.check-list .check{align-items:flex-start}.check-list input{flex-shrink:0}.mobile-brand{display:none}.stack{display:grid;gap:16px}.row-choice{display:flex;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.row-choice>div{flex:1;min-width:0}.row-choice strong{display:block}.row-choice small{display:block;color:var(--muted);margin-top:5px}.inline-error{color:#bd4354;font-size:12px;line-height:1.5;margin:12px 0}.stat-value,.sum-row{font-variant-numeric:tabular-nums}button small{font-size:10px}input[type=file]{font-size:12px;padding:8px}details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;font-weight:650;font-size:14px}details>summary:after{content:'+';margin-left:auto;color:var(--muted)}details[open]>summary:after{content:'−'}details .grid4{margin-top:18px}.muted-link{font-size:12px;color:var(--accent);padding:0}.status-pipeline{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.welcome-strip{padding:21px 23px;border:1px solid #f6e4d2;border-radius:16px;background:linear-gradient(110deg,#fff5eb,#fffdfa);display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.welcome-strip p{font-size:12px;line-height:1.6;margin:6px 0 0;color:#a18169}.welcome-strip strong{font-size:14px}.nowrap{white-space:nowrap}
@media(min-width:1450px){.main{padding-top:38px}.stats{gap:20px}.stat{padding:23px}}
@media(max-width:1150px){.layout{grid-template-columns:196px minmax(0,1fr)}.main{padding:27px 24px}.topbar{padding:0 24px}.editor-grid{grid-template-columns:minmax(0,1fr)}.summary-panel{position:static}.stats{gap:11px}.stat{padding:15px}.stat-top{font-size:11px}td,th{padding-left:15px;padding-right:15px}.editor-side{display:grid;grid-template-columns:1fr}.stat-amount{font-size:10px}}
@media(max-width:800px){.layout{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:22px 10px}.brand{padding:0 8px 25px}.brand>div:last-child{display:none}.brand-badge{width:38px;height:38px;flex-shrink:0}.nav-item{justify-content:center;padding:13px}.nav-item span,.nav-count,.nav-label,.sidebar .user-info,.sidebar .user-chip button,.sidebar-bottom>.nav-item{display:none}.sidebar nav{gap:9px}.sidebar .user-chip{justify-content:center}.topbar{height:62px}.main{padding:25px 20px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head{align-items:flex-start}h1{font-size:24px}.company-grid{grid-template-columns:1fr}.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.login-story{padding:35px 10%}.login-story h1{font-size:34px}.login-page{grid-template-columns:1fr 1.1fr}.crumb{font-size:10px}.filters select{min-width:130px;font-size:12px}.card-head{padding:17px}.card-body{padding:18px}.card-head>.actions{gap:5px}.card-head button{font-size:11px;padding:8px}}
@media(max-width:580px){.layout{display:block}.sidebar{position:fixed;bottom:0;top:auto;height:65px;width:100%;z-index:30;border-right:0;border-top:1px solid var(--line);padding:6px 3px}.sidebar .brand,.sidebar .sidebar-bottom{display:none}.sidebar nav{display:flex;gap:1px;justify-content:space-around}.nav-item{width:auto;flex:1;padding:10px 8px;max-width:65px}.nav-item svg{width:22px;height:22px}.main{padding:23px 15px 85px}.topbar{padding:0 15px}.topbar .crumb{font-size:11px}.page-head{gap:10px;margin-bottom:22px}.page-head .primary{font-size:12px;padding:10px;white-space:nowrap}.page-head .primary svg{display:none}h1{font-size:22px}.page-head p{font-size:12px}.stat{min-height:126px}.stat-value{font-size:26px}.stat-top{align-items:flex-start;line-height:1.4}.stat-icon{width:25px;height:25px;flex-shrink:0}.stat-icon svg{width:15px;height:15px}.stat-amount{font-size:10px}.search{flex-basis:100%}.filters{gap:8px}.filters select{min-width:0;width:calc(50% - 4px)}.grid2,.grid3{grid-template-columns:1fr}.grid4{gap:12px}.card-head{flex-wrap:wrap}.card-body{padding:16px}.welcome-strip{padding:17px;align-items:flex-start}.welcome-strip button{font-size:11px;flex-shrink:0}.login-page{display:block}.login-story{padding:27px 25px 30px}.login-story .brand{margin-bottom:20px;padding:0}.login-story .brand>div:last-child{display:block}.login-story h1{font-size:26px;max-width:340px}.login-story p{font-size:13px;margin-bottom:0}.login-form-wrap{padding:65px 25px 35px}.login-form-wrap>.lang{top:16px;right:20px}.card-head h2{font-size:15px}.editor-head{align-items:flex-start;flex-wrap:wrap}.editor-actions{gap:6px}.editor-actions button{font-size:11px}.items-table .item-name{min-width:150px}.items-table th,.items-table td{padding:12px 10px}.page-footer{font-size:9px}.empty{padding:36px 18px}.empty h2{font-size:17px}.empty p{font-size:12px}.card{border-radius:14px}dialog .dialog-head{padding:17px}dialog .dialog-body{padding:18px}.lang button{font-size:10px}.mobile-brand{display:inline-flex}.topbar .mobile-brand{margin-left:auto}.sidebar nav .nav-item[data-nav=users]{display:none}}
