/* ==========================================================================
   FullCalendar Styles
   ========================================================================== */
.filament-fullcalendar {
    --fc-small-font-size: 0.875rem;
    --fc-border-color: rgba(0, 0, 0, 0.1);
    --fc-highlight-color: rgba(245, 158, 11, 0.08);
    --fc-today-bg-color: rgba(245, 158, 11, 0.08);
    --fc-button-text-color: #ffffff;
    --fc-button-bg-color: #f59e0b;
    --fc-button-border-color: transparent;
    --fc-button-hover-bg-color: #d97706;
    --fc-button-hover-border-color: transparent;
    --fc-button-active-bg-color: #b45309;
    --fc-button-active-border-color: transparent;
    --fc-event-bg-color: #f59e0b;
    --fc-event-border-color: #d97706;
    --fc-event-text-color: #ffffff;
}

html.dark .filament-fullcalendar {
    --fc-border-color: rgba(255, 255, 255, 0.1);
    --fc-today-bg-color: rgba(245, 158, 11, 0.15);
    --fc-button-text-color: #ffffff;
    --fc-button-bg-color: #d97706;
    --fc-button-border-color: transparent;
    --fc-button-hover-bg-color: #b45309;
    --fc-button-hover-border-color: transparent;
    --fc-button-active-bg-color: #92400e;
    --fc-button-active-border-color: transparent;
    --fc-event-bg-color: #d97706;
    --fc-event-border-color: #b45309;
    --fc-event-text-color: #ffffff;
}

