:root{--ink:#19333d;--muted:#586d76;--primary:#176858;--bg:#f3f6f7;--line:#cbd7dc;--paper:#fff;--pale:#e5f2ed;--danger:#a12727}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 'Segoe UI','Microsoft YaHei',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;padding:9px 17px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink)}button:hover{background:#eaf0f2}button.primary{background:var(--primary);color:white;border-color:var(--primary)}button.primary:hover{background:#115345}button:disabled{opacity:.55;cursor:wait}button.danger{color:var(--danger)}:focus-visible{outline:3px solid #bc761c;outline-offset:3px}aside{width:224px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:700}.brandmark{display:grid;place-items:center;background:var(--primary);color:white;width:42px;height:45px;border-radius:6px}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:400}nav{display:grid;gap:9px;margin-top:44px}nav button{text-align:left;border:0;background:transparent;padding-left:20px}nav button.active{background:var(--pale);color:var(--primary);font-weight:700}.local{margin-top:auto;font-size:13px;color:var(--primary)}.local span{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--primary)}.local p{color:var(--muted);font-size:12px}main{margin-left:224px;padding:40px 44px;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}header p{margin:0;color:var(--muted);font-size:13px}h1{font-size:30px;margin:5px 0 0;letter-spacing:-1px}h2{font-size:20px;margin:0 0 14px}h3{font-size:16px;margin:0 0 12px}.badge{font-size:12px;border:1px solid #b5d8c9;background:var(--pale);color:var(--primary);border-radius:30px;padding:5px 13px;white-space:nowrap}.toolbar,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar{margin-bottom:20px}.toolbar input{flex:1;min-width:200px}.toolbar select{width:auto}.summary{display:flex;border-block:1px solid var(--line);margin-bottom:28px;padding:20px 0;gap:48px}.summary strong{font-size:27px;display:block;line-height:1.2}.summary span{color:var(--muted);font-size:13px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:25px;margin-bottom:20px}.tablewrap{overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;color:var(--muted);font-weight:600;background:#f8fafb}th,td{padding:15px 16px;border-bottom:1px solid #e1e8eb}tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted)}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}td .actions{flex-wrap:nowrap}td button{min-height:36px;padding:5px 10px;white-space:nowrap}.empty{text-align:center;padding:64px 20px;background:white;border:1px dashed var(--line);border-radius:8px}.empty h2{margin:0}.empty p{color:var(--muted);margin-bottom:24px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}label{display:block;font-size:13px;color:var(--muted)}input,select,textarea{display:block;width:100%;border:1px solid #9caeb6;border-radius:5px;padding:10px 12px;background:#fff;color:var(--ink);min-height:44px;margin-top:5px}textarea{min-height:94px;resize:vertical}.wide{grid-column:1/-1}.help{font-size:13px;color:var(--muted)}.warn{padding:13px 16px;background:#fff4d9;border-left:3px solid #b67b14;font-size:13px;margin-bottom:20px}.editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.items{min-width:920px}.items input{min-width:65px;padding:8px;font-size:13px}.items td,.items th{padding:8px}.items .description{min-width:180px}.total{display:flex;justify-content:flex-end;gap:25px;padding:18px;font-size:20px;font-weight:700}.totalsmall{text-align:right;padding:0 18px 15px;color:var(--muted);font-size:13px}.footerbar{padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.path{word-break:break-all;font-size:13px}.file{max-width:450px}dialog{border:1px solid var(--line);border-radius:10px;padding:30px;width:min(620px,94vw);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#19333d70}#notice{position:fixed;bottom:24px;right:28px;max-width:min(480px,90vw);background:var(--ink);color:white;border-radius:7px;padding:14px 20px;display:none;z-index:20}#notice.error{background:var(--danger)}#printArea{display:none}.skip{position:fixed;top:-60px;background:white;padding:12px;z-index:30}.skip:focus{top:0}.doc-title{font-size:26px;border-bottom:3px solid var(--primary);padding-bottom:15px}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.docpreview{max-width:1000px;margin:auto;background:white;padding:36px;border:1px solid var(--line)}.docpreview table{font-size:13px}.docpreview td{overflow-wrap:anywhere}.docpreview .grid{margin:22px 0}.docpreview h2{margin:0}.docmeta{display:flex;justify-content:space-between;gap:20px;margin:20px 0}.docpreview .bank{margin-top:30px}.backuplist{max-height:360px;overflow:auto}@media(max-width:900px){aside{position:static;width:auto;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}nav{display:flex;flex-wrap:wrap;margin:18px 0 0;gap:4px}nav button{padding:8px 12px}.local{display:none}main{margin:0;padding:24px 20px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.summary{gap:30px}}@media(max-width:540px){header{align-items:flex-start}header .badge{display:none}.grid,.grid.three{grid-template-columns:1fr}.panel{padding:18px}.summary{gap:20px}.summary strong{font-size:24px}.editor-head{align-items:flex-start;flex-direction:column}.docpreview{padding:18px}.toolbar>*{width:100%}.docmeta{flex-direction:column}}@media print{@page{size:A4;margin:14mm}body{background:#fff;font-size:11px}body>*{display:none!important}body>#printArea{display:block!important}.docpreview{border:0;padding:0;max-width:none}.docpreview table{font-size:10px;table-layout:fixed}.docpreview th,.docpreview td{padding:7px 5px;word-break:break-word}thead{display:table-header-group}tr{break-inside:avoid}h2,h3{break-after:avoid}.docpreview .grid{grid-template-columns:1fr 1fr}.docmeta{flex-direction:row}.doc-title{font-size:21px}}
.tablewrap>table:not(.items){min-width:680px}.tablewrap>table th{white-space:nowrap}.tablewrap>table td:first-child{min-width:165px}
input[type=checkbox]{display:inline-block;width:18px;min-height:18px;height:18px;margin:0 10px 0 0;vertical-align:middle}
:root{--primary:#2868b2;--pale:#edf5ff;--ink:#26394a;--muted:#667786;--line:#dde4eb;--bg:#f5f7fa}aside{width:232px;padding:22px 14px;overflow-y:auto}main{margin-left:232px}aside nav{display:block;margin-top:26px}.navgroup{padding:14px 0;border-bottom:1px solid #e8edf2}.navgroup:first-child{padding-top:0}.navgroup h2{font-size:12px;color:#778694;letter-spacing:1px;margin:0 10px 12px;font-weight:600}.navgroup button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:5px;padding:10px 12px;text-align:left;background:transparent;margin:3px 0;min-height:44px}.navgroup button:hover{background:#f2f6fb}.navgroup button.active{background:#eaf3ff;color:#245b96;font-weight:600}.navgroup svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.local{padding:22px 10px 0;margin-top:10px}.brand{font-size:18px}.brandmark{background:#2868b2}.panel[id]{scroll-margin-top:24px}.items select{min-width:88px}#vehicleCountry[hidden],#vehicleChassis[hidden]{display:none}@media(max-width:900px){aside{width:195px;position:fixed;inset:0 auto 0 0;padding:20px 10px;display:flex}main{margin-left:195px;padding:26px 20px}aside nav{display:block}.brand{font-size:16px}.brandmark{width:34px}.navgroup button{padding:9px 10px;gap:8px}.local{display:block}}@media(max-width:600px){aside{position:static;width:auto;max-height:290px}main{margin-left:0}.navgroup{display:flex;flex-wrap:wrap;gap:4px;padding:8px 0}.navgroup h2{width:100%;margin:0 10px 4px}.navgroup button{width:auto;font-size:13px;min-height:40px;padding:6px 10px}.navgroup svg{width:17px;height:17px}.local{display:none}aside nav{margin-top:12px}.brand small{display:none}}

.product-thumb{width:70px;height:55px;object-fit:contain;float:left;margin:0 12px 5px 0;border:1px solid var(--line);border-radius:4px;background:white}.product-image-preview{display:block;max-width:100%;width:220px;height:160px;object-fit:contain;margin:12px 0;border:1px solid var(--line);border-radius:5px}

.country-picker{min-width:0}.country-search{font-size:13px}.country-results:not(:empty){border:1px solid var(--line);border-radius:5px;background:white;margin:6px 0;max-height:245px;overflow-y:auto}.country-results button{display:block;width:100%;border:0;border-radius:0;text-align:left;padding:8px 12px}.country-results button+button{border-top:1px solid var(--line)}.country-results small{display:block;color:var(--muted);font-size:12px}.country-results p{padding:0 12px}.country-picker>label+label{margin-top:8px}
[aria-invalid=true]{border:2px solid #b42318!important;background:#fff8f7!important}.field-error{display:block;color:#a5231b;font-size:12px;line-height:1.5;margin-top:5px;white-space:normal}.validation-summary{padding:16px;margin:0 0 20px;border:1px solid #e4a9a2;border-left:4px solid #b42318;background:#fff5f3;border-radius:5px;color:#84241c}.validation-summary strong{display:block;margin-bottom:6px}.validation-link{display:block;background:transparent;border:0;color:#84241c;text-decoration:underline;text-align:left;padding:5px 0;min-height:32px}.validation-link:disabled{opacity:1;cursor:default;text-decoration:none}.items .field-error{min-width:110px}
/* A4 quotation letterhead — isolated from the editor and other document types. */
.quote-viewport{overflow-x:auto;padding:4px 0 18px}.docpreview.quotation{--qnavy:#173b5c;--qblue:#2a638e;--qline:#d9e2e9;--qmuted:#617384;min-width:700px;max-width:850px;padding:42px 44px 26px;border:1px solid #dbe3e9;border-radius:0;color:#24394b;background:#fff;font:13px/1.6 'Segoe UI','Microsoft YaHei',Arial,sans-serif}.quote-letterhead{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;padding-bottom:25px;border-bottom:3px solid var(--qnavy)}.quote-company{max-width:64%}.quote-company-name{font-size:22px;font-weight:750;line-height:1.25;color:var(--qnavy);overflow-wrap:anywhere}.quote-company p{margin:8px 0 0;font-size:11px;color:var(--qmuted)}.quote-document{text-align:right;flex-shrink:0}.quote-document h1{font-size:33px;line-height:1.2;font-weight:350;letter-spacing:-1px;color:var(--qnavy);margin:0}.quote-document>span{display:block;font-size:11px;color:var(--qmuted);margin-top:8px}.quote-reference{display:grid;grid-template-columns:1.6fr 1fr .6fr;gap:20px;background:#f1f5f8;padding:15px 16px;margin:0 0 27px}.quote-reference span,.quote-closing span{display:block;font-size:10px;color:var(--qmuted);margin-bottom:3px}.quote-reference strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.quote-parties{display:grid;grid-template-columns:1.55fr 1fr;gap:36px;margin-bottom:29px}.quotation .quote-parties h2,.quotation .quote-section h2{font-size:11px;color:var(--qblue);font-weight:650;margin:0 0 9px;letter-spacing:.2px}.quotation .quote-parties h3{font-size:16px;color:var(--qnavy);font-weight:650;margin:0 0 6px;overflow-wrap:anywhere}.quote-parties p{margin:4px 0;font-size:12px}.quote-market{border-left:1px solid var(--qline);padding-left:23px}.quote-market>span{color:var(--qmuted);font-size:11px}.quotation .quote-table{width:100%;table-layout:fixed;font-size:11px;border-collapse:collapse}.qcol-index{width:5%}.qcol-description{width:40%}.qcol-qty{width:8%}.qcol-unit{width:9%}.qcol-price{width:18%}.qcol-amount{width:20%}.quotation .quote-table th{background:var(--qnavy);color:white;padding:11px 7px;font-size:10px;font-weight:500;border:0}.quotation .quote-table td{padding:16px 7px;border-bottom:1px solid var(--qline);vertical-align:top;color:#263c4d;word-break:normal;overflow-wrap:anywhere}.quotation .quote-table tbody tr:nth-child(even){background:#f7f9fb}.quotation .quote-table .qnumeric{text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.qindex{color:var(--qmuted)!important;font-size:10px}.qproduct{display:block;font-size:12px;line-height:1.45;color:var(--qnavy);font-weight:650}.qspec{margin-top:6px;font-size:11px;color:#516678;line-height:1.55}.quotation .quote-table .qsku{font-size:10px;color:var(--qmuted);margin-top:9px;display:block}.qline-amount{font-weight:650}.quote-total-area{display:flex;justify-content:flex-end;margin:0 0 29px}.quote-total{min-width:46%;padding:17px 16px 19px;border-bottom:3px solid var(--qnavy);background:#edf3f7;text-align:right}.quote-total>span{font-size:10px;color:var(--qmuted);display:block;margin-bottom:6px}.quote-total>div{display:flex;justify-content:flex-end;align-items:baseline;gap:10px}.quote-total small{color:var(--qblue);font-size:12px}.quote-total strong{font-size:27px;font-weight:650;color:var(--qnavy);line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.quote-section{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--qline)}.quote-section>.pre{font-size:11px;color:#3c5365;line-height:1.75}.quote-bank{padding:13px 16px;background:#f6f8fa;border:0}.quote-closing{display:flex;justify-content:space-between;gap:30px;padding-top:8px;margin-bottom:30px;break-inside:avoid}.quote-closing>div{max-width:56%}.quote-closing strong{font-size:11px;font-weight:600;overflow-wrap:anywhere}.quote-signature{width:180px}.quote-signature>div{border-bottom:1px solid #a9b9c6;margin-top:28px}.quote-footer{border-top:1px solid var(--qline);padding-top:10px;display:flex;justify-content:space-between;gap:20px;color:var(--qmuted);font-size:9px}.quote-footer span{overflow-wrap:anywhere}@media print{.quote-viewport{overflow:visible;padding:0}.docpreview.quotation{min-width:0;max-width:none;width:100%;padding:0;border:0;font-size:11px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.quotation .quote-company-name{font-size:20px}.quotation .quote-document h1{font-size:30px}.quotation .quote-table th{padding:9px 6px;font-size:9px}.quotation .quote-table td{padding:12px 6px;font-size:10px;word-break:normal}.quote-reference{margin-bottom:22px}.quote-letterhead{padding-bottom:20px}.quote-parties{margin-bottom:24px}.quotation .quote-table tr{break-inside:avoid}.quote-total-area{break-inside:avoid}.quote-section{break-inside:auto}.quote-section h2{break-after:avoid}.quote-footer{break-inside:avoid}.quote-total strong{font-size:25px}}

/* CORLIR / Jiangxi Tongda quotation identity */
.quotation .corlir-brand{display:flex;align-items:center;gap:5px;color:#173b5c;margin:0 0 9px;line-height:1}
.quotation .corlir-symbol{width:44px;height:44px;flex:none}
.quotation .corlir-brand span{font-family:Arial,"Segoe UI",sans-serif;font-size:36px;font-weight:900;font-style:italic;letter-spacing:1px}
.quotation .corlir-brand+.quote-company-name{font-size:17px;letter-spacing:3px;font-weight:600}
.quotation:has(.corlir-brand) .quote-letterhead{border-bottom-color:#173b5c;position:relative}
.quotation:has(.corlir-brand) .quote-letterhead:after{content:"";position:absolute;bottom:-3px;left:0;width:74px;height:3px;background:#cb1717}
@media print{.quotation .corlir-brand span{font-size:31px}.quotation .corlir-symbol{width:38px;height:38px}.quotation .corlir-brand+.quote-company-name{font-size:15px}}

.quotation .corlir-logo{display:block;width:245px;max-width:100%;height:auto;object-fit:contain}.quotation .corlir-brand{margin-bottom:8px}@media print{.quotation .corlir-logo{width:220px}}

.quotation .corlir-brand+.quote-company-name{letter-spacing:0;font-size:16px;line-height:1.45;max-width:440px}@media print{.quotation .corlir-brand+.quote-company-name{font-size:14px;max-width:105mm}}

#docList .document-products{min-width:190px;max-width:300px}#docList .document-product{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.55}#docList .document-product+.document-product{margin-top:7px;padding-top:7px;border-top:1px solid #e5ebef}

.quotation .qcol-index{width:4%}.quotation .qcol-name{width:18%}.quotation .qcol-description{width:46%}.quotation .qcol-qty{width:5%}.quotation .qcol-unit{width:5%}.quotation .qcol-price{width:11%}.quotation .qcol-amount{width:11%}.quotation .quote-table .qspec{margin-top:0}.quotation .quote-table th{padding-left:5px;padding-right:5px}

.quote-total>div.quote-charge{display:flex;justify-content:space-between;gap:24px;font-size:12px;padding-bottom:10px}.quote-charge span{color:#516678}.quote-total .quote-charge+span{border-top:1px solid #cbd7df;padding-top:12px}

/* Compact quotation totals: labels and amounts share each row. */
.quotation .quote-total-area{margin-bottom:18px}
.quotation .quote-total{min-width:46%;display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:5px 18px;padding:10px 14px;border-bottom-width:2px}
.quotation .quote-total>div.quote-charge{grid-column:1 / -1;padding:0;gap:20px;font-size:11px;line-height:1.6}
.quotation .quote-total>span{margin:0;font-size:11px;line-height:1.6;text-align:left}
.quotation .quote-total>div:not(.quote-charge){gap:7px;align-items:baseline;line-height:1.6}
.quotation .quote-total strong{font-size:16px;line-height:1.6}
.quotation .quote-total small{font-size:11px}
.quotation .quote-total .quote-charge+span{border:0;padding-top:5px}
.quotation .quote-total .quote-charge+span+div{padding-top:5px}
@media print{.quotation .quote-total{padding:8px 12px;gap:4px 16px}.quotation .quote-total strong{font-size:15px}.quotation .quote-total-area{margin-bottom:14px}}

.quotation .quote-parties{grid-template-columns:1fr 1fr;gap:25px}.quotation .quote-market{padding-left:20px}.quotation .quote-market h3{font-size:13px;line-height:1.5}.quotation .quote-market p{font-size:11px;line-height:1.6}

.quotation .quote-seller-bank{border-top:1px solid #e2e8ed;margin-top:8px;padding-top:7px;font-size:10px;line-height:1.55;color:#516678}.quotation .quote-section{padding-bottom:10px;margin-bottom:12px}.quotation .quote-section h2{margin-bottom:5px}

/* Improve quotation terms readability. */
.quotation .quote-section h2{font-size:14px;line-height:1.5;margin-bottom:7px}.quotation .quote-section>.pre{font-size:13px;line-height:1.7}@media print{.quotation .quote-section h2{font-size:13px}.quotation .quote-section>.pre{font-size:12px;line-height:1.6}}

.quotation .quote-document{max-width:240px;flex-shrink:1}.quotation .quote-document h1{overflow-wrap:normal;font-size:29px;line-height:1.18}@media print{.quotation .quote-document{max-width:60mm}.quotation .quote-document h1{font-size:25px}}
#content .toolbar label:has(#partyDeleted){display:flex;align-items:center;gap:8px;white-space:nowrap}#partyDeleted{width:16px;min-height:16px;margin:0}

.party-summary{padding:12px 16px;background:#f6f8fb;border-left:3px solid #b9cddd;margin-top:12px}.party-summary p{margin:5px 0;font-size:13px}.party-summary summary{cursor:pointer;font-size:13px;margin-top:8px}

.items textarea[data-key=name]{min-width:170px;min-height:66px}.items textarea[data-key=specification]{min-width:260px;min-height:88px}.items input[data-key=model]{min-width:150px}#productCodeSearch{min-width:230px}

#uiLanguage{display:flex;align-items:center;gap:8px;font-size:12px;margin-left:auto}#uiLanguage select{width:110px;min-height:36px}html[lang=en] aside{font-size:13px}html[lang=en] nav button{white-space:normal;text-align:left}@media print{#uiLanguage{display:none}}

#ttPaymentFields[hidden]{display:none}

/* Product photos are exclusive to quotation tables. */
.quotation .quote-with-images .qcol-index{width:4%}.quotation .quote-with-images .qcol-name{width:14%}.quotation .quote-with-images .qcol-image{width:12%}.quotation .quote-with-images .qcol-description{width:38%}.quotation .quote-with-images .qcol-qty{width:5%}.quotation .quote-with-images .qcol-unit{width:5%}.quotation .quote-with-images .qcol-price{width:11%}.quotation .quote-with-images .qcol-amount{width:11%}
.qproduct-image{display:block;width:100%;max-width:100px;height:76px;object-fit:contain;margin:0 auto;background:#fff}.qimage-cell{text-align:center;vertical-align:middle!important}.qimage-empty{color:#8998a5}.items .qimage-cell{min-width:92px}.quotation .quote-with-images td{padding-left:5px;padding-right:5px}
@media print{.quotation .qproduct-image{height:65px;max-width:85px}}

.port-fields{margin-bottom:8px}.port-fields .help{margin:0}.quote-ports{margin-bottom:8px}

/* Product library: aligned filters with distinct actions. */
#content .library-toolbar{display:flex;align-items:flex-end;gap:14px;padding:18px 20px;background:#fff;border:1px solid #e0e7ee;border-radius:12px;margin-bottom:18px}
#content .library-toolbar .library-intro{flex:0 0 100%;margin:0 0 2px;line-height:1.6}
#content .library-toolbar label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:190px;flex:1 1 190px;max-width:280px;font-size:12px;color:#667b8c}
#content .library-toolbar label[hidden]{display:none!important}
#content .library-toolbar select{width:100%;height:42px;min-height:42px;padding:8px 12px;margin:0;font-size:14px;background:#fff}
#content .library-toolbar button{height:42px;min-height:42px;padding:8px 16px;margin:0;white-space:nowrap;font-size:14px}
#content .library-toolbar .library-tabs{display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:3px;padding:3px;background:#eef3f8;border:1px solid #e2e9f0;border-radius:9px}
#content .library-toolbar .library-tabs button{height:36px;min-height:36px;border:0;background:transparent;border-radius:6px;color:#526a7d;padding:6px 20px}
#content .library-toolbar .library-tabs button.primary{background:#fff;color:#215f9d;box-shadow:0 1px 4px #173b5c18;font-weight:650}
#content .library-operations{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:auto}
@media(max-width:800px){#content .library-toolbar{padding:14px;gap:12px}#content .library-toolbar>*{width:auto}#content .library-toolbar .library-intro{width:100%}#content .library-toolbar label{max-width:none}#content .library-operations{flex-wrap:wrap;margin-left:0}#content .library-toolbar .library-tabs{width:auto}}

#content .library-toolbar .library-tabs{flex-wrap:wrap;max-width:100%;min-width:0;flex-shrink:1}

.product-nav{margin:4px 0 12px}.product-nav summary{cursor:pointer;padding:12px 14px;font-weight:700;min-height:44px}.product-nav button{padding-left:34px;min-height:44px}.product-nav summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* Primary complete-vehicle workspace and secondary component libraries. */
.assembly-library-links,.assembly-library-path,.assembly-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.assembly-library-links{padding:18px 22px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;margin-bottom:20px}
.assembly-library-links h2{font-size:15px;margin:0 0 5px}.assembly-library-links p{margin:0}
.assembly-library-path{width:100%;padding-bottom:12px;border-bottom:1px solid var(--line)}
.assembly-workspace h2{margin:0}.assembly-heading{margin-bottom:20px}.assembly-heading p{margin:6px 0 0}
.assembly-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
.assembly-component{padding:20px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe;min-width:0}
.assembly-component h3,.assembly-pricing h3{margin:0 0 16px}.assembly-component>label{display:block;margin:14px 0}
.assembly-component textarea{min-height:144px}.assembly-component .grid{margin:0;gap:12px}.assembly-component select{max-width:100%}
.assembly-pricing{padding:20px;background:#f0f6fc;border-radius:9px;margin-top:20px}
.assembly-amount{display:block;font-size:24px;margin:10px 0 16px}.assembly-extra{margin-top:18px}.assembly-extra summary{cursor:pointer;min-height:44px;padding:12px 0}
#assemblyError{padding:12px;border:1px solid var(--danger);color:var(--danger);border-radius:6px}#assemblyError[hidden]{display:none}
@media(max-width:850px){.assembly-columns{grid-template-columns:1fr}.assembly-library-links .actions{width:100%}.assembly-library-links .actions button{flex:1;white-space:normal}}

.chassis-purpose-editor{border:1px solid var(--line);border-radius:8px;padding:18px;min-width:0}.chassis-purpose-editor[hidden]{display:none}.chassis-purpose-option{display:flex;align-items:center;gap:8px;min-height:36px;font-size:13px}.chassis-purpose-option input{width:18px;min-width:18px;margin:0}.chassis-purpose-editor .grid>div{min-width:0}

.product-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:12px 0}
.product-photo-card{border:1px solid var(--line);border-radius:8px;padding:10px;min-width:0;background:#fff}
.product-photo-card>img{display:block;width:100%;height:155px;object-fit:contain}
.product-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.product-photo-actions button{min-height:44px;flex:1;padding:8px}
.product-photo-actions [data-photo-main]:disabled{color:#245e9c;background:#eaf2fb;opacity:1}
.product-gallery-open{float:left;position:relative;padding:0;margin:0 12px 5px 0;border:0;background:transparent}
.product-gallery-open .product-thumb{float:none;margin:0;display:block}
.product-gallery-open>span{position:absolute;right:2px;bottom:2px;background:#245e9c;color:white;border-radius:4px;padding:0 5px;font-size:12px}
.product-gallery-main{display:block;width:100%;height:min(52vh,450px);object-fit:contain;background:#f6f8fb;border-radius:8px}
.product-gallery-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.product-gallery-thumbs button{padding:3px;border:2px solid transparent}
.product-gallery-thumbs button[aria-pressed=true]{border-color:#2866b1}
.product-gallery-thumbs img{display:block;width:72px;height:58px;object-fit:contain}

.home-exchange{margin:0 0 20px;padding:18px 22px}
.home-exchange-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}
#homeExchangeForm{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
#homeExchangeForm label{display:flex;align-items:center;gap:12px;margin:0}
#homeExchangeForm input{width:150px;margin:0}
#homeExchangeForm>span{align-self:center}
.home-exchange p{margin:10px 0 0}

.assembly-source-photos{margin:12px 0 20px;padding:14px;border:1px solid #dbe5ef;border-radius:8px;background:#fff}
.assembly-source-photo-list{display:flex;gap:12px;overflow-x:auto;padding:10px 0}
.assembly-source-photo-list button{flex:0 0 180px;padding:4px;border:1px solid #dbe5ef;border-radius:6px;background:#fff}
.assembly-source-photo-list img{display:block;width:100%;height:120px;object-fit:contain}
.assembly-source-photos .help{margin:6px 0 0}

.export-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px;margin-top:24px}.export-card{border:1px solid #dbe5ef;border-radius:10px;overflow:hidden;background:#fff}.export-card>img,.export-no-photo{width:100%;height:180px;object-fit:contain;background:#f6f8fb}.export-no-photo{display:grid;place-items:center;color:#62748a}.export-card>div:not(.export-no-photo){padding:18px}.export-card h3{margin:8px 0;font-size:18px}.export-card .actions{margin-top:18px}.export-card p{overflow-wrap:anywhere}.export-card small,.export-code{color:#2866ad;font-weight:600;overflow-wrap:anywhere}.export-body-row{padding:16px;margin:16px 0;border:1px solid #dbe5ef;border-radius:8px}.export-body-row summary{cursor:pointer;min-height:32px;line-height:1.7}.export-body-row summary>span{display:block;color:#2866ad}.export-steps{display:flex;gap:24px;padding:20px;flex-wrap:wrap}.export-steps strong{color:#2866ad}.export-image-strip{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.export-image-strip img{width:180px;height:120px;object-fit:contain;border:1px solid #dbe5ef;border-radius:6px;background:white}.export-image-strip>div{display:grid;gap:8px}.export-adjustment{border:1px solid #dbe5ef;border-radius:8px;margin:16px 0;padding:18px;min-width:0}.export-check{display:flex;align-items:center;gap:10px;margin:14px 0}.export-check input[type=checkbox]{width:18px;height:18px}.export-quote-summary{margin-top:24px;padding:24px;background:#f3f7fc;border:1px solid #dbe5ef;border-radius:10px}.export-quote-summary details{margin:20px 0}#exportBaseForm input,#exportCustomForm input{max-width:100%}#baseError,#customError{white-space:pre-line}@media(max-width:700px){.export-steps{gap:12px}.export-adjustment,.export-quote-summary{padding:14px}.export-image-strip img{width:130px;height:90px}}

.part-combo{position:relative;min-width:200px;flex:1;max-width:320px}.part-combo-field{position:relative}.part-combo-field input{padding-right:42px}.part-combo .part-combo-clear{position:absolute;right:4px;top:4px;height:34px;min-height:34px;width:34px;padding:0;border:0;background:transparent}.part-combo-options{position:absolute;top:100%;left:0;right:0;z-index:50;background:white;border:1px solid #9eb4c7;border-radius:6px;box-shadow:0 6px 18px #17365722;max-height:270px;overflow:auto;padding:4px}.part-combo-options [role=option]{display:block;width:100%;text-align:left;border:0;border-radius:3px;padding:10px 12px;white-space:normal}.part-combo-options [role=status]{padding:12px;color:#61758a}


#exportProductPreview{width:min(960px,94vw);max-width:94vw;max-height:90vh;padding:24px;border:1px solid #d7e2ee;border-radius:14px;overflow:auto;color:#102c4d}#exportProductPreview::backdrop{background:rgba(15,35,55,.55)}#exportProductPreview .preview-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}#exportProductPreview h2{font-size:24px;overflow-wrap:anywhere}#exportProductPreview button{min-height:44px;min-width:60px}#exportProductPreview button:focus-visible{outline:3px solid #2563eb;outline-offset:3px}#exportProductPreview .preview-photo{width:100%;max-height:420px;object-fit:contain;background:#f4f6f8;border-radius:8px}#exportProductPreview .preview-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#exportProductPreview .preview-thumbs img{width:72px;height:48px;object-fit:contain}#exportProductPreview .preview-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}#exportProductPreview .preview-spec{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}#exportProductPreview section{border-top:1px solid #d7e2ee;padding-top:16px;margin-top:16px}#exportProductPreview .preview-meta{line-height:1.8;color:#526477}@media(max-width:650px){#exportProductPreview{padding:16px}#exportProductPreview .preview-columns{grid-template-columns:1fr;gap:0}#exportProductPreview h2{font-size:20px}}
#exportProductPreview .preview-heading>div{min-width:0}#exportProductPreview .preview-close{flex-shrink:0}#exportProductPreview .preview-columns>section{min-width:0}

.product-library-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}.library-product-card{display:flex;flex-direction:column;min-width:0}.library-card-photo{display:block;position:relative;width:100%;height:180px;padding:0;border:0;border-radius:0;background:#f6f8fb;flex-shrink:0}.library-card-photo img{display:block;width:100%;height:100%;object-fit:contain}.library-card-photo span{position:absolute;right:8px;bottom:8px;border-radius:4px;background:#fff;padding:3px 6px;color:#486079;font-size:12px}.library-product-card .library-card-content{display:flex;flex-direction:column;flex:1;min-width:0}.library-product-card h3{overflow-wrap:anywhere}.library-product-card p{margin:8px 0}.library-product-card .actions{margin-top:auto;padding-top:18px;flex-wrap:wrap;gap:8px}

/* Export catalog filters */
.grid.export-catalog-filters{grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(140px,1fr))}
@media(max-width:1100px){.grid.export-catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.grid.export-catalog-filters{grid-template-columns:minmax(0,1fr)}}

#realVehicleMedia{width:min(1100px,94vw);max-width:94vw;max-height:90vh;overflow:auto;border:1px solid #d8e2ef;border-radius:12px;padding:24px}
.real-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:18px;margin-top:20px}
.real-media-card{border:1px solid #d8e2ef;border-radius:10px;overflow:hidden;min-width:0}
.real-media-card img,.real-media-card video{width:100%;height:230px;object-fit:contain;background:#f5f7fa;display:block}
.real-media-card>div{padding:16px}.real-media-card strong{overflow-wrap:anywhere}
.real-media-download{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid #cbd9e9;border-radius:6px;text-decoration:none}
.real-media-upload{display:block;margin-top:18px}.real-media-upload input{display:block;margin-top:8px}
.export-card .actions{flex-wrap:wrap}

/* Compact printed documents without reducing specification text size. */
@media print{.quotation .quote-letterhead{padding-bottom:10px}.quotation .quote-reference{padding:8px 12px;margin-bottom:12px}.quotation .quote-parties{margin-bottom:14px}.quotation .quote-section{padding-bottom:8px;margin-bottom:8px}.quotation .quote-closing{padding-top:4px;margin-bottom:12px}.quotation .quote-footer{padding-top:6px}}
