/*
 * AVLEXY — lapisan gaya panel office & mitra (Filament 3).
 * Dimuat setelah gaya Filament, jadi aturan di sini menang pada spesifisitas
 * yang sama. Sengaja tanpa build step: cukup berkas statis di public/.
 */

:root {
    --av-bg: #f5f6fa;
    --av-card: #ffffff;
    --av-line: #e9ecf2;
    --av-line-soft: #f1f3f7;
    --av-ink: #0f172a;
    --av-muted: #64748b;
    --av-brand: #c62a8a;
    --av-brand-soft: #fcf1f7;
    --av-radius: 18px;
    --av-radius-sm: 12px;
    --av-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
    --av-shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
}

/* ---- Kanvas ---------------------------------------------------------- */
.fi-body { background: var(--av-bg); color: var(--av-ink); }
.fi-main { padding-top: .5rem; }

.fi-header-heading { font-weight: 800; letter-spacing: -.02em; }
.fi-header-subheading { color: var(--av-muted); }
.fi-breadcrumbs ol { font-size: .8rem; }

/* ---- Sidebar & topbar ---------------------------------------------- */
.fi-sidebar { background: #fff; border-right: 1px solid var(--av-line); }
.fi-sidebar-header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--av-line-soft); }
.fi-sidebar-group-label {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8;
}
.fi-sidebar-item-button { border-radius: 10px; padding-top: .45rem; padding-bottom: .45rem; }
.fi-sidebar-item-button:hover { background: var(--av-line-soft); }
.fi-sidebar-item-active .fi-sidebar-item-button,
.fi-sidebar-item.fi-active .fi-sidebar-item-button { background: var(--av-brand-soft); }
.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--av-brand); font-weight: 700; }

.fi-topbar > nav {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: none;
    border-bottom: 1px solid var(--av-line);
}

