@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

:root {
    --font: "Rubik", sans-serif;
    --white-color: #fff;
    --black-color: #000;
    --black-50: rgba(0, 0, 0, 0.6);
    --body-color: var(--text-primary);
    --primary-color: var(--accent);
    --assest-color: var(--bg-surface-alt);
    --green-color: var(--status-green);
    --red-color: var(--status-red);

    /* ── Department Panel — Green Civic palette ──
       Modes: light (default) · dark [data-theme="dark"]
       Naming mirrors admin.css convention exactly
    ── */

    /* Surfaces */
    --bg-base:            #F3F9F5;
    --bg-surface:         #FFFFFF;
    --bg-surface-alt:     #E6F5EC;
    --bg-elevated:        #EAF5EE;
    --bg-input:           #F3F9F5;

    /* Borders */
    --border-default:     #C8E8D4;
    --border-strong:      #B0D8C0;
    --border-focus:       #45AB51;

    /* Text */
    --text-primary:       #132A1E;
    --text-secondary:     #4A7A60;
    --text-muted:         #78B090;
    --text-on-dark:       #D2EEE0;
    --text-on-accent:     #F3F9F5;

    /* Accent */
    --accent:             #45AB51;
    --accent-dark:        #1E3A2F;
    --accent-hover:       #3A9645;
    --accent-subtle:      #E6F5EC;
    --accent-bright:      #5DC96A;
    --accent-vivid:       #2ECC40;
    --accent-deep:        #0D3B18;

    /* Status */
    --status-green:       #45AB51;
    --status-red:         #E24B4A;
    --status-amber:       #FDB14D;

    /* Shadows */
    --shadow-card:        0 1px 3px rgba(19,42,30,.07), 0 4px 16px rgba(19,42,30,.04);
    --shadow-login:       0 12px 40px rgba(19,42,30,.12), 0 2px 8px rgba(19,42,30,.08);

    /* Gradients */
    --bg-header-gradient: linear-gradient(135deg, #1E3A2F 0%, #2D5040 100%);
    --accent-gradient:    linear-gradient(135deg, #1A6B23 0%, #45AB51 100%);

    /* RGB channels for rgba() usage */
    --accent-rgb:         69, 171, 81;
    --accent-bright-rgb:  93, 201, 106;

    /* Surfaces */
    --bg-sidebar:         #FFFFFF;
    --bg-header:          #FFFFFF;
    --bg-nav-active:      #E6F5EC;
    --bg-table-head:      #1E3A2F;
    --bg-input:           #F3F9F5;

    /* Text additional */
    --text-table-head:    #D2EEE0;

    /* Nav */
    --nav-active-bg:      #1E3A2F;
    --nav-active-color:   #D2EEE0;
    --nav-active-border:  transparent;
    --nav-active-icon:    #D2EEE0;
    --nav-item-color:     #4A7A60;
    --nav-group-color:    #78B090;

    /* Status backgrounds */
    --status-green-bg:    #E8F7E9;
    --status-red-bg:      #FDEAEA;
    --status-amber-bg:    #FEF5E7;
    --status-blue:        #1A7EC8;
    --status-blue-bg:     #D6EEFA;
    --status-purple:      #7C3AED;
    --status-purple-bg:   #EDE9FE;

    /* Status inks (text on tinted chips) & border lines */
    --status-green-ink:   #256E30;
    --status-red-ink:     #BE2929;
    --status-amber-ink:   #9A5B00;
    --status-blue-ink:    #14669F;
    --status-purple-ink:  #6D28D9;
    --status-green-line:  #B9E3BF;
    --status-red-line:    #F5C4C3;
    --status-amber-line:  #F5D09A;

    /* Shadows */
    --shadow-header:      0 1px 0 var(--border-default);
    --shadow-dropdown:    0 8px 24px rgba(19, 42, 30, 0.12);

    /* RGB channels */
    --accent-rgb:         69, 171, 81;
    --status-red-rgb:     226, 75, 74;
    --status-red-deep:    #BE2929;

    /* Story card — glass-overlay tokens (always on dark image gradient, no dark-mode flip needed) */
    --sc-glass-bg:     rgba(255, 255, 255, 0.18);
    --sc-glass-border: rgba(255, 255, 255, 0.25);
    --sc-glass-hover:  rgba(255, 255, 255, 0.32);
    --sc-play-border:  rgba(255, 255, 255, 0.55);
    --sc-play-hover:   rgba(255, 255, 255, 0.38);
    --sc-text-img:     #ffffff;
    --sc-desc-img:     rgba(255, 255, 255, 0.78);
    --sc-date-img:     rgba(255, 255, 255, 0.55);
    --sc-img-gradient: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.10) 35%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0.92) 100%
    );

    /* Layout */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  22px;
    --sidebar-width: 268px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
}


/* ── 2. TOKENS — DARK [data-theme="dark"] ── */
[data-theme="dark"] {
    /* Surfaces */
    --bg-base:            #0D1F17;
    --bg-surface:         #172F22;
    --bg-surface-alt:     #142A1F;
    --bg-elevated:        #0D1F17;
    --bg-input:           #0D1F17;

    /* Borders */
    --border-default:     #254535;
    --border-strong:      #1E3D2C;
    --border-focus:       #5DC96A;

    /* Text */
    --text-primary:       #D2EEE0;
    --text-secondary:     #78B090;
    --text-muted:         #4A7A60;
    --text-on-dark:       #D2EEE0;
    --text-on-accent:     #061409;

    /* Accent */
    --accent:             #5DC96A;
    --accent-dark:        #45AB51;
    --accent-hover:       #6ED87C;
    --accent-subtle:      #0D2A18;

    /* Status */
    --status-green:       #5DC96A;
    --status-red:         #E24B4A;
    --status-amber:       #FDB14D;

    /* Shadows */
    --shadow-card:        0 1px 3px rgba(0,0,0,.30), 0 4px 16px rgba(0,0,0,.20);
    --shadow-login:       0 20px 60px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.25);

    /* Gradients */
    --bg-header-gradient: linear-gradient(135deg, #0D1F17 0%, #1A3427 100%);
    --accent-gradient:    linear-gradient(135deg, #3EA048 0%, #5DC96A 100%);

    --accent-rgb:         93, 201, 106;
    --status-red-rgb:     226, 75, 74;
    --status-red-deep:    #991B1B;

    /* Surfaces */
    --bg-sidebar:         #142A1F;
    --bg-header:          #0D1F17;
    --bg-nav-active:      #1A3427;
    --bg-table-head:      #1E3A2F;
    --bg-input:           #0D1F17;

    /* Text additional */
    --text-table-head:    #D2EEE0;

    /* Nav */
    --nav-active-bg:      #45AB51;
    --nav-active-color:   #FFFFFF;
    --nav-active-border:  transparent;
    --nav-active-icon:    #FFFFFF;
    --nav-item-color:     #78B090;
    --nav-group-color:    #4A7A60;

    /* Status backgrounds */
    --status-green-bg:    rgba(69, 171, 81, 0.15);
    --status-red-bg:      rgba(226, 75, 74, 0.15);
    --status-amber-bg:    rgba(253, 177, 77, 0.15);
    --status-blue:        #5AAEE0;
    --status-blue-bg:     rgba(62, 151, 212, 0.20);
    --status-purple:      #A78BFA;
    --status-purple-bg:   rgba(124, 58, 237, 0.20);

    /* Status inks (text on tinted chips) & border lines */
    --status-green-ink:   #6FD97D;
    --status-red-ink:     #F08A89;
    --status-amber-ink:   #FDC170;
    --status-blue-ink:    #7BBFE8;
    --status-purple-ink:  #C4B5FD;
    --status-green-line:  rgba(93, 201, 106, 0.35);
    --status-red-line:    rgba(226, 75, 74, 0.40);
    --status-amber-line:  rgba(253, 177, 77, 0.35);

    /* Shadows */
    --shadow-header:      0 1px 0 var(--border-default);
    --shadow-dropdown:    0 8px 24px rgba(0, 0, 0, 0.45);

    /* Legacy */
    --body-color: var(--text-primary);
    --primary-color: var(--accent);
    --green-color: var(--status-green);
}

html,
body {
    height: 100%;
    overflow: auto;
}
body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text-primary);
    background-color: var(--bg-base);
    font-size: 14px;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
}
.defaultfont {
    font-family: var(--font);
}
a {
    text-decoration: none !important;
}
.primary-color {
    color: var(--primary-color);
}
.primary-bg {
    background-color: var(--primary-color) !important;
}
.text-gray {
    color: var(--body-color);
    opacity: 0.6;
}
.btn:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
}
.btn-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
    padding: 0 0 0px;
    border-radius: 0;
    font-size: 14px;
}
.btn-default {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--white-color);
    border: none;
    padding: 10px 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.32);
    transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease, opacity 200ms ease;
    position: relative;
    overflow: hidden;
}

.btn-default::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
    transition: left 480ms ease;
    pointer-events: none;
}

.btn-default:hover::after { left: 150%; }

.btn-default:hover {
    color: var(--white-color);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.42);
    border-color: transparent;
}

.btn-default:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.28);
}

.btn-default:focus,
.btn-default:focus-visible {
    outline: none !important;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.32) !important;
    color: var(--white-color) !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
}

.btn-default:disabled,
.btn-default.disabled {
    opacity: 0.65;
    transform: none !important;
    cursor: not-allowed;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.32) !important;
}

.btn-default:disabled::after,
.btn-default.disabled::after {
    display: none;
}

/* Dark theme: dark ink on the green accent (readable) + softer glow,
   brighter sweep so the shine reads on the lighter green */
[data-theme="dark"] .btn-default {
    color: var(--text-on-accent);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.18);
}
[data-theme="dark"] .btn-default::after {
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.42) 50%, transparent 80%);
}
[data-theme="dark"] .btn-default:hover {
    color: var(--text-on-accent);
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}
[data-theme="dark"] .btn-default:focus,
[data-theme="dark"] .btn-default:focus-visible {
    color: var(--text-on-accent) !important;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.18) !important;
}
.mw-120 {
    min-width: 120px;
}
.mw-150 {
    min-width: 150px;
}
.btn-icon {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--primary-color);
}
.dropright .dot-icon {
    height: 18px;
}
.dropright .dropdown-menu {
    top: 100% !important;
    right: 0;
    -webkit-transform: none !important;
    transform: none !important;
    left: auto !important;
}
.dropdown-menu {
    box-shadow: var(--shadow-dropdown);
    padding: 6px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    min-width: 170px;
}

