@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.blgcomment-list>li:nth-child(n+2) {
    margin-block-start: 15px !important;
}

.custom-card {
    border: 1px solid #ced4da;
}

.customizer-action svg {
    width: 23px !important;
    color: #ffffff !important;
}

.active-mode {
    border: solid 2px #000000 !important;
}

.property-img {
    max-width: 507px;
    max-height: 286px;
}

.text-justify {
    text-align: justify;
}

.custom .media {
    padding: 10px !important;
}

.user-avatar {
    width: 30px;
    height: 30px;
}

@media only screen and (max-width: 410px) {
    .header_li {
        display: none !important;
    }
}

.blgcomment-list li .media img {
    width: auto;
    height: 40px !important;
}

#card-element {
    border: 1px solid #e5e5e5 !important;
    border-radius: 5px !important;
    padding: 13px !important;
}

.codex-sidebar .logo-gridwrap {
    padding: 0px 16px !important;
}

.setting-logo {
    width: 300px !important;
    ;
}

.landing-logo {
    max-width: 225px;

}

.auth-main .auth-wrapper.v2 .logo {
    max-width: 300px;

}

.b-brand .logo {
    max-width: 212px !important;

}

.lan-footer .codex-brand {
    margin-block-end: 0px !important;
}

.email-sidebar ul.custom-sidebarmenu-list {
    margin-block-start: 0px;
}

.invoice-logo {
    width: 250px;
}

.codex-calendar .events-list li {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 5px;
    color: #fff;
    line-height: 1;
}

.codex-calendar .events-list {
    overflow: auto;
    height: 863px;
}

