/* ===========================================================================
   Professional Dashboard (/user/dashboard)
   Tokens from DesignTokens_Reference_README_19072026.docx. Its "lucide-react"
   icon note targets the React design source; this Blazor app renders MudBlazor
   Material icons, so only the colour/type/spacing tokens apply here.
   Scoped under .pfl-dash-* so it cannot leak into the rest of the app.
   =========================================================================== */

.pfl-dash-shell {
    /* Mirrors .pfl-header-inner's height in global.css — 64px desktop, 56px
       below 1024px (see the media query at the end of this block). */
    --pfl-header-h: 64px;

    --dash-navy: #0F1F4B;
    --dash-indigo: #2B2E7C;
    --dash-text: #0F172A;
    --dash-muted: #64748B;
    --dash-border: #E2E8F0;
    --dash-alt: #F8FAFC;
    --dash-green: #16A34A;
    --dash-orange: #F2A35B;

    display: flex;
    /* PROF-168 issue 1: the shell now sits below the site header, so a full
       100vh here would push every dashboard page a header taller than the
       viewport and invent a scrollbar on short pages. The height is a token
       because the public header is 64px on desktop and 56px under 1024px —
       both offsets have to follow it or the sidebar drifts. */
    min-height: calc(100vh - var(--pfl-header-h));
    /* White page per PROF-91 — the cards keep reading as boxes through their
       #E2E8F0 borders. --dash-alt stays a token for hovers/empty states. */
    background: #FFFFFF;
    /* PROF-231: was this stack spelled out by hand. It omitted Open Sans, so
       Greek text here fell to a system font while the rest of the site fell to
       Open Sans. The token carries the whole chain. */
    font-family: var(--pfl-font, 'Plus Jakarta Sans', 'Open Sans', sans-serif);
    color: var(--dash-text);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.pfl-dash-sidebar {
    width: 240px;
    flex: none;
    background: #FFFFFF;
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 16px 20px;
    position: sticky;
    /* PROF-168 issue 1 / AC-H04: stick a header's height down so the sidebar's
       own top (avatar + name) is never hidden behind the sticky site header. */
    top: var(--pfl-header-h);
    align-self: flex-start;
    height: calc(100vh - var(--pfl-header-h));
}

.pfl-dash-sidebar__profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--dash-border);
}

.pfl-dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dash-navy), var(--dash-indigo));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    overflow: hidden;
}

.pfl-dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfl-dash-sidebar__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dash-navy);
    line-height: 1.3;
}

.pfl-dash-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dash-green);
}

.pfl-dash-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dash-green);
}

.pfl-dash-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 18px;
    /* PROF-131: nav no longer grows to fill the column. Settings + Log out used
       to be pushed to the very bottom (a large gap); Eftychia's menu redesign
       wants them grouped directly under the nav list, separated only by the
       divider line. Icons unchanged — this is a layout-only change. */
    flex: 0 0 auto;
}

.pfl-dash-navlink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dash-muted);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.pfl-dash-navlink:hover {
    background: var(--dash-alt);
    color: var(--dash-navy);
}

.pfl-dash-navlink .mud-icon-root {
    font-size: 20px;
}

.pfl-dash-navlink.is-active {
    background: #EEF2FF;
    color: var(--dash-indigo);
    font-weight: 600;
}

.pfl-dash-sidebar__footer {
    text-align: center;
    font-size: 12px;
    color: var(--dash-muted);
    padding-top: 16px;
    line-height: 1.5;
}

.pfl-dash-sidebar__footer strong {
    display: block;
    color: var(--dash-navy);
    font-weight: 600;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.pfl-dash-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 28px 36px 48px;
    /* PROF-102: centre the content column in the space left of the sidebar.
       Without the auto margins the 1120px cap left-hugged the sidebar and
       dumped all the slack on the right — a lopsided empty band on wide
       screens. width:100% lets it fill up to the cap and shrink below it,
       and margin-inline:auto (flex-grow is treated as 0 once auto margins
       absorb the free space) balances the gutters. Applies to every menu
       page since they all render inside this one main. */
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

.pfl-dash-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pfl-dash-greeting {
    font-size: 26px;
    font-weight: 700;
    color: var(--dash-navy);
    margin: 0;
}

.pfl-dash-date {
    font-size: 13px;
    color: var(--dash-muted);
    white-space: nowrap;
}

/* Welcome banner */
.pfl-dash-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, var(--dash-navy), var(--dash-indigo));
    color: #FFFFFF;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    font-size: 14px;
}

.pfl-dash-welcome__icon {
    flex: none;
    display: flex;
}

.pfl-dash-welcome__text {
    flex: 1 1 auto;
    line-height: 1.5;
}

.pfl-dash-welcome__text strong {
    font-weight: 700;
}

.pfl-dash-welcome__close {
    flex: none;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    opacity: .8;
    display: flex;
    padding: 2px;
    border-radius: 6px;
}

.pfl-dash-welcome__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .12);
}

/* Stat cards */
.pfl-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* PROF-108 AC-01/02: the stat strip and the getting-started guide share one
   flex column so a brand-new professional (no bookings) is shown the guide
   first — direction before four zeroes — via `order`, no duplicated markup. */
.pfl-dash-priority { display: flex; flex-direction: column; }
.pfl-dash-priority--guide-first .pfl-dash-stats { order: 2; }
.pfl-dash-priority--guide-first .pfl-dash-guide  { order: 1; }

.pfl-dash-stat {
    background: #FFFFFF;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 18px 20px;
}

.pfl-dash-stat__label {
    font-size: 13px;
    color: var(--dash-muted);
    margin-bottom: 8px;
}

.pfl-dash-stat__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dash-navy);
    line-height: 1.1;
}

.pfl-dash-stat__value--money {
    color: var(--dash-green);
}

.pfl-dash-stat__value--rating {
    color: var(--dash-orange);
}

.pfl-dash-stat__sub {
    font-size: 12px;
    color: var(--dash-muted);
    margin-top: 6px;
}

/* Generic card */
.pfl-dash-card {
    background: #FFFFFF;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 20px 24px;
}

.pfl-dash-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pfl-dash-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dash-navy);
    margin: 0;
}

.pfl-dash-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-indigo);
    text-decoration: none;
    white-space: nowrap;
}

.pfl-dash-card__link:hover {
    color: #3840A0;
    text-decoration: underline;
}

.pfl-dash-card__sub {
    font-size: 13px;
    color: var(--dash-muted);
    margin: -8px 0 18px;
}

/* PROF-108 v1.1 §2.2: muted caption under the zero-stat strip for a brand-new
   pro. Sits with the stats in the guide-first layout (guide is order 1). */
