/* ═══════════════════════════════════════════
   GENERIC ECHS COMPONENTS
   ═══════════════════════════════════════════ */

/* ── Hero Component ── */
.cl-hero {
    background: linear-gradient(135deg, #4A1520 0%, #722736 50%, #8e3a4d 100%);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.cl-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cl-hero-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-hero-title i {
    color: #D4AF37;
}

.cl-hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

/* ── Split Layout Component ── */
.cl-sidebar-layout,
.cl-sidebar-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Sidebar Navigation Card ── */
.cl-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #D7CCC8;
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.cl-sidebar-section {
    padding: 16px;
    border-bottom: 1px solid #f1ece8;
}

.cl-sidebar-section:last-child {
    border-bottom: none;
}

.cl-sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.cl-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4A5568;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cl-sidebar-nav li a i {
    font-size: 16px;
    color: #94a3b8;
    width: 20px;
    text-align: center;
    transition: color 0.2s;
}

.cl-sidebar-nav li a:hover {
    background: #fcfaf8;
    color: #1A202C;
}

.cl-sidebar-nav li a:hover i {
    color: #722736;
}

.cl-sidebar-nav li a.active {
    background: rgba(114, 39, 54, 0.06);
    color: #722736;
}

.cl-sidebar-nav li a.active i {
    color: #722736;
}

/* ── Sidebar Content Wrapper ── */
.cl-sidebar-content {
    flex-grow: 1;
    min-width: 0;
}

/* ── Generic Content Card ── */
.cl-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #D7CCC8;
    overflow: hidden;
    margin-bottom: 24px;
}

.cl-card-header {
    background: linear-gradient(135deg, #FBF5EE, #f5ede3);
    padding: 18px 24px;
    border-bottom: 1px solid #D7CCC8;
}

.cl-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A202C;
}

.cl-card-body {
    padding: 24px;
}

.cl-card-footer {
    padding: 16px 24px;
    background: #fcfaf8;
    border-top: 1px solid #f1ece8;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991px) {

    .cl-sidebar-layout,
    .cl-sidebar-container {
        flex-direction: column;
    }

    .cl-sidebar {
        width: 100%;
        position: static;
    }
}

/* Custom Login Redesign Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body.login_admin {
    background-color: #f7f1e7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cpath fill='%2368202d' d='M0,0L1440,0L1440,300C1200,450 900,100 720,200C540,300 300,400 0,350Z'/%3E%3Cpath fill='%232a4e76' d='M0,900L1440,900L1440,550C1200,400 900,750 720,650C540,550 300,500 0,700Z'/%3E%3Cpath fill='%23708ba8' d='M1440,900L1440,400C1100,550 900,250 500,600C300,780 150,850 0,800L0,900Z' opacity='0.7'/%3E%3Cpath fill='%237d2536' d='M0,800C300,900 600,650 900,700C1200,750 1440,900 1440,900L0,900Z' opacity='0.9'/%3E%3Cpath fill='%23802b3a' d='M0,350C300,450 600,200 900,450C1200,700 1440,300 1440,300L1440,900L0,900Z' opacity='0.15'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

body.login_admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Background gradient overlays to match image better */
body.login_admin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 219, 203, 0.4) 0%, rgba(200, 180, 160, 0.1) 100%);
    z-index: -1;
}

body.login_admin .login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

body.login_admin .company-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

body.login_admin .company-logo img {
    max-width: 250px;
    height: auto;
}