.landing_logo {
    filter: drop-shadow(2px 3px 7px #011C4B);
}

.head-invoice img {
    width: 250px;
}

.cdx-invoice .body-invoice .table tr td {
    padding: 10px 10px !important;
}


.codex-brand img {
    width: 300px;
}

.codex-authbox .auth-header .codex-brand {
    margin-block-end: 0px;
}


.intro {
    background-repeat: no-repeat;
    background-size: cover;
}

.landing_dash {
    position: absolute;
    right: 0px;
    top: 50%;
    left: auto;
    bottom: 0;
    transform: translateY(-50%);
    overflow: hidden;
    height: 585px;
    display: flex;
    align-items: center;
    width: 60%;
}

.landing_dash img {
    object-fit: cover;
    position: relative;
    right: -220px;
    border-radius: 10px;
    left: auto;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 1440px) {
    .landing_dash {
        display: none;
    }
}

.lan-footer {
    text-align: center;
    background-color: unset;
}

.lan-footer .support-contain p {
    color: #051722;
    font-size: calc(16px + 4*(100vw - 420px) / 1500);
}

.select2-container .select2-selection--single {
    height: 43px !important;
    border-color: #e5e5e5;
}

.select2-container .select2-selection--multiple {
    min-height: 43px !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #e5e5e5;
}

/* =========================================================================== */
.dt-length {
    padding-left: 7px !important;
}

.dt-search {
    padding-right: 7px !important;
}

.dt-info {
    padding-left: 7px !important;
}

.dt-paging {
    padding-right: 7px !important;
}

.dt-buttons {
    padding-left: 7px !important;
    float: left;
}

.dt-container {
    margin-top: 10px;
}

.dt-info {
    float: left;
}

.dt-paging {
    float: right;
    padding-top: .85em;
}

.form-group {
    margin-bottom: 15px;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-size: 1.2em !important;
}

div:where(.swal2-container) .swal2-html-container {
    font-size: 0.9em !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
    font-size: 0.8em !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    font-size: 0.8em !important;
}

div:where(.swal2-icon) {
    width: 4em !important;
    height: 4em !important;
}

.account-tabs .nav-item .nav-link {
    position: relative;
    padding: 0.7rem 1rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.testaments-cards::after {
    background: transparent !important;
}

.pricingpricing .price-card .product-list li::before {
    content: '\eb55';
    color: red;
}

.pricingpricing .price-card .product-list li.enable::before {
    content: "\ea5e";
    color: #00c853;
}

.pricingpricing .price-card .product-list li {
    opacity: 1 !important;
}

.account-tabs .nav-item .nav-link.active {
    color: var(--bs-secondary-rgb);
    background: rgba(var(--bs-secondary-rgb), 0.1);
}

form label {
    text-transform: capitalize;
}


@media print {
    .table-responsive {
        overflow: visible !important;
        height: auto !important;
        display: block !important;
    }
}

.color_type {
    position: relative;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.15s ease-in-out;
    margin-right: 10px;
    margin-top: 10px;
    width: 48px;
    height: 48px;
    flex: none;
    cursor: pointer;
}

.cutom_colorr.active::after,
.cutom_colorr.custom::after {
    content: "✓";
    color: #fff;
    font-size: 30px;
    background: none !important;
    font-weight: 900;
    background-color: transparent !important;
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 10px;
    line-height: 0;
}

.select2-container .select2-selection--single {
    height: 43px !important;
    border-color: #e5e5e5;
}

.select2-container .select2-selection--multiple {
    min-height: 43px !important;
}

.select2-container--default .select2-selection-- {
    border: 1px solid #e5e5e5;
}

.modal-body .select2-container {
    z-index: 1024;
    width: 100% !important;
}

.modal-backdrop~.select2-container {
    width: 100% !important;
    z-index: 10000 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    line-height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
}

.select2-container,
.modal-body .select2-container {
    z-index: 1024;
    width: 100% !important;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 10px;
    margin-left: 10px;
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.select2-results__option--selectable {
    background-color: rgba(var(--bs-secondary-rgb), 1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(var(--bs-secondary-rgb), 1);
    color: var(--bs-secondary-light);

}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--bs-secondary-light);
    background-color: rgba(var(--bs-secondary-rgb), 1);
    border: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(var(--bs-secondary-rgb), 1);
    color: #fff;
}

.fc-event {
    background-color: rgba(var(--bs-secondary-rgb), 0.2);
    color: var(--bs-secondary);
    border-radius: 2px;
    border: none;
    cursor: move;
    font-size: 0.8125rem;
    margin: 5px 7px;
    padding: 5px 5px;
    text-align: center;
}

/* ===========================================================================
   ADMIN MASTER PANELS - MODERN COMPONENT STYLING SYSTEM
   =========================================================================== */

/* Global Font Overrides for Admin Panel */
.pc-container,
.advance-datatable,
.modal-content,
.card-header h5,
.breadcrumb {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 1. Card & Container Layouts */
/* 1. Card & Container Layouts */
.pc-content .card {
    border: 1px solid rgba(15, 44, 84, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(15, 44, 84, 0.03) !important;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Dashboard Stat & Chart Card Overrides */
.stat-card, 
.chart-card {
    border-radius: 20px !important; /* Matches premium card radius */
    border: 1px solid rgba(15, 44, 84, 0.06) !important; /* Soft dark navy border */
    box-shadow: 0 10px 30px rgba(15, 44, 84, 0.03) !important; /* Soft dark navy shadow */
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card:hover {
    transform: translateY(-6px) !important; /* Premium lift on hover */
    box-shadow: 0 20px 40px rgba(15, 44, 84, 0.08), 0 0 0 1px rgba(0, 150, 136, 0.15) !important; /* Beautiful Teal outer ring glow */
    border-color: rgba(0, 150, 136, 0.4) !important; /* Distinct Teal border transition */
}

/* Stat card icons (avatars) styling */
.stat-card .avtar {
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Smooth bouncy transition */
}

.stat-card:hover .avtar {
    transform: scale(1.12) rotate(4deg) !important; /* Bouncy scale and slight rotation */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06) !important;
}

/* Specific chart card header styles to match our premium styles */
.chart-card .card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 20px 24px !important;
}

.chart-card .card-header h5 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f284c !important; /* Brand Dark Navy */
}

.chart-card .card-body {
    padding: 24px !important;
}


/* Global Form Labels Outside Modals */
.form-label, 
.card-body label {
    font-weight: 700 !important;
    color: #64748b !important; /* Slate 500 */
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    margin-bottom: 6px !important;
    display: inline-block;
}

/* Global Form Input Controls - Apple/Stripe-like Modern Design */
.form-control,
.form-select,
.dt-search input {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 18px !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    background-color: #f8fafc !important; /* Soft gray default background */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

/* Focus States */
.form-control:focus,
.form-select:focus,
.dt-search input:focus {
    border-color: #009688 !important; /* Theme Teal */
    background-color: #ffffff !important; /* Stark white on focus */
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.08), 0 0 0 4px rgba(0, 150, 136, 0.12) !important;
    outline: none !important;
}

/* Global Primary Buttons (Navy to Teal transition with glow) */
.btn-primary, 
.btn-primary-custom, 
input[type="submit"].btn,
button[type="submit"].btn {
    background: #0f284c !important; /* Brand Dark Navy */
    color: #ffffff !important;
    border: 1px solid #0f284c !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 650 !important;
    font-size: 0.875rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.btn-primary:hover,
.btn-primary-custom:hover,
input[type="submit"].btn:hover,
button[type="submit"].btn:hover {
    background: #009688 !important; /* Brand Teal */
    border-color: #009688 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 150, 136, 0.3) !important;
}

.pc-content .card-header {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 20px 24px !important;
}

.pc-content .card-header h5 {
    font-size: 1.1rem !important;
    font-weight: 650 !important;
    color: #0f172a !important;
    margin: 0;
}

/* 2. Top Navigation / Add Button */
.pc-content .card-header .btn-secondary {
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    background: #0f284c !important;
    /* Navy blue */
    color: #ffffff !important;
    border: 1px solid #0f284c !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pc-content .card-header .btn-secondary:hover {
    background: #009688 !important;
    /* Theme Preset Teal */
    border-color: #009688 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 150, 136, 0.25) !important;
    /* Teal glow highlight */
}

.pc-content .card-header .btn-secondary i {
    font-size: 1.1rem !important;
}

/* 3. Sleek Tables & Datatables */
.advance-datatable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: none !important;
}

.advance-datatable thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em !important;
    padding: 18px 20px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-top: none !important;
}

.advance-datatable tbody tr {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.advance-datatable tbody tr:hover {
    background-color: rgba(0, 150, 136, 0.02) !important;
    /* Soft Teal background */
    box-shadow: inset 3px 0 0 #009688 !important;
    /* Vertical Teal Line on Hover */
}

.advance-datatable tbody td {
    padding: 16px 20px !important;
    vertical-align: middle !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.875rem !important;
}

/* Make the primary identifier column stand out */
.advance-datatable tbody td:nth-child(2) {
    font-weight: 600 !important;
    color: #0f284c !important;
    font-size: 0.9rem !important;
}

/* Datatables Buttons (Excel, PDF, Copy, etc.) */
.dt-buttons,
.dt-buttons.btn-group {
    display: inline-flex !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.dt-buttons .btn {
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
    font-weight: 550 !important;
    background: #0f284c !important;
    color: #ffffff !important;
    border: 1px solid #0f284c !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    text-transform: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dt-buttons .btn:hover {
    background: #009688 !important;
    /* Theme Preset Teal */
    border-color: #009688 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 150, 136, 0.25) !important;
    /* Teal glow highlight */
}

/* Datatable Search box styling */
.dt-search {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.dt-search label {
    font-size: 0.875rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.dt-search input {
    min-width: 200px !important;
}

/* 4. Action Icons & Action Form */
.cart-action {
    display: inline-flex !important;
    gap: 8px !important;
    align-items: center;
    justify-content: flex-end;
}

.cart-action form {
    margin: 0 !important;
    display: inline-flex !important;
    gap: 8px !important;
}

.cart-action a.avtar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.cart-action a.avtar svg,
.cart-action a.avtar i {
    width: 15px !important;
    height: 15px !important;
}

/* Edit Button (Secondary) Default & Hover */
.cart-action a.btn-link-secondary {
    background: rgba(0, 150, 136, 0.06) !important;
    border: 1px solid rgba(0, 150, 136, 0.15) !important;
    color: #009688 !important;
}

.cart-action a.btn-link-secondary:hover {
    background: #009688 !important;
    border-color: #009688 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 150, 136, 0.25) !important;
}

/* Delete Button (Danger) Default & Hover */
.cart-action a.btn-link-danger {
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

.cart-action a.btn-link-danger:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25) !important;
}

/* 5. Status Badges */
.badge {
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    /* Fully rounded capsule badge */
    font-size: 0.75rem !important;
    letter-spacing: 0.02em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.badge.bg-success-subtle {
    background-color: #f0fdf4 !important;
    /* Slightly lighter, cleaner green */
    color: #16a34a !important;
    border: 1px solid rgba(22, 163, 74, 0.2) !important;
}

/* Pulsing dot for Active state */
.badge.bg-success-subtle::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
    animation: successPulse 1.8s infinite ease-in-out;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.badge.bg-danger-subtle {
    background-color: #fef2f2 !important;
    /* Lighter red */
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
}

.badge.bg-danger-subtle::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

/* 6. Form elements in Modals */
.modal-content {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04) !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 44, 84, 0.05) !important;
}

.modal-header {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 24px 32px !important;
}

.modal-header .modal-title {
    font-weight: 700 !important;
    color: #0f284c !important;
    /* Brand Dark Navy */
    font-size: 1.25rem !important;
    letter-spacing: -0.02em !important;
}

.modal-header .btn-close {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    background-color: #fecaca;
    border-color: #fca5a5;
    color: #dc2626 !important;
    transform: rotate(90deg) scale(1.05);
    opacity: 1;
}

.modal-body {
    padding: 32px 36px !important;
    background-color: #ffffff !important;
}

/* Tiny uppercase labels for professional technical look */
.modal-body .form-label {
    font-weight: 700 !important;
    color: #64748b !important;
    /* Slate 500 */
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    margin-bottom: 6px !important;
    display: inline-block;
}

/* Beautiful required asterisk */
.modal-body .form-label span.text-danger,
.modal-body .form-label .text-danger {
    color: #ef4444 !important;
    margin-left: 4px;
    font-weight: 700 !important;
}

/* Input Fields Redesign (Apple/Stripe style soft background) */
.modal-body .form-control,
.modal-body .form-select,
.modal-body select[multiple] {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 18px !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    /* Soft gray default bg */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.modal-body .form-control::placeholder {
    color: #94a3b8 !important;
}

/* Input Focus - turns clean white with custom teal border and light outer shadow */
.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body select[multiple]:focus {
    border-color: #009688 !important;
    /* Brand Teal */
    background-color: #ffffff !important;
    /* Stark white on focus */
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.08), 0 0 0 4px rgba(0, 150, 136, 0.12) !important;
    outline: none !important;
}

/* Custom styled Multiple Select Box */
.modal-body select[multiple] {
    padding: 10px !important;
    background-color: #f8fafc !important;
    min-height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-body select[multiple] option {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.modal-body select[multiple] option:not(:checked) {
    color: #334155 !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #334155 !important;
    text-shadow: none !important;
    order: 1 !important; /* Send to bottom */
}

.modal-body select[multiple] option:hover:not(:checked) {
    background-color: rgba(0, 150, 136, 0.08) !important;
    color: #009688 !important;
    -webkit-text-fill-color: #009688 !important;
}

/* Checked options get custom background and move to the TOP of the list using flexbox order */
.modal-body select[multiple] option:checked,
.modal-body select[multiple] option:selected {
    background: #009688 linear-gradient(0deg, #009688 0%, #009688 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 0 #ffffff !important; /* Forces text color to white on Chrome/Windows overrides */
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.2) !important;
    order: -1 !important; /* Send to top */
}

.modal-body select[multiple] option:checked:hover {
    background: #008073 linear-gradient(0deg, #008073 0%, #008073 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 0 #ffffff !important;
}

/* Custom scrollbar for multiple select box */
.modal-body select[multiple]::-webkit-scrollbar {
    width: 6px !important;
}

.modal-body select[multiple]::-webkit-scrollbar-track {
    background: transparent !important;
}

.modal-body select[multiple]::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

.modal-body select[multiple]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Modal Footer Styling */
.modal-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 20px 32px !important;
}

.modal-footer .btn {
    padding: 12px 24px !important;
    font-weight: 650 !important;
    font-size: 0.875rem !important;
    border-radius: 10px !important;
    text-transform: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal-footer .btn-light {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.modal-footer .btn-light:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}

.modal-footer .btn-secondary {
    background: #0f284c !important;
    /* Brand Dark Navy */
    color: #ffffff !important;
    border: 1px solid #0f284c !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.modal-footer .btn-secondary:hover {
    background: #009688 !important;
    /* Brand Teal */
    border-color: #009688 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 150, 136, 0.3) !important;
}

/* 7. Safety Marquee (Notice Running Line) */
.marquee-wrapper {
    background: rgba(15, 44, 84, 0.95) !important;
    /* Deep navy blue, 95% opacity */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-top: 3px solid #009688 !important;
    /* Teal border */
    padding: 12px 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
}

.marquee-content {
    font-weight: 500 !important;
    font-size: 14px !important;
}

.marquee-content .text-danger {
    color: #009688 !important;
    /* Teal color */
    font-weight: 700 !important;
    margin-right: 12px !important;
    background: rgba(0, 150, 136, 0.15) !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0, 150, 136, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.marquee-content .text-dark {
    color: #ffffff !important;
    opacity: 0.95 !important;
}

/* 8. Datatables Column Visibility Dropdown Styling */
.dt-button-collection {
    border: none !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important;
    padding: 8px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    z-index: 1050 !important;
    margin-top: 4px !important;
}

.dt-button-collection .dt-button,
.dt-button-collection .dropdown-item,
.dt-button-collection .buttons-columnVisibility {
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin-bottom: 2px !important;
}

/* Hover State - Teal background with White text */
.dt-button-collection .dt-button:hover,
.dt-button-collection .dropdown-item:hover,
.dt-button-collection .buttons-columnVisibility:hover {
    background: #009688 !important;
    color: #ffffff !important;
    padding-left: 22px !important;
}

/* Active / Checked State (When column is active/visible) - Dark Blue tint background with Teal text */
.dt-button-collection .dt-button.active,
.dt-button-collection .dropdown-item.active,
.dt-button-collection .buttons-columnVisibility.active {
    background: rgba(15, 44, 84, 0.08) !important;
    color: #009688 !important;
    font-weight: 600 !important;
    border-left: 3px solid #009688 !important;
    border-radius: 0 6px 6px 0 !important;
}

.dt-button-collection .dt-button.active:hover,
.dt-button-collection .dropdown-item.active:hover,
.dt-button-collection .buttons-columnVisibility.active:hover {
    background: #009688 !important;
    color: #ffffff !important;
    padding-left: 22px !important;
    border-left-color: #ffffff !important;
}

/* 9. Sidebar Submenu Active & Highlight State */

/* Hide default theme bullet dots and connectors completely */
.pc-sidebar .pc-submenu .pc-item::before,
.pc-sidebar .pc-submenu .pc-item:before,
.pc-sidebar .pc-submenu .pc-item::after,
.pc-sidebar .pc-submenu .pc-item:after,
.pc-sidebar .pc-navbar>.pc-item .pc-submenu .pc-item>.pc-link::after,
.pc-sidebar .pc-navbar>.pc-item .pc-submenu .pc-item>.pc-link:after {
    display: none !important;
    content: none !important;
}

/* Base style for all submenu links - set clean readable white text and spacing */
.pc-sidebar .pc-navbar .pc-submenu .pc-item>.pc-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500 !important;
    padding-left: 50px !important;
    /* Keep text to the right of the vertical connector line */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover style for non-active submenu items */
.pc-sidebar .pc-navbar .pc-submenu .pc-item:not(.active)>.pc-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    padding-left: 55px !important;
    /* Interactive shift on hover */
    border-radius: 6px !important;
}

/* Style for the active submenu item link */
.pc-sidebar .pc-navbar .pc-submenu .pc-item.active>.pc-link {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Soft white backdrop tint */
    color: #ffffff !important;
    /* Keep text white as requested */
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding-left: 50px !important;
    position: relative !important;
}

/* Pulsing Teal circle dot for the active submenu item - centered on the vertical line */
.pc-sidebar .pc-navbar .pc-submenu .pc-item.active>.pc-link::before {
    content: "" !important;
    position: absolute !important;
    left: 26px !important;
    /* Center of the dot aligned to the vertical connector line */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #009688 !important;
    /* Teal Dot */
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.3) !important;
    animation: sidebarPulse 1.8s infinite ease-in-out !important;
    display: block !important;
    z-index: 5 !important;
}

@keyframes sidebarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0.8);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 150, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0);
    }
}

