/* ==========================================================================
   ASHICO Admin Shell v1.0 — 26/04/2026 (Session AS_10 UI rewrite)
   ----------------------------------------------------------------------------
   Layout chrome modernization: topbar + sidebar + breadcrumb + page-header
   + toast + skeleton + command-palette + dark-mode + bilingual-editor.

   Scope: outside `.admin-content` (which `admin-pages-fix.css` owns).
   Inherits tokens from `site.css` v3 (--ashico-blue/red/gold + spacing).

   Stack: Plus Jakarta Sans + Bootstrap 5 + HTMX 2 + Alpine.js 3 + SortableJS
   (per PLAN_ADMIN_DECISIONS.md v0.2 stack chốt).
   ========================================================================== */

:root {
    /* Shell-level tokens (re-export ashico-* with shorter names for shell) */
    --shell-blue:        var(--ashico-blue,        #034ea2);
    --shell-blue-dark:   var(--ashico-blue-dark,   #023a7a);
    --shell-blue-light:  var(--ashico-blue-light,  #0066cc);
    --shell-blue-50:     var(--ashico-blue-50,     #eef4fc);
    --shell-blue-100:    #dbeafe;
    --shell-red:         var(--ashico-red,         #ec2028);
    --shell-gold:        var(--ashico-gold,        #d4af37);
    --shell-green:       #10b981;
    --shell-amber:       #f59e0b;

    --shell-bg:          #f4f6fb;
    --shell-bg-elev:     #ffffff;
    --shell-bg-soft:     #f8fafc;
    --shell-bg-sidebar:  #ffffff;
    --shell-border:      #e5e9f2;
    --shell-border-soft: #eef2f7;

    --shell-text:        #0f172a;
    --shell-text-2:      #475569;
    --shell-muted:       #94a3b8;

    --shell-topbar-h:    64px;
    --shell-sidebar-w:   248px;
    --shell-sidebar-w-collapsed: 72px;
    --shell-content-max: 1440px;

    --shell-radius-sm:   8px;
    --shell-radius-md:   12px;
    --shell-radius-lg:   16px;
    --shell-radius-xl:   20px;
    --shell-radius-pill: 999px;

    --shell-shadow-xs:   0 1px 2px rgba(15,23,42,.04);
    --shell-shadow-sm:   0 2px 8px rgba(15,23,42,.06);
    --shell-shadow-md:   0 6px 20px rgba(3,78,162,.10);
    --shell-shadow-lg:   0 14px 40px rgba(3,78,162,.18);
    --shell-shadow-glow: 0 0 0 3px rgba(3,78,162,.18);

    --shell-ease:        cubic-bezier(.4, 0, .2, 1);
    --shell-z-topbar:    100;
    --shell-z-sidebar:   90;
    --shell-z-toast:     1100;
    --shell-z-modal:     1050;
    --shell-z-palette:   1200;
}

/* Dark mode — opt-in via [data-theme="dark"] on <html> */
html[data-theme="dark"] {
    --shell-bg:          #0b1220;
    --shell-bg-elev:     #111827;
    --shell-bg-soft:     #0f172a;
    --shell-bg-sidebar:  #0f172a;
    --shell-border:      #1f2937;
    --shell-border-soft: #1a2233;
    --shell-text:        #f1f5f9;
    --shell-text-2:      #cbd5e1;
    --shell-muted:       #64748b;
    --shell-blue-50:     #0c2547;
}

/* ==========================================================================
   1) Body shell — replace legacy d-flex layout
   ========================================================================== */
body {
    background: var(--shell-bg);
    color: var(--shell-text);
    font-family: 'Plus Jakarta Sans','Exo 2','Roboto','Segoe UI',sans-serif;
}

.shell {
    display: grid;
    grid-template-columns: var(--shell-sidebar-w) 1fr;
    grid-template-rows: var(--shell-topbar-h) 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar content";
    min-height: 100vh;
    transition: grid-template-columns .25s var(--shell-ease);
}

.shell--sidebar-collapsed { grid-template-columns: var(--shell-sidebar-w-collapsed) 1fr; }

@media (max-width: 991.98px) {
    .shell { grid-template-columns: 0 1fr; }
    .shell .ashico-sidebar { transform: translateX(-100%); }
    .shell--sidebar-mobile-open .ashico-sidebar { transform: translateX(0); }
}

/* ==========================================================================
   2) Topbar v2 — search + notifications + cmdk + user + dark toggle
   ========================================================================== */
.ashico-topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    background: var(--shell-bg-elev);
    border-bottom: 1px solid var(--shell-border);
    position: sticky;
    top: 0;
    z-index: var(--shell-z-topbar);
    box-shadow: var(--shell-shadow-xs);
}

.ashico-topbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--shell-radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--shell-text-2);
    cursor: pointer;
    transition: background .15s var(--shell-ease), color .15s var(--shell-ease);
}
.ashico-topbar__toggle:hover { background: var(--shell-bg-soft); color: var(--shell-blue); }
.ashico-topbar__toggle i { font-size: 20px; }

.ashico-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--shell-text);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-right: 8px;
    text-decoration: none;
}
.ashico-topbar__brand:hover { color: var(--shell-blue); }
.ashico-topbar__brand-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--shell-blue), var(--shell-blue-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
    box-shadow: var(--shell-shadow-md);
}

.ashico-topbar__search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.ashico-topbar__search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border-radius: var(--shell-radius-pill);
    border: 1px solid var(--shell-border);
    background: var(--shell-bg-soft);
    color: var(--shell-text);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color .15s var(--shell-ease), box-shadow .15s var(--shell-ease), background .15s var(--shell-ease);
}
.ashico-topbar__search-input:focus {
    outline: none;
    border-color: var(--shell-blue);
    background: var(--shell-bg-elev);
    box-shadow: var(--shell-shadow-glow);
}
.ashico-topbar__search-input::placeholder { color: var(--shell-muted); }
.ashico-topbar__search-icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--shell-muted);
    font-size: 16px;
    pointer-events: none;
}
.ashico-topbar__search-kbd {
    position: absolute;
    right: 10px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--shell-bg-elev);
    border: 1px solid var(--shell-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--shell-muted);
    pointer-events: none;
}

.ashico-topbar__spacer { flex: 1; }

.ashico-topbar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ashico-topbar__icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: none;
    background: transparent;
    color: var(--shell-text-2);
    border-radius: var(--shell-radius-sm);
    cursor: pointer;
    transition: background .15s var(--shell-ease), color .15s var(--shell-ease);
}
.ashico-topbar__icon-btn:hover { background: var(--shell-bg-soft); color: var(--shell-blue); }
.ashico-topbar__icon-btn i { font-size: 18px; }
.ashico-topbar__icon-btn .badge-dot {
    position: absolute;
    top: 6px; right: 8px;
    width: 8px; height: 8px;
    background: var(--shell-red);
    border: 2px solid var(--shell-bg-elev);
    border-radius: 50%;
}

.ashico-topbar__user {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--shell-radius-pill);
    cursor: pointer;
    transition: background .15s var(--shell-ease), border-color .15s var(--shell-ease);
}
.ashico-topbar__user:hover { background: var(--shell-bg-soft); border-color: var(--shell-border); }
.ashico-topbar__user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shell-blue), var(--shell-blue-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.ashico-topbar__user-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--shell-text);
    line-height: 1.2;
}
.ashico-topbar__user-role {
    font-size: 0.74rem;
    color: var(--shell-muted);
    line-height: 1.2;
}
@media (max-width: 767.98px) {
    .ashico-topbar__user-meta { display: none; }
    .ashico-topbar__search { display: none; }
}

/* ==========================================================================
   3) Sidebar v2 — refined animations, scrollable, tooltips when collapsed
   ========================================================================== */
.ashico-sidebar {
    grid-area: sidebar;
    background: var(--shell-bg-sidebar);
    border-right: 1px solid var(--shell-border);
    height: 100vh;
    position: sticky; top: 0;
    z-index: var(--shell-z-sidebar);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s var(--shell-ease);
}

