/*
 * EvoStore Admin — branding overrides for the Filament panel.
 * Plain CSS (no build step). Published to public/ by `php artisan filament:assets`.
 * Brand: primary #0052CC, accent/danger #FF1E2D, navy #0B1E3A, surface #F4F6F9,
 *        muted #6B7280, borders #E1E7F0.
 * Fonts: Inter Variable (UI, shipped locally by Filament) + Montserrat Variable (headings, local).
 *
 * Interior rules are scoped to `.fi-body-has-navigation` (logged-in layout) so the approved
 * auth pages at the bottom of this file are not affected.
 */

:root {
    --evo-blue: #0052CC;
    --evo-blue-600: #0047B3;
    --evo-blue-700: #003D99;
    --evo-blue-50: #EBF2FF;
    --evo-red: #FF1E2D;
    --evo-red-600: #D91422;
    --evo-red-50: #FFEEEF;
    --evo-navy: #0B1E3A;
    --evo-navy-2: #132B52;
    --evo-surface: #F4F6F9;
    --evo-muted: #6B7280;
    --evo-border: #E1E7F0;
    --evo-border-strong: #CFD8E4;
    --evo-green: #12A150;
    --evo-green-50: #E8F7EE;
    --evo-amber: #D97706;
    --evo-amber-50: #FEF5E6;
    --evo-radius: 12px;
    --evo-radius-sm: 10px;
    --evo-shadow: 0 1px 2px rgb(11 30 58 / .04), 0 1px 3px rgb(11 30 58 / .04);
    --evo-shadow-hover: 0 6px 18px -6px rgb(11 30 58 / .14);
    --evo-heading-font: 'Montserrat Variable', 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
    --evo-accent-line: linear-gradient(90deg, var(--evo-red) 0%, var(--evo-red) 35%, var(--evo-blue) 35%, var(--evo-blue) 100%);
}

/* ---------- Wordmark ---------- */
.evo-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Montserrat Variable', ui-sans-serif, system-ui, sans-serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 1.5rem;
    white-space: nowrap;
    user-select: none;
}
.evo-wordmark .evo-wordmark-evo { color: var(--evo-blue); }
.evo-wordmark .evo-wordmark-store { color: var(--evo-red); padding-inline-end: .06em; }
.evo-wordmark .evo-wordmark-suffix {
    margin-inline-start: .5rem;
    font-family: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--evo-muted);
}
.fi-simple-layout .evo-wordmark { font-size: 2.25rem; }

/* ---------- Headings in Montserrat ---------- */
.fi-header-heading,
.fi-simple-header-heading,
.fi-section-header-heading,
.fi-ta-header-heading,
.fi-modal-heading,
.fi-wi-stats-overview-stat-value,
.fi-ta-empty-state-heading,
.fi-no-notification-title {
    font-family: var(--evo-heading-font);
}
.fi-header-heading,
.fi-simple-header-heading { font-weight: 700; letter-spacing: -0.01em; }

/* =====================================================================
   1. Page surface
   ===================================================================== */
.fi-body { background-color: var(--evo-surface); }
.fi-body-has-navigation { color: #1F2937; }

/* =====================================================================
   2. Sidebar — navy, wordmark, muted uppercase groups, blue active pill
   ===================================================================== */
.fi-body-has-navigation .fi-sidebar {
    background-color: var(--evo-navy) !important;
    box-shadow: none !important;
}
/* One continuous navy column: no divider under the brand (mobile header), no ring/border */
.fi-body-has-navigation .fi-sidebar-header {
    background-color: var(--evo-navy) !important;
    box-shadow: none !important;
    border: 0 !important;
}
.fi-sidebar .evo-wordmark .evo-wordmark-evo { color: #FFFFFF; }
.fi-sidebar .evo-wordmark .evo-wordmark-suffix,
.fi-topbar-start .evo-wordmark .evo-wordmark-suffix {
    align-self: center;
    margin-inline-start: .6rem;
    padding: .2rem .45rem .18rem;
    border-radius: 4px;
    background: rgb(255 255 255 / .1);
    color: rgb(255 255 255 / .78);
    font-size: .58rem;
    letter-spacing: .16em;
    line-height: 1;
}

.fi-body-has-navigation .fi-sidebar-nav {
    position: relative;
    z-index: 1;
    padding-block: 1rem 1.5rem;
    padding-inline: 1rem .4rem; /* the stable scrollbar gutter (~10px) completes the right side */
    row-gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / .16) transparent;
}

/* Group labels: small, uppercase, muted */
.fi-body-has-navigation .fi-sidebar-nav-groups { margin-inline: 0; }
.fi-sidebar .fi-sidebar-group-btn { padding-inline: .75rem; }
.fi-sidebar .fi-sidebar-group-label {
    color: rgb(255 255 255 / .42) !important;
    font-size: .66rem !important;
    font-weight: 600 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.fi-sidebar .fi-sidebar-group-btn .fi-icon,
.fi-sidebar .fi-sidebar-group-collapse-btn .fi-icon { color: rgb(255 255 255 / .35) !important; }
.fi-sidebar .fi-sidebar-group-collapse-btn:hover .fi-icon { color: rgb(255 255 255 / .7) !important; }
.fi-sidebar .fi-sidebar-group-items { row-gap: 2px; }

/* Items */
.fi-sidebar .fi-sidebar-item-btn {
    border-radius: var(--evo-radius-sm);
    padding: .55rem .75rem;
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
}
.fi-sidebar .fi-sidebar-item-label {
    color: rgb(255 255 255 / .78) !important;
    font-size: .875rem;
    font-weight: 500 !important;
}
.fi-sidebar .fi-sidebar-item-icon {
    color: rgb(255 255 255 / .5) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}
.fi-sidebar .fi-sidebar-item-btn:hover,
.fi-sidebar .fi-sidebar-item-btn:focus-visible {
    background-color: rgb(255 255 255 / .07) !important;
}
.fi-sidebar .fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item-btn:hover .fi-sidebar-item-icon { color: #FFFFFF !important; }
.fi-sidebar .fi-sidebar-item-btn:focus-visible { outline: 2px solid rgb(255 255 255 / .28); outline-offset: 2px; }

/* Active (EVT-00287 msg #23): white pill, black text, thin red marker on the left */
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: #FFFFFF !important;
    box-shadow: 0 6px 16px -8px rgb(0 0 0 / .6);
}
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    content: '';
    position: absolute;
    inset-block: .5rem;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--evo-red);
}
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon {
    color: #111111 !important;
    font-weight: 600 !important;
}
.fi-sidebar .fi-sidebar-item-badge-ctn .fi-badge { background: var(--evo-red); color: #fff; --tw-ring-color: transparent; }
/* EVT-00277 msg #265: highlighted menu entries („Fișe service”, „PV predare piese”): light pill, bold white text, amber marker */
.fi-sidebar .fi-sidebar-item.evo-nav-highlight:not(.fi-active) > .fi-sidebar-item-btn {
    background-color: rgb(255 255 255 / .12);
    box-shadow: inset 3px 0 0 var(--evo-amber);
}
.fi-sidebar .fi-sidebar-item.evo-nav-highlight:not(.fi-active) > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item.evo-nav-highlight:not(.fi-active) > .fi-sidebar-item-btn .fi-sidebar-item-icon {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}
.fi-sidebar .fi-sidebar-item.evo-nav-highlight.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { font-weight: 700 !important; }

.fi-sidebar .fi-sidebar-item-grouped-border-part,
.fi-sidebar .fi-sidebar-item-grouped-border-part-not-first,
.fi-sidebar .fi-sidebar-item-grouped-border-part-not-last {
    background-color: rgb(255 255 255 / .2) !important;
}
.fi-sidebar .fi-icon-btn .fi-icon { color: rgb(255 255 255 / .7); }
.fi-sidebar .fi-icon-btn:hover { background-color: rgb(255 255 255 / .08); }

/* Collapsed rail (desktop): centered icons, compact pill */
@media (min-width: 64rem) {
    .fi-body-has-navigation .fi-main-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav { padding-inline: .75rem; scrollbar-gutter: auto; scrollbar-width: none; }
    .fi-body-has-navigation .fi-main-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn { justify-content: center; padding: .6rem; }
}

/* =====================================================================
   3. Topbar — white, navy brand block over the sidebar, red→blue line
   ===================================================================== */
.fi-body-has-navigation .fi-topbar {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0 1px 0 var(--evo-border), 0 4px 12px -8px rgb(11 30 58 / .12);
}
.fi-body-has-navigation .fi-topbar::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 3px;
    background: var(--evo-accent-line);
    pointer-events: none;
    transition: inset-inline-start .2s ease;
}
.fi-topbar .fi-icon-btn { color: var(--evo-navy); border-radius: var(--evo-radius-sm); }
.fi-topbar .fi-icon-btn:hover { background: var(--evo-surface); }

/* Mobile: compact wordmark next to the hamburger */
.evo-topbar-mobile-logo { order: 1; display: inline-flex; align-items: center; margin-inline: .35rem .75rem; text-decoration: none; }
.evo-topbar-mobile-logo .evo-wordmark { font-size: 1.2rem; }
.fi-topbar > .fi-topbar-open-sidebar-btn,
.fi-topbar > .fi-topbar-close-sidebar-btn { order: 0; }
.fi-topbar > .fi-topbar-start { order: 1; }
.fi-topbar > .fi-topbar-end { order: 2; }

