.tb-workspace{--accent:#F04393;color:#2F2E2E}.tb-workspace input,.tb-workspace select,.tb-workspace textarea{max-width:100%;min-height:44px}.tb-workspace fieldset{min-width:0}.tb-workspace .primary{background:#F04393;color:#fff}.tb-coverage{padding:20px;background:#fff;border:2px solid #F04393;border-radius:14px;margin:16px 0}.tb-tabs{display:flex;flex-wrap:wrap;margin:18px 0;gap:6px}.tb-tabs button[aria-pressed=true]{background:#F04393;color:white}.tb-fitter{padding:18px;background:white;border:1px solid #ddd;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}.tb-fitter a{color:#d32878;text-decoration:none}.tb-fitter p{margin:8px 0}.tb-badge{font-size:12px;border:1px solid #F04393;border-radius:12px;padding:3px 8px;display:inline-block}.tb-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tb-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.tb-card{border-left:5px solid #F04393;margin:12px 0;padding:16px;overflow-wrap:anywhere}.tb-card .card-head{gap:10px;flex-wrap:wrap}.tb-part{display:inline-flex;gap:5px;align-items:center;margin:5px 14px 5px 0}.tb-paid{background:#eff9f0!important;outline:1px solid #95bf9c}.tb-cancelled{opacity:.65}.tb-review{color:#80500b;background:#fff4da;padding:9px;border-radius:7px}.tb-week{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tb-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.tb-month>section{border:1px solid #ddd;min-height:100px;background:white;min-width:0;padding:4px}.tb-month h3{font-size:12px}.tb-month h3 button{font-size:12px;padding:3px;min-width:0}.tb-month .tb-card{padding:5px;font-size:11px;margin:5px 0}.tb-month .tb-card h3{font-size:12px}.tb-month .tb-card button{padding:4px}.tb-workspace .part-dot{width:14px;height:14px;border-radius:50%;border:2px solid #aaa;display:inline-block;flex-shrink:0}.tb-workspace .part-dot.ordered{background:#e8a523;border-color:#e8a523}.tb-workspace .part-dot.stock{background:#269454;border-color:#269454}.tb-workspace .dialog-body section{margin:18px 0}.tb-workspace .dialog-body fieldset{margin:10px 0;border:1px solid #ddd;border-radius:8px;padding:12px}.tb-workspace .dialog-footer{gap:10px;flex-wrap:wrap}.tb-workspace .quote-summary{padding:14px;border:1px solid #2F2E2E;border-radius:10px}.tb-workspace .check-label{display:flex;gap:10px;align-items:center}.tb-workspace .check-label input{width:20px;min-height:20px}.tb-workspace label{display:flex;flex-direction:column;gap:5px;margin:8px 0}.tb-workspace .check-label{flex-direction:row}.tb-workspace textarea{width:100%}@media(max-width:600px){.tb-filters,.tb-week{grid-template-columns:1fr}.tb-month{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-workspace .heading{gap:10px;flex-wrap:wrap}.tb-coverage{padding:12px}.tb-workspace .postcode-search{flex-wrap:wrap}.tb-workspace .postcode-search label{flex:1;min-width:180px}.tb-workspace .toolbar{flex-wrap:wrap}.tb-workspace .field-grid{grid-template-columns:1fr}.tb-workspace .dialog-footer button{flex:1}}

.workspace-switch [data-diary-workspace="towbars"][aria-pressed="true"]{background:#F04393;border-color:#F04393;color:#fff}

/* Whole-diary refresh: keep operational controls within a calmer reading order. */
.tb-workspace{--accent:#ae1e64}
.tb-workspace .primary,.tb-tabs button[aria-pressed=true]{background:#ae1e64;color:#fff}
.tb-tabs{padding:6px;border:1px solid #ddd9e0;border-radius:12px;background:#fff;gap:6px}
.tb-tabs button{flex:1;min-height:44px;white-space:normal}
.tb-coverage{border:1px solid #ddd9e0;box-shadow:none;margin:16px 0 24px}
.tb-coverage[hidden]{display:none}
.tb-workspace .tb-card{background:#fff;border:1px solid #ddd9e0;border-left:4px solid #f04393;border-radius:14px;box-shadow:none;padding:18px}
.tb-card .card-head{align-items:flex-start;flex-wrap:nowrap;gap:14px}
.tb-card .card-head h3{min-width:0;flex:1;margin:0;font-size:17px;line-height:1.35}
.tb-card .job-time{white-space:nowrap;font-size:14px;padding-top:2px}
.tb-card-total{display:grid;gap:3px;text-align:right;white-space:nowrap}
.tb-card-total b{font-size:18px}.tb-card-total small{color:#6d6570;font-size:11px}
.tb-card-meta{color:#6d6570}
.tb-card .tb-actions{border-top:1px solid #eee9ef;padding-top:12px;margin-top:12px;gap:8px}
.tb-workspace .tb-contact-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;color:#ae1e64;border:1px solid #ddd9e0;border-radius:8px;background:#fff;text-decoration:none;font-weight:700}
.tb-workspace .tb-contact-action:hover{background:#faf0f5}.tb-workspace .tb-contact-action:focus-visible{outline:3px solid #ae1e64;outline-offset:3px}
.tb-workspace .tb-open-job{background:#ae1e64;color:#fff;border-color:#ae1e64;font-weight:700}
.tb-parts-summary{display:flex;flex-wrap:wrap;gap:8px}
.tb-card .tb-part{display:grid;grid-template-columns:auto 1fr;gap:5px 8px;border:1px solid #e4dee7;background:#faf9fb;padding:8px 10px;border-radius:8px;margin:0;font-size:13px}
.tb-card .tb-part small{grid-column:2;color:#6d6570}
.tb-private-figures{margin:14px 0;color:#625768;font-size:13px}
.tb-private-figures summary{cursor:pointer;font-weight:650;min-height:44px;padding:12px 0;display:list-item}
.tb-profit-breakdown{display:grid;gap:8px;margin:0 0 10px;color:#2f2e2e}
.tb-profit-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
.tb-profit-breakdown dt small{font-size:11px;font-weight:400;color:#625768}
.tb-profit-breakdown dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tb-profit-breakdown .tb-profit-result{border-top:1px solid #e4dce3;padding-top:8px;font-weight:700}
.tb-private-figures>button{min-height:44px;white-space:normal}
.tb-private-figures>summary:focus-visible{outline:3px solid #ae1e64;outline-offset:2px;border-radius:4px}
.tb-filter-actions{display:flex;justify-content:flex-end;margin:0 0 10px}
.tb-filter-actions button{min-height:44px}
.tb-month .tb-profit-breakdown>div{display:block}.tb-month .tb-profit-breakdown dd{margin-top:3px}
.tb-payment-status{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:700}
.tb-payment-status span{background:#f4f1f6;border:1px solid #e4dee7;border-radius:7px;padding:6px 8px}
.tb-paid .tb-payment-status span:last-child{background:#eaf5ee;color:#17693b;border-color:#cee2d5}
.tb-workspace .tb-card.tb-paid{background:#fff!important}
.tb-week .tb-card .card-head,.tb-month .tb-card .card-head{flex-wrap:wrap;gap:5px}
.tb-week .tb-card .card-head h3,.tb-month .tb-card .card-head h3{flex-basis:100%;font-size:14px}
.tb-month .tb-card{padding:8px}.tb-month .tb-card .tb-actions{gap:4px}.tb-month .tb-card .tb-actions button{font-size:11px;min-height:36px}
#tbEditor:not([data-quote-flow]) .dialog-body>fieldset{border:0;margin:0;padding:0}
#tbEditor .tb-editor-section{border:1px solid #ddd9e0;background:#fff;border-radius:12px;margin:12px 0;overflow:hidden}
#tbEditor .tb-editor-section>summary{display:list-item;padding:16px 18px;cursor:pointer;color:#2f2e2e;min-height:44px;list-style-position:inside}
#tbEditor .tb-editor-section>summary>strong{font-size:16px}
#tbEditor .tb-editor-section>summary>span{display:block;color:#6d6570;line-height:1.45;margin:6px 0 0 18px;font-size:13px}
#tbEditor .tb-editor-section[open]>summary{background:#faf6f9;border-bottom:1px solid #eee5ed}
#tbEditor .tb-editor-section-body{padding:4px 18px 16px}
#tbEditor .tb-editor-section-body>section{margin:18px 0}
#tbEditor .tb-editor-section-body>section>h3{font-size:14px;color:#5c4e59;margin:0 0 12px}
#tbEditor .tb-editor-section-body>section+section{border-top:1px solid #eee9ef;padding-top:18px}
#tbEditor .tb-editor-section summary:focus-visible{outline:3px solid #ae1e64;outline-offset:-3px}
#tbEditor:not([data-quote-flow]) .dialog-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #ddd9e0;padding:14px 20px;z-index:2}
@media(max-width:600px){.tb-card .card-head{flex-wrap:wrap;gap:8px}.tb-card .card-head h3{flex-basis:calc(100% - 90px)}.tb-card-total{margin-left:auto}.tb-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tb-tabs button{font-size:13px;padding:8px}.tb-card .tb-actions>*{flex:1 1 88px;min-width:88px;overflow-wrap:normal;word-break:normal}.tb-workspace .tb-card{padding:14px}.tb-card .tb-part{width:100%}#tbEditor .tb-editor-section-body{padding:4px 12px 12px}#tbEditor .tb-editor-section>summary{padding:14px 12px}#tbEditor:not([data-quote-flow]) .dialog-footer{padding:12px}}

/* Direct service, readiness and receipt actions for full booking cards. */
.tb-card .tb-card-services{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.tb-card .tb-card-services .service{background:#fce3ef;border:1px solid #de9cba;color:#86184b;min-height:44px;white-space:normal}
.tb-card .tb-card-work-action{font-size:12px;min-height:44px}
.tb-card label.tb-part{flex:1 1 210px;min-width:0;max-width:100%;align-items:start}
.tb-card .tb-part span>small{display:block;margin-top:5px;overflow-wrap:anywhere}
.tb-card .tb-part select{grid-column:1/-1;width:100%;max-width:100%;border:1px solid #d2c7d2;border-radius:8px;background:#fff;padding:8px;font-size:13px;min-height:44px}
.tb-card-payment{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;background:#faf9fb;border:1px solid #e4dee7;border-radius:10px;padding:10px 12px;margin-top:12px}
.tb-card-payment>label{flex:1 1 180px;font-size:13px;font-weight:650;min-width:0}
.tb-card-payment>label select{width:100%;background:#fff;border:1px solid #d2c7d2;border-radius:8px;padding:8px;font-weight:400;min-height:44px}
.tb-card-payment .tb-payment-status{flex:1 1 160px;margin:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.tb-card-payment .tb-payment-status small{font-weight:500;line-height:1.5;color:#5e5463}
.tb-paid .tb-card-payment .tb-payment-status>span{background:#eaf5ee;color:#17693b;border-color:#cee2d5}
.tb-payment-actions{display:flex;flex-wrap:wrap;gap:8px;flex-basis:100%}
.tb-payment-actions>button{flex:1 1 160px;min-height:44px;white-space:normal}
@media(max-width:600px){.tb-card-payment{padding:10px}.tb-payment-actions>button{flex-basis:100%}.tb-card label.tb-part{width:100%}}

/* Short summary above the editable Nationwide sections. */
.tb-key-points{padding:16px;border:1px solid #efbdd4;border-top:4px solid #f04393;border-radius:12px;background:#fff7fb;margin:0 0 18px}
.tb-key-points h3{margin:0 0 12px}.tb-key-points dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
.tb-key-points dt{font-size:12px;font-weight:700;color:#86184b;margin-bottom:5px}.tb-key-points dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.tb-key-points>p{margin:14px 0 0;font-size:13px;border-top:1px solid #efbdd4;padding-top:10px}
.tb-supply-controls{padding:14px;background:#fff7fb;border:1px solid #efbdd4;border-radius:10px;margin:12px 0}
.tb-supply-controls>label{display:block;margin-bottom:12px}.tb-supply-controls select{width:100%;min-height:44px}
@media(max-width:600px){.tb-key-points dl{grid-template-columns:1fr}.tb-key-points,.tb-supply-controls{padding:12px}}

/* Nationwide booking: one short step at a time. */
#tbEditor[data-job-flow]{width:min(900px,calc(100vw - 32px));max-width:900px}
#tbEditor[data-job-flow] .dialog-heading{padding-bottom:14px;align-items:flex-start}
#tbEditor[data-job-flow] .dialog-heading h2{margin:4px 0;font-size:23px}
#tbEditor[data-job-flow] .tb-flow-context{margin:7px 0 0;color:#685c66;font-size:13px}
#tbEditor[data-job-flow] .tb-booking-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:0 20px 14px;border-bottom:1px solid #eee5ed;background:#fff}
#tbEditor[data-job-flow] .tb-booking-steps button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;white-space:normal;background:#faf8fa;border:1px solid #e6dfe6;padding:10px;min-height:74px;border-radius:10px;color:#6a5b66}
#tbEditor[data-job-flow] .tb-booking-steps button span{display:grid;place-items:center;width:23px;height:23px;border:1px solid #d6c8d2;border-radius:50%;font-size:12px;font-weight:700;background:#fff}
#tbEditor[data-job-flow] .tb-booking-steps button strong{font-size:12px;line-height:1.3}
#tbEditor[data-job-flow] .tb-booking-steps button[aria-current=step]{border-color:#ae1e64;background:#fff1f7;color:#86184b}
#tbEditor[data-job-flow] .tb-booking-steps button[aria-current=step] span{background:#ae1e64;border-color:#ae1e64;color:#fff}
#tbEditor[data-job-flow] .dialog-body{padding:0 20px 16px;scroll-behavior:auto}
#tbEditor[data-job-flow] .tb-flow-intro{color:#73626d;font-size:13px;line-height:1.5;margin:14px 0 18px}
#tbEditor[data-job-flow] .tb-flow-panel{margin:0}
#tbEditor[data-job-flow] .tb-flow-section{margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid #eee5ed}
#tbEditor[data-job-flow] .tb-flow-section>h3,#tbEditor[data-job-flow] .tb-flow-section-heading h3{margin:0;font-size:16px;color:#483b45}
#tbEditor[data-job-flow] .tb-flow-section>.small-note{margin:8px 0 12px}
#tbEditor[data-job-flow] .tb-flow-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#tbEditor[data-job-flow] .tb-text-action{border:0;background:transparent;color:#9b1c59;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px;padding:8px 4px;min-height:40px}
#tbEditor[data-job-flow] .tb-flow-section fieldset{border-color:#e7dfe5;border-radius:10px;background:#fdfcfd;padding:12px 14px}
#tbEditor[data-job-flow] .tb-flow-section legend{font-weight:650;font-size:13px;padding:0 5px}
#tbEditor[data-job-flow] .tb-work-choices{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
#tbEditor[data-job-flow] .tb-work-choices .choice{background:#fff7fb;border:1px solid #e7b9cd;color:#86184b;border-radius:9px;min-height:44px;white-space:normal}
#tbEditor[data-job-flow] .tb-work-choices .choice[aria-pressed=true]{background:#ae1e64;color:#fff;border-color:#ae1e64}
#tbEditor[data-job-flow] .tb-work-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
#tbEditor[data-job-flow] .tb-work-row>label{flex:1 1 160px}
#tbEditor[data-job-flow] .tb-work-row>label:has(input[type=number]){max-width:140px}
#tbEditor[data-job-flow] .tb-work-row>button{margin-left:auto}
#tbEditor[data-job-flow] .tb-empty-hint{padding:16px;border:1px dashed #d8c6d1;border-radius:9px;color:#7a6572;font-size:13px}
#tbEditor[data-job-flow] .tb-optional{border:1px solid #e5dce3;border-radius:10px;padding:0 13px;margin:14px 0;background:#fff}
#tbEditor[data-job-flow] .tb-optional>summary{padding:13px 0;font-size:13px;font-weight:650;color:#62505b;cursor:pointer}
#tbEditor[data-job-flow] .tb-optional[open]{padding-bottom:14px}
#tbEditor[data-job-flow] .tb-supply-controls{margin:14px 0 0;padding:14px;background:#fff7fb}
#tbEditor[data-job-flow] .tb-supply-controls>details{margin:8px 0 16px;font-size:13px}
#tbEditor[data-job-flow] .tb-supply-note{padding:13px 15px;border-radius:9px;background:#fff1f7;color:#7c2550;font-size:13px;line-height:1.5}
#tbEditor[data-job-flow] .tb-fitter-contact{font-size:13px;color:#62505b;line-height:1.5}
#tbEditor[data-job-flow] .tb-payment-step{padding:16px;border:1px solid #dce8df;border-radius:10px;background:#f7fbf8}
#tbEditor[data-job-flow] .tb-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#tbEditor[data-job-flow] .tb-review-grid p,#tbEditor[data-job-flow] .tb-review-parts{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
#tbEditor[data-job-flow] .tb-review-parts{padding-left:20px}
#tbEditor[data-job-flow] .tb-review-parts li{margin:7px 0}
#tbEditor[data-job-flow] .tb-receipt-confirmed{background:#e8f5ec;color:#1a6538;border-radius:8px;padding:12px;font-weight:650}
#tbEditor[data-job-flow] .dialog-footer{display:flex;justify-content:flex-end;padding:12px 20px;flex-wrap:nowrap}
#tbEditor[data-job-flow] .dialog-footer>button:first-child{margin-right:auto}
#tbEditor[data-job-flow] .dialog-footer>button{min-height:44px}
.tb-card-delivery,.tb-card-fitter-notes{margin:12px 0;font-size:13px}
.tb-card-delivery>summary,.tb-card-fitter-notes>summary{min-height:36px;cursor:pointer;color:#67515e;font-weight:650;padding:8px 0}
.tb-card-delivery .tb-parts-summary{margin-top:8px}
.tb-workspace .part-dot.dispatched{background:#5579c5;border-color:#5579c5}
.tb-workspace .part-dot.delivered{background:#269454;border-color:#269454}
@media(max-width:600px){
 #tbEditor[data-job-flow]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:8px}
 #tbEditor[data-job-flow] .dialog-heading{padding:14px 12px 10px}
 #tbEditor[data-job-flow] .dialog-heading h2{font-size:20px}
 #tbEditor[data-job-flow] .tb-booking-steps{gap:4px;padding:0 12px 10px}
 #tbEditor[data-job-flow] .tb-booking-steps button{align-items:center;justify-content:flex-start;text-align:center;padding:7px 3px;min-height:66px;gap:6px}
 #tbEditor[data-job-flow] .tb-booking-steps button strong{font-size:10px;line-height:1.3}
 #tbEditor[data-job-flow] .tb-booking-steps button span{width:21px;height:21px;font-size:11px}
 #tbEditor[data-job-flow] .dialog-body{padding:0 12px 12px}
 #tbEditor[data-job-flow] .tb-flow-intro{font-size:12px}
 #tbEditor[data-job-flow] .tb-review-grid{grid-template-columns:1fr;gap:0}
 #tbEditor[data-job-flow] .tb-flow-section-heading{align-items:flex-start}
 #tbEditor[data-job-flow] .dialog-footer{padding:10px 12px;gap:7px}
 #tbEditor[data-job-flow] .dialog-footer>button{flex:0 1 auto;padding:9px 14px;min-width:0}
 #tbEditor[data-job-flow] .dialog-footer>button.primary{flex:1;max-width:180px}
}
#tbEditor[data-job-flow] [hidden]{display:none!important}
#tbEditor[data-job-flow] .tb-saved-notice{padding:13px 15px;background:#ebf7ef;border:1px solid #c3decf;border-radius:10px;color:#1f683c;font-size:13px;line-height:1.5}
#tbEditor[data-job-flow] .outlook-import-compact{margin:12px 0;border:1px solid #e4dce3;background:#faf8fa;border-radius:10px;padding:0 13px}
#tbEditor[data-job-flow] .outlook-import-compact>details>summary{padding:12px 0;cursor:pointer;font-size:13px;font-weight:650;color:#67515e}
#tbEditor[data-job-flow] .outlook-import-compact>details[open]{padding-bottom:12px}
.tb-tools-menu{position:relative;font-size:13px;color:#6a5b66}.tb-tools-menu>summary{min-height:44px;padding:12px;cursor:pointer}.tb-tools-menu[open]{padding:0 8px 8px;border:1px solid #e4dce3;border-radius:10px;background:white}

.tb-eta-note{padding:10px 12px;border-left:3px solid #f04393;background:#fff5fa;border-radius:6px;font-size:.9rem;line-height:1.5}.tb-card .job-time{white-space:normal;overflow-wrap:anywhere}

/* Nationwide uses the same open-and-save rhythm as the local diary. */
#tbEditor[data-simple-booking] .tb-booking-steps{display:flex;flex-wrap:wrap;gap:.4rem;padding:.7rem 1rem}
#tbEditor[data-simple-booking] .tb-booking-steps button{flex:1 1 130px;min-width:0;padding:.6rem;font-size:.83rem}
#tbEditor[data-simple-booking] .tb-booking-steps button span{display:none}
.tb-booking-section{border:1px solid #e4dce2;border-radius:14px;background:#fff;margin:0 0 .8rem;overflow:clip}
.tb-booking-section>summary{padding:1rem;cursor:pointer;background:#fff7fb;display:flex;gap:.7rem;align-items:center;justify-content:space-between}
.tb-booking-section>summary strong{flex:1;color:#8d235b;font-size:1rem}
.tb-booking-section>summary span{font-size:.83rem;color:#665760;text-align:right;max-width:58%;overflow-wrap:anywhere}
.tb-booking-section>summary:before{content:'+';font-size:1.1rem;color:#a32a69}
.tb-booking-section[open]>summary:before{content:'−'}
.tb-booking-section .tb-flow-panel{padding:.85rem}
.tb-agreed-work{display:grid;gap:.4rem;margin-top:1rem;font-weight:700}
.tb-agreed-work textarea{font-weight:400;min-height:7rem}
.tb-work-list{padding-left:1.25rem;line-height:1.6}
@media(max-width:560px){#tbEditor[data-simple-booking] .tb-booking-steps{display:none}.tb-booking-section>summary{flex-wrap:wrap;gap:.4rem}.tb-booking-section>summary span{max-width:100%;width:100%;text-align:left;padding-left:1.2rem}}

.tb-delete-job{color:#9f1d48;border-color:#efd4df;background:#fff}.tb-deleted-card{border-style:dashed}.tb-deleted-card h3{margin:.1rem 0 .6rem}

