/* Amaano UI Framework 2026 - Full Header / Sidebar / Footer Shell */
:root {
    --amaano-sidebar-width: 286px;
    --amaano-header-height: 72px;
    --amaano-bg: #f4f7fb;
    --amaano-surface: #ffffff;
    --amaano-sidebar-bg: #101828;
    --amaano-sidebar-bg-2: #0b1220;
    --amaano-sidebar-text: #d0d5dd;
    --amaano-sidebar-muted: #98a2b3;
    --amaano-sidebar-active: #ffffff;
    --amaano-primary: #2563eb;
    --amaano-primary-soft: rgba(37, 99, 235, .12);
    --amaano-border: #e5e7eb;
    --amaano-text: #0f172a;
    --amaano-muted: #64748b;
    --amaano-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

html,
body {
    min-height: 100%;
}

body.amaano-body {
    background: var(--amaano-bg);
    color: var(--amaano-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.amaano-app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.amaano-app-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.amaano-sidebar {
    background: linear-gradient(180deg, var(--amaano-sidebar-bg) 0%, var(--amaano-sidebar-bg-2) 100%);
    color: var(--amaano-sidebar-text);
    flex: 0 0 var(--amaano-sidebar-width);
    min-height: 100vh;
    overflow-y: auto;
    padding: 1rem .85rem;
    width: var(--amaano-sidebar-width);
}

.amaano-desktop-sidebar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1025;
}

.amaano-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    gap: .75rem;
    margin-bottom: .9rem;
    padding: .55rem .55rem 1rem;
    text-decoration: none;
}

.amaano-brand:hover {
    color: #fff;
}

.amaano-brand-logo,
.amaano-brand-fallback {
    border-radius: 1rem;
    flex: 0 0 auto;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

.amaano-brand-fallback {
    align-items: center;
    background: var(--amaano-primary);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .35);
    color: #fff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 850;
    justify-content: center;
}

.amaano-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.amaano-brand-name {
    color: #fff;
    font-size: .98rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amaano-brand-subtitle {
    color: var(--amaano-sidebar-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-top: .2rem;
    text-transform: uppercase;
}

.amaano-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .15rem;
}

.amaano-menu-link,
.amaano-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .82rem;
    color: var(--amaano-sidebar-text);
    display: flex;
    gap: .72rem;
    padding: .72rem .75rem;
    text-align: left;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    width: 100%;
}

.amaano-menu-link i,
.amaano-menu-toggle i {
    font-size: 1.05rem;
}

.amaano-menu-link:hover,
.amaano-menu-toggle:hover,
.amaano-menu-link.active,
.amaano-menu-toggle.active,
.amaano-submenu-link.active {
    background: rgba(255, 255, 255, .105);
    color: var(--amaano-sidebar-active);
}

.amaano-menu-link:hover,
.amaano-menu-toggle:hover {
    transform: translateX(2px);
}

.amaano-menu-chevron {
    font-size: .82rem !important;
    opacity: .7;
}

.amaano-submenu {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    padding: .28rem 0 .42rem 2.25rem;
}

.amaano-submenu-link {
    border-radius: .65rem;
    color: var(--amaano-sidebar-text);
    display: block;
    font-size: .9rem;
    padding: .48rem .65rem;
    text-decoration: none;
}

.amaano-submenu-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.amaano-header {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--amaano-border);
    box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
    display: flex;
    gap: 1rem;
    min-height: var(--amaano-header-height);
    padding: .75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.amaano-header-left {
    align-items: center;
    display: flex;
    gap: .75rem;
    min-width: 0;
}

.amaano-header-title-wrap {
    min-width: 0;
}

/*.amaano-header-title {
    color: var(--amaano-text);
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.15;
    margin: 0;
}*/
/*=============================*/
.amaano-header-title {
    color: var(--amaano-text);
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.15;
    margin: 0;
}

.amaano-header-school-name-img {
    display: block;
    height: 34px;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.amaano-header-academic-year {
    color: var(--amaano-muted);
    display: block;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    margin-top: .15rem;
}

/*===================*/
.amaano-header-subtitle {
    color: var(--amaano-muted);
    font-size: .79rem;
    font-weight: 600;
    margin-top: .1rem;
}

.amaano-header-center {
    flex: 1 1 auto;
    min-width: 0;
}

.amaano-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: .55rem;
    margin-left: auto;
}

.amaano-user-name {
    color: #475569;
    font-size: .88rem;
    font-weight: 700;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amaano-role-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    font-size: .73rem;
    font-weight: 800;
    padding: .25rem .6rem;
}

.amaano-icon-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    color: #0f172a;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.amaano-mobile-menu-btn {
    display: none;
}

.amaano-top-module-nav {
    align-items: center;
    gap: .25rem;
    justify-content: center;
    overflow: hidden;
}

.amaano-top-module-link {
    align-items: center;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 750;
    gap: .35rem;
    padding: .45rem .68rem;
    text-decoration: none;
    white-space: nowrap;
}

.amaano-top-module-link:hover,
.amaano-top-module-link.active {
    background: var(--amaano-primary-soft);
    color: var(--amaano-primary);
}

.amaano-content {
    flex: 1 1 auto;
    padding: 1rem;
}

.amaano-footer {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--amaano-border);
    color: #64748b;
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
    margin-top: auto;
    min-height: 54px;
    padding: .85rem 1rem;
}

.amaano-mobile-sidebar {
    background: var(--amaano-sidebar-bg);
    color: var(--amaano-sidebar-text);
}

.amaano-mobile-sidebar-header {
    background: var(--amaano-sidebar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.amaano-card {
    border-radius: 1rem;
}

.amaano-empty-state {
    background: #fff;
    border: 1px dashed var(--amaano-border);
    border-radius: 1rem;
}

.table-amaano th {
    background: #f9fafb;
    white-space: nowrap;
}

.amaano-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Login */
.amaano-login-body {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 35%), linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.amaano-login-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1.25rem;
}

.amaano-login-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 1.25rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
    max-width: 430px;
    padding: 2rem;
    width: 100%;
}

.amaano-login-logo,
.amaano-login-logo-fallback {
    border-radius: 50%;
    height: 74px;
    margin-bottom: .75rem;
    object-fit: cover;
    width: 74px;
}

.amaano-login-logo-fallback {
    align-items: center;
    background: var(--amaano-primary);
    color: #fff;
    display: inline-flex;
    font-size: 1.7rem;
    font-weight: 800;
    justify-content: center;
}

