/* Five-step appointment workspace. All rules stay inside the staff scheduler. */
.scheduler-workspace{--sc-ink:#14263f;--sc-muted:#63758e;--sc-line:#dce5f0;--sc-blue:#1768e5;max-width:1320px;margin:0 auto;padding:24px;background:#fff;color:var(--sc-ink);border:1px solid #e2e9f2;border-radius:15px;box-shadow:0 4px 18px #18375708;font:14px/1.5 "Segoe UI",Arial,sans-serif}
.scheduler-workspace *{box-sizing:border-box}
.scheduler-workspace [hidden],.scheduler-workspace .hidden{display:none!important}
.scheduler-workspace .sc-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px}
.scheduler-workspace .sc-header h2{margin:0;font-size:22px;color:var(--sc-ink)}
.scheduler-workspace h3,.scheduler-workspace h4,.scheduler-workspace .panel-head h2{font-size:18px;line-height:1.35;margin:0 0 10px;font-weight:650;color:var(--sc-ink)}
.scheduler-workspace .support-text,.scheduler-workspace p{font-size:13px;color:var(--sc-muted);line-height:1.6}
.scheduler-workspace .sc-context{display:flex;align-items:center;flex-wrap:wrap;gap:9px 20px;padding:12px 16px;border:1px solid #dce9ff;border-radius:8px;background:#edf4ff;font-size:13px;margin-bottom:20px}
.scheduler-workspace .sc-context .text-button{margin-left:auto;border:0;min-height:30px;padding:4px 8px;background:transparent;box-shadow:none}
.scheduler-workspace .sc-steps{display:flex;align-items:stretch;gap:10px;margin:10px 0 26px}
.scheduler-workspace .sc-step{flex:1;display:flex;align-items:center;gap:9px;text-align:left;padding:11px 6px;border:0;border-bottom:1px solid #e4eaf3;border-radius:0;background:transparent;color:#78869b;box-shadow:none;font:12px/1.4 "Segoe UI",Arial,sans-serif;min-height:52px;white-space:normal}
.scheduler-workspace .sc-step-number{flex:none;width:29px;height:29px;display:grid;place-items:center;border:1.5px solid #cbd8e9;background:#fff;color:#66758d;border-radius:50%;font-weight:650}
.scheduler-workspace .sc-step.is-active{color:#132a4b;border-bottom:2px solid var(--sc-blue);font-weight:650}
.scheduler-workspace .sc-step.is-active .sc-step-number,.scheduler-workspace .sc-step.is-complete .sc-step-number{color:#fff;background:var(--sc-blue);border-color:var(--sc-blue)}
.scheduler-workspace .sc-step:disabled{opacity:.45;cursor:default}
.scheduler-workspace .sc-intro{margin-bottom:22px}.scheduler-workspace .sc-intro h3{font-size:19px;margin-bottom:6px}.scheduler-workspace .sc-intro p{margin:0}
.scheduler-workspace .sc-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.scheduler-workspace .sc-card,.scheduler-workspace .sc-metric,.scheduler-workspace .sc-history,.scheduler-workspace .appointment-reason-editor-panel,.scheduler-workspace .bdc-step2-selector-card{margin:0;background:#fff;border:1px solid var(--sc-line);border-radius:12px;padding:23px;box-shadow:0 2px 5px #173b6805;min-width:0}
.scheduler-workspace .sc-guidance{background:#f7faff}.scheduler-workspace .sc-guidance h3{font-size:15px}
.scheduler-workspace .sc-stack{display:grid;gap:18px;min-width:0}
.scheduler-workspace .sc-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#536780;margin-bottom:8px;min-width:0}
.scheduler-workspace input,.scheduler-workspace select,.scheduler-workspace textarea{max-width:100%;width:100%;min-width:0;border:1px solid #d1ddeb;border-radius:8px;background:#fff;color:var(--sc-ink);min-height:43px;padding:10px 12px;font:13px/1.4 "Segoe UI",Arial,sans-serif;box-shadow:0 1px 2px #102c4e03}
.scheduler-workspace button.primary-button,.scheduler-workspace button.text-button,.scheduler-workspace .btn{border-radius:8px;min-height:42px;padding:10px 17px;font:600 13px/1.4 "Segoe UI",Arial,sans-serif;text-transform:none;letter-spacing:normal;white-space:normal}
.scheduler-workspace button.primary-button{background:var(--sc-blue);border:1px solid var(--sc-blue);color:#fff;box-shadow:0 2px 5px #1768e51a}
.scheduler-workspace button.text-button,.scheduler-workspace .btn-secondary{background:#fff;border:1px solid #ccd9eb;color:#24466f;box-shadow:none}
.scheduler-workspace button:hover:not(:disabled){border-color:#91b6ee}.scheduler-workspace button.primary-button:hover:not(:disabled){background:#1059c9}
.scheduler-workspace :focus-visible{outline:3px solid #a5c7ff;outline-offset:2px}
.scheduler-workspace .scheduler-search{display:flex;gap:10px;align-items:center;margin:0}.scheduler-workspace .scheduler-search .search-input{flex:1}
.scheduler-workspace #search-results{margin-top:23px}
.scheduler-workspace .customer-result{border:0;border-top:1px solid var(--sc-line);border-radius:0;background:transparent;padding:22px 0 0;gap:15px;margin-top:18px}
.scheduler-workspace .result-info{font-size:12px;color:var(--sc-muted);line-height:1.8;flex:1 1 250px}
.scheduler-workspace .result-info strong{font-size:17px;color:var(--sc-ink)}
.scheduler-workspace .bdc-customer-header-actions{margin-left:0;flex-wrap:wrap;gap:7px}
.scheduler-workspace .bdc-customer-header-actions button{min-height:35px;height:auto;min-width:0;width:auto;flex:0 1 auto;padding:8px 10px;font-size:12px}
.scheduler-workspace .bdc-customer-vehicle-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;background:none;flex:1 0 100%;width:100%}
.scheduler-workspace .bdc-customer-vehicle-list>.eyebrow{grid-column:1/-1;font-size:12px;color:var(--sc-muted)}
.scheduler-workspace .bdc-customer-vehicle-row{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:12px;border:1px solid var(--sc-line);border-radius:10px;padding:17px;background:#fff;min-width:0}
.scheduler-workspace .bdc-customer-vehicle-row>div{min-width:0;overflow-wrap:anywhere}
.scheduler-workspace .bdc-customer-vehicle-row strong{font-size:14px}.scheduler-workspace .bdc-customer-vehicle-row span,.scheduler-workspace .bdc-customer-vehicle-row small{font-size:12px;color:var(--sc-muted)}
.scheduler-workspace .bdc-customer-vehicle-row button{align-self:flex-start}
.scheduler-workspace .appointment-form{margin:0;padding:0;background:none;border:0;box-shadow:none}
.scheduler-workspace .appointment-form-card.bdc-flow-card{padding:0;margin:0;background:none;border:0;box-shadow:none;max-width:none}
.scheduler-workspace .sc-accessible-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.scheduler-workspace .sc-customer-details{margin:0 0 20px;font-size:13px;border:1px solid var(--sc-line);border-radius:10px;padding:13px 16px}
.scheduler-workspace .sc-customer-details summary{cursor:pointer;color:#426385;font-size:12px}
.scheduler-workspace .sc-customer-details .customer-vehicle-info{margin-top:12px;border:0;padding:0}.scheduler-workspace .sc-customer-details .customer-vehicle-info p{font-size:12px}
.scheduler-workspace .sc-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}
.scheduler-workspace .sc-metric{padding:18px 22px}.scheduler-workspace .sc-metric .eyebrow{font-size:12px;letter-spacing:normal;text-transform:none;color:var(--sc-muted)}
.scheduler-workspace .sc-metric p{font-weight:400!important;font-size:12px!important;color:var(--sc-muted)!important}
.scheduler-workspace .sc-metric #bdc-customer-pay-total,.scheduler-workspace .sc-metric #bdc-customer-pay-labour-total,.scheduler-workspace .sc-metric #bdc-reward-points{display:block;font-size:27px!important;line-height:1.35;font-weight:650!important;color:var(--sc-ink)!important;letter-spacing:-.6px}
.scheduler-workspace .sc-tools h3{font-size:15px}.scheduler-workspace .sc-tools p{font-size:12px}
.scheduler-workspace .sc-tool-list{display:grid;gap:11px}
.scheduler-workspace .sc-tool-list button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:13px;width:100%;min-width:0;gap:5px}
.scheduler-workspace .sc-tool-list button.is-active{border-color:var(--sc-blue);background:#f1f6ff;color:#145cc9}
.scheduler-workspace .sc-tool-list button strong{font-size:13px;font-weight:600}
.scheduler-workspace .sc-tool-list button small{font-size:11px;font-weight:400;color:var(--sc-muted)}
.scheduler-workspace .bdc-prediction-toolbar{display:flex;gap:12px;align-items:end;margin:22px 0}
.scheduler-workspace .bdc-prediction-toolbar label{flex:1;font-size:12px;min-width:0;color:var(--sc-muted)}
.scheduler-workspace .bdc-prediction-toolbar button{min-height:43px;flex:0 0 auto;width:auto}
.scheduler-workspace #ai-recommendations>.panel{border:0;padding:0;box-shadow:none;background:none}
.scheduler-workspace #ai-recommendations .empty-state{border:1px dashed #d4dfed;border-radius:9px;background:#fcfdff;padding:27px 20px;min-height:115px;font-size:13px;line-height:1.65;color:var(--sc-muted)}
.scheduler-workspace #ai-recommendations .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.scheduler-workspace .recommendation-card,.scheduler-workspace .bundle-card{min-width:0;background:#fff;border:1px solid var(--sc-line);box-shadow:none}
.scheduler-workspace .recommendation-card .panel-actions,.scheduler-workspace .bundle-card .panel-actions{display:flex;flex-wrap:wrap;gap:8px}
.scheduler-workspace .recommendation-card .panel-actions button{flex:1;min-width:0;padding:8px 10px;font-size:12px}
.sc-maintenance-dialog .sc-maintenance-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #e9eef5}
.sc-maintenance-dialog .sc-maintenance-row:last-child{border:0;padding-bottom:0}
.sc-maintenance-dialog .sc-maintenance-row strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.sc-maintenance-dialog .sc-maintenance-row small{display:block;margin-top:4px;color:var(--sc-muted);font-size:12px}
.sc-maintenance-dialog .sc-maintenance-row button{flex:none;min-height:35px;padding:7px 12px;font-size:12px}
.scheduler-workspace .sc-history{margin-top:20px}.scheduler-workspace .sc-history summary{cursor:pointer;font-size:14px;font-weight:650}
.scheduler-workspace .sc-history .support-text{display:block;margin-top:10px;font-size:12px}.scheduler-workspace .sc-history ul{padding-left:18px}
.scheduler-workspace .sc-summary{overflow-wrap:anywhere}
.scheduler-workspace .sc-summary h3{font-size:15px}
.scheduler-workspace .sc-summary p{font-size:12px;margin:7px 0}
.scheduler-workspace .sc-summary hr{border:0;border-top:1px solid var(--sc-line);margin:20px 0}
.scheduler-workspace .sc-summary-list{margin:0;font-size:13px}
.scheduler-workspace .sc-summary-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:14px 0}
.scheduler-workspace .sc-summary-list dt{color:var(--sc-muted)}.scheduler-workspace .sc-summary-list dd{font-weight:600;margin:0;text-align:right}.scheduler-workspace .sc-summary-amount{font-size:23px}
.scheduler-workspace .appointment-reason-editor-panel>.panel-head{margin-bottom:18px}
.scheduler-workspace .appointment-reason-editor-panel .eyebrow{display:none}
.scheduler-workspace .appointment-reason-editor-content{padding:0;background:none;border:0}
.scheduler-workspace .editor-reason-list{padding:0;display:grid;gap:0}
.scheduler-workspace .editor-reason-list .reason-item{grid-template-columns:minmax(200px,24ch) minmax(120px,1fr) 88px 100px 32px;gap:10px;align-items:start;padding:16px 0;border:0;border-bottom:1px solid #e7edf5;border-radius:0;background:none;box-shadow:none}
.scheduler-workspace .editor-reason-list .reason-item:first-child{padding-top:0}
.scheduler-workspace .reason-item>label{font-size:11px;color:var(--sc-muted);display:flex;flex-direction:column;gap:7px;min-width:0}
.scheduler-workspace .reason-item input,.scheduler-workspace .reason-item textarea{min-height:43px;height:auto;padding:9px;font-size:12px}
.scheduler-workspace .reason-item .bdc-service-opt-code-input{font:12px/1.4 Consolas,monospace;min-width:0;width:100%;height:43px;padding-inline:7px;text-align:left;color:var(--sc-ink);background:#fff}
.scheduler-workspace .service-item-delete{width:32px;min-width:32px;min-height:35px;margin-top:23px;padding:0;border:1px solid #f1c5cf;border-radius:8px;color:#b6455b;background:#fff}
.scheduler-workspace .reason-editor-input-row{margin-top:18px;display:grid;grid-template-columns:minmax(0,1fr) 80px 36px;gap:8px;padding:12px;border:1px solid #e4ecf6;background:#f7faff;border-radius:9px}
.scheduler-workspace .reason-editor-input-row input{width:100%;font-size:12px}
.scheduler-workspace .reason-editor-input-row .add-service-item-button{min-width:0;width:36px;min-height:43px;padding:0}
.scheduler-workspace .bdc-step2-selector-card{padding:18px;min-width:0}
.scheduler-workspace .bdc-step2-selector-card .eyebrow{display:block;letter-spacing:normal;text-transform:none;font-size:12px;color:var(--sc-muted);margin-bottom:7px}
.scheduler-workspace .bdc-step2-selector-card label{display:block;margin:0}
.scheduler-workspace .bdc-step2-selector-card select{min-height:43px;font-size:13px}
.scheduler-workspace .bdc-step2-selector-card~.support-text{margin-top:8px}
.scheduler-workspace .bdc-calendar-layout{display:block}
.scheduler-workspace .bdc-calendar-categories{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;width:100%;max-width:none;margin:0 0 15px;padding:0;background:none;border:0}
.scheduler-workspace .bdc-calendar-categories button{font-size:11px;padding:7px 9px;min-height:34px;min-width:0;width:auto}
.scheduler-workspace #bdc-calendar-grid{overflow-x:auto;max-width:100%}
.scheduler-workspace .services-due-section.sc-card{min-width:0}
.scheduler-workspace .sc-review-service{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--sc-line);font-size:13px}
.scheduler-workspace .sc-review-service:last-child{border:0;padding-bottom:0}
.scheduler-workspace .sc-review-service small{display:block;font-size:12px;color:var(--sc-muted);margin-top:4px}
.scheduler-workspace .sc-review-service strong{font-weight:600;overflow-wrap:anywhere}
.scheduler-workspace #bdc-final-summary-services{display:none}
.scheduler-workspace .bdc-confirmation-grid{max-width:none}
.scheduler-workspace .bdc-confirmation-row{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:8px}
.scheduler-workspace .bdc-confirmation-row input{width:100%;font-size:12px}
.scheduler-workspace .bdc-confirmation-row button{width:100%;padding:8px;min-height:43px;font-size:11px}
.scheduler-workspace .bdc-reminder-button-wide{width:100%;font-size:12px}
.scheduler-workspace .sc-footer{border-top:1px solid #e3ebf4;margin-top:26px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.scheduler-workspace .sc-footer>button{min-width:125px}.scheduler-workspace .sc-footer>span{font-size:12px;color:var(--sc-muted)}
.scheduler-workspace .sc-validation:empty{display:none}.scheduler-workspace .sc-validation{color:#b33247}
.scheduler-workspace #bdc-booking-status[data-kind="success"]{border:1px solid #b9e1ca;background:#eff9f3;color:#226743;padding:16px;border-radius:10px;font-weight:600}
@media(max-width:1250px){.scheduler-workspace .sc-grid{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.scheduler-workspace .sc-card{padding:20px}.scheduler-workspace .editor-reason-list .reason-item{grid-template-columns:minmax(0,1fr) 88px 100px 32px}.scheduler-workspace .bdc-service-code-field{grid-column:1/-1;width:220px;max-width:100%}}
@media(max-width:900px){.scheduler-workspace .sc-grid{grid-template-columns:1fr}.scheduler-workspace .sc-tools{grid-row:1}.scheduler-workspace .sc-tool-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.scheduler-workspace .sc-tool-list button{align-items:center;text-align:center;padding:10px 7px}.scheduler-workspace .sc-tool-list small{display:none}.scheduler-workspace .sc-tool-list strong{font-size:12px}.scheduler-workspace .sc-step{justify-content:center;text-align:center;flex-direction:column;font-size:11px;gap:7px}.scheduler-workspace .sc-metric{padding:16px}.scheduler-workspace #ai-recommendations .card-grid{grid-template-columns:1fr}}
@media(max-width:600px){.scheduler-workspace{padding:17px;border-radius:12px;max-width:100%}.scheduler-workspace .sc-header h2{font-size:20px}.scheduler-workspace .sc-header>.text-button{min-width:0;min-height:32px;padding:6px 8px;font-size:11px}.scheduler-workspace .sc-context{font-size:11px;gap:4px 12px;padding:10px 12px}.scheduler-workspace .sc-context strong{width:100%}.scheduler-workspace .sc-context .text-button{margin-left:0;padding:3px 0;font-size:11px;min-height:26px}.scheduler-workspace .sc-steps{gap:3px;margin-bottom:23px}.scheduler-workspace .sc-step{padding:8px 1px 12px;font-size:9px;line-height:1.35}.scheduler-workspace .sc-step-number{width:26px;height:26px;font-size:11px}.scheduler-workspace .sc-intro h3{font-size:18px}.scheduler-workspace .sc-card,.scheduler-workspace .appointment-reason-editor-panel{padding:17px}.scheduler-workspace .scheduler-search{gap:7px}.scheduler-workspace .scheduler-search button{padding:10px 13px;flex:none}.scheduler-workspace .sc-grid{gap:15px}.scheduler-workspace .sc-metrics{gap:7px;margin-bottom:15px}.scheduler-workspace .sc-metric{padding:12px 9px}.scheduler-workspace .sc-metric .eyebrow{font-size:10px;line-height:1.4;min-height:28px;display:block}.scheduler-workspace .sc-metric p{font-size:10px!important}.scheduler-workspace .sc-metric #bdc-customer-pay-total,.scheduler-workspace .sc-metric #bdc-customer-pay-labour-total,.scheduler-workspace .sc-metric #bdc-reward-points{font-size:20px!important}.scheduler-workspace .sc-metric small{font-size:9px!important}.scheduler-workspace .sc-tool-list{gap:5px}.scheduler-workspace .sc-tool-list strong{font-size:10px}.scheduler-workspace .sc-tool-list button{padding:9px 5px;min-height:42px}.scheduler-workspace .bdc-prediction-toolbar{gap:8px}.scheduler-workspace .bdc-prediction-toolbar label{font-size:11px}.scheduler-workspace .bdc-prediction-toolbar button{font-size:11px;padding:10px}.scheduler-workspace .bdc-customer-vehicle-list{grid-template-columns:1fr}.scheduler-workspace .sc-history{margin-top:15px}.scheduler-workspace .sc-summary-amount{font-size:22px}.scheduler-workspace .editor-reason-list .reason-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px;gap:10px}.scheduler-workspace .bdc-service-code-field,.scheduler-workspace .bdc-service-description-input{grid-column:1/-1}.scheduler-workspace .service-item-delete{grid-column:3;grid-row:3;width:28px;min-width:28px}.scheduler-workspace .reason-editor-input-row{grid-template-columns:minmax(0,1fr) 36px;padding:10px;gap:7px}.scheduler-workspace #bdc-service-draft-price{grid-row:2}.scheduler-workspace .reason-editor-input-row .add-service-item-button{grid-column:2;grid-row:1}.scheduler-workspace .sc-footer{gap:9px;margin-top:20px;padding-top:17px}.scheduler-workspace .sc-footer>button{min-width:0;font-size:11px;padding:10px 11px}.scheduler-workspace .sc-footer>span{font-size:10px}.sc-maintenance-dialog .sc-maintenance-row{gap:10px}.sc-maintenance-dialog .sc-maintenance-row strong{font-size:12px}.sc-maintenance-dialog .sc-maintenance-row small{font-size:11px}.scheduler-workspace .sc-review-service{font-size:12px}.scheduler-workspace .sc-customer-details{padding:11px}.scheduler-workspace .bdc-step2-selector-card{width:100%}.scheduler-workspace .card-grid{grid-template-columns:1fr!important;min-width:0}.scheduler-workspace .bdc-add-customer-card{padding:12px}.scheduler-workspace .bdc-customer-edit-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.scheduler-workspace *{scroll-behavior:auto!important;transition:none!important}}
.scheduler-workspace .sc-customer-name{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.scheduler-workspace .sc-customer-name .text-button{margin-left:0}.scheduler-workspace .sc-steps{display:none!important}.scheduler-workspace .sc-history{margin-top:20px}
.scheduler-workspace .sc-header h2{display:none}.scheduler-workspace .sc-header{justify-content:flex-end;margin-bottom:12px}.scheduler-workspace .sc-customer-details:not([open]){display:none}

/* Flat staff workspace: use spacing and rows instead of nested cards. */
.scheduler-workspace{border:0;border-radius:0;box-shadow:none;font-size:15px;--sc-muted:#465a73}
.scheduler-workspace #bdc-step-1>.sc-grid{grid-template-columns:minmax(0,1fr)}
.scheduler-workspace #bdc-step-1 .sc-guidance{display:none!important}
.scheduler-workspace .sc-card,.scheduler-workspace .sc-metric,.scheduler-workspace .sc-history,.scheduler-workspace .appointment-reason-editor-panel,.scheduler-workspace .bdc-step2-selector-card{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
.scheduler-workspace .sc-stack{gap:28px}
.scheduler-workspace .sc-field,.scheduler-workspace .result-info,.scheduler-workspace .support-text,.scheduler-workspace p{font-size:14px;line-height:1.7}
.scheduler-workspace .eyebrow{letter-spacing:normal;text-transform:none;font-size:13px;color:var(--sc-muted)}
.scheduler-workspace .bdc-customer-vehicle-list{display:flex;flex-direction:column;gap:0}
.scheduler-workspace .bdc-customer-vehicle-row{flex-direction:row;align-items:center;padding:18px 0;border:0;border-bottom:1px solid var(--sc-line);border-radius:0;background:transparent;gap:20px}
.scheduler-workspace .bdc-customer-vehicle-row strong{font-size:15px}
.scheduler-workspace .bdc-customer-vehicle-row span,.scheduler-workspace .bdc-customer-vehicle-row small{font-size:14px}
.scheduler-workspace .bdc-customer-vehicle-row button{align-self:center;flex-shrink:0}
.scheduler-workspace .bdc-customer-appointments-summary,.scheduler-workspace .bdc-customer-notes,.scheduler-workspace .sc-customer-details{border:0;border-radius:0;box-shadow:none;background:transparent;padding:16px 0}
.scheduler-workspace .sc-history{padding-block:24px;border-top:1px solid var(--sc-line)}
.scheduler-workspace .sc-metrics{gap:24px;padding-block:20px;border-bottom:1px solid var(--sc-line);margin-bottom:28px}
.scheduler-workspace .sc-metric{padding:0}
.scheduler-workspace #ai-recommendations .card-grid{display:block}
.scheduler-workspace .recommendation-card,.scheduler-workspace .bundle-card{border:0;border-bottom:1px solid var(--sc-line);border-radius:0;background:transparent;box-shadow:none;padding:20px 0;margin:0}
.scheduler-workspace .sc-summary{padding-inline-start:24px;border-inline-start:1px solid var(--sc-line)}
.scheduler-workspace .sc-summary-list,.scheduler-workspace .sc-summary p{font-size:14px}
.scheduler-workspace .reason-editor-input-row{background:transparent;border:0;border-radius:0;padding-inline:0}
.scheduler-workspace .sc-validation[data-kind="success"]{color:#226743;font-weight:600}
@media(max-width:900px){.scheduler-workspace .sc-summary{padding-inline-start:0;border-inline-start:0;border-top:1px solid var(--sc-line);padding-top:24px}}
@media(max-width:600px){.scheduler-workspace{padding:17px}.scheduler-workspace .bdc-customer-vehicle-row{gap:12px}.scheduler-workspace .sc-metric .eyebrow{font-size:12px}.scheduler-workspace .sc-metric small{font-size:11px!important}}

/* Separate, readable repair-order history in the desktop staff Scheduler. */
.scheduler-workspace .bdc-customer-vehicle-row button[data-action="bdc-select-customer"]{border:1px solid #1768e5;border-radius:0;color:#145cc9;background:#fff;min-height:42px;min-width:72px}
.scheduler-workspace .sc-history{border:1px solid var(--sc-line);border-radius:10px;background:#fff;box-shadow:none;padding:22px;margin-top:28px}
.scheduler-workspace .sc-history>summary{font-size:17px;font-weight:400;margin:0}
.scheduler-workspace .bdc-ro-year-group{margin-top:22px}
.scheduler-workspace .bdc-ro-year-group>summary{display:flex;gap:12px;align-items:center;font-size:15px;font-weight:400;padding-block:10px;cursor:pointer}
.scheduler-workspace .bdc-ro-year-group>summary:before{content:'›';font-size:20px}.scheduler-workspace .bdc-ro-year-group[open]>summary:before{content:'⌄'}
.scheduler-workspace .sc-ro-count{color:var(--sc-muted);font-size:13px}
.scheduler-workspace .bdc-ro-history-list{list-style:none;padding:0;margin:0}
.scheduler-workspace .bdc-ro-history-item{border:0;border-top:1px solid var(--sc-line);padding:0;margin:0}
.scheduler-workspace .bdc-ro-entry>summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 18px;gap:20px;align-items:center;padding:18px 0;font-size:14px;font-weight:400;cursor:pointer}
.scheduler-workspace .bdc-ro-entry>summary:after{content:'+';color:#1768e5;font-size:21px}.scheduler-workspace .bdc-ro-entry[open]>summary:after{content:'−'}
.scheduler-workspace .bdc-ro-entry>summary span{min-width:0;overflow-wrap:anywhere}
.scheduler-workspace .bdc-ro-entry small{display:block;font-size:12px;color:var(--sc-muted);font-weight:400;margin-bottom:4px}
.scheduler-workspace .bdc-ro-history-details{padding:4px 0 22px;font-size:14px;line-height:1.7}
.scheduler-workspace .sc-ro-services{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:28px}
.scheduler-workspace .sc-ro-services h5{font-size:14px;font-weight:400;margin:0 0 8px;color:#465a73}
.scheduler-workspace .sc-ro-services ul{margin:0;padding-inline-start:18px}.scheduler-workspace .sc-ro-services li{margin-bottom:6px;overflow-wrap:anywhere}
.scheduler-workspace .sc-ro-costs{display:flex;flex-wrap:wrap;gap:20px 48px;margin:22px 0 0;padding-top:16px;border-top:1px solid #edf1f6}
.scheduler-workspace .sc-ro-costs dt{font-size:12px;color:var(--sc-muted)}.scheduler-workspace .sc-ro-costs dd{font-size:16px;margin:3px 0 0;font-weight:400}
@media(max-width:600px){.scheduler-workspace .sc-history{padding:17px}.scheduler-workspace .bdc-ro-entry>summary{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 18px}.scheduler-workspace .sc-ro-mileage{grid-column:1/3}.scheduler-workspace .bdc-ro-entry>summary:after{grid-column:3;grid-row:1}.scheduler-workspace .sc-ro-services{grid-template-columns:minmax(0,1fr);gap:20px}}

.scheduler-workspace .sc-recommendation-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:10px 24px;font-size:16px;line-height:1.5}
.scheduler-workspace .sc-recommendation-heading strong{font-weight:600}
.scheduler-workspace .sc-recommendation-price{color:#14263f;font-weight:400;white-space:nowrap}
.sc-maintenance-dialog{width:min(960px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:26px;border:1px solid #dce5f0;border-radius:12px;background:#fff;color:#14263f;box-shadow:0 16px 60px #14263f33}
.sc-maintenance-dialog::backdrop{background:#14263f70}
.sc-maintenance-dialog .sc-maintenance-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.sc-maintenance-dialog .sc-maintenance-header h2{font-size:21px;margin:0;font-weight:600}
.sc-maintenance-dialog .sc-maintenance-header{flex-wrap:wrap;gap:12px}
.sc-maintenance-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}
.sc-maintenance-actions button{min-height:40px}
.sc-maintenance-notice{flex-shrink:0;margin:0 0 16px;padding:12px 14px;border:1px solid var(--sc-line,#dce5f0);border-radius:8px;background:#f3f7fd;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.sc-maintenance-dialog .sc-maintenance-content>h3{display:none}
@media(max-width:600px){.sc-maintenance-dialog{padding:18px}.sc-maintenance-dialog .sc-maintenance-header h2{font-size:18px}}

.scheduler-workspace .recommendation-card.sc-recommendation-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 26px;align-items:center;padding:20px 0}
.scheduler-workspace .sc-recommendation-row>.text-button{min-height:42px;color:#174e97;text-align:start;box-shadow:none}
.scheduler-workspace .sc-recommendation-row .sc-recommendation-heading{justify-content:flex-start;gap:10px 20px;font-size:15px}
.scheduler-workspace .sc-recommendation-row .sc-recommendation-heading strong{font-weight:500}
.scheduler-workspace .sc-recommendation-row .panel-actions{margin-top:0!important;gap:8px;flex-wrap:nowrap}
.scheduler-workspace .sc-recommendation-row .panel-actions button{flex:none;min-width:80px;min-height:38px;padding:8px 13px}
@media(max-width:600px){.scheduler-workspace .recommendation-card.sc-recommendation-row{grid-template-columns:minmax(0,1fr);gap:9px}.scheduler-workspace .sc-recommendation-row .panel-actions{justify-content:flex-start}}

/* Align labelled service fields; short operation codes stay compact. */
.scheduler-workspace .editor-reason-list .reason-item{grid-template-columns:max-content minmax(0,1fr) 88px 100px 32px;align-items:start}
.scheduler-workspace .reason-item>label{line-height:16px;gap:7px;margin:0;min-width:0}
.scheduler-workspace .reason-item .bdc-service-code-field{grid-column:auto;width:max-content;max-width:24ch}
.scheduler-workspace .reason-item .bdc-service-description-field{grid-column:auto}
.scheduler-workspace .reason-item .bdc-service-opt-code-input{max-width:100%;background:#edf4ff;border:1px solid #82b0f7;color:#174e97;font-weight:600;border-radius:3px;height:43px;min-height:43px}
.scheduler-workspace .reason-item .bdc-service-description-input{grid-column:auto;width:100%;height:43px;min-height:43px;resize:vertical;margin:0}
.scheduler-workspace .reason-item .bdc-service-hours-input,.scheduler-workspace .reason-item .bdc-service-price-input{height:43px;margin:0}
.scheduler-workspace .reason-item .service-item-delete{margin-top:23px;height:43px}
@media(max-width:900px){.scheduler-workspace .editor-reason-list .reason-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.scheduler-workspace .reason-item .bdc-service-code-field,.scheduler-workspace .reason-item .bdc-service-description-field{grid-column:1/-1}.scheduler-workspace .reason-item .service-item-delete{grid-column:3;grid-row:3}}

.scheduler-workspace .sc-context{display:none!important}
.scheduler-workspace .reason-item .bdc-service-code-field{max-width:none}

@media(min-width:901px){.scheduler-workspace .editor-reason-list{grid-template-columns:max-content minmax(0,1fr) 88px 100px 32px;column-gap:10px}.scheduler-workspace .editor-reason-list .reason-item{grid-column:1/-1;grid-template-columns:subgrid}}

/* Staff Scheduler wording engine: fixed action header and a simple reading surface. */
.bdc-wording-service-dialog.bdc-wording-modal-card{display:flex;flex-direction:column;gap:0;padding:0;width:min(960px,calc(100vw - 32px));max-width:960px;max-height:calc(100dvh - 48px);overflow:hidden;border:1px solid #dce5f0;border-radius:14px;background:#fff;color:#14263f;box-shadow:0 20px 70px #14263f30}
.bdc-wording-service-dialog .bdc-wording-modal-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px;margin:0;background:#f8faff;border-bottom:1px solid #dce5f0;flex-shrink:0}
.bdc-wording-service-dialog .bdc-wording-modal-header>div:first-child{min-width:0;flex:1}
.bdc-wording-service-dialog .eyebrow{font-size:11px;letter-spacing:.08em;color:#526780}
.bdc-wording-service-dialog h2{font-size:21px;line-height:1.35;margin:5px 0 3px;font-weight:600}
.bdc-wording-service-dialog .bdc-wording-price{font-size:15px;color:#465a73}
.bdc-wording-service-dialog .panel-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;flex:0 0 auto;align-items:center;margin:0}
.bdc-wording-service-dialog .panel-actions button{min-height:40px;width:auto;padding:9px 14px;border-radius:6px;box-shadow:none;font-size:13px}
.bdc-wording-service-dialog .bdc-wording-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 26px 24px}
.bdc-wording-service-dialog .bdc-wording-section{padding:22px 0;margin:0;border-bottom:1px solid #e4ebf4;background:transparent;box-shadow:none}
.bdc-wording-service-dialog h3{font-size:16px;line-height:1.4;margin:0 0 9px;font-weight:600;color:#14263f}
.bdc-wording-service-dialog p,.bdc-wording-service-dialog li,.bdc-wording-service-dialog dd{font-size:14px;line-height:1.75;color:#465a73;margin:0;overflow-wrap:anywhere}
.bdc-wording-service-dialog p+p{margin-top:10px}
.bdc-wording-service-dialog .bdc-wording-disclosure{border-bottom:1px solid #e4ebf4;padding:16px 0}
.bdc-wording-service-dialog summary{cursor:pointer;font-size:14px;color:#174e97;font-weight:400}
.bdc-wording-service-dialog ul{padding-inline-start:20px;margin:14px 0 0}
.bdc-wording-service-dialog dl{margin:14px 0 0;display:grid;gap:18px}
.bdc-wording-service-dialog dt{font-size:13px;font-weight:600;margin-bottom:4px}
@media(max-width:600px){.bdc-wording-service-dialog .bdc-wording-modal-header{align-items:flex-start;flex-direction:column;padding:18px;gap:14px}.bdc-wording-service-dialog .panel-actions{flex-basis:auto;width:100%;justify-content:flex-start}.bdc-wording-service-dialog h2{font-size:19px}.bdc-wording-service-dialog .bdc-wording-body{padding:0 18px 18px}.bdc-wording-service-dialog .panel-actions button{min-height:44px}}

/* Staff booking calendar: plain time buttons; retain live capacity rules. */
.scheduler-workspace .bdc-calendar-categories{display:none!important}
.scheduler-workspace .bdc-calendar-layout{display:block}
.scheduler-workspace .sc-calendar-toolbar{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:14px;margin:16px 0}
.scheduler-workspace .sc-calendar-toolbar>span{text-align:center;font-weight:600;font-size:14px;line-height:1.5}
.scheduler-workspace .sc-calendar-toolbar .text-button{min-width:0;width:36px;min-height:36px;height:36px;padding:4px;font-size:22px;font-weight:400;box-shadow:none}
.scheduler-workspace .sc-calendar-options{display:flex;justify-content:flex-end;margin-bottom:12px}
.scheduler-workspace .sc-calendar-options .text-button{min-height:30px;padding:3px 0;border:0;background:none;color:#426385;font-size:12px;font-weight:400;text-decoration:underline}
.scheduler-workspace .sc-week-grid{display:grid;grid-template-columns:repeat(var(--sc-calendar-days),minmax(0,1fr));gap:9px;min-width:0}
.scheduler-workspace .sc-calendar-day{min-width:0}
.scheduler-workspace .sc-day-times{display:flex;flex-direction:column;gap:9px;margin-top:9px}
.scheduler-workspace .sc-no-times{font-size:12px;color:#62738c;text-align:center;margin:8px 0;line-height:1.5}
.scheduler-workspace .sc-slot-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px 4px;border-radius:8px;background:#f0f5fc;color:#244a7e;font-size:13px;line-height:1.4;margin-bottom:3px}
.scheduler-workspace .sc-week-grid .bdc-slot-btn{width:100%;min-width:0;min-height:43px;height:43px;margin:0;padding:6px 2px;border:1px solid #cfddf1;border-radius:7px;background:#fff;color:#26578e;font-size:12px;font-weight:400;box-shadow:none;line-height:1.2}
.scheduler-workspace .sc-week-grid .bdc-slot-btn.is-selected{background:#1768e5;color:#fff;border-color:#1768e5;font-weight:600}
.scheduler-workspace .sc-week-grid .bdc-slot-btn:disabled{background:#f7f9fc;color:#9aa6b5;border-color:#e6ebf2;text-decoration:line-through;cursor:not-allowed;opacity:1}
.scheduler-workspace .sc-week-grid .bdc-slot-btn:not(:disabled):hover{border-color:#1768e5;background:#edf4ff}
.scheduler-workspace .sc-week-grid .bdc-slot-btn.is-selected:hover{background:#145cc9;color:#fff}
.scheduler-workspace .sc-calendar-legend{display:flex;flex-wrap:wrap;gap:12px 18px;margin-top:16px;font-size:12px;color:#63758e}
.scheduler-workspace .sc-calendar-legend>span{display:flex;align-items:center;gap:6px}
.scheduler-workspace .sc-calendar-legend i{display:inline-block;width:10px;height:10px;border:1px solid #cfddf1;border-radius:3px;background:white}
.scheduler-workspace .sc-calendar-legend i.is-selected{background:#1768e5;border-color:#1768e5}
@media(max-width:600px){.scheduler-workspace .sc-week-grid{gap:5px}.scheduler-workspace .sc-slot-day{font-size:11px;padding:12px 2px}.scheduler-workspace .sc-calendar-toolbar{gap:7px}.scheduler-workspace .sc-calendar-toolbar>span{font-size:12px}.scheduler-workspace .sc-week-grid .bdc-slot-btn{font-size:11px}.scheduler-workspace .sc-calendar-legend{font-size:11px}}

/* Keep the appointment summary for final review. */
.scheduler-workspace #bdc-step-3 .sc-summary,.scheduler-workspace #bdc-step-4 .sc-summary{display:none}
.scheduler-workspace #bdc-step-3>.sc-grid,.scheduler-workspace #bdc-step-4>.sc-grid{grid-template-columns:minmax(0,1fr)}
.scheduler-workspace #bdc-step-5 .sc-grid>aside{border-inline-start:1px solid var(--sc-line);padding-inline-start:24px;min-width:0}
.scheduler-workspace #bdc-step-5 .sc-summary{border:0;padding:0;margin-bottom:26px}
@media(max-width:900px){.scheduler-workspace #bdc-step-5 .sc-grid>aside{border-inline-start:0;padding-inline-start:0;border-top:1px solid var(--sc-line);padding-top:24px}}

/* Staff Scheduler maintenance: show all configured intervals and keep actions together. */
.bdc-wording-service-dialog .bdc-wording-modal-header .panel-actions{flex-wrap:nowrap;white-space:nowrap}
.bdc-wording-service-dialog .bdc-wording-modal-header .panel-actions>button{flex:0 0 auto}
.scheduler-workspace #bdc-step-2>.sc-intro,.scheduler-workspace #bdc-step-2 .sc-tools>p,.scheduler-workspace [data-action="bdc-workspace-maintenance"][data-view="menu"]{display:none!important}
.sc-maintenance-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.sc-maintenance-dialog .sc-maintenance-header{flex-shrink:0}
.sc-maintenance-dialog .sc-maintenance-content{min-height:0;max-height:calc(85dvh - 112px);overflow:auto;overscroll-behavior:contain;padding-inline-end:6px}
.sc-maintenance-dialog .sc-maintenance-vehicle{font-size:16px;color:#14263f;font-weight:600;margin:0 0 6px}
.sc-maintenance-dialog .sc-maintenance-interval{padding-block:24px 8px;border-top:1px solid var(--sc-line);margin-top:20px}
.sc-maintenance-dialog .sc-maintenance-interval>h3{font-size:17px;font-weight:600;margin:0 0 10px}
.sc-maintenance-dialog .sc-maintenance-interval .sc-maintenance-row:last-child{padding-bottom:16px}
@media(max-width:900px){.scheduler-workspace .sc-tool-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Customer details and notes share text and action alignment in the staff Scheduler. */
.scheduler-workspace .customer-result{align-items:flex-start}
.scheduler-workspace .customer-result>.result-info{padding-inline-start:20px;min-width:0}
.scheduler-workspace .bdc-customer-header-actions{padding-inline-end:20px;align-self:flex-start;align-items:center}
.scheduler-workspace .customer-result .bdc-customer-header-actions>button{min-height:42px;padding:10px 12px;font-size:13px;line-height:1.4}
.scheduler-workspace .bdc-customer-vehicle-list>.eyebrow{padding-inline:20px}
.scheduler-workspace .bdc-customer-vehicle-row{padding-inline:20px;align-items:flex-start}
.scheduler-workspace .bdc-customer-vehicle-row button{align-self:flex-start}
.scheduler-workspace .bdc-customer-appointments-summary{padding-inline:20px}
.scheduler-workspace .bdc-customer-notes-host{min-width:0;margin-top:8px}
.scheduler-workspace .customer-notes-panel{margin:0;padding:20px;border:1px solid var(--sc-line);border-radius:10px;background:#fff;box-shadow:none;gap:16px;min-width:0}
.scheduler-workspace .customer-notes-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.scheduler-workspace .customer-notes-head>div{min-width:0}
.scheduler-workspace .customer-notes-head>div:last-child{grid-auto-flow:column;align-items:start}
.scheduler-workspace .customer-notes-head button{margin:0;min-height:42px;padding:10px 12px;font-size:13px;line-height:1.4}
.scheduler-workspace .customer-note-list,.scheduler-workspace .customer-note-editor{min-width:0}
.scheduler-workspace .customer-note-status{margin:0}
.scheduler-workspace .customer-note-item p,.scheduler-workspace .customer-note-item small{overflow-wrap:anywhere}
@media(max-width:600px){.scheduler-workspace .bdc-customer-header-actions{padding-inline:20px}.scheduler-workspace .customer-notes-head{grid-template-columns:minmax(0,1fr)}.scheduler-workspace .customer-notes-head>div:last-child{justify-self:start}}

/* Read-only maintenance pricing stays within the schedule dialog. */
.sc-maintenance-dialog .sc-maintenance-table{width:100%;max-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.5}
.sc-maintenance-dialog .sc-maintenance-table caption{text-align:start;font-size:13px;color:var(--sc-muted);padding-block:0 12px}
.sc-maintenance-dialog .sc-maintenance-table .sc-interval-column{width:16%}
.sc-maintenance-dialog .sc-maintenance-table .sc-price-column,.sc-maintenance-dialog .sc-maintenance-table .sc-total-column{width:18%}
.sc-maintenance-dialog .sc-maintenance-table th,.sc-maintenance-dialog .sc-maintenance-table td{padding:12px;text-align:start;vertical-align:top;border-bottom:1px solid var(--sc-line);overflow-wrap:anywhere}
.sc-maintenance-dialog .sc-maintenance-table thead th{position:sticky;top:0;z-index:1;background:#edf4ff;color:var(--sc-ink);font-weight:600}
.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-interval{padding:0;margin:0;border:0}
.sc-maintenance-dialog .sc-maintenance-table tbody th{font-weight:600;color:var(--sc-ink);background:#f8faff}
.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-service small{display:block;margin-top:3px;font-size:12px;color:var(--sc-muted)}
.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-price,.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-total{text-align:end;font-variant-numeric:tabular-nums}
.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-total{font-weight:600;background:#f8faff}
.sc-maintenance-dialog .sc-maintenance-table thead th:nth-last-child(-n+2){text-align:end}
@media(max-width:600px){.sc-maintenance-dialog .sc-maintenance-table{font-size:12px}.sc-maintenance-dialog .sc-maintenance-table th,.sc-maintenance-dialog .sc-maintenance-table td{padding:8px 5px}.sc-maintenance-dialog .sc-maintenance-table .sc-interval-column{width:20%}.sc-maintenance-dialog .sc-maintenance-table .sc-price-column,.sc-maintenance-dialog .sc-maintenance-table .sc-total-column{width:23%}}

/* Final review and contact confirmation are two full-width sections. */
.scheduler-workspace .sc-review-layout{display:grid;gap:24px;min-width:0}
.scheduler-workspace .sc-review-section,.scheduler-workspace .sc-confirmation-section{padding:24px;border:1px solid var(--sc-line);border-radius:10px;background:#fff;min-width:0}
.scheduler-workspace #bdc-step-5 .sc-review-overview{margin:20px 0 24px;padding:0;border:0}
.scheduler-workspace .sc-review-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.scheduler-workspace .sc-review-details>div{min-width:0;overflow-wrap:anywhere}
.scheduler-workspace .sc-review-details h4{font-size:13px;color:var(--sc-muted);font-weight:400;margin-bottom:10px}
.scheduler-workspace .sc-review-details strong{font-size:15px;font-weight:600}
.scheduler-workspace .sc-review-details p{margin:7px 0 0}
.scheduler-workspace .sc-review-visit{display:grid;gap:8px;margin:0}
.scheduler-workspace .sc-review-visit>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px}
.scheduler-workspace .sc-review-visit dt{color:var(--sc-muted)}
.scheduler-workspace .sc-review-visit dd{margin:0}
.scheduler-workspace .sc-review-services{padding-top:20px;border-top:1px solid var(--sc-line)}
.scheduler-workspace .sc-review-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--sc-line)}
.scheduler-workspace .sc-review-totals dt{font-size:13px;color:var(--sc-muted)}
.scheduler-workspace .sc-review-totals dd{margin:6px 0 0;font-size:18px;font-weight:600}
.scheduler-workspace .sc-review-totals>div:last-child{text-align:end}
.scheduler-workspace .sc-confirmation-section .bdc-confirmation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin-top:20px}
.scheduler-workspace .sc-confirmation-field{display:grid;gap:8px;min-width:0;font-size:13px;color:var(--sc-muted)}
.scheduler-workspace .sc-confirmation-section .bdc-confirmation-row{grid-template-columns:minmax(0,1fr) 100px;min-width:0}
.scheduler-workspace .sc-confirmation-section .bdc-confirmation-row button{min-width:0;max-width:100%}
.scheduler-workspace .sc-confirmation-section .bdc-reminder-button-wide{width:auto;justify-self:start;grid-column:1/-1;min-width:190px}
.scheduler-workspace .sc-confirmation-section #bdc-reminder-status:empty{display:none}
@media(max-width:900px){.scheduler-workspace .sc-review-details{grid-template-columns:repeat(2,minmax(0,1fr))}.scheduler-workspace .sc-review-details>div:last-child{grid-column:1/-1}.scheduler-workspace .sc-confirmation-section .bdc-confirmation-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.scheduler-workspace .sc-review-section,.scheduler-workspace .sc-confirmation-section{padding:18px}.scheduler-workspace .sc-review-details{grid-template-columns:minmax(0,1fr);gap:20px}.scheduler-workspace .sc-review-totals{grid-template-columns:minmax(0,1fr);gap:12px}.scheduler-workspace .sc-review-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.scheduler-workspace .sc-review-totals dd{margin:0}}

/* Schedule and review surfaces remain readable in their own component context. */
.sc-maintenance-dialog{--sc-ink:#14263f;--sc-muted:#63758e;--sc-line:#dce5f0;font:14px/1.5 "Segoe UI",Arial,sans-serif}
.sc-maintenance-dialog *{box-sizing:border-box}
.sc-maintenance-dialog .sc-maintenance-header{padding-bottom:18px;border-bottom:1px solid var(--sc-line);margin-bottom:20px}
.sc-maintenance-dialog .text-button{min-height:42px;padding:10px 17px;border:1px solid #cbd9ec;border-radius:8px;background:#fff;color:#24466f;font:13px/1.4 "Segoe UI",Arial,sans-serif}
.sc-maintenance-dialog .sc-schedule-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f2f6fc;border:1px solid #dce7f5;border-radius:10px;padding:18px 20px;margin-bottom:20px}
.sc-maintenance-dialog .sc-schedule-label{font-size:12px;color:#5d728f}
.sc-maintenance-dialog .sc-maintenance-vehicle{margin:4px 0 6px;font-size:17px;font-weight:600}
.sc-maintenance-dialog .sc-schedule-mileage{margin:0;color:#5d728f;font-size:13px}
.sc-maintenance-dialog .sc-schedule-count{text-align:end;flex-shrink:0;color:#1768e5}
.sc-maintenance-dialog .sc-schedule-count strong{display:block;font-size:26px;line-height:1.2}
.sc-maintenance-dialog .sc-schedule-count span{font-size:12px;color:#5d728f}
.sc-maintenance-dialog .sc-maintenance-table caption{padding-block:0 14px}
.sc-maintenance-dialog .sc-maintenance-table thead th{padding-block:14px;background:#eaf1fc;border-top:1px solid var(--sc-line)}
.sc-maintenance-dialog .sc-maintenance-table thead th:first-child{border-start-start-radius:8px}
.sc-maintenance-dialog .sc-maintenance-table thead th:last-child{border-start-end-radius:8px}
.sc-maintenance-dialog .sc-maintenance-table tbody:nth-of-type(even) td:not(.sc-maintenance-total){background:#fcfdff}
.sc-maintenance-dialog .sc-maintenance-table tbody+tbody tr:first-child>*{border-top:6px solid #fff}
.sc-maintenance-dialog .sc-maintenance-table tbody th{color:#214b80;font-variant-numeric:tabular-nums}
.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-total{color:#173f73;font-size:15px}
.scheduler-workspace #bdc-step-5 .sc-review-overview{padding:20px;background:#f5f8fc;border:1px solid #e2eaf4;border-radius:8px}
.scheduler-workspace .sc-review-section>h3,.scheduler-workspace .sc-confirmation-section>h3{font-size:20px;margin-bottom:18px}
.scheduler-workspace .sc-review-totals{padding:18px 20px;background:#edf4ff;border:1px solid #dce7f7;border-radius:8px}
.scheduler-workspace .sc-review-totals .sc-summary-amount{font-size:24px;color:#174f9c}
@media(max-width:600px){.sc-maintenance-dialog .sc-schedule-overview{padding:14px;gap:12px}.sc-maintenance-dialog .sc-maintenance-vehicle{font-size:15px}.sc-maintenance-dialog .sc-maintenance-table .sc-maintenance-total{font-size:12px}.scheduler-workspace #bdc-step-5 .sc-review-overview{padding:16px}}

/* Keep the email action with its address and confirmation control. */
.scheduler-workspace .sc-confirmation-section .sc-email-confirmation-row{grid-template-columns:minmax(0,1fr) 100px 80px}
.scheduler-workspace .sc-confirmation-section .bdc-email-confirmation-button{width:100%;justify-self:stretch;grid-column:auto;min-width:0}
@media(max-width:600px){.scheduler-workspace .sc-confirmation-section .sc-email-confirmation-row{grid-template-columns:repeat(2,minmax(0,1fr))}.scheduler-workspace .sc-email-confirmation-row>input{grid-column:1/-1}}

/* Use the panel edges and keep customer lookup compact. */
#bdc-scheduler-tab{padding:18px 20px}
#bdc-scheduler-tab .scheduler-workspace{max-width:none;width:100%;padding:0;margin:0}
#bdc-scheduler-tab .sc-header:empty{display:none}
#bdc-scheduler-tab .sc-header{margin-bottom:8px}
#bdc-scheduler-tab .sc-intro{margin-bottom:14px}
#bdc-scheduler-tab .sc-footer{margin-top:16px;padding-top:14px}
@media(max-width:600px){#bdc-scheduler-tab{padding:14px}#bdc-scheduler-tab .sc-footer{gap:8px}}

/* Share the panel width between the introduction and customer lookup. */
#bdc-scheduler-tab #bdc-step-1{padding-block-start:6px}
#bdc-scheduler-tab .sc-customer-lookup{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.4fr);align-items:center;gap:32px;padding-block:8px 20px}
#bdc-scheduler-tab .sc-customer-lookup .sc-intro{margin:0;text-align:start}
#bdc-scheduler-tab .sc-customer-lookup .sc-intro h3{font-size:21px;line-height:1.35;margin-block-end:7px}
#bdc-scheduler-tab .sc-customer-lookup .sc-intro p{font-size:13px;line-height:1.6;max-inline-size:38ch}
#bdc-scheduler-tab .sc-customer-lookup .sc-search-card{padding:0;border:0;background:none;box-shadow:none}
#bdc-scheduler-tab .sc-customer-lookup .sc-field{display:block;margin-block-end:8px;text-align:start;font-size:12px;font-weight:600}
#bdc-scheduler-tab .sc-customer-lookup .scheduler-search{display:flex;inline-size:100%;max-inline-size:none;margin:0;gap:10px;align-items:stretch}
#bdc-scheduler-tab .sc-customer-lookup .scheduler-search input{flex:1;min-inline-size:0;min-block-size:44px;font-size:13px}
#bdc-scheduler-tab .sc-customer-lookup .scheduler-search button{min-block-size:44px;min-inline-size:88px;flex:none}
#bdc-scheduler-tab .bdc-appointment-row-actions .bdc-delete-appointment-button{display:inline-flex;align-items:center;justify-content:center;min-block-size:40px;min-inline-size:88px;padding:10px 16px;border:1px solid #e1a6aa;border-radius:8px;background:#fff5f5;color:#a12330;font-weight:600}
#bdc-scheduler-tab .bdc-appointment-row-actions .bdc-delete-appointment-button:hover{background:#ffe8e9;border-color:#bd5360}
#bdc-scheduler-tab .bdc-appointment-row-actions .bdc-delete-appointment-button:disabled{opacity:.65;cursor:wait}
#bdc-scheduler-tab .bdc-customer-appointment-row>div:first-child{min-inline-size:0;overflow-wrap:anywhere}
@media(max-width:600px){#bdc-scheduler-tab .bdc-customer-appointment-row{grid-template-columns:minmax(0,1fr);gap:12px}#bdc-scheduler-tab .bdc-customer-appointment-row>div:first-child{grid-template-columns:minmax(0,1fr);gap:5px}#bdc-scheduler-tab .bdc-appointment-row-actions{justify-content:flex-start;flex-wrap:wrap}}
#bdc-scheduler-tab .sc-footer{margin-block-start:16px;padding-block-start:14px}
#bdc-scheduler-tab .sc-draft-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;margin-block-end:16px;border:1px solid #dce7f5;border-radius:8px;background:#f5f8fc;overflow-wrap:anywhere}
#bdc-scheduler-tab .sc-draft-status span{flex:1;min-inline-size:0}
#bdc-scheduler-tab .sc-draft-status button{min-block-size:40px;flex:none}
@media(max-width:600px){#bdc-scheduler-tab .bdc-customer-vehicle-row{grid-template-columns:minmax(0,1fr);gap:10px}#bdc-scheduler-tab .bdc-customer-vehicle-row>button{justify-self:start;max-inline-size:100%;min-block-size:44px}}
@media(max-width:760px){#bdc-scheduler-tab .sc-customer-lookup{grid-template-columns:minmax(0,1fr);gap:16px;padding-block:4px 18px}#bdc-scheduler-tab .sc-customer-lookup .sc-intro h3{font-size:19px}#bdc-scheduler-tab .sc-customer-lookup .sc-intro p{max-inline-size:none}#bdc-scheduler-tab .sc-customer-lookup .scheduler-search{gap:8px}#bdc-scheduler-tab .sc-customer-lookup .scheduler-search button{min-inline-size:72px;padding-inline:12px}}
#bdc-scheduler-tab .sc-service-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px 20px}
#bdc-scheduler-tab .sc-service-vin{margin-inline-start:auto;max-inline-size:100%;text-align:end;overflow-wrap:anywhere}
#bdc-scheduler-tab .sc-service-vin span{display:block;margin-block-end:4px;color:#536783;font-size:11px;letter-spacing:.06em}
#bdc-scheduler-tab .sc-service-vin strong{display:block;color:#18314d;font-size:13px;font-weight:600;letter-spacing:.025em}

/* Advisor recommendations and history reuse the staff Scheduler presentation. */
.scheduler-workspace.advisor-scheduler-panel{max-width:none;width:100%;margin:0;padding:22px;background:#fff;border:1px solid #e2e9f2;border-radius:12px;box-shadow:0 2px 5px #173b6805}
.advisor-scheduler-panel .bdc-recommendation-grid{display:block}
.advisor-scheduler-panel .sc-recommendation-row .panel-actions{flex-direction:row}
.advisor-scheduler-panel .sc-history{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.advisor-scheduler-panel .advisor-history-summary-grid{margin-top:22px}
.advisor-scheduler-panel .sc-ro-number small,.advisor-scheduler-panel .sc-ro-date small,.advisor-scheduler-panel .sc-ro-mileage small{display:block;color:var(--sc-muted);font-size:12px;margin-bottom:3px}
@media(max-width:600px){.scheduler-workspace.advisor-scheduler-panel{padding:17px}.advisor-scheduler-panel .sc-recommendation-row{grid-template-columns:minmax(0,1fr)}.advisor-scheduler-panel .sc-recommendation-row>.panel-actions{justify-content:flex-start}}