/* 10. Datatables Pagination Styling */
.pagination,
.dt-paging,
.dataTables_paginate {
    display: inline-flex !important;
    gap: 6px !important;
    padding: 0 !important;
    margin-top: 15px !important;
}

.pagination .page-item .page-link,
.dt-paging .dt-paging-button,
.dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 14px !important;
    color: #475569 !important;
    background: #ffffff !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pagination .page-item.active .page-link,
.dt-paging .dt-paging-button.current,
.dt-paging .dt-paging-button.active,
.dataTables_paginate .paginate_button.current {
    background: #009688 !important;
    border-color: #009688 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 150, 136, 0.25) !important;
}

.pagination .page-item .page-link:hover:not(.active),
.dt-paging .dt-paging-button:hover:not(.current):not(.disabled),
.dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: rgba(0, 150, 136, 0.05) !important;
    color: #009688 !important;
    border-color: rgba(0, 150, 136, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* 11. Custom thin scrollbars for table wrappers */
.dataTables_wrapper .dataTables_scrollBody,
.table-responsive,
.dt-responsive {
    scrollbar-width: thin !important;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.dt-responsive::-webkit-scrollbar {
    height: 6px !important;
    width: 6px !important;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.dt-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.dt-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.dt-responsive::-webkit-scrollbar-track {
    background: transparent !important;
}

/* 12. Premium Empty State Styling for Datatables */
.advance-datatable td.dataTables_empty {
    padding: 60px 20px !important; /* Spacious vertical padding */
    background-color: #ffffff !important;
    color: #475569 !important; /* Slate 600 */
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-bottom: none !important;
}

/* Animated search illustration */
.advance-datatable td.dataTables_empty::before {
    content: "🔍" !important; /* Modern search emoji */
    display: block !important;
    font-size: 2.5rem !important;
    margin-bottom: 12px !important;
    opacity: 0.8 !important;
    animation: emptySearchBounce 2.5s infinite ease-in-out !important;
}

/* Sub-helper text */
.advance-datatable td.dataTables_empty::after {
    content: "\A Select your filters and click Search to populate the employee records." !important;
    display: block !important;
    font-size: 0.8125rem !important;
    color: #94a3b8 !important; /* Soft Slate 400 */
    margin-top: 8px !important;
    white-space: pre-wrap !important;
    font-weight: 400 !important;
}

@keyframes emptySearchBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.05);
    }
}