.dropdown-menu .dropdown-item {
    font-weight: 500;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-default);
    transition: background 0.12s;
}

.dropdown-menu .dropdown-item:last-child { border-bottom: 0; }

.dropdown-menu .dropdown-item:hover {
    background: var(--bg-nav-active);
    color: var(--accent);
}

.dropdown-menu .dropdown-item.primary-color { color: var(--accent); }

.dropdown-menu, .card {
    background-color: var(--bg-surface);
    border: none;
}
.side-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: transparent;
    padding: 4px;
    border: none;
    gap: 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.12s;
}

.side-toggle:hover { background: var(--bg-nav-active); }

.side-toggle:focus,
.side-toggle:focus-visible,
.side-toggle:active { outline: none; box-shadow: none; }

.side-toggle span {
    background: var(--text-secondary);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.2s;
}

.side-toggle span:nth-child(2) { width: 22px; }
.custom-control .custom-control-label::before {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
}
.custom-control .custom-control-input:checked~.custom-control-label::after {
    border-radius: 3px;
    background-color: var(--primary-color);
}
.custom-control.custom-radio .custom-control-label::before,
.custom-control.custom-radio .custom-control-label:after {
    border-radius: 50% !important;
}
/* ── SIDEBAR ── */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-default);
    padding: 20px 10px 28px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: var(--sidebar-width);
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(0);
    transition: width 0.25s ease, transform 0.25s ease, background-color 0.2s;
    z-index: 100;
}

[data-theme="dark"] .sidebar {
    background-image: radial-gradient(circle, rgba(69, 171, 81, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background-color: var(--border-strong); border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

@media (min-width: 1680px) { .sidebar { width: 288px; } }

.sidebar.hide-sidebar {
    width: var(--sidebar-collapsed);
    padding: 20px 10px;
}

@media (min-width: 1024px) {
    .sidebar.hide-sidebar .side-menu .partition { display: none; }
    .sidebar.hide-sidebar .side-head {
        justify-content: center;
        margin: 4px 0 6px;
        width: 46px;
    }
    .sidebar.hide-sidebar .side-logo,
    .sidebar.hide-sidebar .partition,
    .sidebar.hide-sidebar .side-menu a>span { display: none; }
    .sidebar.hide-sidebar .side-menu .active a:after { content: none; }
    .sidebar.hide-sidebar .side-menu a {
        margin: 4px auto;
        display: flex;
        padding: 11px 8px;
        height: 44px;
        width: 44px;
        align-items: center;
        justify-content: center;
        border-left: 2px solid transparent !important;
    }
    .sidebar.hide-sidebar .side-menu a .menu-icon { margin-right: 0; }
    .sidebar.hide-sidebar .side-menu a.dropdown-toggle::after { content: none; }
    .sidebar.hide-sidebar .side-menu .dropdown-menu {
        margin-left: 0;
        min-width: unset;
        padding: 0;
        gap: 0;
        align-items: center;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu .dropdown-item {
        margin: 4px auto;
        padding: 0;
        height: 44px;
        width: 44px;
        justify-content: center;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu .active { padding: 0; margin: 4px auto; }
    .sidebar.hide-sidebar .side-menu .dropdown-menu a svg { margin-right: 0; }
    .sidebar.hide-sidebar .side-menu .dropdown-menu .submenu-icon {
        margin-right: 0;
        font-size: 15px;
        width: 20px;
        min-width: 20px;
    }
}

@media (min-width: 1680px) { .sidebar.hide-sidebar .side-head { margin: 0 0 6px -2px; } }

.sidebar .side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 8px;
}

.sidebar .side-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.sidebar .side-logo h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
}

[data-theme="dark"] .sidebar .side-logo h3 { color: var(--accent); }

.sidebar .side-menu {
    padding: 0;
    list-style: none;
    margin: 6px 0 0 !important;
}

.partition {
    padding: 16px 8px 5px;
    margin: 0;
    border: none;
    line-height: 1;
    width: auto;
}

.partition span {
    background: transparent;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-group-color);
    display: block;
}

.sidebar .side-menu a {
    color: var(--nav-item-color);
    display: flex;
    align-items: center;
    padding: 9px 10px;
    position: relative;
    margin: 2px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    transition: background 0.14s, color 0.14s;
    gap: 0;
}

.sidebar .side-menu a:hover {
    background: var(--bg-nav-active);
    color: var(--accent);
}

.sidebar .side-menu a .menu-icon {
    margin-right: 10px;
    width: 20px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: inherit;
    transition: color 0.14s;
    font-size: 15px;
    line-height: 1;
}

.sidebar .side-menu .side_line.active a,
.sidebar .side-menu .active a {
    background: var(--nav-active-bg);
    color: var(--nav-active-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.18);
}

.sidebar .side-menu .side_line.active a:hover,
.sidebar .side-menu .active a:hover {
    background: var(--nav-active-bg);
    color: var(--nav-active-color);
    opacity: 0.92;
}

.sidebar .side-menu .side_line.active a .menu-icon,
.sidebar .side-menu .active a .menu-icon {
    color: var(--nav-active-icon);
    filter: none;
}

.sidebar.hide-sidebar .side-menu .side_line.active a:after,
.sidebar .side-menu .side_line.active a:after { content: none; }

.sidebar .side-menu .dropdown-toggle::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar .side-menu .dropdown-menu {
    position: relative !important;
    transform: none !important;
    box-shadow: none;
    float: none;
    background: transparent;
    border: none;
    margin-left: 14px;
    padding: 0;
}

.sidebar .side-menu .dropdown-menu.show {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar .side-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--nav-item-color);
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    transition: color 0.14s, background 0.14s;
}

.sidebar .side-menu .dropdown-menu .submenu-icon {
    margin-right: 10px;
    width: 16px;
    min-width: 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1;
    color: inherit;
    flex-shrink: 0;
}

.sidebar .side-menu .dropdown-menu .dropdown-item:hover {
    background: var(--bg-nav-active) !important;
    color: var(--accent);
}

.sidebar .side-menu .dropdown-menu .side_line.active .dropdown-item,
.sidebar .side-menu .dropdown-menu .side_line.active .dropdown-item:hover {
    background: var(--nav-active-bg) !important;
    color: var(--nav-active-color);
    font-weight: 600;
}

.sidebar .side-menu .dropdown-menu .side_line.active .submenu-icon {
    color: var(--nav-active-icon);
    filter: none;
}

/* ── RIGHT CONTENT ── */
.right-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-base);
    transition: margin-left 0.25s ease, background-color 0.2s;
}

@media (min-width: 1680px) { .right-content { margin-left: 288px; } }

.right-content.right-content-0 {
    margin-left: var(--sidebar-collapsed);
}

.right-content.right-content-0 .header .title-control .side-toggle { display: none; }
/* ── HEADER ── */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-header);
    z-index: 22;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s, border-color 0.2s;
}

@media (min-width: 1680px) { .header { padding: 0 32px; } }

.header .title-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header .title-control .side-toggle { display: none; }

.header .page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header .side-logo { display: none; }

.header .side-logo h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0;
}

[data-theme="dark"] .header .side-logo h3 { color: var(--accent); }

.header .head-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header .head-control .head-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.header .head-control .head-btn:hover {
    background: var(--bg-nav-active);
    color: var(--accent);
    border-color: var(--accent);
}

.header .head-control .head-btn:focus,
.header .head-control .head-btn:focus-visible,
.header .head-control .head-btn:active { outline: none; box-shadow: none; }

.header .head-control .dropdown { position: relative; }

.header .head-control .dropdown .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0 !important;
    transform: none !important;
}