.pfl-dash-stats-caption {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--dash-muted);
}
.pfl-dash-priority--guide-first .pfl-dash-stats-caption { order: 2; }

/* ── Availability quick-status widget (PROF-108 v1.1 §5) ──────────────────── */
.pfl-dash-availw { margin-bottom: 16px; }

.pfl-dash-availw__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pfl-dash-availw__titlewrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pfl-dash-availw__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.pfl-dash-availw__pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.pfl-dash-availw__pill.is-on  { color: var(--dash-green); background: #DCFCE7; }
.pfl-dash-availw__pill.is-off { color: var(--dash-muted); background: #F1F5F9; }

.pfl-dash-availw__schedule {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
    font-weight: 600;
    color: var(--dash-navy);
}
.pfl-dash-availw__sep { color: var(--dash-border); }
.pfl-dash-availw__hours { color: var(--dash-text); font-weight: 500; }

.pfl-dash-availw__chips {
    display: flex;
    gap: 6px;
    margin: 12px 0 4px;
}
.pfl-dash-availw__chip {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: #F1F5F9;
    color: #94A3B8;
}
.pfl-dash-availw__chip.is-active {
    background: var(--dash-navy);
    color: #FFFFFF;
}

.pfl-dash-availw__rows {
    margin-top: 14px;
    border-top: 1px solid var(--dash-border);
}
.pfl-dash-availw__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--dash-border);
}
.pfl-dash-availw__rowlabel { color: var(--dash-muted); }
.pfl-dash-availw__rowval { color: var(--dash-text); font-weight: 600; }

.pfl-dash-availw__flag {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.pfl-dash-availw__flag.is-on  { color: var(--dash-green); background: #DCFCE7; }
.pfl-dash-availw__flag.is-off { color: var(--dash-muted); background: #F1F5F9; }

.pfl-dash-availw__edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-indigo);
    text-decoration: none;
}
.pfl-dash-availw__edit:hover { color: #3840A0; text-decoration: underline; }

/* Get-started steps */
.pfl-dash-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pfl-dash-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: #FFFFFF;
}

.pfl-dash-step.is-done {
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.pfl-dash-step__marker {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.pfl-dash-step.is-done .pfl-dash-step__marker {
    background: var(--dash-green);
    border-color: var(--dash-green);
}

.pfl-dash-step__marker .mud-icon-root {
    font-size: 15px;
}

.pfl-dash-step__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--dash-text);
    line-height: 1.35;
}

/* Two-column row */
.pfl-dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* Empty states */
.pfl-dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 12px;
    color: var(--dash-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pfl-dash-empty__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dash-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

/* Achievements list */
.pfl-dash-achievement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.pfl-dash-achievement + .pfl-dash-achievement {
    border-top: 1px solid var(--dash-border);
}

.pfl-dash-achievement__icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FEF3E2;
    color: var(--dash-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfl-dash-achievement__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dash-navy);
}

.pfl-dash-achievement__sub {
    font-size: 12px;
    color: var(--dash-muted);
    margin-top: 2px;
}

/* Reviews card sits full-width */
.pfl-dash-reviews {
    margin-top: 24px;
}

/* Progress & Awards card (PROF-108 AC-05/06) — the badges panel moved below the
   bookings and reviews panels. A locked badge desaturates its icon and shows a
   progress bar toward its target, so a full-colour icon always means "earned". */
.pfl-dash-awards {
    margin-top: 24px;
}

.pfl-dash-badge__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.pfl-dash-badge.is-locked .pfl-dash-achievement__icon {
    background: #F1F5F9;
    color: #94A3B8;
    filter: grayscale(1);
}

.pfl-dash-badge__progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pfl-dash-badge__bar {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 999px;
    background: var(--dash-border, #E2E8F0);
    overflow: hidden;
}

.pfl-dash-badge__bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--dash-orange, #F2A35B);
    transition: width 0.3s ease;
}

.pfl-dash-badge__count {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-muted, #64748B);
}

.pfl-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--dash-navy), var(--dash-indigo));
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease;
}

.pfl-dash-btn:hover {
    background: linear-gradient(90deg, #1A2D63, #3840A0);
    color: #FFFFFF;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .pfl-dash-stats { grid-template-columns: repeat(2, 1fr); }
    .pfl-dash-steps { grid-template-columns: repeat(2, 1fr); }
    .pfl-dash-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .pfl-dash-shell { flex-direction: column; }
    .pfl-dash-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
        padding: 16px;
    }
    .pfl-dash-sidebar__profile {
        flex-direction: row;
        border-bottom: none;
        padding-bottom: 0;
        gap: 10px;
        text-align: left;
    }
    .pfl-dash-avatar { width: 40px; height: 40px; font-size: 15px; }
    .pfl-dash-nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 0;
        flex-basis: 100%;
    }
    .pfl-dash-sidebar__footer { display: none; }
    .pfl-dash-main { padding: 20px 16px 36px; }
    .pfl-dash-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .pfl-dash-stats { grid-template-columns: 1fr 1fr; }
    .pfl-dash-steps { grid-template-columns: 1fr; }
}

/* ── Activation waiting room (PROF-86) ───────────────────────────────────
   Shown on the dashboard while the submitted application waits on its four
   activation gates. Colours are the standard status tokens: green passed,
   amber pending — nothing new is invented for this widget. */
.pfl-dash-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pfl-dash-act__shield {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #EEF2FF;
    color: var(--dash-indigo);
    margin: 8px 0 16px;
}

.pfl-dash-act__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dash-navy);
}

.pfl-dash-act__sub {
    margin: 0 0 20px;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dash-muted);
}

.pfl-dash-act__trial {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 720px;
    width: 100%;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #3730A3;
    text-align: left;
}

.pfl-dash-act__card {
    max-width: 720px;
    width: 100%;
    text-align: left;
}

.pfl-dash-act__gate {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dash-border, #E2E8F0);
}

.pfl-dash-act__gate:last-child { border-bottom: none; }

.pfl-dash-act__gateicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: none;
}

