/* ==========================================================================
   UPAHAAR - ROYAL HINDU FESTIVAL THEME
   Auspicious & Regal Palette: Kumkum Maroon, Temple Gold, Kesar & Chandan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --festive-maroon-dark: #3F060D;
    --festive-maroon: #6B0E1B;
    --festive-maroon-light: #881324;
    --festive-gold: #D4AF37;
    --festive-gold-light: #F59E0B;
    --festive-gold-subtle: #FDF4DC;
    --festive-kesar: #C2410C;
    --festive-kesar-bright: #EA580C;
    --festive-chandan: #FAF6F0;
    --festive-chandan-card: #FFFFFF;
    --festive-border: #E8DDCE;
    --festive-tulsi: #15803D;
    --festive-tulsi-bg: #DCFCE7;
    --festive-sindoor: #991B1B;
    --festive-sindoor-bg: #FEE2E2;
}

/* Base & Typography */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: var(--festive-chandan) !important;
    color: #292524 !important;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.content-wrapper {
    background-color: var(--festive-chandan) !important;
}

.content {
    background-color: var(--festive-chandan) !important;
    padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   TOP NAVBAR - REGAL MAROON WITH TEMPLE GOLD ACCENT
   -------------------------------------------------------------------------- */
.navbar.navbar-festive,
.navbar.bg-dark {
    background: linear-gradient(135deg, #42060D 0%, #680D1A 100%) !important;
    border-bottom: 2.5px solid var(--festive-gold) !important;
    box-shadow: 0 3px 12px rgba(66, 6, 13, 0.25) !important;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    color: #FFFDF9 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.main-logo-img {
    height: 44px !important;
    width: auto !important;
    max-width: 260px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar-brand:hover .main-logo-img {
    transform: scale(1.03);
}

.navbar-brand span,
.navbar-brand a {
    color: #FFE6A3 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar-nav .nav-link {
    color: #FEEBC8 !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   TOPBAR FESTIVAL SWITCHER
   -------------------------------------------------------------------------- */
.topbar-festival-select {
    display: inline-block !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border: 1.5px solid rgba(255, 215, 0, 0.65) !important;
    border-radius: 6px !important;
    height: 35px !important;
    min-height: 35px !important;
    font-size: 0.8125rem !important;
    line-height: normal !important;
    padding: 0 28px 0 10px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffd700' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    background-size: 11px 9px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.topbar-festival-select:hover,
.topbar-festival-select:focus {
    background-color: rgba(255, 255, 255, 0.24) !important;
    color: #FFFFFF !important;
    border-color: #FFD700 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4) !important;
}

.topbar-festival-select option {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
}

/* --------------------------------------------------------------------------
   SIDEBAR - DEEP ROYAL CRIMSON MAROON (REPLACING HARSH NEON ORANGE)
   -------------------------------------------------------------------------- */
.sidebar.sidebar-festive,
.sidebar-main {
    background: linear-gradient(180deg, #36040A 0%, #4D0811 100%) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 2px 0 10px rgba(54, 4, 10, 0.15);
}

.sidebar-section {
    background: transparent !important;
}

/* Navigation Links */
.nav-sidebar .nav-item {
    margin: 3px 10px;
    font-weight: 500;
}

.nav-sidebar .nav-link {
    color: #F7EAD9 !important;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-sidebar .nav-link:hover {
    background: rgba(212, 175, 55, 0.14) !important;
    color: #FFFFFF !important;
}

/* Nav Icons - Antique Gold */
.nav-sidebar .nav-link i,
.nav-sidebar .nav-link .text-dark {
    color: var(--festive-gold-light) !important;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.nav-sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: #FDE68A !important;
}

/* Active Menu Item - Glowing Kesar with Gold Left Edge */
.nav-sidebar .nav-link.active,
.nav-sidebar .nav-item-open > .nav-link {
    background: linear-gradient(90deg, #C2410C 0%, #9A3412 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(194, 65, 12, 0.35) !important;
    border-left: 4px solid #FCD34D !important;
}

.nav-sidebar .nav-link.active i {
    color: #FFF !important;
}

/* Submenu Styling */
.nav-group-sub {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px;
    margin: 4px 6px;
    padding: 4px 0;
}

.nav-group-sub .nav-link {
    padding-left: 28px !important;
    font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   CARD & HEADERS - TEMPLE CRIMSON WITH GOLD DIVIDER
   -------------------------------------------------------------------------- */
.card {
    border-radius: 12px !important;
    border: 1px solid var(--festive-border) !important;
    box-shadow: 0 2px 10px rgba(107, 14, 27, 0.05) !important;
    background-color: #FFFFFF;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header.bg-dark,
.card-header-festive {
    background: linear-gradient(135deg, #5C0A14 0%, #7E121D 100%) !important;
    color: #FFFDF9 !important;
    border-bottom: 2.5px solid var(--festive-gold) !important;
    padding: 0.95rem 1.25rem !important;
}

.card-title {
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.2px !important;
    color: #FFFDF9 !important;
    margin: 0;
}

/* --------------------------------------------------------------------------
   TABLE STYLING - REFINED CHANDAN & CLEAN TYPOGRAPHY
   -------------------------------------------------------------------------- */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background-color: #FAF4EB !important;
    color: #63101A !important;
    font-weight: 600 !important;
    font-size: 0.76rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    border-bottom: 2px solid #E5D5C0 !important;
    border-top: none !important;
    padding: 12px 14px !important;
    vertical-align: middle;
    position: relative;
}

/* Fix table header text overlapping with sorting icons across DataTables */
.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc,
.table thead th.sorting_asc_disabled,
.table thead th.sorting_desc_disabled,
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc,
table.dataTable thead th.sorting_asc_disabled,
table.dataTable thead th.sorting_desc_disabled,
.dataTable thead th.sorting,
.dataTable thead th.sorting_asc,
.dataTable thead th.sorting_desc,
.dataTable thead th.sorting_asc_disabled,
.dataTable thead th.sorting_desc_disabled {
    padding-right: 2.25rem !important;
    position: relative !important;
    cursor: pointer;
}

/* Position sorting chevrons with ample breathing room to prevent text collision */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after,
.table thead .sorting:before,
.table thead .sorting:after,
.table thead .sorting_asc:after,
.table thead .sorting_desc:after,
.table thead .sorting_asc_disabled:after,
.table thead .sorting_desc_disabled:after,
.dataTable thead .sorting:before,
.dataTable thead .sorting:after,
.dataTable thead .sorting_asc:after,
.dataTable thead .sorting_desc:after,
.dataTable thead .sorting_asc_disabled:after,
.dataTable thead .sorting_desc_disabled:after {
    right: 0.75rem !important;
}

/* Harmonize sorting icon colors with the festive palette */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
.table thead .sorting:before,
.table thead .sorting:after,
.dataTable thead .sorting:before,
.dataTable thead .sorting:after {
    color: #A88D79 !important;
    opacity: 0.45 !important;
}

table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
.table thead .sorting_asc:after,
.table thead .sorting_desc:after,
.dataTable thead .sorting_asc:after,
.dataTable thead .sorting_desc:after {
    color: #63101A !important;
    opacity: 0.95 !important;
}

.table tbody td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-top: 1px solid #F0E6D8 !important;
    color: #292524 !important;
}

/* Fix for awkward row highlight */
.table tbody tr.bg-indigo-100 {
    background-color: #FDF9F2 !important;
}

.table tbody tr:hover {
    background-color: #FBF5EC !important;
    transition: background-color 0.15s ease;
}

/* --------------------------------------------------------------------------
   FESTIVE BUTTONS & STATUS BADGES
   -------------------------------------------------------------------------- */

/* Global Button Alignment Guarantee: Always center text and icons */
.btn,
.btn-sm,
.btn-xs,
.btn-lg,
.btn-indigo,
.btn-pink,
.btn-light,
.btn-festive-primary,
.btn-festive-gold,
.btn-festive-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ensure SweetAlert hidden action buttons remain hidden despite any global button styles */
.swal2-actions button[style*="display: none"],
.swal2-actions button[style*="display:none"],
.swal2-actions .btn[style*="display: none"],
.swal2-actions .btn[style*="display:none"] {
    display: none !important;
}

.btn.btn-block {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* "Create New" & Primary Buttons */
.badge.bg-pink,
.btn-indigo,
.btn-festive-primary {
    background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #FB923C !important;
    box-shadow: 0 2px 6px rgba(194, 65, 12, 0.3) !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.badge.bg-pink,
.btn-indigo.rounded-pill,
.btn.rounded-pill {
    border-radius: 20px !important;
}

.badge.bg-pink:hover,
.btn-indigo:hover {
    background: linear-gradient(135deg, #9A3412 0%, #C2410C 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(194, 65, 12, 0.4) !important;
    color: #FFFFFF !important;
}

/* "Download" & Secondary Export Buttons */
.badge.bg-success.text-white.rounded-pill,
.badge.bg-yellow,
.btn-festive-gold {
    background: #FFFBEB !important;
    color: #92400E !important;
    border: 1.5px solid #FCD34D !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15) !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-festive-gold.rounded-pill {
    border-radius: 20px !important;
}

.badge.bg-success.text-white.rounded-pill:hover,
.badge.bg-yellow:hover {
    background: #FEF3C7 !important;
    color: #78350F !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25) !important;
}

/* Status Badges - Sacred Tulsi Green (Active / Delivered) */
.badge-success,
td .badge.bg-success,
td .badge-success {
    background-color: var(--festive-tulsi-bg) !important;
    color: var(--festive-tulsi) !important;
    border: 1px solid #86EFAC !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    letter-spacing: 0.02em;
}

/* Status Badges - Haldi Gold (Processed / Pending) */
.badge-warning,
td .badge.bg-warning,
td .badge-warning {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FDE68A !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
}

/* Status Badges - Sindoor Red (Inactive / Not Assigned) */
.badge-danger,
td .badge.bg-danger,
td .badge-danger {
    background-color: var(--festive-sindoor-bg) !important;
    color: var(--festive-sindoor) !important;
    border: 1px solid #FECACA !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
}

/* --------------------------------------------------------------------------
   PAGINATION - ROYAL MAROON & GOLD ACCENTS
   -------------------------------------------------------------------------- */
.pagination .page-item.active .page-link,
.btn-group.pagination .btn.btn-light.shadow-1 {
    background-color: #FFFFFF !important;
    border: 1px solid var(--festive-border) !important;
    color: #6B0E1B !important;
    font-weight: 600;
}

.pagination .page-item.active .page-link,
.pagination .btn.bg-indigo,
.pagination .btn.btn-indigo {
    background-color: #6B0E1B !important;
    border-color: #6B0E1B !important;
    color: #FFFDF9 !important;
}

/* Filter icon in header */
.header-elements .icon-filter4 {
    color: var(--festive-gold) !important;
    transition: transform 0.2s ease;
}

.header-elements .icon-filter4:hover {
    transform: scale(1.15);
    color: #FDE68A !important;
}

/* Action dropdown menu */
.list-icons-item {
    color: #78350F;
    padding: 4px 8px;
    border-radius: 4px;
}

.list-icons-item:hover {
    background-color: #FDF3E3;
    color: #9A3412;
}

/* --------------------------------------------------------------------------
   MODAL DIALOGS - ROYAL FESTIVE THEME
   -------------------------------------------------------------------------- */
.modal-content {
    border-radius: 12px !important;
    border: 1px solid var(--festive-border) !important;
    box-shadow: 0 15px 40px rgba(66, 6, 13, 0.25) !important;
    overflow: hidden !important;
    background-color: #FFFFFF !important;
}

.modal-header,
.modal-header.bg-indigo,
.modal-header-festive {
    background: linear-gradient(135deg, #5C0A14 0%, #7E121D 100%) !important;
    color: #FFFDF9 !important;
    border-bottom: 2.5px solid var(--festive-gold) !important;
    padding: 1rem 1.35rem !important;
}

.modal-header .modal-title {
    color: #FFFDF9 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.2px !important;
}

.modal-header .close {
    color: #FFFDF9 !important;
    opacity: 0.85 !important;
    text-shadow: none !important;
    font-size: 1.5rem !important;
    font-weight: 300 !important;
    transition: all 0.2s ease !important;
}

.modal-header .close:hover {
    color: #FDE68A !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem !important;
    background-color: #FFFFFF !important;
}

/* Form Controls & Inputs */
.form-group label {
    font-weight: 500 !important;
    color: #44403C !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
}

.form-control {
    border: 1px solid #D6D3D1 !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    color: #1C1917 !important;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.15s ease-in-out !important;
}

.form-control:focus {
    border-color: var(--festive-kesar) !important;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15) !important;
    outline: none !important;
}

/* Form Feedback (Input Icons) */
.form-group-feedback {
    position: relative;
}

.form-group-feedback-left .form-control {
    padding-left: 2.75rem !important;
}

.form-group-feedback-right .form-control {
    padding-right: 2.75rem !important;
}

.form-group-feedback-left .form-control-lg {
    padding-left: 3.25rem !important;
}

.form-group-feedback-right .form-control-lg {
    padding-right: 3.25rem !important;
}

.form-group-feedback-left .form-control-sm {
    padding-left: 2.5rem !important;
}

.form-group-feedback-right .form-control-sm {
    padding-right: 2.5rem !important;
}

.form-control-feedback {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    color: #78716C;
    z-index: 4;
}

.form-control-feedback:not(button):not(a) {
    pointer-events: none;
}

.form-group-feedback-left .form-control-feedback {
    left: 0;
    right: auto;
}

.form-group-feedback-right .form-control-feedback {
    right: 0;
    left: auto;
}

/* Radio & Checkbox Styling */
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--festive-kesar) !important;
    background-color: var(--festive-kesar) !important;
}

.custom-control-success .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--festive-tulsi) !important;
    background-color: var(--festive-tulsi) !important;
}

.custom-control-danger .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--festive-sindoor) !important;
    background-color: var(--festive-sindoor) !important;
}

.custom-control-label {
    font-size: 0.86rem !important;
    color: #292524 !important;
    cursor: pointer !important;
}

/* Modal / Form Submit Buttons */
.btn-festive-submit,
.modal-body .btn-indigo,
.modal-content button[type="submit"] {
    background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    border: 1px solid #FB923C !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    box-shadow: 0 3px 10px rgba(194, 65, 12, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-festive-submit:hover,
.modal-body .btn-indigo:hover,
.modal-content button[type="submit"]:hover {
    background: linear-gradient(135deg, #9A3412 0%, #C2410C 100%) !important;
    box-shadow: 0 5px 14px rgba(194, 65, 12, 0.45) !important;
    transform: translateY(-1px) !important;
    color: #FFFFFF !important;
}

/* Utilities */
.AgedItem {
    background-color: #FBDCDD;
}

.hide {
    display: none;
}

.clickable {
    cursor: pointer;
}

/* ==========================================================================
   FESTIVE QUANTITY STEPPER (Non-wrapping, bulletproof segmented control)
   ========================================================================== */
.festive-qty-stepper {
    display: inline-flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    height: 32px !important;
    border: 1.5px solid #D1D5DB !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    user-select: none;
}

.festive-qty-stepper .step-btn {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 100% !important;
    border: none !important;
    background: #F3F4F6 !important;
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.15s ease !important;
}

.festive-qty-stepper .step-btn:hover:not(:disabled) {
    background: #E5E7EB !important;
    color: #111827 !important;
}

.festive-qty-stepper .step-btn:active:not(:disabled) {
    background: #D1D5DB !important;
}

.festive-qty-stepper .step-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background: #F9FAFB !important;
}

.festive-qty-stepper .qty-val-input {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #E5E7EB !important;
    border-right: 1px solid #E5E7EB !important;
    background: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

.festive-qty-stepper .qty-val-input::-webkit-outer-spin-button,
.festive-qty-stepper .qty-val-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   PICKADATE CALENDAR IN MODALS (Responsive & Clean)
   ========================================================================== */
#ajaxModal .picker {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1060 !important;
}

#ajaxModal .picker__holder {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    background: #FFFFFF !important;
}

#ajaxModal .picker__frame {
    margin: 0 auto !important;
    max-width: 100% !important;
}

#ajaxModal .picker__table {
    width: 100% !important;
    margin-bottom: 8px !important;
}

#ajaxModal .picker__day--selected,
#ajaxModal .picker__day--selected:hover {
    background-color: var(--festive-kesar) !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
}

#ajaxModal .picker__day--highlighted {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
    border-radius: 6px !important;
}

#ajaxModal .picker__day--today {
    color: var(--festive-kesar) !important;
    font-weight: 700 !important;
}

