/* ==========================================================================
   Voice of Customers: admin theme
   Matches the website: warm cream base, navy ink, royal-blue actions, green accents.
   Loaded after Bootstrap and the template CSS; restyles their components and
   defines the admin shell (.adm-*).
   ========================================================================== */

:root,
[data-bs-theme=light] {
    --adm-ink: #0E1B3D;
    --adm-ink-2: #1B2540;
    --adm-muted: #626B7F;
    --adm-faint: #8A91A3;
    --adm-cream: #FBF8F2;
    --adm-cream-2: #F5F0E6;
    --adm-line: #ECE9E2;
    --adm-line-2: #E3DFD6;
    --adm-blue: #3B5BDB;
    --adm-blue-600: #3550C4;
    --adm-blue-50: #EEF1FD;
    --adm-blue-100: #DCE3FB;
    --adm-green: #1FB57A;
    --adm-green-50: #E8F8F0;
    --adm-amber: #F59E0B;
    --adm-amber-50: #FFF6E5;
    --adm-red: #E5484D;
    --adm-red-50: #FDECEC;
    --adm-sun: #FFC21A;
    --adm-radius: 20px;
    --adm-radius-sm: 10px;
    --adm-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px -4px rgba(16, 24, 40, .06);
    --adm-shadow-lift: 0 12px 32px -8px rgba(16, 24, 40, .14);
    --adm-shadow-pop: 0 18px 44px -12px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .05);
    --adm-sidebar-w: 264px;
    --adm-topbar-h: 68px;
    --adm-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Bootstrap / template variables → brand */
    --tb-font-sans-serif: var(--adm-font);
    --tb-body-font-family: var(--adm-font);
    --tb-body-color: var(--adm-ink-2);
    --tb-body-color-rgb: 27, 37, 64;
    --tb-body-bg: #FFFFFF;
    --tb-emphasis-color: var(--adm-ink);
    --tb-secondary-color: var(--adm-muted);
    --tb-heading-color: var(--adm-ink);
    --tb-border-color: var(--adm-line);
    --tb-border-color-translucent: var(--adm-line);
    --tb-border-radius: 10px;
    --tb-border-radius-sm: 8px;
    --tb-border-radius-lg: 14px;
    --tb-link-color: var(--adm-blue);
    --tb-link-color-rgb: 59, 91, 219;
    --tb-link-hover-color: var(--adm-blue-600);
    --tb-primary: #3B5BDB;
    --tb-primary-rgb: 59, 91, 219;
    --tb-primary-text-emphasis: #2D43A6;
    --tb-primary-bg-subtle: #EEF1FD;
    --tb-primary-border-subtle: #DCE3FB;
    --tb-secondary: #6B5BD2;
    --tb-secondary-rgb: 107, 91, 210;
    --tb-success: #1FB57A;
    --tb-success-rgb: 31, 181, 122;
    --tb-success-text-emphasis: #127650;
    --tb-success-bg-subtle: #E8F8F0;
    --tb-success-border-subtle: #CFF1E1;
    --tb-info: #0EA5C6;
    --tb-info-rgb: 14, 165, 198;
    --tb-info-text-emphasis: #0B6E85;
    --tb-info-bg-subtle: #E4F6FA;
    --tb-warning: #F59E0B;
    --tb-warning-rgb: 245, 158, 11;
    --tb-warning-text-emphasis: #9A5B00;
    --tb-warning-bg-subtle: #FFF6E5;
    --tb-warning-border-subtle: #FDE7BE;
    --tb-danger: #E5484D;
    --tb-danger-rgb: 229, 72, 77;
    --tb-danger-text-emphasis: #B42328;
    --tb-danger-bg-subtle: #FDECEC;
    --tb-danger-border-subtle: #F9D0D1;
    --tb-light: #F7F5F0;
    --tb-light-rgb: 247, 245, 240;
    --tb-light-bg-subtle: #FBFAF7;
    --tb-dark: #0E1B3D;
    --tb-dark-rgb: 14, 27, 61;
    --tb-focus-ring-color: rgba(59, 91, 219, .18);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--adm-font);
    background: #fff;
    color: var(--adm-ink-2);
    font-size: .875rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--adm-ink); font-family: var(--adm-font); letter-spacing: -.01em; }
.ff-secondary { font-family: var(--adm-font) !important; }
a { color: var(--adm-blue); }
a:hover { color: var(--adm-blue-600); }
.text-muted { color: var(--adm-muted) !important; }
.text-primary { color: var(--adm-blue) !important; }
.bg-primary { background-color: var(--adm-blue) !important; }
::selection { background: var(--adm-blue-100); }
.phpdebugbar-hide-shots .phpdebugbar { display: none !important; }

/* Hide template chrome the new shell doesn't use */
#preloader, #back-to-top, .customizer-setting, #theme-settings-offcanvas { display: none !important; }

/* ---------- Shell (same look as the website's dashboard: light, cream wash, white panels) ---------- */
.adm-shell { min-height: 100vh; position: relative; }
.adm-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 384px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, var(--adm-cream), rgba(251, 248, 242, 0));
}