.ashico-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--shell-border-soft);
    height: var(--shell-topbar-h);
    flex: 0 0 auto;
}
.ashico-sidebar__brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--shell-blue), var(--shell-blue-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
    box-shadow: var(--shell-shadow-md);
    flex: 0 0 auto;
}
.ashico-sidebar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.ashico-sidebar__brand-title {
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--shell-text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ashico-sidebar__brand-sub {
    font-size: 0.72rem;
    color: var(--shell-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ashico-sidebar__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 12px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--shell-border) transparent;
}
.ashico-sidebar__scroll::-webkit-scrollbar { width: 6px; }
.ashico-sidebar__scroll::-webkit-scrollbar-thumb { background: var(--shell-border); border-radius: 4px; }
.ashico-sidebar__scroll::-webkit-scrollbar-thumb:hover { background: var(--shell-blue-light); }

.ashico-sidebar__section { margin-top: 14px; }
.ashico-sidebar__section:first-child { margin-top: 4px; }

.ashico-sidebar__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: var(--shell-radius-sm);
    cursor: pointer;
    color: var(--shell-text-2);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    user-select: none;
    transition: background .15s var(--shell-ease), color .15s var(--shell-ease);
}
.ashico-sidebar__section-header:hover { background: var(--shell-bg-soft); color: var(--shell-blue); }
.ashico-sidebar__section-header i:first-child { margin-right: 8px; font-size: 14px; }
.ashico-sidebar__section-header .toggle-chev { font-size: 12px; transition: transform .2s var(--shell-ease); }
.ashico-sidebar__section--collapsed .toggle-chev { transform: rotate(-90deg); }
.ashico-sidebar__section--collapsed .ashico-sidebar__items { max-height: 0; opacity: 0; pointer-events: none; }

.ashico-sidebar__items {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0 6px;
    max-height: 1200px;
    overflow: hidden;
    transition: max-height .3s var(--shell-ease), opacity .2s var(--shell-ease);
}

.ashico-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: var(--shell-radius-sm);
    color: var(--shell-text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background .15s var(--shell-ease), color .15s var(--shell-ease);
    position: relative;
}
.ashico-sidebar__item:hover {
    background: var(--shell-bg-soft);
    color: var(--shell-blue);
}
.ashico-sidebar__item.active {
    background: var(--shell-blue-50);
    color: var(--shell-blue);
    font-weight: 700;
}
.ashico-sidebar__item.active::before {
    content: "";
    position: absolute;
    left: -12px; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--shell-blue) 0%, var(--shell-blue-light) 100%);
}
.ashico-sidebar__item-icon {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}
.ashico-sidebar__item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ashico-sidebar__item-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: var(--shell-radius-pill);
    background: var(--shell-blue-50);
    color: var(--shell-blue);
    font-weight: 700;
}

/* AS_9 12/05/2026 — L3 nested submenu (Footer Certs under Footer, About items under About Page) */
.ashico-sidebar__item.has-children {
    font-weight: 700;
}
.ashico-sidebar__subitems {
    margin: 0 0 4px 22px;
    padding: 2px 0 6px 10px;
    border-left: 2px solid var(--shell-border-soft);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ashico-sidebar__subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    border-radius: var(--shell-radius-sm);
    color: var(--shell-text-2);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all .12s var(--shell-ease);
    position: relative;
}
.ashico-sidebar__subitem:hover {
    background: var(--shell-blue-50);
    color: var(--shell-blue);
}
.ashico-sidebar__subitem.active {
    background: var(--shell-blue-50);
    color: var(--shell-blue);
    font-weight: 700;
}
.ashico-sidebar__subitem-icon {
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 0.78rem;
    opacity: 0.85;
}
.ashico-sidebar__subitem-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Collapsed sidebar: hide subitem text too */
.shell--sidebar-collapsed .ashico-sidebar__subitems { display: none; }

/* Sidebar divider gradient (existing AdminMenu DividerColor compat) */
.ashico-sidebar__divider {
    margin: 8px 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--shell-border) 50%, transparent 100%);
}

/* Footer area in sidebar (collapse toggle + version) */
.ashico-sidebar__footer {
    flex: 0 0 auto;
    padding: 12px 14px;
    border-top: 1px solid var(--shell-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--shell-muted);
    font-size: 0.74rem;
}
.ashico-sidebar__collapse-btn {
    width: 28px; height: 28px;
    border-radius: var(--shell-radius-sm);
    border: 1px solid var(--shell-border);
    background: var(--shell-bg-soft);
    color: var(--shell-text-2);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s var(--shell-ease);
}
.ashico-sidebar__collapse-btn:hover { background: var(--shell-blue-50); color: var(--shell-blue); border-color: var(--shell-blue-100); }

/* Collapsed state: hide text, show icons centered + tooltip on hover */
.shell--sidebar-collapsed .ashico-sidebar__brand-text,
.shell--sidebar-collapsed .ashico-sidebar__item-text,
.shell--sidebar-collapsed .ashico-sidebar__item-badge,
.shell--sidebar-collapsed .ashico-sidebar__section-header span,
.shell--sidebar-collapsed .ashico-sidebar__section-header .toggle-chev,
.shell--sidebar-collapsed .ashico-sidebar__footer span { display: none !important; }

.shell--sidebar-collapsed .ashico-sidebar__brand { justify-content: center; padding: 16px 8px; }
.shell--sidebar-collapsed .ashico-sidebar__item { justify-content: center; padding: 10px; }
.shell--sidebar-collapsed .ashico-sidebar__section-header { justify-content: center; padding: 8px; }
.shell--sidebar-collapsed .ashico-sidebar__footer { justify-content: center; }

/* Tooltip on collapsed item hover */
.shell--sidebar-collapsed .ashico-sidebar__item { position: relative; }
.shell--sidebar-collapsed .ashico-sidebar__item[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--shell-text);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--shell-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shell-shadow-md);
    z-index: 200;
}

/* ==========================================================================
   4) Content area + Breadcrumb + Page header
   ========================================================================== */
.ashico-content {
    grid-area: content;
    padding: 24px 32px 64px;
    overflow-x: hidden;
}
.ashico-content__inner {
    max-width: var(--shell-content-max);
    margin: 0 auto;
}
@media (max-width: 767.98px) {
    .ashico-content { padding: 16px; }
}

.ashico-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--shell-muted);
    margin-bottom: 14px;
    padding: 4px 0;
}
.ashico-breadcrumb a {
    color: var(--shell-text-2);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ashico-breadcrumb a:hover { background: var(--shell-bg-soft); color: var(--shell-blue); }
.ashico-breadcrumb__sep { color: var(--shell-muted); font-size: 12px; }
.ashico-breadcrumb__current { color: var(--shell-text); font-weight: 600; padding: 4px 8px; }

.ashico-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--shell-border-soft);
}
.ashico-page-header__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--shell-text);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.ashico-page-header__subtitle {
    color: var(--shell-text-2);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}
.ashico-page-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   5) Toolbar — filter row above tables
   ========================================================================== */
.ashico-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--shell-bg-elev);
    border: 1px solid var(--shell-border-soft);
    border-radius: var(--shell-radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shell-shadow-xs);
}
.ashico-toolbar__group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ashico-toolbar__search {
    position: relative;
    min-width: 240px;
}
.ashico-toolbar__search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border-radius: var(--shell-radius-sm);
    border: 1px solid var(--shell-border);
    background: var(--shell-bg-soft);
    font-size: 0.88rem;
    transition: border-color .15s, box-shadow .15s;
}
.ashico-toolbar__search input:focus { outline: none; border-color: var(--shell-blue); box-shadow: var(--shell-shadow-glow); background: #fff; }
.ashico-toolbar__search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--shell-muted); font-size: 14px; pointer-events: none;
}

/* ==========================================================================
   6) Empty state
   ========================================================================== */
.ashico-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--shell-muted);
    background: var(--shell-bg-soft);
    border: 1px dashed var(--shell-border);
    border-radius: var(--shell-radius-md);
}
.ashico-empty__icon {
    font-size: 56px;
    color: var(--shell-blue-100);
    margin-bottom: 12px;
}
.ashico-empty__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shell-text);
    margin: 0 0 6px;
}
.ashico-empty__desc {
    font-size: 0.88rem;
    margin: 0 0 18px;
    color: var(--shell-text-2);
}

/* ==========================================================================
   7) Skeleton loader
   ========================================================================== */
.ashico-skeleton {
    background: linear-gradient(90deg, var(--shell-bg-soft) 0%, var(--shell-border-soft) 50%, var(--shell-bg-soft) 100%);
    background-size: 200% 100%;
    animation: ashico-skeleton 1.6s ease-in-out infinite;
    border-radius: var(--shell-radius-sm);
}
.ashico-skeleton--text { height: 14px; }
.ashico-skeleton--title { height: 24px; }
.ashico-skeleton--avatar { width: 40px; height: 40px; border-radius: 50%; }
.ashico-skeleton--card { height: 120px; }

@keyframes ashico-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* HTMX loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }

.ashico-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--shell-blue-100);
    border-top-color: var(--shell-blue);
    border-radius: 50%;
    animation: ashico-spin .8s linear infinite;
}
@keyframes ashico-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   8) Toast container (Alpine-driven)
   ========================================================================== */