.pfl-dash-act__gateicon.is-done { background: #DCFCE7; color: #16A34A; }
.pfl-dash-act__gateicon.is-pending { background: #FEF3E2; color: #B45309; }

.pfl-dash-act__gatetext {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pfl-dash-act__gatetitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--dash-navy);
}

.pfl-dash-act__gatesub {
    font-size: 12px;
    color: var(--dash-muted);
}

.pfl-dash-act__chip {
    margin-left: auto;
    flex: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
}

.pfl-dash-act__chip.is-done { background: #DCFCE7; color: #15803D; }
.pfl-dash-act__chip.is-pending { background: #FEF3E2; color: #B45309; }

/* PROF-97 §4.2: a rejected/changes-requested gate — red icon and a red action
   link (in place of the status chip) back to the step that needs redoing. */
.pfl-dash-act__gateicon.is-rejected { background: #FEE2E2; color: #DC2626; }

.pfl-dash-act__action {
    margin-left: auto;
    flex: none;
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
    text-decoration: none;
    white-space: nowrap;
}

    .pfl-dash-act__action:hover { text-decoration: underline; }

.pfl-dash-act__hint {
    margin: 20px 0 0;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--dash-muted);
}

/* Padlocked sidebar entries while the account is pending (PROF-86 mockup):
   greyed, non-interactive, with the lock pushed to the row's right edge. */
.pfl-dash-navlink.is-locked {
    opacity: 0.55;
    cursor: default;
}

.pfl-dash-navlock { margin-left: auto; }

/* ══════════════════ Settings page (/user/settings, PROF-87) ══════════════════
   The mockup's tabbed control panel inside the dashboard shell: underline
   tabs, white bordered cards, uppercase micro-labels, 48px inputs and the
   brand-gradient primary button. */

.pfl-set-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--dash-border, #E2E8F0);
    margin-bottom: 24px;
    overflow-x: auto;
}

.pfl-set-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 10px 2px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dash-muted);
    cursor: pointer;
    white-space: nowrap;
}

.pfl-set-tab:hover { color: var(--dash-navy); }

.pfl-set-tab.is-active {
    color: var(--dash-navy);
    border-bottom-color: var(--dash-indigo);
}

/* The README's <640px behaviour: the bar collapses to a dropdown. */
.pfl-set-tabselect { display: none; }

@media (max-width: 639px) {
    .pfl-set-tabs { display: none; }

    .pfl-set-tabselect {
        display: block;
        width: 100%;
        height: 48px;
        margin-bottom: 20px;
        padding: 0 12px;
        border: 1.5px solid var(--dash-border, #E2E8F0);
        border-radius: 8px;
        background: #FFFFFF;
        font-size: 14px;
        font-weight: 600;
        color: var(--dash-navy);
    }
}

.pfl-set-card {
    background: #FFFFFF;
    border: 1px solid var(--dash-border, #E2E8F0);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    max-width: 860px;
}

.pfl-set-cardtitle {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dash-navy);
}

/* PROF-201 §4.2/§4.3: section header with an action link pinned right
   ("Όλες οι συνδέσεις →", "Οι Πιστοποιήσεις μου →"). Mirrors
   .pfl-dash-card__head. The title's own bottom margin is dropped here so the
   row spaces the card once, not twice. */
.pfl-set-cardhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pfl-set-cardhead .pfl-set-cardtitle { margin-bottom: 0; }

.pfl-set-cardlink {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-navy);
    text-decoration: none;
    white-space: nowrap;
}

.pfl-set-cardlink:hover { text-decoration: underline; }

.pfl-set-cardsub {
    margin: -8px 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--dash-muted);
}

.pfl-set-field { margin-bottom: 16px; }

/* No text-transform here on purpose: palette.css enforces "no uppercase,
   anywhere" (uppercase Greek drops its accents) — the micro-label reads as
   one through size, weight and tracking alone. */
.pfl-set-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--dash-muted);
}

.pfl-set-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 639px) {
    .pfl-set-grid2 { grid-template-columns: 1fr; }
}

.pfl-set-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--dash-border, #E2E8F0);
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 14px;
    color: var(--dash-navy);
    outline: none;
}

.pfl-set-input:focus {
    border-color: var(--dash-indigo);
    box-shadow: 0 0 0 4px rgba(43, 46, 124, 0.08);
}

.pfl-set-input:disabled {
    background: #F8FAFC;
    color: var(--dash-muted);
}

.pfl-set-input--error { border-color: #C0392B !important; }

.pfl-set-fielderror {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #C0392B;
}

.pfl-set-pwwrap { position: relative; }

.pfl-set-pwwrap .pfl-set-input { padding-right: 44px; }

.pfl-set-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: none;
    color: var(--dash-muted);
    cursor: pointer;
}

.pfl-set-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--pfl-grad-cta, linear-gradient(90deg, #0F1F4B, #2B2E7C));
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* PROF-123 FIX-01: a disabled primary button reads as a clear GREY control
   ("fill the form first"), not a washed-out gradient that looks broken/locked
   — the active state keeps the brand gradient (above). */
.pfl-set-btn:disabled {
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
}

.pfl-set-btn--outline:disabled {
    background: #FFFFFF;
    border-color: #E2E8F0;
    color: #94A3B8;
}

/* PROF-123 AC-08: the pending verification badge is a link to the checklist. */
.pfl-dash-status--pending {
    cursor: pointer;
    text-decoration: none;
}

.pfl-dash-status--pending:hover {
    text-decoration: underline;
}

/* PROF-108 v1.1 AC-W05: a fully-active pro who paused new bookings — grey pill
   and dot, distinct from the green "Ενεργός" accepting state. */
.pfl-dash-status--paused { color: var(--dash-muted); }
.pfl-dash-status--paused::before { background: var(--dash-muted); }

.pfl-set-btn--outline {
    background: #FFFFFF;
    border: 1.5px solid var(--dash-indigo);
    color: var(--dash-indigo);
}

.pfl-set-btn--ghost {
    background: none;
    color: var(--dash-muted);
}

.pfl-set-btn--danger {
    background: #FFFFFF;
    border: 1.5px solid #DC2626;
    color: #DC2626;
}

.pfl-set-btnrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pfl-set-banner {
    background: #EEF2FF;
    border-left: 3px solid var(--dash-indigo);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #3730A3;
}

.pfl-set-banner--ok {
    margin-top: 16px;
    margin-bottom: 0;
    background: #DCFCE7;
    border-left-color: #16A34A;
    color: #15803D;
}

/* Ζώνη Προσοχής — the mockup's pink danger card. */
.pfl-set-card--danger {
    background: #FEF2F2;
    border-color: #FECACA;
}

.pfl-set-cardtitle--danger { color: #C0392B; }

.pfl-set-dangertext {
    margin: 0 0 16px;
    max-width: 640px;
    font-size: 13px;
    line-height: 1.6;
    color: #7F1D1D;
}

/* Toggle rows (notifications + privacy tabs). */
.pfl-set-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dash-border, #E2E8F0);
}

.pfl-set-toggle:last-child { border-bottom: 0; }

.pfl-set-toggletext {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pfl-set-toggletitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--dash-navy);
}

.pfl-set-togglesub {
    font-size: 12px;
    line-height: 1.5;
    color: var(--dash-muted);
}

/* Billing summary grid. */
.pfl-set-billgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.pfl-set-billvalue {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dash-navy);
}