/* 13. Modern FullCalendar Premium Redesign */
.fc {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: none !important;
    font-family: inherit !important;
    margin-top: 20px !important; /* Prevent overlapping with page headers */
}

/* Header Toolbar Customization */
.fc .fc-header-toolbar {
    margin-bottom: 24px !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 44, 84, 0.05) !important;
}

.fc .fc-toolbar-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0f284c !important; /* Brand Dark Navy */
    letter-spacing: -0.01em !important;
}

/* Custom Styled Calendar Buttons & Groups */
.fc .fc-button-group {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 150, 136, 0.15) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.fc .fc-button-group .fc-button {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    background-color: rgba(0, 150, 136, 0.05) !important; /* Soft Teal Tint */
    color: #009688 !important; /* Teal text */
    transition: all 0.2s ease !important;
    text-transform: lowercase !important; /* Lowercase "month", "week", etc. */
}

/* Dividing line between buttons in group */
.fc .fc-button-group .fc-button:not(:last-child) {
    border-right: 1px solid rgba(0, 150, 136, 0.15) !important;
}

/* Hover on inactive grouped buttons */
.fc .fc-button-group .fc-button:hover:not(.fc-button-active) {
    background-color: rgba(0, 150, 136, 0.1) !important;
    color: #009688 !important;
}