/* Dashboard */
.amaano-dashboard .amaano-page-kicker {
    color: var(--bs-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.amaano-dashboard-section {
    margin-bottom: 1.25rem;
}

.amaano-section-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: .01em;
    margin: .75rem 0 .75rem;
}

.amaano-dashboard-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.amaano-dashboard-stat {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 1.1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    height: 100%;
    padding: 1rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.amaano-dashboard-card-link:hover .amaano-dashboard-stat {
    border-color: rgba(37, 99, 235, .25);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
    transform: translateY(-2px);
}

.amaano-dashboard-stat-icon {
    align-items: center;
    border-radius: .85rem;
    display: inline-flex;
    font-size: 1.15rem;
    height: 2.35rem;
    justify-content: center;
    margin-bottom: .75rem;
    width: 2.35rem;
}

.amaano-dashboard-stat-label {
    color: #64748b;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.25;
    min-height: 2rem;
}

.amaano-dashboard-stat-value {
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.1;
    margin-top: .35rem;
    word-break: break-word;
}

.amaano-dashboard-chart-wrap {
    height: 300px;
    min-height: 300px;
}

.amaano-dashboard-chart-wrap canvas {
    display: block;
    height: 100% !important;
    max-height: 300px;
    width: 100% !important;
}

@media (max-width: 1199.98px) {
    .amaano-header-center {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .amaano-desktop-sidebar {
        display: none;
    }

    .amaano-mobile-menu-btn {
        display: inline-flex;
    }

    .amaano-content {
        padding: .75rem;
    }

    .amaano-header {
        min-height: 64px;
    }
}

@media (max-width: 575.98px) {
    .amaano-header-actions {
        gap: .35rem;
    }

    .amaano-role-badge {
        display: none;
    }

    .amaano-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .amaano-dashboard-stat {
        padding: .85rem;
    }

    .amaano-dashboard-stat-value {
        font-size: 1.25rem;
    }

    .amaano-dashboard-chart-wrap {
        height: 250px;
        min-height: 250px;
    }
}

/* =======================================================================
   Amaano 2026 Premium SaaS UI Layer - Phase 3
   Purpose: modernize cards, filters, charts and dashboard visual hierarchy.
   ======================================================================= */
:root {
    --amaano-bg: #eef3f9;
    --amaano-bg-2: #f8fafc;
    --amaano-surface: rgba(255, 255, 255, .92);
    --amaano-surface-solid: #ffffff;
    --amaano-border: rgba(148, 163, 184, .20);
    --amaano-text: #0b1220;
    --amaano-muted: #64748b;
    --amaano-primary: #2563eb;
    --amaano-primary-2: #4f46e5;
    --amaano-success: #10b981;
    --amaano-warning: #f59e0b;
    --amaano-danger: #ef4444;
    --amaano-info: #06b6d4;
    --amaano-shadow: 0 22px 60px rgba(15, 23, 42, .08);
    --amaano-soft-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

body.amaano-body {
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .12), transparent 32rem),
        radial-gradient(circle at 86% 8%, rgba(16, 185, 129, .10), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 55%, #edf2f7 100%);
    color: var(--amaano-text);
}

.amaano-sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .22), transparent 18rem),
        linear-gradient(180deg, #0b1220 0%, #111827 52%, #0f172a 100%);
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 18px 0 55px rgba(15, 23, 42, .12);
}

.amaano-brand-logo,
.amaano-brand-fallback {
    box-shadow: 0 16px 35px rgba(15, 23, 42, .24);
}

.amaano-menu-link,
.amaano-menu-toggle {
    border: 1px solid transparent;
    font-weight: 680;
}

.amaano-menu-link:hover,
.amaano-menu-toggle:hover,
.amaano-menu-link.active,
.amaano-menu-toggle.active,
.amaano-submenu-link.active {
    background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
    border-color: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.amaano-header {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, .75);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}

.amaano-header-title {
    letter-spacing: -.02em;
}

.amaano-content {
    padding: 1.25rem;
}

.amaano-content > .container-fluid > .d-flex:first-child {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,250,252,.72));
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 1.35rem;
    box-shadow: var(--amaano-soft-shadow);
    margin-bottom: 1rem !important;
    padding: 1.1rem 1.25rem;
}

.amaano-content h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 900;
    letter-spacing: -.035em;
}

.amaano-filter-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 1.35rem;
    box-shadow: var(--amaano-soft-shadow);
    overflow: hidden;
    position: relative;
}

.amaano-filter-card:before {
    background: linear-gradient(90deg, var(--amaano-primary), var(--amaano-info), var(--amaano-success));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.amaano-filter-card .card-body {
    background: transparent;
    padding: 1.1rem;
}

.amaano-filter-card .form-label {
    color: #64748b !important;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.amaano-filter-card .form-select,
.amaano-filter-card .form-control {
    background-color: rgba(248, 250, 252, .92);
    border-color: rgba(203, 213, 225, .9);
    border-radius: .9rem;
    min-height: 2.45rem;
}

.amaano-filter-card .btn {
    border-radius: .9rem;
    font-weight: 800;
    min-height: 2.45rem;
}

.amaano-dashboard-section {
    margin-bottom: 1.45rem;
}

.amaano-section-title {
    align-items: center;
    color: #0f172a;
    display: flex;
    font-size: 1.05rem;
    font-weight: 900;
    gap: .6rem;
    letter-spacing: -.015em;
    margin: .9rem 0 .9rem;
}

.amaano-section-title:before {
    background: linear-gradient(135deg, var(--amaano-primary), var(--amaano-info));
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: .75rem;
    width: .75rem;
}

.amaano-dashboard-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none !important;
}

.amaano-kpi-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
    border: 1px solid rgba(226, 232, 240, .78);
    border-radius: 1.35rem;
    box-shadow: var(--amaano-soft-shadow);
    height: 100%;
    min-height: 148px;
    overflow: hidden;
    padding: 1rem 1.05rem;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.amaano-kpi-card:after {
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
    content: "";
    height: 64px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.amaano-dashboard-card-link:hover .amaano-kpi-card,
.amaano-kpi-card:hover {
    border-color: rgba(37, 99, 235, .26);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
    transform: translateY(-4px);
}

.amaano-kpi-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 68%);
    filter: blur(2px);
    height: 92px;
    position: absolute;
    right: -24px;
    top: -28px;
    width: 92px;
}

.amaano-kpi-success .amaano-kpi-glow { background: radial-gradient(circle, rgba(16, 185, 129, .20), transparent 68%); }
.amaano-kpi-warning .amaano-kpi-glow { background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 68%); }
.amaano-kpi-danger .amaano-kpi-glow { background: radial-gradient(circle, rgba(239, 68, 68, .18), transparent 68%); }
.amaano-kpi-info .amaano-kpi-glow { background: radial-gradient(circle, rgba(6, 182, 212, .20), transparent 68%); }
.amaano-kpi-secondary .amaano-kpi-glow { background: radial-gradient(circle, rgba(100, 116, 139, .18), transparent 68%); }

.amaano-kpi-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: .85rem;
    position: relative;
    z-index: 1;
}

.amaano-kpi-icon {
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 1rem;
    box-shadow: 0 12px 25px rgba(37, 99, 235, .26);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    height: 2.65rem;
    justify-content: center;
    width: 2.65rem;
}

.amaano-kpi-success .amaano-kpi-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 12px 25px rgba(16, 185, 129, .24); }
.amaano-kpi-warning .amaano-kpi-icon { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 12px 25px rgba(245, 158, 11, .23); }
.amaano-kpi-danger .amaano-kpi-icon { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 12px 25px rgba(239, 68, 68, .22); }
.amaano-kpi-info .amaano-kpi-icon { background: linear-gradient(135deg, #06b6d4, #0284c7); box-shadow: 0 12px 25px rgba(6, 182, 212, .24); }
.amaano-kpi-secondary .amaano-kpi-icon { background: linear-gradient(135deg, #64748b, #334155); box-shadow: 0 12px 25px rgba(51, 65, 85, .20); }

.amaano-kpi-pill,
.amaano-chart-badge {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, .18);
    border-radius: 999px;
    color: #047857;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    padding: .22rem .5rem;
    text-transform: uppercase;
}

.amaano-kpi-label {
    color: #475569;
    font-size: .83rem;
    font-weight: 850;
    letter-spacing: .01em;
    line-height: 1.25;
    min-height: 2.15rem;
    position: relative;
    z-index: 1;
}

.amaano-kpi-value {
    color: #07111f;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1;
    margin-top: .35rem;
    position: relative;
    z-index: 1;
}

.amaano-kpi-foot {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 750;
    margin-top: .75rem;
    position: relative;
    z-index: 1;
}

.amaano-chart-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226, 232, 240, .82);
    border-radius: 1.45rem;
    box-shadow: var(--amaano-soft-shadow);
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.amaano-chart-card:hover {
    box-shadow: 0 24px 70px rgba(15, 23, 42, .11);
    transform: translateY(-2px);
}

.amaano-chart-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(226, 232, 240, .72);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.1rem .85rem;
}

.amaano-chart-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 0;
}

.amaano-chart-subtitle {
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 700;
    margin-top: .18rem;
}

.amaano-chart-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    padding: .9rem .9rem 1rem;
}