.ashico-toast-host {
    position: fixed;
    top: 16px; right: 16px;
    z-index: var(--shell-z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    pointer-events: none;
}
.ashico-toast {
    pointer-events: auto;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--shell-bg-elev);
    border: 1px solid var(--shell-border);
    border-left: 4px solid var(--shell-blue);
    border-radius: var(--shell-radius-md);
    padding: 12px 14px;
    box-shadow: var(--shell-shadow-md);
    animation: ashico-toast-in .25s var(--shell-ease);
}
.ashico-toast--success { border-left-color: var(--shell-green); }
.ashico-toast--danger  { border-left-color: var(--shell-red); }
.ashico-toast--warning { border-left-color: var(--shell-amber); }

.ashico-toast__icon {
    font-size: 20px;
    flex: 0 0 auto;
    color: var(--shell-blue);
}
.ashico-toast--success .ashico-toast__icon { color: var(--shell-green); }
.ashico-toast--danger .ashico-toast__icon  { color: var(--shell-red); }
.ashico-toast--warning .ashico-toast__icon { color: var(--shell-amber); }

.ashico-toast__title { font-weight: 700; font-size: 0.9rem; color: var(--shell-text); margin: 0 0 2px; }
.ashico-toast__msg   { font-size: 0.85rem; color: var(--shell-text-2); margin: 0; line-height: 1.45; }
.ashico-toast__close {
    border: none; background: transparent;
    color: var(--shell-muted); cursor: pointer;
    padding: 0 4px;
    font-size: 16px;
}
.ashico-toast__close:hover { color: var(--shell-text); }

@keyframes ashico-toast-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ==========================================================================
   9) Modal sheet (Alpine-driven slide-over panel)
   ========================================================================== */
.ashico-sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    z-index: var(--shell-z-modal);
    backdrop-filter: blur(4px);
    animation: ashico-fade-in .2s var(--shell-ease);
}
.ashico-sheet {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(560px, 94vw);
    background: var(--shell-bg-elev);
    z-index: calc(var(--shell-z-modal) + 1);
    box-shadow: var(--shell-shadow-lg);
    display: flex;
    flex-direction: column;
    animation: ashico-sheet-in .3s var(--shell-ease);
    overflow: hidden;
}
.ashico-sheet__header {
    flex: 0 0 auto;
    padding: 18px 22px;
    border-bottom: 1px solid var(--shell-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ashico-sheet__title { font-weight: 700; font-size: 1.05rem; margin: 0; color: var(--shell-text); }
.ashico-sheet__body { flex: 1 1 auto; overflow-y: auto; padding: 22px; }
.ashico-sheet__footer {
    flex: 0 0 auto;
    padding: 14px 22px;
    border-top: 1px solid var(--shell-border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--shell-bg-soft);
}

@keyframes ashico-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ashico-sheet-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==========================================================================
   10) Audit footer (last-edited-by-X-at-Y)
   ========================================================================== */
.ashico-audit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--shell-bg-soft);
    border: 1px dashed var(--shell-border);
    border-radius: var(--shell-radius-sm);
    color: var(--shell-text-2);
    font-size: 0.8rem;
}
.ashico-audit i { color: var(--shell-muted); font-size: 14px; }
.ashico-audit strong { color: var(--shell-text); font-weight: 600; }

/* ==========================================================================
   11) Bilingual editor (tab + side-by-side toggle)
   ========================================================================== */
.ashico-bilingual {
    border: 1px solid var(--shell-border-soft);
    border-radius: var(--shell-radius-md);
    background: var(--shell-bg-elev);
    overflow: hidden;
}
.ashico-bilingual__tabs {
    display: flex;
    align-items: center;
    background: var(--shell-bg-soft);
    border-bottom: 1px solid var(--shell-border-soft);
    padding: 6px 6px 0;
    gap: 2px;
}
.ashico-bilingual__tab {
    padding: 9px 18px;
    border: none;
    background: transparent;
    color: var(--shell-text-2);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: var(--shell-radius-sm) var(--shell-radius-sm) 0 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.ashico-bilingual__tab:hover { color: var(--shell-blue); background: var(--shell-blue-50); }
.ashico-bilingual__tab.active {
    color: var(--shell-blue);
    background: var(--shell-bg-elev);
    border-bottom-color: var(--shell-blue);
}
.ashico-bilingual__flag {
    width: 18px; height: 12px; border-radius: 2px;
    display: inline-block;
    background: linear-gradient(180deg, #da251d 50%, #ffcd00 50%);
}
.ashico-bilingual__flag--en { background: #1e3a8a; }
.ashico-bilingual__spacer { flex: 1; }
.ashico-bilingual__split-toggle {
    margin-right: 12px;
    margin-bottom: 6px;
    border: 1px solid var(--shell-border);
    background: var(--shell-bg-elev);
    color: var(--shell-text-2);
    padding: 5px 10px;
    border-radius: var(--shell-radius-sm);
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    transition: all .15s;
}
.ashico-bilingual__split-toggle:hover { color: var(--shell-blue); border-color: var(--shell-blue-100); background: var(--shell-blue-50); }

.ashico-bilingual__panes { padding: 22px; }
.ashico-bilingual__pane[hidden] { display: none !important; }

.ashico-bilingual--split .ashico-bilingual__panes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ashico-bilingual--split .ashico-bilingual__pane { display: block !important; }
.ashico-bilingual--split .ashico-bilingual__pane[hidden] { display: block !important; }
.ashico-bilingual--split .ashico-bilingual__pane::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--shell-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--shell-blue-100);
}
@media (max-width: 991.98px) {
    .ashico-bilingual--split .ashico-bilingual__panes { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12) Status pills + dots
   ========================================================================== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--shell-radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-pill--success { background: #d1fae5; color: #065f46; }
.status-pill--draft   { background: #fef3c7; color: #92400e; }
.status-pill--archive { background: #f1f5f9; color: #475569; }
.status-pill--danger  { background: #fee2e2; color: #991b1b; }
.status-pill__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

/* Clickable status pill button — same look as .status-pill but interactive */
.status-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--shell-radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.status-pill-btn:hover { filter: brightness(0.95); transform: translateY(-1px); }
.status-pill-btn:active { transform: translateY(0); }
.status-pill-btn--success { background: #d1fae5; color: #065f46; }
.status-pill-btn--archive { background: #f1f5f9; color: #475569; }

/* ==========================================================================
   13) Command palette (Cmd+K) — Alpine-driven
   ========================================================================== */
.ashico-cmdk-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55);
    z-index: var(--shell-z-palette);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
    backdrop-filter: blur(6px);
    animation: ashico-fade-in .15s var(--shell-ease);
}
.ashico-cmdk {
    width: min(640px, 92vw);
    background: var(--shell-bg-elev);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius-lg);
    box-shadow: var(--shell-shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}
.ashico-cmdk__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--shell-border-soft);
}
.ashico-cmdk__input-wrap i { color: var(--shell-muted); font-size: 20px; }
.ashico-cmdk__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.98rem;
    color: var(--shell-text);
    font-family: inherit;
}
.ashico-cmdk__input::placeholder { color: var(--shell-muted); }

.ashico-cmdk__results {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
}
.ashico-cmdk__group-label {
    padding: 10px 12px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--shell-muted);
    letter-spacing: 0.05em;
}
.ashico-cmdk__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--shell-radius-sm);
    color: var(--shell-text);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .12s;
}
.ashico-cmdk__item:hover,
.ashico-cmdk__item.is-active {
    background: var(--shell-blue-50);
    color: var(--shell-blue);
}
.ashico-cmdk__item-icon {
    width: 28px; height: 28px;
    border-radius: var(--shell-radius-sm);
    background: var(--shell-bg-soft);
    color: var(--shell-text-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex: 0 0 auto;
}
.ashico-cmdk__item:hover .ashico-cmdk__item-icon,
.ashico-cmdk__item.is-active .ashico-cmdk__item-icon {
    background: var(--shell-blue-100);
    color: var(--shell-blue);
}
.ashico-cmdk__item-text { flex: 1; }
.ashico-cmdk__item-shortcut {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--shell-muted);
}
.ashico-cmdk__footer {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-top: 1px solid var(--shell-border-soft);
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.74rem;
    color: var(--shell-muted);
    background: var(--shell-bg-soft);
}
.ashico-cmdk__hint {
    display: inline-flex; align-items: center; gap: 4px;
}
.ashico-cmdk__kbd {
    border: 1px solid var(--shell-border);
    background: var(--shell-bg-elev);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--shell-text-2);
}

/* ==========================================================================
   14) Mobile sidebar drawer
   ========================================================================== */
@media (max-width: 991.98px) {
    .ashico-sidebar {
        position: fixed;
        top: 0; left: 0;
        width: var(--shell-sidebar-w);
        z-index: 1000;
        box-shadow: var(--shell-shadow-lg);
    }
    .ashico-sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(15,23,42,.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    .shell--sidebar-mobile-open .ashico-sidebar-backdrop { display: block; animation: ashico-fade-in .2s; }
}

/* ==========================================================================
   15) Misc helpers
   ========================================================================== */
.text-shell-muted { color: var(--shell-muted) !important; }
.bg-shell-soft   { background: var(--shell-bg-soft) !important; }
.border-shell    { border-color: var(--shell-border) !important; }

.ashico-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--shell-border), transparent);
    margin: 18px 0;
}

