/*
 * PRISM THEME — Base Styles (shared across all panels)
 * Accent colors and dynamic settings are injected via PrismTheme::dynamicCss()
 */

/* ══════════════════════════════════════════════
   SIDEBAR — shadcn-inspired with CSS variable width system
   ══════════════════════════════════════════════ */

:root {
    --sidebar-width: 16.5rem;
    --sidebar-width-icon: 3.5rem;
}

.fi-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e4e7ec !important;
    box-shadow: 1px 0 8px rgba(16, 24, 40, 0.04);
    transition: width 200ms ease, min-width 200ms ease;
}

/* Smooth width transition for collapse/expand */
.fi-sidebar.fi-sidebar-open {
    width: var(--sidebar-width) !important;
}

.fi-sidebar-header {
    position: relative;
    border-bottom: 1px solid #f2f4f7 !important;
    padding: 1.25rem 1rem;
}

.fi-sidebar-item-btn {
    color: #475467 !important;
    border-radius: 8px;
    transition: all 150ms ease;
    margin: 1px 0;
}

.fi-sidebar-item-btn:hover {
    background-color: #f9fafb !important;
    color: #1d2939 !important;
}

.fi-sidebar-item-label { color: inherit !important; }

.fi-sidebar-item-btn .fi-sidebar-item-icon { color: #98a2b3 !important; }
.fi-sidebar-item-btn:hover .fi-sidebar-item-icon { color: #667085 !important; }

.fi-sidebar-group-btn {
    color: #98a2b3 !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* .fi-sidebar-group — no global border-bottom. Dividers between groups are
   now an OPT-IN per-item design option configured in the menu builder
   (settings.border_enabled / border_color / border_thickness) and rendered
   inline by nav-item.blade.php.

   Spacing: previously padding + margin combined to ~8px below every group,
   which stacked with each header's pt-4 to feel loose. Tightened to a
   total ~4px so parent levels sit closer without looking crammed. */
.fi-sidebar-group {
    padding-bottom: 0.125rem;
    margin-bottom: 0.125rem;
}

.fi-sidebar-group-collapse-btn { color: #d0d5dd !important; }

/* Smooth label/text fade on sidebar collapse */
.fi-sidebar-nav {
    transition: opacity 200ms ease;
}

/* Sidebar nav smooth child animations */
.fi-sidebar-nav ul ul {
    transition: max-height 200ms ease, opacity 150ms ease;
    overflow: hidden;
}

/* ══════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════ */

.fi-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

/* ──────────────────────────────────────────────
   MENU-DRIVEN TOPBAR OVERRIDES

   Every visible widget in the admin header is rendered by
   `components.prism-topbar-nav` (which reads the `Topbar Pills` section
   of the top menu). Filament still renders its own native topbar-end
   (global search + notifications bell + user avatar) and the environment
   indicator plugin still injects its badge into GLOBAL_SEARCH_BEFORE — we
   hide those native instances here so the menu-driven ones are the only
   visible copies. The native livewire components stay mounted so their
   modals, events, and keyboard shortcuts continue to work.
   ────────────────────────────────────────────── */

/* Hide Filament's default topbar-end widgets (user menu + notifications +
   global search) — they're re-rendered by our menu-driven topbar. */
.fi-topbar .fi-topbar-end > .fi-user-menu,
.fi-topbar .fi-topbar-end > .fi-dropdown:has(> .fi-user-menu-trigger),
.fi-topbar .fi-topbar-end > .fi-no-database,
.fi-topbar .fi-topbar-end > .fi-global-search {
    display: none !important;
}

/* Hide the environment indicator's default badge — we render it as a pill
   inside the menu-driven topbar instead. The plugin's border-top on the
   .fi-topbar stays (it's a subtle accent, not duplicating widget space). */
.fi-topbar .environment-indicator,
.fi-topbar-end > .environment-indicator {
    display: none !important;
}

/* Menu-driven pill wrapper — right-aligned cluster next to the native
   topbar-end. The container holds TWO sibling <nav> elements: the classic
   horizontal top-nav (root-level links like "Menu Builder") on the left,
   and the topbar pills cluster on the right. We make the wrapper itself a
   flex row so both navs share ONE line; `margin-left:auto` on the pills
   pushes them to the right edge regardless of how many root-level links
   sit in the main nav. Without this, the two navs stack vertically
   (block-level siblings) and the pills get pushed to a second row. */
.prism-topbar-nav-ctn {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    /* Breathing room between the brand/back-arrow and the first nav item. */
    padding-left: 1.5rem;
}
.prism-topbar-nav-pills {
    margin-left: auto;
    gap: 0.375rem;
    flex-shrink: 0;
}
.prism-topbar-nav-pills > * + * {
    margin-left: 0.125rem;
}

/* Scope widget slots so the livewire-rendered user menu avatar, bell, and
   spotlight input look like peers of the simple link pills. */
.prism-topbar-widget {
    display: inline-flex;
    align-items: center;
}

/* The user-menu override renders its own `.fi-dropdown` — inherit the
   existing `.fi-user-menu-trigger` styling without forcing extra padding. */
.prism-topbar-widget--user-avatar .fi-dropdown,
.prism-topbar-widget--notifications .fi-dropdown {
    display: inline-flex;
}

/* ══════════════════════════════════════════════
   SIDEBAR FLYOUT / MEGA POPOVERS
   Positioned absolutely next to a level-0 nav item. Content lives in
   `.prism-flyout-panel`; the outer `.prism-flyout` handles the arrow
   and the small left-side gap + shadow.
   ══════════════════════════════════════════════ */

.prism-flyout {
    /* Coordinates are set inline via Alpine :style (top, left). Explicit
       position/z-index here (not just Tailwind utilities) so the popover
       always floats out of the sidebar's overflow even if the compiled
       CSS bundle hasn't scanned `fixed` / `z-[60]`. */
    position: fixed !important;
    z-index: 60;
    pointer-events: auto;
}

.prism-flyout-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid #e4e4e7;            /* zinc-200 */
    border-radius: 12px;
    box-shadow:
        0 4px 6px -2px rgba(16, 24, 40, 0.04),
        0 16px 28px -8px rgba(16, 24, 40, 0.12);
    overflow: hidden;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

/* Left-pointing arrow tip — two triangles layered to draw a bordered arrow */
.prism-flyout-panel::before,
.prism-flyout-panel::after {
    content: '';
    position: absolute;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
.prism-flyout-panel::before {
    left: -8px;                            /* border layer */
    border-right: 8px solid #e4e4e7;       /* zinc-200 */
}
.prism-flyout-panel::after {
    left: -7px;                            /* fill layer — covers middle of border */
    border-right: 7px solid #ffffff;
}

/* Dark mode — match the sidebar popover to dark surface */
@media (prefers-color-scheme: dark) {
    .prism-flyout-panel {
        background: #18181b;                /* zinc-900 */
        border-color: #3f3f46;              /* zinc-700 */
    }
    .prism-flyout-panel::before {
        border-right-color: #3f3f46;
    }
    .prism-flyout-panel::after {
        border-right-color: #18181b;
    }
}

/* Mega variant — wider panel, no height cap (let it scroll the viewport) */
.prism-flyout--mega .prism-flyout-panel {
    /* width set inline via .w-[640px] utility on the panel wrapper */
}

/* ══════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════ */

/* Main canvas — warm zinc-50 so white cards lift off it */
.fi-main { background-color: #fafafa !important; }

.fi-header-heading {
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    font-size: 1.5rem !important;
    color: #09090b; /* zinc-950 — strong heading contrast */
}

/* ══════════════════════════════════════════════
   BREADCRUMBS (Tailwind Plus inspired)

   Default layout is "Simple with Chevrons" — minimal, no background, just
   text + chevron separators. Three other styles (Simple with Slashes,
   Contained, Full-width Bar) are applied on top of this base via
   `PrismTheme::dynamicCss()`. The admin picks one in
   `/config/prism-control-center` → Theme → Breadcrumbs.
   ══════════════════════════════════════════════ */

nav.fi-breadcrumbs {
    /* Generous breathing room below so the page title isn't squeezed up
       against the breadcrumbs — previous 0.25rem was visually too tight. */
    margin-bottom: 1.25rem !important;
}

ol.fi-breadcrumbs-list {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

li.fi-breadcrumbs-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Links — slightly larger text, snappier hover transition */
.fi-breadcrumbs-item-label {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #71717a !important; /* zinc-500 */
    text-decoration: none !important;
    transition: color 150ms ease;
    line-height: 1.5 !important;
}

a.fi-breadcrumbs-item-label:hover {
    color: #18181b !important; /* zinc-950 */
}

/* Current page (last item, span not link) — bolder + darker */
li.fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label {
    color: #27272a !important; /* zinc-800 */
    font-weight: 600 !important;
}

/* Chevron separator — slightly softer + smaller for polish */
.fi-breadcrumbs-item-separator {
    width: 14px !important;
    height: 14px !important;
    color: #d4d4d8 !important; /* zinc-300 — gentle separator color */
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */

/* Elevated white "design blocks" over the zinc-50 canvas */
.fi-section {
    border-radius: 16px !important;
    border: 1px solid #e4e4e7 !important; /* zinc-200 */
    background: #ffffff !important;
    box-shadow:
        0 1px 3px rgba(24, 24, 27, 0.06),
        0 4px 12px -4px rgba(24, 24, 27, 0.05) !important;
    overflow: hidden;
}

/* Section header: subtle gradient from zinc-50 → white for depth */
.fi-section-header {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%) !important;
    border-bottom: 1px solid #e4e4e7 !important;
    padding: 1rem 1.5rem !important;
}

.fi-section-header-heading { font-weight: 600 !important; color: #18181b !important; /* zinc-900 */ }

/* ══════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════ */

.fi-ta-ctn {
    border-radius: 12px !important;
    border: 1px solid #d0d5dd !important;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.fi-ta-header-cell {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667085 !important;
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e4e7ec !important;
    padding: 0.75rem 1rem !important;
}

.fi-ta-row { border-bottom: 1px solid #f2f4f7 !important; transition: background-color 100ms ease; }
.fi-ta-row:hover { background-color: #f8f9fc !important; }
.fi-ta-cell { color: #475467 !important; }

/* ══════════════════════════════════════════════
   BUTTONS — bolder base, accent-colored shadows, gradients via dynamicCss()
   ══════════════════════════════════════════════ */

.fi-btn {
    border-radius: 8px !important;
    font-weight: 600;
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.06);
}
.fi-btn:active { transform: translateY(0.5px); }

/* Secondary / outline buttons: solid zinc border, crisp hover */
.fi-btn.fi-color-gray,
.fi-btn-outlined {
    background: #ffffff !important;
    border: 1px solid #d4d4d8 !important; /* zinc-300 */
    color: #3f3f46 !important; /* zinc-700 */
}
.fi-btn.fi-color-gray:hover,
.fi-btn-outlined:hover {
    background: #fafafa !important;
    border-color: #a1a1aa !important; /* zinc-400 */
    color: #18181b !important;
}

/* Danger — deeper rose (not pastel) */
.fi-btn.fi-color-danger {
    background: linear-gradient(135deg, #e11d48, #9f1239) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 1px 2px rgba(159, 18, 60, 0.25), 0 4px 12px -2px rgba(225, 29, 72, 0.35) !important;
}
.fi-btn.fi-color-danger:hover {
    background: linear-gradient(135deg, #be123c, #881337) !important;
    box-shadow: 0 1px 2px rgba(159, 18, 60, 0.3), 0 6px 16px -2px rgba(225, 29, 72, 0.45) !important;
    transform: translateY(-1px);
}

/* Success — richer emerald */
.fi-btn.fi-color-success {
    background: linear-gradient(135deg, #059669, #065f46) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 1px 2px rgba(6, 95, 70, 0.25), 0 4px 12px -2px rgba(5, 150, 105, 0.35) !important;
}
.fi-btn.fi-color-success:hover {
    background: linear-gradient(135deg, #047857, #064e3b) !important;
    transform: translateY(-1px);
}

/* Info / blue — deep royal, NOT the old bootstrap light-blue */
.fi-btn.fi-color-info {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 1px 2px rgba(30, 58, 138, 0.3), 0 4px 12px -2px rgba(29, 78, 216, 0.35) !important;
}
.fi-btn.fi-color-info:hover {
    background: linear-gradient(135deg, #1e40af, #172554) !important;
    transform: translateY(-1px);
}

/* Warning — deeper amber */
.fi-btn.fi-color-warning {
    background: linear-gradient(135deg, #d97706, #92400e) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 1px 2px rgba(146, 64, 14, 0.25), 0 4px 12px -2px rgba(217, 119, 6, 0.35) !important;
}
.fi-btn.fi-color-warning:hover {
    background: linear-gradient(135deg, #b45309, #78350f) !important;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   BADGES — richer saturation, not washed out
   ══════════════════════════════════════════════ */

.fi-badge { border-radius: 9999px !important; font-weight: 600; font-size: 0.6875rem !important; }

/* Status badges — bolder text, richer backgrounds */
.fi-badge.fi-color-success { background: #d1fae5 !important; color: #065f46 !important; }
.fi-badge.fi-color-danger  { background: #fecdd3 !important; color: #9f1239 !important; }
.fi-badge.fi-color-warning { background: #fde68a !important; color: #92400e !important; }
.fi-badge.fi-color-info    { background: #dbeafe !important; color: #1e3a8a !important; }
.fi-badge.fi-color-gray    { background: #e4e4e7 !important; color: #3f3f46 !important; }

/* ══════════════════════════════════════════════
   LAYERED BACKGROUNDS — zinc neutrals for depth
   ══════════════════════════════════════════════ */

/* Nested sections inside sections get a subtle zinc-50 tint so hierarchy
   reads without extra borders. */
.fi-section .fi-section {
    background: #fafafa !important;
    box-shadow: none !important;
    border-color: #e4e4e7 !important;
}

/* "Not contained" sections are layout wrappers (e.g. widget rows) — they
   hold child cards but should not render their own card chrome, otherwise
   you get a white band *behind* the stat cards that reads as a visual bug. */
.fi-section.fi-section-not-contained {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.fi-section.fi-section-not-contained .fi-section-content-ctn {
    padding: 0 !important;
}

/* Grid widgets — tighten up the spacing between blocks */
.fi-wi-stats-overview .grid { gap: 1rem !important; }

/* ══════════════════════════════════════════════
   STAT WIDGETS
   ══════════════════════════════════════════════ */

.fi-wi-stats-overview-stat { border-radius: 16px !important; border: 1px solid #e4e7ec; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06) !important; }
.fi-wi-stats-overview-stat-label { font-size: 0.6875rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.06em; color: #667085 !important; }
.fi-wi-stats-overview-stat-value { font-size: 1.875rem !important; font-weight: 700 !important; letter-spacing: -0.03em; color: #101828 !important; }

/* ══════════════════════════════════════════════
   FORMS / INPUTS — Clear, visible borders
   ══════════════════════════════════════════════ */

/* Text inputs — single clean zinc-300 border. Filament's default `ring-1`
   was stacking on top of our border and reading as a doubled line. We kill
   both the Tailwind ring (via the CSS variable) and any box-shadow. */
.fi-input-wrp {
    border-radius: 8px !important;
    border: 1px solid #d4d4d8 !important; /* zinc-300 — soft, not heavy */
    background: #ffffff !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    outline: none !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.fi-input-wrp:focus-within {
    border-color: rgb(var(--c-500)) !important;
    box-shadow: 0 0 0 3px rgba(var(--c-400), 0.18) !important;
}

/* Kill the vertical divider Filament draws between prefix affordances and
   the input itself — on a bordered wrapper it reads as a second border. */
.fi-input-wrp > :not([hidden]) ~ :not([hidden]) {
    border-inline-start-color: transparent !important;
}

/* Prefix icon area — no box around the icon, just padding. */
.fi-input-wrp-prefix,
.fi-input-wrp-suffix {
    border: 0 !important;
    background: transparent !important;
}

/* Select buttons — matching border with inputs. The Filament Select is
   structured as <div class="fi-input-wrp"><button class="fi-select-input-btn">...</button></div>.
   Both elements had a border by default, producing the doubled look when
   a prefix icon is used. We keep the OUTER wrapper as the single visible
   border, and make the inner button transparent. */
.fi-input-wrp:has(.fi-select-input-btn) {
    /* Outer wrapper keeps its border — this is the one the user sees. */
}
.fi-select-input-btn,
button.fi-select-input-btn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    outline: none !important;
    border-radius: 8px !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
/* When the outer wrapper is in focus-within via the inner button, the
   existing .fi-input-wrp:focus-within rule handles the accent tint —
   no separate select focus rule needed. */
.fi-select-input-btn:focus,
.fi-select-input-btn[aria-expanded="true"],
button.fi-select-input-btn:focus,
button.fi-select-input-btn[aria-expanded="true"] {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Kill the vertical divider between the select's prefix icon and its input. */
.fi-select-input-btn > :not([hidden]) ~ :not([hidden]) {
    border-inline-start-color: transparent !important;
}
.fi-select-input-btn .fi-input-wrp-prefix,
.fi-select-input-btn .fi-input-wrp-suffix {
    border: 0 !important;
    background: transparent !important;
}

/* Select dropdown panel — lift above surrounding card chrome so it's not
   clipped by Section borders or column boundaries. */
.fi-dropdown-panel,
.fi-select-search-results-ctn,
.choices__list--dropdown,
.fi-fo-select-dropdown {
    z-index: 60 !important;
}

/* Selected role / multi-select badges — colored chip instead of plain gray.
   We nuke ALL descendants of the badges container: the chip container is
   Filament's Badge component which nests a span > span. Targeting both
   levels + catch-all ensures the gradient wins over default color classes. */
.fi-select-input-value-badges-ctn > *,
.fi-select-input-value-badges-ctn .fi-badge,
.fi-select-input-value-badges-ctn span[class*="fi-color-"] {
    background: linear-gradient(135deg, var(--prism-accent-500, #2563eb), var(--prism-accent-700, #1e40af)) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    box-shadow: 0 1px 2px rgba(var(--prism-accent-rgb-500, 37, 99, 235), 0.25), 0 3px 8px -2px rgba(var(--prism-accent-rgb-500, 37, 99, 235), 0.35) !important;
}

/* Inner text span + any label wrapper stays transparent so only the outer
   chip carries the gradient. */
.fi-select-input-value-badges-ctn .fi-badge > * {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* The small × remove button inside each badge — white so it reads on gradient */
.fi-select-input-value-badges-ctn button,
.fi-select-input-value-badges-ctn .fi-icon-btn,
.fi-select-input-value-badges-ctn [role="button"] {
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 120ms ease;
}
.fi-select-input-value-badges-ctn button:hover,
.fi-select-input-value-badges-ctn .fi-icon-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Textarea border strategy — avoid the doubled-border bug.
   Filament renders textareas inside `.fi-input-wrp` which already owns a
   1px border + 8px radius. A plain `textarea` rule on top of that stacked
   visually to ~2px. Same doubling pattern we already fixed for
   `.fi-select-input-btn` further up.

   Solution is pure specificity cascade (no !important wars, no :not()):
     • Bare `textarea` rule → standalone textareas (custom Livewire pages
       that drop a <textarea> without a wrapper still look correct).
     • `.fi-input-wrp textarea` rule → wins by specificity (0,1,1 > 0,0,1),
       strips the inner border so only the wrapper's border is visible.
       Wrapper's :focus-within already handles the focus tint + ring. */
textarea,
.fi-fo-textarea textarea {
    border: 1px solid #d4d4d8 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    outline: none !important;
}
textarea:focus,
.fi-fo-textarea textarea:focus {
    border-color: rgb(var(--c-500)) !important;
    box-shadow: 0 0 0 3px rgba(var(--c-400), 0.18) !important;
    outline: none;
}

/* Wrapped textarea — wrapper owns the visible chrome; strip the inner
   textarea's own border so the two rules can't stack. Mirrors the
   `.fi-select-input-btn` pattern above. */
.fi-input-wrp textarea {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    outline: none !important;
    border-radius: 8px !important;
}
.fi-input-wrp textarea:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Date picker trigger button */
.fi-fo-date-time-picker button.fi-input-wrp {
    border: 1px solid #d4d4d8 !important;
}

/* Repeater items — clear bordered cards */
.fi-fo-repeater-item {
    border: 1px solid #d0d5dd !important;
    border-radius: 10px !important;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.fi-fo-repeater-item-header {
    background: #f9fafb !important;
    border-bottom: 1px solid #e4e7ec !important;
}
.fi-fo-repeater-item-content {
    border-top: 1px solid #e4e7ec !important;
}

/* Toggle switches — visible border when off */
.fi-fo-toggle [type="checkbox"] + div {
    border: 1px solid #d0d5dd;
}

/* Checkbox & radio — stronger border */
.fi-fo-checkbox-list input[type="checkbox"],
input[type="checkbox"].fi-checkbox-input,
input[type="radio"].fi-radio-input {
    border-color: #98a2b3 !important;
}

/* Field labels — slightly bolder for clarity */
.fi-fo-field-wrp-label label {
    font-weight: 500 !important;
    color: #344054 !important;
}

/* ══════════════════════════════════════════════
   CARDS / SECTIONS — Stronger borders
   ══════════════════════════════════════════════ */

.fi-section {
    border: 1px solid #d0d5dd !important;
}
.fi-section-header {
    background-color: #f8f9fc !important;
    border-bottom: 1px solid #e4e7ec !important;
}

/* ══════════════════════════════════════════════
   DROPDOWNS / MODALS / NOTIFICATIONS
   ══════════════════════════════════════════════ */

.fi-dropdown-panel { border-radius: 12px !important; box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.1), 0 4px 6px -2px rgba(16, 24, 40, 0.05) !important; border: 1px solid #d0d5dd !important; }
.fi-modal-window { border-radius: 16px !important; box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.1) !important; }
.fi-notification { border-radius: 12px !important; box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1) !important; }

/* ══════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #98a2b3; }

/* ══════════════════════════════════════════════
   PRISM USER MENU — rich profile dropdown
   ══════════════════════════════════════════════ */

.prism-user-menu .fi-dropdown-panel {
    padding: 0 !important;
    overflow: hidden !important;
    min-width: 272px !important;
}

.prism-user-menu-header {
    position: relative;
    padding: 1.25rem 1rem 1rem;
    color: #fff;
    overflow: hidden;
}
.prism-user-menu-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.prism-user-menu-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.18), transparent 60%);
}
.prism-user-menu-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.prism-user-menu-avatar .fi-avatar {
    width: 44px !important;
    height: 44px !important;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.prism-user-menu-user {
    flex: 1;
    min-width: 0;
}
.prism-user-menu-name {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prism-user-menu-role {
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Primary link list — each item gets a subtle hover with accent tint */
.prism-user-menu-list {
    padding: 0.375rem !important;
    background: #ffffff !important;
}
.prism-user-menu-list .fi-dropdown-list-item {
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #3f3f46 !important; /* zinc-700 */
    gap: 0.75rem !important;
    transition: background 120ms ease, color 120ms ease;
}
.prism-user-menu-list .fi-dropdown-list-item:hover {
    background: #fafafa !important; /* zinc-50 */
    color: #09090b !important; /* zinc-950 */
}
.prism-user-menu-list .fi-dropdown-list-item .fi-dropdown-list-item-icon {
    color: #71717a !important; /* zinc-500 */
    width: 18px !important;
    height: 18px !important;
}
.prism-user-menu-list .fi-dropdown-list-item:hover .fi-dropdown-list-item-icon {
    color: var(--prism-accent-600, #1d4ed8) !important;
}

/* Divider above footer */
.prism-user-menu-footer {
    border-top: 1px solid #e4e4e7 !important;
    padding: 0.375rem !important;
    background: #fafafa !important;
}
.prism-user-menu-footer .fi-dropdown-list-item {
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #be123c !important; /* rose-700 — danger */
    gap: 0.75rem !important;
    transition: background 120ms ease;
}
.prism-user-menu-footer .fi-dropdown-list-item:hover {
    background: #fff1f2 !important; /* rose-50 */
    color: #9f1239 !important;
}
.prism-user-menu-footer .fi-dropdown-list-item .fi-dropdown-list-item-icon {
    color: currentColor !important;
    width: 18px !important;
    height: 18px !important;
}

/* Trigger button — a subtle pill around avatar + name */
.fi-user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.fi-user-menu-trigger:hover {
    background: #fafafa;
    border-color: #e4e4e7;
}
.fi-user-menu-trigger .fi-avatar {
    width: 32px !important;
    height: 32px !important;
}

/* ══════════════════════════════════════════════
   MY PROFILE PAGE — hero, sticky nav, sections
   ══════════════════════════════════════════════ */

/* Hero banner */
.prism-profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.75rem 2rem 2rem;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow:
        0 12px 28px -8px rgba(var(--prism-accent-rgb-500, 37, 99, 235), 0.35),
        0 2px 6px rgba(0, 0, 0, 0.06);
}
.prism-profile-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--prism-hero-from) 0%, var(--prism-hero-via) 45%, var(--prism-hero-to) 100%);
    z-index: 0;
}
.prism-profile-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.6;
    z-index: 1;
    mask-image: radial-gradient(ellipse at top right, transparent 10%, #000 55%);
}
.prism-profile-hero-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    z-index: 1;
}
.prism-profile-hero-glow-a {
    top: -80px;
    right: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 70%);
}
.prism-profile-hero-glow-b {
    bottom: -100px;
    left: 15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}
.prism-profile-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Identity block — avatar + name + meta */
.prism-profile-hero-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1 1 auto;
    min-width: 0;
}
.prism-profile-hero-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 20px; /* rounded-square by default, squircle feel */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.prism-profile-hero-avatar--rounded { border-radius: 20px; }
.prism-profile-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prism-profile-hero-avatar span {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.prism-profile-hero-text {
    min-width: 0;
    flex: 1;
}
.prism-profile-hero-name {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.prism-profile-hero-name h1 {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}
.prism-profile-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.prism-profile-hero-meta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.82);
}
.prism-profile-hero-meta a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 120ms ease;
}
.prism-profile-hero-meta a:hover {
    color: #fff;
    text-decoration: underline;
}
.prism-profile-hero-role {
    font-weight: 600;
    color: #fff;
}
.prism-profile-hero-sep {
    opacity: 0.4;
}

/* Stat tiles on the right of hero */
.prism-profile-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}
.prism-profile-hero-stat {
    padding: 0.75rem 1rem;
    min-width: 120px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.prism-profile-hero-stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}
.prism-profile-hero-stat-value {
    margin-top: 0.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}

/* ── GRID: main column (2/3) + security sidebar (1/3) ── */
.prism-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
    .prism-profile-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: start;
    }
}
.prism-profile-col-main,
.prism-profile-col-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}
@media (min-width: 1024px) {
    .prism-profile-col-side {
        position: sticky;
        top: 1rem;
    }
}

/* ── SECTION CARD — colored icon + heading + body ── */
.prism-profile-group {
    border-radius: 16px;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(24, 24, 27, 0.05);
    overflow: hidden;
}
.prism-profile-group-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f4f4f5;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}
.prism-profile-group-header h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #09090b;
    letter-spacing: -0.005em;
    line-height: 1.2;
    margin: 0;
}
.prism-profile-group-header p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.4;
}
.prism-profile-group-body {
    padding: 1.25rem;
}
.prism-profile-group-body > *:not(:last-child) {
    margin-bottom: 1rem;
}
/* Strip the inner .fi-section chrome from nested Breezy components so they
   don't render card-inside-card. The grouping card above is the container. */
.prism-profile-group-body .fi-section,
.prism-profile-group-body [wire\:id] .fi-section {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.prism-profile-group-body .fi-section-header {
    display: none !important;
}
.prism-profile-group-body .fi-section-content-ctn {
    padding: 0 !important;
}
/* Compact sidebar variant — tighter padding */
.prism-profile-compact .prism-profile-group-header {
    padding: 0.75rem 1rem;
}
.prism-profile-compact .prism-profile-group-body {
    padding: 1rem;
}

.prism-profile-full {
    margin-bottom: 1.5rem;
}

/* ── COLORED ICON BADGES — splashes of color per section ── */
.prism-profile-group-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.12);
}
.prism-icon-indigo  { background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.45); }
.prism-icon-rose    { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 4px 12px -2px rgba(244, 63, 94, 0.45); }
.prism-icon-emerald { background: linear-gradient(135deg, #10b981, #065f46); box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.45); }
.prism-icon-amber   { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.45); }
.prism-icon-violet  { background: linear-gradient(135deg, #8b5cf6, #5b21b6); box-shadow: 0 4px 12px -2px rgba(139, 92, 246, 0.45); }
.prism-icon-teal    { background: linear-gradient(135deg, #0084D1, #006AA6); box-shadow: 0 4px 12px -2px rgba(20, 184, 166, 0.45); }
.prism-icon-blue    { background: linear-gradient(135deg, #3b82f6, #1e40af); box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.45); }

/* ── Hero pill color variants ── */
.prism-pill-emerald { background: rgba(16, 185, 129, 0.25); border-color: rgba(110, 231, 183, 0.4); }
.prism-pill-amber   { background: rgba(245, 158, 11, 0.25); border-color: rgba(253, 211, 132, 0.4); }

/* Roles row in hero */
.prism-profile-hero-roles {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}
.prism-profile-hero-roles-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 0.125rem;
}
.prism-profile-hero-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease;
}
.prism-profile-hero-role-chip:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.35);
}
.prism-profile-hero-roles-manage {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem 0.2rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 120ms ease;
}
.prism-profile-hero-roles-manage:hover {
    background: rgba(255, 255, 255, 0.18);
    border-style: solid;
    color: #fff;
}

/* ══════════════════════════════════════════════
   BREEZY FORM OVERRIDES — strip aside chrome, normalize grid
   ══════════════════════════════════════════════ */

/* Kill the remaining section chrome that leaves gray outline artifacts
   inside our grouping cards. Kept surgical so the FilePond FileUpload
   component (which relies on its own grid/flex ancestors) still works. */
.prism-profile-group-body .fi-section-ctn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Breezy components render an aside-layout section (heading column on the
   left, content on the right). Our grouping card already owns the heading,
   so we hide the aside AND collapse the grid to a single column so the
   content spans the full card width. */
.prism-profile-group-body .fi-section.fi-aside,
.prism-profile-group-body section.fi-section.fi-aside {
    grid-template-columns: minmax(0, 1fr) !important;
    display: grid !important;
    gap: 0 !important;
}
.prism-profile-group-body .fi-section-aside,
.prism-profile-group-body .fi-section-aside-ctn,
.prism-profile-group-body .fi-section-header-ctn {
    display: none !important;
}
.prism-profile-group-body .fi-section-content-ctn {
    grid-column: 1 / -1 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
}
.prism-profile-group-body .fi-section-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* Ensure body paragraphs and action buttons inside sidebar cards (2FA etc.)
   wrap and flow naturally rather than being clipped by the card height. */
.prism-profile-compact .fi-section-content p,
.prism-profile-compact .fi-section-content .fi-fo-field-wrp,
.prism-profile-compact .fi-section-content > * {
    max-width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.prism-profile-compact .prism-profile-group-body {
    min-height: 0 !important;
    overflow: visible !important;
}
/* 2FA explanatory paragraph: proper line-height and color for readability */
.prism-profile-compact .fi-section-content p {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    color: #52525b !important;
    margin: 0 0 0.75rem 0 !important;
}
/* The Enable button inside the 2FA card shouldn't be squished */
.prism-profile-compact .fi-section-content .fi-btn,
.prism-profile-compact .fi-section-content button[type="button"].fi-btn {
    margin-top: 0.25rem;
}
/* The Breezy form uses Filament's grid; ensure it expands to fill the card. */
.prism-breezy-form {
    width: 100%;
}
.prism-breezy-form .fi-fo-component-ctn > * {
    width: 100% !important;
}

/* ── Hero avatar: no Filament spinner bleed ── */
.prism-profile-hero-avatar svg { animation: none !important; }

/* ══════════════════════════════════════════════
   EDIT USER PAGE — sticky action bar
   ══════════════════════════════════════════════ */

.prism-edit-actions {
    position: sticky;
    bottom: 0;
    margin-top: 1.5rem;
    padding: 0.75rem 0 1rem 0;
    /* Solid fade-in: transparent for the top 16px (so content doesn't snap-clip),
       then opaque zinc-50 matching the page canvas so nothing bleeds through. */
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, #fafafa 16px, #fafafa 100%);
    z-index: 10;
    pointer-events: none;
}
.prism-edit-actions-inner {
    pointer-events: auto;
}
.prism-edit-actions-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px -4px rgba(24, 24, 27, 0.12);
}
.prism-edit-actions-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #52525b;
}

/* ══════════════════════════════════════════════
   PRISM AVATAR ROW — replaces FilePond for personal info
   ══════════════════════════════════════════════ */

.prism-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.125rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fafafa;
}
.prism-avatar-preview {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--prism-accent-500, #2563eb), var(--prism-accent-700, #1e40af));
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prism-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prism-avatar-preview span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}
.prism-avatar-loading {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.prism-avatar-controls {
    flex: 1;
    min-width: 0;
}
.prism-avatar-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.01em;
}
.prism-avatar-hint {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #71717a;
}
.prism-avatar-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.prism-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.prism-avatar-btn-primary {
    background: linear-gradient(135deg, var(--prism-accent-500, #2563eb), var(--prism-accent-700, #1e40af));
    color: #ffffff;
    box-shadow: 0 2px 6px -1px rgba(var(--prism-accent-rgb-500, 37, 99, 235), 0.35);
}
.prism-avatar-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.prism-avatar-btn-ghost {
    background: #ffffff;
    color: #3f3f46;
    border-color: #d4d4d8;
}
.prism-avatar-btn-ghost:hover {
    background: #fafafa;
    border-color: #a1a1aa;
}
.prism-avatar-btn-danger {
    background: #ffffff;
    color: #be123c;
    border-color: #fecdd3;
}
.prism-avatar-btn-danger:hover {
    background: #fff1f2;
    border-color: #fda4af;
    color: #9f1239;
}

/* NOTE: Filament already applies a correct border to textarea and
   .fi-select-input-btn via its own wrapper styles. Adding a second border
   inside .prism-profile-group-body stacked visually, producing the "thick
   border" bug on Timezone/Bio. We intentionally do not add borders here. */

/* ══════════════════════════════════════════════
   TWO-FACTOR AUTH CARD — spacing cleanup
   ══════════════════════════════════════════════ */

/* Breezy's 2FA component emits its own section with heading + content.
   Tighten the gap between our status pill line and the first sentence so
   it doesn't feel like there's an orphan gap. */
.prism-profile-compact .prism-profile-group-header p {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    line-height: 1.3;
}
.prism-profile-compact .prism-profile-group-body > * {
    margin-top: 0 !important;
}
.prism-profile-compact .prism-profile-group-body h3,
.prism-profile-compact .prism-profile-group-body .fi-header-heading {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #18181b !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
}
.prism-profile-compact .prism-profile-group-body p {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #52525b;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.fi-main-ctn::after { content: 'Prism Theme — ACT CMS'; display: block; text-align: center; padding: 1.5rem 0; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; color: #98a2b3; }
