:root{--bg:#f6f3ee;--surface:#fff;--surface-2:#faf7f2;--text:#231f1a;--muted:#6f685f;--line:#e8e1d6;--accent:#c2570c;--accent-text:#fff;--accent-soft:#c2570c1a;--danger:#c0392b;--danger-soft:#c0392b1a;--ok:#1e8a50;--ok-soft:#1e8a501a;--shadow:0 1px 2px #231f1a0f, 0 4px 14px #231f1a0d;--ink:#26221e;--ink-2:#332e29;--ink-text:#f4efe8;--ink-muted:#b9afa2;--amber:#f59e0b;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:Segoe UI,Leelawadee UI,Noto Sans Thai,Tahoma,system-ui,sans-serif;font-size:16px;line-height:1.55}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}:root:not([data-theme=light]){--bg:#121110;--surface:#1b1917;--surface-2:#221f1c;--text:#ece7e0;--muted:#a39b90;--line:#2f2b27;--accent:#f59e0b;--accent-text:#1b1100;--accent-soft:#f59e0b24;--danger:#ef6b5b;--danger-soft:#ef6b5b26;--ok:#4cc287;--ok-soft:#4cc28726;--shadow:none;--ink:#0d0c0b;--ink-2:#1a1816}}:root[data-theme=dark]{--bg:#121110;--surface:#1b1917;--surface-2:#221f1c;--text:#ece7e0;--muted:#a39b90;--line:#2f2b27;--accent:#f59e0b;--accent-text:#1b1100;--accent-soft:#f59e0b24;--danger:#ef6b5b;--danger-soft:#ef6b5b26;--ok:#4cc287;--ok-soft:#4cc28726;--shadow:none;--ink:#0d0c0b;--ink-2:#1a1816}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1,h2,p{margin:0}code{background:var(--surface-2);border:1px solid var(--line);word-break:break-all;border-radius:4px;padding:2px 6px;font-family:ui-monospace,Consolas,monospace;font-size:.88em}.app{max-width:1040px;margin:0 auto;padding:0 16px 56px}.topbar{justify-content:space-between;align-items:center;gap:12px;padding:14px 0;display:flex}.brand{letter-spacing:.2px;font-size:1.2rem;font-weight:700}.topbar-right{align-items:center;gap:10px;display:flex}.tabs{border-bottom:1px solid var(--line);scrollbar-width:none;gap:4px;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tab{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;flex:none;margin-bottom:-1px;padding:10px 14px;font-weight:500}.tab:hover{color:var(--text)}.tab.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}button{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap;border-radius:8px;padding:7px 14px}button:hover:not(:disabled){background:var(--surface-2);border-color:var(--muted)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}button.primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.1)}button.small{padding:4px 10px;font-size:.875rem}input,select{font:inherit;border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;color:var(--text);border-radius:8px;padding:8px 10px}input:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}label>span,.inline-label{color:var(--muted);margin-bottom:4px;font-size:.85rem;display:block}.lang{border:1px solid var(--line);background:var(--surface);border-radius:8px;display:inline-flex;overflow:hidden}.lang button{color:var(--muted);background:0 0;border:0;border-radius:0;padding:5px 12px;font-size:.875rem}.lang button.active{background:var(--accent);color:var(--accent-text);font-weight:600}.account{position:relative}.account-button{flex-direction:column;align-items:flex-start;padding:5px 12px;line-height:1.2;display:flex}.account-name{font-size:.9rem;font-weight:600}.account-role{color:var(--muted);font-size:.75rem}.backdrop{z-index:9;cursor:default;background:0 0;border:0;border-radius:0;padding:0;position:fixed;inset:0}.backdrop:hover:not(:disabled){background:0 0}.menu{z-index:10;border:1px solid var(--line);background:var(--surface);border-radius:10px;flex-direction:column;min-width:190px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #0000002e}.menu button{text-align:left;background:0 0;border:0}.card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:12px}.table-card{margin-bottom:16px;overflow:hidden}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th{text-align:left;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--line);white-space:nowrap;padding:10px 14px;font-size:.8rem;font-weight:600}td{text-align:left;vertical-align:middle;border-bottom:1px solid var(--line);padding:11px 14px}tbody tr:last-child td{border-bottom:0}.table-wrap tbody td:first-child{min-width:170px}tr.detail-row td{background:var(--surface-2)}tr.detail-row td>*{max-width:calc(100vw - 52px);position:sticky;left:14px}.num{text-align:right;font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.item-name{font-weight:600}.unit,.muted{color:var(--muted)}.small{font-size:.85rem}.actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.plus{color:var(--ok)}.minus,.error{color:var(--danger)}.ok{color:var(--ok)}.hint{color:var(--muted);margin-bottom:12px;font-size:.9rem}.badge{white-space:nowrap;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:2px 10px;font-size:.8rem;display:inline-block}.badge.pending{color:var(--muted)}.badge.in_transit{background:var(--accent-soft);color:var(--accent);border-color:#0000}.badge.delivered{background:var(--ok-soft);color:var(--ok);border-color:#0000}.low{color:var(--danger);font-weight:600}.low-badge{background:var(--danger-soft);color:var(--danger);border-color:#0000;margin-top:2px;display:inline-block}.warning{border:1px solid var(--danger);background:var(--danger-soft);border-radius:10px;margin-bottom:14px;padding:10px 14px}.toolbar{justify-content:flex-end;gap:8px;margin-bottom:12px;display:flex}.form-card{margin-bottom:16px;padding:16px}.form-card.narrow{flex-direction:column;gap:12px;max-width:420px;display:flex}.form-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;display:grid}.form-grid .wide{grid-column:span 2}.form-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;display:flex}.form-card.narrow .form-actions{margin-top:0}.form-row{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.form-row input{flex:0 180px;width:auto}.form-row input.grow{flex:220px}.inline-label input{margin-top:4px}.history{flex-direction:column;gap:6px;margin:0;padding:0;font-size:.9rem;list-style:none;display:flex}.history li{flex-wrap:wrap;gap:4px 12px;display:flex}.section-title{margin:24px 0 10px;font-size:1.05rem;font-weight:600}.section-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.newkey{border-color:var(--accent);margin-bottom:16px;padding:16px}.newkey code{-webkit-user-select:all;user-select:all;margin:10px 0;padding:10px;display:block}.report-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.segmented{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;gap:2px;max-width:100%;padding:3px;display:inline-flex;overflow-x:auto}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:8px;font-weight:500}.segmented button.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #0000001f}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border-radius:999px;padding:4px 14px;font-size:.9rem}.chip.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.range{margin-bottom:12px}.stats{grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:8px;display:grid}@media (width>=720px){.stats{grid-template-columns:repeat(4,1fr)}}.stat{padding:14px 16px}.stat-label{color:var(--muted);font-size:.85rem}.stat-value{font-variant-numeric:tabular-nums;margin:2px 0;font-size:1.75rem;font-weight:700;line-height:1.25}.stat-value small{color:var(--muted);font-size:.85rem;font-weight:400}.change{color:var(--muted);font-size:.85rem}.change.up{color:var(--ok)}.change.down{color:var(--danger)}.login-page{flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:100svh;padding:16px;display:flex}.login-lang{align-self:flex-end;position:absolute;top:16px;right:16px}.login-card{flex-direction:column;gap:14px;width:100%;max-width:360px;padding:24px;display:flex}.login-brand{text-align:center;margin-bottom:4px}.home-grid{grid-template-columns:1fr;gap:0 20px;display:grid}@media (width>=820px){.home-grid{grid-template-columns:1fr 1fr;align-items:start}}.list-card{overflow:hidden}.list-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.list-row:last-child{border-bottom:0}.row-end{align-items:center;gap:10px;display:flex}.card-title{margin:0 0 12px;font-size:1.05rem;font-weight:600}.two-forms{grid-template-columns:1fr;gap:16px;display:grid}@media (width>=900px){.two-forms{grid-template-columns:1fr 1fr;align-items:start}}.struck>td,.struck{opacity:.6}tr.struck td:not(:last-child),li.struck>span:not(.badge),li.struck>strong,.list-row.struck .item-name{text-decoration:line-through}button.danger{color:var(--danger)}.badge.cancelled{background:var(--danger-soft);color:var(--danger);border-color:#0000}.badge.kind-receive,.badge.kind-fuel{background:var(--accent-soft);color:var(--accent);border-color:#0000}.badge.kind-haul{background:var(--ok-soft);color:var(--ok);border-color:#0000}.badge.kind-undo,.badge.truck-repair{background:var(--danger-soft);color:var(--danger);border-color:#0000}.badge.truck-active{background:var(--ok-soft);color:var(--ok);border-color:#0000}.file-button{border:1px solid var(--accent);background:var(--accent-soft);color:var(--accent);cursor:pointer;border-radius:8px;padding:7px 14px;font-weight:600;display:inline-block}.file-button input{display:none}.import-preview{border:1px solid var(--line);border-radius:8px;max-height:340px;margin:10px 0;overflow:auto}tr.row-bad td{background:var(--danger-soft)}.print-only{display:none}@media print{:root{--bg:#fff;--surface:#fff;--surface-2:#f3f4f6;--text:#111827;--muted:#4b5563;--line:#d1d5db;--accent:#1d4ed8;--accent-soft:#1d4ed81a;--danger:#b91c1c;--danger-soft:#b91c1c1a;--ok:#166534;--ok-soft:#1665341a;--shadow:none}.topbar,.tabs,.no-print{display:none!important}.print-only{margin-bottom:12px;display:block}.print-head h1{margin:0;font-size:1.3rem}.print-head p{color:#555;margin:2px 0 0}.app,.page{max-width:none;padding:0}.card{box-shadow:none}tr,.stat{break-inside:avoid}}@media (width<=560px){.app{padding:0 12px 40px}.brand{font-size:1.05rem}th,td{padding:10px}.form-grid .wide{grid-column:auto}}.toolbar.wrap{flex-wrap:wrap;justify-content:flex-start;align-items:flex-end}.inline-field{color:var(--muted);flex-direction:column;gap:2px;font-size:.85rem;display:flex}.trip-table{font-size:.9rem}.trip-table th,.trip-table td{white-space:nowrap}.trip-table td:nth-child(2),.trip-table td:nth-child(4),.trip-table td:nth-child(18){white-space:normal;min-width:120px}.total-row th{border-top:2px solid var(--line);font-weight:700}button.link{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline}.group-row td{background:#7f7f7f1f;padding-top:.5rem;padding-bottom:.5rem;font-weight:600}.group-row{cursor:pointer}.group-toggle{all:unset;cursor:pointer;width:100%;font-weight:600;display:block}.group-toggle .badge{margin-left:.5rem}.item-row{cursor:pointer}.item-row:hover{background:#7f7f7f14}.chev{width:1em;color:var(--muted,#888);display:inline-block}.group-row.depth-0 td{background:#7f7f7f2e;font-size:1.05em}.group-row.depth-1 td{background:#7f7f7f1a}.shell-head{z-index:20;background:linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);color:var(--ink-text);border-bottom:3px solid var(--amber);position:sticky;top:0;box-shadow:0 4px 18px #0000002e}.shell-inner{max-width:1040px;margin:0 auto;padding:0 16px}.shell-head .topbar{padding:12px 0 8px}.brand{align-items:center;gap:10px;font-size:1.15rem;display:flex}.shell-head .brand{color:var(--ink-text)}.logo{border-radius:10px;flex:none}.shell-head .lang{background:#ffffff14;border-color:#ffffff29}.shell-head .lang button{color:var(--ink-muted)}.shell-head .lang button.active{background:var(--amber);color:#26221e}.shell-head .account-button{color:var(--ink-text);background:#ffffff14;border-color:#ffffff29}.shell-head .account-button:hover:not(:disabled){background:#ffffff24;border-color:#ffffff4d}.shell-head .account-role{color:var(--ink-muted)}.shell-head .tabs{border-bottom:0;gap:6px;padding:4px 0 12px}.shell-head .tab{color:var(--ink-muted);border:0;border-radius:999px;align-items:center;gap:7px;margin:0;padding:8px 14px;font-weight:500;display:inline-flex}.shell-head .tab:hover:not(:disabled){color:var(--ink-text);background:#ffffff1a}.shell-head .tab.active{background:var(--amber);color:#26221e;font-weight:700}.tab-icon{font-size:1.05em;line-height:1}.page{padding-top:22px}.section-title{align-items:center;gap:10px;margin:28px 0 12px;font-size:1.1rem;font-weight:700;display:flex}.section-title:before{content:"";background:var(--amber);border-radius:3px;width:5px;height:1.1em}.section-head .section-title{margin-bottom:12px}.card{border-radius:var(--radius)}button{border-radius:10px;transition:background .12s,border-color .12s,transform 50ms}button:active:not(:disabled){transform:translateY(1px)}button.primary:hover:not(:disabled){filter:brightness(1.08)}input,select{border-radius:10px;min-height:40px}input:focus,select:focus{border-color:var(--accent);outline-offset:0}.hero{border-radius:var(--radius);color:var(--ink-text);background:radial-gradient(120% 140% at 100% 0%, #f59e0b61 0%, #f59e0b00 55%), linear-gradient(135deg, var(--ink-2), var(--ink));box-shadow:var(--shadow);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:8px 16px;margin-bottom:16px;padding:22px 24px;display:flex}.hero-title{font-size:1.5rem;font-weight:700;line-height:1.3}.hero-sub{color:var(--ink-muted)}.hero-date{background:#ffffff1a;border-radius:999px;padding:4px 12px;font-size:.9rem}.stat{padding:16px 16px 14px 18px;position:relative;overflow:hidden}.stat:before{content:"";background:var(--tone,var(--amber));width:5px;position:absolute;inset:0 auto 0 0}.stat.tone-amber{--tone:#f59e0b;--tone-soft:#f59e0b26}.stat.tone-green{--tone:#2e9e63;--tone-soft:#2e9e6326}.stat.tone-blue{--tone:#3b82c4;--tone-soft:#3b82c426}.stat.tone-grey{--tone:#8b8378;--tone-soft:#8b837826}.stat-icon{background:var(--tone-soft);border-radius:12px;place-items:center;width:38px;height:38px;font-size:1.2rem;display:grid;position:absolute;top:12px;right:12px}.stat-label{padding-right:46px}.stat-value{margin-top:6px;font-size:2rem}.overview{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=640px){.overview{grid-template-columns:repeat(2,1fr)}}@media (width>=960px){.overview{grid-template-columns:repeat(3,1fr)}}.folder-card{text-align:left;white-space:normal;cursor:pointer;flex-direction:column;justify-content:flex-start;align-items:stretch;width:100%;padding:14px 16px 10px;transition:transform .12s,border-color .12s;display:flex}.folder-card:hover:not(:disabled){background:var(--surface);border-color:var(--accent);transform:translateY(-2px)}.folder-card-head{align-items:center;gap:10px;margin-bottom:8px;display:flex}.folder-card-icon{background:var(--accent-soft);border-radius:12px;place-items:center;width:38px;height:38px;font-size:1.25rem;display:grid}.folder-card-title{font-weight:700}.folder-line{border-top:1px solid var(--line);padding:7px 0}.folder-line-top{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.bar{background:var(--line);border-radius:999px;height:7px;margin-top:5px;overflow:hidden}.bar>span{background:var(--ok);border-radius:999px;height:100%;display:block}.bar.warn>span{background:var(--danger)}td.num .bar{width:110px;margin-left:auto}.stock-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.stock-toolbar .search{flex:220px;max-width:360px}.toolbar-buttons{flex-wrap:wrap;gap:8px;display:flex}.stock-toolbar+.card,.table-card{box-shadow:var(--shadow)}th{text-transform:none;letter-spacing:.2px}.group-row td{border-bottom:1px solid var(--line)}.group-row.depth-0 td{background:var(--surface-2);border-left:4px solid var(--amber);font-size:1.05em}.group-row.depth-1 td{background:var(--surface-2);border-left:4px solid var(--accent-soft)}.group-row.depth-2 td{background:var(--surface);border-left:4px solid var(--line)}.group-row:hover td{background:var(--accent-soft)}.folder-icon,.item-icon{text-align:center;min-width:1.4em;display:inline-block}.item-row:hover td,.item-row.open td{background:var(--accent-soft)}.item-row .item-name{font-weight:600}tbody tr:hover td{background-color:#0000}.list-row{padding:12px 16px}.login-page{color:var(--ink-text);background:radial-gradient(90% 70% at 85% 0%, #f59e0b4d 0%, #f59e0b00 60%), linear-gradient(#0d0c0bd1, #26221ee6), url(/img/login-bg.jpg) center / cover no-repeat, var(--ink);gap:22px}.login-hero{text-align:center;flex-direction:column;align-items:center;gap:8px;display:flex}.login-title{letter-spacing:.2px;font-size:1.7rem;font-weight:800}.login-tagline{color:var(--ink-muted)}.login-card{max-width:380px;color:var(--text);padding:26px;box-shadow:0 18px 50px #0006}.login-card button.primary{padding:11px 14px;font-size:1.02rem}.login-page .lang{background:#ffffff14;border-color:#ffffff29}.login-page .lang button{color:var(--ink-muted)}.login-page .lang button.active{background:var(--amber);color:#26221e}@media (width<=560px){.brand{gap:8px;min-width:0}.brand span{white-space:nowrap;font-size:.95rem}.brand .logo{width:30px;height:30px}.shell-head .topbar-right{gap:6px}.shell-head .lang button{padding:5px 8px}.shell-head .account-role{display:none}.shell-head .account-button{padding:8px 10px}.hero{padding:18px}.hero-title{font-size:1.3rem}.stat-value{font-size:1.6rem}.shell-head .tab{padding:8px 12px}.toolbar-buttons{width:100%}}@media print{.shell-head{display:none!important}}.filter-bar{flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:12px;display:flex}.filter-bar .search{flex:220px;max-width:340px}.filter-bar .docs-filter{width:auto;min-width:0}.filter-count{margin-left:auto}.chip{align-items:center;gap:4px;display:inline-flex}.docs-panel{border-color:var(--accent)}.docs-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.docs-head .card-title{margin:0}.doc-upload{border:1px dashed var(--line);background:var(--surface-2);border-radius:12px;margin:12px 0 8px;padding:12px}.doc-list{margin:12px 0 0;padding:0;list-style:none}.doc-item{border-top:1px solid var(--line);align-items:center;gap:12px;padding:10px 0;display:flex}.doc-icon{background:var(--accent-soft);border-radius:12px;flex:none;place-items:center;width:40px;height:40px;font-size:1.25rem;display:grid}.doc-main{flex:auto;min-width:0}.doc-buttons{flex:none;gap:6px;display:flex}.docs-warn{color:var(--danger)}.button-link{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:4px 10px;font-size:.875rem;text-decoration:none;display:inline-block}.viewer{z-index:50;place-items:center;padding:12px;display:grid;position:fixed;inset:0}.viewer-backdrop{cursor:default;background:#000000b3;border:0;border-radius:0;padding:0;position:absolute;inset:0}.viewer-backdrop:hover:not(:disabled){background:#000000b3}.viewer-box{border-radius:var(--radius);background:var(--surface);flex-direction:column;width:min(960px,100%);max-height:100%;display:flex;position:relative;overflow:hidden;box-shadow:0 20px 60px #00000080}.viewer-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;display:flex}.viewer-actions{gap:8px;display:flex}.viewer-body{background:var(--surface-2);place-items:center;min-height:200px;padding:12px;display:grid;overflow:auto}.viewer-body img{border-radius:8px;max-width:100%;max-height:78vh}.viewer-body iframe{background:#fff;border:0;border-radius:8px;width:100%;height:78vh}@media (width<=560px){.doc-item{flex-wrap:wrap}.doc-buttons{width:100%}.filter-count{margin-left:0}}@media print{.viewer,.docs-panel{display:none!important}}.filter-row th{background:var(--paper-2,#faf6ee);vertical-align:top;padding:4px 6px;font-weight:400}.filter-row input,.filter-row select{box-sizing:border-box;width:100%;min-width:96px;padding:5px 6px;font-size:.85rem}@media print{.filter-row{display:none}}.renewals{min-width:150px}.renew-line{white-space:nowrap;font-size:.85rem}.renew-soon{color:#a15c00;font-weight:600}.renew-expired{color:#b3261e;font-weight:700}.repair-details{white-space:pre-wrap;min-width:220px;max-width:420px}.form-card textarea{box-sizing:border-box;width:100%;font:inherit;padding:8px}.subtabs{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.form-section{color:var(--ink);border-bottom:1px solid #00000014;margin:16px 0 6px;padding-bottom:4px;font-size:.95rem}.plan-group{margin-bottom:14px}.plan-title{margin:0;padding:12px 14px 4px;font-size:1rem}.plan-empty{padding:16px}.stat-row{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0 4px;display:grid}.stat{background:#fff;border:1px solid #00000014;border-radius:12px;padding:12px 14px}.stat-num{font-size:1.5rem;font-weight:700;line-height:1.3}.summary-note{margin:4px 2px 14px}.inline-field{align-items:center;gap:6px;display:inline-flex}.days-input{width:72px}.two-col{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:14px;display:grid}.link-button{font:inherit;color:inherit;text-decoration:underline;-webkit-text-decoration-color:var(--amber,#f59e0b);text-decoration-color:var(--amber,#f59e0b);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}@media print{.subtabs{display:none}}.stat{background:var(--surface);border-color:var(--line);color:var(--text)}.form-section{color:var(--text);border-bottom-color:var(--line)}.link-button{color:var(--text);-webkit-text-decoration-color:var(--accent);text-decoration-color:var(--accent)}.plan-late .plan-title{color:#d93025}.plan-none .plan-title{color:var(--muted)}.renew-soon{color:#d97706}.renew-expired{color:#d93025}.filter-bar select{flex:0 200px;width:auto;min-width:150px}.filter-bar .inline-field select{flex:none;min-width:120px}.plant-picker{border:1px solid var(--line);border-radius:10px;margin:10px 0;padding:8px 12px}.plant-picker legend{color:var(--text);padding:0 6px;font-weight:600}.plant-picker .chip{cursor:pointer;align-items:center;gap:4px;display:inline-flex}.plant-picker .chip input{margin:0}.bulk-bar{background:var(--surface);border:1px solid var(--line);border-radius:10px;align-items:center;gap:8px;padding:8px 12px}.plant-filter select{margin-left:4px}.plant-picker .chip,.plant-picker .chip input,table input[type=checkbox],.bulk-bar input[type=checkbox]{width:auto;min-width:0}.plant-picker .chip input,table input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--accent);flex:none;margin:0;padding:0}.plant-picker .chip{white-space:nowrap}.shell-head .topbar{align-items:center;padding-bottom:12px}.topbar-left{align-items:center;gap:10px;min-width:0;display:flex}.menu-toggle{width:42px;height:42px;color:var(--ink-text);background:#ffffff14;border:1px solid #ffffff29;border-radius:12px;flex:none;padding:0;font-size:1.5rem;line-height:1}.menu-toggle:hover:not(:disabled){background:#ffffff29}.drawer-backdrop{z-index:39;background:#00000080}.drawer-backdrop:hover:not(:disabled){background:#00000080}.drawer{z-index:40;background:linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);width:min(300px,86vw);color:var(--ink-text);visibility:hidden;border-right:3px solid var(--amber);flex-direction:column;transition:transform .22s,visibility .22s;display:flex;position:fixed;top:0;bottom:0;left:0;transform:translate(-105%);box-shadow:6px 0 28px #00000059}.drawer.open{visibility:visible;transform:none}.drawer-head{border-bottom:1px solid #ffffff1f;align-items:center;gap:10px;padding:16px 14px 12px;display:flex}.drawer-head>div{flex:1;min-width:0}.drawer-user{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.drawer-close{width:34px;height:34px;color:var(--ink-muted);background:0 0;border:0;flex:none;padding:0;font-size:1.1rem}.drawer-items{flex-direction:column;flex:1;gap:4px;padding:10px;display:flex;overflow-y:auto}.drawer-foot{border-top:1px solid #ffffff1f;flex-direction:column;gap:4px;padding:10px;display:flex}.drawer-item{text-align:left;width:100%;color:var(--ink-text);background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:12px 14px;font-size:1rem;font-weight:500;display:flex}.drawer-item:hover:not(:disabled){background:#ffffff1a}.drawer-item.active{background:var(--amber);color:#26221e;font-weight:700}.drawer-item .tab-icon{text-align:center;width:1.5em;font-size:1.25em}.page-title{margin:4px 0 14px;font-size:1.25rem}.topbar-right{gap:8px}.bell-wrap{position:relative}.bell{width:42px;height:42px;color:var(--ink-text);background:#ffffff14;border:1px solid #ffffff29;border-radius:12px;padding:0;font-size:1.25rem;line-height:1;position:relative}.bell:hover:not(:disabled){background:#ffffff29}.bell-count{color:#fff;text-align:center;background:#dc2626;border-radius:999px;min-width:20px;height:20px;padding:0 5px;font-size:.72rem;font-weight:700;line-height:20px;position:absolute;top:-6px;right:-6px}.bell-panel{z-index:10;background:var(--surface);width:min(380px,92vw);max-height:70vh;color:var(--text);border:1px solid var(--line);border-radius:12px;position:absolute;top:calc(100% + 8px);right:0;overflow-y:auto;box-shadow:0 10px 30px #0000004d}.bell-head{border-bottom:1px solid var(--line);padding:12px 14px;font-weight:700}.bell-panel ul{margin:0;padding:4px;list-style:none}.bell-item{text-align:left;width:100%;color:var(--text);background:0 0;border:0;border-radius:8px;padding:10px;font-weight:400;line-height:1.35;display:block}.bell-item:hover:not(:disabled){background:var(--bg-soft,#80808024)}.bell-empty,.bell-more{padding:12px 14px}@media (width<=640px){.bell-panel{width:auto;max-height:calc(100dvh - 80px);position:fixed;top:64px;left:8px;right:8px}.shell-head .account-button .account-role,.brand span{display:none}}.theme-toggle{background:var(--surface);border:1px solid var(--line);width:42px;height:42px;color:var(--text);border-radius:12px;flex:none;padding:0;font-size:1.2rem;line-height:1}.shell-head .theme-toggle{color:var(--ink-text);background:#ffffff14;border-color:#ffffff29}.shell-head .theme-toggle:hover:not(:disabled){background:#ffffff29}.login-lang{align-items:center;gap:8px;display:flex}.note-cell{align-items:center;gap:6px;min-width:150px;display:flex}.note-cell input{width:100%;min-width:0;padding:6px 8px}tr.row-sold td{opacity:.6}.deal-item .doc-main{min-width:0}.deal-files{border:1px dashed var(--line);border-radius:10px;margin-top:10px;padding:10px}.device-box{background:var(--accent-soft);border:1px solid var(--accent);border-radius:12px;padding:12px 14px}.device-box.blocked{background:var(--danger-soft);border-color:var(--danger)}.device-box p{margin:6px 0;font-size:.92rem}.device-code{letter-spacing:.08em;font-family:ui-monospace,Consolas,monospace;font-weight:700}.device-box .device-code{text-align:center;padding:6px 0 2px;font-size:1.6rem}.device-group{margin-top:18px}.device-list{flex-direction:column;gap:10px;margin:8px 0 0;padding:0;list-style:none;display:flex}.device-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;display:flex}.device-card.pending{border-color:var(--accent);background:var(--accent-soft)}.device-card.blocked{opacity:.75}.device-main{flex-direction:column;flex:280px;gap:2px;min-width:0;display:flex}.device-buttons{flex-wrap:wrap;gap:6px;display:flex}.device-name-row{margin-top:8px}.device-card .device-code.small{color:var(--muted);margin-left:6px;font-size:.8rem}.day-ticks-row td{background:var(--bg-soft,#80808014)}.day-ticks{gap:8px;width:min(100%,100vw - 56px);display:grid;position:sticky;left:0}.day-grid{flex-wrap:wrap;gap:6px;display:flex}.day-chip{min-width:40px;height:40px;color:var(--text);border:1px solid var(--line);background:0 0;border-radius:10px;padding:0 6px;font-weight:600}.day-chip.planned{border-style:dashed;border-color:var(--amber)}.day-chip.on{background:var(--amber);color:#26221e;border-style:solid;border-color:var(--amber)}.form-grid label.check-row{flex-direction:row;align-items:center;gap:8px}.form-grid label.check-row input{width:auto}.view-as{gap:4px;padding:8px 14px;display:grid}.view-as select{width:100%}.preview-bar{z-index:40;color:#26221e;background:#f59e0b;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 14px;padding:10px 16px;font-weight:600;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -2px 10px #00000040}.preview-bar button{color:#fff;background:#26221e;border-color:#26221e}body:has(.preview-bar) .app{padding-bottom:72px}