.ashico-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--shell-radius-sm);
    border: 1px solid var(--shell-border);
    background: var(--shell-bg-elev);
    color: var(--shell-text-2);
    cursor: pointer;
    transition: all .15s var(--shell-ease);
}
.ashico-icon-btn:hover {
    background: var(--shell-blue-50);
    color: var(--shell-blue);
    border-color: var(--shell-blue-100);
}
.ashico-icon-btn--danger:hover {
    background: #fef2f2;
    color: var(--shell-red);
    border-color: #fecaca;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--shell-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   16) COMPACT MODE v1.1 — 26/04/2026 (user feedback: nhỏ gọn lại, fit content)
   Override các shell + stat-card defaults để tăng mật độ thông tin, giảm
   chiều cao topbar/sidebar items, bỏ max-width content (full layout).
   ========================================================================== */

:root {
    --shell-topbar-h:    52px;
    --shell-sidebar-w:   220px;
    --shell-content-max: none;
}

/* --- Topbar compact --- */
.ashico-topbar {
    padding: 0 16px;
    gap: 10px;
}
.ashico-topbar__toggle,
.ashico-topbar__icon-btn { width: 34px; height: 34px; }
.ashico-topbar__toggle i,
.ashico-topbar__icon-btn i { font-size: 16px; }
.ashico-topbar__brand { font-size: 0.92rem; gap: 8px; margin-right: 4px; }
.ashico-topbar__brand-mark { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
.ashico-topbar__search { max-width: 380px; }
.ashico-topbar__search-input { height: 34px; padding: 0 12px 0 34px; font-size: 0.85rem; }
.ashico-topbar__search-icon { left: 12px; font-size: 14px; }
.ashico-topbar__search-kbd { right: 8px; padding: 1px 5px; font-size: 10px; }
.ashico-topbar__user { padding: 2px 8px 2px 2px; gap: 6px; }
.ashico-topbar__user-avatar { width: 28px; height: 28px; font-size: 11px; }
.ashico-topbar__user-name { font-size: 0.82rem; }
.ashico-topbar__user-role { font-size: 0.68rem; }

/* --- Sidebar compact --- */
.ashico-sidebar__brand { padding: 10px 14px; height: var(--shell-topbar-h); gap: 9px; }
.ashico-sidebar__brand-mark { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
.ashico-sidebar__brand-title { font-size: 0.88rem; }
.ashico-sidebar__brand-sub { font-size: 0.66rem; }
.ashico-sidebar__scroll { padding: 6px 8px 16px; }
.ashico-sidebar__section { margin-top: 8px; }
.ashico-sidebar__section:first-child { margin-top: 2px; }
.ashico-sidebar__section-header { padding: 5px 11px; font-size: 0.7rem; letter-spacing: 0.03em; }
.ashico-sidebar__section-header i:first-child { margin-right: 6px; font-size: 12px; }
.ashico-sidebar__section-header .toggle-chev { font-size: 10px; }
.ashico-sidebar__items { padding: 2px 0 4px; }
.ashico-sidebar__item { padding: 6px 11px; font-size: 0.82rem; gap: 9px; }
.ashico-sidebar__item-icon { width: 18px; height: 18px; font-size: 13px; }
.ashico-sidebar__item-badge { font-size: 0.62rem; padding: 1px 6px; }
.ashico-sidebar__item.active::before { left: -8px; top: 4px; bottom: 4px; width: 3px; }
.ashico-sidebar__divider { margin: 6px 11px; }
.ashico-sidebar__footer { padding: 8px 11px; font-size: 0.66rem; }
.ashico-sidebar__collapse-btn { width: 24px; height: 24px; }
.ashico-sidebar__collapse-btn i { font-size: 11px; }

/* --- Content area: bỏ max-width để table fit full --- */
.ashico-content { padding: 14px 18px 32px; }
.ashico-content__inner { max-width: none; }
@media (max-width: 767.98px) { .ashico-content { padding: 10px 12px 24px; } }

/* --- Breadcrumb compact --- */
.ashico-breadcrumb { font-size: 0.74rem; margin-bottom: 8px; padding: 2px 0; gap: 4px; }
.ashico-breadcrumb a { padding: 2px 6px; }
.ashico-breadcrumb__sep { font-size: 10px; }
.ashico-breadcrumb__current { padding: 2px 6px; }

/* --- Page header compact --- */
.ashico-page-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    gap: 10px;
}
.ashico-page-header__title {
    font-size: 1.18rem;
    margin: 0 0 2px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.ashico-page-header__subtitle {
    font-size: 0.78rem;
    line-height: 1.4;
}
.ashico-page-header__actions { gap: 6px; }

/* --- Toolbar compact --- */
.ashico-toolbar { padding: 8px 12px; margin-bottom: 10px; gap: 8px; }
.ashico-toolbar__search { min-width: 200px; }
.ashico-toolbar__search input { height: 30px; padding: 0 10px 0 30px; font-size: 0.82rem; }
.ashico-toolbar__search i { left: 10px; font-size: 12px; }

/* --- Empty state compact --- */
.ashico-empty { padding: 28px 18px; }
.ashico-empty__icon { font-size: 38px; margin-bottom: 8px; }
.ashico-empty__title { font-size: 0.95rem; margin: 0 0 4px; }
.ashico-empty__desc { font-size: 0.8rem; margin: 0 0 12px; }

/* --- Status pill compact --- */
.status-pill { padding: 2px 8px; font-size: 0.68rem; letter-spacing: 0.03em; gap: 4px; }
.status-pill__dot { width: 5px; height: 5px; }

/* --- Audit footer compact --- */
.ashico-audit { padding: 7px 11px; margin-top: 10px; font-size: 0.74rem; gap: 6px; }
.ashico-audit i { font-size: 12px; }

/* --- Bilingual editor compact --- */
.ashico-bilingual__tabs { padding: 4px 4px 0; }
.ashico-bilingual__tab { padding: 6px 13px; font-size: 0.8rem; }
.ashico-bilingual__split-toggle { padding: 4px 8px; font-size: 0.72rem; margin-right: 8px; margin-bottom: 4px; }
.ashico-bilingual__panes { padding: 14px; }
.ashico-bilingual--split .ashico-bilingual__panes { gap: 12px; }

/* --- Icon button compact --- */
.ashico-icon-btn { width: 28px; height: 28px; }
.ashico-icon-btn i { font-size: 13px; }

/* --- Toast compact --- */
.ashico-toast { padding: 9px 12px; gap: 9px; }
.ashico-toast__icon { font-size: 17px; }
.ashico-toast__title { font-size: 0.82rem; margin: 0 0 1px; }
.ashico-toast__msg { font-size: 0.78rem; }

/* --- CmdK compact --- */
.ashico-cmdk__input-wrap { padding: 11px 14px; gap: 8px; }
.ashico-cmdk__input-wrap i { font-size: 17px; }
.ashico-cmdk__input { font-size: 0.92rem; }
.ashico-cmdk__group-label { padding: 8px 10px 3px; font-size: 0.68rem; }
.ashico-cmdk__item { padding: 7px 10px; font-size: 0.84rem; gap: 10px; }
.ashico-cmdk__item-icon { width: 24px; height: 24px; font-size: 12px; }
.ashico-cmdk__footer { padding: 6px 12px; font-size: 0.7rem; gap: 14px; }

/* --- Sheet compact --- */
.ashico-sheet__header { padding: 13px 18px; }
.ashico-sheet__title { font-size: 0.95rem; }
.ashico-sheet__body { padding: 16px 18px; }
.ashico-sheet__footer { padding: 10px 18px; }

/* --- Stat card (Dashboard KPI) compact override site.css defaults --- */
.stat-card {
    padding: 13px 16px !important;
    border-radius: 12px !important;
}
.stat-card-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
}
.stat-card-value {
    font-size: 1.5rem !important;
    margin: 2px 0 1px !important;
    letter-spacing: -0.3px !important;
}
.stat-card-label {
    font-size: 0.76rem !important;
}
.stat-card-trend {
    margin-top: 5px !important;
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
}

/* --- Quick action card compact (Dashboard) --- */
.quick-action {
    padding: 9px 12px !important;
    gap: 10px !important;
    border-radius: 10px !important;
}
.quick-action-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
    border-radius: 9px !important;
}
.quick-action-title {
    font-size: 0.85rem !important;
    line-height: 1.2;
}
.quick-action-desc {
    font-size: 0.72rem !important;
    line-height: 1.3;
}

/* --- Admin card compact override site.css defaults --- */
.admin-card,
.ashico-content .card {
    padding: 14px 18px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
}
.admin-card .admin-title { font-size: 1.08rem; }

/* --- h1-h6 inside content compact --- */
.ashico-content h1, .ashico-content .h1 { font-size: 1.32rem; }
.ashico-content h2, .ashico-content .h2 { font-size: 1.18rem; }
.ashico-content h3, .ashico-content .h3 { font-size: 1.05rem; }
.ashico-content h4, .ashico-content .h4 { font-size: 0.96rem; }
.ashico-content h5, .ashico-content .h5 { font-size: 0.88rem; }
.ashico-content h6, .ashico-content .h6 { font-size: 0.8rem; }
.ashico-content .display-6 { font-size: 1.32rem; }

/* --- Bootstrap row gap (g-3) cho dày hơn --- */
.ashico-content .row.g-3 { --bs-gutter-y: 0.7rem; --bs-gutter-x: 0.7rem; }
.ashico-content .row.mb-3, .ashico-content .row.mb-4 { margin-bottom: 0.7rem !important; }

/* ==========================================================================
   END Ashico Admin Shell v1.1 (compact)
   ========================================================================== */

/* ==========================================================================
   17) COMPACT MODE v1.2 — 26/04/2026 (user feedback round 2: nhỏ thêm nữa)
   Override v1.1 với mật độ cao hơn nữa. Min tap target giữ 28px cho clickable.
   ========================================================================== */

:root {
    --shell-topbar-h:    46px;
    --shell-sidebar-w:   202px;
}

/* --- Body base font giảm thêm --- */
body { font-size: 13px; line-height: 1.45; }

/* --- Topbar v1.2 --- */
.ashico-topbar { padding: 0 12px; gap: 8px; }
.ashico-topbar__toggle,
.ashico-topbar__icon-btn { width: 30px; height: 30px; border-radius: 6px; }
.ashico-topbar__toggle i,
.ashico-topbar__icon-btn i { font-size: 14px; }
.ashico-topbar__brand { font-size: 0.84rem; gap: 6px; margin-right: 2px; }
.ashico-topbar__brand-mark { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }
.ashico-topbar__search { max-width: 320px; }
.ashico-topbar__search-input { height: 30px; padding: 0 10px 0 30px; font-size: 0.78rem; }
.ashico-topbar__search-icon { left: 10px; font-size: 12px; }
.ashico-topbar__search-kbd { right: 6px; padding: 0px 4px; font-size: 9px; }
.ashico-topbar__user { padding: 1px 6px 1px 1px; gap: 5px; }
.ashico-topbar__user-avatar { width: 24px; height: 24px; font-size: 10px; }
.ashico-topbar__user-name { font-size: 0.74rem; line-height: 1.15; }
.ashico-topbar__user-role { font-size: 0.62rem; line-height: 1.15; }

/* --- Sidebar v1.2 --- */
.ashico-sidebar__brand { padding: 7px 11px; gap: 7px; }
.ashico-sidebar__brand-mark { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.ashico-sidebar__brand-title { font-size: 0.8rem; }
.ashico-sidebar__brand-sub { font-size: 0.6rem; }
.ashico-sidebar__scroll { padding: 4px 6px 12px; }
.ashico-sidebar__section { margin-top: 6px; }
.ashico-sidebar__section:first-child { margin-top: 1px; }
.ashico-sidebar__section-header { padding: 4px 9px; font-size: 0.64rem; letter-spacing: 0.025em; }
.ashico-sidebar__section-header i:first-child { margin-right: 5px; font-size: 11px; }
.ashico-sidebar__section-header .toggle-chev { font-size: 9px; }
.ashico-sidebar__items { padding: 1px 0 3px; }
.ashico-sidebar__item { padding: 4px 9px; font-size: 0.76rem; gap: 7px; border-radius: 6px; }
.ashico-sidebar__item-icon { width: 16px; height: 16px; font-size: 12px; }
.ashico-sidebar__item-badge { font-size: 0.58rem; padding: 0px 5px; }
.ashico-sidebar__item.active::before { left: -6px; top: 3px; bottom: 3px; width: 2px; }
.ashico-sidebar__divider { margin: 4px 9px; }
.ashico-sidebar__footer { padding: 6px 9px; font-size: 0.6rem; }
.ashico-sidebar__collapse-btn { width: 22px; height: 22px; }
.ashico-sidebar__collapse-btn i { font-size: 10px; }

/* --- Content area v1.2 --- */
.ashico-content { padding: 10px 14px 24px; }
@media (max-width: 767.98px) { .ashico-content { padding: 8px 10px 20px; } }

/* --- Breadcrumb v1.2 --- */
.ashico-breadcrumb { font-size: 0.68rem; margin-bottom: 5px; padding: 1px 0; gap: 3px; }
.ashico-breadcrumb a { padding: 1px 5px; }
.ashico-breadcrumb__sep { font-size: 9px; }
.ashico-breadcrumb__current { padding: 1px 5px; }

/* --- Page header v1.2 --- */
.ashico-page-header {
    margin-bottom: 8px;
    padding-bottom: 7px;
    gap: 7px;
}
.ashico-page-header__title {
    font-size: 1.02rem;
    margin: 0 0 1px;
    letter-spacing: -0.01em;
    line-height: 1.18;
}
.ashico-page-header__subtitle {
    font-size: 0.7rem;
    line-height: 1.35;
}
.ashico-page-header__actions { gap: 5px; }

/* --- Toolbar v1.2 --- */
.ashico-toolbar { padding: 6px 9px; margin-bottom: 7px; gap: 6px; }
.ashico-toolbar__search { min-width: 170px; }
.ashico-toolbar__search input { height: 26px; padding: 0 9px 0 26px; font-size: 0.74rem; }
.ashico-toolbar__search i { left: 8px; font-size: 11px; }

/* --- Empty state v1.2 --- */
.ashico-empty { padding: 18px 14px; }
.ashico-empty__icon { font-size: 28px; margin-bottom: 5px; }
.ashico-empty__title { font-size: 0.84rem; margin: 0 0 3px; }
.ashico-empty__desc { font-size: 0.72rem; margin: 0 0 9px; }

/* --- Status pill v1.2 --- */
.status-pill { padding: 1px 6px; font-size: 0.6rem; letter-spacing: 0.02em; gap: 3px; }
.status-pill__dot { width: 4px; height: 4px; }

/* --- Audit footer v1.2 --- */
.ashico-audit { padding: 5px 9px; margin-top: 7px; font-size: 0.66rem; gap: 5px; }
.ashico-audit i { font-size: 11px; }

/* --- Bilingual editor v1.2 --- */
.ashico-bilingual__tabs { padding: 3px 3px 0; }
.ashico-bilingual__tab { padding: 4px 10px; font-size: 0.72rem; }
.ashico-bilingual__split-toggle { padding: 3px 7px; font-size: 0.66rem; margin-right: 6px; margin-bottom: 3px; }
.ashico-bilingual__panes { padding: 11px; }
.ashico-bilingual--split .ashico-bilingual__panes { gap: 9px; }

/* --- Icon button v1.2 --- */
.ashico-icon-btn { width: 26px; height: 26px; border-radius: 6px; }
.ashico-icon-btn i { font-size: 12px; }

/* --- Toast v1.2 --- */
.ashico-toast { padding: 7px 10px; gap: 7px; border-radius: 9px; }
.ashico-toast__icon { font-size: 15px; }
.ashico-toast__title { font-size: 0.74rem; margin: 0 0 1px; }
.ashico-toast__msg { font-size: 0.7rem; line-height: 1.35; }

/* --- CmdK v1.2 --- */
.ashico-cmdk__input-wrap { padding: 9px 12px; gap: 7px; }
.ashico-cmdk__input-wrap i { font-size: 15px; }
.ashico-cmdk__input { font-size: 0.84rem; }
.ashico-cmdk__group-label { padding: 6px 9px 2px; font-size: 0.62rem; }
.ashico-cmdk__item { padding: 5px 9px; font-size: 0.76rem; gap: 8px; border-radius: 6px; }
.ashico-cmdk__item-icon { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.ashico-cmdk__footer { padding: 5px 10px; font-size: 0.64rem; gap: 11px; }

/* --- Sheet v1.2 --- */
.ashico-sheet__header { padding: 10px 14px; }
.ashico-sheet__title { font-size: 0.86rem; }
.ashico-sheet__body { padding: 12px 14px; }
.ashico-sheet__footer { padding: 8px 14px; }

/* --- Stat card v1.2 --- */
.stat-card {
    padding: 9px 12px !important;
    border-radius: 10px !important;
}
.stat-card-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
}
.stat-card-value {
    font-size: 1.18rem !important;
    margin: 1px 0 0 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.05 !important;
}
.stat-card-label {
    font-size: 0.66rem !important;
}
.stat-card-trend {
    margin-top: 3px !important;
    font-size: 0.6rem !important;
    padding: 1px 6px !important;
    gap: 3px !important;
}
.stat-card-trend i { font-size: 10px; }

/* --- Quick action v1.2 --- */
.quick-action {
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 8px !important;
}
.quick-action-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    border-radius: 7px !important;
    flex-shrink: 0;
}
.quick-action-title {
    font-size: 0.76rem !important;
    line-height: 1.15;
    font-weight: 600;
}
.quick-action-desc {
    font-size: 0.64rem !important;
    line-height: 1.25;
}

/* --- Admin card v1.2 --- */
.admin-card,
.ashico-content .card {
    padding: 9px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
}
.admin-card .admin-title { font-size: 0.94rem; }

/* --- Headings v1.2 (within content) --- */
.ashico-content h1, .ashico-content .h1 { font-size: 1.14rem; }
.ashico-content h2, .ashico-content .h2 { font-size: 1.02rem; }
.ashico-content h3, .ashico-content .h3 { font-size: 0.94rem; }
.ashico-content h4, .ashico-content .h4 { font-size: 0.86rem; }
.ashico-content h5, .ashico-content .h5 { font-size: 0.78rem; }
.ashico-content h6, .ashico-content .h6 { font-size: 0.72rem; }
.ashico-content .display-6 { font-size: 1.14rem; }

/* --- Bootstrap row gap v1.2 --- */
.ashico-content .row.g-3 { --bs-gutter-y: 0.45rem; --bs-gutter-x: 0.45rem; }
.ashico-content .row.g-2 { --bs-gutter-y: 0.3rem; --bs-gutter-x: 0.3rem; }
.ashico-content .row.mb-3, .ashico-content .row.mb-4 { margin-bottom: 0.45rem !important; }
.ashico-content .mb-3 { margin-bottom: 0.45rem !important; }
.ashico-content .mb-4 { margin-bottom: 0.6rem !important; }
.ashico-content .mt-1, .ashico-content .mt-2 { margin-top: 0.3rem !important; }
.ashico-content .mt-3 { margin-top: 0.45rem !important; }
.ashico-content .py-4 { padding-top: 0.55rem !important; padding-bottom: 0.55rem !important; }
.ashico-content .py-2 { padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; }
.ashico-content .gap-2 { gap: 0.3rem !important; }
.ashico-content .gap-3 { gap: 0.45rem !important; }
.ashico-content .gap-4 { gap: 0.6rem !important; }

/* ==========================================================================
   END Ashico Admin Shell v1.2 (compact deeper)
   ========================================================================== */

/* ==========================================================================
   18) BRAND DECORATIONS v1.3 — 26/04/2026 (user: thêm tý màu Ashico nhạt)
   ASHICO blue (#034ea2) + red (#ec2028) accents subtle. Gradient strips,
   hover tints, brand dots, focus rings. KHÔNG đổi mật độ v1.2.
   ========================================================================== */

:root {
    --brand-blue-tint:   #f4f8fd;     /* very light blue */
    --brand-red-tint:    #fef5f5;     /* very light red */
    --brand-blue-soft:   #dbeafe;
    --brand-red-soft:    #fecaca;
    --brand-gradient:    linear-gradient(90deg, var(--shell-blue) 0%, var(--shell-blue-light) 50%, var(--shell-red) 100%);
    --brand-gradient-soft: linear-gradient(90deg, var(--shell-blue-100) 0%, transparent 50%, var(--brand-red-soft) 100%);
    --brand-shadow-blue: 0 4px 16px rgba(3, 78, 162, 0.10);
    --brand-shadow-red:  0 4px 16px rgba(236, 32, 40, 0.08);
}

/* --- Topbar: subtle gradient bottom border + logo red dot --- */
.ashico-topbar {
    border-bottom: 1px solid var(--shell-border);
    position: sticky;
    background: linear-gradient(180deg, #ffffff 0%, var(--brand-blue-tint) 100%);
}
.ashico-topbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--brand-gradient);
    opacity: 0.4;
}
.ashico-topbar__brand-mark {
    position: relative;
    background: linear-gradient(135deg, var(--shell-blue) 0%, var(--shell-blue-dark) 100%);
    box-shadow: 0 2px 6px rgba(3, 78, 162, 0.25);
}
.ashico-topbar__brand-mark::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--shell-red);
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(236, 32, 40, 0.3);
}
.ashico-topbar__icon-btn:hover {
    background: var(--brand-blue-tint);
    color: var(--shell-blue);
}
.ashico-topbar__user:hover {
    background: var(--brand-blue-tint);
    border-color: var(--shell-blue-100);
}
.ashico-topbar__user-avatar {
    background: linear-gradient(135deg, var(--shell-blue) 0%, var(--shell-blue-dark) 70%, var(--shell-red) 130%);
    box-shadow: 0 2px 5px rgba(3, 78, 162, 0.25);
}