.pfl-set-billsub {
    display: block;
    font-size: 12px;
    color: var(--dash-muted);
}

.pfl-set-billchip {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 12px;
    background: #EEF2FF;
    color: var(--dash-indigo);
}

/* Availability: day pills + blocked ranges. */
.pfl-set-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pfl-set-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 14px;
    border: 1.5px solid var(--dash-border, #E2E8F0);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-muted);
    cursor: pointer;
    user-select: none;
}

.pfl-set-day.is-on {
    background: var(--pfl-grad-cta, linear-gradient(90deg, #0F1F4B, #2B2E7C));
    border-color: transparent;
    color: #FFFFFF;
}

.pfl-set-day input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pfl-set-blockadd {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 460px;
}

.pfl-set-blockadd .mud-picker { flex: 1 1 260px; }

.pfl-set-blocklist {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.pfl-set-blockrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dash-border, #E2E8F0);
    font-size: 14px;
    color: var(--dash-navy);
}

.pfl-set-blockrow:last-child { border-bottom: 0; }

.pfl-set-blockdel {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--dash-muted);
    cursor: pointer;
}

.pfl-set-blockdel:hover {
    background: #FEF2F2;
    color: #DC2626;
}

/* ══════════════ Dashboard tabs: Bookings / Revenue / Reviews (PROF-92) ══════════════ */

/* Sidebar bottom block — divider, Settings, red Log out (mockup order). */
.pfl-dash-sidebar__bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--dash-border);
}

.pfl-dash-navlink--logout {
    appearance: none;
    border: 0;
    background: none;
    /* PROF-181: inherit the FONT FAMILY only. A <button> otherwise uses the UA
       font family, which made «Έξοδος» look different from the <a> nav items.
       Using the `font` shorthand here (as before) also reset font-size/weight,
       so the logout rendered larger — inheriting family alone keeps the
       .pfl-dash-navlink 14px / 500 and lines it up with the links above. */
    font-family: inherit;
    /* PROF-131: the logout is a <button>, which does not stretch/left-align like the
       <a> nav items — force full width + left-aligned flex content so «Έξοδος» lines
       up with the rest of the menu. */
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    color: #DC2626;
}

.pfl-dash-navlink--logout .mud-icon-root { color: #DC2626; }

.pfl-dash-navlink--logout:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

/* Trial banner on the active dashboard — dark navy strip (mockup). */
.pfl-dash-trialbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #0F1F4B, #2B2E7C);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
}

.pfl-dash-trialbar__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pfl-dash-trialbar__text strong { font-size: 14px; }

.pfl-dash-trialbar__cta {
    flex: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
}

.pfl-dash-trialbar__cta:hover { background: rgba(255, 255, 255, 0.22); color: #FFFFFF; }

/* Filter chips (bookings tab). */
.pfl-tab-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pfl-tab-filter {
    appearance: none;
    cursor: pointer;
    border: 1.5px solid var(--dash-border);
    background: #FFFFFF;
    color: var(--dash-navy);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.pfl-tab-filter.is-active {
    background: linear-gradient(90deg, #0F1F4B, #2B2E7C);
    border-color: transparent;
    color: #FFFFFF;
}

/* List rows shared by bookings + revenue payments. */
.pfl-tab-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

a.pfl-tab-row:hover { border-color: #C7D2FE; }

.pfl-tab-row--static {
    border: 0;
    border-bottom: 1px solid var(--dash-border);
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 0;
}

.pfl-tab-row--static:last-child { border-bottom: 0; }

.pfl-tab-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EEF2FF;
    color: var(--dash-indigo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.pfl-tab-rowtext {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.pfl-tab-rowtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-navy);
}

.pfl-tab-rowsub {
    font-size: 12px;
    color: var(--dash-muted);
}

.pfl-tab-rowend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.pfl-tab-rowend--col {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.pfl-tab-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-navy);
}

.pfl-tab-chip {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
}

.pfl-tab-chip.is-pending { background: #FEF3E2; color: #B45309; }
.pfl-tab-chip.is-confirmed { background: #DCFCE7; color: #15803D; }
.pfl-tab-chip.is-done { background: #EEF2FF; color: var(--dash-indigo); }

.pfl-tab-emptysub {
    font-size: 12px;
    color: var(--dash-muted);
}

/* Revenue tab. */
.pfl-rev-stats { grid-template-columns: repeat(3, 1fr); }

.pfl-rev-week { color: var(--dash-green) !important; }

.pfl-rev-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    padding-top: 8px;
}

.pfl-rev-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.pfl-rev-bar {
    background: var(--dash-indigo);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}

.pfl-rev-month {
    text-align: center;
    font-size: 11px;
    color: var(--dash-muted);
}

/* Reviews tab. */
.pfl-revw-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pfl-revw-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.pfl-revw-scorenum {
    font-size: 40px;
    font-weight: 800;
    color: var(--dash-navy);
    line-height: 1.1;
}

/* Ratings are the one sanctioned orange surface (design tokens). */
.pfl-revw-stars .mud-rating-item { color: #F2A35B !important; }

.pfl-revw-basedon {
    font-size: 12px;
    color: var(--dash-muted);
}

.pfl-revw-crit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}

.pfl-revw-critlabel {
    flex: 0 0 130px;
    font-size: 13px;
    color: #0F172A;
}

.pfl-revw-critbar {
    flex: 1 1 auto;
    height: 8px;
    border-radius: 999px;
    background: #EEF2FF;
    overflow: hidden;
}

.pfl-revw-critbar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--dash-indigo);
}

.pfl-revw-critpct {
    flex: 0 0 42px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--dash-navy);
}

.pfl-revw-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dash-border);
}

.pfl-revw-item:last-child { border-bottom: 0; }

.pfl-revw-itemtext { min-width: 0; flex: 1 1 auto; }

