.brand{display:flex;align-items:center;gap:9px}.brand-logo{width:44px;height:44px;object-fit:contain}.brand b{color:#A645D3}.brand small{color:#7b6b86}.header-btn{background:#A645D3}.header-btn-secondary{background:#f1e7f7;color:#6f2b8c}.phase-badge{color:#A645D3;background:#f5eafa;border-color:#e5c8f0}.eyebrow{color:#A645D3}.browse{background:#A645D3}.upload-symbol{background:#f5eafa;color:#A645D3}.drop-zone.drag{border-color:#A645D3;background:#fbf5fd}.file-icon{background:#A645D3}.control:hover,.control.active{background:#f5eafa;border-color:#d8a8e9;color:#A645D3}.control.accent{background:#A645D3;border-color:#A645D3}.quote-detail-total strong,.detail-box h3,.detail-status,.detail-final,.detail-actions .account-btn:not(.secondary-account){color:#A645D3}.detail-status{background:#f5eafa}.submit-quote{background:#A645D3!important}.account-btn{background:#A645D3}.account-show{color:#A645D3}.account-switch button{color:#A645D3}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f6f9;color:#14202b}.topbar{height:72px;background:#fff;border-bottom:1px solid #dce3ea;padding:0 5%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:42px;height:42px;border-radius:9px;background:#1165a7;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}.brand b{display:block;letter-spacing:1.5px;font-size:18px}.brand small{display:block;color:#1165a7;font-size:9px;font-weight:bold;letter-spacing:2px;margin-top:2px}
.header-account{display:flex;align-items:center;gap:8px}.header-account-state{display:flex;align-items:center;gap:7px}.header-greeting{font-size:12px;color:#526271;margin-right:4px}.header-btn{border:0;border-radius:7px;padding:9px 12px;background:#1165a7;color:#fff;font-weight:800;font-size:10px;cursor:pointer}.header-btn-secondary{background:#e8eef6;color:#17324d}.header-btn:hover{opacity:.9}@media(max-width:640px){.topbar{padding:0 3%}.header-greeting{display:none}.header-btn{padding:8px 9px;font-size:9px}.brand b{font-size:15px}.brand small{font-size:8px}}
.phase-badge{font-size:11px;font-weight:800;letter-spacing:1px;color:#1165a7;background:#e9f3fb;border:1px solid #c9e0f1;padding:9px 13px;border-radius:20px}.hero{text-align:center;padding:42px 15px 30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#1165a7}.hero h1{font-size:clamp(30px,4.5vw,48px);margin:9px 0 10px}.hero p{margin:0;color:#667585}.app{width:min(1250px,92%);margin:auto;display:grid;grid-template-columns:320px 1fr;gap:18px;padding-bottom:35px}.sidebar{display:flex;flex-direction:column;gap:15px}.card,.viewer-card{background:#fff;border:1px solid #dce3ea;border-radius:15px;box-shadow:0 4px 18px rgba(20,32,43,.04)}.card{padding:17px}.card-title{font-size:11px;font-weight:900;letter-spacing:1.3px;color:#526271;margin-bottom:14px}.drop-zone{border:2px dashed #b8c7d5;border-radius:12px;padding:22px 12px;text-align:center;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center}.drop-zone.drag{border-color:#1165a7;background:#eef7fd}.upload-symbol{width:48px;height:48px;border-radius:50%;background:#eaf3fb;color:#1165a7;display:grid;place-items:center;font-size:26px;font-weight:bold}.drop-zone h3{font-size:15px;margin:13px 0 4px}.drop-zone p{margin:0 0 9px;color:#84909b;font-size:12px}.browse{background:#1165a7;color:#fff;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:bold;cursor:pointer}.drop-zone input{display:none}.drop-zone small{display:block;color:#87939f;font-size:10px;margin-top:12px}.file-card{margin-top:12px;background:#f6f8fa;border-radius:9px;padding:10px;display:flex;align-items:center;gap:9px}.file-icon{width:36px;height:36px;background:#1165a7;color:#fff;border-radius:7px;display:grid;place-items:center;font-size:10px;font-weight:bold}.file-text{min-width:0;flex:1}.file-text b,.file-text span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-text b{font-size:12px}.file-text span{font-size:10px;color:#77838e;margin-top:3px}.file-card button{border:0;background:#feecec;color:#b42318;border-radius:6px;font-size:20px;width:30px;height:30px;cursor:pointer}.dimension-main{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.dimension-main div{background:#f4f7fa;border-radius:8px;padding:10px 5px;text-align:center}.dimension-main strong{display:block;font-size:15px}.dimension-main span{font-size:8px;color:#77838e;font-weight:bold;letter-spacing:.7px}.unit-note{font-size:9px;color:#77838e;text-align:center;margin:11px 0}.stats{border-top:1px solid #e7ebef;padding-top:10px;display:flex;justify-content:space-between;font-size:11px}.stats span{color:#77838e}.status-card{display:flex;align-items:center;gap:10px}.status-dot{width:10px;height:10px;border-radius:50%;background:#98a2ad}.status-card b{display:block;font-size:12px}.status-card small{display:block;color:#88939d;font-size:10px;margin-top:3px}.viewer-card{overflow:hidden;min-height:620px;display:flex;flex-direction:column}.viewer-top{padding:14px 16px;border-bottom:1px solid #e1e6eb;display:flex;justify-content:space-between;gap:15px;align-items:center}.viewer-top>b,.viewer-top div:first-child>b{display:block;font-size:11px;letter-spacing:1.2px}.viewer-top div:first-child>span{display:block;color:#87929d;font-size:10px;margin-top:4px}.controls{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.control{border:1px solid #d7dfe6;background:#fff;border-radius:6px;padding:7px 8px;font-size:9px;font-weight:800;color:#52606d;cursor:pointer}.control:hover,.control.active{background:#eaf3fb;border-color:#9fc5e2;color:#1165a7}.control.accent{background:#1165a7;color:#fff;border-color:#1165a7}#viewer{height:525px;min-height:400px;background:#edf1f4}.viewer-bottom{padding:9px 12px;border-top:1px solid #e1e6eb;color:#7c8791;font-size:10px;display:flex;justify-content:center;gap:25px}.hidden{display:none!important}footer{text-align:center;padding:24px;color:#7a8691;font-size:11px}@media(max-width:900px){.app{grid-template-columns:1fr}.viewer-top{align-items:flex-start;flex-direction:column}.controls{justify-content:flex-start}#viewer{height:450px}}@media(max-width:560px){.phase-badge{display:none}.viewer-bottom{gap:10px;flex-wrap:wrap}.dimension-main strong{font-size:12px}}
.quote-card label{display:block;font-size:10px;font-weight:700;color:#596775;margin:0 0 10px}.quote-card select{display:block;width:100%;margin-top:5px;border:1px solid #d7dfe6;background:#fff;border-radius:7px;padding:8px;font-size:11px;color:#263542}.quantity{display:flex;align-items:center;margin-top:5px}.quantity button{width:34px;height:32px;border:1px solid #d7dfe6;background:#f7f9fb;border-radius:7px;cursor:pointer;font-size:18px}.quantity strong{width:45px;text-align:center;font-size:13px}.estimate-row{display:flex;justify-content:space-between;border-bottom:1px solid #edf0f2;padding:8px 0;font-size:10px}.estimate-row span{color:#77838e}.estimate-row b{font-size:10px}.estimate-total{margin-top:11px;padding:12px;border-radius:9px;background:#eaf3fb;display:flex;align-items:center;justify-content:space-between;gap:8px}.estimate-total span{font-size:9px;font-weight:900;color:#1165a7}.estimate-total strong{font-size:18px;color:#1165a7}.estimate-note{display:block;color:#87929c;font-size:8px;line-height:1.45;margin-top:9px}

.file-list{margin-top:12px;display:flex;flex-direction:column;gap:7px;max-height:235px;overflow:auto}.file-row{display:flex;align-items:center;gap:8px;background:#f6f8fa;border:1px solid #e3e8ed;border-radius:8px;padding:8px}.file-row.active{border-color:#8fb9d8;background:#eef7fd}.file-row .file-icon{width:32px;height:32px;flex:0 0 32px}.file-row-main{min-width:0;flex:1;cursor:pointer}.file-row-main b,.file-row-main span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-row-main b{font-size:10px}.file-row-main span{font-size:9px;color:#7c8791;margin-top:3px}.file-row button{border:0;background:#feecec;color:#b42318;border-radius:5px;width:25px;height:25px;cursor:pointer}.files-summary{font-size:11px}.files-summary #filesCount{color:#1165a7;font-weight:800}

.file-row{align-items:flex-start}
.file-row-main{padding-top:2px}
.file-row-meta{display:flex;align-items:center;gap:6px;margin-top:6px;flex-wrap:wrap}
.file-weight,.file-price{font-size:9px;font-weight:800;color:#1165a7;background:#eaf3fb;padding:4px 6px;border-radius:5px}
.file-qty{display:flex;align-items:center;gap:3px;margin-left:auto}
.file-qty button{width:23px!important;height:23px!important;border:1px solid #d5dde4!important;background:#fff!important;color:#52606d!important;border-radius:5px!important;font-size:14px!important;line-height:1;padding:0}
.file-qty strong{min-width:20px;text-align:center;font-size:10px}
.file-remove{flex:0 0 25px!important}
.top-actions{display:flex;align-items:center;gap:10px}.admin-link{color:#1976b9;text-decoration:none;border:1px solid #cbd8e2;padding:8px 12px;border-radius:9px;font-weight:800;font-size:12px;background:#fff}.select-hint{margin:10px 0 8px;padding:9px 11px;border-radius:9px;background:#eef6fb;color:#245c7f;font-size:12px;font-weight:700}.file-row.active{border-color:#1976b9;box-shadow:0 0 0 1px #1976b9 inset}

.colour-select{margin-bottom:7px!important}.colour-swatches{display:flex;gap:7px;flex-wrap:wrap;padding:2px 0 4px}.colour-swatch{width:25px;height:25px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #cbd4db;cursor:pointer;position:relative;padding:0}.colour-swatch:hover{transform:scale(1.08)}.colour-swatch.selected{box-shadow:0 0 0 2px #1976b9}.colour-swatch.selected:after{content:'✓';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#fff;text-shadow:0 1px 2px #333}.colour-swatch[title="White"].selected:after,.colour-swatch[title="Yellow"].selected:after,.colour-swatch[title="Clear"].selected:after{color:#333;text-shadow:none}
.material-select-hidden{display:none!important}.material-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:6px;margin-bottom:10px}.material-card{border:1px solid #d7dfe6;background:#fff;border-radius:9px;padding:9px 7px;text-align:center;cursor:pointer;transition:.15s;min-width:0}.material-card:hover{border-color:#9fc5e2;background:#f7fbfe}.material-card.selected{border-color:#1976b9;background:#eaf3fb;box-shadow:0 0 0 1px #1976b9 inset}.material-card strong{display:block;font-size:11px;color:#263542;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-card span{display:block;font-size:9px;color:#77838e;margin-top:3px}.material-card.selected strong{color:#1165a7}.material-card .material-check{display:none;float:right;font-size:10px;color:#1976b9;font-weight:900}.material-card.selected .material-check{display:block}@media(max-width:560px){.material-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* V10 quotation request */
.request-card{margin-top:0}.request-intro{font-size:10px;color:#77838e;line-height:1.5;margin:0 0 12px}.request-card label{display:block;font-size:10px;font-weight:700;color:#596775;margin:0 0 9px}.request-input{display:block;width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #d7dfe6;background:#fff;border-radius:7px;padding:8px;font-size:11px;color:#263542;font-family:inherit}.request-textarea{resize:vertical;min-height:58px}.optional{font-weight:500;color:#9aa4ad}.submit-quote{width:100%;border:0;border-radius:8px;background:#1976b9;color:#fff;padding:11px 10px;font-size:10px;font-weight:900;letter-spacing:.2px;cursor:pointer}.submit-quote:hover{background:#125f99}.submit-quote:disabled{opacity:.6;cursor:default}.request-message{display:none;margin-top:9px;padding:9px 10px;border-radius:7px;font-size:10px;line-height:1.4}.request-message.success{display:block;background:#eaf7f0;color:#176b43;border:1px solid #b9e2ca}.request-message.error{display:block;background:#fff0ef;color:#9b2c25;border:1px solid #efc1bc}

/* V11 quotation PDF actions */
.quote-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:2px}.quote-actions .submit-quote{margin-top:0}.submit-quote.secondary{background:#fff;color:#1976b9;border:1px solid #9fc5e2}.submit-quote.secondary:hover{background:#eef6fb}@media(max-width:560px){.quote-actions{grid-template-columns:1fr}}
.quote-actions .submit-quote:disabled{opacity:.5;cursor:not-allowed}

.file-config{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.file-config label{font-size:11px;font-weight:700;color:#667085}
.file-config select{display:block;width:100%;margin-top:4px;padding:7px 8px;border:1px solid #d9e1eb;border-radius:6px;background:#fff;color:#172033}
.file-row.active .file-config select{border-color:#8db7df}
@media(max-width:650px){.file-config{grid-template-columns:1fr}}

.settings-note{margin:-4px 0 14px;color:#6b7280;font-size:12px;line-height:1.45}

.customer-account-box{margin:10px 0 16px;border:1px solid #dce5ef;border-radius:12px;background:#f8fbfe;padding:12px}.account-state{display:flex;justify-content:space-between;gap:14px;align-items:center}.account-state b{display:block;font-size:13px}.account-state small{display:block;color:#6d7788;font-size:12px;margin-top:3px}.account-actions{display:flex;gap:7px;flex-wrap:wrap}.account-btn{border:0;border-radius:7px;padding:9px 11px;background:#0d6efd;color:#fff;font-weight:800;font-size:11px;cursor:pointer}.secondary-account{background:#e8eef6;color:#17324d}.hidden{display:none!important}.account-modal{position:fixed;inset:0;background:rgba(8,20,35,.58);display:grid;place-items:center;padding:18px;z-index:9999}.account-modal-card{position:relative;width:min(460px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 70px rgba(0,0,0,.28)}.wide-account{width:min(720px,96vw)}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:27px;color:#687589;cursor:pointer}.account-pass{position:relative}.account-pass .request-input{padding-right:62px}.account-show{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#0d6efd;font-weight:800;cursor:pointer}.account-switch{text-align:center;margin-top:14px;font-size:12px;color:#687589}.account-switch button{border:0;background:none;color:#0d6efd;font-weight:800;cursor:pointer}.my-quote-item{border:1px solid #e0e7ef;border-radius:10px;padding:12px;margin:8px 0;display:flex;justify-content:space-between;gap:12px;align-items:center}.my-quote-item b{display:block}.my-quote-item small{color:#6d7788}.quote-status{font-weight:800;font-size:11px}.@media(max-width:640px){.account-state{align-items:flex-start;flex-direction:column}.my-quote-item{align-items:flex-start;flex-direction:column}}

.price-notice,.submission-notice{margin-top:10px;padding:10px 11px;border:1px solid #d9e6ef;background:#f7fbfe;border-radius:8px;color:#52616d;font-size:9px;line-height:1.5}.price-notice b,.submission-notice b{display:block;color:#196fae;font-size:9px;margin-bottom:3px}.price-notice span,.submission-notice span{display:block}.submission-notice{margin-bottom:10px}

.quote-estimate,.quote-final,.quote-pending{display:block;margin-top:3px}.quote-final{font-weight:800;color:#176b43}.quote-pending{color:#8a6a00}.quote-actions-side{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.quote-actions-side .account-btn{font-size:10px;padding:7px 9px}

.quote-detail-card{width:min(900px,96vw)}.quote-detail-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;border-bottom:1px solid #e3e8ed;padding-bottom:14px;margin-bottom:15px}.quote-detail-head h2{margin:0;font-size:20px}.quote-detail-head small{display:block;color:#77838e;margin-top:4px}.quote-detail-total{text-align:right}.quote-detail-total small{font-size:9px;text-transform:uppercase;font-weight:800}.quote-detail-total strong{display:block;font-size:20px;color:#1165a7;margin-top:3px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-box{border:1px solid #e1e7ec;border-radius:10px;padding:12px;background:#fafcfd}.detail-box h3{font-size:10px;letter-spacing:1px;color:#1165a7;margin:0 0 9px}.detail-box p{font-size:11px;margin:5px 0;color:#52616d}.detail-table{width:100%;border-collapse:collapse;font-size:10px}.detail-table th,.detail-table td{padding:8px 6px;border-bottom:1px solid #e7ebef;text-align:left}.detail-table th{color:#77838e;font-size:9px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.detail-status{display:inline-block;padding:6px 9px;border-radius:7px;background:#eaf3fb;color:#1165a7;font-size:10px;font-weight:900}.detail-final{color:#176b43!important}.detail-note{margin-top:12px;padding:10px;border-radius:8px;background:#f7fbfe;border:1px solid #d9e6ef;font-size:10px;line-height:1.5;color:#596775}@media(max-width:650px){.detail-grid{grid-template-columns:1fr}.quote-detail-head{flex-direction:column}.quote-detail-total{text-align:left}}
/* V35.1 Techmart brand palette */
.brand-logo{width:52px;height:52px;object-fit:contain}.brand b{color:#A645D3}.brand small{color:#A645D3}.header-btn{background:#A645D3}.header-btn-secondary{background:#f1e7f7;color:#6f2b8c}.phase-badge{color:#A645D3;background:#f5eafa;border-color:#e5c8f0}.eyebrow{color:#A645D3}.browse{background:#A645D3}.upload-symbol{background:#f5eafa;color:#A645D3}.drop-zone.drag{border-color:#A645D3;background:#fbf5fd}.file-icon{background:#A645D3}.file-row.active{border-color:#d5a3e6;background:#fbf5fd}.control:hover,.control.active{background:#f5eafa;border-color:#d8a8e9;color:#A645D3}.control.accent{background:#A645D3;border-color:#A645D3}.estimate-total{background:#f6ebfb}.estimate-total span,.estimate-total strong{color:#A645D3}.files-summary #filesCount{color:#A645D3}.submit-quote{background:#A645D3!important}.account-btn{background:#A645D3}.account-btn.secondary-account{background:#f1e7f7;color:#6f2b8c}.account-show,.account-switch button{color:#A645D3}.quote-detail-total strong,.detail-box h3,.detail-status,.detail-final{color:#A645D3}.detail-status{background:#f5eafa}.detail-actions .account-btn:not(.secondary-account){background:#A645D3;color:#fff}

.payment-card{max-width:520px}.payment-amount{font-size:30px;font-weight:800;color:#a645d3;margin:10px 0 18px}.payment-stage{margin-top:16px;padding:16px;border-radius:12px;background:#f6ebfb;border:1px solid #e1d7e7}.payment-stage p{margin:0 0 12px;font-size:14px;color:#263542}.payment-stage.hidden{display:none}
.payment-paid-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:8px;background:#e9f8ef;color:#16733a;font-weight:800;font-size:12px;letter-spacing:.4px}.payment-paid-box{margin-top:14px;padding:13px 15px;border:1px solid #bfe3ca;background:#f2fbf5;border-radius:10px;color:#16733a;display:flex;flex-direction:column;gap:4px}.payment-paid-box small{color:#52705d}
.payment-paid-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:8px;background:#e9f8ef;color:#16733a;font-weight:800;font-size:12px;letter-spacing:.4px}.payment-paid-box{margin-top:14px;padding:13px 15px;border:1px solid #bfe3ca;background:#f2fbf5;border-radius:10px;color:#16733a;display:flex;flex-direction:column;gap:4px}.payment-paid-box small{color:#52705d}

/* Techmart: keep the quotation PDF download button purple, including the secondary-button override. */
#downloadQuotePdf,
#downloadQuotePdf:hover,
#downloadQuotePdf:focus,
#downloadQuotePdf:disabled {
  background: #A645D3 !important;
  background-color: #A645D3 !important;
  color: #ffffff !important;
  border: 1px solid #A645D3 !important;
  opacity: 1 !important;
}
#downloadQuotePdf { cursor: pointer; }
#downloadQuotePdf:disabled { cursor: not-allowed; }