/* --- Sidebar: subtle brand gradient + active state polish --- */
.ashico-sidebar {
    background:
        linear-gradient(180deg, var(--brand-blue-tint) 0%, #ffffff 60px, #ffffff 100%);
    border-right: 1px solid var(--shell-border);
}
.ashico-sidebar__brand {
    background: linear-gradient(135deg, var(--brand-blue-tint) 0%, transparent 70%);
    border-bottom: 1px solid var(--shell-blue-100);
    position: relative;
}
.ashico-sidebar__brand::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: -1px;
    height: 1px;
    background: var(--brand-gradient);
    opacity: 0.5;
}
.ashico-sidebar__brand-mark {
    background: linear-gradient(135deg, var(--shell-blue) 0%, var(--shell-blue-dark) 100%);
    box-shadow: 0 2px 8px rgba(3, 78, 162, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.5);
    position: relative;
}
.ashico-sidebar__brand-mark::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--shell-red);
    border: 1.5px solid #fff;
}
.ashico-sidebar__section-header:hover {
    background: var(--brand-blue-tint);
    color: var(--shell-blue);
}
.ashico-sidebar__item {
    position: relative;
}
.ashico-sidebar__item:hover {
    background: linear-gradient(90deg, var(--brand-blue-tint) 0%, transparent 100%);
    color: var(--shell-blue);
}
.ashico-sidebar__item.active {
    background: linear-gradient(90deg, var(--shell-blue-50) 0%, var(--brand-blue-tint) 50%, transparent 100%);
    color: var(--shell-blue);
    box-shadow: 0 1px 3px rgba(3, 78, 162, 0.06);
}
.ashico-sidebar__item.active::before {
    content: '';
    position: absolute;
    left: -6px; top: 3px; bottom: 3px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--shell-blue) 0%, var(--shell-red) 130%);
    box-shadow: 1px 0 4px rgba(3, 78, 162, 0.3);
}
.ashico-sidebar__item.active::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--shell-red);
    box-shadow: 0 0 6px rgba(236, 32, 40, 0.4);
}
.ashico-sidebar__divider {
    background: linear-gradient(90deg, transparent 0%, var(--shell-blue-100) 30%, var(--brand-red-soft) 70%, transparent 100%);
}