.filament-fullcalendar .fc-button {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

/* ==========================================================================
   Light Mode Theme Contrast & Comfort (Pure Neutral / Zero Blue Tint)
   ========================================================================== */
html:not(.dark) {
    --fi-bg-page: #f4f4f5;
    --fi-bg-card: #ffffff;
    --fi-border: #e4e4e7;
}

html:not(.dark) body.fi-body,
html:not(.dark) .fi-layout,
html:not(.dark) .fi-main,
html:not(.dark) .fi-main-ctn {
    background-color: #f4f4f5 !important;
}

.fi-logo {
    display: inline-block;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

html:not(.dark) .fi-logo-dark {
    display: none !important;
}

html:not(.dark) .fi-logo-light {
    display: inline-block !important;
}

html.dark .fi-logo-light {
    display: none !important;
}

html.dark .fi-logo-dark {
    display: inline-block !important;
}

html:not(.dark) .fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e4e4e7 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark) .fi-sidebar {
    background-color: #ffffff !important;
    border-inline-end: 1px solid #e4e4e7 !important;
    box-shadow: 1px 0 3px 0 rgba(0, 0, 0, 0.02) !important;
}

html:not(.dark) .fi-sidebar-header {
    border-bottom: 1px solid #f4f4f5 !important;
}

html:not(.dark) .fi-section,
html:not(.dark) .fi-ta-ctn,
html:not(.dark) .fi-widget > div {
    background-color: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

html:not(.dark) .fi-ta-header-cell {
    background-color: #fafafa !important;
    border-bottom: 1px solid #e4e4e7 !important;
    color: #52525b !important;
    font-weight: 600 !important;
}

html:not(.dark) .fi-ta-row:hover td {
    background-color: #fafafa !important;
}

/* ==========================================================================
   Inputs, Controls & Form Elements Styling (Light & Dark Mode)
   ========================================================================== */
/* Light Mode Inputs */
html:not(.dark) .fi-input-wrp {
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease-in-out !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-width: 0px !important;
}

html:not(.dark) .fi-input-wrp:hover {
    border-color: #94a3b8 !important;
}

html:not(.dark) .fi-input-wrp:focus-within {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22) !important;
}

html:not(.dark) .fi-input-wrp input,
html:not(.dark) .fi-input-wrp select,
html:not(.dark) .fi-input-wrp textarea {
    color: #0f172a !important;
    font-weight: 500 !important;
}

html:not(.dark) .fi-input-wrp input::placeholder,
html:not(.dark) .fi-input-wrp textarea::placeholder {
    color: #94a3b8 !important;
}

html:not(.dark) .fi-input-wrp-label,
html:not(.dark) .fi-fo-field-wrp-label label {
    color: #1e293b !important;
    font-weight: 600 !important;
}

html:not(.dark) input[type="checkbox"],
html:not(.dark) .fi-checkbox-input {
    border: 1.5px solid #94a3b8 !important;
    background-color: #ffffff !important;
    border-radius: 0.25rem !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
}

html:not(.dark) input[type="checkbox"]:checked,
html:not(.dark) .fi-checkbox-input:checked {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
}

/* Dark Mode Inputs */
html.dark .fi-input-wrp {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-color: #18181b !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25) !important;
    transition: all 0.15s ease-in-out !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-width: 0px !important;
}

html.dark .fi-input-wrp:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

html.dark .fi-input-wrp:focus-within {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

html.dark .fi-input-wrp input,
html.dark .fi-input-wrp select,
html.dark .fi-input-wrp textarea {
    color: #f4f4f5 !important;
    background-color: transparent !important;
    font-weight: 500 !important;
}

html.dark .fi-input-wrp select option {
    background-color: #18181b !important;
    color: #f4f4f5 !important;
}

html.dark .fi-input-wrp input::placeholder,
html.dark .fi-input-wrp textarea::placeholder {
    color: #71717a !important;
}

html.dark .fi-input-wrp-label,
html.dark .fi-fo-field-wrp-label label,
html.dark .fi-fo-field-label-content,
html.dark .fi-fo-field-label,
:where(.dark, .dark *) .fi-fo-field-label-content {
    color: #f4f4f5 !important;
}

html.dark input[type="checkbox"],
html.dark .fi-checkbox-input {
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    background-color: #18181b !important;
    border-radius: 0.25rem !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
}

html.dark input[type="checkbox"]:checked,
html.dark .fi-checkbox-input:checked {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
}

/* Light Mode Login & Simple Page Card */
html:not(.dark) .fi-simple-main {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
}

/* Sidebar Group Buttons - Matching Filament Native Primary Button Theme */
/* Light Mode */
html:not(.dark) .fi-sidebar-group-btn {
    background-color: var(--primary-400) !important;
    color: var(--primary-950) !important;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

html:not(.dark) .fi-sidebar-group-btn:hover {
    background-color: var(--primary-300) !important;
    color: var(--primary-950) !important;
}

html:not(.dark) .fi-sidebar-group-label {
    color: var(--primary-950) !important;
    font-weight: 700 !important;
}

html:not(.dark) .fi-sidebar-group-btn svg,
html:not(.dark) .fi-sidebar-group-btn .fi-icon,
html:not(.dark) .fi-sidebar-group-collapse-btn,
html:not(.dark) .fi-sidebar-group-collapse-btn svg,
html:not(.dark) .fi-sidebar-group-collapse-btn .fi-icon {
    color: var(--primary-950) !important;
}

html:not(.dark) .fi-sidebar-group-collapse-btn:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Dark Mode Sidebar Group Buttons */
html.dark .fi-sidebar-group-btn {
    background-color: var(--primary-600) !important;
    color: var(--primary-950) !important;
}

html.dark .fi-sidebar-group-btn:hover {
    background-color: var(--primary-500) !important;
    color: var(--primary-950) !important;
}

html.dark .fi-sidebar-group-label {
    color: var(--primary-950) !important;
    font-weight: 700 !important;
}

html.dark .fi-sidebar-group-btn svg,
html.dark .fi-sidebar-group-btn .fi-icon,
html.dark .fi-sidebar-group-collapse-btn,
html.dark .fi-sidebar-group-collapse-btn svg,
html.dark .fi-sidebar-group-collapse-btn .fi-icon {
    color: var(--primary-950) !important;
}

html.dark .fi-sidebar-group-collapse-btn:hover {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Dashboard Custom Styles
   ========================================================================== */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    padding: 1rem 0;
}

.dashboard-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #f3f4f6;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: #9ca3af;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dashboard-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 4.25rem !important;
    padding: 1rem 1.25rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 0.75rem !important;
    text-align: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.15),
        0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 10px 15px -3px rgba(240, 154, 6, 0.3),
        0 4px 6px -4px rgba(240, 154, 6, 0.2) !important;
}

.dashboard-time-card {
    margin-top: 2rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    text-align: center;
    color: #9ca3af;
    backdrop-filter: blur(8px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    min-width: 260px;
}

.dashboard-time-clock {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-500);
    margin: 0.35rem 0;
    font-family: monospace;
    letter-spacing: 0.05em;
    direction: ltr;
}

.dashboard-time-date {
    font-size: 1rem;
    color: #9ca3af;
    direction: ltr;
}

:root:not(.dark) .dashboard-title {
    color: #111827;
}

:root:not(.dark) .dashboard-subtitle {
    color: #4b5563;
}

:root:not(.dark) .dashboard-time-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #4b5563;
}