/* ---- Kartu, section, widget ---------------------------------------- */
.fi-section,
.fi-wi-stats-overview-stat,
.fi-wi-chart .fi-section,
.fi-ta-ctn,
.fi-fo-tabs,
.fi-in-tabs {
    border-radius: var(--av-radius);
    box-shadow: var(--av-shadow);
    --tw-ring-color: var(--av-line);
}
.fi-section-header { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.fi-section-header-heading { font-weight: 700; }
.fi-wi-stats-overview-stat { padding: 1.25rem 1.4rem; }
.fi-wi-stats-overview-stat-value { letter-spacing: -.02em; }

/* ---- Tabel --------------------------------------------------------- */
.fi-ta-header-cell {
    background: #f8fafc;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--av-muted);
}
.fi-ta-header-cell-label { font-size: .7rem; font-weight: 700; color: var(--av-muted); }
.fi-ta-row { transition: background-color .12s ease; }
.fi-ta-row:hover { background: #fdf7fb; }
.fi-ta-row td { border-color: var(--av-line-soft); }
.fi-ta-header-toolbar { padding-top: .9rem; padding-bottom: .9rem; }
.fi-ta-empty-state-heading { font-weight: 700; }

/* ---- Badge, tombol, input ------------------------------------------ */
.fi-badge { border-radius: 999px; padding-left: .6rem; padding-right: .6rem; font-weight: 600; }
.fi-btn { border-radius: var(--av-radius-sm); font-weight: 600; }
.fi-icon-btn { border-radius: 10px; }
.fi-input-wrp,
.fi-select-input,
.fi-fo-file-upload .filepond--root { border-radius: var(--av-radius-sm); }
.fi-input-wrp { --tw-ring-color: #dfe3eb; }
.fi-dropdown-panel { border-radius: 14px; box-shadow: var(--av-shadow-lg); }
.fi-pagination-item-button { border-radius: 8px; }
.fi-tabs { border-radius: 14px; }

/* ---- Modal: lebih lega, latar buram, kepala & kaki terpisah ---------- */
.fi-modal-close-overlay { background: rgba(15, 23, 42, .38); backdrop-filter: blur(3px); }
.fi-modal-window {
    border-radius: 22px;
    box-shadow: var(--av-shadow-lg);
    overflow: hidden;
}
/* Slide-over harus tetap bisa digulir (aturan overflow di atas hanya untuk modal tengah). */
.fi-modal-window.fi-modal-slide-over-window { border-radius: 22px 0 0 22px; overflow-y: auto; }
.fi-modal-header { padding: 1.4rem 1.6rem 1rem; }
.fi-modal-heading { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.fi-modal-description { color: var(--av-muted); margin-top: .35rem; }
.fi-modal-content { padding-left: 1.6rem; padding-right: 1.6rem; }
.fi-modal-footer {
    padding: 1rem 1.6rem 1.3rem;
    background: #fafbfd;
    border-top: 1px solid var(--av-line-soft);
}

/* ---- Halaman login / daftar ---------------------------------------- */
.fi-simple-main {
    border-radius: 24px;
    box-shadow: var(--av-shadow-lg);
    --tw-ring-color: transparent;
}

/* ---- Notifikasi toast ----------------------------------------------- */
.fi-no-notification { border-radius: 16px; box-shadow: var(--av-shadow-lg); }

/* ---- Komponen konten modal / slide-over ------------------------------
 * Dipakai view Blade kustom (rincian biaya, daftar ulasan, preview terapis)
 * supaya tidak lagi menulis gaya inline satu per satu.
 */
.av-sheet { font-size: .875rem; line-height: 1.6; color: #334155; }
.av-sheet strong { color: var(--av-ink); }
.av-lead { margin: 0 0 1rem; color: var(--av-muted); }
.av-h {
    display: flex; align-items: center; gap: .5rem;
    margin: 1.25rem 0 .5rem; font-size: .75rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--av-muted);
}
.av-h:first-child { margin-top: 0; }
.av-h .av-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.35rem; height: 1.35rem; border-radius: 999px;
    background: var(--av-brand-soft); color: var(--av-brand); font-size: .7rem; letter-spacing: 0;
}
.av-box { border: 1px solid var(--av-line); border-radius: 14px; background: #fff; overflow: hidden; }
.av-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; }
.av-row + .av-row { border-top: 1px solid var(--av-line-soft); }
.av-row > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.av-row.is-minus { color: #b45309; }
.av-row.is-total { background: #f8fafc; font-weight: 700; color: var(--av-ink); }
.av-note { margin-top: .9rem; padding: .75rem .9rem; border-radius: 12px; border: 1px solid; font-size: .82rem; }
.av-note.is-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.av-note.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.av-note.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.av-note strong { color: inherit; }

.av-stack { display: grid; gap: .65rem; }
.av-item { border: 1px solid var(--av-line); border-radius: 14px; padding: .85rem 1rem; background: #fff; }
.av-item-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.av-stars { color: #f59e0b; letter-spacing: 1px; font-size: .95rem; }
.av-chip {
    display: inline-flex; align-items: center; border-radius: 999px; padding: .1rem .55rem;
    font-size: .7rem; font-weight: 600; background: var(--av-brand-soft); color: var(--av-brand);
}
.av-chip.is-gray { background: #f1f5f9; color: #475569; }
.av-meta { margin-top: .4rem; font-size: .75rem; color: #94a3b8; }
.av-empty { padding: 2.5rem 1rem; text-align: center; color: #94a3b8; }
.av-summary { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.av-summary b { font-size: 1.6rem; font-weight: 800; color: var(--av-ink); letter-spacing: -.02em; }

.av-profile { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 16px; background: #f8fafc; }
.av-avatar {
    width: 72px; height: 72px; flex: none; border-radius: 999px; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    background: #e2e8f0; color: #64748b; font-size: 1.5rem; font-weight: 700;
}
.av-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.av-grid .is-wide { grid-column: 1 / -1; }
.av-tile { border-radius: 12px; background: #f8fafc; padding: .7rem .85rem; }
.av-tile small { display: block; font-size: .72rem; color: var(--av-muted); }
.av-tile p { margin: 0; font-weight: 600; color: var(--av-ink); }
.av-link { color: var(--av-brand); font-weight: 600; }
.av-link:hover { text-decoration: underline; }

/* ---- Halaman laporan ------------------------------------------------- */
.av-page { display: flex; flex-direction: column; gap: 1.25rem; }
.av-toolbar {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between;
    padding: 1rem 1.1rem; border-radius: var(--av-radius); background: #fff;
    border: 1px solid var(--av-line); box-shadow: var(--av-shadow);
}
.av-toolbar label { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 600; color: var(--av-muted); }
.av-toolbar .av-range { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.av-presets { display: inline-flex; padding: .25rem; gap: .2rem; border-radius: 12px; background: #f1f5f9; }
.av-presets button {
    border: 0; background: transparent; padding: .4rem .75rem; border-radius: 9px;
    font-size: .8rem; font-weight: 600; color: #475569; cursor: pointer;
}
.av-presets button:hover { background: #fff; color: var(--av-ink); }
.av-kpis { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.av-kpi {
    position: relative; overflow: hidden; padding: 1.1rem 1.25rem; border-radius: var(--av-radius);
    background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow);
}
.av-kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--kpi, var(--av-brand)); }
.av-kpi small { display: block; font-size: .75rem; font-weight: 600; color: var(--av-muted); }
.av-kpi b { display: block; margin-top: .35rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); font-variant-numeric: tabular-nums; }
.av-kpi span { display: block; margin-top: .2rem; font-size: .75rem; color: #94a3b8; }
.av-cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.av-list .av-row { padding-left: 0; padding-right: 0; }
.av-list .av-row > :first-child { color: var(--av-muted); }
.av-list .av-row.is-total > :first-child { color: var(--av-ink); }
.av-list .av-row.is-total { background: transparent; }
.av-hint { margin-top: .5rem; font-size: .75rem; color: #94a3b8; }
.av-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.av-table th {
    padding: .65rem .75rem; text-align: left; background: #f8fafc;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--av-muted);
}
.av-table td { padding: .75rem; border-top: 1px solid var(--av-line-soft); font-variant-numeric: tabular-nums; }
.av-table tr:hover td { background: #fdf7fb; }
.av-table .num { text-align: right; white-space: nowrap; }
.av-table .strong { font-weight: 700; color: var(--av-ink); }
.av-table .muted { color: var(--av-muted); }
.av-scroll { overflow-x: auto; margin: -.25rem -.25rem 0; }

/* ---- Varian chip & tabel pengguna ------------------------------------ */
.av-chip.is-ok { background: #ecfdf5; color: #047857; }
.av-chip.is-warn { background: #fffbeb; color: #b45309; }
.av-chip.is-danger { background: #fef2f2; color: #b91c1c; }
.av-chip.is-info { background: #eff6ff; color: #1d4ed8; }
.av-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.av-card-table { border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); overflow: hidden; }
.av-card-table .av-table td { vertical-align: top; }
.av-name { font-weight: 700; color: var(--av-ink); }
.av-sub { display: block; font-size: .75rem; color: var(--av-muted); }
.av-wa {
    display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem;
    padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
    background: #e8f8ee; color: #128c4b;
}
.av-wa:hover { background: #d3f2df; }
.av-actions { display: flex; justify-content: flex-end; gap: .15rem; white-space: nowrap; }

/* ---- Filter di atas tabel (pengganti corong + "Filter aktif") ---------- */
.fi-ta-filter-indicators { display: none !important; }
.fi-ta-filters-above-content-ctn {
    background: #fafbfd; border-bottom: 1px solid var(--av-line-soft);
    padding-top: .9rem !important; padding-bottom: 1rem !important;
}
.fi-ta-filters-above-content-ctn .fi-ta-filters { gap: .6rem; }
.fi-ta-filters-above-content-ctn .fi-ta-filters > div:first-child { justify-content: flex-end; min-height: 0; }
.fi-ta-filters-above-content-ctn .fi-ta-filters > div:first-child h4 { display: none; }
.fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label span { font-size: .72rem; font-weight: 600; color: var(--av-muted); }
.fi-ta-filters-above-content-ctn .fi-input-wrp { background: #fff; }

/* ---- Tab status di atas tabel ---------------------------------------- */
.fi-resource-list-records-page .fi-tabs {
    background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow);
    padding: .3rem; border-radius: 14px; --tw-ring-color: transparent; margin-inline: 0;
}
.fi-resource-list-records-page .fi-tabs-item { border-radius: 10px; }
.fi-resource-list-records-page .fi-tabs-item-active { background: var(--av-brand-soft); }
.fi-resource-list-records-page .fi-tabs-item-active .fi-tabs-item-label { color: var(--av-brand); }

/* =====================================================================
 * Meja Depan (mitra)
 * =================================================================== */
.fd { display: flex; flex-direction: column; gap: 1rem; }
.fd-hero {
    display: flex; gap: .9rem; align-items: stretch; padding: .9rem; border-radius: 22px;
    background: linear-gradient(120deg, #c62a8a 0%, #8e1f6a 55%, #4a1238 100%);
    box-shadow: 0 18px 40px -18px rgba(142, 31, 106, .55);
}
.fd-search {
    flex: 1; display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem .35rem 1rem;
    border-radius: 16px; background: #fff;
}
.fd-search-icon { width: 1.4rem; height: 1.4rem; color: var(--av-brand); flex: none; }
.fd-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
    font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; color: var(--av-ink); padding: .65rem 0;
}
.fd-search input:focus { box-shadow: none; }
.fd-search input::placeholder { font-weight: 500; color: #a1a1b5; letter-spacing: 0; }
.fd-search button {
    border: 0; border-radius: 12px; padding: .7rem 1.3rem; font-weight: 700; color: #fff;
    background: var(--av-ink); cursor: pointer;
}
.fd-hero-cta { display: flex; align-items: center; }
.fd-hero-cta .fi-btn {
    height: 100%; padding: 0 1.3rem; border-radius: 16px; font-size: .95rem;
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.fd-hero-cta .fi-btn:hover { background: rgba(255, 255, 255, .26); }

.fd-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.fd-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--av-line); font-size: .8rem; color: var(--av-muted);
}
.fd-pill b { font-size: .95rem; color: var(--av-ink); }
.fd-pill::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.fd-pill.is-running::before { background: #c62a8a; }
.fd-pill.is-waiting::before { background: #6366f1; }
.fd-pill.is-billing::before { background: #f59e0b; }
.fd-pill.is-done::before { background: #16a34a; }

.fd-found { padding: 1rem; border-radius: 20px; background: var(--av-brand-soft); border: 1px dashed #e9a8d0; }
.fd-found-head { display: flex; justify-content: space-between; margin-bottom: .6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--av-brand); }
.fd-found-head button { color: var(--av-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.fd-found .fd-card { max-width: 520px; }

.fd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .fd-layout { grid-template-columns: minmax(0, 1fr); } }
.fd-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.fd-dayhead { display: flex; justify-content: space-between; align-items: flex-end; }
.fd-dayhead h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); }
.fd-dayhead span { font-size: .8rem; color: var(--av-muted); }
.fd-daynav { display: flex; gap: .3rem; }
.fd-daynav button {
    display: inline-flex; align-items: center; gap: .3rem; height: 2.1rem; min-width: 2.1rem; justify-content: center;
    padding: 0 .6rem; border-radius: 10px; background: #fff; border: 1px solid var(--av-line);
    font-size: .8rem; font-weight: 600; color: var(--av-ink);
}

.fd-group > header, .fd-group > summary { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .7rem; }
.fd-group > summary { cursor: pointer; list-style: none; }
.fd-group h3 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--av-ink); display: flex; align-items: center; gap: .45rem; }
.fd-group h3 em {
    font-style: normal; font-size: .72rem; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 99px;
    display: inline-flex; align-items: center; justify-content: center; background: var(--av-line-soft); color: var(--av-muted);
}
.fd-group.is-running h3 em { background: #fce7f3; color: #be185d; }
.fd-group.is-billing h3 em { background: #fef3c7; color: #b45309; }
.fd-group > header span, .fd-group > summary span { font-size: .78rem; color: #94a3b8; }
.fd-cards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.fd-card {
    position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1rem .9rem;
    border-radius: 18px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.fd-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -12px rgba(15, 23, 42, .25); }
.fd-card::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: #cbd5e1; }
.fd-card.is-running::before { background: #c62a8a; }
.fd-card.is-waiting::before { background: #6366f1; }
.fd-card.is-billing::before { background: #f59e0b; }
.fd-card.is-done { opacity: .75; }
.fd-card.is-done::before { background: #16a34a; }
.fd-card.is-late { border-color: #fecaca; }
.fd-card-top { display: flex; justify-content: space-between; align-items: center; }
.fd-time b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); }
.fd-time span { margin-left: .3rem; font-size: .78rem; color: #94a3b8; }
.fd-status { font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; background: #f1f5f9; color: #475569; }
.fd-status.s-in_progress { background: #fce7f3; color: #be185d; }
.fd-status.s-pending { background: #fef3c7; color: #b45309; }
.fd-status.s-accepted, .fd-status.s-booked { background: #eef2ff; color: #4338ca; }
.fd-status.s-arrived, .fd-status.s-on_the_way { background: #e0f2fe; color: #0369a1; }
.fd-status.s-completed { background: #dcfce7; color: #15803d; }
.fd-cust { font-size: 1.02rem; font-weight: 800; color: var(--av-ink); line-height: 1.25; }
.fd-svc { font-size: .84rem; color: #334155; }
.fd-svc span { display: block; font-size: .72rem; color: #94a3b8; margin-top: .1rem; }
.fd-svc code { font-family: ui-monospace, monospace; letter-spacing: .03em; }
.fd-progress { height: 6px; border-radius: 99px; background: #fce7f3; overflow: hidden; }
.fd-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ec4899, #c62a8a); }
.fd-remaining { font-size: .75rem; font-weight: 700; color: #be185d; margin-top: -.25rem; }
.fd-late { font-size: .75rem; font-weight: 700; color: #b91c1c; }
.fd-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fd-chip {
    display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: 9px;
    background: #f8fafc; border: 1px solid var(--av-line-soft); font-size: .75rem; font-weight: 600; color: #334155;
}
.fd-chip.is-empty { border-style: dashed; color: #94a3b8; background: transparent; }
.fd-pay { display: flex; align-items: baseline; gap: .45rem; padding-top: .5rem; border-top: 1px dashed var(--av-line); }
.fd-pay b { font-size: .95rem; color: var(--av-ink); }
.fd-pay span { font-size: .74rem; }
.fd-pay.is-paid span { color: #15803d; }
.fd-pay.is-due span { color: #b45309; }
.fd-next .fi-btn { width: 100%; justify-content: center; padding-top: .6rem; padding-bottom: .6rem; font-size: .88rem; border-radius: 12px; }
.fd-more { display: flex; justify-content: center; margin-top: -.15rem; }
.fd-more .fi-btn {
    background: transparent !important; box-shadow: none !important; color: var(--av-muted) !important;
    font-weight: 600; font-size: .78rem; padding: .2rem .4rem;
}
.fd-more .fi-btn:hover { color: var(--av-brand) !important; }

.fd-empty {
    display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2.5rem 1rem;
    border-radius: 20px; border: 2px dashed var(--av-line); color: #94a3b8; text-align: center;
}
.fd-empty p { margin: 0; font-weight: 700; color: #475569; }

.fd-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 5rem; }
.fd-panel { padding: 1rem; border-radius: 20px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); }
.fd-panel > header { margin-bottom: .6rem; }
.fd-panel h3 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--av-ink); }
.fd-panel > header span { display: block; font-size: .74rem; color: #94a3b8; margin-top: .15rem; }
.fd-person { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; }
.fd-person + .fd-person { border-top: 1px solid var(--av-line-soft); }
.fd-avatar {
    position: relative; width: 40px; height: 40px; flex: none; border-radius: 14px; overflow: visible;
    display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; font-weight: 800;
}
.fd-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.fd-avatar i { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 99px; border: 2px solid #fff; background: #cbd5e1; }
.fd-person.is-ready .fd-avatar i { background: #22c55e; }
.fd-person.is-busy .fd-avatar i { background: #c62a8a; }
.fd-person.is-off { opacity: .6; }
.fd-person-info { flex: 1; min-width: 0; }
.fd-person-info b { display: block; font-size: .86rem; color: var(--av-ink); }
.fd-person-info span { display: block; font-size: .73rem; color: var(--av-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-person.is-busy .fd-person-info span { color: #be185d; }
.fd-switch {
    position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 .6rem 0 1.9rem;
    border-radius: 99px; background: #e2e8f0; font-size: .72rem; font-weight: 700; color: #64748b; cursor: pointer;
    transition: background .15s ease;
}
.fd-switch::before {
    content: ''; position: absolute; left: 4px; width: 20px; height: 20px; border-radius: 99px; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s ease;
}
.fd-switch.is-on { background: #22c55e; color: #fff; padding: 0 1.9rem 0 .7rem; }
.fd-switch.is-on::before { left: calc(100% - 24px); }
.fd-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.fd-room { padding: .6rem .7rem; border-radius: 14px; border: 1px solid var(--av-line); }
.fd-room b { display: block; font-size: .82rem; color: var(--av-ink); }
.fd-room span { display: block; font-size: .7rem; margin-top: .1rem; }
.fd-room.is-free { background: #f0fdf4; border-color: #bbf7d0; }
.fd-room.is-free span { color: #15803d; }
.fd-room.is-busy { background: #fdf2f8; border-color: #fbcfe8; }
.fd-room.is-busy span { color: #be185d; }
.fd-muted { font-size: .8rem; color: #94a3b8; }
.fd-avatar em { font-style: normal; }
.fd-avatar img { position: absolute; inset: 0; z-index: 1; }

/* =====================================================================
 * Beranda mitra
 * =================================================================== */
.hm { display: flex; flex-direction: column; gap: 1.1rem; margin-top: -1.5rem; }
.hm-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem;
    padding: 1.75rem; border-radius: 26px; color: #fff;
    background:
        radial-gradient(600px 300px at 85% -20%, rgba(255, 255, 255, .22), transparent 60%),
        radial-gradient(500px 260px at -10% 120%, rgba(255, 186, 222, .35), transparent 60%),
        linear-gradient(125deg, #d13a96 0%, #9a2273 50%, #4c1139 100%);
    box-shadow: 0 24px 50px -24px rgba(122, 25, 91, .65);
}
@media (max-width: 900px) { .hm-hero { grid-template-columns: minmax(0, 1fr); } }
.hm-date { font-size: .78rem; font-weight: 600; opacity: .8; }
.hm-hero h1 { margin: .35rem 0 .2rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hm-hero p { margin: 0; font-size: .95rem; opacity: .85; }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.hm-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 12px;
    font-size: .85rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: background .15s ease;
}
.hm-btn:hover { background: rgba(255, 255, 255, .24); }
.hm-btn.is-solid { background: #fff; color: #9a2273; box-shadow: none; }
.hm-open {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 12px;
    font-size: .82rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .22); cursor: pointer;
}
.hm-open i { width: 9px; height: 9px; border-radius: 99px; background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .25); }
.hm-open.is-open i { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.hm-hero-stat {
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.2rem; border-radius: 20px;
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
}
.hm-hero-stat span { font-size: .78rem; opacity: .85; }
.hm-hero-stat b { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; margin-top: .15rem; }
.hm-hero-stat em { font-style: normal; font-size: .75rem; opacity: .9; }
.hm-hero-stat em.is-up { color: #bbf7d0; }
.hm-hero-stat em.is-down { color: #fecaca; }
.hm-spark { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: .8rem; }
.hm-spark i { flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(255, 255, 255, .35); }
.hm-spark i.is-today { background: #fff; }

.hm-kpis { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hm-kpi {
    position: relative; padding: 1.1rem 1.2rem; border-radius: 20px; background: #fff;
    border: 1px solid var(--av-line); box-shadow: var(--av-shadow);
}
.hm-kpi-icon { position: absolute; right: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 12px; background: var(--av-brand-soft); color: var(--av-brand); }
.hm-kpi span { display: block; font-size: .78rem; font-weight: 600; color: var(--av-muted); }
.hm-kpi b { display: block; margin-top: .35rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--av-ink); }
.hm-kpi b small { font-size: .85rem; color: #94a3b8; font-weight: 600; }
.hm-kpi em { display: block; margin-top: .15rem; font-style: normal; font-size: .74rem; color: #94a3b8; }
.hm-kpi em.is-up { color: #16a34a; }
.hm-kpi em.is-down { color: #dc2626; }

.hm-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.hm-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hm-grid, .hm-grid.is-three { grid-template-columns: minmax(0, 1fr); } }
.hm-card { padding: 1.2rem; border-radius: 22px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); min-width: 0; }
.hm-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.hm-card h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--av-ink); }
.hm-card > header span { font-size: .75rem; color: #94a3b8; }
.hm-card > header a { font-size: .78rem; font-weight: 700; color: var(--av-brand); white-space: nowrap; }
.hm-legend { display: flex; gap: .8rem; font-size: .72rem; color: var(--av-muted); }
.hm-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.hm-legend .is-app::before { background: #c62a8a; }
.hm-legend .is-walkin::before { background: #f9a8d4; }
.hm-chart { display: flex; align-items: flex-end; gap: .45rem; height: 190px; padding-top: .5rem; }
.hm-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; }
.hm-bar-stack {
    width: 100%; max-width: 30px; min-height: 4px; display: flex; flex-direction: column; border-radius: 8px 8px 4px 4px;
    overflow: hidden; background: var(--av-line-soft); transition: filter .15s ease;
}
.hm-bar:hover .hm-bar-stack { filter: brightness(1.08); }
.hm-bar-stack i.is-app { background: linear-gradient(180deg, #e04aa5, #c62a8a); }
.hm-bar-stack i.is-walkin { background: #f9a8d4; }
.hm-bar small { font-size: .68rem; color: #94a3b8; }
.hm-bar.is-today small { color: var(--av-brand); font-weight: 800; }
.hm-note { margin: .6rem 0 0; font-size: .78rem; color: #94a3b8; text-align: center; }

.hm-live { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; padding: .7rem 0; border-bottom: 1px solid var(--av-line-soft); }
.hm-live b { display: block; font-size: .88rem; color: var(--av-ink); }
.hm-live span { display: block; font-size: .74rem; color: var(--av-muted); }
.hm-live em { font-style: normal; font-size: .74rem; font-weight: 700; color: #be185d; align-self: center; }
.hm-live .fd-progress { grid-column: 1 / -1; }
.hm-quiet { padding: 1rem 0; font-size: .82rem; color: #94a3b8; }
.hm-team { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .9rem; }
.hm-dot {
    width: 32px; height: 32px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; background: #f1f5f9; color: #94a3b8;
}
.hm-dot.is-ready { background: #dcfce7; color: #15803d; }
.hm-dot.is-busy { background: #fce7f3; color: #be185d; }
.hm-team small { flex-basis: 100%; margin-top: .3rem; font-size: .74rem; color: var(--av-muted); }

.hm-next { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--av-line-soft); }
.hm-next:last-child { border-bottom: 0; }
.hm-next time { width: 3.2rem; flex: none; font-size: .95rem; font-weight: 800; color: var(--av-ink); }
.hm-next div { flex: 1; min-width: 0; }
.hm-next b { display: block; font-size: .85rem; color: var(--av-ink); }
.hm-next span { display: block; font-size: .73rem; color: var(--av-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-next em { font-style: normal; font-size: .68rem; font-weight: 700; padding: .15rem .45rem; border-radius: 99px; background: #f1f5f9; color: #64748b; }
.hm-next em.is-late { background: #fee2e2; color: #b91c1c; }
.hm-todo {
    display: flex; align-items: center; gap: .7rem; padding: .75rem .8rem; margin-bottom: .5rem; border-radius: 14px;
    border: 1px solid var(--av-line); font-size: .84rem; color: #334155; transition: border-color .15s ease, transform .15s ease;
}
.hm-todo:hover { border-color: #e9a8d0; transform: translateX(2px); }
.hm-todo span { flex: 1; }
.hm-todo b { font-size: 1rem; color: var(--av-ink); }
.hm-todo.is-warn > :first-child { color: #d97706; }
.hm-todo.is-info > :first-child { color: #2563eb; }
.hm-todo.is-muted > :first-child { color: #94a3b8; }
.hm-allclear { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.4rem 0; text-align: center; color: #16a34a; }
.hm-allclear b { color: var(--av-ink); }
.hm-allclear span { font-size: .78rem; color: #94a3b8; }
.hm-top { margin-bottom: .65rem; }
.hm-top div { display: flex; justify-content: space-between; font-size: .82rem; color: #334155; margin-bottom: .25rem; }
.hm-top b { color: var(--av-ink); }
.hm-top i { display: block; height: 7px; border-radius: 99px; background: var(--av-line-soft); overflow: hidden; }
.hm-top i em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f472b6, #c62a8a); }
.hm-reviews { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--av-line); display: grid; gap: .6rem; }
.hm-review p { margin: .15rem 0; font-size: .8rem; color: #334155; font-style: italic; }
.hm-review small { font-size: .7rem; color: #94a3b8; }

/* ---- Papan status ringkas (terapis & ruangan) ------------------------ */
.fd-board { padding: .75rem; border-radius: 20px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); }
.fd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; border-radius: 14px; background: #f1f5f9; margin-bottom: .7rem; }
.fd-tabs button { padding: .5rem .4rem; border-radius: 11px; font-size: .82rem; font-weight: 800; color: #64748b; line-height: 1.2; }
.fd-tabs button em { display: block; font-style: normal; font-size: .68rem; font-weight: 600; color: #94a3b8; }
.fd-tabs button.is-active { background: #fff; color: var(--av-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.fd-filters { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .55rem; }
.fd-filters button {
    display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: 99px;
    font-size: .72rem; font-weight: 600; color: #64748b; border: 1px solid var(--av-line); background: #fff;
}
.fd-filters button b { font-size: .72rem; color: var(--av-ink); }
.fd-filters button.is-active { background: var(--av-ink); border-color: var(--av-ink); color: #fff; }
.fd-filters button.is-active b { color: #fff; }
.fd-find {
    width: 100%; margin-bottom: .5rem; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--av-line);
    font-size: .8rem; background: #f8fafc;
}
.fd-find:focus { outline: none; border-color: #e9a8d0; box-shadow: 0 0 0 3px var(--av-brand-soft); }
.fd-list { max-height: 360px; overflow-y: auto; margin: 0 -.25rem; padding: 0 .25rem; }
.fd-row { display: flex; align-items: center; gap: .55rem; padding: .4rem .3rem; border-radius: 10px; }
.fd-row:hover { background: #f8fafc; }
.fd-ava {
    position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 800; background: #f1f5f9; color: #64748b;
}
.fd-ava i { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 99px; border: 2px solid #fff; background: #cbd5e1; }
.fd-row.is-ready .fd-ava { background: #dcfce7; color: #15803d; }
.fd-row.is-ready .fd-ava i { background: #22c55e; }
.fd-row.is-busy .fd-ava { background: #fce7f3; color: #be185d; }
.fd-row.is-busy .fd-ava i { background: #c62a8a; }
.fd-row-info { flex: 1; min-width: 0; line-height: 1.25; }
.fd-row-info b { display: block; font-size: .8rem; color: var(--av-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-row-info span { display: block; font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-row.is-busy .fd-row-info span { color: #be185d; }
.fd-mini-switch {
    position: relative; width: 34px; height: 20px; flex: none; border-radius: 99px; background: #e2e8f0; cursor: pointer; transition: background .15s ease;
}
.fd-mini-switch::before {
    content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 99px; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s ease;
}
.fd-mini-switch.is-on { background: #22c55e; }
.fd-mini-switch.is-on::before { left: 17px; }
.fd-none { padding: .6rem .3rem; }
.fd-allin {
    display: flex; width: 100%; justify-content: center; align-items: center; gap: .35rem; margin-top: .55rem; padding: .5rem;
    border-radius: 10px; border: 1px dashed #86efac; background: #f0fdf4; color: #15803d; font-size: .78rem; font-weight: 700;
}
.fd-hint { margin: .55rem 0 0; font-size: .68rem; color: #94a3b8; line-height: 1.4; }
.fd-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; max-height: 360px; overflow-y: auto; }
.fd-tile { padding: .45rem .5rem; border-radius: 10px; border: 1px solid var(--av-line); }
.fd-tile b { display: block; font-size: .74rem; color: var(--av-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-tile span { display: block; font-size: .64rem; }
.fd-tile.is-free { background: #f0fdf4; border-color: #bbf7d0; }
.fd-tile.is-free span { color: #15803d; }
.fd-tile.is-busy { background: #fdf2f8; border-color: #fbcfe8; }
.fd-tile.is-busy span { color: #be185d; }
[x-cloak] { display: none !important; }

.fd-pill-link { color: var(--av-ink); text-decoration: none; margin-left: auto; }
.fd-pill-link::before { display: none; }
.fd-pill-link:hover { border-color: #e9a8d0; background: var(--av-brand-soft); }

/* =====================================================================
 * Kehadiran & Ruangan (mitra)
 * =================================================================== */
.pr { display: flex; flex-direction: column; gap: 1.1rem; }
.pr-stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pr-stat { padding: .9rem 1rem; border-radius: 18px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); }
.pr-stat small { display: flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600; color: var(--av-muted); }
.pr-stat small i { width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.pr-stat b { display: block; margin-top: .25rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); }
.pr-stat.is-ready small i { background: #22c55e; }
.pr-stat.is-busy small i { background: #c62a8a; }
.pr-stat.is-off small i { background: #cbd5e1; }
.pr-stat.is-free small i { background: #16a34a; }
.pr-stat.is-used small i { background: #f472b6; }
.pr-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.pr-head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--av-ink); }
.pr-head .fd-filters { margin: 0; }
.pr-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.pr-tools .fd-find { flex: 1; min-width: 180px; margin: 0; }
.pr-tools .fd-allin { width: auto; margin: 0; padding: .45rem .8rem; }
.pr-people { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pr-person {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 14px;
    border: 1px solid var(--av-line); background: #fff; transition: border-color .15s ease;
}
.pr-person:hover { border-color: #e2e8f0; background: #fcfcfd; }
.pr-person.is-ready { border-color: #bbf7d0; }
.pr-person.is-busy { border-color: #fbcfe8; }
.pr-person.is-off { background: #fafafa; }
.pr-person .fd-ava { width: 34px; height: 34px; border-radius: 11px; font-size: .8rem; }
.pr-rooms { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pr-rooms .fd-tile { padding: .6rem .7rem; }
.pr-rooms .fd-tile b { font-size: .82rem; }
.pr-rooms .fd-tile span { font-size: .7rem; }
.pr-rooms .fd-tile em { display: block; font-style: normal; font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