@media (min-width: 64rem) {
    .evo-topbar-mobile-logo { display: none; }

    /* Desktop: the navy brand block (topbar start) and the sidebar below it form ONE column.
       The topbar's border/shadow and the red→blue line start at the column's edge so nothing
       cuts across the navy between the wordmark and the navigation. */
    .fi-body-has-navigation .fi-topbar { padding-inline-start: 0; box-shadow: none; }
    .fi-body-has-navigation .fi-topbar::after { inset-inline-start: var(--sidebar-width); }
    .fi-body-has-navigation:has(.fi-main-sidebar:not(.fi-sidebar-open)) .fi-topbar::after { inset-inline-start: var(--collapsed-sidebar-width); }
    .fi-body-has-navigation .fi-topbar-start {
        box-sizing: border-box;
        align-self: stretch;
        flex: none;
        width: var(--sidebar-width);
        margin-inline-end: 1.75rem;
        padding-inline: 1.75rem .75rem; /* wordmark aligns with the nav icons below */
        background: var(--evo-navy);
        transition: width .2s ease;
    }
    .fi-body-has-navigation .fi-topbar-start > a { display: inline-flex; align-items: center; }
    .fi-body-has-navigation .fi-topbar-start .fi-logo { margin-inline-start: 0; display: flex; align-items: center; }
    .fi-body-has-navigation .fi-topbar-start .evo-wordmark-evo { color: #FFFFFF; }
    .fi-body-has-navigation .fi-topbar-start .fi-topbar-collapse-sidebar-btn-ctn { order: 2; margin-inline-start: auto; }
    .fi-body-has-navigation .fi-topbar-start .fi-icon-btn { color: rgb(255 255 255 / .55); }
    .fi-body-has-navigation .fi-topbar-start .fi-icon-btn:hover { color: #FFFFFF; background: rgb(255 255 255 / .08); }

    /* Collapsed: the brand block shrinks to the rail; only the expand chevron stays */
    .fi-body-has-navigation:has(.fi-main-sidebar:not(.fi-sidebar-open)) .fi-topbar-start {
        width: var(--collapsed-sidebar-width);
        padding-inline: 0;
        justify-content: center;
    }
    .fi-body-has-navigation:has(.fi-main-sidebar:not(.fi-sidebar-open)) .fi-topbar-start > a { display: none; }
    .fi-body-has-navigation:has(.fi-main-sidebar:not(.fi-sidebar-open)) .fi-topbar-start .fi-topbar-collapse-sidebar-btn-ctn { margin-inline-start: 0; }
}

/* EVT-00114: desktop (≥ 64rem, browser tab and installed „EvoStore Admin” window alike): no white strip at the top —
   the whole topbar is navy and blends with the brand block (and the navy window title bar of the installed app). */
@media (min-width: 64rem) {
    .fi-body-has-navigation .fi-topbar { background: var(--evo-navy); box-shadow: none; }
    .fi-body-has-navigation .fi-topbar .fi-icon-btn { color: rgb(255 255 255 / .7); }
    .fi-body-has-navigation .fi-topbar .fi-icon-btn:hover { color: #FFFFFF; background: rgb(255 255 255 / .08); }
    .fi-body-has-navigation .fi-topbar .fi-global-search-field .fi-input-wrp {
        background: rgb(255 255 255 / .1);
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18) !important;
    }
    .fi-body-has-navigation .fi-topbar .fi-global-search-field .fi-input-wrp:not(:focus-within) input,
    .fi-body-has-navigation .fi-topbar .fi-global-search-field .fi-input-wrp:not(:focus-within) .fi-icon { color: #FFFFFF; }
    .fi-body-has-navigation .fi-topbar .fi-global-search-field .fi-input-wrp:not(:focus-within) input::placeholder { color: rgb(255 255 255 / .6); }
    .fi-body-has-navigation .fi-topbar .fi-user-menu-trigger .fi-avatar,
    .fi-body-has-navigation .fi-topbar .fi-avatar.fi-user-avatar { box-shadow: 0 0 0 2px var(--evo-navy), 0 0 0 4px rgb(255 255 255 / .35); }
    .fi-body-has-navigation .fi-topbar .fi-user-menu-trigger:hover .fi-avatar,
    .fi-body-has-navigation .fi-topbar .fi-user-menu-trigger:focus-visible .fi-avatar { box-shadow: 0 0 0 2px var(--evo-navy), 0 0 0 4px #FFFFFF; }
}

/* EVT-00114: installed desktop app („EvoStore Admin”) with the window title bar hidden (manifest display_override
   window-controls-overlay): the topbar is the top of the window. Empty parts of it move the window, the controls in it
   stay clickable, and its right end leaves room for the OS window buttons (minimise / maximise / close). */
@media (display-mode: window-controls-overlay) {
    .fi-topbar {
        -webkit-app-region: drag;
        app-region: drag;
        padding-inline-end: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 1rem);
    }
    .fi-topbar :is(a, button, input, select, label, [role="button"], .fi-dropdown, .fi-dropdown-panel, .fi-global-search-results-ctn) {
        -webkit-app-region: no-drag;
        app-region: no-drag;
    }
}

/* Global search */
.fi-topbar .fi-global-search-field .fi-input-wrp {
    background: var(--evo-surface);
    border-radius: var(--evo-radius-sm);
    --tw-ring-color: transparent !important;
    box-shadow: inset 0 0 0 1px var(--evo-border) !important;
    transition: box-shadow .15s ease, background-color .15s ease;
}
.fi-topbar .fi-global-search-field .fi-input-wrp:focus-within {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px var(--evo-blue), 0 0 0 3px rgb(0 82 204 / .15) !important;
}
.fi-topbar .fi-global-search-field input::placeholder { color: #8A94A6; }
@media (min-width: 64rem) {
    .fi-topbar .fi-global-search-field { width: 20rem; }
}
.fi-body-has-navigation .fi-global-search-results-ctn{ border-radius: var(--evo-radius) !important; box-shadow: 0 0 0 1px var(--evo-border), 0 16px 40px -12px rgb(11 30 58 / .25) !important; }

/* User avatar: initials on navy with a brand ring */
.fi-topbar .fi-user-menu-trigger .fi-avatar,
.fi-topbar .fi-avatar.fi-user-avatar {
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px rgb(0 82 204 / .35);
}
.fi-topbar .fi-user-menu-trigger:hover .fi-avatar,
.fi-topbar .fi-user-menu-trigger:focus-visible .fi-avatar { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--evo-blue); }
.fi-topbar-end { column-gap: 1rem; }

/* Dropdowns (user menu, filters, column manager) */
.fi-body-has-navigation .fi-dropdown-panel {
    border-radius: var(--evo-radius) !important;
    box-shadow: 0 0 0 1px var(--evo-border), 0 16px 40px -12px rgb(11 30 58 / .22) !important;
}
.fi-body-has-navigation .fi-dropdown-list-item{ border-radius: 8px; }
.fi-body-has-navigation .fi-dropdown-list-item:hover, .fi-body-has-navigation .fi-dropdown-list-item:focus-visible{ background-color: var(--evo-surface) !important; }
.fi-body-has-navigation .fi-dropdown-header{ font-weight: 600; color: var(--evo-navy); }

/* =====================================================================
   4. Page header & breadcrumbs
   ===================================================================== */
.fi-body-has-navigation .fi-header-heading {
    color: var(--evo-navy);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
@media (max-width: 40rem) { .fi-body-has-navigation .fi-header-heading { font-size: 1.4rem; } }
.fi-body-has-navigation .fi-header-subheading{ color: var(--evo-muted); }
.fi-body-has-navigation .fi-breadcrumbs-item-label{ color: var(--evo-muted) !important; font-size: .8rem; font-weight: 500; }
.fi-body-has-navigation a.fi-breadcrumbs-item-label:hover{ color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-breadcrumbs-item-separator{ color: #B5BFCE !important; }

/* Base primary button (kept unscoped exactly as before: the approved auth pages rely on it
   for white text; their red variant is applied further below). */
.fi-btn.fi-color-primary {
    background-color: #0052CC !important;
    color: #fff !important;
    font-weight: 600;
}
.fi-btn.fi-color-primary:hover { background-color: #0043A8 !important; color: #fff !important; }
.fi-btn.fi-color-primary .fi-icon { color: #fff !important; }

/* =====================================================================
   5. Buttons — solid blue primary, solid red destructive, brand focus
   ===================================================================== */
.fi-body-has-navigation .fi-btn { border-radius: var(--evo-radius-sm); font-weight: 600; }
.fi-body-has-navigation .fi-btn:focus-visible{ outline: 2px solid var(--evo-blue); outline-offset: 2px; }

.fi-body-has-navigation .fi-btn.fi-color-primary:not(.fi-outlined){
    background-color: var(--evo-blue) !important;
    color: #fff !important;
    font-weight: 600;
    --tw-ring-color: transparent;
}
.fi-body-has-navigation .fi-btn.fi-color-primary:not(.fi-outlined):hover{ background-color: var(--evo-blue-600) !important; color: #fff !important; }
.fi-body-has-navigation .fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon{ color: #fff !important; }

.fi-body-has-navigation .fi-btn.fi-color-danger:not(.fi-outlined){
    background-color: var(--evo-red) !important;
    color: #fff !important;
    --tw-ring-color: transparent;
}
.fi-body-has-navigation .fi-btn.fi-color-danger:not(.fi-outlined):hover{ background-color: var(--evo-red-600) !important; }
.fi-body-has-navigation .fi-btn.fi-color-danger:not(.fi-outlined) .fi-icon{ color: #fff !important; }

/* Neutral (gray) buttons: white with a crisp brand border */
.fi-body-has-navigation .fi-btn.fi-color-gray:not(.fi-outlined),
.fi-body-has-navigation .fi-modal .fi-btn.fi-color-gray:not(.fi-outlined) {
    background: #FFFFFF;
    color: var(--evo-navy);
    --tw-ring-color: var(--evo-border-strong) !important;
}
.fi-body-has-navigation .fi-btn.fi-color-gray:not(.fi-outlined):hover,
.fi-body-has-navigation .fi-modal .fi-btn.fi-color-gray:not(.fi-outlined):hover{ background: var(--evo-surface); }
.fi-body-has-navigation .fi-btn.fi-outlined.fi-color-primary { background-color: transparent !important; --tw-ring-color: var(--evo-blue) !important; color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-btn.fi-outlined.fi-color-primary .fi-icon { color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-btn.fi-outlined.fi-color-primary:hover { background-color: var(--evo-blue-50) !important; }

.fi-body-has-navigation .fi-link.fi-color-primary{ color: var(--evo-blue) !important; font-weight: 600; }
.fi-body-has-navigation .fi-link.fi-color-primary:hover{ color: var(--evo-blue-700) !important; }

/* =====================================================================
   6. Cards: sections, tables, stats, widgets — 12px radius, #E1E7F0 border
   ===================================================================== */
.fi-body-has-navigation .fi-section:not(.fi-section-not-contained),
.fi-body-has-navigation .fi-ta-ctn,
.fi-body-has-navigation .fi-fo-tabs:not(.fi-contained-false),
.fi-body-has-navigation .fi-sc-tabs.fi-contained,
.fi-body-has-navigation .fi-wi-widget > .fi-section:not(.fi-section-not-contained) {
    border-radius: var(--evo-radius) !important;
    --tw-ring-color: var(--evo-border) !important;
    box-shadow: 0 0 0 1px var(--evo-border), var(--evo-shadow) !important;
}
.fi-body-has-navigation .fi-section:not(.fi-section-not-contained) > .fi-section-header {
    padding-block: 1rem;
    border-bottom: 1px solid var(--evo-border);
}
.fi-body-has-navigation .fi-section.fi-collapsed > .fi-section-header { border-bottom: 0; }
.fi-body-has-navigation .fi-section-header-heading {
    color: var(--evo-navy);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.005em;
}
.fi-body-has-navigation .fi-section-header-description{ color: var(--evo-muted); }
.fi-body-has-navigation .fi-section-content-ctn{ border-color: var(--evo-border) !important; }

/* ---------- Tables ---------- */
.fi-body-has-navigation .fi-ta-header { padding-block: 1rem; }
.fi-body-has-navigation .fi-ta-header-heading { color: var(--evo-navy); font-weight: 700; font-size: 1rem; }
.fi-body-has-navigation .fi-ta-header-toolbar { border-color: var(--evo-border) !important; }
.fi-body-has-navigation .fi-ta-table > thead > tr { background-color: var(--evo-surface) !important; }
.fi-body-has-navigation .fi-ta-header-cell,
.fi-body-has-navigation .fi-ta-header-cell-sort-btn {
    color: var(--evo-muted) !important;
    font-size: .7rem !important;
    font-weight: 600 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.fi-body-has-navigation .fi-ta-header-cell-sorted,
.fi-body-has-navigation .fi-ta-header-cell-sorted .fi-ta-header-cell-sort-btn { color: var(--evo-navy) !important; }
.fi-body-has-navigation .fi-ta-header-cell-sort-btn .fi-icon { color: #9AA5B5; }
.fi-body-has-navigation .fi-ta-table,
.fi-body-has-navigation .fi-ta-table > tbody,
.fi-body-has-navigation .fi-ta-table > thead,
.fi-body-has-navigation .fi-ta-table > tbody > tr,
.fi-body-has-navigation .fi-ta-content-ctn,
.fi-body-has-navigation .fi-pagination,
.fi-body-has-navigation .fi-ta-ctn > * { border-color: var(--evo-border) !important; }
/* Bulk-actions slot is empty until rows are selected: don't let it reserve a blank line on mobile */
.fi-body-has-navigation .fi-ta-header-toolbar > .fi-ta-actions:first-child:not(:has(> :not([style*="display: none"]))) { display: none; }
.fi-body-has-navigation .fi-ta-row { transition: background-color .12s ease; }
.fi-body-has-navigation .fi-ta-row:hover { background-color: #F7F9FC !important; }
.fi-body-has-navigation .fi-ta-row.fi-selected,
.fi-body-has-navigation .fi-ta-row.fi-ta-row-selected { background-color: var(--evo-blue-50) !important; }
.fi-body-has-navigation .fi-ta-text-item-description, .fi-body-has-navigation .fi-ta-text .fi-ta-text-description{ color: var(--evo-muted); }
.fi-body-has-navigation .fi-ta-image img{ border-radius: 8px; }
.fi-body-has-navigation .fi-ta-filter-indicators { background: #FBFCFE; }

/* Empty states: branded line icon in a soft blue tile + helpful text */
.fi-body-has-navigation .fi-ta-empty-state { padding-block: 3rem !important; }
.fi-body-has-navigation .fi-ta-empty-state-icon-bg{
    background-color: var(--evo-blue-50) !important;
    border-radius: 16px !important;
    padding: .9rem !important;
    box-shadow: inset 0 0 0 1px rgb(0 82 204 / .12);
}
.fi-body-has-navigation .fi-ta-empty-state-icon-bg .fi-icon{ color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-ta-empty-state-heading{ color: var(--evo-navy) !important; font-weight: 700 !important; }
.fi-body-has-navigation .fi-ta-empty-state-description{ color: var(--evo-muted) !important; max-width: 28rem; margin-inline: auto; }

/* ---------- Badges: brand palette, crisp ---------- */
.fi-body-has-navigation .fi-badge {
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
}
.fi-body-has-navigation .fi-badge.fi-color-primary, .fi-body-has-navigation .fi-badge.fi-color-info{
    background-color: var(--evo-blue-50) !important;
    color: var(--evo-blue) !important;
    --tw-ring-color: rgb(0 82 204 / .2) !important;
}
.fi-body-has-navigation .fi-badge.fi-color-danger{
    background-color: var(--evo-red-50) !important;
    color: #D10F1C !important;
    --tw-ring-color: rgb(255 30 45 / .22) !important;
}
.fi-body-has-navigation .fi-badge.fi-color-success{
    background-color: var(--evo-green-50) !important;
    color: #0B7A3B !important;
    --tw-ring-color: rgb(18 161 80 / .22) !important;
}
.fi-body-has-navigation .fi-badge.fi-color-warning{
    background-color: var(--evo-amber-50) !important;
    color: #B45309 !important;
    --tw-ring-color: rgb(217 119 6 / .24) !important;
}
.fi-body-has-navigation .fi-badge.fi-color-gray{
    background-color: #F1F4F8 !important;
    color: #4B5563 !important;
    --tw-ring-color: var(--evo-border-strong) !important;
}

/* ---------- Forms ---------- */
.fi-body-has-navigation .fi-input-wrp,
.fi-body-has-navigation .fi-modal .fi-input-wrp {
    border-radius: var(--evo-radius-sm);
    --tw-ring-color: var(--evo-border-strong);
}
.fi-body-has-navigation .fi-input-wrp:not(.fi-disabled):not(.fi-invalid):focus-within,
.fi-body-has-navigation .fi-modal .fi-input-wrp:not(.fi-disabled):not(.fi-invalid):focus-within{
    --tw-ring-color: var(--evo-blue) !important;
    box-shadow: 0 0 0 1px var(--evo-blue), 0 0 0 4px rgb(0 82 204 / .14) !important;
}
.fi-body-has-navigation .fi-input-wrp.fi-disabled { background-color: var(--evo-surface); }
.fi-body-has-navigation .fi-fo-field-label-content,
.fi-body-has-navigation .fi-modal .fi-fo-field-label-content{ color: var(--evo-navy); font-weight: 600; }
.fi-body-has-navigation .fi-fo-field-wrp-helper-text, .fi-body-has-navigation .fi-sc-text.fi-color-gray{ color: var(--evo-muted); }
.fi-body-has-navigation .fi-checkbox-input:checked, .fi-body-has-navigation .fi-radio-input:checked{ background-color: var(--evo-blue) !important; border-color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-checkbox-input:focus-visible, .fi-body-has-navigation .fi-radio-input:focus-visible{ outline: 2px solid var(--evo-blue); outline-offset: 2px; }
.fi-body-has-navigation .fi-toggle.fi-toggle-on, .fi-body-has-navigation .fi-fo-toggle .fi-toggle.fi-color-primary.fi-toggle-on{ background-color: var(--evo-blue) !important; }

/* Tabs: blue active state */
.fi-body-has-navigation .fi-tabs { border-color: var(--evo-border) !important; }
.fi-body-has-navigation .fi-tabs-item{ border-radius: 8px; color: var(--evo-muted); }
.fi-body-has-navigation .fi-tabs-item:hover{ background-color: var(--evo-surface); }
.fi-body-has-navigation .fi-tabs-item.fi-active{ background-color: var(--evo-blue-50) !important; }
.fi-body-has-navigation .fi-tabs-item.fi-active .fi-tabs-item-label,
.fi-body-has-navigation .fi-tabs-item.fi-active .fi-icon{ color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-tabs-item.fi-active .fi-tabs-item-label{ font-weight: 600; }

/* Pagination */
.fi-body-has-navigation .fi-pagination-item.fi-active .fi-pagination-item-btn,
.fi-body-has-navigation .fi-pagination-item-btn.fi-active { background: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-pagination-item.fi-active .fi-pagination-item-label{ color: #fff !important; }
.fi-body-has-navigation .fi-pagination-items{ border-radius: var(--evo-radius-sm) !important; }

/* =====================================================================
   7. Modals & notifications
   ===================================================================== */
.fi-body-has-navigation .fi-modal-window {
    border-radius: 16px !important;
    box-shadow: 0 0 0 1px rgb(11 30 58 / .06), 0 28px 70px -18px rgb(11 30 58 / .45) !important;
    position: relative;
}
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over) .fi-modal-window{ overflow: hidden; }
/* EVT-00019: modals with a sticky header/footer are height-capped by Filament and scroll inside the window;
   the rule above would clip them, so keep vertical scrolling for those (corners stay rounded). */
.fi-body-has-navigation .fi-modal.fi-modal-has-sticky-header:not(.fi-modal-slide-over) .fi-modal-window,
.fi-body-has-navigation .fi-modal.fi-modal-has-sticky-footer:not(.fi-modal-slide-over) .fi-modal-window{ overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over) .fi-modal-window::before{
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--evo-accent-line);
    z-index: 1;
}
.fi-body-has-navigation .fi-modal-heading{ color: var(--evo-navy); font-weight: 700 !important; }
.fi-body-has-navigation .fi-modal-description{ color: var(--evo-muted); }
.fi-body-has-navigation .fi-modal-close-overlay{ background-color: rgb(11 30 58 / .55) !important; backdrop-filter: blur(2px); }
.fi-body-has-navigation .fi-modal-icon-bg.fi-color-danger{ background-color: var(--evo-red-50) !important; }
.fi-body-has-navigation .fi-modal-icon-bg.fi-color-danger .fi-icon{ color: var(--evo-red) !important; }
.fi-body-has-navigation .fi-modal-icon-bg.fi-color-primary{ background-color: var(--evo-blue-50) !important; }

.fi-body-has-navigation .fi-no-notification:not(.fi-inline){
    border-radius: var(--evo-radius) !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 1px var(--evo-border), 0 18px 40px -14px rgb(11 30 58 / .3) !important;
    border-inline-start: 4px solid var(--evo-border-strong);
}
.fi-body-has-navigation .fi-no-notification.fi-status-success{ border-inline-start-color: var(--evo-green); }
.fi-body-has-navigation .fi-no-notification.fi-status-danger{ border-inline-start-color: var(--evo-red); }
.fi-body-has-navigation .fi-no-notification.fi-status-warning{ border-inline-start-color: var(--evo-amber); }
.fi-body-has-navigation .fi-no-notification.fi-status-info{ border-inline-start-color: var(--evo-blue); }
.fi-body-has-navigation .fi-no-notification-title{ color: var(--evo-navy) !important; font-weight: 700 !important; }
.fi-body-has-navigation .fi-no-notification-body{ color: #4B5563 !important; }

/* =====================================================================
   8. Dashboard: welcome hero, stat cards
   ===================================================================== */
.evo-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    color: #FFFFFF;
    background:
        radial-gradient(90% 140% at 0% 0%, #1D3F73 0%, rgb(29 63 115 / 0) 60%),
        linear-gradient(135deg, #0F2647 0%, var(--evo-navy) 60%, #081730 100%);
    box-shadow: 0 18px 40px -22px rgb(11 30 58 / .7);
}
.evo-hero::after { /* thin red→blue bar like the login card */
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--evo-accent-line);
    z-index: 2;
}
.evo-hero__stripes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.evo-hero__stripes i {
    position: absolute;
    top: -20%;
    bottom: -20%;
    transform: skewX(-20deg);
}
.evo-hero__stripes i:first-child { right: -3.5rem; width: 11rem; background: linear-gradient(180deg, #FF3A47 0%, var(--evo-red) 100%); opacity: .95; }
.evo-hero__stripes i:last-child { right: 9.25rem; width: 2.25rem; background: var(--evo-blue); opacity: .95; }

.evo-hero__body { position: relative; max-width: 40rem; padding-inline-end: 12rem; }
.evo-hero__date {
    margin: 0 0 .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(255 255 255 / .6);
}
.evo-hero__title {
    margin: 0;
    font-family: var(--evo-heading-font);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}
.evo-hero__text { margin: .5rem 0 0; font-size: .95rem; color: rgb(255 255 255 / .75); }
.evo-hero__text strong { color: #FFFFFF; font-weight: 700; }

.evo-hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.5rem; padding-inline-end: 12rem; }
.evo-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.5rem;
    padding: .5rem 1rem;
    border-radius: var(--evo-radius-sm);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    color: #FFFFFF;
    text-decoration: none;
    background: rgb(255 255 255 / .08);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.evo-hero__btn .fi-icon { width: 1.1rem; height: 1.1rem; color: rgb(255 255 255 / .85); }
.evo-hero__btn:hover { background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.evo-hero__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.evo-hero__btn--primary { background: var(--evo-red); box-shadow: 0 10px 22px -10px rgb(255 30 45 / .9); }
.evo-hero__btn--primary .fi-icon { color: #FFFFFF; }
.evo-hero__btn--primary:hover { background: var(--evo-red-600); box-shadow: 0 10px 22px -10px rgb(255 30 45 / .9); }
.evo-hero__badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.25rem; height: 1.25rem; padding-inline: .35rem;
    border-radius: 999px;
    background: var(--evo-red); color: #FFFFFF;
    font-size: .7rem; font-weight: 700;
}

@media (max-width: 48rem) {
    .evo-hero { padding: 1.5rem 1.25rem 1.6rem; }
    .evo-hero__body, .evo-hero__actions { padding-inline-end: 0; }
    .evo-hero__body { padding-inline-end: 4.5rem; }
    .evo-hero__title { font-size: 1.5rem; }
    .evo-hero__stripes i:first-child { right: -4rem; width: 6rem; opacity: .9; }
    .evo-hero__stripes i:last-child { right: 2.6rem; width: 1rem; }
    .evo-hero__actions { margin-top: 1.25rem; }
    .evo-hero__btn { flex: 1 1 auto; justify-content: center; }
}

/* Stats widgets: section heading + clean white cards with tinted icon tiles */
.fi-wi-stats-overview .fi-section-header-heading,
.fi-wi-widget .fi-section-not-contained > .fi-section-header .fi-section-header-heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--evo-muted);
}
.fi-wi-stats-overview-stat {
    border-radius: var(--evo-radius) !important;
    --tw-ring-color: var(--evo-border) !important;
    box-shadow: 0 0 0 1px var(--evo-border), var(--evo-shadow) !important;
    transition: box-shadow .15s ease, transform .15s ease;
}
a.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 0 0 1px var(--evo-border-strong), var(--evo-shadow-hover) !important;
    transform: translateY(-1px);
}
.evo-stat { position: relative; padding: 1.35rem 1.5rem !important; }
.evo-stat .fi-wi-stats-overview-stat-content { row-gap: .5rem; }
.evo-stat .fi-wi-stats-overview-stat-label-ctn { align-items: center; column-gap: .65rem; }
.evo-stat .fi-wi-stats-overview-stat-label-ctn > .fi-icon {
    flex: none;
    width: 2.25rem !important;
    height: 2.25rem !important;
    padding: .5rem;
    border-radius: 10px;
    box-sizing: border-box;
    stroke-width: 1.6;
    background: var(--evo-blue-50);
    color: var(--evo-blue);
}
.evo-stat .fi-wi-stats-overview-stat-label {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--evo-muted);
}
.evo-stat .fi-wi-stats-overview-stat-value {
    font-weight: 800;
    font-size: 1.85rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--evo-navy);
    white-space: nowrap;
}
.evo-stat .fi-wi-stats-overview-stat-description { font-size: .8rem; font-weight: 500; }
.evo-stat .fi-wi-stats-overview-stat-description.fi-color-gray,
.evo-stat .fi-wi-stats-overview-stat-description.fi-color-primary { color: var(--evo-muted) !important; }

.evo-stat--blue .fi-wi-stats-overview-stat-label-ctn > .fi-icon { background: var(--evo-blue-50); color: var(--evo-blue); }
.evo-stat--red .fi-wi-stats-overview-stat-label-ctn > .fi-icon { background: var(--evo-red-50); color: var(--evo-red); }
.evo-stat--green .fi-wi-stats-overview-stat-label-ctn > .fi-icon { background: var(--evo-green-50); color: var(--evo-green); }
.evo-stat--amber .fi-wi-stats-overview-stat-label-ctn > .fi-icon { background: var(--evo-amber-50); color: var(--evo-amber); }
.evo-stat--navy .fi-wi-stats-overview-stat-label-ctn > .fi-icon { background: #E8ECF3; color: var(--evo-navy); }

/* Thin colored accent on the card's left edge (subtle, matches the icon tile) */
.evo-stat::before {
    content: '';
    position: absolute;
    inset-block: 1.25rem;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--evo-blue);
    opacity: .9;
}
.evo-stat--red::before { background: var(--evo-red); }
.evo-stat--green::before { background: var(--evo-green); }
.evo-stat--amber::before { background: var(--evo-amber); }
.evo-stat--navy::before { background: var(--evo-navy); }

/* =====================================================================
   9. Dashboard charts & meter (white cards, Montserrat titles)
   ===================================================================== */
.fi-body-has-navigation .fi-wi-chart .fi-section-header { padding-block: 1.1rem .95rem; }
.fi-body-has-navigation .fi-wi-chart .fi-section-header-description,
.evo-meter-widget .fi-section-header-description { font-size: .8rem; line-height: 1.45; margin-top: .2rem; }
.fi-body-has-navigation .fi-wi-chart .fi-section-content { padding: 1rem 1.25rem 1.25rem !important; }

.evo-meter { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.evo-meter__value { display: flex; flex-direction: column; min-width: 11rem; }
.evo-meter__pct { font-family: var(--evo-heading-font); font-weight: 800; font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--evo-navy); }
.evo-meter__caption { font-size: .8rem; color: var(--evo-muted); margin-top: .2rem; }
.evo-meter__bar-wrap { flex: 1 1 18rem; min-width: 0; }
.evo-meter__track { position: relative; height: 12px; border-radius: 999px; background: #E8EEF6; overflow: hidden; }
.evo-meter__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--evo-blue); box-shadow: 2px 0 0 #FFFFFF; }
.evo-meter__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: .75rem 0 0; padding: 0; list-style: none; font-size: .8rem; color: #4B5563; }
.evo-meter__legend li { display: inline-flex; align-items: center; gap: .45rem; }
.evo-meter__legend strong { color: var(--evo-navy); font-weight: 600; }
.evo-meter__dot { width: 10px; height: 10px; border-radius: 3px; background: #E8EEF6; box-shadow: inset 0 0 0 1px var(--evo-border-strong); }
.evo-meter__dot--on { background: var(--evo-blue); box-shadow: none; }

/* =====================================================================
   Auth pages (login, 2FA, password reset): centered white card on navy
   ===================================================================== */
.fi-simple-layout {
    min-height: 100vh;
    background: radial-gradient(120% 90% at 50% 0%, #1d3f73 0%, #0B1E3A 55%, #071428 100%) !important;
}
.fi-simple-main-ctn { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem 1rem; min-height: calc(100vh - 3.5rem); }
.fi-simple-main {
    width: 100%; max-width: 27rem !important;
    background: #fff !important; border: 0 !important; border-radius: 16px !important;
    padding: 2.5rem 2.25rem 2.25rem !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45) !important;
}
.fi-simple-layout-header { position: absolute; top: 1rem; right: 1.25rem; }

.evo-auth-logo { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; margin-bottom: 2rem; }
.evo-auth-logo__word { font-family: 'Montserrat Variable', Montserrat, sans-serif; font-style: italic; font-weight: 900; font-size: 2.6rem; letter-spacing: -.035em; }
.evo-auth-logo__evo { color: #0052CC; }
.evo-auth-logo__store { color: #FF1E2D; }
.evo-auth-logo__tag { font-family: 'Montserrat Variable', Montserrat, sans-serif; font-weight: 600; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: #0B1E3A; margin-top: .45rem; }
.evo-auth-logo__sub { margin-top: 1.25rem; font-size: .8rem; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: .08em; }

.fi-simple-page .fi-simple-header-heading { font-family: 'Montserrat Variable', Montserrat, sans-serif; font-weight: 800; color: #0B1E3A; }
.fi-simple-page .fi-input-wrp { min-height: 2.9rem; border-radius: .6rem; }
.fi-simple-page .fi-fo-field-label-content { font-weight: 600; color: #0B1E3A; }
.fi-simple-page .fi-btn.fi-color-primary {
    background-color: #FF1E2D !important; min-height: 3rem; border-radius: .6rem; font-size: .95rem; letter-spacing: .02em;
    box-shadow: 0 10px 22px -10px rgba(255, 30, 45, .7);
}
.fi-simple-page .fi-btn.fi-color-primary:hover { background-color: #D91422 !important; }

/* Footer under the card: trust row + copyright */
.evo-auth-foot { position: relative; z-index: 1; text-align: center; padding: 0 1rem 1.25rem; }
.evo-auth-foot p { margin: .75rem 0 0; font-size: .72rem; color: rgba(255, 255, 255, .45); letter-spacing: .02em; }
.evo-auth-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.evo-auth-trust li { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .78); }
.evo-auth-trust svg { width: 14px; height: 14px; flex: none; color: #4C9AFF; }

/* Brand decoration (pure CSS): diagonal red + blue stripes like the branding-board banners */
.fi-simple-layout { position: relative; overflow: hidden; }
.fi-simple-layout::before,
.fi-simple-layout::after { content: ''; position: absolute; pointer-events: none; transform: skewX(-20deg); }
.fi-simple-layout::before { right: -7rem; bottom: -3rem; width: 11rem; height: 70vh; background: #FF1E2D; opacity: .9; }
.fi-simple-layout::after { right: 5.5rem; bottom: -3rem; width: 2.25rem; height: 52vh; background: #0052CC; opacity: .85; }
.fi-simple-main-ctn { position: relative; z-index: 1; }

/* Card accent: thin red→blue bar on top */
.fi-simple-main { position: relative; overflow: hidden; }
.fi-simple-main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #FF1E2D 0%, #FF1E2D 35%, #0052CC 35%, #0052CC 100%); }
@media (max-width: 640px) {
    .fi-simple-layout::before { width: 6rem; height: 40vh; right: -4rem; }
    .fi-simple-layout::after { display: none; }
}

@media (max-width: 480px) {
    .fi-simple-main { padding: 2rem 1.35rem 1.75rem !important; }
    .evo-auth-logo__word { font-size: 2.2rem; }
}

/* =====================================================================
   10. Customizable dashboard ("Personalizează"): per-user order, hide, width
       Markup: resources/views/filament/pages/dashboard-layout.blade.php
   ===================================================================== */
.evo-dash { display: flex; flex-direction: column; gap: 1.5rem; }
.evo-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) {
    .evo-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .evo-dash-item--full { grid-column: 1 / -1; }
}
.evo-dash-item { position: relative; min-width: 0; }
.evo-dash-body > *, .evo-dash-body .fi-wi-widget { height: 100%; }

/* Info bar shown while editing */
.evo-dash-hint {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .85rem 1.1rem; border-radius: var(--evo-radius);
    background: #E8F0FC; color: var(--evo-navy); font-size: .875rem; line-height: 1.5;
    box-shadow: inset 0 0 0 1px rgb(0 82 204 / .18);
}
.evo-dash-hint .fi-icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--evo-blue); margin-top: .1rem; }
.evo-dash-hint strong { font-weight: 700; }

.evo-dash-empty {
    padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--evo-radius);
    background: #FFFFFF; box-shadow: 0 0 0 1px var(--evo-border); color: var(--evo-muted); font-size: .9rem;
}
.evo-dash-empty__title { font-family: var(--evo-heading-font); font-weight: 700; color: var(--evo-navy); font-size: 1rem; margin-bottom: .25rem; }

/* Edit mode: dashed brand outline around every card + toolbar on top */
.evo-dash--editing .evo-dash-item {
    padding: .5rem .5rem .6rem;
    border-radius: calc(var(--evo-radius) + 6px);
    outline: 2px dashed rgb(0 82 204 / .55);
    outline-offset: -2px;
    background: rgb(255 255 255 / .55);
    transition: outline-color .15s, background-color .15s, box-shadow .15s;
}
.evo-dash--editing .evo-dash-item:hover { outline-color: #0052CC; background: #FFFFFF; }
.evo-dash--editing .evo-dash-item.is-hidden { outline-color: var(--evo-border-strong); background: rgb(255 255 255 / .35); }
.evo-dash--editing .evo-dash-body { pointer-events: none; user-select: none; } /* cards are not clickable while arranging */

.evo-dash-toolbar { display: flex; align-items: center; gap: .5rem; min-height: 2.25rem; padding: 0 .15rem .45rem; }
.evo-dash-handle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 2.25rem; height: 2.25rem; border-radius: 9px;
    color: #FFFFFF; background: #0052CC; cursor: grab; touch-action: none;
    box-shadow: 0 2px 6px -2px rgb(0 82 204 / .6);
}
.evo-dash-handle:hover { background: #003D99; }
.evo-dash-handle:active { cursor: grabbing; }
.evo-dash-handle:focus-visible, .evo-dash-tool:focus-visible { outline: 2px solid #0052CC; outline-offset: 2px; }
.evo-dash-grip { width: 1.15rem; height: 1.15rem; }
.evo-dash-label {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--evo-heading-font); font-weight: 700; font-size: .82rem; color: var(--evo-navy);
}
.evo-dash-badge {
    flex: none; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600;
    color: #4B5563; background: #EEF2F7; text-transform: uppercase; letter-spacing: .04em;
}
.evo-dash-tools { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: auto; flex: none; }
.evo-dash-tool {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    min-width: 2rem; height: 2rem; padding: 0 .4rem; border-radius: 8px;
    background: #FFFFFF; color: #334155; font-size: .75rem; font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--evo-border-strong);
}
.evo-dash-tool .fi-icon { width: 1rem; height: 1rem; }
.evo-dash-tool:hover:not(:disabled) { color: #0052CC; box-shadow: inset 0 0 0 1px #0052CC; background: #F5F8FE; }
.evo-dash-tool:disabled { opacity: .35; cursor: not-allowed; }
.evo-dash-tool--eye.is-off { color: #FFFFFF; background: #64748B; box-shadow: none; }
.evo-dash-tool--eye.is-off:hover:not(:disabled) { color: #FFFFFF; background: #0052CC; }
.evo-dash-hidden-card {
    padding: 1.1rem 1.25rem; border-radius: var(--evo-radius);
    background: repeating-linear-gradient(135deg, #F7F9FC 0 10px, #F1F4F9 10px 20px);
    color: var(--evo-muted); font-size: .82rem; box-shadow: inset 0 0 0 1px var(--evo-border);
}

/* Drag & drop states (SortableJS via Livewire wire:sort) */
.evo-dash-item.evo-dash-ghost {
    outline: 2px dashed #0052CC !important;
    background: #E8F0FC !important;
}
.evo-dash-item.evo-dash-ghost > * { visibility: hidden; }
.evo-dash-item.evo-dash-dragging { /* the card that follows the pointer (clone of the ghost) */
    opacity: 1 !important; background: #FFFFFF !important; outline: 2px solid #0052CC !important;
    box-shadow: 0 24px 50px -16px rgb(11 30 58 / .45) !important; cursor: grabbing; overflow: hidden;
    max-height: 9rem; transform-origin: top left;
}
.evo-dash-item.evo-dash-dragging > * { visibility: visible; }
.evo-dash-item.evo-dash-dragging::after { /* fade the cut-off body */
    content: ''; position: absolute; inset: auto 0 0 0; height: 3rem; background: linear-gradient(transparent, #FFFFFF);
}
body.sorting, body.sorting * { cursor: grabbing !important; }

@media (max-width: 640px) {
    .evo-dash-tool--text span { display: none; }
    .evo-dash-label { font-size: .78rem; }
}
/* ===================== end 10. Customizable dashboard ===================== */

/* =====================================================================
   11. Category suggestions: reason preview + modal card
   ===================================================================== */
.evo-reason-cell { max-width: 22rem; }
.evo-reason-cell:hover .fi-ta-text-item-label { color: #0052CC; text-decoration: underline; text-underline-offset: 2px; }
.evo-reason-modal { display: grid; gap: .75rem; }
.evo-reason-modal__score { display: inline-flex; align-self: start; width: fit-content; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: #E8F0FC; color: #0052CC; font-size: .8rem; }
.evo-reason-modal__text { margin: 0; padding: .9rem 1rem; border-left: 3px solid #0052CC; background: #F4F6F9; border-radius: .5rem; color: #0B1E3A; line-height: 1.6; font-size: .9rem; }
.evo-reason-modal__path { margin: 0; font-size: .8rem; color: #6B7280; }
.evo-sugg-cat { min-width: 12rem; max-width: 18rem; white-space: normal; }
.evo-reason-cell { max-width: 36rem; white-space: normal; }

/* ---------- Meniu site: category tree editor (evo-mt-*) + site menus editor (evo-sm-*) ---------- */
.evo-mt { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .evo-mt:has(.evo-mt-preview) { grid-template-columns: minmax(0, 1fr) 320px; } }
.evo-mt-main, .evo-sm { min-width: 0; }
.evo-mt-ico { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.evo-mt-ico-inline { width: .95rem; height: .95rem; display: inline; vertical-align: -2px; }
.evo-mt-flip { transform: rotate(180deg); }
.evo-icon-opt { width: 1.1rem; height: 1.1rem; color: var(--evo-navy); }
.evo-mt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.evo-mt-search { display: flex; align-items: center; gap: .5rem; flex: 1 1 260px; max-width: 420px; height: 2.5rem; padding: 0 .75rem;
    background: #fff; border: 1px solid var(--evo-border-strong); border-radius: var(--evo-radius-sm); color: var(--evo-muted); }
.evo-mt-search:focus-within { border-color: var(--evo-blue); box-shadow: 0 0 0 3px var(--evo-blue-50); }
.evo-mt-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .875rem; color: var(--evo-navy); box-shadow: none; padding: 0; }
.evo-mt-btn { height: 2.5rem; padding: 0 .9rem; border-radius: var(--evo-radius-sm); border: 1px solid var(--evo-border-strong); background: #fff;
    font-size: .8125rem; font-weight: 600; color: var(--evo-navy); }
.evo-mt-btn:hover { border-color: var(--evo-blue); color: var(--evo-blue); }
.evo-mt-pending { display: inline-flex; align-items: center; height: 2rem; padding: 0 .75rem; border-radius: 999px; background: var(--evo-amber-50);
    color: #92400E; font-size: .8125rem; font-weight: 600; }
.evo-mt-hint { font-size: .8125rem; color: var(--evo-muted); margin: 0 0 .75rem; line-height: 1.5; }
.evo-mt-empty { padding: 1.25rem; text-align: center; color: var(--evo-muted); font-size: .875rem; background: #fff; border: 1px dashed var(--evo-border-strong); border-radius: var(--evo-radius); }

.evo-mt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.evo-mt-list--nested { margin: .35rem 0 .15rem 1.6rem; padding-left: .75rem; border-left: 2px solid var(--evo-border); }
.evo-mt-row { display: flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .35rem .5rem .35rem .35rem; background: #fff;
    border: 1px solid var(--evo-border); border-radius: var(--evo-radius-sm); box-shadow: var(--evo-shadow); }
.evo-mt-row:hover { border-color: var(--evo-border-strong); }
.evo-mt-row.is-match { border-color: var(--evo-blue); background: var(--evo-blue-50); }
.evo-mt-node.is-off > .evo-mt-row { background: var(--evo-surface); }
.evo-mt-node.is-off > .evo-mt-row .evo-mt-name__main { color: var(--evo-muted); text-decoration: line-through; text-decoration-color: #CFD8E4; }
.evo-mt-node.is-changed > .evo-mt-row { box-shadow: inset 3px 0 0 var(--evo-amber), var(--evo-shadow); }
.evo-mt-handle { display: grid; place-items: center; width: 1.9rem; height: 2.2rem; border-radius: 8px; color: var(--evo-muted); cursor: grab; flex-shrink: 0; touch-action: none; }
.evo-mt-handle:hover { background: var(--evo-surface); color: var(--evo-blue); }
.evo-mt-handle:active { cursor: grabbing; }
.evo-mt-grip { width: 1rem; height: 1rem; }
.evo-mt-toggle { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; color: var(--evo-navy); flex-shrink: 0; }
.evo-mt-toggle:hover { background: var(--evo-blue-50); color: var(--evo-blue); }
.evo-mt-toggle--leaf { pointer-events: none; }
.evo-mt-cat-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--evo-blue-50); color: var(--evo-blue); flex-shrink: 0; }
.evo-mt-name { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem; flex: 1 1 14rem; min-width: 0; }
.evo-mt-row { flex-wrap: wrap; }
.evo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1535px) { .evo-mt-tool--text span { display: none; } .evo-sm-add .evo-mt-tool--text span { display: inline; } }
.evo-mt-name__main { font-weight: 600; font-size: .875rem; color: var(--evo-navy); }
.evo-mt-sub { font-size: .75rem; color: var(--evo-muted); }
.evo-sm-broken { color: var(--evo-red-600); font-weight: 600; }
.evo-mt-badge { display: inline-flex; align-items: center; padding: .15rem .45rem; border-radius: 999px; background: var(--evo-red); color: #fff;
    font-size: .625rem; font-weight: 700; text-transform: uppercase; line-height: 1; margin-left: .35rem; }
.evo-mt-tag { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 6px; background: var(--evo-surface); color: var(--evo-muted); font-size: .6875rem; font-weight: 600; }
.evo-mt-tag--changed { background: var(--evo-amber-50); color: #92400E; }
.evo-mt-tag--hl { background: var(--evo-red-50); color: var(--evo-red-600); }
.evo-mt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .3rem; margin-left: auto; }
.evo-mt-tool { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 2rem; height: 2rem; padding: 0 .45rem; border-radius: 8px;
    border: 1px solid var(--evo-border); background: #fff; color: var(--evo-navy); font-size: .75rem; font-weight: 600; }
.evo-mt-tool:hover:not(:disabled) { border-color: var(--evo-blue); color: var(--evo-blue); }
.evo-mt-tool:disabled { opacity: .35; cursor: not-allowed; }
.evo-mt-tool--danger:hover:not(:disabled) { border-color: var(--evo-red); color: var(--evo-red-600); }
.evo-mt-switch { display: inline-flex; align-items: center; gap: .35rem; height: 2rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--evo-border-strong);
    background: #fff; color: var(--evo-muted); font-size: .75rem; font-weight: 600; }
.evo-mt-switch::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: #CFD8E4; }
.evo-mt-switch.is-on { border-color: var(--evo-blue); background: var(--evo-blue-50); color: var(--evo-blue); }
.evo-mt-switch.is-on::before { background: var(--evo-blue); }
.evo-mt-handle:focus-visible, .evo-mt-toggle:focus-visible, .evo-mt-tool:focus-visible, .evo-mt-switch:focus-visible, .evo-mt-btn:focus-visible, .evo-sm-tab:focus-visible {
    outline: 2px solid var(--evo-blue); outline-offset: 2px; }
.evo-mt-ghost > .evo-mt-row { opacity: .35; border-style: dashed; border-color: var(--evo-blue); }
.evo-mt-chosen > .evo-mt-row { border-color: var(--evo-blue); box-shadow: var(--evo-shadow-hover); }
@media (max-width: 767px) {
    .evo-mt-row { flex-wrap: wrap; }
    .evo-mt-tools { width: 100%; justify-content: flex-start; padding-left: 2.2rem; }
    .evo-mt-tool--text span { display: none; }
}

.evo-mt-preview { position: sticky; top: 5rem; background: #fff; border: 1px solid var(--evo-border); border-radius: var(--evo-radius); box-shadow: var(--evo-shadow); padding: 1rem; }
.evo-mt-preview__title { font-family: var(--evo-heading-font); font-weight: 700; font-size: 1rem; color: var(--evo-navy); margin: 0; }
.evo-mt-preview__sub { font-size: .75rem; color: var(--evo-muted); margin: .25rem 0 .75rem; }
.evo-mt-preview__menu { border: 1px solid var(--evo-border); border-radius: var(--evo-radius-sm); overflow: hidden; }
.evo-mt-preview__bar { display: flex; align-items: center; gap: .6rem; background: var(--evo-red); color: #fff; font-weight: 600; font-size: .875rem; padding: .7rem .9rem; }
.evo-mt-preview__menu > ul { list-style: none; margin: 0; padding: .3rem 0; max-height: 60vh; overflow-y: auto; }
.evo-mt-preview__root { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .5rem .9rem; font-size: .8125rem; color: var(--evo-navy); text-align: left; }
.evo-mt-preview__root:hover:not(:disabled) { background: var(--evo-surface); color: var(--evo-blue); }
.evo-mt-preview__root:disabled { cursor: default; }
.evo-mt-preview__root > span:first-of-type { flex: 1; }
.evo-mt-preview__count { font-size: .6875rem; color: var(--evo-muted); }
.evo-mt-preview__chev { color: var(--evo-muted); }
.evo-mt-preview__root[aria-expanded="true"] .evo-mt-preview__chev { transform: rotate(90deg); }
.evo-mt-preview__kids { list-style: none; margin: 0 0 .3rem 2.6rem; padding: 0 0 0 .6rem; border-left: 2px solid var(--evo-border); }
.evo-mt-preview__kids li { font-size: .78rem; color: #374151; padding: .2rem 0; }

.evo-sm-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.evo-sm-tab { padding: .45rem 1rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; border: 1px solid var(--evo-border); background: #fff; color: var(--evo-navy); }
.evo-sm-tab:hover { border-color: var(--evo-blue); color: var(--evo-blue); }
.evo-sm-tab.is-active { background: var(--evo-blue); border-color: var(--evo-blue); color: #fff; }
.evo-sm-help, .evo-sm-warn { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--evo-radius-sm); font-size: .8125rem; line-height: 1.5; margin-bottom: .9rem; }
.evo-sm-help { background: var(--evo-blue-50); color: var(--evo-navy); }
.evo-sm-help .evo-mt-ico { color: var(--evo-blue); margin-top: .1rem; }
.evo-sm-warn { background: var(--evo-amber-50); color: #92400E; }
.evo-sm-group > .evo-mt-row { background: var(--evo-surface); }
.evo-sm-group > .evo-mt-row .evo-mt-name__main { font-family: var(--evo-heading-font); text-transform: uppercase; letter-spacing: .02em; }
.evo-sm-add { padding: .1rem 0; }

/* ---------- 12. Full-width admin content (owner 2026-11-02): every page / card uses 95% of the available width ---------- */
.fi-body-has-navigation .fi-main { width: 95%; max-width: 95% !important; margin-inline: auto; padding-inline: 0; }
.fi-body-has-navigation .fi-page, .fi-body-has-navigation .fi-page > section,
.fi-body-has-navigation .fi-section, .fi-body-has-navigation .fi-ta { max-width: none; }

/* =====================================================================
   13. Admin lists (owner 2026-11-03, agent admin-tables; App\Filament\Support\EvoTable):
       row click opens the record, ⋯ row menu, bulk bar at the top AND bottom, compact striped rows
   ===================================================================== */
/* Compact rows (Filament default py-4 made every row ~80px) */
.fi-body-has-navigation .fi-ta-table .fi-ta-text:not(.fi-inline),
.fi-body-has-navigation .fi-ta-table .fi-ta-icon:not(.fi-inline) { padding-block: .625rem; }
.fi-body-has-navigation .fi-ta-table .fi-ta-cell { vertical-align: middle; }
/* Stripes in the brand surface tint; hover in blue tint; clickable rows show a pointer */
.fi-body-has-navigation .fi-ta-row.fi-striped { background-color: #F9FAFC !important; }
.fi-body-has-navigation .fi-ta-row.fi-clickable,
.fi-body-has-navigation .fi-ta-row.fi-clickable .fi-ta-col { cursor: pointer; }
.fi-body-has-navigation .fi-ta-row.fi-clickable:hover { background-color: #F0F5FD !important; box-shadow: inset 3px 0 0 var(--evo-blue); }
.fi-body-has-navigation .fi-ta-row.fi-selected,
.fi-body-has-navigation .fi-ta-row.fi-selected:hover { background-color: var(--evo-blue-50) !important; }
/* Primary text column in navy, semibold */
.fi-body-has-navigation .fi-ta-row .fi-ta-col:first-of-type .fi-ta-text-item-label { color: var(--evo-navy); }
/* Sortable headers: blue on hover / when sorted */
.fi-body-has-navigation .fi-ta-header-cell-sort-btn:hover,
.fi-body-has-navigation .fi-ta-header-cell-sort-btn:hover .fi-icon { color: var(--evo-blue) !important; }
.fi-body-has-navigation .fi-ta-header-cell-sorted .fi-ta-header-cell-sort-btn .fi-icon { color: var(--evo-blue) !important; }

/* ⋯ row menu: quiet icon button, blue on hover */
.fi-body-has-navigation .evo-row-menu.fi-icon-btn { color: var(--evo-muted); border-radius: 8px; }
.fi-body-has-navigation .evo-row-menu.fi-icon-btn:hover { color: var(--evo-blue); background-color: var(--evo-blue-50); }
.fi-body-has-navigation .fi-ta-actions-header-cell,
.fi-body-has-navigation .fi-ta-cell:has(> .fi-ta-actions .evo-row-menu) { width: 1%; white-space: nowrap; }

/* Bulk group button ("Acțiuni pe selecție") */
.fi-body-has-navigation .fi-ta-header-toolbar .fi-dropdown-trigger .fi-btn.fi-color-primary,
.evo-ta-bottom-bulk .fi-dropdown-trigger .fi-btn.fi-color-primary { box-shadow: 0 1px 2px rgb(11 30 58 / .12); }

/* Mirrored bulk bar under the table (shown only while rows are selected) */
.evo-ta-bottom-bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: .75rem 1rem;
    background: var(--evo-blue-50);
    border-top: 1px solid rgb(0 82 204 / .18);
    border-bottom: 1px solid var(--evo-border);
    position: sticky;
    bottom: 0;
    z-index: 5;
}
.evo-ta-bottom-bulk-count { color: var(--evo-navy); font-weight: 600; font-size: .875rem; }
.evo-ta-bottom-bulk-actions { margin-inline-end: auto; }
.evo-ta-bottom-bulk-clear {
    color: var(--evo-red); font-weight: 600; font-size: .875rem; background: none; border: 0; cursor: pointer;
}
.evo-ta-bottom-bulk-clear:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Selection indicator (top) in the same tint */
.fi-body-has-navigation .fi-ta-selection-indicator { background-color: var(--evo-blue-50) !important; color: var(--evo-navy); }

/* Filters dropdown / indicators */
.fi-body-has-navigation .fi-ta-filters-dropdown .fi-ta-filters-header-heading,
.fi-body-has-navigation .fi-ta-filters .fi-ta-filters-heading { color: var(--evo-navy); font-family: 'Montserrat', var(--font-family, sans-serif); font-weight: 700; }
.fi-body-has-navigation .fi-ta-filter-indicators .fi-badge { background-color: var(--evo-blue-50) !important; color: var(--evo-blue) !important; }

/* Search box */
.fi-body-has-navigation .fi-ta-search-field .fi-input-wrp { border-radius: 10px; }
.fi-body-has-navigation .fi-ta-search-field .fi-input-wrp:focus-within { --tw-ring-color: var(--evo-blue) !important; box-shadow: 0 0 0 2px rgb(0 82 204 / .25); }

/* Pagination: active page in brand blue */
.fi-body-has-navigation .fi-pagination-item.fi-active .fi-pagination-item-btn,
.fi-body-has-navigation .fi-pagination-item-btn.fi-active { background-color: var(--evo-blue) !important; color: #fff !important; }

/* service-photos: „Poze produs la primire” — big touch targets for the camera / gallery fields and actions */
.evo-photo-drop .filepond--root { min-height: 8.5rem; margin-bottom: 0; }
.evo-photo-drop .filepond--drop-label { min-height: 8.5rem; }
.evo-photo-drop .filepond--drop-label label { font-size: 0.95rem; line-height: 1.45; padding: 0.75rem; cursor: pointer; }
.evo-photo-drop .filepond--label-action { color: var(--evo-blue, #0052CC); font-weight: 700; text-decoration: none; }
.evo-photo-drop--camera .filepond--panel-root { background-color: #E8F0FC; border: 2px dashed #0052CC; }
.evo-photo-action { min-height: 2.75rem; }
@media (max-width: 640px) {
    .evo-photo-action { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   14. Order age (owner 2026-11-03, agent order-age; App\Support\OrderAge):
       „Zile” badge + row colours in Vânzări → Comenzi. The colours are admin-chosen (Setări magazin →
       Vechime comenzi) and arrive as custom properties from a small <style> (render hook STYLES_AFTER):
       .evo-age-lN { --evo-age-color; --evo-age-bg }. Tint keeps muted text ≥ 4.5:1; the left stripe carries the signal.
   ===================================================================== */
.fi-body-has-navigation .fi-ta-row.evo-age-row,
.fi-body-has-navigation .fi-ta-row.evo-age-row.fi-striped { background-color: var(--evo-age-bg, #fff) !important; box-shadow: inset 4px 0 0 var(--evo-age-color, transparent); }
/* hover / selected keep the standard table colours; the stripe stays */
.fi-body-has-navigation .fi-ta-row.evo-age-row.fi-clickable:hover { background-color: #F0F5FD !important; box-shadow: inset 4px 0 0 var(--evo-age-color, transparent); }
.fi-body-has-navigation .fi-ta-row.evo-age-row.fi-selected,
.fi-body-has-navigation .fi-ta-row.evo-age-row.fi-selected:hover { background-color: var(--evo-blue-50) !important; }

/* „Zile” badge: neutral pill; coloured dot + border when the row is coloured */
.evo-age-badge {
    display: inline-flex; align-items: center; gap: .375rem; min-width: 2.25rem; justify-content: center;
    padding: .125rem .5rem; border: 1px solid var(--evo-border, #E1E7F0); border-radius: 999px;
    background: #fff; color: var(--evo-navy, #0B1E3A); font-size: .8125rem; font-weight: 600; line-height: 1.25rem;
    font-variant-numeric: tabular-nums;
}
.evo-age-badge--on { border-color: var(--evo-age-color); background: var(--evo-age-bg, #fff); }
.evo-age-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 999px; background: var(--evo-age-color, var(--evo-muted)); flex: none; }

/* Legend above the orders table (table description) */
.evo-age-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .875rem; font-size: .8125rem; color: var(--evo-muted, #6B7280); }
.evo-age-legend-title { color: var(--evo-navy, #0B1E3A); font-weight: 600; }
.evo-age-legend-item { display: inline-flex; align-items: center; gap: .375rem; color: var(--evo-navy, #0B1E3A); }
.evo-age-legend-item strong { font-weight: 600; }

/* =====================================================================
   15. Mobile cards (owner 2026-11-03, agent admin-mobile-cards; App\Filament\Support\EvoTable::defaults → stackedOnMobile()):
       under 640px (Filament's sm breakpoint) every list row is a white card: title line (first non-empty, non-image column or
       ->evo-card-title), one "label · value" line per column, ⋯ menu + checkbox top-right with 44px touch targets,
       thumbnail on the left, empty cells hidden, selected = blue border + tint. Order-age tint/stripe is kept.
       Per-column hints: EvoTable::cardTitle($column), EvoTable::hideOnCard($column). ≥ 640px is untouched.
   ===================================================================== */
@media (max-width: 639.98px) {
    /* Card list on the brand surface */
    .fi-ta-content:has(> .fi-ta-table-stacked-on-mobile),
    .fi-ta-content-ctn:has(.fi-ta-table-stacked-on-mobile) { background: var(--evo-surface, #F4F6F9); overflow-x: visible; }
    .fi-ta-table.fi-ta-table-stacked-on-mobile { background: transparent; border: 0; }
    .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody {
        display: flex; flex-direction: column; gap: 10px; padding: 10px;
        background: transparent; border: 0;
    }
    .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr,
    .fi-ta-table.fi-ta-table-stacked-on-mobile > :not(:last-child) { border-color: transparent; }

    /* Sort select + "select all" bar above the cards */
    .fi-ta-table-stacked-on-mobile .fi-ta-table-stacked-header-cell { background: #fff; padding: .625rem .75rem; gap: .75rem; border-bottom: 1px solid var(--evo-border, #E1E7F0); }
    .fi-ta-table-stacked-on-mobile .fi-ta-table-stacked-header-cell .fi-ta-page-checkbox { width: 1.25rem; height: 1.25rem; margin: .75rem; }
    .fi-ta-table-stacked-on-mobile .fi-ta-table-stacked-sorting { min-width: 0; }
    .fi-ta-table-stacked-on-mobile .fi-ta-table-stacked-sorting > label { flex: 1 1 auto; min-width: 0; }
    .fi-ta-table-stacked-on-mobile .fi-ta-table-stacked-sorting .fi-input-wrp-prefix { padding-inline-end: .25rem; }

    /* The card */
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row {
        position: relative;
        display: block;
        background-color: #fff !important;
        border: 1px solid var(--evo-border, #E1E7F0) !important;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgb(11 30 58 / .05), 0 2px 6px rgb(11 30 58 / .04);
        padding: 12px 14px;
        overflow-wrap: anywhere;
        transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-striped { background-color: #fff !important; }
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-clickable:hover {
        background-color: #fff !important; border-color: #B8CCEB !important; box-shadow: 0 2px 10px rgb(0 82 204 / .10);
    }
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-clickable:active {
        background-color: #F0F5FD !important; border-color: var(--evo-blue, #0052CC) !important;
    }
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-selected,
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-selected:hover {
        background-color: var(--evo-blue-50, #EBF2FF) !important;
        border-color: var(--evo-blue, #0052CC) !important;
        box-shadow: 0 0 0 1px var(--evo-blue, #0052CC), 0 2px 8px rgb(0 82 204 / .12);
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-selected::before { display: none; }
    /* Order age (section 14): keep the tint and the left stripe */
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.evo-age-row,
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.evo-age-row.fi-striped,
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.evo-age-row.fi-clickable:hover {
        background-color: var(--evo-age-bg, #fff) !important;
        box-shadow: inset 4px 0 0 var(--evo-age-color, transparent), 0 1px 2px rgb(11 30 58 / .05);
    }
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.evo-age-row.fi-selected {
        background-color: var(--evo-blue-50, #EBF2FF) !important;
        box-shadow: inset 4px 0 0 var(--evo-age-color, transparent), 0 0 0 1px var(--evo-blue, #0052CC);
    }

    /* One line per column: muted label + navy value */
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:not(.fi-ta-selection-cell) {
        display: flex; align-items: flex-start; gap: .75rem;
        padding: .1875rem 0 !important; min-height: 0; width: auto; text-align: start;
        border: 0; background: transparent; box-shadow: none !important;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-cell-label {
        flex: 0 0 34%; max-width: 8.5rem; padding-top: .125rem;
        color: var(--evo-muted, #6B7280); font-size: 13px; line-height: 1.35rem; font-weight: 500;
        font-family: 'Inter Variable', Inter, sans-serif;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-cell-content {
        flex: 1 1 0; min-width: 0; position: relative; z-index: 1;
        color: var(--evo-navy, #0B1E3A); font-size: .875rem; line-height: 1.35rem;
    }
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text:not(.fi-inline),
    .fi-body-has-navigation .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-icon:not(.fi-inline) { padding: 0 !important; }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-col { width: 100%; min-width: 0; justify-content: flex-start; text-align: start; }
    /* centred / right-aligned desktop columns read left-aligned in the card */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell :is(.fi-align-center, .fi-align-end, .fi-align-right) { justify-content: flex-start; text-align: start; margin-inline: 0; }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text-item,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text-item-label { white-space: normal; max-width: 100%; min-width: 0; }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content :is(.fi-ta-text-item-label, p.fi-ta-text-item, div.fi-ta-text-item:not(.fi-ta-text-has-badges)):not(.fi-color) { color: var(--evo-navy, #0B1E3A); }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text-description,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text > p { color: var(--evo-muted, #6B7280); font-size: 13px; }
    /* Long values: at most 3 lines (full text on the record page) */
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content :is(.fi-ta-text-item-label, p.fi-ta-text-item, div.fi-ta-text-item:not(.fi-ta-text-has-badges)) {
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-badge .fi-ta-text-item-label,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-badge { -webkit-line-clamp: unset; display: inline-flex; }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text.fi-ta-text-has-badges,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text-list { flex-wrap: wrap; }
    /* Inputs / selects / toggles inside cells use the full line */
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-input-wrp,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-select,
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content .fi-ta-text-input { width: 100%; min-width: 0; max-width: 100%; }

    /* Empty values ("—" placeholders) and hidden-on-card columns are left out. One rule per selector: an
       unsupported selector must not drop the others. */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell.evo-card-hide { display: none !important; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child) { display: none !important; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(> .fi-ta-cell-content > .fi-ta-col:empty) { display: none !important; }

    /* Title line: ->evo-card-title, else the first non-image column. No label, Montserrat bold navy. */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell.evo-card-title,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) {
        padding: 0 0 .375rem !important; margin-bottom: .25rem; border-bottom: 1px solid #EDF1F6 !important;
        min-height: 2.75rem; align-items: center;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell.evo-card-title > .fi-ta-cell-label,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) > .fi-ta-cell-label { display: none; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell.evo-card-title > .fi-ta-cell-content,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) > .fi-ta-cell-content {
        position: static; z-index: auto;
        font-family: 'Montserrat Variable', Montserrat, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell.evo-card-title :is(.fi-ta-text-item-label, p.fi-ta-text-item, div.fi-ta-text-item:not(.fi-ta-text-has-badges)),
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) :is(.fi-ta-text-item-label, p.fi-ta-text-item, div.fi-ta-text-item:not(.fi-ta-text-has-badges)) {
        font-family: 'Montserrat Variable', Montserrat, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--evo-navy, #0B1E3A) !important; -webkit-line-clamp: 2;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell.evo-card-title .fi-ta-text-description,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) .fi-ta-text-description {
        font-family: 'Inter Variable', Inter, sans-serif; font-weight: 400; font-size: 13px; line-height: 1.35; color: var(--evo-muted, #6B7280); margin-top: .125rem;
    }
    /* The title link covers the whole card (row click); other cells, the checkbox and the menu stay on top */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-clickable > .fi-ta-cell.evo-card-title > .fi-ta-cell-content > .fi-ta-col:is(a, button)::after,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row.fi-clickable:not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) > .fi-ta-cell-content > .fi-ta-col:is(a, button)::after {
        content: ''; position: absolute; inset: 0; z-index: 0; border-radius: 12px;
    }

    /* Room for the checkbox / ⋯ menu in the top-right corner of the title line */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:has(> .fi-ta-selection-cell, > .fi-ta-cell > .fi-ta-actions > :only-child .evo-row-menu) > .fi-ta-cell.evo-card-title,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:has(> .fi-ta-selection-cell, > .fi-ta-cell > .fi-ta-actions > :only-child .evo-row-menu):not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) { padding-inline-end: 44px !important; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:has(> .fi-ta-selection-cell):has(> .fi-ta-cell > .fi-ta-actions > :only-child .evo-row-menu) > .fi-ta-cell.evo-card-title,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:has(> .fi-ta-selection-cell):has(> .fi-ta-cell > .fi-ta-actions > :only-child .evo-row-menu):not(:has(> .evo-card-title)) > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:not(.fi-ta-selection-cell):not(.evo-card-hide):not(:has(.fi-ta-image)):not(:has(> .fi-ta-cell-content > .fi-ta-col > * > .fi-ta-placeholder:only-child))) { padding-inline-end: 88px !important; }

    /* Checkbox: top-right, 44px target */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-selection-cell {
        position: absolute; top: 4px; inset-inline-end: 4px; z-index: 2;
        display: flex !important; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0 !important; margin: 0;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-selection-cell .fi-checkbox-input { width: 1.25rem; height: 1.25rem; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:has(> .fi-ta-cell > .fi-ta-actions > :only-child .evo-row-menu) > .fi-ta-selection-cell { inset-inline-end: 48px; }

    /* Single ⋯ menu: top-right corner, 44px target. Several visible buttons: a normal line at the bottom. */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(> .fi-ta-actions > :only-child .evo-row-menu) {
        position: absolute !important; top: 4px; inset-inline-end: 4px; z-index: 2;
        width: 44px; height: 44px; padding: 0 !important; display: flex !important; align-items: center; justify-content: center;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:has(> .fi-ta-actions) { position: relative; z-index: 1; padding-top: .5rem !important; }
    .fi-ta-table-stacked-on-mobile .evo-row-menu.fi-icon-btn { width: 44px; height: 44px; margin: 0; border-radius: 10px; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-actions:has(> :only-child .evo-row-menu) { width: 44px; margin: 0; justify-content: center; }
    .fi-ta-table-stacked-on-mobile .evo-row-menu.fi-icon-btn .fi-icon { width: 1.375rem; height: 1.375rem; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-actions .fi-btn,
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell > .fi-ta-actions .fi-link { min-height: 44px; }

    /* Thumbnail (first image column) on the left */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:has(> .fi-ta-cell .fi-ta-image) { padding-inline-start: 84px; min-height: 84px; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:has(.fi-ta-image)) {
        position: absolute !important; top: 12px; inset-inline-start: 12px; width: 60px; padding: 0 !important; z-index: 1;
    }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:has(.fi-ta-image)) > .fi-ta-cell-label { display: none; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:has(.fi-ta-image)) .fi-ta-image { padding: 0 !important; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:nth-child(1 of [class*="fi-ta-cell-"]:has(.fi-ta-image)) img {
        width: 60px !important; height: 60px !important; max-width: 60px; object-fit: cover; border-radius: 10px;
        border: 1px solid var(--evo-border, #E1E7F0); background: #fff;
    }

    /* Group header rows (grouped tables) and summaries */
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-group-header-row { border-radius: 10px; background: transparent; }
    .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-summary-row { background: #fff; border: 1px solid var(--evo-border, #E1E7F0); border-radius: 12px; }

    /* Checkboxes never get squeezed by long group / record text */
    .fi-ta-group-checkbox, .fi-ta-record-checkbox, .fi-ta-page-checkbox { flex: none; }

    /* Grid-layout tables (contentGrid, e.g. reception photos): records shrink to their column */
    .fi-ta-content-grid .fi-ta-record { min-width: 0; }
    .fi-ta-content-grid .fi-ta-record-content-ctn { min-width: 0; flex: 1 1 0; }
    .fi-ta-content-grid .fi-ta-record img { max-width: 100%; object-fit: cover; }

    /* Tabs (record pages, list tabs) wrap instead of scrolling sideways */
    .fi-main .fi-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: .25rem; }
    .fi-main .fi-tabs .fi-tabs-item { flex: 0 0 auto; }

    /* Topbar: the global search shrinks so the account menu is never cut off */
    .fi-topbar .fi-topbar-end { column-gap: .5rem; min-width: 0; }
    .fi-topbar .fi-topbar-end > .fi-global-search-ctn { flex: 0 1 6rem; min-width: 2.75rem; }
    .fi-topbar .fi-topbar-end > .fi-user-menu { flex: none; }

    /* Custom HTML tables on admin pages (data-label set by the view filament/mobile-table-labels): labelled cards */
    .fi-main table[data-evo-mtable],
    .fi-main table[data-evo-mtable] > tbody,
    .fi-main table[data-evo-mtable] > tfoot { display: block; width: 100% !important; min-width: 0 !important; }
    .fi-main table[data-evo-mtable] > thead { display: none; }
    .fi-main table[data-evo-mtable] > tbody > tr,
    .fi-main table[data-evo-mtable] > tfoot > tr {
        display: block; margin: 0 0 10px; padding: 10px 12px;
        background: #fff; border: 1px solid var(--evo-border, #E1E7F0) !important; border-radius: 12px;
        box-shadow: 0 1px 2px rgb(11 30 58 / .05);
    }
    .fi-main table[data-evo-mtable] > tfoot > tr { background: var(--evo-surface, #F4F6F9); }
    .fi-main table[data-evo-mtable] > tbody > tr > td,
    .fi-main table[data-evo-mtable] > tbody > tr > th,
    .fi-main table[data-evo-mtable] > tfoot > tr > td,
    .fi-main table[data-evo-mtable] > tfoot > tr > th {
        display: flex; align-items: flex-start; gap: .75rem; width: auto !important; max-width: none !important;
        padding: .1875rem 0 !important; border: 0 !important; text-align: start !important; white-space: normal !important;
        overflow-wrap: anywhere; color: var(--evo-navy, #0B1E3A); font-size: .875rem; line-height: 1.35rem;
    }
    .fi-main table[data-evo-mtable] > * > tr > [data-label]:not([data-label=""])::before {
        content: attr(data-label); flex: 0 0 34%; max-width: 8.5rem;
        color: var(--evo-muted, #6B7280); font-size: 13px; font-weight: 500; font-family: 'Inter Variable', Inter, sans-serif;
    }
    .fi-main table[data-evo-mtable] > * > tr > [data-label] > * { min-width: 0; }
    .fi-main table[data-evo-mtable] > tbody > tr > :first-child {
        font-family: 'Montserrat Variable', Montserrat, sans-serif; font-weight: 700; font-size: 15px;
    }
    .fi-main table[data-evo-mtable] > * > tr > :first-child::before { display: none; }
    /* cells without a label (title cell, unlabelled tables) keep their own inner layout */
    .fi-main table[data-evo-mtable] > * > tr > :first-child,
    .fi-main table[data-evo-mtable] > * > tr > :not([data-label]),
    .fi-main table[data-evo-mtable] > * > tr > [data-label=""] { display: block; }
    .fi-main table[data-evo-mtable] > tbody > tr > td:empty { display: none; }
    .fi-main div:has(> table[data-evo-mtable]) { overflow-x: visible !important; }

    /* ---- Toolbar at 360–390px: search takes the line, icons wrap, no sideways scroll ---- */
    .fi-ta-header-toolbar { flex-wrap: wrap; gap: .5rem .75rem; padding: .625rem .75rem; }
    .fi-ta-header-toolbar > * { min-width: 0; }
    .fi-ta-header-toolbar > div:last-child { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; min-width: 0; }
    .fi-ta-header-toolbar .fi-ta-search-field { flex: 1 1 10rem; min-width: 0; }
    .fi-ta-header-toolbar .fi-icon-btn { min-width: 44px; min-height: 44px; }
    .fi-ta-header-toolbar .fi-dropdown-panel { max-width: calc(100vw - 1.5rem); }
    .fi-ta-filters-dropdown, .fi-ta-col-manager-dropdown { max-width: calc(100vw - 1.5rem); }

    /* Pagination: compact (prev / next + "pagina din") */
    .fi-ta .fi-pagination { flex-wrap: wrap; gap: .5rem; padding: .625rem .75rem; }
    .fi-ta .fi-pagination-overview { display: none; }
    .fi-ta .fi-pagination-records-per-page-select { order: 3; }

    /* Bottom bulk bar: sticky above the safe area, full-width buttons */
    .evo-ta-bottom-bulk {
        position: sticky; bottom: 0; padding: .625rem .75rem calc(.625rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 14px rgb(11 30 58 / .10); gap: .5rem .75rem;
    }
    .evo-ta-bottom-bulk-clear { min-height: 44px; padding-inline: .5rem; }
    .evo-ta-bottom-bulk-actions .fi-btn { min-height: 44px; }
}

/* =====================================================================
   16. Mobile actions (owner 2026-11-03, agent admin-mobile-actions; App\Filament\Support\MobileHeaderActions):
   phones (< 640px) — no sideways scrolling, buttons collapse instead of piling up:
   - page header with 3+ actions: the main (first coloured) action stays (.evo-ma-keep), the rest go under
     „⋯ Mai multe” (.evo-ma-toggle) and open as a full-width list, red ones (.evo-ma-danger) last;
   - every other action row (header with 1–2 actions, table/relation-manager toolbars, form „Salvare/Anulare”,
     modal footers, wizard buttons, filter panels) wraps; buttons are 44px touch targets.
   ≥ 640px: nothing here applies (.evo-ma is hidden).
   ===================================================================== */
.evo-ma { display: none; }

@media (max-width: 639.98px) {
    /* ---- page header: collapse ---- */
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma) {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        gap: .5rem;
        align-self: stretch;
    }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma) > .fi-ac { display: contents; }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma) > .fi-ac > .evo-ma-keep {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
    }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma) > .fi-ac > .evo-ma-keep { white-space: normal; text-align: center; }
    .fi-body-has-navigation .fi-header-actions-ctn > .evo-ma { display: block; order: 2; flex: 0 0 auto; }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma) > .fi-ac > .evo-ma-more { display: none; }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma [aria-expanded="true"]) > .fi-ac > .evo-ma-more {
        display: inline-grid;
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        justify-content: start;
        text-align: left;
    }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma [aria-expanded="true"]) > .fi-ac > .fi-dropdown.evo-ma-more { display: block; }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma [aria-expanded="true"]) > .fi-ac > .fi-dropdown.evo-ma-more > .fi-dropdown-trigger > .fi-btn { width: 100%; justify-content: start; }
    .fi-body-has-navigation .fi-header-actions-ctn:has(> .evo-ma [aria-expanded="true"]) > .fi-ac > .evo-ma-danger { order: 4; }

    .evo-ma-toggle {
        display: inline-flex;
        align-items: center;
        gap: .375rem;
        min-height: 44px;
        padding: 0 .875rem;
        border-radius: var(--evo-radius-sm, 8px);
        background: #FFFFFF;
        color: var(--evo-navy, #0B1E3A);
        font-size: .875rem;
        font-weight: 600;
        line-height: 1.25rem;
        box-shadow: inset 0 0 0 1px var(--evo-border-strong, #C9D3E1);
        white-space: nowrap;
    }
    .evo-ma-toggle:hover { background: var(--evo-surface, #F4F6F9); }
    .evo-ma-toggle:focus-visible { outline: 2px solid var(--evo-blue, #0052CC); outline-offset: 2px; }
    .evo-ma-toggle[aria-expanded="true"] { color: var(--evo-blue, #0052CC); box-shadow: inset 0 0 0 1.5px var(--evo-blue, #0052CC); }
    .evo-ma-toggle svg { width: 1.125rem; height: 1.125rem; flex: none; }
    .evo-ma-toggle .evo-ma-chevron { width: 1rem; height: 1rem; transition: transform .15s ease; }
    .evo-ma-toggle[aria-expanded="true"] .evo-ma-chevron { transform: rotate(180deg); }

    /* ---- every action row wraps; 44px touch targets ---- */
    .fi-body-has-navigation .fi-header-actions-ctn { max-width: 100%; flex-wrap: wrap; }
    .fi-body-has-navigation .fi-header-actions-ctn .fi-btn,
    .fi-body-has-navigation .fi-ta-header-toolbar .fi-btn,
    .fi-body-has-navigation .fi-ta-header .fi-ac .fi-btn,
    .fi-body-has-navigation .fi-form-actions .fi-btn,
    .fi-body-has-navigation .fi-sc-actions .fi-btn,
    .fi-body-has-navigation .fi-sc-wizard-footer .fi-btn,
    .fi-body-has-navigation .fi-modal-footer .fi-btn,
    .fi-body-has-navigation .fi-ta-filters-actions-ctn .fi-btn { min-height: 44px; }
    .fi-body-has-navigation .fi-header-actions-ctn .fi-icon-btn,
    .fi-body-has-navigation .fi-ta-header-toolbar .fi-icon-btn { min-width: 44px; min-height: 44px; }
    .fi-body-has-navigation :is(.fi-ta-header, .fi-ta-header-toolbar, .fi-form-actions, .fi-sc-wizard-footer, .fi-ta-filters-actions-ctn) .fi-ac { flex-wrap: wrap; max-width: 100%; }
    .fi-body-has-navigation .fi-ta-header-toolbar > * { flex-wrap: wrap; max-width: 100%; min-width: 0; }
    .fi-body-has-navigation .fi-btn { max-width: 100%; }
    .fi-body-has-navigation .fi-btn .fi-btn-label { min-width: 0; overflow-wrap: anywhere; }

    /* Modal footers: buttons share the row and wrap (no button wider than the modal). */
    .fi-body-has-navigation .fi-modal-footer .fi-modal-footer-actions { flex-wrap: wrap; }
    .fi-body-has-navigation .fi-modal-footer .fi-modal-footer-actions > * { flex: 1 1 auto; }

    /* Wizard: step buttons wrap under each other instead of overflowing. */
    .fi-body-has-navigation .fi-sc-wizard-footer { flex-wrap: wrap; gap: .5rem; }
}

/* EVT-00028: product edit — „Accesorii recomandate” (amber) vs „Produse asociate” (blue), told apart by colour:
   coloured top bar + tinted header on the table, coloured left stripe on every row. */
.fi-ta.evo-rel-accessories { --evo-rel-color: #D97706; --evo-rel-bg: #FFF8EB; --evo-rel-row: #FFFCF5; }
.fi-ta.evo-rel-associated { --evo-rel-color: #0052CC; --evo-rel-bg: #EBF2FF; --evo-rel-row: #F7FAFF; }
/* EVT-00087: „Acumulatori și încărcătoare” (green). */
.fi-ta.evo-rel-batteries { --evo-rel-color: #15803D; --evo-rel-bg: #ECFDF3; --evo-rel-row: #F7FEF9; }
.fi-ta:is(.evo-rel-accessories, .evo-rel-associated, .evo-rel-batteries) .fi-ta-ctn { border-top: 4px solid var(--evo-rel-color) !important; }
.fi-ta:is(.evo-rel-accessories, .evo-rel-associated, .evo-rel-batteries) .fi-ta-header-ctn { background-color: var(--evo-rel-bg); }
.fi-ta:is(.evo-rel-accessories, .evo-rel-associated, .evo-rel-batteries) .fi-ta-header-heading { color: var(--evo-rel-color); }
.fi-ta:is(.evo-rel-accessories, .evo-rel-associated, .evo-rel-batteries) .fi-ta-row { background-color: var(--evo-rel-row); box-shadow: inset 4px 0 0 var(--evo-rel-color); }
.fi-ta:is(.evo-rel-accessories, .evo-rel-associated, .evo-rel-batteries) .fi-ta-row.fi-clickable:hover { background-color: var(--evo-rel-bg); }

/* EVT-00025: product list — table search box on the LEFT of the toolbar; filters + column toggle stay on the right
   (bulk actions, shown only while rows are selected, sit at the far right). */
.fi-resource-products.fi-resource-list-records-page .fi-ta-header-toolbar > div:has(> .fi-ta-search-field) { order: -1; flex: 1 1 auto; margin-inline-start: 0; }
.fi-resource-products.fi-resource-list-records-page .fi-ta-header-toolbar > div > .fi-ta-search-field { order: -1; margin-inline-end: auto; }

/* EVT-00098: category list — longer table search box. */
@media (min-width: 640px) {
    .fi-resource-categories.fi-resource-list-records-page .fi-ta-header-toolbar .fi-ta-search-field { width: 30rem; max-width: 100%; }
}

/* EVT-00063: order page — „Actualizare status” box on a blue background (fields stay white). */
.fi-section.evo-status-section { background-color: #DCE8FB !important; box-shadow: 0 0 0 1px #A9C4F0, var(--evo-shadow) !important; }
.fi-section.evo-status-section > .fi-section-header { background-color: transparent; border-bottom-color: #A9C4F0 !important; }
.fi-section.evo-status-section .fi-section-content-ctn { background-color: transparent !important; border-color: #A9C4F0 !important; }
.fi-section.evo-status-section .fi-section-header-heading { color: var(--evo-blue-700); }

/* EVT-00082: product edit → Prețuri — „Pachete” card: brand red/blue stripe on top, soft blue header,
   white body, thin blue outline (one clean border instead of a thick border + halo). */
/* No overflow:hidden on the card — the date pickers' dropdowns must not be clipped; the stripe gets its own radius. */
.fi-body-has-navigation .fi-section.evo-bundles-section {
    position: relative;
    background-color: #FFFFFF !important;
    border-radius: var(--evo-radius) !important;
    box-shadow: 0 0 0 1px #A9C4F0, 0 6px 18px -10px rgb(0 82 204 / .35) !important;
}
.fi-body-has-navigation .fi-section.evo-bundles-section::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    border-radius: var(--evo-radius) var(--evo-radius) 0 0;
    background: var(--evo-accent-line);
    pointer-events: none;
}
.fi-body-has-navigation .fi-section.evo-bundles-section > .fi-section-header {
    background: linear-gradient(180deg, var(--evo-blue-50) 0%, #F5F9FF 100%);
    border-radius: var(--evo-radius) var(--evo-radius) 0 0;
    border-bottom: 1px solid #CFE0FA !important;
    padding-block: 1.2rem 1rem;
}
.fi-body-has-navigation .fi-section.evo-bundles-section .fi-section-header-heading { color: var(--evo-blue-700); font-family: var(--evo-heading-font); }
.fi-body-has-navigation .fi-section.evo-bundles-section .fi-section-header-description { color: #3B5378; }
.fi-body-has-navigation .fi-section.evo-bundles-section > .fi-section-header > .fi-icon {
    box-sizing: content-box;
    padding: .45rem;
    border-radius: 9999px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px #CFE0FA;
}
.fi-body-has-navigation .fi-section.evo-bundles-section .fi-section-content-ctn { background-color: #FFFFFF !important; border-color: #CFE0FA !important; border-radius: 0 0 var(--evo-radius) var(--evo-radius); }

/* EVT-00095: orders — „Client” and „Date contact” columns: comfortable fixed range, long names / e-mails wrap onto
   a second line instead of stretching the table or being cut with „…” (e-mails prefer to break before the „@”). */
@media (min-width: 640px) {
    .fi-ta-cell.evo-col-client .fi-ta-text { min-width: 10rem; max-width: 15rem; }
    .fi-ta-cell.evo-col-contact .fi-ta-text { min-width: 12rem; max-width: 17rem; }
}
.fi-ta-cell:is(.evo-col-client, .evo-col-contact) :is(.fi-ta-text-item, .fi-ta-text-description) {
    white-space: normal; overflow-wrap: anywhere; line-height: 1.35;
}
.fi-ta-cell.evo-col-client .fi-ta-text-item { font-weight: 500; }

/* EVT-00128: product „Atribute descriere” rows: compact. The item header (only the trash button) no longer takes its
   own strip above the row: it floats at the top-right, level with the top of the value box. */
.evo-spec-repeater .fi-fo-repeater-items { gap: calc(var(--spacing) * 2); }
.evo-spec-repeater .fi-fo-repeater-item { position: relative; }
.evo-spec-repeater .fi-fo-repeater-item-header {
    position: absolute; top: calc(var(--spacing) * 2); inset-inline-end: calc(var(--spacing) * 3);
    padding: 0; overflow: visible; cursor: default; z-index: 1;
}
.evo-spec-repeater .fi-fo-repeater-item-header-label { display: none; }
.evo-spec-repeater .fi-fo-repeater-item-has-header > .fi-fo-repeater-item-content { border-top-width: 0; }
.evo-spec-repeater .fi-fo-repeater-item-content {
    padding-block: calc(var(--spacing) * 2);
    padding-inline-start: calc(var(--spacing) * 4);
    padding-inline-end: calc(var(--spacing) * 12);
}
/* EVT-00128: value box resizable from its bottom-right corner (down, or right into the free 4th column).
   The handle is on the framed box itself, so the frame grows with it; the inner textarea just fills it. */
.evo-spec-repeater .fi-fo-textarea {
    resize: both; overflow: hidden;
    min-width: 100%; max-width: 100%; min-height: 3.75rem;
}
@media (min-width: 64rem) {
    .evo-spec-repeater .fi-fo-textarea { max-width: 150%; }
}
/* EVT-00266: the box is .fi-fo-textarea > .fi-input-wrp-content-ctn > div[style=height] > textarea. The old rule only
   reached the content container, so the inner div kept Filament's fixed 3-row height: after enlarging the frame, its
   lower part was dead (no typing there, scrollbar after 3 lines). Every level now stretches to the frame's height. */
.evo-spec-repeater .fi-fo-textarea > div { height: auto !important; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.evo-spec-repeater .fi-fo-textarea > div > div { height: auto !important; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.evo-spec-repeater .fi-fo-textarea textarea { resize: none; height: auto; flex: 1 1 auto; min-height: 0; }

/* EVT-00139: „Status plată” / „Status comandă” selectors (filters) in the orders table toolbar and the dashboard
   „Ultimele comenzi” header. Msg 21–22: label and select on ONE line (label left), vertically centred, as soft
   rounded chips, a bit wider; side by side, wrapping on phones.
   Msg 29 (2026-11-12): these rules were lost when the admin CSS was republished from resources/admin-theme (which
   never had them); restored here AND in resources/admin-theme/evostore-admin.css so a republish keeps them. */
.evo-order-status-selectors { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--spacing) * 3); }
.fi-ta-header-ctn > .evo-order-status-selectors { padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4); }
.evo-order-status-selector {
    display: inline-flex; flex-direction: row; align-items: center; gap: calc(var(--spacing) * 2.5);
    padding: calc(var(--spacing) * 1) calc(var(--spacing) * 1) calc(var(--spacing) * 1) calc(var(--spacing) * 3.5);
    border: 1px solid #D6E4FF; border-radius: 0.75rem; background: var(--evo-blue-50);
    box-shadow: 0 1px 2px rgba(11, 30, 58, 0.06); transition: border-color .15s, box-shadow .15s;
}
.evo-order-status-selector:hover, .evo-order-status-selector:focus-within { border-color: var(--evo-blue); box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12); }
.evo-order-status-selector-label { font-size: var(--text-sm); font-weight: 600; color: var(--evo-navy); white-space: nowrap; }
.evo-order-status-selector .fi-input-wrp { min-width: 15rem; background: #fff; }
.dark .evo-order-status-selector { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.dark .evo-order-status-selector-label { color: var(--gray-200); }
.dark .evo-order-status-selector .fi-input-wrp { background: transparent; }
@media (max-width: 40rem) {
    .evo-order-status-selector { width: 100%; justify-content: space-between; }
    .evo-order-status-selector .fi-input-wrp { min-width: 0; flex: 1 1 auto; }
}

/* EVT-00053 (msg #39): „Scheme explodate” → Poziții. The columns keep the widths from the header from the first paint,
   instead of re-flowing while the „Produs EvoStore” selects of every row load (columns jumping on big PDF drafts).
   Only in table mode (wide screens); the narrow stacked layout is untouched. */
@media (min-width: 64rem) {
    .evo-positions-repeater > table { table-layout: fixed; }
    .evo-positions-repeater > table > thead > tr > th.fi-fo-table-repeater-empty-header-cell { width: 3rem; }
    .evo-positions-repeater .fi-select-input { min-height: 2.25rem; }
}

/* EVT-00229 (msg #14): „Scheme explodate” → Desen → „Pagini (imagini)”: previews at half the default grid size
   (Filament: 1/2 of the width, 1/3 on wide screens → 1/4 and 1/6). The files shown are the 200 px copies. */
/* EVT-00229 (msg #42): without image previews the uploader items are short name rows — 2 per row, 4 on wide screens. */
.fi-fo-file-upload.evo-diagram-pages .filepond--root[data-style-panel-layout=grid] .filepond--item { width: calc(50% - .5rem); }
@media (min-width: 64rem) {
    .fi-fo-file-upload.evo-diagram-pages .filepond--root[data-style-panel-layout=grid] .filepond--item { width: calc(25% - .5rem); }
}
/* EVT-00253 (msg #70): „Import schita PDF” → drawing files: the same compact rows (msg #80: now only error rows show). */
.fi-fo-file-upload.evo-import-drawings .filepond--root[data-style-panel-layout=grid] .filepond--item { width: calc(50% - .5rem); }
@media (min-width: 64rem) {
    .fi-fo-file-upload.evo-import-drawings .filepond--root[data-style-panel-layout=grid] .filepond--item { width: calc(25% - .5rem); }
}

/* EVT-00229 (msg #42): plain page thumbnails above „Pagini (imagini)” (filament/diagrams/pages-gallery), no animation. */
.evo-pages-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.evo-pages-gallery__item { position: relative; display: block; aspect-ratio: 1 / 1; border: 1px solid rgb(229 231 235); border-radius: .5rem; background: #fff; overflow: hidden; }
.dark .evo-pages-gallery__item { border-color: rgb(55 65 81); }
.evo-pages-gallery__item img { width: 100%; height: 100%; object-fit: contain; }
/* EVT-00229 (msg #48): editable page-number box (top left), drag to reorder, × removes the page. */
.evo-pages-gallery__item { cursor: grab; }
.evo-pages-gallery__item.is-dragging { opacity: .4; border-style: dashed; border-color: rgb(59 130 246); }
.evo-pages-gallery__link { display: block; width: 100%; height: 100%; }
.evo-pages-gallery__pos { position: absolute; left: .25rem; top: .25rem; width: 3.25rem; height: 1.6rem; padding: 0 .25rem; border: 1px solid rgb(209 213 219); border-radius: .25rem; background: #fff; color: rgb(17 24 39); font-size: .8rem; font-weight: 600; text-align: center; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.evo-pages-gallery__pos:focus { outline: 2px solid rgb(59 130 246); outline-offset: 0; }
.dark .evo-pages-gallery__pos { background: rgb(31 41 55); border-color: rgb(75 85 99); color: #fff; }
.evo-pages-gallery__remove { position: absolute; right: .25rem; top: .25rem; width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: rgb(17 24 39 / .7); color: #fff; font-size: 1rem; line-height: 1.5rem; text-align: center; cursor: pointer; }
.evo-pages-gallery__remove:hover { background: rgb(220 38 38); }
.evo-pages-gallery__hint { margin: 0 0 .5rem; font-size: .8rem; color: rgb(107 114 128); }
.evo-pages-gallery__note { margin: .5rem 0 0; font-size: .85rem; font-weight: 600; color: rgb(180 83 9); }
.dark .evo-pages-gallery__note { color: rgb(251 191 36); }
/* EVT-00229 (msg #60): number box and × moved out of the image into a bar above it, and made larger. */
.evo-pages-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.evo-pages-gallery__item { display: flex; flex-direction: column; aspect-ratio: auto; }
.evo-pages-gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: .375rem; padding: .3rem .375rem; border-bottom: 1px solid rgb(229 231 235); background: rgb(249 250 251); }
.dark .evo-pages-gallery__bar { border-color: rgb(55 65 81); background: rgb(17 24 39); }
.evo-pages-gallery__link { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.evo-pages-gallery__bar .evo-pages-gallery__pos { position: static; width: 4rem; height: 2.1rem; font-size: 1rem; box-shadow: none; }
.evo-pages-gallery__bar .evo-pages-gallery__remove { position: static; flex: none; width: 2.1rem; height: 2.1rem; font-size: 1.35rem; line-height: 2.1rem; background: rgb(75 85 99); }
.evo-pages-gallery__bar .evo-pages-gallery__remove:hover { background: rgb(220 38 38); }
/* EVT-00229 (msg #76): number box and × back on the same line (stacked layout from msg #66 removed). */
/* EVT-00229 (msg #79): page viewer opened by a click on a thumbnail — about half the screen, with a magnifying lens. */
.evo-pages-viewer { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(0 0 0 / .6); }
.evo-pages-viewer[hidden] { display: none; }
.evo-pages-viewer__box { display: flex; flex-direction: column; max-width: 95vw; border-radius: .5rem; background: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .35); overflow: hidden; }
.dark .evo-pages-viewer__box { background: rgb(31 41 55); color: #fff; }
.evo-pages-viewer__top { display: flex; align-items: center; gap: .75rem; padding: .4rem .5rem .4rem .75rem; border-bottom: 1px solid rgb(229 231 235); font-size: .875rem; }
.dark .evo-pages-viewer__top { border-color: rgb(55 65 81); }
.evo-pages-viewer__title { font-weight: 700; }
.evo-pages-viewer__tip { flex: 1; color: rgb(107 114 128); font-size: .8rem; }
.evo-pages-viewer__open { color: rgb(37 99 235); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.evo-pages-viewer__close { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 9999px; background: rgb(75 85 99); color: #fff; font-size: 1.35rem; line-height: 2.1rem; text-align: center; cursor: pointer; }
.evo-pages-viewer__close:hover { background: rgb(220 38 38); }
.evo-pages-viewer__stage { position: relative; display: flex; justify-content: center; padding: .5rem; overflow: hidden; }
.evo-pages-viewer__img { display: block; width: auto; height: auto; max-width: min(50vw, 95vw); max-height: 75vh; object-fit: contain; cursor: crosshair; }
@media (max-width: 48rem) { .evo-pages-viewer__img { max-width: 90vw; } }
.evo-pages-viewer__lens { position: absolute; width: 220px; height: 220px; border: 3px solid #fff; border-radius: 9999px; box-shadow: 0 0 0 1px rgb(0 0 0 / .3), 0 6px 18px rgb(0 0 0 / .35); background-color: #fff; background-repeat: no-repeat; pointer-events: none; }
.evo-pages-viewer__lens[hidden] { display: none; }

/* EVT-00229 (msg #60): while images upload, only the progress bar above is shown — the uploader's own animated rows
   are hidden (images with an error stay visible, marked red, so the admin can see which one failed). */
.fi-fo-file-upload.evo-diagram-pages .filepond--item:not([data-filepond-item-state*="error"]):not([data-filepond-item-state*="invalid"]) { display: none; }
/* EVT-00253 (msg #80): „Import schita PDF” → the drawing files are shown as thumbnails above the field
   (filament/diagrams/import-drawings-gallery), so the uploader's rows are hidden the same way (errors stay visible). */
.fi-fo-file-upload.evo-import-drawings .filepond--item:not([data-filepond-item-state*="error"]):not([data-filepond-item-state*="invalid"]) { display: none; }
.evo-import-gallery[hidden] { display: none; }
.evo-import-gallery { margin-bottom: .25rem; }
.evo-import-gallery .evo-pages-gallery__link { position: relative; display: flex; align-items: center; justify-content: center; }
.evo-import-gallery__file { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem; text-align: center; color: rgb(185 28 28); }
.evo-import-gallery__file strong { font-size: 1.25rem; }
.evo-import-gallery__name { max-width: 100%; font-size: .7rem; color: rgb(75 85 99); word-break: break-all; }
.dark .evo-import-gallery__name { color: rgb(209 213 219); }
.evo-import-gallery__state { position: absolute; left: 0; right: 0; bottom: 0; padding: .15rem; background: rgb(37 99 235 / .85); color: #fff; font-size: .7rem; text-align: center; }
.evo-pages-gallery__item[data-state="error"] .evo-import-gallery__state { background: rgb(220 38 38 / .9); }

/* EVT-00229 (msg #28): progress bar above „Pagini (imagini)” (filament/diagrams/upload-progress): blue while the
   images upload, green when all are uploaded, red when some failed. */
.evo-upload-progress { display: flex; flex-direction: column; gap: .35rem; }
.evo-upload-progress[hidden] { display: none; }
.evo-upload-progress__text { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; font-weight: 500; color: rgb(55 65 81); }
.dark .evo-upload-progress__text { color: rgb(209 213 219); }
.evo-upload-progress__track { height: .75rem; border-radius: 9999px; background: rgb(229 231 235); overflow: hidden; }
.dark .evo-upload-progress__track { background: rgb(55 65 81); }
.evo-upload-progress__bar { height: 100%; border-radius: 9999px; background: rgb(37 99 235); transition: width .2s ease, background-color .2s ease; }
.evo-upload-progress.is-complete .evo-upload-progress__bar { background: rgb(22 163 74); }
.evo-upload-progress.is-complete .evo-upload-progress__text { color: rgb(21 128 61); }
.evo-upload-progress.has-errors .evo-upload-progress__bar { background: rgb(220 38 38); }
.evo-upload-progress.has-errors .evo-upload-progress__text { color: rgb(185 28 28); }
/* EVT-00229 (msg #69): while images upload, the bar is striped and keeps moving (also before the first percent), so it
   never looks stuck; it stops when everything is uploaded (green) or some failed (red). */
.evo-upload-progress.is-busy .evo-upload-progress__bar {
    min-width: 2.5rem;
    background-image: linear-gradient(45deg, rgb(255 255 255 / .3) 25%, transparent 25%, transparent 50%, rgb(255 255 255 / .3) 50%, rgb(255 255 255 / .3) 75%, transparent 75%, transparent);
    background-size: 1.25rem 1.25rem;
    animation: evo-upload-stripes .8s linear infinite;
}
@keyframes evo-upload-stripes { from { background-position: 1.25rem 0; } to { background-position: 0 0; } }

/* EVT-00053 (msg #79): „Editează / Creează modelul sculei” (Scheme explodate). Header and save buttons stay fixed; the
   fields scroll inside the window, with free space under the last field so its product dropdown has room. */
.fi-body-has-navigation .fi-modal-window.evo-tool-model-modal > .fi-modal-content { padding-bottom: 10rem; }
/* EVT-00264 (msg #151): „Asociază sculă” (Scheme explodate): the product list opens downwards and was cut by the window's
   bottom bar („Asociază / Anulează”). The fields area is tall enough for the search box + the whole list above that bar. */
.fi-body-has-navigation .fi-modal-window.evo-associate-tools-modal > .fi-modal-content {
    min-height: min(30rem, calc(100dvh - 12rem)) !important;
}

/* EVT-00260 (msg #46): floating save bar on EVERY admin create / edit page. The „Salvează / Anulează” row (form footer
   of the page form, id „form-actions”) sticks to the bottom of the screen while the form is scrolled, and docks back
   at the end of the form. Pages with their own floating bar (HasFloatingFormActions / Filament sticky) still work:
   their bar takes over once the form is scrolled past. Modals are not touched (their forms have no id „form”). */
form#form.fi-sc-form > .fi-sc:has(.fi-sc-actions[id$="form-actions"]) {
    position: sticky; bottom: 0; z-index: 20;
    margin-inline: -.5rem; padding: .75rem .5rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: rgb(255 255 255 / .96); border-top: 1px solid rgb(11 30 58 / .08);
    box-shadow: 0 -6px 16px -8px rgb(11 30 58 / .18);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dark form#form.fi-sc-form > .fi-sc:has(.fi-sc-actions[id$="form-actions"]) {
    background: rgb(17 24 39 / .96); border-top-color: rgb(255 255 255 / .1);
}
@media (min-width: 48rem) {
    form#form.fi-sc-form > .fi-sc:has(.fi-sc-actions[id$="form-actions"]) {
        bottom: 1rem; margin-inline: 0; padding: .75rem 1rem; border: 1px solid rgb(11 30 58 / .08); border-radius: .75rem;
        box-shadow: 0 8px 24px -10px rgb(11 30 58 / .25);
    }
    .dark form#form.fi-sc-form > .fi-sc:has(.fi-sc-actions[id$="form-actions"]) { border-color: rgb(255 255 255 / .1); }
}
/* EVT-00266 (msg #25): pages with their own floating bar (HasFloatingFormActions, e.g. „Editare produs”). While that bar
   is floating (.fi-sticky), the EVT-00260 wrapper above is switched off: its backdrop-filter made the wrapper the
   reference box of the bar's position:fixed, so the bar stayed inside the form instead of floating on the screen
   (it stopped at the end of the form, above the relation managers / price chart). */
form#form.fi-sc-form > .fi-sc:has(.fi-sc-actions.fi-sticky[id$="form-actions"]),
.dark form#form.fi-sc-form > .fi-sc:has(.fi-sc-actions.fi-sticky[id$="form-actions"]) {
    position: relative; bottom: auto; z-index: 20;
    margin-inline: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* EVT-00263: an open „Acțiuni” menu (or any dropdown / select list) inside a page form goes OVER the floating save bar.
   The bar (above, z-index 20) comes after the form content, so menus opened in the content (e.g. the actions of a
   deviz in the Devize tab of a fișă service) were drawn under it. While a menu is open, the content is lifted above. */
form#form.fi-sc-form > .fi-sc:not(:has(.fi-sc-actions[id$="form-actions"])):has([aria-expanded="true"]) {
    position: relative; z-index: 21;
}
form#form.fi-sc-form .fi-ta-cell:has(.fi-dropdown-trigger[aria-expanded="true"]),
form#form.fi-sc-form .fi-ta-cell:has(.fi-dropdown-trigger [aria-expanded="true"]) { position: relative; z-index: 3; }

/* EVT-00277 (msg #142): menus opened in the page HEADER (e.g. „Documente” on a fișă service) go over the form content.
   The EVT-00263 rule above lifts form blocks to z-index 21, so the first block under the header (the „Proces verbal
   întocmit de” frame) was drawn over the open „Documente” list. While a header menu is open, the header is lifted. */
/* EVT-00277 (msg #203): Filament puts aria-expanded on the BUTTON inside .fi-dropdown-trigger, not on the trigger div,
   so the rule above never matched and the list stayed under the tabs / „Proces verbal întocmit de” frame. The
   descendant form below matches the real button; the old form is kept for safety. */
.fi-header:has(.fi-dropdown-trigger[aria-expanded="true"]),
.fi-header:has(.fi-dropdown-trigger [aria-expanded="true"]) { position: relative; z-index: 30; }

/* EVT-00290 (msg #12): the save button of a long pop-up form (e.g. „Adaugă / Editează adresa” of a client) is ALWAYS
   on screen, for EVERY modal of the panel — also the ones added later without stickyModalHeader()/stickyModalFooter().
   The window is capped to the screen height, the title and the „Salvează / Anulează” row stay fixed, and only the
   fields scroll in between. Short modals (confirmations) fit and look the same as before. Slide-overs, full-screen
   modals and modals already sticky (EVT-00019 rule above) are not touched. */
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen):not(.fi-modal-has-sticky-header):not(.fi-modal-has-sticky-footer) > .fi-modal-window-ctn > .fi-modal-window.fi-modal-window-has-content {
    max-height: calc(100dvh - 2rem);
}
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen):not(.fi-modal-has-sticky-header):not(.fi-modal-has-sticky-footer) > .fi-modal-window-ctn > .fi-modal-window.fi-modal-window-has-content > .fi-modal-header,
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen):not(.fi-modal-has-sticky-header):not(.fi-modal-has-sticky-footer) > .fi-modal-window-ctn > .fi-modal-window.fi-modal-window-has-content > .fi-modal-footer {
    flex-shrink: 0;
}
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen):not(.fi-modal-has-sticky-header):not(.fi-modal-has-sticky-footer) > .fi-modal-window-ctn > .fi-modal-window.fi-modal-window-has-content > .fi-modal-content {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
.fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen):not(.fi-modal-has-sticky-header):not(.fi-modal-has-sticky-footer) > .fi-modal-window-ctn > .fi-modal-window.fi-modal-window-has-content > .fi-modal-content + .fi-modal-footer {
    padding-top: 1rem; border-top: 1px solid rgb(11 30 58 / .08);
}
.dark .fi-body-has-navigation .fi-modal:not(.fi-modal-slide-over):not(.fi-width-screen):not(.fi-modal-has-sticky-header):not(.fi-modal-has-sticky-footer) > .fi-modal-window-ctn > .fi-modal-window.fi-modal-window-has-content > .fi-modal-content + .fi-modal-footer {
    border-top-color: rgb(255 255 255 / .1);
}

/* EVT-00292 (msg 6, admin): same fix as the shop — iOS Safari auto-zooms the page when a focused field has font-size < 16px
   (Filament inputs / selects / search are 14px), and the page stays zoomed / wider than the screen. Touch phones/tablets
   only (all admin pages, login included); desktop unchanged. */
/* msg 12: no width cap — iPads (1024px+) and the installed app on them need it too. */
@media (pointer: coarse), (hover: none) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select,
    textarea,
    [contenteditable="true"] { font-size: 16px !important; }
}
