:root{--bg: #f4f5f7;--surface: #ffffff;--surface-2: #f8f9fb;--border: #dfe3e8;--border-strong: #c5cbd3;--text: #18212f;--text-2: #3d4756;--muted: #586170;--primary: #1d4ed8;--primary-hover: #163ba6;--primary-soft: #e8eefc;--good: #0f5f54;--good-soft: #e1f3ef;--warn: #8a4300;--warn-soft: #fff1e0;--bad: #a32020;--bad-soft: #fce8e8;--ring: 0 0 0 3px rgba(29, 78, 216, .28);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.45;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:var(--primary);text-underline-offset:3px}a:hover{color:var(--primary-hover)}h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.01em}h2{margin:0;font-size:17px;font-weight:700}h3{margin:0;font-size:15px;font-weight:700}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.main:focus{outline:none}.skip{position:absolute;left:12px;top:-60px;z-index:30;background:var(--primary);color:#fff;padding:10px 16px;border-radius:8px;font-weight:600;text-decoration:none}.skip:focus{top:12px;color:#fff}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;flex:0 0 232px;background:var(--surface);border-right:1px solid var(--border);padding:16px 12px 12px;display:flex;flex-direction:column;gap:12px}.sidebar .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px;padding:0 8px}.brand__mark,.me__avatar{flex:none;width:30px;height:30px;border-radius:8px;background:var(--primary);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.sidebar nav{display:flex;flex-direction:column;gap:10px}.nav-group{display:flex;flex-direction:column;gap:1px}.nav-group__title{padding:0 10px 2px;font-size:13px;font-weight:600;color:var(--muted)}.sidebar nav a{display:flex;align-items:center;gap:10px;padding:5px 10px;border-radius:8px;text-decoration:none;font-size:14.5px;color:var(--text-2);min-height:33px}.sidebar nav a svg{flex:none;color:var(--muted)}.sidebar nav a:hover{background:#f1f3f6;color:var(--text)}.sidebar nav a.active{background:var(--primary-soft);color:var(--primary);font-weight:600}.sidebar nav a.active svg{color:var(--primary)}.sidebar .foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--border)}.sidebar .me{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;text-decoration:none;color:var(--text);font-weight:600;font-size:14px}.sidebar .me small{display:block;font-weight:400;font-size:13px;color:var(--muted)}.sidebar .me:hover{background:#f1f3f6;color:var(--text)}.me__avatar{background:#e6e9ee;color:var(--text-2);border-radius:50%}.main{flex:1 1 auto;min-width:0;padding:24px 28px 40px;display:flex;flex-direction:column;gap:16px}@media(max-width:1180px)and (min-width:901px){.sidebar{flex-basis:68px;padding:14px 10px;align-items:center}.sidebar .nav-label,.nav-group__title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sidebar .brand{padding:0}.sidebar nav{gap:6px}.nav-group{border-top:1px solid var(--border);padding-top:6px}.nav-group:first-child{border-top:0;padding-top:0}.sidebar{scrollbar-width:thin}.sidebar nav a{justify-content:center;padding:0;width:44px;min-height:36px;position:relative}th,td{padding-left:10px;padding-right:10px}.main{padding:20px 20px 32px}.sidebar nav a .count{position:absolute;top:2px;right:0;min-width:18px;line-height:18px;font-size:11.5px}.sidebar .me{padding:4px}.sidebar .foot .btn{width:44px;padding:0}}@media(max-width:900px){.shell{flex-direction:column}.sidebar{position:static;height:auto;flex:none;border-right:0;border-bottom:1px solid var(--border)}.sidebar nav{flex-direction:row;flex-wrap:wrap}.main{padding:16px}}.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.between{justify-content:space-between}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.stat-label{font-size:13px;font-weight:500;color:var(--muted)}.stat-label a{color:inherit;text-decoration:none}.stat-label a:hover{color:var(--primary);text-decoration:underline}.stat-value{font-size:24px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}.card.attention{border-color:#f3c58a;background:#fffaf2}.card.attention .stat-value{color:var(--warn)}a.card{display:block;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}a.card:hover{border-color:var(--border-strong);box-shadow:0 2px 8px #18212f0f;color:inherit}.muted{color:var(--muted);font-size:13px}.note{background:var(--primary-soft);border-radius:10px;padding:12px 14px;font-size:14px;color:var(--text-2)}.section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:8px}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14.5px}th{text-align:left;color:var(--muted);font-size:13px;font-weight:600;padding:10px 14px;white-space:nowrap;background:var(--surface-2);border-bottom:1px solid var(--border)}td{padding:10px 14px;border-top:1px solid #e9ecf0;vertical-align:top}tbody tr:first-child td{border-top:0}tbody tr:hover td{background:#f8fafc}td[style*="text-align: right"],th[style*="text-align: right"],td.num,th.num{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}td a:not(.btn){color:var(--text);font-weight:600;text-decoration:none}td:has(>a:not(.btn)+.muted){min-width:150px}td a:not(.btn):hover{color:var(--primary);text-decoration:underline}tr.dim td{color:var(--muted)}tr.dim td a:not(.btn){color:var(--muted)}.btn{min-height:40px;padding:0 14px;border-radius:8px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;transition:background-color .12s,border-color .12s,transform .06s}.btn:hover{background:#f3f5f8;border-color:#aeb6c1;color:var(--text)}.btn:active:not(:disabled){transform:translateY(1px)}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:#fff}.btn.danger{color:var(--bad)}.btn.danger:hover{background:var(--bad-soft);border-color:#e7b3b3;color:var(--bad)}.btn.small{min-height:32px;padding:0 10px;font-size:13.5px}.btn.icon{min-width:32px;padding:0;font-size:18px;line-height:1}.btn:disabled{opacity:.55;cursor:default}.tabbar{display:flex;gap:4px;border-bottom:1px solid var(--border);flex-wrap:wrap}.tab{position:relative;border:0;background:none;font:inherit;font-size:14.5px;font-weight:600;color:var(--muted);padding:9px 12px 11px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;border-radius:6px 6px 0 0}.tab:hover{color:var(--text);background:#eef1f4}.tab.on{color:var(--primary)}.tab.on:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--primary);border-radius:2px}.chip{min-height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text-2);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.chip:hover{border-color:#aeb6c1;color:var(--text)}.chip.on{background:var(--text);border-color:var(--text);color:#fff}.count{display:inline-block;min-width:20px;padding:0 6px;border-radius:999px;background:#e6e9ee;color:var(--text-2);font-size:12.5px;font-weight:700;line-height:20px;text-align:center}.chip.on .count{background:#ffffff38;color:#fff}.count.bad{background:var(--bad);color:#fff;margin-left:auto}.row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;white-space:nowrap}.menu{position:fixed;z-index:40;min-width:200px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 28px #18212f24;padding:6px;display:flex;flex-direction:column}.menu__item{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;font-size:14px;color:var(--text);padding:9px 12px;border-radius:6px;cursor:pointer;text-decoration:none;white-space:nowrap}.menu__item:hover,.menu__item:focus-visible{background:#f1f3f6;color:var(--text);outline:none}.menu__item.danger{color:var(--bad)}.menu__item:disabled{opacity:.5;cursor:default}.field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500;color:var(--text-2)}.field input,.field select,.field textarea,.date-input input:first-child{min-height:40px;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;font:inherit;font-size:14.5px;font-weight:400;color:var(--text);background:var(--surface)}.field textarea{padding:10px 12px;min-height:72px}.field input:focus,.field select:focus,.field textarea:focus,.date-input input:first-child:focus{outline:none;border-color:var(--primary);box-shadow:var(--ring)}input[aria-invalid=true]{border-color:var(--bad)!important}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:560px){.grid2{grid-template-columns:1fr}}.date-input{position:relative;display:inline-flex;width:150px}.field .date-input{width:auto;min-width:150px}.date-input input:first-child{width:100%;padding-right:38px;font-variant-numeric:tabular-nums}.date-input__pick{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:6px;background:none;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.date-input__pick:hover{background:#f1f3f6;color:var(--text)}.date-input__native{position:absolute;right:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}.month-input{display:inline-flex;align-items:center;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);min-height:40px}.month-input button{width:36px;align-self:stretch;border:0;background:none;font-size:20px;color:var(--text-2);cursor:pointer;border-radius:8px}.month-input button:hover{background:#f1f3f6}.month-input output{min-width:130px;text-align:center;font-size:14.5px;font-weight:600;color:var(--text)}.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12.5px;font-weight:600;background:#eef0f3;color:var(--text-2);white-space:nowrap}.badge.good{background:var(--good-soft);color:var(--good)}.badge.bad{background:var(--bad-soft);color:var(--bad)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.blue{background:var(--primary-soft);color:var(--primary)}.error{background:var(--bad-soft);color:var(--bad);border-radius:8px;padding:10px 12px;font-size:14px}.ok{background:var(--good-soft);color:var(--good);border-radius:8px;padding:10px 12px;font-size:14px}.center-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}.auth-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:14px;padding:28px;box-shadow:0 8px 30px #18212f0f}.auth-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px}.auth-brand .brand__mark{width:36px;height:36px;font-size:16px;border-radius:10px}.auth-sub{margin:-6px 0 4px;color:var(--muted);font-size:14px}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#18212f73;display:flex;align-items:flex-start;justify-content:center;padding:48px 16px;overflow-y:auto;z-index:20}.modal{width:100%;max-width:560px;background:var(--surface);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 50px #18212f33}.modal:focus{outline:none}.days{display:flex;gap:4px;flex-wrap:wrap}.day{min-width:36px;height:34px;border-radius:6px;border:1px solid var(--border-strong);background:var(--surface);font:inherit;font-size:13px;cursor:pointer}.day.on{background:var(--text);border-color:var(--text);color:#fff;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.chart{display:flex;flex-direction:column;gap:10px}.chart__plot{position:relative}.chart__plot svg{display:block}.chart__base{stroke:var(--border-strong);stroke-width:1}.chart__bar{fill:var(--primary);transition:fill .12s}.chart__bar.on{fill:var(--primary-hover)}.chart__value{font-size:13px;font-weight:600;fill:var(--text)}.chart__tick{font-size:13px;fill:var(--muted)}.chart__tip{position:absolute;top:0;transform:translate(-50%);pointer-events:none;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:6px 10px;box-shadow:0 6px 18px #18212f1f;white-space:nowrap;font-size:14px}.reports{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.report-list{position:sticky;top:16px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:1px}.report-list__title{padding:10px 10px 4px;font-size:13px;font-weight:600;color:var(--muted)}.report-list button{text-align:left;border:0;background:none;font:inherit;font-size:14.5px;color:var(--text-2);padding:8px 10px;border-radius:6px;cursor:pointer}.report-list button:hover{background:#f1f3f6;color:var(--text)}.report-list button[aria-selected=true]{background:var(--primary-soft);color:var(--primary);font-weight:600}.report-body{display:flex;flex-direction:column;gap:14px;min-width:0}@media(max-width:1180px){.reports{grid-template-columns:1fr}.report-list{position:static;flex-direction:row;flex-wrap:wrap;gap:4px}.report-list__title{display:none}}.help{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.help-list button[aria-current=true]{background:var(--primary-soft);color:var(--primary);font-weight:600}.help-list{max-height:calc(100vh - 120px);overflow-y:auto}.help-article{display:flex;flex-direction:column;gap:12px;padding:22px 26px}.help-article h2{font-size:22px}.help-article p{margin:0;line-height:1.6}.help-where{font-size:14.5px;color:var(--text-2)}.help-where span{font-weight:600;color:var(--muted);margin-right:4px}.help-steps{margin:6px 0 0;padding-left:0;list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:18px}.help-steps>li{counter-increment:step;position:relative;padding-left:40px;display:flex;flex-direction:column;gap:10px}.help-steps>li:before{content:counter(step);position:absolute;left:0;top:-1px;width:28px;height:28px;border-radius:50%;background:#e11d48;color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center}.help-shot{display:block;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:none;cursor:zoom-in;max-width:900px}.help-shot img{display:block;width:100%;height:auto}.help-shot:hover{border-color:var(--border-strong);box-shadow:0 4px 14px #18212f1a}.kbd{display:inline-block;padding:0 7px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:6px;background:var(--surface-2);font-size:.92em;font-weight:600;white-space:nowrap}.help-tips{background:#fffaf2;border:1px solid #f3dcb7;border-radius:10px;padding:12px 16px}.help-tips ul{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:4px;line-height:1.55}.help-related{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.help-related .chip{text-decoration:none}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#111827d9;display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}.lightbox img{max-width:100%;max-height:100%;border-radius:8px;box-shadow:0 20px 60px #0006}.lightbox:focus{outline:none}.help-fab{position:fixed;right:20px;bottom:20px;z-index:15;width:46px;height:46px;border-radius:50%;background:var(--surface);border:1px solid var(--border-strong);color:var(--primary);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px #18212f24;text-decoration:none}.help-fab:hover{background:var(--primary);color:#fff;border-color:var(--primary)}@media print{.help-fab{display:none}}@media(max-width:1180px){.help{grid-template-columns:1fr}.help-list{max-height:none;flex-direction:row;flex-wrap:wrap}.help-list .report-list__title{display:none}}.statement-screen .inv-head{display:none}.statement-screen .print-table{font-size:14.5px}.statement-screen .print-table th,.statement-screen .print-table td{border:0;border-top:1px solid #e9ecf0;color:inherit;padding:9px 14px}.statement-screen .print-table th{border-top:0;border-bottom:1px solid var(--border);font-size:13px;color:var(--muted)}.print-root{background:#fff;min-height:100vh;padding:16px;display:flex;flex-direction:column;gap:16px;align-items:center}.print-bar{width:100%;max-width:190mm;display:flex;justify-content:space-between;align-items:center;gap:12px}.print-sheet{width:100%;max-width:190mm;color:#000;font-size:12px;display:flex;flex-direction:column;gap:10px}.print-sheet+.print-sheet{border-top:2px dashed #c3c9d1;padding-top:16px}.inv-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.inv-info{font-size:12px}.inv-info td{border:0;padding:2px 8px 2px 0}.print-table{font-size:11.5px}.print-table th,.print-table td{border:1px solid #000;padding:3px 5px;color:#000;vertical-align:top}.print-table th{font-size:11px;white-space:normal}.print-table .num{text-align:right;white-space:nowrap}.print-table thead{display:table-header-group}.print-table tr{page-break-inside:avoid}.signs{display:flex;justify-content:space-between;gap:16px;margin-top:18px;flex-wrap:wrap}@media print{@page{size:A4;margin:10mm}body{background:#fff}.print-root{padding:0;display:block}.print-bar,.print-root>.error{display:none}.print-sheet{max-width:none}.print-sheet+.print-sheet{border-top:0;padding-top:0}.invoice{break-after:page}.invoice:last-child{break-after:auto}}
