/* Shared handover identity and calmer working layout. */
:root{--line:#ddd9e0;--muted:#65616c;--action:#ae1e64;background:#f6f5f7}
button,summary,a,input,select,textarea{touch-action:manipulation}
summary{cursor:pointer}summary:focus-visible,select:focus-visible{outline:3px solid var(--action);outline-offset:3px}
button.primary{background:var(--action);border-color:var(--action);color:white}
.app{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;max-width:1400px;padding:24px}
.app>.header{grid-column:1/-1;grid-row:1}
.app>.workspace-switch{grid-column:1;grid-row:2;align-self:start}
.app>#localDiary,.app>#ghostWorkspace,.app>#enquiriesWorkspace,.app>#reportsWorkspace,.app>#nationwideDiary,.app>#towbarsWorkspace,.app>#quotesWorkspace{grid-column:2;grid-row:2;min-width:0}
.handover-header{background:#2f2e2e;color:white;border-radius:15px 15px 0 0;padding:22px 24px 20px;margin:0;position:relative;gap:24px;align-items:center;min-width:0}
.handover-header:after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(to right,#f04393 0 50%,#f9c449 50% 100%)}
.handover-header .brand{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1;gap:12px}
.handover-header .handover-logos{display:block;width:100%;max-width:690px;height:auto;min-width:0;object-fit:contain}
.handover-header .brand-caption{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px}
.handover-header .brand h1{font-size:18px;color:#fff;letter-spacing:-.3px}
.handover-header .brand p{font-size:12px;color:#e3dfe4;margin:0}
.handover-header .version{display:inline-block;font-size:10px;color:#c5bec8;margin-left:8px}
.handover-header .header-actions{width:auto;max-width:280px;display:flex;justify-content:flex-end;gap:8px;align-items:center;flex-wrap:wrap}
.handover-header .header-actions button{background:#fff;color:#2f2e2e;font-size:13px;min-height:42px;border-color:#fff;border-radius:8px}
.handover-header #findJob{min-width:115px}.handover-header #settingsButton{background:transparent;color:#fff;border-color:#77717a}
.add-menu{position:relative}.add-menu>summary{list-style:none;background:#ae1e64;color:#fff;padding:12px 18px;min-height:44px;border-radius:8px;font-size:13px;font-weight:700;white-space:nowrap}
.add-menu>summary::-webkit-details-marker{display:none}.add-menu-items{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:180px;background:white;padding:8px;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 30px #25202a25;display:grid;gap:6px}
.handover-header .add-menu-items button{text-align:left;border-color:var(--line);color:#2f2e2e}
.app>.workspace-switch{display:flex;flex-direction:column;gap:7px;border:0;margin:0;padding:10px 0;position:sticky;top:16px;background:transparent}
.workspace-switch>button{width:100%;text-align:left;white-space:normal;border:0;background:transparent;border-radius:8px;color:#55505e;font-size:14px;padding:13px 14px;font-weight:550;line-height:1.3;min-height:46px}
.workspace-switch>button[aria-pressed=true]{background:#f0e4ec;color:#9b1e5a;box-shadow:none;font-weight:700}
.workspace-label{font-size:10px;letter-spacing:1.4px;color:#76707d;padding:0 14px 14px;font-weight:700}.workspace-caption{font-size:12px;line-height:1.6;color:#79727f;padding:18px 14px;margin:16px 0 0;border-top:1px solid var(--line)}
.mobile-workspace{display:none}.toolbar{border-top:0;padding:0 0 16px;margin-bottom:18px;gap:12px}.toolbar .date-controls,.toolbar .view-controls{flex-wrap:wrap}
.heading{margin:20px 0 18px}.heading h2{font-size:25px;letter-spacing:-.5px}.heading p{color:#65616c;line-height:1.5}.local-badge{background:white;color:#65616c;white-space:normal;max-width:160px;font-size:11px}
.segmented{background:#eae7ed;border-radius:9px}.segmented button{border-radius:7px;font-size:13px}.segmented button[aria-pressed=true]{background:#ae1e64;color:white;box-shadow:none}
.diary-surface,.nw-surface,.fa-dialog{touch-action:pan-y pinch-zoom}.calendar-pane{top:16px}.month-overview{border-radius:12px}.day-cell[aria-selected=true],.week-row[aria-selected=true]{outline:2px solid #633b7c;outline-offset:-3px}.month-overview .day-cell.today .day-number{background:#ae1e64;color:white;border-radius:50%}
#connectionStatus{display:inline-block}.diary-search-controls{background:white;border:1px solid var(--line);border-radius:12px;padding:16px;margin:0 0 18px}.diary-search-controls label{min-width:0}
.booking-date-notice,.error-banner,.quote-demo-notice{overflow-wrap:anywhere}.booking-date-notice button{margin-bottom:6px}
#jobDialog{width:min(780px,calc(100% - 32px))}#jobForm .dialog-heading{background:#fff;border-top:4px solid #f04393}#jobForm .dialog-heading .eyebrow{color:#9b1e5a}#jobForm>.dialog-body{background:#f7f6f8;padding:16px 20px;min-height:0}
.editor-section{background:white;border:1px solid var(--line);border-radius:12px;margin:0 0 12px;overflow:clip}
.editor-section>summary{padding:16px 18px;display:flex;align-items:flex-start;flex-direction:column;gap:6px;list-style:none;position:relative;min-height:76px;padding-right:42px}
.editor-section>summary::-webkit-details-marker{display:none}.editor-section>summary:after{content:'+';position:absolute;right:18px;top:20px;font-size:20px;color:#9b1e5a}.editor-section[open]>summary:after{content:'−'}
.editor-section>summary>span{font-weight:700;font-size:14px;color:#343039}.editor-section>summary>small{font-size:12px;color:#716b78;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.editor-section[open]>summary{border-bottom:1px solid #ede9ef;background:#fcf9fb}.editor-section>section{padding:18px;margin:0}.editor-section>.appointment-planning{margin:12px 18px}.editor-section>#draftRecoveryStatus{margin:10px 18px}
#jobForm .saved-contacts{grid-column:1/-1;min-width:0;margin:0;padding:10px 12px;background:#f7f5f8;border-radius:8px}#jobForm .saved-contacts:empty{display:none}#jobForm .saved-contacts p:empty{display:none}#jobForm .saved-contacts button{font-size:12px;margin:3px 4px 3px 0;min-height:40px}
#jobForm input[name=email]{width:100%}#jobForm label:has(input[name=email]){grid-column:auto}#jobForm #vehicleSection,#jobForm #serviceFields{border-color:#ede9ef}
#jobForm .dialog-footer{flex-wrap:wrap;background:white}.editor-save-state{font-size:11px;color:#756d7a;flex:1;min-width:120px}.dialog-footer .footer-actions{margin-left:auto}.editor-section #paymentChoices{margin-top:12px}
.settings-group{border:1px solid var(--line);padding:14px;border-radius:10px;margin:16px 0;background:#fcfbfd}.settings-group>summary{font-weight:700;font-size:14px}.settings-group[open]>summary{margin-bottom:18px}.company-details strong{font-size:14px}.company-details p{font-size:13px;line-height:1.7}
#settingsDialog .dialog-body{padding-top:16px}#reportsWorkspace{padding:0}#reportsWorkspace .report-totals{gap:12px}#reportsWorkspace .report-row{border-radius:10px}
@media(min-width:901px){.app.quote-focus>.workspace-switch{display:flex}.app.quote-focus>.header{display:flex}}
@media(max-width:1100px) and (min-width:901px){.app{grid-template-columns:166px minmax(0,1fr);gap:20px;padding:18px}.handover-header .handover-logos{max-width:590px}.handover-header .header-actions{max-width:240px}.workspace-switch>button{padding:12px 10px;font-size:13px}.workspace.split{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:900px){
 .app{display:block;padding:14px}.handover-header{padding:18px 18px 16px;display:flex;flex-wrap:wrap;gap:14px;margin-bottom:16px}.handover-header .brand{flex-basis:100%;gap:10px}.handover-header .handover-logos{max-width:650px}.handover-header .header-actions{width:100%;max-width:none;justify-content:flex-end;gap:8px}.handover-header .brand h1{font-size:16px}.handover-header .version{font-size:9px}
 .mobile-workspace{display:flex;align-items:center;gap:12px;color:#655e6c;font-size:12px;margin-bottom:20px}.mobile-workspace select{flex:1;margin:0;font-size:14px;background:white;border-color:var(--line);font-weight:650;min-height:46px}.app>.workspace-switch,.app.quote-focus>.workspace-switch{display:none}
 .toolbar{padding-bottom:14px}.toolbar .date-controls,.toolbar .view-controls{width:auto}.view-controls .segmented{width:auto}.heading h2{font-size:23px}.heading{gap:8px;align-items:flex-start}.local-badge{max-width:120px;font-size:10px;padding:5px 8px}
}
@media(max-width:600px){
 .app{padding:10px}.handover-header{padding:16px 12px 14px;border-radius:11px 11px 0 0;gap:12px}.handover-header .brand-caption{gap:4px 10px}.handover-header .brand p{font-size:10px}.handover-header .brand p .version{display:none}.handover-header .header-actions{justify-content:flex-start}.handover-header .header-actions button{min-height:42px;padding:8px 11px;font-size:12px}.handover-header .add-menu{margin-left:auto}.add-menu>summary{min-height:42px;padding:11px 18px}.mobile-workspace{margin-bottom:18px}
 .toolbar .date-controls,.toolbar .view-controls{width:100%;justify-content:flex-start}.toolbar .date-controls{gap:6px}.date-controls .date-picker{margin-left:auto}.date-picker input{width:140px}.view-controls .segmented{width:100%}.view-controls .segmented button{flex:1}.heading h2{font-size:22px}.heading p{font-size:12px}.heading{margin-top:16px}
 .editor-section>summary{padding:14px 34px 14px 14px}.editor-section>section{padding:16px 14px}.editor-section>summary>span{font-size:13px}.editor-section>summary>small{font-size:11px}#jobDialog{width:100%;max-height:94dvh}#jobForm>.dialog-body{padding:12px}.editor-save-state{order:3;flex-basis:100%;text-align:right;min-width:0}.editor-section .field-grid{grid-template-columns:1fr}.editor-section .field-grid>.full{grid-column:1}.editor-section .postcode-search{flex-wrap:wrap}.editor-section .postcode-search label{min-width:150px}
 #jobForm .dialog-footer .footer-actions{flex-wrap:wrap}.month-overview .day-cell,.month-overview .day-open{min-height:82px}
}
@media(max-width:360px){.date-picker input{width:125px}.date-controls{gap:3px}.date-controls button{padding:7px 9px}.heading{flex-wrap:wrap}.handover-header .brand-caption{display:block}.handover-header .brand p{margin-top:4px}.toolbar button{font-size:12px}}
/* Keep the UK date text and native picker on the navigation row. */
.toolbar .date-picker{width:155px;min-width:0;flex-shrink:1}.toolbar .date-picker .uk-date-control{width:100%;min-width:0}.toolbar .date-picker .uk-date-text{width:100%;margin-top:0}
@media(max-width:360px){.toolbar .date-picker{width:135px}}
/* Private figures remain one tap away in both full and compact views. */
.finance-link{font-size:12px;min-height:44px;padding:8px 12px;color:#633b7c;background:#faf7fc;border:1px solid #ded4e5;border-radius:8px;white-space:normal}
.period-summary .finance-link{margin:0}.week-job-entry,.diary-result-entry{min-width:0;position:relative}.week-job-entry{padding:0 12px 10px;border-bottom:1px solid var(--line)}.week-job-entry .week-job{width:100%;border-bottom:0;padding-left:0;padding-right:0}.week-job-entry>.finance-link{margin-left:0}.diary-result-entry{background:#fff;border:1px solid var(--line);border-radius:10px;padding:4px 12px 12px}.diary-result-entry .diary-result{width:100%;border:0;padding-left:0;padding-right:0}
.finance-dialog{width:min(740px,calc(100% - 24px));max-height:90dvh}.finance-dialog .dialog-heading{border-top:4px solid #ae1e64}.finance-dialog h2{font-size:22px}.finance-dialog .dialog-body{overflow-y:auto}.finance-scope{color:var(--muted);margin:0 0 18px}.finance-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finance-totals .money-box{min-width:0;display:flex;flex-direction:column;gap:6px}.finance-totals small{font-size:12px;line-height:1.4}.finance-warning{padding:12px 14px;background:#fff6dc;border:1px solid #ebd38e;border-radius:8px;line-height:1.5}.finance-jobs{margin-top:20px}.finance-job{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:16px 0;border-top:1px solid var(--line)}.finance-job h3{font-size:15px;margin:0 0 5px}.finance-job p{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}.finance-job>div:nth-child(2){display:flex;flex-direction:column;gap:5px;text-align:right;font-size:12px}.finance-job>div:nth-child(2) strong{font-size:18px}.finance-job>button{justify-self:start;grid-column:1/-1;font-size:12px;min-height:42px}
@media(max-width:420px){.finance-totals{gap:8px}.finance-totals .money-box{padding:12px}.finance-totals b{font-size:20px}.finance-dialog .dialog-body{padding:16px}.finance-job{grid-template-columns:minmax(0,1fr)}.finance-job>div:nth-child(2){text-align:left;flex-direction:row;align-items:center;justify-content:space-between}.finance-dialog h2{font-size:20px}}
.finance-dialog[open]{display:flex;flex-direction:column}.finance-dialog>.dialog-heading{flex-shrink:0}.finance-dialog>.dialog-body{min-height:0;flex:1 1 auto}
.price-preview{grid-column:1/-1;width:100%}.margin-breakdown{margin:0;display:grid;gap:0;font-size:14px}.margin-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:9px 0;border-bottom:1px solid #e5e1d9}.margin-breakdown dt{font-weight:500;line-height:1.4}.margin-breakdown dt small{display:block;font-size:12px;color:var(--muted);font-weight:400}.margin-breakdown dd{margin:0;font-weight:700;white-space:nowrap}.margin-breakdown .margin-result{border-bottom:0;padding-top:12px;font-size:17px}.margin-result dd{font-size:21px}.margin-estimate-note{background:#fff6dc;border-left:3px solid #d2a539;padding:9px 11px;font-size:13px!important;line-height:1.5}.dc-margin-summary{padding:12px;border:1px solid #e3ddcb;background:#fff;border-radius:7px;margin:12px 0}.dc-margin-summary .small-note{margin-bottom:0}.finance-link strong{font-size:inherit}.finance-job small{font-size:12px;line-height:1.4;color:var(--muted);max-width:240px}

