/* ============================================
   THEME-RED — Modern light theme
   ============================================ */

/* ---- Top Navbar ---- */
.theme-red .navbar {
    background-color: #ffffff !important;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
}

/* Company name */
.theme-red .navbar-brand {
    color: #1e293b;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.theme-red .navbar-brand:hover,
.theme-red .navbar-brand:active,
.theme-red .navbar-brand:focus {
    color: #0F2D46;
}

/* Nav item links */
.theme-red .nav > li > a {
    color: #475569;
}
.theme-red .nav > li > a:hover,
.theme-red .nav > li > a:focus {
    background-color: #f1f5f9;
    border-radius: 8px;
}

.theme-red .nav .open > a {
    background-color: #f1f5f9;
    border-radius: 8px;
}
.theme-red .nav .open > a:hover,
.theme-red .nav .open > a:focus {
    background-color: #e2e8f0;
}

/* Bars toggle */
.theme-red .bars {
    color: #475569;
}

.theme-red .navbar .navbar-toggle {
    color: #475569;
}
.theme-red .navbar .navbar-toggle:before {
    color: #475569;
}

/* ---- Right Navbar Items ---- */

/* Navbar icons — muted, with circular hover */
.theme-red .navbar .navbar-nav i {
    color: #64748b;
    font-size: 17px;
    transition: all 0.15s ease;
}

/* Notification icon buttons — circular background on hover */
.theme-red .navbar .navbar-nav > li > .dropdown-toggle,
.theme-red .navbar .navbar-nav > li > a {
    position: relative;
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 12px;
    transition: all 0.15s ease;
}
.theme-red .navbar .navbar-nav > li > .dropdown-toggle:hover,
.theme-red .navbar .navbar-nav > li > a:hover {
    background-color: #f1f5f9 !important;
}
.theme-red .navbar .navbar-nav > li > a:hover i {
    color: #1e293b;
}

/* Notification badge — red dot with count */
.theme-red .navbar .count-log {
    color: #fff;
    background-color: #ef4444;
    border: 2px solid #fff;
    font-size: 9px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
    text-align: center;
    padding: 0 4px;
    border-radius: 10px;
}

/* Label count — same red badge */
.theme-red .navbar .label-count {
    background-color: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ---- Text action buttons (Support Ticket, Client Monitoring) ---- */
.theme-red .navbar .nav-spn-text-font-size {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

/* Pill button style */
.theme-red .navbar .navbar-nav .btn-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    background-color: #f8fafc;
    transition: all 0.15s ease;
    text-decoration: none;
}
.theme-red .navbar .navbar-nav .btn-link:hover {
    background-color: #eef2ff !important;
    border-color: #c7d2fe;
    color: #3b5998 !important;
}
.theme-red .navbar .navbar-nav .btn-link i {
    font-size: 13px;
    color: #64748b;
    margin-right: 2px;
}
.theme-red .navbar .navbar-nav .btn-link:hover i {
    color: #3b5998;
}

/* User profile icon — slightly larger, rounded avatar style */
.theme-red .navbar .navbar-nav > li:last-child > .dropdown-toggle {
    background-color: #eef2ff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 14px;
}
.theme-red .navbar .navbar-nav > li:last-child > .dropdown-toggle i {
    color: #3b82f6;
    font-size: 15px;
    margin: 0;
}
.theme-red .navbar .navbar-nav > li:last-child > .dropdown-toggle:hover {
    background-color: #dbeafe !important;
}

/* Nav items spacing */
.theme-red .navbar .navbar-nav > li {
    margin: 0 1px;
}

/* Vertical divider between text buttons and icon buttons */
.theme-red .navbar .navbar-nav .dropdown-notification {
    margin-left: 8px;
}

/* ---- Customer Search Bar ---- */
.theme-red .navbar .js-search {
    display: flex;
    align-items: center;
    margin-top: 14px;
}
.theme-red .navbar .js-search i {
    color: #94a3b8;
    font-size: 16px;
}

/* Search bar container — vertically center in 64px navbar */
.theme-red .search-bar.open {
    top: 13px !important;
}
.theme-red .search-bar .search-div {
    top: 0 !important;
    left: 0 !important;
    position: relative !important;
    width: 100%;
}

/* Select2 inside search bar — modern look */
.theme-red .search-bar .select2-container {
    margin-top: 0 !important;
}

.theme-red .search-bar .select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background-color: #f4f6f8 !important;
    padding: 4px 12px !important;
    transition: all 0.15s ease;
    box-shadow: none !important;
}

.theme-red .search-bar .select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff !important;
}

.theme-red .search-bar .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0F2D46 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(15, 45, 70, 0.08) !important;
}

.theme-red .search-bar .select2-selection__rendered {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 28px !important;
    padding-left: 4px !important;
}

.theme-red .search-bar .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.theme-red .search-bar .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
}

/* Select2 dropdown panel */
.theme-red .select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    margin-top: 4px;
}

.theme-red .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    outline: none !important;
}

.theme-red .select2-search--dropdown .select2-search__field:focus {
    border-color: #0F2D46 !important;
    box-shadow: 0 0 0 2px rgba(15, 45, 70, 0.08) !important;
}

.theme-red .select2-results__option {
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #475569;
}

.theme-red .select2-results__option--highlighted[aria-selected] {
    background-color: #eef2ff !important;
    color: #1e293b !important;
}

.theme-red .select2-results__option[aria-selected=true] {
    background-color: #f1f5f9 !important;
    color: #0F2D46 !important;
}

/* ---- Dropdown Menus ---- */
.theme-red .navbar .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: -15px !important;
    overflow: hidden;
    padding: 4px 0;
}
.theme-red .navbar .dropdown-menu .header {
    background-color: transparent;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px 8px;
}
.theme-red .navbar .dropdown-menu ul.menu li {
    border-bottom-color: #f1f5f9;
}
.theme-red .navbar .dropdown-menu ul.menu li a {
    padding: 8px 12px;
    margin: 2px 6px;
    border-radius: 8px;
}
.theme-red .navbar .dropdown-menu ul.menu li a:hover {
    background-color: #f1f5f9;
}
.theme-red .navbar .dropdown-menu ul.menu .menu-info h4 {
    font-size: 12.5px;
    color: #475569;
    font-weight: 500;
}

/* Notification dropdown */
.theme-red .navbar .notification-dropdown,
.theme-red .navbar .notice-dropdown {
    min-width: 320px;
}

/* Profile dropdown */
.theme-red .navbar .profile-dropdown {
    border-radius: 12px;
    min-width: 200px;
    padding: 6px;
}
.theme-red .navbar .profile-dropdown li {
    border-bottom: none;
}
.theme-red .navbar .profile-dropdown li a {
    padding: 9px 14px;
    font-size: 13px;
    color: #475569;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}
.theme-red .navbar .profile-dropdown li a:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.theme-red .navbar .profile-dropdown li a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}
.theme-red .navbar .profile-dropdown li a:hover i {
    color: #3b82f6;
}
.theme-red .navbar .profile-dropdown .divider {
    margin: 4px 10px;
    border-color: #f1f5f9;
}

/* ---- Navbar Header (logo area above sidebar) ---- */
.theme-red .navbar-header {
    background-color: #ffffff !important;
    border-bottom: none;
    border-right: none;
    height: 64px;
    display: flex;
    align-items: center;
}