#ajaxModal .picker__button--today,
#ajaxModal .picker__button--clear,
#ajaxModal .picker__button--close {
    color: var(--festive-maroon) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

/* Compact distribution contacts table styling */
.table-responsive .basic-datatable th,
.table-responsive .basic-datatable td {
    vertical-align: middle !important;
}

/* Card & Card Footer Clear Boundaries & Contrast */
.card:not([class*="bg-"]) {
    background-color: #FFFFFF !important;
}
.card {
    border: 1px solid var(--festive-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(66, 6, 13, 0.05) !important;
}

.card-footer {
    background-color: #FFFFFF !important;
    border-top: 1px solid var(--festive-border) !important;
    border-bottom: 1px solid var(--festive-border) !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    padding: 0.75rem 1.25rem !important;
}

/* Minimum width for '#' / Serial Number columns across the application */
.table th.col-hash,
.table td.col-hash,
.table th.col-sr,
.table td.col-sr,
th.col-hash,
td.col-hash {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 45px !important;
    white-space: nowrap !important;
    text-align: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Topbar Festival Switcher */
#topbar_festival_switcher {
    transition: all 0.2s ease-in-out;
}
#topbar_festival_switcher:hover,
#topbar_festival_switcher:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
    outline: none !important;
}
#topbar_festival_switcher option {
    color: #1E293B !important;
    background-color: #FFFFFF !important;
    padding: 6px 10px;
}

