:root{--bg:#f5f6f8;--panel:#fff;--ink:#171923;--muted:#747b89;--line:#e4e7ec;--accent:#ff5b35;--accent-soft:#fff0eb;--green:#198754;--red:#cc3d3d;--yellow:#a66b00;--shadow:0 8px 30px rgba(20,26,38,.055)}*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;z-index:20}.logo{display:flex;align-items:center;gap:11px;padding:0 8px 28px;font-size:19px}.logo>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--accent);color:#fff;font-size:13px;font-weight:900}.logo b>span{color:var(--accent)}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:11px 12px;border-radius:10px;color:#676e7c;display:flex;align-items:center;gap:11px;font-weight:600}.sidebar nav a:hover,.sidebar nav a.active{background:var(--accent-soft);color:var(--ink)}.sidebar nav i{width:17px;height:17px;border:1.7px solid currentColor;border-radius:5px}.side-user{margin-top:auto;border-top:1px solid var(--line);padding:18px 8px 0;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800}.side-user small,.side-user b{display:block}.side-user small{color:var(--muted);margin-top:2px}.main{min-width:0}.topbar{height:72px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:15}.global-search{width:min(440px,45vw);background:var(--bg);border:1px solid transparent;border-radius:11px;padding:9px 13px;display:flex;gap:9px}.global-search:focus-within{background:#fff;border-color:#ffb39f}.global-search input{border:0;outline:0;background:transparent;width:100%}.top-actions,.head-actions,.form-actions,.status-form{display:flex;align-items:center;gap:10px}.branch{font-size:13px;color:var(--muted)}.branch::first-letter{color:var(--green)}.icon-btn{border:0;background:transparent;border-radius:9px;padding:8px}.icon-btn:hover{background:var(--bg)}.content{padding:32px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.page-head h1{font-size:clamp(28px,3vw,42px);letter-spacing:-.045em;margin:2px 0}.eyebrow{margin:0;color:var(--accent);font-size:12px;letter-spacing:.11em;text-transform:uppercase;font-weight:800}.muted{color:var(--muted);margin:5px 0}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:9px 14px;background:#fff;color:var(--ink);font-weight:700}.btn:hover{border-color:#bac0ca}.btn.primary{background:var(--accent);border-color:var(--accent);color:white}.btn.primary:hover{background:#eb4e2a}.wide{width:100%}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.stat,.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat{padding:18px}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{display:block;font-size:25px;letter-spacing:-.025em;margin:8px 0}.stat small{font-size:12px}.good{color:var(--green)!important}.warn{color:var(--accent)!important}.panel{padding:19px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)}.grid.order-layout{grid-template-columns:minmax(0,1.7fr) 330px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-head h2{font-size:17px;margin:0}.panel-head a{color:var(--accent);font-weight:700;font-size:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:var(--muted);font-size:12px;font-weight:650;padding:10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #edf0f3;font-size:14px}tbody tr:hover{background:#fafbfc}td small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.right{text-align:right}.status{display:inline-flex;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:750;background:#eef0f3}.status.in_progress,.status.accepted{background:#e7f2ff;color:#0b67a7}.status.completed,.status.ready{background:#e7f7ef;color:#16764d}.status.waiting,.status.queued{background:#fff4dc;color:#8b5b00}.status.cancelled{background:#fdeaea;color:#b33434}.appointment{display:grid;grid-template-columns:54px 1fr;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.appointment time{color:var(--accent);font-weight:850}.appointment small,.vehicle small,.timeline small,.rank small{display:block;color:var(--muted);margin-top:4px}.empty{padding:30px;text-align:center;color:var(--muted)}.filters{display:flex;align-items:center;gap:10px;margin-bottom:16px}.filters input{max-width:360px}.form-panel{max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-stack{display:grid;gap:15px}.compact{gap:10px;margin-top:14px}.span-2{grid-column:1/-1}label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#4c5360}input,select,textarea{width:100%;border:1px solid #d9dde4;border-radius:10px;background:#fff;color:var(--ink);padding:10px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#ff9d84;box-shadow:0 0 0 3px #fff0eb}.check{display:flex;align-items:center;grid-template-columns:auto 1fr}.check input{width:18px;height:18px}.form-actions{justify-content:flex-end;padding-top:5px}.vehicle{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.plate{display:inline-flex;background:#fff;border:2px solid #222;border-radius:5px;padding:3px 7px;font-size:14px;letter-spacing:.08em;font-weight:850;margin-left:8px}.plate.small{font-size:11px;margin:0}.timeline{display:grid;grid-template-columns:12px 1fr auto;gap:11px;align-items:start;padding:13px 0;border-bottom:1px solid var(--line)}.timeline>span{width:9px;height:9px;border-radius:50%;background:var(--accent);margin-top:4px}.stock{font-weight:850}.stock.low{color:var(--red)}code{background:#f1f3f5;padding:3px 6px;border-radius:5px}dialog{border:0;padding:0;border-radius:17px;box-shadow:0 30px 90px rgba(0,0,0,.23);width:min(560px,calc(100% - 24px))}dialog::backdrop{background:rgba(15,17,23,.48);backdrop-filter:blur(3px)}.dialog-card{padding:22px;display:grid;gap:15px}.order-total{display:flex;justify-content:flex-end;align-items:center;gap:25px;padding:22px 10px 4px}.order-total strong{font-size:25px}.payment-total{background:var(--accent-soft);border-radius:12px;padding:16px;margin-bottom:16px}.payment-total span,.payment-total small{display:block;color:var(--muted)}.payment-total strong{font-size:25px;display:block;margin:6px 0}.rank{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.flash{border-radius:11px;padding:12px 14px;margin-bottom:16px;background:#eef0f3}.flash.success{background:#e7f7ef;color:#166e49}.flash.error{background:#fdeaea;color:#a62f2f}.guest{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 25% 10%,#fff0eb,transparent 32%),var(--bg);padding:20px}.guest main{width:min(440px,100%)}.login-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 25px 80px rgba(34,37,44,.12);display:grid;gap:25px}.logo.large{padding:0}.mobile-only{display:none}
@media(max-width:1050px){.app-shell{grid-template-columns:78px 1fr}.sidebar{padding:20px 10px}.logo b,.sidebar nav a{font-size:0}.logo{padding:0 8px 28px}.sidebar nav a{justify-content:center}.side-user>div:not(.avatar){display:none}.side-user{justify-content:center}.stats{grid-template-columns:1fr 1fr}.grid.two,.grid.order-layout{grid-template-columns:1fr}}
@media(max-width:680px){.app-shell{display:block}.sidebar{position:fixed;left:-250px;width:230px;transition:.2s;box-shadow:0 0 40px rgba(0,0,0,.18)}.sidebar.open{left:0}.logo b,.sidebar nav a{font-size:inherit}.sidebar nav a{justify-content:flex-start}.side-user>div:not(.avatar){display:block}.side-user{justify-content:flex-start}.mobile-only{display:block}.topbar{padding:0 13px;height:62px}.global-search{width:100%;margin:0 8px}.branch{display:none}.content{padding:20px 13px 90px}.page-head{align-items:flex-start;flex-direction:column}.page-head>.btn,.page-head .head-actions{width:100%}.head-actions .btn{flex:1}.stats{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:14px}.stat strong{font-size:20px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.filters{flex-wrap:wrap}.filters input{flex:1;min-width:130px}.panel{padding:14px}.status-form{width:100%}.status-form select{flex:1}.login-card{padding:25px}}
.sidebar-backdrop{display:none}.logout-btn span:last-child{display:none}
.vin-field{display:grid;grid-template-columns:1fr auto;align-items:start;gap:8px}.vin-check{align-self:start;margin-top:calc(1em + 7px);white-space:nowrap}.vin-result{border:1px solid var(--line);border-radius:11px;padding:14px;background:#f8f9fb}.vin-result.success{border-color:#a8dbc3;background:#f0faf5}.vin-result.warn{border-color:#ead397;background:#fff9e9}.vin-result.error{border-color:#efb0b0;background:#fff1f1;color:#922}.vin-result p{margin:0 0 10px}.vin-result p:last-child{margin-bottom:0}.vin-result dl{display:grid;grid-template-columns:max-content 1fr;gap:5px 12px;margin:10px 0}.vin-result dt{color:var(--muted)}.vin-result dd{margin:0;font-weight:700}.vin-result .vin-warning{color:#7a5a13;font-size:13px}.vin-result .btn{margin-top:4px}
@media(max-width:680px){body.menu-open{overflow:hidden}.sidebar-backdrop{position:fixed;inset:0;border:0;background:rgba(15,17,23,.42);z-index:19}.menu-open .sidebar-backdrop{display:block}.table-wrap{margin-inline:-14px;padding-inline:0 14px}.page-head h1{overflow-wrap:anywhere}}
@media(max-width:420px){.stats{grid-template-columns:1fr}.global-search input::placeholder{color:transparent}.head-actions{flex-direction:column}.head-actions>*{width:100%}.vin-field{grid-template-columns:1fr}.vin-check{margin-top:0}.vin-result dl{grid-template-columns:1fr;gap:2px}.vin-result dd{margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.receipt-layout{display:grid;grid-template-columns:minmax(0,1.7fr) 330px;gap:16px;align-items:start}.receipt-side{display:grid;gap:14px;position:sticky;top:92px}.scan-box{background:var(--accent-soft);border:1px solid #ffd1c5;border-radius:13px;padding:16px;margin-bottom:16px}.scan-row{display:flex;gap:8px}.scan-row input,.scan-row select{flex:1}.scan-box>small{display:block;color:var(--muted);margin-top:8px}.scan-message{min-height:20px;margin:9px 0 0;font-weight:700}.scan-message.success{color:var(--green)}.scan-message.error{color:var(--red)}.scan-message.warn{color:var(--yellow)}.unknown-code{border:1px solid #ead397;background:#fff9e9;border-radius:12px;padding:15px;margin-bottom:16px}.unknown-code p{margin:6px 0 12px}.camera-box{margin-top:12px}.camera-box video{width:100%;max-height:360px;background:#111;border-radius:11px;object-fit:cover}.camera-box .btn{margin-top:8px}.receipt-table input{min-width:105px;padding:8px}.receipt-table td:first-child{min-width:220px}.receipt-summary{display:grid;gap:7px;border-top:1px solid var(--line);padding-top:14px}.receipt-summary span{display:flex;justify-content:space-between;color:var(--muted)}.receipt-summary strong{text-align:right;font-size:24px}.btn:disabled{opacity:.5;cursor:not-allowed}
.excel-import-box{border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:16px;background:#fafbfc}.excel-import-box h2{margin:0 0 5px;font-size:18px}.excel-import-box p{margin:0}.excel-import-controls{display:flex;align-items:center;gap:10px;margin-top:14px}.excel-import-controls input{flex:1;min-width:0;padding:10px;background:#fff}.excel-import-preview{margin-top:14px}.excel-import-summary{padding:10px 12px;margin-bottom:10px;border-radius:9px;background:#fff;color:var(--muted);font-size:13px}.excel-import-preview .table-wrap{overflow-x:hidden}.excel-import-preview table{width:100%;min-width:0;table-layout:fixed}.excel-import-preview .excel-col-row{width:58px}.excel-import-preview .excel-col-product{width:auto}.excel-import-preview .excel-col-quantity{width:104px}.excel-import-preview .excel-col-price{width:100px}.excel-import-preview .excel-col-result{width:74px}.excel-import-preview th,.excel-import-preview td{padding-left:9px;padding-right:9px}.excel-product-cell{min-width:0}.excel-product-cell b{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.3;max-height:2.6em}.excel-product-cell small{display:block;overflow:hidden;margin-top:4px;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.excel-number-cell{white-space:nowrap}.excel-status-cell,.excel-result-head{text-align:center}.import-status-icon{display:inline-grid;width:28px;height:28px;border:2px solid currentColor;border-radius:50%;place-items:center;font-size:17px;font-weight:900;line-height:1;cursor:help}.import-ok{color:var(--green)}.import-warn{color:#b57900}.import-error{color:var(--red)}.mobile-label{display:none}.excel-import-preview .form-actions{margin-top:12px}
.receipt-pending-panel{margin-top:16px}.pending-receipt-list{display:grid;gap:12px}.pending-receipt-item{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:18px;padding:16px;border:1px solid var(--line);border-radius:13px}.pending-receipt-item.pending{border-color:#efcf80;background:#fffdf7}.pending-source h3{margin:5px 0;font-size:16px}.pending-source p{margin:0;color:var(--muted)}.pending-resolution{display:grid;align-content:center;justify-items:start;gap:6px}.pending-resolution small{color:var(--muted)}.pending-approval-form{display:grid;gap:12px}.pending-existing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.pending-existing p{grid-column:1/-1;margin:0}.pending-approval-form.has-existing-product .pending-new-product{display:none}.btn.compact{padding:10px 12px;white-space:nowrap}
.receipt-pending-notice{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:12px 13px;border:1px solid #efcf80;border-radius:11px;background:#fff9e9;color:#6d5210;font-size:13px;line-height:1.45}.receipt-pending-notice>span{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border-radius:50%;background:#f1b93f;color:#fff;font-size:13px;font-weight:900;font-family:Georgia,serif}.receipt-pending-notice p{margin:0}.receipt-pending-notice[hidden]{display:none!important}
.receipt-posted-wrap{overflow-x:hidden}.receipt-posted-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}.receipt-posted-table .receipt-product-col{width:auto}.receipt-posted-table .receipt-sku-col{width:130px}.receipt-posted-table .receipt-quantity-col{width:120px}.receipt-posted-table .receipt-price-col{width:145px}.receipt-posted-table .receipt-total-col{width:120px}.receipt-posted-product b{display:block;line-height:1.4;overflow-wrap:anywhere}.receipt-posted-table td:not(.receipt-posted-product),.receipt-posted-table th:not(:first-child){white-space:nowrap}.receipt-posted-table tfoot td{border-top:2px solid var(--line);border-bottom:0;font-size:16px;font-weight:850}.receipt-posted-table tfoot td:last-child{font-size:18px}@media(max-width:760px){.receipt-posted-table .receipt-sku-col{width:92px}.receipt-posted-table .receipt-quantity-col{width:82px}.receipt-posted-table .receipt-price-col{width:100px}.receipt-posted-table .receipt-total-col{width:92px}.receipt-posted-table th,.receipt-posted-table td{padding-left:5px;padding-right:5px;font-size:11px}.receipt-posted-product b{font-size:12px}.receipt-posted-table tfoot td:last-child{font-size:14px}}
.supplier-confirmation-card{width:min(620px,calc(100vw - 32px))}.supplier-confirmation-card>.panel-head{margin-bottom:4px}.supplier-confirmation-card>.panel-head h2{margin:2px 0}.supplier-confirmation-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.supplier-confirmation-details>div{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.supplier-confirmation-details .wide{grid-column:1/-1}.supplier-confirmation-details dt{color:var(--muted);font-size:12px}.supplier-confirmation-details dd{margin:4px 0 0;font-weight:750;overflow-wrap:anywhere}@media(max-width:560px){.supplier-confirmation-details{grid-template-columns:1fr}.supplier-confirmation-details .wide{grid-column:auto}.supplier-confirmation-card .form-actions{align-items:stretch;flex-direction:column-reverse}.supplier-confirmation-card .btn{width:100%}}
.badge{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.badge.success{background:#e7f7ef;color:#0b8651}.badge.warning{background:#fff2cc;color:#946200}
@media(max-width:900px){.receipt-layout{grid-template-columns:1fr}.receipt-side{position:static}.scan-row{flex-wrap:wrap}.scan-row input,.scan-row select{flex-basis:100%}.excel-import-controls{align-items:stretch;flex-direction:column}.excel-import-controls .btn{width:100%}.excel-import-preview .excel-col-row{width:48px}.excel-import-preview .excel-col-quantity{width:88px}.excel-import-preview .excel-col-price{width:88px}.excel-import-preview .excel-col-result{width:54px}.excel-import-preview th,.excel-import-preview td{padding-left:6px;padding-right:6px}.excel-import-preview th{font-size:11px}.desktop-label{display:none}.mobile-label{display:inline}.import-status-icon{width:25px;height:25px;font-size:15px}.pending-receipt-item{grid-template-columns:1fr}.pending-existing{grid-template-columns:1fr}.pending-existing p{grid-column:auto}}
.transfer-list{display:grid;gap:12px}.transfer-list>.panel-head{margin-bottom:4px}.transfer-card{border:1px solid var(--line);border-radius:12px;padding:15px}.transfer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.transfer-head small{display:block;color:var(--muted);margin-top:4px}.transfer-card form>.btn{margin-top:12px}.receive-check{width:20px;height:20px}.receive-qty{width:110px;margin-left:auto}.status.in_transit{background:#fff4dc;color:#8b5b00}.status.discrepancy{background:#fdeaea;color:#b33434}.status.received{background:#e7f7ef;color:#16764d}.transfer-card>.muted{font-size:12px;margin:10px 0 0}
.new-product-box{margin-top:14px;border-top:1px solid #ead397;padding-top:14px}.new-product-box h3{margin:0 0 12px;font-size:16px}.new-product-box>.btn{margin-top:12px}
.settings-links{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.settings-card{display:block;transition:.15s}.settings-card:hover{border-color:#ff9d84;transform:translateY(-1px)}.settings-card span,.settings-card p{color:var(--muted)}.settings-card h2{margin:7px 0;font-size:20px}.settings-card p{margin:0 0 14px}.settings-card b{color:var(--accent)}.catalog-filters input{flex:1}.catalog-layout{grid-template-columns:minmax(0,1fr) 330px}.catalog-edit-layout{grid-template-columns:minmax(0,1fr) 360px}.category-row,.barcode-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.category-row input{flex:1}.category-row>span{color:var(--muted)}.barcode-row{justify-content:space-between}.barcode-row small{display:block;color:var(--muted);margin-top:5px}.archived-row{opacity:.62}.archive-action{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.catalog-manage-filters{display:grid;grid-template-columns:minmax(320px,1fr) 230px 150px auto auto;gap:10px;margin-bottom:16px}.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px}.catalog-pagination span{color:var(--muted);font-size:13px}@media(max-width:900px){.catalog-manage-filters{grid-template-columns:1fr 1fr}.catalog-manage-filters input{grid-column:1/-1}}@media(max-width:560px){.catalog-manage-filters{grid-template-columns:1fr}}
@media(max-width:900px){.settings-links{grid-template-columns:1fr}.catalog-layout,.catalog-edit-layout{grid-template-columns:1fr}}
.row-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.edit-icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:19px;line-height:1}.edit-icon-btn:hover{border-color:#ff9d84;background:var(--accent-soft)}
.pencil-icon{position:relative;width:17px;height:5px;border-radius:2px;background:currentColor;transform:rotate(-45deg)}.pencil-icon::before{content:"";position:absolute;left:-5px;top:0;border-top:2.5px solid transparent;border-bottom:2.5px solid transparent;border-right:5px solid currentColor}.pencil-icon::after{content:"";position:absolute;right:-3px;top:0;width:3px;height:5px;border-radius:0 1px 1px 0;background:var(--accent)}
@media(max-width:520px){.rank{align-items:flex-start;gap:10px}.row-actions{align-items:flex-end;flex-direction:column}}
.catalog-filters{display:grid;grid-template-columns:minmax(420px,2.4fr) minmax(220px,1fr) minmax(180px,.8fr) auto;width:100%}.catalog-filters input{max-width:none}
@media(max-width:900px){.catalog-filters{grid-template-columns:1fr 1fr}.catalog-filters input{grid-column:1/-1}}
.global-search{align-items:center}.global-search>span{position:relative;display:block;flex:0 0 18px;width:18px;height:18px;font-size:0;color:var(--muted)}.global-search>span::before{content:"";position:absolute;width:9px;height:9px;left:2px;top:2px;border:1.8px solid currentColor;border-radius:50%}.global-search>span::after{content:"";position:absolute;width:7px;height:1.8px;left:10px;top:12px;border-radius:2px;background:currentColor;transform:rotate(45deg);transform-origin:left center}
.sidebar nav i{display:block;width:19px;height:19px;border:0;border-radius:0;background:currentColor;mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}
.sidebar nav i[data-icon="grid"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="calendar"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v13H3V7a2 2 0 0 1 2-2zm2-3v6m10-6v6M3 10h18' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v13H3V7a2 2 0 0 1 2-2zm2-3v6m10-6v6M3 10h18' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="file"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l5 5v15H6zM14 2v6h5M9 13h7M9 17h7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l5 5v15H6zM14 2v6h5M9 13h7M9 17h7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="users"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 9a7 7 0 0 1 14 0m1-16a4 4 0 0 1 0 7m1 2a6 6 0 0 1 4 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 9a7 7 0 0 1 14 0m1-16a4 4 0 0 1 0 7m1 2a6 6 0 0 1 4 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="box"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 7 9-5 9 5-9 5zm0 0v10l9 5 9-5V7M12 12v10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 7 9-5 9 5-9 5zm0 0v10l9 5 9-5V7M12 12v10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="send"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m22 2-7 20-4-9-9-4zm-11 11L22 2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m22 2-7 20-4-9-9-4zm-11 11L22 2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="chart"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h4v10zm6 0V4h4v16zm6 0v-7h4v7z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h4v10zm6 0V4h4v16zm6 0v-7h4v7z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
.sidebar nav i[data-icon="gear"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8 4 2 2-2 3-3-1-1 3-4 1-2-3-3 1-2-3 2-3-2-2 2-3 3 1 2-3 4 1 1 3 3-1 2 3z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8 4 2 2-2 3-3-1-1 3-4 1-2-3-3 1-2-3 2-3-2-2 2-3 3 1 2-3 4 1 1 3 3-1 2 3z' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E")}
.vehicle-link{border-radius:10px;padding-left:2px;padding-right:10px;transition:.15s}.vehicle-link:hover{background:#faf5f3}.vehicle-link>div{min-width:0}.vehicle-link small{white-space:normal}.vehicle-open{margin-left:auto;color:var(--accent);font-size:28px;line-height:1}.text-link{color:var(--accent);font-weight:700}.vehicle-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.vehicle-facts .stat{min-width:0}.vehicle-facts .stat strong{font-size:17px;overflow-wrap:anywhere}.vehicle-card-layout{grid-template-columns:minmax(0,1.65fr) minmax(330px,.75fr)}.vehicle-page-head h1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.vehicle-page-head .plate{font-size:.45em;margin:0}.vehicle-card-layout>.panel{align-self:start}
@media(max-width:1100px){.vehicle-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.vehicle-card-layout{grid-template-columns:1fr}}
@media(max-width:680px){.vehicle-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-facts .stat strong{font-size:15px}.vehicle-page-head h1{align-items:flex-start;flex-direction:column}.vehicle-page-head .plate{font-size:15px}}
@media(max-width:420px){.vehicle-facts{grid-template-columns:1fr}}
.vehicle-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.vehicle-title-row h1{margin:2px 0}.fact-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.inline-edit-pencil{width:28px;height:28px;flex:0 0 28px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#59606c;display:grid;place-items:center;padding:0}.inline-edit-pencil:hover{border-color:#ff9d84;color:var(--accent);background:var(--accent-soft)}.inline-edit-pencil .pencil-icon{width:13px;height:4px}.editable-fact>strong{margin-bottom:0}.inline-fact-form{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px;gap:6px;align-items:center;margin-top:10px}.inline-fact-form input,.inline-fact-form select{padding:8px;font-size:13px;min-width:0}.inline-save,.inline-cancel{width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:#fff;font-weight:900;padding:0}.inline-save{color:var(--green);border-color:#b8dfcd}.inline-cancel{color:var(--muted)}.inline-identity-form{display:grid;grid-template-columns:150px minmax(150px,1fr) minmax(150px,1fr) 36px 36px;gap:8px;align-items:end;margin:12px 0}.inline-identity-form label{min-width:0}.inline-identity-form input,.inline-identity-form select{padding:8px}.inline-identity-form .inline-save,.inline-identity-form .inline-cancel{width:36px;height:36px}.editable-fact [hidden],.vehicle-page-head [hidden]{display:none!important}
@media(max-width:680px){.inline-identity-form{grid-template-columns:1fr 1fr}.inline-identity-form label:first-of-type{grid-column:1/-1}.inline-identity-form .inline-save,.inline-identity-form .inline-cancel{width:100%}.vehicle-title-row{align-items:center}.vehicle-title-row h1{font-size:30px}}
.inventory-products .panel-head input{width:min(520px,55vw)}.inventory-products table{table-layout:fixed;width:1120px;min-width:1120px}.inventory-products .col-sku{width:130px}.inventory-products .col-product{width:320px}.inventory-products .col-manufacturer{width:150px}.inventory-products .col-category{width:175px}.inventory-products .col-unit{width:75px}.inventory-products .col-money{width:110px}.inventory-products .col-stock{width:95px}.inventory-product-name{width:320px;min-width:320px;max-width:320px;vertical-align:top}.inventory-product-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-product-application{display:block;margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.4;font-weight:500;white-space:normal;overflow-wrap:anywhere;word-break:normal}.inventory-loader{text-align:center;color:var(--muted);padding:18px 10px}.category-settings{max-width:920px}.category-settings .category-row>span{min-width:100px;text-align:right}.select-with-action{display:flex;gap:8px;align-items:center}.select-with-action select{min-width:0;flex:1}.select-with-action .icon-btn{flex:0 0 44px}
.directory-settings{max-width:1180px}.directory-row{display:grid;grid-template-columns:1.2fr .8fr 1.2fr auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line)}.directory-row label{margin:0}.directory-actions,.supplier-actions{display:flex;align-items:center;gap:8px}.supplier-card{border-bottom:1px solid var(--line)}.supplier-card summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 4px;cursor:pointer}.supplier-card summary span:first-child{display:grid;gap:4px}.supplier-card summary small{color:var(--muted)}.supplier-form{padding:0 4px 18px}.supplier-actions{margin-top:14px}@media(max-width:900px){.directory-row{grid-template-columns:1fr}.directory-actions{justify-content:flex-end}}
.settings-links{grid-template-columns:repeat(4,1fr)}@media(max-width:1200px){.settings-links{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.settings-links{grid-template-columns:1fr}}
.inventory-products table{width:1165px;min-width:1165px}
.inventory-products table{width:945px;min-width:945px}.product-price-facts{grid-template-columns:repeat(2,minmax(180px,260px));justify-content:start}
@media(max-width:680px){.inventory-products .panel-head{align-items:stretch;flex-direction:column}.inventory-products .panel-head input{width:100%}.inventory-products .col-product{width:210px}}
.product-stock-hint{min-height:18px;color:var(--green);font-size:13px;font-weight:700;margin-top:-4px}
.inventory-products .col-product{width:320px}
.inventory-category,.inventory-manufacturer{white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top}.inventory-unit{white-space:nowrap}
.inventory-catalog-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.inventory-catalog-actions input{width:min(620px,48vw)}.inventory-catalog-actions .btn{white-space:nowrap}@media(max-width:900px){.inventory-catalog-head{align-items:stretch;flex-direction:column}.inventory-catalog-actions{width:100%;margin-left:0}.inventory-catalog-actions input{width:100%}}@media(max-width:560px){.inventory-catalog-actions{align-items:stretch;flex-direction:column}}
[hidden]{display:none!important}
.btn:not(.primary){border-color:var(--accent)}
.btn:not(.primary):hover{border-color:var(--accent);background:var(--accent-soft)}
.btn:not(.primary):focus-visible{outline:3px solid rgba(255,91,53,.22);outline-offset:2px}
.ajax-autocomplete{position:relative}.autocomplete-menu{position:absolute;z-index:50;top:calc(100% + 6px);left:0;right:0;max-height:260px;overflow-y:auto;padding:6px;background:#fff;border:1px solid #ffb39f;border-radius:11px;box-shadow:0 14px 38px rgba(20,26,38,.16)}.autocomplete-option{display:block;width:100%;padding:10px 11px;border:0;border-radius:8px;background:#fff;color:var(--ink);text-align:left}.autocomplete-option:hover,.autocomplete-option:focus-visible{background:var(--accent-soft);outline:none}.autocomplete-option b,.autocomplete-option small{display:block}.autocomplete-option b{font-size:13px}.autocomplete-option small{margin-top:4px;color:var(--muted);font-size:12px}.autocomplete-option.unavailable{cursor:not-allowed;background:#f7f8fa;color:#9298a3}.autocomplete-option.unavailable small{color:var(--red);font-weight:750}.autocomplete-empty{padding:12px;color:var(--muted);font-size:13px;text-align:center}
.client-select-action{grid-template-columns:minmax(0,1fr) auto}.client-select-action .btn{white-space:nowrap}.quick-client-box{margin-top:-4px}.quick-client-box h3{margin:0 0 12px}.quick-vehicle-picker{display:grid;align-self:start;gap:8px;min-width:0}.quick-vehicle-add{justify-self:start}.quick-vehicle-picker>small:empty{display:none}@media(max-width:560px){.client-select-action{grid-template-columns:1fr}.client-select-action .btn,.quick-vehicle-add{width:100%}}
.btn.danger{border-color:var(--red);color:var(--red);background:#fff}.btn.danger:hover{border-color:var(--red);background:#fdeaea}
.sidebar-bottom{display:flex;min-height:0;flex-direction:column;margin-top:auto}.sidebar-bottom .side-user{flex:0 0 auto;margin-top:12px}.sidebar-notifications{min-height:0;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}.notification-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 3px 8px}.notification-head b{font-size:12px}.notification-head button{border:0;background:transparent;color:var(--accent);font-size:10px;font-weight:750;padding:3px;white-space:nowrap}.notification-list{display:grid;max-height:min(46vh,430px);gap:7px;overflow-y:auto;padding:2px 3px 3px}.notification-card{position:relative;border:1px solid #efd48b;border-radius:10px;background:#fffaf0;box-shadow:0 3px 12px rgba(20,26,38,.04)}.notification-card>a{display:block;padding:10px 28px 10px 10px}.notification-card>a:hover{background:#fff4d8;border-radius:9px}.notification-card b{display:block;font-size:11px;line-height:1.35}.notification-card p{display:-webkit-box;overflow:hidden;margin:5px 0;color:#625b4c;font-size:10px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5}.notification-card time{display:block;color:#8b7b59;font-size:9px}.notification-close{position:absolute;top:5px;right:5px;width:22px;height:22px;border:0;border-radius:6px;background:transparent;color:#8b7b59;font-size:17px;line-height:1}.notification-close:hover{background:#f4e6bf;color:var(--ink)}.notification-bell{display:none;position:relative;width:44px;height:44px;margin:14px auto 4px;border:1px solid #ffd0c4;border-radius:11px;background:var(--accent-soft);font-size:18px}.notification-bell span{position:absolute;right:-5px;top:-6px;display:grid;min-width:20px;height:20px;padding:0 5px;place-items:center;border-radius:999px;background:var(--accent);color:#fff;font-size:10px;font-weight:850}
@media(max-width:1050px) and (min-width:681px){.notification-bell{display:block}.sidebar-notifications{display:none;position:absolute;z-index:40;left:calc(100% + 9px);bottom:74px;width:330px;max-height:min(70vh,560px);margin:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 20px 55px rgba(20,26,38,.2)}.sidebar-notifications.open{display:block}.notification-list{max-height:min(60vh,470px)}.notification-head b,.notification-card b{font-size:13px}.notification-card p{font-size:12px}.notification-card time,.notification-head button{font-size:11px}}
@media(max-width:680px){.notification-bell{display:none}.sidebar-notifications{display:block}.notification-list{max-height:34vh}.notification-head b,.notification-card b{font-size:13px}.notification-card p{font-size:12px}.notification-card time,.notification-head button{font-size:11px}}
.search-match{display:inline;background:#ffd6ca;color:inherit;border-radius:3px;padding:0 .08em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.sidebar-notifications[hidden]{display:none!important}
.stat-link{cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.stat-link:hover{border-color:#ffb39f;box-shadow:0 12px 34px rgba(255,91,53,.12);transform:translateY(-1px)}.stat-link:focus-visible{outline:3px solid #ffd0c4;outline-offset:2px}
.sidebar nav i[data-icon="help"]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9.8 9a2.4 2.4 0 1 1 3.4 2.2c-.8.4-1.2.9-1.2 1.8m0 3h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9.8 9a2.4 2.4 0 1 1 3.4 2.2c-.8.4-1.2.9-1.2 1.8m0 3h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}.context-help{display:inline-flex;align-items:center;gap:6px;border:1px solid #ffd0c4;border-radius:10px;padding:7px 10px;color:var(--accent);font-size:12px;font-weight:800;background:#fff}.context-help span{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:var(--accent-soft)}.context-help:hover{background:var(--accent-soft)}
.help-page-head{margin-bottom:16px}.help-hero{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(360px,1.35fr);align-items:center;gap:28px;padding:24px 28px;border-radius:18px;background:linear-gradient(135deg,#fff0eb,#fff 65%);border:1px solid #ffd8ce}.help-hero b{font-size:22px}.help-hero p{margin:7px 0 0;color:var(--muted)}.help-search{position:relative;display:flex;align-items:center}.help-search>span{position:absolute;left:17px;color:var(--accent);font-size:22px}.help-search input{height:54px;padding-left:48px;background:#fff;font-size:16px}.help-section{margin-top:28px}.help-section>.panel-head{margin-bottom:13px}.help-section>.panel-head h2{margin:3px 0 0;font-size:23px}.help-section-title{display:flex;align-items:center;gap:12px;margin-bottom:13px}.help-section-title>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-weight:900}.help-section-title h2{margin:0;font-size:21px}.help-section-title small{display:block;margin-top:3px;color:var(--muted)}.help-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.help-card{display:flex;gap:13px;min-width:0;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow);transition:.15s}.help-card:hover{border-color:#ffb39f;transform:translateY(-2px)}.help-card-icon{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-weight:900}.help-card b{font-size:15px}.help-card p{display:-webkit-box;overflow:hidden;margin:7px 0;color:var(--muted);font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.help-card small{color:var(--accent);font-weight:750}.help-no-results{margin-top:24px;padding:32px;text-align:center;border:1px dashed #d6dbe3;border-radius:14px}.help-no-results b,.help-no-results span{display:block}.help-no-results span{margin-top:5px;color:var(--muted)}
.help-breadcrumbs{display:flex;align-items:center;gap:8px;margin-bottom:18px;color:var(--muted);font-size:13px}.help-breadcrumbs a{color:var(--accent);font-weight:750}.help-article-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:22px}.help-article-head h1{max-width:900px;margin:4px 0 8px;font-size:clamp(30px,4vw,48px);letter-spacing:-.04em}.help-article-head p{max-width:780px;margin:0;color:var(--muted);font-size:17px;line-height:1.5}.help-role-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.help-role-list span{padding:5px 9px;border-radius:99px;background:#eef0f3;color:#5f6673;font-size:11px;font-weight:750}.help-article-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}.help-contents{position:sticky;top:84px;max-height:calc(100vh - 104px);overflow:auto;padding:0}.help-contents>summary{position:sticky;top:0;z-index:1;padding:17px 18px;border-bottom:1px solid var(--line);background:#fff;cursor:pointer;font-weight:850}.help-contents>nav{display:grid;padding:10px}.help-contents-home{margin-bottom:5px;padding:9px 10px;border-radius:8px;color:var(--accent);font-size:13px;font-weight:800}.help-contents-home:hover{background:var(--accent-soft)}.help-contents-category{border-top:1px solid #edf0f4}.help-contents-category>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 9px;cursor:pointer;font-size:13px;font-weight:800}.help-contents-category>summary span{display:grid;min-width:22px;height:22px;padding:0 5px;place-items:center;border-radius:99px;background:#f0f2f5;color:var(--muted);font-size:10px}.help-contents-category>div{display:grid;padding:0 0 8px 7px}.help-contents-category a{padding:7px 9px;border-radius:8px;color:var(--muted);font-size:12px;line-height:1.35}.help-contents-category a:hover{background:var(--accent-soft);color:var(--ink)}.help-contents-category a.is-current{background:var(--accent-soft);color:var(--ink);font-weight:850}.help-contents-subsections{display:grid;margin:2px 0 5px 10px;padding-left:9px;border-left:2px solid #ffd0c4}.help-contents-subsections a{padding:5px 7px;font-size:11px}.help-article{padding:clamp(20px,3vw,38px)}.help-article section,.help-warning{scroll-margin-top:90px}.help-article section+section{margin-top:32px}.help-article h2{margin:0 0 13px;font-size:23px}.help-article>section>p{line-height:1.65}.help-figure{margin:28px 0}.help-figure button{display:block;width:100%;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left}.help-figure img{display:block;width:100%;height:auto}.help-figure button span{display:block;padding:9px 13px;color:var(--accent);font-size:12px;font-weight:750}.help-figure figcaption{margin-top:8px;color:var(--muted);font-size:12px}.help-steps{display:grid;gap:12px;margin:0;padding:0;list-style:none}.help-steps li{display:grid;grid-template-columns:38px 1fr;gap:13px;padding:15px;border:1px solid var(--line);border-radius:12px}.help-steps li>span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:var(--accent);color:#fff;font-weight:900}.help-steps h3{margin:1px 0 6px;font-size:15px}.help-steps p{margin:0;line-height:1.55}.help-steps a{display:inline-block;margin-top:9px;color:var(--accent);font-size:12px;font-weight:750}.help-warning{margin:25px 0;padding:15px 17px;border:1px solid #efd48b;border-radius:12px;background:#fffaf0;color:#795b11}.help-warning p{margin:6px 0 0}.help-faq{display:grid;gap:8px}.help-faq details{border:1px solid var(--line);border-radius:11px;padding:12px 14px}.help-faq summary{cursor:pointer;font-weight:750}.help-faq p{margin:10px 0 2px;color:var(--muted);line-height:1.55}.help-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.help-related a{padding:14px;border:1px solid var(--line);border-radius:11px}.help-related a:hover{border-color:#ffb39f}.help-related b,.help-related span{display:block}.help-related span{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.help-pager{display:flex;justify-content:space-between;gap:12px;margin:18px 0}.help-image-dialog{width:min(1100px,calc(100% - 24px));padding:14px}.help-image-dialog .icon-btn{display:block;margin-left:auto;font-size:20px}.help-image-dialog img{display:block;width:100%;max-height:78vh;object-fit:contain}.help-image-dialog p{margin:9px 5px 3px;color:var(--muted)}
@media(max-width:1050px){.context-help b{display:none}.help-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.help-article-layout{grid-template-columns:1fr}.help-contents{position:static;max-height:none}.help-contents>nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.help-contents-home{grid-column:1/-1}.help-contents-category{min-width:0}}
@media(max-width:680px){.context-help{padding:6px}.help-hero{grid-template-columns:1fr;padding:19px}.help-search input{height:50px}.help-card-grid{grid-template-columns:1fr}.help-article-head{align-items:stretch;flex-direction:column}.help-article-head>.btn{width:100%}.help-contents>nav{grid-template-columns:1fr}.help-related{grid-template-columns:1fr}.help-pager{align-items:stretch;flex-direction:column}.help-pager>*{width:100%}.help-steps li{grid-template-columns:32px 1fr;padding:12px}.help-steps li>span{width:30px;height:30px}.help-image-dialog{padding:8px}}
.branch-switch{display:flex;gap:8px;align-items:end;max-width:420px}.branch-switch label{font-size:11px}.branch-switch select{max-width:260px}.permission-row{display:grid;grid-template-columns:1fr 160px 1fr;gap:12px;align-items:center;padding:8px 0}.readonly-notice{padding:16px;border:1px solid #f4ca79;background:#fff9e9;border-radius:12px;margin-bottom:16px}@media(max-width:760px){.branch-switch{max-width:220px;flex-wrap:wrap}.branch-switch select{max-width:190px}.permission-row{grid-template-columns:1fr}.top-actions{flex-wrap:wrap}}
form[data-access-readonly] button,form[data-access-readonly] input[type=submit]{display:none}form[data-access-readonly] fieldset{border:0;padding:0;margin:0;min-width:0}
@media(max-width:760px){.topbar{height:auto;min-height:62px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:10px 13px}.topbar .global-search{width:auto;margin:0;min-width:0}.topbar .top-actions{grid-column:1/-1;width:100%;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px}.topbar .branch-switch{flex:1;max-width:none;min-width:0;flex-wrap:nowrap;align-items:end}.branch-switch label{min-width:0;flex:1}.topbar .branch-switch select{width:100%;max-width:none}.topbar .branch-switch button{padding:9px 12px}.topbar .logout-btn{flex-shrink:0}}
/* Keep header controls on one baseline, without inherited form-label spacing. */
.topbar .top-actions{align-items:center}.topbar .branch-switch{align-items:center;margin:0}.topbar .branch-switch label{display:flex;align-items:center;margin:0;gap:0}.topbar .branch-switch select,.topbar .branch-switch button,.topbar .context-help,.topbar .logout-btn{height:40px;min-height:40px;margin-top:0;margin-bottom:0;box-sizing:border-box}.topbar .context-help,.topbar .logout-btn{display:inline-flex;align-items:center;justify-content:center}




