/*
 * Body Lab admin styling. Plain CSS registered as a Filament asset
 * (`php artisan filament:assets` copies it to public/css). No Node build
 * step is needed. Colours follow the approved November report.
 */
:root {
    --bl-pink: #eba0c3;
    --bl-pink-dark: #a95079;
    --bl-pink-soft: #f7e3ed;
    --bl-pink-pale: #fff7fa;
    --bl-ink: #222126;
    --bl-muted: #706970;
    --bl-line: #ecdde5;
}

.fi-body { background: linear-gradient(135deg, #fff 0%, #fff 70%, var(--bl-pink-pale) 100%); }

.bl-wordmark {
    color: var(--bl-pink-dark);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.bl-brand-logo { height: 2.25rem; width: auto; display: block; }

.bl-muted { color: var(--bl-muted); font-size: .875rem; line-height: 1.5; }
.bl-mb { margin-bottom: 1rem; }
.bl-strong { font-weight: 600; color: var(--bl-ink); }

.bl-eyebrow {
    font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--bl-pink-dark); margin-bottom: .35rem;
}

.bl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.bl-cta-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--bl-ink); margin-bottom: .25rem; }

.bl-status-list { list-style: none; margin: 0; padding: 0; }
.bl-status-row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .55rem 0; border-bottom: 1px solid var(--bl-line); font-size: .875rem;
}
.bl-status-row:last-child { border-bottom: 0; }
.bl-status-label { color: var(--bl-ink); min-width: 0; }
.bl-status-row .fi-badge { flex-shrink: 0; }
.bl-status-row .fi-badge, .bl-table .fi-badge { max-width: none; }
.bl-status-row .fi-badge *, .bl-table .fi-badge * { overflow: visible; text-overflow: clip; white-space: nowrap; }

.bl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bl-step { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--bl-muted); }
.bl-step-no {
    flex: 0 0 1.75rem; height: 1.75rem; border-radius: 999px; display: inline-flex; align-items: center;
    justify-content: center; background: var(--bl-pink-soft); color: var(--bl-pink-dark); font-weight: 700; font-size: .8rem;
}

.bl-table-wrap { overflow-x: auto; }
.bl-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.bl-table th {
    text-align: left; background: var(--bl-pink-soft); color: var(--bl-pink-dark);
    padding: .6rem .75rem; font-weight: 700; white-space: nowrap;
}
.bl-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--bl-line); color: var(--bl-muted); vertical-align: middle; }
.bl-table tr:last-child td { border-bottom: 0; }

.bl-form { display: grid; gap: 1.5rem; }
.bl-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: flex-start; }

.bl-report-item { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.bl-report-link { font-weight: 600; color: var(--bl-ink); }
.bl-report-link:hover { color: var(--bl-pink-dark); text-decoration: underline; }
.bl-report-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Zenoti import preview */
.bl-zenoti { display: grid; gap: .9rem; }
.bl-zenoti-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; }
.bl-zenoti-kpis > div { border: 1px solid var(--bl-line); border-radius: .75rem; padding: .75rem 1rem; background: var(--bl-pink-pale); }
.bl-zenoti-kpis strong { display: block; font-size: 1.35rem; color: var(--bl-pink-dark); line-height: 1.2; }
.bl-zenoti-kpis span { font-size: .8rem; color: var(--bl-muted); }
.bl-zenoti-facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .85rem; margin: 0; }
.bl-zenoti-facts dt { font-weight: 600; color: var(--bl-ink); }
.bl-zenoti-facts dd { margin: 0; color: var(--bl-muted); }
.bl-zenoti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.bl-zenoti-grid h4 { font-weight: 700; margin-bottom: .4rem; color: var(--bl-ink); }
.bl-zenoti-grid h4 span { font-weight: 400; font-size: .8rem; color: var(--bl-muted); }

/* Phase 5: comparison review, finalization review */
.bl-compare { display: grid; gap: .75rem; overflow-x: auto; }
.bl-subheading { font-weight: 700; color: var(--bl-ink); margin-top: .75rem; }
.bl-subheading .bl-muted { font-weight: 400; font-size: .8rem; }
.bl-change { font-weight: 700; white-space: nowrap; }
.bl-better { color: #16895a; }
.bl-worse { color: #b74d58; }
.bl-review-grid { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; font-size: .875rem; margin: 0 0 1rem; }
.bl-review-grid dt { font-weight: 600; color: var(--bl-ink); }
.bl-review-grid dd { margin: 0; color: var(--bl-muted); }
.bl-review-grid ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.bl-warn { color: #b45309; font-weight: 600; }
.dark .bl-review-grid dt, .dark .bl-subheading { color: #f4f4f5; }

/* Phase 6: integrations */
.bl-integration-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.bl-integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; }
.bl-integration-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bl-api-source { border: 1px solid var(--bl-line); border-radius: .75rem; padding: .9rem 1rem; display: grid; gap: .5rem; }
.bl-api-source h4 { font-weight: 700; color: var(--bl-ink); display: flex; gap: .5rem; align-items: center; }
.dark .bl-api-source h4 { color: #f4f4f5; }

/* Fetched (API / Zenoti) rows shown read-only in the editor (Phase 9A, C2) */
.bl-fetched-status { font-size: .875rem; line-height: 1.5; margin: 0 0 .6rem; color: var(--bl-ink); }
.bl-fetched-status.bl-warn { color: #92400e; font-weight: 400; }
.bl-fetched-scroll { overflow-x: auto; max-height: 22rem; overflow-y: auto; border: 1px solid var(--bl-line); border-radius: .5rem; }
.bl-fetched-table th { position: sticky; top: 0; }
.bl-fetched-table.is-replaced td { text-decoration: line-through; text-decoration-color: #d6c2cc; opacity: .7; }

/* Report editor (Phase 9A, R8): all section tabs visible on desktop (wrap instead of scrolling) */
@media (min-width: 1280px) {
    .fi-resource-report-history .fi-sc-tabs .fi-tabs.fi-contained { flex-wrap: wrap; overflow-x: visible; row-gap: .25rem; }
}
.fi-resource-report-history .fi-tabs-item-badge { font-size: .7rem; }