body.login_admin .company-tagline {
    color: #6d6d6d;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

body.login_admin .login-card {
    background: #fbf5ee;
    border-radius: 28px;
    padding: 40px 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 2px 5px rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

body.login_admin .login-card::before {
    content: '';
    position: absolute;
    top: -15px;
    bottom: -15px;
    left: -15px;
    right: -15px;
    border-radius: 35px;
    background: rgba(244, 237, 226, 0.4);
    z-index: -1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.login_admin .login-heading {
    font-size: 26px;
    font-weight: 700;
    color: #722736;
    margin-bottom: 5px;
}

body.login_admin .login-subheading {
    font-size: 15px;
    color: #6a6a6a;
    font-weight: 400;
}

body.login_admin .form-group {
    margin-bottom: 0;
}

body.login_admin .input-group-custom {
    position: relative;
    background: #f2e9dc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

body.login_admin .input-group-custom:focus-within {
    background: #fff;
    border-color: #d1bfae;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.login_admin .input-icon {
    color: #9f9488;
    font-size: 18px;
    margin-right: 12px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

body.login_admin .input-icon i {
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

body.login_admin .input-group-custom .form-control.custom-input {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
}

body.login_admin .custom-input {
    background: transparent;
    border: none;
    box-shadow: none;
    height: 48px;
    padding: 0;
    font-size: 15px;
    color: #4a4a4a;
    font-weight: 500;
}

body.login_admin .custom-input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.login_admin .custom-input::placeholder {
    color: #9f9488;
    font-weight: 400;
}

body.login_admin .password-toggle {
    color: #9f9488;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}

body.login_admin .password-toggle i {
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

body.login_admin .password-toggle:hover {
    color: #722736;
}

body.login_admin .forgot-password-link {
    color: #722736;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

body.login_admin .forgot-password-link:hover {
    color: #722736;
    opacity: 0.8;
}

body.login_admin .btn-login {
    background-color: #722736;
    color: #ffffff;
    border-radius: 12px;
    height: 52px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(114, 39, 54, 0.3);
}

body.login_admin .btn-login:hover,
body.login_admin .btn-login:focus,
body.login_admin .btn-login:active {
    background-color: #5c1e2b;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(114, 39, 54, 0.4);
    transform: translateY(-2px);
}

body.login_admin .register-link {
    font-size: 14px;
    color: #6a6a6a;
}

body.login_admin .register-action {
    color: #722736;
    font-weight: 700;
    text-decoration: none;
}

body.login_admin .register-action:hover {
    color: #5c1e2b;
}

body.login_admin .card-footer-links {
    text-align: center;
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 30px;
}

body.login_admin .card-footer-links a {
    color: #8c8c8c;
    text-decoration: none;
}

body.login_admin .card-footer-links a:hover {
    color: #722736;
}

body.login_admin .login-footer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-top: 20px;
}

/* Base override for default app styles inside login */
body.login_admin .alert {
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 15px;
}

/* =========================================
   Global Admin Panel UI Overrides
   Theme: Maroon (#722736) & Cream (#fbf5ee)
   ========================================= */

/* Body and Global Styling */
body.admin {
    background-color: #fbf5ee !important;
    /* Cream background */
    font-family: 'Outfit', sans-serif !important;
}

/* Sidebar Override */
#setup-menu-wrapper,
#side-menu-wrapper,
.sidebar {
    background-color: #722736 !important;
    /* Maroon Sidebar */
}

/* Sidebar Width Increase to fit text */
body .sidebar {
    width: 260px !important;
}

body.admin #wrapper {
    margin-left: 260px !important;
}

@media (max-width: 991px) {
    body.admin #wrapper {
        margin-left: 0 !important;
    }
}

/* ── Mobile sidebar overrides for 260px width ── */
body.page-small #menu {
    margin-left: -260px !important;
    transition: margin-left 0.3s ease !important;
    z-index: 100 !important;
}

body.page-small.show-sidebar #menu {
    margin-left: 0 !important;
}

body.page-small.show-sidebar #wrapper {
    margin-left: 0 !important;
}

body.hide-sidebar:not(.show-sidebar) #menu {
    margin-left: -260px !important;
}

body.hide-sidebar:not(.show-sidebar) #wrapper {
    margin-left: 0 !important;
}

/* Sidebar Text and Hover states */
.sidebar ul li a,
.sidebar ul li a span,
.sidebar ul li a i,
#setup-menu-wrapper ul li a,
#setup-menu-wrapper ul li a span,
#setup-menu-wrapper ul li a i,
.setup-menu.menu>li>a,
.setup-menu.menu>li>a span,
.setup-menu.menu>li>a i {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Force Icon and Text on single line */
.sidebar ul li a,
#setup-menu-wrapper ul li a {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.sidebar ul li a i.menu-icon,
#setup-menu-wrapper ul li a i.menu-icon {
    flex-shrink: 0 !important;
    min-width: 32px;
}

.sidebar ul li a .menu-text,
#setup-menu-wrapper ul li a .menu-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Push sub-menu arrow to the right */
.sidebar ul li a .arrow,
#setup-menu-wrapper ul li a .arrow {
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar ul li a:hover,
.sidebar ul li a:hover span,
.sidebar ul li a:hover i,
.sidebar ul li a:focus,
.sidebar ul li a:focus span,
.sidebar ul li a:focus i,
.sidebar ul li.active>a,
.sidebar ul li.active>a span,
.sidebar ul li.active>a i,
#setup-menu-wrapper ul li a:hover,
#setup-menu-wrapper ul li a:hover span,
#setup-menu-wrapper ul li a:hover i,
#setup-menu-wrapper ul li.active>a,
#setup-menu-wrapper ul li.active>a span,
#setup-menu-wrapper ul li.active>a i {
    background-color: #5c1e2b !important;
    color: white !important;
}