/* Theme toggle button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.theme-toggle-btn:hover {
    background: var(--bg-nav-active);
    color: var(--accent);
    border-color: var(--accent);
}

.theme-toggle-btn:focus,
.theme-toggle-btn:focus-visible,
.theme-toggle-btn:active { outline: none; box-shadow: none; }

.theme-toggle-btn .icon-dark { display: inline; }
.theme-toggle-btn .icon-light { display: none; }

[data-theme="dark"] .theme-toggle-btn .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-light { display: inline; }
.avatar-img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.body-content {
    padding: 24px;
}

.border-bottom {
    border-color: var(--border-default) !important;
}

.box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 12px;
    margin-top: 20px;
    gap: 8px;
}

.box-title .title {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0;
    color: var(--text-primary);
}

.page-title-sm { display: none; }
.avatar-control {
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.avatar-control .avatar-img {
    height: 50px;
    width: 50px;
    border-radius: 20%;
}
.table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even) {
    background-color: transparent;
}

.table {
    border-color: var(--border-default);
    color: var(--text-primary);
    min-width: 650px;
    margin: 0;
    background: var(--bg-surface);
}

.table thead th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: 0;
    border-bottom: 1px solid var(--border-default);
    background-color: var(--bg-table-head);
    color: var(--text-table-head);
    padding: 12px 12px;
    white-space: nowrap;
}

.table td {
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-default);
    border-top: 0;
    vertical-align: middle;
    padding: 11px 12px;
    color: var(--text-primary);
    background: transparent;
}

.table tbody tr:hover td {
    background-color: var(--bg-nav-active);
}

.table .avatar-img { margin-right: 8px; }

.table .clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.table .btn {
    padding: 0;
    background: var(--bg-surface);
    margin: 0 2px;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 13px;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
    box-shadow: none;
    vertical-align: middle;
}

.table .btn:hover {
    background: var(--accent);
    color: var(--white-color);
    border-color: var(--accent);
}

.table .btn i, .table .btn svg { color: inherit; font-size: 13px; }
.table .btn img { width: 14px; filter: none; }
.table tfoot { background-color: var(--bg-surface-alt); }
.dot {
    height: 8px;
    width: 8px;
    background: var(--red-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.custom-tabs {
    margin: 20px 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    border-radius: 100px;
}
.custom-tabs li.nav-item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
}
.custom-tabs .nav-link {
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    padding: 10px;
}
.custom-tabs .nav-link.active {
    background: var(--primary-color);
}
.summary-table-card .border-card {
    padding: 12px;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    font-size: 13px;
    background: var(--bg-surface);
    transition: border-color 0.15s;
}
.summary-table-card .border-card:hover {
    border-color: var(--accent);
}
.summary-table-card .border-card>.row {
    margin: 0;
}
.summary-table-card .border-card>.row .col,
.summary-table-card .border-card>.row .col-1,
.summary-table-card .border-card>.row .col-2,
.summary-table-card .border-card>.row .col-12 {
    padding: 0;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.summary-table-card .avatar-control {
    min-width: 120px;
    font-weight: 600;
}
.summary-table-card .avatar-control img {
    margin-right: 8px;
}
.summary-table-card .price {
    color: var(--red-color);
    font-weight: 700;
}
.artist-row {
    margin: 0 -10px;
}
.artist-row .col-6 {
    padding: 0 10px;
}
.video-box {
    padding: 25px;
    background: var(--assest-color);
}
.video-box .f600 {
    font-weight: 600;
}
.video-box .box-border-0 {
    border: 0;
    padding-bottom: 0;
}
.page-search {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    gap: 10px;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
}

.page-search .input-group {
    border: none;
    background: transparent;
    border-radius: 0;
}

.page-search .input-group-text,
.page-search .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    color: var(--text-primary);
}

.page-search .input-group-text img,
.page-search .form-control img { width: 18px; }

.page-search .form-control::placeholder { color: var(--text-muted); }

.page-search .sorting {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface-alt);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
}

.page-search .sorting label {
    min-width: 50px;
    margin: 0;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.page-search .sorting .form-control {
    padding: 2px 6px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-family: var(--font);
    color: var(--text-primary);
    height: auto !important;
}
/* ── FILTER BAR ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
    min-height: 52px;
}

.filter-bar .filter-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
}

.filter-bar .filter-search .fa-magnifying-glass {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.filter-bar .filter-search:focus-within .fa-magnifying-glass {
    color: var(--accent);
}

.filter-bar .filter-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 0;
}

.filter-bar .filter-search input::placeholder {
    color: var(--text-muted);
}

.export-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    flex-wrap: wrap;
}

.export-toolbar .export-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
    min-width: 160px;
}

.export-toolbar .export-label .fa-circle-info {
    color: var(--accent);
    font-size: 15px;
}

.export-toolbar .export-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.export-toolbar .export-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border-default);
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.export-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(var(--accent-rgb), 0.14);
}

.export-btn:focus,
.export-btn:focus-visible,
.export-btn:active { outline: none; box-shadow: none; }

.filter-sort {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.filter-sort:focus-within {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.filter-sort > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 10px 0 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
    border-right: 1px solid var(--border-default);
    align-self: stretch;
    display: flex;
    align-items: center;
}

.filter-sort:focus-within > span {
    color: var(--accent);
    border-right-color: var(--accent);
}

.filter-sort select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    padding: 8px 10px;
    outline: none;
    cursor: pointer;
    width: 100%;
    min-width: 90px;
    appearance: auto;
}

[data-theme="dark"] .filter-sort select {
    background-color: var(--bg-elevated);
}

.filter-sort input[type="date"] {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    padding: 8px 10px;
    outline: none;
    cursor: pointer;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    color-scheme: light;
}

[data-theme="dark"] .filter-sort input[type="date"] {
    color-scheme: dark;
}

[data-theme="dark"] .filter-sort select option {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

.add-video-btn {
    height: calc(100% - 30px);
    background: var(--assest-color);
    border: 1px solid var(--assest-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 15px 0;
    width: 100%;
    border-radius: 15px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    padding: 25px;
    color: var(--body-color) !important;
}
.add-video-btn .icon {
    margin-bottom: 15px;
}
.video-card {
    padding: 5px;
    border: 1px solid var(--assest-color) !important;
    border-radius: 15px;
    margin: 15px 0;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.video-card:hover {
    -webkit-box-shadow: 0 15px 35px var(--assest-color);
    box-shadow: 0 15px 35px var(--assest-color);
}
.video-card:hover .play-btn,
.video-card:hover .overlap-control,
.video-card:hover .play-btn-top {
    display: block;
}
.video-card .card-img-top {
    border-radius: 15px;
    height: 160px;
    /* -o-object-fit: cover; */
    /* object-fit: cover; */
}
.video-card .play-btn {
    background: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: none;
}
.video-card .card-body {
    padding: 15px 10px;
    position: relative;
}
.video-card .card-body .dropdown {
    position: absolute;
    right: 10px;
    top: 10px;
}
.video-card .card-body .dropdown .dropdown-menu {
    top: auto !important;
    bottom: 100%;
}
.video-card .card-body .dropdown .head-btn {
    padding: 5px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}
.video-card .card-body .dropdown .dropdown-item {
    font-weight: 500;
}
.video-card .card-body .dropdown .dropdown-item img {
    height: 18px;
    width: 18px;
    -o-object-fit: contain;
    object-fit: contain;
    margin-right: 10px;
}
.video-card .card-body .card-title {
    padding-right: 10px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card .card-body .card-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.video-card .card-body .card-details p {
    margin: 0;
    font-weight: 500;
    color: var(--assest-color);
}
.video-card .card-body .card-details p.tag {
    color: var(--body-color);
}
.video-card .play-btn-top {
    position: absolute;
    right: 00px;
    top: 00px;
    background: transparent;
    padding: 0;
    display: none;
}
.video-card .play-btn-top img {
    width: 45px;
}
.video-card .overlap-control {
    position: absolute;
    right: 10px;
    bottom: -5px;
    display: none;
}
.video-card .overlap-control .btn {
    /* background: var(--assest-color); */
    padding: 3px 6px;
    /* border-radius: 10px; */
}
.video-card .overlap-control .btn .dot-icon {
    height: 16px;
    width: 16px;
    -o-object-fit: contain;
    object-fit: contain;
    color: var(--primary-color) !important;
}
.pagination {
    padding: 5px;
    border: 1px solid var(--border-default);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    border-radius: var(--radius-md);
    margin: 28px auto 0;
    background: var(--bg-surface);
}
.pagination .page-link {
    border: 0;
    height: 36px;
    width: 36px;
    background: var(--bg-surface-alt) !important;
    margin: 0 3px;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.14s, color 0.14s;
}
.pagination .page-link:hover {
    background: var(--accent-subtle) !important;
    color: var(--accent);
}
.pagination .page-link .right-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}
.pagination .page-link .dots {
    font-weight: 700;
    margin-top: -3px;
}
.pagination .arrow-icon {
    height: 20px;
    width: 20px;
    background-image: url("../../assets/imgs/left-arrow.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 7px;
}
.pagination .arrow-icon .next-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}
.pagination .active .page-link {
    background: var(--accent) !important;
    color: var(--white-color) !important;
}
.modal .close {
    font-size: 28px;
    color: var(--text-primary);
    opacity: 0.7;
    position: absolute;
    right: 12px;
    top: 4px;
    font-weight: 300;
    z-index: 22;
    outline: none;
    background: none;
    border: none;
}

.modal .close:hover { opacity: 1; }

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

.modal-header {
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-default);
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.modal-footer {
    background: var(--bg-surface-alt);
    border-top: 1px solid var(--border-default);
    border-bottom-left-radius: calc(var(--radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}
.inline-tabs {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: relative;
    z-index: 2;
}
.inline-tabs li.nav-item {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
}
.inline-tabs .nav-link {
    padding: 10px 35px;
}
.app-right-btn {
    text-align: right;
    margin-top: -60px;
    margin-bottom: 30px;
}
.custom-border-card {
    -webkit-box-shadow: var(--shadow-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-default);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    background: var(--bg-surface);
}
.custom-border-card .card-header {
    font-size: 15px;
    font-weight: 600;
    background: var(--accent-subtle);
    border-bottom: 1px solid var(--border-default);
    border-left: 3px solid var(--accent);
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
    color: var(--text-primary);
    padding: 13px 24px;
    margin: -20px -24px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-border-card .card-header i,
.custom-border-card .card-header svg {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.9em;
}
.custom-border-card .card-body {
    padding: 18px 0 10px;
}

/* ── Complaint details page (cd-*) ── */
.cd-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
    margin-bottom: 0;
}
@media (max-width: 991px) { .cd-layout { grid-template-columns: 1fr; } }

.cd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
@media (max-width: 575px) { .cd-info-grid { grid-template-columns: 1fr; } }

.cd-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-default);
}
.cd-info-row:nth-child(odd):not(.cd-info-row--full) {
    border-right: 1px solid var(--border-default);
}
.cd-info-row--full { grid-column: 1 / -1; }

.cd-info-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.cd-info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.55;
    margin: 0;
}

.cd-info-value--accent {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.cd-form-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cd-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cd-field-static {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    padding: 8px 12px;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    min-height: 38px;
    display: flex;
    align-items: center;
}

.cd-media-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    cursor: pointer;
}

.cd-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.22s ease;
}

.cd-media-card:hover img { transform: scale(1.05); }

.cd-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: #fff;
    font-size: 38px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.cd-play-btn:hover { background: rgba(0, 0, 0, 0.55); }

.cd-note-composer textarea { resize: vertical; }

.cd-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

.cd-note-item {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.cd-note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cd-note-time {
    font-size: 11px;
    color: var(--text-muted);
}

.cd-note-text {
    font-size: 13px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.cd-timeline {
    display: flex;
    flex-direction: column;
}

.cd-timeline-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 22px;
}

.cd-timeline-item:last-child { padding-bottom: 0; }

.cd-timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--border-default);
}
.cd-timeline-item:last-child::before { display: none; }

.cd-tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.cd-tl-body { flex: 1; min-width: 0; }

