.client-detail-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.client-detail-controls>.button{min-height:48px}.client-detail-controls .client-confirmed{min-height:36px}.client-edit-error{margin-bottom:24px}.client-edit-error[hidden]{display:none}.client-section-heading{flex-wrap:wrap;gap:12px}.client-section-heading>.client-add-service{margin-left:auto;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:8px 12px;border:1px solid #d9d2ee;border-radius:12px;background:#f7f5fe}.client-add-service>svg{width:18px;height:18px}
.client-service-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 20px;border-top:1px solid var(--workspace-line,#d6deeb);background:#f8f9fc}.client-service-actions>.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 12px;border-radius:10px;font-size:13px}.client-service-actions>.text-button:hover{background:#eeebfc}.client-service-actions svg{width:17px;height:17px}.client-service-actions>.client-service-remove{color:#9a4858}.client-service-actions>.client-service-remove:hover{background:#fff0f3}
.client-trace{margin-top:28px;padding:var(--layout-panel-inset,24px);min-width:0}.client-trace-heading{display:flex;align-items:center;gap:12px}.client-trace-heading>svg{width:22px;height:22px;color:#6952ad;flex:none}.client-trace-heading h2{margin:0;font-size:20px;line-height:1.4}.client-trace-origin{display:grid;gap:8px;margin:20px 0 0;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.client-trace-origin>strong{font-weight:650}.client-trace-origin>span,.client-trace-empty{color:var(--muted);font-size:12px;line-height:1.7}.client-trace-empty{margin:16px 0 0}.client-history{margin-top:20px;border-top:1px solid var(--border);padding-top:16px}.client-history>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:48px;font-size:14px;font-weight:650;color:#584a93}.client-history>summary::-webkit-details-marker{display:none}.client-history>summary>strong{padding:3px 8px;border-radius:8px;background:#eeebfc;font-size:12px}.client-history>summary>svg{width:18px;height:18px;margin-left:auto}.client-history[open]>summary>svg{transform:rotate(180deg)}.client-history>ol{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:20px}.client-history>ol>li{padding:20px;background:var(--workspace-tint,#edf1f8);border:1px solid var(--workspace-line,#d6deeb);border-radius:16px;min-width:0}.client-history-event{display:grid;gap:7px;font-size:14px;line-height:1.5}.client-history-event>span{font-size:12px;color:var(--muted)}.client-history-changes{display:grid;gap:12px;margin:18px 0 0}.client-history-changes>div{padding-top:12px;border-top:1px solid #d8deeb;min-width:0}.client-history-changes dt{font-size:12px;font-weight:650;color:#605779;margin-bottom:7px;overflow-wrap:anywhere}.client-history-changes dd{display:flex;align-items:flex-start;gap:8px 12px;flex-wrap:wrap;margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;min-width:0}.client-history-changes dd>span,.client-history-changes dd>strong{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}.client-history-before{color:#697488}.client-history-changes dd>strong{font-weight:600;color:#263c56}.client-history-changes dd>svg{width:16px;height:16px;flex:none;margin-top:2px;color:#9b91b5}
.client-editor-dialog{padding:0;width:min(760px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);border:1px solid #d5dcea;border-radius:22px;box-shadow:0 30px 90px #111b3440;background:white;color:#182238;overflow:hidden;font-family:Inter,system-ui,sans-serif}.client-editor-dialog::backdrop{background:#19233b66;backdrop-filter:blur(3px)}.client-editor-dialog>form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);min-width:0}.client-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid #d6deeb;background:#edf1f8;flex:none}.client-editor-heading>h2{margin:0;font-size:23px;line-height:1.35;font-weight:750;min-width:0}.client-editor-heading>.icon-button{flex:none;width:48px;height:48px;border-radius:14px;background:white}.client-editor-body{overflow-y:auto;padding:24px;display:grid;gap:24px;min-height:0;overscroll-behavior:contain}.client-editor-body>.field,.client-editor-body .field-row,.client-editor-section>.field{margin:0}.client-editor-body .field{display:grid;gap:8px;min-width:0}.client-editor-body .field>span{font-size:14px;font-weight:650;line-height:1.5}.client-editor-body .field>span>small{font-weight:400;color:#69778d}.client-editor-body .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.client-editor-body .field input,.client-editor-body .field select,.client-editor-body .field textarea{width:100%;min-width:0;box-sizing:border-box;min-height:48px;padding:12px 14px;border:1px solid #cbd4e4;border-radius:12px;background-color:#fff;color:#182238;font:inherit;font-size:14px}.client-editor-body .field select{padding-inline-end:calc(var(--ui-select-arrow-inset) + var(--ui-select-arrow-size) + var(--ui-select-text-gap))}.client-editor-body textarea{resize:vertical;line-height:1.65}.client-editor-body :is(input,select,textarea):focus-visible{outline:3px solid #cfc6f1;outline-offset:2px;border-color:#8f78cf}.client-editor-body [hidden]{display:none}.client-editor-body .form-error{margin:0}.client-editor-context{padding:14px 16px;background:#f3f0fc;border:1px solid #ded7f0;border-radius:12px;font-size:13px;line-height:1.6;color:#675681}.client-editor-section{display:grid;gap:16px;border-top:1px solid #e0e5ef;padding-top:24px;min-width:0}.client-editor-section h3{font-size:17px;line-height:1.5;margin:0}.client-editor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.client-editor-section-heading>.text-button{display:inline-flex;align-items:center;gap:8px;min-height:48px}.client-editor-section-heading svg{width:18px;height:18px}.client-editor-help{font-size:12px;line-height:1.7;color:#607086;margin:0}.client-editor-pax{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.client-editor-person{display:grid;grid-template-columns:minmax(0,1fr) 130px 164px 44px;align-items:end;gap:12px;padding:16px;border:1px solid #dde2ed;border-radius:16px;background:#f8f9fc}.client-editor-person>.icon-button{height:48px;width:44px}.client-editor-person+.client-editor-person{margin-top:16px}.client-editor-service-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.client-editor-service-choices>.button{min-height:64px;justify-content:flex-start;gap:12px}.client-editor-service-choices>.button>svg{width:22px;height:22px}.client-editor-service-choices>.button>svg:last-child{margin-left:auto;width:18px;height:18px}.client-editor-contract{padding:16px;border:1px solid #dcd4ee;border-radius:12px;background:#f7f4fe;font-size:14px}.client-editor-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:20px 24px;border-top:1px solid #cbd4e4;background:#edf1f8;flex:none}.client-editor-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.client-editor-footer>.client-editor-preview[hidden]+.client-editor-footer-actions{grid-column:1/-1}.client-editor-footer-actions>.button{min-height:48px}.client-editor-preview{display:grid;gap:5px;min-width:0;max-height:170px;overflow:auto;font-size:12px;color:#65718a;line-height:1.5}.client-editor-preview[hidden]{display:none}.client-editor-preview>strong{font-size:23px;line-height:1.35;color:#42326d}.client-editor-preview>strong>small{font-size:12px;font-weight:550}.client-editor-preview>p{margin:0;overflow-wrap:anywhere}.client-editor-preview .client-editor-pending{color:#92681f;font-weight:700}.client-editor-preview .review-pricing-warnings{margin:4px 0 0}.client-editor-body .hotel-picker{min-width:0}.client-editor-dialog .contract-product-dropdown{position:static;box-shadow:none;margin-top:10px}.client-editor-dialog .contract-product-list{max-height:270px}.client-editor-dialog .hotel-search-results{position:static;margin-top:10px;box-shadow:none;max-height:250px;overflow:auto}
@media(max-width:700px){.client-detail-controls{justify-content:flex-start}.client-detail-controls>.button{width:100%;justify-content:center}.client-service-actions{justify-content:space-between;padding:12px 16px;gap:8px;flex-wrap:wrap}.client-service-actions>.text-button{font-size:12px;padding-inline:8px}.client-section-heading>.client-add-service{margin-left:0}.client-editor-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.client-editor-dialog>form{max-height:calc(100dvh - 22px)}.client-editor-heading{padding:16px;gap:12px}.client-editor-heading>h2{font-size:20px}.client-editor-body{padding:16px;gap:24px}.client-editor-body .field-row{grid-template-columns:minmax(0,1fr);gap:16px}.client-editor-body .field input,.client-editor-body .field select,.client-editor-body .field textarea{font-size:16px}.client-editor-pax{gap:12px}.client-editor-body .client-editor-pax .field>span{font-size:13px}.client-editor-body .client-editor-pax input{padding-inline:10px}.client-editor-footer{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.client-editor-footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.client-editor-footer-actions>.button{padding-inline:12px;justify-content:center}.client-editor-preview{max-height:130px}.client-editor-person{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.client-editor-person>label.field:first-of-type{grid-column:1/-1}.client-editor-person>.icon-button{grid-column:1/-1;justify-self:end}.client-editor-service-choices{grid-template-columns:minmax(0,1fr)}.client-history>ol>li{padding:16px}.client-history-changes dd{display:grid;grid-template-columns:minmax(0,1fr)}.client-history-changes dd>svg{transform:rotate(90deg)}.client-trace{margin-top:24px}.client-history>summary{font-size:13px}}

/* A single, permission-aware place for changes to the client dossier. */
.client-workspace-dialog{width:min(960px,calc(100vw - 40px))}
.client-workspace-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);min-width:0}
.client-workspace-shell>.client-editor-body{flex:1;min-height:0;grid-auto-rows:max-content;align-content:start}
.client-workspace-eyebrow{margin:0 0 6px;color:#625779;font-size:13px;overflow-wrap:anywhere}
.client-workspace-shell .client-editor-heading h2{margin:0;font-size:23px;line-height:1.35}
.client-workspace-section{min-width:0;border:1px solid #dbe1ed;border-radius:16px;background:#fff;overflow:hidden}
.client-workspace-section>summary{display:flex;align-items:center;gap:12px;padding:18px 20px;min-height:64px;box-sizing:border-box;cursor:pointer;list-style:none;font-size:16px;font-weight:650;background:#f6f7fc;color:#293650}
.client-workspace-section>summary::-webkit-details-marker{display:none}
.client-workspace-section>summary>svg{width:22px;height:22px;flex:none;color:#6957bd}
.client-workspace-section>summary>svg:last-child{margin-left:auto;width:18px;height:18px}
.client-workspace-section[open]>summary{border-bottom:1px solid #dbe1ed}
.client-workspace-section[open]>summary>svg:last-child{transform:rotate(180deg)}
.client-workspace-section>summary:focus-visible{outline:3px solid #bcb4f9;outline-offset:-4px}
.client-workspace-section-body{padding:var(--layout-panel-inset,24px);display:grid;gap:20px;min-width:0}
.client-workspace-identity{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.client-workspace-identity>div{min-width:0;flex:1}
.client-workspace-identity p,.client-workspace-service p{margin:6px 0 0;font-size:13px;line-height:1.6;color:#596982;overflow-wrap:anywhere}
.client-workspace-service{border:1px solid #dbe1ed;border-radius:14px;overflow:hidden;min-width:0}
.client-workspace-service>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;flex-wrap:wrap}
.client-workspace-service>header>div{min-width:0;flex:1 1 240px}
.client-workspace-service strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.client-workspace-price{font-weight:700;color:#57468f;font-size:15px;white-space:nowrap}
.client-workspace-section-body>.client-stay,.client-workspace-section-body>.reservation-note{margin:0;border:0;box-shadow:none}
.client-workspace-section-body .dossier-progress{display:none}
.client-workspace-section-body .client-stay-heading{padding-top:0}
.client-blocked-dialog{width:min(640px,calc(100vw - 40px))}
.client-blocked-dialog .client-editor-heading h2{display:flex;align-items:center;gap:12px}
.client-blocked-dialog .client-editor-heading h2>svg{width:24px;height:24px;color:#6957bd;flex:none}
.client-blocked-message{margin:0;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.client-blocked-dialog .client-editor-footer-actions{grid-column:1/-1}
@media(max-width:700px){.client-workspace-dialog,.client-blocked-dialog{width:calc(100vw - 20px)}.client-workspace-shell{max-height:calc(100dvh - 22px)}.client-workspace-shell .client-editor-heading h2{font-size:20px}.client-workspace-section>summary{padding:16px;gap:10px}.client-workspace-section-body{padding:16px;gap:16px}.client-workspace-identity{display:grid;gap:16px}.client-workspace-identity>.button{width:100%;justify-content:center}.client-workspace-service>header{padding:16px}.client-workspace-service .client-service-actions{justify-content:flex-start;gap:12px}.client-workspace-section-body .client-stay{padding:0}.client-workspace-shell>.client-editor-footer .client-editor-footer-actions{display:flex}.client-workspace-shell>.client-editor-footer .button{width:100%}}

.client-workspace-service>.client-service-lock-note{margin:0;padding:0 var(--layout-filter-padding,20px) 20px;line-height:1.6}

/* Partial pack cancellation: keep the full confirmation label readable. */
.pack-activity-dialog .client-editor-footer-actions { width:100%; gap:12px; flex-wrap:wrap; }
.pack-activity-dialog .client-editor-footer-actions .button { min-width:0; white-space:normal; height:auto; min-height:48px; padding:12px 16px; }
@media (max-width:600px) {
 .pack-activity-dialog .client-editor-footer-actions { flex-direction:column; align-items:stretch; }
 .pack-activity-dialog .client-editor-footer-actions .button { width:100%; }
}

.pack-upgrade-confirm { display:flex; align-items:flex-start; gap:12px; margin-top:24px; min-height:48px; cursor:pointer; }
.pack-upgrade-confirm input[type="checkbox"] { flex:0 0 22px; width:22px; height:22px; min-height:22px; margin:2px 0 0; padding:0; }

/* Separate schedule cancellation from the editing and payment form. */
.client-prepaid-dialog [hidden]{display:none!important}
.prepaid-unschedule-entry{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:24px;padding:20px;border:1px solid #d6deeb;border-radius:16px;background:#f7f8fc}
.prepaid-unschedule-entry>div{flex:1 1 260px}.prepaid-unschedule-entry p{margin:6px 0 0;line-height:1.6;color:#52627e}
.prepaid-unschedule-confirm{display:grid;gap:20px;line-height:1.6}.prepaid-unschedule-confirm h3{margin:0;font-size:18px}.prepaid-unschedule-confirm p{margin:6px 0 0}
.prepaid-schedule-summary{padding:20px;border:1px solid #ded7f0;border-radius:16px;background:#f5f2ff;overflow-wrap:anywhere}.prepaid-schedule-summary>span{font-size:12px;font-weight:700;color:#6556c9;letter-spacing:.06em}.prepaid-schedule-summary h3{margin-top:8px}
.prepaid-unschedule-retained{padding:16px;border:1px solid #cfe4dc;border-radius:16px;background:#f2faf6;color:#225d49}.prepaid-unschedule-next{color:#52627e}
.client-prepaid-dialog .prepaid-unschedule-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px}.prepaid-unschedule-actions>.button{white-space:normal;height:auto;min-height:48px;padding:12px 16px}
.client-prepaid-dialog .prepaid-unschedule-confirm-button{background:#ae303b;border-color:#ae303b;color:white}
@media(max-width:700px){.prepaid-unschedule-entry{padding:16px}.prepaid-unschedule-entry>.button,.prepaid-unschedule-actions>.button{width:100%}.prepaid-schedule-summary{padding:16px}.client-prepaid-dialog .prepaid-unschedule-actions{flex-direction:column;align-items:stretch}}