/* User Profile Dropdown inside Sidebar */
.sidebar .sidebar-user-profile .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #eadecd !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.sidebar .sidebar-user-profile .dropdown-menu li a {
    color: #722736 !important;
    /* Maroon text on white dropdown */
    background-color: transparent !important;
    padding: 10px 20px !important;
    transition: background-color 0.2s ease;
}

.sidebar .sidebar-user-profile .dropdown-menu li a span,
.sidebar .sidebar-user-profile .dropdown-menu li a i {
    color: #722736 !important;
}

.sidebar .sidebar-user-profile .dropdown-menu li a:hover,
.sidebar .sidebar-user-profile .dropdown-menu li a:focus {
    background-color: #fbf5ee !important;
    /* Cream hover */
    color: #5c1e2b !important;
    /* Darker maroon text on hover */
}

.sidebar .sidebar-user-profile .dropdown-menu li a:hover span,
.sidebar .sidebar-user-profile .dropdown-menu li a:hover i {
    color: #5c1e2b !important;
}

/* User Profile Header Dropdown (if present) */
.sidebar .sidebar-user-profile.dropdown>a {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.sidebar .sidebar-user-profile.dropdown.open>a {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Force Text colors in the profile widget to be visible over maroon */
.sidebar .sidebar-user-profile.dropdown>a span {
    color: #fbf5ee !important;
}

/* Specific targeting for the email snippet which sometimes has a gray text utility class */
.sidebar .sidebar-user-profile.dropdown>a span>span:last-child {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Top Header Bar */
#header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0d8cc !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Header Text/Icons */
#header .nav>li>a {
    color: #722736 !important;
}

#header .nav>li>a:hover,
#header .nav>li>a:focus {
    background-color: #fbf5ee !important;
}

/* Buttons */
.btn-primary,
.btn-info {
    background-color: #722736 !important;
    border-color: #722736 !important;
    color: white !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: #5c1e2b !important;
    border-color: #5c1e2b !important;
    box-shadow: 0 4px 10px rgba(114, 39, 54, 0.2) !important;
}

.btn-default {
    border-radius: 8px !important;
}

/* Cards & Panels */
.panel_s>.panel-body {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #eadecd !important;
}

/* Tables */
table.dataTable thead th,
table.dataTable thead td {
    background-color: #f2e9dc !important;
    color: #722736 !important;
    border-bottom: 2px solid #eadecd !important;
}

/* Inputs globally inside admin */
body.admin .form-control {
    border-radius: 8px !important;
    border: 1px solid #d1bfae !important;
    background-color: #fff !important;
}

body.admin .form-control:focus {
    border-color: #722736 !important;
    box-shadow: 0 0 0 2px rgba(114, 39, 54, 0.1) !important;
}

/* Sidebar Sub-Menu Overrides */
.sidebar ul.nav-second-level {
    background-color: #5c1e2b !important;
    /* Darker than main sidebar maroon */
    border-left: none !important;
}

/* Remove default dark active background on submenus */
.sidebar ul.nav-second-level li {
    background: transparent !important;
}

.sidebar ul.nav-second-level li a,
.sidebar ul.nav-second-level li a span {
    color: rgba(255, 255, 255, 0.7) !important;
    padding-left: 20px !important;
    /* Ensure proper indentation inside */
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
}

.sidebar ul.nav-second-level li.active>a,
.sidebar ul.nav-second-level li a:hover,
.sidebar ul.nav-second-level li a:focus,
.sidebar ul.nav-second-level li.active>a span,
.sidebar ul.nav-second-level li a:hover span,
.sidebar ul.nav-second-level li a:focus span {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Gentle light highlight instead of dark */
    color: #ffffff !important;
    padding-left: 25px !important;
    /* Subtle indent animation */
}

/* Header Logo Text Override */
.logo.logo-text {
    color: #722736 !important;
}

/* =========================================
   LOCATIONS MANAGEMENT & ADMIN – ECHS THEME
   Colors: Sage #722736, Dark #4A1520, Accent #D4AF37, Cream #FBF5EE
   ========================================= */
.cl-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cl-layout {
    display: flex;
    flex-direction: column;
}

.cl-section-hero {
    order: 1;
}

.cl-section-stats {
    order: 2;
    margin-bottom: 24px;
}

.cl-section-table {
    order: 3;
}

/* ── Hero Header ── */
.cl-hero {
    background: linear-gradient(135deg, #4A1520 0%, #722736 50%, #8e3a4d 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
    z-index: 20;
}

.cl-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cl-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cl-hero-content {
    position: relative;
    z-index: 2;
}

.cl-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.cl-hero-title i {
    color: #D4AF37;
}

.cl-hero-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

/* ── Stat Cards Grid ── */
.cl-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 992px) {
    .cl-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cl-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #D7CCC8;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cl-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(114, 39, 54, 0.1);
}

.cl-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
}