.cd-tl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.cd-tl-remark {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.cd-tl-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.cd-tl-detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.cd-tl-key {
    font-weight: 700;
    color: var(--text-secondary);
}

.cd-tl-arrow {
    font-size: 9px;
    color: var(--text-muted);
}

.cd-empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 24px 0 8px;
    margin: 0;
}

.stg-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
    margin-top: 16px;
}

.stg-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stg-label i {
    color: var(--accent);
    font-size: 10px;
}

/* ── IMAGE UPLOAD — drag-and-drop component ── */
.image-upload-wrapper {
    position: relative;
    width: 220px;
}

.image-upload-wrapper input[type="file"] {
    display: none;
}

.drop-area {
    position: relative;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-surface-alt);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    min-height: 170px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.drop-area:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.drop-area.dragover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.drop-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.drop-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-subtle);
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.drop-area:hover .drop-icon,
.drop-area.dragover .drop-icon {
    background: rgba(var(--accent-rgb), 0.18);
    transform: scale(1.08) translateY(-2px);
}

.drop-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.drop-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.drop-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    padding: 3px 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    letter-spacing: 0.03em;
}

/* Preview image sits behind placeholder; shown when wrapper has .has-preview */
.image-upload-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.image-upload-wrapper.has-preview img {
    opacity: 1;
}

.image-upload-wrapper.has-preview .drop-placeholder {
    opacity: 0;
}

/* "Change photo" bar fades in on hover when preview is set */
.image-upload-wrapper.has-preview .drop-area::before {
    content: '\f030\00a0 ' attr(data-change-label);
    font-family: 'Font Awesome 6 Free', var(--font);
    font-weight: 900;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px);
}

.image-upload-wrapper.has-preview .drop-area:hover::before {
    opacity: 1;
}

/* Password field with eye toggle */
.input-pw-wrap                { position: relative; }
.input-pw-wrap .form-control  { padding-right: 40px; }
.pw-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.pw-eye-btn:focus,
.pw-eye-btn:focus-visible,
.pw-eye-btn:active { outline: none; box-shadow: none; }

.form-group label {
    font-weight: 500;
    color: var(--body-color);
    font-size: 14px;
    margin-bottom: 10px;
}
.form-control,
.custom-select {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    height: auto !important;
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-control:focus,
.custom-select:focus {
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    border-color: var(--border-focus);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control[readonly],
.form-control:disabled {
    background-color: var(--bg-surface-alt);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.file-control {
    padding: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 15px;
    cursor: pointer;
}
.file-control span {
    opacity: 0.6;
    display: inline-block;
    margin-top: 10px;
}
.thumbnail-img {
    position: relative;
    border: 1px solid var(--assest-color);
    display: inline-block;
    height: 100px;
    width: 130px;
    border-radius: 10px;
    padding: 4px;
}
.thumbnail-img img {
    border-radius: 8px;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.thumbnail-img .close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--white-color);
    opacity: 1;
    font-weight: 300;
}
.radio-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
}
.radio-group .custom-control {
    padding-left: 0;
    margin-right: 15px;
}
.radio-group .custom-control-label {
    margin-bottom: 0;
    background: var(--assest-color);
    padding: 6px 23px 6px 33px;
    border-radius: 100px;
    font-size: 16px;
}
.radio-group .custom-control-label::before,
.radio-group .custom-control-label:after {
    border-radius: 50%;
    top: 10px;
    left: 10px;
}
.radio-group .custom-control-label:after {
    display: none;
}
.radio-group .custom-control-label::before {
    background: transparent;
    border: 3px solid var(--body-color);
}
.radio-group .custom-control-input:checked~.custom-control-label {
    background: var(--primary-color);
    color: var(--white-color);
}
.radio-group .custom-control-input:checked~.custom-control-label::before {
    background: var(--primary-color);
    border-color: var(--white-color);
}
table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:before {
    content: "↑";
}
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:after {
    content: "↓";
}
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

div.dataTables_wrapper div.dataTables_length label .form-control,
div.dataTables_wrapper div.dataTables_filter label .form-control {
    padding: 5px 12px;
    text-align: center;
    margin: 0 10px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-size: 14px;
}

div.dataTables_wrapper div.dataTables_filter label input.form-control {
    text-align: left;
    margin-right: 0;
}

div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child,
div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
    overflow: auto;
}

[data-theme="dark"] select.form-control option,
[data-theme="dark"] .page-search .sorting .form-control option,
[data-theme="dark"] div.dataTables_wrapper select option {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}
.left-caption {
    height: 100%;
    position: relative;
}
.left-caption .bg-img {
    height: 100%;
    width: 100%;
    -o-object-fit: fill;
    object-fit:fill;
}
.left-caption .caption {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--black-50);
    color: var(--white-color);
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 160px;
}
.left-caption .caption .text {
    margin-top: 20px;
    font-size: 14px;
    line-height: 24px;
}
.login-bg {
    background: var(--assest-color);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: auto;
    padding-bottom: 20px;
}
@media (max-height: 600px) {
    .login-bg {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: start;
    }
}
.app-logo img {
    width: 180px;
    margin: 15px 0 20px;
}
.app-login-box {
    max-width: 410px;
    margin: 0 auto;
    width: 90%;
    padding: 30px;
    background: var(--white-color);
    border-radius: 20px;
    border: 3px solid var(--primary-color);
}
.app-login-box .form-control {
    background: var(--assest-color);
}
.app-login-box .form-control:focus {
    background: var(--white-color);
}
@media (min-width: 1600px) {
    .counter-row {
        margin-bottom: 20px;
    }
    .table thead th,
    .table td {
        font-size: 14px;
    }
    .custom-tabs .nav-link,
    .summary-table-card .border-card {
        font-size: 14px;
        padding: 8px 12px;
    }
    .video-card .card-img-top {
        height: 250px;
    }
    .video-card .card-body .card-title {
        font-size: 18px;
    }
    .video-card .card-body .card-details p {
        font-size: 16px;
    }
    .video-card .play-btn-top img {
        width: 60px;
    }
    .form-group label {
        font-size: 16px;
    }
    .custom-border-card .card-header {
        font-size: 20px;
    }
}
@media (max-width: 1280px) {
    .header .input-group {
        width: 280px;
    }
}
@media (max-width: 991px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.hide-sidebar {
        transform: translateX(0);
        left: 0;
        z-index: 99;
        width: var(--sidebar-width);
    }
    .sidebar.hide-sidebar .side-toggle span:first-child { transform: rotate(45deg); }
    .sidebar.hide-sidebar .side-toggle span:nth-child(2) { display: none; }
    .sidebar.hide-sidebar .side-toggle span:last-child { transform: rotate(-45deg); margin-top: -5px; }
    .right-content { margin-left: 0 !important; }
    .right-content .page-title { display: none; }
    .header { padding: 0 16px; }
    .header .title-control .side-toggle { display: flex !important; }
    .header .side-logo { display: flex; }
    .header .mobile-close-search { display: none; }
    .counter-row .col-md { padding-right: 5px; padding-left: 5px; }
    .page-title-sm {
        font-size: 22px;
        font-weight: 700;
        margin: -6px 0 18px;
        display: block;
        border-bottom: 1px solid var(--border-default);
        padding-bottom: 10px;
        color: var(--text-primary);
    }
    .app-logo img { margin: 20px 0 10px; }
}
@media (max-width: 767px) {
    .btn-default {
        font-size: 14px;
    }
    .header .input-group {
        height: 45px;
        width: 45px;
        border-radius: 5px;
    }
    .header .input-group .input-group-text {
        padding: 7px;
    }
    .header .input-group .form-control {
        display: none;
    }
    .box-title {
        padding-bottom: 8px;
    }
    .box-title .title {
        font-size: 18px;
    }
    .avatar-control .avatar-img {
        height: 30px;
        width: 30px;
    }
    .table th,
    .table td {
        padding: 8px 6px;
    }
    .summary-table-card .border-card {
        padding: 8px 2px;
    }
    .summary-table-card .border-card .row .col {
        text-align: left;
    }
    .summary-table-card .border-card .row .col-12 {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
    .summary-table-card .avatar-control {
        margin: 0 12px 10px;
    }
    .pagination {
        margin-top: 18px;
    }
    .inline-tabs {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        overflow: auto;
        margin-top: 0;
    }
    .inline-tabs::-webkit-scrollbar {
        display: none;
    }
    .inline-tabs .nav-link {
        padding: 8px 14px;
    }
    .app-right-btn {
        margin: 0 0 15px;
    }
    .form-group label {
        font-size: 14px;
    }
    .custom-border-card {
        padding: 14px 16px;
    }
    .custom-border-card .card-header {
        font-size: 14px;
        padding: 11px 16px;
        margin: -14px -16px 16px;
    }
    .file-control {
        padding: 16px;
    }
}
@media (max-width: 567px) {
    .page-search {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 15px;
        align-items: stretch;
    }
    .page-search .sorting {
        margin-top: 8px;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .export-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    div.dataTables_wrapper div.dataTables_length label,
    div.dataTables_wrapper div.dataTables_filter label {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child,
    div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
        padding: 0;
        overflow: auto;
    }
    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        margin-top: 15px;
    }
}
@media (max-width: 340px) {
    .header .side-logo {
        width: 120px;
    }
}
/* Image Upload Preview */
.avatar-upload {
    position: relative;
    max-width: 205px;
}
.avatar-edit {
    position: absolute;
    right: 12px;
    z-index: 1;
}
.avatar-edit input {
    display: none;
}
.avatar-edit input+label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    margin-right: 30px;
    margin-top: 125px;
    border-radius: 100%;
    background: var(--white-color);
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px var(--assest-color);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
}
.avatar-edit input+label:hover {
    background: var(--assest-color);
    border-color: var(--body-color);
}
.avatar-edit input+label:after {
    content: "\f0ee";
    font-family: 'FontAwesome';
    color: var(--body-color);
    position: absolute;
    top: 130px;
    left: 0;
    right: 30px;
    text-align: center;
    margin: auto;
}
.avatar-upload .avatar-preview {
    width: 150px;
    height: 150px;
    position: relative;
    border-radius: 10%;
}
.avatar-upload .avatar-preview>img {
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 10%;
    background-repeat: no-repeat;
    background-position: center;
}
/* Image Upload Preview (Landscape) */
.avatar-upload-landscape {
    position: relative;
    max-width: 265px;
}
.avatar-edit-landscape {
    position: absolute;
    right: 0;
    bottom: -20px;
    z-index: 1;
}
.avatar-edit-landscape input {
    display: none;
}
.avatar-edit-landscape input+label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    margin-right: 30px;
    margin-top: 125px;
    border-radius: 100%;
    background: var(--white-color);
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px var(--assest-color);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
}
.avatar-edit-landscape input+label:hover {
    background: var(--assest-color);
    border-color: var(--body-color);
}
.avatar-edit-landscape input+label:after {
    content: "\f0ee";
    font-family: 'FontAwesome';
    color: var(--body-color);
    position: absolute;
    top: 130px;
    left: 0;
    right: 30px;
    text-align: center;
    margin: auto;
}
.avatar-upload-landscape .avatar-preview-landscape {
    width: 220px;
    height: 120px;
    position: relative;
    border-radius: 10%;
}
.avatar-upload-landscape .avatar-preview-landscape>img {
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 10%;
    background-repeat: no-repeat;
    background-position: center;
}
/* Video Ribbon */
.ribbon {
    width: 125px;
    height: 125px;
    overflow: hidden;
    position: absolute;
}
.ribbon span {
    position: absolute;
    display: block;
    width: 200px;
    padding: 5px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    font: 700 18px/1 'Lato', sans-serif;
    text-transform: uppercase;
    text-align: center;
}
.ribbon-top-left {
    top: -10px;
    left: -10px;
}
.ribbon-top-left::before {
    top: 0;
    right: 0;
}
.ribbon-top-left::after {
    bottom: 0;
    left: 0;
}
.ribbon-top-left span {
    right: -25px;
    top: 30px;
    transform: rotate(-45deg);
}
/* Loader */
#dvloader {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    background-color: var(--white-color);
    z-index: 9999;
}
#dvloader img {
    max-width: 300px;
    max-height: 300px;
    z-index: 100;
}
/* btn Cancel */
.btn-cancel {
    background: linear-gradient(135deg, var(--status-red) 0%, var(--status-red-deep) 100%);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--white-color);
    border: none;
    padding: 10px 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(var(--status-red-rgb), 0.30);
    transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease, opacity 200ms ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-cancel::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
    transition: left 480ms ease;
    pointer-events: none;
}