.adm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1045;
    width: var(--adm-sidebar-w);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--adm-muted);
    border-right: 1px solid var(--adm-line);
}
.adm-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: var(--adm-topbar-h);
    padding: 0 18px 0 20px;
    flex-shrink: 0;
}
.adm-sidebar__brand a { text-decoration: none; }
.adm-sidebar__close { display: none; }
.adm-sidebar__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: #E4E0D6 transparent;
}
.adm-nav { list-style: none; margin: 0; padding: 0; }
.adm-nav__label {
    margin: 18px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94A3B8;
}
.adm-nav__label:first-child { margin-top: 6px; }
.adm-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    margin: 1px 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.adm-nav__link i { font-size: 17px; width: 20px; text-align: center; color: #94A3B8; transition: color .15s ease; }
.adm-nav__link:hover { background: #F8FAFC; color: var(--adm-ink-2); }
.adm-nav__link:hover i { color: #64748B; }
.adm-nav__link:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(59, 91, 219, .18); }
.adm-nav__link.is-active { background: var(--adm-blue-50); color: var(--adm-blue); font-weight: 600; }
.adm-nav__link.is-active i { color: var(--adm-blue); }
.adm-nav__count {
    margin-left: auto;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 194, 26, .3);
    color: #92400E;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.adm-nav__chevron { margin-left: auto; font-size: 12px !important; width: auto !important; transition: transform .2s ease; }
.adm-nav__link[aria-expanded=true] .adm-nav__chevron { transform: rotate(90deg); }
.adm-subnav { list-style: none; margin: 2px 0 6px; padding: 0 0 0 30px; position: relative; }
.adm-subnav::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 1px; background: var(--adm-line); }
.adm-subnav a {
    display: block;
    padding: 7px 12px;
    border-radius: 10px;
    color: #64748B;
    font-size: 13.5px;
    text-decoration: none;
}
.adm-subnav a:hover { color: var(--adm-ink-2); background: #F8FAFC; }
.adm-subnav a.is-active { color: var(--adm-blue); font-weight: 600; background: var(--adm-blue-50); }

.adm-sidebar__footer { padding: 12px; border-top: 1px solid var(--adm-line); flex-shrink: 0; }
.adm-site-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--adm-line);
    background: var(--adm-cream);
    color: var(--adm-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.adm-site-link > .bi-globe2 { color: var(--adm-green); font-size: 16px; }
.adm-site-link:hover { background: var(--adm-cream-2); color: var(--adm-ink); }
.adm-site-link small { display: block; font-weight: 500; color: var(--adm-muted); font-size: 11.5px; }
.adm-site-link .bi-box-arrow-up-right { margin-left: auto; color: var(--adm-faint); }

.adm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--adm-ink); }
.adm-logo__text { font-weight: 800; font-size: 16.5px; letter-spacing: -.03em; white-space: nowrap; color: var(--adm-ink); }
.adm-logo__of { font-weight: 600; color: #94A3B8; }
.adm-logo--inverted .adm-logo__text { color: #fff; }
.adm-logo--inverted .adm-logo__of { color: rgba(255, 255, 255, .55); }
.adm-logo__tag {
    margin-left: 2px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.adm-main { margin-left: var(--adm-sidebar-w); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }

.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--adm-topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.adm-topbar.is-scrolled { border-bottom-color: var(--adm-line); box-shadow: 0 6px 20px -16px rgba(16, 24, 40, .35); }
.adm-topbar .adm-topbar__menu { display: none; }
.adm-topbar__title { min-width: 0; flex: 1; }
.adm-topbar__title h1 { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-topbar__title p { margin: 1px 0 0; font-size: 12.5px; color: var(--adm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-topbar__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.adm-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--adm-line);
    background: #fff;
    color: var(--adm-ink-2);
    font-size: 17px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.adm-icon-btn:hover { border-color: var(--adm-line-2); box-shadow: var(--adm-shadow); }
.adm-icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(59, 91, 219, .18); border-color: var(--adm-blue); }
.adm-icon-btn__dot {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--adm-red);
    border: 2px solid #fff;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
    transform: translate(40%, -40%);
}

.adm-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 10px 0 4px;
    border-radius: 12px;
    border: 1px solid var(--adm-line);
    background: #fff;
    color: var(--adm-ink);
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.adm-user-btn:hover { box-shadow: var(--adm-shadow); }
.adm-user-btn .bi-chevron-down { font-size: 11px; color: var(--adm-faint); }
.adm-avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    background: linear-gradient(135deg, #3B5BDB, #6B5BD2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.adm-content { flex: 1; padding: 26px 28px 40px; min-width: 0; }
.adm-content > .container-fluid { padding-left: 0; padding-right: 0; }
/* Old template wrappers inside pages: their padding was made for the template's fixed header. */
.adm-content .page-content { padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
.adm-content .page-content > .container-fluid, .adm-content section.content > .container-fluid { padding-left: 0; padding-right: 0; }
.adm-footer { padding: 18px 28px 26px; color: var(--adm-faint); font-size: 12.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.adm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(14, 27, 61, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

@media (max-width: 991.98px) {
    .adm-sidebar {
        width: min(86vw, 300px);
        transform: translateX(-102%);
        transition: transform .26s cubic-bezier(.16, 1, .3, 1), visibility .26s;
        visibility: hidden;
    }
    body.adm-nav-open .adm-sidebar { visibility: visible; box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .5); }
    .adm-sidebar__close {
        display: inline-grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-size: 18px;
    }
    body.adm-nav-open { overflow: hidden; }
    body.adm-nav-open .adm-sidebar { transform: none; }
    body.adm-nav-open .adm-overlay { opacity: 1; visibility: visible; }
    .adm-main { margin-left: 0; }
    .adm-topbar { padding: 0 16px; gap: 10px; }
    .adm-topbar .adm-topbar__menu { display: inline-grid; }
    .adm-content { padding: 18px 16px 32px; }
    .adm-footer { padding: 14px 16px 22px; }
}
@media (max-width: 575.98px) {
    .adm-topbar__title p, .adm-user-btn__name, .adm-user-btn .bi-chevron-down { display: none; }
    .adm-user-btn { padding: 0 4px; }
    .adm-topbar__title h1 { font-size: 16px; }
}

/* ---------- Shared page header (<x-admin.page-header>) ---------- */
.adm-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.adm-page-head__text { min-width: 0; }
.adm-page-head .breadcrumb { margin-bottom: 6px; }
.adm-page-head__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--adm-ink); }
.adm-page-head__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--adm-line); box-shadow: var(--adm-shadow); color: var(--adm-blue); font-size: 18px; }
.adm-page-head__sub { margin: 6px 0 0; color: var(--adm-muted); font-size: 14px; max-width: 640px; }
.adm-page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575.98px) {
    .adm-page-head__title { font-size: 21px; }
    .adm-page-head__icon { width: 34px; height: 34px; font-size: 16px; }
    .adm-page-head__actions { width: 100%; }
    .adm-page-head__actions > .btn, .adm-page-head__actions > form, .adm-page-head__actions > .dropdown { flex: 1 1 auto; }
    .adm-page-head__actions .btn { white-space: nowrap; width: 100%; justify-content: center; }
    .adm-page-head__actions > .dropdown { flex: 0 0 auto; }
}

/* ---------- Shared fields (<x-admin.field>) ---------- */
.adm-field { margin-bottom: 1.1rem; min-width: 0; }
.row > .adm-field, .adm-form-grid > .adm-field { margin-bottom: 0; }
.adm-field__req { color: var(--adm-red); margin-left: 2px; }
.adm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.adm-form-grid > .adm-span-2 { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .adm-form-grid { grid-template-columns: minmax(0, 1fr); } }
.adm-form-section { padding: 22px; border-bottom: 1px solid var(--adm-line); }
.adm-form-section:last-child { border-bottom: 0; }
.adm-form-section__head { margin-bottom: 16px; }
.adm-form-section__head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.adm-form-section__head p { margin: 3px 0 0; color: var(--adm-muted); font-size: 13px; }
.adm-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--adm-line); background: #FCFBF8; border-radius: 0 0 var(--adm-radius) var(--adm-radius); }
@media (max-width: 575.98px) {
    .adm-form-section { padding: 16px; }
    .adm-form-actions { padding: 14px 16px; }
    .adm-form-actions .btn { flex: 1; }
}