/* Active grouped button (e.g. Month view) */
.fc .fc-button-group .fc-button.fc-button-active,
.fc .fc-button-group .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-group .fc-button-primary:not(:disabled):active {
    background-color: #009688 !important; /* Solid Teal */
    color: #ffffff !important; /* White text */
}

/* Today Button - Standalone Solid Teal */
.fc .fc-today-button {
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    text-transform: lowercase !important; /* Lowercase "today" */
    padding: 8px 18px !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #009688 !important; /* Solid Teal Box */
    border: 1px solid #009688 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.15) !important;
    opacity: 1 !important;
}

.fc .fc-today-button:hover:not(:disabled) {
    background-color: #008073 !important; /* Darker Teal on hover */
    border-color: #008073 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3) !important;
    transform: translateY(-1px) !important;
}

.fc .fc-today-button:disabled {
    opacity: 1 !important;
    cursor: default !important;
    background-color: #009688 !important; /* Remain solid teal */
    color: #ffffff !important;
    border-color: #009688 !important;
    box-shadow: none !important;
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15) !important;
}

/* Day of Week Headers */
.fc .fc-col-header-cell {
    background-color: #f8fafc !important;
    color: #64748b !important; /* Slate 500 */
    font-weight: 700 !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-color: #f1f5f9 !important;
}

/* Calendar Day Cells */
.fc td, .fc th {
    border-color: #f1f5f9 !important; /* Soft gray cell borders */
}

.fc-daygrid-day-number {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 6px 8px !important;
    text-decoration: none !important;
}

/* Highlight Today's Date with Google Calendar Style Teal badge */
.fc .fc-day-today {
    background-color: rgba(0, 150, 136, 0.03) !important; /* Soft Teal tint */
}

.fc .fc-day-today .fc-daygrid-day-number {
    background-color: #009688 !important; /* Solid Teal circle badge */
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 4px 6px !important;
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.2) !important;
}

/* Premium Event Cards on the Calendar - High Contrast & Dynamic Colors */
.fc-v-event, .fc-h-event, .fc-daygrid-event, .fc-event {
    border-radius: 6px !important;
    padding: 5px 10px !important;
    margin: 2px 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #ffffff !important; /* Stark white text */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border: none !important; /* Clean rounded badge layout */
}

.fc-v-event:hover, .fc-h-event:hover, .fc-daygrid-event:hover, .fc-event:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15) !important;
    filter: brightness(0.9) !important; /* Soft darken effect to dynamic colors on hover */
    color: #ffffff !important;
}