.btn-cancel:hover::after { left: 150%; }

.btn-cancel:hover {
    color: var(--white-color);
    background: linear-gradient(135deg, var(--status-red-deep) 0%, var(--status-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--status-red-rgb), 0.40);
    border-color: transparent;
}

.btn-cancel:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(var(--status-red-rgb), 0.25);
}

.btn-cancel:focus,
.btn-cancel:focus-visible {
    outline: none !important;
    box-shadow: 0 4px 14px rgba(var(--status-red-rgb), 0.30) !important;
    color: var(--white-color) !important;
    background: linear-gradient(135deg, var(--status-red) 0%, var(--status-red-deep) 100%) !important;
}

.btn-cancel:disabled,
.btn-cancel.disabled {
    opacity: 0.65;
    transform: none !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(var(--status-red-rgb), 0.30) !important;
}

.btn-cancel:disabled::after,
.btn-cancel.disabled::after {
    display: none;
}

[data-theme="dark"] .btn-cancel {
    background: linear-gradient(135deg, var(--status-red) 0%, var(--status-red-deep) 100%);
    box-shadow: 0 4px 14px rgba(var(--status-red-rgb), 0.35);
}
[data-theme="dark"] .btn-cancel:hover {
    background: linear-gradient(135deg, var(--status-red-deep) 0%, var(--status-red) 100%);
    box-shadow: 0 8px 22px rgba(var(--status-red-rgb), 0.45);
    color: var(--white-color);
}

/* Edit-Delete btn */
.edit-delete-btn {
    border: 1px solid var(--border-default);
    cursor: pointer;
    background: var(--bg-surface);
    color: var(--accent);
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.edit-delete-btn:hover {
    background: var(--accent);
    color: var(--white-color);
    border-color: var(--accent);
}

.edit-delete-btn:focus { outline: none; box-shadow: none; }
.cart-bg {
    background-color: var(--assest-color);
}
/* Import File */
.import-file {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    /* Match .form-control padding exactly so height is identical */
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.import-file:focus,
.import-file:focus-within {
    border-color: var(--border-focus);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.import-file::file-selector-button {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 0;
    /* Negative margins cancel the container padding so the button
       fills top/bottom and aligns flush with the left edge */
    margin: -10px 12px -10px -14px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    transition: background-color 0.15s;
}
.import-file::file-selector-button:hover {
    background-color: var(--accent-hover);
}

/* Dark mode — all vars already adapt; only border-right tint shifts */
[data-theme="dark"] .import-file::file-selector-button {
    border-right-color: rgba(255, 255, 255, 0.12);
}
/* Dashboard Category */
.category-box {
    padding: 25px;
    background: var(--assest-color);
}
.category-box .f600 {
    font-weight: 600;
}
.category-box .box-border-0 {
    border: 0;
    padding-bottom: 0;
}
.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
    color: var(--white-color);
    padding-left: 25px;
}
.category-image {
    max-height: 105px;
    height: 105px;
    width: 100%;
    border-radius: 8px;
    filter: blur(1.2px);
    -webkit-filter: blur(1.2px);
}
/* Dashboard Hashtag */
.hashtag-card {
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0px;
    font-size: 18px;
    font-weight: 600;
    background-color: var(--white-color);
}
.hashtag-card>.row {
    margin: 0;
}
.hashtag-card>.row .col,
.hashtag-card>.row .col-2
.hashtag-card>.row .col-10 {
    padding: 0;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: start;
}
/* Dashboard Artist */
.artist-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.artist-image {
    height: 100px;
    width: 100%;
    border-radius: 10px;
}
@media (max-width: 1440px) {
    .artist-image {
        height: 70px;
        border-radius: 10px;
    }
    .wallet-image {
        height: 110px;
        border-radius: 15px;
    }
}
@media (max-width: 1260px) {
    .wallet-image {
        height: 50px;
        border-radius: 15px;
    }
    .wallet-image {
        height: 70px;
        border-radius: 10px;
    }
}
@media (max-width: 991px) {
    .wallet-image {
        height: 140px;
        border-radius: 15px;
    }
}
/* Demo Mode Box */
.demo-mode-box {
    background: var(--status-amber-bg);
    border: 1px solid var(--status-amber);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--status-amber);
    padding: 5px 14px;
    transition: all 0.18s;
}

.demo-mode-box:hover {
    background: var(--status-amber);
    color: var(--white-color);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.status-badge--green { background: var(--status-green-bg); color: var(--status-green-ink); }
.status-badge--red   { background: var(--status-red-bg);   color: var(--status-red-ink); }
.status-badge--amber { background: var(--status-amber-bg); color: var(--status-amber-ink); }
.status-badge--blue  { background: var(--status-blue-bg);  color: var(--status-blue-ink); }
.status-badge--purple { background: var(--status-purple-bg); color: var(--status-purple-ink); }
.status-badge--gray  { background: var(--bg-surface-alt);  color: var(--text-secondary); border: 1px solid var(--border-default); }

/* ── Story card (sc-*) ── */
.sc {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.sc:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.22);
}

.sc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.sc:hover .sc-bg {
    transform: scale(1.06);
}

.sc-gradient {
    position: absolute;
    inset: 0;
    background: var(--sc-img-gradient);
}

.sc-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.sc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--sc-glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--sc-text-img);
    border: 1px solid var(--sc-glass-border);
}

.sc-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
}
.sc:hover .sc-actions {
    opacity: 1;
    transform: translateY(0);
}

.sc-action-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--sc-glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--sc-glass-border);
    color: var(--sc-text-img) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.18s, border-color 0.18s;
}
.sc-action-btn:hover {
    background: var(--sc-glass-hover);
}
.sc-action-danger:hover {
    background: rgba(var(--status-red-rgb), 0.70);
    border-color: rgba(var(--status-red-rgb), 0.90);
}

.sc-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sc-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--sc-play-border);
    color: var(--sc-text-img);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}
.sc-play:hover {
    background: var(--sc-play-hover);
    transform: translate(-50%, -50%) scale(1.08);
}

.sc-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    z-index: 2;
}

.sc-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.sc-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--sc-text-img);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-desc {
    font-size: 12px;
    color: var(--sc-desc-img);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
}

.sc-date {
    font-size: 11px;
    color: var(--sc-date-img);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sc .show-btn,
.sc .hide-btn {
    font-size: 11px;
    padding: 2px 9px;
    flex-shrink: 0;
}

/* Show / Hide buttons — soft tinted chips at rest, solid on hover */
.show-btn,
.hide-btn,
.info-btn {
    font-weight: 600;
    border: 1px solid transparent;
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.show-btn { background: var(--status-green-bg); color: var(--status-green-ink); border-color: var(--status-green-line); }
.show-btn:hover { background: var(--status-green); border-color: var(--status-green); color: var(--text-on-accent); }

.hide-btn { background: var(--status-red-bg); color: var(--status-red-ink); border-color: var(--status-red-line); }
.hide-btn:hover { background: var(--status-red); border-color: var(--status-red); color: var(--white-color); }

.info-btn { background: var(--accent-subtle) !important; color: var(--status-green-ink) !important; border-color: var(--status-green-line) !important; }
.info-btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--text-on-accent) !important; }

.show-btn:focus, .hide-btn:focus, .info-btn:focus { outline: none; box-shadow: none; }

/* Pill action buttons */
.btn-table-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.02em;
    border-radius: 20px;
    border: 1.5px solid;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    vertical-align: middle;
}

.btn-table-pill:focus { outline: none; box-shadow: none; }
.btn-table-pill:hover { text-decoration: none; }

