/* ==========================================================================
   Cynox Custom UI Overhaul - Professional SIRP / Ticket Management Dashboard
   ========================================================================== */

/* 1. Global Typography & Background */
body, .wrapper, .content-wrapper, .skin-blue .wrapper, .skin-blue .main-sidebar, .skin-blue .left-side {
    background-color: #0f172a !important; /* Professional Slate 900 */
    background-image: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #e2e8f0 !important;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .logo-text, .list-group-item h3, .list-group-item h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

/* 2. Advanced Layout: Floating Top Navigation */
.skin-blue .main-header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.skin-blue .main-header .navbar {
    background: rgba(15, 20, 25, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    min-height: 60px !important;
}

.skin-blue .main-header .navbar .nav > li > a {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: color 0.3s ease, background 0.3s ease;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.skin-blue .main-header .navbar .nav > li > a:hover,
.skin-blue .main-header .navbar .nav > li > a:focus {
    color: #fff !important;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.1) 0%, transparent 100%) !important;
}

.skin-blue .main-header .navbar .nav > li.active > a {
    color: #00e5ff !important;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.15) 0%, transparent 100%) !important;
    box-shadow: inset 0 -3px 0 #00e5ff !important; 
}

/* Force Badges to look modern regardless of Bootstrap class */
.skin-blue .main-header .navbar .nav > li > a .label,
.skin-blue .main-header .navbar .nav > li > a .badge,
.skin-blue .main-header .navbar .nav > li > a .label-success,
.skin-blue .main-header .navbar .nav > li > a .label-warning,
.skin-blue .main-header .navbar .nav > li > a .label-danger {
    background: rgba(0, 229, 255, 0.1) !important;
    color: #00e5ff !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 8px !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1) !important;
    text-shadow: none !important;
}

/* Specific Notification Badge Styling */
.sirp-notif-badge {
    position: absolute !important;
    top: 12px !important;
    right: 4px !important;
    background: #ff1744 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.6) !important;
    margin: 0 !important;
}

/* Search Bar in Nav */
.navbar-form {
    margin-top: 13px !important; 
}
.navbar-form .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important; 
    color: #fff !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    height: 34px !important;
    width: 220px !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
    will-change: width;
}
.navbar-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00e5ff !important;
    width: 280px !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2) !important;
}
.navbar-form .input-group-addon {
    display: none !important; /* Hide ugly search icon box */
}

/* User Profile */
.user-menu .dropdown-toggle {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
.user-menu .dropdown-toggle img,
.user-image {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 229, 255, 0.5) !important;
    margin-top: -6px !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2) !important;
}

/* SIRP Typography Logo & Fixes */
.skin-blue .main-header .logo {
    background: transparent !important;
    border-bottom: none !important;
    height: 60px !important;
    line-height: 60px !important;
    width: auto !important;
    padding: 0 24px !important;
    transition: background 0.3s ease !important;
}
.skin-blue .main-header .logo:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}
.sirp-logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sirp-logo strong {
    color: #00e5ff;
    font-size: 32px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}
.sirp-dot {
    width: 8px;
    height: 8px;
    background: #00e5ff;
    border-radius: 50%;
    margin-left: 4px;
    margin-top: 12px;
    box-shadow: 0 0 12px #00e5ff, 0 0 24px #00e5ff;
    animation: sirpPulse 2s infinite;
}
@keyframes sirpPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.sirp-spin-hover:hover {
    animation: sirpSpin 2s linear infinite;
    color: #00e5ff !important;
}
@keyframes sirpSpin { 100% { transform: rotate(360deg); } }

/* Global Premium Styling */
body, .content-wrapper, .wrapper {
    background-color: #0f172a !important; /* Professional Slate 900 */
    background-image: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.5);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.content-wrapper {
    padding-top: 20px !important;
}
.content {
    padding: 24px 32px !important;
}

/* 3. Dashboard Widgets Grid (Charts etc.) */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}
.row > [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 20px !important;
}

.box, .panel {
    background: #1e293b !important; /* Lighter premium gradient */
    border: 1px solid rgba(0, 229, 255, 0.25) !important; /* Premium Cyan Border */
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important; /* Outer shadow + Inner glow */
}

/* ==========================================================================
   4. KANBAN BOARD CUSTOM STYLING (Injected via JS)
   ========================================================================== */

