﻿:root {
    /* ===== BRAND PALETTE ===== */
    --sena-primary:   #00BCA7;   /* teal — ปุ่มหลัก, header accent */
    --sena-navy:      #424656;   /* dark navy — sidebar alt, heavy bg */
    --sena-dark:      #191C1D;   /* near-black */
    --sena-red:       #FF3C00;   /* error / danger */
    --sena-red-dark:  #DE3400;   /* error hover */
    --sena-green:     #00BC79;   /* success / secondary green */
    --sena-muted:     #ABB0BC;   /* muted text, borders */
    --sena-surface:   #E7E8E9;   /* light gray surface, input bg */

    /* ===== PRIMARY COLOR SYSTEM ===== */
    --sena-primary-dark: #009e8c;
    --sena-primary-light: #33d6cc;
    --sena-secondary: #2C55FF;
    /* ===== GRADIENTS (single source of truth) ===== */
    --gradient-primary: linear-gradient(89.2deg, #00BCA7 36.69%, #1787D5 72.99%, #0055FF 113.22%);
    --gradient-header: linear-gradient(89.2deg, #00BCA7 36.69%, #1787D5 72.99%, #0055FF 113.22%);
    --gradient-sidebar: linear-gradient(180deg, #00BCA7 -0.16%, #0055FF 98.69%);
    /* ===== SIDEBAR ACTIVE ===== */
    --sidebar-active-text: #005c53;
    /* ===== LAYOUT ===== */
    --sena-sidebar-width: 260px;
    --sena-sidebar-collapsed: 0px;
    --sena-topbar-height: 56px;
    /* ===== BACKGROUND ===== */
    --body-bg: #f4f6fb;
    --surface-bg: #ffffff;
    --surface-soft: #f8fafc;
    --color-bg-hover: #ecfbfa;
    --color-bg-striped: #f3fffec7;
    --color-bg-muted: #fafafa;
    --input-bg: #ffffff;
    /* ===== BORDER ===== */
    --border-color: #e4eaf0;
    --border-color-soft: #eaeff5;
    --border-color-strong: var(--sena-muted);   /* #ABB0BC */
    /* ===== TEXT ===== */
    --text-main: #252525;
    --text-sub: #4b5563;
    --text-muted: var(--sena-muted);   /* #ABB0BC */
    --sena-text-light: rgba(255, 255, 255, 0.9);
    --sena-text-muted: rgba(255, 255, 255, 0.65);
    /* ===== BUTTON SYSTEM ===== */
    --btn-radius: 59px;
    --btn-font-size: 20px;
    --btn-padding-y: 6px;
    --btn-padding-x: 16px;
    --btn-min-height: 40px;
    /* ===== COLOR (GLOBAL USE) ===== */
    --color-primary: var(--sena-primary);
    --color-primary-hover: var(--sena-primary-dark);
    --color-primary-hover-alt: var(--sena-primary-dark);
    --color-border: var(--border-color);
    --color-border-soft: var(--border-color-soft);
    --color-text: var(--text-main);
    --color-text-muted: var(--text-sub);
    --color-white: #fff;
    /* ===== STATUS COLOR ===== */
    --color-success: var(--sena-green);      /* #00BC79 */
    --color-success-soft: #e6faf5;
    --color-warning: #f59e0b;
    --color-warning-soft: #fef3c7;
    --color-info: #2C55FF;
    --color-info-soft: #eff2ff;
    --color-danger: var(--sena-red);         /* #FF3C00 */
    --color-danger-dark: var(--sena-red-dark); /* #DE3400 */
    --color-danger-soft: #fff0ec;
    /* ===== RADIUS ===== */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    /* ===== SHADOW ===== */
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card: var(--card-shadow);
    --shadow-button: 0 4px 10px rgba(24, 183, 181, 0.15);
    --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-modal: 0 8px 40px rgba(0, 0, 0, 0.22);
    /* ===== FOCUS ===== */
    /*    --focus-ring: 0 0 0 4px rgba(24, 183, 181, 0.12);*/
    --focus-ring-strong: 0 0 0 4px rgba(24, 183, 181, 0.14);
}
/* ── Hugeicons global alignment fix ── */
.hgi-stroke {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

body.page-body {
/*    background: var(--body-bg);*/
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    font-size: 0.93rem;
    color: var(--text-main);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sena-sidebar-width);
    min-width: var(--sena-sidebar-width);
    min-height: 100vh;
    background: var(--sena-sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    box-sizing: border-box;
    flex-shrink: 0;
}

    .sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.25);
        border-radius: 2px;
    }

/* Sidebar Header / Brand */
.sidebar-header {
    padding: 0 0 18px 0;
    border-bottom: 5px solid rgba(255,255,255,0.18);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.sidebar-header {
    background: transparent;
    margin: -18px -14px 14px -14px;
    padding: 2px 15px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    text-decoration: none;
    color: #fff;
}

.brand-logo {
    flex-shrink: 0;
    width: 100%;
/*    background: #fff;*/
    border-radius: 6px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  /*  box-shadow: 0 2px 6px rgba(0,0,0,0.12);*/
}

/*.brand-logo img {
    height: 36px;
    width: auto;
}*/

.brand-logo img {
    height: 45px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
}

.brand-sub {
    color: rgba(255,255,255,0.78);
    font-size: 0.62rem;
    letter-spacing: 3px;
    font-weight: 400;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 0.25rem 0;
    flex: 1;
}

    .sidebar-menu .nav-item {
        list-style: none;
        margin-bottom: 8px;
    }

    .sidebar-menu .nav-link {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 5px 12px;
        color: rgba(255,255,255,0.92);
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 20px;
        font-weight: 400;
        border: none;
        background: transparent;
        width: 100%;
        text-align: left;
        cursor: pointer;
        position: relative;
        border-radius: 8px;
    }

        .sidebar-menu .nav-link i:first-child {
            width: 22px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        /* Dual icon: outline (default) / solid (active) */
        .sidebar-menu .nav-link .icon-active  { display: none; }
        .sidebar-menu .nav-link .icon-default { display: inline; }
        .sidebar-menu .nav-link.active .icon-default { display: none; }
        .sidebar-menu .nav-link.active .icon-active {
            display: inline;
            color: var(--sena-primary);
        }

        .sidebar-menu .nav-link span {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-menu .nav-link:hover {
            background: rgba(255,255,255,0.1);
            color: #fff;
        }

        .sidebar-menu .nav-link.active {
            background: #ffffff;
            color: var(--sena-primary);
            box-shadow: none;
        }

            .sidebar-menu .nav-link.active i,
            .sidebar-menu .nav-link.active .submenu-arrow {
                color: var(--sena-primary);
            }

/* Submenu arrow */
.submenu-arrow {
    font-size: 0.7rem !important;
    width: auto !important;
    transition: transform 0.2s ease;
    margin-left: auto;
    margin-right: 2px;
    color: rgba(255,255,255,0.85);
}

.nav-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(90deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 4px 0;
    margin: 4px 0 0 0;
    background: transparent;
    border-left: 1.5px solid rgba(255,255,255,0.4);
    margin-left: 31px;
    padding-left: 6px;
}

    .submenu li {
        margin-bottom: 2px;
    }

        .submenu li a {
            display: block;
            padding: 5px 8px 5px 14px;
            color: rgba(255,255,255,0.65);
            text-decoration: none;
            font-size: 20px;
            font-weight: 400;
            border-radius: 6px;
            transition: color 0.15s ease, background 0.15s ease;
            position: relative;
        }

            .submenu li a:hover {
                color: #fff;
                background: rgba(255,255,255,0.1);
            }

            .submenu li a.active {
                color: #fff;
                background: transparent;
                font-weight: 400;
            }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: var(--sena-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.page-entering {
    animation: page-enter 0.28s ease both;
    overflow: clip; /* prevent translateY from triggering body scrollbar → table scroll flash */
}

@keyframes page-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Button ripple ── */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: radial-gradient(circle,
                rgba(255, 255, 255, 0.45) 0%,
                rgba(255, 255, 255, 0.25) 60%,
                rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    will-change: transform, opacity;
    animation: ripple-anim 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* ปุ่มพื้นอ่อน (outline/cancel) ใช้ ripple สีเข้มแทน */
.btn-outline-gradient .ripple,
.btn-cancel .ripple,
.btn-light .ripple,
.btn-outline-secondary .ripple {
    background: radial-gradient(circle,
                rgba(0, 0, 0, 0.14) 0%,
                rgba(0, 0, 0, 0.07) 60%,
                rgba(0, 0, 0, 0) 100%);
}

@keyframes ripple-anim {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.modal .reveal,
.modal .form-section-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* ── Stagger animation ── */
@keyframes stagger-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.admin-table tbody tr,
.lp-table tbody tr {
    opacity: 0;
    animation: stagger-in 0.28s ease both;
    animation-delay: calc(var(--si) * 50ms);
    transition: box-shadow 0.15s ease;
}

.admin-table tbody tr:hover td,
.lp-table tbody tr:hover td {
    box-shadow: inset 0 2px 0 rgba(0,188,167,0.12),
                inset 0 -2px 0 rgba(0,188,167,0.12);
}

/* ── View Transitions API (Chrome 111+) ── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 0.25s ease both vt-fade-out;
}

::view-transition-new(root) {
    animation: 0.25s ease both vt-fade-in;
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes vt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Top Navbar */
.top-navbar {
    height: var(--sena-topbar-height);
    background: white;
    border-bottom: 1px solid var(--border-color-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sidebar-toggle {
    color: #555;
    font-size: 1.1rem;
    padding: 0.25rem;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}

    .sidebar-toggle:hover {
        color: var(--sena-primary);
    }

.breadcrumb {
    font-size: 19px;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--sena-primary);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--sena-primary-dark);
    }


/* ── Topbar User Button ── */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 14px 0px 6px;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.topbar-user-btn::after {
    color: var(--text-muted);
    margin-left: 2px;
}

.topbar-user-btn:hover {
    background: var(--body-bg);
}

/* ── Avatar circle ── */
.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sena-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}

.topbar-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 18px;
    flex-shrink: 0;
}

.topbar-user-info {
    text-align: left;
    line-height: 1.2;
}

.topbar-user-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
}

.topbar-user-role {
    font-size: 18px;
    color: var(--text-muted);
}

/* ── Topbar Dropdown ── */
.topbar-dropdown {
    min-width: 230px;
    border-radius: 16px;
    border: 1px solid var(--border-color-soft);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px;
    margin-top: 6px;
}

.topbar-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 12px 10px;
}

.topbar-dd-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.topbar-dd-email {
    font-size: 13px;
    color: var(--sena-primary);
    margin-top: 2px;
}

.topbar-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 18px;
    color: var(--text-main);
    transition: background 0.15s;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.topbar-dd-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.topbar-dd-item:hover {
    background: var(--body-bg);
    color: var(--sena-primary);
}

.topbar-dd-item:hover i {
    color: var(--sena-primary);
}

.topbar-dd-arrow {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    width: auto !important;
}

.topbar-dd-logout {
    color: var(--sena-red) !important;
}

.topbar-dd-logout i {
    color: var(--sena-red) !important;
}

.topbar-dd-logout:hover {
    background: var(--color-danger-soft) !important;
    color: var(--sena-red) !important;
}

/* Page Content */
.page-content {
    padding: 1.5rem;
    flex: 1;
}

/* ============================================================
   GRADIENT / LOADING
   ============================================================ */
.gradient-box {
    background: linear-gradient(135deg, var(--sena-primary), var(--sena-primary-dark));
    border-radius: 20px;
}

#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    #loading-overlay.active {
        display: flex;
    }

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    animation: loadingPulse 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(.88); opacity: .65; }
}

/* ============================================================
   RESPONSIVE - Sidebar collapse
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
    }

        .sidebar.show {
            width: var(--sena-sidebar-width);
            min-width: var(--sena-sidebar-width);
            padding: 18px 14px;
            pointer-events: auto;
        }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 1rem;
    }

    .top-navbar {
        padding: 0 1rem;
    }
}

body.sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
}
.sidebar {
    background: var(--sena-primary) !important;
    overflow: hidden;
}

/*.sidebar-header {
    background: transparent;
    margin: -18px -14px 14px -14px;
    padding: 18px 14px;
}*/



/* ===== GLOBAL BUTTON SYSTEM ===== */


button,
.btn {
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
    min-height: var(--btn-min-height);
}

.btn-sm {
    font-size: 16px;
    min-height: auto;
    padding: 4px 12px;
}

.btn-lg {
    font-size: 20px;
    padding: 10px 22px;
}
/* ── Primary: solid fill ── */
.btn-gradient,
.btn-save,
.btn-search-member,
.btn-view-all-member {
    background: var(--sena-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--btn-radius) !important;
    transition: all 0.25s ease !important;
}

.btn-gradient:hover,
.btn-save:hover,
.btn-search-member:hover,
.btn-view-all-member:hover {
    background: var(--sena-primary-dark) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* ── Secondary: solid border ── */
.btn-outline-gradient,
.btn-cancel {
    background: #fff !important;
    border: 1.5px solid var(--sena-primary) !important;
    color: var(--sena-primary) !important;
    border-radius: var(--btn-radius) !important;
    transition: all 0.25s ease !important;
}

.btn-outline-gradient:hover,
.btn-cancel:hover {
    background: var(--sena-primary) !important;
    color: #fff !important;
}

/* ── Bootstrap override ── */
.btn-outline-primary {
    --bs-btn-color:              var(--sena-primary);
    --bs-btn-border-color:       var(--sena-primary);
    --bs-btn-hover-color:        #fff;
    --bs-btn-hover-bg:           var(--sena-primary);
    --bs-btn-hover-border-color: var(--sena-primary);
    --bs-btn-focus-shadow-rgb:   24, 183, 181;
    --bs-btn-active-color:       #fff;
    --bs-btn-active-bg:          var(--sena-primary);
    --bs-btn-active-border-color:var(--sena-primary);
    --bs-btn-disabled-color:     var(--sena-primary);
    --bs-btn-disabled-bg:        transparent;
    --bs-btn-disabled-border-color: var(--sena-primary);
}

/* =====================================================
   BADGE SYSTEM
   Base:  class="lp-badge lp-badge-teal"
   สีทั้งหมดมาจาก project palette ด้านบน
   ===================================================== */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    border: 1.5px solid transparent;
    line-height: 1.4;
}

/* Teal — primary #00BCA7 */
.lp-badge-teal   { background: rgba(0,188,167,.15); color: #007a6e; }

/* Green — secondary #00BC79 */
.lp-badge-green  { background: rgba(0,188,121,.15); color: #007a4e; }

/* Blue */
.lp-badge-blue   { background: rgba(44,85,255,.12); color: #1a3ecc; }

/* Red — danger #FF3C00 */
.lp-badge-red    { background: rgba(255,60,0,.12);  color: #c22e00; }

/* Amber / Warning */
.lp-badge-amber,
.lp-badge-warning { background: rgba(217,119,6,.12); color: #92400e; }

/* Navy #424656 */
.lp-badge-navy   { background: rgba(66,70,86,.12);  color: #2e3140; }

/* Purple */
.lp-badge-purple { background: rgba(139,92,246,.12); color: #6d28d9; }

/* Gray — neutral */
.lp-badge-gray   { background: rgba(171,176,188,.15); color: #5a5f6e; }

/* badge-category (admin) — alias teal */
.badge-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(0,188,167,.15);
    color: #007a6e;
    border: none;
}

/* vs-badge (verification status) */
.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    border: none;
}
.vs-approve { background: rgba(0,188,121,.15); color: #007a4e; }
.vs-waiting  { background: rgba(217,119,6,.12); color: #92400e; }

/* ===== UTILITY ===== */
.text-sena {
    color: var(--sena-primary) !important;
}

/* ===== EXPORT COLUMN PICKER ===== */
.export-col-item {
    transition: border-color 0.15s, background 0.15s;
}

.export-col-item.active {
    border-color: var(--sena-primary) !important;
    background-color: #f0fffe;
    color: var(--sena-primary);
}

/* ===== Tom Select — match lp-input style ===== */
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    min-height: 42px;
    border: 1px solid var(--border-color-soft);
    border-radius: 14px;
    background: #fff;
    font-size: 19px;
    padding: 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    cursor: pointer;
    box-shadow: none;
}
.ts-wrapper.single.focus .ts-control,
.ts-wrapper.multi.focus .ts-control {
    border-color: var(--sena-primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 167, 0.15);
    outline: none;
}
.ts-wrapper .ts-dropdown {
    border-radius: 12px;
    border: 1px solid var(--border-color-soft);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    font-size: 19px;
    margin-top: 4px;
}
.ts-wrapper .ts-dropdown .ts-dropdown-content .option {
    padding: 8px 14px;
    color: var(--text-main);
}
.ts-wrapper .ts-dropdown .ts-dropdown-content .option.active,
.ts-wrapper .ts-dropdown .ts-dropdown-content .option:hover {
    background: #f0fffe;
    color: var(--sena-primary);
}
.ts-wrapper .ts-dropdown .ts-dropdown-content .option.selected {
    background: var(--sena-primary);
    color: #fff;
}
.ts-wrapper.multi .ts-control .item {
    background: var(--sena-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 20px;
}
.ts-wrapper .ts-dropdown input {
    border: 1px solid var(--border-color-soft);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    margin: 6px 8px;
    width: calc(100% - 16px);
    outline: none;
}
.ts-wrapper .ts-dropdown input:focus {
    border-color: var(--sena-primary);
    box-shadow: 0 0 0 2px rgba(0,188,167,0.15);
}

/* ===== Tom Select — keep the open dropdown above following cards/widgets ===== */
/* Raise the floating option list well above sibling content. */
.ts-wrapper .ts-dropdown {
    z-index: 4000;
}
/* While open, give the control its own raised stacking context. */
.ts-wrapper.dropdown-active {
    position: relative;
    z-index: 4000;
}
/* Lift the whole section card / grid column that owns the open dropdown above
   later blocks that build their own stacking context (upload previews, toggles,
   etc.), so the list is never clipped or overlapped. */
.form-section-card:has(.ts-wrapper.dropdown-active),
.col:has(.ts-wrapper.dropdown-active),
[class*="col-"]:has(.ts-wrapper.dropdown-active) {
    position: relative;
    z-index: 4000;
}

.export-col-item.active .form-check-input:checked {
    background-color: var(--sena-primary);
    border-color: var(--sena-primary);
}