.cl-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4A5568;
    margin-bottom: 4px;
}

.cl-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #1A202C;
    line-height: 1;
}

/* ── Data Table Card ── */
.cl-table-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #D7CCC8;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 0;
}

.cl-table-card .dataTables_wrapper .row {
    margin: 0;
}

.cl-table-card .panel-body {
    padding: 24px;
}

.cl-table-card.panel-table-full .panel-body,
.cl-table-card .panel-body.panel-table-full {
    padding: 0;
    /* DataTables normally handle their own padding in full cards */
}

/* Fallback if panel-body wrapping isn't perfect */
.cl-table-card>.table-responsive,
.cl-table-card .dataTables_wrapper {
    padding: 20px;
}

.cl-table-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1ece8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cl-table-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A202C;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-table-header h5 i {
    color: #722736;
    font-size: 16px;
}

.cl-table-body {
    padding: 0 24px 24px;
}

.cl-table-card .table,
.cl-table-body .table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    width: 100% !important;
}

.cl-table-card table.dataTable thead th,
.cl-table-body .table thead th,
.cl-table-card table.dataTable thead td,
.cl-table-body .table thead td {
    background: #FBF5EE !important;
    border-bottom: 1px solid #D7CCC8 !important;
    border-top: none !important;
    color: #4A5568 !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 20px;
    white-space: nowrap;
}

.cl-table-card table.dataTable tbody td,
.cl-table-body .table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1ece8 !important;
    border-top: none !important;
    font-size: 13px;
    color: #1A202C !important;
    background-color: transparent !important;
}

.cl-table-card .table-bordered,
.cl-table-card .table-bordered>tbody>tr>td,
.cl-table-card .table-bordered>tbody>tr>th,
.cl-table-card .table-bordered>tfoot>tr>td,
.cl-table-card .table-bordered>tfoot>tr>th,
.cl-table-card .table-bordered>thead>tr>td,
.cl-table-card .table-bordered>thead>tr>th {
    border: none !important;
    border-bottom: 1px solid #f1ece8 !important;
}

.cl-table-card table.dataTable tbody tr:hover,
.cl-table-body .table tbody tr:hover {
    background: #FBF5EE !important;
}

/* Status pills */
.cl-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cl-status-pill.st-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.cl-status-pill.st-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

.cl-status-pill.st-notset {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

/* Action buttons */
.cs-action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.cs-edit-btn,
.cs-delete-btn,
.cs-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.cs-edit-btn {
    background: rgba(114, 39, 54, 0.06);
    border: 1px solid rgba(114, 39, 54, 0.15);
    color: #722736 !important;
}

.cs-edit-btn:hover {
    background: rgba(114, 39, 54, 0.12);
    color: #4A1520;
    text-decoration: none;
    transform: scale(1.05);
}

.cs-delete-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444 !important;
}

.cs-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    text-decoration: none;
    transform: scale(1.05);
}

.cs-view-btn {
    background: #fff;
    border: 1px solid #D7CCC8;
    color: #4A5568 !important;
}

.cs-view-btn:hover {
    border-color: #722736;
    color: #722736;
    text-decoration: none;
    transform: scale(1.05);
}

.cl-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #722736, #4A1520) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cl-add-btn i {
    color: #fff !important;
}

.cl-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(114, 39, 54, 0.35);
    color: #fff !important;
    text-decoration: none;
}

.cl-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #722736, #4A1520) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cl-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(114, 39, 54, 0.35);
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 767px) {
    .cl-hero {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .cl-hero-title {
        font-size: 20px;
    }

    .cl-table-body {
        padding: 0 12px 12px;
    }

    .cl-table-header {
        padding: 14px 16px;
    }

    .cl-table-header h5 {
        font-size: 14px;
    }
}

/* OIC “Close ticket” panel on ticket single — use real CSS; Tailwind
   tw-border-emerald-600/30 etc. are often not in the compiled bundle, so
   tw-border alone yields currentColor (reads as black). */
.echs-oic-close-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.22);
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 55%, #e6fffa 100%);
    box-shadow: 0 1px 3px rgba(6, 95, 70, 0.07);
}

