body{margin:0;padding:12px;color-scheme:light dark;background:light-dark(#f3f6f4,#162020)}
main{max-width:1200px;margin:0 auto}
#hc-preview .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;padding:9px 15px;text-decoration:none;overflow-wrap:anywhere;font:inherit}
#hc-preview .button.primary{background:var(--brand);color:var(--onbrand);border-color:var(--brand)}
#hc-preview .button.person{display:block}
#hc-preview .button.back{padding:0;border:0;background:none;color:var(--brand);margin-bottom:14px;justify-content:flex-start}
#hc-preview .login-panel{max-width:480px;margin:28px auto;padding:24px}
#hc-preview .login-panel .formgrid{grid-template-columns:1fr}
#hc-preview .form-error{border:1px solid light-dark(#9a3030,#ffb6b6);background:light-dark(#fff2f2,#3b2424);color:light-dark(#802424,#ffcece);padding:14px;border-radius:8px;margin-bottom:20px}
#hc-preview .save-success{color:var(--brand);padding:12px 0}
#hc-preview [data-section]{margin-top:20px}
#hc-preview [data-section][hidden]{display:none}
#hc-preview .job-nav{display:none}
#hc-preview.js-ready .job-nav{display:grid}
#hc-preview .job-line{min-width:0}
#hc-preview .job-line label{min-width:0}
#hc-preview .job-line label:nth-child(2){grid-column:1/-1}
#hc-preview .login-panel h1{font-size:26px}
#hc-preview .leave-panel{margin-bottom:20px}
#hc-preview .leave-panel[hidden]{display:none}
@container(max-width:650px){
 #hc-preview .button.mobile-back{display:inline-flex}
 #hc-preview .vehicle .button{width:100%;margin-top:14px}
 #hc-preview .actions .button{flex:1;min-width:110px}
 #hc-preview .login-panel{margin:16px;padding:20px}
}
@container(min-width:651px){#hc-preview .button.mobile-back{display:none}}

#hc-preview .admin-panel{max-width:850px;margin:20px auto;padding:24px}#hc-preview .header-actions{display:flex;gap:8px;flex-wrap:wrap}#hc-preview .admin-panel h2{margin-top:32px}#hc-preview .check-row{display:flex;gap:12px;align-items:center}#hc-preview .check-row input{width:24px;min-height:24px}#hc-preview input[type=color]{height:52px;padding:4px}#hc-preview .recovery-result{border:2px solid var(--brand);padding:18px;border-radius:10px}#hc-preview .recovery-code{font-size:clamp(18px,4vw,28px);font-family:monospace;overflow-wrap:anywhere}#hc-preview a{color:inherit}@media(max-width:480px){#hc-preview header{padding:14px;flex-wrap:wrap}#hc-preview .admin-panel{padding:16px;margin:8px auto}}

#hc-preview .company-logo{width:72px;height:56px;object-fit:contain;flex-shrink:0}#hc-preview .logo-preview{display:block;max-width:100%;width:240px;height:120px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;margin:16px 0}#hc-preview input[type=file]{max-width:100%;padding:10px}

#hc-preview header{flex-wrap:wrap;gap:16px}#hc-preview .brand{min-width:0;max-width:100%}#hc-preview .brand>div{min-width:0;overflow-wrap:anywhere}#hc-preview .company-logo{display:block;min-width:72px;max-width:72px;max-height:56px}#hc-preview .header-actions{flex-shrink:0}

.report-scroll{max-width:100%;overflow-x:auto}.report-scroll table{width:100%;border-collapse:collapse}.report-scroll th,.report-scroll td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}

.payment-summary{display:flex;flex-wrap:wrap;gap:24px}.payment-entry{border-top:1px solid var(--line);padding:18px 0}.payment-entry details{margin-top:18px}.payment-entry summary{cursor:pointer;min-height:44px;padding:10px 0}

.document-paper{padding:20px;border:1px solid var(--line);border-radius:10px;margin:20px 0}.payment-terms{padding:16px;border-left:4px solid var(--brand);background:var(--wash)}#hc-preview [hidden]{display:none!important}

.job-hub{border:1px solid #b8cbc3;border-radius:12px;padding:16px;margin-bottom:20px;background:#f5faf7}.job-hub h2{margin:6px 0}.job-hub .job-identity{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.job-workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.job-workflow a{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #b8cbc3;border-radius:8px;text-decoration:none;color:#203d37;background:white;overflow-wrap:anywhere}.job-workflow a[aria-current]{border:2px solid #285b49;background:#e5f1ea}.job-workflow small{line-height:1.4}.job-workflow a:focus-visible{outline:3px solid #285b49;outline-offset:2px}@media(max-width:650px){.job-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.job-hub{padding:12px}}

.receipt-layout{color:#233c32;background:#fff}.receipt-heading{border-bottom:3px solid #285b49;padding-bottom:12px}.receipt-layout h3{color:#285b49;border-bottom:1px solid #d6e2dc;padding-bottom:8px}.receipt-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.receipt-details>div{background:#f3f7f4;padding:12px;border-radius:6px;overflow-wrap:anywhere}.receipt-details h4{margin:0 0 8px;color:#285b49}.receipt-layout table{width:100%;border-collapse:collapse}.receipt-layout th{background:#e7f0eb}.receipt-layout td,.receipt-layout th{padding:10px;border-bottom:1px solid #e1e9e4;text-align:left}.receipt-layout tr:nth-child(even){background:#f7f9f8}.receipt-layout td:last-child,.receipt-layout th:last-child{text-align:right;white-space:nowrap}.receipt-totals{max-width:420px;margin:16px 0 16px auto}.receipt-totals p{display:flex;justify-content:space-between;gap:20px}.receipt-balance{padding:12px;background:#e7f0eb;color:#285b49;font-weight:bold}.receipt-thanks{border-top:1px solid #d6e2dc;padding-top:16px;font-weight:bold}@media(max-width:650px){.receipt-details{grid-template-columns:1fr}.receipt-layout{padding:14px}.receipt-layout table{font-size:14px}.receipt-totals{max-width:none}}

#hc-preview .receipt-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;min-height:84px}
#hc-preview .receipt-logo{width:130px;height:80px;object-fit:contain;object-position:right top;flex-shrink:0}
#hc-preview .receipt-layout th:last-child,#hc-preview .receipt-layout td:last-child{ text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#hc-preview .receipt-layout table:first-child th:nth-last-child(2),#hc-preview .receipt-layout table:first-child td:nth-last-child(2){font-variant-numeric:tabular-nums}
#hc-preview .receipt-layout table:has(th:nth-child(5)) th:nth-child(n+3),#hc-preview .receipt-layout table:has(th:nth-child(5)) td:nth-child(n+3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#hc-preview .receipt-totals{padding:0 10px}
#hc-preview .receipt-totals strong{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#hc-preview .receipt-company{margin:12px 0 16px;font-size:14px;line-height:1.6}

#hc-preview .danger{background:#a82d2d;color:#fff;border-color:#a82d2d}#hc-preview .deletion-panel h2{margin:18px 0}#hc-preview .deletion-panel li{margin:8px 0}

#hc-preview .user-accounts table{width:100%;border-collapse:collapse;text-align:left}#hc-preview .user-accounts th,#hc-preview .user-accounts td{padding:12px 10px;border-bottom:1px solid #d6e2dc;overflow-wrap:anywhere}#hc-preview .user-accounts th{background:#e7f0eb}#hc-preview .user-accounts th:last-child{width:320px}

#hc-preview .user-accounts td .actions{margin:0;align-items:center}#hc-preview .user-accounts td .button{white-space:nowrap}

#hc-preview .user-accounts td .actions{flex-wrap:nowrap}#hc-preview .user-accounts td .button{flex:0 0 auto;min-width:0}#hc-preview .user-accounts .button.password-change{background:#1565c0;border-color:#1565c0;color:#fff}

#hc-preview .button:not(.person):not(.back):not(.danger):not(.password-change):not(.new-job),#hc-preview button:not(.danger){background:var(--brand);border-color:var(--brand);color:var(--onbrand)}
#hc-preview .button.new-job{background:#1565c0;border-color:#1565c0;color:#fff}

#hc-preview .header-actions button.signout-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:#1565c0;border-color:#1565c0;color:#fff}#hc-preview .signout-icon{display:block;flex-shrink:0}

#hc-preview .header-actions button.signout-button{padding:9px 10px}#hc-preview .signout-icon{width:18px;height:18px}#hc-preview .header-actions{max-width:100%}

@media(max-width:480px){#hc-preview .header-actions{gap:6px}#hc-preview .header-actions .button,#hc-preview .header-actions button{font-size:14px;padding:9px 10px}}

@media(max-width:650px){
 #hc-preview .user-accounts .table-scroll{min-width:0;max-width:100%}
 #hc-preview .user-accounts table,#hc-preview .user-accounts tbody{display:block;width:100%}
 #hc-preview .user-accounts thead{display:none}
 #hc-preview .user-accounts tr{display:block;width:100%;padding:12px 0;border-bottom:1px solid #d6e2dc}
 #hc-preview .user-accounts td{display:block;width:100%;padding:6px 0;border:0;white-space:normal;overflow-wrap:anywhere}
 #hc-preview .user-accounts td:first-child{font-weight:600}
 #hc-preview .user-accounts td .actions{flex-wrap:wrap;gap:8px}
 #hc-preview .user-accounts td .button{font-size:14px;padding:9px 10px;min-width:0;max-width:100%;flex:0 1 auto;white-space:normal;text-align:center}
 #hc-preview .user-accounts td .actions span{flex-basis:100%}
 #hc-preview .user-accounts h2{overflow-wrap:anywhere}
}

#hc-preview .vehicle-row-actions,#hc-preview .vehicle-detail-actions{display:flex;gap:9px;align-items:center}
#hc-preview .vehicle-detail-actions{margin:16px 0 24px}
#hc-preview .vehicle-row-actions .button,#hc-preview .vehicle-detail-actions .button{white-space:nowrap}
@container(max-width:650px){#hc-preview .vehicle-row-actions{margin-top:14px}#hc-preview .vehicle-row-actions .button,#hc-preview .vehicle-detail-actions .button{flex:1;min-width:0;width:auto;margin-top:0;padding:9px 10px;font-size:14px}}

/* Keep the menu target on the same header row, including narrow phones. */
#hc-preview header{display:flex;flex-wrap:nowrap;align-items:center;gap:12px}
#hc-preview header .brand{flex:1;min-width:0}
#hc-preview .header-actions{margin-left:auto;flex:0 0 auto}
#hc-preview .header-actions .button.bento-menu{width:48px;height:48px;min-height:48px;padding:10px;flex-shrink:0}
#hc-preview .bento-menu svg{display:block;fill:currentColor;width:26px;height:26px}
#hc-preview .bento-menu:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
#hc-preview .app-menu-panel{max-width:520px;margin:24px auto;padding:24px}
#hc-preview .app-menu-actions{display:grid;gap:14px;margin-top:24px}
#hc-preview .app-menu-actions .button,#hc-preview .app-menu-actions button{width:100%;min-height:56px}
#hc-preview .app-menu-actions form{margin:0}
#hc-preview .app-menu-actions button.signout-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#1565c0;border-color:#1565c0;color:#fff}
@media(max-width:480px){#hc-preview .app-menu-panel{margin:16px;padding:20px}#hc-preview header .brand{gap:10px}}

#hc-preview .workflow-panel{max-width:960px;margin:20px auto;padding:20px}
#hc-preview .workflow-card{background:#fff;display:flex;justify-content:space-between;gap:16px;border:1px solid #b9c8c0;border-radius:12px;padding:14px;margin:12px 0;overflow-wrap:anywhere}
#hc-preview .workflow-card p{margin:6px 0}
#hc-preview .workflow-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:420px}
#hc-preview .workflow-actions form{margin:0}
#hc-preview .workflow-actions small{flex-basis:100%}
#hc-preview .quick-payments{margin-bottom:18px}
#hc-preview .quick-payments details{margin:12px 0}
@media(max-width:600px){#hc-preview .workflow-panel{padding:12px;margin:8px}#hc-preview .workflow-card{flex-direction:column;gap:10px}#hc-preview .workflow-actions{max-width:100%}#hc-preview .workflow-actions .button,#hc-preview .workflow-actions button{min-height:44px}#hc-preview .quick-payments .formgrid{grid-template-columns:1fr}}

/* Paid-invoice workflow */
#hc-preview .advanced-functions{margin-top:24px;border:1px solid #bccdc6;border-radius:12px;padding:14px}
#hc-preview .advanced-functions>summary{font-weight:700;cursor:pointer;min-height:36px}
#hc-preview .settlement-panel{padding:16px;border:1px solid #b7ccc1;border-radius:12px;margin:16px 0;background:#f3faf6}
#hc-preview .settlement-panel form{max-width:520px}
#hc-preview .invoice-settlement{border:2px solid #215c48;border-radius:8px;padding:12px;margin:12px 0}
@media(max-width:600px){#hc-preview .settlement-panel .actions>*{width:100%}#hc-preview .advanced-functions{padding:10px}#hc-preview .job-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Use the supplied disk PNG as a decorative icon, matching each button's text. */
#hc-preview button.save-button{display:inline-flex;align-items:center;justify-content:center;gap:.45em}
#hc-preview button.save-button::before{content:"";display:inline-block;width:20px;height:20px;flex:0 0 20px;background-color:currentColor;-webkit-mask:url('/assets/save-icon.png') center / contain no-repeat;mask:url('/assets/save-icon.png') center / contain no-repeat}

/* Registration lookup icon preview. */
#hc-preview .registration-entry{display:flex;align-items:center;gap:8px;min-width:0}
#hc-preview .registration-entry input{flex:1 1 0;min-width:0;width:0;margin:0}
#hc-preview .registration-entry .mot-lookup-icon{display:block;flex:0 0 28px;width:28px;height:28px;object-fit:contain}

/* Iteration 2: compact controls and UK rear-plate yellow on Add Vehicle. */
#hc-preview .registration-entry-new input{background:#ffdf00;color:#111}
#hc-preview a.button.pdf-download-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 56px;width:56px;min-width:56px;max-width:56px;min-height:48px;padding:6px;background:#fff!important;border:1px solid #57736b;vertical-align:middle}
#hc-preview .pdf-download-button img{display:block;width:36px;height:36px;max-width:100%;object-fit:contain}
#hc-preview .pdf-download-button:focus-visible{outline:3px solid var(--brand);outline-offset:3px}

/* Iteration 2: customer search is only shown on the finder screen. */
#hc-preview[data-screen="detail"] .layout>aside{display:none}
#hc-preview[data-screen="detail"] .layout{grid-template-columns:minmax(0,1fr);padding-top:16px}

/* Registration vehicle lookup */
#hc-preview .registration-entry button.vehicle-lookup-button{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;min-width:48px;min-height:48px;padding:5px;background:#fff;color:#111;border:1px solid #57736b}
#hc-preview .vehicle-lookup-button:disabled{opacity:.55;cursor:wait}
#hc-preview .vehicle-lookup-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:22px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:12px;box-sizing:border-box}
#hc-preview .vehicle-lookup-dialog::backdrop{background:rgba(0,0,0,.5)}
#hc-preview .vehicle-lookup-dialog h2,#hc-preview .vehicle-lookup-dialog h3{margin:0 0 12px}
#hc-preview .vehicle-lookup-dialog p{margin:10px 0;overflow-wrap:anywhere}
#hc-preview .lookup-facts{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:8px 16px}
#hc-preview .lookup-facts dt{font-weight:600}#hc-preview .lookup-facts dd{margin:0;overflow-wrap:anywhere}
#hc-preview .vehicle-lookup-dialog details{border-top:1px solid var(--line);padding:12px 0}#hc-preview .vehicle-lookup-dialog summary{cursor:pointer;min-height:32px}
#hc-preview .vehicle-lookup-dialog .actions{position:sticky;bottom:-22px;background:var(--paper);padding:12px 0;gap:8px}
@media(max-width:480px){#hc-preview .vehicle-lookup-dialog{padding:16px}#hc-preview .vehicle-lookup-dialog .actions{bottom:-16px}#hc-preview .vehicle-lookup-dialog .actions button{flex:1;min-width:120px}}

/* Saved MOT and service reminders */
#hc-preview .vehicle-care-summary{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px}
#hc-preview .vehicle-care-summary h3{margin-bottom:12px}
#hc-preview .care-facts{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:10px 16px}
#hc-preview .care-facts dt{font-weight:600}#hc-preview .care-facts dd{margin:0;overflow-wrap:anywhere}
#hc-preview .care-dashboard{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}

/* Keep refresh feedback readable without collapsing the lookup results. */
#hc-preview .vehicle-lookup-dialog .lookup-footer{position:sticky;bottom:-22px;background:var(--paper);padding:12px 0;z-index:1}
#hc-preview .vehicle-lookup-dialog .lookup-footer .actions{position:static;margin-top:8px;padding:0}
#hc-preview .vehicle-lookup-dialog .lookup-status{padding:10px 12px;margin:0;border:1px solid var(--line);border-radius:8px;font-weight:600;line-height:1.4}
#hc-preview .vehicle-lookup-dialog .lookup-status[data-state="success"]{border-color:var(--brand)}
#hc-preview .vehicle-lookup-dialog .lookup-status[data-state="error"]{border-color:#b42318}
@media(max-width:480px){#hc-preview .vehicle-lookup-dialog .lookup-footer{bottom:-16px}}

/* Label the distinct PDF actions on the document preview only. */
#hc-preview a.button.pdf-download-button.pdf-labelled-button{width:auto;min-width:0;max-width:100%;flex:0 1 auto;gap:8px;padding:9px 12px;color:#203d37!important;white-space:normal;text-align:center}
#hc-preview .pdf-download-button.pdf-labelled-button img{width:24px;height:24px;flex:0 0 24px}

/* Use more of narrow phone screens without changing tablet or desktop layouts. */
@media(max-width:650px){
 body{padding:4px}
 #hc-preview header{padding-inline:10px}
 #hc-preview .top{padding-inline:10px}
 #hc-preview .layout{padding-inline:4px}
 #hc-preview aside,#hc-preview article,#hc-preview article[class]{padding-inline:10px}
 #hc-preview article[class]{margin-inline:0}
 #hc-preview #hc-status{padding-inline:10px}
}

/* Compact MOT lookup controls keep the test information in view. */
#hc-preview .vehicle-lookup-dialog{font-size:16px;line-height:1.45}
#hc-preview .vehicle-lookup-dialog .lookup-help{font-size:13px;line-height:1.4;margin:6px 0}
#hc-preview .vehicle-lookup-dialog .lookup-footer{padding:6px 0}
#hc-preview .vehicle-lookup-dialog .lookup-status{font-size:13px;font-weight:400;line-height:1.35;padding:4px 0;border:0;border-radius:0}
#hc-preview .vehicle-lookup-dialog .lookup-status[data-state="error"]{color:#b42318}
#hc-preview .vehicle-lookup-dialog .lookup-footer .actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:4px}
#hc-preview .vehicle-lookup-dialog .lookup-footer .actions button{min-width:0;min-height:44px;padding:5px 3px;font-size:13px;line-height:1.2;overflow-wrap:normal}
@media(max-width:650px){
 #hc-preview .vehicle-lookup-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 16px);padding:12px}
 #hc-preview .vehicle-lookup-dialog .lookup-footer{bottom:-12px}
 #hc-preview .vehicle-lookup-dialog h2{font-size:20px;margin-bottom:6px}
 #hc-preview .vehicle-lookup-dialog h3{font-size:17px;margin-bottom:8px}
 #hc-preview .lookup-facts{font-size:15px;gap:6px 10px;margin:12px 0}
}

/* MOT results and defect categories remain readable without relying on colour alone. */
#hc-preview .vehicle-lookup-dialog .mot-result-pass{font-weight:700;color:#21663f}
#hc-preview .vehicle-lookup-dialog .mot-result-fail{font-weight:700;color:#8b1d24}
#hc-preview .vehicle-lookup-dialog .mot-defect-badge{display:inline-block;padding:2px 6px;border-radius:4px;font-weight:600;font-size:.85em;line-height:1.4;margin-right:3px;vertical-align:baseline}
#hc-preview .vehicle-lookup-dialog .mot-defect-advisory{background:#ffe2b8;color:#6d3b10}
#hc-preview .vehicle-lookup-dialog .mot-defect-major{background:#fbd7d7;color:#782629}
#hc-preview .vehicle-lookup-dialog .mot-defect-dangerous{background:#eeaaaa;color:#6e1720}
#hc-preview .vehicle-lookup-dialog .mot-defect-prs{background:#dbeafb;color:#214d74}

#hc-preview .vehicle-lookup-dialog .mot-defect-minor{background:#fff0b3;color:#66520c}

/* Compact customer actions alongside the name, edit before delete. */
#hc-preview .heading.customer-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
#hc-preview .customer-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
#hc-preview .customer-heading-actions a.customer-action-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:7px;background:#fff!important;border:1px solid var(--line);border-radius:8px;flex:0 0 48px}
#hc-preview .customer-action-icon img{display:block;width:32px;height:32px;object-fit:contain}
#hc-preview .customer-action-icon:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

#hc-preview .diagnostic-job-action{align-items:center;justify-content:center;text-align:center}#hc-preview .diagnostic-job-action img{object-fit:contain;width:44px;height:44px}#diagnostic-editor .actions{margin-top:16px}#hc-preview [data-screen="diagnostic"]{min-width:0}

/* Compact job pages 20261018 */
#hc-preview a.button.back{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:auto!important;min-width:0;min-height:36px;margin:0 0 10px!important;padding:6px 12px!important;border:1px solid #9bafa5!important;border-radius:6px;background:#f5faf7!important;color:#203d37!important;font-size:14px!important;font-weight:600;line-height:1.3;text-decoration:none;box-sizing:border-box}
#hc-preview a.button.back:hover{background:#e5f0e9!important}
#hc-preview a.button.back:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
#hc-preview:has(.job-hub)>header{padding:12px 18px}
#hc-preview:has(.job-hub)>header .company-logo{width:56px;height:44px;object-fit:contain}
#hc-preview:has(.job-hub) .admin-panel{margin:10px auto;padding:14px;max-width:960px;width:calc(100% - 20px);box-sizing:border-box}
#hc-preview:has(.job-hub) .layout{padding-top:0}
#hc-preview .job-hub{padding:10px 12px;margin-bottom:12px}
#hc-preview .job-hub>.heading{display:block;margin:0 0 6px}
#hc-preview .job-hub>.heading>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
#hc-preview .job-hub .label{margin:0;font-size:12px;line-height:1.4}
#hc-preview .job-hub .tag{display:inline-flex;align-items:center;margin:0;padding:2px 7px;font-size:12px;line-height:1.4;white-space:nowrap}
#hc-preview .job-hub h2{flex:0 0 100%;margin:3px 0 0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
#hc-preview .job-hub .job-identity{gap:4px 16px;margin:0;font-size:14px;line-height:1.5}
#hc-preview .job-workflow{gap:6px;margin-top:8px}
#hc-preview .job-workflow>a{min-height:62px;padding:8px;gap:3px;justify-content:center;box-sizing:border-box}
#hc-preview .job-workflow strong{font-size:14px;line-height:1.25}
#hc-preview .job-workflow small{font-size:12px;line-height:1.25}
#hc-preview .job-workflow .diagnostic-job-action img{width:28px;height:28px;object-fit:contain}
@media(max-width:820px){#hc-preview:has(.job-hub)>header{padding:10px 12px}#hc-preview:has(.job-hub) .admin-panel{margin:6px auto;padding:10px;width:calc(100% - 12px)}#hc-preview .job-hub{padding:9px;margin-bottom:10px}#hc-preview .job-hub .job-identity{gap:3px 12px}}
@media(max-width:480px){#hc-preview .job-hub .job-identity{display:flex;flex-direction:column;align-items:flex-start;gap:3px}#hc-preview .job-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}#hc-preview .job-workflow>a{min-height:58px}#hc-preview a.button.back{min-height:40px;padding:7px 11px!important;margin-bottom:8px!important}}

/* Quote editor and preview toolbar 20261018 */
#hc-preview .document-preview-actions,#hc-preview .quote-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
#hc-preview .document-preview-actions>.button,#hc-preview .document-preview-actions>button{position:static!important;float:none!important;transform:none!important;margin:0!important;flex:0 1 auto;min-height:44px;box-sizing:border-box}
#hc-preview .document-preview-actions>a.button.back{min-height:44px;padding:9px 12px!important;margin:0!important}
#hc-preview .quote-charge-fields{display:block;margin-top:16px;padding:0;border:0}
#hc-preview .quote-charge-fields h3{margin:0 0 12px}
@media(max-width:480px){#hc-preview .document-preview-actions>*{flex:1 1 auto;text-align:center}#hc-preview .quote-editor-actions>button{min-height:44px}}

/* Quote drafts and deposits */
#hc-preview .quote-deposit-summary{padding:12px;border:1px solid #b8c9bf;border-radius:8px;margin:12px 0;background:#f5faf7}#hc-preview .quote-deposit-summary p{margin:6px 0}#hc-preview .quote-editor-actions{position:static}#hc-preview .quote-deposit-summary .formgrid{gap:12px}

