/* ==========================================================================
   DR. M. U. RABBANI - OFFICIAL CARDIOLOGY PRACTICE DESIGN SYSTEM
   Matching https://drmurabbani.com/
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --green-primary: #064d43;
    --green-dark: #032f28;
    --green-darker: #02201b;
    --green-deep: #011814;
    --green-accent: #0fa386;
    --green-light: #0d7665;
    --green-mint: #e7f3ef;
    --green-glow: rgba(15, 163, 134, 0.28);
    --line: rgba(255, 255, 255, 0.22);
    --line-subtle: rgba(255, 255, 255, 0.12);
    --ink: #0f172a;
    --muted: #64748b;
    --text-light: #e2e8f0;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    --card-shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.4);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
}

body {
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--ink);
    background: #02201b;
    background-image: 
        radial-gradient(circle at 12% 18%, rgba(15, 163, 134, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 88% 82%, rgba(6, 77, 67, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, #032721 0%, #011713 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ==========================================================================
   SITE HEADER - EXACT MATCH TO drmurabbani.com (Height: 68px, Bg: #072822)
   ========================================================================== */
.site-header {
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #072822;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    text-decoration: none;
    color: #ffffff;
    padding-right: 12px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.95;
    color: #ffffff;
}

.brand-logo-img {
    height: 35px;
    width: auto;
    max-width: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 0 16px;
}

.desktop-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: all 0.18s ease;
}

.desktop-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.desktop-nav .nav-link.active {
    color: #ffffff;
    background: rgba(15, 163, 134, 0.28);
    font-weight: 600;
}

.nav-chevron {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.8;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-location-pill {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 6px 18px;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.header-phone-link {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: color 0.18s ease;
}

.header-phone-link:hover {
    color: #34d399;
}

.btn-header-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #072822 !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 20px;
    border-radius: 7px;
    white-space: nowrap;
    letter-spacing: -0.1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-header-appointment:hover {
    background: #f0fdf4;
    color: #043831 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.staff-portal-btn, .staff-login-btn, .staff-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.staff-portal-btn:hover, .staff-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.staff-logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 7px 12px;
}

.staff-logout-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.mobile-specialty {
    display: none;
}

.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
}

.mobile-toggle-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #05231e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    padding: 12px 20px 20px;
    z-index: 999;
}

.mobile-dropdown-menu.show {
    display: flex;
}

.mobile-dropdown-menu a {
    color: var(--white);
    font-size: 14.5px;
    font-weight: 500;
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #34d399;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
    .header-inner {
        padding: 0 18px;
        gap: 12px;
    }
    .desktop-nav {
        margin-left: 10px;
        gap: 4px;
    }
    .desktop-nav .nav-link {
        padding: 6px 11px;
        font-size: 13px;
    }
    .header-location-pill {
        display: none !important;
    }
    .header-right {
        gap: 12px;
    }
    .btn-header-appointment {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .header-inner {
        padding: 0 16px;
        gap: 10px;
    }
    .desktop-nav {
        margin-left: 8px;
        gap: 2px;
    }
    .desktop-nav .nav-link {
        padding: 6px 9px;
        font-size: 12.5px;
    }
    .brand-text {
        font-size: 1.12rem;
    }
    .header-right {
        gap: 10px;
    }
    .btn-header-appointment {
        padding: 7px 14px;
        font-size: 12.5px;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        height: 62px;
    }
    .mobile-dropdown-menu {
        top: 62px;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .btn-header-appointment {
        padding: 7px 14px;
        font-size: 12.5px;
    }
    .brand-text {
        font-size: 1.1rem;
    }
    .brand-logo-img {
        height: 30px;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        height: 60px;
    }
    .mobile-dropdown-menu {
        top: 60px;
    }
    .header-inner {
        padding: 0 14px;
    }
    .brand {
        gap: 8px;
    }
    .brand-logo-img {
        height: 28px;
    }
    .brand-text {
        font-size: 1rem;
    }
    .header-right {
        gap: 8px;
    }
    .btn-header-appointment {
        padding: 6px 11px;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   PRIMARY PAGE LAYOUT & CONTAINERS (Supports both layout structures)
   ========================================================================== */
.booking-section-wrapper,
.booking-portal-page {
    padding: 4px 0 20px !important;
    min-height: calc(100vh - 68px);
}

.booking-page-container,
.booking-section-wrapper .container-fluid {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 32px);
}

/* Header bar above form */
.portal-header-bar {
    background: rgba(4, 52, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.portal-breadcrumb {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}

.portal-breadcrumb a {
    color: #34d399;
}

.portal-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.portal-breadcrumb .sep {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.4);
}

.portal-breadcrumb .current {
    color: #ffffff;
    font-weight: 600;
}

.portal-page-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
}

.portal-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #6ee7b7;
    white-space: nowrap;
}

.pulse-green-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   NAVIGATION TAB SWITCHERS: BOOK vs TRACK
   ========================================================================== */
.booking-tab-switcher,
.booking-tabs-nav {
    display: inline-flex;
    gap: 4px;
    background: rgba(3, 40, 33, 0.9);
    padding: 2px 4px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    margin-bottom: 6px !important;
}

.booking-tabs-nav {
    display: flex;
    border-radius: 12px;
    margin-bottom: 12px;
}

.tab-btn,
.tab-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.booking-tabs-nav .tab-nav-btn {
    flex: 1;
    border-radius: 8px;
    padding: 8px 14px;
}

.tab-btn:hover,
.tab-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active,
.tab-nav-btn.active {
    background: #ffffff;
    color: #064d43;
    border-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   MAIN BOOKING CARD (White Executive Full-Width Card)
   ========================================================================== */
.booking-card-main,
.booking-main-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: clamp(12px, 1.5vw, 18px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    width: 100%;
}

.booking-card-main::before,
.booking-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #064d43 0%, #0fa386 50%, #34d399 100%);
}

/* ==========================================================================
   STEP HEADINGS & BADGES (Step 1, 2, 3)
   ========================================================================== */
.form-step-heading,
.step-badge-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    font-weight: 700;
    color: #064d43;
    letter-spacing: -0.2px;
}

.step-num-badge,
.step-badge-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #064d43, #0fa386);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(6, 77, 67, 0.25);
}

.step-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #064d43;
    margin: 0 0 2px;
    line-height: 1.25;
}

.step-sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   STEP 1: CARDIOLOGY REASON / SPECIALTY CARDS
   ========================================================================== */
.service-options-grid,
.specialty-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.service-radio-item,
.spec-card-item {
    position: relative;
}

.service-radio-input,
.spec-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-radio-label,
.spec-card-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.service-radio-label:hover,
.spec-card-label:hover {
    border-color: #0fa386;
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 163, 134, 0.12);
}

.service-radio-input:checked + .service-radio-label,
.spec-radio-input:checked + .spec-card-label {
    background: #e7f3ef !important;
    border-color: #064d43 !important;
    box-shadow: 0 6px 20px rgba(6, 77, 67, 0.16);
}

.service-radio-icon,
.spec-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0fa386;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-radio-input:checked + .service-radio-label .service-radio-icon,
.spec-radio-input:checked + .spec-card-label .spec-icon-box {
    background: #064d43 !important;
    color: #ffffff !important;
    border-color: #064d43 !important;
}

.service-radio-name,
.spec-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 3px;
}

