/* Customer details are for reading; one editor contains every change. */
.page-customers .main.customer-detail-main-shell { background: var(--os-color-canvas) !important; }
.page-customers .customer-dossier { background: var(--os-color-canvas); color: var(--os-color-ink); padding-bottom: 36px; }
.page-customers .customer-dossier .customer-detail-top { padding: 18px 32px 0; border-color: var(--os-color-border); background: var(--os-color-surface); }
.page-customers .customer-dossier .customer-detail-back { min-height: 26px; padding: 0; border-radius: 0; color: var(--os-color-text-secondary); background: transparent; font-size: 12px; font-weight: 500; }
.page-customers .customer-dossier .customer-detail-back:hover { color: var(--os-color-accent-text); }
.page-customers .customer-dossier .customer-detail-hero { flex-wrap: wrap; align-items: center; min-height: 106px !important; gap: 18px; padding: 18px 0 22px !important; }
.page-customers .customer-dossier .customer-detail-heading { min-width: 0; flex: 1 1 280px; }
.page-customers .customer-dossier .customer-detail-identity { min-width: 0; }
.page-customers .customer-dossier .customer-detail-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.page-customers .customer-dossier .customer-detail-name h1 { min-width: 0; margin: 0; color: var(--os-color-ink); font-size: clamp(25px, 2.3vw, 31px); font-weight: 750; letter-spacing: -.7px; line-height: 1.2; overflow-wrap: anywhere; }
.page-customers .customer-dossier .customer-detail-identity p { margin: 8px 0 0; color: var(--os-color-text-secondary); font-size: 12px; line-height: 1.5; }
.page-customers .customer-dossier .customer-detail-toolbar { min-width: 0; gap: 10px; }
.page-customers .customer-dossier .customer-detail-actions { flex-wrap: wrap; gap: 8px; margin: 0; }
.page-customers .customer-dossier [data-customer-booking-action][hidden] { display: none !important; }
.page-customers .customer-dossier .customer-detail-actions .btn { min-height: 40px; padding: 10px 16px; font-size: 12px; font-weight: 650; }
.page-customers .customer-dossier .customer-more-actions > summary { width: 40px; min-height: 40px; padding: 0; }
.page-customers .customer-dossier .customer-loyalty-callout { display: flex; min-width: 0; min-height: 0; gap: 7px; padding: 0; border-radius: 0; background: transparent; color: var(--os-color-text-secondary); }
.page-customers .customer-dossier .customer-loyalty-callout > span { display: inline; width: auto; height: auto; background: transparent; color: var(--os-color-text-secondary); font-size: 11px; }
.page-customers .customer-dossier .customer-loyalty-callout small { display: flex; gap: 6px; align-items: baseline; font-size: 11px; }
.page-customers .customer-dossier .customer-loyalty-callout strong { display: inline; margin: 0; color: var(--os-color-ink); font-size: 11px; font-weight: 650; }
.page-customers .customer-dossier .customer-loyalty-callout > i { font-size: 8px; }
.page-customers .customer-dossier .customer-detail-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 0; padding: 0 0 14px; }
.page-customers .customer-dossier .customer-detail-tabs a { display: inline-flex; justify-content: center; min-height: 36px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--os-color-text-secondary); font-size: 12px; font-weight: 600; line-height: 1.5; }
.page-customers .customer-dossier .customer-detail-tabs a::after,
.page-customers .customer-dossier .customer-detail-tabs a::before { display: none; }
.page-customers .customer-dossier .customer-detail-tabs a:hover { background: var(--os-color-hover); color: var(--os-color-ink); }
.page-customers .customer-dossier .customer-detail-tabs a.active { background: var(--os-color-surface-muted); color: var(--os-color-ink); font-weight: 750; }
.page-customers .customer-dossier .customer-detail-panels { margin: 24px 32px 0; }
.page-customers .customer-dossier .customer-detail-panel { min-width: 0; }
.customer-dossier-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; padding: 2px 0; }
.customer-dossier-summary > :is(a, div) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 16px; min-width: 0; padding: 4px 26px; border-left: 1px solid var(--os-color-border); color: var(--os-color-text-secondary); text-decoration: none; }
.customer-dossier-summary > :first-child { padding-left: 0; border-left: 0; }
.customer-dossier-summary > :last-child { padding-right: 0; }
.customer-dossier-summary span { font-size: 12px; line-height: 1.5; }
.customer-dossier-summary strong { grid-column: 1; color: var(--os-color-ink); font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; overflow-wrap: anywhere; }
.customer-dossier-summary i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--os-color-text-muted); font-size: 12px; }
.customer-dossier-summary a:hover :is(strong, i) { color: var(--os-color-accent-text); }
.page-customers .customer-dossier .customer-readonly-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.page-customers .customer-dossier .customer-readonly-overview > * { grid-column: auto; min-width: 0; }
.page-customers .customer-dossier .customer-profile-card { border: 1px solid var(--os-color-border); border-radius: 14px; background: var(--os-color-surface); box-shadow: none; }
.page-customers .customer-dossier .customer-card-heading { align-items: center; gap: 12px; min-height: 74px; padding: 19px 22px; border-bottom: 1px solid var(--os-color-border); }
.page-customers .customer-dossier .customer-card-heading > span { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: var(--os-color-surface-muted); color: var(--os-color-text-secondary); font-size: 13px; }
.page-customers .customer-dossier .customer-card-heading h2 { color: var(--os-color-ink); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.2px; }
.page-customers .customer-dossier .customer-card-heading p { margin-top: 4px; color: var(--os-color-text-secondary); font-size: 11px; line-height: 1.5; }
.page-customers .customer-dossier .customer-card-heading > em { color: var(--os-color-text-secondary); font-size: 12px; }
.customer-readonly-fields { margin: 0; padding: 4px 22px 8px; }
.customer-readonly-fields > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--os-color-border); }
.customer-readonly-fields > div:last-child { border-bottom: 0; }
.customer-readonly-fields dt { color: var(--os-color-text-secondary); font-size: 12px; line-height: 1.6; }
.customer-readonly-fields dd { min-width: 0; margin: 0; color: var(--os-color-ink); font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.customer-readonly-fields a { color: inherit; text-decoration: none; }
.customer-readonly-fields a:hover { color: var(--os-color-accent-text); text-decoration: underline; }
.customer-readonly-overview .is-empty { color: var(--os-color-text-muted); font-weight: 400; }
.customer-readonly-notes { display: grid; gap: 20px; padding: 20px 22px 22px; }
.customer-readonly-notes h3 { margin: 0; color: var(--os-color-text-secondary); font-size: 12px; font-weight: 600; line-height: 1.5; }
.customer-readonly-notes p { margin: 9px 0 0; color: var(--os-color-text); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.page-customers .customer-dossier .customer-tag-cloud { min-height: 0; gap: 6px; margin: 9px 0 0; padding: 0; }
.page-customers .customer-dossier .customer-tag-cloud span { max-width: 100%; padding: 5px 9px; border: 0; border-radius: 6px; color: var(--os-color-text-secondary); background: var(--os-color-surface-muted); font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.page-customers .customer-dossier .customer-tag-cloud > p { margin: 0; }
.customer-readonly-communication { padding: 3px 22px 8px; }
.customer-readonly-communication > section { padding: 17px 0 12px; border-bottom: 1px solid var(--os-color-border); }
.customer-readonly-communication > section:last-child { border-bottom: 0; }
.customer-readonly-communication h3 { margin: 0 0 8px; color: var(--os-color-ink); font-size: 12px; font-weight: 650; line-height: 1.5; }
.customer-readonly-communication dl { margin: 0; }
.customer-readonly-communication dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; }
.customer-readonly-communication dt { color: var(--os-color-text-secondary); font-size: 12px; line-height: 1.5; }
.customer-readonly-communication dd { display: inline-flex; flex: none; align-items: center; gap: 6px; min-width: 44px; margin: 0; color: var(--os-color-text-secondary); font-size: 11px; font-weight: 500; }
.customer-readonly-communication dd.is-on { color: var(--os-color-ink); }
.customer-readonly-communication dd.is-off { color: var(--os-color-text-muted); }
.customer-readonly-communication dd i { font-size: 9px; }
.customer-readonly-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--os-color-border); border-radius: 10px; color: var(--os-color-text-secondary); background: var(--os-color-surface); }
.customer-readonly-notice > i { flex: none; margin-top: 2px; color: var(--os-color-danger); font-size: 14px; }
.customer-readonly-notice p { margin: 0; font-size: 12px; line-height: 1.6; }
.customer-readonly-notice strong { color: var(--os-color-ink); font-weight: 650; }
.page-customers .customer-dossier :is(.customer-timeline-list > a, .customer-activity-list > a, .customer-activity-list > article, .customer-loyalty-list > div) { border-color: var(--os-color-border); }
.page-customers .customer-dossier :is(.customer-timeline-list, .customer-activity-list, .customer-loyalty-list) strong { color: var(--os-color-ink); }
.page-customers .customer-dossier :is(.customer-timeline-list, .customer-activity-list) small,
.page-customers .customer-dossier .customer-loyalty-list { color: var(--os-color-text-secondary); }
.page-customers .customer-dossier .customer-activity-list > :is(a, article) > span { color: var(--os-color-text-secondary); background: var(--os-color-surface-muted); }
.page-customers .customer-dossier .customer-appointment-filters { border: 0; background: var(--os-color-surface-muted); }
.page-customers .customer-dossier .customer-appointment-filters button { color: var(--os-color-text-secondary); }
.page-customers .customer-dossier .customer-appointment-filters button.active { color: var(--os-color-ink); background: var(--os-color-surface); }
.page-customers .customer-dossier .customer-history-empty { min-height: 210px; }
.page-customers .customer-dossier .customer-history-empty > span { color: var(--os-color-text-secondary); background: var(--os-color-surface-muted); }
.page-customers .customer-dossier .customer-history-empty strong { color: var(--os-color-ink); }
.page-customers .customer-dossier .customer-history-empty p { color: var(--os-color-text-secondary); }
@media (max-width: 1150px) {
    .page-customers .customer-dossier .customer-detail-toolbar { justify-items: start; }
    .customer-readonly-fields > div { grid-template-columns: minmax(0, 1fr); gap: 5px; padding-block: 13px; }
    .customer-readonly-fields dd { font-size: 13px; }
}
@media (max-width: 760px) {
    .page-customers .customer-dossier .customer-detail-top { padding: 16px 20px 0; }
    .page-customers .customer-dossier .customer-detail-hero { align-items: stretch; gap: 16px; min-height: 0 !important; padding: 16px 0 18px !important; }
    .page-customers .customer-dossier .customer-detail-heading { flex-basis: 100%; }
    .page-customers .customer-dossier .customer-detail-toolbar { width: 100%; justify-items: start; }
    .page-customers .customer-dossier .customer-detail-actions { width: 100%; justify-content: flex-start; }
    .page-customers .customer-dossier .customer-detail-actions .btn { min-height: 40px; flex: 0 1 auto; padding-inline: 13px; font-size: 11px; }
    .page-customers .customer-dossier .customer-detail-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding-bottom: 12px; }
    .page-customers .customer-dossier .customer-detail-tabs a { min-width: 0; padding-inline: 5px; font-size: 11px; }
    .page-customers .customer-dossier .customer-detail-panels { margin: 22px 20px 0; }
    .customer-dossier-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
    .customer-dossier-summary > :is(a, div) { gap: 6px; padding-inline: 14px; }
    .customer-dossier-summary > :first-child { padding-left: 0; }
    .customer-dossier-summary > :last-child { padding-right: 0; }
    .customer-dossier-summary span { font-size: 10px; }
    .customer-dossier-summary strong { font-size: 16px; line-height: 1.35; }
    .customer-dossier-summary i { display: none; }
    .page-customers .customer-dossier .customer-readonly-overview { grid-template-columns: 1fr; gap: 18px; }
    .page-customers .customer-dossier .customer-card-heading { padding: 17px 18px; }
    .customer-readonly-fields { padding-inline: 18px; }
    .customer-readonly-fields > div { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
    .customer-readonly-notes { padding: 18px; }
    .customer-readonly-communication { padding-inline: 18px; }
}
@media (max-width: 420px) {
    .page-customers .customer-dossier .customer-detail-top { padding-inline: 16px; }
    .page-customers .customer-dossier .customer-detail-panels { margin-inline: 16px; }
    .page-customers .customer-dossier .customer-detail-name h1 { font-size: 25px; }
    .page-customers .customer-dossier .customer-edit-primary { flex: 1 1 100%; justify-content: center; }
    .page-customers .customer-dossier .customer-detail-actions .customer-edit-primary { font-size: 12px; }
    .page-customers .customer-dossier .customer-detail-tabs a { font-size: 10px; }
    .customer-dossier-summary > :is(a, div) { padding-inline: 10px; }
    .customer-dossier-summary > :first-child { padding-left: 0; }
    .customer-dossier-summary > :last-child { padding-right: 0; }
    .customer-dossier-summary strong { font-size: 14px; }
    .customer-readonly-fields > div { grid-template-columns: 1fr; gap: 4px; }
}