.btn-table-pill:not([class*="pill-"]),
.btn-table-pill.pill-primary { color: var(--status-green-ink); border-color: var(--status-green-line); background: var(--accent-subtle); }
.btn-table-pill:not([class*="pill-"]):hover,
.btn-table-pill.pill-primary:hover { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

.btn-table-pill.pill-warning { color: var(--status-amber-ink); border-color: var(--status-amber-line); background: var(--status-amber-bg); }
.btn-table-pill.pill-warning:hover { background: var(--status-amber); color: #3D2800; border-color: var(--status-amber); }

.btn-table-pill.pill-success { color: var(--status-green-ink); border-color: var(--status-green-line); background: var(--status-green-bg); }
.btn-table-pill.pill-success:hover { background: var(--status-green); color: var(--text-on-accent); border-color: var(--status-green); }

.btn-table-pill.pill-danger { color: var(--status-red-ink); border-color: var(--status-red-line); background: var(--status-red-bg); }
.btn-table-pill.pill-danger:hover { background: var(--status-red); color: var(--white-color); border-color: var(--status-red); }
/* Installation */
.list-group-item {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    background-color: transparent;
}
.install-bg-img {
    text-align: center;
}
.install-bg-img img {
    max-width: 100%;
    height: auto;
}
.install-title {
    font-size: 42px;
    font-weight: bold;
}
.install_sub_title {
    font-size: 24px;
}
.install_text {
    font-size: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}
.install-list li {
    font-size: 20px;
    margin-bottom: 10px;
}
.install-list li:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}
.install-card {
    margin-left: 100px;
    margin-right: 100px;
}
@media (max-width: 1024px) {
    .install-bg-img {
        display: none !important;
    }
}
.install-footer {
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--black-color);
    background-color: var(--primary-color);
}
.install-footer a {
    color: var(--white-color);
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}
.install-footer a:hover {
    color: var(--black-color);
}
.install-social-icons {
    margin-top: 10px;
}
.install-social-icons a {
    color: var(--white-color);
    font-size: 20px;
    text-decoration: none;
}
.install-social-icons a:hover {
    color: var(--black-color);
}
.install-footer .content {
    position: relative;
    z-index: 1;
}
/* btn Install */
.btn-install {
    background: var(--primary-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 10px 40px;
}
.btn-install:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}
/* btn Install Cancel */
.btn-install-cancel {
    background: var(--black-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 10px 40px;
}
.btn-install-cancel:hover {
    color: var(--black-color);
    background: transparent;
    border-color: var(--black-color);
}
/* Color Picker */
.colorpicker-component {
    display: flex;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
}
.colorpicker {
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
.hexcolor {
    border: none;
    padding: 10px;
    width: 100px;
    outline: none;
}
/* Custom-Card */
.custom-card {
    background-color: var(--assest-color);
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}
.custom-card .card-body h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}
.custom-card .card-body span {
    font-size: 1.2rem;
    color: var(--body-color);
    font-weight: bold;
}
.custom-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}
.card-icon-primary {
    padding: 15px;
    border-radius: 50%;
    color: var(--white-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color) !important;
}
.card-color-primary:hover {
    border-color: var(--primary-color);
}
.card-color-primary .card-body {
    color: var(--primary-color);
}
/* Profile-Card */
.profile-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--assest-color);
}
.profile-header {
    height: 80px;
    background: linear-gradient(135deg,rgb(51, 45, 110), #d16ba5, #ff758c);
}
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 10%;
    border: 4px solid var(--white-color);
    object-fit: cover;
    margin-top: -60px;
}
.profile-details p {
    font-size: 16px;
}
/* Earning-Card */
.card-earning {
    background-color: var(--assest-color);
    border-radius: 10px;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    width: 100%;
}
.card-align {
    display: flex;
    justify-content: space-between;
}
.earning-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}
.earning-amount {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}
.earning-divider {
    width: 2px;
    height: 60px;
    background-color: var(--body-color);
    margin: 0 15px;
}
/* Landscape Card */
.landscape-card {
    background-color: var(--assest-color) !important;
    padding: 8px;
    margin: 10px 0;
    border: 3px solid transparent;
}
.landscape-card:hover {
    border: 3px solid var(--primary-color);
}
.wallet-image {
    height: 180px;
    width: 180px;
    border-radius: 10px;
}
.landscape-card-title {
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.landscape-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.landscape-card-border {
    border-top: 2px dashed var(--primary-color) !important;
    margin: 10px 0px;
}
.landscape-card .ribbon-top-left {
    top: -3px;
    left: -3px;
}
/* Info Window Card  */
.infowindow-card {
    font-family: Arial, sans-serif;
    background: var(--white-color);
    border-radius: 8px;
    width: 250px;
    height: 240px;
    box-shadow: 0px 4px 6px var(--black-50);
    overflow: hidden;
}

.infowindow-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 10px;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

.infowindow-header strong {
    font-size: 16px;
    margin-left: 4px;
}

.infowindow-header span {
    font-size: 16px;
    margin-left: 6px;
}

.infowindow-body {
    padding: 10px;
    font-size: 14px;
    color: var(--black-color);
}

.img-label {
    font-size: 14px;
    color: var(--black-color);
    margin-bottom: 5px;
    display: block;
}

.img-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}
/* Info Window Card End */

.notification_checkbox, .email_checkbox {
    height: 20px;
    width: 20px;
}

/* Map CSS */
#map {
    height: 500px;
    /* Adjust as needed */
    width: 100%;
}
.gm-ui-hover-effect {
    display: none !important;
}
.gm-style-iw-d {
    overflow: hidden !important;
}
.gm-style-iw-c{
    padding: 0 !important;
}
.gm-style-iw-ch {
    padding: 0 !important;
}

#map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
}
#map-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
#map-legend .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}
/* Map Css Ends */

/* Notes Css */
.note-item {
    background: var(--assest-color);
    border-left: 4px solid var(--primary-color) !important;
}
.note-text {
    font-size:14px;
    line-height:1.5;
}
/* Notes Css Complete */

.listitemClass {
    background-color: var(--assest-color);
    border: 1px solid var(--black-color);
    cursor: s-resize;
    font-size: 14px;
    padding: 3px;
}
.rotate {
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

/* ═══════════════════════════════════════════════════════
   INCHARGE LOGIN — Green Civic Command
   Palette: Department green (from theme-mapping)
   Modes: light (default) · dark [data-theme="dark"]
   ═══════════════════════════════════════════════════════ */

/* ── Full-screen stage ── */
.ic-page {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    font-family: 'Rubik', sans-serif;
    transition: background 0.4s;
}

/* ── Animated gradient blobs ── */
.ic-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: icDrift linear infinite;
}
.ic-blob-1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, var(--accent) 0%, var(--accent-deep) 80%);
    top: -200px; left: -180px;
    opacity: .22;
    animation-duration: 18s;
}
.ic-blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-bright) 0%, var(--accent-deep) 80%);
    bottom: -140px; right: -100px;
    opacity: .18;
    animation-duration: 14s;
    animation-delay: -6s;
}
.ic-blob-3 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--accent-vivid) 0%, var(--accent-deep) 80%);
    top: 45%; left: 65%;
    opacity: .14;
    animation-duration: 20s;
    animation-delay: -10s;
}
[data-theme="dark"] .ic-blob-1 { opacity: .16; }
[data-theme="dark"] .ic-blob-2 { opacity: .14; }
[data-theme="dark"] .ic-blob-3 { opacity: .11; }

@keyframes icDrift {
    0%   { transform: translate(0,    0)    scale(1); }
    25%  { transform: translate(30px,-40px) scale(1.06); }
    50%  { transform: translate(15px, 25px) scale(0.96); }
    75%  { transform: translate(-25px,10px) scale(1.03); }
    100% { transform: translate(0,    0)    scale(1); }
}

/* ── Hexagonal grid overlay ── */
.ic-hex {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath d='M30 2 L58 18 L58 50 L30 66 L2 50 L2 18 Z' fill='none' stroke='%2345AB51' stroke-width='0.5' stroke-opacity='0.10'/%3E%3Cpath d='M30 70 L58 86 L58 118 L30 134 L2 118 L2 86 Z' fill='none' stroke='%2345AB51' stroke-width='0.5' stroke-opacity='0.10'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 1;
    animation: icHexFade 8s ease-in-out infinite alternate;
}
@keyframes icHexFade {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

/* ── Floating orbs (decorative) ── */
.ic-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-bright-rgb),.25);
    pointer-events: none;
    animation: icOrb 6s ease-in-out infinite;
}
.ic-orb-1 { width: 10px; height: 10px; top: 18%; left: 12%; animation-delay: 0s; }
.ic-orb-2 { width: 6px;  height: 6px;  top: 70%; left: 8%;  animation-delay: -2s; }
.ic-orb-3 { width: 8px;  height: 8px;  top: 30%; right: 10%; animation-delay: -4s; }
.ic-orb-4 { width: 5px;  height: 5px;  top: 80%; right: 18%; animation-delay: -1.5s; }
.ic-orb-5 { width: 12px; height: 12px; top: 55%; left: 20%;  animation-delay: -3s; }
@keyframes icOrb {
    0%,100% { transform: translateY(0); opacity: .5; }
    50%      { transform: translateY(-14px); opacity: 1; }
}

/* ── Theme toggle ── */
.ic-thm {
    position: fixed;
    top: 18px; right: 18px;
    z-index: 20;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px;
    outline: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ic-thm:focus,
.ic-thm:focus-visible { outline: none; box-shadow: none; }
.ic-thm:hover { color: var(--accent); }
.ic-thm .ic-i-sun { display: none; }
[data-theme="dark"] .ic-thm .ic-i-sun  { display: inline; }
[data-theme="dark"] .ic-thm .ic-i-moon { display: none; }

/* ── Main card ── */
.ic-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 458px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-login);
    animation: icRise 0.55s cubic-bezier(0.16,1,0.3,1) both;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