/* ==========================================================================
   Statistics Page Warm & Harmonious Theme (Vanilla CSS - Framework Independent)
   ========================================================================== */
.stats-section-wrap {
    margin-bottom: 2.75rem !important;
    width: 100%;
}

.stats-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .stats-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stats-filter-card {
    background: #18181b;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}

:root:not(.dark) .stats-filter-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

.stats-print-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

:root:not(.dark) .stats-print-section {
    border-color: #e5e7eb;
}

.stats-print-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0.5rem;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.stats-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.stats-btn svg {
    width: 0.95rem;
    height: 0.95rem;
}

.stats-dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 0.35rem;
    width: 11.5rem;
    border-radius: 0.625rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.4),
        0 4px 6px -4px rgba(0, 0, 0, 0.3);
    background-color: #18181b;
    border: 1px solid #27272a;
    z-index: 50;
    overflow: hidden;
}

:root:not(.dark) .stats-dropdown-menu {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

.stats-dropdown-item {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    color: #e4e4e7;
    text-decoration: none;
    transition: background 0.15s;
}

:root:not(.dark) .stats-dropdown-item {
    color: #3f3f46;
}

.stats-dropdown-item:hover {
    background-color: #27272a;
}

:root:not(.dark) .stats-dropdown-item:hover {
    background-color: #f4f4f5;
}

.stats-btn-green {
    background-color: #10b981;
}
.stats-btn-green:hover {
    background-color: #059669;
}

.stats-btn-orange {
    background-color: #f59e0b;
}
.stats-btn-orange:hover {
    background-color: #d97706;
}

.stats-btn-gold {
    background-color: #d97706;
}
.stats-btn-gold:hover {
    background-color: #b45309;
}

.stats-btn-teal {
    background-color: #0d9488;
}
.stats-btn-teal:hover {
    background-color: #0f766e;
}

.stats-btn-purple {
    background-color: #8b5cf6;
}
.stats-btn-purple:hover {
    background-color: #7c3aed;
}

.stats-btn-red {
    background-color: #ef4444;
}
.stats-btn-red:hover {
    background-color: #dc2626;
}

/* Section Header Styles */
.stats-section-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

:root:not(.dark) .stats-section-head {
    border-bottom-color: #e5e7eb;
}

.stats-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    flex-shrink: 0;
}

.stats-section-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.stats-section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f9fafb;
    margin: 0;
}

:root:not(.dark) .stats-section-heading {
    color: #111827;
}

/* Filament Native Card Styling for Tables */
.fi-custom-table-card {
    background-color: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

:root:not(.dark) .fi-custom-table-card {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

.fi-custom-table-header {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9fafb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:root:not(.dark) .fi-custom-table-header {
    color: #111827;
    border-bottom-color: #e5e7eb;
    background-color: #f9fafb;
}

.fi-custom-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.fi-custom-table {
    width: 100%;
    text-align: right;
    border-collapse: collapse;
}

.fi-custom-table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

:root:not(.dark) .fi-custom-table th {
    color: #4b5563;
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
}

.fi-custom-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

:root:not(.dark) .fi-custom-table td {
    color: #1f2937;
    border-bottom-color: #f3f4f6;
}

.fi-custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

:root:not(.dark) .fi-custom-table tr:hover td {
    background: #f9fafb;
}

.fi-custom-table tr:last-child td {
    border-bottom: none;
}

.stat-val-revenue {
    color: #10b981 !important;
    font-weight: 600;
}

.stat-val-saved {
    color: #f59e0b !important;
    font-weight: 600;
}

.stat-val-bold {
    font-weight: 700;
    color: #f9fafb;
}

:root:not(.dark) .stat-val-bold {
    color: #111827;
}

.fi-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin: 0.15rem;
}

.fi-custom-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    gap: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.fi-custom-empty-state svg {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.6;
    color: #6b7280;
}

.stats-dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 0.35rem;
    width: 11.5rem;
    border-radius: 0.5rem;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.5),
        0 8px 10px -6px rgba(0, 0, 0, 0.3);
    background-color: #18181b;
    border: 1px solid #27272a;
    z-index: 50;
    overflow: hidden;
}

