@font-face{font-family:'CORD Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url('/fonts/manrope-variable-468c0dbe.woff2') format('woff2')}
:root{--bg:#f4f7f8;--surface:#fff;--text:#0c1114;--muted:#687279;--line:#e3e8eb;--dark:#0c1114;--lime:#27c4e7;--accent:#0572db;--red:#b3413a;--radius:12px;--font-ui:'CORD Manrope',Arial,sans-serif;font-family:var(--font-ui);color:var(--text);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #27c4e7;outline-offset:3px}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}input,select,textarea{width:100%;border:1px solid #dbe2dc;background:#fff;border-radius:8px;padding:11px 12px;min-height:42px;color:var(--text)}input:focus,select:focus,textarea:focus{outline:2px solid #27c4e7;outline-offset:1px}textarea{resize:vertical;min-height:90px}label{display:grid;gap:7px;font-size:.875rem;font-weight:550}small{font-size:.8rem;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-1px;font-weight:650;margin-bottom:8px}h2{font-size:1.15rem;font-weight:650;letter-spacing:-.3px}h3{font-size:1rem}p{line-height:1.55}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:var(--dark);color:#fff;padding:30px 18px 20px;position:fixed;inset:0 auto 0 0;width:230px;display:flex;flex-direction:column;z-index:20}.logo{display:flex;align-items:center;gap:11px;font-size:1.6rem;letter-spacing:2px;font-weight:750;padding:0 12px}.logo img{width:35px;height:35px}.logo-sub{color:#91a1ad;font-size:.75rem;line-height:1.5;margin:12px 12px 34px;max-width:155px}.nav-label{font-size:.75rem;color:#778994;text-transform:uppercase;letter-spacing:1.2px;padding:0 14px;margin:14px 0 10px}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;font-size:.9rem;color:#b3bec6;border-radius:8px}.nav a:hover{color:white;background:#1b2b36}.nav a.active{background:var(--lime);color:#08273d;font-weight:650}.nav .count{margin-left:auto;font-size:.75rem;background:#ffffff15;border-radius:4px;padding:2px 6px}.nav a.active .count{background:#ffffff30}.sidebar-bottom{margin-top:auto;padding:24px 8px 0}.demo-label{display:flex;gap:8px;align-items:center;font-size:.8rem;color:#b7c7d1}.demo-label span{width:7px;height:7px;border-radius:50%;background:#27c4e7}.sidebar-bottom p{color:#8396a4;font-size:.75rem;margin:8px 0 0}.workspace{grid-column:2;min-width:0}.topbar{height:80px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 36px}.breadcrumb{font-size:.875rem;color:var(--muted);display:flex;align-items:center;gap:10px}.breadcrumb b{color:var(--text);font-weight:500}.top-tools{display:flex;gap:15px;align-items:center}.top-tools select{border:0;background:transparent;padding:8px;max-width:150px}.top-tools button.profile{display:flex;align-items:center;gap:10px;font-size:.875rem;border-left:1px solid var(--line);padding-left:20px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8f3fa;color:#186ba9;font-size:.8rem;font-weight:650}.content{padding:34px 36px 48px;max-width:1660px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:27px}.page-head p{margin:0;color:var(--muted);font-size:.9rem}.eyebrow{font-size:.75rem;letter-spacing:1.4px;color:var(--muted);text-transform:uppercase;margin-bottom:10px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-size:.875rem;font-weight:550;padding:11px 15px;border-radius:8px;border:1px solid var(--line);background:white;min-height:42px}.btn:hover{background:#eff7fb}.btn.primary{background:var(--dark);color:white;border-color:var(--dark)}.btn.primary:hover{background:#075cad}.btn.lime{background:var(--lime);border-color:var(--lime)}.btn.small{padding:7px 10px;min-height:32px;font-size:.8rem}.btn.danger{color:var(--red)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 21px}.metric-top{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:.875rem}.metric-top svg{color:#83928a}.metric strong{font-size:2rem;letter-spacing:-1px;font-weight:600;display:block;margin:17px 0 6px}.metric strong small{font-size:.8rem;letter-spacing:0;font-weight:500;margin-left:4px}.metric-foot{color:var(--muted);font-size:.78rem}.metric-foot .green{color:var(--accent)}.metric.featured{background:var(--dark);color:white;border-color:var(--dark)}.metric.featured .metric-top,.metric.featured small,.metric.featured .metric-foot{color:#9cafbd}.metric.featured .metric-top svg{color:var(--lime)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;margin-bottom:22px}.panel-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0}.panel-body{padding:22px}.panel-footer{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}.text-link{color:var(--accent);font-size:.875rem;display:inline-flex;align-items:center;gap:7px;font-weight:550}.text-link svg{width:16px;height:16px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{font-weight:500;color:var(--muted);background:#f7f9fa;font-size:.78rem;letter-spacing:.1px;padding:13px 20px;border-bottom:1px solid var(--line)}td{font-size:.875rem;padding:17px 20px;border-bottom:1px solid #edf1f3;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr[data-open]{cursor:pointer}tbody tr[data-open]:hover{background:#f0f8fc}td strong{font-weight:550}td small{display:block;margin-top:5px;font-size:.75rem}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:5px 8px;font-size:.75rem;line-height:1.25;background:#edf0ed;color:#5d6b61}.badge.green{background:#e9f5df;color:#4a772c}.badge.blue{background:#eaf0f8;color:#4b6a9a}.badge.orange{background:#fff3dc;color:#9f7b29}.badge.red{background:#fcece9;color:#a64d42}.badge.dark{background:#e2f2fb;color:#14628e}.align-right{text-align:right}.muted{color:var(--muted)}.mono{font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:.8rem}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.search{position:relative;max-width:360px;flex:1;min-width:200px}.search svg{position:absolute;left:12px;top:12px;color:var(--muted);width:18px}.search input{padding-left:40px;background:white;font-size:.875rem}.tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);background:#eaf0f4;border-radius:9px}.tabs button{padding:7px 12px;font-size:.8rem;border-radius:6px;white-space:nowrap}.tabs button.active{background:white;box-shadow:0 1px 3px #1b30220d}.watch-item{display:flex;align-items:flex-start;gap:12px;padding:18px 22px;border-bottom:1px solid #edf1f3}.watch-item:last-child{border-bottom:0}.watch-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:9px;background:#eaf4fb;color:#2686ac}.watch-item h3{font-size:.875rem;margin:0 0 5px}.watch-item p{margin:0;font-size:.78rem;color:var(--muted);line-height:1.5}.watch-item .n{margin-left:auto;font-size:1.1rem;font-weight:600}.integrity{background:#edf8fc;padding:21px;border:1px solid #cceaf4;border-radius:var(--radius);margin-bottom:22px}.integrity h3{display:flex;gap:9px;align-items:center;margin:0 0 10px;color:#156181;font-size:.9rem}.integrity p{font-size:.8rem;color:#648090;margin:0 0 12px;line-height:1.6}.integrity.error{background:#fcedea;border-color:#eac4b9}.brand-row{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e7f2f8;font-weight:650;font-size:.875rem}.brand-name{flex:1;font-size:.875rem}.brand-name small{display:block;margin-top:3px}.bar{height:5px;border-radius:3px;background:#e7eef3;overflow:hidden;margin-top:10px}.bar span{height:100%;background:#27c4e7;display:block}.progress-item{padding:14px 22px}.progress-item>div:first-child{display:flex;justify-content:space-between;font-size:.85rem}.empty{padding:50px 24px;text-align:center;color:var(--muted);font-size:.9rem}.empty svg{width:28px;height:28px;margin-bottom:12px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.detail-meta dt{font-size:.78rem;color:var(--muted);margin-bottom:7px}.detail-meta dd{margin:0;font-size:.9rem;line-height:1.6}.summary-line{display:flex;justify-content:space-between;font-size:.9rem;padding:9px 0;gap:14px}.summary-line.total{font-size:1.15rem;font-weight:650;border-top:1px solid var(--line);margin-top:7px;padding-top:16px}.summary-line.debt{color:#9f7b29}.feed{padding:18px 22px;border-bottom:1px solid var(--line)}.feed:last-child{border-bottom:0}.feed p{font-size:.875rem;margin:0 0 6px}.feed small{font-size:.75rem}.inline-note{padding:12px 15px;background:#eff8fc;border:1px solid #d3e9f5;border-radius:8px;font-size:.8rem;line-height:1.6;color:#406984;margin:16px 0}.notice{padding:12px 15px;border-radius:8px;background:#f7eddb;color:#8f702e;font-size:.8rem;line-height:1.6}.settings-grid{display:grid;grid-template-columns:210px 1fr;gap:22px}.settings-nav{display:grid;gap:4px;align-content:start}.settings-nav button{text-align:left;padding:11px 14px;border-radius:8px;font-size:.875rem}.settings-nav button.active{background:#e3f3fc;color:#076fb8;font-weight:600}.setting-card{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.setting-card strong{display:block;font-size:.9rem;margin-bottom:5px}.setting-card p{margin:0;color:var(--muted);font-size:.8rem}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}dialog{border:0;border-radius:16px;padding:0;width:min(600px,calc(100% - 32px));max-height:90vh;box-shadow:0 30px 100px #10271933;color:var(--text)}dialog::backdrop{background:#0c192d70;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.icon-btn{display:inline-flex;padding:6px;border-radius:6px}.icon-btn:hover{background:#e7f5fb}.modal-body{padding:24px 26px;display:grid;gap:17px}.modal-body .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#f7f9fa}.form-error{background:#fff0ed;padding:12px;border-radius:8px;color:var(--red);font-size:.85rem;line-height:1.5}.form-error:empty{display:none}.modal-hint{font-size:.8rem;color:var(--muted);line-height:1.6;margin:0}.checks{display:flex;flex-wrap:wrap;gap:10px 16px}.checks label{display:flex;align-items:center;gap:6px}.checks input{width:16px;min-height:16px}.boot{padding:60px;text-align:center}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:var(--dark);color:white;padding:80px;display:flex;flex-direction:column;justify-content:space-between}.login-brand h1{font-size:4rem;color:var(--lime);margin-bottom:20px}.login-brand h2{font-size:2.5rem;line-height:1.2;max-width:460px;font-weight:500}.login-brand p{color:#a5b8c7;max-width:400px}.login-form{padding:70px;display:flex;flex-direction:column;justify-content:center}.login-form h1{font-size:1.8rem}.profile-choice{display:flex;align-items:center;gap:14px;padding:16px;margin:6px 0;border:1px solid var(--line);border-radius:10px;text-align:left;background:#fff}.profile-choice:hover{border-color:#27c4e7;background:#eff9fc}.profile-choice div:nth-child(2){flex:1}.profile-choice strong{font-size:.9rem;display:block;margin-bottom:4px}.profile-choice small{font-size:.78rem}#toasts{position:fixed;right:24px;bottom:24px;z-index:100;display:grid;gap:10px}.toast{padding:16px 22px;border-radius:10px;box-shadow:0 10px 50px #16332022;background:var(--dark);color:white;font-size:.875rem;max-width:420px;line-height:1.5}.toast.error{background:#963e35}.mobile-menu{display:none}.wrap{white-space:normal;min-width:160px;max-width:400px}.pre{white-space:pre-wrap}.checklist{padding-left:20px;font-size:.9rem;line-height:1.9}.footnote{font-size:.75rem;color:#8596a1;margin-top:24px;display:flex;justify-content:space-between;gap:12px}.negative{color:var(--red)}.good{color:var(--accent)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.wallet-card{padding:22px}.wallet-card strong{display:block;font-size:1.5rem;margin:18px 0}.wallet-card p{font-size:.875rem;margin:0}.wallet-card small{font-size:.78rem}.break{overflow-wrap:anywhere}.list-check{display:flex;align-items:center;gap:10px;font-size:.875rem;padding:13px 0;border-bottom:1px solid var(--line)}.list-check input{width:17px;min-height:17px}.list-check.done span{text-decoration:line-through;color:var(--muted)}
@media(min-width:1600px){.content{padding:42px 50px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}.sidebar{width:250px}.shell{grid-template-columns:250px 1fr}}
@media(max-width:1200px){.sidebar{width:200px}.shell{grid-template-columns:200px 1fr}.content{padding:28px 24px}.topbar{padding:0 24px}.dashboard-grid,.detail-grid{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.metric{padding:17px}.metric strong{font-size:1.75rem}.detail-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.metrics{gap:12px}.profile-name{display:none}}
@media(max-width:800px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:230px}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #10241855}.workspace{width:100%}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 18px}.breadcrumb>span{display:none}.content{padding:24px 18px}.top-tools{gap:6px}.top-tools button.profile{padding-left:8px}.top-tools select{max-width:120px}.page-head{flex-wrap:wrap;margin-bottom:20px}h1{font-size:1.7rem}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric strong{font-size:1.6rem;margin-top:12px}.metric-top{font-size:.8rem}.metric-foot{font-size:.75rem}.dashboard-side,.detail-grid>aside{display:block}.settings-grid{grid-template-columns:1fr}.settings-nav{display:flex;overflow:auto}.settings-nav button{white-space:nowrap}.detail-meta{grid-template-columns:1fr 1fr}.split,.cards{grid-template-columns:1fr}.panel-head{padding:17px}.panel-body{padding:17px}td,th{padding:14px 16px}.login{display:block}.login-brand{padding:35px}.login-brand h2,.login-brand p{display:none}.login-brand h1{font-size:2.5rem;margin:0}.login-form{padding:35px 24px}.modal-body{padding:20px}.modal-body .row{grid-template-columns:1fr}.modal-foot,.modal-head{padding:18px 20px}.footnote{display:block;line-height:1.8}.toolbar .tabs{overflow:auto;max-width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media print{.sidebar,.topbar,.actions,.footnote{display:none}.shell{display:block}.content{padding:0}.panel{break-inside:avoid}body{background:white}}
/* DronExpert · cyan → blue, ink and cool paper. */
:root{--brand-gradient:linear-gradient(112deg,#2cc8e8 0%,#149ce5 48%,#0873d8 100%)}
.nav a.active,.btn.primary{background:var(--brand-gradient);color:#fff;border-color:transparent}.btn.primary:hover{filter:brightness(.94)}.nav a.active svg{stroke-width:2}.nav a.active .count{color:#fff}.btn.lime{background:#e0f7fc;color:#076e9f;border-color:#b9edf8}.logo img{border:1px solid #2ac6e63d;border-radius:10px}.sidebar{overflow:auto}.sidebar-bottom{padding-top:20px}.logo-sub{margin-bottom:22px}.nav a{padding:10px 14px}.settings-nav button.active{box-shadow:inset 3px 0 #27c4e7}.metric.featured{background:linear-gradient(130deg,#0c1114,#122b3c)}.bar span{background:var(--brand-gradient)}.workflow-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}.workflow-tile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:12px;align-content:start}.workflow-tile>span{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;color:#536e80}.workflow-tile>span svg{color:var(--accent);width:18px}.workflow-tile select{font-size:.95rem;font-weight:600;background:#f5faff}.workflow-tile small{line-height:1.5;min-height:20px}.workflow-tile.needs-choice{border-color:#27c4e7;box-shadow:0 0 0 2px #27c4e714}.workflow-tile select:disabled{cursor:default;opacity:.8}.product-link{color:#096da9;padding:0;text-align:left;font-weight:600;white-space:normal;line-height:1.45}.product-link:hover{text-decoration:underline}.client-hits:empty{display:none}.client-hits{display:grid;gap:4px}.client-hits>button{background:#f2f9fd;border:1px solid #dcecf7;padding:11px 14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;text-align:left}.client-hits small{display:block;margin-top:5px}.client-hits>button:hover{border-color:#27c4e7}.wide-dialog{width:min(1120px,calc(100vw - 32px))}.template-dialog{width:min(1280px,calc(100vw - 32px))}.wide-dialog .modal-head,.template-dialog .modal-head{background:#f8fbfd}.sku-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;padding:26px}.sku-layout>div,.sku-layout>aside{min-width:0}.sku-layout aside{padding-left:22px;border-left:1px solid var(--line)}.sku-layout .detail-meta{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0;margin-bottom:26px}.sku-layout .detail-meta small{display:block;line-height:1.5;margin-top:5px}.sku-layout h3{margin-top:14px}.sku-comments{max-height:450px;overflow:auto;margin-top:18px}.sku-comments .feed{padding:15px 0}.sku-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px;max-width:500px}.sku-chips .btn{font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:.7rem;padding:4px 7px;min-height:26px}.bulk-toolbar,.preview-toolbar,.variable-picker{display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-toolbar>span{font-size:.9rem;font-weight:550}.bulk-table{border:1px solid var(--line);border-radius:9px;max-height:48vh}.bulk-table th{position:sticky;top:0;background:#f0f6fa;z-index:1}.bulk-table th,.bulk-table td{padding:11px 12px}.bulk-table td:first-child{min-width:280px;width:48%}.bulk-table input[name=item_name]{min-width:280px}.bulk-table input[type=number]{min-width:105px;max-width:150px}.bulk-table textarea{min-width:200px;min-height:74px}.bulk-table input[readonly]{background:#f2f5f7;color:#687279}.bulk-total{text-align:right;font-size:1.1rem;font-weight:650;color:#126799;padding:8px 3px}.invalid-row input[name=item_name]{border-color:#db9b68}.row-error{color:#ab6340;white-space:normal}.template-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px}.template-settings,.template-content{display:grid;gap:16px;align-content:start;min-width:0}.template-settings{border-right:1px solid var(--line);padding-right:24px}.template-settings .row{gap:10px}.template-settings input,.template-settings select{padding:10px 8px;font-size:.85rem;min-width:0}.editor-toolbar{display:flex;gap:4px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:6px;background:#f4f8fb}.editor-toolbar button{padding:7px 10px;font-size:.8rem;border-radius:5px;min-width:32px}.editor-toolbar button:hover{background:#dceefa}.variable-picker select,.preview-toolbar select{font-size:.85rem;min-width:0}.document-editor{min-height:320px;max-height:580px;overflow:auto;background:white;border:1px solid #cfdce5;border-radius:8px;padding:25px;line-height:1.7;font-family:Arial,sans-serif;font-size:15px;outline-color:#27c4e7;overflow-wrap:anywhere}.document-editor table{white-space:normal;margin:15px 0}.document-editor td,.document-editor th{border:1px solid #ccd8df;padding:9px;min-width:80px}.document-editor p{margin-bottom:14px}.document-editor h2{font-size:20px}.template-content iframe{width:100%;height:460px;border:1px solid var(--line);border-radius:8px;background:#f4f7f8}.template-content .modal-hint:empty{display:none}button:disabled{cursor:not-allowed}.bulk-table input:invalid{border-color:#d89d6d}dialog .modal-head{position:sticky;top:0;z-index:3;background:#fff}dialog .modal-foot{position:sticky;bottom:0;z-index:3}.template-dialog .modal-body{gap:20px}
@media(max-width:1050px){.workflow-tiles{gap:10px}.workflow-tile{padding:14px}.template-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}.template-settings{padding-right:18px}.sku-layout{grid-template-columns:minmax(0,1fr) 250px}.sku-layout .detail-meta{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.workflow-tiles{grid-template-columns:1fr}.workflow-tile{gap:9px}.workflow-tile small{min-height:0}.sku-layout,.template-layout{grid-template-columns:1fr;padding:20px}.template-layout{padding:0}.sku-layout aside{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.template-settings{border-right:0;border-bottom:1px solid var(--line);padding:0 0 20px;grid-template-columns:1fr 1fr}.template-settings .row{grid-template-columns:1fr}.template-settings>label{min-width:0}.bulk-toolbar{align-items:flex-start;flex-direction:column}.wide-dialog,.template-dialog{width:calc(100vw - 20px)}.document-editor{padding:18px;min-height:260px}.preview-toolbar{flex-wrap:wrap}.variable-picker .btn{min-width:84px}}
/* Purchasing requests and explicit validation */
.purchase-tabs{margin:0 0 22px;width:max-content;max-width:100%;overflow:auto}.purchase-tabs button{padding:10px 16px}.demand-actions{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#eef8fc;border:1px solid #cce9f6;padding:14px 18px;border-radius:10px;margin-bottom:16px}.demand-actions>span{font-size:.9rem;color:#36637d}.demand-description{white-space:normal;min-width:310px;max-width:520px}.demand-description details{margin-top:9px}details summary{cursor:pointer;color:var(--accent);font-size:.8rem;line-height:1.5}details .pre{font-size:.8rem;line-height:1.5;white-space:pre-wrap}.demand-source{background:#f5f9fc;border:1px solid #e0edf5;border-radius:8px;padding:12px;margin-top:9px}.demand-source strong{font-size:.8rem}.demand-source p{margin:9px 0;font-size:.85rem}.demand-source small{line-height:1.5}input[data-demand-product],#select-all-demand{width:19px;height:19px;min-height:19px;accent-color:#0873d8;cursor:pointer}.request-table td:nth-child(3){min-width:280px}.request-table td:first-child{width:40%}#purchase-request-form .panel-body{display:grid;gap:18px}.currency-row{display:grid;grid-template-columns:230px minmax(0,1fr) auto;gap:16px;align-items:end}.rate-note{font-size:.85rem;line-height:1.6;color:#315a75;padding:12px 14px;background:#edf8fc;border:1px solid #d2ebf7;border-radius:8px;min-height:44px}.rate-note small{display:block;line-height:1.5;margin-top:4px}.rate-note a{text-decoration:underline;color:var(--accent)}.rate-note.error{background:#fff1ef;border-color:#efb2aa;color:#a02e28}.purchase-rate-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:.85rem;padding:15px 18px;background:#eaf6fc;border:1px solid #cfe8f7;border-radius:10px;margin-bottom:22px}.bulk-table input[name=item_comment]{min-width:220px}.bulk-table select[name=item_order]{margin-top:6px;max-width:320px;font-size:.75rem;padding:6px;min-height:30px}.unit-usd{color:#0873a7!important;white-space:normal;line-height:1.4}.field-error,form.was-validated input:invalid,form.was-validated select:invalid,form.was-validated textarea:invalid{border:2px solid #d63c35!important;background:#fff4f3!important;box-shadow:0 0 0 3px #d63c3510}.field-error-text{display:block!important;color:#b32924!important;font-size:.75rem;line-height:1.45;white-space:normal;max-width:320px;margin-top:6px}.bulk-table input:invalid:not(.field-error){border-color:var(--line)}.field-error:focus{outline-color:#e99590}.request-table .icon-btn{min-width:28px}.purchase-rate-summary+.text-link{margin-top:6px}
@media(max-width:800px){.currency-row{grid-template-columns:1fr}.demand-actions{align-items:stretch;flex-direction:column}.purchase-tabs{width:100%}.purchase-tabs button{padding:9px 12px}.demand-description{min-width:230px}.rate-note{font-size:.8rem}}
.reserve-request{border-top:1px solid var(--line);padding-top:18px}.reserve-request p{font-size:.875rem;color:var(--muted);margin-bottom:12px}.payment-policy{border:1px solid var(--line);border-radius:9px;padding:14px;margin:16px 0 0;min-width:0}.payment-policy legend{font-size:.875rem;font-weight:650;padding:0 6px}.payment-policy .policy-all{display:flex;align-items:center;gap:8px;font-size:.8rem}.payment-policy input[type=checkbox]{width:17px;min-height:17px;flex-shrink:0;accent-color:var(--accent)}.policy-choices{display:grid;gap:10px;padding:14px 0}.policy-choices label{font-size:.8rem;line-height:1.5}.policy-choices label:has(input:disabled){opacity:.55}#payment-policies{display:grid;gap:4px}#payment-policies h3{margin:12px 0 4px}.bulk-table td:first-child{white-space:normal}.bulk-table input[name=item_name]{display:block;width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.list-scope{width:max-content;max-width:100%;margin:0 0 18px;overflow:auto}.list-tools{padding:16px 20px;background:#fbfdfe;border-bottom:1px solid var(--line)}.list-tools-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.list-search{flex:1;min-width:190px;max-width:580px}.list-search input{font-size:.85rem}.list-tools-top>[data-list-count]{font-size:.78rem;color:var(--muted);margin-left:auto}.list-options{margin-top:12px}.list-options>summary{display:inline-flex;gap:7px;font-size:.85rem;font-weight:600;list-style:revert}.list-options-body{padding-top:8px;max-width:1050px}.list-config-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0 10px}.list-config-title h3{font-size:.85rem;margin:0}.list-config-title select{width:auto;max-width:300px;min-height:34px;padding:7px;font-size:.78rem}.list-rule{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,.85fr) minmax(200px,1.5fr) 30px;gap:8px;align-items:start;background:#f0f6fa;border:1px solid #dce8f0;border-radius:8px;padding:10px;margin:8px 0}.list-rule select,.list-rule input,.list-sort select{font-size:.8rem;padding:8px;min-height:36px;min-width:0}.list-rule-values{display:flex;gap:8px;min-width:0}.list-rule-values>input{width:100%;min-width:0}.list-multiselect{width:100%;min-width:0}.list-multiselect select{height:100px;width:100%;padding:5px}.list-multiselect option{padding:4px 6px;white-space:normal}.list-multiselect small{font-weight:400;font-size:.7rem}.list-sort{display:grid;grid-template-columns:20px minmax(140px,1fr) minmax(160px,1fr) 30px;gap:8px;align-items:center;margin:8px 0}.list-sort>span{font-size:.8rem;color:var(--muted)}.list-empty-row td{text-align:center;padding:34px 20px;white-space:normal;color:var(--muted)}tr[hidden]{display:none!important}.list-tools .icon-btn{min-height:34px}.list-tools .btn.small{margin-top:3px}.repair-device-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;background:#eff8fc;border:1px solid #d3e9f5;border-radius:9px;margin:16px 0}.repair-device-fields dt{font-size:.8rem;color:var(--muted);margin-bottom:8px}.repair-device-fields dd{font-size:.9rem;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:900px){.list-rule{grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) 30px}.list-rule-values{grid-column:1/3;grid-row:2}.list-rule>.icon-btn{grid-column:3;grid-row:1}.list-config-title{flex-wrap:wrap}.list-tools{padding:14px}.repair-device-fields{grid-template-columns:1fr}}@media(max-width:600px){.list-tools-top>[data-list-count]{margin-left:0}.list-search{flex-basis:100%;max-width:none}.list-sort{grid-template-columns:18px 1fr 30px}.list-sort [data-sort-direction]{grid-column:2;grid-row:2}.list-sort>.icon-btn{grid-column:3;grid-row:1}.list-config-title select{width:100%;max-width:none}}
.list-density select{font-size:.78rem;min-height:34px;padding:7px 9px;width:auto}.cord-data-list.dense-list th{padding:9px 10px;font-size:.73rem;font-weight:600;line-height:1.3}.cord-data-list.dense-list td{padding:6px 10px;height:36px;font-size:.8rem;line-height:1.35;border-bottom:1px solid #e3e9ed}.cord-data-list.dense-list tbody tr:nth-child(odd){background:#f8fafb}.cord-data-list.dense-list tbody tr:hover{background:#edf7fc}.cord-data-list.dense-list td small{font-size:.7rem;line-height:1.25;margin-top:2px}.cord-data-list.dense-list .product-link{font-size:.8rem;line-height:1.35;font-weight:500;max-width:360px;display:inline-block;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cord-data-list.dense-list .badge{font-size:.69rem;padding:3px 6px}.cord-data-list.dense-list .btn.small{min-height:26px;padding:4px 7px;font-size:.7rem;gap:4px}.cord-data-list.dense-list .actions{gap:5px}.cord-data-list.dense-list .actions svg{width:14px;height:14px}.cord-data-list.dense-list .sku-chips{margin-top:3px;gap:3px}.cord-data-list.dense-list .demand-description details{margin-top:3px}.cord-data-list.dense-list .demand-source{padding:9px}.cord-data-list.dense-list .mono{font-size:.74rem}.cord-data-list.dense-list .wrap{min-width:120px}.cord-data-list.dense-list input[type=checkbox]{width:16px;height:16px;min-height:16px}.cord-data-list.dense-list .list-empty-row td{height:auto;padding:25px 16px}.cord-data-list.dense-list .text-link{font-size:.78rem}

/* Compact, directly editable order amounts. */
.order-sku{display:flex;align-items:center;gap:8px;margin-top:3px}.order-sku .product-link{font-size:inherit}.order-sku span{font-size:11px;color:var(--muted)}
table input.line-qty,table input.line-price{padding:5px 7px;height:32px;min-height:32px;border-radius:5px;font-size:13px;font-variant-numeric:tabular-nums;background:transparent}
table input.line-qty{width:78px}table input.line-price{width:120px}
table input.line-qty:read-only{border-color:transparent;color:var(--muted)}
tr.line-dirty td{background:#ecfaff}.order-lock-note{margin:0;padding:10px 16px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--border)}

.sku-serial-fields{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.sku-serial-fields input{min-width:100px;flex:1;width:100px;font-size:13px;min-height:34px;padding:6px 8px}.sku-serial-fields .btn{white-space:nowrap}#sku-serial-form .form-error{margin:6px 0 0}.serial-history{margin:20px 0}.serial-history .feed{padding:8px 0}.serial-history .mono{overflow-wrap:anywhere}

.detail-meta.order-contacts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px 22px;margin:0}

.order-register th,.order-register td{white-space:nowrap;text-align:left;vertical-align:top}
.order-register td[data-order-column="status"] .status-color-badge{width:180px;max-width:100%;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}
.order-register .order-register-status{width:180px;max-width:100%;min-height:0;height:calc(1.25em + 6px);padding:3px 6px;border:0;border-radius:20px;font-size:.69rem;font-weight:650;line-height:1.25;text-align:center;text-align-last:center;text-overflow:ellipsis;-webkit-appearance:none;appearance:none;background-image:none;cursor:pointer}
.order-register .order-register-status:disabled{cursor:wait}
.order-register td[data-order-column="composition"]{white-space:normal;min-width:220px;max-width:350px}
.order-register .order-device-serial{color:var(--muted);white-space:pre-line;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.order-register td small{display:block;font-size:11px}
.order-register .order-created-date,.order-register .order-created-time{display:block;white-space:nowrap}
.order-column-choice{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--border)}
.order-column-choice label{display:flex;align-items:center;gap:9px;flex:1;margin:0;font-weight:500}
.order-column-choice input[type=checkbox]{width:auto}
.order-column-choice .btn{padding:3px 10px}
.cost-incomplete{color:#956300}

/* Keep validation messages from stretching neighbouring form fields. */
.modal-body label{min-width:0}
.sku-layout table{table-layout:fixed;white-space:normal}
.sku-layout th,.sku-layout td{overflow-wrap:anywhere;vertical-align:top}
.sku-layout th:nth-child(1){width:23%}
.sku-layout th:nth-child(2){width:16%}
.sku-layout th:nth-child(3){width:35%}
.sku-layout th:nth-child(4){width:26%}

.footnote>span{display:block}

.list-empty-state{padding:22px;color:var(--muted);font-size:.875rem;line-height:1.6}
.bulk-table td{vertical-align:top}
.catalog-price-list{table-layout:fixed;min-width:640px}.catalog-price-list th,.catalog-price-list td{padding:9px 10px;text-align:left;vertical-align:middle}.catalog-price-list th{white-space:normal;line-height:1.3}.catalog-price-list th[data-catalog-column="product"]{width:31%}.catalog-price-list th[data-catalog-column="actions"]{width:90px}.catalog-price-list th small{display:block;margin-top:2px;font-size:.7rem;font-weight:400}.catalog-price-list .catalog-product-cell .product-link{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-price-list .catalog-product-cell small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-price-list.cord-data-list.dense-list td{height:49px}.catalog-price-list.cord-data-list.dense-list .catalog-product-cell .product-link{display:block;max-width:100%}.catalog-price-list td:not([data-catalog-column="product"]){font-variant-numeric:tabular-nums}.catalog-price-list .btn.small{white-space:nowrap}@media(max-width:600px){.catalog-price-list{min-width:620px}.catalog-price-list th[data-catalog-column="product"]{width:200px}}
.document-studio{width:min(1480px,calc(100vw - 36px));max-width:none;max-height:94vh}.document-studio .modal-body{padding:18px 22px}.doc-studio-start{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}.doc-studio-start label{flex:1;min-width:170px;font-size:.78rem}.doc-studio-start select{font-size:.8rem;padding:8px;min-height:36px}.doc-studio-grid{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px}.doc-studio-settings{min-width:0;border-right:1px solid var(--line);padding-right:20px}.doc-studio-settings>details{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line)}.doc-studio-settings summary{font-weight:650;color:var(--text);font-size:.85rem;margin-bottom:12px}.doc-studio-settings label{font-size:.78rem;margin-bottom:10px}.doc-studio-settings input,.doc-studio-settings select{font-size:.8rem;padding:8px;min-height:36px}.doc-studio-settings .row{gap:10px}.doc-studio-settings .btn.small{margin:3px 0 8px}.doc-studio-main{min-width:0}.doc-studio-main>label{margin-bottom:16px}.doc-editor-switch{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;flex-wrap:wrap}.doc-editor-switch>label{display:flex;align-items:center;gap:8px;font-size:.78rem}.doc-editor-switch select{width:auto;font-size:.78rem;padding:7px;min-height:34px}.doc-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:7px;background:#edf5fa;border:1px solid var(--line);border-radius:8px 8px 0 0}.doc-editor-toolbar button{padding:6px 8px;font-size:.75rem;border-radius:4px}.doc-editor-toolbar button:hover{background:#d4eaf8}.doc-rich-editor,.doc-source-editor{box-sizing:border-box;width:100%;min-height:370px;border:1px solid var(--line);background:white;padding:26px;line-height:1.5;border-radius:0 0 8px 8px;overflow-wrap:anywhere;outline-color:var(--accent)}.doc-rich-editor{font-family:Arial,sans-serif;font-size:12pt}.doc-source-editor{font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;tab-size:2;resize:vertical}.doc-rich-editor table{white-space:normal;table-layout:fixed}.doc-rich-editor td,.doc-rich-editor th{border:1px solid #d8e0e6;padding:7px;white-space:normal}.doc-rich-editor .page-break{border-top:2px dashed #86acbf;margin:24px 0;position:relative}.doc-rich-editor .page-break:after{content:'Разрыв страницы';display:block;text-align:center;font:11px Arial;color:#62879c}.doc-header-footer{margin:16px 0;padding:13px 16px;border:1px solid var(--line);border-radius:8px}.doc-header-footer summary{margin-bottom:10px}.doc-header-footer label+label{margin-top:14px}.doc-header-footer textarea{font-size:.8rem;min-height:100px}.doc-variable-list{display:grid;gap:4px}.doc-variable-list button{text-align:left;border:1px solid #e1ebf1;background:#f7fbfd;padding:7px 9px;border-radius:5px;min-width:0}.doc-variable-list button:hover{background:#e3f4fc}.doc-variable-list span{display:block;font-size:.78rem}.doc-variable-list code{display:block;font:10px/1.5 ui-monospace,monospace;color:#668297;overflow-wrap:anywhere}#doc-variable-palette{max-height:420px;overflow:auto;margin-top:10px}#doc-variable-palette summary{font-size:.75rem;margin:10px 0 6px;color:var(--muted)}.doc-check{display:flex!important;align-items:center;gap:8px;font-size:.8rem;font-weight:500}.doc-check input[type=checkbox]{width:16px;min-height:16px;height:16px;flex:0 0 16px;accent-color:var(--accent)}.doc-table-columns>div{display:grid;grid-template-columns:minmax(0,1fr) 26px 26px;align-items:center;gap:4px;padding:4px 0;border-bottom:1px solid #edf1f4}.doc-table-columns label{margin:0}.doc-table-columns button{border:1px solid var(--line);border-radius:4px;height:26px}.doc-custom-row{padding:10px;border:1px solid var(--line);border-radius:7px;margin:10px 0;background:#f8fbfd}.doc-custom-row .row{display:block}.doc-custom-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;font-size:.78rem}.doc-custom-title .icon-btn{min-height:26px;width:26px}.doc-custom-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.doc-custom-values label{min-width:0;font-size:.8rem}.doc-preview-area{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.doc-preview-toolbar{display:flex;align-items:end;gap:12px}.doc-preview-toolbar label{flex:1;min-width:0;font-size:.8rem}.doc-preview-toolbar select{font-size:.8rem}#doc-preview-frame,#doc-generation-frame{width:100%;height:520px;border:1px solid var(--line);border-radius:8px;background:#f7f9fb}.document-generation{width:min(940px,calc(100vw - 32px));max-width:none}.document-generation #doc-generation-frame{margin-top:10px}.document-generation .modal-body>label{margin-bottom:14px}.document-studio [hidden],.document-generation [hidden]{display:none!important}@media(max-width:1000px){.doc-studio-grid{grid-template-columns:240px minmax(0,1fr);gap:16px}.doc-studio-settings{padding-right:14px}.doc-rich-editor{padding:18px}}@media(max-width:760px){.document-studio{width:calc(100vw - 16px);max-height:96vh}.document-studio .modal-body{padding:14px}.doc-studio-grid{grid-template-columns:1fr}.doc-studio-settings{border-right:0;padding:0;max-height:340px;overflow:auto;border-bottom:1px solid var(--line)}.doc-studio-settings>details{margin:0;padding:10px 0}.doc-studio-main{padding-top:8px}.doc-studio-start{gap:8px}.doc-studio-start label{min-width:160px}.doc-studio-start .btn{min-height:36px}.doc-editor-switch>label{flex-wrap:wrap}.doc-custom-values{grid-template-columns:1fr}.doc-preview-toolbar{flex-wrap:wrap}.doc-preview-toolbar label{flex-basis:100%}.doc-rich-editor,.doc-source-editor{min-height:300px;padding:15px}#doc-preview-frame,#doc-generation-frame{height:420px}}

/* Password authentication is isolated from operational forms and compact lists. */
.auth-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:40px 20px;background:radial-gradient(ellipse at top right,#e1f5fb,transparent 55%),var(--bg)}
.auth-card{width:100%;max-width:430px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:38px;box-shadow:0 18px 60px #12364c12}
.auth-brand{display:flex;align-items:center;gap:12px;font-size:30px;font-weight:750;letter-spacing:-1px}.auth-brand img{flex:none}
.auth-caption{font-size:11px;color:var(--muted);margin:10px 0 35px;letter-spacing:.15px}.auth-card h1{font-size:24px;margin-bottom:10px}.auth-intro{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 25px}
.auth-card form{display:grid;gap:18px}.auth-card label{display:grid;gap:8px;margin:0;font-size:14px;font-weight:600}.auth-card input{width:100%;min-height:46px}.auth-card [type=submit]{width:100%;justify-content:center;min-height:46px;margin-top:4px}
@media(max-width:480px){.auth-page{padding:18px}.auth-card{padding:28px 22px;border-radius:14px}.auth-caption{margin-bottom:28px}}
/* Compact order workspace. Other page and modal layouts retain their sizing. */
.doc-image-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;font-size:.75rem}
.document-studio [hidden]{display:none!important}
.doc-image-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 8px;padding:10px;background:#f5f8fa;border:1px solid var(--line);border-radius:6px}
.doc-image-controls label{flex:1;min-width:120px;font-size:.75rem;margin:0}
.doc-image-controls input,.doc-image-controls select{padding:7px;font-size:.8rem;min-height:32px}
.doc-rich-editor .doc-image{display:block;max-width:100%;height:auto;cursor:pointer}
.doc-rich-editor .doc-image[data-align=center]{margin-left:auto;margin-right:auto}
.doc-rich-editor .doc-image[data-align=right]{margin-left:auto;margin-right:0}
.doc-rich-editor img[data-doc-selected]{outline:2px solid var(--accent);outline-offset:3px}
.task-inbox{position:fixed;top:76px;right:24px;width:min(390px,calc(100vw - 24px));z-index:45;background:white;border:1px solid var(--line);box-shadow:0 8px 28px #15334920;border-radius:8px;overflow:hidden}
.task-inbox-head{display:flex;align-items:center;justify-content:space-between;padding:10px;gap:10px;font-size:13px}
.task-inbox-head .btn{font-size:11px;min-height:28px;padding:5px 7px}
.task-inbox-list{max-height:260px;overflow:auto}
.task-inbox-item{display:block;width:100%;text-align:left;border:0;border-top:1px solid var(--line);background:white;padding:10px}
.task-inbox-item:hover{background:#f0f8fc}
.task-inbox-item strong,.task-inbox-item small{display:block;overflow-wrap:anywhere}
.task-inbox-item strong{font-size:13px}.task-inbox-item small{color:var(--muted);margin-top:4px}
@media(max-width:800px){.task-inbox{top:64px;right:12px;width:calc(100vw - 24px)}}
.content:has(> .orders-register-page){max-width:none;padding:16px 16px 24px}
.orders-register-page{min-width:0;width:100%}
.orders-register-page>.toolbar{padding:0 0 12px;margin:0;border-bottom:0;row-gap:12px}
.orders-register-page>.toolbar>.order-process-tabs{min-width:0;max-width:100%}
.orders-register-page>.toolbar>.actions{margin-left:auto;justify-content:flex-end;max-width:100%}
.orders-register-results{background:var(--surface);border:1px solid var(--line);border-radius:6px;min-width:0;overflow:hidden}
.orders-register-results>.list-tools{padding:12px 18px}
.orders-register-results>.table-wrap{border-radius:0}
.orders-register-page~.footnote{padding:0 18px}
@media(max-width:800px){.orders-register-page>.toolbar,.orders-register-results>.list-tools{padding-left:12px;padding-right:12px}}
.content:has(> .order-workspace){padding:16px;max-width:none}
.order-workspace{font-size:13px;--order-gap:12px}
.order-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.order-toolbar h1{font-size:20px;line-height:1.2;margin:0;white-space:nowrap}
.order-toolbar>.actions{margin-left:auto}
.order-back{display:flex;padding:5px}
.order-status{max-width:280px;min-width:180px}
.order-status small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.order-workspace select,.order-workspace input:not([type=checkbox]),.order-workspace textarea{font-size:13px;border-radius:5px;padding:6px 8px;min-height:30px}
.order-workspace select{width:100%;min-width:0}
.order-workspace .btn{min-height:30px;padding:6px 9px;font-size:12px;gap:5px;border-radius:5px}
.order-workspace .btn .icon{width:15px;height:15px}
.order-workspace .actions{gap:6px}
.order-top-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr) minmax(230px,1fr);gap:var(--order-gap);align-items:stretch;margin-bottom:var(--order-gap)}
.order-top-grid>div{min-width:0;display:flex}
.order-workspace .panel{margin-bottom:var(--order-gap);border-radius:6px;box-shadow:none}
.order-top-grid .panel{margin:0;min-width:0;width:100%;display:flex;flex-direction:column}
.order-activity>.panel>.panel-body{margin-top:auto}
.order-workspace .panel-head{padding:9px 12px;min-height:36px;background:#f7fafb;gap:8px}
.order-workspace .panel-head h2{font-size:12px;font-weight:700;letter-spacing:.01em;line-height:1.4}
.order-workspace .panel-body{padding:12px}
.order-info-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.order-workspace .detail-meta{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
.order-workspace .detail-meta dt{font-size:11px;line-height:1.4;margin:0 0 2px;color:var(--muted)}
.order-workspace .detail-meta dd{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.order-workspace .order-staff{margin-top:8px}
.order-workspace .workflow-tiles{display:grid;grid-template-columns:1fr;gap:8px;margin:0;align-content:start}
.order-workspace .workflow-tile{padding:0;border:0;background:none;border-radius:0;gap:5px;min-width:0}
.order-workspace .workflow-tile>span{font-size:11px;font-weight:400;line-height:1.4;color:var(--muted);gap:5px}
.order-workspace .workflow-tile>span .icon{display:none}
.order-workspace .workflow-tile select{font-weight:500;font-size:12px}
.order-workspace .workflow-tile small{font-size:11px;line-height:1.4}
.order-workspace .order-payment-method{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;margin-bottom:3px;border-bottom:1px solid var(--line);font-size:11px}
.order-payment-method>span{color:var(--muted)}
.order-payment-method>div{text-align:right;overflow-wrap:anywhere}
.order-payment-method>div>span,.order-payment-method small{display:block}
.order-payment-method small{font-size:10px;color:var(--muted);margin-top:2px}
.order-workspace .summary-line{font-size:12px;padding:4px 0;gap:8px;line-height:1.4}
.order-workspace .summary-line>span:last-child,.order-workspace .summary-line>strong{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.order-workspace .summary-line.total{font-size:14px;padding-top:8px;margin-top:3px}
.order-workspace .summary-line.debt{font-size:13px}
.order-finance .summary-line{color:var(--text)}
.order-finance .summary-line>span:first-child{color:var(--muted)}
.order-finance .summary-line>span:last-child,.order-finance .summary-line>strong{color:var(--text)}
.order-workspace .feed{padding:9px 12px;overflow-wrap:anywhere}
.order-workspace .feed p{font-size:12px;line-height:1.5;margin:3px 0}
.order-workspace .feed small{display:block;font-size:10px;line-height:1.5}
.order-workspace .feed .btn{margin-top:6px}
.order-comment-feed{max-height:170px;overflow-y:auto;scrollbar-gutter:stable}
.order-comment-feed:empty{display:none}
.order-workspace #comment-form textarea{min-height:62px;height:62px;resize:vertical;width:100%}
.order-workspace #comment-form .actions{margin-top:6px}
.order-workspace .empty{padding:20px 12px;font-size:12px}
.order-items{min-width:0}
.order-repair-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--order-gap);align-items:start;margin-bottom:var(--order-gap)}
.order-workspace .order-repair-columns>.panel{min-width:0;margin-bottom:0}
@media(max-width:800px){.order-repair-columns{grid-template-columns:minmax(0,1fr)}}
.order-workspace .list-tools{padding:8px 12px}
.order-workspace .list-tools-top{gap:8px}
.order-workspace .list-options{margin-top:6px}
.order-workspace .list-options>summary,.order-workspace .list-count{font-size:11px}
.order-workspace .list-search{min-width:160px;max-width:420px}
.order-workspace .list-density{max-width:180px}
.order-workspace .order-lock-note{font-size:11px;padding:7px 12px;margin:0}
.order-workspace .order-sku{display:inline-flex;flex-wrap:wrap;margin:3px 10px 0 0;gap:5px;font-size:11px}
.order-workspace .order-sku .btn{font-size:10px;min-height:22px;padding:3px 5px}
.order-workspace .table-wrap{border-radius:0 0 6px 6px}
.order-workspace td.actions{display:table-cell}
.order-workspace td.actions>.btn{margin:2px}
.order-workspace .line-qty,.order-workspace .line-price{height:29px}
.order-workspace .order-intake{margin-bottom:var(--order-gap)}
.order-workspace .repair-device-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:10px 12px;border-radius:6px}
.order-workspace .repair-device-fields>div{display:grid;grid-template-columns:1fr;align-content:start;gap:3px}
.order-workspace .repair-device-fields dt{font-size:11px;line-height:1.4;color:var(--muted)}
.order-workspace .repair-device-fields dd{font-size:12px;margin:0;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}
.order-workspace .order-intake .modal-hint{display:none}
.order-approval{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.order-approval .summary-line{gap:16px}
.order-fold{border:1px solid var(--line);border-radius:6px;background:white;min-width:0;align-self:start;overflow:hidden}
.order-fold>summary{cursor:pointer;padding:9px 12px;font-size:12px;font-weight:600;background:#f7fafb;line-height:1.4}
.order-fold>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.order-fold-count{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}
.order-fold[open]>summary{border-bottom:1px solid var(--line)}
.order-workspace .order-fold>.panel{border:0;margin:0}
.order-fold>.panel>.panel-head{display:none}
.order-finance .order-fold{border:0;border-top:1px solid var(--line);border-radius:0 0 6px 6px;align-self:stretch;margin-top:auto}
.order-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--order-gap);align-items:stretch}
.order-workspace .order-secondary>.panel{min-width:0;margin:0;display:flex;flex-direction:column}
.order-secondary>.panel>.panel-head{min-height:46px;flex-wrap:wrap}
.order-secondary>.panel>.panel-body,.order-history-list,.order-document-list{max-height:300px;overflow-y:auto;scrollbar-gutter:stable}
.order-history-list{list-style:none;margin:0;padding:0}
.order-history-entry{padding:10px 12px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.order-history-entry:last-child{border-bottom:0}
.order-history-heading,.order-history-meta{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.order-history-meta{margin-top:3px;font-size:11px;color:var(--muted)}
.order-history-meta time{white-space:nowrap}
.order-history-heading .text-link{font-size:11px}
.order-history-changes{display:grid;gap:7px;margin:8px 0 0}
.order-history-changes dt{font-size:11px;font-weight:600;margin:0 0 2px}
.order-history-changes dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;margin:0;min-width:0}
.order-history-changes dd>span{min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.order-history-before,.order-history-empty{color:var(--muted)}
.order-history-after{font-weight:500}
.order-history-arrow{color:var(--muted);flex:none}
.order-item-actions button:disabled{cursor:not-allowed}
.order-document-list{list-style:none;padding:0;margin:0}
.order-document-row{padding:10px 12px;border-bottom:1px solid var(--line);display:grid;gap:7px}
.order-document-row:last-child{border-bottom:0}
.order-document-info{min-width:0;overflow-wrap:anywhere;font-size:12px}
.order-document-info small{display:block;margin-top:4px;font-size:10px}
.order-document-actions,.order-document-preview-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.order-document-preview-links{margin-bottom:12px}
.order-document-preview{max-width:1100px;width:calc(100vw - 32px)}
.order-document-preview-frame{width:100%;height:65vh;border:1px solid var(--line);background:white}
.order-document-preview-image{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
.order-document-add-options{display:flex;gap:12px;flex-wrap:wrap}
.order-document-upload .modal-body{display:grid;gap:12px}
.order-document-upload-progress{width:100%;accent-color:var(--accent)}
.order-document-upload-status{font-size:13px;overflow-wrap:anywhere}
.order-document-upload-files{margin:0;padding-left:20px;font-size:13px}
.order-document-empty{padding:14px 12px;color:var(--muted);font-size:12px}
.order-workspace .list-check{font-size:12px;padding:5px 0;gap:8px}
@media(min-width:1600px){.order-top-grid{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr) minmax(260px,1fr)}}
@media(max-width:1120px){.order-top-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr)}.order-activity{grid-column:1/-1}.order-activity>.panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr)}.order-activity .panel-head{grid-column:1/-1}.order-comment-feed{max-height:120px}}
@media(max-width:800px){.content:has(> .order-workspace){padding:14px 12px}.order-toolbar{gap:8px}.order-toolbar h1{font-size:18px}.order-toolbar>.actions{margin-left:0}.order-status{flex:1;max-width:none}.order-top-grid{grid-template-columns:1fr}.order-activity{grid-column:auto}.order-activity>.panel{display:block}.order-comment-feed{max-height:160px}.order-secondary{grid-template-columns:1fr}.order-info-columns{gap:12px}.order-workspace .list-tools-top{flex-wrap:wrap}.order-workspace .list-search{width:100%;max-width:none}.order-workspace .product-link{max-width:260px}.order-workspace .table-wrap{overflow-x:auto}}

@media(max-width:800px){.order-workspace .repair-device-fields{grid-template-columns:1fr;gap:10px}.order-workspace .repair-device-fields>div{grid-template-columns:115px minmax(0,1fr);gap:8px}}

/* Direct order editing: one compact field group per independently saved change. */
.order-workspace .order-card-form{margin:0;min-width:0}
.order-workspace .order-card-form label{font-size:11px;font-weight:400;color:var(--muted);gap:4px;line-height:1.4}
.order-workspace .order-card-form input,.order-workspace .order-card-form select,.order-workspace .order-card-form textarea{font-size:12px;font-weight:400;color:var(--text)}
.order-workspace .order-card-form select:disabled,.order-workspace .order-card-form input:disabled{opacity:1;background:#f6f8fa;color:var(--muted);cursor:default}
.order-staff-editors{display:grid;gap:8px;margin:0}
.order-requisites{display:grid;align-content:start;gap:8px;min-width:0}
.order-delivery-fields{display:grid;gap:9px;margin-top:9px}
.order-delivery-fields[hidden]{display:none}
.order-form-feedback{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:start;justify-content:flex-end}
.order-form-feedback:not(:has(.form-error:not(:empty))):not(:has(button:not([hidden]))){display:none}
.order-workspace .order-form-feedback .form-error{margin:0;flex-basis:100%;font-size:11px;padding:6px 8px;border-radius:4px}
.order-workspace .order-card-save[hidden]{display:none}
.order-workspace [data-order-cancel][hidden]{display:none}
.order-workspace .order-card-save{min-height:25px;padding:4px 8px}
.order-workspace [data-order-cancel]{min-height:25px;padding:4px 7px;color:var(--muted);border-color:transparent}
.order-note-editor{border-top:1px solid var(--line);margin-top:12px;padding-top:9px;font-size:11px;color:var(--muted)}
.order-note-editor>summary{cursor:pointer;line-height:1.5}
.order-note-editor[open]>summary{margin-bottom:8px}
.order-note-editor textarea{min-height:65px;max-height:180px}
.order-workspace .order-note-editor .order-card-form label{font-size:0;gap:0}
.order-workspace .order-note-editor .order-card-form textarea{font-size:12px}
.order-workspace .order-discount-line{align-items:center;padding:4px 0}
.order-workspace .order-discount-line>label{font-size:12px}
.order-discount-input{display:flex;gap:0;align-items:center;max-width:145px;min-width:0}
.order-workspace .order-discount-input input{width:90px;min-width:0;text-align:right;border-radius:4px 0 0 4px;border-right:0;min-height:28px;height:28px;font-variant-numeric:tabular-nums}
.order-workspace .order-discount-input select{width:60px;min-width:0;border-radius:0 4px 4px 0;padding-left:6px;min-height:28px;height:28px}
.order-finance .summary-line.debt{border-top:1px solid var(--line);margin-top:5px;padding-top:9px;color:var(--text)}
.order-finance .summary-line.total{font-size:13px}
.order-unclassified{font-size:10px;text-align:right;line-height:1.4;color:var(--muted);margin:0 0 5px}
.order-workspace .order-intake .panel{margin-bottom:0}
.order-intake-editors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.order-workspace .order-intake-editors textarea{height:62px;min-height:62px;max-height:240px}
.order-comment-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.order-activity .order-comment-feed{flex:1;max-height:210px;min-height:130px;overflow-y:auto;scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#c5d2da transparent;padding:4px 12px}
.order-comment-feed ol{list-style:none;padding:0;margin:0}
.order-comment{display:flex;gap:9px;padding:11px 0;border-bottom:1px solid #edf1f3}
.order-comment:last-child{border-bottom:0}
.order-comment-avatar{width:25px;height:25px;display:grid;place-items:center;background:#f0f4f6;color:#5e707c;border-radius:50%;font-size:9px;font-weight:600;flex-shrink:0;margin-top:1px}
.order-comment-content{min-width:0;flex:1}
.order-comment-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 8px;line-height:1.4}
.order-comment-meta strong{font-size:11px;font-weight:600;color:var(--text);overflow-wrap:anywhere}
.order-comment-meta time{font-size:10px;color:var(--muted);white-space:nowrap}
.order-comment-content p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:4px 0 0}
.order-comment-empty{font-size:12px;color:var(--muted);margin:14px 0;line-height:1.5;text-align:center}
.order-activity .order-comment-composer{border-top:1px solid var(--line);background:#fbfcfd;padding:10px 12px}
.order-workspace #comment-form textarea{min-height:60px;height:60px;font-size:12px;max-height:180px}
.order-workspace #comment-form .actions{justify-content:flex-end;margin-top:7px}
.order-workspace #comment-form .form-error{font-size:11px;padding:6px 8px;margin:6px 0}
/* Let the other order cards set the row height; the feed fills all space above
   its composer and scrolls only when comments exceed that available space. */
@media(min-width:1121px){
 .order-activity .order-comment-feed{flex:1 1 0;height:0;min-height:130px;max-height:none}
 .order-activity>.panel>.panel-head,.order-activity .order-comment-composer{flex-shrink:0}
}
@media(max-width:1120px){.order-activity .order-comment-feed{max-height:190px;min-height:130px}.order-activity .order-comment-composer{border-top:0;border-left:1px solid var(--line);height:100%;display:flex;align-items:center}.order-activity #comment-form{width:100%}}
@media(max-width:800px){.order-activity .order-comment-feed{flex:none;max-height:260px;min-height:0}.order-activity .order-comment-composer{height:auto;display:block;flex:none;border-top:1px solid var(--line);border-left:0}.order-activity>.panel>.panel-body{margin-top:0}.order-intake-editors{grid-template-columns:1fr;gap:9px}}
@media(max-width:460px){.order-info-columns{grid-template-columns:1fr}.order-requisites{grid-template-columns:1fr}.order-requisites>.order-card-form{min-width:0}.order-workspace .order-top-grid .panel-body{padding:10px}.order-comment-meta{display:block}.order-comment-meta time{display:block;margin-top:2px}}

/* Repair intake keeps the device, serials, equipment and reported fault together. */
.order-workspace .order-intake-editors,.order-workspace .order-intake .repair-device-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.order-workspace .order-intake-editors>label{min-width:0;grid-template-rows:1fr auto}
.order-workspace .order-intake .repair-device-fields{padding:0;border:0;border-radius:0;background:transparent}
.order-workspace .order-intake .repair-device-fields>div{grid-template-columns:1fr;min-width:0}
@media(max-width:1120px){.order-workspace .order-intake-editors,.order-workspace .order-intake .repair-device-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.order-workspace .order-intake-editors,.order-workspace .order-intake .repair-device-fields{grid-template-columns:1fr;gap:9px}}
.order-workspace .order-client-summary{display:grid;gap:5px;margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.order-workspace .order-client-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.order-workspace .order-client-summary dt{font-size:11px;font-weight:400;color:var(--muted)}
.order-workspace .order-client-summary dd{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 8px;min-width:0;margin:0;font-size:12px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.order-workspace .order-client-summary dd>span{white-space:nowrap}
.order-workspace .order-approval-comment{min-width:0;font-size:12px;line-height:1.5;color:var(--text)}
.order-workspace .order-approval-comment label,.order-workspace .order-approval-comment dt{font-size:11px;font-weight:400;color:var(--muted);margin-bottom:3px}
.order-workspace .order-approval-comment p,.order-workspace .order-approval-comment dd,.order-workspace .order-approval-comment blockquote{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Dense operational controls: see .interface-design/system.md. */
option,optgroup{font-family:var(--font-ui)}
.order-workspace .order-overview .panel-body{padding:12px}
.order-workspace .order-overview .order-contacts{grid-template-columns:1fr;gap:8px}
.order-overview{container-type:inline-size}
.order-workspace .order-overview .order-overview-body{display:flex;flex-direction:column;gap:16px;flex:1;padding:16px}
.order-overview .order-info-columns{gap:20px;align-items:start}
.order-overview-client,.order-overview .order-requisites{display:grid;gap:16px;min-width:0;align-content:start}
.order-workspace .order-overview .order-contacts{gap:12px}
.order-overview .order-contacts>div:first-child dd{font-size:14px;font-weight:650;line-height:1.5}
.order-overview .order-contacts>div:first-child .text-link{font-weight:650}
.order-overview .detail-meta>div{min-width:0}
.order-overview .detail-meta dd{margin:0}
.order-overview .order-staff-editors{gap:4px}
.order-overview .order-staff-editors>small{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.order-workspace .order-overview .workflow-tiles{gap:16px}
.order-workspace .order-overview .workflow-tile{gap:4px}
.order-workspace .order-overview .workflow-tile>span svg{display:none}
.order-workspace .order-overview .workflow-tile small{min-height:0}
.order-overview-delivery{padding-top:12px;border-top:1px solid var(--line)}
.order-overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2,var(--bg));margin-top:auto}
.order-workspace .order-overview-facts .order-client-summary{display:contents}
.order-workspace .order-overview-facts .order-client-summary>div{display:block}
.order-workspace .order-overview-facts dt{font-size:11px;line-height:1.4;color:var(--muted);margin:0 0 4px}
.order-workspace .order-overview-facts dd{font-size:12px;line-height:1.5;text-align:left;justify-content:flex-start;font-weight:550;margin:0;font-variant-numeric:tabular-nums}
.order-workspace .order-overview-facts .order-client-summary dd>span{white-space:normal;overflow-wrap:anywhere}
.order-overview-facts:not(:has(.order-client-summary)){grid-template-columns:1fr}
@container(max-width:380px){.order-overview .order-info-columns{grid-template-columns:1fr;gap:16px}.order-overview .order-requisites{padding-top:16px;border-top:1px solid var(--line)}.order-overview-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.order-overview-facts>dl:first-child{grid-column:1/-1}}
.order-workspace .order-staff-editors select,.order-workspace .workflow-tile select{font-size:12px;font-weight:400;min-height:30px}
.order-finance-footer{margin-top:auto;border-top:1px solid var(--line);background:#f7fafb;border-radius:0 0 6px 6px}
.order-finance-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap}
.order-payments-toggle{min-height:30px;display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:0}
.order-payments-toggle .order-fold-count{margin-left:4px}
#order-payment-history{border-top:1px solid var(--line);max-height:240px;overflow:auto}
#order-payment-history[hidden]{display:none}
.task-comment-actions{margin-top:12px;display:flex;justify-content:flex-end}
.order-items .list-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:8px 12px}
.order-items .list-tools-top{display:flex;flex-wrap:nowrap;min-width:0;gap:8px}
.order-items .list-search{min-width:120px;max-width:360px}
.order-items .list-search input{font-size:12px;min-height:30px}
.order-items .list-density select{min-height:30px;font-size:11px}
.order-items .list-tools-top>[data-list-count]{font-size:10px;white-space:nowrap}
.order-items .list-tools .btn.small{margin:0;min-height:28px;font-size:11px}
.order-items .list-options{margin:0;min-width:0;grid-column:2;grid-row:1}
.order-items .list-options[open]{grid-column:1/-1;grid-row:2}
.order-items .list-options>summary{font-size:11px;white-space:nowrap;min-height:30px;display:flex;align-items:center;justify-content:flex-end}
.order-items .list-options-body{grid-column:1/-1;max-width:none;padding-top:0}
.order-items .list-options:not([open])>.list-options-body{display:none}
.order-workspace .order-lock-note{font-size:11px;line-height:1.4;padding:5px 12px;background:#fafbfc}
@media(max-width:1120px){.order-items .list-density{display:none}.order-items .list-tools-top>[data-list-count]{display:none}}
@media(max-width:800px){.content:has(> .orders-register-page){padding:12px}.order-items .list-tools{gap:6px 8px}.order-items .list-search{min-width:0;max-width:none;width:auto}.order-items .list-tools-top{flex-wrap:nowrap}.order-items .list-tools-top>[data-list-reset]{display:none}}
@media(pointer:coarse){.order-workspace .btn,.order-payments-toggle{min-height:40px}.order-workspace select,.order-workspace input:not([type=checkbox]){min-height:40px}}

.catalog-column-toolbar{display:flex;justify-content:flex-end;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.order-item-table th,.order-item-table td{text-align:left;vertical-align:middle}
.order-item-table [data-item-column=name]{min-width:240px}
.order-item-table [data-item-column=qty]{min-width:70px}
.order-item-table [data-item-column=price]{min-width:110px}
.order-item-table [data-item-column=amount]{min-width:120px;font-variant-numeric:tabular-nums}
.order-item-table [data-item-column=master]{min-width:150px}
.order-item-table .line-master{width:100%;min-width:140px;max-width:210px;min-height:29px;height:29px;padding:3px 24px 3px 7px;font-size:13px}
.order-item-table [data-item-column=result]{min-width:180px;max-width:380px;white-space:normal}
.order-item-table .work-result{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.order-item-actions{display:flex;align-items:center;gap:4px;white-space:nowrap;flex-wrap:nowrap}
.order-item-dirty td{background:#edf7fc}
.order-item-table .line-qty{width:70px}.order-item-table .line-price{width:110px}

[hidden]{display:none!important}
.detail-meta dd>small{display:block;margin-top:3px}

.order-search-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--line)}
.order-items .order-search-tools .list-search{width:min(100%,460px);max-width:460px;margin:0}
.order-search-tools [data-list-count]{font-size:11px;color:var(--muted);white-space:nowrap}
.line-product-options{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:6px;margin:-10px 0 14px;background:#fff}
.line-product-options button{display:block;width:100%;padding:8px 12px;text-align:left;color:var(--text);background:#fff;border:0;border-bottom:1px solid var(--line);font:inherit;cursor:pointer}
.line-product-options button:last-child{border-bottom:0}
.line-product-options button small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.line-product-options button:hover,.line-product-options button[aria-selected=true]{background:#edf7fc}
.line-product-options p{padding:8px 12px;margin:0;color:var(--muted)}
.status-color-field{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.status-color-field label{flex:0 0 180px}
.status-color-field input[type=color]{height:36px;min-height:36px;padding:3px;cursor:pointer}
.status-color-preview{display:flex;align-items:center;min-height:36px}
.status-color-hint{font-size:12px;color:var(--muted);margin:0 0 14px}
.order-status-color-control{font-weight:600;color-scheme:light}
.order-status-color-control option{font-weight:400}
.employee-avatar{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.employee-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.employee-avatar.small{width:26px;height:26px;font-size:11px}
.employee-identity{display:flex;align-items:center;gap:8px}
.employee-photo-preview img{display:block;max-width:180px;max-height:180px;border-radius:8px;object-fit:cover}
#modal.stock-product-drawer{inset:0 0 0 auto;margin:0;width:min(620px,100%);max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;border-left:1px solid var(--line);box-shadow:-12px 0 36px #10202c20;overflow:auto}
.stock-product-drawer .modal-head{position:sticky;top:0;z-index:2;background:#fff;padding:16px 20px}
.stock-product-drawer .modal-head h2{font-size:18px}
.stock-product-drawer .modal-body{padding:16px 20px}
.stock-product-drawer .modal-foot{position:sticky;bottom:0;z-index:2;padding:12px 20px}
.stock-product-drawer .panel{margin-top:16px}
.bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.bulk-toolbar>small{flex-basis:100%;color:var(--muted);font-size:11px}
.bulk-toolbar select{width:auto;min-width:150px;font-size:12px;min-height:30px}
.bulk-toolbar .btn{min-height:30px}
.bulk-check-cell{width:32px!important;min-width:32px!important;text-align:center!important;padding:6px!important}
.bulk-check-cell input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;cursor:pointer;vertical-align:middle}
.bulk-selection-summary{max-height:280px;overflow:auto;margin:12px 0}
.bulk-selection-summary table{width:100%}
.bulk-selection-summary td{padding:6px;border-bottom:1px solid var(--line)}
.bulk-selection-summary input{width:80px;min-width:60px}
.bulk-problems{margin:12px 0;padding:12px;color:#96362f;background:#fff6f5;border:1px solid #efd1ce;border-radius:6px}
.bulk-print-preview{width:100%;height:55vh;border:1px solid var(--line)}
.stock-transfer-dialog{width:min(840px,calc(100vw - 32px))}
.stock-transfer-dialog .modal-head,.stock-transfer-dialog .modal-foot{padding:14px 22px}
.stock-transfer-dialog .modal-head h2{font-size:18px}
.stock-transfer-dialog .modal-body{padding:16px 22px;gap:10px}
.stock-transfer-dialog .modal-hint{margin:0;font-size:12px;line-height:1.5}
.stock-transfer-dialog label{font-size:12px;gap:5px}
.stock-transfer-dialog input,.stock-transfer-dialog select{min-height:34px;padding:7px 10px;font-size:13px}
.transfer-place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.transfer-place-picker{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd}
.transfer-place-picker legend{padding:0 6px;font-size:13px;font-weight:700}
.transfer-place-fields{display:grid;gap:9px}
.transfer-place-fields label{min-width:0;font-size:12px}
.transfer-place-fields select{min-width:0;width:100%;font-size:13px;min-height:36px;padding:7px 10px}
.transfer-stock-summary{display:block;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5;white-space:pre-line}
.transfer-unit-fields{margin:0}
.stock-transfer-dialog [hidden]{display:none!important}
@media(max-width:640px){.transfer-place-grid{grid-template-columns:1fr;gap:10px}.stock-transfer-dialog .modal-body{padding:16px}.transfer-place-picker{padding:12px}}
@media(max-width:460px){.order-fulfillment-row{grid-template-columns:1fr}.order-search-tools [data-list-count]{display:none}.bulk-toolbar{gap:6px}.bulk-toolbar select{min-width:0;flex:1}}

/* Compact repair intake; equipment stays explicit and reusable. */
.repair-intake-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.repair-intake-create>.repair-equipment,.repair-intake-create>.repair-fault{grid-column:1/-1}
.repair-equipment{min-width:0;margin:0;padding:0;border:0;display:grid;gap:7px}
.repair-equipment legend{padding:0;margin:0 0 7px;font-size:.875rem;font-weight:550}
.repair-equipment-checks{display:flex;flex-wrap:wrap;gap:7px 12px;align-content:start}
.repair-equipment-checks label{display:flex;align-items:center;gap:6px;font-weight:400;line-height:1.4}
.repair-equipment-checks input{width:15px;height:15px;min-height:15px;padding:0;margin:0;flex-shrink:0;accent-color:var(--accent)}
.repair-equipment-other[hidden]{display:none}
.repair-equipment-other textarea,.repair-intake-create textarea{height:52px;min-height:52px;max-height:180px;padding:7px 9px}
.repair-intake-create input:not([type=checkbox]){min-height:34px;padding:7px 9px}
.order-workspace .order-intake-editors{align-items:start;grid-template-columns:1fr 1fr 1.25fr 1.25fr}
.order-workspace .order-intake-editors>label{grid-template-rows:auto auto;align-content:start}
.order-workspace .order-intake-editors input:not([type=checkbox]){height:32px;min-height:32px;padding:6px 8px}
.order-workspace .order-intake-editors textarea{height:48px;min-height:48px;padding:6px 8px}
.order-workspace .repair-equipment legend,.order-workspace .repair-equipment-checks label{font-size:11px}
.order-workspace .repair-equipment-checks{gap:6px 10px}
.repair-intake-create .repair-fault textarea{height:34px;min-height:34px;max-height:none;resize:none;overflow:hidden}
.order-workspace .order-intake-editors .repair-fault textarea{height:32px;min-height:32px;max-height:none;resize:none;overflow:hidden;line-height:1.4}
.order-workspace .order-intake-editors .repair-equipment legend{margin-bottom:4px;line-height:1.4;font-weight:400;color:var(--muted)}
.order-workspace .order-intake-editors .repair-equipment-checks{min-height:32px;align-items:center;align-content:center}
@media(max-width:1120px){.order-workspace .order-intake-editors{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.repair-intake-create,.order-workspace .order-intake-editors{grid-template-columns:1fr}.repair-intake-create>.repair-equipment,.repair-intake-create>.repair-fault{grid-column:auto}}

.payment-rate-info{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);margin:-6px 0 14px}
.payment-rate-info small{flex:1;min-width:180px;line-height:1.5}
.payment-rate-info[hidden],.payment-rate-info button[hidden]{display:none}
#payment-rate-auto-label{margin-bottom:14px}
#payment-rate-auto-label[hidden]{display:none!important}

.status-settings-group{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px;margin:0 0 18px}.status-settings-group legend{padding:0 6px;font-weight:650}.status-settings-group .row{margin:0 0 12px}.status-settings-group .row:last-child{margin-bottom:0}.status-settings-group .checks{margin:4px 0 10px}.status-settings-group .checks:last-child{margin-bottom:0}

/* Each country keeps its selling price beside its storefront display option. */
.country-price-rows{display:grid;gap:12px}.country-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1fr);gap:16px;align-items:end}.country-price-row>label{margin:0;min-width:0}.country-price-row>.country-price-discount{display:flex;align-items:center;gap:8px;padding-bottom:10px;font-size:.8rem;font-weight:500;line-height:1.35}.country-price-discount input[type=checkbox]{padding:0;margin:0;width:16px;min-height:16px;height:16px;flex:0 0 16px;accent-color:var(--accent)}@media(max-width:480px){.country-price-row{grid-template-columns:minmax(0,1fr) minmax(140px,1fr);gap:10px}.country-price-row>.country-price-discount{font-size:.75rem}}
.boot-recovery-actions{justify-content:center;margin:20px 0}.boot #connection-recovery-error{max-width:560px;margin:18px auto 0;overflow-wrap:anywhere}

.document-generation .doc-custom-values:empty{display:none}.document-generation .doc-generation-columns{margin:18px 0 16px}.document-generation .doc-generation-columns>h3{font-size:.92rem;margin:0 0 6px}.document-generation .doc-generation-columns>.modal-hint{margin:0 0 12px}.document-generation .doc-generation-table{min-width:0;margin:0 0 12px;padding:12px 14px 14px;border:1px solid var(--line);border-radius:8px}.document-generation .doc-generation-table:last-child{margin-bottom:0}.document-generation .doc-generation-table>legend{padding:0 6px;font-size:.8rem;font-weight:600}.document-generation .doc-generation-column-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}.document-generation .doc-generation-column-grid .doc-check{margin:0;min-width:0;align-items:flex-start;line-height:1.4}.document-generation .doc-generation-column-grid input[type=checkbox]{padding:0;margin:1px 0 0}.document-generation .doc-generation-column-grid span{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.document-generation .doc-generation-column-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:420px){.document-generation .doc-generation-column-grid{grid-template-columns:minmax(0,1fr)}}