.cynox-kanban-board {
    display: flex;
    gap: 24px;
    width: 100%;
    margin-top: 20px;
    min-height: 500px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-col {
    flex: 1 1 0;
    min-width: 350px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.kanban-col-header {
    padding: 16px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Kanban Header Colors */
.kanban-col-header.red { border-top: 4px solid #fc8181; }
.kanban-col-header.blue { border-top: 4px solid #63b3ed; }
.kanban-col-header.green { border-top: 4px solid #68d391; }

.col-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.kanban-col-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kanban-card {
    background: #334155 !important; /* Lighter Slate 700 for distinct contrast */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translateZ(0); /* Hardware acceleration */
}

/* Severity Color Coding - Static Enterprise Look */
.kanban-card[data-severity="critical"] {
    border-left: 4px solid #ff1744;
}
.kanban-card[data-severity="high"] {
    border-left: 4px solid #ff9100;
}
.kanban-card[data-severity="medium"] {
    border-left: 4px solid #ffea00;
}
.kanban-card[data-severity="low"] {
    border-left: 4px solid #00b0ff;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

.k-header {
    font-weight: 600;
    font-size: 16px; /* Increased font size */
    color: #00e5ff;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.k-header a {
    color: inherit;
    text-decoration: none;
    flex-grow: 1;
}
.k-header a:hover {
    text-decoration: underline;
}
.k-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.k-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px; /* Increased font size */
}

.k-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.k-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #a0aec0;
}

.k-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.k-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.k-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px; /* Increased */
    color: #cfd8dc;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.k-date::before {
    content: '🕒';
    font-size: 12px;
}

.k-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.k-status-badge.Open { background: rgba(245, 101, 101, 0.15); color: #fc8181; }
.k-status-badge.InProgress { background: rgba(66, 153, 225, 0.15); color: #63b3ed; }
.k-status-badge.Closed { background: rgba(72, 187, 120, 0.15); color: #68d391; }

/* Hide the old list elements if needed, but kanban script handles it mostly */
/* ========================================================================== */

/* 5. Inputs & Forms */
.form-control, input, select, textarea {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
}

.form-control:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #080a0f; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 240, 255, 0.4); }

/* Remove old footers/headers */
.box-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 16px 20px !important;
}
.main-footer {
    display: none !important;
}

/* ==========================================================================
   6. ANTI-FLICKER (FOUC Prevention for Kanban)
   ========================================================================== */
.content [ng-repeat]:not([data-kanban-processed]),
.content .list-group-item:not([data-kanban-processed]) {
    opacity: 0 !important;
    animation: kanbanFailsafe 0.2s forwards 0.3s;
}

@keyframes kanbanFailsafe {
    to { opacity: 1 !important; }
}

/* ==========================================================================
   7. TTPs & Table Overrides for Dark Theme
   ========================================================================== */
.ttp-item {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: #1e222d !important;
    color: #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
}
.ttp-item .ttp-header {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
}
.ttp-item .ttp-header .ttp-tactic {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid #00e5ff !important;
    color: #00e5ff !important;
}
.ttp-item .ttp-body {
    background-color: transparent !important;
    color: #cfd8dc !important;
}
.ttp-item-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.ttp-item-header > div {
    color: #fff !important;
}

/* Generic Tables Override */
.table { background-color: transparent !important; color: #e2e8f0 !important; }
.table > tbody > tr > td, .table > thead > tr > th {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: transparent !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}
.table-hover > tbody > tr:hover, .table-hover > tbody > tr:hover > td {
    background-color: rgba(0, 229, 255, 0.1) !important;
}
.table > thead > tr > th {
    color: #00e5ff !important;
    font-weight: 600 !important;
}


/* Dashboard Widget Fixes */
.dashboard-item, .dashboard-serie, .chart-container, .panel-default {
    background: #1e293b !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}
.box-header, .panel-heading, .dashboard-item-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}


/* Force Stats Items (Case by Status, Case by Resolution, Top 5 tags) */
.stats-item-wrapper > .box, 
.stats-item-wrapper > .panel,
.stats-item-wrapper {
    background: #1e293b !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}
.stats-item-wrapper > .box > .box-header, 
.stats-item-wrapper > .panel > .panel-heading {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}


/* ==========================================================================
   8. LIGHT THEME OVERRIDES (Clean & Simple Enterprise Look)
   ========================================================================== */
body.light-theme, 
body.light-theme .wrapper, 
body.light-theme .content-wrapper, 
body.light-theme .skin-blue .wrapper, 
body.light-theme .skin-blue .main-sidebar, 
body.light-theme .skin-blue .left-side {
    background-color: #f8fafc !important; /* Soft light gray/slate */
    color: #1e293b !important;
}

body.light-theme .skin-blue .main-header .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .skin-blue .main-header .navbar .nav > li > a {
    color: #475569 !important;
}

body.light-theme .skin-blue .main-header .navbar .nav > li > a:hover,
body.light-theme .skin-blue .main-header .navbar .nav > li.active > a {
    color: #0f172a !important;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.05) 0%, transparent 100%) !important;
    box-shadow: inset 0 -3px 0 #3b82f6 !important;
}

body.light-theme .sirp-logo strong {
    color: #3b82f6 !important;
    text-shadow: none !important;
}
body.light-theme .sirp-logo {
    color: #0f172a !important;
}

body.light-theme .box, 
body.light-theme .panel,
body.light-theme .stats-item-wrapper,
body.light-theme .stats-item-wrapper > .box,
body.light-theme .stats-item-wrapper > .panel,
body.light-theme .dashboard-item, 
body.light-theme .dashboard-serie, 
body.light-theme .chart-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    color: #1e293b !important;
}

body.light-theme .box-header, 
body.light-theme .panel-heading, 
body.light-theme .dashboard-item-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

body.light-theme .kanban-col {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .kanban-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .kanban-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.light-theme .kanban-card .k-header a {
    color: #0f172a !important;
}

body.light-theme .kanban-card .k-tag {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .kanban-card .k-stat,
body.light-theme .kanban-card .k-date {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .kanban-col-header {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .kanban-col-header .col-count {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .table { color: #1e293b !important; }
body.light-theme .table > thead > tr > th { color: #3b82f6 !important; border-bottom: 2px solid #e2e8f0 !important; }
body.light-theme .table > tbody > tr > td { border-color: #e2e8f0 !important; }
body.light-theme .table-striped > tbody > tr:nth-of-type(odd) { background-color: #f8fafc !important; }
body.light-theme .table-hover > tbody > tr:hover { background-color: #f1f5f9 !important; }

body.light-theme .form-control, 
body.light-theme input, 
body.light-theme select, 
body.light-theme textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: none !important;
}
body.light-theme .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.light-theme .list-pagination .pagination > li > a,
body.light-theme .list-pagination .pagination > li > span {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
body.light-theme .list-pagination .pagination > li > a:hover,
body.light-theme .list-pagination .pagination > .active > a {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}
/* ==========================================================================
   9. PREMIUM LIGHT THEME (Vercel/Stripe-like Clean Look)
   ========================================================================== */
body.light-theme {
    background-color: #F3F4F6 !important; /* Cool crisp gray background */
    color: #111827 !important;
}

body.light-theme h1, body.light-theme h2, body.light-theme h3, 
body.light-theme h4, body.light-theme h5, body.light-theme h6,
body.light-theme .box-title, body.light-theme .panel-title,
body.light-theme .text-muted, body.light-theme label,
body.light-theme .help-block, body.light-theme th, body.light-theme td,
body.light-theme p, body.light-theme dt, body.light-theme dd, body.light-theme li,
body.light-theme .text-strong, body.light-theme strong, body.light-theme b,
body.light-theme a:not(.btn):not(.label):not(.badge),
body.light-theme span:not(.label):not(.badge):not(.k-tag):not(.fa):not([class*="text-"]):not(.text-danger) {
    color: #111827 !important;
}

/* Navbar */
body.light-theme .main-header,
body.light-theme .main-header .navbar,
body.light-theme .navbar-static-top {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05), 0 1px 2px 0 rgba(0,0,0,0.03) !important;
}

body.light-theme .main-header .navbar .nav > li > a {
    color: #4B5563 !important;
}

body.light-theme .main-header .navbar .nav > li > a:hover {
    color: #111827 !important;
    background-color: #F9FAFB !important;
}

/* All Cards, Panels, Boxes */
body.light-theme .box, 
body.light-theme .panel,
body.light-theme .stats-item-wrapper,
body.light-theme .dashboard-item,
body.light-theme .chart-container,
body.light-theme .kanban-card,
body.light-theme .kanban-col-header {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Headers of Cards/Panels */
body.light-theme .box-header, 
body.light-theme .panel-heading {
    background-color: #F9FAFB !important;
    background: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    color: #111827 !important;
    font-weight: 600 !important;
}

/* Special overrides for Stats/Filters wrapper to ensure they aren't transparent */
body.light-theme .stats-item-wrapper > .box,
body.light-theme .stats-item-wrapper > .panel {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 12px !important;
}

/* Fix charts inner background */
body.light-theme rect.highcharts-background {
    fill: #FFFFFF !important;
}
body.light-theme text.highcharts-title, 
body.light-theme text.highcharts-subtitle, 
body.light-theme text.highcharts-data-label {
    fill: #111827 !important;
}

/* App Background Areas */
body.light-theme .content-wrapper,
body.light-theme .wrapper {
    background-color: #F3F4F6 !important;
    background: #F3F4F6 !important;
}

/* Kanban specific tweaks */
body.light-theme .kanban-col {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
}
body.light-theme .metric-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .metric-title {
    background: #F9FAFB !important;
    color: #4B5563 !important;
    border-bottom: 1px solid #E5E7EB !important;
}


/* ==========================================================================
   10. SOFT COOL-SLATE LIGHT THEME & UNIFIED STRUCTURE OVERRIDES
   ========================================================================== */
body.light-theme,
body.light-theme .wrapper,
body.light-theme .content-wrapper,
body.light-theme .main-sidebar,
body.light-theme .left-side {
    background-color: #E2E8F0 !important;
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

/* Unified Navbar & Alignment */
body.light-theme .main-header .navbar {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    min-height: 64px !important;
    height: 64px !important;
}
body.light-theme .navbar-form {
    margin-top: 17px !important;
    margin-bottom: 0 !important;
}
body.light-theme .navbar-form .form-control {
    background: #E2E8F0 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: none !important;
    height: 34px !important;
}
body.light-theme .navbar-form .form-control:focus {
    background: #F8FAFC !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Consistent Soft Cards, Boxes & Panels (no blinding pure white) */
body.light-theme .box,
body.light-theme .panel,
body.light-theme .nav-tabs-custom,
body.light-theme .modal-content,
body.light-theme .dropdown-menu {
    background-color: #F8FAFC !important;
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
    color: #0F172A !important;
}
body.light-theme .box-body,
body.light-theme .panel-body,
body.light-theme .modal-body {
    background: transparent !important;
    color: #0F172A !important;
}
body.light-theme .box-header,
body.light-theme .panel-heading,
body.light-theme .modal-header,
body.light-theme .modal-footer {
    background-color: #EDF2F7 !important;
    background: #EDF2F7 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* Unified Button Structure */
body.light-theme .btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
body.light-theme .btn-sm {
    padding: 5px 10px !important;
    font-size: 12px !important;
}
body.light-theme .btn-default {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
}
body.light-theme .btn-default:hover {
    background: #E2E8F0 !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}
body.light-theme .btn-primary {
    background: #2563EB !important;
    border: 1px solid #1D4ED8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22) !important;
}
body.light-theme .btn-primary:hover {
    background: #1D4ED8 !important;
}
body.light-theme .btn-danger {
    background: #DC2626 !important;
    border: 1px solid #B91C1C !important;
    color: #FFFFFF !important;
}
body.light-theme .btn-danger:hover {
    background: #B91C1C !important;
}
body.light-theme .btn-success {
    background: #059669 !important;
    border: 1px solid #047857 !important;
    color: #FFFFFF !important;
}
body.light-theme .btn-warning {
    background: #D97706 !important;
    border: 1px solid #B45309 !important;
    color: #FFFFFF !important;
}

/* Toolbar & Button Group Alignment */
body.light-theme .btn-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.light-theme .page-header,
body.light-theme .content-header {
    border-bottom: 1px solid #CBD5E1 !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
}

/* Forms, Inputs & Selects */
body.light-theme .form-control,
body.light-theme input:not([type="checkbox"]):not([type="radio"]),
body.light-theme select,
body.light-theme textarea {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    line-height: 1.4 !important;
}
body.light-theme select,
body.light-theme select.form-control,
body.light-theme select.input-sm {
    height: 34px !important;
    padding: 4px 10px !important;
    min-width: 68px !important;
}
body.light-theme .active-filters {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    color: #0F172A !important;
    margin: 12px 0 !important;
}
body.light-theme .empty-message,
body.light-theme .loading-message {
    background: #EDF2F7 !important;
    border: 1px dashed #CBD5E1 !important;
    border-radius: 10px !important;
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 28px !important;
    margin-top: 12px !important;
}
body.light-theme .page-sizer {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.light-theme .page-sizer select,
body.light-theme .page-sizer select.form-control,
body.light-theme .page-sizer select.input-sm {
    height: 34px !important;
    padding: 4px 8px !important;
    min-width: 64px !important;
    width: auto !important;
    color: #0F172A !important;
    background: #FFFFFF !important;
}
body.light-theme .well,
body.light-theme .callout,
body.light-theme .list-group-item {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    color: #1E293B !important;
    box-shadow: none !important;
}
body.light-theme .alert {
    border-radius: 10px !important;
    border-width: 1px !important;
}
body.light-theme .alert-info,
body.light-theme .alert-warning,
body.light-theme .bg-gray {
    background: #EDF2F7 !important;
    border-color: #CBD5E1 !important;
    color: #334155 !important;
}
@media (max-width: 1180px) {
    body.light-theme .main-header .navbar {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 6px 12px !important;
    }
    body.light-theme .main-header .navbar-nav:not(.navbar-right) > li > a,
    body.light-theme .main-header .navbar-right,
    body.light-theme .main-header .navbar-right > li,
    body.light-theme .sirp-extra-btns,
    body.light-theme .sirp-brand-container {
        height: 44px !important;
    }
    body.light-theme .content-wrapper {
        padding-top: 110px !important;
    }
}
body.light-theme .form-control:focus,
body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Tables & Dropdown Items */
body.light-theme .table > thead > tr > th {
    background: #EDF2F7 !important;
    color: #334155 !important;
    border-bottom: 2px solid #CBD5E1 !important;
}
body.light-theme .table > tbody > tr > td {
    border-top: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
}
body.light-theme .table-hover > tbody > tr:hover,
body.light-theme .dropdown-menu > li > a:hover {
    background-color: #E2E8F0 !important;
    color: #0F172A !important;
}

/* Code / Pre blocks */
body.light-theme pre {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
    box-shadow: none !important;
}
body.light-theme pre code {
    color: #1D4ED8 !important;
}

/* Soft Scrollbar */
body.light-theme ::-webkit-scrollbar { width: 8px; height: 8px; }
body.light-theme ::-webkit-scrollbar-track { background: #E2E8F0; }
body.light-theme ::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 4px; }
body.light-theme ::-webkit-scrollbar-thumb:hover { background: #64748B; }


/* ==========================================================================
   11. LOGIN PAGE, INNER PAGES & SMALL BOXES (SOFT COOL-SLATE LIGHT THEME)
   ========================================================================== */

/* Login Page */
body.light-theme:has(.cynox-login-page) .content-wrapper {
    padding-top: 0 !important;
    min-height: 100vh !important;
}
body.light-theme .cynox-login-page {
    background-color: #E2E8F0 !important;
    background-image: radial-gradient(circle at 50% 0%, #CBD5E1 0%, #E2E8F0 70%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}
body.light-theme .cynox-top-brand {
    display: none !important;
}
body.light-theme .cynox-card-wrapper {
    background: #CBD5E1 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
}
body.light-theme .cynox-login-card {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    backdrop-filter: none !important;
    padding: 36px 34px 28px !important;
    border-radius: 18px !important;
}
body.light-theme .sirp-brand-title {
    background: linear-gradient(135deg, #0F172A 0%, #2563EB 65%, #4F46E5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}
body.light-theme .sirp-brand-subtitle {
    color: #475569 !important;
}
body.light-theme .cynox-input {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}
body.light-theme .cynox-input:focus {
    background: #FFFFFF !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
body.light-theme .cynox-login-btn {
    background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

/* Inner Case / Alert Tabs (Details, Tasks, Observables, TTPs, Flow) */
body.light-theme .nav-tabs {
    border-bottom: 1px solid #CBD5E1 !important;
    background: #EDF2F7 !important;
    padding: 6px 10px 0 10px !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}
body.light-theme .nav-tabs > li > a {
    color: #475569 !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    border-radius: 8px 8px 0 0 !important;
}
body.light-theme .nav-tabs > li > a:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}
body.light-theme .nav-tabs > li.active > a,
body.light-theme .nav-tabs > li.active > a:hover,
body.light-theme .nav-tabs > li.active > a:focus {
    background: #F8FAFC !important;
    color: #1D4ED8 !important;
    border: 1px solid #CBD5E1 !important;
    border-bottom-color: #F8FAFC !important;
}
body.light-theme .tab-content {
    background: #F8FAFC !important;
    color: #0F172A !important;
    padding: 16px !important;
}

/* TTPs Section (previously hardcoded dark) */
body.light-theme .ttp-item {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    border-radius: 8px !important;
}
body.light-theme .ttp-item .ttp-header {
    background: #EDF2F7 !important;
    border-bottom: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}
body.light-theme .ttp-item .ttp-header .ttp-tactic {
    background: #DBEAFE !important;
    border-left: 4px solid #2563EB !important;
    color: #1D4ED8 !important;
}
body.light-theme .ttp-item .ttp-body {
    background: #F8FAFC !important;
    color: #334155 !important;
}
body.light-theme .ttp-item-header,
body.light-theme .ttp-item-header > div {
    border-bottom-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* Small Boxes, Badges, Tags, Addons, Footers, Timeline, Popovers */
body.light-theme .input-group-addon {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
}
body.light-theme .box-footer,
body.light-theme .panel-footer {
    background: #EDF2F7 !important;
    border-top: 1px solid #CBD5E1 !important;
    color: #334155 !important;
}
body.light-theme .info-box,
body.light-theme .small-box,
body.light-theme .dashboard-serie,
body.light-theme .timeline > li > .timeline-item {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    color: #0F172A !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}
body.light-theme .timeline > li > .timeline-item > .timeline-header,
body.light-theme .timeline > li > .timeline-item > .timeline-body {
    color: #1E293B !important;
    border-color: #E2E8F0 !important;
}
body.light-theme .popover {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}
body.light-theme .popover-title {
    background: #EDF2F7 !important;
    border-bottom: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}
body.light-theme .breadcrumb {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
}
body.light-theme .label-default,
body.light-theme .badge:not(.sirp-notif-badge) {
    background: #E2E8F0 !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
}
body.light-theme .markdown,
body.light-theme .text-muted,
body.light-theme .help-block {
    color: #475569 !important;
}
body.light-theme .markdown h1,
body.light-theme .markdown h2,
body.light-theme .markdown h3,
body.light-theme .markdown h4,
body.light-theme .markdown strong {
    color: #0F172A !important;
}


/* Triage Hub Overlay & Playbook Modal (Soft Cool-Slate Light Theme) */
body.light-theme .sirp-ai-overlay {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}
body.light-theme .sirp-ai-overlay .sirp-ai-header {
    border-bottom: 1px solid #CBD5E1 !important;
    padding-bottom: 16px !important;
}
body.light-theme .sirp-ai-overlay .sirp-chat-header {
    background: #EDF2F7 !important;
    border-bottom: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}
body.light-theme #sirp-playbook-modal > div {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}


/* Highcharts & C3.js/D3 Legend & Axis Labels (Light Theme Readability) */
body.light-theme .highcharts-legend-item text,
body.light-theme .highcharts-axis-labels text,
body.light-theme .highcharts-legend-title text,
body.light-theme text.highcharts-credits,
body.light-theme .c3 svg text,
body.light-theme .c3-legend-item text,
body.light-theme .c3-axis text,
body.light-theme .c3-chart-arcs-title,
body.light-theme .c3-title,
body.light-theme .stats-item-wrapper svg text {
    fill: #0F172A !important;
    color: #0F172A !important;
}
body.light-theme .c3-tooltip {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}
body.light-theme .c3-tooltip th {
    background: #EDF2F7 !important;
    color: #0F172A !important;
}
body.light-theme .c3-tooltip td {
    background: #FFFFFF !important;
    color: #1E293B !important;
    border-color: #E2E8F0 !important;
}
body.light-theme .box > .box-body {
    background: #F8FAFC !important;
}


/* ==========================================================================
   12. DETERMINISTIC HEADER & NAVBAR LOCK (Loads in <head> at t=0ms)
   ========================================================================== */
body.light-theme .main-header .logo,
body.light-theme .main-header .navbar-brand {
    display: none !important;
}
body.light-theme .main-header,
body.light-theme .main-navbar,
body.light-theme .navbar-static-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    background: #F1F5F9 !important;
    border-bottom: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    min-height: 64px !important;
    height: auto !important;
}
body.light-theme .main-header .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
body.light-theme .main-header .navbar-right .dropdown-menu {
    top: calc(100% - 6px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1035 !important;
}
body.light-theme .main-header .navbar-static-top {
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
body.light-theme .main-header .navbar .navbar-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
body.light-theme .main-header a[href*="search"],
body.light-theme .main-header a[ui-sref*="search"],
body.light-theme .main-header li:has(> a[href*="search"]),
body.light-theme .main-header li:has(> a[ui-sref*="search"]) {
    display: none !important;
}
body.light-theme .main-header .navbar-nav:not(.navbar-right) {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    float: none !important;
    margin: 0 !important;
}
body.light-theme .main-header .navbar-nav:not(.navbar-right) > li {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
body.light-theme .main-header .navbar-nav:not(.navbar-right) > li > a {
    color: #475569 !important;
    height: 64px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 3px solid transparent !important;
}
body.light-theme .main-header .navbar-nav:not(.navbar-right) > li.active > a {
    color: #1D4ED8 !important;
    background: rgba(37, 99, 235, 0.07) !important;
    border-bottom: 3px solid #2563EB !important;
}
body.light-theme .main-header .navbar-custom-menu {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    float: none !important;
}
body.light-theme .main-header .navbar-custom-menu .navbar-nav,
body.light-theme .main-header .navbar-right {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
body.light-theme .main-header .navbar-right > li {
    display: inline-flex !important;
    align-items: center !important;
    height: 64px !important;
    float: none !important;
    flex-shrink: 0 !important;
}
body.light-theme .content-wrapper {
    padding-top: 82px !important;
    margin-top: 0 !important;
}

/* Performance: Remove artificial 300ms fade delay & heavy GPU blur */
body.light-theme .content [ng-repeat]:not([data-kanban-processed]),
body.light-theme .content .list-group-item:not([data-kanban-processed]) {
    animation: kanbanFailsafe 0.05s forwards 0.05s !important;
}
body.light-theme .kanban-card,
body.light-theme .metric-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
}

/* Settings & About Banners (Soft Cool-Slate Light Theme) */
body.light-theme .settings-page-heading,
body.light-theme .cynox-about-header {
    background: linear-gradient(135deg, #EDF2F7 0%, #DBEAFE 100%) !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}
body.light-theme .settings-main-title,
body.light-theme .cynox-about-title {
    color: #0F172A !important;
}
body.light-theme .settings-main-subtitle,
body.light-theme .cynox-about-subtitle {
    color: #475569 !important;
}
body.light-theme .cynox-about-modal {
    background: #F8FAFC !important;
    color: #0F172A !important;
}

/* ==========================================================================
   13. CASE & ALERT DETAILS STRUCTURED CARD VIEW
   ========================================================================== */
body.light-theme .case-details {
    display: flex !important;
    gap: 18px !important;
    margin: 0 !important;
    align-items: stretch !important;
}
@media (max-width: 991px) {
    body.light-theme .case-details {
        flex-direction: column !important;
    }
}
body.light-theme .case-details > .col-md-8,
body.light-theme .case-details > .col-md-4 {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 0 !important;
}
@media (min-width: 992px) {
    body.light-theme .case-details > .col-md-8 {
        flex: 1 1 66% !important;
        width: auto !important;
    }
    body.light-theme .case-details > .col-md-4 {
        flex: 1 1 34% !important;
        width: auto !important;
    }
}
body.light-theme .case-details h4.vpad10,
body.light-theme .case-custom-fields h4.vpad10,
body.light-theme .vpad10 > h4.vpad10 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 0 0 10px 0 !important;
    margin: 0 0 14px 0 !important;
}
body.light-theme .case-details dl.dl-horizontal {
    display: flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
body.light-theme .case-details dl.dl-horizontal:last-child {
    border-bottom: none !important;
}
body.light-theme .case-details dl.dl-horizontal dt {
    width: 125px !important;
    min-width: 125px !important;
    text-align: left !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    float: none !important;
}
body.light-theme .case-details dl.dl-horizontal dd {
    margin-left: 0 !important;
    flex: 1 !important;
    color: #0F172A !important;
    font-size: 13.5px !important;
}
body.light-theme .case-custom-fields,
body.light-theme .vpad10:has(> .description-pane),
body.light-theme .case-actions,
body.light-theme .case-attachments {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin-top: 16px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
body.light-theme .description-pane {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    color: #1E293B !important;
    min-height: 60px !important;
}
body.light-theme .tab-content {
    background: transparent !important;
    padding: 16px 4px !important;
}

/* ==========================================================================
   14. CASE TABS BAR & TASKS / OBSERVABLES / TTPS CARD STYLING
   ========================================================================== */
body.light-theme .nav-tabs-custom {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
body.light-theme .nav-tabs-custom > .nav-tabs {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 6px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
}
body.light-theme .nav-tabs-custom > .nav-tabs > li {
    border-top: none !important;
    margin: 0 !important;
}
body.light-theme .nav-tabs-custom > .nav-tabs > li > a {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.light-theme .nav-tabs-custom > .nav-tabs > li > a:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}
body.light-theme .nav-tabs-custom > .nav-tabs > li.active {
    border-top: none !important;
}
body.light-theme .nav-tabs-custom > .nav-tabs > li.active > a,
body.light-theme .nav-tabs-custom > .nav-tabs > li.active > a:hover {
    background: #FFFFFF !important;
    color: #1D4ED8 !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

/* Tasks, Observables & TTPs Toolbar + Tables + Cards (.case-page-content) */
body.light-theme .case-page-content {
    padding: 4px 0 24px 0 !important;
}
body.light-theme .case-page-content .btn-toolbar,
body.light-theme .tab-content .btn-toolbar {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin: 0 0 16px 0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}
body.light-theme .case-page-content .filter-panel {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
body.light-theme .case-page-content h4,
body.light-theme .case-page-content datalist-header {
    color: #0F172A !important;
    font-weight: 700 !important;
}
body.light-theme .case-page-content .empty-message {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    color: #475569 !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
body.light-theme .case-page-content table.table,
body.light-theme .tab-content table.table {
    background-color: #F8FAFC !important;
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    margin-top: 8px !important;
}
body.light-theme .case-page-content table.table > thead > tr > th,
body.light-theme .tab-content table.table > thead > tr > th {
    background: #EDF2F7 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-bottom: 1px solid #CBD5E1 !important;
    border-top: none !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
}
body.light-theme .case-page-content table.table > tbody > tr > td,
body.light-theme .tab-content table.table > tbody > tr > td {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
}
body.light-theme .case-page-content table.table > tbody > tr:hover > td,
body.light-theme .tab-content table.table > tbody > tr:hover > td {
    background: #F1F5F9 !important;
}
body.light-theme .case-page-content td.task-actions,
body.light-theme .case-page-content td:last-child {
    white-space: nowrap !important;
}
body.light-theme .case-page-content td .btn.btn-icon {
    padding: 4px 6px !important;
    min-width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    margin-left: 2px !important;
}
body.light-theme .case-page-content td .btn.btn-icon:hover {
    background: #E2E8F0 !important;
}
body.light-theme .case-page-content .ttp-item-header,
body.light-theme .tab-content .ttp-item-header {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
body.light-theme .case-page-content .ttp-item,
body.light-theme .tab-content .ttp-item {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

/* ==========================================================================
   15. TAGS INPUT (ngTagsInput) & MODAL LAYERING FIX
   ========================================================================== */
/* Stacked modals use Bootstrap's native dynamic z-index (1050, 1070, 1090...) above navbar (1030) */
body.light-theme tags-input.form-control,
body.light-theme tags-input.ti-input-sm {
    height: auto !important;
    min-height: 38px !important;
    padding: 4px 8px !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
body.light-theme tags-input .host {
    margin: 0 !important;
    background: transparent !important;
}
body.light-theme tags-input .tags {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
body.light-theme tags-input .tags.focused {
    box-shadow: none !important;
}
body.light-theme tags-input .tags .tag-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body.light-theme tags-input .tags .tag-item {
    background: #EFF6FF !important;
    background-image: none !important;
    color: #1E40AF !important;
    border: 1px solid #BFDBFE !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.light-theme tags-input .tags .tag-item span {
    color: #1E40AF !important;
}
body.light-theme tags-input .tags .tag-item .remove-button {
    color: #2563EB !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    cursor: pointer !important;
}
body.light-theme tags-input .tags .tag-item .remove-button:hover {
    color: #DC2626 !important;
}
body.light-theme tags-input .tags .input,
body.light-theme tags-input .tags input.input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0F172A !important;
    padding: 4px 6px !important;
    margin: 0 !important;
    height: 28px !important;
    min-width: 140px !important;
    flex: 1 1 140px !important;
}
body.light-theme tags-input .autocomplete {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}
body.light-theme tags-input .autocomplete .suggestion-item {
    background: transparent !important;
    color: #0F172A !important;
    padding: 6px 12px !important;
}
body.light-theme tags-input .autocomplete .suggestion-item.selected,
body.light-theme tags-input .autocomplete .suggestion-item:hover {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
}

/* ==========================================================================
   16. CASE ASSIGNMENT AUDIT TRAIL (.sirp-assign-audit)
   ========================================================================== */
body.light-theme .sirp-assign-audit {
    margin-top: 8px !important;
    padding: 8px 10px !important;
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    color: #334155 !important;
}
body.light-theme .sirp-assign-audit .saa-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}
body.light-theme .sirp-assign-audit .saa-badge-by {
    color: #1E293B !important;
}
body.light-theme .sirp-assign-audit .saa-badge-by i {
    color: #2563EB !important;
    margin-right: 3px !important;
}
body.light-theme .sirp-assign-audit .saa-time {
    color: #64748B !important;
    font-size: 11px !important;
}
body.light-theme .sirp-assign-audit .saa-change {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FCD34D !important;
    border-radius: 999px !important;
    padding: 1px 8px !important;
    font-size: 11px !important;
}
body.light-theme .sirp-assign-audit .saa-toggle-btn {
    margin-left: auto !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #1D4ED8 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
body.light-theme .sirp-assign-audit .saa-toggle-btn:hover {
    background: #EFF6FF !important;
    border-color: #93C5FD !important;
}
body.light-theme .sirp-assign-audit .saa-history {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #CBD5E1 !important;
}
body.light-theme .sirp-assign-audit .saa-hist-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
body.light-theme .sirp-assign-audit .saa-hist-item:last-child {
    border-bottom: none !important;
}
body.light-theme .sirp-assign-audit .saa-hist-by {
    color: #475569 !important;
    margin-left: 6px !important;
}
body.light-theme .sirp-assign-audit .saa-hist-time {
    color: #64748B !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   17. MY ASSIGNED CASES CARD IN MY TASKS (.sirp-my-cases-card)
   ========================================================================== */
body.light-theme .sirp-my-cases-card {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
    overflow: hidden !important;
}
body.light-theme .sirp-my-cases-card .smc-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 12px 18px !important;
}
body.light-theme .sirp-my-cases-card .smc-header .box-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}
body.light-theme .sirp-my-cases-card .smc-count {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
}
body.light-theme .sirp-my-cases-card .smc-sub {
    color: #475569 !important;
    font-size: 12.5px !important;
}
body.light-theme .sirp-my-cases-card .smc-body {
    padding: 0 !important;
}
body.light-theme .sirp-my-cases-card .smc-empty {
    padding: 20px !important;
    text-align: center !important;
    color: #64748B !important;
}
body.light-theme .sirp-my-cases-card .smc-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 18px !important;
    border-top: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
}
body.light-theme .sirp-my-cases-card .smc-row:first-child {
    border-top: none !important;
}
body.light-theme .sirp-my-cases-card .smc-row:hover {
    background: #EFF6FF !important;
}
body.light-theme .sirp-my-cases-card .smc-sev {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    flex-shrink: 0 !important;
}
body.light-theme .sirp-my-cases-card .sev-c { background: #DC2626 !important; }
body.light-theme .sirp-my-cases-card .sev-h { background: #EA580C !important; }
body.light-theme .sirp-my-cases-card .sev-m { background: #D97706 !important; }
body.light-theme .sirp-my-cases-card .sev-l { background: #2563EB !important; }
body.light-theme .sirp-my-cases-card .smc-num {
    font-weight: 700 !important;
    color: #1D4ED8 !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}
body.light-theme .sirp-my-cases-card .smc-title {
    font-weight: 600 !important;
    color: #0F172A !important;
    flex: 1 1 auto !important;
    min-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body.light-theme .sirp-my-cases-card .smc-tags {
    display: inline-flex !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
}
body.light-theme .sirp-my-cases-card .smc-tag {
    background: #EDF2F7 !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 1px 7px !important;
    border-radius: 6px !important;
}
body.light-theme .sirp-my-cases-card .smc-status {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 1px solid #BFDBFE !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
}
body.light-theme .sirp-my-cases-card .smc-date {
    color: #64748B !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   18. COMPACT WAITING TASKS / LIST SPACING (Remove Empty Vertical Gap)
   ========================================================================== */
body.light-theme .box-body > .row.mt-s:not(:has(.label, .badge, button, a, .filter-item, .cynox-kanban-board, table)),
body.light-theme .box-body > .row.mt-xs:not(:has(.label, .badge, button, a, .filter-item, .cynox-kanban-board, table)) {
    display: none !important;
    margin: 0 !important;
}
body.light-theme .cynox-kanban-board {
    margin-top: 4px !important;
    padding-top: 0 !important;
}
body.light-theme .cynox-metrics-banner {
    margin-top: 0 !important;
}
body.light-theme .list-pagination:not(:has(ul.pagination)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}
body.light-theme .box-body .btn-toolbar {
    margin-bottom: 10px !important;
}
body.light-theme .box-body > .mt-s {
    margin-top: 8px !important;
}
body.light-theme .main-fadein table.table {
    margin-top: 0 !important;
}

/* ==========================================================================
   19. LIVE STREAM (<flow>) HOVER & ITEM LIGHT-THEME FIX
   ========================================================================== */
body.light-theme flow .list-group-item,
body.light-theme flow .flow-item,
body.light-theme flow li,
body.light-theme .flow-list > li {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
    transition: background 0.15s ease !important;
}
body.light-theme flow .list-group-item:hover,
body.light-theme flow .flow-item:hover,
body.light-theme flow li:hover,
body.light-theme .flow-list > li:hover,
body.light-theme flow .list-group-item:focus,
body.light-theme flow a.list-group-item:hover {
    background: #EFF6FF !important;
    color: #0F172A !important;
}
body.light-theme flow .list-group-item *,
body.light-theme flow .flow-item * {
    color: inherit;
}

/* ==========================================================================
   20. QUICK GLOBAL SEARCH BAR (.sirp-quick-search-card)
   ========================================================================== */
body.light-theme .sirp-quick-search-card {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
}
body.light-theme .sirp-quick-search-card .sqs-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
}
body.light-theme .sirp-quick-search-card .sqs-header .box-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}
body.light-theme .sirp-quick-search-card .sqs-sub {
    color: #475569 !important;
    font-size: 12.5px !important;
}
body.light-theme .sirp-quick-search-card .sqs-body {
    padding: 16px 18px !important;
}
body.light-theme .sirp-quick-search-card .sqs-bar {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}
body.light-theme .sirp-quick-search-card .sqs-bar input {
    flex: 1 1 auto !important;
    height: 38px !important;
    font-size: 13.5px !important;
}
body.light-theme .sirp-quick-search-card .sqs-results {
    margin-top: 14px !important;
    border-top: 1px solid #E2E8F0 !important;
    padding-top: 12px !important;
}
body.light-theme .sirp-quick-search-card .sqs-summary {
    font-size: 12.5px !important;
    color: #475569 !important;
    margin-bottom: 10px !important;
}
body.light-theme .sirp-quick-search-card .sqs-group {
    margin-bottom: 12px !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
}
body.light-theme .sirp-quick-search-card .sqs-group-title {
    background: #EDF2F7 !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.light-theme .sirp-quick-search-card .sqs-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    border-top: 1px solid #F1F5F9 !important;
    color: #0F172A !important;
    text-decoration: none !important;
}
body.light-theme .sirp-quick-search-card .sqs-item:hover {
    background: #EFF6FF !important;
}
body.light-theme .sirp-quick-search-card .sqs-badge {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}
body.light-theme .sirp-quick-search-card .sqs-badge.alert { background: #FEE2E2 !important; color: #B91C1C !important; }
body.light-theme .sirp-quick-search-card .sqs-badge.task { background: #D1FAE5 !important; color: #047857 !important; }
body.light-theme .sirp-quick-search-card .sqs-badge.obs { background: #FEF3C7 !important; color: #B45309 !important; }
body.light-theme .sirp-quick-search-card .sqs-item-title {
    flex: 1 1 auto !important;
    font-weight: 600 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body.light-theme .sirp-quick-search-card .sqs-meta {
    font-size: 11.5px !important;
    color: #64748B !important;
    white-space: nowrap !important;
}
body.light-theme .sirp-quick-search-card .sqs-empty,
body.light-theme .sirp-quick-search-card .sqs-loading {
    padding: 16px !important;
    text-align: center !important;
    color: #475569 !important;
}

/* ==========================================================================
   21. MY TASKS 4 METRIC CARDS GRID & SPACING FIX
   ========================================================================== */
body.light-theme .sirp-my-cases-card {
    margin: 6px 0 18px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
body.light-theme .sirp-my-cases-card .cynox-metrics-banner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
@media (max-width: 900px) {
    body.light-theme .sirp-my-cases-card .cynox-metrics-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
body.light-theme .sirp-my-cases-card .metric-card {
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* ==========================================================================
   22. ALL ADMINISTRATION & ORGANISATION PAGES LIGHT-THEME FIX
   ========================================================================== */
body.light-theme .admin-page .box-header,
body.light-theme .admin-page .admin-header,
body.light-theme .organisation-details-page .box-header,
body.light-theme .organisation-details-page .admin-header,
body.light-theme .platform-header,
body.light-theme .profiles-header {
    background: #EDF2F7 !important;
    background-image: none !important;
    color: #0F172A !important;
    border-bottom: 1px solid #CBD5E1 !important;
}
body.light-theme .admin-page .box-title,
body.light-theme .admin-page .admin-title,
body.light-theme .organisation-details-page .box-title,
body.light-theme .organisation-details-page .admin-title,
body.light-theme .platform-title,
body.light-theme .profiles-title {
    color: #0F172A !important;
}
body.light-theme .admin-title i,
body.light-theme .admin-page .box-title i,
body.light-theme .organisation-details-page .box-title i {
    color: #2563EB !important;
}
body.light-theme .admin-subtitle,
body.light-theme .platform-subtitle,
body.light-theme .profiles-subtitle,
body.light-theme .admin-page .box-header p,
body.light-theme .organisation-details-page .box-header p {
    color: #475569 !important;
}
body.light-theme .admin-count,
body.light-theme .profiles-count {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
    border: 1px solid #BFDBFE !important;
}
body.light-theme .organisation-details-page .organisation-back-btn {
    background: #FFFFFF !important;
    color: #1E293B !important;
    border: 1px solid #CBD5E1 !important;
}
body.light-theme .organisation-details-page .organisation-back-btn:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}
body.light-theme .admin-box,
body.light-theme .admin-body,
body.light-theme .platform-body,
body.light-theme .profiles-body {
    background: #F8FAFC !important;
    color: #0F172A !important;
}
body.light-theme .admin-flex-card,
body.light-theme .admin-table-card,
body.light-theme .admin-toolbar,
body.light-theme .admin-search-box,
body.light-theme .admin-bottom-search,
body.light-theme .admin-filter-preview,
body.light-theme .admin-filter-panel,
body.light-theme .admin-empty,
body.light-theme .admin-loading,
body.light-theme .organisation-summary-item,
body.light-theme .cynox-profile-selected {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}
body.light-theme .admin-flex-row {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
}
body.light-theme .admin-flex-row:hover {
    background: #F1F5F9 !important;
}
body.light-theme .admin-section-title,
body.light-theme .organisation-section-title,
body.light-theme .admin-item-title,
body.light-theme .admin-name,
body.light-theme .admin-name a {
    color: #0F172A !important;
}
body.light-theme .admin-page table.table,
body.light-theme .admin-table,
body.light-theme .organisation-details-page table.table {
    background: #FFFFFF !important;
    color: #0F172A !important;
}
body.light-theme .admin-page table.table > thead > tr > th,
body.light-theme .admin-table > thead > tr > th {
    background: #EDF2F7 !important;
    color: #334155 !important;
    border-bottom: 1px solid #CBD5E1 !important;
}
body.light-theme .admin-page table.table > tbody > tr > td,
body.light-theme .admin-table > tbody > tr > td {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
body.light-theme .admin-page table.table > tbody > tr > td *:not(.btn):not(.btn *):not(.label):not(.badge):not(.admin-label):not(.admin-label-warning):not(.admin-label-success):not(.admin-label-danger):not(a) {
    color: #1E293B !important;
}
body.light-theme .admin-page table.table > tbody > tr > td a:not(.btn) {
    color: #1D4ED8 !important;
}
body.light-theme .admin-page table.table > tbody > tr:hover > td,
body.light-theme .admin-table > tbody > tr:hover > td {
    background: #F1F5F9 !important;
}
body.light-theme .admin-page .text-muted,
body.light-theme .organisation-details-page .text-muted {
    color: #475569 !important;
}
body.light-theme .admin-page pre,
body.light-theme .admin-page code,
body.light-theme .admin-page .well {
    background: #EDF2F7 !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}
body.light-theme .admin-page .nav-pills > li > a,
body.light-theme .organisation-tabs .nav-tabs > li > a {
    color: #475569 !important;
    background: transparent !important;
}
body.light-theme .admin-page .nav-pills > li.active > a,
body.light-theme .organisation-tabs .nav-tabs > li.active > a {
    background: #FFFFFF !important;
    color: #1D4ED8 !important;
    border: 1px solid #CBD5E1 !important;
}
body.light-theme .cynox-profile-type-group .btn.active {
    background: #2563EB !important;
    color: #FFFFFF !important;
    border-color: #1D4ED8 !important;
}