/* Menu toggle button */
.theme-red .menutoggle-bar i {
    background-color: #f1f5f9;
    color: #64748b;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}
.theme-red .menutoggle-bar:hover i {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* ---- Sidebar Base ---- */
.theme-red .sidebar {
    background: #ffffff;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.04);
}

/* ---- Menu Search ---- */
.theme-red .menu-search-container {
    padding: 12px 12px 8px 12px !important;
}

.theme-red .menu-search-input {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background-color: #f4f6f8;
    color: #344767;
    height: 36px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.theme-red .menu-search-input:focus {
    border-color: #0F2D46 !important;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(15, 45, 70, 0.08) !important;
}
.theme-red .menu-search-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.theme-red .sidebar.active .menu-search-container {
    width: 52px !important;
    padding: 12px 0 8px !important;
}

.theme-red .sidebar.active .menu-search-container form {
    display: flex;
    justify-content: center;
    margin: 0 !important;
}

.theme-red .sidebar.active .menu-search-input {
    display: block !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 36px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    color: transparent !important;
}

.theme-red .sidebar.active .menu-search-input::placeholder {
    color: transparent !important;
}

/* ---- Menu Items ---- */
.theme-red .sidebar .menu .list a {
    color: #475569;
    padding: 0 8px !important;
    border-bottom: none !important;
    transition: all 0.15s ease;
    margin: 1px 0;
}

.theme-red .sidebar .menu .list > li > a {
    margin: 1px 8px;
    padding: 9px 12px !important;
    border-radius: 8px;
}

.theme-red .sidebar .menu .list a span {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    margin: 0 0 0 12px !important;
    letter-spacing: 0.01em;
}

.theme-red .fontawesome-icons {
    font-size: 16px !important;
    color: #94a3b8;
    width: 20px !important;
    text-align: center;
    margin-top: 0 !important;
    transition: color 0.15s ease;
}

/* ---- Icon Colors (auto-cycling by position) ---- */
.theme-red .sidebar .menu .list > li:nth-child(7n+1) > a > .fontawesome-icons { color: #3b82f6; }  /* blue */
.theme-red .sidebar .menu .list > li:nth-child(7n+2) > a > .fontawesome-icons { color: #8b5cf6; }  /* purple */
.theme-red .sidebar .menu .list > li:nth-child(7n+3) > a > .fontawesome-icons { color: #06b6d4; }  /* cyan */
.theme-red .sidebar .menu .list > li:nth-child(7n+4) > a > .fontawesome-icons { color: #10b981; }  /* emerald */
.theme-red .sidebar .menu .list > li:nth-child(7n+5) > a > .fontawesome-icons { color: #f59e0b; }  /* amber */
.theme-red .sidebar .menu .list > li:nth-child(7n+6) > a > .fontawesome-icons { color: #ef4444; }  /* red */
.theme-red .sidebar .menu .list > li:nth-child(7n+7) > a > .fontawesome-icons { color: #ec4899; }  /* pink */

/* ---- Hover State (rounded pill) ---- */
.theme-red .sidebar .menu .list > li > a:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}
.theme-red .sidebar .menu .list a:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}
.theme-red .sidebar .menu .list a:hover span {
    color: #1e293b !important;
}
.theme-red .sidebar .menu .list a:hover .fontawesome-icons {
    opacity: 0.85;
}

/* ---- Active Parent Menu ---- */
.theme-red .sidebar .menu .list li.active {
    background-color: transparent;
    border-left: none;
    font-weight: normal;
    color: #0F2D46;
}
.theme-red .sidebar .menu .list li.active > a {
    background-color: #eef2ff !important;
    border-left: none;
}
.theme-red .sidebar .menu .list li.active > :first-child span {
    font-weight: 600 !important;
    color: #0F2D46 !important;
}
.theme-red .sidebar .menu .list li.active > a .fontawesome-icons {
    color: #2563eb;
}
.theme-red .sidebar .menu .list li.active a span {
    color: #0F2D46;
}

/* ---- Toggle Arrows (expand/collapse) ---- */
.theme-red .sidebar .menu .list .menu-toggle:after,
.theme-red .sidebar .menu .list .menu-toggle:before {
    color: #94a3b8 !important;
    font-size: 16px !important;
    right: 12px !important;
}

.theme-red .sidebar.active .menu .list .menu-toggle:after,
.theme-red .sidebar.active .menu .list .menu-toggle:before {
    display: none !important;
    content: none !important;
}

.theme-red .sidebar.active .menu .list > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 38px !important;
    margin: 1px 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.theme-red .sidebar.active .menu .list > li > a > span {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.theme-red .sidebar.active .menu .list > li > a > .fontawesome-icons {
    display: inline-block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
}

.theme-red .sidebar.active .menu .list .ml-menu {
    display: none !important;
}

/* ---- Toggled/Expanded Parent ---- */
.theme-red .sidebar .menu .list .toggled {
    background-color: #f8fafc;
    border-radius: 8px;
}

/* ---- Submenu ---- */
.theme-red .sidebar .menu .list .ml-menu {
    background-color: transparent;
    margin: 0 8px;
    padding-left: 0;
    border-left: 1px solid #e2e8f0;
    margin-left: 28px;
}

.theme-red .sidebar .menu .list .ml-menu li a {
    border-bottom: none !important;
    padding-left: 20px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-radius: 6px;
    margin: 1px 4px;
}

.theme-red .sidebar .menu .list .ml-menu li a:hover {
    background-color: #f1f5f9 !important;
}

.theme-red .sidebar .menu .list .ml-menu span {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-left: 0 !important;
}

/* Submenu bullet — hide default, use border-left line instead */
.theme-red .sidebar .menu .list .ml-menu li::before {
    content: "" !important;
    display: none !important;
}

.theme-red .sidebar .menu .list .ml-menu li {
    position: relative;
}

/* ---- Active Submenu Item ---- */
.theme-red .sidebar .menu .list li ul li.active {
    background-color: transparent;
    border-left: none;
    color: #0F2D46;
}
.theme-red .sidebar .menu .list li ul li.active > a {
    background-color: #eef2ff !important;
}
.theme-red .sidebar .menu .list li ul li.active a span {
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* ---- Submenu hover span ---- */
.theme-red .sidebar .menu .list .ml-menu li a:hover span {
    color: #1e293b !important;
}

/* ---- Legal/Footer ---- */
.theme-red .sidebar .legal {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
}

.theme-red .sidebar .legal .copyright a {
    color: #0F2D46 !important;
}

/* ---- Scrollbar styling ---- */
.theme-red .sidebar .menu::-webkit-scrollbar {
    width: 4px;
}
.theme-red .sidebar .menu::-webkit-scrollbar-track {
    background: transparent;
}
.theme-red .sidebar .menu::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
.theme-red .sidebar .menu::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* ============================================
   DataTable & Table Styling
   ============================================ */

/* ---- Table Container — card-like wrapper ---- */
.theme-red .dataTables_wrapper {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow-x: auto;
}

/* ---- Top Controls Bar (Show entries / Search) ---- */
.theme-red .dataTables_wrapper .dataTables_length,
.theme-red .dataTables_wrapper .dataTables_filter {
    padding: 16px 20px 12px !important;
}

.theme-red .dataTables_wrapper .dataTables_length label,
.theme-red .dataTables_wrapper .dataTables_filter label {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.theme-red .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0F2D46;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 70px;
}
.theme-red .dataTables_wrapper .dataTables_length select:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff;
}
.theme-red .dataTables_wrapper .dataTables_length select:focus {
    border-color: #0F2D46 !important;
    box-shadow: 0 0 0 3px rgba(15, 45, 70, 0.08);
    outline: none;
}

.theme-red .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    font-size: 13px;
    color: #334155;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.15s ease;
    min-width: 200px;
}
.theme-red .dataTables_wrapper .dataTables_filter input:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff;
}
.theme-red .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0F2D46 !important;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(15, 45, 70, 0.08);
}

/* ---- Table Header ---- */
.theme-red .table thead tr th,
.theme-red .table.dataTable thead tr th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #e2e8f0 !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 13px 12px !important;
    white-space: nowrap;
    position: relative;
}

/* Column header icons — accent blue */
.theme-red .table thead tr th i,
.theme-red .table.dataTable thead tr th i,
.theme-red .table thead tr th .fas,
.theme-red .table.dataTable thead tr th .fas,
.theme-red .table thead tr th .fa,
.theme-red .table.dataTable thead tr th .fa {
    color: #3b82f6 !important;
    opacity: 0.7;
    margin-right: 2px;
}

/* ---- Sorting Icons ---- */
.theme-red table.dataTable thead .sorting:after,
.theme-red table.dataTable thead .sorting_asc:after,
.theme-red table.dataTable thead .sorting_desc:after {
    opacity: 0.3;
    color: #94a3b8;
}
.theme-red table.dataTable thead .sorting_asc:after {
    opacity: 0.9;
    color: #3b82f6;
}
.theme-red table.dataTable thead .sorting_desc:after {
    opacity: 0.9;
    color: #3b82f6;
}

/* Hover on sortable header */
.theme-red table.dataTable thead th:hover {
    background: #eef2ff !important;
}

/* ---- Table Body ---- */
.theme-red .table > tbody > tr > td {
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 13px;
    padding: 10px 12px !important;
    vertical-align: middle;
}

/* Non-action icons inside table cells inherit primary color */
.theme-red .table > tbody > tr > td i:not([class*="action-btn"]) {
    color: var(--ds-primary);
}

/* Zebra striping */
.theme-red .table > tbody > tr:nth-of-type(odd) {
    background-color: #ffffff;
}
.theme-red .table > tbody > tr:nth-of-type(even) {
    background-color: #f8fafc;
}

/* Row hover */
.theme-red .table.dataTable.hover tbody tr:hover,
.theme-red .table.dataTable.display tbody tr:hover,
.theme-red .table > tbody > tr:hover {
    background-color: #eef2ff !important;
}

/* First column accent on hover */
.theme-red .table > tbody > tr:hover > td:first-child {
    box-shadow: inset 3px 0 0 #3b82f6;
}

/* ---- Table Bordered ---- */
.theme-red .table-bordered {
    border: 1px solid #e2e8f0 !important;
}
.theme-red .table-bordered > thead > tr > th,
.theme-red .table-bordered > tbody > tr > td {
    border: 1px solid #e5e7eb !important;
}

/* ---- Bottom Controls Bar (Info / Pagination) ---- */
.theme-red .dataTables_wrapper .dataTables_info {
    color: #94a3b8;
    font-size: 12px;
    padding: 12px 20px !important;
    font-weight: 400;
}

.theme-red .dataTables_wrapper .dataTables_paginate {
    padding: 12px 20px 12px 0 !important;
}

/* ---- Pagination ---- */
.theme-red .pagination li.active a,
.theme-red .pagination li.active a:hover {
    background-color: #0F2D46 !important;
    color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(15, 45, 70, 0.2);
}

.theme-red .pagination > li > a {
    color: #475569;
    border: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
    margin: 0 2px;
    padding: 6px 12px;
    transition: all 0.15s ease;
}

.theme-red .pagination > li > a:hover {
    background-color: #f1f5f9;
    color: #0F2D46;
}

.theme-red .pagination .disabled a,
.theme-red .pagination .disabled a:hover {
    color: #cbd5e1;
    background-color: transparent;
}

/* ---- Action Buttons (edit/delete/view etc.) — pill style ---- */
.theme-red .action-btn-bg-edit,
.theme-red .action-btn-bg-delete,
.theme-red .action-btn-bg-view,
.theme-red .action-btn-bg-print,
.theme-red .action-btn-bg-sms,
.theme-red .action-btn-bg-notice,
.theme-red .action-btn-bg-sync,
.theme-red .action-btn-bg-backup,
.theme-red .action-btn-bg-key,
.theme-red .action-btn-bg-dataview,
.theme-red .action-btn-bg-reject,
.theme-red .action-btn-bg-mac-sync,
.theme-red .action-btn-bg-green,
.theme-red .action-btn-bg-confirmnewtask {
    border-radius: 6px;
    padding: 5px 8px;
    transition: all 0.15s ease;
}
.theme-red .action-btn-bg-edit:hover { background-color: #ecfdf5 !important; }
.theme-red .action-btn-bg-delete:hover { background-color: #fef2f2 !important; }
.theme-red .action-btn-bg-view:hover { background-color: #eff6ff !important; }
.theme-red .action-btn-bg-print:hover { background-color: #f5f3ff !important; }
.theme-red .action-btn-bg-sms:hover { background-color: #ecfdf5 !important; }

/* ---- Card/Panel containing tables ---- */
.theme-red .card .table,
.theme-red .body .table {
    margin-bottom: 0;
}

/* ============================================
   Dashboard Design
   ============================================ */

/* ---- Dashboard Wrapper ---- */
.theme-red .wrapper-dashboard {
    margin: 16px 20px 20px 20px;
}

/* ---- Dashboard Header ---- */
.theme-red .wrapper-dashboard .headerTitleDiv {
    margin-bottom: 16px !important;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.theme-red .wrapper-dashboard .headerTitleDiv h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}

.theme-red .wrapper-dashboard .headerTitleDiv h2 a {
    color: #1e293b;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.theme-red .wrapper-dashboard .headerTitleDiv h2 a i {
    color: #3b82f6;
    margin-right: 10px;
    font-size: 20px;
}

.theme-red .wrapper-dashboard .headerTitleDiv h2 small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    margin-left: 12px;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* ============================================
   TOOLBAR — grouped button bar (BillingList style)
   ============================================ */
.theme-red .card-top-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    height: auto !important;
    align-items: center;
    
}
.card-top-header {
    /*justify-content: right !important;*/
}
.theme-red .toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.theme-red .toolbar-divider {
    width: 1px;
    height: 26px;
    background: #d0d5dd;
    margin: 0 6px;
}
.theme-red .toolbar-label {
    font-size: 10px;
    font-weight: 700;
    color: #8a9bb0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 2px;
    white-space: nowrap;
}
.theme-red .tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    line-height: 1.5;
    text-decoration: none;
}
.theme-red .tb-btn:hover, .theme-red .tb-btn:focus, .theme-red .tb-btn:active {
    text-decoration: none;
}
.theme-red .tb-btn i { font-size: 11px; }
.theme-red .tb-btn img { height: 14px; width: auto; vertical-align: middle; }
.theme-red .tb-btn-primary {
    background: #143652;
    color: #fff;
    border-color: #143652;
}
.theme-red .tb-btn-primary:hover {
    background: #1a4a6e;
    box-shadow: 0 2px 6px rgba(20,54,82,0.3);
    color: #fff;
}
.theme-red .tb-btn-outline {
    background: #fff;
    color: #344054;
    border-color: #d0d5dd;
}
.theme-red .tb-btn-outline:hover {
    background: #f2f4f7;
    border-color: #98a2b3;
    color: #143652;
}
.theme-red .tb-btn-success {
    background: #12b76a;
    color: #fff;
    border-color: #12b76a;
}
.theme-red .tb-btn-success:hover {
    background: #0e9956;
    color: #fff;
}
.theme-red .tb-btn-danger {
    background: #f04438;
    color: #fff;
    border-color: #f04438;
}
.theme-red .tb-btn-danger:hover {
    background: #d92d20;
    color: #fff;
}
.theme-red .tb-btn-warning {
    background: #f79009;
    color: #fff;
    border-color: #f79009;
}
.theme-red .tb-btn-warning:hover {
    background: #dc6803;
    color: #fff;
}
.theme-red .tb-btn-purple {
    background: #7a5af8;
    color: #fff;
    border-color: #7a5af8;
}
.theme-red .tb-btn-purple:hover {
    background: #6442e0;
    color: #fff;
}

/* Title bottom border — subtle */
.theme-red .title-bottom-border {
    border-color: #f1f5f9 !important;
}

/* Accounting Dashboard add button */
.theme-red .wrapper-dashboard .add-action-btn {
    background: #0F2D46 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(15, 45, 70, 0.15);
}
.theme-red .wrapper-dashboard .add-action-btn:hover {
    background: #1a3f5c !important;
    box-shadow: 0 4px 12px rgba(15, 45, 70, 0.25) !important;
    transform: translateY(-1px);
}

/* ---- Info Box Cards — Modern White Card Style ---- */
.theme-red .wrapper-dashboard .info-box-card {
    margin-bottom: 16px !important;
    border-radius: 10px !important;
}

/* Override ALL gradient backgrounds to white */
.theme-red .wrapper-dashboard .info-box-card.blue-gradiant,
.theme-red .wrapper-dashboard .info-box-card.orange-gradiant,
.theme-red .wrapper-dashboard .info-box-card.green-gradiant,
.theme-red .wrapper-dashboard .info-box-card.red-gradiant,
.theme-red .wrapper-dashboard .info-box-card.pending-gradiant,
.theme-red .wrapper-dashboard .info-box-card.processing-gradiant {
    background: transparent !important;
    border-radius: 10px !important;
}

.theme-red .wrapper-dashboard .info-box-2.blue-gradiant,
.theme-red .wrapper-dashboard .info-box-2.orange-gradiant,
.theme-red .wrapper-dashboard .info-box-2.green-gradiant,
.theme-red .wrapper-dashboard .info-box-2.red-gradiant,
.theme-red .wrapper-dashboard .info-box-2.pending-gradiant,
.theme-red .wrapper-dashboard .info-box-2.processing-gradiant {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    height: 88px;
    transition: all 0.2s ease;
}

/* Left accent borders by gradient type */
.theme-red .wrapper-dashboard .info-box-2.blue-gradiant {
    border-left: 3px solid #3b82f6 !important;
}
.theme-red .wrapper-dashboard .info-box-2.orange-gradiant {
    border-left: 3px solid #14b8a6 !important;
}
.theme-red .wrapper-dashboard .info-box-2.green-gradiant {
    border-left: 3px solid #8b5cf6 !important;
}
.theme-red .wrapper-dashboard .info-box-2.red-gradiant {
    border-left: 3px solid #64748b !important;
}
.theme-red .wrapper-dashboard .info-box-2.pending-gradiant {
    border-left: 3px solid #f43f5e !important;
}
.theme-red .wrapper-dashboard .info-box-2.processing-gradiant {
    border-left: 3px solid #f59e0b !important;
}

/* Hover — subtle lift */
.theme-red .wrapper-dashboard .info-box-2:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-2px);
}

/* Disable the old expand-effect overlay */
.theme-red .wrapper-dashboard .info-box-2.hover-expand-effect:after {
    display: none !important;
}

/* ---- Icon — colored circle badge ---- */
.theme-red .wrapper-dashboard .info-box-2 .icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px !important;
    height: 50px;
    border-radius: 12px;
    margin: auto 0 auto 14px;
    flex-shrink: 0;
}

.theme-red .wrapper-dashboard .info-box-2 .icon i {
    font-size: 22px !important;
    line-height: 1 !important;
}

/* Icon backgrounds & colors by gradient type */
.theme-red .wrapper-dashboard .info-box-2.blue-gradiant .icon {
    background: #eff6ff;
}
.theme-red .wrapper-dashboard .info-box-2.blue-gradiant .icon i {
    color: #3b82f6 !important;
}

.theme-red .wrapper-dashboard .info-box-2.orange-gradiant .icon {
    background: #f0fdfa;
}
.theme-red .wrapper-dashboard .info-box-2.orange-gradiant .icon i {
    color: #14b8a6 !important;
}

.theme-red .wrapper-dashboard .info-box-2.green-gradiant .icon {
    background: #f5f3ff;
}
.theme-red .wrapper-dashboard .info-box-2.green-gradiant .icon i {
    color: #8b5cf6 !important;
}

.theme-red .wrapper-dashboard .info-box-2.red-gradiant .icon {
    background: #f8fafc;
}
.theme-red .wrapper-dashboard .info-box-2.red-gradiant .icon i {
    color: #64748b !important;
}

.theme-red .wrapper-dashboard .info-box-2.pending-gradiant .icon {
    background: #fff1f2;
}
.theme-red .wrapper-dashboard .info-box-2.pending-gradiant .icon i {
    color: #f43f5e !important;
}

.theme-red .wrapper-dashboard .info-box-2.processing-gradiant .icon {
    background: #fffbeb;
}
.theme-red .wrapper-dashboard .info-box-2.processing-gradiant .icon i {
    color: #f59e0b !important;
}

/* ---- Card Text — label, number, footer ---- */
.theme-red .wrapper-dashboard .info-box-2 .content {
    padding: 12px 14px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-red .wrapper-dashboard .info-box-2 .content .text {
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0 !important;
    line-height: 1.3;
}

.theme-red .wrapper-dashboard .info-box-2 .content .number {
    color: #1e293b !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
    line-height: 1.2;
}

/* Footer description — hide for cleaner look */
.theme-red .wrapper-dashboard .info-box-footer {
    display: none !important;
}

/* ---- Loader dots — dark for white cards ---- */
.theme-red .wrapper-dashboard .loader-2 {
    color: #94a3b8 !important;
}
.theme-red .wrapper-dashboard .loader-2 .dot {
    background-color: #cbd5e1 !important;
    color: #cbd5e1 !important;
}

/* ---- Compact cards in stacked columns (tickets/tasks in real-time section) ---- */
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-card {
    margin-bottom: 8px !important;
}
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.blue-gradiant,
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.pending-gradiant,
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.processing-gradiant {
    height: 77px;
}
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .icon {
    width: 44px !important;
    height: 44px;
    border-radius: 10px;
    margin-left: 12px;
}
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .icon i {
    font-size: 19px !important;
}
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .content {
    padding: 10px 12px !important;
}
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .content .text {
    font-size: 11px !important;
}
.theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .content .number {
    font-size: 21px !important;
}

/* ---- Section Spacing ---- */
.theme-red .wrapper-dashboard .quick-info {
    margin-bottom: 4px;
}
.theme-red .wrapper-dashboard .real-time-info {
    margin-top: 8px !important;
}
.theme-red .wrapper-dashboard .admin-accounts-info {
    margin-top: 8px;
}

/* ---- Chart Containers — cards ---- */
.theme-red .wrapper-dashboard .card-real-time {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}
.theme-red .wrapper-dashboard .card-real-time:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.theme-red .wrapper-dashboard .card-work-list {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}
.theme-red .wrapper-dashboard .card-work-list:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.theme-red .wrapper-dashboard .card-quick-go {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}
.theme-red .wrapper-dashboard .card-quick-go:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---- Top 20 Unpaid Table Header ---- */
.theme-red .wrapper-dashboard .todo-head {
    background: linear-gradient(135deg, #0F2D46 0%, #1a4a6e 100%) !important;
    border-radius: 0 !important;
}
.theme-red .wrapper-dashboard .todo-head h1 {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Top 20 table styling */
.theme-red .wrapper-dashboard #tblTop20UnpaidClients {
    background: #fff;
}
.theme-red .wrapper-dashboard #tblTop20UnpaidClients table {
    margin-bottom: 0;
}
.theme-red .wrapper-dashboard #tblTop20UnpaidClients tr:hover {
    background-color: #f8fafc;
}

/* ---- Section Title Labels (optional visual dividers) ---- */
.theme-red .wrapper-dashboard .quick-info::before {
    content: "Customer Overview";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-left: 4px;
}

.theme-red .wrapper-dashboard .real-time-info::before {
    content: "Real-Time Analytics";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-left: 4px;
}

.theme-red .wrapper-dashboard .work-list-info::before {
    content: "Performance";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-left: 4px;
}

.theme-red .wrapper-dashboard .customer-analytics-info::before {
    content: "Analytics & Reports";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-left: 4px;
}

.theme-red .wrapper-dashboard .admin-accounts-info::before {
    content: "Financial Overview";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-left: 4px;
}

/* ---- Content page background ---- */
.theme-red section.content {
    background-color: #f8fafc;
}

/* ============================================
   MODALS — Modern clean design
   ============================================ */

/* Backdrop */
.theme-red .modal-backdrop.in {
    opacity: 0.4;
}

/* Dialog — centered */
.theme-red .modal-dialog {
    margin-top: 80px;
}

/* Content wrapper */
.theme-red .modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

/* ---- Header ---- */
.theme-red .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px 24px !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
}

/* Title — must not be block to keep flex row */
.theme-red .modal-header .modal-title {
    display: inline !important;
    flex: 1;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    padding: 0 !important;
}

/* Close button — top-right, soft red tint */
.theme-red .modal-header .close {
    background: #fef2f2 !important;
    border: none !important;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 0 0 12px !important;
    opacity: 1 !important;
    font-size: 18px !important;
    color: #ef4444 !important;
    transition: all 0.15s ease;
    line-height: 1;
    float: none !important;
    order: 2;
    flex-shrink: 0;
}
.theme-red .modal-header .close:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* ---- Body ---- */
.theme-red .modal-body {
    padding: 20px 24px !important;
    color: #475569 !important;
    background: #ffffff;
}

/* Form labels */
.theme-red .modal-body label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 6px;
}

/* Form inputs & textareas */
.theme-red .modal-body .form-control {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: all 0.15s ease;
    box-shadow: none !important;
    height: auto !important;
    min-height: 42px;
}
.theme-red .modal-body .form-control:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
.theme-red .modal-body textarea.form-control {
    min-height: 80px;
    resize: vertical;
}
.theme-red .modal-body .form-control::placeholder {
    color: #94a3b8;
}

/* Form groups spacing */
.theme-red .modal-body .form-group {
    margin-bottom: 16px !important;
}

/* Required asterisk */
.theme-red .modal-body .text-danger,
.theme-red .modal-body .required {
    color: #ef4444 !important;
}

/* ---- Modal buttons ---- */
.theme-red .modal-body .btn,
.theme-red .modal-footer .btn {
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border: none !important;
    transition: all 0.15s ease;
    width: auto !important;
    min-width: auto !important;
}

/* Override form-control on buttons (many modals add form-control to btns) */
.theme-red .modal-body button.form-control,
.theme-red .modal-body input[type="submit"].form-control {
    display: inline-block !important;
    width: auto !important;
    min-height: auto !important;
    background: inherit;
    border: none !important;
    height: auto !important;
}

/* Primary / Save button */
.theme-red .modal-body .btn-primary,
.theme-red .modal-footer .btn-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
}
.theme-red .modal-body .btn-primary:hover,
.theme-red .modal-footer .btn-primary:hover {
    background: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Danger button — subtle gray for secondary actions */
.theme-red .modal-body .btn-danger,
.theme-red .modal-footer .btn-danger {
    background: #f1f5f9 !important;
    color: #64748b !important;
}
.theme-red .modal-body .btn-danger:hover,
.theme-red .modal-footer .btn-danger:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Success button */
.theme-red .modal-body .btn-success,
.theme-red .modal-footer .btn-success {
    background: #10b981 !important;
    color: #ffffff !important;
}
.theme-red .modal-body .btn-success:hover,
.theme-red .modal-footer .btn-success:hover {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Warning button */
.theme-red .modal-body .btn-warning,
.theme-red .modal-footer .btn-warning {
    background: #f59e0b !important;
    color: #ffffff !important;
}

/* Hide Clear/Reset button — not needed */
.theme-red .modal-body button[type="reset"] {
    display: none !important;
}

/* Button row — right-align, auto-width columns */
.theme-red .modal-body .form-group .row .col-xs-6,
.theme-red .modal-body .form-group .row .col-sm-6 {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}
.theme-red .modal-body .form-group > .col-xs-12 > .row,
.theme-red .modal-body .form-group > .col-sm-12 > .row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 !important;
}
/* Remove pull-right float on submit button (flex handles alignment) */
.theme-red .modal-body .btn.pull-right {
    float: none !important;
}

/* ---- Footer ---- */
.theme-red .modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    text-align: right;
}

/* Hide redundant Close-only footer (X in header is enough) */
.theme-red #modal-footer-customized {
    display: none !important;
}

/* Confirmation dialog footer — nice button layout */
.theme-red .delete-modal-footer-customized {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.theme-red .delete-modal-footer-customized .btn {
    width: auto !important;
    min-width: 80px;
}

/* ---- Select2 inside modals ---- */
.theme-red .modal .select2-container--default .select2-selection--single {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    height: 42px !important;
    background: #f8fafc !important;
    padding: 6px 12px !important;
}
.theme-red .modal .select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
}
.theme-red .modal .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* ============================================
   DASHBOARD CARDS — "Glowing Metric Tiles"
   ============================================ */

/* ---- Card Container ---- */
.theme-red .info-box-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 16px !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bottom gradient accent bar */
.theme-red .info-box-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 0.6;
    transition: opacity 0.25s ease;
}
.theme-red .info-box-card:hover::after {
    opacity: 1;
}