@keyframes icRise {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ic-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--accent-bright-rgb),.18) 0%, transparent 50%, rgba(var(--accent-rgb),.12) 100%);
    pointer-events: none;
    z-index: -1;
    animation: icRing 4s ease-in-out infinite;
}
@keyframes icRing {
    0%,100% { opacity: .6; }
    50%      { opacity: 1; }
}

/* ── Card header band ── */
.ic-hdr {
    background: var(--bg-header-gradient);
    padding: 26px 30px 22px;
    position: relative;
    overflow: hidden;
}

/* portal badge */
.ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(var(--accent-bright-rgb),.14);
    border: 1px solid rgba(var(--accent-bright-rgb),.30);
    color: var(--accent-bright);
    font-size: 10.5px;
    font-weight: 500;
    padding: 4px 13px;
    border-radius: 20px;
    margin-top: 18px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ic-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-bright);
    animation: icPulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes icPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(.7); }
}

/* logo row */
.ic-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.ic-logo-ico {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(var(--accent-bright-rgb),.18);
    border: 1px solid rgba(var(--accent-bright-rgb),.28);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--accent-bright);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.ic-logo-ico:hover { transform: rotate(-8deg) scale(1.08); }
.ic-logo-img {
    width: 48px; height: 48px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(var(--accent-bright-rgb),.28);
    flex-shrink: 0;
}
.ic-logo-name {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-on-dark);
    line-height: 1.15;
}
.ic-logo-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 400;
}

/* ── Form area ── */
.ic-body {
    padding: 26px 30px 30px;
}
.ic-welcome {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: color 0.35s;
}
.ic-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    transition: color 0.35s;
}

/* ── Field group ── */
.ic-field {
    margin-bottom: 14px;
}
.ic-flabel {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: .02em;
    transition: color 0.35s;
}
.ic-finput-wrap {
    position: relative;
}
.ic-input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.35s, color 0.35s;
    appearance: none;
}
.ic-input::placeholder { color: var(--text-muted); }
.ic-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-bright-rgb),.18);
}
.ic-fico {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}
.ic-fico-eye {
    cursor: pointer;
    pointer-events: auto;
}
.ic-fico-eye:hover { color: var(--accent); }

/* ── Login button ── */
.ic-btn {
    width: 100%; height: 50px;
    border: none; border-radius: 11px;
    background: linear-gradient(130deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-on-accent);
    font-size: 14.5px; font-weight: 600; font-family: 'Rubik', sans-serif;
    cursor: pointer; letter-spacing: .25px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 20px;
    position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.ic-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translateX(-100%);
    pointer-events: none;
}
.ic-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(var(--accent-rgb),.28); }
.ic-btn:hover:not(:disabled)::after { transform: translateX(100%); transition: transform .55s; }
.ic-btn:focus,
.ic-btn:focus-visible { outline: none; box-shadow: none; }
.ic-btn:active:not(:disabled) { transform: translateY(0); }
.ic-btn:disabled { opacity: .75; cursor: default; transform: none; box-shadow: none; }
[data-theme="dark"] .ic-btn {
    background: linear-gradient(130deg, var(--accent-dark) 0%, var(--accent-deep) 100%);
    color: var(--white-color);
}
[data-theme="dark"] .ic-btn:hover:not(:disabled) {
    color: var(--white-color);
    box-shadow: 0 10px 28px rgba(var(--accent-rgb),.18);
}

/* ── Stats cards ── */
.ic-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 9px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-default);
    transition: border-color 0.35s;
}
.ic-stat {
    text-align: center;
    padding: 11px 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    transition: background 0.35s, border-color 0.35s, transform 0.2s;
}
.ic-stat:hover { transform: translateY(-2px); }
.ic-stat-val {
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color 0.35s;
}
.ic-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: .03em;
    transition: color 0.35s;
}

/* ── Trust strip ── */
.ic-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: nowrap;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-default);
    transition: border-color 0.35s;
}
.ic-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.35s;
}
.ic-trust-item i {
    color: var(--accent);
    font-size: 12px;
}

/* ── Demo notice (card footer strip) ── */
.ic-demo {
    padding: 12px 30px 14px;
    background: rgba(var(--accent-bright-rgb),.06);
    border-top: 1px solid rgba(var(--accent-bright-rgb),.18);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 9px;
    transition: background 0.35s, border-color 0.35s;
}
.ic-demo i { color: var(--accent-bright); flex-shrink: 0; }
.ic-demo a { color: var(--accent-bright); font-weight: 600; text-decoration: none; }
.ic-demo a:hover { text-decoration: underline; }
[data-theme="dark"] .ic-demo {
    background: rgba(var(--accent-bright-rgb),.08);
    border-top-color: rgba(var(--accent-bright-rgb),.22);
}

/* ── Copyright ── */
.ic-copy {
    position: fixed;
    bottom: 25px; left: 0; right: 0;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ic-copy-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .02em;
    transition: color 0.35s, background 0.35s, border-color 0.35s;
}
.ic-copy-brand {
    color: var(--accent);
    font-weight: 600;
}
/* Login CSS Ends */

/* Breadcrumb */
@keyframes saBcWrapIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}
@keyframes saBcItemIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.breadcrumb {
    background-color: var(--bg-surface) !important;
    border-radius: 10px;
    padding: 10px 16px !important;
    margin-bottom: 20px;
    border: 1px solid var(--border-default);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    gap: 2px;
    transition: background 180ms ease, color 180ms ease,
                transform  180ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 180ms ease;
    animation: saBcWrapIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.breadcrumb-item {
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: saBcItemIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.breadcrumb-item:nth-child(1) { animation-delay: 0.10s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.18s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.26s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.34s; }
.breadcrumb-item:nth-child(n+5) { animation-delay: 0.40s; }
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105" !important;   /* fa-angle-right */
    font-family: 'FontAwesome';
    font-weight: 900;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: var(--text-primary);
    opacity: 0.35;
    font-size: 12px;
    padding: 0 5px;
    float: none;
}
.breadcrumb-item a {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 150ms ease;
}
.breadcrumb-item a:hover       { opacity: 0.72; text-decoration: none; }
.breadcrumb-item.active        { color: var(--text-primary) !important; opacity: 0.55; font-weight: 500; }

[data-theme="dark"] .breadcrumb {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-default);
    box-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); opacity: 0.6; }
[data-theme="dark"] .breadcrumb-item a                          { color: var(--accent); }
[data-theme="dark"] .breadcrumb-item.active                     { color: var(--text-primary) !important; }

/* ── PAGE-LOAD ENTRANCE ANIMATIONS ─────────────────────────────────
   Mirrors admin.css pattern so incharge panel matches admin behavior.
   All animation rules are guarded with prefers-reduced-motion: no-preference
   so users who enable "Reduce Motion" in their OS never see these.
   ─────────────────────────────────────────────────────────────────────── */