.pfl-revw-itemhead {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pfl-revw-itemstars { margin-left: auto; }

.pfl-revw-remark {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #0F172A;
}

.pfl-revw-reply {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-left: 3px solid var(--dash-indigo);
    background: #F8FAFC;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #334155;
}

@media (max-width: 760px) {
    .pfl-revw-top { grid-template-columns: 1fr; }
    .pfl-rev-stats { grid-template-columns: 1fr; }
    .pfl-rev-chart { gap: 6px; }
}

/* ── Income tab (PROF-130) ─────────────────────────────────────────────── */
.pfl-inc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pfl-inc-periods { display: flex; gap: 6px; }
.pfl-inc-period {
    border: 1px solid var(--dash-border);
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pfl-inc-period.is-on { background: var(--dash-navy); color: #fff; border-color: var(--dash-navy); }
.pfl-inc-export, .pfl-inc-reportbtn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--dash-navy), var(--dash-indigo));
    color: #fff !important;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}
.pfl-inc-reportbtn { margin-left: 0; }
.pfl-inc-customrange { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.pfl-inc-customrange input[type=date] { padding: 6px 10px; border: 1px solid var(--dash-border); border-radius: 8px; }
.pfl-inc-apply { background: var(--dash-navy); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; cursor: pointer; }

/* Stat cards */
.pfl-inc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.pfl-inc-stat {
    background: #fff;
    border: 1px solid var(--dash-border);
    border-top: 4px solid var(--dash-navy);
    border-radius: 12px;
    padding: 16px 18px;
}
.pfl-inc-stat--green { border-top-color: #16A34A; }
.pfl-inc-stat--amber { border-top-color: #F59E0B; }
.pfl-inc-stat--indigo { border-top-color: var(--dash-indigo); }
.pfl-inc-stat--navy { border-top-color: var(--dash-navy); }
.pfl-inc-stat__label { font-size: 12px; color: var(--dash-muted); }
.pfl-inc-stat__value { font-size: 30px; font-weight: 800; color: var(--dash-navy); line-height: 1.2; margin: 2px 0; }
.pfl-inc-stat__sub { font-size: 12px; color: var(--dash-muted); }
.pfl-inc-amber { color: #D97706 !important; }
.pfl-inc-green { color: #16A34A !important; }
.pfl-inc-red { color: #DC2626 !important; }
.pfl-inc-grey { color: var(--dash-muted) !important; }
.pfl-inc-trend { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #16A34A; }
.pfl-inc-trend.down { color: #DC2626; }

/* Pills */
.pfl-inc-pill { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pfl-inc-pill--paid { background: #DCFCE7; color: #15803D; }
.pfl-inc-pill--pending { background: #FEF3C7; color: #B45309; }
.pfl-inc-pill--refunded { background: #FEE2E2; color: #B91C1C; }

/* Fee + VAT strips */
.pfl-inc-feestrip, .pfl-inc-vatstrip {
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.pfl-inc-vatstrip { background: #F5F7FB; border-color: var(--dash-border); }
.pfl-inc-feestrip__row, .pfl-inc-vatstrip__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #0F172A; }
.pfl-inc-feesep { color: var(--dash-muted); }
.pfl-inc-feestrip__note { font-size: 11px; color: var(--dash-muted); margin-top: 4px; }
.pfl-inc-feelink { color: var(--dash-indigo); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Chart + payout row */
.pfl-inc-row { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 16px; }
.pfl-inc-chartcard, .pfl-inc-payout {
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 16px 18px;
}
.pfl-inc-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pfl-inc-chart-toggles { display: flex; gap: 6px; }
.pfl-inc-toggle { border: 1px solid var(--dash-border); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: #334155; }
.pfl-inc-toggle.is-on { background: var(--dash-indigo); color: #fff; border-color: var(--dash-indigo); }
.pfl-inc-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 20px; }
.pfl-inc-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.pfl-inc-bar { width: 60%; max-width: 34px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--dash-indigo), var(--dash-navy)); }
.pfl-inc-barval { font-size: 11px; font-weight: 700; color: var(--dash-navy); margin-bottom: 4px; }
.pfl-inc-barlabel { margin-top: 6px; font-size: 11px; color: var(--dash-muted); }
.pfl-inc-nodata, .pfl-inc-servicelist { padding: 20px 0; }
.pfl-inc-servicerow { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.pfl-inc-servicename { flex: 0 0 150px; font-size: 13px; color: #0F172A; }
.pfl-inc-servicebar-track { flex: 1 1 auto; height: 10px; background: #EEF2FF; border-radius: 999px; overflow: hidden; }
.pfl-inc-servicebar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dash-navy), var(--dash-indigo)); }
.pfl-inc-serviceval { flex: 0 0 130px; text-align: right; font-size: 13px; font-weight: 700; color: var(--dash-navy); }
.pfl-inc-servicepct { color: var(--dash-muted); font-weight: 500; }

/* Payout card */
.pfl-inc-payout__block { padding: 10px 0; border-bottom: 1px solid var(--dash-border); }
.pfl-inc-payout__block:last-of-type { border-bottom: 0; }
.pfl-inc-payout__label { font-size: 12px; color: var(--dash-muted); }
.pfl-inc-payout__big { font-size: 20px; font-weight: 800; color: var(--dash-navy); margin: 2px 0; }
.pfl-inc-payout__status { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 2px; }
.pfl-inc-payout__sub { font-size: 12px; color: var(--dash-muted); }
.pfl-inc-payout__note { font-size: 11px; color: var(--dash-muted); margin-top: 10px; }

/* Transaction table */
.pfl-inc-txhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.pfl-inc-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pfl-inc-filter { border: 1px solid var(--dash-border); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer; color: #334155; }
.pfl-inc-filter.is-on { background: var(--dash-navy); color: #fff; border-color: var(--dash-navy); }
.pfl-inc-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--dash-border); border-radius: 12px; }
.pfl-inc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pfl-inc-table th { text-align: left; padding: 12px 14px; font-size: 12px; color: var(--dash-muted); border-bottom: 1px solid var(--dash-border); white-space: nowrap; }
.pfl-inc-table td { padding: 12px 14px; border-bottom: 1px solid #F1F5F9; }
.pfl-inc-table tr:last-child td { border-bottom: 0; }
.pfl-inc-num { text-align: right; white-space: nowrap; }
.pfl-inc-table th.pfl-inc-num { text-align: right; }
.pfl-inc-ref { color: var(--dash-indigo); font-weight: 700; text-decoration: none; }
.pfl-inc-service { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfl-inc-date { color: var(--dash-muted); white-space: nowrap; }
.pfl-inc-dl { color: var(--dash-navy); }
.pfl-inc-empty-h { font-weight: 700; color: var(--dash-navy); }
.pfl-inc-cta { display: inline-block; margin: 8px 0; padding: 8px 18px; background: linear-gradient(135deg, var(--dash-navy), var(--dash-indigo)); color: #fff !important; border-radius: 10px; text-decoration: none; font-weight: 700; }
.pfl-inc-pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.pfl-inc-pagebtn { min-width: 34px; height: 34px; border: 1px solid var(--dash-border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; color: #334155; }
.pfl-inc-pagebtn.is-on { background: var(--dash-navy); color: #fff; border-color: var(--dash-navy); }
.pfl-inc-pagebtn:disabled { opacity: .4; cursor: default; }

@media (max-width: 900px) {
    .pfl-inc-stats { grid-template-columns: repeat(2, 1fr); }
    .pfl-inc-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pfl-inc-stats { grid-template-columns: 1fr; }
}

/* ── Bookings board (PROF-132) ─────────────────────────────────────────── */
.pfl-bk-head { margin-bottom: 16px; }
.pfl-bk-subtitle { font-size: 13px; color: var(--dash-muted); margin-top: 2px; }

.pfl-bk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.pfl-bk-stat { background: #fff; border: 1px solid var(--dash-border); border-left: 4px solid var(--dash-navy); border-radius: 12px; padding: 14px 18px; }
.pfl-bk-stat--indigo { border-left-color: var(--dash-indigo); background: #F5F7FF; }
.pfl-bk-stat--green { border-left-color: #16A34A; background: #F0FDF4; }
.pfl-bk-stat--navy { border-left-color: var(--dash-navy); }
.pfl-bk-stat__label { font-size: 12px; color: var(--dash-muted); }
.pfl-bk-stat__value { font-size: 28px; font-weight: 800; color: var(--dash-navy); line-height: 1.2; }
.pfl-bk-stat__sub { font-size: 12px; color: var(--dash-muted); }

.pfl-bk-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--dash-border); margin-bottom: 14px; }
.pfl-bk-tab { border: 0; background: none; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pfl-bk-tab.is-on { color: var(--dash-navy); border-bottom-color: var(--dash-navy); }
.pfl-bk-tabbadge { display: inline-block; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.pfl-bk-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pfl-bk-search { flex: 1 1 220px; min-width: 180px; padding: 8px 12px; border: 1px solid var(--dash-border); border-radius: 8px; font-size: 13px; }
.pfl-bk-datefilter { display: flex; gap: 4px; }
.pfl-bk-dbtn { border: 1px solid var(--dash-border); background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; color: #334155; cursor: pointer; }
.pfl-bk-dbtn.is-on { background: var(--dash-navy); color: #fff; border-color: var(--dash-navy); }
.pfl-bk-servicesel { padding: 8px 10px; border: 1px solid var(--dash-border); border-radius: 8px; font-size: 13px; background: #fff; }

.pfl-bk-urgent { background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.pfl-bk-list { display: flex; flex-direction: column; gap: 12px; }
.pfl-bk-card { background: #fff; border: 1px solid var(--dash-border); border-left: 5px solid var(--dash-border); border-radius: 12px; padding: 14px 16px; }
.pfl-bk-card--pending { border-left-color: #F59E0B; }
.pfl-bk-card--confirmed { border-left-color: #16A34A; }
.pfl-bk-card--cancel { border-left-color: #DC2626; opacity: .85; }
.pfl-bk-card__main { display: flex; gap: 14px; align-items: flex-start; }
.pfl-bk-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.pfl-bk-avatar.is-navy { background: var(--dash-navy); }
.pfl-bk-avatar.is-indigo { background: var(--dash-indigo); }
.pfl-bk-card__body { flex: 1 1 auto; min-width: 0; }
.pfl-bk-card__namerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pfl-bk-name { font-weight: 700; font-size: 15px; color: #0F172A; }
.pfl-bk-returning { background: #DBEAFE; color: #1D4ED8; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pfl-bk-card__meta { font-size: 13px; color: #475569; margin-top: 2px; }
.pfl-bk-card__date { font-size: 12px; color: var(--dash-muted); margin-top: 2px; }
.pfl-bk-card__notes { font-size: 11px; color: #64748B; margin-top: 4px; }
.pfl-bk-countdown { display: inline-block; margin-top: 6px; background: #FEF3C7; color: #B45309; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.pfl-bk-card__right { flex: 0 0 auto; text-align: right; }
.pfl-bk-gross { font-size: 17px; font-weight: 800; color: #16A34A; }
.pfl-bk-net { font-size: 11px; color: var(--dash-muted); }
.pfl-bk-toprice { font-size: 12px; color: var(--dash-muted); font-style: italic; }
.pfl-bk-pill { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pfl-bk-pill--pending { background: #FEF3C7; color: #B45309; }
.pfl-bk-pill--confirmed { background: #DCFCE7; color: #15803D; }
.pfl-bk-pill--active { background: #DBEAFE; color: #1D4ED8; }
.pfl-bk-pill--done { background: #E2E8F0; color: #334155; }
.pfl-bk-pill--cancel { background: #FEE2E2; color: #B91C1C; }

.pfl-bk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.pfl-bk-btn { border: 1px solid var(--dash-border); background: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 36px; }
.pfl-bk-btn:disabled { opacity: .5; cursor: default; }
.pfl-bk-btn--accept { background: linear-gradient(135deg, #16A34A, #15803D); color: #fff; border: 0; }
.pfl-bk-btn--decline { background: #fff; color: #DC2626; border-color: #DC2626; }
.pfl-bk-btn--cancel { background: #fff; color: #DC2626; border-color: #FCA5A5; }
.pfl-bk-btn--ghost { background: #fff; color: #334155; }
.pfl-bk-btn--icon { padding: 8px 10px; color: #475569; }

.pfl-bk-declinesheet { width: 100%; background: #F8FAFC; border: 1px solid var(--dash-border); border-radius: 10px; padding: 12px 14px; }
.pfl-bk-declinetitle { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.pfl-bk-declineopt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.pfl-bk-declinebtns { display: flex; gap: 8px; margin-top: 10px; }

.pfl-bk-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 1400; }
.pfl-bk-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 92vw; background: #fff; z-index: 1401; box-shadow: -6px 0 24px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.pfl-bk-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--dash-border); }
.pfl-bk-drawer__head h2 { font-size: 16px; margin: 0; color: var(--dash-navy); }
.pfl-bk-drawer__x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #64748B; }
.pfl-bk-drawer__body { padding: 16px 18px; overflow-y: auto; }
.pfl-bk-drawer__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
.pfl-bk-drawer__row span { color: var(--dash-muted); }
.pfl-bk-drawer__notes { margin-top: 12px; padding: 10px 12px; background: #F8FAFC; border-radius: 8px; font-size: 13px; color: #475569; }
.pfl-bk-drawer__policy { margin-top: 16px; padding: 12px 14px; background: #FEF9F0; border: 1px solid #FDE68A; border-radius: 8px; font-size: 12px; color: #92400E; }
.pfl-bk-drawer__policytitle { font-weight: 700; margin-bottom: 4px; }

@media (max-width: 760px) {
    .pfl-bk-stats { grid-template-columns: 1fr; }
    .pfl-bk-card__main { flex-wrap: wrap; }
    .pfl-bk-card__right { text-align: left; width: 100%; }
}

/* ── Admin detail-page typography (PROF-148) ───────────────────────────────
   Clear label/value hierarchy on the Client & Professional detail pages:
   indigo semi-bold labels vs dark regular values. Scoped to `.admin-fields`
   grids so KPI cards (big number + small grey label) are untouched. */
:root {
    --admin-label-color: #3F52A2;   /* indigo — field labels */
    --admin-value-color: #1E293B;   /* dark slate — filled values */
    --admin-value-empty: #94A3B8;   /* muted grey — empty / dash */
    --admin-muted:       #64748B;
    --admin-border:      #E2E8F0;
}

.admin-fields .mud-typography-caption {
    color: var(--admin-label-color) !important;
    font-weight: 600;
    letter-spacing: .2px;
}

.admin-fields .mud-typography-body2 {
    color: var(--admin-value-color);
    font-weight: 400;
}

/* Empty / not-provided value — recedes visually. */
.admin-empty { color: var(--admin-value-empty) !important; }

/* Technical identifiers (Stripe / session ids) read as machine values. */
.admin-mono {
    font-family: "Roboto Mono", "Courier New", monospace;
    font-size: .78rem;
    color: var(--admin-muted);
}

/* ===========================================================================
   PROF-162 — Admin Questionnaires editor redesign (/admin/questionnaires)
   Palette from Questionnaires_Redesign_Mockup_27072026.html.
   =========================================================================== */
.pfl-qz-filterbar { display: flex; gap: 6px; margin-bottom: 16px; }
.pfl-qz-filter { padding: 6px 16px; border-radius: 20px; border: 1px solid #CBD2DB; background: #fff; font-size: 13px; cursor: pointer; color: #4A5568; font-weight: 600; transition: all .15s; }
.pfl-qz-filter.active { background: #1E3A5F; color: #fff; border-color: #1E3A5F; }
.pfl-qz-filter:hover:not(.active) { border-color: #2D7DD2; color: #2D7DD2; }
.pfl-qz-count { display: inline-flex; align-items: center; gap: 5px; background: #F0F2F5; border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #8A96A3; white-space: nowrap; }
.pfl-qz-count.has { background: #EBF5FB; color: #2D7DD2; }
.pfl-qz-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pfl-qz-badge.enabled { background: #D5F5E3; color: #196F3D; }
.pfl-qz-badge.disabled { background: #F0F2F5; color: #8A96A3; }
.pfl-qz-dim { color: #8A96A3 !important; }

.pfl-qz-topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #E2E6EC; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.pfl-qz-enabled-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 2px 10px 2px 4px; border-radius: 20px; }
.pfl-qz-enabled-pill.on { color: #196F3D; background: #EAF7EF; }
.pfl-qz-enabled-pill.off { color: #8A96A3; background: #F0F2F5; }

.pfl-qz-langbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pfl-qz-langlabel { font-size: 12px; font-weight: 600; color: #8A96A3; text-transform: uppercase; letter-spacing: .5px; }
.pfl-qz-langswitch { display: inline-flex; gap: 4px; background: #F0F2F5; border-radius: 8px; padding: 3px; }
.pfl-qz-langbtn { padding: 6px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; background: transparent; color: #8A96A3; transition: all .15s; }
.pfl-qz-langbtn.active { background: #fff; color: #1E3A5F; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.pfl-qz-dirty { font-size: 12px; font-weight: 700; color: #C0392B; }

.pfl-qz-questions { display: flex; flex-direction: column; gap: 12px; }
.pfl-qz-card { background: #fff; border: 1px solid #E2E6EC; border-radius: 10px; overflow: hidden; }
.pfl-qz-card.expanded { border-color: #2D7DD2; box-shadow: 0 0 0 2px rgba(45,125,210,0.10); }
.pfl-qz-card-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.pfl-qz-card-head:hover { background: #FAFBFC; }
.pfl-qz-grip { color: #CBD2DB; font-size: 16px; cursor: grab; flex-shrink: 0; }
.pfl-qz-move { display: flex; flex-direction: column; }
.pfl-qz-move .mud-button-root { min-width: 0; padding: 0; height: 16px; width: 22px; }
.pfl-qz-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #1E3A5F; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pfl-qz-preview { flex: 1; min-width: 0; font-weight: 600; color: #24303f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfl-qz-opts { flex-shrink: 0; background: #F0F2F5; color: #4A5568; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.pfl-qz-status { flex-shrink: 0; font-size: 11px; font-weight: 700; }
.pfl-qz-status.on { color: #27AE60; }
.pfl-qz-status.off { color: #8A96A3; }
.pfl-qz-head-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.pfl-qz-chevron { color: #8A96A3; transition: transform .2s; }
.pfl-qz-card.expanded .pfl-qz-chevron { transform: rotate(180deg); }

/* PROF-249: the chevron is now the toggle, so it needs to look like one — it sits
   between two icon buttons that already carry a hover target. The rotate above
   still works: the class stayed on the icon, this wraps it. */
.pfl-qz-chev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s;
}
.pfl-qz-chev-btn:hover { background: #F0F2F5; }

.pfl-qz-card-body { padding: 4px 16px 14px; border-top: 1px solid #E2E6EC; }
.pfl-qz-role-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; }
@media (max-width: 900px) { .pfl-qz-role-cols { grid-template-columns: 1fr; } }
.pfl-qz-role-head { padding: 7px 12px; border-radius: 8px 8px 0 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.pfl-qz-role-head.client { background: #EBF5FB; color: #1A5276; border: 1px solid #AED6F1; border-bottom: none; }
.pfl-qz-role-head.pro { background: #EAF5EA; color: #1D6A2C; border: 1px solid #A9DFBF; border-bottom: none; }
.pfl-qz-role-body { padding: 12px; border-radius: 0 0 8px 8px; background: #F8F9FB; }
.pfl-qz-role-body.client { border: 1px solid #AED6F1; }
.pfl-qz-role-body.pro { border: 1px solid #A9DFBF; }

.pfl-qz-options { border-top: 1px solid #E2E6EC; padding-top: 12px; margin-top: 2px; }
.pfl-qz-opts-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #8A96A3; margin-bottom: 8px; }
.pfl-qz-opt-heads, .pfl-qz-opt-row { display: grid; grid-template-columns: 30px minmax(0,1fr) minmax(0,1fr) 150px 58px 44px; gap: 8px; align-items: center; }
.pfl-qz-opt-heads { padding: 0 4px 4px; font-size: 11px; font-weight: 700; color: #8A96A3; text-transform: uppercase; letter-spacing: .3px; }
.pfl-qz-opt-row { padding: 6px 4px; border: 1px solid #E2E6EC; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.pfl-qz-suboptions { margin: 0 0 8px 30px; padding: 10px 12px; background: #FBFCFD; border: 1px dashed #CBD2DB; border-radius: 8px; }
.pfl-qz-subitem { padding: 8px 0; border-bottom: 1px solid #E2E6EC; }
.pfl-qz-subitem:last-child { border-bottom: none; }
.pfl-qz-add-option { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 7px; background: #F8F9FB; border: 1px dashed #CBD2DB; border-radius: 8px; cursor: pointer; color: #8A96A3; font-size: 12px; font-weight: 700; transition: all .15s; }
.pfl-qz-add-option:hover { border-color: #2D7DD2; color: #2D7DD2; background: #EBF5FB; }

.pfl-qz-card-foot { border-top: 1px solid #E2E6EC; padding-top: 8px; margin-top: 10px; }
.pfl-qz-add-question { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border: 2px dashed #CBD2DB; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 700; color: #8A96A3; transition: all .15s; }
.pfl-qz-add-question:hover { border-color: #2D7DD2; color: #2D7DD2; background: #EBF5FB; }
.pfl-qz-savebar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; gap: 10px; background: #fff; border-top: 1px solid #E2E6EC; padding: 12px 16px; margin: 18px -12px -12px; box-shadow: 0 -2px 8px rgba(0,0,0,0.05); }

/* ── Membership page (PROF-185 / PROF-205 / PROF-206) ──────────────────────
   The monthly/annual control was two MudButtons whose Filled/Outlined pair read
   as "both selected" (AC-M02). One pill, one active half, no ambiguity. */
.pfl-plan-toggle {
    display: inline-flex;
    padding: 4px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #EEF1F8;
}
.pfl-plan-toggle__opt {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #5A6478;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.pfl-plan-toggle__opt.is-active {
    background: #FFFFFF;
    color: var(--dash-navy, #2B2E7C);
    box-shadow: 0 1px 3px rgba(15, 31, 75, 0.16);
}
.pfl-plan-toggle__note { font-size: .78em; font-weight: 600; opacity: .8; }
.pfl-plan-toggle__opt.is-active .pfl-plan-toggle__note { color: #16A34A; opacity: 1; }

/* AC-M03 — full-width confirmation that annual billing is on. */
.pfl-plan-annualbanner {
    padding: 10px 16px;
    margin-bottom: 16px;
    border: 1px solid #A7E3BE;
    border-radius: 10px;
    background: #ECFDF3;
    color: #15803D;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* PROF-205 / AC-M06 — a readable amber pill, not a washed-out tinted chip. */
.pfl-plan-popularwrap { display: flex; justify-content: center; }
.pfl-plan-popular {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: #E67E22;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* AC-M04 — the monthly price the annual one replaces. */
.pfl-plan-oldprice {
    text-decoration: line-through;
    color: #94A3B8;
    margin-bottom: -2px;
}

/* AC-M05 — the trial banner is the page's call to action, so it is a card with a
   button, not a flat alert. Amber because it is a deadline, not an error. */
.pfl-plan-trialcard {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1.5px solid #F0B460;
    border-radius: 12px;
    background: #FFF9EF;
}
.pfl-plan-trialcard__icon { color: #D97706; flex: none; }
.pfl-plan-trialcard__body { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; }
.pfl-plan-trialcard__title { font-size: 14px; font-weight: 700; color: #92400E; }
.pfl-plan-trialcard__sub { font-size: 13px; color: #A16207; }
.pfl-plan-trialcard__cta {
    flex: none;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--pfl-grad-cta, linear-gradient(135deg, #2E4057 0%, #4A6FA5 100%));
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.pfl-plan-trialcard__cta:hover { color: #FFFFFF; opacity: .92; }

/* PROF-168 issue 1: keep the dashboard's header offset in step with the header
   itself, which drops to 56px at the same breakpoint (global.css). */
@media (max-width: 1023px) {
    .pfl-dash-shell { --pfl-header-h: 56px; }
}

/* ═══ Admin shell (PROF-246) ════════════════════════════════════════════════
   The admin area used a navy MudAppBar and a dark MudDrawer. It now wears the
   site header and a light shell, the same move ProDashboardLayout made in
   PROF-168; the tokens below are that layout's, reused rather than re-picked.

   The 28px top padding is deliberate, not taste: the old shell put content
   92px below the viewport top (80px margin clearing the fixed app bar + 12px
   of p-3). The new one is 64px of sticky header + 28px — the same 92px — so
   the hardcoded `calc(100vh - 180px/200px/230px)` panels on Categories, Faqs,
   SupportMessages, DisputeDetail and ReportDetail keep their intended size
   instead of silently overflowing. */
.pfl-admin-shell {
    /* Mirrors .pfl-header-inner in global.css — 64px desktop, 56px below 1024px. */
    --pfl-header-h: 64px;

    display: flex;
    min-height: calc(100vh - var(--pfl-header-h));
    background: #FFFFFF;
    color: #0F172A;
    font-family: var(--pfl-font, 'Plus Jakarta Sans', sans-serif);
}

.pfl-admin-sidebar {
    width: 260px;
    flex: none;
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    padding: 16px 12px;
    position: sticky;
    top: var(--pfl-header-h);
    align-self: flex-start;
    height: calc(100vh - var(--pfl-header-h));
    overflow-y: auto;
}

.pfl-admin-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 28px 32px 48px;
}

/* The wordmark the MudAppBar used to carry. */
.pfl-admin-brand {
    padding: 8px 12px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #0F1F4B;
    cursor: pointer;
}

.pfl-admin-sidebar .mud-nav-link,
.pfl-admin-sidebar .mud-nav-link .mud-nav-link-text,
.pfl-admin-sidebar .mud-nav-link .mud-icon-root {
    color: #2B2E7C;
}

.pfl-admin-sidebar .mud-nav-link:hover {
    background: #F8FAFC;
    color: #0F1F4B;
}

.pfl-admin-sidebar .mud-nav-group > .mud-nav-link {
    color: #0F1F4B;
    font-weight: 600;
}

/* Point 3 of the ticket. MudBlazor's own typography is theme-driven and would
   otherwise win inside admin tables, inputs and tabs. Dialogs render into a
   portal outside this shell, so they are not covered — say so rather than
   reach for an unscoped rule that would touch the whole site. */
.pfl-admin-shell .mud-typography,
.pfl-admin-shell .mud-button-root,
.pfl-admin-shell .mud-input,
.pfl-admin-shell .mud-table,
.pfl-admin-shell .mud-tabs {
    font-family: inherit;
}

@media (max-width: 1023px) {
    .pfl-admin-shell { --pfl-header-h: 56px; }
}

@media (max-width: 960px) {
    .pfl-admin-shell { flex-direction: column; }

    .pfl-admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: 0;
        border-bottom: 1px solid #E2E8F0;
    }

    .pfl-admin-main { padding: 20px 16px 36px; }
}