/* Ensure event titles and nested text inside FullCalendar always render in white color */
.fc-event .fc-event-main,
.fc-event .fc-event-title,
.fc-event-title,
.fc-event-main {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Customize list view if used */
.fc .fc-list-event:hover td {
    background-color: rgba(0, 150, 136, 0.04) !important;
}

.fc .fc-list-day-cushion {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
}

/* 14. Modern Initials-Based Avatar Styling */
.initials-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid #ffffff !important;
    user-select: none !important;
    letter-spacing: 0.03em !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* Custom Size Classes */
.initials-avatar.wid-40 {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
}

.initials-avatar.avatar-lg {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.15rem !important;
}

.initials-avatar.avatar-sm {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
}

/* 8 Dynamic color schemes mapped to initials character values */
.initials-avatar.bg-avatar-1 { background-color: #009688 !important; } /* Teal */
.initials-avatar.bg-avatar-2 { background-color: #0f284c !important; } /* Navy */
.initials-avatar.bg-avatar-3 { background-color: #3b82f6 !important; } /* Blue */
.initials-avatar.bg-avatar-4 { background-color: #10b981 !important; } /* Emerald */
.initials-avatar.bg-avatar-5 { background-color: #f59e0b !important; } /* Amber */
.initials-avatar.bg-avatar-6 { background-color: #ef4444 !important; } /* Red */
.initials-avatar.bg-avatar-7 { background-color: #8b5cf6 !important; } /* Purple */
.initials-avatar.bg-avatar-8 { background-color: #ec4899 !important; } /* Pink */

/* 15. Premium Metric Cards for Station/Department Dashboards */
.metric-badge {
    border-radius: 12px !important;
    padding: 12px 8px !important;
    text-align: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    display: block !important;
    text-decoration: none !important;
}

.metric-badge:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
}

.metric-badge p {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important; /* Slate 500 label */
    margin-bottom: 4px !important;
}

.metric-badge h4, 
.metric-badge h5 {
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.metric-badge h4 {
    font-size: 1.35rem !important;
}

.metric-badge h5 {
    font-size: 1.15rem !important;
}

/* Color Variant Styling without borders (modern flat aesthetic) */
.metric-total {
    background-color: #fef08a !important; /* Soft Yellow */
    color: #854d0e !important;
}
.metric-total h4 {
    color: #854d0e !important;
}

.metric-pending {
    background-color: #ffedd5 !important; /* Soft Orange */
    color: #ea580c !important;
}
.metric-pending h4 {
    color: #ea580c !important;
}

.metric-rectified {
    background-color: #d1fae5 !important; /* Soft Emerald Green */
    color: #059669 !important;
}
.metric-rectified h5 {
    color: #059669 !important;
}

.metric-closed {
    background-color: #e0f2fe !important; /* Soft Sky Blue */
    color: #0284c7 !important;
}
.metric-closed h5 {
    color: #0284c7 !important;
}

.metric-reopened {
    background-color: #ffe4e6 !important; /* Soft Rose Red */
    color: #e11d48 !important;
}
.metric-reopened h5 {
    color: #e11d48 !important;
}

/* 16. Custom Premium Teal Button with Hover Effects */
.btn-teal-custom {
    background-color: #0f284c !important; /* Dark Navy by default */
    border-color: #0f284c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-teal-custom:hover {
    background-color: #009688 !important; /* Teal on hover */
    border-color: #009688 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.25) !important;
}

.btn-teal-custom:active {
    background-color: #00796b !important;
    border-color: #00796b !important;
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 6px rgba(0, 150, 136, 0.2) !important;
}

/* 17. Premium & Modern Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid rgba(15, 40, 76, 0.06) !important;
    gap: 8px !important;
}

.nav-tabs .nav-item {
    margin-bottom: -2px !important;
}

.nav-tabs .nav-link {
    color: #64748b !important; /* Muted Slate */
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    border-radius: 12px 12px 0 0 !important; /* Elegant top-rounded tabs */
    padding: 10px 20px !important;
    transition: all 0.2s ease-in-out !important;
}

.nav-tabs .nav-link:hover {
    color: #334155 !important;
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 #cbd5e1 transparent !important;
}

.nav-tabs .nav-link.active {
    color: #009688 !important; /* Brand Teal Text */
    background-color: #e0f2f1 !important; /* Soft Teal Background */
    border-color: #009688 #009688 transparent !important;
    border-bottom: 2px solid #e0f2f1 !important; /* Seamless connection */
    font-weight: 700 !important;
}

/* Badge styling inside navigation tabs */
.nav-tabs .nav-link .badge {
    transition: all 0.2s !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 20px !important;
}

.nav-tabs .nav-link.active .badge {
    background-color: #009688 !important; /* Match active tab */
    color: #ffffff !important;
}

.nav-tabs .nav-link:not(.active) .badge {
    background-color: #94a3b8 !important; /* Muted Badge */
    color: #ffffff !important;
}

/* 18. Premium Global Badge Styling (Bootstrap Overrides) */
.badge {
    padding: 6px 12px !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 30px !important; /* Elegant pill shape */
    border: 1px solid transparent !important;
}

/* Safety: Critical (Danger Red) */
.badge.bg-danger {
    background-color: #fee2e2 !important; /* Soft Rose */
    color: #dc2626 !important; /* Crimson Text */
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
}

/* Status: Open (Warning Orange) */
.badge.bg-warning {
    background-color: #fff7ed !important; /* Soft Orange/Amber */
    color: #ea580c !important; /* Dark Orange Text */
    border: 1px solid rgba(234, 88, 12, 0.15) !important;
}

/* Status: Rectified (Success Green) */
.badge.bg-success {
    background-color: #d1fae5 !important; /* Soft Emerald */
    color: #059669 !important; /* Dark Green Text */
    border: 1px solid rgba(5, 150, 105, 0.15) !important;
}

/* Status: Reopened (Info Blue) */
.badge.bg-info {
    background-color: #e0f2fe !important; /* Soft Sky Blue */
    color: #0284c7 !important; /* Dark Blue Text */
    border: 1px solid rgba(2, 132, 199, 0.15) !important;
}

/* Status: Closed (Brand Teal or Slate Gray) */
.badge.bg-secondary {
    background-color: #e0f2f1 !important; /* Soft Teal */
    color: #009688 !important; /* Brand Teal Text! */
    border: 1px solid rgba(0, 150, 136, 0.15) !important;
}

/* Status: Closed (if styled as bg-light-success or success elsewhere) */
.badge.bg-success-subtle {
    background-color: #d1fae5 !important;
    color: #059669 !important;
    border: 1px solid rgba(5, 150, 105, 0.15) !important;
}
.badge.bg-danger-subtle {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
}

/* ═══════════════════════════════════════════════════
   19. Dashboard Chart Canvas — Proper Sizing & Layout
   ═══════════════════════════════════════════════════ */

/* Wrapper div around each <canvas> — set height here */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* Department bar chart specific */
#deptChart {
    min-height: 300px !important;
    max-height: 380px !important;
}

/* Daily trend line chart */
#dailyChart {
    min-height: 240px !important;
    max-height: 300px !important;
}

/* Status / safety donut/pie charts */
#statusChart,
#safetyChart,
#priorityChart {
    min-height: 220px !important;
    max-height: 280px !important;
}

/* Card that houses a chart — give proper inner breathing room */
.stat-card .card-body canvas {
    display: block;
    padding: 0 4px;
}

/* Chart legend bottom spacing */
.stat-card .card-body .chartjs-render-monitor {
    margin-bottom: 4px;
}

/* Responsive: on small screens reduce chart height */
@media (max-width: 768px) {
    #deptChart {
        min-height: 220px !important;
        max-height: 260px !important;
    }
    #dailyChart {
        min-height: 180px !important;
        max-height: 220px !important;
    }
}

/* Department & Designation: selected options visibility fix */
#department_id + .select2-container,
#designation_id + .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 46px !important;
    height: auto !important;
    overflow: visible !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px 6px !important;
    margin: 0 !important;
    gap: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 3px 4px 3px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.modal-body .row,
.modal-body .form-group {
    min-width: 0 !important;
}

.modal-body .select2-container {
    max-width: 100% !important;
}

/* Department & Designation Select2 - Clean Styling */

#department_id + .select2-container,
#designation_id + .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

#department_id + .select2-container .select2-selection--multiple,
#designation_id + .select2-container .select2-selection--multiple {
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 43px !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
}

#department_id + .select2-container .select2-selection__rendered,
#designation_id + .select2-container .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    white-space: normal !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    gap: 4px !important;
}

#department_id + .select2-container .select2-selection__choice,
#designation_id + .select2-container .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 2px 4px 2px 0 !important;
    padding: 5px 10px !important;
    gap: 6px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    background: #e2e8f0 !important;
    color: #212529 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#department_id + .select2-container .select2-selection__choice__display,
#designation_id + .select2-container .select2-selection__choice__display {
    display: inline-block !important;
    padding: 0 !important;
    color: #212529 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#department_id + .select2-container .select2-selection__choice__remove,
#designation_id + .select2-container .select2-selection__choice__remove {
    position: static !important;
    order: -1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #212529 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

#department_id + .select2-container .select2-selection__choice__remove:hover,
#designation_id + .select2-container .select2-selection__choice__remove:hover {
    background: transparent !important;
    color: #dc2626 !important;
}

