.shared-error,#shared-auth-error,#staff-error,#shared-import-error{color:var(--theme-danger,#cf6e42)}.shared-auth aside,.shared-auth header,.shared-auth footer{display:none}.shared-auth main{margin-left:0}.shared-auth #app{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:25px}.shared-login{width:100%;max-width:440px;background:var(--theme-surface,#ffffff);padding:32px;border:1px solid var(--theme-border,#d7e2d1);border-radius:12px}.shared-login label{display:block;margin:16px 0 7px}.shared-login input{width:100%;padding:11px;border:1px solid var(--theme-sidebarText,#cbd8c7);border-radius:6px;box-sizing:border-box}body{padding-bottom:0}

.database-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.database-counts>div{padding:16px;background:var(--theme-surfaceAlt,#f1f4ee);border:1px solid var(--theme-border,#dce3df);border-radius:8px}.database-counts dt{font-size:13px}.database-counts dd{margin:5px 0 0;font-size:28px;font-weight:700}.database-error{color:var(--theme-danger,#aa3535)}#database-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}#database-result{white-space:pre-wrap}@media(max-width:700px){.database-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sample-record-list{max-height:310px;overflow:auto;border:1px solid var(--theme-border,#dce3df);padding:14px;margin:18px 0}.sample-record-list fieldset{border:0;margin-bottom:12px}.sample-record-list label{display:flex;align-items:center;gap:8px;padding:5px 0}.sample-record-list input{width:auto}.sample-record-list small{margin-left:auto}#sample-final{margin-top:20px}#sample-final input{display:block;max-width:350px;margin:8px 0}#sample-error{white-space:pre-wrap}

button.record-delete{color:var(--theme-danger,#a43e3e);border-color:var(--theme-danger,#a43e3e)}.recycle-list{max-height:430px;overflow:auto}.recycle-list .stage-entry{padding:12px;border-bottom:1px solid var(--theme-border,#dce3df)}#trash-error,#record-result{white-space:pre-wrap;color:var(--theme-danger,#a43e3e)}

.import-preview-table{max-height:330px;overflow:auto;margin:16px 0}.import-preview-table th{position:sticky;top:0;background:var(--theme-tableHeader,#eef3f0)}#equipment-import-result{white-space:pre-wrap;color:var(--theme-danger,#a43e3e)}

.asset-table{max-height:420px;overflow:auto}.asset-table th{position:sticky;top:0;background:var(--theme-tableHeader,#eef3f0)}.asset-history{max-height:260px;overflow:auto}.asset-history>div{padding:12px 0;border-bottom:1px solid var(--theme-border,#dce3df)}.asset-history small{display:block}#warehouse-scan-form{display:grid;gap:8px;padding:18px 0}#warehouse-tag-scan{font-size:22px;font-weight:700;letter-spacing:1px}#warehouse-scan-result,#asset-detail-result,#asset-setup-result{white-space:pre-wrap;color:var(--theme-danger,#a43e3e)}[data-asset-product]{font-weight:600}

.asset-label-choices{max-height:35vh;overflow:auto;border:1px solid #dce5e3;padding:12px}.asset-label-choices label{display:flex;gap:10px;align-items:center;padding:5px}.asset-label-choices input[type=checkbox]{width:auto;margin:0}.asset-table details p{font-size:12px;margin:4px 0}

.equipment-dialog [hidden]{display:none!important}

.quote-page-tabs a[aria-current="page"]{background:var(--theme-primary,#1d6b54);color:#fff;border-radius:6px;padding:10px 16px}.quote-page-tabs a{padding:10px 16px;display:inline-block}.quote-page-next{display:inline-block;padding:12px 18px;border:1px solid var(--theme-border,#dfe6dc);border-radius:6px;font-weight:600}#quote-autosave-status{font-size:13px;margin:8px 0 16px;color:var(--theme-muted,#60756f)}

#quote-autosave-status.shared-error{color:var(--theme-danger,#a33232)}

.po-receipt-table{table-layout:auto;min-width:600px;width:100%}.po-receipt-table th{padding:12px 7px;font-size:9px;white-space:nowrap}.po-receipt-table td{padding:14px 7px;vertical-align:top}.po-receipt-table th:first-child{width:32%}.po-receipt-table td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}.po-receipt-table td:first-child{overflow-wrap:anywhere}

.pick-table th:nth-child(1){width:5%}.pick-table th:nth-child(2){width:37%}.pick-table th:nth-child(3){width:8%}.pick-table th:nth-child(4){width:50%;text-align:left}.pick-table td:last-child{text-align:left;white-space:normal}.pick-table td div{overflow-wrap:anywhere}.pick-explanation{font-size:10px;line-height:1.6}.pick-signoff{margin-top:30px;font-size:11px}

.shared-user{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%}.shared-user span{min-width:0;overflow-wrap:anywhere}.shared-user button{font-size:11px;padding:5px 7px;flex-shrink:0;background:transparent;color:inherit;border-color:currentColor}.shared-save-notice{font-size:11px;color:var(--theme-muted,#60756f);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.shared-save-notice [hidden]{display:none!important}#shared-recover button{font-size:11px;padding:5px 8px;margin:3px}.shared-admin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.shared-admin-actions>div{padding:18px;border:1px solid var(--theme-border,#dce3df);border-radius:8px}.shared-admin-actions p{line-height:1.6}@media(max-width:750px){.shared-admin-actions{grid-template-columns:1fr}header{flex-wrap:wrap;gap:10px}.shared-save-notice{width:100%}}

.staff-account-list{max-height:55vh;overflow:auto}.staff-account-list>div{display:grid;grid-template-columns:1fr auto;gap:8px;padding:15px 0;border-bottom:1px solid var(--theme-border,#dce3df)}.staff-account-list small{grid-column:1}.staff-account-list>div>div{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:8px}.staff-permission-row{display:grid;grid-template-columns:1fr 150px;align-items:center;gap:15px;margin:12px 0}.staff-permission-row label{margin:0}.staff-area-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.staff-area-cards a{padding:22px;text-decoration:none;color:inherit}.staff-read-only-note{margin-bottom:16px}.quote-recipient-lookup{position:relative}#quote-recipient-results{position:absolute;top:78px;left:0;right:0;z-index:30;max-height:310px;overflow:auto;border:1px solid var(--theme-border,#dce3df);border-radius:7px;background:var(--theme-surface,#fff);box-shadow:0 8px 25px #102d3220}#quote-recipient-results[hidden]{display:none}#quote-recipient-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--theme-border,#dce3df);border-radius:0;padding:12px}#quote-recipient-results button[aria-selected=true]{background:var(--theme-surfaceAlt,#edf4ef)}#quote-recipient-results p{padding:14px}#staff-list-error{color:var(--theme-danger,#aa3535)}

#modal.quote-email-dialog{width:min(900px,95vw);max-width:900px}#quote-send-form textarea#delivery-message{display:block;width:100%;min-height:260px;resize:vertical;padding:14px;border:1px solid var(--theme-border,#dce3df);border-radius:7px;box-sizing:border-box;font-family:Arial,sans-serif;font-size:14px;line-height:1.7;color:var(--theme-emailText,#102d32);background:var(--theme-emailSurface,#fff)}.quote-email-preview{margin:18px 0}.quote-email-preview summary{cursor:pointer;font-weight:600}.quote-email-preview>p{font-size:12px;line-height:1.6}#quote-email-preview{margin-top:14px;border:1px solid var(--theme-border,#dce3df)}.email-approval-placeholder{color:#60756f;font-style:italic}

.quote-buttons{align-items:center}.quote-more-actions{position:relative}.quote-more-actions summary{cursor:pointer;list-style:none;border:1px solid var(--theme-border,#dce3df);background:var(--theme-surface,#fff);border-radius:7px;padding:10px 13px;font-size:13px;white-space:nowrap}.quote-more-actions summary::-webkit-details-marker{display:none}.quote-action-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:230px;background:var(--theme-surface,#fff);border:1px solid var(--theme-border,#dce3df);box-shadow:0 8px 30px #102d3226;border-radius:9px;padding:10px}.quote-action-menu small{font-size:9px;letter-spacing:1px;padding:8px;margin:0}.quote-action-menu button{display:block;width:100%;border:0;text-align:left;background:transparent;border-radius:4px;padding:10px}.quote-action-menu button:hover{background:var(--theme-surfaceAlt,#edf4ef)}.quote-review-total{padding:20px;border:1px solid var(--theme-border,#dce3df);border-radius:8px;margin:20px 0}.quote-review-total strong{display:block;font-size:30px;margin-top:10px}.quote-confirm-step{border-top:1px solid var(--theme-border,#dce3df);padding-top:18px;margin-top:24px}.quote-confirm-step summary{cursor:pointer;font-weight:600}.quote-confirm-step p{line-height:1.6}#quote-workflow-error{color:var(--theme-danger,#aa3535)}@media(max-width:650px){.quote-buttons{justify-content:flex-start}.quote-action-menu{right:0;width:min(230px,85vw)}}

.quote-info-panel{padding:24px!important}.quote-info-heading{margin-bottom:22px}.quote-info-heading h2{font-size:18px;margin:0 0 7px}.quote-info-heading p{font-size:12px;line-height:1.6;margin:0}.quote-info-panel .quote-fields{padding:0}.quote-info-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}.quote-info-panel label{display:block;margin:0 0 7px;font-size:12px;line-height:1.5}.quote-info-panel input,.quote-info-panel select{width:100%;min-height:42px;margin:0}.quote-info-panel textarea{width:100%;min-height:96px;margin:0;padding:11px;font:inherit;line-height:1.6;resize:vertical}.quote-info-panel small{line-height:1.6;margin-top:7px}.quote-info-panel .quote-fields>label:not(:first-child){margin-top:20px}.quote-selected-details{margin:24px 0}.quote-contact-grid{border-top:1px solid var(--theme-border,#dce3df);padding-top:22px!important}.quote-contact-grid>div:first-child{grid-column:1/-1}.quote-record-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding-top:18px;margin:22px 0 0;border-top:1px solid var(--theme-border,#dce3df)}.quote-record-meta dt{font-size:11px;color:var(--theme-muted,#60756f)}.quote-record-meta dd{font-size:12px;margin:6px 0 0}.quote-main [data-recipient-details][hidden]{display:none!important}.quote-info-panel #quote-recipient-results{top:76px}.quote-info-panel#quote-logistics>small{display:block;margin-top:18px}@media(max-width:700px){.quote-info-panel{padding:18px!important}.quote-info-panel .form-grid,.quote-record-meta{grid-template-columns:1fr;gap:18px}.quote-contact-grid>div:first-child{grid-column:auto}}

#quote-customer.quote-info-panel{overflow:visible;position:relative;z-index:3}

.billing-status{display:inline-block;padding:5px 8px;border-radius:20px;font-size:10px;white-space:nowrap;background:var(--theme-surfaceAlt,#edf4ef);color:var(--theme-text,#102d32)}.billing-overdue{background:#fbe2df;color:#9b2821}.billing-paid{background:#e1f2e8;color:#186344}.billing-part-paid,.billing-awaiting-payment{background:#fff0d4;color:#805b16}.billing-void{background:#ecefee;color:#67736f}.billing-actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.billing-payment-history{max-height:280px;overflow:auto}.billing-payment-history>div{display:grid;grid-template-columns:1fr 2fr;gap:8px;padding:14px 0;border-bottom:1px solid var(--theme-border,#dce3df)}.billing-payment-history small{grid-column:2}.billing-table-wrap{overflow:auto}.billing-table-wrap table{min-width:760px}.billing-uninvoiced{padding:24px}.billing-uninvoiced>div{display:flex;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid var(--theme-border,#dce3df)}.billing-uninvoiced>div>span{flex:1}.billing-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#invoice-error{color:var(--theme-danger,#a43e3e)}#invoice-void-reason{width:100%;font:inherit;padding:12px}.billing-job-panel{padding-bottom:10px}@media(max-width:700px){.billing-metrics{grid-template-columns:1fr}.billing-uninvoiced>div{flex-wrap:wrap}}

/* Invoice delivery and directory browsing */
dialog.invoice-email-dialog{width:min(850px,94vw);max-width:94vw}#invoice-mail-message{display:block;width:100%;min-height:270px;resize:vertical;font:14px/1.7 Arial,sans-serif;padding:14px}#invoice-email-form>input{width:100%}.invoice-mail-preview{margin:20px 0}.directory-panel{padding:0!important;max-height:none!important;overflow:visible!important}.directory-alphabet{display:flex;flex-wrap:wrap;gap:5px;padding:18px;border-bottom:1px solid var(--border,#d9e3df)}.directory-alphabet button{min-width:33px;padding:7px 9px}.directory-alphabet button[aria-pressed=true]{background:var(--primary,#167568);color:white}.directory-alphabet button:disabled{opacity:.35}.directory-count,.directory-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;gap:12px}.directory-count label{display:flex;align-items:center;gap:8px;margin:0}.directory-count select{width:auto}.directory-table-wrap,.numbering-table{overflow-x:auto}.directory-panel td{vertical-align:top;padding:18px}.directory-panel td:nth-child(1){width:25%}.directory-panel td:nth-child(2){width:25%;overflow-wrap:anywhere}.directory-panel td small{display:block;margin-top:5px}.directory-panel details{margin-top:7px;font-size:12px}.directory-panel summary{cursor:pointer}.directory-panel .equipment-actions{flex-wrap:wrap;gap:7px}.directory-contact{padding:16px 0;border-bottom:1px solid #d9e3df}.directory-contact small{display:block}.numbering-table input{width:100%;min-width:85px}.numbering-table td:first-child{min-width:140px}.directory-toolbar input{min-width:min(360px,90vw)}

.bulk-return-assets{max-height:260px;overflow:auto;border:1px solid #d9e3df;border-radius:8px;padding:6px 14px}.bulk-return-check{display:flex;align-items:flex-start;gap:10px;margin:18px 0}.bulk-return-check input{width:auto;margin-top:4px}#bulk-return-notes{width:100%;resize:vertical}

/* Navigation actions share button styling while retaining normal link behaviour. */
a.button-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;vertical-align:middle;box-sizing:border-box;min-height:38px;padding:9px 13px;border:1px solid var(--theme-border,#dce3df);border-radius:7px;background:var(--theme-surface,#fff);color:var(--theme-text,#2b4137);font:inherit;font-weight:400;line-height:normal;text-align:center;text-decoration:none;cursor:pointer}
a.button-link:hover{background:var(--theme-rowHover,#f5f9f4);color:var(--theme-text,#2b4137);text-decoration:none}
a.button-link:focus-visible{outline:2px solid var(--theme-primary,#167568);outline-offset:3px}
a.button-link.primary{background:var(--theme-primary,#167568);border-color:var(--theme-primary,#167568);color:var(--theme-primaryText,#fff)}
.actions:has(>.button-link){align-items:center;flex-wrap:wrap}#invoice-attachment-preview .button-link{margin:0 6px 6px 0}

/* Shared action controls across workspace and document toolbars. */
:is(.actions,.billing-actions,.quote-buttons,.toolbar,.group-tools,.branding-tools,.equipment-actions,.print-toolbar,.panel-title)>:is(button,a.button-link),.heading>button,.heading>a.button-link,.quote-more-actions>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:9px 13px;border:1px solid var(--theme-border,#dce3df);border-radius:7px;background:var(--theme-surface,#fff);color:var(--theme-text,#2b4137);font:inherit;font-weight:500;line-height:1.2;text-decoration:none;vertical-align:middle;cursor:pointer}
:is(.actions,.billing-actions,.quote-buttons,.toolbar,.group-tools,.branding-tools,.equipment-actions,.print-toolbar,.panel-title)>:is(button,a.button-link):hover,.quote-more-actions>summary:hover{background:var(--theme-rowHover,#f5f9f4)}
:is(.actions,.billing-actions,.quote-buttons,.toolbar,.group-tools,.branding-tools,.equipment-actions,.print-toolbar,.panel-title)>:is(button,a.button-link).primary,.heading>button.primary{background:var(--theme-primary,#167568);border-color:var(--theme-primary,#167568);color:var(--theme-primaryText,#fff)}
:is(.actions,.billing-actions,.quote-buttons,.toolbar,.group-tools,.branding-tools,.equipment-actions,.print-toolbar,.panel-title)>button.record-delete{color:var(--theme-danger,#a4584c);border-color:var(--theme-danger,#a4584c)}
button:focus-visible,a.button-link:focus-visible,.quote-more-actions>summary:focus-visible{outline:2px solid var(--theme-primary,#167568);outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}
.pdf-layout-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.pdf-layout-checks label{display:flex;align-items:center;gap:9px;margin:0}.pdf-layout-checks input{width:auto;margin:0}.configurable-paper{line-height:var(--pdf-leading,1.5)}.configurable-paper .paper-table th,.configurable-paper .paper-table td{font-size:inherit!important;line-height:inherit}.configurable-paper .paper-table th:first-child{width:auto}.configurable-paper small{font-size:.8em}.configurable-paper .paper-meta span{font-size:inherit}.configurable-paper .paper-notes p{white-space:normal}.configurable-paper h1{font-size:1.8em}.configurable-paper h2{font-size:1.6em}.configurable-paper h3{font-size:1.2em}@media(max-width:650px){.pdf-layout-checks{grid-template-columns:1fr}}

.pdf-layout-workbench{display:grid;grid-template-columns:minmax(290px,.95fr) minmax(360px,1.25fr);gap:24px;align-items:start;margin-top:18px}.pdf-layout-controls{min-width:0}.pdf-live-preview{position:sticky;inset:auto;top:18px;width:auto;min-width:0;padding:16px;background:var(--theme-surface,#fff);color:var(--theme-text,#2b4137);border:1px solid var(--theme-border,#dce3df);border-radius:9px}.pdf-live-preview h3{margin:0 0 8px}.pdf-live-preview .actions{justify-content:flex-start;margin:10px 0}.pdf-live-preview [hidden]{display:none!important}.pdf-live-preview iframe{display:block;width:100%;height:calc(100vh - 220px);min-height:520px;border:1px solid var(--theme-border,#dce3df);background:#edf0ed;border-radius:6px}.pdf-live-preview small{display:block;margin-top:10px}#pdf-preview-status{font-size:12px;line-height:1.5;min-height:36px}.pdf-section-row{display:flex;align-items:center;gap:10px;padding:9px 11px;margin:7px 0;border:1px solid var(--theme-border,#dce3df);border-radius:7px;background:var(--theme-surface,#fff)}.pdf-section-row:hover{border-color:var(--theme-primary,#167568)}.pdf-section-handle{cursor:grab;font-size:20px;color:var(--theme-muted,#6b8485)}.pdf-section-row>span:nth-child(2){flex:1}.pdf-section-row>div{display:flex;gap:5px}.pdf-section-row button{min-width:32px;padding:5px 8px}.paper-meta.paper-meta-single{grid-template-columns:1fr}.pdf-layout-controls .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-layout-controls .pdf-layout-checks{grid-template-columns:1fr}@media(max-width:1100px){.pdf-layout-workbench{grid-template-columns:1fr}.pdf-live-preview{position:static}.pdf-live-preview iframe{height:650px}.pdf-layout-controls .pdf-layout-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.pdf-layout-controls .form-grid,.pdf-layout-controls .pdf-layout-checks{grid-template-columns:1fr}.pdf-live-preview iframe{min-height:420px;height:65vh}}

.settings-page:has(#settings-pdf:not([hidden])){max-width:none;overflow:visible}#pdf-preview-frame{height:calc(100vh - 255px);min-height:480px;overflow:auto;padding:12px;background:#e8ece9;border:1px solid var(--theme-border,#dce3df);border-radius:6px}#pdf-preview-frame canvas{display:block;margin:0 auto 14px;background:#fff;box-shadow:0 2px 8px #0002}#pdf-preview-frame canvas:last-child{margin-bottom:0}@media(max-width:650px){#pdf-preview-frame{height:65vh;min-height:400px}}

.job-contact-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--theme-border,#dce3df)}.job-contact-card small,.job-contact-card span{display:block;margin-top:5px}.job-contact-card .actions{margin:0}#job-contact-form input:not([type=checkbox]),#job-contact-form select,#payment-override-form textarea{width:100%}@media(max-width:650px){.job-contact-card{align-items:flex-start;flex-direction:column}}

#payment-override-form textarea{font:inherit;line-height:1.6;min-height:110px;padding:12px;border:1px solid var(--theme-border,#dce3df);border-radius:7px;resize:vertical}

/* Quote workflow stays beside the editor on desktop. */
.quote-layout{grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.quote-sidebar{display:flex;flex-direction:column;gap:18px;min-width:0}.quote-sidebar>.panel{width:100%;margin:0}.quote-sidebar .billing-actions{display:flex;gap:8px;flex-wrap:wrap}.quote-sidebar .totals{padding:0}.quote-sidebar .quote-fields{padding:18px}@media(max-width:950px){.quote-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}}@media(max-width:780px){.quote-layout{grid-template-columns:1fr}.quote-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.quote-sidebar{display:flex}}

.pdf-positioned-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px}.pdf-body-block{min-width:0}.pdf-body-block .paper-totals{width:100%}.pdf-section-row small{display:block;font-size:10px;color:var(--theme-muted,#6b8485)}.pdf-section-row>div{flex-wrap:wrap;max-width:150px}

.website-enquiry{padding:15px;border:1px solid var(--theme-border,#dce3df);border-radius:8px;margin:12px 0}.website-enquiry summary{cursor:pointer}#settings-storefront>input,#settings-storefront textarea{width:100%}
.web-editor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.web-editor-columns textarea{width:100%;font:inherit}.web-editor-columns .panel{padding:16px;margin:10px 0}#web-live-preview{position:sticky;top:0;overflow-wrap:anywhere}@media(max-width:780px){.web-editor-columns{grid-template-columns:1fr}}
.managed-settings-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}.managed-settings-nav{position:sticky;top:18px;max-height:88vh;overflow:auto;padding-right:12px}.managed-settings-nav h2{font-size:18px}.managed-settings-group h3{font-size:11px;text-transform:uppercase;letter-spacing:.12em;margin:22px 0 8px;color:var(--theme-muted)}.managed-settings-nav button{display:block;width:100%;text-align:left;margin:4px 0;padding:10px;border:1px solid transparent;background:transparent}.managed-settings-nav button small{display:block;font-size:11px;line-height:1.4;margin-top:4px;font-weight:400}.managed-settings-nav button[aria-selected=true]{background:var(--theme-surfaceAlt);border-color:var(--theme-primary);color:var(--theme-text)}.managed-settings-layout>form{min-width:0}.managed-settings-context{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--theme-border);padding:12px 0 18px;margin-bottom:22px;font-size:12px}.settings-dirty{color:var(--theme-warning);font-weight:700}.managed-settings-save{position:sticky;bottom:0;z-index:3;padding:16px;background:var(--theme-surface);border-top:1px solid var(--theme-border);box-shadow:0 -6px 18px #102d3208}.enquiry-email-branding{border:1px solid var(--theme-border);padding:18px;margin:20px 0;border-radius:10px}.enquiry-email-branding input[type=checkbox]{width:auto;display:inline-block}.enquiry-email-branding input[type=color]{width:65px;height:36px}#settings-storefront>button:first-of-type{margin-bottom:18px}@media(max-width:900px){.managed-settings-layout{grid-template-columns:1fr}.managed-settings-nav{position:static;max-height:360px;border-bottom:1px solid var(--theme-border);padding-bottom:20px}.managed-settings-group{display:inline-block;width:48%;vertical-align:top;padding-right:12px}}[hidden]{display:none!important}
.settings-page{width:100%;max-width:none}.managed-settings-layout>form{container-type:inline-size}.managed-settings-layout .email-template-layout{grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:24px}@container(max-width:760px){.email-template-layout{grid-template-columns:1fr!important}}
.metrics{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.enquiry-metric{display:flex;flex-direction:column;gap:10px}.enquiry-metric button{align-self:flex-start;margin-top:auto}.template-test-panel{padding:18px;margin:20px 0}.template-test-panel input{max-width:420px}
#modal.website-editor-dialog{width:min(1680px,98vw);max-width:none;padding:0;max-height:96vh;border-radius:14px}.website-editor-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 26px;border-bottom:1px solid var(--theme-border);position:sticky;top:0;z-index:5;background:var(--theme-surface)}.website-editor-top h1{font-size:24px;margin:0}.website-editor-top p{margin:5px 0 0;font-size:12px}.website-editor-shell{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:80vh}.website-editor-shell>#website-page-list{background:var(--theme-surfaceAlt);padding:18px;position:sticky;top:90px;max-height:80vh;overflow:auto;align-self:start}.website-editor-shell>#website-page-list button{display:block;width:100%;text-align:left;margin:8px 0}.website-editor-shell>#website-page-list button small{display:block;font-weight:400;font-size:10px}.website-editor-shell>#website-page-list button.selected{border-color:var(--theme-primary);background:var(--theme-surface)}.website-editor-shell>#website-page-list p{font-size:11px;line-height:1.6}.website-editor-shell>#web-editor{padding:24px;min-width:0}.professional-page-grid{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(320px,1.1fr);gap:26px}.studio-properties{min-width:0}.studio-properties input[type=checkbox]{width:auto;display:inline-block}.studio-add-blocks{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.studio-add-blocks button{font-size:12px}.studio-block{border:1px solid var(--theme-border);padding:16px;border-radius:10px;margin-top:14px;background:var(--theme-surface)}.studio-block summary{font-weight:700;cursor:pointer;text-transform:capitalize}.studio-block .actions{margin:12px 0}.studio-preview-column{position:sticky;top:120px;align-self:start}.studio-preview{background:#e8efeb;border:1px solid var(--theme-border);padding:12px;max-width:100%;overflow:auto;margin:12px auto;transition:max-width .15s}.studio-preview.studio-mobile{max-width:375px}.studio-preview iframe{display:block;border-radius:8px}.website-editor-shell textarea{width:100%;font:inherit}.website-editor-shell #home-preview{position:sticky;top:110px;max-height:75vh;overflow:auto}.website-editor-shell #home-preview img{max-width:100%}@media(max-width:1100px){.website-editor-shell{grid-template-columns:150px minmax(0,1fr)}.professional-page-grid{grid-template-columns:1fr}.studio-preview-column{position:static}.website-editor-top{flex-wrap:wrap}}@media(max-width:700px){.website-editor-shell{grid-template-columns:1fr}.website-editor-shell>#website-page-list{position:static;max-height:220px}.website-editor-shell>#web-editor{padding:16px}.website-editor-top{position:static;padding:16px}}
.website-editor-shell label{display:block;margin:12px 0;font-size:12px;font-weight:500}.website-editor-shell label>input:not([type=checkbox]):not([type=color]),.website-editor-shell label>textarea,.website-editor-shell label>select{display:block;width:100%;margin-top:6px}.website-editor-shell label>input[type=checkbox]{width:auto;display:inline-block;margin-right:6px}.studio-block{overflow-wrap:anywhere}.studio-properties>.actions{justify-content:flex-start}.studio-preview-column>small{display:block;color:var(--theme-muted)}
.home-preview-handle{display:block!important;width:100%;text-align:left;justify-content:flex-start!important;font-size:11px!important;cursor:grab!important;color:var(--theme-primary);background:var(--theme-surface)!important;border:1px dashed var(--theme-primary)!important;margin-bottom:12px}.home-preview-moving{opacity:.35}.home-drop-before{border-top:4px dotted var(--theme-primary)!important;background:var(--theme-surfaceAlt)}.home-drop-after{border-bottom:4px dotted var(--theme-primary)!important;background:var(--theme-surfaceAlt)}.studio-block-selected{outline:2px solid var(--theme-primary);outline-offset:2px}
.studio-page-canvas{background:#f5f7f2;color:#102d32;min-height:720px;font:15px/1.65 Arial,sans-serif;border-radius:8px}.studio-page-brand{padding:22px;background:white;border-bottom:1px solid #dce5df}.studio-page-brand small{display:block;font-size:11px;font-weight:400}.studio-page-content{padding:30px;min-width:0}.studio-page-content h1{font:700 30px/1.2 Arial,sans-serif;margin:20px 0 28px}.studio-page-content h2{font:700 24px/1.2 Arial,sans-serif}.studio-page-content p{font:15px/1.65 Arial,sans-serif;color:#102d32}.studio-page-content img{max-width:100%}.studio-page-content .preview-block{border:1px dashed transparent;position:relative;margin:8px 0;padding:6px}.studio-page-content .preview-block:hover{border-color:#86a49a}.studio-page-content .preview-handle{display:block;width:auto;margin:0;padding:5px 9px;border:1px solid #b7cec5;background:white;color:#167568;cursor:grab;font:12px Arial}.studio-page-content .preview-moving{opacity:.35}.studio-page-content .preview-before{box-shadow:0 -5px 0 #167568;border-top:3px dotted #167568}.studio-page-content .preview-after{box-shadow:0 5px 0 #167568;border-bottom:3px dotted #167568}
.preview-handle,.home-preview-handle{touch-action:none;user-select:none}.preview-moving,.home-preview-moving{user-select:none}
#modal.grapes-designer{width:98vw;max-width:none;height:96vh;max-height:96vh;padding:0;overflow:hidden;border-radius:12px}.grapes-topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;height:90px;padding:12px 20px;border-bottom:1px solid var(--theme-border);background:var(--theme-surface)}.grapes-topbar h1{font-size:22px;margin:0}.grapes-topbar h1 small{font-size:11px;margin-left:8px;color:var(--theme-muted)}.grapes-topbar p{font-size:11px;margin:5px 0}.grapes-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);height:calc(96vh - 90px)}#grapes-page-nav{padding:16px;background:var(--theme-surfaceAlt);overflow:auto}#grapes-page-nav h2{font-size:17px}#grapes-page-nav button{display:block;width:100%;text-align:left;margin:7px 0;font-size:12px}#grapes-page-nav button.selected{border-color:var(--theme-primary);background:var(--theme-surface)}#grapes-page-nav small{display:block;font-size:10px;font-weight:400}#grapes-page-nav label{display:block;font-size:11px;margin:12px 0}#grapes-page-nav input:not([type=checkbox]){display:block;width:100%;font-size:12px}#grapes-page-nav input[type=checkbox]{width:auto;display:inline-block}#grapes-page-nav p{font-size:11px;line-height:1.6}#grapes-canvas{min-width:0;overflow:hidden}#grapes-canvas .gjs-editor{font-family:Arial,sans-serif}#grapes-canvas input,#grapes-canvas select{margin:0;min-width:0;font-size:12px}#grapes-canvas .gjs-mdl-container{z-index:1000}#grapes-canvas .gjs-block{min-height:65px;width:44%;padding:12px 5px;font-size:11px}#grapes-canvas .gjs-sm-property{font-size:11px}#grapes-canvas .gjs-pn-btn{min-width:25px}#grapes-canvas .gjs-one-bg{background-color:#193b3e}#grapes-canvas .gjs-two-color{color:#e2efeb}#grapes-canvas .gjs-four-color{color:#5ce1c0}@media(max-width:1000px){.grapes-workspace{grid-template-columns:150px minmax(0,1fr)}.grapes-topbar{height:110px;flex-wrap:wrap}.grapes-workspace{height:calc(96vh - 110px)}}
.grapes-topbar h1 small{display:inline-block!important;vertical-align:middle}.grapes-topbar .actions{flex-wrap:wrap;justify-content:flex-end}.grapes-designer .gjs-field input{padding:4px!important;border:0!important;background:transparent!important;color:inherit!important}
.equipment-group-thumbnail{width:48px;height:40px;object-fit:contain;border:1px solid var(--theme-border);border-radius:6px;float:left;margin:0 10px 4px 0;background:var(--theme-surface)}.grapes-menu-link{border-top:1px solid var(--theme-border);padding:8px 0}.grapes-menu-link .actions{gap:4px;flex-wrap:wrap}.grapes-menu-link .actions button{width:auto!important;display:inline-block!important;padding:5px 8px!important}#equipment-group-image-preview{min-height:36px;margin:12px 0}
.grapes-quick-tools{height:88px;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:6px 15px;background:var(--theme-surfaceAlt);border-bottom:1px solid var(--theme-border)}.grapes-tool-buttons{display:flex;gap:6px;flex-wrap:wrap}.grapes-tool-buttons button{font-size:11px;padding:5px 10px}.grapes-colour-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px}.grapes-colour-tools label{display:flex;align-items:center;gap:6px;font-size:11px}.grapes-colour-tools select{width:110px;margin:0;padding:4px 8px;font-size:12px}.grapes-colour-tools input[type=color]{display:block;width:42px!important;height:30px!important;margin:0!important;padding:2px!important;border:1px solid var(--theme-border)!important;cursor:pointer}.grapes-colour-tools #grapes-hex-colour{width:85px;padding:5px 8px;margin:0;font:12px monospace}.grapes-colour-tools button{font-size:11px;padding:5px 9px}#grapes-colour-selection{min-width:200px}.grapes-workspace{height:calc(96vh - 178px)}#modal.grapes-designer{position:relative}#grapes-full-preview{position:absolute;inset:0;z-index:500;background:#e8eeeb;display:flex;flex-direction:column;overflow:hidden}.grapes-preview-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:white;border-bottom:1px solid #ccd9d1;padding:12px 16px}.grapes-preview-toolbar button{font-size:12px;padding:7px 12px}.grapes-preview-toolbar label{font-size:11px;display:flex;gap:6px;align-items:center}.grapes-preview-toolbar select{width:190px;margin:0;font-size:12px;padding:6px}.grapes-preview-toolbar input[type=checkbox]{width:auto;margin:0}.grapes-preview-toolbar strong{font-size:16px}.grapes-preview-toolbar span{font-size:11px}.grapes-preview-toolbar button:last-child{margin-left:auto}#grapes-preview-loading{margin:0;padding:7px 16px;background:#f5f7f2;font-size:11px}#grapes-preview-stage{overflow:auto;flex:1;padding:16px}#grapes-preview-holder{position:relative;margin:auto;background:white;box-shadow:0 8px 25px #102d3220}#grapes-full-preview-frame{display:block;position:absolute;top:0;left:0;transform-origin:0 0;border:0;background:white;max-width:none}@media(max-width:1000px){.grapes-quick-tools{height:115px}.grapes-workspace{height:calc(96vh - 225px)}.grapes-preview-toolbar label select{width:150px}.grapes-colour-tools{gap:6px}#grapes-colour-selection{min-width:120px}}

.website-inline-editor{position:relative;min-width:0;margin-top:20px;border:1px solid var(--theme-border);border-radius:10px;overflow:hidden;background:var(--theme-surface)}.website-inline-editor .grapes-topbar{height:auto;min-height:90px;flex-wrap:wrap;padding:12px}.website-inline-editor .grapes-quick-tools{height:auto;min-height:85px;flex-wrap:wrap;padding:10px}.website-inline-editor .grapes-workspace{height:680px;grid-template-columns:170px minmax(0,1fr)}.website-inline-editor #grapes-page-nav{padding:10px}.website-inline-editor .grapes-topbar .actions{flex-wrap:wrap}.website-inline-editor #grapes-canvas{height:680px}.settings-page:has(.website-inline-editor) .managed-settings-layout{grid-template-columns:210px minmax(0,1fr)}.settings-page:has(.website-inline-editor) form{min-width:0}.flight-case-settings-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,1fr);gap:24px;align-items:start}.flight-case-settings-layout .sf-case-art{max-width:none!important}.flight-case-settings-preview{position:sticky;top:16px;grid-column:2;grid-row:1 / span 5}.flight-case-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.flight-case-palette label{margin:0}@media(max-width:1000px){.website-inline-editor .grapes-workspace{grid-template-columns:130px minmax(0,1fr)}.flight-case-settings-layout{display:block}.flight-case-settings-preview{position:relative;top:auto}}

.flight-case-palette input[type=color]{display:block;width:100%;height:38px;min-height:38px;padding:3px;cursor:pointer}.flight-case-settings-preview .sf-case-art{position:relative!important;top:auto!important}.website-inline-editor .grapes-topbar button,.website-inline-editor .grapes-quick-tools button{font-size:12px}

.quote-revenue-panel #quote-summary { padding: 0 20px; }
.quote-revenue-panel .totals dd { font-variant-numeric: tabular-nums; }
.quote-revenue-panel .totals .grand { padding-block: 14px; }
.quote-purchasing-panel { padding: 20px; }
.quote-purchasing-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.quote-purchasing-header h2 { margin: 0 0 4px; }
.quote-purchasing-header p { margin: 0; }
.quote-purchasing-header .actions { margin: 0; flex-wrap: wrap; }
.quote-purchasing-empty { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--theme-border); }

/* Quote information reads as a sequence of labelled form sections. */
.quote-information-layout .quote-info-panel {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 2fr);
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
  border-radius: 0;
  border-width: 0 0 1px;
  margin: 0;
}
.quote-information-layout .quote-info-panel[hidden] { display: none; }
.quote-information-layout .quote-info-heading { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
.quote-information-layout .quote-info-panel > :not(.quote-info-heading) { grid-column: 2; min-width: 0; }
.quote-information-layout .quote-info-panel .form-grid { gap: 14px 18px; }
.quote-information-layout .quote-record-meta { margin-block: 4px 0; }
.quote-information-layout .quote-purchasing-panel { margin-top: 18px; }
.quote-revenue-panel #quote-summary { padding-inline: 20px; }
.quote-section.quote-purchasing-panel { padding: 20px; }
@media (max-width: 1250px) {
  .quote-information-layout .quote-info-panel { display: block; }
  .quote-information-layout .quote-info-heading { margin-bottom: 14px; }
}
@media (max-width: 600px) {
  .quote-information-layout .quote-info-panel .form-grid { grid-template-columns: 1fr; }
}

.production-schedule { display: grid; gap: 8px; }
.production-schedule-row { display: grid; grid-template-columns: minmax(65px,.55fr) repeat(2,minmax(0,1fr)); align-items: center; gap: 8px; font-size: 12px; }
.production-schedule-row input { min-width: 0; width: 100%; margin: 0; padding-inline: 6px; }
@media(max-width:600px) { .production-schedule-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .production-schedule-row > strong:first-child { grid-column: 1 / -1; } }

.po-form-section { min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid var(--theme-border); border-radius: 8px; }
.po-form-section legend { padding: 0 6px; font-weight: 700; }

.purchasing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.purchasing-register { overflow: hidden; }
.purchasing-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(130px, 1fr)); gap: 12px; padding: 18px 20px 10px; max-width: 900px; }
.purchasing-filters label { display: block; margin: 0; }
.purchasing-filters input, .purchasing-filters select { width: 100%; margin: 5px 0 0; }
.purchasing-register-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 20px 14px; font-size: 12px; }
.purchasing-table { overflow-x: auto; border-top: 1px solid var(--theme-border); }
.purchasing-table table { min-width: 650px; }
.purchasing-table .purchasing-cost { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.purchasing-status { display: inline-block; padding: 3px 8px; border-radius: 12px; background: var(--theme-surfaceAlt); }
.purchasing-status.settled { color: #175844; background: #e4f3ec; }
.purchasing-status.due { color: #784311; background: #fff1dd; }
.purchasing-empty { margin: 0; padding: 24px 20px; }
@media (max-width: 720px) {
    .purchasing-actions { justify-content: flex-start; }
    .purchasing-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .purchasing-filters label:first-child { grid-column: 1 / -1; }
}

.quote-info-panel .chargeable-hire {
    padding: 14px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surfaceAlt);
}
.chargeable-hire-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.chargeable-hire-heading p { margin: 4px 0 0; font-size: 12px; }
.quote-info-panel .chargeable-hire-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.quote-info-panel .chargeable-hire-switch input[type="checkbox"] { width: 18px; min-height: 0; height: 18px; margin: 0; padding: 0; accent-color: var(--theme-primary); }
.chargeable-hire .form-grid { margin-top: 14px; }

.picker-product img, .equipment-product img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    object-position: center;
    padding: 5px;
}
.equipment-image-preview img { display: block; width: 160px; max-width: 100%; height: 130px; padding: 8px; background: var(--theme-surfaceAlt); }
