:root{--bg: #f4f6fb;--surface: #ffffff;--surface-2: #f8fafc;--line: #e4e7ec;--line-strong: #d0d5dd;--text: #1d2939;--text-muted: #667085;--accent: #2f5d50;--accent-hover: #24493f;--accent-soft: #e8efe9;--accent-ink: #23503f;--sand: #dcc7a8;--gold-ink: #7c5a1b;--gold-soft: #f7efdf;--gold-line: #e8dabd;--danger: #b42318;--danger-soft: #fef3f2;--warn: #b54708;--warn-soft: #fffaeb;--ok: #067647;--ok-soft: #ecfdf3;--radius: 14px;--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:Segoe UI,Segoe UI Variable,system-ui,-apple-system,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}h1{font-size:26px;font-weight:650;letter-spacing:-.01em}h2{font-size:18px;font-weight:650}h3{font-size:15px;font-weight:650}a{color:var(--accent)}.muted{color:var(--text-muted)}.small{font-size:13px}.tiny{font-size:12px}.nowrap{white-space:nowrap}.mono-num{font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border-radius:10px;border:1px solid transparent;font:inherit;font-weight:600;font-size:14px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease;white-space:nowrap}.btn:focus-visible{outline:3px solid var(--accent-soft);outline-offset:1px}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--line-strong)}.btn-secondary:hover:not(:disabled){border-color:var(--accent);color:var(--accent-ink)}.btn-ghost{background:transparent;color:var(--text-muted);border-color:transparent}.btn-ghost:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.btn-danger{background:var(--danger-soft);color:var(--danger);border-color:#fecdca}.btn-danger:hover:not(:disabled){background:#fee4e2}.btn-sm{min-height:32px;padding:5px 11px;font-size:13px;border-radius:8px}.btn-block{width:100%}.field{display:flex;flex-direction:column;gap:6px}.field>span{font-size:13px;font-weight:600;color:var(--text-muted)}input,select,textarea{width:100%;min-height:40px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:14px}textarea{min-height:78px;resize:vertical}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}input:disabled{background:var(--surface-2);color:var(--text-muted)}.field-hint{font-size:12px;color:var(--text-muted)}.form-error{padding:10px 12px;border-radius:9px;background:var(--danger-soft);border:1px solid #fecdca;color:var(--danger);font-size:13px;font-weight:600}.form-success{padding:10px 12px;border-radius:9px;background:var(--ok-soft);border:1px solid #abefc6;color:var(--ok);font-size:13px;font-weight:600}.account-section{margin-top:2px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}.account-section h3{font-size:14px;margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .span-2{grid-column:1 / -1}.badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;line-height:20px;white-space:nowrap}.badge-ok{background:var(--ok-soft);color:var(--ok)}.badge-warn{background:var(--warn-soft);color:var(--warn)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-neutral{background:var(--surface-2);color:var(--text-muted);border:1px solid var(--line)}.badge-accent{background:var(--gold-soft);color:var(--gold-ink)}.chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:6px;background:var(--surface-2);border:1px solid var(--line);color:var(--text-muted);font-size:12px;white-space:nowrap}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;background:#10182873;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{width:min(560px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:var(--surface);border-radius:16px;box-shadow:0 24px 48px #10182838}.modal-wide{width:min(760px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 14px;border-bottom:1px solid var(--line)}.modal-head p{margin-top:3px;font-size:13px;color:var(--text-muted)}.modal-body{padding:18px 22px;overflow:auto}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px 18px;border-top:1px solid var(--line)}.modal-close{border:0;background:transparent;color:var(--text-muted);font-size:22px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:6px}.modal-close:hover{background:var(--surface-2);color:var(--text)}@media(max-width:640px){.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px)}.modal-head{padding:16px 16px 12px}.modal-body{padding:14px 16px}.modal-foot{padding:12px 16px 14px}.modal-foot .btn{flex:1}.modal .btn{min-height:44px}.modal-close{min-width:44px;min-height:44px}.modal .field input{min-height:44px;font-size:16px}}.toast-stack{position:fixed;left:50%;bottom:24px;transform:translate(-50%);z-index:80;display:flex;flex-direction:column;gap:8px;width:min(420px,calc(100vw - 32px))}.toast{padding:11px 14px;border-radius:10px;background:#1d2939;color:#fff;font-size:13px;font-weight:600;box-shadow:0 10px 24px #10182840;animation:toast-in .18s ease}.toast-error{background:var(--danger)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spacer{flex:1}.empty{padding:46px 20px;text-align:center;color:var(--text-muted)}.empty h3{color:var(--text);margin-bottom:4px}.spinner{width:22px;height:22px;border-radius:50%;border:2.5px solid var(--line);border-top-color:var(--accent);animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.center-screen{min-height:100vh;display:flex;align-items:center;justify-content:center}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-mark{flex:none;border-radius:16%;background:var(--accent)}.brand-text{display:flex;flex-direction:column;line-height:1.15;min-width:0}.brand-name{font-size:15px;font-weight:700;letter-spacing:-.01em}.brand-sub{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:radial-gradient(circle at 86% 12%,rgba(230,211,167,.38),transparent 40%),radial-gradient(circle at 78% 88%,rgba(22,98,74,.06),transparent 42%),#faf7f1}.login-back{position:absolute;top:22px;left:20px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:9px;color:#ffffffd1;font-size:13px;font-weight:600;text-decoration:none}.login-back svg{width:15px;height:15px;flex:none}.login-back:hover,.login-back:focus-visible{background:#ffffff17;color:#e6d3a7;outline:none}.login-panel{padding:96px 56px 56px;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 18% 8%,rgba(255,255,255,.07),transparent 42%),#16624a;color:#fff;position:relative;overflow:hidden}.login-panel:after{content:"";position:absolute;right:-90px;bottom:-110px;width:340px;height:340px;border:1px solid rgba(230,211,167,.32);border-radius:50%;box-shadow:0 0 0 44px #e6d3a712,0 0 0 88px #e6d3a70d}.login-brand{display:flex;align-items:center;gap:11px}.login-mark{flex:none;width:46px;height:46px;display:grid;place-items:center;border:1px solid rgba(230,211,167,.5);border-radius:14px;background:#ffffff1a;color:#e6d3a7;box-shadow:0 6px 14px #0000001f}.login-mark svg{width:26px;height:26px}.login-brand h1{margin:0;font-size:15px;font-weight:700;letter-spacing:-.01em;color:#fff}.login-brand span{color:#e6d3a7e6;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}.login-panel-title{margin:44px 0 0;max-width:10.5em;color:#fff;font-size:clamp(30px,3.4vw,42px);font-weight:700;line-height:1.15;letter-spacing:-.02em}.login-panel-text{margin:16px 0 0;max-width:30em;color:#ffffffc7;font-size:15px;line-height:1.5}.login-points{margin:30px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;color:#ffffffe6;font-size:14px}.login-points li{display:flex;align-items:flex-start;gap:10px}.login-points li:before{content:"";flex:none;width:8px;height:8px;margin-top:6px;border-radius:2px;background:#e6d3a7}.login-form-side{display:flex;align-items:center;justify-content:center;padding:40px 28px}.login-card{width:min(400px,100%);display:flex;flex-direction:column;gap:16px}.login-page .login-card h2{font-size:24px;color:#191712}.login-card .muted{margin-top:-8px;color:#6f685c}.login-page .field>span{color:#6f685c}.login-page input{min-height:44px;border-color:#ddd2bf}.login-page input:focus{border-color:#16624a;box-shadow:0 0 0 3px #16624a29}.login-page .btn-primary{border-color:#16624a;background:#16624a}.login-page .btn-primary:hover:not(:disabled){border-color:#0e4a37;background:#0e4a37}.login-page .demo-link{padding:13px 3px;margin:-13px 0}.login-foot{margin-top:8px;font-size:12px;color:#a49b8c;text-align:center}.login-version{display:block;margin-top:8px;font-size:11px;letter-spacing:.04em;color:#a49b8c}.demo-hint{margin-top:-2px;padding:10px 12px;border:1px dashed #e6d3a7;border-radius:10px;background:#faf7f1;font-size:12.5px;color:#6f685c;text-align:center}.demo-link{border:0;background:none;padding:0;font:inherit;font-weight:650;color:#16624a;text-decoration:underline;cursor:pointer}.install-hint{margin-top:-2px;font-size:12.5px;color:#6f685c;text-align:center}.login-forgot{display:flex;justify-content:flex-end;margin-top:-8px}.forgot-policy{padding:10px 12px;border:1px solid #e6d3a7;border-radius:10px;background:#faf7f1;font-size:12.5px;color:#6f685c}.forgot-note{padding:9px 12px;border:1px solid #cfe6d8;border-radius:10px;background:#e3f1e9;font-size:12.5px;color:#0e4a37}.forgot-actions{display:flex;justify-content:space-between;gap:12px}.forgot-back{border:0;background:none;padding:0;font:inherit;font-size:12.5px;color:#6f685c;text-decoration:underline;cursor:pointer}.forgot-back:disabled{cursor:default;opacity:.6}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:216px;padding:22px 12px 16px;background:#152238;color:#dbe4f2;display:flex;flex-direction:column;overflow-y:auto}.sidebar-brand{display:flex;align-items:center;gap:10px;margin:0 4px 18px;padding:2px 2px 20px;border-bottom:1px solid rgba(220,199,168,.22)}.sidebar-brand .brand-name{color:#fff}.sidebar-brand .brand-sub{color:#9eacc3}.sidebar-close{display:none;margin-left:auto;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:#223550;color:#dbe4f2;font-size:20px;line-height:1;cursor:pointer}.sidebar-nav{display:flex;flex-direction:column;gap:14px}.sidebar-group{display:flex;flex-direction:column;gap:2px}.sidebar-label{margin:0 10px 6px;color:#c3b195;font-size:9.5px;font-weight:700;letter-spacing:1.4px}.sidebar-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#bac6d8;font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}.sidebar-icon{flex:none;width:16px;color:#8fa3c4;text-align:center}.sidebar-item:hover{background:#1e3350;color:#fff}.sidebar-item.active{background:#1d3a33;color:#fff;box-shadow:inset 3px 0 0 var(--sand)}.sidebar-item.active .sidebar-icon{color:#e7d9c2}.sidebar-foot{margin-top:auto;padding:22px 4px 2px}.sidebar-note{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid rgba(220,199,168,.3);border-radius:10px;background:#dcc7a80f;color:#c5bda9;font-size:11.5px;line-height:1.5}.sidebar-note .badge{align-self:flex-start}.sidebar-backdrop,.sidebar-toggle{display:none}.main{margin-left:216px;min-height:100vh;display:flex;flex-direction:column}.topbar{background:var(--surface);border-bottom:1px solid var(--gold-line);position:sticky;top:0;z-index:30}.topbar-inner{max-width:1240px;margin:0 auto;padding:10px 22px;display:flex;align-items:center;gap:14px}.topbar-brand{display:none}.topbar-crumb{display:flex;align-items:center;gap:7px;font-size:13px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-crumb strong{font-weight:650}.crumb-sep{color:#c3cad7}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:14px;min-width:0}.account-action .label-short{display:none}.user-chip{display:flex;align-items:center;gap:10px;min-width:0}.avatar{flex:none;width:34px;height:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}.user-chip-name{font-size:13px;font-weight:650;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-chip-role{font-size:11px;color:var(--text-muted);white-space:nowrap}.banner{max-width:1240px;margin:14px auto 0;padding:11px 16px;border-radius:11px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;border:1px solid}.banner-warn{background:var(--warn-soft);border-color:#fedf89;color:var(--warn)}.banner-danger{background:var(--danger-soft);border-color:#fecdca;color:var(--danger)}.banner .btn{margin-left:auto}.page{width:100%;max-width:1240px;margin:0 auto;padding:26px 22px 60px;flex:1}.page-head{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:18px}.page-head h1{font-size:24px;display:inline-block;padding-bottom:4px;border-bottom:2px solid var(--sand)}.page-head .sub{margin-top:3px;color:var(--text-muted);font-size:14px}.page-actions{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.footer{padding:18px 22px 26px;text-align:center;font-size:12px;color:var(--text-muted)}.footer strong{color:var(--text);font-weight:600}.footer strong:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:2px;background:var(--sand);vertical-align:1px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.detail-card{padding:20px 22px}.detail-card h2{margin-bottom:14px}.detail-rows{display:flex;flex-direction:column}.detail-row{display:flex;gap:16px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px}.detail-row:last-child{border-bottom:0}.detail-row dt{flex:0 0 42%;color:var(--text-muted);font-size:13px}.detail-row dd{margin:0;font-weight:600;text-align:right;flex:1;overflow-wrap:anywhere}.licence-hero{padding:20px 22px;display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:linear-gradient(120deg,var(--accent-soft),#fbf8f1);border:1px solid #dfe7e1}.licence-hero h2{font-size:17px}.licence-hero .sub{color:var(--text-muted);font-size:13px;margin-top:2px}@media(max-width:900px){.sidebar{width:min(86vw,280px);padding:20px 14px;z-index:50;visibility:hidden;transform:translate(-100%);transition:transform .22s ease,visibility 0s linear .22s;box-shadow:0 0 45px #0a101c59}.sidebar.open{visibility:visible;transform:translate(0);transition:transform .22s ease}.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:45;background:#0c121e80}.sidebar-close{display:grid;place-items:center;width:40px;height:40px}.sidebar-item{min-height:44px}.main{margin-left:0}.sidebar-toggle{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--text);font-size:17px;line-height:1;cursor:pointer}.topbar-brand{display:flex}.topbar-crumb{display:none}.topbar-inner{padding:9px 16px;gap:10px}.login-page{grid-template-columns:1fr}.login-panel{padding:68px 24px 32px}.login-back{top:12px;left:10px;min-height:44px;padding:10px 12px}.login-panel-title{margin-top:24px}.login-points{display:none}.login-form-side{padding:30px 20px 44px}.login-page .btn{min-height:48px}.login-page input{min-height:46px;font-size:16px}.forgot-back{display:inline-flex;align-items:center;min-height:44px}.detail-grid{grid-template-columns:1fr}}@media(max-width:640px){.topbar-inner,.page{padding-left:16px;padding-right:16px}.user-chip-role,.topbar-brand .brand-sub{display:none}.brand-name{white-space:nowrap}.user-chip{display:none}.topbar-right{gap:8px}.topbar-right>.badge{display:none}.topbar-right .btn{min-height:40px}.account-action .label-long{display:none}.account-action .label-short{display:inline}.page{padding-top:20px}.page-actions{margin-left:0;width:100%}.page-actions .btn{flex:1}.banner{margin:12px 16px 0}.login-form-side{padding:24px 18px 40px}.btn-sm{min-height:44px;padding:8px 12px}.segmented button{min-height:40px;padding:8px 12px}.check-inline{min-height:44px}.check-inline input[type=checkbox]{width:20px;height:20px}.ledger-range-btn{min-width:44px}}@media(max-width:420px){.topbar-inner{gap:8px}.topbar-brand .brand-text{display:none}.user-chip>div{display:none}}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.toolbar .search{flex:1 1 240px;max-width:360px}.toolbar select{width:auto;min-width:150px}.list-toolbar{align-items:flex-end}.list-toolbar .field{min-width:150px}.list-toolbar .field>span{font-size:12px}.list-toolbar .field.grow{flex:1 1 240px;max-width:360px}.list-toolbar .search{width:100%;max-width:none;flex:1 1 auto}.list-export{min-height:42px}.check-inline{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);font-weight:600;cursor:pointer}.check-inline input[type=checkbox]{width:16px;height:16px;min-height:0}.list{overflow:hidden}.list-head{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1.1fr) 190px;gap:16px;padding:11px 18px;background:var(--surface-2);border-bottom:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.list-head span:last-child{text-align:right}.record-row{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1.1fr) 190px;gap:16px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.record-row:last-child{border-bottom:0}.record-row:hover{background:#fcfcfd}.record-row.is-archived{opacity:.62}.record-main{min-width:0;display:flex;flex-direction:column;gap:4px}.record-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px;font-weight:650;overflow-wrap:anywhere}.record-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--text-muted)}.record-meta span{overflow-wrap:anywhere}.record-stat{display:flex;gap:22px;align-items:center;justify-content:flex-start}.record-stat-stacked{flex-direction:column;align-items:flex-start;gap:8px}.stat-label{display:block;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}.stat-value{display:block;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}.record-side{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.record-badges{display:flex;gap:6px;flex-wrap:wrap}.voucher-table-scroll{overflow-x:auto}.voucher-table{width:100%;border-collapse:collapse;font-size:13.5px}.voucher-table th{padding:10px 14px;background:#fbf8f2;border-bottom:1px solid var(--gold-line);text-align:left;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);white-space:nowrap}.voucher-table td{padding:8px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.voucher-table tbody tr:last-child td{border-bottom:0}.voucher-table tbody tr:hover{background:#fcfcfd}.voucher-table .v-num{text-align:right;font-variant-numeric:tabular-nums}.voucher-table .v-total{font-weight:650}.voucher-table .v-party,.voucher-table .v-ref{max-width:260px;overflow:hidden;text-overflow:ellipsis}.voucher-table .v-ref,.voucher-table .v-user{color:var(--text-muted)}.voucher-link{padding:0;border:0;background:none;font:inherit;font-weight:650;color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.voucher-link:hover{text-decoration-thickness:2px}.voucher-cards{display:none}.voucher-card{display:flex;flex-direction:column;gap:5px;width:100%;padding:13px 15px;border:0;border-bottom:1px solid var(--line);background:transparent;font:inherit;color:var(--text);text-align:left;cursor:pointer}.voucher-card:last-child{border-bottom:0}.voucher-card:active{background:var(--surface-2)}.voucher-card-top,.voucher-card-mid{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.voucher-card-no{font-size:14px;font-weight:700;color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px}.voucher-card-total{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.voucher-card-mid{font-size:13.5px}.voucher-card-party{overflow-wrap:anywhere}.voucher-card-grams{color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.voucher-card-meta{font-size:11.5px;color:var(--text-muted);overflow-wrap:anywhere}.voucher-fields{display:flex;flex-direction:column;gap:16px;min-width:0;margin:0;padding:0;border:0}.money-fields{display:contents;border:0}.rights-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:2px}.segmented{display:inline-flex;padding:3px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface)}.segmented button{border:0;background:transparent;padding:6px 12px;border-radius:7px;font:inherit;font-size:13px;font-weight:600;color:var(--text-muted);cursor:pointer}.segmented button.active{background:var(--accent-soft);color:var(--accent-ink)}.seat-meter{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--text-muted)}.seat-bar{width:120px;height:6px;border-radius:999px;background:var(--line);overflow:hidden}.seat-bar span{display:block;height:100%;background:var(--accent)}.rights-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rights-group{border:1px solid var(--line);border-radius:11px;padding:11px 13px;background:var(--surface-2)}.rights-group h4{margin:0 0 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.check{display:flex;align-items:flex-start;gap:9px;padding:5px 0;cursor:pointer;font-size:13.5px}.check input[type=checkbox]{width:16px;height:16px;min-height:0;margin-top:2px;accent-color:var(--accent)}.check strong{display:block;font-weight:600}.check small{display:block;color:var(--text-muted);font-size:12px}.rights-actions{display:flex;gap:8px;margin-top:8px}.console-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:18px}.console-stat{padding:15px 17px}.console-stat .stat-value{font-size:22px;margin-top:2px}.note-box{padding:12px 14px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);font-size:13px;color:var(--text-muted)}.warning-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13.5px}@media(max-width:820px){.check-inline{min-height:44px}.check-inline input[type=checkbox]{width:20px;height:20px}.list-head{display:none}.record-row{grid-template-columns:1fr;gap:10px;padding:15px 16px}.record-stat{gap:26px}.record-side{justify-content:flex-start}.rights-groups{grid-template-columns:1fr}.toolbar .search{max-width:none;flex-basis:100%}.toolbar select{flex:1}}@media(max-width:820px){.voucher-table-scroll{display:none}.voucher-cards{display:flex;flex-direction:column}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}}.voucher-editor{display:flex;flex-direction:column;gap:16px}.editor-top{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}.editor-top h1{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:24px}.editor-top .sub{margin-top:4px;color:var(--text-muted);font-size:14px;max-width:62ch}.editor-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:6px;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--text-muted);cursor:pointer}.editor-back:hover{color:var(--accent-ink)}.editor-actions{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.editor-actions-bottom{display:flex;justify-content:flex-end;gap:10px;padding-top:2px}.error-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px}.editor-section{padding:18px 20px}.editor-section-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.editor-section-head h2{font-size:16px}.editor-section-head .small{margin-left:auto}.voucher-header-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:end}.voucher-header-grid .span-2{grid-column:span 2}.rate-inline{display:flex;align-items:center;gap:6px}.rate-inline input{flex:1;min-width:0}.rate-unit{font-size:12px;color:var(--text-muted);white-space:nowrap}.line-grid-head,.line-row{display:grid;grid-template-columns:minmax(84px,1fr) 58px 70px 80px 72px minmax(190px,.5fr) 86px 96px 86px 32px;gap:10px;align-items:start}.line-grid-head{padding-bottom:8px;border-bottom:1px solid var(--line);font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}.line-grid-head span{padding-left:2px}.line-grid-head span:nth-child(6){padding-left:16px}.cell-making{padding-left:10px}.cell-stamp,.cell-vat{padding-left:6px}.line-grid-head span:nth-child(7),.line-grid-head span:nth-child(8){padding-left:6px}.line-grid-head span:nth-child(4),.line-grid-head span:nth-child(5),.line-grid-head span:nth-child(9){text-align:right}.cell-vat select:disabled{background:var(--surface-2);color:var(--text-muted)}.line-row{padding:10px 0;border-bottom:1px dashed var(--line)}.line-row:last-of-type{border-bottom:0}.line-cell{display:flex;flex-direction:column;gap:4px;min-width:0}.line-row input,.line-row select{min-height:36px;padding:6px 8px;font-size:13.5px}.cell-label{display:none;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}.line-figure{align-items:flex-end;padding-top:8px;text-align:right}.fine-row{display:flex;align-items:center;gap:4px}.fine-row input{flex:1;min-width:0;text-align:right;font-variant-numeric:tabular-nums}.fine-auto{flex:none;width:24px;height:36px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--text-muted);font-size:13px;cursor:pointer}.fine-auto:hover{color:var(--accent-ink);border-color:var(--accent)}.fine-auto-link{border:0;background:none;padding:0;font:inherit;color:var(--accent-ink);text-decoration:underline;cursor:pointer}.line-figure .figure{font-size:13.5px;font-weight:650;font-variant-numeric:tabular-nums}.line-figure .figure-sub{font-size:11px;font-weight:500;color:var(--text-muted)}.line-total .figure{font-size:14.5px;color:var(--accent-ink)}.making-row{display:flex;align-items:center;gap:5px}.making-row select{flex:none;width:86px;padding:6px 4px;font-size:12.5px}.making-row input{flex:1;min-width:0}.making-equals{flex:none;font-size:12px;font-weight:650;color:var(--accent-ink);font-variant-numeric:tabular-nums;white-space:nowrap}.cell-remove{align-items:flex-end}.line-remove{width:34px;height:36px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-muted);font-size:20px;line-height:1;cursor:pointer}.line-remove:hover:not(:disabled){background:var(--danger-soft);color:var(--danger)}.line-remove:disabled{opacity:.35;cursor:not-allowed}.add-line{margin-top:12px}.editor-bottom{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}.editor-notes{display:flex;flex-direction:column;gap:12px}.editor-notes textarea{min-height:120px}.gold-effect{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid #dfe7e1;border-radius:10px;background:var(--accent-soft)}.gold-effect strong{display:block;margin-top:1px;font-size:17px;font-variant-numeric:tabular-nums;color:var(--accent-ink)}.totals-card h2{margin-bottom:12px}.totals-rows{display:flex;flex-direction:column;gap:8px}.totals-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.totals-row>span:last-child{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.totals-row.sub{font-size:13px;color:var(--text-muted)}.totals-row.sub>span:last-child{font-weight:500}.totals-tag{margin-left:8px;padding:1px 7px;border:1px solid var(--gold-line);border-radius:999px;background:var(--gold-soft);color:var(--gold-ink);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:1px}.totals-note{margin-top:-2px;font-size:12px;line-height:1.45;color:var(--gold-ink)}.totals-row.grand{margin-top:4px;padding-top:12px;border-top:1px solid var(--line-strong);font-size:18px;font-weight:700}.totals-row.grand small{font-size:12px;font-weight:600;color:var(--text-muted)}.discount-row label{font-size:13px;font-weight:600;color:var(--text-muted)}.discount-row input{width:128px;min-height:36px;padding:6px 9px;text-align:right;font-variant-numeric:tabular-nums}.discount-warning{margin-top:-2px;font-size:12px;font-weight:600;text-align:right;color:var(--danger)}.vat-block{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}.vat-choice-row{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.vat-choice-row .segmented{flex:1 1 auto}.vat-choice-row .segmented button{flex:1;padding:6px 8px;font-size:12.5px;white-space:nowrap}.vat-rate-field{display:flex;align-items:center;gap:6px;margin-left:auto}.vat-rate-field>span{font-size:12px;font-weight:600;color:var(--text-muted)}.vat-rate-field input{width:70px;min-height:36px;padding:6px 8px;text-align:right}.vat-rate-field input:disabled{background:var(--surface-2);color:var(--text-muted)}.vat-hint{font-size:12px;color:var(--text-muted)}@media(max-width:1240px){.line-grid-head{display:none}.line-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-bottom:10px;padding:14px;border:1px solid var(--line);border-radius:12px}.line-row:last-of-type{border-bottom:1px solid var(--line)}.cell-label{display:block}.cell-item{grid-column:1 / -1}.cell-making{grid-column:1 / -1;padding-left:0}.cell-stamp,.cell-vat{padding-left:0}.line-figure{align-items:flex-start;padding-top:0;text-align:left}.cell-remove{grid-column:1 / -1;justify-self:end}}@media(max-width:900px){.voucher-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-bottom{grid-template-columns:1fr}}@media(max-width:600px){.editor-back{min-height:44px;padding:8px 2px;margin:-8px 0 2px}.line-row input,.line-row select{min-height:44px;font-size:16px}.line-remove{width:44px;height:44px}.fine-auto{width:30px;height:44px}.discount-row input{min-height:44px}.vat-rate-field input{width:76px;min-height:44px}.voucher-header-grid{grid-template-columns:1fr}.voucher-header-grid .span-2{grid-column:auto}.editor-top h1{font-size:21px}.editor-actions{width:100%;margin-left:0}.editor-actions .btn,.editor-actions-bottom .btn{flex:1}}.ledger-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:14px 16px;margin-bottom:18px}.ledger-toolbar .field{min-width:150px}.ledger-toolbar .field.grow{flex:1 1 240px;max-width:340px}.ledger-toolbar .field>span{font-size:12px}.ledger-range{display:flex;gap:4px}.ledger-range-btn{min-height:40px;padding:8px 9px;font-size:13px}.ledger-scroll{overflow-x:auto}.ledger-sheet{background:#fff;color:#1b1b1b;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px #1018280d;padding:22px 24px 18px;max-width:1180px;min-width:1000px}.ledger-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:10px;border-bottom:2px solid #b99a5f}.ledger-company h1{margin:0;font-size:19px;letter-spacing:-.01em}.ledger-company p{margin:2px 0 0;font-size:11px;color:#555}.ledger-heading{text-align:right}.ledger-heading h2{margin:0;font-size:15px;letter-spacing:.08em;text-transform:uppercase}.ledger-heading p{margin:2px 0 0;font-size:11px;color:#555}.ledger-party{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-top:12px}.ledger-party-name{display:block;font-size:15px;font-weight:700}.ledger-party-meta{margin-top:2px;font-size:11px;color:#555}.ledger-direction{display:block;margin-top:1px;font-size:9.5px;color:#555;text-transform:uppercase;letter-spacing:.04em}.ledger-sides{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:14px 16px;margin-top:14px;align-items:start}.ledger-column{display:grid;grid-row:1 / span 3;grid-template-rows:subgrid;min-width:0}.ledger-column-title{margin:0;padding:5px 10px;border:1px solid #c9c9c9;border-bottom:2px solid #b99a5f;background:#f4f1ea;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-align:center}.ledger-side{min-width:0}.ledger-side-title{margin:0 0 6px;padding-bottom:4px;border-bottom:2px solid #b99a5f;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.ledger-cash-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:5px;padding-bottom:3px;border-bottom:1px solid #c9c9c9}.ledger-cash-head h3{margin:0;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.ledger-cash-head span{font-size:9.5px;color:#555}.ledger-table{width:100%;border-collapse:collapse;font-size:11.5px}.ledger-table th,.ledger-table td{border:1px solid #c9c9c9;padding:4px 5px;vertical-align:top}.ledger-table thead th{background:#f4f1ea;font-size:9px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;text-align:center}.ledger-table td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.ledger-table td.nowrap{white-space:nowrap}.ledger-table tbody tr:nth-child(2n){background:#fdfcf9}.ledger-table tfoot td{background:#faf8f3;font-weight:700}.ledger-bill{table-layout:fixed;font-size:9.5px}.ledger-bill .col-bill{width:13%}.ledger-bill .col-date{width:15%}.ledger-bill .col-number{width:10.285%}.ledger-bill th,.ledger-bill td{padding:3px}.ledger-bill thead th{font-size:8px;line-height:1.2}.ledger-opening-row td{background:#f4f1ea;font-weight:600}.ledger-mini{table-layout:fixed;font-size:9.5px}.ledger-mini .col-bill{width:26%}.ledger-mini .col-date{width:30%}.ledger-mini th,.ledger-mini td{padding:3px 4px}.ledger-bill-link{border:0;padding:0;background:none;color:#7a5c1e;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.ledger-bill-link:hover{color:#4f3a0f}.ledger-empty{text-align:center;color:#666;padding:12px 6px}.ledger-balance-strip{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px;padding:10px 14px;border:2px solid #b99a5f;background:#faf8f3}.ledger-balance-item{display:flex;flex-direction:column;gap:2px}.ledger-balance-item strong{font-size:15px;font-variant-numeric:tabular-nums}.ledger-footer{margin-top:10px;font-size:10.5px;color:#555}.ledger-footer p{margin:2px 0 0}@media(max-width:900px){.ledger-sheet{min-width:0;padding:16px 12px 14px}.ledger-head{flex-direction:column;gap:6px}.ledger-heading{text-align:left}.ledger-party{flex-direction:column;gap:4px}.ledger-sides{grid-template-columns:1fr;grid-template-rows:none;gap:16px}.ledger-column{display:flex;flex-direction:column;gap:12px;grid-row:auto}.ledger-bill{table-layout:auto;font-size:10px}.ledger-bill col{width:auto}.ledger-bill th:nth-child(n+4):nth-child(-n+7),.ledger-bill td:nth-child(n+4):nth-child(-n+7){display:none}.ledger-bill thead th{font-size:8.5px}.ledger-mini{font-size:10px}.ledger-balance-strip{grid-template-columns:1fr;gap:10px}.ledger-footer{font-size:10px}}@media print{@page{size:A4 landscape;margin:8mm}.topbar,.nav,.banner,.footer,.no-print{display:none!important}.page{max-width:none;padding:0;margin:0}.ledger-scroll{overflow:visible}.ledger-sheet{border:0;border-radius:0;box-shadow:none;padding:0;max-width:none;min-width:0;width:100%}.ledger-sides{gap:8px}.ledger-head{padding-bottom:6px}.ledger-party,.ledger-sides{margin-top:8px}.ledger-side-title{font-size:9px;padding-bottom:2px;margin-bottom:3px}.ledger-column-title{font-size:9px;padding:3px 6px}.ledger-table{font-size:8px}.ledger-table th,.ledger-table td{padding:2px}.ledger-bill{font-size:7.6px}.ledger-bill thead th{font-size:6.8px}.ledger-mini{font-size:7.6px}.ledger-bill thead,.ledger-mini thead{display:table-header-group}.ledger-bill tr,.ledger-mini tr{break-inside:avoid}.ledger-bill-link{color:inherit;text-decoration:none}.ledger-balance-strip{margin-top:8px;padding:6px 10px}.ledger-balance-item strong{font-size:12px}.ledger-footer{font-size:8px;margin-top:6px}}.invoice-preview{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:16px;overflow-x:auto}.invoice-sheet{width:720px;max-width:100%;margin:0 auto;padding:18px 20px 12px;background:#fff;color:#000;border:1px solid #cfcfcf;border-radius:8px;box-shadow:0 1px 3px #10182814;font-size:13.5px;line-height:1.4;-webkit-font-smoothing:auto}.invoice-header{display:flex;flex-direction:column;gap:2px;padding-bottom:8px;border-bottom:2px solid #b99a5f}.invoice-company-name{font-size:18px;font-weight:800;letter-spacing:.02em;line-height:1.25}.invoice-company-meta{font-size:13px;color:#222}.invoice-company-ids{font-weight:600}.invoice-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 4px}.invoice-topline h1{margin:0;font-size:19px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.invoice-badge{padding:3px 10px;border:1.5px solid #111;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}.invoice-boxes{display:grid;grid-template-columns:1.05fr 1fr;gap:10px;margin-top:10px}.invoice-box{border:1px solid #333;font-size:13px}.invoice-box .invoice-party{padding:8px 10px}.invoice-doc-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:5px 10px;border-bottom:1px solid #d6d6d6}.invoice-doc-row:last-child{border-bottom:0}.invoice-doc-row span{color:#333}.invoice-doc-row strong{font-weight:600;text-align:right}.invoice-party{display:flex;flex-direction:column;gap:2px;min-width:0}.invoice-party-name{font-size:14px}.invoice-label{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4d4d4d}.invoice-party-ids{color:#333}.invoice-rate-row{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;margin-top:8px;white-space:nowrap}.invoice-rate-value{font-size:14px}.invoice-rate-value small{font-size:9px;font-weight:600;color:#555}.invoice-table{width:100%;margin-top:10px;border-collapse:collapse;font-variant-numeric:tabular-nums}.invoice-table th,.invoice-table td{padding:5px 6px;border:1px solid #bcbcbc;text-align:left;vertical-align:top}.invoice-table th{background:#f3f1ec;border-bottom:1.5px solid #333;font-size:10.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.invoice-table td{font-size:13px}.invoice-table .num{text-align:right;white-space:nowrap}.invoice-table .c-sr{width:30px;text-align:center}.invoice-table .c-karat{width:44px}.invoice-total-row td{border-top:1.5px solid #333;background:#faf9f6;font-weight:700}.invoice-note{margin-top:6px;font-size:10.5px;color:#333}.invoice-notes-box{margin-top:8px;padding:7px 10px;border:1px solid #333}.invoice-notes-box p{margin-top:2px;font-size:12.5px;white-space:pre-wrap}.invoice-footer{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:16px;margin-top:10px;align-items:start}.invoice-words p{margin:3px 0 0;font-size:13.5px}.invoice-words .invoice-narration{margin-top:5px;color:#333}.invoice-hint{margin-top:4px!important;font-size:10px;color:#444}.invoice-totals{display:flex;flex-direction:column;gap:2px}.invoice-total-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:2px 0;font-size:13.5px}.invoice-total-line>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.invoice-grand{margin-top:3px;padding-top:5px;border-top:2px solid #111;font-size:15.5px;font-weight:700}.invoice-grand small{font-size:9px;font-weight:600;color:#555}.invoice-gold-line{margin-top:4px;padding-top:4px;border-top:1px dashed #999;font-size:11px;color:#333}.invoice-signatures{display:flex;justify-content:space-between;gap:40px;margin-top:58px;margin-bottom:8px;padding:0 6px}.invoice-sign{display:flex;flex-direction:column;gap:5px;width:42%}.invoice-sign-right{align-items:flex-end}.invoice-sign-line{width:100%;border-top:1px solid #333}.invoice-sign-label{font-size:10.5px;color:#333}.invoice-footline{display:flex;justify-content:space-between;gap:12px;margin-top:12px;padding-top:5px;border-top:1px solid #d8d8d8;font-size:9.5px;color:#666;letter-spacing:.04em}@media(max-width:760px){.invoice-preview .invoice-sheet{min-width:680px}}@media print{.invoice-preview{background:#fff;border:0;padding:0}.invoice-sheet{width:100%;max-width:none;border:0;border-radius:0;box-shadow:none}}
