/* Consistent outlines override legacy transparent-field styles. */
#salesFormPanel input:not([type=checkbox]):not([type=radio]):not([type=file]),#salesFormPanel select,#salesFormPanel textarea,#v2Orders input,#v2Orders select,#v2Booking input,#v2Booking select,#resPhone,#resCustomer,#resPrice,#resDeposit,#resQty{border:1.5px solid #a6b3c3!important;border-radius:10px!important;background:#fff!important;color:#17212f!important;padding:10px 12px!important;min-height:44px!important;width:100%;max-width:100%;box-sizing:border-box;box-shadow:none!important}
#salesFormPanel input:focus,#salesFormPanel select:focus,#salesFormPanel textarea:focus,#v2Orders input:focus{outline:3px solid #dc202724!important;border-color:#c91b29!important;outline-offset:1px}
#salesFormPanel input[type=checkbox]{appearance:auto!important;accent-color:#cb1c2a;width:20px!important;height:20px!important;min-height:20px!important}
#salesFormPanel .v2-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#salesFormPanel .v2-grid>*{min-width:0}#salesFormPanel .v2-panel{padding:18px;margin:16px 0}#salesFormPanel .studio-order-section{padding:16px 0}#minimalDelivery{padding:18px 0;border-top:1px solid #e2e7ee}#minimalDelivery h3{margin:0 0 14px}.minimal-advanced{margin-top:12px;border-top:1px solid #e2e7ee;padding-top:12px}.minimal-advanced summary,.studio-address summary{cursor:pointer;color:#526174;font-size:13px;padding:7px 0}.minimal-advanced>.v2-grid{margin-top:12px}#salesFormPanel label{display:block;margin:0 0 7px;font-size:13px;color:#4e5c70;font-weight:600}#salesFormPanel label:has(input){display:flex}#v2ProfitPanel{display:none!important}
#v2Orders{border:0;margin:0;padding:0}#v2Orders>.v2-grid:first-of-type{grid-template-columns:repeat(3,minmax(0,1fr))}#v2OrderTotals{grid-template-columns:repeat(2,minmax(0,1fr))}#v2OrderTable{max-height:none!important;overflow:auto!important;border:1px solid #e1e6ed;border-radius:12px}#v2OrderTable .minimal-orders{width:100%;table-layout:fixed;min-width:680px;border-collapse:collapse}#v2OrderTable .minimal-orders td,#v2OrderTable .minimal-orders th{min-width:0!important;width:auto;white-space:normal;vertical-align:middle;padding:14px!important;height:auto!important;line-height:1.5;border-bottom:1px solid #edf0f4}#v2OrderTable .minimal-orders td:last-child{display:table-cell!important;min-width:0!important}#v2OrderTable .minimal-orders th:first-child{width:24%}#v2OrderTable .minimal-orders th:nth-child(2){width:25%}#v2OrderTable .minimal-orders th:nth-child(3){width:22%}#v2OrderTable .minimal-orders th:nth-child(4){width:17%}#v2OrderTable small{display:block;color:#637084;font-size:12px;margin-top:4px}#v2OrderTable button{padding:8px 10px;font-size:12px}#v2OrderTable .badge{white-space:normal}#reservationBody .badge.ok{background:#e4f5ec;color:#176841;border:1px solid #b7dec9}#reservationBody .badge.bad{background:#fde9e8;color:#a82025}#reservationBody .badge.mid{background:#fff4d9;color:#8a5c10}
.minimal-document.invoice-sheet{width:148mm;min-height:200mm;padding:8mm;border:0;font-size:10pt;line-height:1.5;color:#182230}.minimal-doc-brand{display:flex!important;position:static!important;align-items:center;gap:4mm;border-bottom:2px solid #cf1e2d;padding-bottom:4mm;background:#fff!important;color:#182230!important}.minimal-doc-brand h1{font-size:19pt;margin:0!important;color:#17212f}.minimal-doc-brand p{font-size:8pt!important;line-height:1.4!important;margin:1mm 0!important}.minimal-shop-logo{width:17mm;flex-shrink:0}.minimal-shop-logo svg,.minimal-shop-logo img{width:17mm;max-height:18mm;object-fit:contain}.minimal-minelab{width:23mm;max-height:14mm;object-fit:contain;margin-left:auto}.minimal-dealer{color:#ba1728!important}.minimal-doc-title{display:flex;justify-content:space-between;align-items:center;gap:4mm;padding:4mm 0}.minimal-doc-title h2{font-size:15pt;color:#ba1728;margin:0}.minimal-doc-title>b{font-size:9pt}.minimal-doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:3mm;padding:3mm!important;border:0!important}.minimal-doc-grid small{color:#637084;font-size:8pt}.minimal-doc-grid b{display:block;font-size:10pt}.minimal-doc-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:9pt;margin:3mm 0}.minimal-doc-table th{background:#f9e9ec;color:#962034;text-align:left}.minimal-doc-table td,.minimal-doc-table th{padding:2mm;border:1px solid #e0e5eb;overflow-wrap:anywhere}.minimal-doc-table small{font-size:8pt}.minimal-payment{background:#f5f7fa;border-radius:3mm;grid-template-columns:1fr 1fr}.minimal-payment b{font-size:12pt}.minimal-document footer{margin-top:7mm;padding-top:4mm;border-top:1px solid #d7dee7;font-size:9pt}.minimal-document h3{font-size:10pt;margin:3mm 0}.minimal-terms{white-space:pre-line;font-size:9pt!important;line-height:1.6!important}.minimal-document section{border-bottom:0}.minimal-document p{font-size:9pt!important}.minimal-document .minimal-doc-brand{height:auto!important;min-height:0!important;box-shadow:none!important}.cloud-card:has(.minimal-document){max-width:760px!important}
@media(max-width:600px){#salesFormPanel .v2-grid,#v2Orders>.v2-grid:first-of-type{grid-template-columns:1fr}#salesFormPanel .v2-panel{padding:14px}#v2OrderTable .minimal-orders{min-width:0;table-layout:auto}#v2OrderTable .minimal-orders thead{display:none}#v2OrderTable .minimal-orders tr{display:grid;grid-template-columns:1fr 1fr;padding:12px;border-bottom:1px solid #e1e6ed;gap:8px}#v2OrderTable .minimal-orders td{padding:0!important;border:0}#v2OrderTable .minimal-orders td:nth-child(2){grid-column:1/-1;grid-row:2}#v2OrderTable .minimal-orders td:nth-child(3){grid-row:3}#v2OrderTable .minimal-orders td:nth-child(4){grid-column:2;grid-row:1;text-align:right}#v2OrderTable .minimal-orders td:last-child{align-self:end;text-align:right;grid-row:3;grid-column:2}}
@media print{.minimal-document{width:148mm!important;min-height:200mm!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.minimal-doc-brand,.minimal-doc-table tr,.minimal-doc-grid{break-inside:avoid}}
.minimal-document .minimal-doc-brand{flex-wrap:nowrap!important;gap:3mm!important;border-bottom:2px solid #cf1e2d!important;padding-bottom:4mm!important}.minimal-doc-brand>div:nth-child(2){flex:1;min-width:0}.minimal-doc-brand .minimal-minelab{flex:0 0 20mm;width:20mm!important;max-width:20mm!important}.minimal-doc-table th{background:#f9e9ec!important;color:#962034!important}.minimal-doc-table th,.minimal-doc-table td{height:auto!important;min-width:0!important;font-size:9pt!important}.minimal-document .minimal-doc-title h2{border:0!important;padding:0!important}#v2Orders>.v2-grid:first-of-type{grid-template-columns:minmax(240px,2fr) minmax(160px,1fr)}
@media(max-width:600px){#v2Orders>.v2-grid:first-of-type{grid-template-columns:1fr}.minimal-document .minimal-doc-brand{gap:2mm!important}}
/* A5 warranty and claim-policy pages stay readable with full shop address. */
.minimal-document.invoice-sheet{padding:6mm;line-height:1.35}.minimal-document .minimal-doc-brand{gap:2mm!important;padding-bottom:3mm!important}.minimal-doc-brand h1{font-size:16pt!important}.minimal-document .minimal-doc-brand p{font-size:8pt!important;line-height:1.3!important}.minimal-doc-title{padding:3mm 0}.minimal-doc-grid{gap:2mm;padding:2mm!important}.minimal-doc-grid small{font-size:8pt;line-height:1.3}.minimal-doc-grid b{font-size:9pt;line-height:1.4}.minimal-document .minimal-doc-table td,.minimal-document .minimal-doc-table th{padding:1.3mm!important;font-size:8.5pt!important;line-height:1.35!important}.minimal-document footer{margin-top:4mm;padding-top:3mm}.minimal-policy-page .minimal-terms{font-size:9pt!important;line-height:1.5!important}
.minimal-shop-logo{width:23mm;flex:0 0 23mm}.minimal-shop-logo img{width:23mm!important;max-height:18mm!important}.minimal-minelab{background:white}.minimal-service-mark{display:block;width:65mm!important;height:18mm!important;object-fit:contain;margin:2mm auto}
/* One-page A5 warranty: full coverage and claim text, no service-centre banner. */
.minimal-warranty.invoice-sheet{padding:5mm!important;line-height:1.25!important}.minimal-warranty .minimal-doc-brand{padding-bottom:2mm!important;gap:2mm!important}.minimal-warranty .minimal-doc-brand h1{font-size:14pt!important}.minimal-warranty .minimal-doc-brand p{font-size:7.5pt!important;line-height:1.2!important;margin:.5mm 0!important}.minimal-warranty .minimal-doc-brand b{font-size:9pt!important}.minimal-warranty .minimal-shop-logo,.minimal-warranty .minimal-shop-logo img{width:19mm!important;flex-basis:19mm!important;max-height:15mm!important}.minimal-warranty .minimal-minelab{width:18mm!important;max-width:18mm!important;flex-basis:18mm!important}.minimal-warranty .minimal-doc-title{display:block!important;text-align:center!important;padding:2mm 0!important}.minimal-warranty .minimal-doc-title h2{font-size:13pt!important;text-align:center!important;margin:0!important}.minimal-warranty .minimal-doc-title h2 span{display:block;font-size:9pt;letter-spacing:1px;margin-top:.5mm}.minimal-warranty .minimal-doc-title>b{display:block;font-size:7.5pt;margin-top:1mm}.minimal-warranty .minimal-doc-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1.5mm 2mm!important;padding:1.5mm 0!important}.minimal-warranty .minimal-doc-grid small{font-size:7.5pt!important;line-height:1.2!important}.minimal-warranty .minimal-doc-grid b{font-size:8.5pt!important;line-height:1.25!important;overflow-wrap:anywhere}.minimal-warranty .minimal-doc-table{margin:2mm 0!important}.minimal-warranty .minimal-doc-table th,.minimal-warranty .minimal-doc-table td{padding:1mm!important;font-size:8pt!important;line-height:1.2!important}.minimal-warranty section>h3{font-size:9pt!important;margin:2mm 0 1mm!important}.minimal-warranty .minimal-terms{font-size:8.5pt!important;line-height:1.35!important;margin:0!important}.minimal-warranty footer{margin-top:3mm!important;padding-top:2mm!important;font-size:8pt!important}.minimal-warranty footer p{font-size:7.5pt!important;margin-top:1mm!important}
.minimal-warranty .minimal-doc-title h2{white-space:nowrap!important}.minimal-warranty .minimal-doc-title h2 span{display:inline!important;font-size:inherit!important;letter-spacing:0!important;margin:0 0 0 2mm!important}#salesFormPanel .minimal-removed-field{display:none!important}
/* Printed documents must not inherit the dashboard's dark-theme text variables. */
.invoice-sheet.minimal-warranty{color:#111827!important;background:#fff!important;color-scheme:light}
.invoice-sheet.minimal-warranty .minimal-doc-table td{color:#111827!important;-webkit-text-fill-color:#111827!important;background:#fff!important;opacity:1!important;font-weight:500!important}
.invoice-sheet.minimal-warranty .minimal-doc-table th{color:#962034!important;-webkit-text-fill-color:#962034!important;background:#f9e9ec!important;opacity:1!important}
.invoice-sheet.minimal-warranty .minimal-doc-brand{background:#fff!important;background-image:none!important;opacity:1!important;filter:none!important;backdrop-filter:none!important}
.invoice-sheet.minimal-warranty .minimal-doc-brand::before,.invoice-sheet.minimal-warranty .minimal-doc-brand::after{display:none!important}
/* Leave room to sign, with two balanced columns lower on the same A5 sheet. */
.minimal-warranty footer.minimal-warranty-signatures{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18mm!important;margin-top:12mm!important;padding:0 9mm!important;border-top:0!important;text-align:center!important;break-inside:avoid}
.minimal-warranty-signatures .minimal-signature-space{height:12mm}
.minimal-warranty-signatures .minimal-signature-line{border-top:1px solid #64748b;padding-top:2mm;color:#111827!important;font-size:8.5pt}
.minimal-warranty footer.minimal-warranty-signatures p{margin-top:1mm!important;color:#111827!important}
/* Supplied shop signature with blue stamp overlay; no customer signature is prefilled. */
.minimal-warranty footer.minimal-warranty-signatures{margin-top:5mm!important}
.minimal-warranty-signatures .minimal-signature-space{height:23mm;position:relative}
.minimal-store-signature img{position:absolute;display:block;object-fit:contain;mix-blend-mode:multiply;max-width:none!important}
.minimal-store-signature .minimal-esign{width:58mm;height:29mm;left:50%;top:-4mm;transform:translateX(-50%);z-index:1}
.minimal-store-signature .minimal-store-stamp{width:23mm;height:23mm;right:-1mm;top:-2mm;z-index:2;opacity:.88}
.profit-clear-rows{margin:12px 0;max-width:700px}.profit-clear-rows>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #e1e6ed}.profit-clear-rows dt{font-size:13px}.profit-clear-rows dd{margin:0;font-weight:700;text-align:right;white-space:nowrap}.profit-clear-rows>div:last-child{font-size:16px;border-top:2px solid #a6b3c3;padding-top:12px}.profit-clear-rows>div:nth-child(3){background:#f3f6f9;color:#17212f;padding:10px}.profit-clear-rows>div:nth-child(3) dt{font-weight:700}
.history-profit-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border:1px solid #d7e1ec;border-radius:12px;background:#f7fafc;color:#17212f}.history-profit-pair small{display:block;color:#526174}.history-profit-pair strong{display:block;font-size:19px;margin-top:5px}.history-profit-note{grid-column:1/-1;font-size:12px}#historyMonthProfit h4{margin:16px 0 8px}#historyMonthProfit input{max-width:220px}#v2OrderTable .minimal-orders{min-width:1040px}#v2OrderTable .minimal-orders th:first-child{width:20%}#v2OrderTable .minimal-orders th:nth-child(2){width:18%}#v2OrderTable .minimal-orders th:nth-child(3){width:17%}#v2OrderTable .minimal-orders th:nth-child(4){width:13%}#v2OrderTable .minimal-orders th:nth-child(5),#v2OrderTable .minimal-orders th:nth-child(6){width:12%}#historyDetailProfit{padding:12px 0}
@media(max-width:600px){#v2OrderTable .minimal-orders{min-width:0}#v2OrderTable .minimal-orders td.history-profit-cell{grid-row:4!important;grid-column:auto!important;padding-top:8px!important;border-top:1px solid #e1e6ed!important}#v2OrderTable .history-profit-cell::before{content:attr(data-label);font-size:12px;color:#526174;display:block}#v2OrderTable .minimal-orders td:last-child{grid-row:5!important}.history-profit-pair strong{font-size:16px}}
.agent-month-summary{border-top:1px solid #d7e1ec;margin-top:20px;padding-top:16px}.agent-month-table{overflow:auto;border:1px solid #d7e1ec;border-radius:10px}.agent-month-table table{width:100%;min-width:780px;border-collapse:collapse}.agent-month-table th,.agent-month-table td{padding:12px;text-align:left;vertical-align:top;color:#17212f;background:#fff;border-bottom:1px solid #e1e6ed}.agent-month-table th,.agent-month-table tfoot td{background:#f1f5f9;font-weight:700}.agent-month-table td:nth-child(n+3):nth-child(-n+5){white-space:nowrap}.agent-month-table summary{cursor:pointer;color:#174c8a;white-space:nowrap}.agent-invoice-list{min-width:260px;max-height:300px;overflow:auto}.agent-invoice-list>div{border-bottom:1px solid #e1e6ed;padding:8px 0}.agent-invoice-list small{display:block;color:#526174;margin-top:5px;font-size:12px}