.service-radio-desc,
.spec-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.spec-check-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: var(--transition);
}

.spec-radio-input:checked + .spec-card-label .spec-check-indicator {
    background: #064d43;
    border-color: #064d43;
    color: #ffffff;
}

/* ==========================================================================
   STEP 2: DATE SELECTOR & QUICK CHIPS
   ========================================================================== */
.date-selector-container,
.date-picker-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.quick-dates-row,
.quick-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.quick-date-btn,
.quick-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    transition: var(--transition);
    cursor: pointer;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.btn-day-label {
    font-weight: 700;
}

.btn-day-date {
    font-size: 11px;
    opacity: 0.75;
}

.quick-date-btn.active .btn-day-date {
    opacity: 0.95;
    color: #d1fae5;
}

.quick-date-btn:hover,
.quick-chip-btn:hover {
    border-color: #064d43;
    color: #064d43;
    background: #ecfdf5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(6, 77, 67, 0.12);
}

.quick-date-btn.active,
.quick-chip-btn.active {
    background: linear-gradient(135deg, #064d43 0%, #0d7665 100%) !important;
    color: #ffffff !important;
    border-color: #064d43 !important;
    box-shadow: 0 4px 14px rgba(6, 77, 67, 0.35);
}

.quick-date-btn.is-off,
.quick-chip-btn.is-off {
    border-color: #fca5a5 !important;
    background: #fff5f5 !important;
    color: #b91c1c !important;
}

.quick-date-btn.is-off:hover,
.quick-chip-btn.is-off:hover {
    border-color: #ef4444 !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.quick-date-btn.is-off.active,
.quick-chip-btn.is-off.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* ==========================================================================
   PROFESSIONAL CLINIC INTERACTIVE CALENDAR
   ========================================================================== */
.calendar-panel-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.calendar-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: #0f172a;
    border-color: #cbd5e1;
    background: #ffffff;
    transition: all 0.2s ease;
}

.cal-nav-btn:hover {
    background: #ecfdf5;
    color: #064d43;
    border-color: #064d43;
}

.cal-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f1f5f9;
}

.cal-month-year-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.calendar-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 6px 0;
    font-size: 11px;
    letter-spacing: 0.4px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 6px 0;
}

.cal-day-cell {
    min-height: 36px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    user-select: none;
    border: 1px solid transparent;
    background: transparent;
}

.cal-day-cell.is-other-month {
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.35;
}

.cal-day-cell.is-past {
    color: #cbd5e1;
    cursor: not-allowed;
    background: transparent;
    pointer-events: none;
    text-decoration: line-through;
    opacity: 0.4;
}

.cal-day-cell.is-today {
    border-color: #064d43;
    font-weight: 700;
}

.cal-day-cell:hover:not(.is-past):not(.is-other-month) {
    background: #ecfdf5;
    color: #064d43;
    border-color: #064d43;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(6, 77, 67, 0.12);
}

.cal-day-cell.is-selected {
    background: linear-gradient(135deg, #064d43 0%, #0d7665 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: #064d43 !important;
    box-shadow: 0 4px 12px rgba(6, 77, 67, 0.35) !important;
    transform: translateY(-1px);
}

.cal-day-cell.is-leave {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.cal-day-cell.is-leave:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.cal-day-cell.is-leave.is-selected {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.cal-day-num {
    line-height: 1;
}

.cal-day-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-top: 2px;
}

.cal-day-cell.is-open .cal-day-dot {
    background: #10b981;
}

.cal-day-cell.is-leave .cal-day-dot {
    background: #ef4444;
}

.cal-day-cell.is-selected .cal-day-dot {
    background: #ffffff;
}

.legend-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

.legend-indicator.selected {
    background: #064d43;
}

.legend-indicator.open {
    background: #10b981;
}

.legend-indicator.closed {
    background: #ef4444;
}

.selected-date-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.selected-slot-preview-card .slot-preview-icon {
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#btnOpenSlotModal {
    gap: 8px !important;
}

#btnOpenSlotModal i:first-child {
    margin-right: 6px;
}

#btnOpenSlotModal i:last-child {
    margin-left: 6px;
}

/* ==========================================================================
   NO SLOTS AVAILABLE CARD
   ========================================================================== */
.no-slot-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   OPD CLOSED / DOCTOR OFF FULL-WIDTH EXECUTIVE CARD
   ========================================================================== */
.opd-closed-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    background: linear-gradient(145deg, #fffafa 0%, #fff1f2 100%);
    border: 1.5px solid #fecdd3;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.07);
    margin: 4px 0;
}

.opd-closed-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffe4e6;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.15);
}

.opd-closed-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #9f1239;
    margin-bottom: 8px;
}

.opd-closed-reason {
    font-size: 0.95rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.opd-closed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.btn-switch-open-day {
    background: #064d43;
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 77, 67, 0.25);
}

.btn-switch-open-day:hover {
    background: #0fa386;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 77, 67, 0.35);
}

.opd-closed-emergency-note {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
}

/* ==========================================================================
   STEP 2: LIVE CONSULTATION SLOTS
   ========================================================================== */
.slots-container-box,
.slots-section-wrapper {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
}

.slots-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.slot-legend,
.slot-legend-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

.legend-dot.avail {
    background: #10b981;
}

.legend-dot.lock {
    background: #94a3b8;
}

/* OPD Shift Session Tabs (Morning & Evening) */
/* OPD Shift Session Tabs (Morning & Evening Equal 50/50 Width) */
.opd-shift-nav-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    width: 100%;
}

.opd-shift-pills {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    list-style: none;
    padding-left: 0;
    width: 100%;
}

.shift-tab-link {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.shift-tab-link:hover {
    border-color: #064d43;
    background: #f8fafc;
    transform: translateY(-1px);
}

.shift-tab-link.active {
    background: #ffffff !important;
    border-color: #064d43 !important;
    box-shadow: 0 4px 14px rgba(6, 77, 67, 0.22) !important;
}

.shift-tab-link[data-shift="Morning"].active {
    border: 2px solid #d97706 !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.18) !important;
}

.shift-tab-link[data-shift="Evening"].active {
    border: 2px solid #2563eb !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18) !important;
}

.shift-tab-main {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.2;
}

.shift-tab-link[data-shift="Morning"].active .shift-tab-main {
    color: #78350f !important;
}

.shift-tab-link[data-shift="Evening"].active .shift-tab-main {
    color: #1e3a8a !important;
}

.shift-empty-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

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

@media (max-width: 576px) {
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
}

.time-slot-item {
    position: relative;
    width: 100%;
}

.time-slot-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-slot-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
}

.time-slot-label:hover {
    border-color: #064d43;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 77, 67, 0.12);
}

.slot-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
}

.slot-time-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-check-icon {
    font-size: 14px;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.slot-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    margin-top: 6px;
}