.amaano-chart-scrollable {
    overflow-x: auto;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.amaano-dashboard-chart-wrap {
    height: 330px;
    min-height: 330px;
    position: relative;
}

.amaano-dashboard-chart-wrap canvas {
    display: block;
    height: 100% !important;
    max-height: none !important;
    width: 100% !important;
}

@media (min-width: 1400px) {
    .amaano-dashboard-chart-wrap {
        height: 360px;
        min-height: 360px;
    }
}

@media (max-width: 991.98px) {
    .amaano-content {
        padding: .9rem;
    }

    .amaano-kpi-card {
        min-height: 132px;
    }

    .amaano-chart-scroll {
        padding: .75rem;
    }
}

@media (max-width: 575.98px) {
    .amaano-content > .container-fluid > .d-flex:first-child {
        padding: .85rem;
    }

    .amaano-kpi-value {
        font-size: 1.45rem;
    }

    .amaano-dashboard-chart-wrap {
        height: 280px;
        min-height: 280px;
    }
}

/* =======================================================================
   Amaano Dynamic Brand Layer
   Sidebar and core colors now use database-driven CSS variables.
   ======================================================================= */
body.amaano-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(var(--amaano-primary-rgb), .10), transparent 31rem),
        radial-gradient(circle at 86% 10%, rgba(var(--amaano-accent-rgb), .10), transparent 27rem),
        linear-gradient(180deg, var(--amaano-bg) 0%, #f3f7f5 56%, #edf4ef 100%);
}

.amaano-sidebar {
    background:
        radial-gradient(circle at 48% 6%, rgba(var(--amaano-accent-rgb), .14), transparent 8.5rem),
        radial-gradient(circle at 0% 30%, rgba(var(--amaano-primary-rgb), .32), transparent 12rem),
        linear-gradient(180deg, var(--amaano-sidebar-bg) 0%, var(--amaano-sidebar-bg-2) 100%);
    border-right: 1px solid rgba(255,255,255,.09);
    box-shadow: 18px 0 55px rgba(var(--amaano-primary-dark-rgb), .22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.15rem .9rem 1rem;
    position: sticky;
}

.amaano-sidebar::before,
.amaano-sidebar::after {
    content: "";
    pointer-events: none;
    position: absolute;
}

.amaano-sidebar::before {
    background: radial-gradient(ellipse at bottom left, rgba(var(--amaano-accent-rgb), .72), rgba(var(--amaano-accent-rgb), 0) 62%);
    bottom: -70px;
    height: 190px;
    left: -38px;
    opacity: .75;
    width: 310px;
}

.amaano-sidebar::after {
    background: radial-gradient(ellipse at bottom right, rgba(var(--amaano-primary-rgb), .70), rgba(var(--amaano-primary-rgb), 0) 64%);
    bottom: -86px;
    height: 205px;
    right: -80px;
    width: 330px;
}

.amaano-sidebar > * {
    position: relative;
    z-index: 1;
}

.amaano-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: .15rem;
    scrollbar-color: rgba(255,255,255,.18) transparent;
    scrollbar-width: thin;
}

.amaano-brand {
    align-items: center;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    justify-content: center;
    margin: .15rem .25rem 1.25rem;
    padding: .45rem .25rem 1.1rem;
    text-align: center;
}

.amaano-brand-logo-ring {
    align-items: center;
    background: radial-gradient(circle, #ffffff 0%, #ffffff 58%, rgba(var(--amaano-accent-rgb), .20) 59%, rgba(var(--amaano-primary-rgb), .16) 100%);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    box-shadow: 0 18px 42px rgba(0,0,0,.25), 0 0 0 5px rgba(255,255,255,.06);
    display: inline-flex;
    height: 104px;
    justify-content: center;
    padding: .18rem;
    width: 104px;
}

.amaano-brand-logo,
.amaano-brand-fallback {
    border-radius: 50%;
    box-shadow: none;
    height: 94px;
    object-fit: contain;
    width: 94px;
}

.amaano-brand-fallback {
    background: linear-gradient(135deg, var(--amaano-primary), var(--amaano-primary-dark));
    color: #fff;
    font-size: 2rem;
    font-weight: 950;
}

.amaano-brand-text {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.amaano-brand-name {
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1.1;
    max-width: 100%;
    text-transform: uppercase;
    white-space: normal;
}

.amaano-brand-subtitle {
    color: var(--amaano-accent);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .08em;
    margin-top: .3rem;
    text-transform: uppercase;
}

.amaano-sidebar-nav {
    gap: .36rem;
    padding: .05rem .05rem .75rem;
}

.amaano-menu-link,
.amaano-menu-toggle {
    border: 1px solid transparent;
    border-radius: .9rem;
    color: var(--amaano-sidebar-text);
    font-size: .94rem;
    font-weight: 760;
    gap: .78rem;
    min-height: 3rem;
    padding: .78rem .82rem;
}

.amaano-menu-link i,
.amaano-menu-toggle i {
    align-items: center;
    color: rgba(255,255,255,.92);
    display: inline-flex;
    flex: 0 0 1.4rem;
    font-size: 1.16rem;
    justify-content: center;
    width: 1.4rem;
}

.amaano-menu-link:hover,
.amaano-menu-toggle:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.08);
    color: #ffffff;
    transform: translateX(2px);
}

.amaano-menu-link.active,
.amaano-menu-toggle.active,
.amaano-submenu-link.active {
    background: linear-gradient(135deg, rgba(var(--amaano-primary-rgb), .95), rgba(var(--amaano-primary-rgb), .68));
    border-color: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 30px rgba(0,0,0,.16);
    color: #ffffff;
}

.amaano-menu-link.active i,
.amaano-menu-toggle.active i {
    color: #ffffff;
}

.amaano-submenu {
    gap: .16rem;
    padding: .35rem 0 .55rem 2.15rem;
}

.amaano-submenu-link {
    border: 1px solid transparent;
    border-radius: .72rem;
    color: var(--amaano-sidebar-muted);
    font-size: .86rem;
    font-weight: 720;
    padding: .5rem .68rem;
}

.amaano-submenu-link:hover {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.06);
    color: #ffffff;
}

.amaano-sidebar-profile-card {
    background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 36px rgba(0,0,0,.13);
    margin: .7rem .25rem 0;
    padding: 1rem .95rem;
    text-align: center;
}