/* Hover — lift + glow */
.theme-red .info-box-card:hover {
    transform: translateY(-3px);
    border-color: #e2e8f0 !important;
}

/* ---- Inner Flex Container ---- */
.theme-red .info-box-2 {
    background: #ffffff !important;
    height: 76px !important;
    display: flex !important;
    align-items: center;
    padding: 0 16px !important;
    gap: 14px;
    border-radius: 12px !important;
    text-decoration: none !important;
}

/* Kill base hover-expand overlay */
.theme-red .info-box-2.hover-expand-effect:after {
    display: none !important;
}

/* ---- Icon Badge (tinted bg + bold colored icon) ---- */
.theme-red .info-box-2 .icon {
    width: 46px !important;
    min-width: 46px;
    height: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #eff6ff !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-red .info-box-card:hover .icon {
    transform: scale(1.08);
}
.theme-red .info-box-2 .icon i {
    font-size: 22px !important;
    line-height: 1 !important;
    color: #1d4ed8 !important;
}

/* ---- Content ---- */
.theme-red .info-box-2 .content {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 0 !important;
    flex: 1;
    min-width: 0;
}
.theme-red .info-box-2 .content .text {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8 !important;
    margin-top: 0 !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.theme-red .info-box-2 .content .number,
.theme-red .info-box-2 .content .stat-number {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 1px !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
/* Override inline style="color: white" on stat-number divs */
.theme-red .info-box-2 .content [style*="color: white"],
.theme-red .info-box-2 .content [style*="color:white"] {
    color: #111827 !important;
}

/* ---- Footer — hidden ---- */
.theme-red .info-box-footer {
    display: none !important;
}

/* ---- Loader dots — dark on white bg ---- */
.theme-red .info-box-2 .loader-2 .dot {
    background-color: #94a3b8 !important;
}

/* ============================================
   Per-color variants
   ============================================ */

/* ---- Blue ---- */
.theme-red .info-box-card.blue-gradiant { background: #ffffff !important; }
.theme-red .info-box-card.blue-gradiant::after { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.theme-red .info-box-card.blue-gradiant:hover { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.18), 0 1px 3px rgba(0,0,0,0.04) !important; }
.theme-red .blue-gradiant.info-box-2 { background: #ffffff !important; }
.theme-red .blue-gradiant .icon,
.theme-red .info-box-card.blue-gradiant .icon { background: #dbeafe !important; }
.theme-red .blue-gradiant .icon i,
.theme-red .info-box-card.blue-gradiant .icon i { color: #1d4ed8 !important; }

/* ---- Teal (orange-gradiant class) ---- */
.theme-red .info-box-card.orange-gradiant { background: #ffffff !important; }
.theme-red .info-box-card.orange-gradiant::after { background: linear-gradient(90deg, #06b6d4, #67e8f9); }
.theme-red .info-box-card.orange-gradiant:hover { box-shadow: 0 4px 20px rgba(6, 182, 212, 0.18), 0 1px 3px rgba(0,0,0,0.04) !important; }
.theme-red .orange-gradiant.info-box-2 { background: #ffffff !important; }
.theme-red .orange-gradiant .icon,
.theme-red .info-box-card.orange-gradiant .icon { background: #cffafe !important; }
.theme-red .orange-gradiant .icon i,
.theme-red .info-box-card.orange-gradiant .icon i { color: #0e7490 !important; }

/* ---- Purple (green-gradiant class) ---- */
.theme-red .info-box-card.green-gradiant { background: #ffffff !important; }
.theme-red .info-box-card.green-gradiant::after { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }
.theme-red .info-box-card.green-gradiant:hover { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.18), 0 1px 3px rgba(0,0,0,0.04) !important; }
.theme-red .green-gradiant.info-box-2 { background: #ffffff !important; }
.theme-red .green-gradiant .icon,
.theme-red .info-box-card.green-gradiant .icon { background: #ede9fe !important; }
.theme-red .green-gradiant .icon i,
.theme-red .info-box-card.green-gradiant .icon i { color: #6d28d9 !important; }

/* ---- Slate (red-gradiant class) ---- */
.theme-red .info-box-card.red-gradiant { background: #ffffff !important; }
.theme-red .info-box-card.red-gradiant::after { background: linear-gradient(90deg, #64748b, #cbd5e1); }
.theme-red .info-box-card.red-gradiant:hover { box-shadow: 0 4px 20px rgba(100, 116, 139, 0.18), 0 1px 3px rgba(0,0,0,0.04) !important; }
.theme-red .red-gradiant.info-box-2 { background: #ffffff !important; }
.theme-red .red-gradiant .icon,
.theme-red .info-box-card.red-gradiant .icon { background: #e2e8f0 !important; }
.theme-red .red-gradiant .icon i,
.theme-red .info-box-card.red-gradiant .icon i { color: #334155 !important; }

/* ---- Pending (ticket cards) ---- */
.theme-red .info-box-card.pending-gradiant { background: #ffffff !important; }
.theme-red .info-box-card.pending-gradiant::after { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.theme-red .info-box-card.pending-gradiant:hover { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.18), 0 1px 3px rgba(0,0,0,0.04) !important; }
.theme-red .pending-gradiant.info-box-2 { background: #ffffff !important; }
.theme-red .pending-gradiant .icon,
.theme-red .info-box-card.pending-gradiant .icon { background: #fee2e2 !important; }
.theme-red .pending-gradiant .icon i,
.theme-red .info-box-card.pending-gradiant .icon i { color: #b91c1c !important; }

/* ---- Processing (ticket cards) ---- */
.theme-red .info-box-card.processing-gradiant { background: #ffffff !important; }
.theme-red .info-box-card.processing-gradiant::after { background: linear-gradient(90deg, #f59e0b, #fde68a); }
.theme-red .info-box-card.processing-gradiant:hover { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.18), 0 1px 3px rgba(0,0,0,0.04) !important; }
.theme-red .processing-gradiant.info-box-2 { background: #ffffff !important; }
.theme-red .processing-gradiant .icon,
.theme-red .info-box-card.processing-gradiant .icon { background: #fef3c7 !important; }
.theme-red .processing-gradiant .icon i,
.theme-red .info-box-card.processing-gradiant .icon i { color: #92400e !important; }

/* ---- Card Grid Spacing ---- */
.theme-red .quick-info .row {
    margin-left: -8px;
    margin-right: -8px;
}
.theme-red .quick-info [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* Section headings */
.theme-red .quick-info h4,
.theme-red .quick-info .panel-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    margin-bottom: 16px;
}

/* Nested 4-card sections (Section 2 ticket cards) */
.theme-red .cus-design-four-card-inone .info-box-card {
    margin-bottom: 8px !important;
}
.theme-red .cus-design-four-card-inone .info-box-2 {
    height: 68px !important;
}
.theme-red .cus-design-four-card-inone .info-box-2 .icon {
    width: 38px !important;
    min-width: 38px;
    height: 38px !important;
}
.theme-red .cus-design-four-card-inone .info-box-2 .icon i {
    font-size: 16px !important;
}
.theme-red .cus-design-four-card-inone .info-box-2 .content .number {
    font-size: 22px !important;
}
.theme-red .cus-design-four-card-inone .info-box-2 .content .text {
    font-size: 9px !important;
}

/* ============================================
   RESPONSIVE NAVBAR & SIDEBAR FIXES
   ============================================ */

/* Sidebar: align to 64px navbar (base has 70px, navbar z-index 12 > sidebar 11) */
.theme-red .sidebar {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
}

/* Hide sidebar toggle on desktop — sidebar is always visible there */
.theme-red .sidebar-toggle-btn {
    display: none !important;
}

/* ---- Sub-desktop (< 1170px): Single-row flex navbar ---- */
@media (max-width: 1169px) {
    /* Container: flex row, everything on one line */
    .theme-red .navbar .container-fluid {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
        height: 64px;
    }

    /* Left: hamburger + brand — constrained to navbar height */
    .theme-red .nav-head-logo-company-name {
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        width: auto !important;
        height: 100%;
        padding: 0 8px 0 8px !important;
        border-bottom: none !important;
        border-right: none !important;
        background: transparent !important;
    }
    /* Override base .navbar-header padding */
    .theme-red .navbar-header {
        padding: 0 !important;
        border: none !important;
    }

    /* Hide menutoggle-bar (desktop-only sidebar toggle) */
    .theme-red .menutoggle-bar {
        display: none !important;
    }

    /* Hide Bootstrap collapse toggle — we show items always */
    .theme-red .navbar-toggle {
        display: none !important;
    }

    /* Neutralize base .bars styles — .sidebar-toggle-btn handles appearance */
    .theme-red .bars {
        position: relative !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Kill ALL pseudo-elements on .bars — every possible state */
    .theme-red .bars::before,
    .theme-red .bars::after,
    .theme-red.ls-closed .bars::before,
    .theme-red.ls-closed .bars::after,
    .theme-red.overlay-open .bars::before,
    .theme-red.overlay-open .bars::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        visibility: hidden !important;
        transform: scale(0) !important;
    }

    /* Override ls-closed brand margin (base: 50px) */
    .theme-red.ls-closed .navbar-brand {
        margin-left: 0 !important;
    }

    /* Sidebar toggle button appearance */
    .theme-red .sidebar-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
        cursor: pointer;
        margin-right: 8px;
        border-radius: 8px;
        text-decoration: none;
        transition: background 0.15s ease;
    }
    .theme-red .sidebar-toggle-btn:hover {
        background-color: #f1f5f9;
    }
    .theme-red .sidebar-toggle-btn i.fa-bars {
        font-size: 20px !important;
        color: #475569;
        line-height: 1;
    }
    .theme-red .sidebar-toggle-btn:hover i.fa-bars {
        color: #1e293b;
    }

    /* Force sidebar hidden on sub-desktop */
    .theme-red .sidebar {
        margin-left: -300px;
    }
    .theme-red.overlay-open .sidebar {
        margin-left: 0 !important;
        z-index: 99999999;
    }
    /* Content: no left margin on sub-desktop */
    .theme-red section.content {
        margin-left: 15px !important;
    }

    /* Override base ls-closed brand margin */
    .theme-red.ls-closed .navbar-brand {
        margin-left: 0 !important;
    }

    /* Brand: compact */
    .theme-red .navbar-brand {
        display: inline-flex !important;
        align-items: center;
        font-size: 13px !important;
        padding: 0 6px !important;
        margin: 0 !important;
        height: 40px;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }
    .theme-red .navbar-brand span {
        line-height: 1.2;
    }
    /* Multi-line company names: single line */
    .theme-red .navbar-brand br {
        display: none;
    }
    .theme-red .cus-design-big-c-name,
    .theme-red .cus-design-too-big-c-name,
    .theme-red .cus-design-small-c-name,
    .theme-red .cus-design-small20-c-name {
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Right: .logo wrapper pushes to end */
    .theme-red .navbar .logo {
        margin-left: auto;
        flex-shrink: 0;
    }

    /* CRITICAL: Override Bootstrap collapse — always show navbar items */
    .theme-red .navbar .navbar-collapse {
        display: flex !important;
        height: auto !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        float: none !important;
        width: auto !important;
    }

    /* Header badge wrapper: flex */
    .theme-red .navbar .header-badge {
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Hide Search Customer on sub-desktop */
    .theme-red .navbar .navbar-left {
        display: none !important;
    }

    /* navbar-right: horizontal row */
    .theme-red .navbar .navbar-right {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        margin: 0 !important;
        float: none !important;
    }

    .theme-red .navbar .navbar-right > li {
        margin: 0 !important;
        float: none !important;
    }

    .theme-red .navbar .navbar-right > li > a,
    .theme-red .navbar .navbar-right > li > .dropdown-toggle {
        padding: 8px 8px;
        margin-top: 0 !important;
    }

    /* Hide ALL text labels — icon only */
    .theme-red .navbar .nav-spn-text-font-size {
        display: none !important;
    }

    /* Generic menu items (e.g. "Accounting Dashboard"): font-size trick hides text + &nbsp; */
    .theme-red .navbar .navbar-right .search-badge .btn-link {
        font-size: 0 !important;
        padding: 6px 8px !important;
        border: none !important;
        background: transparent !important;
    }
    .theme-red .navbar .navbar-right .search-badge .btn-link i {
        font-size: 17px !important;
        margin: 0 !important;
    }

    /* Non-search-badge pill buttons */
    .theme-red .navbar .navbar-right .btn-link {
        border: none !important;
        background: transparent !important;
    }

    /* Icons consistent */
    .theme-red .navbar .navbar-right i {
        font-size: 17px;
    }

    /* Badges */
    .theme-red .navbar .label-count {
        font-size: 8px;
        padding: 1px 4px;
        min-width: 16px;
    }
    .theme-red .navbar .count-log {
        font-size: 8px;
        min-width: 16px;
        padding: 0 3px;
    }

    /* User profile circle: smaller */
    .theme-red .navbar .navbar-nav > li:last-child > .dropdown-toggle {
        width: 32px;
        height: 32px;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    /* Notification dropdowns: position properly */
    .theme-red .navbar .notification-dropdown,
    .theme-red .navbar .notice-dropdown {
        min-width: 300px;
        right: 0;
    }
    .theme-red .navbar .dropdown-menu {
        margin-top: 4px !important;
    }
}

/* ---- Narrower screens (< 900px): tighter spacing ---- */
@media (max-width: 900px) {
    .theme-red .navbar-brand {
        font-size: 12px !important;
        max-width: 110px;
    }

    .theme-red .navbar .navbar-right > li > a,
    .theme-red .navbar .navbar-right > li > .dropdown-toggle {
        padding: 6px 6px;
    }

    .theme-red .navbar .navbar-right .search-badge .btn-link {
        padding: 4px 6px !important;
    }

    .theme-red .navbar .navbar-right i {
        font-size: 15px;
    }
    .theme-red .navbar .navbar-right .search-badge .btn-link i {
        font-size: 15px !important;
    }
}

/* ---- Mobile (< 600px): most compact ---- */
@media (max-width: 600px) {
    .theme-red .navbar .container-fluid {
        height: 52px;
    }
    .theme-red .navbar {
        height: 52px !important;
    }

    .theme-red .navbar-brand {
        font-size: 11px !important;
        max-width: 80px;
    }

    .theme-red .sidebar {
        top: 52px !important;
        height: calc(100vh - 52px) !important;
    }

    .theme-red .navbar .navbar-right > li > a,
    .theme-red .navbar .navbar-right > li > .dropdown-toggle {
        padding: 5px 5px;
    }

    .theme-red .navbar .navbar-right .search-badge .btn-link {
        padding: 4px 4px !important;
    }

    .theme-red .navbar .navbar-right i {
        font-size: 14px;
    }
    .theme-red .navbar .navbar-right .search-badge .btn-link i {
        font-size: 14px !important;
    }

    .theme-red .navbar .navbar-nav > li:last-child > .dropdown-toggle {
        width: 28px;
        height: 28px;
    }
    .theme-red .navbar .navbar-nav > li:last-child > .dropdown-toggle i {
        font-size: 13px !important;
    }

    .theme-red .navbar .notification-dropdown,
    .theme-red .navbar .notice-dropdown {
        min-width: 250px;
        right: -20px;
    }

    .theme-red .navbar .profile-dropdown {
        min-width: 170px;
        right: 0;
    }
}

/* ---- Responsive: Tablet (768px - 991px) ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .theme-red .wrapper-dashboard {
        margin: 12px 14px;
    }

    /* Cards: 2 per row on tablet (col-sm-6 handles grid) */
    .theme-red .wrapper-dashboard .info-box-2.blue-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.orange-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.green-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.red-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.pending-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.processing-gradiant {
        height: 82px;
    }

    .theme-red .wrapper-dashboard .info-box-card {
        margin-bottom: 12px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .icon {
        width: 44px !important;
        height: 44px;
        border-radius: 10px;
        margin-left: 12px;
    }

    .theme-red .wrapper-dashboard .info-box-2 .icon i {
        font-size: 20px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content .text {
        font-size: 10.5px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content .number {
        font-size: 20px !important;
    }

    /* Header: stack title and button */
    .theme-red .wrapper-dashboard .headerTitleDiv .row {
        display: flex;
        flex-wrap: wrap;
    }

    .theme-red .wrapper-dashboard .headerTitleDiv h2 {
        font-size: 18px;
    }

    /* Chart containers: reduce height */
    .theme-red .wrapper-dashboard .rt-1,
    .theme-red .wrapper-dashboard .rt-5 {
        height: 280px !important;
    }

    .theme-red .wrapper-dashboard .wl-1,
    .theme-red .wrapper-dashboard .wl-2 {
        height: 280px !important;
    }

    /* Stacked cards: auto height on tablet */
    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.blue-gradiant,
    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.pending-gradiant,
    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.processing-gradiant {
        height: 72px;
    }

    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-card {
        margin-bottom: 6px !important;
    }

    /* Section labels smaller */
    .theme-red .wrapper-dashboard .quick-info::before,
    .theme-red .wrapper-dashboard .real-time-info::before,
    .theme-red .wrapper-dashboard .work-list-info::before,
    .theme-red .wrapper-dashboard .customer-analytics-info::before,
    .theme-red .wrapper-dashboard .admin-accounts-info::before {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* ---- Responsive: Mobile (< 768px) ---- */
@media (max-width: 767px) {
    .theme-red .wrapper-dashboard {
        margin: 8px 10px;
    }

    /* Header: compact */
    .theme-red .wrapper-dashboard .headerTitleDiv {
        margin-bottom: 12px !important;
        padding-bottom: 12px;
    }

    .theme-red .wrapper-dashboard .headerTitleDiv h2 {
        font-size: 16px;
    }

    .theme-red .wrapper-dashboard .headerTitleDiv h2 a i {
        font-size: 16px;
        margin-right: 6px;
    }

    .theme-red .wrapper-dashboard .headerTitleDiv h2 small {
        font-size: 10px;
        padding: 2px 8px;
        margin-left: 8px;
    }

    /* Accounting Dashboard button: full width on mobile */
    .theme-red .wrapper-dashboard .add-action-btn {
        padding: 7px 12px !important;
        font-size: 11px !important;
        margin-top: 8px;
    }

    /* Cards: full width, compact */
    .theme-red .wrapper-dashboard .info-box-card {
        margin-bottom: 10px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2.blue-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.orange-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.green-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.red-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.pending-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.processing-gradiant {
        height: 74px;
    }

    .theme-red .wrapper-dashboard .info-box-2 .icon {
        width: 40px !important;
        height: 40px;
        border-radius: 10px;
        margin-left: 10px;
    }

    .theme-red .wrapper-dashboard .info-box-2 .icon i {
        font-size: 18px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content {
        padding: 10px 10px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content .text {
        font-size: 10px !important;
        letter-spacing: 0.03em;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content .number {
        font-size: 18px !important;
    }

    /* Chart containers: smaller height */
    .theme-red .wrapper-dashboard .rt-1,
    .theme-red .wrapper-dashboard .rt-5 {
        height: 250px !important;
    }

    .theme-red .wrapper-dashboard .wl-1,
    .theme-red .wrapper-dashboard .wl-2 {
        height: 250px !important;
    }

    .theme-red .wrapper-dashboard .card-real-time,
    .theme-red .wrapper-dashboard .card-work-list,
    .theme-red .wrapper-dashboard .card-quick-go {
        margin-bottom: 12px;
        border-radius: 10px !important;
    }

    /* Stacked cards: reset to normal height on mobile (they stack full-width) */
    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.blue-gradiant,
    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.pending-gradiant,
    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2.processing-gradiant {
        height: 74px;
    }

    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .icon {
        width: 40px !important;
        height: 40px;
    }

    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .icon i {
        font-size: 18px !important;
    }

    .theme-red .wrapper-dashboard .cus-design-four-card-inone .info-box-2 .content .number {
        font-size: 18px !important;
    }

    /* Section labels: smaller */
    .theme-red .wrapper-dashboard .quick-info::before,
    .theme-red .wrapper-dashboard .real-time-info::before,
    .theme-red .wrapper-dashboard .work-list-info::before,
    .theme-red .wrapper-dashboard .customer-analytics-info::before,
    .theme-red .wrapper-dashboard .admin-accounts-info::before {
        font-size: 11px;
        margin-bottom: 10px;
        letter-spacing: 0.04em;
    }

    /* Top 20 table: reduce scroll height */
    .theme-red .wrapper-dashboard .todo-head h1 {
        font-size: 12px !important;
        padding: 10px 14px !important;
    }
}

/* ---- Responsive: Small Mobile (< 480px) ---- */
@media (max-width: 480px) {
    .theme-red .wrapper-dashboard {
        margin: 6px 8px;
    }

    .theme-red .wrapper-dashboard .headerTitleDiv h2 {
        font-size: 14px;
        flex-wrap: wrap;
    }

    .theme-red .wrapper-dashboard .headerTitleDiv h2 small {
        display: none;
    }

    .theme-red .wrapper-dashboard .info-box-2.blue-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.orange-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.green-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.red-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.pending-gradiant,
    .theme-red .wrapper-dashboard .info-box-2.processing-gradiant {
        height: 68px;
    }

    .theme-red .wrapper-dashboard .info-box-2 .icon {
        width: 36px !important;
        height: 36px;
        border-radius: 8px;
        margin-left: 8px;
    }

    .theme-red .wrapper-dashboard .info-box-2 .icon i {
        font-size: 16px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content {
        padding: 8px 8px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content .text {
        font-size: 9px !important;
    }

    .theme-red .wrapper-dashboard .info-box-2 .content .number {
        font-size: 16px !important;
    }

    .theme-red .wrapper-dashboard .info-box-card {
        margin-bottom: 8px !important;
    }

    /* Charts even smaller */
    .theme-red .wrapper-dashboard .rt-1,
    .theme-red .wrapper-dashboard .rt-5 {
        height: 220px !important;
    }

    .theme-red .wrapper-dashboard .wl-1,
    .theme-red .wrapper-dashboard .wl-2 {
        height: 220px !important;
    }
}