:root:not(.dark) .stats-dropdown-menu {
    background-color: #ffffff;
    border-color: #e5e7eb;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.stats-dropdown-item {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f4f4f5;
    text-decoration: none;
    transition: all 0.15s ease;
}

.stats-dropdown-item:hover {
    background-color: #27272a;
    color: #f59e0b;
}

:root:not(.dark) .stats-dropdown-item {
    color: #374151;
}

:root:not(.dark) .stats-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #d97706;
}

/* ==========================================================================
   Submit Pages Spacing (Appointment Submit & Service Invoice Submit)
   ========================================================================== */
.submit-page-form-wrapper {
    margin-bottom: 1.5rem !important;
}

.submit-page-table-wrapper {
    margin-top: 2rem !important;
    padding-top: 0.5rem !important;
}

/* ==========================================================================
   Navbar Shift Status Pill
   ========================================================================== */
.navbar-shift-container {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0.5rem !important;
    height: 100% !important;
}

.navbar-shift-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    height: 32px !important;
    max-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    gap: 7px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.navbar-shift-pill svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

.navbar-shift-pill-open {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #065f46 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.navbar-shift-pill-open:hover {
    background-color: rgba(16, 185, 129, 0.22) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

html.dark .navbar-shift-pill-open {
    background-color: rgba(6, 78, 59, 0.45) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

html.dark .navbar-shift-pill-open:hover {
    background-color: rgba(6, 78, 59, 0.7) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
}

.navbar-shift-pill-closed {
    background-color: rgba(244, 63, 94, 0.12) !important;
    color: #9f1239 !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
}

.navbar-shift-pill-closed:hover {
    background-color: rgba(244, 63, 94, 0.22) !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
}

html.dark .navbar-shift-pill-closed {
    background-color: rgba(136, 19, 55, 0.45) !important;
    color: #fda4af !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
}

html.dark .navbar-shift-pill-closed:hover {
    background-color: rgba(136, 19, 55, 0.7) !important;
    border-color: rgba(244, 63, 94, 0.6) !important;
}

.navbar-shift-dot {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   Submission Modal Summary Styling (Theme-Adaptive)
   ========================================================================== */
.submission-summary-wrap {
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 14px;
    direction: rtl;
    text-align: right;
    margin-bottom: 6px;
}
.sub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.sub-card {
    border-radius: 0.65rem;
    padding: 12px 14px;
    border: 1px solid var(--gray-200, #e4e4e7);
    background-color: var(--fi-bg-card, #ffffff);
    color: var(--gray-950, #09090b);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.sub-card-default {
    background-color: var(--fi-bg-card, #ffffff);
    border-color: var(--gray-200, #e4e4e7);
    color: var(--gray-950, #09090b);
}
.sub-card-blue, .sub-card-indigo, .sub-card-accent {
    background-color: color-mix(in srgb, var(--primary-500, #f59e0b) 6%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 22%, transparent);
    color: var(--primary-700, #b45309);
}
.sub-card-amber, .sub-card-primary {
    background-color: color-mix(in srgb, var(--primary-500, #f59e0b) 10%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 32%, transparent);
    color: var(--primary-700, #b45309);
}
.sub-card-emerald, .sub-card-success {
    background-color: color-mix(in srgb, var(--success-500, #10b981) 10%, transparent);
    border-color: color-mix(in srgb, var(--success-500, #10b981) 32%, transparent);
    color: var(--success-700, #047857);
}
.sub-card-title {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
}
.sub-card-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.sub-card-sub {
    font-size: 11px;
    opacity: 0.85;
}
.sub-table-card {
    border-radius: 0.65rem;
    border: 1px solid var(--gray-200, #e4e4e7);
    overflow: hidden;
    background: var(--fi-bg-card, #ffffff);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.sub-table-header {
    background: var(--gray-50, #fafafa);
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-900, #18181b);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200, #e4e4e7);
}
.sub-table-header-indigo, .sub-table-header-primary {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 10%, transparent);
    color: var(--primary-700, #b45309);
    border-bottom: 1px solid color-mix(in srgb, var(--primary-500, #f59e0b) 25%, transparent);
}
.sub-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.sub-badge-neutral {
    background: var(--gray-100, #f4f4f5);
    color: var(--gray-600, #52525b);
    border: 1px solid var(--gray-200, #e4e4e7);
}
.sub-badge-amber, .sub-badge-primary {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 14%, transparent);
    color: var(--primary-700, #b45309);
    border: 1px solid color-mix(in srgb, var(--primary-500, #f59e0b) 30%, transparent);
}
.sub-badge-indigo {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 12%, transparent);
    color: var(--primary-700, #b45309);
    border: 1px solid color-mix(in srgb, var(--primary-500, #f59e0b) 25%, transparent);
}
.sub-table-scroll {
    max-height: 180px;
    overflow-y: auto;
}
.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: right;
}
.sub-table th {
    background: var(--gray-50, #fafafa);
    padding: 8px 12px;
    font-weight: 700;
    color: var(--gray-600, #52525b);
    border-bottom: 1px solid var(--gray-200, #e4e4e7);
    white-space: nowrap;
}
.sub-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--gray-100, #f4f4f5);
    color: var(--gray-900, #18181b);
}
.sub-table tr:hover td {
    background: var(--gray-50, #fafafa);
}
.sub-table-doctor-share, .sub-table-amount {
    font-weight: 700;
    color: var(--success-600, #059669);
}
.sub-table-primary-share {
    font-weight: 700;
    color: var(--primary-600, #d97706);
}
.sub-prepaid-wrapper {
    border-radius: 0.65rem;
    border: 1px solid;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sub-prepaid-active {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 8%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 30%, transparent);
}
.sub-prepaid-empty {
    background: var(--fi-bg-card, #ffffff);
    border-color: var(--gray-200, #e4e4e7);
}
.sub-prepaid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sub-prepaid-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-900, #18181b);
}
.sub-prepaid-note {
    font-size: 11px;
    color: var(--primary-700, #b45309);
    line-height: 1.4;
    margin: 0;
}
.sub-prepaid-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 130px;
    overflow-y: auto;
    padding-top: 4px;
}
.sub-prepaid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--fi-bg-card, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary-500, #f59e0b) 25%, transparent);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--gray-900, #18181b);
}
.sub-prepaid-price {
    font-weight: 800;
    color: var(--primary-600, #d97706);
    display: block;
}
.sub-summary-totals {
    border-radius: 0.65rem;
    border: 1px solid var(--gray-200, #e4e4e7);
    background: var(--gray-50, #fafafa);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.sub-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-600, #52525b);
}
.sub-totals-row strong {
    color: var(--gray-950, #09090b);
    font-size: 13px;
}
.sub-totals-divider {
    height: 1px;
    background: var(--gray-200, #e4e4e7);
    margin: 2px 0;
}
.sub-doctor-dues-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
}
.sub-doctor-dues-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--success-700, #047857);
}
.sub-doctor-dues-val {
    font-size: 17px;
    font-weight: 900;
    color: var(--success-600, #059669);
}
.sub-permission-notice {
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.sub-perm-required {
    background: color-mix(in srgb, var(--danger-500, #ef4444) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger-500, #ef4444) 30%, transparent);
    color: var(--danger-700, #b91c1c);
}
.sub-perm-allowed {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-500, #f59e0b) 30%, transparent);
    color: var(--primary-700, #b45309);
}
.sub-payment-breakdown-title {
    font-size: 13px;
    font-weight: 700;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--gray-200, #e4e4e7);
    color: var(--gray-700, #374151);
}

/* Dark Mode Overrides (Seamlessly using Filament's Theme Tokens) */
html.dark .sub-card {
    background-color: var(--gray-900, #18181b);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--gray-100, #f4f4f5);
}
html.dark .sub-card-default {
    background-color: var(--gray-900, #18181b);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--gray-100, #f4f4f5);
}
html.dark .sub-card-blue, html.dark .sub-card-indigo, html.dark .sub-card-accent {
    background-color: color-mix(in srgb, var(--primary-500, #f59e0b) 10%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 25%, transparent);
    color: var(--primary-300, #fcd34d);
}
html.dark .sub-card-amber, html.dark .sub-card-primary {
    background-color: color-mix(in srgb, var(--primary-500, #f59e0b) 15%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 35%, transparent);
    color: var(--primary-300, #fcd34d);
}
html.dark .sub-card-emerald, html.dark .sub-card-success {
    background-color: color-mix(in srgb, var(--success-500, #10b981) 15%, transparent);
    border-color: color-mix(in srgb, var(--success-500, #10b981) 35%, transparent);
    color: var(--success-300, #6ee7b7);
}
html.dark .sub-table-card {
    background: var(--gray-900, #18181b);
    border-color: rgba(255, 255, 255, 0.12);
}
html.dark .sub-table-header {
    background: var(--gray-800, #202024);
    color: var(--gray-200, #e4e4e7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
html.dark .sub-table-header-indigo, html.dark .sub-table-header-primary {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 15%, transparent);
    color: var(--primary-300, #fcd34d);
    border-bottom-color: color-mix(in srgb, var(--primary-500, #f59e0b) 35%, transparent);
}
html.dark .sub-table th {
    background: var(--gray-800, #202024);
    color: var(--gray-400, #a1a1aa);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
html.dark .sub-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: var(--gray-100, #f4f4f5);
}
html.dark .sub-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}
html.dark .sub-table-doctor-share, html.dark .sub-table-amount {
    color: var(--success-400, #34d399);
}
html.dark .sub-table-primary-share {
    color: var(--primary-400, #fbbf24);
}
html.dark .sub-badge-neutral {
    background: var(--gray-800, #27272a);
    color: var(--gray-300, #d4d4d8);
    border-color: rgba(255, 255, 255, 0.12);
}
html.dark .sub-badge-amber, html.dark .sub-badge-primary {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 20%, transparent);
    color: var(--primary-300, #fcd34d);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 40%, transparent);
}
html.dark .sub-badge-indigo {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 18%, transparent);
    color: var(--primary-300, #fcd34d);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 35%, transparent);
}
html.dark .sub-prepaid-active {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 12%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 35%, transparent);
}
html.dark .sub-prepaid-empty {
    background: var(--gray-900, #18181b);
    border-color: rgba(255, 255, 255, 0.12);
}
html.dark .sub-prepaid-title {
    color: var(--gray-100, #f4f4f5);
}
html.dark .sub-prepaid-note {
    color: var(--primary-300, #fcd34d);
}
html.dark .sub-prepaid-row {
    background: var(--gray-800, #202024);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 30%, transparent);
    color: var(--gray-100, #f4f4f5);
}
html.dark .sub-prepaid-price {
    color: var(--primary-400, #fbbf24);
}
html.dark .sub-summary-totals {
    background: var(--gray-900, #18181b);
    border-color: rgba(255, 255, 255, 0.12);
}
html.dark .sub-totals-row {
    color: var(--gray-400, #a1a1aa);
}
html.dark .sub-totals-row strong {
    color: var(--gray-100, #f4f4f5);
}
html.dark .sub-totals-divider {
    background: rgba(255, 255, 255, 0.1);
}
html.dark .sub-doctor-dues-label {
    color: var(--success-400, #34d399);
}
html.dark .sub-doctor-dues-val {
    color: var(--success-400, #34d399);
}
html.dark .sub-perm-required {
    background: color-mix(in srgb, var(--danger-500, #ef4444) 15%, transparent);
    border-color: color-mix(in srgb, var(--danger-500, #ef4444) 35%, transparent);
    color: var(--danger-300, #fca5a5);
}
html.dark .sub-perm-allowed {
    background: color-mix(in srgb, var(--primary-500, #f59e0b) 15%, transparent);
    border-color: color-mix(in srgb, var(--primary-500, #f59e0b) 35%, transparent);
    color: var(--primary-300, #fcd34d);
}
html.dark .sub-payment-breakdown-title,
:where(.dark, .dark *) .sub-payment-breakdown-title,
html.dark .sub-payment-title-text,
:where(.dark, .dark *) .sub-payment-title-text {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--primary-400, #fbbf24) !important;
}




