
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#f4f7f2;background:#0b100e;--panel:#17211b;--line:#304037;--muted:#a8b9ac;--accent:#71e000}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#223126;color:#f4f7f2;padding:.65rem .9rem;border-radius:10px}button:hover{border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--accent);color:#09110b;border-color:var(--accent);font-weight:700}input,select,textarea{background:#101913;color:#fff;border:1px solid var(--line);border-radius:9px;padding:.7rem;width:100%}textarea{min-height:95px;resize:vertical}label{display:block;color:var(--muted);font-size:.88rem;margin:.7rem 0}label input,label select,label textarea{margin-top:.3rem}h1{font-size:clamp(1.5rem,3vw,2.3rem);margin:.3rem 0 1rem}h2{font-size:1.1rem}p{line-height:1.5}small,.muted{color:var(--muted)}a{color:var(--accent)}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}aside{background:#0c1510;border-right:1px solid var(--line);padding:1.2rem}.brand{font-size:1.25rem;font-weight:900;letter-spacing:.03em}.brand span{color:var(--accent)}nav{display:grid;gap:.4rem;margin-top:2rem}nav button{text-align:left;background:transparent;border-color:transparent}nav button.active{background:#213d22;border-color:#456d35}main{padding:1.7rem;max-width:1350px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.2rem;margin:1rem 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.metric strong{display:block;font-size:2rem;color:var(--accent)}.row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line)}.row:last-child{border:0}.actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--line);padding:.75rem}th{color:var(--muted);font-size:.8rem}tr:hover td{background:#1e2b21}.badge{display:inline-block;background:#2b4927;color:#caff9f;padding:.25rem .55rem;border-radius:999px;font-size:.8rem}.auth{max-width:470px;margin:7vh auto;padding:1rem}.auth .card{padding:1.7rem}.auth h1{color:var(--accent)}.notice{border-left:3px solid var(--accent);padding:.8rem 1rem;background:#18301d}.error{color:#ffaaa4}.hide{display:none}.loading{padding:2rem}.portal{max-width:840px;margin:auto;padding:1.2rem}.portalhero{background:linear-gradient(120deg,#14321a,#19261d);border:1px solid #416e2c;border-radius:20px;padding:1.5rem}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 1rem}.full{grid-column:1/-1}.toolbar{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.toolbar input{max-width:360px}.note{border-left:2px solid #557e43;padding:.1rem 1rem;margin:.7rem 0}.photos{display:flex;flex-wrap:wrap;gap:.6rem}.photos img{width:150px;height:110px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}canvas.signature{width:100%;max-width:540px;height:220px;background:#fff;border:2px solid var(--line);border-radius:10px;touch-action:none}.printhead{display:none}#toast{position:fixed;bottom:1rem;right:1rem;background:#264627;border:1px solid var(--accent);padding:.8rem 1rem;border-radius:10px;display:none;max-width:360px;z-index:10}@media(max-width:760px){.shell{display:block}aside{border-right:0;border-bottom:1px solid var(--line)}nav{display:flex;overflow:auto;margin-top:.8rem}nav button{white-space:nowrap}main{padding:1rem}.top{align-items:flex-start;flex-direction:column}}@media print{body{color:#000;background:#fff}.shell{display:block}aside,.top button,.actions,nav,.noprint{display:none!important}.card,.portalhero{color:#000;background:#fff;border:1px solid #999;break-inside:avoid}.printhead{display:block}main{padding:0}th,td{color:#000;border-color:#999}}
.shell main{margin:0 auto;align-self:start;padding-top:1.5rem}.shell main>h2:first-of-type{font-size:clamp(1.5rem,3vw,2.3rem);line-height:1.2;margin:.25rem 0 1rem;color:#f4f7f2}@media print{.shell .card .document-logo{display:none}}.workshop-logo{display:block;max-width:240px;max-height:130px;object-fit:contain;margin:1rem 0}.brand-logo{display:block;max-width:160px;max-height:76px;object-fit:contain;margin:0 0 .6rem}.top .brand-logo{max-height:60px}.portal .brand-logo{max-width:220px;max-height:105px}.document-logo{max-width:210px;max-height:105px;object-fit:contain;display:block;margin:0 0 1rem}.side-brand{display:flex;align-items:center;gap:.7rem;min-height:62px}.side-brand .brand-logo{width:52px;max-height:52px;margin:0;flex:none}.side-brand .brand{line-height:1.1}.side-brand .brand-version{display:block;color:var(--muted);font-size:.72rem;margin-top:.25rem;letter-spacing:.03em}.side-workshop{font-size:.84rem;margin:.85rem 0 1.1rem;color:var(--muted)}.mobile-bar,.sidebar-backdrop{display:none}.orders-page .top{display:none}.orders-page main{padding-top:1.5rem}.orders-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin:0 0 1.2rem}.orders-heading h1{margin:.25rem 0}.orders-heading p{margin:0;color:var(--muted)}.breadcrumbs{color:var(--accent);font-size:.8rem}.orders-filters{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}.orders-filters input{flex:1 1 330px;width:auto}.orders-filters select{width:auto;min-width:190px}.orders-list{padding:0;overflow:hidden}.orders-list h2{margin:0;padding:.8rem 1rem;background:#29450f;color:#f8fff2}.orders-list .tablewrap{overflow:auto}.orders-list table{min-width:850px}.orders-list th{background:#101810;color:#97a99a;text-transform:uppercase;white-space:nowrap;font-size:.72rem}.orders-list th button{padding:0;border:0;background:none;font-size:inherit;color:inherit;text-transform:inherit}.orders-list td{vertical-align:middle;padding:1rem .8rem}.orders-list tbody tr:hover td{background:#1b2b1e}.order-link{border:0;background:none;color:#c9efb2;padding:0;font-weight:700}.client-name{display:block;color:#fff;font-weight:800}.clients-list .client-name{font-size:.88rem;font-weight:700}.device-name{display:block;color:var(--muted);font-size:.78rem;margin-top:.18rem}.status-dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;margin-right:.4rem;background:#a8b9ac}.status-dot.ready,.status-dot.delivered,.status-dot.approved{background:#14c768}.status-dot.waiting{background:#ef8b24}.status-dot.review{background:#4292ff}.status-dot.cancelled{background:#ef5555}.orders-empty{text-align:center;color:var(--muted)}@media(max-width:760px){.mobile-bar{display:flex;align-items:center;gap:.8rem;padding:.7rem 1rem;background:#0c1510;border-bottom:1px solid var(--line)}.mobile-bar button{font-size:1.25rem;line-height:1;padding:.45rem .7rem}.mobile-bar .brand-logo{width:38px;max-height:38px;margin:0}.mobile-bar .brand{font-size:1.1rem}.shell aside{position:fixed;z-index:30;inset:0 auto 0 0;width:min(280px,84vw);height:100vh;overflow-y:auto;transform:translateX(-105%);transition:transform .2s ease;border-right:1px solid var(--line);border-bottom:0;box-shadow:0 0 24px #0008}.shell.menu-open aside{transform:translateX(0)}.shell aside nav{display:grid;overflow:visible;margin-top:1.2rem}.shell aside nav button{white-space:normal}.shell.menu-open .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:20;background:#0009;border:0;border-radius:0}.shell main{padding:1rem}.shell .top .brand-logo{display:none}.shell .top small{display:none}.shell .top h1{margin:0;font-size:1.5rem}.orders-heading{align-items:start;flex-direction:column}.orders-filters input,.orders-filters select{width:100%;flex-basis:100%}}@media print{.mobile-bar,.sidebar-backdrop{display:none!important}.top{display:flex!important}.top .brand-logo{display:block!important;max-height:70px}.brand-logo,.document-logo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.orders-screen{font-family:"Chakra Petch","Segoe UI",sans-serif;font-size:15px}
.orders-screen .orders-heading h1{font-size:30px;font-weight:700;letter-spacing:.2px}
.orders-screen .orders-heading p{font-size:14px}
.orders-screen .orders-list h2{font-size:15px;font-weight:600;letter-spacing:.3px}
.orders-screen .orders-filters input,.orders-screen .orders-filters select,.orders-screen .orders-filters button,.orders-screen .orders-heading button{font-size:14px}
.orders-screen .orders-list th{font-size:11px;font-weight:600;letter-spacing:.5px;padding:10px 20px}
.orders-screen .orders-list td{font-size:14px;padding:13px 20px}
.orders-screen .orders-list .client-name{font-size:14px;font-weight:700}
.orders-screen .orders-list .device-name{font-size:12px}
.orders-screen .orders-list .order-link{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:14px;font-weight:400}

@font-face{font-family:"Chakra Petch";src:url('/fonts/chakra-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Chakra Petch";src:url('/fonts/chakra-600.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"Chakra Petch";src:url('/fonts/chakra-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url('/fonts/plex-mono-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{font-family:"Chakra Petch","Segoe UI",sans-serif;font-size:15px}
body,button,input,select,textarea{font-family:"Chakra Petch","Segoe UI",sans-serif}
button,input,select,textarea{font-size:14px}
h1{font-size:21px;letter-spacing:.2px}
h2,.shell main>h2:first-of-type{font-size:15px;font-weight:600;letter-spacing:.3px}
th{font-size:11px;font-weight:600;letter-spacing:.5px}
td{font-size:14px}
label{font-size:12px}
.shell main>h2:first-of-type{line-height:1.3}
.orders-screen .orders-heading h1{font-size:30px}
.portal .quote-choices{display:flex;gap:8px;flex-wrap:wrap}.portal .quote-choices label{position:relative;margin:0}.portal .quote-choices input{position:absolute;opacity:0;width:1px;height:1px}.portal .quote-choices span{display:block;padding:10px 16px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.portal .quote-choices input:checked+span{border-color:var(--accent);background:#29450f;color:#fff}.portal .quote-choices input[value=rejected]:checked+span{border-color:#f66;background:#542121}.portal .quote-choices input:focus-visible+span{outline:2px solid #fff;outline-offset:3px}@media(max-width:600px){#answer>.row{align-items:flex-start;flex-direction:column}}
.quote-actions #previewCustomerQuote{border:0;background:transparent;color:var(--accent);text-decoration:underline}.quote-response{color:var(--muted);font-size:13px}
.photo-thumb{position:relative;line-height:0}.photo-thumb button{position:absolute;padding:4px;line-height:1;background:#111c;color:white}.photo-trash{top:4px;left:4px}.photo-eye{bottom:4px;right:4px}
.order-catalog-pickers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.order-catalog-pickers .order-catalog-form{margin:0;min-width:0}.catalog-entry{display:grid;gap:8px}.catalog-choice{min-width:0}.catalog-choice select{width:100%;min-width:0;text-overflow:ellipsis}.catalog-numbers{display:grid;grid-template-columns:64px minmax(100px,1fr);gap:10px}.catalog-numbers input{padding:8px}.catalog-numbers input[readonly]{color:var(--muted)}.order-catalog-form>button{margin-top:10px}@media(max-width:680px){.order-catalog-pickers{grid-template-columns:1fr}}
.dashboard-alerts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.reminder-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:16px}.reminder-note{border:1px solid var(--line);border-left:5px solid #e6c54b;padding:14px;border-radius:8px;overflow-wrap:anywhere}.reminder-note[data-color=pink]{border-left-color:#f698bd}.reminder-note[data-color=green]{border-left-color:#71e000}.reminder-note[data-color=blue]{border-left-color:#62b9f5}.reminder-note[data-color=orange]{border-left-color:#ed9c46}
.dashboard-metrics small{display:block;margin-top:8px;font-size:12px;color:var(--muted)}.dashboard-columns{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:16px;align-items:start}.dashboard-columns .card{min-width:0}.dashboard-state{display:flex;justify-content:space-between;width:100%;margin:6px 0;text-align:left}@media(max-width:800px){.dashboard-columns{grid-template-columns:1fr}}
.order-detail .order-header{display:grid;grid-template-columns:minmax(260px,32%) minmax(0,1fr);align-items:start;gap:1.4rem;margin:0 0 1.4rem}
.order-detail .order-heading{min-width:0}
.order-detail .order-heading h1{font-size:clamp(25px,2.4vw,34px);line-height:1.17;margin:.45rem 0 .5rem;font-weight:800;overflow-wrap:anywhere}
.order-detail .order-heading h1 span{display:block}
.order-detail .order-heading p{margin:.2rem 0;color:var(--muted);font-size:14px}
.order-detail .order-actions{margin:1.4rem 0 0;gap:.4rem;align-content:start}
.order-detail .order-actions button{font-size:13px;padding:7px 10px;border-radius:9px;white-space:nowrap}
@media(max-width:1000px){.order-detail .order-header{grid-template-columns:1fr;gap:.3rem}.order-detail .order-actions{margin:.4rem 0 0}}
.order-detail .order-main-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:1rem;align-items:start}
.order-detail .order-main-grid>.card{margin:0}
.order-detail .order-main-grid .card h2,.order-detail .order-concepts h2{font-size:15px;font-weight:600;margin:-1.2rem -1.2rem 1rem;padding:.8rem 1.2rem;background:#29450f;border-radius:15px 15px 0 0}
.order-detail .order-main-grid label{font-size:12px;text-transform:uppercase;letter-spacing:.3px}
.order-detail .order-main-grid textarea{font-size:14px;line-height:1.5}
.order-detail .order-info p{font-size:14px;line-height:1.4;margin:.55rem 0}
.order-detail .order-info p b{font-weight:600}
.order-detail .order-concepts{margin-top:1rem}
.order-detail .order-left>.card{margin:0 0 1rem}
.order-detail .order-left>.card:last-child{margin-bottom:0}
.order-detail .order-notes{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.order-detail .order-notes .card{min-width:0}
.order-detail .order-notes .note{scroll-margin-top:90px}.order-detail .order-notes .note-actions{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}
.order-detail .note-share-preview{margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#101913}.order-detail .note-share-preview p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.portal .note{scroll-margin-top:30px}.portal .note:target{border-color:var(--accent);background:#21331d}
.order-detail .order-facts th,.order-detail .order-facts td{font-size:12px;padding:7px 8px;vertical-align:top;text-transform:none;letter-spacing:0}
.order-detail .order-facts th{width:42%;color:var(--muted);font-weight:500}
.order-detail .order-facts td{overflow-wrap:anywhere}
.order-detail .order-equipment h2{display:flex;align-items:center;justify-content:space-between}
.order-detail .order-equipment h2 button{font-size:12px;padding:4px 8px}
.order-detail .order-money{display:grid;grid-template-columns:1fr auto;gap:.4rem;padding:.75rem;background:#101913;border:1px solid var(--line);border-radius:10px;font-size:13px}
.order-detail .order-money b{text-align:right}
.order-detail .order-state{margin:.4rem 0 .8rem;font-size:14px}
.order-detail .order-info .actions{margin-top:1rem}
.order-detail .order-info .actions button{font-size:12px;padding:5px 8px}
.order-detail .order-info[data-state-tone="ready"]{border-color:#71e000;box-shadow:0 0 0 1px #71e00055}
.order-detail .order-info[data-state-tone="ready"]>h2{background:#365b0d;color:#dcffb7}
.order-detail .order-info[data-state-tone="customer"]{border-color:#f28b30;box-shadow:0 0 0 1px #f28b3055}
.order-detail .order-info[data-state-tone="customer"]>h2{background:#704014;color:#fff0dc}
.order-detail .order-info[data-state-tone="part"]{border-color:#f3d54b;box-shadow:0 0 0 1px #f3d54b55}
.order-detail .order-info[data-state-tone="part"]>h2{background:#6b5c13;color:#fff8ce}
.order-detail .order-info[data-state-tone="unrepaired"]{border-color:#ee5353;box-shadow:0 0 0 1px #ee535355}
.order-detail .order-info[data-state-tone="unrepaired"]>h2{background:#732424;color:#ffe4e4}
.order-detail .order-info-form{padding:.45rem 0}.order-detail .order-info-form .actions{margin:.7rem 0 0}
.order-detail .order-info select{background:#131d16;border:1px solid #2b3a30;border-radius:7px;color:#f4f7f2;padding:6px 9px;font-size:12px}
.order-detail .order-info .order-state{display:flex;align-items:center;gap:8px}.order-detail .order-info .order-state select{flex:1}
.order-detail .order-info .order-facts select{width:100%;max-width:260px}
.order-detail .order-concepts form{border-top:1px solid var(--line);margin-top:1rem;padding-top:.7rem}
.order-detail .order-concepts table td,.order-detail .order-concepts table th{font-size:12px}
.order-detail .order-concepts table td{vertical-align:top}
.order-detail .order-concepts table small{color:var(--muted)}
.order-detail .order-total{font-size:13px}
.order-detail .order-signature-image{display:block;max-width:300px;max-height:150px;background:#fff;border-radius:8px;padding:.4rem}
.order-detail .check-row{display:flex;align-items:center;gap:.55rem;color:#e7eee6;font-size:13px;text-transform:none;margin:.45rem 0}
.order-detail .check-row input{width:auto;margin:0;accent-color:var(--accent)}
.order-detail .order-audit summary{cursor:pointer;color:var(--accent)}
.order-detail .order-audit .row{font-size:13px}
.order-detail .order-audit .row small{font-size:11px}
@media(max-width:850px){.order-detail .order-main-grid{grid-template-columns:1fr}}
@media(max-width:700px){.order-detail .order-notes{grid-template-columns:1fr}}

.receipt-view{min-height:100vh;background:#fff;color:#111;padding:24px 16px 32px;font-family:Arial,Helvetica,sans-serif;font-size:13px}
.receipt-view *{box-sizing:border-box}
.receipt-paper{width:min(100%,760px);margin:0 auto;background:#fff;color:#111}
.receipt-head{display:flex;justify-content:space-between;gap:20px;align-items:start;border-bottom:2px solid #222;padding:0 0 20px}
.receipt-workshop{display:flex;align-items:center;gap:12px;min-width:0}
.receipt-workshop strong{display:block;font-size:17px;line-height:1.1}
.receipt-workshop small{display:block;max-width:360px;color:#444;font-size:10px;line-height:1.3;margin-top:3px}
.receipt-logo{width:54px;height:54px;object-fit:contain;flex:none}
.receipt-title{text-align:right;white-space:nowrap}
.receipt-title h1{font-family:Arial,Helvetica,sans-serif;font-size:20px;font-weight:700;line-height:1;margin:0 0 2px;letter-spacing:0}
.receipt-title b,.receipt-title small{display:block;font-size:13px;font-weight:400;line-height:1.2}
.receipt-title small{font-size:11px;color:#444}
.receipt-paper table{width:100%;border-collapse:collapse;color:#111}
.receipt-paper th,.receipt-paper td{font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.25;color:#111;background:#fff;border:0;padding:5px 6px}
.receipt-party{margin:14px 0 22px}
.receipt-party tr{border-bottom:1px solid #eee}
.receipt-party th{width:120px;text-align:left;font-weight:400;color:#555}
.receipt-items thead tr{border-bottom:1px solid #999}
.receipt-items thead th{font-size:10px;font-weight:400;color:#555}
.receipt-items th:first-child,.receipt-items td:first-child{text-align:left}
.receipt-items th:not(:first-child),.receipt-items td:not(:first-child){text-align:right}
.receipt-items th:nth-child(2),.receipt-items td:nth-child(2){width:55px}
.receipt-items th:nth-child(3),.receipt-items td:nth-child(3),.receipt-items th:nth-child(4),.receipt-items td:nth-child(4){width:100px}
.receipt-items tbody tr{border-bottom:1px solid #eee}
.receipt-items tfoot tr{border-top:2px solid #222}
.receipt-items tfoot th,.receipt-items tfoot td{font-size:13px;font-weight:700}
.receipt-items .receipt-grand{border-top:2px solid #222}
.receipt-payment{font-size:11px;text-align:right;color:#444;margin:10px 0}
.receipt-notice{border:1px dashed #d2d2d2;background:#f5f5f5;border-radius:5px;padding:9px 11px;font-size:11px;margin-top:14px}
.receipt-footer{border-top:1px solid #ddd;margin-top:16px;padding-top:10px;color:#555;font-size:11px}
.receipt-footer p{line-height:1.35;margin:0 0 4px}
.receipt-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:24px auto 0}
.receipt-actions button{min-width:140px;background:#252525;border:0;border-radius:8px;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:13px;padding:11px 18px}
.receipt-actions button.primary{background:#17c964;color:#fff}
.receipt-credit{text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:11px;color:#999;margin-top:18px}
.receipt-credit b{font-weight:700;color:#4a4a4a}.receipt-credit span{color:#64bf14}
@media(max-width:580px){.receipt-view{padding:16px 12px}.receipt-workshop strong{font-size:13px}.receipt-workshop small{font-size:9px}.receipt-logo{width:42px;height:42px}.receipt-title h1{font-size:17px}.receipt-paper th,.receipt-paper td{font-size:10px;padding:5px 3px}.receipt-party th{width:75px}.receipt-items th:nth-child(3),.receipt-items td:nth-child(3),.receipt-items th:nth-child(4),.receipt-items td:nth-child(4){width:70px}}
@media print{@page{size:A4;margin:15mm}.receipt-view{min-height:0;padding:0;background:#fff!important;color:#111!important}.receipt-paper{width:100%;max-width:none}.receipt-actions,.receipt-credit,#toast{display:none!important}.receipt-paper *{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.insurance-view{min-height:100vh;background:#eef0f2;color:#222;padding:22px 14px 40px;font:13px Arial,Helvetica,sans-serif}
.insurance-view *{box-sizing:border-box}.insurance-form{width:min(100%,760px);margin:0 auto 24px;background:#fff;border:1px solid #ddd;border-radius:12px;padding:20px;box-shadow:0 1px 4px #0001}
.insurance-form h1{font:700 15px Arial,Helvetica,sans-serif;color:#222;margin:0 0 4px}.insurance-form p{color:#666;margin:0 0 12px}
.insurance-form details{margin-bottom:14px}.insurance-form summary{color:#008e46;cursor:pointer;font-weight:700;margin-bottom:10px;list-style:none}.insurance-form summary::-webkit-details-marker{display:none}
.insurance-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.insurance-form label{display:block;font-size:11px;color:#666;text-transform:uppercase}
.insurance-form label.wide{grid-column:1/-1}.insurance-form input,.insurance-form textarea,.insurance-form select{display:block;width:100%;margin-top:5px;padding:9px 10px;background:#fff!important;border:1px solid #d5d5d5!important;border-radius:7px;color:#222!important;font:13px Arial,Helvetica,sans-serif}
.insurance-form textarea{min-height:65px;resize:vertical}.insurance-form-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.insurance-form-actions button,.insurance-form-actions a{border:0;border-radius:7px;padding:10px 15px;background:#222;color:#fff;text-decoration:none;font:700 12px Arial,Helvetica,sans-serif;cursor:pointer}.insurance-form-actions .primary{background:#088c4b}
.insurance-paper{width:min(100%,760px);margin:auto;background:#fff;padding:38px 42px;color:#222;box-shadow:0 2px 10px #0002;font:12px Arial,Helvetica,sans-serif}
.insurance-paper header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:18px;border-bottom:2px solid #222;background:#fff!important;color:#222!important}
.insurance-brand{display:flex;gap:12px;align-items:center}.insurance-brand img{width:58px;height:58px;object-fit:contain}.insurance-brand strong{display:block;font-size:16px}.insurance-brand small{display:block;font-size:10px;line-height:1.4;margin-top:4px;color:#555}
.insurance-paper-title{text-align:right;white-space:nowrap;font-size:18px;font-weight:700}.insurance-paper-title small{display:block;font-size:10px;font-weight:400;line-height:1.5;margin-top:6px}
.insurance-paper h2{font:700 11px Arial,Helvetica,sans-serif;letter-spacing:.04em;border-bottom:1px solid #bbb;padding-bottom:6px;margin:24px 0 9px}.insurance-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px 22px}.insurance-fact small{display:block;color:#777;font-size:10px}.insurance-fact b{display:block;font-size:12px;margin-top:3px}.insurance-copy{white-space:pre-wrap;line-height:1.5;margin:0}.insurance-photos{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.insurance-photos figure{margin:0;break-inside:avoid;border:1px solid #ddd;padding:5px}.insurance-photos img{width:100%;max-height:250px;object-fit:contain}.insurance-photos figcaption{text-align:center;color:#777;font-size:10px}.insurance-disclaimer{border-top:1px solid #bbb;margin-top:26px;padding-top:10px;font-size:10px;line-height:1.5;color:#555}
@media(max-width:580px){.insurance-form-grid,.insurance-facts{grid-template-columns:1fr}.insurance-paper{padding:23px 17px}.insurance-paper header{flex-wrap:wrap}.insurance-paper-title{text-align:left}.insurance-photos{grid-template-columns:1fr}}
@media print{@page{size:A4;margin:12mm}.insurance-view{padding:0;background:#fff!important}.insurance-form{display:none!important}.insurance-paper{width:100%;padding:0;box-shadow:none}.insurance-paper h2,.insurance-photos figure{break-inside:avoid}}

.label-view{min-height:100vh;padding:28px 16px;background:#eef0f2;color:#111;font:13px Arial,Helvetica,sans-serif}
.label-view *{box-sizing:border-box}.label-paper{width:min(100%,430px);min-height:260px;margin:auto;padding:18px;background:#fff;border:2px solid #222;color:#111;overflow:hidden}
.label-head{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:1px solid #555;background:#fff!important;color:#111!important}
.label-head img{width:55px;height:55px;flex:none;object-fit:contain}.label-head strong{font-size:15px;line-height:1.15;overflow-wrap:anywhere}
.label-order{font-size:19px;font-weight:800;letter-spacing:.02em;margin:13px 0}.label-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.label-field{min-width:0;overflow-wrap:anywhere}.label-field.wide{grid-column:1/-1}.label-field small{display:block;font-size:10px;text-transform:uppercase;color:#555;margin-bottom:2px}.label-field b{font-size:12px}
.label-actions{display:flex;justify-content:center;gap:10px;margin:18px auto}.label-actions button{border:0;border-radius:7px;background:#222;color:#fff;padding:10px 15px;font:700 12px Arial,Helvetica,sans-serif;cursor:pointer}
@media(max-width:450px){.label-paper{padding:14px}.label-head strong{font-size:13px}.label-order{font-size:16px}}
@media print{@page{size:A4;margin:10mm}.label-view{padding:0;background:#fff!important;min-height:0}.label-paper{margin:0;width:100mm;min-height:70mm;max-width:none;break-inside:avoid}.label-actions,#toast{display:none!important}}

.settings-screen{max-width:1160px;margin:auto;font-size:14px}.settings-breadcrumb{font-size:12px;color:var(--muted);margin-bottom:5px}.settings-breadcrumb b{color:var(--accent)}
.settings-screen h1{font-size:22px;margin:0 0 3px}.settings-subtitle{font-size:13px;color:var(--muted);margin:0 0 18px}
.settings-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}.settings-tabs button{border-radius:10px;background:#1b251d;padding:9px 14px;font-size:13px;font-weight:600}.settings-tabs button.active{background:var(--accent);border-color:var(--accent);color:#09110b}.settings-tabs button:disabled{opacity:.45}.settings-tabs button[aria-current=page]{background:var(--accent);color:#09110b}
.settings-info{font-size:12px;color:var(--muted);margin:5px 0 16px}.settings-layout{display:grid;gap:0}.settings-section{border:1px solid var(--settings-color,#75c935);border-radius:12px;background:#111a14;overflow:hidden}.settings-section[open]{background:#17211b}.settings-section>summary{display:flex;align-items:center;gap:9px;padding:12px 15px;color:#f6f8f5;font-weight:600;cursor:pointer;list-style:none}.settings-section>summary::-webkit-details-marker{display:none}.settings-section>summary:after{content:'⌄';margin-left:auto;color:var(--settings-color,#75c935)}.settings-section[open]>summary:after{content:'⌃'}
.settings-section .settings-content{padding:3px 15px 16px}.settings-section .card{border:0;background:transparent;padding:0;margin:0;box-shadow:none}.settings-section .card>h2:first-child{display:none}.settings-section label{font-size:12px}.settings-section textarea{min-height:82px}.settings-section .settings-help{color:var(--muted);font-size:12px;margin:2px 0 15px}.settings-section .settings-content>p:first-child{margin-top:0}
.settings-panel{display:none}.settings-panel.active{display:block}.settings-panel>.card{margin:0}.settings-panel .workshop-logo{max-width:160px;max-height:160px;object-fit:contain;margin:14px 0}.settings-section .workshop-logo{max-width:150px}
.settings-pending{border:1px dashed var(--line);border-radius:10px;padding:14px;margin:9px 0;color:var(--muted);font-size:13px}.settings-pending b{color:#f4f7f2}.settings-screen .settings-panel-title{font-size:16px;margin:7px 0 13px}
@media(max-width:760px){.settings-tabs{gap:6px}.settings-tabs button{font-size:12px;padding:8px 10px}.settings-section>summary{font-size:13px}}
@media print{.settings-screen{display:none!important}}

.intake-print-view{min-height:100vh;background:#e8e8e8;color:#111;padding:18px;font:11px Arial,Helvetica,sans-serif}
.intake-print-actions{max-width:190mm;margin:0 auto 12px;display:flex;gap:8px}
.intake-print-page{width:190mm;min-height:269mm;margin:auto;background:#fff;padding:0;box-shadow:0 8px 30px #0003}
.intake-copy{height:132mm;padding:8mm 2mm 3mm;position:relative;break-inside:avoid;overflow:hidden}
.intake-copy-label{text-align:center;color:#999;letter-spacing:2px;font-weight:700;font-size:10px;margin:0 0 7mm}
.intake-head{display:flex;justify-content:space-between;gap:12mm;align-items:flex-start;border-bottom:2px solid #111;padding-bottom:5mm}
.intake-brand{display:flex;gap:2mm;align-items:center;min-width:0}.intake-brand img{width:12mm;height:12mm;object-fit:contain;flex:none}.intake-brand strong{display:block;font-size:17px;line-height:1.05;text-transform:uppercase}.intake-brand small{display:block;color:#444;font-size:9px;line-height:1.35;margin-top:2px}
.intake-number{text-align:right;white-space:nowrap}.intake-number small{display:block;font-size:9px}.intake-number strong{display:block;font-size:18px;margin:2px 0}.intake-number span{display:block;color:#444;font-size:9px}
.intake-client{border-bottom:1px solid #ddd;padding:2mm 0;font-size:10px}.intake-client strong{font-size:11px}
.intake-columns{display:grid;grid-template-columns:1fr 1fr;gap:5mm;margin-top:3mm}.intake-columns h3{font-size:10px;border-bottom:1px solid #aaa;margin:0 0 2mm;padding-bottom:1mm}.intake-fact{display:grid;grid-template-columns:23mm 1fr;gap:2mm;margin:1mm 0}.intake-fact span{color:#555}.intake-box{min-height:9mm;border:1px solid #ddd;border-radius:3px;padding:2mm;margin:0 0 3mm;white-space:pre-wrap;overflow-wrap:anywhere}.intake-fault{min-height:13mm}.intake-warning{border:1px solid #e6ba70;border-radius:3px;color:#804500;padding:2mm;font-size:8px;line-height:1.35}
.intake-signatures{position:absolute;left:2mm;right:2mm;bottom:3mm;display:grid;grid-template-columns:1fr 1fr;gap:10mm;align-items:end}.intake-signature{text-align:center;border-top:1px solid #111;padding-top:2mm;position:relative;font-size:9px;color:#444}.intake-signature img{position:absolute;bottom:7mm;left:50%;transform:translateX(-50%);max-width:42mm;max-height:14mm;object-fit:contain}.intake-signature small{display:block;font-size:8px;color:#666;margin-top:1mm}
.intake-cut{height:5mm;border-top:1px dashed #aaa;margin:0 0 0}
@media print{@page{size:A4;margin:10mm}.intake-print-view{min-height:0;background:#fff!important;padding:0;color:#111!important}.intake-print-page{width:190mm;min-height:0;margin:0;box-shadow:none}.intake-print-actions,#toast{display:none!important}.intake-copy{height:132mm}.intake-cut{height:5mm}html,body{background:#fff!important}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.softz-credit{text-align:center;padding:16px;color:var(--muted);font-size:11px}@media print{.softz-credit{font-size:8px;padding:3px}}
.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dashboard-metrics .metric{position:relative;overflow:hidden;text-align:left;padding:22px;border-radius:17px;border:1px solid #344736;background:linear-gradient(135deg,#203018,#111b15);box-shadow:0 4px 14px #0002;transition:transform .15s,border-color .15s}.dashboard-metrics .metric:hover{transform:translateY(-2px);border-color:var(--accent)}.dashboard-metrics .metric strong{font-size:36px;line-height:1.1;margin:0 0 12px;color:#f4f7f2}.metric-icon{position:absolute;right:18px;top:20px;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#71e00020;color:var(--accent);font-size:24px}.dashboard-metrics [data-route=listas]{background:linear-gradient(135deg,#203c15,#111b15)}.dashboard-metrics [data-route=hoy] .metric-icon{color:#60c5ff;background:#60c5ff20}.dashboard-metrics [data-route=entregadas] .metric-icon{color:#eeb65e;background:#eeb65e20}.dashboard-tech{display:grid;grid-template-columns:36px minmax(80px,1fr) auto;align-items:center;gap:10px;text-align:left;padding:16px;min-width:200px;border-radius:14px;background:#121d16;border:1px solid #344736;flex:1}.dashboard-tech b{font-size:25px;color:var(--accent)}.dashboard-tech small{grid-column:2/4;color:var(--muted);font-size:11px}.tech-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#71e00020;color:var(--accent);font-size:22px}.dashboard-state{padding:12px;border:0;background:transparent}.state-chart-label{display:flex;justify-content:space-between;width:100%;gap:10px;margin-bottom:9px}.state-chart-track{display:block;width:100%;height:12px;border-radius:8px;background:#0a120d;overflow:hidden}.state-chart-bar{display:block;height:100%;min-width:3px;border-radius:8px;background:linear-gradient(90deg,#458b13,var(--accent))}.dashboard-state{flex-direction:column}.dashboard-state:hover{background:#213020}.dashboard-state:nth-of-type(3n+2) .state-chart-bar{background:linear-gradient(90deg,#286f9a,#60c5ff)}.dashboard-state:nth-of-type(3n+3) .state-chart-bar{background:linear-gradient(90deg,#a66c20,#efba62)}@media(max-width:1000px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.dashboard-metrics{gap:8px}.dashboard-metrics .metric{padding:14px}.metric-icon{right:10px;top:14px;width:28px;height:28px;font-size:18px}.dashboard-metrics .metric strong{font-size:28px}}
.shell aside nav button[data-nav]{display:flex;align-items:center;gap:10px}
.sidebar-icon{width:18px;height:18px;flex:none;color:var(--muted)}
.action-icon{width:1em;height:1em;vertical-align:-.15em;margin-inline-end:.4em;pointer-events:none}
#toast{display:grid;gap:8px;position:fixed;top:clamp(12px,3vh,32px);bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(720px,calc(100% - 24px));max-width:none;max-height:80dvh;overflow:auto;z-index:1000;background:none;border:0;padding:0;overscroll-behavior:contain}
#toast:empty{display:none}
.system-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;background:#18291d;color:#f4f7f2;border:1px solid #71e000;border-inline-start-width:6px;border-radius:12px;padding:14px 16px;box-shadow:0 6px 20px #0008;font-size:clamp(15px,1.1vw,23px);line-height:1.4;overflow-wrap:anywhere}
.system-notice[data-tone=error]{background:#321c1b;border-color:#ff8c80}
.system-notice p{margin:4px 0 0}
.system-notice button{padding:0;width:36px;height:36px;font-size:24px;line-height:1;border-color:currentColor}
@media print{#toast{display:none!important}}
.preload-empty{text-align:center;padding:12px 0}
.preload-dialog{width:min(640px,calc(100% - 24px));max-height:calc(100% - 24px);border:1px solid var(--line);border-radius:16px;background:var(--panel);color:inherit;padding:20px;overflow:auto}
.preload-dialog::backdrop{background:#0009}
.preload-dialog h2{margin-top:0}
.preload-dialog dl{overflow-wrap:anywhere}
.preload-dialog dt{color:var(--muted);margin-top:10px}
.preload-dialog dd{margin:2px 0 0}
.preload-signature{margin:16px 0}
.preload-photo-picker{min-width:0;margin:16px 0}
.preload-photo-picker .actions{margin:6px 0 12px}
.preload-photo-thumbs{display:flex;flex-wrap:wrap;gap:12px}
.preload-photo-thumb{position:relative;width:min(104px,25vw);aspect-ratio:1}
.preload-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:9px;border:1px solid var(--line)}
.preload-photo-thumb button{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #ffb4aa;border-radius:50%;background:#b52e22;color:#fff;font-size:20px;line-height:1}
.preload-photo-picker [role=status]:empty{display:none}
.preload-signature canvas.signature{display:block;margin:8px 0;height:160px;box-sizing:border-box}
.preload-share:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;margin-bottom:16px}
.preload-share img{max-width:100%;height:auto;border-radius:8px}
@media(max-width:540px){.preload-share:not([hidden]){grid-template-columns:minmax(0,1fr)}}
.shell aside nav button.active .sidebar-icon{color:var(--accent)}
.report-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}
.report-metrics .metric{display:grid;grid-template-rows:1fr auto;align-items:start;min-width:0;margin:0;padding:12px;gap:8px;font-size:13px;line-height:1.3;container-type:inline-size}
.report-metrics .metric strong{min-width:0;font-size:20px;font-size:clamp(13px,11cqi,22px);line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:760px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.report-metrics .metric{padding:8px}}
.dashboard-alerts button b{margin-inline-start:8px;font-variant-numeric:tabular-nums}
@media(max-width:760px){
  .orders-heading.dashboard-heading{display:grid;justify-content:stretch;justify-items:start;gap:6px;margin-bottom:10px}
  .dashboard-heading h1{margin-bottom:2px}
  .dashboard-heading button,.dashboard-alerts button{padding:6px 9px;min-height:36px;font-size:12px;border:1px solid #66816a;border-radius:8px}
  .dashboard-alerts{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  .dashboard-alerts button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;white-space:normal}
  .dashboard-alerts button.has-results{border-color:#71e000}
  .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .dashboard-metrics .metric{margin:0;padding:7px 9px;min-width:0;border-color:#66816a;border-radius:8px;font-size:11px;line-height:1.25;white-space:normal}
  .dashboard-metrics .metric strong{font-size:21px;margin:0 0 3px}
  .dashboard-metrics .metric small{display:none}
  .dashboard-metrics .metric-icon{width:22px;height:22px;top:6px;right:8px;font-size:15px;border-radius:6px}
  .dashboard-technicians{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .dashboard-tech{min-width:0;padding:6px 8px;min-height:36px;grid-template-columns:20px minmax(0,1fr) auto;gap:5px;border-color:#66816a;border-radius:8px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
  .dashboard-tech b{font-size:15px}
  .dashboard-tech small{display:none}
  .dashboard-tech .tech-avatar{width:20px;height:20px;font-size:14px}
  .dashboard-state{padding:6px 8px;min-height:36px;border:1px solid #66816a;border-radius:8px;font-size:12px}
  .dashboard-state .state-chart-label{margin-bottom:4px}
  .dashboard-state .state-chart-track{height:6px}
}

.order-detail .order-notes .order-note-card{--note-green:#00e978;padding:0;border:1px solid var(--note-green);border-radius:14px;overflow:hidden;background:#101810}
.order-detail .order-note-card .order-note-heading{display:flex;align-items:center;gap:.45rem;margin:0;padding:.72rem .9rem;background:#263a0c;border-bottom:1px solid #55882a;font-size:1rem;line-height:1.25}
.order-detail .order-note-heading svg{flex:none;color:#b4cea0}
.order-detail .order-note-content{display:grid;gap:.65rem;padding:.85rem;min-width:0}
.order-detail .order-note-card .note{margin:0;padding:.65rem .75rem;background:#151d15;border:1px solid #00e97855;border-radius:10px;min-width:0}
.order-detail .order-note-card .note p{margin:0;font-size:.93rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.order-detail .order-note-card .note small,.order-detail .order-note-empty{margin:0;font-size:.78rem;line-height:1.4}
.order-detail .order-note-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .65rem;margin-top:.3rem}
.order-detail .order-note-card .note-actions{margin:0}
.order-detail .order-note-card .note-actions button{padding:.3rem .45rem;font-size:.76rem;line-height:1.25;color:#8df7b5}
.order-detail .order-note-card .order-note-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.45rem;margin:0}
.order-detail .order-note-card .order-note-form textarea{width:100%;min-height:44px;resize:vertical;line-height:1.35;margin:0;padding:.6rem .65rem;font-size:.9rem;border:1px solid #00e97855;border-radius:10px;background:#151d15}
.order-detail .order-note-card .order-note-form button{width:44px;min-height:44px;padding:0;font-size:1.3rem;border:1px solid #00e97888;border-radius:10px;color:#d3ffe0}
@media(max-width:640px){.order-detail .order-note-content{padding:.65rem}.order-detail .order-note-card .note-actions button{min-height:38px}}
@media screen{
  :root{--softz-panel-outline:#00e978}
  .card,.settings-section,.preload-dialog,.dashboard-metrics .metric,.dashboard-tech,.dashboard-state{border-color:var(--softz-panel-outline)}
  .settings-section{--settings-color:var(--softz-panel-outline)}
  .card,.settings-section,.preload-dialog{font-size:.94rem;line-height:1.45}
  .card h2,.settings-section>summary,.preload-dialog h2{font-size:1rem;line-height:1.3}
  .card h3,.preload-dialog h3{font-size:.94rem;line-height:1.35}
}

.order-detail .order-tech textarea{min-height:0;padding:.48rem .6rem;line-height:1.4}
.order-detail .order-tech label{margin:.45rem 0}
.order-detail .order-tech .tech-help{margin:.2rem 0 .55rem;font-size:.75rem;color:var(--muted)}
.order-detail .order-commission{padding:0;overflow:hidden}
.order-detail .commission-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.35rem 1rem;padding:.7rem .9rem;background:#263a0c;border-bottom:1px solid #55882a}
.order-detail .commission-heading h2,.order-detail .commission-heading p{margin:0}
.order-detail .commission-heading p,.order-detail .commission-help{font-size:.78rem}
.order-detail .commission-heading .commission-rate,.order-detail .commission-tile strong{color:#a4e858}
.order-detail .commission-content{padding:.8rem .9rem}
.order-detail .commission-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.order-detail .commission-tile{min-width:0;background:#151d15;border:1px solid #00e97835;border-radius:10px;padding:.62rem .7rem;overflow-wrap:anywhere}
.order-detail .commission-tile span,.order-detail .commission-tile small{display:block;color:var(--muted);font-size:.78rem}
.order-detail .commission-tile b{display:block;font-variant-numeric:tabular-nums;font-size:1.02rem;margin:.12rem 0}
.order-detail .commission-tile--earned b{color:#71e4ef}
.order-detail .commission-form{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto;align-items:end;gap:.55rem;margin-top:.75rem;padding-top:.65rem;border-top:1px solid var(--line)}
.order-detail .commission-form label{margin:0;min-width:0;font-size:.75rem;color:var(--muted)}
.order-detail .commission-form :is(input,select){min-height:42px;margin:.25rem 0 0;font-size:.9rem}
.order-detail .commission-form button{min-height:42px;font-size:.85rem;padding:.45rem .7rem}
.order-detail .commission-help{margin:.5rem 0 0;color:var(--muted)}
.order-detail .commission-history{margin-top:.65rem;font-size:.83rem}
@media(max-width:900px){.order-detail .commission-form{grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail .commission-form button{grid-column:1/-1;justify-self:start}}
@media(max-width:580px){.order-detail .commission-summary{grid-template-columns:1fr}.order-detail .commission-form .commission-note{grid-column:1/-1}}
.order-detail .checklist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.25rem;margin-bottom:.65rem}
.order-detail .check-row{display:flex;align-items:center;min-width:0;min-height:34px;gap:.55rem;color:#e7eee6;font-size:13px;line-height:1.35;text-transform:none;margin:0}
.order-detail .check-row input{width:auto;flex:none;margin:0;accent-color:var(--accent)}
.order-detail .check-row span{overflow-wrap:anywhere}
@media(max-width:680px){.order-detail .checklist-grid{grid-template-columns:minmax(0,1fr)}.order-detail .check-row{min-height:44px}}
@media screen and (min-width:761px){
  .shell>aside{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;overflow-y:auto}
}
@media screen and (max-width:760px){
  .shell>.mobile-bar{position:sticky;top:0;z-index:19}
}

@media screen{
  .shell>aside{scrollbar-width:thin;scrollbar-color:#26322b #0c1510;border-right-color:#00e97830}
  .shell>aside::-webkit-scrollbar{width:6px}
  .shell>aside::-webkit-scrollbar-track{background:#0c1510}
  .shell>aside::-webkit-scrollbar-thumb{background:#26322b;border-radius:8px}
}
@media screen{
.order-detail .order-heading h1{font-size:clamp(19px,1.65vw,25px);line-height:1.25;margin:.35rem 0 .45rem;font-weight:750;overflow-wrap:anywhere}
.order-detail .order-heading h1 span:first-child{font-size:.9em}
.order-detail .order-actions button{font-size:.78rem;padding:.32rem .55rem;min-height:32px;border-radius:8px;white-space:nowrap}
@media(max-width:760px){.order-detail .order-actions button{min-height:44px;white-space:normal}}
  :is(.card,.settings-section,.preload-dialog) :where(button:not([class]),button.primary){font-size:.83rem;line-height:1.3;padding:.4rem .62rem}
}
@media screen and (max-width:760px){
  :is(.card,.settings-section,.preload-dialog) :where(button.primary,button[type=submit]){min-height:44px}
}

.client-import-link{color:#baf873;font-weight:700;text-underline-offset:.2em}
.client-import .client-import-analyze{background:#a6ff00;color:#17220d;border-color:#a6ff00;font-weight:800}
.client-import textarea{min-height:9rem}
.client-import .tablewrap{overflow-x:auto}
.client-import td,.client-import th{vertical-align:top;overflow-wrap:anywhere}
.client-import td select{min-width:10rem}
.client-import .actions{flex-wrap:wrap}
.client-import [role=alert]:empty{display:none}
.client-import [hidden]{display:none!important}
.quality-button{background:linear-gradient(#ffe68e,#ecc044)!important;color:#241b09!important;border:1px solid #ffe99d!important;font-weight:800}
@media(hover:hover) and (prefers-reduced-motion:no-preference){button:not(:disabled){transition:transform .15s,box-shadow .15s;box-shadow:inset 0 1px #ffffff20,0 2px 0 #07130a}button:not(:disabled):hover{transform:translateY(-1px) scale(1.015)}button:not(:disabled):active{transform:translateY(1px)}}
.quality-dialog{width:min(820px,calc(100% - 20px));max-height:calc(100dvh - 20px);overflow:auto;background:#101c14;color:#eef5e9;border:1px solid #7b915d;border-radius:16px;padding:22px}.quality-dialog::backdrop{background:#031008ba}.quality-dialog label{display:block;margin:12px 0}.quality-dialog textarea{width:100%;min-height:65px}.quality-dialog a{color:#caff82}.quality-dialog svg{background:white;padding:10px;max-width:200px;width:100%;height:auto}.quality-report{white-space:pre-wrap;overflow-wrap:anywhere;font: .85rem/1.55 ui-monospace,monospace}.quality-entry{padding:12px 0;border-bottom:1px solid #39513e}.quality-dialog .actions{display:flex;flex-wrap:wrap;gap:8px}.quality-page{background:#101c14;color:#eef5e9;font:16px/1.5 system-ui,sans-serif;margin:0}.quality-page header,.quality-page main,.quality-page footer{width:min(760px,calc(100% - 32px));margin:auto;padding:20px 0}.quality-page header,.quality-page footer{border-bottom:1px solid #38513e}.quality-page footer{font-size:.8rem;color:#b6c9ba}.quality-page h1{font-size:clamp(1.7rem,5vw,2.7rem);line-height:1.1}.quality-page .eyebrow{font:700 .75rem ui-monospace,monospace;color:#caff82}.quality-page .panel{border:1px solid #476047;border-radius:12px;padding:15px;margin:10px 0}.quality-page label{display:block;margin:16px 0}.quality-page textarea{display:block;width:100%;box-sizing:border-box;padding:10px;min-height:70px;background:#172b1d;color:inherit;border:1px solid #6e8b64;border-radius:8px;font:inherit}.quality-page button{background:#caff82;color:#14200b;border:1px solid #91a75d;border-radius:8px;padding:11px 15px;margin:5px;font:700 1rem system-ui;cursor:pointer;min-height:44px}.quality-page button:disabled{opacity:.5;cursor:wait}.quality-page a{color:#d8ff9c}.quality-page video{max-width:100%;max-height:230px}.quality-page .actions{display:flex;gap:5px;flex-wrap:wrap}.quality-page .touch-area{height:220px;border:2px dashed #8ba879;touch-action:none;border-radius:12px;padding:15px;background:repeating-linear-gradient(0deg,transparent,transparent 49px,#456044 50px),repeating-linear-gradient(90deg,transparent,transparent 59px,#456044 60px)}.quality-pattern{position:fixed;inset:0;z-index:999999}.quality-pattern[hidden]{display:none}.quality-page :focus-visible{outline:3px solid #ffdf64;outline-offset:3px}