.modal-body .row,
.modal-body .form-group {
    min-width: 0 !important;
}

.modal-body .select2-container {
    max-width: 100% !important;
}


/* Department & Designation: Keep cursor inside the select box */

#department_id + .select2-container .select2-selection--multiple,
#designation_id + .select2-container .select2-selection--multiple {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 43px !important;
    height: auto !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

#department_id + .select2-container .select2-selection__rendered,
#designation_id + .select2-container .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
}

#department_id + .select2-container .select2-search--inline,
#designation_id + .select2-container .select2-search--inline {
    display: inline-flex !important;
    flex: 1 1 80px !important;
    min-width: 80px !important;
    margin: 2px 0 !important;
}

#department_id + .select2-container .select2-search__field,
#designation_id + .select2-container .select2-search__field {
    width: 100% !important;
    min-width: 80px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
}

/* Rectify Department & Designation Select2 Fix */

#rectify_department_id + .select2-container,
#rectify_designation_id + .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

#rectify_department_id + .select2-container .select2-selection--multiple,
#rectify_designation_id + .select2-container .select2-selection--multiple {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 43px !important;
    height: auto !important;
    padding: 4px 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
}

#rectify_department_id + .select2-container .select2-selection__rendered,
#rectify_designation_id + .select2-container .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
}

#rectify_department_id + .select2-container .select2-selection__choice,
#rectify_designation_id + .select2-container .select2-selection__choice {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 3px 4px 3px 0 !important;
    padding: 4px 8px !important;
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    color: #212529 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#rectify_department_id + .select2-container .select2-selection__choice__display,
#rectify_designation_id + .select2-container .select2-selection__choice__display {
    color: #212529 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#rectify_department_id + .select2-container .select2-search--inline,
#rectify_designation_id + .select2-container .select2-search--inline {
    flex: 1 1 80px !important;
    min-width: 80px !important;
}

#rectify_department_id + .select2-container .select2-search__field,
#rectify_designation_id + .select2-container .select2-search__field {
    width: 100% !important;
    min-width: 80px !important;
    margin: 0 !important;
    padding: 4px !important;
    color: #212529 !important;
}

/* Fallback for truck-loading icon in Tabler Icons */
.ti-truck-loading:before {
    content: "\ebc4" !important;
}
/* Rectify Select2 selected item */
#rectify_department_id + .select2-container
.select2-selection--multiple .select2-selection__choice,
#rectify_designation_id + .select2-container
.select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 8px !important;
    margin: 3px 5px 3px 0 !important;
    border-radius: 5px !important;
    background-color: #e2e8f0 !important;
    color: #212529 !important;
    border: 1px solid #cbd5e1 !important;
}