.adm-input-icon { position: relative; }
.adm-input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--adm-faint); pointer-events: none; font-size: 15px; z-index: 2; }
.adm-input-icon > .form-control { padding-left: 2.5rem; }
.adm-input-icon > .form-control[readonly] { background-color: #fff; cursor: pointer; }

/* Toggle: checkbox / switch with label and help */
.adm-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 14px; border: 1px solid var(--adm-line-2); border-radius: 12px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.adm-toggle:hover { border-color: #D6D1C6; }
.adm-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.adm-toggle__control { position: relative; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #CFC9BD; border-radius: 6px; background: #fff; transition: all .15s ease; }
.adm-toggle__control::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s ease; }
.adm-toggle input:checked + .adm-toggle__control { background: var(--adm-blue); border-color: var(--adm-blue); }
.adm-toggle input:checked + .adm-toggle__control::after { transform: rotate(45deg) scale(1); }
.adm-toggle--switch .adm-toggle__control { width: 38px; height: 22px; border-radius: 999px; background: #E4E0D6; border: 0; margin-top: 0; }
.adm-toggle--switch .adm-toggle__control::after { left: 3px; top: 3px; width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transform: none; }
.adm-toggle--switch input:checked + .adm-toggle__control { background: var(--adm-green); }
.adm-toggle--switch input:checked + .adm-toggle__control::after { transform: translateX(16px); }
.adm-toggle input:focus-visible + .adm-toggle__control { box-shadow: 0 0 0 4px rgba(59, 91, 219, .18); }
.adm-toggle__text { min-width: 0; }
.adm-toggle__label { display: block; font-weight: 600; color: var(--adm-ink); font-size: 14px; }
.adm-toggle__help { display: block; color: var(--adm-muted); font-size: 12.5px; margin-top: 2px; }

/* Radio / multi-check cards */
.adm-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.adm-choice { position: relative; cursor: pointer; margin: 0; }
.adm-choice input { position: absolute; opacity: 0; pointer-events: none; }
.adm-choice__box { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 11px 13px; border: 1px solid var(--adm-line-2); border-radius: 12px; background: #fff; transition: all .15s ease; }
.adm-choice:hover .adm-choice__box { border-color: #D6D1C6; }
.adm-choice__mark { position: relative; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #CFC9BD; border-radius: 50%; background: #fff; transition: all .15s ease; }
.adm-choice input[type=checkbox] + .adm-choice__box .adm-choice__mark { border-radius: 5px; }
.adm-choice input:checked + .adm-choice__box { border-color: var(--adm-blue); background: var(--adm-blue-50); box-shadow: 0 0 0 1px var(--adm-blue) inset; }
.adm-choice input:checked + .adm-choice__box .adm-choice__mark { border-color: var(--adm-blue); background: var(--adm-blue); box-shadow: inset 0 0 0 3px #fff; }
.adm-choice input[type=checkbox]:checked + .adm-choice__box .adm-choice__mark { box-shadow: none; }
.adm-choice input[type=checkbox]:checked + .adm-choice__box .adm-choice__mark::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.adm-choice input:focus-visible + .adm-choice__box { box-shadow: 0 0 0 4px rgba(59, 91, 219, .18); }
.adm-choice__label { display: block; font-weight: 600; color: var(--adm-ink); font-size: 13.5px; }
.adm-choice__hint { display: block; color: var(--adm-muted); font-size: 12px; margin-top: 1px; }

/* Image / file drop zone */
.adm-drop { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1.5px dashed #D6D1C6; border-radius: 14px; background: #FCFBF8; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; margin: 0; }
.adm-drop:hover, .adm-drop.is-over { border-color: var(--adm-blue); background: var(--adm-blue-50); }
.adm-drop.is-invalid { border-color: var(--adm-red); }
.adm-drop:focus-within { border-color: var(--adm-blue); box-shadow: 0 0 0 4px rgba(59, 91, 219, .14); }
.adm-drop__preview { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--adm-line); display: grid; place-items: center; color: var(--adm-blue); font-size: 24px; }
.adm-drop__preview[hidden] { display: none; }
.adm-drop__preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-drop__body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-drop__icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--adm-line); color: var(--adm-blue); font-size: 18px; }
.adm-drop__preview:not([hidden]) + .adm-drop__body .adm-drop__icon { display: none; }
.adm-drop__title { display: block; font-weight: 600; color: var(--adm-ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-drop__hint { display: block; color: var(--adm-muted); font-size: 12.5px; }

.adm-color { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--adm-line-2); border-radius: 11px; background: #fff; }
.adm-color input[type=color] { width: 34px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.adm-color__value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--adm-ink-2); }

/* Tom Select (searchable selects) */
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0 !important; min-height: 42px; background-image: none !important; border: 0 !important; box-shadow: none !important; }
html body .ts-wrapper .ts-control, html body .ts-wrapper.form-select .ts-control, html body .ts-wrapper.single .ts-control { min-height: 42px; padding: .5rem 2.4rem .5rem .85rem !important; border: 1px solid var(--adm-line-2) !important; border-radius: 11px !important; background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23626B7F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") no-repeat right .8rem center / 15px 15px !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .03) !important; font-size: 14px; color: var(--adm-ink); cursor: pointer; }
html body .ts-wrapper.focus .ts-control { border-color: var(--adm-blue) !important; box-shadow: 0 0 0 4px rgba(59, 91, 219, .14) !important; }
.ts-wrapper.is-invalid .ts-control, .is-invalid + .ts-wrapper .ts-control { border-color: var(--adm-red) !important; }
.ts-wrapper.multi .ts-control > .item { background: var(--adm-blue-50) !important; color: var(--adm-blue) !important; border: 0 !important; border-radius: 7px !important; padding: 2px 8px !important; font-weight: 600; font-size: 12.5px; }
.ts-dropdown { margin-top: 6px !important; border: 1px solid var(--adm-line) !important; border-radius: 14px !important; box-shadow: var(--adm-shadow-pop) !important; padding: 6px !important; z-index: 1060 !important; font-size: 14px; animation: adm-pop .16s cubic-bezier(.16, 1, .3, 1); }
.ts-dropdown .option, .ts-dropdown .create, .ts-dropdown .no-results { padding: .5rem .7rem !important; border-radius: 9px; color: var(--adm-ink-2); }
.ts-dropdown .active { background: #F4F1EA !important; color: var(--adm-ink) !important; }
.ts-dropdown .selected { background: var(--adm-blue-50) !important; color: var(--adm-blue) !important; font-weight: 600; }
.ts-dropdown .create { color: var(--adm-blue); font-weight: 600; }
.ts-dropdown-content { max-height: 260px; }
.ts-wrapper .dropdown-input-wrap { padding: 4px 4px 8px; }
.ts-wrapper .dropdown-input { border: 1px solid var(--adm-line-2) !important; border-radius: 9px; padding: .45rem .7rem !important; }

/* flatpickr (date / time) */
.flatpickr-calendar { font-family: var(--adm-font) !important; border: 1px solid var(--adm-line) !important; border-radius: 16px !important; box-shadow: var(--adm-shadow-pop) !important; padding: 6px; }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year { font-weight: 700 !important; color: var(--adm-ink) !important; }
.flatpickr-day { border-radius: 10px !important; color: var(--adm-ink-2); font-weight: 500; }
.flatpickr-day:hover { background: #F4F1EA !important; border-color: transparent !important; }
.flatpickr-day.today { border-color: var(--adm-blue-100) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--adm-blue) !important; border-color: var(--adm-blue) !important; color: #fff !important; }
.flatpickr-weekday { color: var(--adm-faint) !important; font-weight: 600 !important; }
.flatpickr-time { border-top: 1px solid var(--adm-line) !important; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm { font-weight: 600; color: var(--adm-ink); border-radius: 8px; }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus { background: #F4F1EA !important; }

/* Row action buttons (icon buttons in tables) */
.adm-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-act { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--adm-line-2); background: #fff; color: var(--adm-muted); font-size: 15px; text-decoration: none; transition: all .15s ease; }
.adm-act:hover { color: var(--adm-ink); border-color: #D6D1C6; box-shadow: var(--adm-shadow); }
.adm-act--danger:hover { color: var(--adm-red); border-color: #F9D0D1; background: var(--adm-red-50); }
.adm-act--primary:hover { color: var(--adm-blue); border-color: var(--adm-blue-100); background: var(--adm-blue-50); }
.adm-act--success:hover { color: #127650; border-color: #CFF1E1; background: var(--adm-green-50); }
.adm-act:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(59, 91, 219, .18); }

/* Status pills */
.adm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #F3F1EC; color: var(--adm-muted); }
.adm-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.adm-pill:has(> i)::before { display: none; }
.adm-pill--green { background: var(--adm-green-50); color: #127650; }
.adm-pill--amber { background: var(--adm-amber-50); color: #9A5B00; }
.adm-pill--red { background: var(--adm-red-50); color: #B42328; }
.adm-pill--blue { background: var(--adm-blue-50); color: var(--adm-blue); }
.adm-pill--violet { background: #F1EFFC; color: #5B4BC4; }

.adm-empty-state { padding: 48px 20px; text-align: center; }
.adm-empty-state__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #F4F1EA; color: var(--adm-muted); font-size: 24px; margin-bottom: 12px; }
.adm-empty-state__title { font-weight: 700; color: var(--adm-ink); font-size: 15px; }
.adm-empty-state__text { margin: 4px auto 0; max-width: 360px; color: var(--adm-muted); font-size: 13.5px; }
.adm-empty-state__actions { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Blog taxonomy */
.adm-tag-dot { display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.adm-seo { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--adm-line); border-radius: 12px; background: #FCFBF8; }
.adm-seo summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--adm-ink); }
.adm-seo[open] summary { margin-bottom: 12px; }
.adm-act:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* Blog form */
.adm-slug { display: flex; align-items: center; gap: 6px; margin: -6px 0 18px; font-size: 12.5px; color: var(--adm-muted); min-width: 0; }
.adm-slug span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-slug strong { color: var(--adm-ink); font-weight: 600; }
.adm-collapse > summary { list-style: none; cursor: pointer; }
.adm-collapse > summary::-webkit-details-marker { display: none; }
.adm-collapse > summary > .bi { transition: transform .2s ease; color: var(--adm-faint); }
.adm-collapse[open] > summary > .bi { transform: rotate(180deg); }
.adm-collapse:not([open]) > summary { border-bottom: 0; }
@media (min-width: 1200px) { .adm-sticky { position: sticky; top: calc(var(--adm-topbar-h) + 16px); } }
.adm-post-stats { display: flex; justify-content: space-around; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--adm-line); font-size: 12.5px; color: var(--adm-muted); text-align: center; }
.adm-post-stats strong { display: block; font-size: 18px; color: var(--adm-ink); }
.tox.tox-tinymce { border: 1px solid var(--adm-line-2) !important; border-radius: 12px !important; }
.tox .tox-toolbar__primary, .tox .tox-editor-header { background: #FCFBF8 !important; }
.adm-article { font-size: 15px; line-height: 1.75; color: var(--adm-ink-2); }
.adm-article h2, .adm-article h3 { margin: 1.4em 0 .5em; font-weight: 800; letter-spacing: -.02em; }
.adm-article img { max-width: 100%; height: auto; border-radius: 12px; }
.adm-article ul, .adm-article ol { padding-left: 1.3em; }

/* Blog posts list */
.adm-posts { list-style: none; margin: 0; padding: 0; }
.adm-post { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--adm-line); }
.adm-post:last-child { border-bottom: 0; }
.adm-post__cover { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 120px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #FFF3D1, #E8F8F0); color: rgba(14, 27, 61, .25); font-size: 22px; }
.adm-post__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-post__main { flex: 1; min-width: 0; }
.adm-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.adm-post__title { display: block; margin-top: 6px; font-weight: 700; font-size: 15.5px; color: var(--adm-ink); letter-spacing: -.01em; }
.adm-post__title:hover { color: var(--adm-blue); }
.adm-post__excerpt { margin: 4px 0 0; color: var(--adm-muted); font-size: 13.5px; line-height: 1.55; }
.adm-post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--adm-muted); }
.adm-post__foot i { color: var(--adm-faint); }
.adm-post__tag { color: var(--adm-blue); font-weight: 600; }
@media (max-width: 575.98px) {
    .adm-post { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .adm-post__cover { width: 100%; }
    .adm-post > .adm-actions { width: 100%; justify-content: flex-end; }
}

/* Category icons (Lucide, as on the website) */
.adm-cat-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: var(--adm-green-50); color: #179463; }
.adm-cat-icon svg { width: 19px; height: 19px; }
.adm-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.adm-icon-choice { position: relative; margin: 0; cursor: pointer; }
.adm-icon-choice input { position: absolute; opacity: 0; pointer-events: none; }
.adm-icon-choice span { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 1px solid var(--adm-line-2); background: #fff; color: var(--adm-muted); transition: all .12s ease; }
.adm-icon-choice span svg { width: 20px; height: 20px; }
.adm-icon-choice:hover span { border-color: #D6D1C6; color: var(--adm-ink); }
.adm-icon-choice input:checked + span { border-color: var(--adm-blue); background: var(--adm-blue-50); color: var(--adm-blue); box-shadow: 0 0 0 1px var(--adm-blue) inset; }
.adm-icon-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(59, 91, 219, .18); }

/* Activity log */
.adm-log { list-style: none; margin: 0; padding: 0; }
.adm-log__day { padding: 12px 20px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-faint); background: #FCFBF8; border-bottom: 1px solid var(--adm-line); }
.adm-log__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--adm-line); }
.adm-log__item:last-child { border-bottom: 0; }
.adm-log__main { flex: 1; min-width: 0; }
.adm-log__line { font-size: 14px; color: var(--adm-ink-2); line-height: 1.5; padding-top: 7px; }
.adm-log__line strong { color: var(--adm-ink); }
.adm-log__time { flex-shrink: 0; padding-top: 8px; font-size: 12.5px; color: var(--adm-faint); font-variant-numeric: tabular-nums; }
.adm-log__details { margin-top: 8px; }
.adm-log__details summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--adm-blue); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.adm-log__details summary::-webkit-details-marker { display: none; }
.adm-log__details summary::before { content: "\F285"; font-family: bootstrap-icons; font-size: 10px; transition: transform .15s ease; }
.adm-log__details[open] summary::before { transform: rotate(90deg); }
.adm-log__diff { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 1px solid var(--adm-line); border-radius: 12px; overflow: hidden; }
.adm-log__diff th, .adm-log__diff td { padding: 8px 12px; border-bottom: 1px solid var(--adm-line); vertical-align: top; word-break: break-word; }
.adm-log__diff tr:last-child th, .adm-log__diff tr:last-child td { border-bottom: 0; }
.adm-log__diff tr:first-child th { background: #FAF8F3; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--adm-muted); }
.adm-log__diff th { width: 22%; font-weight: 600; color: var(--adm-muted); text-align: left; }
.adm-log__diff td.is-old { background: #FFF7F7; color: #8F1D21; }
.adm-log__diff td.is-new { background: #F3FBF7; color: #0F5E41; }
@media (max-width: 575.98px) {
    .adm-log__item { padding: 12px 16px; gap: 10px; }
    .adm-log__item > .adm-tone { width: 32px; height: 32px; font-size: 15px; }
    .adm-log__diff th { width: 30%; }
}

/* Businesses not on the site yet (invites page) */
.adm-unknown { list-style: none; margin: 0; padding: 0; }
.adm-unknown__item { border-bottom: 1px solid var(--adm-line); }
.adm-unknown__item:last-child { border-bottom: 0; }
.adm-unknown__row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.adm-unknown__main { flex: 1; min-width: 0; }
.adm-unknown__name { font-weight: 700; color: var(--adm-ink); font-size: 15px; }
.adm-unknown__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 12.5px; }
.adm-unknown__reviews { background: #FCFBF8; border-top: 1px dashed var(--adm-line); }
.adm-unknown__reviews .adm-review { background: transparent; }
@media (max-width: 575.98px) {
    .adm-unknown__row { flex-wrap: wrap; padding: 14px 16px; }
    .adm-unknown__row > .adm-actions { width: 100%; justify-content: stretch; }
    .adm-unknown__row > .adm-actions .btn { flex: 1; }
}
.adm-copy { display: flex; gap: 6px; align-items: center; max-width: 320px; }
.adm-copy .form-control { min-height: 34px; font-size: 12.5px; color: var(--adm-muted); background: #FCFBF8; }

/* Review media */
.adm-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 16px; }
.adm-media__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--adm-line); background: #FCFBF8; }
.adm-media__item img, .adm-media__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-media__file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 8px; font-size: 11.5px; text-align: center; color: var(--adm-ink-2); word-break: break-all; }
.adm-media__file i { font-size: 24px; color: var(--adm-blue); }
.adm-media__remove { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 9px; background: rgba(14, 27, 61, .72); color: #fff; font-size: 13px; backdrop-filter: blur(4px); }
.adm-media__remove:hover { background: var(--adm-red); }
.adm-review__thumbs { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.adm-review__thumbs img, .adm-review__thumbs span { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; border: 1px solid var(--adm-line); }
.adm-review__thumbs span { display: inline-grid; place-items: center; background: #F4F1EA; color: var(--adm-muted); font-size: 12px; font-weight: 700; }

/* Feedback inbox */
.adm-inbox { list-style: none; margin: 0; padding: 0; }
.adm-inbox > li { border-bottom: 1px solid var(--adm-line); }
.adm-inbox > li:last-child { border-bottom: 0; }
.adm-inbox__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; color: inherit; text-decoration: none; transition: background-color .12s ease; }
.adm-inbox__item:hover { background: #FBF9F5; color: inherit; }
.adm-inbox__item.is-new { background: linear-gradient(90deg, var(--adm-blue-50), transparent 40%); }
.adm-inbox__item.is-new .adm-inbox__name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--adm-blue); vertical-align: middle; }
.adm-inbox__main { flex: 1; min-width: 0; }
.adm-inbox__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.adm-inbox__name { font-weight: 700; color: var(--adm-ink); }
.adm-inbox__text { display: block; margin-top: 3px; color: var(--adm-muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-inbox__time { flex-shrink: 0; font-size: 12px; color: var(--adm-faint); }
.adm-message { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.7; color: var(--adm-ink-2); padding: 18px 20px; border-radius: 14px; background: #FCFBF8; border: 1px solid var(--adm-line); }
@media (max-width: 575.98px) { .adm-inbox__item { padding: 14px 16px; gap: 12px; } }

/* Review rows */
.adm-reviews { list-style: none; margin: 0; padding: 0; }
.adm-review { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--adm-line); }
.adm-review:last-child { border-bottom: 0; }
.adm-review.is-hidden { background: #FCFBF8; }
.adm-review.is-hidden .adm-review__title, .adm-review.is-hidden .adm-review__body { opacity: .6; }
.adm-review__main { flex: 1; min-width: 0; }
.adm-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.adm-review__business { color: var(--adm-ink-2); font-weight: 600; }
.adm-review__business i { color: var(--adm-faint); }
.adm-review__title { margin-top: 6px; font-weight: 700; color: var(--adm-ink); font-size: 14.5px; }
.adm-review__body { margin: 3px 0 0; color: var(--adm-muted); font-size: 13.5px; line-height: 1.55; }
.adm-review__author { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--adm-ink-2); }
.adm-review__author:hover { color: var(--adm-blue); }
.adm-review__reason { margin-top: 10px; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--adm-red-50); color: #8F1D21; font-size: 12.5px; font-weight: 500; }
@media (max-width: 575.98px) {
    .adm-review { flex-direction: column; gap: 10px; padding: 16px; }
    .adm-review > .adm-actions { align-self: flex-end; }
}

/* Filter bar */
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--adm-line); }
.adm-filters > .adm-filters__search { flex: 1 1 260px; min-width: 0; }
.adm-filters > .adm-filters__select { flex: 0 1 190px; min-width: 150px; }
.adm-filters .adm-field { margin: 0; }
@media (max-width: 575.98px) {
    .adm-filters { padding: 14px 16px; }
    .adm-filters > * { flex: 1 1 100% !important; }
}

/* Tabs as segmented control */
.adm-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #F1EEE7; }
.adm-tabs a { padding: 6px 12px; border-radius: 9px; color: var(--adm-muted); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.adm-tabs a:hover { color: var(--adm-ink); }
.adm-tabs a.is-active { background: #fff; color: var(--adm-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.adm-tabs a .adm-tabs__count { padding: 0 6px; border-radius: 999px; background: rgba(14, 27, 61, .07); font-size: 11px; }

/* Person / entity cell */
.adm-entity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-entity__text { min-width: 0; }
.adm-entity__name { display: block; font-weight: 600; color: var(--adm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
a.adm-entity__name:hover { color: var(--adm-blue); }
.adm-entity__sub { display: block; font-size: 12.5px; color: var(--adm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }

/* Detail lists */
.adm-dl { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); margin: 0; }
.adm-dl dt, .adm-dl dd { padding: 11px 0; border-bottom: 1px solid var(--adm-line); margin: 0; font-size: 13.5px; }
.adm-dl dt { color: var(--adm-muted); font-weight: 500; }
.adm-dl dd { color: var(--adm-ink); font-weight: 500; word-break: break-word; }
.adm-dl dt:last-of-type, .adm-dl dd:last-of-type { border-bottom: 0; }

.adm-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 13.5px; }
.adm-banner i { font-size: 18px; line-height: 1.2; }
.adm-banner strong { display: block; color: inherit; }
.adm-banner--red { background: var(--adm-red-50); color: #8F1D21; border: 1px solid #F9D0D1; }
.adm-banner--amber { background: var(--adm-amber-50); color: #7A4800; border: 1px solid #FDE7BE; }
.adm-banner--blue { background: var(--adm-blue-50); color: #2D43A6; border: 1px solid var(--adm-blue-100); }

/* ---------- Bootstrap 4 class names still used by the blog pages ---------- */
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.form-group { margin-bottom: 1.1rem; }
.form-group > label, .form-group > .form-label { display: block; font-weight: 600; font-size: 13px; color: var(--adm-ink); margin-bottom: 6px; }
.card-title > i, .card-header h3 > i, .btn > i.fas, .btn > i.fa { margin-right: .45rem; }
.float-sm-right { float: none !important; }

/* ---------- Page headers (existing .page-title-box markup) ---------- */
.page-title-box {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 0 0 18px !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
}
.page-title-box h4, .page-title-box h1 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    text-transform: none !important;
    color: var(--adm-ink) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title-box h4 > i, .page-title-box h1 > i { font-size: 20px; color: var(--adm-blue); }
.breadcrumb { margin: 0; font-size: 12.5px; --tb-breadcrumb-divider-color: var(--adm-faint); }
.breadcrumb-item a { color: var(--adm-muted); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--adm-blue); }
.breadcrumb-item.active { color: var(--adm-faint); }

/* ---------- Cards ---------- */
.card {
    --tb-card-border-color: var(--adm-line);
    --tb-card-border-radius: var(--adm-radius);
    --tb-card-inner-border-radius: calc(var(--adm-radius) - 1px);
    --tb-card-cap-bg: transparent;
    --tb-card-spacer-x: 1.375rem;
    --tb-card-spacer-y: 1.25rem;
    border: 1px solid var(--adm-line) !important;
    border-radius: var(--adm-radius) !important;
    background: #fff;
    box-shadow: var(--adm-shadow) !important;
    margin-bottom: 1.5rem;
}
.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--adm-line) !important;
    padding: 1rem 1.375rem;
}
.card-header.border-0 { border-bottom: 0 !important; }
.card-title, .card-header h4, .card-header h5 { font-size: 15.5px !important; font-weight: 700 !important; color: var(--adm-ink) !important; margin-bottom: 0; }
.card-footer { background: transparent; border-top: 1px solid var(--adm-line); }
.card-body.border-dashed, .card-body.bg-light-subtle { background: #FCFBF8 !important; border-color: var(--adm-line) !important; }
.card-animate { transition: transform .2s ease, box-shadow .2s ease; }
.card-animate:hover { transform: translateY(-2px); box-shadow: var(--adm-shadow-lift) !important; }
.shadow-sm { box-shadow: var(--adm-shadow) !important; }

/* ---------- Buttons ---------- */
.btn {
    --tb-btn-font-weight: 600;
    --tb-btn-border-radius: 11px;
    --tb-btn-padding-y: .5rem;
    --tb-btn-padding-x: 1rem;
    --tb-btn-font-size: .875rem;
    font-weight: 600;
    border-radius: 11px;
    letter-spacing: -.005em;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(59, 91, 219, .2) !important; }
.btn-sm { --tb-btn-padding-y: .32rem; --tb-btn-padding-x: .7rem; --tb-btn-font-size: .8125rem; border-radius: 9px; }
.btn-lg { border-radius: 13px; }
.btn-primary {
    --tb-btn-bg: var(--adm-blue); --tb-btn-border-color: var(--adm-blue);
    --tb-btn-hover-bg: var(--adm-blue-600); --tb-btn-hover-border-color: var(--adm-blue-600);
    --tb-btn-active-bg: #2D43A6; --tb-btn-active-border-color: #2D43A6;
    --tb-btn-disabled-bg: var(--adm-blue); --tb-btn-disabled-border-color: var(--adm-blue);
    background-color: var(--adm-blue) !important;
    border-color: var(--adm-blue) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 14px -6px rgba(59, 91, 219, .55);
}
.btn-primary:hover { background-color: var(--adm-blue-600) !important; border-color: var(--adm-blue-600) !important; }
.btn-outline-primary { --tb-btn-color: var(--adm-blue); --tb-btn-border-color: var(--adm-blue-100); --tb-btn-hover-bg: var(--adm-blue-50); --tb-btn-hover-color: var(--adm-blue); --tb-btn-hover-border-color: var(--adm-blue-100); background: #fff !important; color: var(--adm-blue) !important; border-color: var(--adm-blue-100) !important; }
.btn-outline-primary:hover { background: var(--adm-blue-50) !important; }
.btn-dark { --tb-btn-bg: var(--adm-ink); --tb-btn-border-color: var(--adm-ink); --tb-btn-hover-bg: #17295A; --tb-btn-hover-border-color: #17295A; }
.btn-success { --tb-btn-bg: var(--adm-green); --tb-btn-border-color: var(--adm-green); --tb-btn-hover-bg: #179463; --tb-btn-hover-border-color: #179463; }
.btn-danger { --tb-btn-bg: var(--adm-red); --tb-btn-border-color: var(--adm-red); --tb-btn-hover-bg: #CC3A3F; --tb-btn-hover-border-color: #CC3A3F; }
.btn-light, .btn-secondary, .btn-outline-secondary, .btn-soft-secondary, .btn-ghost-secondary {
    --tb-btn-bg: #fff; --tb-btn-color: var(--adm-ink-2); --tb-btn-border-color: var(--adm-line-2);
    --tb-btn-hover-bg: #F7F5F0; --tb-btn-hover-color: var(--adm-ink); --tb-btn-hover-border-color: var(--adm-line-2);
    --tb-btn-active-bg: #F2EFE8; --tb-btn-active-color: var(--adm-ink); --tb-btn-active-border-color: var(--adm-line-2);
    background: #fff !important; color: var(--adm-ink-2) !important; border: 1px solid var(--adm-line-2) !important;
}
.btn-light:hover, .btn-secondary:hover, .btn-outline-secondary:hover, .btn-soft-secondary:hover, .btn-ghost-secondary:hover { background: #F7F5F0 !important; }
.btn-soft-primary, .btn-subtle-primary { background: var(--adm-blue-50) !important; color: var(--adm-blue) !important; border: 1px solid transparent !important; }
.btn-soft-primary:hover, .btn-subtle-primary:hover { background: var(--adm-blue-100) !important; }
.btn-soft-success, .btn-subtle-success { background: var(--adm-green-50) !important; color: #127650 !important; border: 1px solid transparent !important; }
.btn-soft-danger, .btn-subtle-danger { background: var(--adm-red-50) !important; color: #B42328 !important; border: 1px solid transparent !important; }
.btn-soft-warning, .btn-subtle-warning { background: var(--adm-amber-50) !important; color: #9A5B00 !important; border: 1px solid transparent !important; }
.btn-soft-info, .btn-subtle-info { background: #E4F6FA !important; color: #0B6E85 !important; border: 1px solid transparent !important; }
.btn-soft-secondary { background: #F4F2FD !important; color: #5B4BC4 !important; border: 1px solid transparent !important; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: 13px; color: var(--adm-ink); margin-bottom: 6px; }
.form-control, .form-select {
    min-height: 42px;
    padding: .55rem .85rem;
    border: 1px solid var(--adm-line-2);
    border-radius: 11px;
    background-color: #fff;
    color: var(--adm-ink);
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { min-height: 96px; }
.form-control-sm, .form-select-sm { min-height: 34px; border-radius: 9px; font-size: 13px; }
.form-control-lg { min-height: 50px; border-radius: 13px; }
.form-control::placeholder { color: #A0A6B4; }
.form-control:hover, .form-select:hover { border-color: #D6D1C6; }
.form-control:focus, .form-select:focus { border-color: var(--adm-blue); box-shadow: 0 0 0 4px rgba(59, 91, 219, .14); outline: 0; }
.form-control:disabled, .form-control[readonly] { background-color: #F8F6F1; }
select.form-control, .form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23626B7F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 6 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 15px 15px;
}
select[multiple].form-control { background-image: none; padding-right: .85rem; }
.form-check-input { width: 1.1em; height: 1.1em; border-color: #CFC9BD; }
.form-check-input:checked { background-color: var(--adm-blue); border-color: var(--adm-blue); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(59, 91, 219, .14); border-color: var(--adm-blue); }
.form-switch .form-check-input { width: 2.3em; height: 1.25em; }
.form-text, .form-control + small, .text-muted.small { color: var(--adm-faint) !important; }
.input-group-text { background: #F8F6F1; border-color: var(--adm-line-2); color: var(--adm-muted); border-radius: 11px; }
.invalid-feedback { font-size: 12.5px; }
.search-box { position: relative; }
.search-box .form-control { padding-left: 2.4rem; }
.search-box .search-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--adm-faint); font-size: 15px; pointer-events: none; }

/* ---------- Tables ---------- */
.table {
    --tb-table-bg: transparent;
    --tb-table-color: var(--adm-ink-2);
    --tb-table-border-color: var(--adm-line);
    --tb-table-hover-bg: #FBF9F5;
    --tb-table-striped-bg: #FCFBF8;
    margin-bottom: 0;
    font-size: 13.5px;
    vertical-align: middle;
}
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--adm-line); }
.table > thead > tr > th, .table thead th, .table .table-light th, .table thead.table-light th {
    background: #FAF8F3 !important;
    color: var(--adm-muted) !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--adm-line) !important;
    border-top: 0 !important;
}
.table-bordered > :not(caption) > * { border-width: 0; }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px; }
.table > tbody > tr { transition: background-color .12s ease; }
.table > tbody > tr:hover > * { background-color: #FBF9F5; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table-responsive { border-radius: 12px; border: 1px solid var(--adm-line); background: #fff; }
.table-responsive.table-card, .card-body > .table-responsive:only-child { border: 0; border-radius: 0; }
.card > .table-responsive, .card-body.p-0 > .table-responsive { border: 0; border-radius: 0 0 var(--adm-radius) var(--adm-radius); }
.table thead th:first-child { border-top-left-radius: 0; }
.table td .fw-medium, .table td h5, .table td h6 { color: var(--adm-ink); }

/* ---------- Badges ---------- */
.badge {
    --tb-badge-font-weight: 600;
    padding: .38em .66em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .01em;
    text-transform: none !important;
}
.badge.text-uppercase { text-transform: none !important; }
.bg-success-subtle { background-color: var(--adm-green-50) !important; }
.text-success { color: #127650 !important; }
.bg-warning-subtle { background-color: var(--adm-amber-50) !important; }
.text-warning { color: #9A5B00 !important; }
.bg-danger-subtle { background-color: var(--adm-red-50) !important; }
.text-danger { color: #B42328 !important; }
.bg-info-subtle { background-color: #E4F6FA !important; }
.text-info { color: #0B6E85 !important; }
.bg-primary-subtle { background-color: var(--adm-blue-50) !important; }
.bg-secondary-subtle { background-color: #F1EFFC !important; }
.text-secondary { color: #5B4BC4 !important; }
.bg-light { background-color: #F7F5F0 !important; }
.bg-success { background-color: var(--adm-green) !important; }
.bg-danger { background-color: var(--adm-red) !important; }
.bg-warning { background-color: var(--adm-amber) !important; }
.bg-info { background-color: #0EA5C6 !important; }
.bg-dark { background-color: var(--adm-ink) !important; }

/* ---------- Dropdowns, modals, alerts, pagination, tabs ---------- */
.dropdown-menu {
    --tb-dropdown-border-color: var(--adm-line);
    --tb-dropdown-link-hover-bg: #F7F5F0;
    --tb-dropdown-link-active-bg: var(--adm-blue-50);
    --tb-dropdown-link-active-color: var(--adm-blue);
    padding: 6px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    box-shadow: var(--adm-shadow-pop);
    font-size: 13.5px;
    animation: adm-pop .16s cubic-bezier(.16, 1, .3, 1);
}
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; color: var(--adm-ink-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dropdown-item i { color: var(--adm-faint); font-size: 15px; }
.dropdown-item:hover i { color: var(--adm-ink); }
.dropdown-item.text-danger i { color: inherit; }
.dropdown-header { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-faint); font-weight: 700; padding: .5rem .75rem; }
.dropdown-divider { border-color: var(--adm-line); margin: 6px 0; }
@keyframes adm-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }

.modal { --tb-modal-border-radius: 20px; --tb-modal-inner-border-radius: 19px; }
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 32px 64px -16px rgba(16, 24, 40, .3); }
.modal-header { border-bottom: 1px solid var(--adm-line); padding: 1.1rem 1.4rem; }
.modal-title { font-weight: 700; font-size: 16px; }
.modal-body { padding: 1.3rem 1.4rem; }
.modal-footer { border-top: 1px solid var(--adm-line); padding: .9rem 1.4rem; gap: 8px; }
.modal-backdrop { --tb-backdrop-bg: #0E1B3D; --tb-backdrop-opacity: .45; }

.alert { border-radius: 12px; border: 1px solid transparent; font-size: 13.5px; padding: .8rem 1rem; }
.alert-success { background: var(--adm-green-50); border-color: #CFF1E1; color: #0F5E41; }
.alert-danger { background: var(--adm-red-50); border-color: #F9D0D1; color: #8F1D21; }
.alert-warning { background: var(--adm-amber-50); border-color: #FDE7BE; color: #7A4800; }
.alert-info { background: var(--adm-blue-50); border-color: var(--adm-blue-100); color: #2D43A6; }

.pagination { --tb-pagination-border-radius: 10px; gap: 4px; flex-wrap: wrap; margin: 0; }
.page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    border: 1px solid var(--adm-line-2);
    color: var(--adm-ink-2);
    font-weight: 600;
    font-size: 13px;
    background: #fff;
}
.page-link:hover { background: #F7F5F0; color: var(--adm-ink); border-color: var(--adm-line-2); }
.page-item.active .page-link { background: var(--adm-ink); border-color: var(--adm-ink); color: #fff; }
.page-item.disabled .page-link { color: #B6BBC6; background: #fff; }
nav[role=navigation] p.small, .pagination + p { color: var(--adm-muted); }

.nav-tabs { border-bottom: 1px solid var(--adm-line); gap: 4px; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--adm-muted); font-weight: 600; padding: .7rem .9rem; border-radius: 0; }
.nav-tabs .nav-link:hover { color: var(--adm-ink); }
.nav-tabs .nav-link.active { color: var(--adm-blue); border-bottom-color: var(--adm-blue); background: transparent; }
.nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: var(--adm-muted); }
.nav-pills .nav-link.active { background: var(--adm-ink); color: #fff; }

.avatar-title { border-radius: 12px; }
.avatar-xs { width: 2rem; height: 2rem; }
.rounded-circle.avatar-xs, img.rounded-circle { object-fit: cover; }

/* SweetAlert */
.swal2-popup { font-family: var(--adm-font) !important; border-radius: 20px !important; }
.swal2-styled.swal2-confirm { background: var(--adm-blue) !important; border-radius: 11px !important; font-weight: 600 !important; }
.swal2-styled.swal2-cancel { background: #fff !important; color: var(--adm-ink-2) !important; border: 1px solid var(--adm-line-2) !important; border-radius: 11px !important; font-weight: 600 !important; }
.swal2-styled.swal2-deny { border-radius: 11px !important; font-weight: 600 !important; }
.swal2-popup.adm-dialog { width: min(420px, calc(100vw - 32px)) !important; padding: 1.6rem 1.4rem 1.3rem !important; }
.swal2-popup.adm-dialog .swal2-title { font-size: 19px !important; font-weight: 800 !important; color: var(--adm-ink) !important; letter-spacing: -.02em; padding: .4rem 0 0 !important; }
.swal2-popup.adm-dialog .swal2-html-container { font-size: 14px !important; color: var(--adm-muted) !important; margin: .5rem 0 0 !important; }
.swal2-popup.adm-dialog .swal2-icon { transform: scale(.72); margin: .2rem auto -.4rem !important; }
.adm-dialog__actions { gap: 8px; width: 100%; margin-top: 1.3rem !important; padding: 0 !important; }
.adm-dialog__actions .btn { flex: 1; min-height: 44px; margin: 0 !important; }
/* Toasts never dim or scroll the page. */
.swal2-container { z-index: 2000 !important; }
.swal2-container.swal2-backdrop-show { background: rgba(14, 27, 61, .45) !important; backdrop-filter: blur(2px); }

/* ---------- Toasts (admin-shell.js admToast) ---------- */
.adm-toasts { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.adm-toast { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px 14px 16px; border-radius: 14px; border: 1px solid var(--adm-line); background: #fff; box-shadow: var(--adm-shadow-pop); pointer-events: auto; animation: adm-toast-in .22s cubic-bezier(.16, 1, .3, 1); }
.adm-toast.is-leaving { animation: adm-toast-out .2s ease forwards; }
.adm-toast > i { font-size: 19px; line-height: 1.2; flex-shrink: 0; }
.adm-toast--success > i { color: var(--adm-green); }
.adm-toast--error > i { color: var(--adm-red); }
.adm-toast--warning > i { color: var(--adm-amber); }
.adm-toast--info > i { color: var(--adm-blue); }
.adm-toast__text { flex: 1; min-width: 0; padding-top: 1px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--adm-ink); word-break: break-word; }
.adm-toast__close { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; margin: -2px -2px 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--adm-faint); font-size: 12px; }
.adm-toast__close:hover { background: #F4F1EA; color: var(--adm-ink); }
.adm-toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: adm-toast-bar 4.5s linear forwards; }
.adm-toast.is-paused .adm-toast__bar { animation-play-state: paused; }
.adm-toast--success .adm-toast__bar { background: var(--adm-green); }
.adm-toast--error .adm-toast__bar { background: var(--adm-red); }
.adm-toast--warning .adm-toast__bar { background: var(--adm-amber); }
.adm-toast--info .adm-toast__bar { background: var(--adm-blue); }
@keyframes adm-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes adm-toast-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes adm-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 575.98px) { .adm-toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; } }

/* ---------- Notifications panel ---------- */
.adm-panel { width: min(380px, calc(100vw - 24px)); padding: 0 !important; overflow: hidden; }
.adm-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--adm-line); }
.adm-panel__head h6 { margin: 0; font-size: 14px; font-weight: 700; }
.adm-panel__item { display: flex; gap: 12px; padding: 13px 16px; text-decoration: none; border-bottom: 1px solid var(--adm-line); color: var(--adm-ink-2); }
.adm-panel__item:last-child { border-bottom: 0; }
.adm-panel__item:hover { background: #FBF9F5; color: var(--adm-ink); }
.adm-panel__item strong { display: block; font-size: 13.5px; color: var(--adm-ink); }
.adm-panel__item span { display: block; font-size: 12.5px; color: var(--adm-muted); margin-top: 1px; }
.adm-panel__empty { padding: 34px 20px; text-align: center; color: var(--adm-muted); }
.adm-panel__empty i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--adm-green-50); color: var(--adm-green); font-size: 22px; margin-bottom: 10px; }
.adm-tone { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; font-size: 17px; }
.adm-tone--amber { background: var(--adm-amber-50); color: #B86E00; }
.adm-tone--blue { background: var(--adm-blue-50); color: var(--adm-blue); }
.adm-tone--green { background: var(--adm-green-50); color: #179463; }
.adm-tone--violet { background: #F1EFFC; color: #5B4BC4; }
.adm-tone--red { background: var(--adm-red-50); color: var(--adm-red); }

/* ---------- Dashboard ---------- */
.adm-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 28px;
    margin-bottom: 22px;
    border-radius: 20px;
    color: var(--adm-ink);
    background:
        radial-gradient(60% 140% at 0% 0%, rgba(255, 194, 26, .45), transparent 60%),
        radial-gradient(50% 120% at 100% 100%, rgba(31, 181, 122, .18), transparent 60%),
        #FFF3D1;
    border: 1px solid #F6E3A8;
}
.adm-hero h2 { color: var(--adm-ink); margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.adm-hero p { margin: 6px 0 0; color: #5B5440; font-size: 14px; }
.adm-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-hero .btn-hero { background: var(--adm-blue); color: #fff; border: 0; box-shadow: 0 8px 18px -8px rgba(59, 91, 219, .6); }
.adm-hero .btn-hero:hover { background: var(--adm-blue-600); color: #fff; }
.adm-hero .btn-hero-ghost { background: #fff; color: var(--adm-ink); border: 1px solid #F0DFA6; }
.adm-hero .btn-hero-ghost:hover { background: #FFFBEF; color: var(--adm-ink); }

.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.adm-stat {
    position: relative;
    display: block;
    padding: 18px 18px 16px;
    border-radius: var(--adm-radius);
    border: 1px solid var(--adm-line);
    background: #fff;
    box-shadow: var(--adm-shadow);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
a.adm-stat:hover { transform: translateY(-2px); box-shadow: var(--adm-shadow-lift); color: inherit; }
.adm-stat__top { display: flex; align-items: center; justify-content: space-between; }
.adm-stat__label { font-size: 13px; font-weight: 600; color: var(--adm-muted); }
.adm-stat__value { margin-top: 12px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--adm-ink); line-height: 1.1; }
.adm-stat__meta { margin-top: 6px; font-size: 12.5px; color: var(--adm-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-weight: 700; font-size: 11.5px; }
.adm-delta--up { background: var(--adm-green-50); color: #127650; }
.adm-delta--flat { background: #F3F1EC; color: var(--adm-muted); }
.adm-stars { color: var(--adm-sun); letter-spacing: 1px; font-size: 13px; }
.adm-stars .off { color: #E4E0D6; }

.adm-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; }
.adm-grid > div { min-width: 0; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--adm-line); }
.adm-card-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.adm-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--adm-muted); }
.adm-card-head a { font-size: 13px; font-weight: 600; white-space: nowrap; }

.adm-chart { padding: 18px 20px 14px; }
.adm-chart__bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.adm-chart__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.adm-chart__fill {
    width: 100%;
    max-width: 30px;
    min-height: 3px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #5B78E6, var(--adm-blue));
    transition: opacity .15s ease;
}
.adm-chart__bar:hover .adm-chart__fill { opacity: .8; }
.adm-chart__bar.is-today .adm-chart__fill { background: linear-gradient(180deg, #2CCB8E, #179463); }
.adm-chart__bar.is-empty .adm-chart__fill { background: #EEEAE1; }
.adm-chart__labels { display: flex; gap: 6px; margin-top: 8px; }
.adm-chart__labels span { flex: 1; text-align: center; font-size: 10.5px; color: var(--adm-faint); min-width: 0; overflow: hidden; }

.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list > li { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--adm-line); }
.adm-list > li:last-child { border-bottom: 0; }
.adm-list__main { min-width: 0; flex: 1; }
.adm-list__title { font-weight: 600; color: var(--adm-ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-list__sub { font-size: 12.5px; color: var(--adm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-list__aside { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--adm-faint); }
.adm-empty { padding: 30px 20px; text-align: center; color: var(--adm-muted); font-size: 13.5px; }

.adm-meter { height: 8px; border-radius: 999px; background: #F1EEE7; overflow: hidden; }
.adm-meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2CCB8E, #1FB57A); }

.adm-initial {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
    background: var(--adm-blue-50);
    color: var(--adm-blue);
    overflow: hidden;
}
.adm-initial img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1199.98px) {
    .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .adm-stats { gap: 10px; }
    .adm-stat { padding: 14px; }
    .adm-stat__value { font-size: 22px; margin-top: 8px; }
    .adm-hero { padding: 20px; border-radius: 18px; }
    .adm-hero h2 { font-size: 20px; }
    .adm-hero__actions { width: 100%; }
    .adm-hero__actions .btn { flex: 1; }
    .adm-list > li { padding: 12px 16px; }
    .adm-card-head { padding: 14px 16px; }
    .adm-chart { padding: 14px 12px 10px; }
    .adm-chart__bars { gap: 3px; }
    .adm-chart__labels { gap: 3px; }
    .adm-chart__labels span { overflow: visible; white-space: nowrap; }
    .adm-chart__labels span:not(:first-child):not(:last-child) { visibility: hidden; }
}

/* ---------- Phones: tables become stacked cards ----------
   admin-shell.js copies each column heading into data-label on its cells. */
@media (max-width: 767.98px) {
    .adm-content .table-responsive { overflow: visible; border: 0; background: transparent; }
    .adm-content table.adm-stack, .adm-content table.adm-stack > tbody { display: block; width: 100%; }
    .adm-content table.adm-stack { min-width: 0 !important; }
    .adm-content table.adm-stack > thead { display: none; }
    .adm-content table.adm-stack > tbody > tr {
        display: block;
        margin: 0 0 12px;
        padding: 6px 0;
        border: 1px solid var(--adm-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--adm-shadow);
    }
    .adm-content table.adm-stack > tbody > tr:last-child { margin-bottom: 0; }
    .adm-content table.adm-stack > tbody > tr > td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-width: 0;
        padding: 9px 14px !important;
        border: 0 !important;
        border-bottom: 1px dashed var(--adm-line) !important;
        background: transparent !important;
        white-space: normal !important;
        text-align: right;
        word-break: break-word;
    }
    .adm-content table.adm-stack > tbody > tr > td:last-child { border-bottom: 0 !important; }
    .adm-content table.adm-stack > tbody > tr > td::before {
        content: attr(data-label);
        flex-shrink: 0;
        max-width: 42%;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--adm-faint);
        text-align: left;
    }
    .adm-content table.adm-stack > tbody > tr > td[data-label=""]::before { display: none; }
    .adm-content table.adm-stack > tbody > tr > td[data-label=""] { justify-content: flex-start; text-align: left; }
    .adm-content table.adm-stack > tbody > tr > td > * { min-width: 0; }
    .adm-content table.adm-stack > tbody > tr > td.adm-cell-primary { justify-content: flex-start; text-align: left; padding-top: 12px !important; padding-bottom: 12px !important; }
    .adm-content table.adm-stack > tbody > tr > td.adm-cell-primary::before { display: none; }
    .adm-content table.adm-stack > tbody > tr > td[colspan] { justify-content: center; text-align: center; }
    .adm-content table.adm-stack > tbody > tr > td[colspan]::before { display: none; }
    .adm-content table.adm-stack > tbody > tr:hover > * { background: transparent !important; }
    .adm-content table.adm-stack > tbody > tr > td.adm-cell-id { display: none; }
    .adm-content table.adm-stack .dropdown-menu { text-align: left; }
    .adm-content .card .card-body > .table-responsive, .adm-content .card > .table-responsive { padding: 0; }

    .page-title-box { padding-bottom: 14px !important; }
    .page-title-box h4, .page-title-box h1 { font-size: 19px !important; }
    .card { margin-bottom: 1rem; }
    .card-header { padding: .9rem 1rem; }
    .card-body { padding: 1rem; }
    .modal-dialog { margin: .75rem; }
    .row > [class*=col-] .btn.w-100 { min-height: 42px; }
}

/* ---------- Sign-in pages (same layout as the website's sign-in: form left, cream panel right) ---------- */
.adm-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); background: #fff; }
.adm-auth__side { display: flex; flex-direction: column; min-height: 100vh; }
.adm-auth__head { display: flex; align-items: center; height: 80px; padding: 0 48px; border-bottom: 1px solid rgba(236, 233, 226, .7); flex-shrink: 0; }
.adm-auth__form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 48px; }
.adm-auth__card { width: 100%; max-width: 26rem; }
.adm-auth__card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; color: var(--adm-ink); }
.adm-auth__card .lead { font-size: 15px; color: var(--adm-muted); margin: 0 0 26px; }
.adm-auth__foot { padding: 22px 48px; color: var(--adm-faint); font-size: 12px; }
.adm-auth__panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--adm-line);
    background:
        radial-gradient(32rem 32rem at 100% -10%, rgba(255, 194, 26, .32), transparent 60%),
        radial-gradient(30rem 30rem at 0% 110%, rgba(31, 181, 122, .22), transparent 60%),
        var(--adm-cream);
}
.adm-auth__panel::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(to right, rgba(14, 27, 61, .045) 1px, transparent 1px), linear-gradient(to bottom, rgba(14, 27, 61, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.adm-auth__panel-inner { width: 100%; max-width: 32rem; margin: 0 auto; padding: 40px 48px; }
.adm-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #127650; font-size: 14px; font-weight: 600; }
.adm-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--adm-green); }
.adm-auth__panel h2 { margin: 12px 0 14px; color: var(--adm-ink); font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.adm-auth__panel p:not(.adm-eyebrow) { color: var(--adm-muted); font-size: 15.5px; margin: 0; }
.adm-auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.adm-auth__points li { display: flex; align-items: center; gap: 12px; color: var(--adm-ink-2); font-size: 14.5px; font-weight: 500; }
.adm-auth__points i { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #fff; border: 1px solid var(--adm-line); color: var(--adm-green); box-shadow: var(--adm-shadow); }
.adm-auth .btn-lg { min-height: 50px; font-size: 15px; }
.adm-otp { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.adm-otp input {
    height: 58px;
    padding: 0;
    border: 1px solid var(--adm-line-2);
    border-radius: 13px;
    background: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--adm-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.adm-otp input:focus { outline: none; border-color: var(--adm-blue); box-shadow: 0 0 0 4px rgba(59, 91, 219, .14); }
.adm-pass { position: relative; }
.adm-pass .form-control { padding-right: 46px; }
.adm-pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--adm-faint); font-size: 17px; }
.adm-pass__toggle:hover { background: #F4F1EA; color: var(--adm-ink); }
@media (max-width: 991.98px) {
    .adm-auth { grid-template-columns: 1fr; }
    .adm-auth__panel { display: none; }
    .adm-auth__head { height: 64px; padding: 0 20px; border-bottom: 0; }
    .adm-auth__form { align-items: flex-start; padding: 24px 20px 32px; }
    .adm-auth__foot { padding: 18px 20px; }
}
@media (max-width: 400px) {
    .adm-otp { gap: 6px; }
    .adm-otp input { height: 50px; font-size: 19px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Activity log details: label next to value */
.adm-log__details .adm-dl { grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; }

/* Searchable select: our own arrow (Tom Select's theme removes background images on the control). */
html body .ts-wrapper.single { position: relative; }
html body .ts-wrapper.single::after {
    content: "";
    position: absolute;
    right: .8rem;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23626B7F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") no-repeat center / 15px 15px;
    transition: transform .15s ease;
}
html body .ts-wrapper.single.dropdown-active::after { transform: rotate(180deg); }

/* Dialog sections and phone-sized dialogs */
.adm-modal-section { margin: 6px 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-faint); }
.adm-modal-section:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--adm-line); }
.modal-header .modal-title + p { line-height: 1.45; }
@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down .modal-content { border-radius: 0; }
    .modal-dialog:not(.modal-fullscreen-sm-down) { margin: .75rem; }
    .modal-footer { position: sticky; bottom: 0; background: #fff; }
    .modal-footer > .btn, .modal-footer > a.btn { flex: 1; }
    .modal-body { padding: 1rem; }
    .modal-header { padding: 1rem; }
}