/* ─── ECHS Escalation Note Card ─── */
.echs-escalation-note {
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.echs-escalation-header {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 10px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0;
}

.echs-escalation-header i {
    color: #64748b;
    margin-right: 8px;
    font-size: 13px;
}

.echs-escalation-header strong {
    color: #1e293b;
    font-weight: 700;
}

.echs-escalation-reason {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-bottom: 1px solid #fde68a;
    padding: 16px 18px;
    margin: 0;
    border: none;
    border-radius: 0;
}

.echs-escalation-reason-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b45309;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.echs-escalation-reason-label i {
    color: #f59e0b;
    font-size: 13px;
}

.echs-escalation-reason-text {
    font-size: 15px;
    font-weight: 700;
    color: #78350f;
    line-height: 1.5;
}

.echs-escalation-meta {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
}

.echs-escalation-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.echs-escalation-meta-item i {
    color: #722736;
    font-size: 12px;
    width: auto;
    margin-right: 0;
}

.echs-meta-label {
    color: #94a3b8;
    font-weight: 600;
}

/* ─── Edit Profile Page ─── */
.ep-page {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

.ep-left {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* Profile Card */
.ep-profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ep-avatar-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 4px solid #4A1520;
    box-shadow: 0 0 0 4px rgba(74, 21, 32, 0.1);
}

.ep-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ep-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 21, 32, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.ep-avatar-overlay i {
    font-size: 24px;
    margin-bottom: 4px;
}

.ep-avatar-wrap:hover .ep-avatar-overlay {
    opacity: 1;
}

.ep-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.ep-avatar-placeholder i {
    font-size: 28px;
    margin-bottom: 4px;
}

.ep-avatar-wrap:hover .ep-avatar-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #64748b;
}

.ep-avatar-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    border: 2px solid #fff;
}

.ep-avatar-wrap:hover .ep-avatar-remove {
    opacity: 1;
}

.ep-avatar-remove:hover {
    background: #dc2626;
    color: #fff;
}

.ep-profile-name {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.ep-profile-email,
.ep-profile-phone {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0;
}

.ep-profile-email i,
.ep-profile-phone i {
    color: #4A1520;
    margin-right: 5px;
    width: 14px;
    text-align: center;
}

.ep-dept-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.ep-dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #831843;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #fbcfe8;
}

.ep-dept-badge i {
    font-size: 10px;
}

.ep-last-pw {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
}

.ep-last-pw i {
    color: #4A1520;
    margin-right: 4px;
}

.ep-last-pw span {
    color: #475569;
    font-weight: 600;
    cursor: help;
}

/* Sections */
.ep-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 24px;
}

.ep-section-header {
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4A1520, #722736);
    letter-spacing: 0.2px;
}

.ep-section-header i {
    margin-right: 8px;
    color: #fbbf24;
}

.ep-section-body {
    padding: 24px 22px;
}

.ep-section-footer {
    padding: 16px 22px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.ep-section-footer .btn-primary {
    background: #4A1520;
    border-color: #4A1520;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
}

.ep-section-footer .btn-primary:hover {
    background: #722736;
    border-color: #722736;
}

.ep-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.ep-otp-notice {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 18px;
}

.ep-otp-notice i {
    margin-right: 6px;
    color: #3b82f6;
}

/* 2FA Option Cards */
.ep-2fa-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ep-2fa-option {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
}

.ep-2fa-option input {
    display: none;
}

.ep-2fa-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: all 0.2s;
}

.ep-2fa-card i {
    font-size: 28px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.ep-2fa-card strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
}

.ep-2fa-card small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.ep-2fa-option.active .ep-2fa-card {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-color: #4A1520;
}

.ep-2fa-option.active .ep-2fa-card i {
    color: #4A1520;
}

.ep-2fa-option:hover .ep-2fa-card {
    border-color: #cbd5e1;
}

.ep-2fa-option.active:hover .ep-2fa-card {
    border-color: #4A1520;
}

/* Responsive */
@media (max-width: 768px) {
    .ep-page {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ep-left {
        position: static;
    }

    .ep-form-grid {
        grid-template-columns: 1fr;
    }

    .ep-2fa-options {
        flex-direction: column;
    }
}