@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:ui-monospace, "SF Mono", Menlo, monospace;--text-xs:11px;--text-sm:12px;--text-md:13px;--text-lg:15px;--text-xl:20px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--control-height:30px;--sidebar-width:228px;--ease:cubic-bezier(.2, 0, 0, 1);--bg:#f6f6f7;--surface:#fff;--surface-2:#f0f0f2;--surface-hover:#f4f4f6;--border:#e3e3e8;--border-strong:#cfcfd6;--text:#16171b;--text-2:#5a5d68;--text-3:#8a8d98;--accent:#3f51e0;--accent-hover:#3243c4;--accent-soft:#eceefd;--on-accent:#fff;--focus:#3f51e066;--danger:#c22a2a;--danger-soft:#fdecec;--shadow-pop:0 0 0 1px #00000010, 0 8px 28px #0002;--status-draft-fg:#5a5d68;--status-draft-bg:#ececf0;--status-approved-fg:#9a5b00;--status-approved-bg:#fdf0d5;--status-posted-fg:#17703a;--status-posted-bg:#dff5e6;--status-closed-fg:#3b4a66;--status-closed-bg:#e3e8f2;--status-reversed-fg:#b02a2a;--status-reversed-bg:#fde8e8}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0e0f11;--surface:#16171a;--surface-2:#1d1f23;--surface-hover:#1b1d21;--border:#282a30;--border-strong:#3a3d45;--text:#ececef;--text-2:#a2a5b0;--text-3:#6e717c;--accent:#6c7cff;--accent-hover:#8290ff;--accent-soft:#1e2247;--on-accent:#0e0f11;--focus:#6c7cff80;--danger:#f06a6a;--danger-soft:#3a1a1c;--shadow-pop:0 0 0 1px #ffffff14, 0 12px 36px #000000a0;--status-draft-fg:#a2a5b0;--status-draft-bg:#25272c;--status-approved-fg:#f0b550;--status-approved-bg:#35290f;--status-posted-fg:#5fd08a;--status-posted-bg:#12301f;--status-closed-fg:#9fb2d8;--status-closed-bg:#1c2536;--status-reversed-fg:#f08080;--status-reversed-bg:#3a1a1c}}:root[data-theme=dark]{--bg:#0e0f11;--surface:#16171a;--surface-2:#1d1f23;--surface-hover:#1b1d21;--border:#282a30;--border-strong:#3a3d45;--text:#ececef;--text-2:#a2a5b0;--text-3:#6e717c;--accent:#6c7cff;--accent-hover:#8290ff;--accent-soft:#1e2247;--on-accent:#0e0f11;--focus:#6c7cff80;--danger:#f06a6a;--danger-soft:#3a1a1c;--shadow-pop:0 0 0 1px #ffffff14, 0 12px 36px #000000a0;--status-draft-fg:#a2a5b0;--status-draft-bg:#25272c;--status-approved-fg:#f0b550;--status-approved-bg:#35290f;--status-posted-fg:#5fd08a;--status-posted-bg:#12301f;--status-closed-fg:#9fb2d8;--status-closed-bg:#1c2536;--status-reversed-fg:#f08080;--status-reversed-bg:#3a1a1c}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%}html[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:var(--text-md);font-feature-settings:"cv11", "ss01";-webkit-font-smoothing:antialiased;margin:0;line-height:1.45}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.num{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.muted{color:var(--text-2)}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.btn{justify-content:center;align-items:center;gap:var(--space-2);height:var(--control-height);padding:0 var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);white-space:nowrap;cursor:pointer;transition:background .12s var(--ease), border-color .12s var(--ease);font-weight:500;display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-hover)}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);color:var(--on-accent);border-color:#0000}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-ghost{color:var(--text-2);background:0 0;border-color:#0000}.btn-ghost:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.btn-danger{color:var(--danger)}.btn-danger:hover:not(:disabled){background:var(--danger-soft);border-color:var(--danger)}.btn-icon{width:var(--control-height);padding:0}.kbd{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);height:18px;color:var(--text-2);font-family:var(--font-sans);font-size:var(--text-xs);align-items:center;padding:0 5px;display:inline-flex}.btn-primary .kbd{color:inherit;background:#ffffff2e;border-color:#0000}.field{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}.field>label,.field>.label{color:var(--text-2);font-size:var(--text-sm);font-weight:500}.input{width:100%;height:var(--control-height);padding:0 var(--space-2);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);transition:border-color .12s var(--ease)}textarea.input{height:auto;min-height:62px;padding:var(--space-2);resize:vertical}.input:hover:not(:disabled):not(:focus){border-color:var(--text-3)}.input:focus{outline:2px solid var(--focus);outline-offset:-1px;border-color:var(--accent)}.input:disabled,.input[readonly]{background:var(--surface-2);border-color:var(--border);color:var(--text);opacity:1}.input::placeholder{color:var(--text-3)}.badge{height:20px;font-size:var(--text-sm);white-space:nowrap;border-radius:10px;align-items:center;gap:6px;padding:0 8px;font-weight:500;display:inline-flex}.badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.badge-draft{color:var(--status-draft-fg);background:var(--status-draft-bg)}.badge-approved{color:var(--status-approved-fg);background:var(--status-approved-bg)}.badge-posted{color:var(--status-posted-fg);background:var(--status-posted-bg)}.badge-closed{color:var(--status-closed-fg);background:var(--status-closed-bg)}.badge-reversed{color:var(--status-reversed-fg);background:var(--status-reversed-bg)}.card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.card-header{padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;font-weight:600;display:flex}.notice{gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--surface-2);color:var(--text-2);display:flex}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th{padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border);color:var(--text-2);font-size:var(--text-sm);text-align:left;white-space:nowrap;font-weight:500}.table td{padding:0 var(--space-3);border-bottom:1px solid var(--border);height:38px}.table tbody tr:last-child td{border-bottom:0}.table th:first-child,.table td:first-child{padding-left:var(--space-4)}.table th:last-child,.table td:last-child{padding-right:var(--space-4)}.table th.num{text-align:right}.table-rows tbody tr{cursor:pointer;transition:background 80ms var(--ease)}.table-rows tbody tr:hover{background:var(--surface-hover)}.row-link{font-weight:500}.row-link:focus-visible{outline-offset:3px;border-radius:var(--radius-sm)}.segmented{border-radius:var(--radius-md);background:var(--surface-2);padding:2px;display:inline-flex}.segmented button{height:26px;padding:0 var(--space-3);border-radius:var(--radius-sm);color:var(--text-2);cursor:pointer;background:0 0;border:0;font-weight:500}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border), 0 1px 2px #0000000f}dialog.dialog{border-radius:var(--radius-lg);background:var(--surface);width:min(420px,100vw - 32px);color:var(--text);box-shadow:var(--shadow-pop);border:0;padding:0}dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0b0c0e66}.dialog-body{gap:var(--space-2);padding:var(--space-5) var(--space-5) var(--space-4);flex-direction:column;display:flex}.dialog-body h2{font-size:var(--text-lg);font-weight:600}.dialog-actions{justify-content:flex-end;gap:var(--space-2);padding:0 var(--space-5) var(--space-5);display:flex}dialog.palette{border-radius:var(--radius-lg);background:var(--surface);width:min(560px,100vw - 32px);color:var(--text);box-shadow:var(--shadow-pop);border:0;margin-top:14vh;padding:0}.palette input{width:100%;height:46px;padding:0 var(--space-4);border:0;border-bottom:1px solid var(--border);font-size:var(--text-lg);background:0 0;outline:none}.palette ul{max-height:320px;padding:var(--space-2);margin:0;list-style:none;overflow-y:auto}.palette li{height:34px;padding:0 var(--space-3);border-radius:var(--radius-md);cursor:pointer;justify-content:space-between;align-items:center;display:flex}.palette li[aria-selected=true]{background:var(--accent-soft)}.palette .empty{padding:var(--space-4);color:var(--text-3);text-align:center}.toasts{right:var(--space-5);bottom:var(--space-5);z-index:50;gap:var(--space-2);flex-direction:column;display:flex;position:fixed}.toast{max-width:380px;padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--text);color:var(--bg);box-shadow:var(--shadow-pop);animation:toast-in .18s var(--ease)}.toast-error{background:var(--danger);color:#fff}@keyframes toast-in{0%{opacity:0;transform:translateY(6px)}}.empty-state{align-items:center;gap:var(--space-2);padding:var(--space-7) var(--space-5);text-align:center;flex-direction:column;display:flex}.empty-state h2{font-size:var(--text-lg);font-weight:600}.empty-state p{max-width:360px;color:var(--text-2)}.empty-state .btn{margin-top:var(--space-3)}.skeleton{border-radius:var(--radius-sm);background:var(--surface-2);height:12px;animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.5}}dialog.dialog.dialog-wide{width:min(480px,100vw - 32px)}.dialog-form{gap:var(--space-4);padding:0 var(--space-5) var(--space-5);flex-direction:column;display:flex}.check{align-items:flex-start;gap:var(--space-2);padding:var(--space-1) 0;cursor:pointer;display:flex}.check input{width:15px;height:15px;accent-color:var(--accent);margin:2px 0 0}.check small{color:var(--text-3);font-size:var(--text-sm);display:block}.copy-row{gap:var(--space-2);display:flex}.copy-row .input{font-family:var(--font-mono);font-size:var(--text-sm)}.tag{height:20px;margin-right:var(--space-1);padding:0 var(--space-2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-2);font-size:var(--text-sm);align-items:center;display:inline-flex}.row-actions{justify-content:flex-end;gap:var(--space-1);display:flex}.search{width:280px}.toolbar-group{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.list-footer{padding:var(--space-2) var(--space-4);border-top:1px solid var(--border);color:var(--text-2);font-size:var(--text-sm);justify-content:space-between;align-items:center;display:flex}select.input{padding-right:var(--space-5)}.section-hint{color:var(--text-3);font-size:var(--text-sm);font-weight:400}.stack{gap:var(--space-4);flex-direction:column;max-width:1280px;display:flex}.check-inline{align-items:center;gap:var(--space-2);height:var(--control-height);cursor:pointer;display:flex}.check-inline input{width:15px;height:15px;accent-color:var(--accent);margin:0}.rows .cell{width:100%;height:28px;padding:0 var(--space-2);border-radius:var(--radius-sm);background:0 0;border:1px solid #0000}.rows select.cell{padding-left:var(--space-1)}.rows .cell:hover:not(:disabled):not([readonly]){background:var(--surface-2)}.rows .cell:focus{outline:2px solid var(--focus);outline-offset:-1px;border-color:var(--accent);background:var(--surface)}.rows .cell[aria-invalid=true]{border-color:var(--danger);background:var(--danger-soft)}.rows .cell.num{text-align:right}.rows th,.rows td{padding:0 var(--space-1)}.rows td{height:36px}.rows th:first-child,.rows td:first-child{padding-left:var(--space-3)}.rows .center{text-align:center}.rows-empty{padding:var(--space-3) var(--space-4);color:var(--text-3)}dialog.dialog.dialog-xl{width:min(1040px,100vw - 32px)}.badge-warn{background:var(--danger-soft);color:var(--danger)}.hint-warn{color:var(--danger);font-size:var(--text-sm)}.picker{position:relative}.picker-list{z-index:20;width:min(560px,80vw);max-height:320px;padding:var(--space-1);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-pop);margin:0;list-style:none;position:absolute;top:calc(100% + 2px);left:0;overflow-y:auto}.picker-list li{align-items:baseline;gap:var(--space-2);padding:var(--space-2);border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;display:flex}.picker-list li[aria-selected=true]{background:var(--surface-2)}.picker-list li .grow{text-overflow:ellipsis;flex:1;overflow:hidden}.picker-list li.picker-empty{color:var(--text-3);cursor:default}.picked{align-items:baseline;gap:var(--space-2);width:100%;height:28px;padding:0 var(--space-2);border-radius:var(--radius-sm);color:inherit;font:inherit;text-align:left;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;display:flex;overflow:hidden}.picked:hover:not(:disabled){background:var(--surface-2)}.picked:disabled{cursor:default}.picked .grow{text-overflow:ellipsis;overflow:hidden}.qty-input{width:76px;height:28px;padding:0 var(--space-2);text-align:right;font-variant-numeric:tabular-nums}.receipt-table td{vertical-align:top;padding-top:var(--space-2);padding-bottom:var(--space-2)}.receipt-table .input{height:30px}.receipt-table textarea.input{height:auto}.facts{gap:var(--space-3) var(--space-4);padding:var(--space-4);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.facts dt{color:var(--text-3);font-size:var(--text-sm)}.facts dd{margin:2px 0 0;font-weight:500}@media (width<=900px){.facts{grid-template-columns:repeat(2,minmax(0,1fr))}}.totals{gap:var(--space-1) var(--space-6,32px);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border);font-variant-numeric:tabular-nums;grid-template-columns:1fr auto;justify-content:end;margin:0;display:grid}.totals dt{color:var(--text-2);text-align:right}.totals dd{text-align:right;margin:0}.totals .grand{padding-top:var(--space-2);color:var(--text);font-size:var(--text-lg);font-weight:600}dialog.dialog.dialog-full{width:min(1320px,100vw - 48px);max-height:calc(100vh - 48px)}.send-layout{gap:var(--space-5);padding:0 var(--space-5) var(--space-5);grid-template-columns:minmax(360px,5fr) 6fr;height:min(760px,100vh - 150px);display:grid}.send-layout>form{gap:var(--space-3);min-height:0;padding-right:var(--space-1);flex-direction:column;display:flex;overflow-y:auto}.send-layout .mail-body{resize:none;flex:1;min-height:180px;line-height:1.5}.pdf-preview{gap:var(--space-4);padding:0 var(--space-5) var(--space-5);flex-direction:column;height:min(860px,100vh - 130px);display:flex}.pdf-preview .send-preview{flex:1;min-height:0}.send-preview{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-2);width:100%;height:100%}@media (width<=900px){.send-layout{grid-template-columns:1fr;height:auto}.send-preview{height:60vh}}.logo-box{align-items:center;gap:var(--space-4);padding:var(--space-4);display:flex}.logo-box img{max-width:240px;max-height:64px;padding:var(--space-2);border:1px solid var(--border);border-radius:var(--radius-md);background:#fff}:root{--series-1:#3f51e0;--series-2:#eb6834}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--series-1:#6c7cff;--series-2:#d95926}}:root[data-theme=dark]{--series-1:#6c7cff;--series-2:#d95926}.kpi-group h2{margin:0 0 var(--space-2);color:var(--text-2);font-size:var(--text-sm);letter-spacing:.04em;text-transform:uppercase;font-weight:600}.kpi-row{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));display:grid}.kpi{padding:var(--space-4);color:inherit;flex-direction:column;gap:2px;text-decoration:none;display:flex}a.kpi:hover{border-color:var(--accent)}.kpi-label{color:var(--text-2);font-size:var(--text-sm);font-weight:500}.kpi-value{font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-size:26px;font-weight:600;line-height:1.25}.kpi-note{color:var(--text-3);font-size:var(--text-sm)}.dash-split{gap:var(--space-4);grid-template-columns:minmax(0,2fr) minmax(280px,1fr);align-items:start;display:grid}@media (width<=1100px){.dash-split{grid-template-columns:1fr}}.chart{padding:var(--space-3) var(--space-4) var(--space-4)}.chart-legend{gap:var(--space-4);margin-bottom:var(--space-2);color:var(--text-2);font-size:var(--text-sm);display:flex}.chart-legend span,.chart-tip span{align-items:center;gap:var(--space-2);display:flex}.chart-legend i,.chart-tip i{border-radius:2px;width:10px;height:10px}.chart-plot{position:relative}.chart-plot svg{width:100%;height:auto;display:block}.chart-grid{stroke:var(--border);stroke-dasharray:2 4}.chart-axis{stroke:var(--text-3)}.chart-tick{fill:var(--text-3);font-variant-numeric:tabular-nums;font-size:11px}.chart-hover{fill:var(--surface-2)}.chart-tip{z-index:5;min-width:220px;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-pop);font-size:var(--text-sm);pointer-events:none;flex-direction:column;gap:4px;display:flex;position:absolute;top:0;transform:translate(-50%)}.chart-tip b{padding-left:var(--space-4);font-variant-numeric:tabular-nums;margin-left:auto}.brand-layout{gap:var(--space-4);grid-template-columns:260px minmax(0,1fr);align-items:start;display:grid}@media (width<=900px){.brand-layout{grid-template-columns:1fr}}.brand-list{max-height:60vh;padding:0 var(--space-2) var(--space-2);margin:0;list-style:none;overflow-y:auto}.brand-list button{justify-content:space-between;gap:var(--space-2);width:100%;padding:var(--space-2) var(--space-2);border-radius:var(--radius-sm);color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;display:flex}.brand-list button:hover{background:var(--surface-2)}.brand-list button[aria-pressed=true]{background:var(--accent-soft);font-weight:500}.matrix td{border-bottom:1px solid var(--border)}.table.rights th.rights-role{text-align:center;vertical-align:bottom;white-space:normal;width:132px}.table.rights th.rights-role>*{display:block}.table.rights th.rights-role .muted{font-weight:400;font-size:var(--text-xs)}.table.rights td.rights-cell{text-align:center}.table.rights tr.rights-group td{padding-top:var(--space-4);color:var(--text-2);font-size:var(--text-xs);letter-spacing:.04em;text-transform:uppercase;background:var(--surface-2);font-weight:600}.rights-code{margin-left:var(--space-2);font-family:var(--font-mono,ui-monospace, monospace);font-size:var(--text-xs)}.table.rights th.rights-role button{width:100%;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.table.rights th.rights-role button:hover{text-decoration:underline}.card:has(>.rights-wrap){overflow:visible}.table.rights thead th{top:calc(-1 * var(--space-5));z-index:1;background:var(--surface);box-shadow:0 1px 0 var(--border);position:sticky}.product-name{color:var(--text-2);font-size:var(--text-sm);letter-spacing:.02em;font-weight:600}.wordmark{color:var(--text-2);letter-spacing:.01em;white-space:nowrap;align-items:center;gap:8px;display:inline-flex}.wordmark-sign{background:var(--accent);width:24px;height:24px;color:var(--on-accent);border-radius:6px;place-items:center;font-size:15px;font-weight:500;line-height:1;display:grid}.wordmark-text{font-size:15px;font-weight:400}.wordmark-text strong{color:var(--text);font-weight:650}.wordmark-sm{gap:6px}.wordmark-sm .wordmark-sign{border-radius:5px;width:18px;height:18px;font-size:11px}.wordmark-sm .wordmark-text{font-size:var(--text-sm)}.signin-stack{align-items:center;gap:var(--space-5);flex-direction:column;width:min(380px,100%);display:flex}.signin-stack .signin-card{width:100%}.shell{grid-template-columns:var(--sidebar-width) minmax(0, 1fr);height:100%;display:grid}.sidebar{gap:var(--space-4);padding:var(--space-3);border-right:1px solid var(--border);background:var(--bg);flex-direction:column;display:flex}.brand{align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);min-width:0;display:flex}.brand-mark{border-radius:var(--radius-md);background:var(--accent);width:24px;height:24px;color:var(--on-accent);font-size:var(--text-sm);flex:none;place-items:center;font-weight:700;display:grid}.brand-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.brand-with-logo{align-items:flex-start;gap:var(--space-1);flex-direction:column}.brand-logo{border-radius:var(--radius-md);object-fit:contain;background:#fff;max-width:100%;max-height:40px;padding:4px 6px;display:block}.brand-with-logo .brand-name{max-width:100%;color:var(--text-2);font-size:var(--text-sm);font-weight:500}.sidebar-product{padding:var(--space-2) var(--space-2) 0;border-top:1px solid var(--border);display:flex}.palette-trigger{width:100%;height:var(--control-height);padding:0 var(--space-2);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text-3);cursor:pointer;justify-content:space-between;align-items:center;display:flex}.palette-trigger:hover{border-color:var(--border-strong)}.nav{flex-direction:column;gap:2px;display:flex}.nav-label{padding:0 var(--space-2) var(--space-1);color:var(--text-3);font-size:var(--text-xs);letter-spacing:.04em;text-transform:uppercase;font-weight:600}.nav a{align-items:center;gap:var(--space-2);height:var(--control-height);padding:0 var(--space-2);border-radius:var(--radius-md);color:var(--text-2);font-weight:500;display:flex}.nav-scroll{gap:var(--space-1);min-height:0;margin:0 calc(-1 * var(--space-1));padding:0 var(--space-1);flex-direction:column;flex:1;display:flex;overflow-y:auto}.nav-toggle{align-items:center;gap:var(--space-2);width:100%;height:var(--control-height);padding:0 var(--space-2);border-radius:var(--radius-md);color:var(--text-2);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;font-weight:500;display:flex}.nav-toggle span{flex:1}.nav-toggle:hover{background:var(--surface-2);color:var(--text)}.nav-toggle .chevron{color:var(--text-3);transition:transform .12s}.nav-toggle[aria-expanded=true] .chevron{transform:rotate(90deg)}.nav a.nav-sub{padding-left:calc(var(--space-2) + 16px + var(--space-2));font-weight:400}.nav a.nav-sub.active{font-weight:500}@media (prefers-reduced-motion:reduce){.nav-toggle .chevron{transition:none}}.nav a:hover,.nav a.active{background:var(--surface-2);color:var(--text)}.sidebar-footer{gap:var(--space-1);margin-top:auto;display:flex}.sidebar-footer .btn-ghost:first-child{flex:1;justify-content:flex-start}.main{flex-direction:column;min-width:0;height:100%;display:flex;overflow:hidden}.page-header{align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-3) var(--space-5);border-bottom:1px solid var(--border);background:var(--bg);display:flex}.page-title{align-items:center;gap:var(--space-3);min-width:0;margin-right:auto;display:flex}.page-title h1{font-size:var(--text-lg);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.page-actions{align-items:center;gap:var(--space-2);display:flex}.page-body{padding:var(--space-5);flex:1;overflow-y:auto}.toolbar{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}.editor{gap:var(--space-5);grid-template-columns:minmax(0,1fr) 300px;align-items:start;max-width:1280px;display:grid}.editor-main,.editor-side{gap:var(--space-4);flex-direction:column;min-width:0;display:flex}.form-grid{gap:var(--space-3) var(--space-4);padding:var(--space-4);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.form-grid .span-2{grid-column:span 2}.form-grid .span-4{grid-column:span 4}.lines{min-width:640px}.lines th,.lines td{padding:0 var(--space-1)}.lines td{height:36px}.lines .cell{width:100%;height:28px;padding:0 var(--space-2);border-radius:var(--radius-sm);background:0 0;border:1px solid #0000}.lines .cell:hover:not([readonly]){background:var(--surface-2)}.lines .cell:focus{outline:2px solid var(--focus);outline-offset:-1px;border-color:var(--accent);background:var(--surface)}.lines .cell[aria-invalid=true]{border-color:var(--danger);background:var(--danger-soft)}.lines .cell.num{text-align:right}.lines .pos{width:44px;color:var(--text-3)}.lines .col-qty{width:96px}.lines .col-unit{width:76px}.lines .col-price,.lines .col-net{width:120px}.lines .col-remove{width:40px}.lines .remove{opacity:0}.lines tr:hover .remove,.lines .remove:focus-visible{opacity:1}.lines-footer{padding:var(--space-2) var(--space-4) var(--space-2) var(--space-2);border-top:1px solid var(--border);justify-content:space-between;align-items:center;display:flex}.total{align-items:baseline;gap:var(--space-4);display:flex}.total strong{font-size:var(--text-lg);font-variant-numeric:tabular-nums;font-weight:600}.side-list{padding:var(--space-2) 0;flex-direction:column;margin:0;list-style:none;display:flex}.side-list li{padding:var(--space-2) var(--space-4)}.chain-link{justify-content:space-between;align-items:center;gap:var(--space-2);display:flex}.chain-link a{color:var(--accent);font-weight:500}.timeline li{padding-left:calc(var(--space-4) + 14px);position:relative}.timeline li:before{content:"";top:14px;left:var(--space-4);background:var(--border-strong);border-radius:50%;width:7px;height:7px;position:absolute}.timeline li:after{content:"";top:24px;bottom:-10px;left:calc(var(--space-4) + 3px);background:var(--border);width:1px;position:absolute}.timeline li:last-child:after{display:none}.timeline .meta{color:var(--text-3);font-size:var(--text-sm)}.signin{height:100%;padding:var(--space-4);place-items:center;display:grid}.signin-card{gap:var(--space-4);width:min(380px,100%);padding:var(--space-6);flex-direction:column;display:flex}.signin h1{font-size:var(--text-xl);font-weight:600}.signin .error{color:var(--danger)}@media (width<=1000px){.editor{grid-template-columns:minmax(0,1fr)}}@media (width<=760px){.shell{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.sidebar{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;align-items:center}.sidebar .nav-label,.sidebar-product,.palette-trigger{display:none}.sidebar-footer{margin:0 0 0 auto}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .span-4{grid-column:span 2}.page-header,.page-body{padding-inline:var(--space-4)}}