/* --- Breadcrumb subtle brand --- */
.ashico-breadcrumb a:hover {
    background: var(--brand-blue-tint);
    color: var(--shell-blue);
}
.ashico-breadcrumb__current {
    color: var(--shell-blue);
    background: var(--brand-blue-tint);
    border-radius: 4px;
}

/* --- Page header: gradient underline accent strip --- */
.ashico-page-header {
    border-bottom: 1px solid var(--shell-border-soft);
    position: relative;
}
.ashico-page-header::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 64px; height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(3, 78, 162, 0.15);
}
.ashico-page-header__title {
    color: var(--shell-text);
}
.ashico-page-header__title > i {
    background: linear-gradient(135deg, var(--shell-blue) 0%, var(--shell-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 6px !important;
}

/* --- Admin card: top brand accent + hover lift + brand-tinted shadow --- */
.admin-card,
.ashico-content .card {
    position: relative;
    border-top: 2px solid var(--shell-blue-100) !important;
    background: linear-gradient(180deg, var(--brand-blue-tint) 0%, #ffffff 8px, #ffffff 100%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.admin-card:hover,
.ashico-content .card:hover {
    border-top-color: var(--shell-blue) !important;
    box-shadow: var(--brand-shadow-blue);
    transform: translateY(-1px);
}

/* --- Toolbar subtle brand bg --- */
.ashico-toolbar {
    background: linear-gradient(180deg, var(--brand-blue-tint) 0%, #ffffff 100%);
    border-color: var(--shell-blue-100);
}

/* --- Empty state: subtle blue+red gradient corners --- */
.ashico-empty {
    background:
        radial-gradient(circle at 0% 0%, var(--brand-blue-tint) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, var(--brand-red-tint) 0%, transparent 35%),
        var(--shell-bg-soft);
    border-color: var(--shell-blue-100);
    border-style: dashed;
}
.ashico-empty__icon {
    color: var(--shell-blue);
    background: linear-gradient(135deg, var(--shell-blue-100) 0%, var(--shell-blue-50) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Status pills: enhance brand variants --- */
.status-pill--success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.15);
}
.status-pill--draft {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.15);
}
.status-pill--archive {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}
.status-pill--danger {
    background: linear-gradient(135deg, var(--brand-red-tint) 0%, var(--brand-red-soft) 100%);
    color: #991b1b;
    box-shadow: 0 1px 2px rgba(236, 32, 40, 0.15);
}

/* --- Stat card: subtle gradient bg + brand hover --- */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-blue-tint) 100%) !important;
    border: 1px solid var(--shell-border-soft) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow-blue) !important;
    border-color: var(--shell-blue-100) !important;
}
.stat-card.stat-red:hover    { box-shadow: var(--brand-shadow-red) !important; border-color: var(--brand-red-soft) !important; }
.stat-card.stat-gold:hover   { box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15) !important; }
.stat-card.stat-green:hover  { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12) !important; }
.stat-card.stat-purple:hover { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12) !important; }
.stat-card.stat-teal:hover   { box-shadow: 0 4px 16px rgba(20, 184, 166, 0.12) !important; }