/* Cut button */
#rectify_department_id + .select2-container
.select2-selection__choice__remove,
#rectify_designation_id + .select2-container
.select2-selection__choice__remove {
    position: static !important;
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

#rectify_department_id + .select2-container
.select2-selection__choice__remove:hover,
#rectify_designation_id + .select2-container
.select2-selection__choice__remove:hover {
    background: #cbd5e1 !important;
    color: #000 !important;
}
/* Move cut button before selected text */
#rectify_department_id + .select2-container
.select2-selection__choice__remove,
#rectify_designation_id + .select2-container
.select2-selection__choice__remove {
    order: -1 !important;
    margin-right: 5px !important;
    margin-left: 0 !important;
    border-right: none !important;
    border-left: none !important;
    float: none !important;
}

/* Keep selected text after cut button */
#rectify_department_id + .select2-container
.select2-selection__choice__display,
#rectify_designation_id + .select2-container
.select2-selection__choice__display {
    order: 1 !important;
}
/* Authority Department & Designation Select2 Visibility & Contrast Fix */

#ph16_ti_department_id + .select2-container,
#ph16_ti_designation_id + .select2-container,
#staff_counselling_department_id + .select2-container,
#staff_counselling_designation_id + .select2-container,
#pme_refresher_gradation_department_id + .select2-container,
#pme_refresher_gradation_designation_id + .select2-container,
#load_stable_clearance_department_id + .select2-container,
#load_stable_clearance_designation_id + .select2-container,
#edit_staff_counselling_department_id + .select2-container,
#edit_staff_counselling_designation_id + .select2-container,
#edit_pme_refresher_gradation_department_id + .select2-container,
#edit_pme_refresher_gradation_designation_id + .select2-container,
#edit_load_stable_clearance_department_id + .select2-container,
#edit_load_stable_clearance_designation_id + .select2-container,
.modal .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

#ph16_ti_department_id + .select2-container .select2-selection--multiple,
#ph16_ti_designation_id + .select2-container .select2-selection--multiple,
#staff_counselling_department_id + .select2-container .select2-selection--multiple,
#staff_counselling_designation_id + .select2-container .select2-selection--multiple,
#pme_refresher_gradation_department_id + .select2-container .select2-selection--multiple,
#pme_refresher_gradation_designation_id + .select2-container .select2-selection--multiple,
#load_stable_clearance_department_id + .select2-container .select2-selection--multiple,
#load_stable_clearance_designation_id + .select2-container .select2-selection--multiple,
.modal .select2-container .select2-selection--multiple {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 43px !important;
    height: auto !important;
    padding: 4px 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
}

#ph16_ti_department_id + .select2-container .select2-selection__rendered,
#ph16_ti_designation_id + .select2-container .select2-selection__rendered,
#staff_counselling_department_id + .select2-container .select2-selection__rendered,
#staff_counselling_designation_id + .select2-container .select2-selection__rendered,
#pme_refresher_gradation_department_id + .select2-container .select2-selection__rendered,
#pme_refresher_gradation_designation_id + .select2-container .select2-selection__rendered,
#load_stable_clearance_department_id + .select2-container .select2-selection__rendered,
#load_stable_clearance_designation_id + .select2-container .select2-selection__rendered,
.modal .select2-container .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
}

#ph16_ti_department_id + .select2-container .select2-selection__choice,
#ph16_ti_designation_id + .select2-container .select2-selection__choice,
#staff_counselling_department_id + .select2-container .select2-selection__choice,
#staff_counselling_designation_id + .select2-container .select2-selection__choice,
#pme_refresher_gradation_department_id + .select2-container .select2-selection__choice,
#pme_refresher_gradation_designation_id + .select2-container .select2-selection__choice,
#load_stable_clearance_department_id + .select2-container .select2-selection__choice,
#load_stable_clearance_designation_id + .select2-container .select2-selection__choice,
.modal .select2-container .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    max-width: 100% !important;
    margin: 3px 4px 3px 0 !important;
    padding: 4px 10px !important;
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 5px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#ph16_ti_department_id + .select2-container .select2-selection__choice__display,
#ph16_ti_designation_id + .select2-container .select2-selection__choice__display,
#staff_counselling_department_id + .select2-container .select2-selection__choice__display,
#staff_counselling_designation_id + .select2-container .select2-selection__choice__display,
#pme_refresher_gradation_department_id + .select2-container .select2-selection__choice__display,
#pme_refresher_gradation_designation_id + .select2-container .select2-selection__choice__display,
#load_stable_clearance_department_id + .select2-container .select2-selection__choice__display,
#load_stable_clearance_designation_id + .select2-container .select2-selection__choice__display,
.modal .select2-container .select2-selection__choice__display,
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: #0f172a !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding-left: 2px !important;
}

#ph16_ti_department_id + .select2-container .select2-selection__choice__remove,
#ph16_ti_designation_id + .select2-container .select2-selection__choice__remove,
#staff_counselling_department_id + .select2-container .select2-selection__choice__remove,
#staff_counselling_designation_id + .select2-container .select2-selection__choice__remove,
#pme_refresher_gradation_department_id + .select2-container .select2-selection__choice__remove,
#pme_refresher_gradation_designation_id + .select2-container .select2-selection__choice__remove,
#load_stable_clearance_department_id + .select2-container .select2-selection__choice__remove,
#load_stable_clearance_designation_id + .select2-container .select2-selection__choice__remove,
.modal .select2-container .select2-selection__choice__remove,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    order: -1 !important;
    float: none !important;
    margin-right: 6px !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444 !important;
    background: transparent !important;
}

#ph16_ti_department_id + .select2-container .select2-search--inline,
#ph16_ti_designation_id + .select2-container .select2-search--inline,
#staff_counselling_department_id + .select2-container .select2-search--inline,
#staff_counselling_designation_id + .select2-container .select2-search--inline,
#pme_refresher_gradation_department_id + .select2-container .select2-search--inline,
#pme_refresher_gradation_designation_id + .select2-container .select2-search--inline,
#load_stable_clearance_department_id + .select2-container .select2-search--inline,
#load_stable_clearance_designation_id + .select2-container .select2-search--inline,
.modal .select2-container .select2-search--inline {
    flex: 1 1 80px !important;
    min-width: 80px !important;
}

#ph16_ti_department_id + .select2-container .select2-search__field,
#ph16_ti_designation_id + .select2-container .select2-search__field,
#staff_counselling_department_id + .select2-container .select2-search__field,
#staff_counselling_designation_id + .select2-container .select2-search__field,
#pme_refresher_gradation_department_id + .select2-container .select2-search__field,
#pme_refresher_gradation_designation_id + .select2-container .select2-search__field,
#load_stable_clearance_department_id + .select2-container .select2-search__field,
#load_stable_clearance_designation_id + .select2-container .select2-search__field,
.modal .select2-container .select2-search__field {
    width: 100% !important;
    min-width: 80px !important;
    margin: 0 !important;
    color: #0f172a !important;
}

/* Fallback for truck-loading icon in Tabler Icons */
.ti-truck-loading:before {
    content: "\ebc4" !important;
}

/* Fallback for missing Tabler Icons */
.ti-user-circle:before {
    content: "\eb4d" !important;
}
.ti-timeline:before {
    content: "\ebea" !important;
}
.ti-id-badge-2:before {
    content: "\ea9d" !important;
}