.amaano-sidebar-profile-icon {
    align-items: center;
    background: radial-gradient(circle at 35% 25%, #ffe37d, var(--amaano-accent));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: var(--amaano-sidebar-bg-2);
    display: inline-flex;
    font-size: 1.45rem;
    height: 3.65rem;
    justify-content: center;
    margin-bottom: .75rem;
    width: 3.65rem;
}

.amaano-sidebar-profile-title {
    color: #ffffff;
    font-size: .94rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.amaano-sidebar-profile-text {
    color: var(--amaano-sidebar-muted);
    font-size: .78rem;
    font-weight: 620;
    line-height: 1.35;
    margin: .35rem 0 .75rem;
}

.amaano-sidebar-profile-link {
    align-items: center;
    background: rgba(var(--amaano-primary-rgb), .62);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .78rem;
    color: #ffffff;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 850;
    gap: .25rem;
    justify-content: center;
    padding: .55rem .72rem;
    text-decoration: none;
    width: 100%;
}

.amaano-sidebar-profile-link:hover {
    background: rgba(var(--amaano-primary-rgb), .82);
    color: #ffffff;
}

.amaano-header {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(var(--amaano-primary-rgb), .10);
}

.amaano-page-kicker,
.amaano-dashboard .amaano-page-kicker {
    color: var(--amaano-primary) !important;
}

.amaano-top-module-link:hover,
.amaano-top-module-link.active {
    background: rgba(var(--amaano-primary-rgb), .10);
    color: var(--amaano-primary);
}

.btn-primary,
.btn-success {
    --bs-btn-bg: var(--amaano-primary);
    --bs-btn-border-color: var(--amaano-primary);
    --bs-btn-hover-bg: var(--amaano-primary-dark);
    --bs-btn-hover-border-color: var(--amaano-primary-dark);
    --bs-btn-active-bg: var(--amaano-primary-darker);
    --bs-btn-active-border-color: var(--amaano-primary-darker);
    --bs-btn-disabled-bg: var(--amaano-primary);
    --bs-btn-disabled-border-color: var(--amaano-primary);
}

.btn-outline-primary,
.btn-outline-success {
    --bs-btn-color: var(--amaano-primary);
    --bs-btn-border-color: rgba(var(--amaano-primary-rgb), .35);
    --bs-btn-hover-bg: var(--amaano-primary);
    --bs-btn-hover-border-color: var(--amaano-primary);
    --bs-btn-active-bg: var(--amaano-primary-dark);
    --bs-btn-active-border-color: var(--amaano-primary-dark);
}

.btn-warning {
    --bs-btn-bg: var(--amaano-accent);
    --bs-btn-border-color: var(--amaano-accent);
    --bs-btn-hover-bg: var(--amaano-accent-dark);
    --bs-btn-hover-border-color: var(--amaano-accent-dark);
    --bs-btn-active-bg: var(--amaano-accent-dark);
    --bs-btn-active-border-color: var(--amaano-accent-dark);
}

.text-primary { color: var(--amaano-primary) !important; }
.bg-primary { background-color: var(--amaano-primary) !important; }
.border-primary { border-color: var(--amaano-primary) !important; }

.amaano-filter-card:before,
.amaano-section-title:before {
    background: linear-gradient(135deg, var(--amaano-primary), var(--amaano-accent));
}

.amaano-dashboard-card-link:hover .amaano-kpi-card,
.amaano-kpi-card:hover {
    border-color: rgba(var(--amaano-primary-rgb), .28);
}

.amaano-kpi-icon {
    background: linear-gradient(135deg, var(--amaano-primary), var(--amaano-primary-dark));
    box-shadow: 0 12px 25px rgba(var(--amaano-primary-rgb), .24);
}

.amaano-kpi-glow {
    background: radial-gradient(circle, rgba(var(--amaano-primary-rgb), .16), transparent 68%);
}

.amaano-kpi-success .amaano-kpi-icon { background: linear-gradient(135deg, var(--amaano-success), var(--amaano-primary)); box-shadow: 0 12px 25px rgba(var(--amaano-success-rgb), .24); }
.amaano-kpi-warning .amaano-kpi-icon { background: linear-gradient(135deg, var(--amaano-accent), var(--amaano-warning)); box-shadow: 0 12px 25px rgba(var(--amaano-warning-rgb), .23); }
.amaano-kpi-danger .amaano-kpi-icon { background: linear-gradient(135deg, #fb7185, var(--amaano-danger)); box-shadow: 0 12px 25px rgba(var(--amaano-danger-rgb), .22); }
.amaano-kpi-info .amaano-kpi-icon { background: linear-gradient(135deg, var(--amaano-info), var(--amaano-primary)); box-shadow: 0 12px 25px rgba(var(--amaano-info-rgb), .24); }
.amaano-kpi-secondary .amaano-kpi-icon { background: linear-gradient(135deg, #64748b, #334155); }

.amaano-chart-badge,
.amaano-kpi-pill {
    background: rgba(var(--amaano-primary-rgb), .09);
    border-color: rgba(var(--amaano-primary-rgb), .14);
    color: var(--amaano-primary-dark);
}

.amaano-mobile-sidebar,
.amaano-mobile-sidebar-header {
    background: var(--amaano-sidebar-bg);
}

@media (max-width: 991.98px) {
    .amaano-sidebar {
        min-height: 100%;
        position: relative;
    }

    .amaano-sidebar-profile-card {
        margin-bottom: 1rem;
    }

    .offcanvas .amaano-brand {
        margin-top: .65rem;
    }
}

.amaano-brand-preview-card {
    background: var(--amaano-surface-solid, #fff);
    border: 1px solid rgba(226,232,240,.86);
    border-radius: 1.35rem;
    box-shadow: var(--amaano-soft-shadow);
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 420px;
    overflow: hidden;
}

.amaano-brand-preview-sidebar {
    background: linear-gradient(180deg, var(--amaano-sidebar-bg), var(--amaano-sidebar-bg-2));
    color: var(--amaano-sidebar-text);
    padding: 1rem .8rem;
    text-align: center;
}

.amaano-brand-preview-logo {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: var(--amaano-primary);
    display: inline-flex;
    font-size: 1.3rem;
    font-weight: 950;
    height: 58px;
    justify-content: center;
    margin-bottom: .6rem;
    width: 58px;
}

.amaano-brand-preview-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.amaano-brand-preview-subtitle {
    color: var(--amaano-accent);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .07em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.amaano-brand-preview-menu {
    align-items: center;
    border-radius: .7rem;
    display: flex;
    font-size: .78rem;
    font-weight: 780;
    gap: .45rem;
    margin-bottom: .35rem;
    padding: .55rem .55rem;
    text-align: left;
}

.amaano-brand-preview-menu.active {
    background: var(--amaano-primary);
    color: #fff;
}

.amaano-brand-preview-content {
    background: linear-gradient(180deg, var(--amaano-bg), #fff);
    padding: 1.25rem;
}

@media (max-width: 575.98px) {
    .amaano-brand-preview-card {
        grid-template-columns: 1fr;
    }
}

/* =======================================================================
   Amaano responsive header mega menu
   ======================================================================= */
.amaano-header {
    overflow: visible;
}

.amaano-mega-wrap {
    flex: 0 0 auto;
    position: relative;
    z-index: 1065;
}

.amaano-mega-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: .85rem;
    color: #334155;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 800;
    gap: .45rem;
    min-height: 40px;
    padding: .45rem .75rem;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
    white-space: nowrap;
}

.amaano-mega-toggle:hover,
.amaano-mega-toggle[aria-expanded="true"] {
    background: rgba(var(--amaano-primary-rgb), .08);
    border-color: rgba(var(--amaano-primary-rgb), .22);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    color: var(--amaano-primary-dark);
}

.amaano-mega-toggle-chevron {
    font-size: .78rem;
    transition: transform .18s ease;
}

.amaano-mega-toggle[aria-expanded="true"] .amaano-mega-toggle-chevron {
    transform: rotate(180deg);
}

.amaano-mega-panel {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(203, 213, 225, .95);
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
    left: 0;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 1.1rem;
    position: absolute;
    top: calc(100% + .75rem);
    width: min(1080px, calc(100vw - var(--amaano-sidebar-width) - 2rem));
    z-index: 1070;
}

.amaano-mega-panel.collapsing {
    display: block;
    height: auto !important;
    transition: none;
}

.amaano-mega-inner {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amaano-mega-group {
    min-width: 0;
}

.amaano-mega-group-title {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: .78rem;
    font-weight: 900;
    gap: .45rem;
    letter-spacing: .03em;
    margin-bottom: .45rem;
    text-transform: uppercase;
}

.amaano-mega-links {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.amaano-mega-link {
    align-items: center;
    border-radius: .75rem;
    color: #334155;
    display: flex;
    font-size: .9rem;
    font-weight: 700;
    gap: .6rem;
    min-height: 38px;
    padding: .55rem .65rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.amaano-mega-link i {
    color: #334155;
    flex: 0 0 1rem;
    font-size: .95rem;
    opacity: .92;
    text-align: center;
}

.amaano-mega-link:hover,
.amaano-mega-link.active {
    background: rgba(var(--amaano-primary-rgb), .08);
    color: var(--amaano-primary-dark);
    transform: translateX(2px);
}

.amaano-mega-link:hover i,
.amaano-mega-link.active i {
    color: var(--amaano-primary);
}

.amaano-content,
.amaano-content * {
    max-width: 100%;
}

.amaano-content .card,
.amaano-content .amaano-chart-card,
.amaano-content .amaano-kpi-card,
.amaano-content .amaano-filter-card {
    min-width: 0;
}

.amaano-content img,
.amaano-content svg,
.amaano-content canvas {
    max-width: 100%;
}

.amaano-content .table-responsive {
    border-radius: 1rem;
}

@media (max-width: 1399.98px) {
    .amaano-mega-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .amaano-mega-panel {
        width: min(860px, calc(100vw - var(--amaano-sidebar-width) - 1.5rem));
    }
}

@media (max-width: 991.98px) {
    .amaano-header {
        flex-wrap: wrap;
        gap: .55rem;
    }

    .amaano-header-left {
        flex: 1 1 auto;
    }

    .amaano-mega-wrap {
        position: static;
    }

    .amaano-mega-panel {
        left: .75rem;
        max-height: calc(100vh - 86px);
        right: .75rem;
        top: calc(100% + .35rem);
        width: auto;
    }

    .amaano-mega-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amaano-header-actions {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .amaano-header-title-wrap {
        display: none;
    }

    .amaano-mega-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .amaano-header {
        padding: .6rem .7rem;
    }

    .amaano-mega-toggle {
        border-radius: .75rem;
        min-height: 38px;
        padding: .4rem .55rem;
    }

    .amaano-mega-toggle-text {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .amaano-mega-panel {
        border-radius: .9rem;
        left: .5rem;
        max-height: calc(100vh - 78px);
        padding: .85rem;
        right: .5rem;
    }

    .amaano-mega-link {
        font-size: .88rem;
        min-height: 36px;
    }
}

/* =======================================================================
   Amaano final responsive header/menu corrections
   - one icon-only menu button
   - dynamic mega menu from the same sidebar source
   - desktop sidebar hidden correctly on mobile/tablet
   ======================================================================= */
.amaano-mobile-menu-btn {
    display: none !important;
}

.amaano-mega-toggle {
    align-items: center;
    border-radius: .8rem;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    width: 40px;
}

.amaano-mega-toggle i {
    font-size: 1.22rem;
    line-height: 1;
}

.amaano-mega-toggle-text,
.amaano-mega-toggle-chevron {
    display: none !important;
}

.amaano-app-main {
    min-width: 0;
    width: 100%;
}

.amaano-header {
    flex-wrap: nowrap;
}

.amaano-header-left {
    flex: 1 1 auto;
    min-width: 0;
}

.amaano-header-title-wrap,
.amaano-header-title,
.amaano-header-subtitle {
    min-width: 0;
}

.amaano-header-actions {
    margin-left: auto;
    min-width: 0;
}

.amaano-mega-panel {
    width: min(980px, calc(100vw - var(--amaano-sidebar-width) - 2rem));
}

@media (min-width: 992px) {
    .amaano-desktop-sidebar {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    .amaano-desktop-sidebar {
        display: none !important;
        flex: 0 0 0 !important;
        width: 0 !important;
    }

    .amaano-app-shell {
        display: block;
    }

    .amaano-header {
        gap: .55rem;
        min-height: 64px;
        padding: .55rem .75rem;
    }

    .amaano-header-title {
        font-size: 1rem;
    }

    .amaano-header-subtitle {
        display: block;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .amaano-user-name {
        display: none !important;
    }

    .amaano-mega-wrap {
        position: static;
        z-index: 1090;
    }

    .amaano-mega-panel {
        border-radius: 1rem;
        left: .75rem;
        max-height: calc(100dvh - 82px);
        overflow: auto;
        padding: .85rem;
        position: fixed;
        right: .75rem;
        top: 72px;
        width: auto !important;
        z-index: 1095;
    }

    .amaano-mega-inner {
        gap: .8rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amaano-content {
        padding: .75rem;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .amaano-header-title-wrap {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .amaano-header {
        min-height: 58px;
        padding: .5rem .65rem;
    }

    .amaano-mega-toggle {
        height: 38px;
        min-height: 38px;
        width: 38px;
    }

    .amaano-mega-panel {
        border-radius: .9rem;
        left: .55rem;
        max-height: calc(100dvh - 68px);
        right: .55rem;
        top: 62px;
    }

    .amaano-mega-inner {
        grid-template-columns: 1fr;
    }

    .amaano-header-actions .btn {
        font-size: .76rem;
        padding: .34rem .5rem;
    }

    .amaano-dashboard .row > .col-6,
    .amaano-dashboard .row > [class*="col-6"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Amaano profile dropdown header action */
.amaano-user-dropdown {
    position: relative;
}

.amaano-user-menu-btn {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #1f2937;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 42px;
}

.amaano-user-menu-btn i {
    font-size: 1.28rem;
    line-height: 1;
}

.amaano-user-menu-btn:hover,
.amaano-user-menu-btn[aria-expanded="true"] {
    background: #eaf7ef;
    border-color: rgba(0, 98, 59, .24);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    color: var(--amaano-primary);
    transform: translateY(-1px);
}

.amaano-user-menu {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .14);
    margin-top: .65rem !important;
    min-width: 210px;
    overflow: hidden;
    padding: .75rem .7rem;
}

.amaano-user-menu::before {
    background: #fff;
    box-shadow: -2px -2px 8px rgba(15, 23, 42, .04);
    content: "";
    height: 14px;
    position: absolute;
    right: 18px;
    top: -6px;
    transform: rotate(45deg);
    width: 14px;
}

.amaano-user-menu-head {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: .45rem;
    padding: .25rem .55rem .7rem;
}

.amaano-user-menu-name {
    color: #111827;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amaano-user-menu-role {
    color: #64748b;
    font-size: .74rem;
    font-weight: 700;
    margin-top: .18rem;
}

.amaano-user-menu-item {
    align-items: center;
    border-radius: .75rem;
    color: #283241;
    display: flex;
    font-size: .92rem;
    font-weight: 650;
    gap: .65rem;
    padding: .72rem .65rem;
}

.amaano-user-menu-item i {
    color: #334155;
    font-size: 1rem;
    width: 18px;
}

.amaano-user-menu-item:hover,
.amaano-user-menu-item:focus {
    background: #f8fafc;
    color: var(--amaano-primary);
}

.amaano-user-menu-item:hover i,
.amaano-user-menu-item:focus i {
    color: var(--amaano-primary);
}

.amaano-user-menu .dropdown-divider {
    margin: .55rem .4rem .45rem;
}

.amaano-user-menu-logout {
    align-items: center;
    border-radius: .75rem;
    color: #ef4444;
    display: flex;
    justify-content: center;
    margin: .1rem auto 0;
    min-height: 38px;
    text-decoration: none;
    width: 100%;
}

.amaano-user-menu-logout i {
    font-size: 1.18rem;
}

.amaano-user-menu-logout:hover,
.amaano-user-menu-logout:focus {
    background: #fff1f2;
    color: #dc2626;
}

@media (max-width: 575.98px) {
    .amaano-user-menu-btn {
        height: 38px;
        width: 38px;
    }

    .amaano-user-menu {
        min-width: 195px;
    }
}

/* =======================================================================
   Amaano final header cleanup
   - remove duplicate top module navigation
   - keep filter button beside profile icon
   - keep Academic Excellence directly below sidebar menu
   ======================================================================= */
.amaano-header-center,
.amaano-top-module-nav {
    display: none !important;
}

.amaano-header {
    justify-content: space-between;
}

.amaano-header-left {
    flex: 1 1 auto;
}

.amaano-header-actions {
    align-items: center;
    display: flex;
    gap: .55rem;
    margin-left: auto;
}

.amaano-header-filter-btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    gap: .38rem;
    min-height: 40px;
    padding: .45rem .78rem;
    white-space: nowrap;
}

.amaano-header-filter-btn i {
    font-size: .95rem;
    line-height: 1;
}

.amaano-header-filter-count {
    align-items: center;
    background: var(--amaano-primary, #006B3F);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .68rem;
    font-weight: 900;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 .32rem;
}

.amaano-sidebar-scroll .amaano-sidebar-profile-card {
    margin-top: .9rem;
    margin-bottom: .75rem;
}

.amaano-sidebar-scroll {
    display: block;
}

#amaanoDashboardApp {
    padding-top: 0 !important;
}

@media (max-width: 991.98px) {
    .amaano-header-filter-btn {
        min-height: 38px;
        padding: .4rem .7rem;
    }
}

@media (max-width: 575.98px) {
    .amaano-header-actions {
        gap: .42rem;
    }

    .amaano-header-filter-btn {
        height: 38px;
        justify-content: center;
        min-height: 38px;
        padding: 0;
        width: 38px;
    }

    .amaano-header-filter-btn > span:not(.amaano-header-filter-count) {
        display: none;
    }

    .amaano-header-filter-count {
        position: absolute;
        right: -3px;
        top: -3px;
    }
}


/* Final sidebar visibility polish: keep Academic Excellence visible and scroll only the menu */
.amaano-sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.amaano-desktop-sidebar {
    display: flex;
    flex-direction: column;
}

.amaano-sidebar .amaano-brand {
    flex: 0 0 auto;
}

.amaano-sidebar-scroll {
    flex: 1 1 0;
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: .15rem;
}

.amaano-sidebar > .amaano-sidebar-profile-card,
.offcanvas-body > .amaano-sidebar-profile-card {
    flex: 0 0 auto;
    margin: .85rem .25rem .15rem;
}

.offcanvas .amaano-sidebar-scroll {
    max-height: calc(100vh - 330px);
}

@media (max-height: 820px) {
    .amaano-brand-logo-ring {
        height: 88px;
        width: 88px;
    }

    .amaano-brand {
        gap: .45rem;
        margin-bottom: .75rem;
        padding-bottom: .75rem;
    }

    .amaano-sidebar-profile-card {
        padding: .85rem .8rem;
    }

    .amaano-sidebar-profile-icon {
        font-size: 1.15rem;
        height: 3rem;
        margin-bottom: .55rem;
        width: 3rem;
    }

    .amaano-sidebar-profile-text {
        margin: .25rem 0 .55rem;
    }

.amaano-sidebar-scroll,
.offcanvas .amaano-sidebar-scroll {
    flex: 1 1 0;
    max-height: none;
    min-height: 0;
}
}

@media (max-width: 991.98px) {
    .amaano-sidebar {
        height: 100%;
        max-height: none;
    }

    .offcanvas-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

.amaano-sidebar-scroll,
.offcanvas .amaano-sidebar-scroll {
    flex: 1 1 0;
    max-height: none;
    min-height: 0;
}
}

/* =======================================================================
   Amaano Header User Area 2026
   Modern profile button: avatar + name + role + dropdown.
   ======================================================================= */
.amaano-user-dropdown {
    position: relative;
}

.amaano-user-menu-btn {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(203, 213, 225, .92);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
    color: #0f172a;
    display: inline-flex;
    gap: .55rem;
    height: 44px;
    justify-content: flex-start;
    max-width: 260px;
    min-width: 0;
    padding: .25rem .52rem .25rem .25rem;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: auto;
}

.amaano-user-menu-btn:hover,
.amaano-user-menu-btn[aria-expanded="true"] {
    background: #ffffff;
    border-color: rgba(var(--amaano-primary-rgb, 0, 107, 63), .28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .09);
    color: var(--amaano-primary, #006b3f);
    transform: translateY(-1px);
}

.amaano-user-avatar,
.amaano-user-menu-avatar {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(var(--amaano-primary-rgb, 0, 107, 63), .16), rgba(var(--amaano-primary-rgb, 0, 107, 63), .05)),
        #f8fafc;
    border: 1px solid rgba(var(--amaano-primary-rgb, 0, 107, 63), .16);
    border-radius: 999px;
    color: var(--amaano-primary, #006b3f);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 900;
    justify-content: center;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.amaano-user-avatar {
    font-size: .78rem;
    height: 34px;
    width: 34px;
}

.amaano-user-menu-avatar {
    font-size: .9rem;
    height: 42px;
    width: 42px;
}

.amaano-user-menu-btn-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    min-width: 0;
    text-align: left;
}

.amaano-user-menu-btn-name {
    color: #0f172a;
    font-size: .84rem;
    font-weight: 900;
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amaano-user-menu-btn-role {
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    margin-top: .12rem;
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.amaano-user-menu-btn-chevron {
    color: #94a3b8;
    font-size: .78rem !important;
    line-height: 1;
    margin-left: .05rem;
    transition: transform .16s ease, color .16s ease;
}

.amaano-user-menu-btn[aria-expanded="true"] .amaano-user-menu-btn-chevron {
    color: var(--amaano-primary, #006b3f);
    transform: rotate(180deg);
}

.amaano-user-menu {
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: 1.05rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    margin-top: .68rem !important;
    min-width: 250px;
    overflow: hidden;
    padding: .65rem;
}

.amaano-user-menu::before {
    background: #fff;
    border-left: 1px solid rgba(226, 232, 240, .6);
    border-top: 1px solid rgba(226, 232, 240, .6);
    box-shadow: -2px -2px 8px rgba(15, 23, 42, .035);
    content: "";
    height: 14px;
    position: absolute;
    right: 22px;
    top: -7px;
    transform: rotate(45deg);
    width: 14px;
}

.amaano-user-menu-head {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(var(--amaano-primary-rgb, 0, 107, 63), .07), rgba(248, 250, 252, .96));
    border: 1px solid rgba(226, 232, 240, .78);
    border-radius: .95rem;
    display: flex;
    gap: .72rem;
    margin-bottom: .45rem;
    padding: .68rem;
}

.amaano-user-menu-head-copy {
    min-width: 0;
}

.amaano-user-menu-name {
    color: #0f172a;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.18;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amaano-user-menu-role {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    margin-top: .12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.amaano-user-menu-status {
    align-items: center;
    color: #059669;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 850;
    gap: .32rem;
    margin-top: .22rem;
}

.amaano-user-menu-status span {
    background: #10b981;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
    display: inline-flex;
    height: .42rem;
    width: .42rem;
}

.amaano-user-menu-item {
    align-items: center;
    border-radius: .78rem;
    color: #334155;
    display: flex;
    font-size: .9rem;
    font-weight: 750;
    gap: .65rem;
    min-height: 39px;
    padding: .62rem .65rem;
}

.amaano-user-menu-item i {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: .65rem;
    color: #475569;
    display: inline-flex;
    font-size: .92rem;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.amaano-user-menu-item:hover,
.amaano-user-menu-item:focus {
    background: rgba(var(--amaano-primary-rgb, 0, 107, 63), .06);
    color: var(--amaano-primary, #006b3f);
}

.amaano-user-menu-item:hover i,
.amaano-user-menu-item:focus i {
    background: #fff;
    border-color: rgba(var(--amaano-primary-rgb, 0, 107, 63), .18);
    color: var(--amaano-primary, #006b3f);
}

.amaano-user-menu .dropdown-divider {
    border-top-color: rgba(226, 232, 240, .9);
    margin: .5rem .35rem;
}

.amaano-user-menu-logout {
    align-items: center;
    border-radius: .78rem;
    color: #dc2626;
    display: flex;
    font-size: .9rem;
    font-weight: 850;
    gap: .6rem;
    justify-content: flex-start;
    min-height: 39px;
    padding: .62rem .65rem;
    text-decoration: none;
    width: 100%;
}

.amaano-user-menu-logout i {
    align-items: center;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: .65rem;
    display: inline-flex;
    font-size: .95rem;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.amaano-user-menu-logout:hover,
.amaano-user-menu-logout:focus {
    background: #fff1f2;
    color: #b91c1c;
}

@media (max-width: 767.98px) {
    .amaano-user-menu-btn {
        height: 40px;
        padding: .22rem;
        width: 40px;
    }

    .amaano-user-avatar {
        height: 34px;
        width: 34px;
    }

    .amaano-user-menu-btn-copy,
    .amaano-user-menu-btn-chevron {
        display: none;
    }

    .amaano-user-menu {
        min-width: 235px;
    }
}

/* =======================================================================
   Amaano global page stability and modal no-shift behavior
   Global shell rules belong here, not in list.css.
   ======================================================================= */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.amaano-body {
    overflow-y: scroll;
}

.amaano-content {
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--amaano-primary-rgb, 0, 107, 63), .045), transparent 28rem),
        radial-gradient(circle at 100% 6%, rgba(var(--amaano-accent-rgb, 242, 183, 5), .055), transparent 25rem),
        var(--amaano-bg, #f7faf8);
}

body.amaano-body.modal-open,
html.amaano-modal-stable body.amaano-body {
    overflow-y: scroll !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

html.amaano-modal-stable,
html.amaano-modal-stable body {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

.modal {
    padding-right: 0 !important;
}

/* =======================================================================
   Amaano fixed dashboard shell safeguard
   Do not remove when creating or updating pages.
   Body never scrolls; sidebar and header never move; content owns scrolling.
   ======================================================================= */
html,
body {
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    scrollbar-gutter: auto;
}

body.amaano-body {
    height: 100%;
    overflow: hidden !important;
}

.amaano-app-shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.amaano-app-main {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.amaano-header,
.amaano-footer {
    flex: 0 0 auto;
}

.amaano-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body.amaano-body.modal-open,
html.amaano-modal-stable body.amaano-body {
    overflow: hidden !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991.98px) {
    .amaano-app-shell,
    .amaano-app-main {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }
}

/* =======================================================================
   Student Lifecycle modal polish
   Keeps lifecycle modals centered like the Parents/Sponsors modal.
   Do not allow lifecycle modals to stretch full screen on desktop.
   ======================================================================= */
.am-lifecycle-modal .modal-dialog,
.am-lifecycle-confirm-modal .modal-dialog {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 640px !important;
    width: min(640px, calc(100vw - 2rem)) !important;
}

.am-lifecycle-confirm-modal .modal-dialog {
    max-width: 460px !important;
    width: min(460px, calc(100vw - 2rem)) !important;
}

.am-lifecycle-modal-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 1.05rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
}

.am-lifecycle-modal-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    padding: 1rem 1.15rem .85rem;
}

.am-lifecycle-modal-header .modal-title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0;
}

.am-lifecycle-modal-eyebrow {
    color: var(--amaano-primary, #006b3f);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .09em;
    margin-bottom: .18rem;
    text-transform: uppercase;
}

.am-lifecycle-modal-body {
    padding: 1rem 1.15rem 1.05rem;
}

.am-lifecycle-field .form-label {
    color: #334155;
    font-size: .82rem;
    font-weight: 750;
    margin-bottom: .38rem;
}

.am-lifecycle-field .form-control,
.am-lifecycle-field .form-select {
    border-color: rgba(203, 213, 225, .95);
    border-radius: .72rem;
    min-height: 42px;
}

.am-lifecycle-field textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.am-lifecycle-modal-footer {
    background: #fbfdfc;
    border-top: 1px solid rgba(226, 232, 240, .9);
    gap: .55rem;
    padding: .85rem 1.15rem;
}

.am-lifecycle-confirm-body {
    align-items: flex-start;
    display: flex;
    gap: .85rem;
    padding: 1rem 1.15rem 1.05rem;
}

.am-lifecycle-confirm-icon {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: .9rem;
    color: #c2410c;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 1.15rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.am-lifecycle-confirm-text {
    color: #334155;
    font-size: .92rem;
    line-height: 1.55;
    margin: .12rem 0 0;
}

.am-lifecycle-page-message {
    margin-bottom: .9rem;
}

@media (max-width: 767.98px) {
    .am-lifecycle-modal .modal-dialog,
    .am-lifecycle-confirm-modal .modal-dialog {
        margin: .75rem auto !important;
        max-width: calc(100vw - 1rem) !important;
        width: calc(100vw - 1rem) !important;
    }

    .am-lifecycle-modal-body,
    .am-lifecycle-modal-header,
    .am-lifecycle-modal-footer,
    .am-lifecycle-confirm-body {
        padding-left: .9rem;
        padding-right: .9rem;
    }
}

/* Shared polished modal and configuration workspace */
.app-polished-modal .modal-dialog{max-width:min(1120px,calc(100vw - 2rem))}.app-polished-modal .modal-content{overflow:hidden;border:1px solid color-mix(in srgb,var(--brand-primary,#16845b) 18%,#dfe7e3);border-radius:18px;box-shadow:0 24px 70px rgba(18,45,35,.2)}.app-polished-modal .modal-header{align-items:flex-start;padding:1rem 1.15rem;border-bottom:1px solid #e6ece9;background:linear-gradient(135deg,#fff 58%,color-mix(in srgb,var(--brand-primary,#16845b) 8%,#fff))}.app-modal-heading{display:flex;align-items:center;gap:.78rem;min-width:0}.app-modal-icon{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--brand-primary,#16845b) 11%,#fff);color:var(--brand-primary,#16845b);font-size:1.05rem}.app-modal-icon--danger{background:rgba(220,53,69,.1);color:#b02a37}.app-modal-eyebrow{display:block;margin-bottom:.1rem;color:var(--brand-primary,#16845b);font-size:.64rem;font-weight:850;letter-spacing:.09em}.app-modal-heading h2{margin:0;color:#192520;font-size:1.1rem;font-weight:800}.app-modal-heading p{margin:.18rem 0 0;color:#687570;font-size:.78rem}.app-modal-footer{display:flex;align-items:center;gap:.55rem;padding:.75rem 1rem;border-top:1px solid #e6ece9;background:#fbfcfc}.app-modal-footer>:first-child:not(:last-child){margin-right:auto}.configuration-page{--config-border:#e1e8e5;--config-soft:color-mix(in srgb,var(--brand-primary,#16845b) 7%,#fff)}.configuration-alert:empty,.configuration-modal-alert:empty{display:none}.configuration-alert{margin-bottom:.75rem}.configuration-modal-alert{padding:.7rem 1rem 0}.configuration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.configuration-card{display:flex;flex-direction:column;min-height:205px;padding:1rem;border:1px solid var(--config-border);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(20,48,38,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.configuration-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--brand-primary,#16845b) 30%,var(--config-border));box-shadow:0 13px 30px rgba(20,48,38,.08)}.configuration-card__top{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.configuration-card__icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--config-soft);color:var(--brand-primary,#16845b)}.configuration-card__count{padding:.28rem .5rem;border-radius:999px;background:#f3f6f5;color:#64716c;font-size:.68rem}.configuration-card__count strong{color:#28342f}.configuration-card h2{margin:.85rem 0 .25rem;color:#1c2824;font-size:1rem;font-weight:800}.configuration-card p{flex:1;margin:0;color:#6d7975;font-size:.78rem;line-height:1.5}.configuration-card__actions{display:flex;justify-content:flex-end;gap:.45rem;margin-top:.9rem}.configuration-card__actions .btn{min-height:34px;padding:.4rem .65rem;border-radius:9px;font-size:.76rem}.configuration-modal-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 100px auto auto;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--config-border)}.configuration-modal-toolbar .form-control,.configuration-modal-toolbar .form-select,.configuration-modal-toolbar .btn{height:36px;border-radius:9px;font-size:.8rem}.configuration-table-wrap{min-height:290px;max-height:min(58vh,560px);overflow:auto}.configuration-row-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:.28rem}.configuration-row-actions .icon-tool:last-child,.branch-subject-delete{color:#ad3541}.configuration-brand-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.27rem .5rem;border-radius:999px;background:var(--config-soft);color:#315c4c;font-size:.72rem;font-weight:750;white-space:nowrap}.configuration-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.configuration-field{min-width:0}.configuration-field--full{grid-column:1/-1}.configuration-field>label,.configuration-label,.configuration-radio-group legend{display:block;margin-bottom:.32rem;color:#34413c;font-size:.73rem;font-weight:800}.configuration-field label span,.configuration-radio-group legend span{color:#c03945}.configuration-field .form-control,.configuration-field .form-select{min-height:39px;border-color:#dce5e1;border-radius:9px;font-size:.82rem}.configuration-field small{display:block;margin-top:.28rem;color:#798580;font-size:.68rem}.configuration-toggle-field{display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:.3rem}.configuration-toggle-field .form-check{min-height:39px;margin:0;padding:9px 10px 8px 2.7rem;border:1px solid #dce5e1;border-radius:9px}.configuration-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.configuration-upload{padding:.7rem;border:1px solid #dfe7e3;border-radius:12px;background:#fbfcfc}.configuration-upload__preview{display:grid;place-items:center;height:100px;margin-bottom:.55rem;overflow:hidden;border:1px dashed #ccd8d3;border-radius:9px;background:#fff;color:#87938e}.configuration-upload__preview img{width:100%;height:100%;object-fit:contain}.configuration-upload__preview span{text-align:center;font-size:.72rem}.configuration-upload__preview i{display:block;margin-bottom:.2rem;font-size:1.2rem}.configuration-upload>label{display:block;margin-bottom:.3rem;font-size:.73rem;font-weight:800}.configuration-radio-group{margin:0;padding:0;border:0}.configuration-radio-group>p{margin:-.12rem 0 .5rem;color:#798580;font-size:.72rem}.configuration-radio-group>label{display:flex;align-items:stretch;margin-bottom:.45rem;cursor:pointer}.configuration-radio-group input{position:absolute;opacity:0;pointer-events:none}.configuration-radio-group label>span{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:.55rem;width:100%;padding:.65rem .75rem;border:1px solid #dce5e1;border-radius:10px;background:#fff}.configuration-radio-group label i{grid-row:1/3;align-self:center;color:var(--brand-primary,#16845b);font-size:1.05rem}.configuration-radio-group label strong{font-size:.78rem}.configuration-radio-group label small{margin:0}.configuration-radio-group input:checked+span{border-color:var(--brand-primary,#16845b);background:var(--config-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-primary,#16845b) 9%,transparent)}.configuration-picker{overflow:hidden;border:1px solid #dfe7e3;border-radius:11px;background:#fbfcfc}.configuration-picker .list-searchbox{margin:.65rem}.configuration-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;max-height:280px;padding:.15rem .65rem .65rem;overflow:auto}.configuration-check-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .55rem;border:1px solid #e4eae7;border-radius:8px;background:#fff;cursor:pointer;font-size:.77rem}.configuration-check-option:hover{border-color:color-mix(in srgb,var(--brand-primary,#16845b) 30%,#dfe7e3);background:var(--config-soft)}.branch-subject-searchbar{grid-template-columns:minmax(240px,1fr) minmax(180px,260px) 100px auto auto!important}
@media(max-width:991.98px){.configuration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-subject-searchbar{grid-template-columns:1fr 1fr!important}.branch-subject-searchbar .list-searchbox{grid-column:1/-1}.configuration-modal-toolbar{grid-template-columns:1fr 100px auto}.configuration-modal-toolbar .dropdown{grid-column:4}}
@media(max-width:767.98px){.configuration-grid{grid-template-columns:1fr}.configuration-card{min-height:180px}.app-polished-modal .modal-dialog{max-width:none;margin:.65rem}.app-polished-modal .modal-header{padding:.85rem}.app-modal-heading p{display:none}.configuration-modal-toolbar{grid-template-columns:1fr 1fr;padding:.65rem}.configuration-modal-toolbar .list-searchbox{grid-column:1/-1}.configuration-modal-toolbar .dropdown{grid-column:auto}.configuration-form-grid,.configuration-upload-grid,.configuration-check-grid{grid-template-columns:1fr}.configuration-field--full{grid-column:1}.app-modal-footer{flex-wrap:wrap}.app-modal-footer>:first-child:not(:last-child){margin-right:0}.app-modal-footer #configurationRange{width:100%}.branch-subject-searchbar{grid-template-columns:1fr 1fr!important}.branch-subject-searchbar>*{grid-column:auto!important}.branch-subject-searchbar .list-searchbox,.branch-subject-searchbar #branchSubjectFilter{grid-column:1/-1!important}}


/* Interface language selector */
.amaano-language-switcher {
    align-items: center;
    background: var(--amaano-surface, #fff);
    border: 1px solid rgba(var(--amaano-primary-rgb, 82, 173, 121), .18);
    border-radius: 12px;
    display: inline-flex;
    gap: 6px;
    min-height: 42px;
    padding: 0 9px;
}
.amaano-language-switcher > i { color: var(--amaano-primary); font-size: 1rem; }
.amaano-language-switcher select {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--amaano-text);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 800;
    min-width: 78px;
    outline: 0;
    padding: 0 14px 0 0;
}
@media (max-width: 575.98px) {
    .amaano-language-switcher { min-height: 38px; padding: 0 7px; }
    .amaano-language-switcher select { min-width: 66px; width: 66px; }
    .amaano-language-switcher > i { display: none; }
}

/* Branch Subjects: Staff-form style chips and grouped rows */
.branch-subject-picker-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:.55rem;align-items:center;margin:.65rem}.branch-subject-chip-actions{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:flex-end}.branch-subject-chip-actions .btn{min-height:36px;border-radius:999px;font-size:.76rem;font-weight:800}.branch-subject-selection-summary{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 .65rem .45rem;color:#64748b;font-size:.74rem}.branch-subject-selection-summary span{display:inline-flex;align-items:center;gap:.28rem;padding:.22rem .48rem;border-radius:999px;background:#fff;border:1px solid #e2e8f0;font-weight:750}.configuration-picker--staff-chips .configuration-subject-chip-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.42rem;max-height:320px}.configuration-subject-chip{cursor:pointer;user-select:none;min-width:0}.configuration-subject-chip input{position:absolute;opacity:0;pointer-events:none}.configuration-subject-chip span{display:inline-flex;align-items:center;gap:.38rem;width:100%;min-height:34px;border:1px solid #dbe4ef;border-radius:999px;padding:.38rem .7rem;background:#fff;color:#0f172a;font-weight:800;font-size:.78rem;transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease}.configuration-subject-chip span i{color:var(--brand-primary,#0B7A3B)}.configuration-subject-chip span em{margin-left:auto;font-style:normal;font-size:.62rem;color:#15803d;background:rgba(34,197,94,.12);border-radius:999px;padding:.08rem .35rem}.configuration-subject-chip input:checked+span{border-color:var(--brand-primary,#0B7A3B);background:rgba(82,173,121,.14);color:var(--brand-primary-dark,#0B7A3B);box-shadow:0 0 0 2px rgba(82,173,121,.08)}.configuration-subject-chip:hover span{border-color:color-mix(in srgb,var(--brand-primary,#0B7A3B) 42%,#dbe4ef)}.branch-subject-branch-cell strong{display:block;color:#0f172a;font-weight:900}.branch-subject-branch-cell small{display:block;color:#64748b;font-size:.72rem;margin-top:.08rem}.branch-subject-chip-list{display:flex;flex-wrap:wrap;gap:.35rem}.branch-subject-row-chip{padding-right:.25rem}.branch-subject-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.08rem;height:1.08rem;margin-left:.1rem;border:0;border-radius:999px;background:rgba(15,23,42,.06);color:#b91c1c;line-height:1}.branch-subject-chip-remove:hover{background:rgba(239,68,68,.13);color:#991b1b}.branch-subject-manage{white-space:nowrap;font-weight:800;border-radius:999px}@media(max-width:991.98px){.configuration-picker--staff-chips .configuration-subject-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-subject-picker-toolbar{grid-template-columns:1fr}.branch-subject-chip-actions{justify-content:flex-start}}@media(max-width:575.98px){.configuration-picker--staff-chips .configuration-subject-chip-grid{grid-template-columns:1fr}.branch-subject-chip-actions .btn{width:100%;justify-content:center}}


/* Professional logo/panel display: fit images instead of cropping user uploads. */
.amaano-brand-logo-ring {
    overflow: hidden;
    padding: 8px;
}
.amaano-brand-logo {
    background: transparent;
    border-radius: 0;
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}
.amaano-brand-fallback {
    border-radius: 50%;
}
.configuration-upload__preview {
    background:
        linear-gradient(45deg, rgba(15, 143, 100, .035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(15, 143, 100, .035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(15, 143, 100, .035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(15, 143, 100, .035) 75%),
        #fff;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}
.configuration-upload__preview img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}
.configuration-upload--panel .configuration-upload__preview,
.configuration-upload__preview--panel {
    height: 112px;
    width: 100%;
}
.configuration-upload--logo {
    display: flex;
    flex-direction: column;
}
.configuration-upload--logo .configuration-upload__preview,
.configuration-upload__preview--logo {
    align-self: center;
    border-radius: 18px;
    height: 132px;
    padding: .65rem;
    width: 132px;
}
.configuration-upload--logo .configuration-upload__preview img,
.configuration-upload__preview--logo img {
    border-radius: 0;
}
