:root{
  color-scheme:light;--ink:#18263e;--sub:#5f6c80;--faint:#788598;--border:#e1e6ef;--soft:#eef2fa;--paper:#fff;--bg:#f5f7fb;--accent:#315de4;--green:#138368;--mint:#d6eee8;--nav:#fff;--sidebar:215px;
  font-family:Inter,"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--bg);font-variant-numeric:tabular-nums;
}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}
:focus-visible{outline:3px solid #9cb2ff;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.ico{width:19px;height:19px;flex:none;vertical-align:middle}
.initial-state{min-height:100dvh;display:grid;place-items:center;color:var(--sub)}.initial-state .feedback{max-width:460px}
.app-layout{min-height:100dvh}.side-nav{position:fixed;inset:0 auto 0 0;z-index:6;display:flex;flex-direction:column;width:var(--sidebar);background:var(--nav);border-right:1px solid var(--border);color:var(--ink)}
.side-brand{display:flex;align-items:center;gap:11px;min-height:87px;padding:0 22px}
.brand-mark{display:inline-grid;place-items:center;width:41px;height:41px;flex:none;border-radius:12px;background:linear-gradient(145deg,#3e6af1,#264fcb);color:#fff;box-shadow:0 3px 7px #2749a027}
.brand-mark svg{width:33px;height:33px}.brand-mark.large{width:44px;height:44px}.brand-mark.large svg{width:36px;height:36px}
.side-brandtext{display:grid;gap:2px}.side-brandtext b{font-size:25px;line-height:1.15;letter-spacing:.055em;font-weight:750;color:#12233d}.side-brandtext span{color:#67768b;font-size:11px;letter-spacing:.1em}
.side-menu{flex:1;overflow-y:auto;padding:2px 13px 22px;scrollbar-width:thin}.nav-section{margin:14px 0 22px}.nav-caption{padding:0 13px 6px;font-size:11px;color:#768196;letter-spacing:.07em;font-weight:600}
.nav-link{display:flex;align-items:center;gap:12px;min-height:42px;width:100%;margin:2px 0;padding:8px 13px;border-radius:8px;font-weight:520;color:#45546b;font-size:14px;line-height:1.45;transition:background .14s,color .14s}.nav-link>.ico{width:19px;height:19px;color:#697991;stroke-width:1.7}
.nav-link:hover{background:#f2f5fc;color:#234ecf}.nav-link.active{background:#e9efff;color:#244fcf;font-weight:700}.nav-link.active>.ico{color:#315de4}.nav-link.active::after{content:"";margin-left:auto;width:5px;height:5px;border-radius:50%;background:#426cea}.nav-mini{display:none}
.side-footer{display:flex;align-items:center;gap:10px;margin:0 17px;padding:18px 8px;border-top:1px solid var(--border);font-size:12px;color:#68758a}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#159c79;box-shadow:0 0 0 4px #e6f6f0;margin:0 4px}
.workspace{margin-left:var(--sidebar);min-width:0}.topbar{min-height:60px;padding:0 clamp(20px,2.8vw,48px);background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px}
.crumb,.top-actions,.top-date,.user-block,.user-text,.month-picker,.month-label,.page-tools,.toolbar,.login-brandline,.demo-heading{display:flex;align-items:center}.crumb{gap:12px;font-size:12px;color:#778599;line-height:1.3;white-space:nowrap}.crumb .crumb-line{height:17px;border-left:1px solid var(--border)}.crumb i{font-style:normal;color:#a7b1c2}.crumb b{color:#2d3e57;font-weight:620}
.top-actions{gap:14px;white-space:nowrap}.top-date{gap:7px;color:#6c798e;font-size:12px}.top-date>.ico{width:15px;height:15px}.user-block{gap:8px;padding-left:16px;border-left:1px solid var(--border)}
.user-avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;color:#3151b2;background:#e8edfe;font-size:15px;font-weight:700}.user-text{flex-direction:column;gap:0;align-items:flex-start;line-height:1.3}.user-text b{font-size:12px;font-weight:650}.user-text small{font-size:10px;color:#69758a}
.icon-btn,.period-step{display:inline-grid;place-items:center;border:0;background:transparent;color:#64738a;padding:0;border-radius:7px}.icon-btn{width:32px;height:32px}.icon-btn:hover,.period-step:hover{background:var(--soft);color:var(--accent)}.icon-btn>.ico{width:17px;height:17px}
.mobile-menu,.mobile-nav-close,.nav-scrim{display:none}.switch-role{display:flex;align-items:center;gap:5px;color:var(--sub);font-size:11px}.switch-role select{max-width:116px;padding:4px 7px;font-size:12px}
.main{max-width:1650px;margin:0 auto;padding:clamp(22px,2.3vw,38px) clamp(20px,2.8vw,48px) 40px;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 22px}
.page-heading h1{font-size:clamp(25px,2.25vw,37px);font-weight:720;letter-spacing:-.045em;line-height:1.3;color:#17243b}.page-heading p{font-size:13px;color:#66748a;line-height:1.5;margin-top:5px}.month-picker{min-height:35px;flex-shrink:0;border:1px solid #dbe2ed;border-radius:8px;background:#fff;padding:2px;box-shadow:0 1px 2px #21355107}
.period-step{width:26px;height:27px}.period-step>.ico{width:14px;height:14px}.month-label{position:relative;gap:7px;padding:0 8px;min-height:27px;color:#35445c;font-size:12px;font-weight:600;justify-content:center}.month-label>.ico{width:15px;height:15px;color:#617393}
.month-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.month-label input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.month-label:focus-within{outline:2px solid #a9bcfa;border-radius:4px}
#content{min-width:0}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 2px 7px #22365005;min-width:0}
.table-wrap{width:100%;max-width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#bbc6d7 transparent}table{border-collapse:collapse;width:100%;font-size:13px;color:#2d3b52;line-height:1.5}
th,td{text-align:left;border-bottom:1px solid #e9edf4;padding:12px 14px}th{font-size:12px;white-space:nowrap;color:#68768c;font-weight:600;background:#f6f8fb}td{vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fafbff}
.num,.amount{font-variant-numeric:tabular-nums}.muted{color:var(--sub)}.empty{padding:32px 16px;text-align:center;color:#728096;font-size:13px}.badge,.status-pill{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;line-height:1.45;padding:3px 7px;border-radius:5px;background:#edf1fa;color:#475e84;font-weight:550}.badge.warning,.badge.warn,.status-pill.warm{color:#946018;background:#fff2d8}.badge.danger,.badge.error{color:#ad3d43;background:#fff0f0}.badge.neutral{color:#667585;background:#edf1f5}
.page-tools,.toolbar{gap:8px;flex-wrap:wrap;justify-content:space-between}.page-tools{margin-bottom:15px}.toolbar{margin-bottom:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:7px 13px;border:1px solid #d9e0eb;border-radius:7px;background:#fff;color:#38465d;font-size:13px;font-weight:570;line-height:1.45;transition:background .13s,border-color .13s}.btn:hover{background:#f5f7fc;border-color:#aabbdb}.btn.primary{color:#fff;background:#315de4;border-color:#315de4;box-shadow:0 1px 2px #1b3a9624}.btn.primary:hover{background:#254dcc;border-color:#254dcc}.btn.danger{color:#b23f48;border-color:#eed0d2}.btn>.ico{width:16px;height:16px}
input,select,textarea{max-width:100%;min-width:0;border:1px solid #d5dde9;border-radius:7px;background:white;padding:8px 10px;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #a8bcff;outline-offset:0}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}input::placeholder,textarea::placeholder{color:#8996a9}
.feedback{display:flex;align-items:center;flex-direction:column;gap:10px;padding:35px;text-align:center}.feedback p{color:var(--sub)}.feedback-icon{color:#a36318}.loading-state{display:flex;align-items:center;gap:9px;padding:28px;color:var(--sub)}.loading-state span{width:15px;height:15px;border:2px solid #d8e1f3;border-top-color:#315de4;border-radius:50%;animation:xt-spin .75s linear infinite}@keyframes xt-spin{to{transform:rotate(360deg)}}
.notifications{position:fixed;z-index:20;right:20px;top:70px;display:grid;gap:8px;max-width:min(440px,calc(100vw - 30px))}.toast{display:flex;align-items:center;gap:10px;padding:12px 15px;border:1px solid #d5e4dc;background:#f8fffc;color:#195b46;border-radius:9px;box-shadow:0 8px 26px #18264118;font-size:13px;overflow-wrap:anywhere}.toast.error,.form-error{background:#fff7f6;border-color:#f1ccca;color:#9a3033}
#formDialog{border:0;border-radius:15px;padding:0;width:580px;max-width:calc(100vw - 26px);max-height:89dvh;color:var(--ink);box-shadow:0 28px 90px #13284c40;background:#fff}#formDialog::backdrop{background:#14244352}
.modal-head,.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px}.modal-head{border-bottom:1px solid var(--border)}.modal-head h2{font-size:19px;font-weight:650;letter-spacing:-.02em}.modal-foot{position:sticky;bottom:0;border-top:1px solid var(--border);justify-content:flex-end;background:#fafbfd}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;padding:21px 24px}
.form-field{display:flex;flex-direction:column;gap:6px;min-width:0}.form-field.wide{grid-column:1/-1}.form-field label{font-size:13px;color:#35445b;font-weight:580}.form-field small{font-size:11px;color:#6b768a}.required-star{color:#c14c48}.form-error{font-size:13px;border:1px solid #eccdce;border-radius:7px;padding:9px 12px}#entryForm>.form-error{margin:0 24px 18px}
@media(min-width:751px){
 .app-layout.is-compact{--sidebar:76px}.is-compact .side-brand{padding:0;justify-content:center;min-height:75px}.is-compact .side-brandtext,.is-compact .side-footer>span:last-child{display:none}.is-compact .side-menu{padding:0 8px 16px}.is-compact .nav-section{margin:8px 0;padding:0 0 8px;border-bottom:1px solid #eef1f6}.is-compact .nav-section:last-child{border:0}.is-compact .nav-caption{display:none}.is-compact .nav-link{position:relative;flex-direction:column;gap:3px;padding:7px 2px;min-height:48px}.is-compact .nav-link>span{display:none}.is-compact .nav-mini{display:block;font-size:10px;line-height:1.2}.is-compact .nav-link.active::after{display:none}.is-compact .side-footer{justify-content:center;margin:0 10px}
}
@media(max-width:1050px){.main{padding:22px 18px 32px}.topbar{padding:0 18px}.page-heading{margin-bottom:17px}.top-date{display:none}.user-block{border-left:0;padding-left:0}}
@media(max-width:750px){.side-nav{width:225px;z-index:12;transform:translateX(-103%);transition:transform .15s}.side-nav.opened{transform:none}.side-brand{min-height:74px}.workspace{margin:0}.desktop-menu{display:none}.mobile-menu,.mobile-nav-close{display:inline-grid}.mobile-nav-close{margin-left:auto}.nav-scrim{position:fixed;inset:0;width:100%;height:100%;display:block;background:#172d4b50;border:0;z-index:11}.nav-open{overflow:hidden}.main{padding:19px 13px 30px}.topbar{min-height:52px;padding:0 12px}.top-actions{gap:6px}.crumb{gap:7px}.crumb-line{display:none}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.page-heading{gap:10px}.user-text small{display:none}.switch-role span{display:none}.switch-role select{max-width:89px}.notifications{top:58px}}
@media(max-width:490px){.main{padding:17px 10px 26px}.page-heading{align-items:flex-start;flex-wrap:wrap;row-gap:8px}.page-heading h1{font-size:23px}.page-heading .month-picker{margin-left:auto}.page-heading p{display:none}.month-label{padding:0 4px;font-size:11px}.period-step{width:17px}.user-text{display:none}.user-avatar{width:29px;height:29px}.crumb{font-size:11px}.form-grid{grid-template-columns:1fr;padding:15px}.modal-head,.modal-foot{padding:14px 16px}.top-actions:has(.switch-role) .user-block{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:0s!important;transition-duration:0s!important}}