.stat-card-icon {
    background: linear-gradient(135deg, var(--shell-blue-50) 0%, var(--brand-blue-tint) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(3, 78, 162, 0.08), 0 1px 2px rgba(3, 78, 162, 0.05);
}
.stat-card.stat-red .stat-card-icon {
    background: linear-gradient(135deg, var(--brand-red-soft) 0%, var(--brand-red-tint) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(236, 32, 40, 0.08);
}
.stat-card.stat-gold .stat-card-icon  { background: linear-gradient(135deg, #fef3c7 0%, #fefbe8 100%) !important; }
.stat-card.stat-green .stat-card-icon { background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%) !important; }
.stat-card.stat-purple .stat-card-icon { background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%) !important; }
.stat-card.stat-teal .stat-card-icon  { background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%) !important; }

.stat-card-value {
    background: linear-gradient(135deg, var(--shell-text) 0%, var(--shell-blue-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-card.stat-red .stat-card-value {
    background: linear-gradient(135deg, var(--shell-text) 0%, var(--shell-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Quick action card: brand hover tint --- */
.quick-action {
    transition: all .2s ease;
    border-color: var(--shell-border-soft) !important;
}
.quick-action:hover {
    border-color: var(--shell-blue-100) !important;
    background: linear-gradient(135deg, var(--brand-blue-tint) 0%, #ffffff 100%) !important;
    transform: translateX(2px);
    box-shadow: var(--brand-shadow-blue);
}
.quick-action-icon {
    background: linear-gradient(135deg, var(--shell-blue-50) 0%, var(--brand-blue-tint) 100%) !important;
    color: var(--shell-blue) !important;
    border: 1px solid var(--shell-blue-100);
}

/* --- Section divider brand strip --- */
.ashico-divider {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--shell-blue-100) 25%,
        var(--brand-red-soft) 50%,
        var(--shell-blue-100) 75%,
        transparent 100%);
    height: 1px;
    border: none;
}

/* --- Icon button brand hover --- */
.ashico-icon-btn:hover {
    background: linear-gradient(135deg, var(--brand-blue-tint) 0%, var(--shell-blue-50) 100%);
    color: var(--shell-blue);
    border-color: var(--shell-blue-100);
}
.ashico-icon-btn--danger:hover {
    background: linear-gradient(135deg, var(--brand-red-tint) 0%, var(--brand-red-soft) 100%);
    color: var(--shell-red);
    border-color: var(--brand-red-soft);
}

/* --- Toast brand polish --- */
.ashico-toast {
    background: linear-gradient(180deg, #ffffff 0%, var(--brand-blue-tint) 100%);
}

/* --- CmdK brand polish --- */
.ashico-cmdk {
    border: 1px solid var(--shell-blue-100);
    background: linear-gradient(180deg, #ffffff 0%, var(--brand-blue-tint) 100%);
}
.ashico-cmdk__input-wrap {
    border-bottom-color: var(--shell-blue-100);
    background: linear-gradient(180deg, transparent 0%, var(--brand-blue-tint) 100%);
}
.ashico-cmdk__item:hover,
.ashico-cmdk__item.is-active {
    background: linear-gradient(90deg, var(--brand-blue-tint) 0%, var(--shell-blue-50) 100%);
}

/* --- Sheet brand polish --- */
.ashico-sheet__header {
    background: linear-gradient(180deg, var(--brand-blue-tint) 0%, #ffffff 100%);
    border-bottom-color: var(--shell-blue-100);
}
.ashico-sheet__footer {
    background: var(--brand-blue-tint);
    border-top-color: var(--shell-blue-100);
}

/* --- Audit footer brand tint --- */
.ashico-audit {
    background: linear-gradient(135deg, var(--brand-blue-tint) 0%, #ffffff 50%, var(--brand-red-tint) 100%);
    border-color: var(--shell-blue-100);
    border-style: dashed;
}

/* --- Bilingual editor brand polish --- */
.ashico-bilingual {
    border-color: var(--shell-blue-100);
}
.ashico-bilingual__tabs {
    background: linear-gradient(180deg, var(--brand-blue-tint) 0%, #ffffff 100%);
    border-bottom-color: var(--shell-blue-100);
}
.ashico-bilingual__tab.active {
    background: #ffffff;
    border-bottom-color: var(--shell-blue);
}
.ashico-bilingual__tab.active::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--shell-blue) 0%, var(--shell-red) 100%);
    border-radius: 2px;
}

/* --- Body subtle brand bg pattern --- */
body {
    background:
        radial-gradient(circle at 0% 0%, var(--brand-blue-tint) 0%, transparent 8%),
        radial-gradient(circle at 100% 100%, var(--brand-red-tint) 0%, transparent 8%),
        var(--shell-bg);
    background-attachment: fixed;
}

/* ==========================================================================
   END Ashico Admin Shell v1.3 (brand decorations)
   ========================================================================== */

/* ==========================================================================
   19) FIX v1.4 — 26/04/2026 (user: bỏ cái vòng tròn ở section header)
   Section header dùng <button> nhưng chưa reset native browser styling
   (appearance: button + ButtonFace bg + outset border) → render thành pill
   tròn. Reset thành plain text label.
   ========================================================================== */

.ashico-sidebar__section-header {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    text-align: left;
    width: 100%;
    box-shadow: none !important;
    /* preserve padding/font/color from compact v1.2 */
}

/* Hover: chỉ đổi màu chữ + subtle text shift, KHÔNG có bg pill */
.ashico-sidebar__section-header:hover {
    background: transparent !important;
    color: var(--shell-blue) !important;
}
.ashico-sidebar__section-header:hover .toggle-chev {
    color: var(--shell-blue);
}

.ashico-sidebar__section-header:focus-visible {
    outline: 2px solid var(--shell-blue-100) !important;
    outline-offset: 2px;
}

/* ==========================================================================
   END Ashico Admin Shell v1.4 (section header reset)
   ========================================================================== */

/* ==========================================================================
   20) BRAND POLISH v1.6 — 26/04/2026 (user: trang trí màu thêm cho đẹp)
   Per-section colors trong sidebar (blue/green/orange/teal/purple từ DB
   AdminMenus.DividerColor) + topbar wave decoration + card accents +
   stat-card vivid + form/button polish.
   ========================================================================== */

/* === Per-section color tokens === */
[data-divider-color="blue"]   { --section-c: #034ea2; --section-c-light: #3b82f6; --section-c-50: #eef4fc; --section-c-100: #dbeafe; }
[data-divider-color="green"]  { --section-c: #059669; --section-c-light: #10b981; --section-c-50: #ecfdf5; --section-c-100: #d1fae5; }
[data-divider-color="orange"] { --section-c: #ea580c; --section-c-light: #f97316; --section-c-50: #fff7ed; --section-c-100: #fed7aa; }
[data-divider-color="teal"]   { --section-c: #0d9488; --section-c-light: #14b8a6; --section-c-50: #f0fdfa; --section-c-100: #ccfbf1; }
[data-divider-color="purple"] { --section-c: #7c3aed; --section-c-light: #8b5cf6; --section-c-50: #f5f3ff; --section-c-100: #ede9fe; }
[data-divider-color="yellow"] { --section-c: #ca8a04; --section-c-light: #eab308; --section-c-50: #fefce8; --section-c-100: #fef3c7; }

/* === Sidebar section header per-color === */
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__section-header {
    color: var(--section-c) !important;
    position: relative;
    padding-left: 14px !important;
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__section-header::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--section-c);
    box-shadow: 0 0 0 2px var(--section-c-50), 0 0 6px rgba(0,0,0,0.06);
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__section-header:hover {
    color: var(--section-c-light) !important;
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__section-header:hover::before {
    box-shadow: 0 0 0 2px var(--section-c-100), 0 0 8px var(--section-c);
    transform: translateY(-50%) scale(1.15);
}
.ashico-sidebar__section[data-divider-color] .toggle-chev {
    color: var(--section-c) !important;
    opacity: 0.6;
}

/* === Sidebar items per-section color (hover/active) === */
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__item:hover {
    background: linear-gradient(90deg, var(--section-c-50) 0%, transparent 100%) !important;
    color: var(--section-c) !important;
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__item:hover .ashico-sidebar__item-icon {
    color: var(--section-c);
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__item.active {
    background: linear-gradient(90deg, var(--section-c-100) 0%, var(--section-c-50) 50%, transparent 100%) !important;
    color: var(--section-c) !important;
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__item.active::before {
    background: linear-gradient(180deg, var(--section-c) 0%, var(--section-c-light) 100%) !important;
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__item.active::after {
    background: var(--section-c) !important;
    box-shadow: 0 0 6px var(--section-c);
}
.ashico-sidebar__section[data-divider-color] .ashico-sidebar__item.active .ashico-sidebar__item-icon {
    color: var(--section-c);
}

/* === Topbar: subtle wave SVG decoration === */
.ashico-topbar {
    background-image:
        linear-gradient(180deg, #ffffff 0%, var(--brand-blue-tint) 100%),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='52' viewBox='0 0 400 52' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q100,10 200,30 T400,30 L400,52 L0,52 Z' fill='%23034ea2' fill-opacity='0.025'/%3E%3Cpath d='M0,40 Q100,25 200,40 T400,40 L400,52 L0,52 Z' fill='%23ec2028' fill-opacity='0.02'/%3E%3C/svg%3E");
    background-size: 100% 100%, 400px 52px;
    background-repeat: no-repeat, repeat-x;
    background-position: center center, bottom;
}

/* === Sidebar brand: enhanced wave logo === */
.ashico-sidebar__brand {
    background:
        linear-gradient(135deg, var(--brand-blue-tint) 0%, transparent 70%),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='52' viewBox='0 0 200 52' preserveAspectRatio='none'%3E%3Cpath d='M0,35 Q50,20 100,35 T200,35 L200,52 L0,52 Z' fill='%23034ea2' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 52px;
    background-repeat: no-repeat, no-repeat;
    background-position: center, bottom;
}

/* === Page header: thicker gradient strip + side accent === */
.ashico-page-header::after {
    width: 84px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 0 3px 3px 0;
}
.ashico-page-header::before {
    content: '';
    position: absolute;
    left: -14px; top: 0; bottom: 7px;
    width: 3px;
    background: linear-gradient(180deg, var(--shell-blue) 0%, var(--shell-blue-light) 50%, var(--shell-red) 100%);
    border-radius: 0 2px 2px 0;
    opacity: 0.85;
}
.ashico-page-header { padding-left: 4px; }

/* === Admin card: thicker rainbow accent bar on top === */
.admin-card,
.ashico-content .card {
    background: linear-gradient(180deg, var(--brand-blue-tint) 0%, #ffffff 12px, #ffffff 100%) !important;
    border-top: 0 !important;
    overflow: visible !important;
}
.admin-card::before,
.ashico-content .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--shell-blue) 0%, var(--shell-blue-light) 30%, #06b6d4 60%, var(--shell-red) 100%);
    border-radius: 10px 10px 0 0;
    opacity: 0.7;
    transition: opacity .25s ease;
}
.admin-card:hover::before,
.ashico-content .card:hover::before {
    opacity: 1;
    height: 3px;
}

/* === Stat card: more vivid per-type gradients === */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-blue-tint) 100%) !important;
    border: 1px solid var(--shell-blue-100) !important;
    overflow: hidden;
    position: relative;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--shell-blue) 0%, var(--shell-blue-light) 100%);
    opacity: 0.85;
}
.stat-card.stat-red::before    { background: linear-gradient(90deg, var(--shell-red) 0%, #f87171 100%); }
.stat-card.stat-gold::before   { background: linear-gradient(90deg, #ca8a04 0%, #facc15 100%); }
.stat-card.stat-green::before  { background: linear-gradient(90deg, #059669 0%, #34d399 100%); }
.stat-card.stat-purple::before { background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%); }
.stat-card.stat-teal::before   { background: linear-gradient(90deg, #0d9488 0%, #2dd4bf 100%); }

.stat-card.stat-red    { background: linear-gradient(135deg, #ffffff 0%, #fef5f5 100%) !important; border-color: #fecaca !important; }
.stat-card.stat-gold   { background: linear-gradient(135deg, #ffffff 0%, #fefbe8 100%) !important; border-color: #fef3c7 !important; }
.stat-card.stat-green  { background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%) !important; border-color: #d1fae5 !important; }
.stat-card.stat-purple { background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%) !important; border-color: #ede9fe !important; }
.stat-card.stat-teal   { background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important; border-color: #ccfbf1 !important; }

.stat-card-icon {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(3, 78, 162, 0.10);
}

/* === Quick action: enhanced hover with section-aware accent === */
.quick-action::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(180deg, var(--shell-blue) 0%, var(--shell-red) 100%);
    transition: width .25s ease;
    border-radius: 8px 0 0 8px;
}
.quick-action {
    position: relative;
    overflow: hidden;
}
.quick-action:hover::before {
    width: 3px;
}

/* === Buttons: animated gradient shift on hover === */
.btn-primary, .ashico-content .btn-primary {
    background-size: 200% 200% !important;
    animation: brandShimmer 8s ease infinite;
}
@keyframes brandShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Status pills: brand color enhancements === */
.status-pill--success {
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.18), inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.status-pill--draft {
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.18), inset 0 0 0 1px rgba(245, 158, 11, 0.15);
}
.status-pill--archive {
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.15);
}
.status-pill--danger {
    box-shadow: 0 1px 3px rgba(236, 32, 40, 0.18), inset 0 0 0 1px rgba(236, 32, 40, 0.15);
}

/* === Toolbar: gradient strip top === */
.ashico-toolbar {
    position: relative;
    overflow: hidden;
}
.ashico-toolbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--shell-blue) 0%, transparent 60%, var(--shell-red) 100%);
    opacity: 0.5;
}

/* === Empty state: animated icon (subtle pulse) === */
.ashico-empty__icon {
    animation: emptyPulse 3s ease-in-out infinite;
}
@keyframes emptyPulse {
    0%, 100% { transform: scale(1);   opacity: 0.85; }
    50%      { transform: scale(1.06); opacity: 1; }
}

/* === Custom scrollbar with brand color === */
.ashico-content::-webkit-scrollbar,
.ashico-sidebar__scroll::-webkit-scrollbar { width: 7px; height: 7px; }
.ashico-content::-webkit-scrollbar-track { background: transparent; }
.ashico-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--shell-blue-100) 0%, var(--shell-blue-50) 100%);
    border-radius: 4px;
}
.ashico-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--shell-blue) 0%, var(--shell-blue-light) 100%);
}

/* === Breadcrumb sep: brand-tinted chevron === */
.ashico-breadcrumb__sep {
    color: var(--shell-blue) !important;
    opacity: 0.45;
}

/* === Sidebar divider: thicker brand gradient === */
.ashico-sidebar__section[data-divider-color] {
    position: relative;
}
.ashico-sidebar__section[data-divider-color]::before {
    content: '';
    position: absolute;
    left: 9px; right: 9px; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--section-c-100) 30%, var(--section-c-100) 70%, transparent 100%);
    opacity: 0.7;
}
.ashico-sidebar__section[data-divider-color]:first-of-type::before { display: none; }

/* === Topbar logo "A" mark: pulse glow === */
.ashico-topbar__brand-mark {
    animation: brandGlow 4s ease-in-out infinite;
}
@keyframes brandGlow {
    0%, 100% { box-shadow: 0 2px 6px rgba(3, 78, 162, 0.25); }
    50%      { box-shadow: 0 2px 12px rgba(3, 78, 162, 0.45), 0 0 0 4px rgba(3, 78, 162, 0.05); }
}

/* === Sidebar brand "A" mark: same pulse === */
.ashico-sidebar__brand-mark {
    animation: brandGlow 4s ease-in-out infinite;
}

/* ==========================================================================
   END Ashico Admin Shell v1.6 (brand polish per-section + decorations)
   ========================================================================== */