@keyframes saSidebarEnter {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes saSideItemIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes saHdrEnter {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes saDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes sacCardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes saRowIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Sidebar — desktop only (mobile uses CSS class toggle, not page-load) */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .sidebar {
        animation: saSidebarEnter 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .sidebar .side-head {
        animation: saSideItemIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
    }
    .sidebar .side-menu > *:nth-child(1)    { animation: saSideItemIn 0.30s ease 0.12s both; }
    .sidebar .side-menu > *:nth-child(2)    { animation: saSideItemIn 0.30s ease 0.17s both; }
    .sidebar .side-menu > *:nth-child(3)    { animation: saSideItemIn 0.30s ease 0.22s both; }
    .sidebar .side-menu > *:nth-child(4)    { animation: saSideItemIn 0.30s ease 0.27s both; }
    .sidebar .side-menu > *:nth-child(5)    { animation: saSideItemIn 0.30s ease 0.32s both; }
    .sidebar .side-menu > *:nth-child(6)    { animation: saSideItemIn 0.30s ease 0.37s both; }
    .sidebar .side-menu > *:nth-child(7)    { animation: saSideItemIn 0.30s ease 0.42s both; }
    .sidebar .side-menu > *:nth-child(8)    { animation: saSideItemIn 0.30s ease 0.47s both; }
    .sidebar .side-menu > *:nth-child(9)    { animation: saSideItemIn 0.30s ease 0.52s both; }
    .sidebar .side-menu > *:nth-child(10)   { animation: saSideItemIn 0.30s ease 0.57s both; }
    .sidebar .side-menu > *:nth-child(11)   { animation: saSideItemIn 0.30s ease 0.62s both; }
    .sidebar .side-menu > *:nth-child(12)   { animation: saSideItemIn 0.30s ease 0.67s both; }
    .sidebar .side-menu > *:nth-child(n+13) { animation: saSideItemIn 0.30s ease 0.70s both; }
}

/* ── Header, content blocks, table rows ── */
@media (prefers-reduced-motion: no-preference) {

    /* Header slides down on page load */
    .header {
        animation: saHdrEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* Page title fades in from left (matches header .page-title pattern) */
    .header .page-title {
        animation: saSideItemIn 0.40s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    }

    /* Dropdown menus pop in when opened */
    .dropdown-menu {
        animation: saDropIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* Content blocks — works across ALL incharge modules automatically */
    .filter-bar,
    .page-search {
        animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
    }

    .export-toolbar {
        animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
    }

    .table-responsive {
        animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
    }

    .custom-border-card {
        animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
    }

    /* Table row — class added via DataTables drawCallback */
    .sa-row-animate {
        animation: saRowIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* ── Dashboard module ── */
    .icb-topbar {
        animation: saHdrEnter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .icb-quick-row {
        animation: sacCardIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
    }
    .icb-kpi-grid .icb-kpi-card:nth-child(1) { animation: sacCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
    .icb-kpi-grid .icb-kpi-card:nth-child(2) { animation: sacCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.13s both; }
    .icb-kpi-grid .icb-kpi-card:nth-child(3) { animation: sacCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
    .icb-kpi-grid .icb-kpi-card:nth-child(4) { animation: sacCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.23s both; }
    .icb-kpi-grid .icb-kpi-card:nth-child(5) { animation: sacCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }

    .icb-bento .icb-card:nth-child(1)    { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
    .icb-bento .icb-card:nth-child(2)    { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
    .icb-bento .icb-card:nth-child(3)    { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }
    .icb-bento .icb-card:nth-child(4)    { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
    .icb-bento .icb-card:nth-child(5)    { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both; }
    .icb-bento .icb-card:nth-child(6)    { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
    .icb-bento .icb-card:nth-child(n+7)  { animation: sacCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both; }

    /* ── Story module — grid cards stagger in ── */
    .row > div:nth-child(1) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
    .row > div:nth-child(2) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both; }
    .row > div:nth-child(3) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
    .row > div:nth-child(4) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
    .row > div:nth-child(5) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
    .row > div:nth-child(6) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
    .row > div:nth-child(7) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
    .row > div:nth-child(8) .sc  { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both; }
    .row > div:nth-child(n+9) .sc { animation: sacCardIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }
}

/* Select2 overrides (replaces inline styles previously in page-app.blade.php) */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 1px solid var(--border-default) !important;
    background: var(--bg-input) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    height: 38px !important;
}

.select2-container .select2-selection--multiple {
    height: auto !important;
    min-height: 38px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--border-focus) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--accent-subtle) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: var(--text-primary) !important;
    font-size: 13px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--text-muted) !important;
    background: none !important;
    border: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    order: -1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--text-primary) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-dropdown {
    background: var(--bg-surface) !important;
    border-color: var(--border-default) !important;
    box-shadow: var(--shadow-dropdown) !important;
}

.select2-results__option {
    color: var(--text-primary) !important;
    background-color: var(--bg-surface) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-muted) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--nav-active-bg) !important;
    color: var(--nav-active-color) !important;
}

.select2-search--dropdown .select2-search__field {
    background: var(--bg-input) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    line-height: 36px !important;
}

/* Filter-sort Select2 — declared after global block to guarantee cascade win */
.filter-sort .select2-container {
    flex: 1;
    min-width: 90px;
    width: auto !important;
    align-self: stretch;
    padding: 8px 10px;
}

.filter-sort .select2-container .select2-selection--single,
.filter-sort .select2-container .select2-selection--multiple {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: 100% !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

.filter-sort .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: var(--font) !important;
    padding: 0 28px 0 10px !important;
    line-height: normal !important;
    flex: 1;
}

.filter-sort .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 6px !important;
    position: absolute !important;
}

/* Theme transition */
.sidebar,
.header,
.right-content,
body,
.custom-card,
.custom-border-card,
.table,
.form-control,
.dropdown-menu,
.sc {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {

    .sidebar,
    .header,
    .right-content,
    body,
    .custom-card,
    .custom-border-card,
    .table,
    .form-control,
    .dropdown-menu,
    .sidebar .side-menu a,
    .btn-default,
    .btn-cancel {
        transition: none !important;
    }

    .modal.fade .modal-dialog {
        transform: none !important;
        transition: none !important;
    }

    .sidebar,
    .sidebar .side-head,
    .sidebar .side-menu > *,
    .header,
    .header .page-title,
    .dropdown-menu,
    .filter-bar,
    .export-toolbar,
    .page-search,
    .table-responsive,
    .custom-border-card,
    .sa-row-animate,
    .breadcrumb,
    .breadcrumb-item,
    .dept-card,
    .sc {
        animation: none !important;
    }

}

/* ══════════════════════════════════════════════════════════
   IN-CHARGE DASHBOARD v2 (icb-*) — SaaS bento layout.
   Deliberately distinct from the admin dashboard's dash-*
   components: slim topbar (not a hero band), sparkline KPI
   cards with trend deltas, and a CSS-grid bento of cards
   instead of Bootstrap row/col stacking.
   ══════════════════════════════════════════════════════════ */

/* ── Top bar ── */
.icb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}
.icb-greeting {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.icb-wave { font-size: 18px; display: inline-block; animation: icb-wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes icb-wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
}
.icb-greet-sub {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}
.icb-dept-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 2px 10px 2px 6px;
    font-weight: 600;
    color: var(--text-secondary);
}
.icb-dept-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.icb-topbar-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.icb-open-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}
.icb-open-pill i { font-size: 8px; }
.icb-open-pill.is-open i { color: var(--status-green); }
.icb-open-pill.is-closed i { color: var(--status-red); }
.icb-open-pill small { font-weight: 500; color: var(--text-muted); margin-left: 2px; }

.icb-week-strip { display: flex; gap: 4px; }
.icb-week-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid transparent;
}
.icb-week-dot.is-on { background: var(--accent-subtle); color: var(--accent); }
.icb-week-dot.is-today { border-color: var(--accent); }

/* ── Quick actions ── */
.icb-quick-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.icb-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 7px 16px 7px 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.icb-quick-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}
.icb-quick-ico {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.icb-quick-ico--blue   { background: var(--status-blue-bg);   color: var(--status-blue); }
.icb-quick-ico--purple { background: var(--status-purple-bg); color: var(--status-purple); }
.icb-quick-ico--amber  { background: var(--status-amber-bg); color: var(--status-amber); }
.icb-quick-ico--green  { background: var(--status-green-bg); color: var(--status-green); }
.icb-quick-ico--red    { background: var(--status-red-bg);   color: var(--status-red); }

/* ── KPI sparkline row ── */
.icb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}
@media (max-width: 1200px) { .icb-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .icb-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.icb-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 16px 16px 0;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.icb-kpi-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.icb-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.icb-kpi-ico {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.icb-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
}
.icb-kpi-trend i { font-size: 9px; }
.icb-kpi-trend--up   { background: var(--status-green-bg); color: var(--status-green-ink); }
.icb-kpi-trend--down { background: var(--status-red-bg);  color: var(--status-red-ink); }
.icb-kpi-trend--flat { background: var(--bg-surface-alt); color: var(--text-muted); }
.icb-kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.icb-kpi-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
    margin-bottom: 6px;
}
.icb-spark { margin: 0 -4px; }
.icb-kpi-footnote {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin: 4px 2px 18px;
}

/* ── Bento grid ── */
.icb-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.icb-span-4  { grid-column: span 4; }
.icb-span-5  { grid-column: span 5; }
.icb-span-7  { grid-column: span 7; }
.icb-span-8  { grid-column: span 8; }
.icb-span-12 { grid-column: span 12; }
@media (max-width: 1200px) {
    .icb-span-4, .icb-span-5, .icb-span-7, .icb-span-8 { grid-column: span 12; }
}

.icb-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.icb-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-default);
}
.icb-card-head h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.icb-card-head--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.icb-card-head-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icb-card-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0 0 0 40px;
}
.icb-card-ico {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.icb-card-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.icb-card-link i { font-size: 10px; }
.icb-card-body { padding: 16px 18px 18px; flex: 1; }

/* ── Chart range toggle (pill buttons) ── */
.icb-seg-toggle {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.icb-seg-toggle button {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icb-seg-toggle button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
}

/* ── SLA gauge legend ── */
.icb-sla-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}
.icb-sla-legend span { display: inline-flex; align-items: center; gap: 6px; }
.icb-sla-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ── Priority segmented bar ── */
.icb-seg-bar {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-surface-alt);
    margin-bottom: 16px;
}
.icb-seg-bar span { height: 100%; transition: width 0.4s ease; }
.icb-seg-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.icb-seg-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.icb-seg-legend-item i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.icb-seg-legend-item b { margin-left: auto; color: var(--text-primary); font-weight: 800; }

/* ── Sub in-charge workload ── */
.icb-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--status-amber-bg);
    border: 1px solid var(--status-amber-line);
    color: var(--status-amber-ink);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 12px;
}
.icb-workload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
}
.icb-workload-row + .icb-workload-row { border-top: 1px solid var(--border-default); }
.icb-workload-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface-alt);
}
.icb-workload-name {
    width: 96px;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.icb-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 6px;
    background: var(--bg-surface-alt);
    overflow: hidden;
}
.icb-bar-fill { height: 100%; border-radius: 6px; background: var(--accent); transition: width 0.4s ease; }
.icb-workload-count {
    width: 26px;
    flex-shrink: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Recent complaints list ── */
.icb-recent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none !important;
    color: inherit !important;
}
.icb-recent-row + .icb-recent-row { border-top: 1px solid var(--border-default); }
.icb-recent-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.icb-recent-body { flex: 1; min-width: 0; }
.icb-recent-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.icb-recent-row:hover .icb-recent-title { color: var(--accent); }
.icb-recent-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.icb-recent-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}
.icb-recent-time { font-size: 10.5px; color: var(--text-muted); }

/* ── Recent activity timeline ── */
.icb-timeline { position: relative; padding-left: 4px; }
.icb-tl-item {
    position: relative;
    padding: 0 0 16px 20px;
    border-left: 2px solid var(--border-default);
}
.icb-tl-item:last-child { border-color: transparent; padding-bottom: 0; }
.icb-tl-dot {
    position: absolute;
    left: -6px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--accent-subtle);
}
.icb-tl-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
}
.icb-tl-time { font-size: 11px; color: var(--text-muted); }

/* ── Reviews snapshot ── */
.icb-reviews-body {
    display: flex;
    gap: 24px;
    align-items: stretch;
}
.icb-review-score-block {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    border-right: 1px solid var(--border-default);
    padding-right: 24px;
}
.icb-review-score-num { font-size: 36px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.icb-review-stars { color: var(--status-amber); font-size: 14px; }
.icb-review-count { font-size: 11.5px; color: var(--text-muted); }
.icb-review-list {
    flex: 1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.icb-review-item {
    flex: 0 0 240px;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}
.icb-review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.icb-review-item-rate { color: var(--status-amber-ink); display: inline-flex; align-items: center; gap: 3px; }
.icb-review-item p { font-size: 12px; color: var(--text-secondary); margin: 0; }

.icb-empty { font-size: 12.5px; color: var(--text-muted); text-align: center; padding: 20px 0; margin: 0; }

@media (max-width: 700px) {
    .icb-reviews-body { flex-direction: column; }
    .icb-review-score-block { border-right: none; border-bottom: 1px solid var(--border-default); padding-right: 0; padding-bottom: 16px; flex-direction: row; justify-content: center; gap: 10px; }
}

/* # sourceMappingURL=style.css.map */