/* --------------------------------------------------------------------------
   GLOBAL: HIDE NUMBER INPUT SPINNER BUTTONS (UP/DOWN ARROWS)
   -------------------------------------------------------------------------- */
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* --------------------------------------------------------------------------
   DATATABLES PAGINATION & TOOLBAR POLISH
   -------------------------------------------------------------------------- */
.dataTables_paginate {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    float: right !important;
    text-align: right !important;
    gap: 4px !important;
}
.datatable-footer .dataTables_paginate {
    margin-left: auto !important;
    float: right !important;
    text-align: right !important;
}
.dataTables_paginate .paginate_button {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    text-decoration: none !important;
}
.dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: #F1F5F9 !important;
    color: #1E293B !important;
    border-color: #CBD5E1 !important;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #42060D 0%, #680D1A 100%) !important;
    color: #FFFDF9 !important;
    border-color: #42060D !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(66, 6, 13, 0.2) !important;
}
.dataTables_paginate .paginate_button.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    border-color: #E2E8F0 !important;
}
.dataTables_info {
    font-size: 0.8125rem !important;
    color: #64748B !important;
}

/* --------------------------------------------------------------------------
   PAGE LENGTH SELECTOR DROPDOWNS - ZERO VERTICAL PADDING (PREVENT CLIPPING)
   -------------------------------------------------------------------------- */
#company_page_length,
.table-page-length-select {
    height: 33px !important;
    min-height: 33px !important;
    line-height: 31px !important;
    padding: 0 22px 0 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    background-color: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 4px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 7px center !important;
    background-size: 9px 7px !important;
    cursor: pointer !important;
}

#company_page_length:hover,
.table-page-length-select:hover {
    border-color: #94A3B8 !important;
}

#company_page_length:focus,
.table-page-length-select:focus {
    border-color: #C2410C !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.2) !important;
}
