:root{--bg: #f4f6f9;--surface: #ffffff;--surface-muted: #f9fafb;--ink: #111827;--ink-2: #374151;--muted: #4b5563;--border: #e2e5ea;--border-strong: #cbd2db;--nav-bg: #0f172a;--nav-bg-2: #1e293b;--nav-ink: #cbd5e1;--nav-muted: #94a3b8;--accent: #2357c6;--accent-ink: #1d4fb8;--accent-soft: #eff4ff;--ok-bg: #dcfce7;--ok-ink: #166534;--warn-bg: #fef3c7;--warn-ink: #92400e;--danger: #b91c1c;--danger-bg: #fee2e2;--danger-ink: #991b1b;--info-bg: #dbeafe;--info-ink: #1e40af;--radius: 10px;--font: "IBM Plex Sans", system-ui, sans-serif;--mono: "IBM Plex Mono", ui-monospace, monospace}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px}a{color:var(--accent-ink)}a:hover{color:#163e91}h1{margin:0;font-size:22px;font-weight:600}h2{margin:0;font-size:16px;font-weight:600}.mono{font-family:var(--mono);font-size:13px}.muted{color:var(--muted)}.small{font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.btn{font:inherit;font-weight:500;min-height:40px;padding:0 14px;border-radius:8px;cursor:pointer;border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn-primary:hover{color:#fff}.btn-danger{color:var(--danger)}.btn-ok{background:#15803d;border-color:#15803d;color:#fff;font-weight:600}.btn-sm{min-height:34px;padding:0 10px;font-size:13px}.btn-link{border:0;background:none;color:var(--accent-ink);padding:0;min-height:0;text-decoration:underline}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;font-weight:500}.field input,.field select,.field textarea{font:inherit;min-height:42px;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);width:100%;min-width:0}.field textarea{padding:10px 12px}.field input[aria-invalid=true]{border-color:var(--danger)}.field .hint{font-size:12px;color:var(--muted)}.field .error{font-size:12px;color:var(--danger)}.check{display:flex;gap:10px;align-items:flex-start;font-size:14px}.check input{width:18px;height:18px;margin:1px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .span-2{grid-column:span 2}@media(max-width:560px){.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}}.alert{border-radius:8px;padding:12px 14px;font-size:14px}.alert-danger{background:var(--danger-bg);color:var(--danger-ink)}.alert-ok{background:var(--ok-bg);color:var(--ok-ink)}.alert-warn{background:var(--warn-bg);color:var(--warn-ink)}.alert-info{background:var(--accent-soft);color:var(--info-ink);border:1px solid #c7d7fb}.badge{display:inline-flex;align-items:center;font-size:12px;font-weight:600;border-radius:10px;padding:2px 9px;white-space:nowrap}.badge-neutral{background:#f3f4f6;color:var(--ink-2)}.badge-ok{background:var(--ok-bg);color:var(--ok-ink)}.badge-warn{background:var(--warn-bg);color:var(--warn-ink)}.badge-danger{background:var(--danger-bg);color:var(--danger-ink)}.badge-info{background:var(--info-bg);color:var(--info-ink)}.chip{font-size:12px;background:#eef2f7;color:#1f2937;border-radius:6px;padding:3px 8px}.public{min-height:100vh;display:flex;flex-wrap:wrap}.public-aside{flex:1 1 420px;min-width:0;background:var(--nav-bg);color:#e2e8f0;padding:56px 48px;display:flex;flex-direction:column;gap:24px}.public-aside h1{font-size:32px;line-height:1.2;color:#fff;max-width:460px}.public-aside ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;color:var(--nav-ink);font-size:15px}.public-aside li:before{content:"✓";color:#7fa6f0;font-weight:700;margin-right:10px}.public-main{flex:1 1 520px;min-width:0;display:flex;justify-content:center;align-items:flex-start;padding:56px 16px}.card{width:100%;max-width:540px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:32px;display:flex;flex-direction:column;gap:18px}@media(max-width:560px){.public-aside{padding:32px 20px}.card{padding:20px}}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:36px;height:36px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}.brand-mark.platform{background:#c8641a}.brand-name{font-size:16px;font-weight:600;color:#fff}.page-header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between;padding:20px 28px;background:var(--surface);border-bottom:1px solid var(--border)}.page-body{padding:24px 28px;display:flex;flex-direction:column;gap:20px}@media(max-width:560px){.page-header,.page-body{padding-left:16px;padding-right:16px}}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;display:flex;flex-direction:column;gap:12px}.row{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.grow-3{flex:3 1 560px;min-width:0}.grow-2{flex:2 1 360px;min-width:0}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:6px}.kpi .value{font-family:var(--mono);font-size:22px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.table-wrap{overflow-x:auto;position:relative}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;font-weight:500;padding:8px}td{padding:10px 8px;border-top:1px solid #f0f1f4;vertical-align:top}tr.selected td{background:var(--accent-soft)}.perm{display:inline-flex;width:26px;height:26px;border-radius:6px;align-items:center;justify-content:center;font-weight:700}.perm.on{background:var(--ok-bg);color:var(--ok-ink)}.perm.off{background:#f3f4f6;color:#6b7280}.topbar{background:var(--nav-bg);color:#e2e8f0;padding:14px 28px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}.topbar .who{font-size:13px;color:var(--nav-ink);display:flex;align-items:center;gap:12px}.topbar button{color:var(--nav-ink);background:none;border:1px solid #334155;border-radius:7px;min-height:36px;padding:0 10px;cursor:pointer;font:inherit;font-size:13px}.container{max-width:1480px;width:100%;margin:0 auto}.blocked-page{max-width:560px;margin:80px auto;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;padding:0 16px}.tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--border)}.tab{font:inherit;white-space:nowrap;min-height:44px;padding:0 14px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);cursor:pointer}.tab.active{border-bottom-color:var(--accent);color:var(--ink);font-weight:600}.modal{border:0;border-radius:12px;padding:0;width:min(560px,calc(100vw - 32px));box-shadow:0 20px 60px #0f172a4d}.modal-wide{width:min(980px,calc(100vw - 32px))}.modal::backdrop{background:#0f172a73}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-body{padding:16px 20px;display:flex;flex-direction:column;gap:14px;max-height:calc(100vh - 160px);overflow:auto}.num{text-align:right;font-family:var(--mono);font-size:13px;white-space:nowrap}.cell-input{font:inherit;width:100%;min-width:0;min-height:36px;padding:0 8px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface)}.cell-input.num{text-align:right}.lines td{padding:6px 4px}.lines tr.comment-row td{background:#fafafa}.toolbar-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.clickable{cursor:pointer}.clickable:hover td{background:#f7f9fc}.empty{padding:24px;text-align:center;color:var(--muted)}tfoot td{font-weight:600;background:var(--surface-muted);border-top:2px solid var(--border)}.suggestions{position:absolute;top:100%;left:0;right:0;z-index:20;margin:4px 0 0;padding:4px;list-style:none;background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;box-shadow:0 8px 24px #0f172a1f;max-height:280px;overflow:auto}.suggestions button{width:100%;text-align:left;font:inherit;background:none;border:0;border-radius:6px;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:var(--ink)}.suggestions button:hover,.suggestions button:focus{background:var(--accent-soft)}.progress-note{font-size:11px;color:var(--muted);white-space:nowrap}.lookup{display:flex;gap:4px;align-items:stretch;min-width:0}.lookup>select,.lookup>input{flex:1 1 auto;min-width:0}.lookup-btn{flex:0 0 auto;min-width:34px;padding:0 8px;font-weight:700;letter-spacing:1px}.btn-recalc{background:#15803d;border-color:#15803d;color:#fff;font-weight:600}.btn-recalc.stale{background:#b91c1c;border-color:#b91c1c}.btn-recalc:hover{color:#fff;filter:brightness(1.08)}.cell-input.changed{background:#fff7ed;border-color:#f59e0b;font-weight:600}.pos-keys{display:flex;flex-direction:column;gap:10px}.pos-key-group{display:flex;flex-direction:column;gap:4px}.pos-key{min-height:46px;min-width:120px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:600}.app{min-height:100vh;display:flex;flex-direction:column}.appbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 20px;background:var(--surface);border-bottom:1px solid var(--border)}.appbar-brand{display:flex;text-decoration:none}.appbar-company select{font:inherit;font-weight:600;color:var(--ink);background:var(--surface-muted);border:1px solid var(--border);border-radius:8px;min-height:40px;padding:0 10px;max-width:240px}.appbar-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:none;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--ink-2);cursor:pointer;text-decoration:none}.appbar-btn:hover{color:var(--ink);background:var(--surface-muted)}.appbar-count{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--danger);color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center}.appbar-new{min-height:42px;font-size:15px}.appbar-avatar{width:40px;height:40px;flex:none;border-radius:20px;border:0;background:var(--nav-bg);color:#fff;font:inherit;font-weight:600;font-size:14px;cursor:pointer}.appbar-avatar{position:relative}.appbar-dot{position:absolute;top:-1px;right:-1px;width:12px;height:12px;border-radius:6px;background:#d97706;border:2px solid var(--surface)}.dropdown-reminder{color:var(--warn-ink);font-weight:600}.app-body{flex:1;display:flex;min-height:0}.side{flex:0 0 232px;position:sticky;top:60px;align-self:flex-start;height:calc(100vh - 60px);overflow-y:auto;background:var(--surface);border-right:1px solid var(--border);padding:14px 10px;display:flex;flex-direction:column;gap:2px}.side-link{display:flex;align-items:center;gap:12px;min-height:42px;padding:0 12px;border-radius:8px;color:var(--ink-2);text-decoration:none;font-size:15px;font-weight:500}.side-link:hover{background:var(--surface-muted);color:var(--ink)}.side-link.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.side-sub{display:flex;flex-direction:column;gap:1px;padding:2px 0 6px 44px}.side-sublink{display:flex;align-items:center;min-height:34px;padding:0 10px;border-radius:6px;color:var(--muted);text-decoration:none;font-size:14px}.side-sublink:hover{color:var(--ink);background:var(--surface-muted)}.side-sublink.active{color:var(--accent-ink);font-weight:600;background:var(--accent-soft)}.side-bottom{margin-top:auto;padding-top:10px;border-top:1px solid var(--border)}.content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.side-backdrop{position:fixed;top:60px;right:0;bottom:0;left:0;z-index:30;border:0;background:#0f172a66}.bottombar,.only-mobile{display:none}.dropdown{position:relative;flex:none}.dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:50;min-width:230px;padding:6px;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border-strong);border-radius:10px;box-shadow:0 12px 32px #0f172a29}.dropdown-right{left:auto;right:0}.dropdown-item{display:flex;align-items:center;min-height:40px;padding:0 12px;border-radius:6px;border:0;background:none;font:inherit;color:var(--ink);text-decoration:none;text-align:left;cursor:pointer}.dropdown-item:hover,.dropdown-item:focus{background:var(--accent-soft);color:var(--ink)}.dropdown-info{display:flex;flex-direction:column;gap:2px;padding:8px 12px 10px;border-bottom:1px solid var(--border);margin-bottom:4px}.gsearch{position:relative;flex:1 1 320px;max-width:560px;min-width:0}.gsearch input{font:inherit;width:100%;min-height:42px;padding:0 70px 0 38px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface-muted)}.gsearch input:focus{background:var(--surface);border-color:var(--accent);outline:2px solid var(--accent-soft)}.gsearch-icon{position:absolute;left:12px;top:12px;color:var(--muted);pointer-events:none}.gsearch-kbd{position:absolute;right:10px;top:10px;font-family:var(--mono);font-size:11px;color:var(--muted);border:1px solid var(--border-strong);border-radius:5px;padding:2px 6px;background:var(--surface)}.gsearch-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:50;max-height:70vh;overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--border-strong);border-radius:12px;box-shadow:0 16px 40px #0f172a2e}.gsearch-group{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:8px 10px 4px}.gsearch-hit{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;border-radius:8px;cursor:pointer}.gsearch-hit.active{background:var(--accent-soft)}.gsearch-detail{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gsearch-empty{padding:14px 10px;color:var(--muted)}@media(max-width:900px){.only-mobile{display:inline-flex}.side-company.only-mobile{display:flex;flex-direction:column;gap:4px;padding:4px 6px 12px}.side-company select{font:inherit;min-height:42px;border:1px solid var(--border-strong);border-radius:8px;padding:0 8px}.hide-mobile{display:none}.appbar{padding:8px 12px;gap:8px}.appbar-brand,.appbar-company{display:none}.gsearch input{padding-right:12px}.side{position:fixed;top:60px;left:0;bottom:0;z-index:35;height:auto;width:min(300px,86vw);transform:translate(-105%);transition:transform .18s ease;box-shadow:0 0 40px #0f172a33}.side.side-open{transform:none}.content{padding-bottom:72px}.bottombar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--surface);border-top:1px solid var(--border);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}.bottombar-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;border:0;background:none;font:inherit;font-size:12px;font-weight:600;color:var(--muted);text-decoration:none;cursor:pointer}.bottombar-link.active{color:var(--accent-ink)}}.home-header h1{font-size:24px}.kpi-label{font-size:13px;color:var(--muted);font-weight:500}.kpi .value{font-size:26px;font-weight:600;letter-spacing:-.01em}.kpi-link{color:inherit;text-decoration:none;transition:border-color .12s,box-shadow .12s}.kpi-link:hover{color:inherit;border-color:var(--border-strong);box-shadow:0 4px 14px #0f172a0f}.kpi-alert{border-left:4px solid var(--danger)}.panel-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}.panel-head h2{font-size:16px;margin:0}.todo-list,.due-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.todo-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f0f1f4}.todo-item:first-child{border-top:0}.todo-text,.due-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.todo-done{margin:0;color:var(--ok-ink);font-weight:600}.dot{width:10px;height:10px;border-radius:5px;flex:none}.dot-danger{background:var(--danger)}.dot-warn{background:#d97706}.dot-info{background:var(--accent)}.due-list li{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #f0f1f4}.due-list li:first-child{border-top:0}.due-text b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.due-date{flex:none;width:64px;font-family:var(--mono);font-size:13px;font-weight:600;color:var(--ink-2)}.due-date.overdue{color:var(--danger-ink);font-family:var(--font);font-size:12px;text-transform:uppercase}.kpis{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.gsearch input::-webkit-search-cancel-button{display:none}.doc-layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}.doc-main{flex:999 1 620px;min-width:0;display:flex;flex-direction:column;gap:16px}.doc-side{flex:1 1 320px;max-width:420px;min-width:0;display:flex;flex-direction:column;gap:16px}@media(min-width:1100px){.doc-side{position:sticky;top:76px;max-height:calc(100vh - 92px);overflow-y:auto;padding-bottom:4px}}@media(max-width:1099px){.doc-side{max-width:none}}.total-card{background:var(--nav-bg);color:#e2e8f0;border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;gap:6px}.total-card-label{font-size:13px;color:var(--nav-muted)}.total-card-value{font-family:var(--mono);font-size:32px;font-weight:600;color:#fff;letter-spacing:-.01em}.total-card-rows{display:flex;flex-direction:column;gap:4px;border-top:1px solid #334155;padding-top:10px;margin-top:4px}.total-card-rows>div{display:flex;justify-content:space-between;font-size:14px}.total-card .num{color:#fff}.total-card-note{color:#fcd34d}.lines-add{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 16px}.btn-add-line{flex:1 1 240px;border-style:dashed;border-color:var(--border-strong);color:var(--accent-ink);font-weight:600;justify-content:flex-start;background:var(--surface-muted)}.btn-add-line:hover{border-color:var(--accent);background:var(--accent-soft)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip-btn{font:inherit;font-size:13px;font-weight:500;min-height:34px;padding:0 12px;border-radius:17px;cursor:pointer;border:1px solid var(--border-strong);background:var(--surface);color:var(--ink-2)}.chip-btn:hover{border-color:var(--accent)}.chip-btn.active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.sum-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.sum-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;display:flex;flex-direction:column;gap:2px}.sum-card span{font-size:12px;color:var(--muted)}.sum-card b{font-size:20px;font-weight:600}.sum-card-main{background:var(--accent-soft);border-color:#c7d7fb}.sum-card-main b{color:var(--accent-ink)}.bulk-bar{position:sticky;top:68px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:var(--nav-bg);color:#fff;border-radius:10px;padding:10px 14px}.bulk-bar .btn:not(.btn-primary){background:transparent;color:#fff;border-color:#475569}.pos-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px}.pos-status-main{display:flex;align-items:center;gap:10px;font-size:15px}.pos-layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}.pos-products{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:16px}.pos-receipt{flex:1 1 360px;max-width:480px;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;display:flex;flex-direction:column;overflow:hidden}@media(min-width:1100px){.pos-receipt{position:sticky;top:76px}}@media(max-width:1099px){.pos-receipt{max-width:none}}.pos-receipt-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border)}.pos-receipt-head h2{font-size:17px}.pos-receipt .table-wrap{padding:0 10px;max-height:40vh;overflow-y:auto}.pos-cart td{padding:8px 4px;vertical-align:middle}.pos-cart .cell-input{min-height:38px}.pos-pay{background:var(--surface-muted);border-top:1px solid var(--border);padding:14px 18px 18px;display:flex;flex-direction:column;gap:12px}.pos-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.pos-total span:first-child{font-size:16px;font-weight:600}.pos-total .mono{font-size:40px;font-weight:600;letter-spacing:-.02em}.pos-pay-big{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pos-pay-big .btn{min-height:60px;font-size:15px;font-weight:700;white-space:normal;line-height:1.2}.pos-pay-cash{background:#15803d;border-color:#15803d;color:#fff}.pos-pay-cash:hover{color:#fff;filter:brightness(1.08)}.pos-emit{min-height:58px;font-size:17px}.pos-otherdocs{display:flex;flex-direction:column;gap:6px;padding-top:10px;border-top:1px dashed var(--border-strong)}.pos-otherdocs .btn{flex:1 1 auto;min-height:40px}.pos-search .field input{min-height:54px;font-size:17px;border-width:2px;border-color:var(--accent);border-radius:12px}.pos-search .btn{min-height:54px}.pos-key-group-title{font-size:13px;font-weight:600;color:var(--muted)}.pos-key-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.pos-key{min-height:72px;font-size:15px;font-weight:700;border-radius:12px;white-space:normal;line-height:1.2}.pos-key .mono{font-weight:500}@media(max-width:560px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi{padding:12px}.kpi .value{font-size:19px}.home-header h1{font-size:21px}}.pos-mobilebar{display:none}@media(max-width:1099px){.pos-mobilebar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--surface);border-top:1px solid var(--border-strong);padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px #0f172a14}.pos-mobilebar-total{display:flex;flex-direction:column;line-height:1.15;min-width:0}.pos-mobilebar-total .mono{font-size:24px;font-weight:600}.pos-mobilebar .btn{min-height:50px;min-width:140px;font-size:16px;font-weight:700}.content:has(.pos-mobilebar){padding-bottom:96px}}@media(max-width:900px){.pos-mobilebar{bottom:calc(62px + env(safe-area-inset-bottom))}.content:has(.pos-mobilebar){padding-bottom:160px}}@media(min-width:980px),(min-width:760px)and (max-width:900px){.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(330px,38%,460px);gap:16px;align-items:start}.pos-receipt{max-width:none;position:sticky;top:76px;max-height:calc(100dvh - 92px);overflow-y:auto}.pos-receipt>*{flex-shrink:0}.pos-receipt .table-wrap{max-height:34vh}.pos-mobilebar{display:none}.content:has(.pos-mobilebar){padding-bottom:0}}@media(min-width:760px)and (max-width:900px){.content:has(.pos-mobilebar){padding-bottom:72px}}@media(pointer:coarse){.pos-status .btn,.pos-layout .btn:not(.pos-key),.pos-mobilebar .btn{min-height:48px}.pos-cart .cell-input{min-height:44px;font-size:16px}.pos-linkbtn{padding:10px 4px}.pos-pay .field input{min-height:48px;font-size:17px}}.pos-linkbtn{border:0;background:none;padding:2px 0;color:var(--accent-ink);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.pos-pay-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pos-count{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--border);padding-top:12px}.doc-mobilebar{display:none}@media(max-width:1099px){.doc-head-save{display:none}.doc-mobilebar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--surface);border-top:1px solid var(--border-strong);padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px #0f172a14}.doc-mobilebar-total{display:flex;flex-direction:column;line-height:1.15;min-width:0}.doc-mobilebar-total .mono{font-size:19px;font-weight:600;white-space:nowrap}.doc-mobilebar-actions{display:flex;gap:8px;margin-left:auto}.doc-mobilebar-actions .btn{min-height:46px;padding:0 12px;font-size:14px}.content:has(.doc-mobilebar){padding-bottom:90px}}@media(max-width:900px){.doc-mobilebar{bottom:calc(62px + env(safe-area-inset-bottom))}.content:has(.doc-mobilebar){padding-bottom:156px}}.load-error{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.panel>.load-error,.table-wrap>.load-error{margin:12px}th.num{font-family:var(--font);font-size:12px}.th-sort{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;background:none;border:0;padding:2px 0;margin:0;cursor:pointer;display:inline-flex;align-items:center;gap:4px;text-align:inherit}.th-sort:hover,.th-sort.active{color:var(--ink)}.th-sort:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}.th-sort-icon{font-size:10px;opacity:.7}.list-more{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid var(--border)}.chips-sep{width:1px;align-self:stretch;margin:4px;background:var(--border-strong)}button.side-link{width:100%;border:0;background:none;font:inherit;font-size:15px;font-weight:500;text-align:left;cursor:pointer}.side-caret{margin-left:auto;font-size:12px;color:var(--muted)}.side-link:focus-visible,.side-sublink:focus-visible,.dropdown-item:focus-visible,.appbar-btn:focus-visible,.appbar-avatar:focus-visible,.appbar-new:focus-visible,.bottombar-link:focus-visible,.chip-btn:focus-visible,.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.gsearch input:focus{outline:2px solid var(--accent);outline-offset:1px}@media(max-width:900px){.side{visibility:hidden;transition:transform .18s ease,visibility 0s linear .18s}.side.side-open{visibility:visible;transition:transform .18s ease}.dropdown-menu,.dropdown-right{position:fixed;top:64px;left:8px;right:8px;min-width:0;max-height:calc(100vh - 150px);overflow-y:auto}}.serial-btn{white-space:nowrap}.serial-ok{border-color:var(--ok-ink);color:var(--ok-ink)}.serial-ko{border-color:var(--danger-ink);color:var(--danger-ink)}.serial-count-ok{color:var(--ok-ink)}.serial-count-ko{color:var(--danger-ink)}.serial-chips{list-style:none;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:6px;max-height:220px;overflow-y:auto}.serial-chips .chip{display:inline-flex;align-items:center;gap:6px}.serial-chip-x{border:0;background:none;cursor:pointer;color:var(--ink-2);padding:0 2px;font-size:12px}.serial-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px;max-height:240px;overflow-y:auto;margin-top:8px}.serial-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.stack{display:flex;flex-direction:column;gap:14px}.plain-list{margin:0;padding-left:18px}.variant-grid th[scope=row]{text-align:left;white-space:nowrap}.variant-grid td{vertical-align:top}.variant-grid .cell-input{min-height:34px}.text-danger{color:var(--danger)}.chips .check{align-items:center;gap:6px;padding:2px 8px 2px 0}.split-pane{display:grid;grid-template-columns:minmax(170px,240px) minmax(0,1fr);gap:16px;align-items:start}.split-list{display:flex;flex-direction:column;gap:6px}.split-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;font:inherit;color:inherit}.split-item:hover{border-color:var(--accent)}.split-item.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}@media(max-width:700px){.split-pane{grid-template-columns:minmax(0,1fr)}.split-list{flex-direction:row;flex-wrap:wrap}}.signature-field{margin-top:12px}.signature-field .field-label{font-size:13px;font-weight:500}.signature-pad,.signature-image{display:block;width:100%;max-width:520px;aspect-ratio:3 / 1;height:auto;border:1px dashed var(--border-strong);border-radius:6px;background:#fff}.signature-pad{touch-action:none;cursor:crosshair}.signature-image{object-fit:contain}.thumb{display:block;flex:none;object-fit:cover;border-radius:6px;background:#f1f5f9;border:1px solid var(--border)}.thumb-empty{display:inline-block}.files-section{display:flex;flex-direction:column;gap:10px}.files-section h3{font-size:15px;margin:0}.photo-layout{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}.photo-main{flex:0 1 320px;width:320px;max-width:100%;aspect-ratio:1 / 1;padding:0;border:1px solid var(--border);border-radius:var(--radius);background:#fff;overflow:hidden;cursor:zoom-in;display:flex;align-items:center;justify-content:center}.photo-main img{width:100%;height:100%;object-fit:contain}.photo-none{cursor:default;border-style:dashed}.photo-grid{flex:1 1 260px;min-width:0;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}.photo-grid li{display:flex;flex-direction:column;gap:4px;min-width:0}.photo-grid li.is-main .photo-thumb{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.photo-thumb{padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;overflow:hidden;aspect-ratio:1 / 1;cursor:zoom-in}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-tools{display:flex;gap:2px;flex-wrap:wrap}.photo-tools .btn{padding:0 7px;min-width:30px}.photo-tools .star.is-on{color:#b45309}.photo-caption{width:100%;min-width:0;font:inherit;font-size:12px;padding:4px 6px;border:1px solid var(--border);border-radius:6px}.dropzone{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:12px;border:1px dashed var(--border-strong);border-radius:var(--radius)}.dropzone.is-over{border-color:var(--accent);background:var(--accent-soft)}.file-btn{cursor:pointer;position:relative}.file-btn.is-disabled{opacity:.55;cursor:not-allowed}.file-type{display:inline-block;min-width:38px;text-align:center;font-size:11px;font-weight:600;padding:2px 4px;border-radius:4px;background:var(--accent-soft)}.attachments td{vertical-align:top}.attachments a{overflow-wrap:anywhere}.photo-viewer{display:flex;flex-direction:column;gap:10px;align-items:center}.photo-viewer img{max-width:100%;max-height:70vh;object-fit:contain}.notes-field textarea{min-height:96px;resize:vertical}.suggest-row{display:flex;gap:8px;align-items:center;min-width:0}.suggest-row>span{display:flex;flex-direction:column;gap:2px;min-width:0}@font-face{font-family:Fraunces;font-weight:600;font-display:swap;src:url(/api/print/fonts/fraunces-latin-600-normal.woff2) format("woff2")}.serif{font-family:Fraunces,Georgia,serif;letter-spacing:-.01em}.print-settings{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}.print-settings-main{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:14px}.plain-fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}.plain-fieldset legend{font-size:13px;font-weight:600;padding:0;margin-bottom:6px}.logo-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.logo-preview{width:180px;height:72px;border:1px dashed var(--border-strong);border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--surface-muted);padding:6px}.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}.swatches{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.swatch{width:40px;height:40px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--border-strong);cursor:pointer}.swatch.active{box-shadow:0 0 0 3px var(--ink)}.color-field{display:flex;align-items:center;gap:8px}.color-field input{width:48px;height:40px;border:1px solid var(--border-strong);border-radius:8px;padding:2px;background:#fff}.print-preview{flex:1 1 180px;max-width:240px}.print-preview-page{aspect-ratio:794 / 1123;border:1px solid var(--border);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background:#fff}.pp-band{height:30%;background:var(--accent);display:flex;align-items:center;padding:10px}.pp-band img{max-height:36px;max-width:70%;background:#fff;border-radius:6px;padding:3px}.pp-body{flex:1;padding:10px;display:flex;flex-direction:column;gap:6px}.pp-line{height:7px;background:#e2e6ea;border-radius:4px}.pp-box{height:34px;width:50%;border:1.5px solid var(--accent);border-radius:6px;margin-top:6px}.pp-total{margin-top:auto;height:34px;width:55%;align-self:flex-end;background:var(--accent);border-radius:8px}.quote-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.quote-tile{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 16px;text-align:left;font:inherit;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:2px}.quote-tile.warn{border-left:4px solid #b45309}.quote-tile.selected{outline:2px solid var(--accent)}.quote-tile .v{font-size:22px;font-weight:700}.quote-tile .s{font-size:12px;color:var(--muted)}.quote-layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}.quote-list{flex:1 1 340px;max-width:460px;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}.quote-filters{display:flex;flex-wrap:wrap;gap:6px;padding:12px;border-bottom:1px solid var(--border)}.chip{min-height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--border-strong);background:var(--surface);font:inherit;cursor:pointer}.chip.active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.quote-row{display:flex;gap:12px;align-items:center;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--border);background:var(--surface);font:inherit;color:inherit;text-align:left;cursor:pointer}.quote-row.selected{background:var(--accent-soft)}.quote-row .main{flex:1;min-width:0}.quote-row .t{font-weight:700;overflow:hidden;text-overflow:ellipsis}.quote-detail{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:16px}.quote-head{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px 20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}.quote-head .title{font-size:22px;font-weight:600}.quote-cols{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.quote-items{flex:999 1 360px;min-width:0}.quote-side{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:12px}.quote-line{display:flex;gap:12px;align-items:center;padding:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.quote-line.optional{border:1.5px dashed var(--accent);background:var(--surface-muted)}.quote-line.dragging{opacity:.5}.quote-line.comment{border-style:dotted;font-style:italic}.quote-thumb{width:64px;height:52px;flex:none;border-radius:8px;background:#e9eef2;object-fit:contain;display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--muted);font-weight:600}.quote-line{flex-wrap:wrap}.quote-line .main{flex:1 1 150px;min-width:0}.quote-line .name{font-weight:600;overflow-wrap:anywhere}.drag-handle{cursor:grab;color:var(--muted);padding:0 4px;-webkit-user-select:none;user-select:none}.quote-add{border:1.5px dashed var(--border-strong);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.quote-add .lookup{flex:1 1 220px;min-width:0}.quote-total{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--border);padding-top:10px;gap:8px;flex-wrap:wrap}.quote-total .v{font-size:24px;font-weight:700}.timeline{display:flex;flex-direction:column;gap:6px;font-size:13px}.cover-preview{width:100%;max-height:140px;object-fit:cover;border-radius:8px}.lines tr.optional-row td{background:var(--surface-muted)}.lines tr.optional-row td:first-child{box-shadow:inset 3px 0 0 var(--accent)}.app-kiosk .appbar,.app-kiosk .side,.app-kiosk .bottombar,.app-kiosk .page-header{display:none!important}.app-kiosk .content{padding:0}.tt{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;flex-direction:column;overflow:hidden;background:#eef0f3;color:#111827;font-size:15px;-webkit-user-select:none;user-select:none;touch-action:manipulation}.tt button{font-family:inherit;cursor:pointer;touch-action:manipulation}.tt button:disabled{cursor:default;opacity:.45}.tt :focus-visible,.tt-dialog :focus-visible{outline:3px solid #f59e0b;outline-offset:2px}.tt-bar{height:56px;flex-shrink:0;padding:0 12px 0 20px;display:flex;align-items:center;gap:16px;background:#111827;color:#f9fafb}.tt-who{display:flex;flex-direction:column;line-height:1.15;min-width:0;max-width:200px}.tt-who-name{font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt-who-op{font-size:12px;color:#d1d5db;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt-search{flex:1;min-width:180px;position:relative;display:flex;justify-content:center}.tt-search form{width:100%;max-width:560px;position:relative}.tt-search-icon{position:absolute;left:14px;top:12px}.tt-search input{width:100%;height:44px;border-radius:12px;border:0;padding:0 48px 0 44px;font:inherit;font-size:17px;color:#111827;background:#fff;-webkit-user-select:text;user-select:text}.tt-search input::placeholder{color:#4b5563}.tt-search input::-webkit-search-cancel-button{display:none}.tt-search-x{position:absolute;right:4px;top:4px;width:36px;height:36px;border:0;border-radius:10px;background:#f3f4f6;color:#111827;font-size:20px;font-weight:700}.tt-search-x:after{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px}.tt-results{position:absolute;left:50%;transform:translate(-50%);width:min(100%,560px);top:52px;z-index:30;background:#fff;border-radius:14px;box-shadow:0 16px 48px #00000047;border:1px solid #d1d5db;padding:6px;display:flex;flex-direction:column;gap:2px;color:#111827}.tt-result{min-height:60px;border:0;border-radius:10px;background:#fff;color:#111827;display:flex;align-items:center;gap:12px;padding:0 12px;text-align:left}.tt-result:active{background:#eff6ff}.tt-result-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.tt-result-name{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tt-result-code{font-size:13px;color:#4b5563}.tt-result-price{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.tt-result-add{height:40px;padding:0 14px;border-radius:10px;background:#1d4ed8;color:#fff;font-size:15px;font-weight:700;display:flex;align-items:center}.tt-results-none{padding:14px;font-size:16px;color:#4b5563}.tt-pill{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#1f2937;font-size:14px;white-space:nowrap;min-width:0;max-width:240px;color:#f9fafb}.tt-pill-text{overflow:hidden;text-overflow:ellipsis}.tt-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;background:#9ca3af}.tt-pill-ok .tt-dot,.tt-dot-ok{background:#4ade80}.tt-pill-warn .tt-dot,.tt-dot-warn{background:#facc15}.tt-pill-danger .tt-dot,.tt-dot-danger{background:#f87171}.tt-pill-danger{background:#7f1d1d}.tt-pill-off{color:#d1d5db}.tt-pill-ok svg{color:#4ade80}.tt-clock{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;min-width:52px;text-align:right}.tt-menu-btn{width:48px;height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#1f2937;color:#f9fafb;border:0}.tt-main{flex:1;min-height:0;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 296px 404px;gap:12px}.tt-deps{min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px}.tt-dep-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}.tt-dep{border:0;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-align:left;color:#111827;min-height:48px;min-width:0;overflow:hidden}.tt-dep:active{filter:brightness(.92)}.tt-dep-name{font-size:16px;font-weight:700;line-height:1.15;overflow-wrap:anywhere}.tt-dep-foot{display:flex;width:100%;justify-content:space-between;align-items:baseline;gap:4px;flex-wrap:wrap}.tt-dep-vat{font-size:12px;font-weight:600;color:#374151}.tt-dep-price{font-size:14px;font-weight:700;color:#111827;white-space:nowrap}.tt-empty-deps{grid-column:1 / -1;color:#4b5563;font-size:16px}.tt-pages{display:flex;align-items:center;justify-content:center;gap:16px;font-weight:600;color:#374151}.tt-page-btn{width:64px;height:48px;border-radius:12px;border:1px solid #9ca3af;background:#fff;color:#111827;font-size:26px;font-weight:700}.tt-pad{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.tt-display{background:#fff;border-radius:14px;padding:12px 16px;display:flex;flex-direction:column;align-items:flex-end;gap:2px;border:1px solid #d1d5db}.tt-display-head{font-size:13px;font-weight:600;color:#4b5563;align-self:stretch;display:flex;justify-content:space-between}.tt-display-amount{font-size:40px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.5px;white-space:nowrap}.tt-keys{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(48px,1fr);gap:8px}.tt-key{border:1px solid #d1d5db;border-radius:12px;font-size:28px;font-weight:700;background:#fff;color:#111827;min-height:48px}.tt-key:active,.tt-key-gray{background:#e5e7eb}.tt-key-red{background:#fee2e2;color:#991b1b}.tt-key-word{font-size:17px}.tt-receipt{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border-radius:14px;border:1px solid #d1d5db;overflow:hidden}.tt-receipt-head{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e7eb}.tt-receipt-title{font-size:17px;font-weight:700}.tt-receipt-count{font-size:14px;color:#4b5563}.tt-chips{display:flex;flex-wrap:wrap;gap:6px;padding:6px 12px 0}.tt-chip{font-size:13px;font-weight:600;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:3px 10px}.tt-lines{flex:1;min-height:0;overflow-y:auto;padding:6px 8px}.tt-lines-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#4b5563;text-align:center;padding:24px;font-size:15px}.tt-lines-empty-title{font-size:18px;font-weight:600}.tt-line{width:100%;min-height:56px;border:0;border-radius:10px;padding:10px;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;background:#fff;color:#111827;margin-bottom:2px}.tt-line-sel{background:#dbeafe}.tt-line-text{display:flex;flex-direction:column;gap:2px;min-width:0}.tt-line-desc{font-size:17px;font-weight:600;overflow-wrap:anywhere}.tt-line-detail{font-size:14px;color:#4b5563}.tt-line-amount{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}@keyframes tt-flash{0%{background:#86efac}to{background:#fff}}.tt-flash,.pos-cart tr.tt-flash td{animation:tt-flash .9s ease-out}.tt-line-actions{padding:8px 12px;display:flex;gap:8px;border-top:1px solid #e5e7eb;background:#f9fafb}.tt-line-actions .tt-btn{flex:1}.tt-btn{min-height:48px;padding:0 16px;border-radius:10px;border:1px solid #9ca3af;background:#fff;color:#111827;font-size:16px;font-weight:700}.tt-btn-danger-outline{border-color:#b91c1c;color:#b91c1c}.tt-btn-danger{border-color:#b91c1c;background:#b91c1c;color:#fff}.tt-btn-outline{font-weight:600}.tt-btn-dark{width:100%;min-height:64px;border:0;background:#111827;color:#fff;font-size:20px}.tt-btn-back{border:0;background:#f3f4f6;min-height:56px;font-size:18px;font-weight:600}.tt-btn-emit{min-height:76px;border:0;border-radius:14px;background:#15803d;color:#fff;font-size:24px;font-weight:800}.tt-discount{padding:8px 12px;border-top:1px solid #e5e7eb;display:flex;flex-direction:column;gap:6px}.tt-sub{display:flex;justify-content:space-between;font-size:16px;color:#374151;padding:0 4px;font-variant-numeric:tabular-nums}.tt-sub-off{font-size:17px;font-weight:700;color:#b45309}.tt-sub-big{font-size:20px;font-weight:700;color:#111827}.tt-btn-discount{width:100%}.tt-btn-discount-ready{background:#fef3c7;border-color:#d97706}.tt-total{padding:10px 16px;border-top:2px solid #111827;display:flex;justify-content:space-between;align-items:baseline;gap:8px}.tt-total-label{font-size:20px;font-weight:700}.tt-total-amount{font-size:44px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.5px;white-space:nowrap}.tt-pay{padding:0 12px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tt-pay-btn{height:72px;border:0;border-radius:12px;font-size:20px;font-weight:800}.tt-pay-cash{background:#15803d;color:#fff}.tt-pay-card{background:#1d4ed8;color:#fff}.tt-pay-other{border:1px solid #9ca3af;background:#fff;color:#111827;font-weight:700}.tt-toasts{display:flex;flex-direction:column;gap:6px}.tt-receipt .tt-toasts{padding:6px 12px;border-top:1px solid #e5e7eb}.tt-toast{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 6px 6px 12px;border-radius:12px;font-size:15px;font-weight:600;line-height:1.3}.tt-toast-ok{background:#dcfce7;color:#14532d;border:1px solid #86efac}.tt-toast-warn{background:#fef3c7;color:#78350f;border:1px solid #fcd34d}.tt-toast-danger{background:#b91c1c;color:#fff}.tt-toast-x{width:48px;height:48px;flex-shrink:0;border:0;border-radius:10px;background:#00000014;color:inherit;font-size:18px;font-weight:700}.tt-dialog{border:0;border-radius:20px;padding:24px;box-shadow:0 20px 60px #0000004d;color:#111827;background:#fff;max-height:calc(100dvh - 24px);overflow:auto;font-size:15px}.tt-dialog::backdrop{background:#1118278c}.tt-dialog button{font-family:inherit;cursor:pointer}.tt-dialog button:disabled{opacity:.45;cursor:default}.tt-sheet{display:flex;flex-direction:column;gap:16px;margin:0}.tt-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.tt-sheet-title{font-size:26px;font-weight:800}.tt-sheet-text{margin:0;font-size:16px;color:#374151}.tt-sheet-hint{font-size:14px;color:#4b5563}.tt-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tt-queued{background:#eff6ff;border:1px solid #93c5fd;color:#1e3a8a;border-radius:12px;padding:10px 14px;font-size:15px;font-weight:600}.tt-queued-warn{background:#fef3c7;border-color:#fcd34d;color:#78350f;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tt-cash{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.tt-cash-left{display:flex;flex-direction:column;gap:14px;min-width:0}.tt-cash-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tt-cash-box{padding:12px;border-radius:14px;background:#f3f4f6;display:flex;flex-direction:column;gap:4px;min-width:0}.tt-cash-box span{font-size:14px;font-weight:600;color:#4b5563}.tt-cash-box b{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt-cash-change{background:#dcfce7}.tt-cash-change span,.tt-cash-change b{color:#14532d}.tt-cash-short{background:#fee2e2}.tt-cash-short span,.tt-cash-short b{color:#991b1b}.tt-quick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.tt-quick-btn{height:64px;border-radius:12px;border:1px solid #9ca3af;background:#fff;color:#111827;font-size:20px;font-weight:800}.tt-quick-on{background:#dcfce7;border-color:#15803d}.tt-cash-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:56px;gap:8px;align-content:start}.tt-cash-pad .tt-key{font-size:24px}.tt-other-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.tt-other{min-height:60px;border-radius:12px;border:1px solid #9ca3af;background:#fff;color:#111827;font-size:19px;font-weight:700;text-align:left;padding:0 20px}.tt-mixed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tt-field{display:flex;flex-direction:column;gap:6px;font-size:15px;font-weight:600;color:#374151}.tt-field input{height:52px;border-radius:10px;border:1px solid #9ca3af;padding:0 12px;font:inherit;font-size:20px;color:#111827}.tt-done{align-items:center;text-align:center;gap:12px}.tt-done-title{font-size:28px;font-weight:800}.tt-done-doc{font-size:18px;color:#374151}.tt-done-warn{font-size:17px;color:#92400e;font-weight:600}.tt-done-change-label{font-size:20px;font-weight:600;color:#14532d}.tt-done-change{font-size:56px;font-weight:800;color:#14532d;font-variant-numeric:tabular-nums}.tt-sales{display:flex;flex-direction:column;gap:6px;max-height:56dvh;overflow-y:auto}.tt-sale{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:12px}.tt-sale-off{opacity:.6}.tt-sale-main{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14px;color:#374151}.tt-sale-main b{font-size:17px;color:#111827}.tt-sale-total{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}.tt-sale-status{font-size:14px;font-weight:600;color:#374151}.tt-sale-actions{display:flex;gap:8px}.tt-menu{flex:1;min-height:0;display:flex;flex-direction:column}.tt-back{height:44px;padding:0 16px;display:flex;align-items:center;gap:8px;border-radius:12px;border:0;background:#1f2937;color:#f9fafb;font-size:16px;font-weight:600}.tt-back:after{content:""}.tt-menu-title{font-size:18px;font-weight:700;margin:0}.tt-menu-who{font-size:14px;color:#d1d5db;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt-menu-main{flex:1;min-height:0;padding:20px;display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;overflow-y:auto}.tt-menu-ops{display:flex;flex-direction:column;gap:14px;min-width:0}.tt-label{font-size:14px;font-weight:700;color:#4b5563;letter-spacing:.4px}.tt-ops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(104px,132px);gap:12px}.tt-op{border:1px solid #d1d5db;border-radius:16px;background:#fff;padding:16px 18px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-align:left;color:#111827;gap:6px;min-width:0}.tt-op-warm{background:#fff7ed;border-color:#fdba74}.tt-op-title{font-size:21px;font-weight:700}.tt-op-hint{font-size:15px;color:#374151;line-height:1.35}.tt-menu-side{display:flex;flex-direction:column;gap:14px;min-width:0}.tt-box{background:#fff;border:1px solid #d1d5db;border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}.tt-box-head{display:flex;align-items:center;gap:10px}.tt-box-head .tt-dot{width:12px;height:12px}.tt-box-title{font-size:17px;font-weight:700}.tt-box-text{font-size:15px;color:#374151;line-height:1.5;overflow-wrap:anywhere}.tt-box-label{font-size:15px;color:#4b5563}.tt-box-big{font-size:32px;font-weight:800;font-variant-numeric:tabular-nums}.tt-exit{min-height:60px;border-radius:14px;border:1px solid #9ca3af;background:#fff;color:#111827;display:flex;align-items:center;justify-content:center;gap:10px;font-size:18px;font-weight:700}.tt-pin{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:72px;background:#111827;color:#f9fafb;padding:16px;overflow-y:auto}.tt-pin-text{width:420px;max-width:45vw;display:flex;flex-direction:column;gap:18px}.tt-pin-title{font-size:34px;font-weight:800;line-height:1.15;margin:0}.tt-pin-help{font-size:18px;color:#d1d5db;line-height:1.5;margin:0}.tt-pin-dots{display:flex;gap:14px;margin-top:8px}.tt-pin-dot{width:22px;height:22px;border-radius:50%;border:2px solid #f9fafb}.tt-pin-dot-on{background:#f9fafb}.tt-pin-err{font-size:17px;font-weight:600;color:#fca5a5}.tt-pin-ok{font-size:17px;font-weight:600;color:#86efac}.tt-pin-back{align-self:flex-start;min-height:48px;margin-top:12px;padding:0;border:0;background:none;color:#93c5fd;font-size:17px;font-weight:600;text-decoration:underline}.tt-pin-keys{width:360px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:96px;gap:12px}.tt-pin-key{border:0;border-radius:18px;background:#1f2937;color:#f9fafb;font-size:34px;font-weight:700}.tt-pin-key-side{background:#374151;font-size:28px}@media(max-width:1180px){.tt-main{grid-template-columns:minmax(0,1fr) 240px 340px;gap:10px;padding:10px}.tt-bar{gap:10px;padding-left:14px}.tt-pill{padding:6px 10px;max-width:230px}.tt-who{max-width:140px}.tt-display-amount{font-size:32px}.tt-total-amount{font-size:36px}.tt-dep-name{font-size:15px}.tt-ops{grid-template-columns:repeat(3,minmax(0,1fr))}.tt-menu-main{grid-template-columns:minmax(0,1fr) 300px}.tt-pin{gap:40px}}@media(max-height:760px){.tt-display{padding:8px 14px}.tt-display-amount{font-size:30px}.tt-total{padding:6px 16px}.tt-total-amount{font-size:34px}.tt-pay-btn{height:60px}.tt-receipt-head{padding:8px 14px}.tt-discount{padding:6px 12px}.tt-pin-keys{grid-auto-rows:72px;width:300px}.tt-op-title{font-size:19px}.tt-ops{grid-auto-rows:minmax(96px,1fr)}.tt-cash-pad{grid-auto-rows:48px}.tt-quick-btn{height:56px}.tt-btn-emit{min-height:60px}.tt-dialog{padding:16px 20px}.tt-sheet{gap:12px}}@media(max-width:900px){.tt-main{grid-template-columns:minmax(0,1fr);overflow-y:auto}.tt-deps{min-height:360px}.tt-pad{min-height:380px}.tt-receipt{min-height:480px}.tt-bar{flex-wrap:wrap;height:auto;min-height:56px;padding:6px 10px}.tt-search{order:9;flex-basis:100%}.tt-pill-text{max-width:90px}.tt-menu-main{grid-template-columns:minmax(0,1fr)}.tt-ops{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-pin{flex-direction:column;gap:24px}.tt-pin-text{max-width:none;width:100%}.tt-cash{grid-template-columns:minmax(0,1fr)}.tt-quick{grid-template-columns:repeat(3,minmax(0,1fr))}.tt-cash-boxes,.tt-mixed,.tt-row2{grid-template-columns:minmax(0,1fr)}.tt-sale{grid-template-columns:minmax(0,1fr) auto}}.tt-pay-error{background:#fee2e2;border:1px solid #fca5a5;color:#991b1b;border-radius:12px;padding:10px 14px;font-size:16px;font-weight:600}.arrival-lines{display:flex;flex-direction:column;gap:10px}.arrival-line{gap:8px;padding:14px 16px}.arrival-line.arrival-missing{border-left:4px solid var(--warn-ink)}.arrival-line.arrival-diff{background:var(--warn-bg)}.arrival-line-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}.arrival-line-head>div{min-width:0;overflow-wrap:anywhere}.arrival-line-product{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between}.arrival-line-product>div:first-child{min-width:0;overflow-wrap:anywhere}.arrival-line-qty{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.arrival-line-qty .qty-input{width:84px;margin-left:4px}.arrival-diff-text{color:var(--warn-ink);font-weight:600}.field .field-label{font-size:13px;font-weight:500}.mov-filter{gap:10px}.mov-filter-form{display:flex;flex-direction:column;gap:10px}.mov-filter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;align-items:end}.mov-filter-grid .span-2{grid-column:span 2}.mov-filter-grid .field{min-width:0}.mov-filter-grid .field input,.mov-filter-grid .field select{width:100%;min-width:0}.mov-summary{display:flex;flex-wrap:wrap;gap:6px 22px;margin:8px 0 0}.mov-summary div{display:flex;flex-direction:column}.mov-summary dt{font-size:12px;color:var(--muted)}.mov-summary dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}@media(max-width:560px){.mov-filter-grid{grid-template-columns:minmax(0,1fr)}.mov-filter-grid .span-2{grid-column:auto}}.serial-scan{display:flex;flex-direction:column;gap:6px;min-width:0}.serial-scan-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.serial-scan-head label{font-weight:600;font-size:13px}.serial-scan input{width:100%;max-width:360px;min-width:0}.serial-chips .chip.chip-ko{background:var(--danger-bg, #fee2e2);color:var(--danger-ink)}.arrival-lots{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}.arrival-lots .field{min-width:0;flex:1 1 140px;max-width:220px}.arrival-lots .field input{width:100%;min-width:0}.arrival-tracking-warn{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.arrival-list-change{display:flex;flex-direction:column;gap:6px}.arrival-list-change .check{align-items:flex-start;overflow-wrap:anywhere}fieldset.book-fields{border:1px solid var(--border);border-radius:8px;padding:8px 12px 12px;margin:0;min-width:0}fieldset.book-fields>legend{font-weight:600;padding:0 4px}.price-list-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px}.price-list-card{border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}.price-list-card h3{font-size:15px}.price-list-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:2px 10px;margin:0;font-size:13px}.price-list-facts dt{color:var(--muted, #6b7280)}.price-list-facts dd{margin:0;min-width:0}.price-example{overflow-wrap:anywhere}.list-prices td{vertical-align:top}.list-prices .cell-input{width:100%;min-width:80px;max-width:120px;text-align:right}.list-prices .lock-btn{min-width:36px}.list-prices .lock-btn[aria-pressed=true]{background:var(--warn-bg);color:var(--warn-ink)}@media(max-width:480px){.price-list-facts{grid-template-columns:minmax(0,1fr)}.price-list-facts dt{margin-top:4px}}