.slot-token-pill {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.slot-shift-tag {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Selected state */
.time-slot-radio:checked + .time-slot-label {
    background: linear-gradient(135deg, #064d43 0%, #0d7665 100%) !important;
    border-color: #064d43 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(6, 77, 67, 0.3) !important;
    transform: translateY(-2px);
}

.time-slot-radio:checked + .time-slot-label .slot-time-text {
    color: #ffffff !important;
}

.time-slot-radio:checked + .time-slot-label .slot-time-text i {
    color: #a7f3d0 !important;
}

.time-slot-radio:checked + .time-slot-label .slot-check-icon {
    color: #ffffff !important;
}

.time-slot-radio:checked + .time-slot-label .slot-token-pill {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.time-slot-radio:checked + .time-slot-label .slot-shift-tag {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Freezed / Booked state */
.time-slot-item.freezed .time-slot-label {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.time-slot-item.freezed .slot-time-text {
    color: #64748b;
}

.time-slot-item.freezed .slot-shift-tag {
    color: #94a3b8;
}

/* ==========================================================================
   STEP 3: PATIENT INFORMATION FIELDS
   ========================================================================== */
.form-label-custom,
.modern-label {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 3px;
    display: block;
}

.form-control-custom,
.modern-input,
.modern-textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-control-custom:focus,
.modern-input:focus,
.modern-textarea:focus {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.form-control-custom::placeholder,
.modern-input::placeholder,
.modern-textarea::placeholder {
    color: #64748b !important;
    font-weight: 400;
}

.input-icon-wrapper {
    position: relative;
}

.input-left-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0fa386;
    font-size: 14px;
    pointer-events: none;
}

.modern-input.with-icon {
    padding-left: 42px;
}

/* ==========================================================================
   CONFIRM BOOKING CTA BUTTON
   ========================================================================== */
.submit-booking-btn,
.btn-confirm-booking-suite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: -0.2px;
}

.submit-booking-btn:hover,
.btn-confirm-booking-suite:hover {
    background: linear-gradient(135deg, #047857 0%, #064d43 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.submit-booking-btn:active,
.btn-confirm-booking-suite:active {
    transform: translateY(0);
}

/* ==========================================================================
   PRIMARY CUSTOM BUTTON (COMPACT INLINE ACTION BUTTON)
   ========================================================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, #064d43 0%, #0d7665 100%) !important;
    color: #ffffff !important;
    border: 1px solid #064d43 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    box-shadow: 0 2px 6px rgba(6, 77, 67, 0.2) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    width: auto !important;
    padding: 6px 14px !important;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #043730 0%, #064d43 100%) !important;
    border-color: #043730 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(6, 77, 67, 0.3) !important;
    color: #ffffff !important;
}

.btn-primary-custom:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   STAFF PORTAL LOGIN SUBMIT BUTTON (FULL WIDTH)
   ========================================================================== */
.btn-login-submit {
    background: linear-gradient(135deg, #064d43 0%, #0fa386 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 8px 24px rgba(6, 77, 67, 0.35) !important;
    transition: all 0.22s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    width: 100% !important;
    padding: 14px 20px !important;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #032f28 0%, #0d8a71 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(6, 77, 67, 0.45) !important;
    color: #ffffff !important;
}

.btn-login-submit:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   LEFT COLUMN STYLES (Used when 2-column suite layout is active)
   ========================================================================== */
.sticky-doctor-sidebar {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.doc-sidebar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #064d43, #0fa386);
}

.doc-sidebar-avatar {
    width: 78px;
    height: 96px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.doc-sidebar-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #064d43;
    line-height: 1.2;
    margin-bottom: 2px;
}

.doc-sidebar-creds {
    font-size: 0.76rem;
    font-weight: 600;
    color: #0fa386;
    margin-bottom: 4px;
    line-height: 1.35;
}

.doc-sidebar-post {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.doc-sidebar-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.35;
}

.meta-item i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Live Booking Summary Card */
.live-summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1.5px solid #0fa386;
    position: relative;
}

.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.summary-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sum-label {
    color: #64748b;
    font-weight: 500;
}

.sum-val {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    max-width: 65%;
}

.summary-footer-guarantee {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 9px 12px;
    margin-top: 14px;
    font-size: 11.5px;
    color: #166534;
    line-height: 1.4;
}

/* Clinic Hours Card */
.clinic-hours-sidebar-card {
    background: rgba(4, 52, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.clinic-hours-sidebar-card .text-dark {
    color: #ffffff !important;
}

.timing-strip {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timing-strip strong {
    color: #6ee7b7;
}

/* ==========================================================================
   BOTTOM CLINIC INFO STRIP (OPD Timings, Clinic Address, Notice)
   ========================================================================== */
.clinic-info-strip {
    margin-top: 40px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(4, 52, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

.info-col-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 163, 134, 0.2);
    border: 1px solid rgba(15, 163, 134, 0.4);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-heading {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.info-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

/* ==========================================================================
   TAB PANE 2: TRACK / CHECK EXISTING APPOINTMENT
   ========================================================================== */
.track-booking-box,
#trackPane.booking-card-main,
#trackPane.booking-main-card {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(24px, 3.5vw, 40px);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.track-header-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e7f3ef;
    color: #064d43;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.track-search-input-wrap,
.track-search-bar {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.track-search-input {
    flex: 1;
    min-width: 260px;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.track-search-input:focus {
    border-color: #0fa386;
    box-shadow: 0 0 0 3px rgba(15, 163, 134, 0.2);
}

.btn-track-submit,
.btn-track-submit-action {
    height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    font-weight: 700;
    background: #064d43;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-track-submit:hover,
.btn-track-submit-action:hover {
    background: #0fa386;
}

/* ==========================================================================
   OFFICIAL DIGITAL TOKEN SLIP & MODAL
   ========================================================================== */
.modal-content-custom {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.opd-token-slip {
    background: #ffffff;
    border: 2px dashed #0fa386;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    margin-top: 14px;
}

.slip-header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.token-big-badge-box {
    background: linear-gradient(135deg, #064d43, #0fa386);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.token-big-badge-box .token-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.token-big-badge-box .token-val {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.slip-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.slip-detail-row:last-child {
    border-bottom: none;
}

.slip-detail-label {
    color: #64748b;
    font-weight: 500;
}

.slip-detail-val {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    max-width: 65%;
}

.slip-guidelines-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 14px;
    font-size: 11.5px;
    color: #166534;
    line-height: 1.45;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WhatsApp, Phone Call, Back to Top)
   ========================================================================== */
.floating-quick-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.fab-btn.fab-whatsapp {
    background: #25d366;
}

.fab-btn.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.fab-btn.fab-call {
    background: #0fa386;
}

.fab-btn.fab-call:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(15, 163, 134, 0.45);
}

.fab-btn.fab-top {
    background: #0f172a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-btn.fab-top.show {
    opacity: 1;
    pointer-events: auto;
}

.fab-btn.fab-top:hover {
    transform: scale(1.1);
    background: #064d43;
}

/* ==========================================================================
   OFFICIAL SITE FOOTER
   ========================================================================== */
.site-footer {
    background: #011512;
    border-top: 1px solid var(--line);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0 20px;
    font-size: 13px;
}

.footer-brand-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12.5px;
}

.footer-nav-links a:hover {
    color: #34d399;
}

.footer-bottom-line {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

/* ==========================================================================
   FLOATING TOASTER NOTIFICATION SYSTEM
   ========================================================================== */
.custom-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-toast {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 460px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #043831;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.custom-toast.toast-success {
    background: #022b24 !important;
    border-color: #10b981 !important;
    box-shadow: 0 16px 45px rgba(16, 185, 129, 0.35);
}

.custom-toast.toast-success .toast-icon-wrap {
    color: #10b981;
}

.custom-toast.toast-error {
    background: #2b0b0b !important;
    border-color: #ef4444 !important;
    box-shadow: 0 16px 45px rgba(239, 68, 68, 0.35);
}

.custom-toast.toast-error .toast-icon-wrap {
    color: #ef4444;
}

.toast-icon-wrap {
    font-size: 1.6rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content-wrap {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.toast-message {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

.toast-close-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .service-options-grid,
    .specialty-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LAPTOP, TABLET & MOBILE RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .header-inner {
        padding: 0 14px;
    }
    .desktop-nav .nav-link {
        padding: 0 8px;
        font-size: 11px;
    }
    .header-right .wait {
        display: none !important;
    }
    .header-right .phone {
        padding: 0 10px;
        font-size: 11px;
    }
    .appointment-btn {
        padding: 0 14px;
        font-size: 11px;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        height: 54px;
    }
    .header-inner {
        padding: 0 12px;
    }
    .header-right .wait,
    .header-right .phone {
        display: none !important;
    }
    .appointment-btn {
        padding: 0 14px;
        font-size: 11.5px;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        height: 52px;
    }
    
    .mobile-specialty {
        display: block;
    }
    
    .mobile-toggle-btn {
        display: flex;
    }
    
    .booking-section-wrapper,
    .booking-portal-page {
        padding: 6px 0 24px !important;
    }
    
    .booking-card-main,
    .booking-main-card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }
    
    .booking-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .date-selector-container {
        padding: 8px 10px !important;
    }

    .quick-dates-row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .quick-dates-row::-webkit-scrollbar {
        display: none;
    }

    .quick-date-btn {
        flex-shrink: 0;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .opd-shift-pills {
        gap: 4px !important;
    }

    .shift-tab-link {
        padding: 8px 10px !important;
    }
    
    .shift-tab-main {
        font-size: 12px !important;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .time-slot-label {
        padding: 8px 10px !important;
        min-height: 48px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        text-align: center;
    }

    .slot-time-text {
        font-size: 12px !important;
    }

    .slot-token-badge {
        margin-left: 0 !important;
    }

    .booking-tab-switcher,
    .booking-tabs-nav {
        width: 100%;
        display: flex;
    }
    
    .tab-btn,
    .tab-nav-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .submit-booking-btn,
    .btn-confirm-booking-suite {
        width: 100% !important;
        padding: 0 16px !important;
        font-size: 0.95rem !important;
        min-height: 46px !important;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: 1fr !important;
    }
    .time-slot-label {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
    }
}

/* ==========================================================================
   OFFICIAL DIGITAL OPD TOKEN SLIP - CLEAN PRINT STYLES
   ========================================================================== */
@media print {
    /* 1. Reset page background to pure white */
    html, body {
        background: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 2. Hide everything on the page by default */
    body * {
        visibility: hidden !important;
    }

    /* 3. Make ONLY the printable token slip and all its contents visible */
    #printableTokenSlip,
    #printableTokenSlip * {
        visibility: visible !important;
    }

    /* 4. Position the token slip centered at the top of the printed page */
    #printableTokenSlip {
        position: absolute !important;
        left: 50% !important;
        top: 20px !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 620px !important;
        padding: 24px 28px !important;
        margin: 0 !important;
        border: 2px solid #064d43 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .slip-header-brand {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 2px solid #064d43 !important;
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
    }

    .slip-header-brand .fs-6 {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #064d43 !important;
    }

    .slip-header-brand .badge {
        border: 1.5px solid #10b981 !important;
        color: #065f46 !important;
        background: #ecfdf5 !important;
        font-weight: 700 !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .token-big-badge-box {
        background: #064d43 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border-radius: 8px !important;
        padding: 16px !important;
        text-align: center !important;
        margin-bottom: 18px !important;
    }

    .token-big-badge-box .token-label {
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        color: #e2e8f0 !important;
        display: block !important;
    }

    .token-big-badge-box .token-val {
        font-size: 2.6rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.1 !important;
        margin: 4px 0 !important;
    }

    .token-big-badge-box strong {
        color: #34d399 !important;
    }

    .slip-detail-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 13.5px !important;
    }

    .slip-detail-label {
        color: #475569 !important;
        font-weight: 600 !important;
    }

    .slip-detail-val {
        color: #0f172a !important;
        font-weight: 700 !important;
        text-align: right !important;
    }

    .slip-detail-val .badge {
        background: #dcfce7 !important;
        color: #166534 !important;
        border: 1px solid #86efac !important;
        padding: 3px 8px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .slip-guidelines-box {
        background: #f0fdf4 !important;
        border: 1px solid #bbf7d0 !important;
        border-radius: 8px !important;
        padding: 12px 14px !important;
        margin-top: 16px !important;
        font-size: 11.5px !important;
        color: #166534 !important;
        line-height: 1.45 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Print styling when printing Admin Portal OPD list */
    body.portal-body * {
        visibility: visible !important;
    }

    body.portal-body .site-header,
    body.portal-body .table-control-toolbar,
    body.portal-body .dashboard-table-footer,
    body.portal-body .btn,
    body.portal-body #dashboardTabs,
    body.portal-body .dropdown,
    body.portal-body .alert {
        display: none !important;
    }

    body.portal-body .admin-dashboard-container {
        padding: 0 !important;
        background: #ffffff !important;
    }

    @page {
        size: A4 portrait;
        margin: 10mm;
    }
}

/* ==========================================================================
   CARDIOLOGY STAFF / ADMIN PORTAL DESIGN SYSTEM
   Professional Hospital & Clinical Dashboard Theme
   ========================================================================== */

/* Body override for Staff Portal & Auth */
body.portal-body {
    background: #f1f5f9 !important;
    background-image: none !important;
    color: #1e293b !important;
}

/* ==========================================================================
   PORTAL SIDEBAR & LAYOUT STYLES
   ========================================================================== */
.portal-layout-wrapper {
    display: flex;
    min-height: calc(100vh - 58px);
    background: #f1f5f9;
    position: relative;
    width: 100%;
}

.portal-sidebar {
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    overflow: hidden;
    transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.24s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-sidebar .sidebar-header,
.portal-sidebar .sidebar-user-card,
.portal-sidebar .sidebar-footer {
    flex-shrink: 0;
}

/* Sidebar Navigation Items - Smooth Interactive Scroller */
.sidebar-nav-container {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto;
    min-height: 0; /* Crucial for flex child to shrink & trigger scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.sidebar-nav-container::-webkit-scrollbar {
    width: 6px;
}
.sidebar-nav-container::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}
.sidebar-nav-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.sidebar-nav-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================
   MINIMIZED / COLLAPSED SIDEBAR (ICON-ONLY MODE)
   ========================================================== */
.portal-sidebar.collapsed {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
}

.portal-sidebar.collapsed .sidebar-header {
    padding: 12px 6px !important;
    justify-content: center !important;
    position: relative;
}

.portal-sidebar.collapsed .sidebar-brand-text,
.portal-sidebar.collapsed .sidebar-section-title,
.portal-sidebar.collapsed .sidebar-user-details,
.portal-sidebar.collapsed .sidebar-pwd-text,
.portal-sidebar.collapsed .sidebar-link-text,
.portal-sidebar.collapsed .sidebar-badge,
.portal-sidebar.collapsed .sidebar-footer-expanded {
    display: none !important;
}

.portal-sidebar.collapsed .sidebar-brand-icon {
    margin: 0 auto;
}

.portal-sidebar.collapsed .sidebar-user-card {
    padding: 8px 4px !important;
    margin: 6px 4px !important;
    background: transparent !important;
    border: none !important;
}

.portal-sidebar.collapsed .user-avatar-circle {
    margin: 0 auto !important;
}

.portal-sidebar.collapsed .sidebar-pwd-btn {
    padding: 6px 0 !important;
    width: 100% !important;
    font-size: 0.8rem !important;
}

.portal-sidebar.collapsed .sidebar-pwd-btn i {
    margin: 0 !important;
}

.portal-sidebar.collapsed .sidebar-nav-container {
    padding: 6px 6px !important;
}

.portal-sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding: 11px 0 !important;
    margin-bottom: 3px;
    text-align: center !important;
}

.portal-sidebar.collapsed .nav-link i,
.portal-sidebar.collapsed .sidebar-icon {
    margin-right: 0 !important;
    font-size: 1.15rem !important;
}

.portal-sidebar.collapsed .sidebar-footer {
    padding: 10px 6px !important;
}

.portal-sidebar.collapsed .sidebar-footer-collapsed {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.portal-content-area {
    flex: 1;
    min-width: 0;
    padding: 18px 24px 40px;
    background: #f8fafc;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-sidebar .nav-link {
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.15s ease !important;
    border: 1px solid transparent !important;
}

.portal-sidebar .nav-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.portal-sidebar .nav-link.active {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.2) !important;
}

.portal-sidebar .nav-link.active i {
    color: #38bdf8 !important;
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-user-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.portal-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .portal-sidebar {
        position: fixed;
        top: 0 !important;
        bottom: 0 !important;
        left: -290px;
        height: 100vh !important;
        max-height: 100vh !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    .portal-sidebar.show-mobile {
        left: 0;
    }
    .portal-content-area {
        padding: 12px 14px 30px;
    }
}

/* Main Admin Container - Compact High-Density Scale */
.admin-dashboard-container {
    background: #f1f5f9 !important;
    min-height: calc(100vh - 58px);
    padding: 0 !important;
    color: #1e293b;
    font-size: 0.82rem !important; /* Scaled down from 16px */
}

/* Dashboard Header Card */
.dashboard-header-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 14px !important;
}

.dashboard-header-card h2 {
    color: #0f172a !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

.dashboard-header-card p {
    color: #64748b !important;
    font-size: 0.78rem !important;
}

/* Stat Cards - Compact */
.stat-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.07) !important;
}

.stat-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
}

.stat-icon.blue {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

.stat-icon.amber {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.stat-icon.green {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

.stat-icon.purple {
    background: #faf5ff !important;
    color: #7c3aed !important;
    border: 1px solid #e9d5ff !important;
}

.stat-number {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
}

.stat-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-top: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* Nav Pills (Dashboard Tabs) - Compact */
#dashboardTabs .nav-link {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 50px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}

#dashboardTabs .nav-link:hover:not(.active) {
    background: #f8fafc !important;
    color: #064d43 !important;
    border-color: #94a3b8 !important;
}

#dashboardTabs .nav-link.active {
    background: linear-gradient(135deg, #064d43 0%, #0d7665 100%) !important;
    color: #ffffff !important;
    border-color: #064d43 !important;
    box-shadow: 0 3px 10px rgba(6, 77, 67, 0.25) !important;
}

/* Status Filter Pills - Compact */
.filter-pills-nav {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.filter-pill {
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    transition: all 0.18s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.filter-pill:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.filter-pill.active {
    background: #064d43 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(6, 77, 67, 0.2);
}

/* Dashboard Table Card - Compact */
.dashboard-table-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 3px 14px -3px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.dashboard-table-card .table {
    background: #ffffff !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.dashboard-table-card .table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
}

.dashboard-table-card .table tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease !important;
}

.dashboard-table-card .table tbody tr:hover {
    background: #f8fafc !important;
}

.dashboard-table-card .table tbody td {
    background: transparent !important;
    color: #1e293b !important;
    padding: 8px 12px !important; /* Compact padding! */
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.8rem !important; /* Smaller text! */
}

/* Patient Details & Elements inside Table */
.dashboard-table-card .text-dark {
    color: #0f172a !important;
}

.dashboard-table-card a[href^="tel:"] {
    color: #0d7665 !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
}

.dashboard-table-card a[href^="tel:"]:hover {
    color: #064d43 !important;
    text-decoration: underline !important;
}

/* Token badge - Compact */
.dashboard-table-card .badge.bg-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.2) !important;
}

/* Department badge - Compact */
.dashboard-table-card .badge.bg-light.text-dark {
    background: #f0fdf4 !important;
    color: #065f46 !important;
    border: 1px solid #bbf7d0 !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

/* Status Badges - Compact */
.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.status-badge.Pending {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.status-badge.Confirmed {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

.status-badge.Completed {
    background: #e0f2fe !important;
    color: #075985 !important;
    border: 1px solid #bae6fd !important;
}

.status-badge.Cancelled,
.status-badge.Rejected {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

/* Action Dropdown & Buttons - Compact */
.dashboard-table-card .btn-outline-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 3px 9px !important;
    font-size: 0.74rem !important;
    transition: all 0.15s ease !important;
}

.dashboard-table-card .btn-outline-secondary:hover,
.dashboard-table-card .btn-outline-secondary:focus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.dashboard-table-card .dropdown-menu {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.1) !important;
    padding: 6px !important;
    min-width: 180px !important;
}

.dashboard-table-card .dropdown-item {
    border-radius: 5px !important;
    padding: 6px 10px !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
}

.dashboard-table-card .btn-outline-danger {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #e11d48 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
    transition: all 0.15s ease !important;
}

.dashboard-table-card .btn-outline-danger:hover {
    background: #ffe4e6 !important;
    border-color: #fda4af !important;
    color: #be123c !important;
}

/* Color utilities used across views */
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-900 { color: #0f172a !important; }

/* Fluid Full-Width Portal Header */
.portal-body .site-header .header-inner,
.header-inner-fluid {
    max-width: 100% !important;
    padding: 0 clamp(16px, 2vw, 32px) !important;
}

/* Modern Control Toolbar above Tables - Compact */
.table-control-toolbar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 12px !important;
}

/* Patient Avatar Circle with Initial - Compact */
.avatar-circle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    font-size: 0.74rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: 1px solid #7dd3fc !important;
}

/* Stat Card Mini Badges */
.stat-mini-badge {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
}

.bg-primary-subtle { background-color: #eff6ff !important; color: #1d4ed8 !important; }
.bg-secondary-subtle { background-color: #f1f5f9 !important; color: #475569 !important; }
.bg-success-subtle { background-color: #ecfdf5 !important; color: #047857 !important; }
.bg-info-subtle { background-color: #e0f2fe !important; color: #0369a1 !important; }
.bg-warning-subtle { background-color: #fffbeb !important; color: #b45309 !important; }
.bg-danger-subtle { background-color: #fef2f2 !important; color: #b91c1c !important; }
.bg-purple-subtle { background-color: #faf5ff !important; color: #6d28d9 !important; }

.text-primary-emphasis { color: #1e40af !important; }
.text-success-emphasis { color: #065f46 !important; }
.text-info-emphasis { color: #0369a1 !important; }
.text-warning-emphasis { color: #92400e !important; }
.text-danger-emphasis { color: #991b1b !important; }

.border-primary-subtle { border-color: #93c5fd !important; }
.border-secondary-subtle { border-color: #cbd5e1 !important; }
.border-success-subtle { border-color: #86efac !important; }
.border-info-subtle { border-color: #7dd3fc !important; }
.border-warning-subtle { border-color: #fde68a !important; }
.border-danger-subtle { border-color: #fca5a5 !important; }

/* Dashboard Table Pagination Footer - Compact */
.dashboard-table-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 8px 14px !important;
    font-size: 0.76rem !important;
}

.pagination {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.pagination .page-item .page-link {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    margin: 0 !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.pagination .page-item .page-link:hover {
    background: #f1f5f9 !important;
    color: #064d43 !important;
    border-color: #cbd5e1 !important;
}

.pagination .page-item.active .page-link {
    background: #064d43 !important;
    border-color: #064d43 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(6, 77, 67, 0.25) !important;
}

.pagination .page-item.disabled .page-link {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   DOCTOR OPD CALENDAR & SCHEDULE MANAGER
   ========================================================================== */
.opd-calendar-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    padding: 16px;
    margin-bottom: 20px;
}

.opd-calendar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}

.opd-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.opd-calendar-day-header {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    padding: 6px 0;
    background: #f8fafc;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.opd-calendar-day-header.weekend {
    color: #dc2626;
    background: #fef2f2;
}

.opd-calendar-cell {
    min-height: 74px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.opd-calendar-cell:hover {
    border-color: #0d7665;
    box-shadow: 0 3px 10px rgba(13, 118, 101, 0.12);
    transform: translateY(-1px);
}

.opd-calendar-cell.is-today {
    border: 2px solid #0d7665 !important;
    background: #f0fdf9;
}

.opd-calendar-cell.is-past {
    opacity: 0.5;
    background: #f8fafc;
}

.opd-calendar-cell.is-off {
    border-color: #fca5a5 !important;
    background: #fff5f5 !important;
}

.opd-calendar-cell.is-off:hover {
    border-color: #dc2626 !important;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.15);
}

.opd-calendar-cell.is-other-month {
    opacity: 0.2;
    pointer-events: none;
    background: #f8fafc;
}

.opd-date-num {
    font-weight: 800;
    font-size: 0.8rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opd-status-pill {
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    display: block;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opd-status-pill.open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.opd-status-pill.closed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   EXECUTIVE OPD CALENDAR & DAILY REPORTS (TAB 1)
   ========================================================================== */
.report-calendar-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 24px;
}

.report-calendar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #f1f5f9;
}

.report-month-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.report-kpi-pill.blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.report-kpi-pill.green { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.report-kpi-pill.amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.report-kpi-pill.red { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.report-kpi-pill.purple { background: #faf5ff; border-color: #e9d5ff; color: #6b21a8; }

.cumulative-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.cumulative-summary-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.cumulative-summary-grid .report-kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}
.cumulative-summary-grid .kpi-pill-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cumulative-summary-grid .kpi-pill-title::after {
    content: ":";
}
.cumulative-summary-grid .kpi-pill-value {
    font-weight: 800;
}

.report-calendar-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 8px;
    scrollbar-width: thin;
}

.report-calendar-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.report-calendar-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.report-calendar-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.report-calendar-min-width {
    min-width: 720px;
}

.report-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.report-day-header {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    padding: 10px 0;
    background: #f8fafc;
    border-radius: 8px;
    letter-spacing: 0.5px;
    border: 1px solid #f1f5f9;
}
.report-day-header.weekend {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fee2e2;
}

.report-day-cell {
    min-height: 118px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.report-day-cell:hover {
    border-color: #0d7665;
    box-shadow: 0 8px 22px rgba(13, 118, 101, 0.16);
    transform: translateY(-2px);
    z-index: 2;
}

.report-day-cell.is-today {
    border: 2px solid #0d7665 !important;
    background: linear-gradient(180deg, #f0fdf9 0%, #ffffff 100%);
    box-shadow: 0 4px 14px rgba(13, 118, 101, 0.12);
}

.report-day-cell.is-off {
    background: #fff8f8 !important;
    border-color: #fca5a5 !important;
}

.report-day-cell.is-other-month {
    opacity: 0.25;
    pointer-events: none;
    background: #f8fafc;
}

.report-day-num {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.report-stat-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    justify-content: center;
}

.report-stat-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.report-stat-pill.bookings { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.report-stat-pill.present { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.report-stat-pill.absent { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.report-stat-pill.paid { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-weight: 800; }
.report-stat-pill.pending-pay { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.report-stat-pill.off-doc { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.report-click-hint {
    font-size: 0.62rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}
.report-day-cell:hover .report-click-hint {
    opacity: 1;
    color: #0d7665;
    font-weight: 600;
}

/* Modal KPI Metric Cards */
.report-modal-kpi {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.report-modal-kpi.blue { background: #f0f9ff; border-color: #bae6fd; }
.report-modal-kpi.green { background: #f0fdf4; border-color: #bbf7d0; }
.report-modal-kpi.amber { background: #fffdf5; border-color: #fde68a; }
.report-modal-kpi.teal { background: #f0fdfa; border-color: #99f6e4; }

.report-kpi-val {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}
.report-kpi-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status toggles inside daily report modal */
.btn-toggle-present {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
}
.btn-toggle-present:hover {
    background: #059669;
    color: #ffffff;
}

.btn-toggle-absent {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
}
.btn-toggle-absent:hover {
    background: #dc2626;
    color: #ffffff;
}

.btn-toggle-paid {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-toggle-paid:hover {
    background: #16a34a;
    color: #ffffff;
}

.btn-toggle-unpaid {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-toggle-unpaid:hover {
    background: #d97706;
    color: #ffffff;
}

/* ==========================================================================
   PROFIT & LOSS AND FINANCIAL ANALYTICS DESIGN
   ========================================================================== */
.pnl-kpi-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pnl-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}
.pnl-kpi-card.border-blue { border-top: 4px solid #2563eb; }
.pnl-kpi-card.border-red { border-top: 4px solid #dc2626; }
.pnl-kpi-card.border-purple { border-top: 4px solid #7c3aed; }
.pnl-kpi-card.border-amber { border-top: 4px solid #d97706; }
.pnl-kpi-card.border-green { border-top: 4px solid #059669; }

.pnl-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pnl-kpi-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pnl-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.pnl-kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.pnl-kpi-icon.red { background: #fef2f2; color: #dc2626; }
.pnl-kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }
.pnl-kpi-icon.amber { background: #fffbeb; color: #d97706; }
.pnl-kpi-icon.green { background: #ecfdf5; color: #059669; }

.pnl-kpi-val {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.pnl-kpi-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Print Sheet Styling */
@media print {
    /* Hide all background website chrome, modals, and backdrops when printing via iframe */
    body > *:not(#clinicPrintIframe):not(#tokenPrintIframe) {
        display: none !important;
    }

    #clinicPrintIframe,
    #tokenPrintIframe {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ============================================================
   CLINIC LIVE NOTICES - MARQUEE TICKER
   ============================================================ */
.clinic-live-notices-container {
    width: 100%;
}

.notice-ticker-alert {
    min-height: 34px;
    border-width: 1px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.notice-ticker-alert:hover {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.notice-marquee-text {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.45;
    font-size: 12px;
    cursor: pointer;
    vertical-align: middle;
}

.notice-marquee-item {
    display: inline;
}

@media (max-width: 576px) {
    .notice-ticker-alert {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 11px !important;
    }
    .notice-marquee-text {
        font-size: 11px !important;
    }
}

/* ============================================================
   ARCYBITSOFT DEVELOPER & COPYRIGHT CREDIT
   ============================================================ */
.booking-card-footer-credit {
    font-size: 12px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.65) !important;
}

.arcbit-brand-link {
    color: #34d399 !important;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline;
}

.arcbit-brand-link:hover {
    color: #a7f3d0 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .booking-card-footer-credit {
        font-size: 11px;
    }
}

/* ============================================================
   EXECUTIVE TOKEN & SLOT SELECTION MODAL & PREVIEW BANNER
   ============================================================ */
.selected-slot-preview-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s ease;
}

.selected-slot-preview-card:hover {
    border-color: #0fa386;
    box-shadow: 0 4px 14px rgba(15, 163, 134, 0.12);
}

.modal-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.modal-slot-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.modal-slot-card:hover:not(.disabled) {
    border-color: #0fa386;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 163, 134, 0.15);
}

.modal-slot-card.active {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.modal-slot-card.disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-slot-time {
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-slot-card.active .modal-slot-time {
    color: #064d43;
}

.modal-slot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.modal-slot-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.2s ease;
}

.modal-slot-card.active .modal-slot-check {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

@media (max-width: 576px) {
    .modal-slots-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LIVE APPOINTMENT NOTIFICATIONS & AUDIO SOUND ALERTS
   ========================================================================== */
.clinic-live-alerts-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.clinic-live-toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(13, 118, 101, 0.25);
    border-left: 5px solid #0d7665;
    box-shadow: 0 16px 36px rgba(13, 118, 101, 0.22), 0 6px 14px rgba(0, 0, 0, 0.08);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    animation: toastSlideInRight 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.clinic-live-toast.toast-fade-out {
    opacity: 0;
    transform: translateX(60px);
}

@keyframes toastSlideInRight {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.clinic-live-toast .toast-header-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.clinic-live-toast .toast-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #064d43;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.clinic-live-toast .toast-bell-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.82rem;
    animation: bellRinging 1.2s infinite ease-in-out;
}

@keyframes bellRinging {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(0); }
}

.clinic-live-toast .toast-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.clinic-live-toast .toast-close-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.clinic-live-toast .toast-body-area {
    font-size: 0.83rem;
    color: #334155;
    line-height: 1.4;
}

.clinic-live-toast .toast-patient-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.clinic-live-toast .toast-patient-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.clinic-live-toast .toast-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 6px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.clinic-live-toast .toast-meta-item {
    font-size: 0.76rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clinic-live-toast .toast-meta-item strong {
    color: #1e293b;
}

.clinic-live-toast .toast-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

/* Row Flash Pulse for newly arrived bookings */
tr.appointment-row.table-row-new-pulse {
    animation: newRowHighlightPulse 4.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes newRowHighlightPulse {
    0% {
        background-color: #d1fae5 !important;
        box-shadow: inset 4px 0 0 #059669;
    }
    30% {
        background-color: #ecfdf5 !important;
        box-shadow: inset 4px 0 0 #10b981;
    }
    70% {
        background-color: #f0fdf4 !important;
    }
    100% {
        background-color: transparent !important;
        box-shadow: none;
    }
}

/* Sound Alert Toggle Button */
.sound-alert-toggle-btn {
    transition: all 0.2s ease;
}

.sound-alert-toggle-btn.active {
    background-color: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

.sound-alert-toggle-btn.muted {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

/* ==========================================================================
   FOLLOW-UP QUEUE & WHATSAPP REMINDER STYLES
   ========================================================================== */
.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1ea952 !important;
    border-color: #1ea952 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.fu-advice-chip {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 20px;
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    transition: all 0.15s ease-in-out;
}

.fu-advice-chip:hover {
    background-color: #0d7665;
    border-color: #0d7665;
    color: #ffffff;
}

@keyframes pulseFollowUpDue {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulseFollowUpDue 2s infinite ease-in-out;
}

.fu-reminder-badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Follow-up Due Status Badges */
.badge-due-today {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #f87171 !important;
    font-weight: 700 !important;
}

.badge-due-tomorrow {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fcd34d !important;
    font-weight: 700 !important;
}

.badge-due-upcoming {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
    font-weight: 700 !important;
}

.badge-due-future {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    font-weight: 700 !important;
}

.badge-due-past {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   DOCTOR LIVE OPD CONSULTATION DESK & COLOR-CODED SLOT CARDS
   ========================================================================== */
.live-opd-deck {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.live-opd-header-card {
    background: linear-gradient(135deg, #0d7665 0%, #064d43 100%);
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.live-opd-header-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 4 Interactive Live KPI Cards */
.live-kpi-card {
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.live-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.live-kpi-card.kpi-total {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.live-kpi-card.kpi-done {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.live-kpi-card.kpi-waiting {
    background: #fffbeb;
    border-color: #fde68a;
}

.live-kpi-card.kpi-unpaid {
    background: #fff1f2;
    border-color: #fecdd3;
}

.live-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.live-kpi-card.kpi-total .live-kpi-icon {
    background: #e2e8f0;
    color: #334155;
}

.live-kpi-card.kpi-done .live-kpi-icon {
    background: #d1fae5;
    color: #059669;
}

.live-kpi-card.kpi-waiting .live-kpi-icon {
    background: #fef3c7;
    color: #d97706;
}

.live-kpi-card.kpi-unpaid .live-kpi-icon {
    background: #ffe4e6;
    color: #e11d48;
}

.live-kpi-num {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}

.live-kpi-card.kpi-total .live-kpi-num { color: #1e293b; }
.live-kpi-card.kpi-done .live-kpi-num { color: #047857; }
.live-kpi-card.kpi-waiting .live-kpi-num { color: #b45309; }
.live-kpi-card.kpi-unpaid .live-kpi-num { color: #be123c; }

.live-kpi-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slot Accordion Group Header */
.live-slot-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.live-slot-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-slot-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Three Color States for Patient Slot Cards */

/* 0. IN CABIN: Patient currently inside doctor's cabin (Freezed on outside TV Screen) */
.live-slot-card.card-status-incabin {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 2px solid #059669 !important;
    border-left: 6px solid #047857 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.45) !important;
    position: relative;
    transform: translateY(-2px);
    animation: live-card-blink-incabin 2.2s infinite ease-in-out;
}

.live-slot-card.card-status-incabin .card-status-badge {
    background-color: #047857;
    color: #ffffff;
    border: 1px solid #065f46;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.4);
}

.live-slot-card.card-status-incabin .token-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.5);
}

@keyframes live-card-blink-incabin {
    0%, 100% {
        border-color: #059669 !important;
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
    }
    50% {
        border-color: #10b981 !important;
        box-shadow: 0 0 22px rgba(16, 185, 129, 0.7) !important;
    }
}

/* 1. GREEN: Doctor Consulted / Done (Done ho chuka h -> Light Green) */
.live-slot-card.card-status-done {
    background-color: #ecfdf5 !important;
    border: 1.5px solid #34d399 !important;
    border-left: 4px solid #10b981 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08) !important;
}

.live-slot-card.card-status-done .card-status-badge {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 700;
}

.live-slot-card.card-status-done .token-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

/* 2. YELLOW: Arrived & Paid - Waiting for Doctor (Aa gaye h, payment bhi ho gaya h -> Yellow + Blinking Glow) */
.live-slot-card.card-status-waiting {
    background-color: #fffbeb !important;
    border: 1.5px solid #facc15 !important;
    border-left: 4px solid #f59e0b !important;
    animation: live-card-blink-waiting 2s infinite ease-in-out;
}

.live-slot-card.card-status-waiting .card-status-badge {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 700;
}

.live-slot-card.card-status-waiting .token-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    animation: token-badge-pulse 1.8s infinite ease-in-out;
}

/* 3. RED: Booked but Payment Pending (Book hue abhi payment nahi hua -> Light Red + Blinking Glow) */
.live-slot-card.card-status-unpaid {
    background-color: #fff1f2 !important;
    border: 1.5px solid #f87171 !important;
    border-left: 4px solid #ef4444 !important;
    animation: live-card-blink-unpaid 1.7s infinite ease-in-out;
}

.live-slot-card.card-status-unpaid .card-status-badge {
    background-color: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
    font-weight: 700;
}

.live-slot-card.card-status-unpaid .token-badge {
    background: linear-gradient(135deg, #ef4444 0%, #be123c 100%);
    color: #ffffff;
    animation: token-badge-pulse 1.7s infinite ease-in-out;
}

/* Blinking Keyframes for Active Cards */
@keyframes live-card-blink-unpaid {
    0%, 100% {
        border-color: #f87171 !important;
        box-shadow: 0 1px 4px rgba(239, 68, 68, 0.15) !important;
    }
    50% {
        border-color: #dc2626 !important;
        box-shadow: 0 0 14px 2px rgba(239, 68, 68, 0.45) !important;
    }
}

@keyframes live-card-blink-waiting {
    0%, 100% {
        border-color: #facc15 !important;
        box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15) !important;
    }
    50% {
        border-color: #d97706 !important;
        box-shadow: 0 0 14px 2px rgba(245, 158, 11, 0.45) !important;
    }
}

@keyframes token-badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.88;
        transform: scale(1.02);
    }
}

/* Pulsing Live Dot inside Token */
.live-pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    margin-right: 4px;
    animation: live-dot-blink 1s infinite alternate ease-in-out;
    vertical-align: middle;
}

@keyframes live-dot-blink {
    0% {
        opacity: 0.25;
        transform: scale(0.65);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Compact Patient Slot Card base structure */
.live-slot-card {
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.live-slot-card:hover {
    transform: translateY(-2px);
}

.token-badge {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
}

.card-status-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 12px;
}

.card-patient-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.card-patient-meta {
    font-size: 0.74rem;
    color: #475569;
}

.card-symptoms-box {
    background: rgba(255, 255, 255, 0.75);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 0.72rem;
    color: #475569;
    margin: 4px 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fullscreen Mode for Live Doctor Clinic Desk */
.live-opd-fullscreen-active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    background: #f1f5f9 !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

/* 5 Tokens Per Row Grid for Live OPD Queue */
@media (min-width: 1200px) {
    #liveOpdTokensGrid.row-cols-xl-5 > * {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    #liveOpdTokensGrid.row-cols-lg-4 > * {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

/* ==========================================================================
   PORTAL DASHBOARD HEADER ACTION BUTTONS (MOBILE RESPONSIVE GRID)
   ========================================================================== */
.portal-header-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.portal-header-actions .portal-btn-book {
    grid-column: 1 / -1;
    min-height: 42px;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.portal-header-actions .btn,
.portal-header-actions > a,
.portal-header-actions > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px;
    font-size: 0.8rem !important;
    font-weight: 500;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-header-actions .btn:hover,
.portal-header-actions > a:hover,
.portal-header-actions > button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.portal-header-actions .btn:active,
.portal-header-actions > a:active,
.portal-header-actions > button:active {
    transform: translateY(0);
}

/* Tablet & Desktop (>= 768px) */
@media (min-width: 768px) {
    .portal-header-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .portal-header-actions .portal-btn-book {
        grid-column: auto;
        min-height: 34px;
        font-size: 0.8rem !important;
        width: auto !important;
    }

    .portal-header-actions .btn,
    .portal-header-actions > a,
    .portal-header-actions > button {
        min-height: 34px;
        padding: 6px 13px !important;
        width: auto !important;
    }
}

/* Desktop Alignment (>= 992px) */
@media (min-width: 992px) {
    .portal-header-actions {
        width: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    #dashboardTabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px !important;
        gap: 6px !important;
        scrollbar-width: none;
    }
    #dashboardTabs::-webkit-scrollbar {
        display: none;
    }
    #dashboardTabs .nav-item {
        flex-shrink: 0 !important;
    }
    #dashboardTabs .nav-link {
        white-space: nowrap !important;
        padding: 6px 14px !important;
        font-size: 0.78rem !important;
    }
    .live-opd-header-card {
        padding: 14px 14px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .cumulative-summary-card {
        padding: 10px !important;
        border-radius: 12px !important;
    }
    .cumulative-summary-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .cumulative-summary-grid .report-kpi-pill {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 7px 9px !important;
        border-radius: 8px !important;
        min-height: 52px !important;
        gap: 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .cumulative-summary-grid .kpi-pill-header {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        width: 100% !important;
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        opacity: 0.9 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .cumulative-summary-grid .kpi-pill-title::after {
        content: "" !important;
    }
    .cumulative-summary-grid .kpi-pill-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .cumulative-summary-grid .kpi-pill-value {
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin-top: 1px !important;
    }
    .cumulative-summary-grid .kpi-pill-span-full {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 7px 12px !important;
        min-height: 36px !important;
    }
    .cumulative-summary-grid .kpi-pill-span-full .kpi-pill-header {
        width: auto !important;
        font-size: 0.72rem !important;
    }
    .cumulative-summary-grid .kpi-pill-span-full .kpi-pill-value {
        font-size: 0.82rem !important;
        margin-top: 0 !important;
    }
    /* Daily OPD & Financial Report Modal Mobile Styles */
    #dailyReportDetailModal .modal-dialog {
        margin: 0.5rem !important;
    }
    #dailyReportDetailModal .modal-content {
        border-radius: 14px !important;
    }
    #dailyReportDetailModal .modal-body {
        padding: 10px !important;
    }
    .report-modal-kpi {
        padding: 8px 10px !important;
        border-radius: 10px !important;
        min-height: 76px !important;
    }
    .report-modal-kpi .report-kpi-title {
        font-size: 0.70rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .report-modal-kpi .report-kpi-val {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
    }
    .report-modal-kpi .small {
        font-size: 0.70rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .report-modal-net-card {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
    }
    .report-modal-net-card .report-kpi-val {
        font-size: 1.35rem !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .dashboard-header-card {
        padding: 12px 14px !important;
    }
    .live-opd-header-card h3 {
        font-size: 1.12rem !important;
    }
}