/* /Layout/DrLayout.razor.rz.scp.css */
/* RESET & GLOBAL */
*[b-35u16x8y8w] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html[b-35u16x8y8w], body[b-35u16x8y8w], #app[b-35u16x8y8w] {
    height: 100%;
    overflow: hidden;
}

/* RTL Support */
html[dir="rtl"][b-35u16x8y8w] {
    direction: rtl;
}

html[dir="ltr"][b-35u16x8y8w] {
    direction: ltr;
}

.app-container[b-35u16x8y8w] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* TOP BAR */
.top-bar[b-35u16x8y8w] {
    background: #4b86aa;
    color: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-content[b-35u16x8y8w] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
    padding: 0 1rem;
}

.left-section[b-35u16x8y8w], .right-section[b-35u16x8y8w] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle[b-35u16x8y8w] {
    background: transparent;
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

    .menu-toggle:hover[b-35u16x8y8w] {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.08);
    }

    .menu-toggle:active[b-35u16x8y8w] {
        transform: scale(0.95);
    }

.hamburger[b-35u16x8y8w] {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.line[b-35u16x8y8w] {
    width: 100%;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-origin: center;
}

.hamburger.active .line-1[b-35u16x8y8w] {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .line-2[b-35u16x8y8w] {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .line-3[b-35u16x8y8w] {
    transform: translateY(-7.5px) rotate(-45deg);
}

.logo[b-35u16x8y8w] {
    height: 2rem;
    width: auto;
    border-radius: 4px;
}

.company-name[b-35u16x8y8w] {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Patient name - desktop: full display */
.patient-name[b-35u16x8y8w] {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    color: white;
}

.icon-btn[b-35u16x8y8w] {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

    .icon-btn:hover[b-35u16x8y8w] {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

/* MAIN ROW */
.main-row[b-35u16x8y8w] {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

/* SIDEBAR */
.sidebar[b-35u16x8y8w] {
    background: linear-gradient(180deg, #cccccc 0%, #d3d3d3 100%);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

/* Desktop */
@media (min-width: 769px) {
    .sidebar[b-35u16x8y8w] {
        position: relative;
        width: 260px;
        height: 100%;
        flex-shrink: 0;
    }

        .sidebar.closed[b-35u16x8y8w] {
            width: 0;
        }

        .sidebar.open[b-35u16x8y8w] {
            width: 260px;
        }
}

/* Mobile: fixed below top bar, slides in/out */
@media (max-width: 768px) {
    .sidebar[b-35u16x8y8w] {
        position: fixed;
        top: 3.5rem;
        width: 280px;
        height: calc(100% - 3.5rem);
        transition: inset-inline-start 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

    /* LTR: slide from left */
    html[dir="ltr"] .sidebar[b-35u16x8y8w] {
        inset-inline-start: -280px;
    }

    html[dir="ltr"] .sidebar.open[b-35u16x8y8w] {
        inset-inline-start: 0;
    }

    html[dir="ltr"] .sidebar.closed[b-35u16x8y8w] {
        inset-inline-start: -280px;
    }

    /* RTL: slide from right (automatically handled by inset-inline-start) */
    html[dir="rtl"] .sidebar[b-35u16x8y8w] {
        inset-inline-start: -280px;
    }

    html[dir="rtl"] .sidebar.open[b-35u16x8y8w] {
        inset-inline-start: 0;
    }

    html[dir="rtl"] .sidebar.closed[b-35u16x8y8w] {
        inset-inline-start: -280px;
    }
}

/* CONTENT PANE */
.content-pane[b-35u16x8y8w] {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    transition: all 0.3s ease;
}

.page-content[b-35u16x8y8w] {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* ========== RESPONSIVE PATIENT NAME ========== */
@media (max-width: 768px) {
    .top-bar-content[b-35u16x8y8w] {
        height: 3rem;
        padding: 0 0.75rem;
    }

    .company-name[b-35u16x8y8w] {
        font-size: 0.85rem;
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .patient-name[b-35u16x8y8w] {
        font-size: 0.7rem;
    }

    .menu-toggle[b-35u16x8y8w] {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .logo[b-35u16x8y8w] {
        height: 1.6rem;
    }

    .icon-btn[b-35u16x8y8w] {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }

    .page-content[b-35u16x8y8w] {
        padding: 0.75rem;
    }

    .sidebar[b-35u16x8y8w] {
        top: 3rem;
        height: calc(100% - 3rem);
    }
}

/* On very small screens (≤480px), hide patient name text completely, keep icons only */
@media (max-width: 480px) {
    .patient-name[b-35u16x8y8w] {
        display: none;
    }
}

/* Scrollbars */
.sidebar[b-35u16x8y8w]::-webkit-scrollbar, .content-pane[b-35u16x8y8w]::-webkit-scrollbar {
    width: 6px;
}

.sidebar[b-35u16x8y8w]::-webkit-scrollbar-track, .content-pane[b-35u16x8y8w]::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar[b-35u16x8y8w]::-webkit-scrollbar-thumb, .content-pane[b-35u16x8y8w]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    .sidebar[b-35u16x8y8w]::-webkit-scrollbar-thumb:hover, .content-pane[b-35u16x8y8w]::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* ========== NAVIGATION STYLES (NavMenu.razor) ========== */
.nav-links[b-35u16x8y8w] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
}

.nav-link[b-35u16x8y8w],
.nav-links a[b-35u16x8y8w] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

    .nav-link i[b-35u16x8y8w],
    .nav-links a i[b-35u16x8y8w] {
        font-size: 1.2rem;
        width: 24px;
        color: #4b86aa;
        flex-shrink: 0;
    }

    .nav-link:hover[b-35u16x8y8w],
    .nav-links a:hover[b-35u16x8y8w] {
        background: rgba(75, 134, 170, 0.2);
        transform: translateX(4px);
        color: #0a4b6e;
    }

    .nav-link.active[b-35u16x8y8w],
    .nav-links a.active[b-35u16x8y8w] {
        background: rgba(75, 134, 170, 0.3);
        color: #0a4b6e;
        border-left: 3px solid #4b86aa;
    }

        .nav-link.active i[b-35u16x8y8w],
        .nav-links a.active i[b-35u16x8y8w] {
            color: #2c5a7a;
        }

/* DESKTOP: when sidebar is collapsed, hide text to avoid overflow */
@media (min-width: 769px) {
    .sidebar.closed .nav-link span[b-35u16x8y8w],
    .sidebar.closed .nav-links a span[b-35u16x8y8w] {
        display: none;
    }
}

/* MOBILE: force all nav items (including Home) to be fully visible when sidebar is open */
@media (max-width: 768px) {
    .sidebar.open .nav-link span[b-35u16x8y8w],
    .sidebar.open .nav-links a span[b-35u16x8y8w] {
        display: inline-block !important;
        visibility: visible !important;
        white-space: nowrap;
    }

    .sidebar.open .nav-link[b-35u16x8y8w],
    .sidebar.open .nav-links a[b-35u16x8y8w] {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Add a small top spacer to ensure first item isn't clipped */
    .sidebar.open .nav-links[b-35u16x8y8w] {
        padding-top: 3.2rem;
    }
}





.nav-wrapper[b-35u16x8y8w] {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #cccccc 0%, #d3d3d3 100%);
    padding: 0.5rem 0;
}

.nav-links[b-35u16x8y8w] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link[b-35u16x8y8w] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

    .nav-link i[b-35u16x8y8w] {
        font-size: 1.2rem;
        width: 24px;
        color: #4b86aa;
    }

    .nav-link:hover[b-35u16x8y8w] {
        background: rgba(75,134,170,0.2);
        transform: translateX(4px);
    }

    .nav-link.active[b-35u16x8y8w] {
        background: rgba(75,134,170,0.3);
        color: #0a4b6e;
        border-left: 3px solid #4b86aa;
    }

        .nav-link.active i[b-35u16x8y8w] {
            color: #2c5a7a;
        }

/* DESKTOP: when sidebar is collapsed, hide text to avoid overflow */
@media (min-width: 769px) {
    .sidebar.closed .nav-link span[b-35u16x8y8w] {
        display: none;
    }
}

/* MOBILE: force all nav items (including Home) to be fully visible when sidebar is open */
@media (max-width: 768px) {
    .sidebar.open .nav-link span[b-35u16x8y8w] {
        display: inline-block !important;
        visibility: visible !important;
        white-space: nowrap;
    }

    .sidebar.open .nav-link[b-35u16x8y8w] {
        opacity: 1 !important;
        visibility: visible !important;
    }
    /* Add a small top spacer to ensure first item isn't clipped */
    .sidebar.open .nav-links[b-35u16x8y8w] {
        padding-top: 3.2rem;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-0zueqzoci9] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar[b-0zueqzoci9] {
    display: flex;
    flex-direction: column;
}

main[b-0zueqzoci9] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top row */
.top-row[b-0zueqzoci9] {
    background: #4b86aa;
    height: 3.5rem;
    display: flex;
    align-items: center;
    color: white;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 0.5rem;
}

.company-name[b-0zueqzoci9] {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.patient-name[b-0zueqzoci9] {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-profile[b-0zueqzoci9], .btn-logout[b-0zueqzoci9] {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    background: transparent;
    border: none;
}

    .btn-profile:hover[b-0zueqzoci9], .btn-logout:hover[b-0zueqzoci9] {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.topbar-logo[b-0zueqzoci9] {
    height: 2rem;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Hamburger button */
.btn-hamburger[b-0zueqzoci9] {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-hamburger:hover[b-0zueqzoci9] {
        background: rgba(255,255,255,0.3);
    }

/* Content */
.content[b-0zueqzoci9] {
    padding-top: 1.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
    .page[b-0zueqzoci9] {
        flex-direction: column;
    }

    .sidebar[b-0zueqzoci9] {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        z-index: 1050;
        transition: left 0.3s ease;
        background: #f8f9fa;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    }

        .sidebar.open[b-0zueqzoci9] {
            left: 0;
        }

    main[b-0zueqzoci9] {
        width: 100%;
    }

    .top-row[b-0zueqzoci9] {
        height: 3rem;
        padding: 0 0.75rem !important;
    }

    .company-name[b-0zueqzoci9] {
        font-size: 0.85rem;
        font-weight: 500;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .patient-name[b-0zueqzoci9] {
        font-size: 0.75rem;
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-profile[b-0zueqzoci9], .btn-logout[b-0zueqzoci9] {
        padding: 4px 8px;
        font-size: 1rem;
    }

    .topbar-logo[b-0zueqzoci9] {
        height: 1.6rem;
    }

    .content[b-0zueqzoci9] {
        padding: 0.75rem !important;
    }
}

@media (min-width: 641px) {
    .page[b-0zueqzoci9] {
        flex-direction: row;
    }

    .sidebar[b-0zueqzoci9] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow: hidden;
    }

    main[b-0zueqzoci9] {
        flex: 1;
        width: calc(100% - 250px);
    }

    .btn-hamburger[b-0zueqzoci9] {
        display: none;
    }

    .top-row[b-0zueqzoci9] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Top Navigation Bar */
.navbar-toggler[b-vow0zkficn] {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-row[b-vow0zkficn] {
    min-height: 3.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Menu Container */
.nav-scrollable[b-vow0zkficn] {
    background: linear-gradient(180deg, #1a4d8f 0%, #2563b8 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

/* Navigation Header with Close Button */
.nav-header[b-vow0zkficn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header h6[b-vow0zkficn] {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-close-nav[b-vow0zkficn] {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-nav:hover[b-vow0zkficn] {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-close-nav i[b-vow0zkficn] {
    font-size: 1rem;
}

/* Navigation Items */
.nav-item[b-vow0zkficn] {
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
}

.nav-item:first-of-type[b-vow0zkficn] {
    padding-top: 1rem;
}

.nav-item:last-of-type[b-vow0zkficn] {
    padding-bottom: 1rem;
}

    .nav-item[b-vow0zkficn]  a {
        color: rgba(255, 255, 255, 0.85);
        border-radius: 8px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        padding: 0 1rem;
        transition: all 0.3s ease;
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

.nav-item[b-vow0zkficn]  a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4fc3f7;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item[b-vow0zkficn]  a:hover::before {
    transform: scaleY(1);
}

.nav-item[b-vow0zkficn]  a.active {
    background: linear-gradient(90deg,
        rgba(79, 195, 247, 0.25) 0%,
        rgba(79, 195, 247, 0.1) 100%);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-item[b-vow0zkficn]  a.active::before {
    transform: scaleY(1);
}

.nav-item[b-vow0zkficn]  a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateX(4px);
}

.nav-item[b-vow0zkficn]  a i {
    font-size: 1.25rem;
    margin-right: 0.85rem;
    width: 24px;
    text-align: center;
    color: #4fc3f7;
}

.nav-item[b-vow0zkficn]  a.active i {
    color: #81d4fa;
}

/* Responsive Design */
@media (min-width: 641px) {
    .navbar-toggler[b-vow0zkficn] {
        display: none;
    }

    .collapse[b-vow0zkficn] {
        display: block;
    }

    .nav-scrollable[b-vow0zkficn] {
        height: 100%;
        position:fixed;
        overflow-y: auto;
    }

    .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar {
        width: 6px;
    }

    .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }

    .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.4);
    }

}
/* Top Navigation Bar */
.navbar-toggler[b-vow0zkficn] {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.top-row[b-vow0zkficn] {
    min-height: 3.5rem;
    background: linear-gradient(135deg, #c0c0c0 0%, #d3d3d3 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Navigation Menu Container */
.nav-scrollable[b-vow0zkficn] {
    background: linear-gradient(180deg, #cccccc 0%, #d3d3d3 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

/* Navigation Header with Close Button */
.nav-header[b-vow0zkficn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .nav-header h6[b-vow0zkficn] {
        color: #111;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 0.85rem;
    }

.btn-close-nav[b-vow0zkficn] {
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #111;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-close-nav:hover[b-vow0zkficn] {
        background: rgba(75, 134, 170, 0.2);
        transform: rotate(90deg);
    }

    .btn-close-nav i[b-vow0zkficn] {
        font-size: 1rem;
    }

/* Navigation Items */
.nav-item[b-vow0zkficn] {
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-vow0zkficn] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-vow0zkficn] {
        padding-bottom: 1rem;
    }

    .nav-item[b-vow0zkficn]  a {
        color: #111111;
        border-radius: 8px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        padding: 0 1rem;
        transition: all 0.3s ease;
        text-decoration: none;
        position: relative;
        overflow: hidden;
        font-weight: 600;
    }

        .nav-item[b-vow0zkficn]  a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: #4b86aa;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .nav-item[b-vow0zkficn]  a:hover::before {
            transform: scaleY(1);
        }

        .nav-item[b-vow0zkficn]  a.active {
            background: linear-gradient(90deg, rgba(75, 134, 170, 0.2) 0%, rgba(75, 134, 170, 0.08) 100%);
            color: #111111;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(75, 134, 170, 0.15);
        }

            .nav-item[b-vow0zkficn]  a.active::before {
                transform: scaleY(1);
            }

        .nav-item[b-vow0zkficn]  a:hover {
            background-color: rgba(75, 134, 170, 0.15);
            color: #111111;
            transform: translateX(4px);
        }

        .nav-item[b-vow0zkficn]  a i {
            font-size: 1.25rem;
            margin-right: 0.85rem;
            width: 24px;
            text-align: center;
            color: #4b86aa;
        }

        .nav-item[b-vow0zkficn]  a.active i {
            color: #4b86aa;
        }

/* Responsive Design */
@media (min-width: 641px) {
    .navbar-toggler[b-vow0zkficn] {
        display: none;
    }

    .collapse[b-vow0zkficn] {
        display: block;
    }

    .nav-scrollable[b-vow0zkficn] {
        height: 100%;
        position: fixed;
        overflow-y: auto;
    }

        .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar {
            width: 6px;
        }

        .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
        }

        .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar-thumb {
            background: rgba(75, 134, 170, 0.4);
            border-radius: 3px;
        }

            .nav-scrollable[b-vow0zkficn]::-webkit-scrollbar-thumb:hover {
                background: rgba(75, 134, 170, 0.7);
            }
}
/* Make nav scrollable when zoomed or content overflows */
.nav-links[b-vow0zkficn] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    height: 100%;
    max-height: 100vh;
}

    /* Style the scrollbar to match your theme */
    .nav-links[b-vow0zkficn]::-webkit-scrollbar {
        width: 4px;
    }

    .nav-links[b-vow0zkficn]::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .nav-links[b-vow0zkficn]::-webkit-scrollbar-thumb {
        background: rgba(75, 134, 170, 0.4);
        border-radius: 3px;
    }

        .nav-links[b-vow0zkficn]::-webkit-scrollbar-thumb:hover {
            background: rgba(75, 134, 170, 0.7);
        }

.nav-scrollable[b-vow0zkficn] {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* let .nav-links handle the scroll */
}
/* /Pages/Auth/Login.razor.rz.scp.css */
/* ===== LOGIN PAGE ===== */

.login-container[b-7t71wwpfoo] {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; 
    overflow-y: clip; 
}

.login-card[b-7t71wwpfoo] {
    background: linear-gradient(160deg, #3d7a9e 0%, #4b8fb5 60%, #5aa0c8 100%);
    border-radius: 22px;
    padding: 1.5rem 2.5rem; /* Reduced top/bottom padding from 2.5rem to 1.5rem */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 1rem 0; /* Adds a small margin to ensure breathing room */
}

/* ── Branch Row (Logo + Name Pill) ── */
.branch-row[b-7t71wwpfoo] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: nowrap;
}

/* Logo circle */
.branch-logo-wrap[b-7t71wwpfoo] {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.branch-logo-img[b-7t71wwpfoo] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.branch-logo-placeholder[b-7t71wwpfoo] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.branch-logo-icon[b-7t71wwpfoo] {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Branch name pill */
.branch-name-pill[b-7t71wwpfoo] {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.3rem 0.75rem;
    flex: 1;
    min-width: 0;
    backdrop-filter: blur(6px);
}

.branch-pill-icon[b-7t71wwpfoo] {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    flex-shrink: 0;
}

.branch-pill-text[b-7t71wwpfoo] {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: contents;
}

/* ── Skeleton loading ── */
.skeleton-row[b-7t71wwpfoo] {
    margin-bottom: 0.35rem;
}

.skeleton-logo[b-7t71wwpfoo] {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    animation: shimmer-b-7t71wwpfoo 1.4s infinite;
}

.skeleton-name[b-7t71wwpfoo] {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    animation: shimmer-b-7t71wwpfoo 1.4s infinite;
}

@keyframes shimmer-b-7t71wwpfoo {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ── Portal title + Trial badge ── */
.portal-title-wrap[b-7t71wwpfoo] {
    text-align: center;
    margin-bottom: 0.35rem;
}

.login-title[b-7t71wwpfoo] {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.trial-badge[b-7t71wwpfoo] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 0.12rem 0.55rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ── Form ── */
.form-label[b-7t71wwpfoo] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem; /* Slightly reduced from 0.9rem */
    margin-bottom: 0.3rem; /* Reduced from 0.4rem */
}

.form-control[b-7t71wwpfoo] {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    padding: 0.6rem 1rem; /* Reduced vertical padding from 0.75rem to 0.6rem */
    font-size: 0.95rem; /* Slightly reduced from 1rem */
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.25s;
    color: #2a2a2a;
}

    .form-control:focus[b-7t71wwpfoo] {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
        background: white;
        outline: none;
    }

    .form-control:disabled[b-7t71wwpfoo] {
        opacity: 0.6;
    }

/* Remove number arrows */
input[type="number"][b-7t71wwpfoo]::-webkit-outer-spin-button,
input[type="number"][b-7t71wwpfoo]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"][b-7t71wwpfoo] {
    -moz-appearance: textfield;
}

.form-text[b-7t71wwpfoo] {
    display: block;
    margin-top: 0.2rem; /* Reduced from 0.25rem */
    font-size: 0.8rem; /* Slightly reduced from 0.85rem */
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ── Login Button ── */
.btn-login[b-7t71wwpfoo] {
    background: #1c4660;
    border: none;
    border-radius: 11px;
    color: white;
    padding: 0.6rem; /* Reduced from 0.78rem */
    font-size: 1rem; /* Slightly reduced from 1.05rem */
    font-weight: 700;
    margin-top: 1rem; /* Reduced from 1.4rem */
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.2px;
    width: 70%;
    display: block;
    margin: 1rem auto 0; /* Adjusted margin */
}

    .btn-login:hover:not(:disabled)[b-7t71wwpfoo] {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
        color: #2d6a8c;
    }

    .btn-login:active:not(:disabled)[b-7t71wwpfoo] {
        transform: translateY(0);
    }

    .btn-login:disabled[b-7t71wwpfoo] {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ── New Patient ── */
.new-patient-section[b-7t71wwpfoo] {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
}

    .new-patient-section .text-muted[b-7t71wwpfoo] {
        color: rgba(255, 255, 255, 0.72) !important;
        font-size: 0.8rem;
    }

.new-patient-text[b-7t71wwpfoo] {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.new-patient-link[b-7t71wwpfoo] {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
    border-bottom: 1.5px solid rgba(255,255,255,0.5);
    padding-bottom: 1px;
    margin-right: 4px;
}

    .new-patient-link:hover:not(.disabled-link)[b-7t71wwpfoo] {
        opacity: 0.85;
        border-bottom-color: white;
    }

.disabled-link[b-7t71wwpfoo] {
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
    pointer-events: none;
    border-bottom-color: transparent !important;
}

/* ===== MODALS ===== */
.modal-custom[b-7t71wwpfoo] {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 1050;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    .modal-custom.show[b-7t71wwpfoo] {
        display: flex;
    }

.modal-card[b-7t71wwpfoo] {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem; /* Reduced vertical padding from 2rem to 1.5rem */
    max-width: 400px;
    width: 92%;
    text-align: center;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    animation: fadeInScale-b-7t71wwpfoo 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

    .modal-card.error[b-7t71wwpfoo] {
        border-top: 6px solid #e53935;
    }

    .modal-card.success[b-7t71wwpfoo] {
        border-top: 6px solid #2e7d32;
    }

    .modal-card.otp[b-7t71wwpfoo] {
        border-top: 6px solid #3d7a9e;
    }

    .modal-card.error .modal-title[b-7t71wwpfoo] {
        color: #e53935;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card.success .modal-title[b-7t71wwpfoo] {
        color: #2e7d32;
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .modal-card.otp .modal-title[b-7t71wwpfoo] {
        color: #3d7a9e;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card p[b-7t71wwpfoo] {
        color: #444;
        font-size: 0.9rem; /* Slightly reduced from 0.95rem */
        line-height: 1.4; /* Slightly tighter from 1.5 */
    }

/* Checkmark */
.checkmark-circle[b-7t71wwpfoo] {
    width: 70px; /* Reduced from 76px */
    height: 70px; /* Reduced from 76px */
    border-radius: 50%;
    border: 4px solid #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: white;
}

.checkmark[b-7t71wwpfoo] {
    width: 26px; /* Slightly reduced from 28px */
    height: 12px; /* Slightly reduced from 14px */
    border-left: 4px solid #2e7d32;
    border-bottom: 4px solid #2e7d32;
    transform: rotate(-45deg) translate(2px, -2px);
}

@keyframes fadeInScale-b-7t71wwpfoo {
    from {
        opacity: 0;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Buttons */
.modal-card button[b-7t71wwpfoo] {
    margin-top: 1rem; /* Reduced from 1.1rem */
    padding: 0.5rem 1.2rem; /* Reduced vertical padding from 0.6rem to 0.5rem */
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.13);
}

.modal-card.error button[b-7t71wwpfoo] {
    background: #e53935;
    color: #fff;
}

    .modal-card.error button:hover[b-7t71wwpfoo] {
        background: #c62828;
        transform: translateY(-2px);
    }

.modal-card.success button[b-7t71wwpfoo] {
    background: #2e7d32;
    color: #fff;
}

    .modal-card.success button:hover[b-7t71wwpfoo] {
        background: #1b5e20;
        transform: translateY(-2px);
    }

.modal-card.otp button[b-7t71wwpfoo] {
    background: #3d7a9e;
    color: #fff;
}

    .modal-card.otp button:hover[b-7t71wwpfoo] {
        background: #2d6a8c;
        transform: translateY(-2px);
    }

/* ===== LOGIN TABS ===== */
.login-tabs[b-7t71wwpfoo] {
    display: flex;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem; /* Reduced from 0.5rem */
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem; /* Added to control spacing below tabs */
}

.tab-button[b-7t71wwpfoo] {
    flex: 1;
    padding: 0.5rem 0.7rem; /* Reduced vertical padding from 0.6rem to 0.5rem */
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem; /* Slightly reduced from 0.85rem */
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

    .tab-button:hover:not(:disabled)[b-7t71wwpfoo] {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.35);
        color: white;
    }

    .tab-button.active[b-7t71wwpfoo] {
        background: white;
        border-color: white;
        color: #3d7a9e;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .tab-button:disabled[b-7t71wwpfoo] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .tab-button i[b-7t71wwpfoo] {
        font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    }

/* ===== MAIN TABS (Title + Content) ===== */
.main-tabs-container[b-7t71wwpfoo] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tab-section[b-7t71wwpfoo] {
    transition: opacity 0.3s ease;
}

.tab-section.disabled .tab-content-wrapper[b-7t71wwpfoo] {
    opacity: 0.5;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
}

.tab-title[b-7t71wwpfoo] {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.25rem;
}

    .tab-title:hover[b-7t71wwpfoo] {
        border-bottom-color: rgba(255, 255, 255, 0.5);
        color: rgba(255, 255, 255, 0.95);
    }

.tab-section.active .tab-title[b-7t71wwpfoo] {
    border-bottom-color: white;
    color: white;
}

.tab-content-wrapper[b-7t71wwpfoo] {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.7rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    animation: fadeIn-b-7t71wwpfoo 0.3s ease-in;
}

@keyframes fadeIn-b-7t71wwpfoo {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .login-card[b-7t71wwpfoo] {
        padding: 1.2rem 1.2rem; /* Further reduced for mobile */
        border-radius: 18px;
    }

    .login-title[b-7t71wwpfoo] {
        font-size: 1.1rem; /* Further reduced for mobile */
        white-space: normal; /* Allow wrapping on very small screens */
    }

    .branch-logo-wrap[b-7t71wwpfoo] {
        width: 40px; /* Further reduced for mobile */
        height: 40px; /* Further reduced for mobile */
    }

    .branch-pill-text[b-7t71wwpfoo] {
        font-size: 0.75rem; /* Further reduced for mobile */
    }

    .tab-button[b-7t71wwpfoo] {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }

        .tab-button i[b-7t71wwpfoo] {
            font-size: 0.8rem;
        }

    .branch-name-pill[b-7t71wwpfoo] {
        padding: 0.3rem 0.7rem; /* Further reduced for mobile */
    }
}

/* ===== ERROR MESSAGE SECTION ===== */
.error-message-section[b-7t71wwpfoo] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem; /* Reduced padding from 2.5rem 1.5rem */
    text-align: center;
}

.error-icon-wrap[b-7t71wwpfoo] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px; /* Reduced from 80px */
    height: 70px; /* Reduced from 80px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.error-icon[b-7t71wwpfoo] {
    font-size: 2.2rem; /* Slightly reduced from 2.5rem */
    color: rgba(255, 255, 255, 0.95);
}

.error-heading[b-7t71wwpfoo] {
    color: white;
    font-size: 1.3rem; /* Slightly reduced from 1.4rem */
    font-weight: 700;
    margin-bottom: 0.6rem; /* Reduced from 0.8rem */
    letter-spacing: -0.3px;
}

.error-description[b-7t71wwpfoo] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    line-height: 1.5; /* Slightly tighter from 1.6 */
    margin: 0;
}

/* ===== WELCOME MODAL ===== */
.modal-card.welcome[b-7t71wwpfoo] {
    border-top: 6px solid #3d7a9e;
    background: white;
    position: relative;
}

    .modal-card.welcome .modal-title[b-7t71wwpfoo] {
        color: #2c3e50;
        font-weight: 700;
        font-size: 1.25rem; /* Slightly reduced from 1.35rem */
        margin-bottom: 0.6rem; /* Reduced from 0.8rem */
        letter-spacing: -0.3px;
    }

    .modal-card.welcome p[b-7t71wwpfoo] {
        margin: 0.5rem 0;
        color: #444;
        font-size: 0.9rem;
        line-height: 1.5;
    }

.welcome-icon-wrap[b-7t71wwpfoo] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Reduced from 1.2rem */
}

.welcome-icon[b-7t71wwpfoo] {
    width: 60px; /* Reduced from 70px */
    height: 60px; /* Reduced from 70px */
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 122, 158, 0.15) 0%, rgba(61, 122, 158, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Slightly reduced from 2rem */
    color: #3d7a9e;
    box-shadow: 0 2px 8px rgba(61, 122, 158, 0.12);
}

.group-name-bold[b-7t71wwpfoo] {
    font-weight: 700;
    font-size: 1rem; 
}

.welcome-text-en[b-7t71wwpfoo] {
    font-size: 0.95rem !important; /* Slightly reduced from 0.98rem */
    margin-bottom: 0.6rem !important; /* Reduced from 0.8rem */
    text-align: left;
    line-height: 1.5;
}

.welcome-text-ar[b-7t71wwpfoo] {
    font-size: 0.95rem !important;
    direction: rtl;
    margin-bottom: 0.8rem !important; /* Reduced from 1rem */
    text-align: right;
    line-height: 1.5;
}

.welcome-subtitle[b-7t71wwpfoo] {
    color: #666;
    font-size: 0.85rem; /* Slightly reduced from 0.92rem */
    margin: 0.8rem 0;
    line-height: 1.5;
}

.btn-welcome-continue[b-7t71wwpfoo] {
    background: linear-gradient(135deg, #3d7a9e 0%, #2d6a8c 100%);
    color: white;
    margin-top: 1rem; /* Reduced from 1.2rem */
    padding: 0.6rem 1.8rem; /* Reduced vertical padding from 0.7rem to 0.6rem */
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(61, 122, 158, 0.25);
}

    .btn-welcome-continue:hover[b-7t71wwpfoo] {
        background: linear-gradient(135deg, #2d6a8c 0%, #1f4f6f 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(61, 122, 158, 0.35);
    }

    .btn-welcome-continue:active[b-7t71wwpfoo] {
        transform: translateY(0);
    }

/* ===== LOGIN TABS — compact pill style ===== */
.login-tabs[b-7t71wwpfoo] {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.tab-button[b-7t71wwpfoo] {
    flex: 1;
    padding: 0.35rem 0.4rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    letter-spacing: 0.1px;
}

    .tab-button:hover:not(:disabled)[b-7t71wwpfoo] {
        background: rgba(255, 255, 255, 0.12);
        color: white;
    }

    .tab-button.active[b-7t71wwpfoo] {
        background: white;
        color: #3d7a9e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    }

    .tab-button:disabled[b-7t71wwpfoo] {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .tab-button i[b-7t71wwpfoo] {
        font-size: 0.75rem;
    }

/* ===== INPUT FIELDS — compact with floating label feel ===== */
.form-label[b-7t71wwpfoo] {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-control[b-7t71wwpfoo] {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    transition: all 0.2s;
    color: #2a2a2a;
    height: 36px;
}

    .form-control:focus[b-7t71wwpfoo] {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
        background: white;
        outline: none;
    }

    .form-control:disabled[b-7t71wwpfoo] {
        opacity: 0.55;
    }

    /* Valid / invalid state ring colors */
    .form-control.is-valid[b-7t71wwpfoo] {
        border-color: #4cd98a !important;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: none;
    }

    .form-control.is-invalid[b-7t71wwpfoo] {
        border-color: #ff7675 !important;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: none;
    }

    /* Override Bootstrap's default green/red bg icons */
    .form-control.is-valid[b-7t71wwpfoo],
    .form-control.is-invalid[b-7t71wwpfoo] {
        background-image: none;
        padding-right: 0.85rem;
    }

/* Validation feedback text */
.invalid-feedback[b-7t71wwpfoo] {
    display: block;
    font-size: 0.65rem;
    color: #ffe0de;
    margin-top: 0.15rem;
    font-weight: 500;
}

.form-text[b-7t71wwpfoo] {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

    /* Character counter badge inside hint */
    .form-text .ms-1[b-7t71wwpfoo] {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        padding: 0 5px;
        font-size: 0.6rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.75);
    }

/* Branch select — same compact treatment */
.mb-3 select.form-control[b-7t71wwpfoo] {
    height: 36px;
    padding-top: 0;
    padding-bottom: 0;
    cursor: pointer;
}

/* ===== LOGIN BUTTON — tighter ===== */
.btn-login[b-7t71wwpfoo] {
    background: #1c4660;
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.2px;
    width: 60%;
    display: block;
    margin: 0.5rem auto 0;
}

    .btn-login:hover:not(:disabled)[b-7t71wwpfoo] {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
        background: #2d6a8c;
        color: white;
    }

    .btn-login:active:not(:disabled)[b-7t71wwpfoo] {
        transform: translateY(0);
    }

    .btn-login:disabled[b-7t71wwpfoo] {
        opacity: 0.55;
        cursor: not-allowed;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .tab-button[b-7t71wwpfoo] {
        font-size: 0.7rem;
        padding: 0.35rem 0.4rem;
        gap: 0.22rem;
    }

        .tab-button i[b-7t71wwpfoo] {
            font-size: 0.75rem;
        }

    .form-control[b-7t71wwpfoo] {
        height: 38px;
        font-size: 0.85rem;
    }

    .form-label[b-7t71wwpfoo] {
        font-size: 0.7rem;
    }
}

/* Better branch logo styling - remove white space and make it cleaner */

.branch-logo-wrap[b-7t71wwpfoo] {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 0;
}

/* Logo image fills the box fully */
.branch-logo-img[b-7t71wwpfoo] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    background: transparent;
    padding: 0;
    margin: 0;
}
.login-card[b-7t71wwpfoo] {
    padding: 0.7rem 2.2rem;
    max-width: 550px;
    margin: 0;
}
.portal-title-wrap[b-7t71wwpfoo] {
    margin-bottom: 0.35rem;
}
.branch-row[b-7t71wwpfoo] {
    margin-bottom: 0.35rem;
    gap: 0.6rem;
}
.tab-content-wrapper[b-7t71wwpfoo] {
    padding: 0.5rem 0.7rem;
}
.main-tabs-container[b-7t71wwpfoo] {
    gap: 0.25rem;
}
.welcome-banner[b-7t71wwpfoo] {
    margin-bottom: 0.25rem;
}
.login-card .mb-3[b-7t71wwpfoo] {
    margin-bottom: 0.4rem !important;
}
.login-container[b-7t71wwpfoo] {
    overflow-y: auto;
    padding: 0.25rem;
    min-height: 100vh;
}
/* /Pages/Auth/OTP.razor.rz.scp.css */
/* ===== OTP PAGE ===== */

.otp-container[b-9l89k2293w] {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.otp-card[b-9l89k2293w] {
    background: linear-gradient(160deg, #3d7a9e 0%, #4b8fb5 60%, #5aa0c8 100%);
    border-radius: 22px;
    padding: 2.5rem 2.8rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 460px;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Branch Row (Logo + Name Pill) ── */
.branch-row[b-9l89k2293w] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
    flex-wrap: nowrap;
}

/* Logo box */
.branch-logo-wrap[b-9l89k2293w] {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.branch-logo-img[b-9l89k2293w] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.branch-logo-placeholder[b-9l89k2293w] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.branch-logo-icon[b-9l89k2293w] {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Branch name pill */
.branch-name-pill[b-9l89k2293w] {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    flex: 1;
    min-width: 0;
    backdrop-filter: blur(6px);
}

.branch-pill-icon[b-9l89k2293w] {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    flex-shrink: 0;
}

.branch-pill-text[b-9l89k2293w] {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display:contents;
}

/* ── Skeleton loading ── */
.skeleton-row[b-9l89k2293w] {
    margin-bottom: 1.4rem;
}

.skeleton-logo[b-9l89k2293w] {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    animation: shimmer-b-9l89k2293w 1.4s infinite;
}

.skeleton-name[b-9l89k2293w] {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    animation: shimmer-b-9l89k2293w 1.4s infinite;
}

@keyframes shimmer-b-9l89k2293w {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ── Portal title + Trial badge ── */
.otp-header[b-9l89k2293w] {
    margin-bottom: 0;
}

.portal-title-wrap[b-9l89k2293w] {
    text-align: center;
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.otp-title[b-9l89k2293w] {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.trial-badge[b-9l89k2293w] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 0.22rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ── Verify section (icon + subtitle) ── */
.verify-section[b-9l89k2293w] {
    text-align: center;
    margin-bottom: 1.8rem;
}

.otp-icon[b-9l89k2293w] {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}

.verify-title[b-9l89k2293w] {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.otp-subtitle[b-9l89k2293w] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 320px;
    margin-inline: auto;
}

/* ── Form ── */
.form-label[b-9l89k2293w] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-control[b-9l89k2293w] {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.25s;
    color: #2a2a2a;
}

/* Error feedback styling */
.invalid-feedback[b-9l89k2293w] {
    display: block;
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
    text-align: center;
}

.text-muted[b-9l89k2293w] {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75) !important;
    text-align: center;
    display: block;
    margin-top: 0.4rem;
}

/* OTP input special style */
.otp-input[b-9l89k2293w] {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.55rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

    .otp-input[b-9l89k2293w]::placeholder {
        letter-spacing: 0.4rem;
        font-size: 1rem;
        color: #bbb;
    }

/* ── OTP Digits Container ── */
.otp-digits-container[b-9l89k2293w] {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem auto;
}

/* ── Individual OTP Digit Input ── */
.otp-digit-input[b-9l89k2293w] {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    padding: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: #2a2a2a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -moz-appearance: textfield;
}

    /* Remove number input spinners */
    .otp-digit-input[b-9l89k2293w]::-webkit-outer-spin-button,
    .otp-digit-input[b-9l89k2293w]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-digit-input[b-9l89k2293w]::placeholder {
        color: #bbb;
        font-size: 1rem;
    }

    .otp-digit-input:focus[b-9l89k2293w] {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
        background: white;
        outline: none;
        transform: scale(1.08);
    }

    .otp-digit-input:hover:not(:disabled)[b-9l89k2293w] {
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .otp-digit-input:disabled[b-9l89k2293w] {
        background: rgba(255, 255, 255, 0.7);
        cursor: not-allowed;
        opacity: 0.6;
    }

    .otp-digit-input:invalid[b-9l89k2293w] {
        border-color: #e53935;
    }

.form-control:focus[b-9l89k2293w] {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    background: white;
    outline: none;
}

/* ── Confirm Button ── */
.btn-confirm[b-9l89k2293w] {
    background: #1c4660;
    border: none;
    border-radius: 11px;
    color: white;
    padding: 0.78rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.2px;
    width: 70%;
    display: block;
    margin: 1.4rem auto 0;
}

    .btn-confirm:hover:not(:disabled)[b-9l89k2293w] {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
        color: #2d6a8c;
    }

    .btn-confirm:active:not(:disabled)[b-9l89k2293w] {
        transform: translateY(0);
    }

    .btn-confirm:disabled[b-9l89k2293w] {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ── Resend Link ── */
.resend-link[b-9l89k2293w] {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    line-height: 1;
}

    .resend-link .text-muted[b-9l89k2293w] {
        color: rgba(255, 255, 255, 0.72) !important;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    .resend-link span[b-9l89k2293w] {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    .resend-link a[b-9l89k2293w] {
        color: white;
        text-decoration: none;
        font-weight: 700;
        border-bottom: 1.5px solid rgba(255,255,255,0.5);
        transition: opacity 0.2s;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: 0;
    }

        .resend-link a:hover[b-9l89k2293w] {
            opacity: 0.85;
            border-bottom-color: white;
        }

/* ===== MODALS ===== */
.modal-custom[b-9l89k2293w] {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 1050;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    .modal-custom.show[b-9l89k2293w] {
        display: flex;
    }

.modal-card[b-9l89k2293w] {
    background: white;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    max-width: 400px;
    width: 92%;
    text-align: center;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    animation: fadeInScale-b-9l89k2293w 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

    .modal-card.error[b-9l89k2293w] {
        border-top: 6px solid #e53935;
    }

    .modal-card.success[b-9l89k2293w] {
        border-top: 6px solid #2e7d32;
    }

    .modal-card.otp[b-9l89k2293w] {
        border-top: 6px solid #3d7a9e;
    }

    .modal-card.error .modal-title[b-9l89k2293w] {
        color: #e53935;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card.success .modal-title[b-9l89k2293w] {
        color: #2e7d32;
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .modal-card.otp .modal-title[b-9l89k2293w] {
        color: #3d7a9e;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card p[b-9l89k2293w] {
        color: #444;
        font-size: 0.95rem;
        line-height: 1.5;
    }

/* Checkmark */
.checkmark-circle[b-9l89k2293w] {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: white;
}

.checkmark[b-9l89k2293w] {
    width: 28px;
    height: 14px;
    border-left: 4px solid #2e7d32;
    border-bottom: 4px solid #2e7d32;
    transform: rotate(-45deg) translate(2px, -2px);
}

@keyframes fadeInScale-b-9l89k2293w {
    from {
        opacity: 0;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Buttons */
.modal-card button[b-9l89k2293w] {
    margin-top: 1.1rem;
    padding: 0.6rem 1.4rem;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.13);
}

.modal-card.error button[b-9l89k2293w] {
    background: #e53935;
    color: #fff;
}

    .modal-card.error button:hover[b-9l89k2293w] {
        background: #c62828;
        transform: translateY(-2px);
    }

.modal-card.success button[b-9l89k2293w] {
    background: #2e7d32;
    color: #fff;
}

    .modal-card.success button:hover[b-9l89k2293w] {
        background: #1b5e20;
        transform: translateY(-2px);
    }

.modal-card.otp button[b-9l89k2293w] {
    background: #3d7a9e;
    color: #fff;
}

    .modal-card.otp button:hover[b-9l89k2293w] {
        background: #2d6a8c;
        transform: translateY(-2px);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .otp-card[b-9l89k2293w] {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .otp-title[b-9l89k2293w] {
        font-size: 1.45rem;
    }

    .branch-logo-wrap[b-9l89k2293w] {
        width: 48px;
        height: 48px;
    }

    .branch-pill-text[b-9l89k2293w] {
        font-size: 0.82rem;
    }

    .otp-icon[b-9l89k2293w] {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
    }

    /* Mobile OTP digits container */
    .otp-digits-container[b-9l89k2293w] {
        gap: 0.45rem;
        margin: 1rem auto;
    }

    /* Smaller digit inputs on mobile */
    .otp-digit-input[b-9l89k2293w] {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

        .otp-digit-input:focus[b-9l89k2293w] {
            transform: scale(1.05);
        }

        .otp-digit-input[b-9l89k2293w]::placeholder {
            font-size: 0.85rem;
        }

    .btn-confirm[b-9l89k2293w] {
        width: 80%;
    }
}

@media (max-width: 450px) {
    .otp-card[b-9l89k2293w] {
        padding: 1.5rem 1.2rem;
    }

    .otp-title[b-9l89k2293w] {
        font-size: 1.3rem;
    }

    .form-label[b-9l89k2293w] {
        font-size: 0.85rem;
    }

    /* Extra small digit inputs */
    .otp-digits-container[b-9l89k2293w] {
        gap: 0.35rem;
    }

    .otp-digit-input[b-9l89k2293w] {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        padding: 0.3rem;
    }

        .otp-digit-input[b-9l89k2293w]::placeholder {
            font-size: 0.75rem;
        }

    .btn-confirm[b-9l89k2293w] {
        font-size: 0.95rem;
        padding: 0.65rem;
        width: 85%;
    }

    .resend-link[b-9l89k2293w] {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .otp-digits-container[b-9l89k2293w] {
        gap: 0.6rem;
    }

    .otp-digit-input[b-9l89k2293w] {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

        .otp-digit-input:focus[b-9l89k2293w] {
            transform: scale(1.1);
        }
}
.branch-logo-wrap[b-9l89k2293w] {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 0;
}

/* Logo image fills the box fully */
.branch-logo-img[b-9l89k2293w] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    background: transparent;
    padding: 0;
    margin: 0;
}
/* /Pages/Dr/DrAppointments.razor.rz.scp.css */
/* ???????????????????????????????????????????
   DR_APPOINTMENTS.CSS  – full-width, mobile-first
   Inherits base styles from Appoitments.razor.css
   ??????????????????????????????????????????? */

/* ?? CSS VARIABLES ?? */
.appointments-container[b-v2h9xe7eg2] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green: #22c55e;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --orange: #f97316;
    --orange-bg: #fed7aa;
    --orange-text: #7c2d12;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
}

/* ?? CONTAINER: full width, no centering cap ?? */
.appointments-container[b-v2h9xe7eg2] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ?? DASHBOARD CARDS ?? */
.dashboard-cards[b-v2h9xe7eg2] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-card[b-v2h9xe7eg2] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .2s, box-shadow .2s;
}

    .dashboard-card:hover[b-v2h9xe7eg2] {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }

.card-icon[b-v2h9xe7eg2] {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

    .card-icon.appointments[b-v2h9xe7eg2] {
        background: var(--blue-bg);
        color: var(--blue-text);
    }

    .card-icon.waiting[b-v2h9xe7eg2] {
        background: var(--orange-bg);
        color: var(--orange-text);
    }

    .card-icon.total[b-v2h9xe7eg2] {
        background: var(--green-bg);
        color: var(--green-text);
    }

.card-content[b-v2h9xe7eg2] {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.card-label[b-v2h9xe7eg2] {
    font-size: .85rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.card-count[b-v2h9xe7eg2] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-1);
}

/* ?? LOADING ?? */
.loading-spinner[b-v2h9xe7eg2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-v2h9xe7eg2] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-v2h9xe7eg2] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: appt-spin-b-v2h9xe7eg2 1s linear infinite;
}

@keyframes appt-spin-b-v2h9xe7eg2 {
    to {
        transform: rotate(360deg);
    }
}

/* ?? EMPTY STATE ?? */
.empty-state[b-v2h9xe7eg2] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-v2h9xe7eg2] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-v2h9xe7eg2] {
        color: var(--text-2);
        font-size: 1.1rem;
    }

/* ?? FILTERS PANEL ?? */
.filters-panel[b-v2h9xe7eg2] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 2px solid var(--border);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-v2h9xe7eg2] {
    font-weight: 700;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
}

.filters-grid[b-v2h9xe7eg2] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.filter-group[b-v2h9xe7eg2] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label[b-v2h9xe7eg2] {
    font-weight: 600;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: .8rem;
    margin-bottom: 4px;
    display: block;
}

.filter-input[b-v2h9xe7eg2],
.filter-select[b-v2h9xe7eg2] {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-white);
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
    font-size: .9rem;
    transition: all .2s ease;
}

.filter-select[b-v2h9xe7eg2] {
    background: var(--bg-surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa5b4'/%3E%3C/svg%3E") no-repeat right 8px center;
    padding-right: 24px;
}

    .filter-input:focus[b-v2h9xe7eg2],
    .filter-select:focus[b-v2h9xe7eg2] {
        outline: none;
        border-color: var(--brand);
        background-color: var(--bg-white);
    }

.clear-btn[b-v2h9xe7eg2] {
    padding: 8px 14px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .2s ease;
    font-size: .85rem;
}

    .clear-btn:hover[b-v2h9xe7eg2] {
        background: var(--bg-surf);
        border-color: var(--brand);
        color: var(--brand);
    }

    .clear-btn:active[b-v2h9xe7eg2] {
        transform: scale(0.98);
    }

/* ?? QUICK FILTERS ?? */
.quick-filters[b-v2h9xe7eg2] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-filter-btn[b-v2h9xe7eg2] {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-surf);
    color: var(--text-2);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}

    .quick-filter-btn:hover[b-v2h9xe7eg2] {
        border-color: var(--brand);
        color: var(--brand);
        background: var(--blue-bg);
    }

    .quick-filter-btn.active[b-v2h9xe7eg2] {
        background: var(--brand);
        border-color: var(--brand);
        color: white;
    }

/* ?? SORT BAR ?? */
.sort-bar[b-v2h9xe7eg2] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-label[b-v2h9xe7eg2] {
    color: var(--text-3);
    font-weight: 600;
    font-size: .95rem;
}

.sort-btn[b-v2h9xe7eg2] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: .9rem;
    transition: background .15s, color .15s;
}

    .sort-btn:hover[b-v2h9xe7eg2] {
        background: var(--brand);
        color: #fff;
    }

/* ?? APPOINTMENT TYPE LEGEND ?? */
.appointments-legend[b-v2h9xe7eg2] {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    font-size: .85rem;
    flex-wrap: wrap;
}

.legend-title[b-v2h9xe7eg2] {
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.legend-item[b-v2h9xe7eg2] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-square[b-v2h9xe7eg2] {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-normal .legend-square[b-v2h9xe7eg2] {
    background: var(--blue-bg);
    border: 2px solid var(--blue-text);
}

.legend-waiting .legend-square[b-v2h9xe7eg2] {
    background: var(--orange-bg);
    border: 2px solid var(--orange-text);
}

.legend-text[b-v2h9xe7eg2] {
    color: var(--text-2);
    font-weight: 600;
}

/* ?? DESKTOP TABLE ?? */
.appointments-table-wrapper[b-v2h9xe7eg2] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.appointments-table[b-v2h9xe7eg2] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 900px;
}

    .appointments-table thead[b-v2h9xe7eg2] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .appointments-table thead th[b-v2h9xe7eg2] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

    .appointments-table tbody tr[b-v2h9xe7eg2] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .appointments-table tbody tr:hover[b-v2h9xe7eg2] {
            background: var(--bg-surf);
        }

        .appointments-table tbody tr.waiting-appointment[b-v2h9xe7eg2] {
            background-color: rgba(249, 115, 22, 0.05);
        }

            .appointments-table tbody tr.waiting-appointment:hover[b-v2h9xe7eg2] {
                background-color: rgba(249, 115, 22, 0.08);
            }

    .appointments-table tbody td[b-v2h9xe7eg2] {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
        text-align: left;
    }

.sort-header[b-v2h9xe7eg2] {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    font-size: .9rem;
}

    .sort-header:hover[b-v2h9xe7eg2] {
        color: var(--brand);
    }

/* ?? STATUS BADGES ?? */
.badge[b-v2h9xe7eg2] {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-normal[b-v2h9xe7eg2] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

.badge-waiting[b-v2h9xe7eg2] {
    background: var(--orange-bg) !important;
    color: var(--orange-text) !important;
}

.badge-info[b-v2h9xe7eg2] {
    background: transparent !important;
    color: var(--text-2) !important;
    border: 1px solid var(--border) !important;
}

.badge-primary[b-v2h9xe7eg2] {
    background: transparent !important;
    color: var(--text-2) !important;
    border: 1px solid var(--border) !important;
}

.badge-secondary[b-v2h9xe7eg2] {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

/* ?? MOBILE CARD LIST ?? */
.appt-list[b-v2h9xe7eg2] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.appt-card[b-v2h9xe7eg2] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: appt-cardIn-b-v2h9xe7eg2 .25s ease-out both;
}

    .appt-card.waiting[b-v2h9xe7eg2] {
        border-left: 4px solid var(--orange);
        background-color: rgba(249, 115, 22, 0.02);
    }

@keyframes appt-cardIn-b-v2h9xe7eg2 {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-v2h9xe7eg2] {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
}

.card-date-col[b-v2h9xe7eg2] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col.waiting-date[b-v2h9xe7eg2] {
        background: linear-gradient(135deg, var(--orange), #ea580c);
    }

    .card-date-col .day-num[b-v2h9xe7eg2] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-v2h9xe7eg2] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-v2h9xe7eg2] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

    .card-date-col .card-time-mobile[b-v2h9xe7eg2] {
        font-size: 9px;
        font-weight: 700;
        opacity: .85;
        margin-top: 3px;
        border-top: 1px solid rgba(255,255,255,.3);
        padding-top: 2px;
    }

.card-main[b-v2h9xe7eg2] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-v2h9xe7eg2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-time[b-v2h9xe7eg2] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-v2h9xe7eg2] {
        font-size: 11px;
        color: var(--text-3);
    }

.type-badge[b-v2h9xe7eg2] {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-info-rows[b-v2h9xe7eg2] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.info-row[b-v2h9xe7eg2] {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .info-row i[b-v2h9xe7eg2] {
        font-size: 11px;
        color: var(--text-3);
        flex-shrink: 0;
        width: 13px;
        text-align: center;
    }

    .info-row span[b-v2h9xe7eg2] {
        font-size: 12px;
        color: var(--text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ?? PAGINATION ?? */
.pagination-container[b-v2h9xe7eg2] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pagination[b-v2h9xe7eg2] {
    gap: .35rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item[b-v2h9xe7eg2] {
    list-style: none;
}

    .page-item.active .page-link[b-v2h9xe7eg2] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-v2h9xe7eg2] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-v2h9xe7eg2] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-v2h9xe7eg2] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination-info[b-v2h9xe7eg2] {
    font-size: .85rem;
    color: var(--text-3);
}

/* ?? MODALS ?? */
.msg-modal-backdrop[b-v2h9xe7eg2] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: appt-fadeIn-b-v2h9xe7eg2 .2s ease;
    isolation: isolate;
}

@keyframes appt-fadeIn-b-v2h9xe7eg2 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-v2h9xe7eg2] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: appt-slideUp-b-v2h9xe7eg2 .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes appt-slideUp-b-v2h9xe7eg2 {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-card.error[b-v2h9xe7eg2] {
    border-top: 4px solid #dc3545;
}

.modal-card.success[b-v2h9xe7eg2] {
    border-top: 4px solid #28a745;
}

.modal-card-header[b-v2h9xe7eg2] {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title[b-v2h9xe7eg2] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.modal-card.error .modal-title[b-v2h9xe7eg2] {
    color: #dc3545;
}

.modal-card.success .modal-title[b-v2h9xe7eg2] {
    color: #28a745;
}

.modal-card-body[b-v2h9xe7eg2] {
    padding: 1.25rem 1.5rem;
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.6;
}

    .modal-card-body p[b-v2h9xe7eg2] {
        margin: 0;
        word-break: break-word;
    }

.modal-card-footer[b-v2h9xe7eg2] {
    padding: .9rem 1.5rem;
    border-top: 1px solid var(--border-lt);
    display: flex;
    justify-content: flex-end;
}

    .modal-card-footer .btn-primary[b-v2h9xe7eg2] {
        background: var(--brand);
        color: #fff;
        border: none;
        padding: .6rem 1.5rem;
        border-radius: var(--r-sm);
        font-weight: 600;
        cursor: pointer;
        font-size: .9rem;
    }

        .modal-card-footer .btn-primary:hover[b-v2h9xe7eg2] {
            background: var(--brand-dark);
        }

.sheet-close[b-v2h9xe7eg2] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

    .sheet-close:hover[b-v2h9xe7eg2] {
        background: var(--border);
        color: var(--text-1);
    }

/* ???????????????????????????????????????????
   RESPONSIVE
   ??????????????????????????????????????????? */

/* Mobile: show cards, hide table */
@media (max-width: 767px) {
    .appointments-container[b-v2h9xe7eg2] {
        padding: .75rem;
    }

    .d-md-none[b-v2h9xe7eg2] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-v2h9xe7eg2],
    .d-md-block[b-v2h9xe7eg2] {
        display: none !important;
    }

    /* dashboard cards: 1 column on mobile */
    .dashboard-cards[b-v2h9xe7eg2] {
        grid-template-columns: 1fr;
    }

    /* filters: 1 column on mobile */
    .filters-grid[b-v2h9xe7eg2] {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .clear-btn[b-v2h9xe7eg2] {
        grid-column: 1 / -1;
    }

    /* pagination */
    .page-link[b-v2h9xe7eg2] {
        padding: .45rem .7rem;
        font-size: 12px;
    }
}

/* Desktop: show table, hide cards */
@media (min-width: 768px) {
    .appointments-container[b-v2h9xe7eg2] {
        padding: 1.5rem;
    }

    .d-md-none[b-v2h9xe7eg2] {
        display: none !important;
    }

    .d-none.d-md-block[b-v2h9xe7eg2],
    .d-md-block[b-v2h9xe7eg2] {
        display: block !important;
    }

    /* dashboard cards: 3 columns on desktop */
    .dashboard-cards[b-v2h9xe7eg2] {
        grid-template-columns: repeat(3, 1fr);
    }

    /* filters: 3-column grid */
    .filters-grid[b-v2h9xe7eg2] {
        grid-template-columns: repeat(3, 1fr) auto;
    }

    .clear-btn[b-v2h9xe7eg2] {
        grid-column: auto;
    }
}

/* Scrollbar Styling for Table Wrapper */
.appointments-table-wrapper[b-v2h9xe7eg2]::-webkit-scrollbar {
    height: 8px;
}

.appointments-table-wrapper[b-v2h9xe7eg2]::-webkit-scrollbar-track {
    background: var(--border-lt);
    border-radius: 4px;
}

.appointments-table-wrapper[b-v2h9xe7eg2]::-webkit-scrollbar-thumb {
    background: var(--text-3);
    border-radius: 4px;
    transition: background .2s;
}

    .appointments-table-wrapper[b-v2h9xe7eg2]::-webkit-scrollbar-thumb:hover {
        background: var(--text-2);
    }

/* ???????????????????????????????????????????????????????
   RTL SUPPORT – Arabic layout overrides
   ??????????????????????????????????????????????????????? */

[dir="rtl"] .appointments-container[b-v2h9xe7eg2] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

[dir="rtl"] .appointments-table thead th[b-v2h9xe7eg2] {
    text-align: right;
}

[dir="rtl"] .appointments-table tbody td[b-v2h9xe7eg2] {
    text-align: right;
}

[dir="rtl"] .filter-select[b-v2h9xe7eg2] {
    background-position: left 8px center;
    padding: 6px 8px 6px 24px;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .filter-label[b-v2h9xe7eg2] {
    text-align: right;
}

[dir="rtl"] .filter-group[b-v2h9xe7eg2] {
    align-items: flex-end;
}

[dir="rtl"] .filters-title[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .clear-btn[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .sort-bar[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .card-strip[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-main[b-v2h9xe7eg2] {
    text-align: right;
}

[dir="rtl"] .time-row[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-row[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-info-rows[b-v2h9xe7eg2] {
    text-align: right;
}

[dir="rtl"] .appt-card.waiting[b-v2h9xe7eg2] {
    border-left: none;
    border-right: 4px solid var(--orange);
}

[dir="rtl"] .card-time[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-card-header[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-title[b-v2h9xe7eg2] {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-card-body[b-v2h9xe7eg2] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .modal-card-footer[b-v2h9xe7eg2] {
    justify-content: flex-start;
}

[dir="rtl"] .pagination-container[b-v2h9xe7eg2] {
    direction: rtl;
}

[dir="rtl"] .page-link[b-v2h9xe7eg2] {
    direction: rtl;
    flex-direction: row-reverse;
}

@media (max-width: 767px) {
    [dir="rtl"] .filters-grid[b-v2h9xe7eg2] {
        direction: rtl;
    }

    [dir="rtl"] .clear-btn[b-v2h9xe7eg2] {
        justify-content: center;
    }
}
/* /Pages/Dr/DrDashboard.razor.rz.scp.css */
.dashboard-wrapper[b-zptp8x0cnt] {
    display: flex;
    min-height: 100vh;
    padding: 20px;
}

.main-content-wrapper[b-zptp8x0cnt] {
    flex: 1;
    width: 100%;
}

.dashboard-header[b-zptp8x0cnt] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 80%);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

    .dashboard-header[b-zptp8x0cnt]::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

.header-content[b-zptp8x0cnt] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 1rem;
}

.header-text[b-zptp8x0cnt] {
    flex: 1;
}

.welcome-title[b-zptp8x0cnt] {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-subtitle[b-zptp8x0cnt] {
    color: rgba(255,255,255,0.9);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

/* Circular Card Styles */
.circle-card-wrapper[b-zptp8x0cnt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.department-card[b-zptp8x0cnt] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.5rem 0.5rem !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 0 !important;
    box-shadow: none !important;
    min-height: 220px;
    text-decoration: none;
}

    .department-card:hover[b-zptp8x0cnt] {
        transform: translateY(-8px);
    }

.department-icon-container[b-zptp8x0cnt] {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    background: transparent !important;
    border: none !important;
}

.department-icon[b-zptp8x0cnt] {
    width: 200px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    padding: 20px;
    transform-origin: center;
}

.department-card:hover .department-icon[b-zptp8x0cnt] {
    transform: scale(1.18);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2)) brightness(1.05);
}

.department-name[b-zptp8x0cnt] {
    font-weight: 700;
    color: #2c3e50;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0 10px;
    line-height: 1.3;
    margin-top: 0.5rem;
}

.department-card:hover .department-name[b-zptp8x0cnt] {
    color: #4b86aa;
    transform: translateY(3px);
}

.department-card[b-zptp8x0cnt]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(248, 249, 250, 0);
    transition: all 0.5s ease;
    z-index: -1;
}

.department-card:hover[b-zptp8x0cnt]::before {
    background: rgba(248, 249, 250, 0.7);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* RTL Support */
.rtl-layout[b-zptp8x0cnt] {
    direction: rtl;
}

.ltr-layout[b-zptp8x0cnt] {
    direction: ltr;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .department-icon-container[b-zptp8x0cnt] {
        width: 120px;
        height: 120px;
    }

    .department-card[b-zptp8x0cnt]::before {
        width: 140px;
        height: 140px;
    }

    .department-card[b-zptp8x0cnt] {
        min-height: 200px;
    }
}

@media (max-width: 992px) {
    .department-icon-container[b-zptp8x0cnt] {
        width: 110px;
        height: 110px;
    }

    .department-card[b-zptp8x0cnt]::before {
        width: 130px;
        height: 130px;
    }

    .department-name[b-zptp8x0cnt] {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header[b-zptp8x0cnt] {
        padding: 1rem;
    }

    .welcome-title[b-zptp8x0cnt] {
        font-size: 1.1rem;
    }

    .welcome-subtitle[b-zptp8x0cnt] {
        font-size: 0.8rem;
    }

    .department-icon-container[b-zptp8x0cnt] {
        width: 90px;
        height: 90px;
    }

    .department-name[b-zptp8x0cnt] {
        font-size: 0.85rem;
    }

    .department-card[b-zptp8x0cnt] {
        padding: 1rem 0.5rem !important;
        min-height: 170px;
        gap: 0.8rem;
    }

        .department-card[b-zptp8x0cnt]::before {
            width: 110px;
            height: 110px;
        }
}

@media (max-width: 576px) {
    .department-icon-container[b-zptp8x0cnt] {
        width: 80px;
        height: 80px;
    }

    .department-name[b-zptp8x0cnt] {
        font-size: 0.75rem;
    }

    .department-card[b-zptp8x0cnt] {
        min-height: 150px;
        gap: 0.5rem;
    }

        .department-card[b-zptp8x0cnt]::before {
            width: 100px;
            height: 100px;
        }
}

/* Loading Container */
.loading-container[b-zptp8x0cnt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
/* /Pages/Dr/DrLogin.razor.rz.scp.css */
/* ===== LOGIN PAGE ===== */

.login-container[b-d1lq14jbgy] {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: clip;
}

.login-card[b-d1lq14jbgy] {
    background: linear-gradient(160deg, #3d7a9e 0%, #4b8fb5 60%, #5aa0c8 100%);
    border-radius: 22px;
    padding: 1.5rem 2.5rem; /* Reduced top/bottom padding from 2.5rem to 1.5rem */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 1rem 0; /* Adds a small margin to ensure breathing room */
}

/* ── Branch Row (Logo + Name Pill) ── */
.branch-row[b-d1lq14jbgy] {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Slightly reduced from 0.85rem */
    margin-bottom: 1rem; /* Reduced from 1.6rem */
    flex-wrap: nowrap;
}

/* Logo circle */
.branch-logo-wrap[b-d1lq14jbgy] {
    flex-shrink: 0;
    width: 48px; /* Reduced from 56px */
    height: 48px; /* Reduced from 56px */
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.branch-logo-img[b-d1lq14jbgy] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.branch-logo-placeholder[b-d1lq14jbgy] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.branch-logo-icon[b-d1lq14jbgy] {
    font-size: 1.6rem; /* Slightly reduced from 1.8rem */
    color: rgba(255, 255, 255, 0.7);
}

/* Branch name pill */
.branch-name-pill[b-d1lq14jbgy] {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.4rem 0.9rem; /* Reduced vertical padding from 0.55rem to 0.4rem */
    flex: 1;
    min-width: 0;
    backdrop-filter: blur(6px);
}

.branch-pill-icon[b-d1lq14jbgy] {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    flex-shrink: 0;
}

.branch-pill-text[b-d1lq14jbgy] {
    font-size: 0.85rem; /* Slightly reduced from 0.9rem */
    font-weight: 600;
    color: white;
    line-height: 1.3; /* Slightly tighter from 1.4 */
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: contents;
}

/* ── Skeleton loading ── */
.skeleton-row[b-d1lq14jbgy] {
    margin-bottom: 1rem; /* Reduced from 1.6rem */
}

.skeleton-logo[b-d1lq14jbgy] {
    width: 48px; /* Reduced from 56px */
    height: 48px; /* Reduced from 56px */
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    animation: shimmer-b-d1lq14jbgy 1.4s infinite;
}

.skeleton-name[b-d1lq14jbgy] {
    flex: 1;
    height: 48px; /* Reduced from 50px */
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    animation: shimmer-b-d1lq14jbgy 1.4s infinite;
}

@keyframes shimmer-b-d1lq14jbgy {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ── Portal title + Trial badge ── */
.portal-title-wrap[b-d1lq14jbgy] {
    text-align: center;
    margin-bottom: 1.2rem; /* Reduced from 1.8rem */
}

.login-title[b-d1lq14jbgy] {
    color: white;
    font-size: 1.2rem; /* Slightly reduced from 1.3rem */
    font-weight: 700;
    margin-bottom: 0.25rem; /* Reduced from 0.35rem */
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.trial-badge[b-d1lq14jbgy] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.65rem; /* Slightly reduced from 0.7rem */
    font-weight: 600;
    letter-spacing: 1px; /* Reduced from 1.2px */
    padding: 0.15rem 0.65rem; /* Reduced vertical padding from 0.22rem to 0.15rem */
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ── Form ── */
.form-label[b-d1lq14jbgy] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem; /* Slightly reduced from 0.9rem */
    margin-bottom: 0.3rem; /* Reduced from 0.4rem */
}

.form-control[b-d1lq14jbgy] {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    padding: 0.6rem 1rem; /* Reduced vertical padding from 0.75rem to 0.6rem */
    font-size: 0.95rem; /* Slightly reduced from 1rem */
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.25s;
    color: #2a2a2a;
}

    .form-control:focus[b-d1lq14jbgy] {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
        background: white;
        outline: none;
    }

    .form-control:disabled[b-d1lq14jbgy] {
        opacity: 0.6;
    }

/* Remove number arrows */
input[type="number"][b-d1lq14jbgy]::-webkit-outer-spin-button,
input[type="number"][b-d1lq14jbgy]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"][b-d1lq14jbgy] {
    -moz-appearance: textfield;
}

.form-text[b-d1lq14jbgy] {
    display: block;
    margin-top: 0.2rem; /* Reduced from 0.25rem */
    font-size: 0.8rem; /* Slightly reduced from 0.85rem */
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ── Login Button ── */
.btn-login[b-d1lq14jbgy] {
    background: #1c4660;
    border: none;
    border-radius: 11px;
    color: white;
    padding: 0.6rem; /* Reduced from 0.78rem */
    font-size: 1rem; /* Slightly reduced from 1.05rem */
    font-weight: 700;
    margin-top: 1rem; /* Reduced from 1.4rem */
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.2px;
    width: 70%;
    display: block;
    margin: 1rem auto 0; /* Adjusted margin */
}

    .btn-login:hover:not(:disabled)[b-d1lq14jbgy] {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
        color: #2d6a8c;
    }

    .btn-login:active:not(:disabled)[b-d1lq14jbgy] {
        transform: translateY(0);
    }

    .btn-login:disabled[b-d1lq14jbgy] {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ── New Patient ── */
.new-patient-section[b-d1lq14jbgy] {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.2rem; /* Reduced from 1.5rem */
    padding-top: 1rem; /* Reduced from 1.5rem */
}

    .new-patient-section .text-muted[b-d1lq14jbgy] {
        color: rgba(255, 255, 255, 0.72) !important;
        font-size: 0.85rem; /* Slightly reduced from 0.93rem */
    }

.new-patient-text[b-d1lq14jbgy] {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.new-patient-link[b-d1lq14jbgy] {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
    border-bottom: 1.5px solid rgba(255,255,255,0.5);
    padding-bottom: 1px;
    margin-right: 4px;
}

    .new-patient-link:hover:not(.disabled-link)[b-d1lq14jbgy] {
        opacity: 0.85;
        border-bottom-color: white;
    }

.disabled-link[b-d1lq14jbgy] {
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
    pointer-events: none;
    border-bottom-color: transparent !important;
}

/* ===== MODALS ===== */
.modal-custom[b-d1lq14jbgy] {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 1050;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    .modal-custom.show[b-d1lq14jbgy] {
        display: flex;
    }

.modal-card[b-d1lq14jbgy] {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem; /* Reduced vertical padding from 2rem to 1.5rem */
    max-width: 400px;
    width: 92%;
    text-align: center;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    animation: fadeInScale-b-d1lq14jbgy 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

    .modal-card.error[b-d1lq14jbgy] {
        border-top: 6px solid #e53935;
    }

    .modal-card.success[b-d1lq14jbgy] {
        border-top: 6px solid #2e7d32;
    }

    .modal-card.otp[b-d1lq14jbgy] {
        border-top: 6px solid #3d7a9e;
    }

    .modal-card.error .modal-title[b-d1lq14jbgy] {
        color: #e53935;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card.success .modal-title[b-d1lq14jbgy] {
        color: #2e7d32;
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .modal-card.otp .modal-title[b-d1lq14jbgy] {
        color: #3d7a9e;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card p[b-d1lq14jbgy] {
        color: #444;
        font-size: 0.9rem; /* Slightly reduced from 0.95rem */
        line-height: 1.4; /* Slightly tighter from 1.5 */
    }

/* Checkmark */
.checkmark-circle[b-d1lq14jbgy] {
    width: 70px; /* Reduced from 76px */
    height: 70px; /* Reduced from 76px */
    border-radius: 50%;
    border: 4px solid #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: white;
}

.checkmark[b-d1lq14jbgy] {
    width: 26px; /* Slightly reduced from 28px */
    height: 12px; /* Slightly reduced from 14px */
    border-left: 4px solid #2e7d32;
    border-bottom: 4px solid #2e7d32;
    transform: rotate(-45deg) translate(2px, -2px);
}

@keyframes fadeInScale-b-d1lq14jbgy {
    from {
        opacity: 0;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Buttons */
.modal-card button[b-d1lq14jbgy] {
    margin-top: 1rem; /* Reduced from 1.1rem */
    padding: 0.5rem 1.2rem; /* Reduced vertical padding from 0.6rem to 0.5rem */
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.13);
}

.modal-card.error button[b-d1lq14jbgy] {
    background: #e53935;
    color: #fff;
}

    .modal-card.error button:hover[b-d1lq14jbgy] {
        background: #c62828;
        transform: translateY(-2px);
    }

.modal-card.success button[b-d1lq14jbgy] {
    background: #2e7d32;
    color: #fff;
}

    .modal-card.success button:hover[b-d1lq14jbgy] {
        background: #1b5e20;
        transform: translateY(-2px);
    }

.modal-card.otp button[b-d1lq14jbgy] {
    background: #3d7a9e;
    color: #fff;
}

    .modal-card.otp button:hover[b-d1lq14jbgy] {
        background: #2d6a8c;
        transform: translateY(-2px);
    }

/* ===== LOGIN TABS ===== */
.login-tabs[b-d1lq14jbgy] {
    display: flex;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem; /* Reduced from 0.5rem */
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem; /* Added to control spacing below tabs */
}

.tab-button[b-d1lq14jbgy] {
    flex: 1;
    padding: 0.5rem 0.7rem; /* Reduced vertical padding from 0.6rem to 0.5rem */
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem; /* Slightly reduced from 0.85rem */
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

    .tab-button:hover:not(:disabled)[b-d1lq14jbgy] {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.35);
        color: white;
    }

    .tab-button.active[b-d1lq14jbgy] {
        background: white;
        border-color: white;
        color: #3d7a9e;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .tab-button:disabled[b-d1lq14jbgy] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .tab-button i[b-d1lq14jbgy] {
        font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .login-card[b-d1lq14jbgy] {
        padding: 1.2rem 1.2rem; /* Further reduced for mobile */
        border-radius: 18px;
    }

    .login-title[b-d1lq14jbgy] {
        font-size: 1.1rem; /* Further reduced for mobile */
        white-space: normal; /* Allow wrapping on very small screens */
    }

    .branch-logo-wrap[b-d1lq14jbgy] {
        width: 40px; /* Further reduced for mobile */
        height: 40px; /* Further reduced for mobile */
    }

    .branch-pill-text[b-d1lq14jbgy] {
        font-size: 0.75rem; /* Further reduced for mobile */
    }

    .tab-button[b-d1lq14jbgy] {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }

        .tab-button i[b-d1lq14jbgy] {
            font-size: 0.8rem;
        }

    .branch-name-pill[b-d1lq14jbgy] {
        padding: 0.3rem 0.7rem; /* Further reduced for mobile */
    }
}

/* ===== ERROR MESSAGE SECTION ===== */
.error-message-section[b-d1lq14jbgy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem; /* Reduced padding from 2.5rem 1.5rem */
    text-align: center;
}

.error-icon-wrap[b-d1lq14jbgy] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px; /* Reduced from 80px */
    height: 70px; /* Reduced from 80px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.error-icon[b-d1lq14jbgy] {
    font-size: 2.2rem; /* Slightly reduced from 2.5rem */
    color: rgba(255, 255, 255, 0.95);
}

.error-heading[b-d1lq14jbgy] {
    color: white;
    font-size: 1.3rem; /* Slightly reduced from 1.4rem */
    font-weight: 700;
    margin-bottom: 0.6rem; /* Reduced from 0.8rem */
    letter-spacing: -0.3px;
}

.error-description[b-d1lq14jbgy] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    line-height: 1.5; /* Slightly tighter from 1.6 */
    margin: 0;
}

/* ===== WELCOME MODAL ===== */
.modal-card.welcome[b-d1lq14jbgy] {
    border-top: 6px solid #3d7a9e;
    background: white;
    position: relative;
}

    .modal-card.welcome .modal-title[b-d1lq14jbgy] {
        color: #2c3e50;
        font-weight: 700;
        font-size: 1.25rem; /* Slightly reduced from 1.35rem */
        margin-bottom: 0.6rem; /* Reduced from 0.8rem */
        letter-spacing: -0.3px;
    }

    .modal-card.welcome p[b-d1lq14jbgy] {
        margin: 0.5rem 0;
        color: #444;
        font-size: 0.9rem;
        line-height: 1.5;
    }

.welcome-icon-wrap[b-d1lq14jbgy] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Reduced from 1.2rem */
}

.welcome-icon[b-d1lq14jbgy] {
    width: 60px; /* Reduced from 70px */
    height: 60px; /* Reduced from 70px */
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 122, 158, 0.15) 0%, rgba(61, 122, 158, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Slightly reduced from 2rem */
    color: #3d7a9e;
    box-shadow: 0 2px 8px rgba(61, 122, 158, 0.12);
}

.group-name-bold[b-d1lq14jbgy] {
    font-weight: 700;
    font-size: 1rem;
}

.welcome-text-en[b-d1lq14jbgy] {
    font-size: 0.95rem !important; /* Slightly reduced from 0.98rem */
    margin-bottom: 0.6rem !important; /* Reduced from 0.8rem */
    text-align: left;
    line-height: 1.5;
}

.welcome-text-ar[b-d1lq14jbgy] {
    font-size: 0.95rem !important;
    direction: rtl;
    margin-bottom: 0.8rem !important; /* Reduced from 1rem */
    text-align: right;
    line-height: 1.5;
}

.welcome-subtitle[b-d1lq14jbgy] {
    color: #666;
    font-size: 0.85rem; /* Slightly reduced from 0.92rem */
    margin: 0.8rem 0;
    line-height: 1.5;
}

.btn-welcome-continue[b-d1lq14jbgy] {
    background: linear-gradient(135deg, #3d7a9e 0%, #2d6a8c 100%);
    color: white;
    margin-top: 1rem; /* Reduced from 1.2rem */
    padding: 0.6rem 1.8rem; /* Reduced vertical padding from 0.7rem to 0.6rem */
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem; /* Slightly reduced from 0.95rem */
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(61, 122, 158, 0.25);
}

    .btn-welcome-continue:hover[b-d1lq14jbgy] {
        background: linear-gradient(135deg, #2d6a8c 0%, #1f4f6f 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(61, 122, 158, 0.35);
    }

    .btn-welcome-continue:active[b-d1lq14jbgy] {
        transform: translateY(0);
    }

/* ===== LOGIN TABS — compact pill style ===== */
.login-tabs[b-d1lq14jbgy] {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.tab-button[b-d1lq14jbgy] {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    letter-spacing: 0.1px;
}

    .tab-button:hover:not(:disabled)[b-d1lq14jbgy] {
        background: rgba(255, 255, 255, 0.12);
        color: white;
    }

    .tab-button.active[b-d1lq14jbgy] {
        background: white;
        color: #3d7a9e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    }

    .tab-button:disabled[b-d1lq14jbgy] {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .tab-button i[b-d1lq14jbgy] {
        font-size: 0.8rem;
    }

/* ===== INPUT FIELDS — compact with floating label feel ===== */
.form-label[b-d1lq14jbgy] {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-control[b-d1lq14jbgy] {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    transition: all 0.2s;
    color: #2a2a2a;
    height: 40px; /* Slightly reduced from 42px */
}

    .form-control:focus[b-d1lq14jbgy] {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
        background: white;
        outline: none;
    }

    .form-control:disabled[b-d1lq14jbgy] {
        opacity: 0.55;
    }

    /* Valid / invalid state ring colors */
    .form-control.is-valid[b-d1lq14jbgy] {
        border-color: #4cd98a !important;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: none;
    }

    .form-control.is-invalid[b-d1lq14jbgy] {
        border-color: #ff7675 !important;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: none;
    }

    /* Override Bootstrap's default green/red bg icons */
    .form-control.is-valid[b-d1lq14jbgy],
    .form-control.is-invalid[b-d1lq14jbgy] {
        background-image: none;
        padding-right: 0.9rem;
    }

/* Validation feedback text */
.invalid-feedback[b-d1lq14jbgy] {
    display: block;
    font-size: 0.72rem;
    color: #ffe0de;
    margin-top: 0.25rem;
    font-weight: 500;
}

.form-text[b-d1lq14jbgy] {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

    /* Character counter badge inside hint */
    .form-text .ms-1[b-d1lq14jbgy] {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        padding: 0 5px;
        font-size: 0.65rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.75);
    }

/* Branch select — same compact treatment */
.mb-3 select.form-control[b-d1lq14jbgy] {
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    cursor: pointer;
}

/* ===== LOGIN BUTTON — tighter ===== */
.btn-login[b-d1lq14jbgy] {
    background: #1c4660;
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.2px;
    width: 65%;
    display: block;
    margin: 1rem auto 0;
}

    .btn-login:hover:not(:disabled)[b-d1lq14jbgy] {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
        background: #2d6a8c;
        color: white;
    }

    .btn-login:active:not(:disabled)[b-d1lq14jbgy] {
        transform: translateY(0);
    }

    .btn-login:disabled[b-d1lq14jbgy] {
        opacity: 0.55;
        cursor: not-allowed;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .tab-button[b-d1lq14jbgy] {
        font-size: 0.7rem;
        padding: 0.35rem 0.4rem;
        gap: 0.22rem;
    }

        .tab-button i[b-d1lq14jbgy] {
            font-size: 0.75rem;
        }

    .form-control[b-d1lq14jbgy] {
        height: 38px;
        font-size: 0.85rem;
    }

    .form-label[b-d1lq14jbgy] {
        font-size: 0.7rem;
    }
}

/* Better branch logo styling - remove white space and make it cleaner */

.branch-logo-wrap[b-d1lq14jbgy] {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 0;
}

/* Logo image fills the box fully */
.branch-logo-img[b-d1lq14jbgy] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    background: transparent;
    padding: 0;
    margin: 0;
}
/* /Pages/Dr/DrOTP.razor.rz.scp.css */
/* ===== OTP PAGE ===== */

.otp-container[b-je5o04kt9l] {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.otp-card[b-je5o04kt9l] {
    background: linear-gradient(160deg, #3d7a9e 0%, #4b8fb5 60%, #5aa0c8 100%);
    border-radius: 22px;
    padding: 2.5rem 2.8rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 460px;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Branch Row (Logo + Name Pill) ── */
.branch-row[b-je5o04kt9l] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
    flex-wrap: nowrap;
}

/* Logo box */
.branch-logo-wrap[b-je5o04kt9l] {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.branch-logo-img[b-je5o04kt9l] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.branch-logo-placeholder[b-je5o04kt9l] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.branch-logo-icon[b-je5o04kt9l] {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Branch name pill */
.branch-name-pill[b-je5o04kt9l] {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    flex: 1;
    min-width: 0;
    backdrop-filter: blur(6px);
}

.branch-pill-icon[b-je5o04kt9l] {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    flex-shrink: 0;
}

.branch-pill-text[b-je5o04kt9l] {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: contents;
}

/* ── Skeleton loading ── */
.skeleton-row[b-je5o04kt9l] {
    margin-bottom: 1.4rem;
}

.skeleton-logo[b-je5o04kt9l] {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    animation: shimmer-b-je5o04kt9l 1.4s infinite;
}

.skeleton-name[b-je5o04kt9l] {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    animation: shimmer-b-je5o04kt9l 1.4s infinite;
}

@keyframes shimmer-b-je5o04kt9l {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ── Portal title + Trial badge ── */
.otp-header[b-je5o04kt9l] {
    margin-bottom: 0;
}

.portal-title-wrap[b-je5o04kt9l] {
    text-align: center;
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.otp-title[b-je5o04kt9l] {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.trial-badge[b-je5o04kt9l] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 0.22rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ── Verify section (icon + subtitle) ── */
.verify-section[b-je5o04kt9l] {
    text-align: center;
    margin-bottom: 1.8rem;
}

.otp-icon[b-je5o04kt9l] {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}

.verify-title[b-je5o04kt9l] {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.otp-subtitle[b-je5o04kt9l] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 320px;
    margin-inline: auto;
}

/* ── Form ── */
.form-label[b-je5o04kt9l] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-control[b-je5o04kt9l] {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.25s;
    color: #2a2a2a;
}

/* Error feedback styling */
.invalid-feedback[b-je5o04kt9l] {
    display: block;
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
    text-align: center;
}

.text-muted[b-je5o04kt9l] {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75) !important;
    text-align: center;
    display: block;
    margin-top: 0.4rem;
}

/* OTP input special style */
.otp-input[b-je5o04kt9l] {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.55rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

    .otp-input[b-je5o04kt9l]::placeholder {
        letter-spacing: 0.4rem;
        font-size: 1rem;
        color: #bbb;
    }

/* ── OTP Digits Container ── */
.otp-digits-container[b-je5o04kt9l] {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem auto;
}

/* ── Individual OTP Digit Input ── */
.otp-digit-input[b-je5o04kt9l] {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    padding: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: #2a2a2a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -moz-appearance: textfield;
}

    /* Remove number input spinners */
    .otp-digit-input[b-je5o04kt9l]::-webkit-outer-spin-button,
    .otp-digit-input[b-je5o04kt9l]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-digit-input[b-je5o04kt9l]::placeholder {
        color: #bbb;
        font-size: 1rem;
    }

    .otp-digit-input:focus[b-je5o04kt9l] {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
        background: white;
        outline: none;
        transform: scale(1.08);
    }

    .otp-digit-input:hover:not(:disabled)[b-je5o04kt9l] {
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .otp-digit-input:disabled[b-je5o04kt9l] {
        background: rgba(255, 255, 255, 0.7);
        cursor: not-allowed;
        opacity: 0.6;
    }

    .otp-digit-input:invalid[b-je5o04kt9l] {
        border-color: #e53935;
    }

.form-control:focus[b-je5o04kt9l] {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    background: white;
    outline: none;
}

/* ── Confirm Button ── */
.btn-confirm[b-je5o04kt9l] {
    background: #1c4660;
    border: none;
    border-radius: 11px;
    color: white;
    padding: 0.78rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.2px;
    width: 70%;
    display: block;
    margin: 1.4rem auto 0;
}

    .btn-confirm:hover:not(:disabled)[b-je5o04kt9l] {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
        color: #2d6a8c;
    }

    .btn-confirm:active:not(:disabled)[b-je5o04kt9l] {
        transform: translateY(0);
    }

    .btn-confirm:disabled[b-je5o04kt9l] {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ── Resend Link ── */
.resend-link[b-je5o04kt9l] {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    line-height: 1;
}

    .resend-link .text-muted[b-je5o04kt9l] {
        color: rgba(255, 255, 255, 0.72) !important;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    .resend-link span[b-je5o04kt9l] {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    .resend-link a[b-je5o04kt9l] {
        color: white;
        text-decoration: none;
        font-weight: 700;
        border-bottom: 1.5px solid rgba(255,255,255,0.5);
        transition: opacity 0.2s;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: 0;
    }

        .resend-link a:hover[b-je5o04kt9l] {
            opacity: 0.85;
            border-bottom-color: white;
        }

/* ===== MODALS ===== */
.modal-custom[b-je5o04kt9l] {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 1050;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    .modal-custom.show[b-je5o04kt9l] {
        display: flex;
    }

.modal-card[b-je5o04kt9l] {
    background: white;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    max-width: 400px;
    width: 92%;
    text-align: center;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    animation: fadeInScale-b-je5o04kt9l 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

    .modal-card.error[b-je5o04kt9l] {
        border-top: 6px solid #e53935;
    }

    .modal-card.success[b-je5o04kt9l] {
        border-top: 6px solid #2e7d32;
    }

    .modal-card.otp[b-je5o04kt9l] {
        border-top: 6px solid #3d7a9e;
    }

    .modal-card.error .modal-title[b-je5o04kt9l] {
        color: #e53935;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card.success .modal-title[b-je5o04kt9l] {
        color: #2e7d32;
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .modal-card.otp .modal-title[b-je5o04kt9l] {
        color: #3d7a9e;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }

    .modal-card p[b-je5o04kt9l] {
        color: #444;
        font-size: 0.95rem;
        line-height: 1.5;
    }

/* Checkmark */
.checkmark-circle[b-je5o04kt9l] {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: white;
}

.checkmark[b-je5o04kt9l] {
    width: 28px;
    height: 14px;
    border-left: 4px solid #2e7d32;
    border-bottom: 4px solid #2e7d32;
    transform: rotate(-45deg) translate(2px, -2px);
}

@keyframes fadeInScale-b-je5o04kt9l {
    from {
        opacity: 0;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Buttons */
.modal-card button[b-je5o04kt9l] {
    margin-top: 1.1rem;
    padding: 0.6rem 1.4rem;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.13);
}

.modal-card.error button[b-je5o04kt9l] {
    background: #e53935;
    color: #fff;
}

    .modal-card.error button:hover[b-je5o04kt9l] {
        background: #c62828;
        transform: translateY(-2px);
    }

.modal-card.success button[b-je5o04kt9l] {
    background: #2e7d32;
    color: #fff;
}

    .modal-card.success button:hover[b-je5o04kt9l] {
        background: #1b5e20;
        transform: translateY(-2px);
    }

.modal-card.otp button[b-je5o04kt9l] {
    background: #3d7a9e;
    color: #fff;
}

    .modal-card.otp button:hover[b-je5o04kt9l] {
        background: #2d6a8c;
        transform: translateY(-2px);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .otp-card[b-je5o04kt9l] {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .otp-title[b-je5o04kt9l] {
        font-size: 1.45rem;
    }

    .branch-logo-wrap[b-je5o04kt9l] {
        width: 48px;
        height: 48px;
    }

    .branch-pill-text[b-je5o04kt9l] {
        font-size: 0.82rem;
    }

    .otp-icon[b-je5o04kt9l] {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
    }

    /* Mobile OTP digits container */
    .otp-digits-container[b-je5o04kt9l] {
        gap: 0.45rem;
        margin: 1rem auto;
    }

    /* Smaller digit inputs on mobile */
    .otp-digit-input[b-je5o04kt9l] {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

        .otp-digit-input:focus[b-je5o04kt9l] {
            transform: scale(1.05);
        }

        .otp-digit-input[b-je5o04kt9l]::placeholder {
            font-size: 0.85rem;
        }

    .btn-confirm[b-je5o04kt9l] {
        width: 80%;
    }
}

@media (max-width: 450px) {
    .otp-card[b-je5o04kt9l] {
        padding: 1.5rem 1.2rem;
    }

    .otp-title[b-je5o04kt9l] {
        font-size: 1.3rem;
    }

    .form-label[b-je5o04kt9l] {
        font-size: 0.85rem;
    }

    /* Extra small digit inputs */
    .otp-digits-container[b-je5o04kt9l] {
        gap: 0.35rem;
    }

    .otp-digit-input[b-je5o04kt9l] {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        padding: 0.3rem;
    }

        .otp-digit-input[b-je5o04kt9l]::placeholder {
            font-size: 0.75rem;
        }

    .btn-confirm[b-je5o04kt9l] {
        font-size: 0.95rem;
        padding: 0.65rem;
        width: 85%;
    }

    .resend-link[b-je5o04kt9l] {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .otp-digits-container[b-je5o04kt9l] {
        gap: 0.6rem;
    }

    .otp-digit-input[b-je5o04kt9l] {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

        .otp-digit-input:focus[b-je5o04kt9l] {
            transform: scale(1.1);
        }
}

.branch-logo-wrap[b-je5o04kt9l] {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 0;
}

/* Logo image fills the box fully */
.branch-logo-img[b-je5o04kt9l] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    background: transparent;
    padding: 0;
    margin: 0;
}
/* /Pages/Dr/DrProfile.razor.rz.scp.css */
.profile-container[b-v1ca1pcz6h] {
    padding: 2rem 0;
}

.profile-content[b-v1ca1pcz6h] {
    padding: 1rem;
}

.detail-section[b-v1ca1pcz6h] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-content[b-v1ca1pcz6h] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-row[b-v1ca1pcz6h] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.detail-row:last-child[b-v1ca1pcz6h] {
    border-bottom: none;
}

.detail-row:hover[b-v1ca1pcz6h] {
    background-color: #f9f9f9;
}

.detail-label[b-v1ca1pcz6h] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #4b86aa;
    min-width: 180px;
}

.detail-label i[b-v1ca1pcz6h] {
    font-size: 1.2rem;
    color: #4b86aa;
}

.detail-value[b-v1ca1pcz6h] {
    font-size: 1rem;
    color: #333;
    word-break: break-word;
    text-align: right;
    flex: 1;
    padding-left: 1rem;
}

.arabic-text[b-v1ca1pcz6h] {
    font-family: 'Traditional Arabic', 'Arial Unicode MS', serif;
    text-align: left;
    direction: rtl;
}

.profile-actions[b-v1ca1pcz6h] {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.btn-action[b-v1ca1pcz6h] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary[b-v1ca1pcz6h] {
    background: #4b86aa;
    color: white;
}

.btn-primary:hover[b-v1ca1pcz6h] {
    background: #3a6488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 134, 170, 0.3);
}

.btn-primary:active[b-v1ca1pcz6h] {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container[b-v1ca1pcz6h] {
        padding: 1rem 0;
    }

    .profile-content[b-v1ca1pcz6h] {
        padding: 0.5rem;
    }

    .detail-section[b-v1ca1pcz6h] {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .detail-row[b-v1ca1pcz6h] {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .detail-label[b-v1ca1pcz6h] {
        min-width: unset;
    }

    .detail-value[b-v1ca1pcz6h] {
        text-align: left;
        padding-left: 0;
        width: 100%;
    }

    .arabic-text[b-v1ca1pcz6h] {
        text-align: right;
    }

    .section-content[b-v1ca1pcz6h] {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .detail-section[b-v1ca1pcz6h] {
        padding: 0.75rem;
    }

    .btn-action[b-v1ca1pcz6h] {
        width: 100%;
        justify-content: center;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* Loading Container */
.loading-container[b-d00kxzscs9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: #4b86aa;
}

    .loading-container p[b-d00kxzscs9] {
        color: #6c757d;
        font-size: 1rem;
        margin-top: 1rem;
    }

/* Patient Info Header */
.patient-info-header[b-d00kxzscs9] {
    background: linear-gradient(135deg, #4b86aa 0%, #5a94b8 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(75, 134, 170, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    animation: slideDown-b-d00kxzscs9 0.6s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .patient-info-header[b-d00kxzscs9]::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(30%, -30%);
    }

.patient-avatar-section[b-d00kxzscs9] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.patient-avatar[b-d00kxzscs9] {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .patient-avatar:hover[b-d00kxzscs9] {
        transform: scale(1.05);
    }

    .patient-avatar i[b-d00kxzscs9] {
        line-height: 1;
    }

.patient-details[b-d00kxzscs9] {
    color: white;
}

.patient-name[b-d00kxzscs9] {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.patient-name-arabic[b-d00kxzscs9] {
    font-size: 1.1rem;
    margin: 0.25rem 0 0 0;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.patient-quick-stats[b-d00kxzscs9] {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.quick-stat-item[b-d00kxzscs9] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .quick-stat-item:hover[b-d00kxzscs9] {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .quick-stat-item i[b-d00kxzscs9] {
        font-size: 1.75rem;
        opacity: 0.9;
    }

.stat-content[b-d00kxzscs9] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-label[b-d00kxzscs9] {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value[b-d00kxzscs9] {
    font-size: 1rem;
    font-weight: 600;
}

/* Welcome Section */
.welcome-section[b-d00kxzscs9] {
    margin-bottom: 2rem;
    animation: fadeIn-b-d00kxzscs9 0.8s ease-out 0.2s both;
}

.welcome-title[b-d00kxzscs9] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4b86aa;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .welcome-title i[b-d00kxzscs9] {
        color: #4b86aa;
        animation: pulse-b-d00kxzscs9 2s ease-in-out infinite;
    }

.welcome-subtitle[b-d00kxzscs9] {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Dashboard Cards */
.dashboard-card[b-d00kxzscs9] {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(75, 134, 170, 0.08);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(75, 134, 170, 0.15);
}

    .dashboard-card:hover[b-d00kxzscs9] {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 16px 40px rgba(75, 134, 170, 0.22);
        border-color: rgba(75, 134, 170, 0.4);
    }

        .dashboard-card:hover .card-background[b-d00kxzscs9] {
            opacity: 1;
            transform: scale(1.15);
        }

        .dashboard-card:hover .card-icon[b-d00kxzscs9] {
            transform: scale(1.12) rotate(3deg);
            box-shadow: 0 6px 16px rgba(75, 134, 170, 0.4);
        }

        .dashboard-card:hover .card-arrow[b-d00kxzscs9] {
            transform: translateX(6px);
            opacity: 1;
        }

    .dashboard-card:active[b-d00kxzscs9] {
        transform: translateY(-8px) scale(0.99);
    }

.card-background[b-d00kxzscs9] {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(75, 134, 170, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%) scale(0.85);
    opacity: 0;
    transition: all 0.4s ease;
}

.card-content[b-d00kxzscs9] {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.card-icon[b-d00kxzscs9] {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4b86aa 0%, #5a94b8 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(75, 134, 170, 0.25);
}

.card-title[b-d00kxzscs9] {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4b86aa;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-description[b-d00kxzscs9] {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.card-arrow[b-d00kxzscs9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(75, 134, 170, 0.12);
    border-radius: 50%;
    color: #4b86aa;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-5px);
}

/* Individual Card Colors */
.profile-card .card-icon[b-d00kxzscs9],
.appointments-card .card-icon[b-d00kxzscs9],
.visits-card .card-icon[b-d00kxzscs9],
.medications-card .card-icon[b-d00kxzscs9],
.lab-card .card-icon[b-d00kxzscs9],
.radiology-card .card-icon[b-d00kxzscs9],
.vitals-card .card-icon[b-d00kxzscs9],
.support-card .card-icon[b-d00kxzscs9] {
    background: linear-gradient(135deg, #4b86aa 0%, #5a94b8 100%);
    box-shadow: 0 4px 12px rgba(75, 134, 170, 0.25);
}

.profile-card:hover[b-d00kxzscs9],
.appointments-card:hover[b-d00kxzscs9],
.visits-card:hover[b-d00kxzscs9],
.medications-card:hover[b-d00kxzscs9],
.lab-card:hover[b-d00kxzscs9],
.radiology-card:hover[b-d00kxzscs9],
.vitals-card:hover[b-d00kxzscs9],
.support-card:hover[b-d00kxzscs9] {
    border-color: rgba(75, 134, 170, 0.4);
}

/* Animations */
@keyframes slideDown-b-d00kxzscs9 {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn-b-d00kxzscs9 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-b-d00kxzscs9 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Staggered Animation for Cards */
.dashboard-card[b-d00kxzscs9] {
    animation: fadeInUp-b-d00kxzscs9 0.6s ease-out both;
}

    .dashboard-card:nth-child(1)[b-d00kxzscs9] {
        animation-delay: 0.1s;
    }

    .dashboard-card:nth-child(2)[b-d00kxzscs9] {
        animation-delay: 0.2s;
    }

    .dashboard-card:nth-child(3)[b-d00kxzscs9] {
        animation-delay: 0.3s;
    }

    .dashboard-card:nth-child(4)[b-d00kxzscs9] {
        animation-delay: 0.4s;
    }

    .dashboard-card:nth-child(5)[b-d00kxzscs9] {
        animation-delay: 0.5s;
    }

    .dashboard-card:nth-child(6)[b-d00kxzscs9] {
        animation-delay: 0.6s;
    }

    .dashboard-card:nth-child(7)[b-d00kxzscs9] {
        animation-delay: 0.7s;
    }

    .dashboard-card:nth-child(8)[b-d00kxzscs9] {
        animation-delay: 0.8s;
    }

@keyframes fadeInUp-b-d00kxzscs9 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .patient-info-header[b-d00kxzscs9] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .patient-quick-stats[b-d00kxzscs9] {
        width: 100%;
        gap: 1rem;
    }

    .quick-stat-item[b-d00kxzscs9] {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .patient-info-header[b-d00kxzscs9] {
        padding: 1.5rem;
    }

    .patient-avatar[b-d00kxzscs9] {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .patient-name[b-d00kxzscs9] {
        font-size: 1.5rem;
    }

    .patient-name-arabic[b-d00kxzscs9] {
        font-size: 1rem;
    }

    .patient-quick-stats[b-d00kxzscs9] {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quick-stat-item[b-d00kxzscs9] {
        width: 100%;
        min-width: 100%;
    }

    .welcome-title[b-d00kxzscs9] {
        font-size: 1.5rem;
    }

    .card-content[b-d00kxzscs9] {
        padding: 1.5rem 1.25rem;
    }

    .card-icon[b-d00kxzscs9] {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .card-title[b-d00kxzscs9] {
        font-size: 1.05rem;
    }

    .card-description[b-d00kxzscs9] {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .patient-info-header[b-d00kxzscs9] {
        padding: 1.25rem;
    }

    .patient-avatar-section[b-d00kxzscs9] {
        gap: 1rem;
    }

    .patient-avatar[b-d00kxzscs9] {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .patient-name[b-d00kxzscs9] {
        font-size: 1.25rem;
    }

    .patient-name-arabic[b-d00kxzscs9] {
        font-size: 0.9rem;
    }

    .welcome-title[b-d00kxzscs9] {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stat-value[b-d00kxzscs9] {
        font-size: 0.9rem;
    }

    .quick-stat-item i[b-d00kxzscs9] {
        font-size: 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .dashboard-card[b-d00kxzscs9],
    .patient-info-header[b-d00kxzscs9],
    .welcome-section[b-d00kxzscs9] {
        animation: none;
        transition: none;
    }

        .dashboard-card:hover[b-d00kxzscs9] {
            transform: none;
        }

    .card-icon[b-d00kxzscs9] {
        transition: none;
    }

    .welcome-title i[b-d00kxzscs9] {
        animation: none;
    }
}

/* Branch Header */
.branch-header[b-d00kxzscs9] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #dce3ef;
    box-shadow: 0 2px 10px rgba(75, 134, 170, 0.08);
    margin-bottom: 20px;
}

.branch-logo[b-d00kxzscs9] {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e8edf5;
    padding: 4px;
    background: #fff;
}

.branch-header-text[b-d00kxzscs9] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .branch-header-text .branch-name[b-d00kxzscs9] {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #4b86aa;
        line-height: 1.2;
    }

.branch-subtitle[b-d00kxzscs9] {
    font-size: 13px;
    color: #6c7a96;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive Branch Header */
@media (max-width: 576px) {
    .branch-header[b-d00kxzscs9] {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .branch-header-text .branch-name[b-d00kxzscs9] {
        font-size: 18px;
    }
}
/* Required CSS Classes for Circular Cards */

.circle-card-wrapper[b-d00kxzscs9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.department-card[b-d00kxzscs9] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.5rem 0.5rem !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 0 !important;
    box-shadow: none !important;
    min-height: 200px;
    text-decoration: none;
}

    .department-card:hover[b-d00kxzscs9] {
        transform: translateY(-8px);
    }

.department-icon-container[b-d00kxzscs9] {
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    background: transparent !important;
    border: none !important;
}

.department-icon[b-d00kxzscs9] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    padding: 10px;
    transform-origin: center;
}

.department-card:hover .department-icon[b-d00kxzscs9] {
    transform: scale(1.18);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2)) brightness(1.05);
}

.department-name[b-d00kxzscs9] {
    font-weight: 700;
    color: #2c3e50;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0 10px;
    line-height: 1.3;
    margin-top: 0.5rem;
}

.department-card:hover .department-name[b-d00kxzscs9] {
    color: #4b86aa;
    transform: translateY(3px);
}

.department-card[b-d00kxzscs9]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(248, 249, 250, 0);
    transition: all 0.5s ease;
    z-index: -1;
}

.department-card:hover[b-d00kxzscs9]::before {
    background: rgba(248, 249, 250, 0.7);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .department-icon-container[b-d00kxzscs9] {
        width: 140px;
        height: 140px;
    }

    .department-card[b-d00kxzscs9]::before {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 992px) {
    .department-icon-container[b-d00kxzscs9] {
        width: 130px;
        height: 130px;
    }

    .department-card[b-d00kxzscs9]::before {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .department-icon-container[b-d00kxzscs9] {
        width: 120px;
        height: 120px;
    }

    .department-name[b-d00kxzscs9] {
        font-size: 1rem;
    }

    .department-card[b-d00kxzscs9]::before {
        width: 140px;
        height: 140px;
    }

    .department-card[b-d00kxzscs9] {
        padding: 1rem 0.5rem !important;
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .department-icon-container[b-d00kxzscs9] {
        width: 100px;
        height: 100px;
    }

    .department-name[b-d00kxzscs9] {
        font-size: 0.9rem;
    }

    .department-card[b-d00kxzscs9] {
        padding: 0.8rem 0.5rem !important;
        min-height: 160px;
        gap: 1rem;
    }

        .department-card[b-d00kxzscs9]::before {
            width: 120px;
            height: 120px;
        }
}

@media (max-width: 480px) {
    .department-icon-container[b-d00kxzscs9] {
        width: 90px;
        height: 90px;
    }

    .department-name[b-d00kxzscs9] {
        font-size: 0.85rem;
    }

    .department-card[b-d00kxzscs9]::before {
        width: 110px;
        height: 110px;
    }
}
/* /Pages/PatientPortalPages/AdmissionVisits.razor.rz.scp.css */
/* ═══════════════════════════════════════════
   VISITS.CSS  — mirrors appointments.css with full RTL support
   ═══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
.appointments-container[b-87usacmbih] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --teal-bg: #ccfbf1;
    --teal-text: #134e4a;
    --teal-border: #99f6e4;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ── CONTAINER ── */
.appointments-container[b-87usacmbih] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ── LOADING ── */
.loading-spinner[b-87usacmbih] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-87usacmbih] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-87usacmbih] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: vis-spin-b-87usacmbih 1s linear infinite;
}

@keyframes vis-spin-b-87usacmbih {
    to {
        transform: rotate(360deg);
    }
}

/* ── EMPTY STATE ── */
.empty-state[b-87usacmbih] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-87usacmbih] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-87usacmbih] {
        color: var(--text-2);
        font-size: 1.1rem;
        margin-bottom: .25rem;
    }

/* ── ALERT ── */
.alert[b-87usacmbih] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.2rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: .9rem;
}

    .alert.alert-danger[b-87usacmbih] {
        background: var(--red-bg);
        color: var(--red-text);
    }

    .alert i[b-87usacmbih] {
        flex-shrink: 0;
    }

/* ── FILTERS PANEL ── */
.filters-panel[b-87usacmbih] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-87usacmbih] {
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filters-grid[b-87usacmbih] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.filter-group[b-87usacmbih] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label[b-87usacmbih] {
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.filter-select[b-87usacmbih] {
    padding: 6px 24px 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa5b4'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
}

    .filter-select:focus[b-87usacmbih] {
        outline: none;
        border-color: var(--brand);
    }

.clear-btn[b-87usacmbih] {
    padding: 7px 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-surf);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .clear-btn:active[b-87usacmbih] {
        background: var(--border);
    }

/* ── SORT BAR ── */
.sort-bar[b-87usacmbih] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-label[b-87usacmbih] {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.sort-btn[b-87usacmbih] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* ── DESKTOP TABLE ── */
.appointments-table-wrapper[b-87usacmbih] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.appointments-table[b-87usacmbih] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 700px;
}

    .appointments-table thead[b-87usacmbih] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .appointments-table thead th[b-87usacmbih] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

    .appointments-table tbody tr[b-87usacmbih] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .appointments-table tbody tr:hover[b-87usacmbih] {
            background: var(--bg-surf);
        }

    .appointments-table tbody td[b-87usacmbih] {
        padding: .85rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
    }

/* sort header button */
.sort-header[b-87usacmbih] {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    font-size: .9rem;
}

    .sort-header:hover[b-87usacmbih] {
        color: var(--brand);
    }

/* ── ACTION ICONS (desktop) ── */
.action-icons[b-87usacmbih] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

/* print icon button (desktop) */
.icon-btn[b-87usacmbih] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .icon-btn:hover[b-87usacmbih] {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .icon-btn:active[b-87usacmbih] {
        transform: scale(0.95);
    }

.icon-print[b-87usacmbih] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

    .icon-print:hover[b-87usacmbih] {
        background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    }

/* badge info — not discharged state */
.badge[b-87usacmbih] {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-info[b-87usacmbih] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
    cursor: default;
}

/* ── REPORT PILL BUTTONS (desktop table) ── */
.report-pill[b-87usacmbih] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
    line-height: 1.3;
}

    .report-pill i[b-87usacmbih] {
        font-size: 13px;
        flex-shrink: 0;
    }

    .report-pill:hover[b-87usacmbih] {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0,0,0,.12);
    }

    .report-pill:active[b-87usacmbih] {
        transform: translateY(0);
    }

/* Sick Leave pill — blue tones */
.report-pill--sick[b-87usacmbih] {
    background: var(--blue-bg);
    color: var(--brand-deep);
    border-color: #bfdbfe;
}

    .report-pill--sick:hover[b-87usacmbih] {
        background: #bfdbfe;
        border-color: var(--brand);
        color: var(--brand-deep);
    }

/* Discharge pill — teal/green tones */
.report-pill--discharge[b-87usacmbih] {
    background: var(--teal-bg);
    color: var(--teal-text);
    border-color: var(--teal-border);
}

    .report-pill--discharge:hover[b-87usacmbih] {
        background: #99f6e4;
        border-color: #2dd4bf;
        color: var(--teal-text);
    }

/* ── MOBILE CARD LIST ── */
.appt-list[b-87usacmbih] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.appt-card[b-87usacmbih] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: vis-cardIn-b-87usacmbih .25s ease-out both;
}

@keyframes vis-cardIn-b-87usacmbih {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-87usacmbih] {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
}

/* date colour block */
.card-date-col[b-87usacmbih] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-87usacmbih] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-87usacmbih] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-87usacmbih] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-87usacmbih] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-87usacmbih] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-time[b-87usacmbih] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-87usacmbih] {
        font-size: 11px;
        color: var(--text-3);
    }

.card-info-rows[b-87usacmbih] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
}

.info-row[b-87usacmbih] {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .info-row i[b-87usacmbih] {
        font-size: 11px;
        color: var(--text-3);
        flex-shrink: 0;
        width: 13px;
        text-align: center;
    }

    .info-row span[b-87usacmbih] {
        font-size: 12px;
        color: var(--text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ── MOBILE CARD REPORT BUTTON ROW ── */
.card-report-row[b-87usacmbih] {
    border-top: 1px solid var(--border-lt);
    padding: 8px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Mobile report buttons */
.report-btn[b-87usacmbih] {
    padding: 9px 6px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background .15s;
    white-space: nowrap;
    flex: 1;
}

    .report-btn:active[b-87usacmbih] {
        transform: scale(0.97);
    }

/* Sick Leave — mobile */
.report-btn--sick[b-87usacmbih] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

    .report-btn--sick:active[b-87usacmbih] {
        background: var(--brand-dark);
    }

/* Discharge — mobile */
.report-btn--discharge[b-87usacmbih] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

    .report-btn--discharge:active[b-87usacmbih] {
        background: var(--brand-dark);
    }

/* ── PAGINATION ── */
.pagination-container[b-87usacmbih] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Scrollbar Styling for Table Wrapper */
.appointments-table-wrapper[b-87usacmbih]::-webkit-scrollbar {
    height: 8px;
}

.appointments-table-wrapper[b-87usacmbih]::-webkit-scrollbar-track {
    background: var(--border-lt);
    border-radius: 4px;
}

.appointments-table-wrapper[b-87usacmbih]::-webkit-scrollbar-thumb {
    background: var(--text-3);
    border-radius: 4px;
    transition: background .2s;
}

    .appointments-table-wrapper[b-87usacmbih]::-webkit-scrollbar-thumb:hover {
        background: var(--text-2);
    }

.pagination[b-87usacmbih] {
    gap: .35rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item[b-87usacmbih] {
    list-style: none;
}

    .page-item.active .page-link[b-87usacmbih] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-87usacmbih] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-87usacmbih] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-87usacmbih] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination-info[b-87usacmbih] {
    font-size: .85rem;
    color: var(--text-3);
}

/* ── MEDICAL REPORT DIALOG ── */
.dialog-overlay[b-87usacmbih] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    isolation: isolate;
    animation: vis-fadeIn-b-87usacmbih .2s ease;
}

@keyframes vis-fadeIn-b-87usacmbih {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-container[b-87usacmbih] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    width: 92%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
    animation: vis-slideUp-b-87usacmbih .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes vis-slideUp-b-87usacmbih {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header[b-87usacmbih] {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: white;
}

.dialog-title[b-87usacmbih] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.dialog-content[b-87usacmbih] {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    background-color: white;
}

/* shared close button */
.sheet-close[b-87usacmbih] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

    .sheet-close:hover[b-87usacmbih] {
        background: var(--border);
    }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Mobile: show cards, hide table */
@media (max-width: 767px) {
    .appointments-container[b-87usacmbih] {
        padding: .75rem;
    }

    .d-md-none[b-87usacmbih] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-87usacmbih],
    .d-md-block[b-87usacmbih] {
        display: none !important;
    }

    /* filters: 2×2 grid */
    .filters-grid[b-87usacmbih] {
        grid-template-columns: 1fr 1fr;
    }

    .clear-btn[b-87usacmbih] {
        grid-column: 1 / -1;
    }

    .page-link[b-87usacmbih] {
        padding: .45rem .7rem;
        font-size: 12px;
    }
}

/* Desktop: show table, hide cards */
@media (min-width: 768px) {
    .appointments-container[b-87usacmbih] {
        padding: 1.5rem;
    }

    .d-md-none[b-87usacmbih] {
        display: none !important;
    }

    .d-none.d-md-block[b-87usacmbih],
    .d-md-block[b-87usacmbih] {
        display: block !important;
    }

    /* filters: single row */
    .filters-grid[b-87usacmbih] {
        grid-template-columns: 1fr 1fr 1fr auto;
    }

    .clear-btn[b-87usacmbih] {
        grid-column: auto;
    }
}

/* ═══════════════════════════════════════
   RTL SUPPORT — Arabic layout overrides
   All rules scoped to [dir="rtl"]
   ═══════════════════════════════════════ */

[dir="rtl"] .appointments-container[b-87usacmbih] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

/* Table: flip all text alignment to right */
[dir="rtl"] .appointments-table thead th[b-87usacmbih] {
    text-align: right;
}

[dir="rtl"] .appointments-table tbody td[b-87usacmbih] {
    text-align: right;
}

/* Filter select: move dropdown arrow to left side */
[dir="rtl"] .filter-select[b-87usacmbih] {
    background-position: left 8px center;
    padding: 6px 8px 6px 24px;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .filter-label[b-87usacmbih] {
    text-align: right;
}

[dir="rtl"] .filter-group[b-87usacmbih] {
    align-items: flex-end;
}

[dir="rtl"] .filters-title[b-87usacmbih] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .clear-btn[b-87usacmbih] {
    flex-direction: row-reverse;
}

[dir="rtl"] .sort-bar[b-87usacmbih] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Mobile card: flip strip direction so date box appears on right */
[dir="rtl"] .card-strip[b-87usacmbih] {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-main[b-87usacmbih] {
    text-align: right;
}

[dir="rtl"] .time-row[b-87usacmbih] {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-row[b-87usacmbih] {
    flex-direction: row-reverse;
}

    [dir="rtl"] .info-row i[b-87usacmbih] {
        text-align: center;
    }

/* Card time: icon order in RTL */
[dir="rtl"] .card-time[b-87usacmbih] {
    flex-direction: row-reverse;
}

/* ── RTL: Desktop action-icons — align to right ── */
[dir="rtl"] .action-icons[b-87usacmbih] {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

/* ── RTL: Desktop report pill — icon after text ── */
[dir="rtl"] .report-pill[b-87usacmbih] {
    flex-direction: row-reverse;
}

/* ── RTL: Mobile card report row — align to right ── */
[dir="rtl"] .card-report-row[b-87usacmbih] {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

[dir="rtl"] .report-btn[b-87usacmbih] {
    flex-direction: row-reverse;
}

/* Dialog header: title on right, close button on left */
[dir="rtl"] .dialog-header[b-87usacmbih] {
    flex-direction: row-reverse;
}

/* Inline alert */
[dir="rtl"] .alert[b-87usacmbih] {
    flex-direction: row-reverse;
    text-align: right;
}

/* Pagination */
[dir="rtl"] .pagination-container[b-87usacmbih] {
    direction: rtl;
}

[dir="rtl"] .page-link[b-87usacmbih] {
    direction: rtl;
    flex-direction: row-reverse;
}

/* RTL responsive: fix filter grid direction on mobile */
@media (max-width: 767px) {
    [dir="rtl"] .filters-grid[b-87usacmbih] {
        direction: rtl;
    }

    [dir="rtl"] .clear-btn[b-87usacmbih] {
        justify-content: center;
    }
}
/* /Pages/PatientPortalPages/AppointmentConfirmation.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════
   APPOINTMENT CONFIRMATION — Fixed Single-Language Slip
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE WRAPPER ── */
.slip-wrapper[b-y1l0o97798] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
    padding: 24px 12px;
    box-sizing: border-box;
}

    .slip-wrapper.rtl[b-y1l0o97798] {
        direction: rtl;
        font-family: 'Cairo', 'Tajawal', sans-serif;
    }

    .slip-wrapper.ltr[b-y1l0o97798] {
        direction: ltr;
        font-family: 'Segoe UI', sans-serif;
    }

/* ── CARD ── */
.slip-card[b-y1l0o97798] {
    background: #fff;
    width: 100%;
    max-width: 680px;
    border: 1px solid #b0b8c8;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    font-size: 15px;
    overflow: hidden;
}

/* ── HEADER ── */
.slip-header[b-y1l0o97798] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 12px;
    border-bottom: 3px solid #4b86aa;
    gap: 12px;
}

.slip-wrapper.rtl .slip-header[b-y1l0o97798] {
    flex-direction: row-reverse;
}

.slip-wrapper.ltr .slip-header[b-y1l0o97798] {
    flex-direction: row;
}

.branch-name[b-y1l0o97798] {
    font-size: 16px;
    color: #4b86aa;
    font-weight: 700;
}

.branch-logo[b-y1l0o97798] {
    width: 100px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    display: block;
}

.logo-placeholder[b-y1l0o97798] {
    width: 60px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4b86aa;
}

/* ── TITLE BAR ── */
.title-bar[b-y1l0o97798] {
    background: #2c2c2c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.title-text[b-y1l0o97798] {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.slip-wrapper.rtl .title-text[b-y1l0o97798] {
    font-size: 18px;
}

.slip-wrapper.ltr .title-text[b-y1l0o97798] {
    letter-spacing: 1px;
    font-style: italic;
}

/* ── DATA SECTION ── */
.data-section[b-y1l0o97798] {
    border-bottom: 2px solid #4b86aa;
}

/*
  CRITICAL FIX: use a fixed-layout table-like approach via CSS grid.
  Label gets fixed width column, value fills the rest.
  This prevents the "label far left, value far right" split-screen look.
*/
.data-row[b-y1l0o97798] {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid #e2e6ed;
}

    .data-row:last-child[b-y1l0o97798] {
        border-bottom: none;
    }

/* ── SEPARATOR (within values) ── */
.val-separator[b-y1l0o97798] {
    color: #4b86aa;
    font-weight: 700;
    margin: 0 6px;
}

/* ── LABEL ── */
.lbl[b-y1l0o97798] {
    font-weight: 700;
    color: #4b86aa;
    white-space: nowrap;
    font-size: 14px;
}

.slip-wrapper.ltr .lbl[b-y1l0o97798] {
    font-style: italic;
}

.slip-wrapper.rtl .lbl[b-y1l0o97798] {
    font-style: normal;
    font-size: 15px;
}

/* ── VALUE ── */
.val[b-y1l0o97798] {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

.slip-wrapper.rtl .val[b-y1l0o97798] {
    font-size: 15px;
}

/* ── FOOTER NOTES ── */
.footer-notes[b-y1l0o97798] {
    padding: 12px 24px;
    border-bottom: 1px solid #d0d5df;
    font-size: 12.5px;
    color: #444;
    line-height: 2;
}

.slip-wrapper.rtl .footer-notes[b-y1l0o97798] {
    text-align: right;
    font-weight: 600;
}

.footer-notes p[b-y1l0o97798] {
    margin: 0;
}

/* ── ACTION BUTTONS ── */
.action-buttons[b-y1l0o97798] {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    justify-content: center;
    background: #f5f7fa;
    flex-wrap: wrap;
}

.btn[b-y1l0o97798] {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .1s;
    min-width: 180px;
    justify-content: center;
}

    .btn:active[b-y1l0o97798] {
        transform: scale(.98);
    }

.btn-home[b-y1l0o97798] {
    background: #4b86aa;
    color: #fff;
}

    .btn-home:hover[b-y1l0o97798] {
        background: #3a7099;
    }

.btn-print[b-y1l0o97798] {
    background: #5a6474;
    color: #fff;
}

    .btn-print:hover[b-y1l0o97798] {
        background: #444d5a;
    }

/* ── LOADING / ERROR ── */
.loading-card[b-y1l0o97798] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    gap: 16px;
    color: #555;
    padding: 40px;
    text-align: center;
}

.spinner[b-y1l0o97798] {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e0e0;
    border-top-color: #4b86aa;
    border-radius: 50%;
    animation: slip-spin-b-y1l0o97798 0.9s linear infinite;
}

@keyframes slip-spin-b-y1l0o97798 {
    to {
        transform: rotate(360deg);
    }
}

.error-card[b-y1l0o97798] {
    text-align: center;
    padding: 40px 30px;
    color: #555;
}

.error-icon[b-y1l0o97798] {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 14px;
}

.error-card h3[b-y1l0o97798] {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

/* ── PRINT ── */
@media print {
    .slip-wrapper[b-y1l0o97798] {
        background: #fff;
        padding: 0;
        min-height: unset;
        display: block;
    }

    .slip-card[b-y1l0o97798] {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }

    .no-print[b-y1l0o97798] {
        display: none !important;
    }
}

/* ══════════════════════════════════════
   MOBILE ≤ 600px — one line, bold, tight
   ══════════════════════════════════════ */
@media (max-width: 600px) {
    .slip-wrapper[b-y1l0o97798] {
        padding: 10px 6px;
        align-items: flex-start;
    }

    .slip-header[b-y1l0o97798] {
        padding: 12px 14px 10px;
    }

    .branch-logo[b-y1l0o97798] {
        width: 72px;
        max-height: 48px;
    }

    .branch-name[b-y1l0o97798] {
        font-size: 13px;
    }

    .title-text[b-y1l0o97798] {
        font-size: 13px;
    }

    .slip-wrapper.rtl .title-text[b-y1l0o97798] {
        font-size: 14px;
    }

    /* Grid still keeps label + value on one line */
    .data-row[b-y1l0o97798] {
        grid-template-columns: auto 1fr;
        column-gap: 10px;
        padding: 10px 14px;
        align-items: start;
    }

    .lbl[b-y1l0o97798] {
        font-size: 13px;
        font-weight: 700;
        padding-top: 1px; /* align with first line of value */
    }

    .slip-wrapper.rtl .lbl[b-y1l0o97798] {
        font-size: 14px;
    }

    .val[b-y1l0o97798] {
        font-size: 13px;
        font-weight: 700;
    }

    .slip-wrapper.rtl .val[b-y1l0o97798] {
        font-size: 14px;
    }

    .footer-notes[b-y1l0o97798] {
        font-size: 12px;
        padding: 10px 14px;
    }

    .action-buttons[b-y1l0o97798] {
        padding: 12px 14px;
    }

    .btn[b-y1l0o97798] {
        width: 100%;
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* ── TABLET 601–860px ── */
@media (min-width: 601px) and (max-width: 860px) {
    .data-row[b-y1l0o97798] {
        padding: 11px 18px;
        column-gap: 12px;
    }

    .lbl[b-y1l0o97798] {
        font-size: 13.5px;
    }

    .slip-wrapper.rtl .lbl[b-y1l0o97798] {
        font-size: 14px;
    }

    .val[b-y1l0o97798] {
        font-size: 13.5px;
    }

    .slip-wrapper.rtl .val[b-y1l0o97798] {
        font-size: 14px;
    }
}

.dialog-overlay[b-y1l0o97798] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: appt-fadeIn .2s ease;
    isolation: isolate;
}

.dialog-container[b-y1l0o97798] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: appt-slideUp .28s ease;
    position: relative;
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.dialog-header[b-y1l0o97798] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    flex-shrink: 0;
}

.dialog-title[b-y1l0o97798] {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
}

.dialog-content[b-y1l0o97798] {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}
/* /Pages/PatientPortalPages/AppointmentWaitingConfirmation.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════
   APPOINTMENT WAITING CONFIRMATION — Fixed Single-Language Slip
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE WRAPPER ── */
.slip-wrapper[b-d19gzd6u10] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
    padding: 24px 12px;
    box-sizing: border-box;
}

    .slip-wrapper.rtl[b-d19gzd6u10] {
        direction: rtl;
        font-family: 'Cairo', 'Tajawal', sans-serif;
    }

    .slip-wrapper.ltr[b-d19gzd6u10] {
        direction: ltr;
        font-family: 'Segoe UI', sans-serif;
    }

/* ── CARD ── */
.slip-card[b-d19gzd6u10] {
    background: #fff;
    width: 100%;
    max-width: 680px;
    border: 1px solid #b0b8c8;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    font-size: 15px;
    overflow: hidden;
}

/* ── HEADER ── */
.slip-header[b-d19gzd6u10] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 12px;
    border-bottom: 3px solid #4b86aa;
    gap: 12px;
}

.slip-wrapper.rtl .slip-header[b-d19gzd6u10] {
    flex-direction: row-reverse;
}

.slip-wrapper.ltr .slip-header[b-d19gzd6u10] {
    flex-direction: row;
}

.branch-name[b-d19gzd6u10] {
    font-size: 16px;
    color: #4b86aa;
    font-weight: 700;
}

.branch-logo[b-d19gzd6u10] {
    width: 100px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    display: block;
}

.logo-placeholder[b-d19gzd6u10] {
    width: 60px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4b86aa;
}

/* ── TITLE BAR ── */
.title-bar[b-d19gzd6u10] {
    background: #2c2c2c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.title-text[b-d19gzd6u10] {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.slip-wrapper.rtl .title-text[b-d19gzd6u10] {
    font-size: 18px;
}

.slip-wrapper.ltr .title-text[b-d19gzd6u10] {
    letter-spacing: 1px;
    font-style: italic;
}

/* ── DATA SECTION ── */
.data-section[b-d19gzd6u10] {
    border-bottom: 2px solid #4b86aa;
}

/*
  CRITICAL FIX: use a fixed-layout table-like approach via CSS grid.
  Label gets fixed width column, value fills the rest.
  This prevents the "label far left, value far right" split-screen look.
*/
.data-row[b-d19gzd6u10] {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid #e2e6ed;
}

    .data-row:last-child[b-d19gzd6u10] {
        border-bottom: none;
    }

/* ── SEPARATOR (within values) ── */
.val-separator[b-d19gzd6u10] {
    color: #4b86aa;
    font-weight: 700;
    margin: 0 6px;
}

/* ── LABEL ── */
.lbl[b-d19gzd6u10] {
    font-weight: 700;
    color: #4b86aa;
    white-space: nowrap;
    font-size: 14px;
}

.slip-wrapper.ltr .lbl[b-d19gzd6u10] {
    font-style: italic;
}

.slip-wrapper.rtl .lbl[b-d19gzd6u10] {
    font-style: normal;
    font-size: 15px;
}

/* ── VALUE ── */
.val[b-d19gzd6u10] {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

.slip-wrapper.rtl .val[b-d19gzd6u10] {
    font-size: 15px;
}

/* ── FOOTER NOTES ── */
.footer-notes[b-d19gzd6u10] {
    padding: 12px 24px;
    border-bottom: 1px solid #d0d5df;
    font-size: 12.5px;
    color: #444;
    line-height: 2;
}

.slip-wrapper.rtl .footer-notes[b-d19gzd6u10] {
    text-align: right;
    font-weight: 600;
}

.footer-notes p[b-d19gzd6u10] {
    margin: 0;
}

/* ── ACTION BUTTONS ── */
.action-buttons[b-d19gzd6u10] {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    justify-content: center;
    background: #f5f7fa;
    flex-wrap: wrap;
}

.btn[b-d19gzd6u10] {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .1s;
    min-width: 180px;
    justify-content: center;
}

    .btn:active[b-d19gzd6u10] {
        transform: scale(.98);
    }

.btn-home[b-d19gzd6u10] {
    background: #4b86aa;
    color: #fff;
}

    .btn-home:hover[b-d19gzd6u10] {
        background: #3a7099;
    }

/* ── LOADING / ERROR ── */
.loading-card[b-d19gzd6u10] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    gap: 16px;
    color: #555;
    padding: 40px;
    text-align: center;
}

.spinner[b-d19gzd6u10] {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e0e0;
    border-top-color: #4b86aa;
    border-radius: 50%;
    animation: slip-spin-b-d19gzd6u10 0.9s linear infinite;
}

@keyframes slip-spin-b-d19gzd6u10 {
    to {
        transform: rotate(360deg);
    }
}

.error-card[b-d19gzd6u10] {
    text-align: center;
    padding: 40px 30px;
    color: #555;
}

.error-icon[b-d19gzd6u10] {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 14px;
}

.error-card h3[b-d19gzd6u10] {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

/* ── PRINT ── */
@media print {
    .slip-wrapper[b-d19gzd6u10] {
        background: #fff;
        padding: 0;
        min-height: unset;
        display: block;
    }

    .slip-card[b-d19gzd6u10] {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }

    .no-print[b-d19gzd6u10] {
        display: none !important;
    }
}

/* ══════════════════════════════════════
   MOBILE ≤ 600px — one line, bold, tight
   ══════════════════════════════════════ */
@media (max-width: 600px) {
    .slip-wrapper[b-d19gzd6u10] {
        padding: 10px 6px;
        align-items: flex-start;
    }

    .slip-header[b-d19gzd6u10] {
        padding: 12px 14px 10px;
    }

    .branch-logo[b-d19gzd6u10] {
        width: 72px;
        max-height: 48px;
    }

    .branch-name[b-d19gzd6u10] {
        font-size: 13px;
    }

    .title-text[b-d19gzd6u10] {
        font-size: 13px;
    }

    .slip-wrapper.rtl .title-text[b-d19gzd6u10] {
        font-size: 14px;
    }

    /* Grid still keeps label + value on one line */
    .data-row[b-d19gzd6u10] {
        grid-template-columns: auto 1fr;
        column-gap: 10px;
        padding: 10px 14px;
        align-items: start;
    }

    .lbl[b-d19gzd6u10] {
        font-size: 13px;
        font-weight: 700;
        padding-top: 1px; /* align with first line of value */
    }

    .slip-wrapper.rtl .lbl[b-d19gzd6u10] {
        font-size: 14px;
    }

    .val[b-d19gzd6u10] {
        font-size: 13px;
        font-weight: 700;
    }

    .slip-wrapper.rtl .val[b-d19gzd6u10] {
        font-size: 14px;
    }

    .footer-notes[b-d19gzd6u10] {
        font-size: 12px;
        padding: 10px 14px;
    }

    .action-buttons[b-d19gzd6u10] {
        padding: 12px 14px;
    }

    .btn[b-d19gzd6u10] {
        width: 100%;
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* ── TABLET 601–860px ── */
@media (min-width: 601px) and (max-width: 860px) {
    .data-row[b-d19gzd6u10] {
        padding: 11px 18px;
        column-gap: 12px;
    }

    .lbl[b-d19gzd6u10] {
        font-size: 13.5px;
    }

    .slip-wrapper.rtl .lbl[b-d19gzd6u10] {
        font-size: 14px;
    }

    .val[b-d19gzd6u10] {
        font-size: 13.5px;
    }

    .slip-wrapper.rtl .val[b-d19gzd6u10] {
        font-size: 14px;
    }
}


.dialog-overlay[b-d19gzd6u10] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: appt-fadeIn .2s ease;
    isolation: isolate;
}

.dialog-container[b-d19gzd6u10] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: appt-slideUp .28s ease;
    position: relative;
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.dialog-header[b-d19gzd6u10] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    flex-shrink: 0;
}

.dialog-title[b-d19gzd6u10] {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
}

.dialog-content[b-d19gzd6u10] {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}
.btn-print[b-d19gzd6u10] {
    background: #5a6474;
    color: #fff;
}

    .btn-print:hover[b-d19gzd6u10] {
        background: #444d5a;
    }
/* /Pages/PatientPortalPages/Appoitments.razor.rz.scp.css */
/* ???????????????????????????????????????????
   APPOINTMENTS.CSS  � full-width, mobile-first
   ??????????????????????????????????????????? */

/* ?? CSS VARIABLES ?? */
.appointments-container[b-fajks8c6uk] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green: #22c55e;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
}

/* ?? CONTAINER: full width, no centering cap ?? */
.appointments-container[b-fajks8c6uk] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ?? LOADING ?? */
.loading-spinner[b-fajks8c6uk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-fajks8c6uk] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-fajks8c6uk] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: appt-spin-b-fajks8c6uk 1s linear infinite;
}

@keyframes appt-spin-b-fajks8c6uk {
    to {
        transform: rotate(360deg);
    }
}

/* ?? EMPTY STATE ?? */
.empty-state[b-fajks8c6uk] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-fajks8c6uk] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-fajks8c6uk] {
        color: var(--text-2);
        font-size: 1.1rem;
    }

/* ?? BOOK BUTTON ?? */
.book-btn[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    margin-bottom: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .2s, transform .15s;
}

    .book-btn:hover[b-fajks8c6uk] {
        background: var(--brand-dark);
    }

    .book-btn:active[b-fajks8c6uk] {
        transform: scale(.98);
    }

/* ?? TABS ?? */
.tabs-row[b-fajks8c6uk] {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

.tab-btn[b-fajks8c6uk] {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-bottom: 2.5px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}

    .tab-btn.active[b-fajks8c6uk] {
        color: var(--brand);
        border-bottom-color: var(--brand);
        background: #f0f7fc;
    }

    .tab-btn .cnt[b-fajks8c6uk] {
        background: var(--brand);
        color: #fff;
        font-size: 10px;
        padding: 1px 6px;
        border-radius: 10px;
        font-weight: 700;
    }

    .tab-btn.active .cnt[b-fajks8c6uk] {
        background: var(--brand-dark);
    }

/* ?? FILTERS PANEL ?? */
.filters-panel[b-fajks8c6uk] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-fajks8c6uk] {
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filters-grid[b-fajks8c6uk] {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.filter-group[b-fajks8c6uk] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label[b-fajks8c6uk] {
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.filter-select[b-fajks8c6uk] {
    padding: 6px 24px 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa5b4'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
}

    .filter-select:focus[b-fajks8c6uk] {
        outline: none;
        border-color: var(--brand);
    }

.clear-btn[b-fajks8c6uk] {
    padding: 7px 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-surf);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .clear-btn:active[b-fajks8c6uk] {
        background: var(--border);
    }

/* ?? SORT BAR ?? */
.sort-bar[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-label[b-fajks8c6uk] {
    color: var(--text-3);
    font-weight: 600;
}

.sort-btn[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* ?? DESKTOP TABLE ?? */
.appointments-table-wrapper[b-fajks8c6uk] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.appointments-table[b-fajks8c6uk] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 900px;
}

    .appointments-table thead[b-fajks8c6uk] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .appointments-table thead th[b-fajks8c6uk] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

    .appointments-table tbody tr[b-fajks8c6uk] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .appointments-table tbody tr:hover[b-fajks8c6uk] {
            background: var(--bg-surf);
        }

    .appointments-table tbody td[b-fajks8c6uk] {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
        text-align: left;
    }

.sort-header[b-fajks8c6uk] {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    font-size: .9rem;
}

    .sort-header:hover[b-fajks8c6uk] {
        color: var(--brand);
    }

/* ?? STATUS BADGES (shared table + cards) ?? */
.badge[b-fajks8c6uk] {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success[b-fajks8c6uk], .badge-confirmed[b-fajks8c6uk] {
    background: var(--green-bg) !important;
    color: var(--green-text) !important;
}

.badge-warning[b-fajks8c6uk], .badge-pending[b-fajks8c6uk] {
    background: var(--amber-bg) !important;
    color: var(--amber-text) !important;
}

.badge-danger[b-fajks8c6uk], .badge-cancelled[b-fajks8c6uk] {
    background: var(--red-bg) !important;
    color: var(--red-text) !important;
}

.badge-info[b-fajks8c6uk], .badge-arrived[b-fajks8c6uk] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

.badge-primary[b-fajks8c6uk], .badge-new[b-fajks8c6uk] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

.badge-secondary[b-fajks8c6uk], .badge-locked[b-fajks8c6uk] {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

.visit-type[b-fajks8c6uk] {
    background: var(--brand) !important;
    color: #fff !important;
    padding: .35rem .9rem !important;
    border-radius: 20px;
    font-size: .78rem;
}

/* ?? DESKTOP ACTION ICONS ?? */
.action-icons[b-fajks8c6uk] {
    display: flex;
    gap: .4rem;
}

.icon-btn[b-fajks8c6uk] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
    box-shadow: var(--shadow-sm);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .icon-btn:hover[b-fajks8c6uk] {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .icon-btn:active[b-fajks8c6uk] {
        transform: scale(0.95);
    }

.icon-confirm[b-fajks8c6uk] {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

    .icon-confirm:hover[b-fajks8c6uk] {
        background: linear-gradient(135deg, #1e7e34, #13b493);
    }

.icon-edit[b-fajks8c6uk] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

    .icon-edit:hover[b-fajks8c6uk] {
        background: linear-gradient(135deg, var(--brand-dark), #1f4f6b);
    }

.icon-cancel[b-fajks8c6uk] {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

    .icon-cancel:hover[b-fajks8c6uk] {
        background: linear-gradient(135deg, #bd2130, #a71d2a);
    }

.icon-print[b-fajks8c6uk] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

    .icon-print:hover[b-fajks8c6uk] {
        background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    }

/* ?? MOBILE CARD LIST ?? */
.appt-list[b-fajks8c6uk] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.appt-card[b-fajks8c6uk] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: appt-cardIn-b-fajks8c6uk .25s ease-out both;
}

    .appt-card.cancelled[b-fajks8c6uk] {
        border-left: 4px solid var(--red);
        opacity: .82;
    }

@keyframes appt-cardIn-b-fajks8c6uk {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-fajks8c6uk] {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
}

.card-date-col[b-fajks8c6uk] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-fajks8c6uk] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-fajks8c6uk] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-fajks8c6uk] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-fajks8c6uk] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-time[b-fajks8c6uk] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-fajks8c6uk] {
        font-size: 11px;
        color: var(--text-3);
    }

.card-info-rows[b-fajks8c6uk] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.info-row[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .info-row i[b-fajks8c6uk] {
        font-size: 11px;
        color: var(--text-3);
        flex-shrink: 0;
        width: 13px;
        text-align: center;
    }

    .info-row span[b-fajks8c6uk] {
        font-size: 12px;
        color: var(--text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.visit-pill[b-fajks8c6uk] {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--blue-bg);
    color: var(--blue-text);
}

/* card status badge */
.status-badge[b-fajks8c6uk] {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* card action row */
.card-actions[b-fajks8c6uk] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--border-lt);
}

.action-btn[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 4px;
    font-size: 11.5px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    border-right: 1px solid var(--border-lt);
}

    .action-btn:last-child[b-fajks8c6uk] {
        border-right: none;
    }

    .action-btn i[b-fajks8c6uk] {
        font-size: 13px;
    }

.a-confirm[b-fajks8c6uk] {
    color: var(--green-text);
}

    .a-confirm:hover[b-fajks8c6uk] {
        transform: scale(1.05);
    }

    .a-confirm:active[b-fajks8c6uk] {
        background: var(--green-bg);
    }

.a-edit[b-fajks8c6uk] {
    color: var(--brand);
}

    .a-edit:hover[b-fajks8c6uk] {
        transform: scale(1.05);
    }

    .a-edit:active[b-fajks8c6uk] {
        background: var(--blue-bg);
    }

.a-cancel[b-fajks8c6uk] {
    color: var(--red-text);
}

    .a-cancel:hover[b-fajks8c6uk] {
        transform: scale(1.05);
    }

    .a-cancel:active[b-fajks8c6uk] {
        background: var(--red-bg);
    }

.a-print[b-fajks8c6uk] {
    color: #999999;
}

    .a-print:hover[b-fajks8c6uk] {
        transform: scale(1.05);
    }

    .a-print:active[b-fajks8c6uk] {
        background: #666666;
    }

/* ?? WAITING LIST MOBILE CARDS ?? */
.waiting-card[b-fajks8c6uk] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: appt-cardIn-b-fajks8c6uk .25s ease-out both;
}

.waiting-icon[b-fajks8c6uk] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--amber-bg);
    color: var(--amber-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.waiting-info[b-fajks8c6uk] {
    flex: 1;
}

.w-date[b-fajks8c6uk] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
}

.w-dept[b-fajks8c6uk] {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 2px;
}

.w-doctor[b-fajks8c6uk] {
    font-size: 12px;
    color: var(--brand);
    font-weight: 600;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .w-doctor i[b-fajks8c6uk] {
        font-size: 13px;
    }

.w-meta[b-fajks8c6uk] {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ?? PAGINATION ?? */
.pagination-container[b-fajks8c6uk] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Scrollbar Styling for Table Wrapper */
.appointments-table-wrapper[b-fajks8c6uk]::-webkit-scrollbar {
    height: 8px;
}

.appointments-table-wrapper[b-fajks8c6uk]::-webkit-scrollbar-track {
    background: var(--border-lt);
    border-radius: 4px;
}

.appointments-table-wrapper[b-fajks8c6uk]::-webkit-scrollbar-thumb {
    background: var(--text-3);
    border-radius: 4px;
    transition: background .2s;
}

    .appointments-table-wrapper[b-fajks8c6uk]::-webkit-scrollbar-thumb:hover {
        background: var(--text-2);
    }

.pagination[b-fajks8c6uk] {
    gap: .35rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item[b-fajks8c6uk] {
    list-style: none;
}

    .page-item.active .page-link[b-fajks8c6uk] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-fajks8c6uk] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-fajks8c6uk] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-fajks8c6uk] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination-info[b-fajks8c6uk] {
    font-size: .85rem;
    color: var(--text-3);
}

/* ?? INLINE ALERT (inside sheet) ?? */
.inline-alert[b-fajks8c6uk] {
    padding: .65rem 1rem;
    border-radius: var(--r-sm);
    margin-bottom: 1rem;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.alert-warning[b-fajks8c6uk] {
    background: var(--amber-bg);
    color: var(--amber-text);
}

/* ?? SPINNER in buttons ?? */
.spinner-border-sm[b-fajks8c6uk] {
    width: 1rem;
    height: 1rem;
    border: .2rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: appt-spin-b-fajks8c6uk .75s linear infinite;
}

/* ???????????????????????????????????????????????????????
   MODALS
   Two separate backdrop classes to avoid z-index bleed:
   � .msg-modal-backdrop  ? success/error/validation card
   � .sheet-backdrop      ? cancel / confirm bottom sheet
   Both use opacity:1 solid backgrounds � no leaking.
   ??????????????????????????????????????????????????????? */

/* shared backdrop base */
.msg-modal-backdrop[b-fajks8c6uk],
.sheet-backdrop[b-fajks8c6uk] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: appt-fadeIn-b-fajks8c6uk .2s ease;
    isolation: isolate;
}

@keyframes appt-fadeIn-b-fajks8c6uk {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ?? REPORT DIALOG ?? */
.dialog-overlay[b-fajks8c6uk] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: appt-fadeIn-b-fajks8c6uk .2s ease;
    isolation: isolate;
}

.dialog-container[b-fajks8c6uk] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: appt-slideUp-b-fajks8c6uk .28s ease;
    position: relative;
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.dialog-header[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    flex-shrink: 0;
}

.dialog-title[b-fajks8c6uk] {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
}

.dialog-content[b-fajks8c6uk] {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ?? MESSAGE CARD (success / error / validation) ?? */
.modal-card[b-fajks8c6uk] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: appt-slideUp-b-fajks8c6uk .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes appt-slideUp-b-fajks8c6uk {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-card.error[b-fajks8c6uk] {
    border-top: 4px solid #dc3545;
}

.modal-card.success[b-fajks8c6uk] {
    border-top: 4px solid #28a745;
}

.modal-card.validation[b-fajks8c6uk] {
    border-top: 4px solid #ffc107;
}

.modal-card-header[b-fajks8c6uk] {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title[b-fajks8c6uk] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.modal-card.error .modal-title[b-fajks8c6uk] {
    color: #dc3545;
}

.modal-card.success .modal-title[b-fajks8c6uk] {
    color: #28a745;
}

.modal-card.validation .modal-title[b-fajks8c6uk] {
    color: #f59e0b;
}

.modal-card-body[b-fajks8c6uk] {
    padding: 1.25rem 1.5rem;
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.6;
}

    .modal-card-body p[b-fajks8c6uk] {
        margin: 0;
        word-break: break-word;
    }

.modal-card-footer[b-fajks8c6uk] {
    padding: .9rem 1.5rem;
    border-top: 1px solid var(--border-lt);
    display: flex;
    justify-content: flex-end;
}

    .modal-card-footer .btn-primary[b-fajks8c6uk] {
        background: var(--brand);
        color: #fff;
        border: none;
        padding: .6rem 1.5rem;
        border-radius: var(--r-sm);
        font-weight: 600;
        cursor: pointer;
        font-size: .9rem;
    }

        .modal-card-footer .btn-primary:hover[b-fajks8c6uk] {
            background: var(--brand-dark);
        }

/* ?? BOTTOM SHEET (cancel / confirm) ?? */
.sheet-backdrop[b-fajks8c6uk] {
    align-items: flex-end;
}

.modal-sheet[b-fajks8c6uk] {
    background: #fff;
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-width: 600px;
    padding-bottom: env(safe-area-inset-bottom, 12px);
    animation: appt-sheetUp-b-fajks8c6uk .28s cubic-bezier(.34, 1.2, .64, 1);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
}

@keyframes appt-sheetUp-b-fajks8c6uk {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sheet-handle[b-fajks8c6uk] {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 10px auto 0;
}

.sheet-header[b-fajks8c6uk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-lt);
}

.sheet-title[b-fajks8c6uk] {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheet-close[b-fajks8c6uk] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

    .sheet-close:hover[b-fajks8c6uk] {
        background: var(--border);
        color: var(--text-1);
    }

.sheet-body[b-fajks8c6uk] {
    padding: 18px;
}

.sheet-icon[b-fajks8c6uk] {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

    .sheet-icon.warn[b-fajks8c6uk] {
        background: var(--amber-bg);
        color: var(--amber-text);
    }

    .sheet-icon.info[b-fajks8c6uk] {
        background: var(--blue-bg);
        color: var(--brand);
    }

.sheet-msg[b-fajks8c6uk] {
    text-align: center;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.sheet-details[b-fajks8c6uk] {
    background: var(--bg-surf);
    border-radius: var(--r-md);
    padding: 4px 14px;
}

.detail-row[b-fajks8c6uk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-lt);
    font-size: 13px;
}

    .detail-row:last-child[b-fajks8c6uk] {
        border-bottom: none;
    }

.dl[b-fajks8c6uk] {
    font-weight: 600;
    color: var(--text-2);
}

.dv[b-fajks8c6uk] {
    color: var(--brand);
    font-weight: 500;
}

.sheet-footer[b-fajks8c6uk] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 18px 18px;
}

    .sheet-footer .btn[b-fajks8c6uk] {
        padding: 12px;
        font-size: 14px;
        font-weight: 700;
        border: none;
        border-radius: var(--r-md);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: filter .15s, transform .1s;
    }

        .sheet-footer .btn:active[b-fajks8c6uk] {
            filter: brightness(.9);
            transform: scale(.98);
        }

.btn-keep[b-fajks8c6uk] {
    background: var(--bg-surf);
    color: var(--text-2);
    border: 1px solid var(--border) !important;
}

.btn-cancel-confirm[b-fajks8c6uk] {
    background: #dc3545;
    color: #fff;
}

.btn-confirm-ok[b-fajks8c6uk] {
    background: #28a745;
    color: #fff;
}

    .btn-cancel-confirm:disabled[b-fajks8c6uk],
    .btn-confirm-ok:disabled[b-fajks8c6uk] {
        opacity: .65;
        cursor: not-allowed;
    }

/* ???????????????????????????????????????????
   RESPONSIVE
   ??????????????????????????????????????????? */

/* Mobile: show cards, hide table */
@media (max-width: 767px) {
    .appointments-container[b-fajks8c6uk] {
        padding: .75rem;
    }

    /* show mobile cards */
    .d-md-none[b-fajks8c6uk] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-fajks8c6uk],
    .d-md-block[b-fajks8c6uk] {
        display: none !important;
    }

    /* filters: 2�2 grid */
    .filters-grid[b-fajks8c6uk] {
        grid-template-columns: 1fr 1fr;
    }

    .clear-btn[b-fajks8c6uk] {
        grid-column: 1 / -1;
    }

    /* tabs */
    .tab-btn[b-fajks8c6uk] {
        font-size: 12px;
        padding: 10px 8px;
    }

    /* pagination */
    .page-link[b-fajks8c6uk] {
        padding: .45rem .7rem;
        font-size: 12px;
    }

    /* sheet always full-width slide-up on mobile */
    .sheet-backdrop[b-fajks8c6uk] {
        align-items: flex-end;
    }

    .modal-sheet[b-fajks8c6uk] {
        max-width: 100%;
        border-radius: 18px 18px 0 0;
    }

    .sheet-handle[b-fajks8c6uk] {
        display: block;
    }
}

/* Desktop: show table, hide cards */
@media (min-width: 768px) {
    .appointments-container[b-fajks8c6uk] {
        padding: 1.5rem;
    }

    .d-md-none[b-fajks8c6uk] {
        display: none !important;
    }

    .d-none.d-md-block[b-fajks8c6uk],
    .d-md-block[b-fajks8c6uk] {
        display: block !important;
    }

    .tab-btn[b-fajks8c6uk] {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* filters: single row */
    .filters-grid[b-fajks8c6uk] {
        grid-template-columns: repeat(4, 1fr) auto;
    }

    .clear-btn[b-fajks8c6uk] {
        grid-column: auto;
    }

    /* sheet becomes centered modal on desktop */
    .sheet-backdrop[b-fajks8c6uk] {
        align-items: center;
    }

    .modal-sheet[b-fajks8c6uk] {
        border-radius: var(--r-lg);
        max-width: 480px;
        max-height: 80vh;
    }

    .sheet-handle[b-fajks8c6uk] {
        display: none;
    }
}


/* ???????????????????????????????????????????????????????
   RTL SUPPORT � Arabic layout overrides
   All rules are scoped to [dir="rtl"] so LTR is untouched
   ??????????????????????????????????????????????????????? */

/* ?? Base font: use a font with good Arabic glyph coverage ?? */
[dir="rtl"] .appointments-container[b-fajks8c6uk] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

/* ?? Table: flip all text alignment to right ?? */
[dir="rtl"] .appointments-table thead th[b-fajks8c6uk] {
    text-align: right;
}

[dir="rtl"] .appointments-table tbody td[b-fajks8c6uk] {
    text-align: right;
}

/* sort button � icon is already placed after text in markup, no flip needed */

/* ?? Filter select: move dropdown arrow to left side ?? */
[dir="rtl"] .filter-select[b-fajks8c6uk] {
    background-position: left 8px center;
    padding: 6px 8px 6px 24px;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .filter-label[b-fajks8c6uk] {
    text-align: right;
}

[dir="rtl"] .filter-group[b-fajks8c6uk] {
    align-items: flex-end;
}

/* ?? Filters panel title: icon before text in RTL = reversed ?? */
[dir="rtl"] .filters-title[b-fajks8c6uk] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ?? Clear button icon order ?? */
[dir="rtl"] .clear-btn[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Sort bar ?? */
[dir="rtl"] .sort-bar[b-fajks8c6uk] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* sort btn icon already after text in markup */

/* ?? Book button icon order ?? */
[dir="rtl"] .book-btn[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Tabs: icon before text reversed ?? */
[dir="rtl"] .tab-btn[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Mobile card: flip strip direction so date box appears on right ?? */
[dir="rtl"] .card-strip[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-main[b-fajks8c6uk] {
    text-align: right;
}

/* time on right, status badge on left */
[dir="rtl"] .time-row[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* icon then text ? text then icon in RTL */
[dir="rtl"] .info-row[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

    [dir="rtl"] .info-row i[b-fajks8c6uk] {
        text-align: center;
    }

/* ?? Card actions: flip borders from right to left ?? */
[dir="rtl"] .card-actions[b-fajks8c6uk] {
    direction: rtl;
}

[dir="rtl"] .action-btn[b-fajks8c6uk] {
    flex-direction: row-reverse;
    border-right: none;
    border-left: 1px solid var(--border-lt);
}

    [dir="rtl"] .action-btn:last-child[b-fajks8c6uk] {
        border-left: none;
    }

/* ?? Desktop action icons row ?? */
[dir="rtl"] .action-icons[b-fajks8c6uk] {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* ?? Waiting card: flip row direction ?? */
[dir="rtl"] .waiting-card[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

[dir="rtl"] .waiting-info[b-fajks8c6uk] {
    text-align: right;
}

[dir="rtl"] .w-meta[b-fajks8c6uk] {
    justify-content: flex-end;
}

/* ?? Cancelled card: move red border from left to right side ?? */
[dir="rtl"] .appt-card.cancelled[b-fajks8c6uk] {
    border-left: none;
    border-right: 4px solid var(--red);
}

/* ?? Card time: clock icon after time text in RTL ?? */
[dir="rtl"] .card-time[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Bottom sheet header: title on right, close button on left ?? */
[dir="rtl"] .sheet-header[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

[dir="rtl"] .sheet-title[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Sheet detail rows: label on right, value on left ?? */
[dir="rtl"] .detail-row[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Sheet footer buttons: icon after text in RTL ?? */
[dir="rtl"] .sheet-footer .btn[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Inline alert inside sheet ?? */
[dir="rtl"] .inline-alert[b-fajks8c6uk] {
    flex-direction: row-reverse;
    text-align: right;
}

/* ?? Message modal (success/error/validation) ?? */
[dir="rtl"] .modal-card-header[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-title[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-card-body[b-fajks8c6uk] {
    text-align: right;
    direction: rtl;
}

/* Close button moves to left side in RTL */
[dir="rtl"] .modal-card-footer[b-fajks8c6uk] {
    justify-content: flex-start;
}

/* ?? Dialog (report) header ?? */
[dir="rtl"] .dialog-header[b-fajks8c6uk] {
    flex-direction: row-reverse;
}

/* ?? Pagination: numbers and buttons flow RTL ?? */
[dir="rtl"] .pagination-container[b-fajks8c6uk] {
    direction: rtl;
}

[dir="rtl"] .page-link[b-fajks8c6uk] {
    direction: rtl;
    flex-direction: row-reverse;
}

/* ?? RTL responsive: fix filter grid direction on mobile ?? */
@media (max-width: 767px) {
    [dir="rtl"] .filters-grid[b-fajks8c6uk] {
        direction: rtl;
    }

    [dir="rtl"] .clear-btn[b-fajks8c6uk] {
        justify-content: center;
    }
}
/* /Pages/PatientPortalPages/BookAppointment.razor.rz.scp.css */
/* ???????????????????????????????????????????????
   BOOK-APPOINTMENT.CSS
   Same design tokens as appointments.css.
   Slot grid and combo layout are UNCHANGED �
   only polish: radius, shadow, spacing, modal fix,
   and proper mobile responsiveness.
   ??????????????????????????????????????????????? */

/* ?? VARIABLES ?? */
.page-container[b-oezii7dz6p] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green: #22c55e;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
}

/* ?? PAGE HEADER ?? */
.page-header-section[b-oezii7dz6p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    position: relative;
    margin-top:15px;
}

.page-title[b-oezii7dz6p] {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-1);
    margin: 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.btn-nav-back[b-oezii7dz6p] {
    position: absolute;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

/* LTR (English) - button on left */
[dir="ltr"] .btn-nav-back[b-oezii7dz6p] {
    left: 0;
    right: auto;
}

/* RTL (Arabic) - button on right */
[dir="rtl"] .btn-nav-back[b-oezii7dz6p] {
    right: 0;
    left: auto;
}

.btn-nav-back:hover[b-oezii7dz6p] {
    background: var(--brand-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-nav-back:active[b-oezii7dz6p] {
    background: var(--brand-deep);
    transform: translateY(0);
}

.btn-nav-back i[b-oezii7dz6p] {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .page-header-section[b-oezii7dz6p] {
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .page-title[b-oezii7dz6p] {
        font-size: 1.375rem;
        margin-top: 2.5rem;
    }

    .btn-nav-back[b-oezii7dz6p] {
        position: static;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .btn-nav-back i[b-oezii7dz6p] {
        font-size: 0.9375rem;
    }
}

/* ?? PAGE WRAPPER ?? */
.page-container[b-oezii7dz6p] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ?? CONTENT CARD ?? */
.content-wrapper[b-oezii7dz6p] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ?? SEARCH SECTION ?? */
.search-section[b-oezii7dz6p] {
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid var(--border-lt);
}

/* Ensure all columns in search row align vertically */
.search-section .row[b-oezii7dz6p] {
    align-items: flex-end;
}

.search-section .col-6[b-oezii7dz6p],
.search-section .col-md-2[b-oezii7dz6p],
.search-section .col-md-4[b-oezii7dz6p] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-section label[b-oezii7dz6p] {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 0.5rem;
}

/* form row � auto grid, wraps on small screens */
.form-row[b-oezii7dz6p] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

    .form-row:last-child[b-oezii7dz6p] {
        margin-bottom: 0;
    }

.form-group[b-oezii7dz6p] {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .form-group label[b-oezii7dz6p],
    .form-group > label[b-oezii7dz6p] {
        font-size: 11px;
        font-weight: 700;
        color: var(--text-3);
        text-transform: uppercase;
        letter-spacing: .4px;
    }

/* form controls � cleaner border, consistent radius */
.form-control[b-oezii7dz6p] {
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 13px;
    background: var(--bg-surf);
    color: var(--text-1);
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}

    .form-control:focus[b-oezii7dz6p] {
        outline: none;
        border-color: var(--brand);
        background: var(--bg-white);
        box-shadow: 0 0 0 3px rgba(75,134,170,.1);
    }

    .form-control:hover[b-oezii7dz6p] {
        border-color: var(--brand);
    }

/* date picker wrappers */
.date-picker-container[b-oezii7dz6p] {
    width: 100%;
}

    .date-picker-container.disabled-date-picker[b-oezii7dz6p] {
        opacity: .55;
        pointer-events: none;
        cursor: not-allowed;
    }

/* clinic closed inline alert */
.clinic-closed-message[b-oezii7dz6p] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .85rem;
    background: var(--red-bg);
    border: 1px solid #fca5a5;
    border-radius: var(--r-sm);
}

    .clinic-closed-message i[b-oezii7dz6p] {
        font-size: 13px;
        color: var(--red-text);
        flex-shrink: 0;
    }

    .clinic-closed-message p[b-oezii7dz6p] {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--red-text);
    }

/* ?? APPOINTMENTS SECTION ?? */
.appointments-section[b-oezii7dz6p] {
    padding: 1.25rem;
}

/* ?? TAB HEADERS ?? */
.tab-headers[b-oezii7dz6p] {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.tab-btn[b-oezii7dz6p] {
    padding: 10px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .tab-btn:hover[b-oezii7dz6p] {
        color: var(--brand);
    }

    .tab-btn.active[b-oezii7dz6p] {
        color: var(--brand);
        border-bottom-color: var(--brand);
    }

/* ?? TIME SLOTS CONTAINER ?? */
.time-slots-container[b-oezii7dz6p] {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-surf);
    border-radius: var(--r-md);
    border: 1px solid var(--border-lt);
}

.form-label[b-oezii7dz6p] {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .75rem;
}

/* ?? TIME SLOTS GRID � responsive grid layout ?? */
.time-slots-grid[b-oezii7dz6p] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.time-slot-card[b-oezii7dz6p] {
    padding: 11px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    background: var(--bg-white);
    text-align: center;
    box-shadow: var(--shadow-sm);
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .time-slot-card:hover[b-oezii7dz6p] {
        background: var(--blue-bg);
        border-color: var(--brand);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .time-slot-card.selected[b-oezii7dz6p] {
        background: var(--brand);
        color: #fff;
        border-color: var(--brand);
        box-shadow: var(--shadow-md);
    }

.slot-time[b-oezii7dz6p] {
    font-weight: 700;
    font-size: 15px;
}

.slot-shift[b-oezii7dz6p] {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
}

.first-shift[b-oezii7dz6p] {
    color: #14532d;
}

.second-shift[b-oezii7dz6p] {
    color: #7f1d1d;
}

.time-slot-card.selected .first-shift[b-oezii7dz6p],
.time-slot-card.selected .second-shift[b-oezii7dz6p] {
    color: rgba(255,255,255,.85);
}

/* ?? WAITING INFO CARD ?? */
.slots-info-card[b-oezii7dz6p] {
    padding: .85rem 1rem;
    background: var(--amber-bg);
    border: 1px solid #fde68a;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: 13.5px;
    color: var(--amber-text);
    font-weight: 500;
}

    .slots-info-card strong[b-oezii7dz6p] {
        font-weight: 800;
    }

/* ?? BOOKING ACTIONS ?? */
.booking-actions[b-oezii7dz6p] {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f6fa, #f8f9fa);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    animation: ba-slideIn-b-oezii7dz6p .25s ease-out;
}

@keyframes ba-slideIn-b-oezii7dz6p {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ?? BUTTONS ?? */
.btn[b-oezii7dz6p] {
    padding: .7rem 1.3rem;
    border: none;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: filter .15s, transform .1s, box-shadow .15s;
}

    .btn:active[b-oezii7dz6p] {
        transform: scale(.98);
    }

.btn-confirm[b-oezii7dz6p] {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    flex: 1;
    min-height: 42px;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

    .btn-confirm:hover[b-oezii7dz6p] {
        filter: brightness(1.06);
        box-shadow: var(--shadow-md);
    }

.btn-cancel[b-oezii7dz6p] {
    background: var(--bg-surf);
    color: var(--text-2);
    border: 1px solid var(--border);
    flex: 1;
    min-height: 42px;
    justify-content: center;
}

    .btn-cancel:hover[b-oezii7dz6p] {
        background: var(--border);
    }

/* ?? NO SLOTS EMPTY STATE ?? */
.no-appointments[b-oezii7dz6p] {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-md);
    border: 2px dashed var(--border);
}

    .no-appointments i[b-oezii7dz6p] {
        font-size: 3rem;
        color: var(--text-3);
        display: block;
        margin-bottom: .75rem;
    }

    .no-appointments h4[b-oezii7dz6p] {
        color: var(--text-2);
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
    }

.msg-modal-backdrop[b-oezii7dz6p] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bk-fadeIn-b-oezii7dz6p .2s ease;
    isolation: isolate;
}

@keyframes bk-fadeIn-b-oezii7dz6p {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-oezii7dz6p] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    z-index: 2001;
}

@keyframes bk-slideUp-b-oezii7dz6p {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-card.error[b-oezii7dz6p] {
    border-top: 4px solid #dc3545;
}

.modal-card.success[b-oezii7dz6p] {
    border-top: 4px solid #28a745;
}

.modal-card.validation[b-oezii7dz6p] {
    border-top: 4px solid #ffc107;
}

.modal-card-header[b-oezii7dz6p] {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title[b-oezii7dz6p] {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.modal-card.error .modal-title[b-oezii7dz6p] {
    color: #dc3545;
}

.modal-card.success .modal-title[b-oezii7dz6p] {
    color: #28a745;
}

.modal-card.validation .modal-title[b-oezii7dz6p] {
    color: #f59e0b;
}

.modal-card-body[b-oezii7dz6p] {
    padding: 1.2rem 1.4rem;
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.6;
}

    .modal-card-body p[b-oezii7dz6p] {
        margin: 0;
        word-break: break-word;
    }

.modal-card-footer[b-oezii7dz6p] {
    padding: .85rem 1.4rem;
    border-top: 1px solid var(--border-lt);
    display: flex;
    justify-content: flex-end;
}

.btn-modal-primary[b-oezii7dz6p] {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: .55rem 1.4rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: background .15s;
}

    .btn-modal-primary:hover[b-oezii7dz6p] {
        background: var(--brand-dark);
    }

.sheet-close[b-oezii7dz6p] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

    .sheet-close:hover[b-oezii7dz6p] {
        background: var(--border);
    }

/* ???????????????????????????????????????????????
   RESPONSIVE
   ??????????????????????????????????????????????? */

/* ?? EXTRA SMALL PHONES ?? */
@media (max-width: 359px) {
    .page-container[b-oezii7dz6p] {
        padding: .5rem;
    }

    .appointments-section[b-oezii7dz6p] {
        padding: .75rem;
    }

    .time-slots-container[b-oezii7dz6p] {
        padding: .75rem;
    }

    /* 2 columns on very small phones */
    .time-slots-grid[b-oezii7dz6p] {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .time-slot-card[b-oezii7dz6p] {
        padding: 6px 6px;
        min-height: 55px;
        font-size: 11px;
    }

    .slot-time[b-oezii7dz6p] {
        font-size: 11px;
    }

    .slot-shift[b-oezii7dz6p] {
        font-size: 8px;
    }
}

/* ?? MOBILE ?? */
@media (max-width: 767px) {
    .page-container[b-oezii7dz6p] {
        padding: .75rem;
    }

    /* single column form on small phones */
    .form-row[b-oezii7dz6p] {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    /* tighter padding inside card */
    .search-section[b-oezii7dz6p] {
        padding: 1rem 1rem .5rem;
    }

    .appointments-section[b-oezii7dz6p] {
        padding: 1rem;
    }

    /* reduce whitespace in time slots container */
    .time-slots-container[b-oezii7dz6p] {
        padding: .75rem;
        margin-bottom: .75rem;
    }

    .form-label[b-oezii7dz6p] {
        margin-bottom: .5rem;
    }

    /* booking actions stack */
    .booking-actions[b-oezii7dz6p] {
        flex-direction: column;
        gap: .5rem;
    }

    .btn-confirm[b-oezii7dz6p],
    .btn-cancel[b-oezii7dz6p] {
        width: 100%;
    }

    /* tab text smaller */
    .tab-btn[b-oezii7dz6p] {
        font-size: 12px;
        padding: 9px 12px;
    }

    /* time slots grid � 3 columns on mobile */
    .time-slots-grid[b-oezii7dz6p] {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .time-slot-card[b-oezii7dz6p] {
        padding: 8px 8px;
        min-height: 60px;
    }

    .slot-time[b-oezii7dz6p] {
        font-size: 12px;
    }

    .slot-shift[b-oezii7dz6p] {
        font-size: 9px;
    }
}

/* ?? TABLET ?? */
@media (min-width: 480px) and (max-width: 767px) {
    /* 2 columns on tablet portrait */
    .form-row[b-oezii7dz6p] {
        grid-template-columns: 1fr 1fr;
    }

    /* 4 columns for time slots on tablet */
    .time-slots-grid[b-oezii7dz6p] {
        grid-template-columns: repeat(4, 1fr);
    }

    .time-slot-card[b-oezii7dz6p] {
        padding: 10px 12px;
        min-height: 65px;
    }

    .slot-time[b-oezii7dz6p] {
        font-size: 13px;
    }
}

/* ?? DESKTOP ?? */
@media (min-width: 768px) {
    .page-container[b-oezii7dz6p] {
        padding: 1.5rem;
    }

    /* 4-column form row (dept / clinic / date / shift) */
    .form-row[b-oezii7dz6p] {
        grid-template-columns: repeat(4, 1fr);
    }

        /* 2nd row only has 2 combos � let them stay natural width */
        .form-row:last-child[b-oezii7dz6p] {
            grid-template-columns: repeat(2, 1fr);
        }

    .tab-btn[b-oezii7dz6p] {
        font-size: 14px;
        padding: 11px 20px;
    }
}
/* /Pages/PatientPortalPages/CustomDatePicker.razor.rz.scp.css */
/* Custom Date Picker Container */
.custom-datepicker[b-1qy5ctt9ao] {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Input Group */
.datepicker-input-group[b-1qy5ctt9ao] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.datepicker-input[b-1qy5ctt9ao] {
    padding: 0.5rem 0.75rem !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    background-color: #f8f9fa !important;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

    .datepicker-input:focus[b-1qy5ctt9ao] {
        outline: none;
        border-color: #4b86aa !important;
        background-color: white !important;
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
    }

.btn-calendar-toggle[b-1qy5ctt9ao] {
    padding: 0.5rem;
    background-color: #4b86aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-calendar-toggle:hover[b-1qy5ctt9ao] {
        background-color: #3a7099;
        transform: scale(1.05);
    }

    .btn-calendar-toggle:active[b-1qy5ctt9ao] {
        transform: scale(0.95);
    }

/* Calendar Dropdown — base (shared) */
.calendar-dropdown[b-1qy5ctt9ao] {
    position: absolute;
    left: 0;
    width: 220px;
    max-width: 220px;
    background-color: white;
    border: 2px solid #4b86aa;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(75, 134, 170, 0.2);
    padding: 0.6rem;
    z-index: 1050;
}

    /* Open below the input */
    .calendar-dropdown.dropdown-down[b-1qy5ctt9ao] {
        top: 100%;
        bottom: auto;
        margin-top: 0.4rem;
        margin-bottom: 0;
        animation: slideDown-b-1qy5ctt9ao 0.25s ease-out;
    }

    /* Open above the input */
    .calendar-dropdown.dropdown-up[b-1qy5ctt9ao] {
        bottom: 100%;
        top: auto;
        margin-bottom: 0.4rem;
        margin-top: 0;
        animation: slideUp-b-1qy5ctt9ao 0.25s ease-out;
    }

@keyframes slideDown-b-1qy5ctt9ao {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp-b-1qy5ctt9ao {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Header */
.calendar-header[b-1qy5ctt9ao] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .calendar-header .month-year[b-1qy5ctt9ao] {
        margin: 0;
        font-size: 0.82rem;
        font-weight: 700;
        color: #4b86aa;
        min-width: 90px;
        text-align: center;
    }

.btn-nav[b-1qy5ctt9ao] {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    color: #4b86aa;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

    .btn-nav:hover[b-1qy5ctt9ao] {
        background-color: #4b86aa;
        color: white;
        border-color: #4b86aa;
    }

    .btn-nav:active[b-1qy5ctt9ao] {
        transform: scale(0.95);
    }

/* Weekdays */
.calendar-weekdays[b-1qy5ctt9ao] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e9ecef;
}

.weekday[b-1qy5ctt9ao] {
    text-align: center;
    font-weight: 700;
    font-size: 0.6rem;
    color: #4b86aa;
    padding: 0.2rem 0;
    text-transform: uppercase;
}

/* Calendar Days */
.calendar-days[b-1qy5ctt9ao] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.5rem;
}

.calendar-day[b-1qy5ctt9ao] {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.7rem;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    /* Other Month Days */
    .calendar-day.other-month[b-1qy5ctt9ao] {
        color: #adb5bd;
        background-color: transparent;
        cursor: default;
    }

    /* Today */
    .calendar-day.today[b-1qy5ctt9ao] {
        background-color: #e8f2f8;
        border: 2px solid #4b86aa;
        font-weight: 700;
        color: #4b86aa;
    }

    /* Selected Day */
    .calendar-day.selected[b-1qy5ctt9ao] {
        background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
        color: white;
        border: 2px solid #3a7099;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(75, 134, 170, 0.3);
    }

    /* Disabled (Past) Days */
    .calendar-day.disabled[b-1qy5ctt9ao] {
        background-color: #f8f9fa;
        color: #adb5bd;
        cursor: not-allowed;
        opacity: 0.5;
    }

    /* Closed Days (with X mark) */
    .calendar-day.closed[b-1qy5ctt9ao] {
        background-color: #ffe0e0;
        border: 2px solid #ff6b6b;
        color: #dc3545;
        font-weight: 700;
        cursor: not-allowed;
    }

        .calendar-day.closed:hover[b-1qy5ctt9ao] {
            background-color: #ffd4d4;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
        }

/* Day Number and Closed Mark */
.day-number[b-1qy5ctt9ao] {
    font-size: 0.7rem;
}

.day-closed-mark[b-1qy5ctt9ao] {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 0.55rem;
    font-weight: 900;
    border: 1px solid white;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

/* Regular Available Day Hover */
.calendar-day:not(.other-month):not(.disabled):not(.closed):not(.selected):not(.today):hover[b-1qy5ctt9ao] {
    background-color: #e8f2f8;
    border-color: #4b86aa;
    transform: scale(1.08);
}

/* Calendar Footer */
.calendar-footer[b-1qy5ctt9ao] {
    display: flex;
    justify-content: center;
    padding-top: 0.4rem;
    border-top: 1px solid #e9ecef;
}

    .calendar-footer .btn[b-1qy5ctt9ao] {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

/* Responsive */
@media (max-width: 480px) {
    .calendar-dropdown.dropdown-down[b-1qy5ctt9ao],
    .calendar-dropdown.dropdown-up[b-1qy5ctt9ao] {
        width: 200px;
        max-width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }

    .datepicker-input-group[b-1qy5ctt9ao] {
        gap: 0.2rem;
    }

    .calendar-day[b-1qy5ctt9ao] {
        font-size: 0.65rem;
    }

    .day-number[b-1qy5ctt9ao] {
        font-size: 0.65rem;
    }

    .day-closed-mark[b-1qy5ctt9ao] {
        width: 10px;
        height: 10px;
        font-size: 0.5rem;
        top: -4px;
        right: -4px;
    }
}
/* /Pages/PatientPortalPages/DoctorCustomDatePicker.razor.rz.scp.css */
/* Doctor Custom Date Picker Container */
.doctor-datepicker[b-7g3ul8fu7m] {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Input Group */
.datepicker-input-group[b-7g3ul8fu7m] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.datepicker-input[b-7g3ul8fu7m] {
    padding: 0.5rem 0.75rem !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    background-color: #f8f9fa !important;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

    .datepicker-input:focus[b-7g3ul8fu7m] {
        outline: none;
        border-color: #4b86aa !important;
        background-color: white !important;
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
    }

.btn-calendar-toggle[b-7g3ul8fu7m] {
    padding: 0.5rem;
    background-color: #4b86aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-calendar-toggle:hover[b-7g3ul8fu7m] {
        background-color: #3a7099;
        transform: scale(1.05);
    }

    .btn-calendar-toggle:active[b-7g3ul8fu7m] {
        transform: scale(0.95);
    }

/* Calendar Dropdown */
.calendar-dropdown[b-7g3ul8fu7m] {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    max-width: 220px;
    background-color: white;
    border: 2px solid #4b86aa;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(75, 134, 170, 0.2);
    padding: 0.6rem;
    margin-top: 0.4rem;
    z-index: 1000;
    animation: slideDown-b-7g3ul8fu7m 0.3s ease-out;
}

[dir="rtl"] .calendar-dropdown[b-7g3ul8fu7m] {
    left: auto;
    right: 0;
}

@keyframes slideDown-b-7g3ul8fu7m {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Header */
.calendar-header[b-7g3ul8fu7m] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .calendar-header .month-year[b-7g3ul8fu7m] {
        margin: 0;
        font-size: 0.82rem;
        font-weight: 700;
        color: #4b86aa;
        min-width: 90px;
        text-align: center;
    }

.btn-nav[b-7g3ul8fu7m] {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    color: #4b86aa;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

    .btn-nav:hover[b-7g3ul8fu7m] {
        background-color: #4b86aa;
        color: white;
        border-color: #4b86aa;
    }

    .btn-nav:active[b-7g3ul8fu7m] {
        transform: scale(0.95);
    }

/* Weekdays */
.calendar-weekdays[b-7g3ul8fu7m] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e9ecef;
}

.weekday[b-7g3ul8fu7m] {
    text-align: center;
    font-weight: 700;
    font-size: 0.6rem;
    color: #4b86aa;
    padding: 0.2rem 0;
    text-transform: uppercase;
}

/* Calendar Days */
.calendar-days[b-7g3ul8fu7m] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.5rem;
}

.calendar-day[b-7g3ul8fu7m] {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.7rem;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    /* Other Month Days */
    .calendar-day.other-month[b-7g3ul8fu7m] {
        color: #adb5bd;
        background-color: transparent;
        cursor: default;
    }

    /* Today */
    .calendar-day.today[b-7g3ul8fu7m] {
        background-color: #e8f2f8;
        border: 2px solid #4b86aa;
        font-weight: 700;
        color: #4b86aa;
    }

    /* Selected Day */
    .calendar-day.selected[b-7g3ul8fu7m] {
        background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
        color: white;
        border: 2px solid #3a7099;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(75, 134, 170, 0.3);
    }

    /* Disabled Days */
    .calendar-day.disabled[b-7g3ul8fu7m] {
        background-color: #f8f9fa;
        color: #adb5bd;
        cursor: not-allowed;
        opacity: 0.5;
    }

    /* Closed Days (with X mark) */
    .calendar-day.closed[b-7g3ul8fu7m] {
        background-color: #ffe0e0;
        border: 2px solid #ff6b6b;
        color: #dc3545;
        font-weight: 700;
        cursor: not-allowed;
    }

        .calendar-day.closed:hover[b-7g3ul8fu7m] {
            background-color: #ffd4d4;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
        }

/* Day Number and Closed Mark */
.day-number[b-7g3ul8fu7m] {
    font-size: 0.7rem;
}

.day-closed-mark[b-7g3ul8fu7m] {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 0.55rem;
    font-weight: 900;
    border: 1px solid white;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

/* Regular Available Day Hover */
.calendar-day:not(.other-month):not(.disabled):not(.closed):not(.selected):not(.today):hover[b-7g3ul8fu7m] {
    background-color: #e8f2f8;
    border-color: #4b86aa;
    transform: scale(1.08);
}

/* Calendar Footer */
.calendar-footer[b-7g3ul8fu7m] {
    display: flex;
    justify-content: center;
    padding-top: 0.4rem;
    border-top: 1px solid #e9ecef;
}

    .calendar-footer .btn[b-7g3ul8fu7m] {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

/* Responsive */
@media (max-width: 480px) {
    .calendar-dropdown[b-7g3ul8fu7m] {
        width: 200px;
        max-width: 200px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0.5rem;
    }

    .datepicker-input-group[b-7g3ul8fu7m] {
        gap: 0.2rem;
    }

    .calendar-day[b-7g3ul8fu7m] {
        font-size: 0.65rem;
    }

    .day-number[b-7g3ul8fu7m] {
        font-size: 0.65rem;
    }

    .day-closed-mark[b-7g3ul8fu7m] {
        width: 10px;
        height: 10px;
        font-size: 0.5rem;
        top: -4px;
        right: -4px;
    }
}
/* /Pages/PatientPortalPages/LabResults.razor.rz.scp.css */
/* CSS VARIABLES */
.lab-results-container[b-loxzzq06tn] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green: #22c55e;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
}

/* ─── Container ─────────────────────────────────────────────────────────── */
.lab-results-container[b-loxzzq06tn] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

    /* ─── RTL Support ────────────────────────────────────────────────────────── */
    .lab-results-container[dir="rtl"][b-loxzzq06tn] {
        direction: rtl;
    }

        .lab-results-container[dir="rtl"] .filters-grid[b-loxzzq06tn] {
            direction: rtl;
        }

        .lab-results-container[dir="rtl"] .filter-group-with-btn[b-loxzzq06tn] {
            flex-direction: row-reverse;
        }

        .lab-results-container[dir="rtl"] .lab-table th[b-loxzzq06tn],
        .lab-results-container[dir="rtl"] .lab-table td[b-loxzzq06tn] {
            text-align: right;
        }

        .lab-results-container[dir="rtl"] .lab-category-header .badge[b-loxzzq06tn] {
            margin-left: 0;
            margin-right: auto;
        }

        .lab-results-container[dir="rtl"] .card-strip[b-loxzzq06tn] {
            flex-direction: row-reverse;
        }

        .lab-results-container[dir="rtl"] .info-row[b-loxzzq06tn] {
            flex-direction: row-reverse;
        }

            .lab-results-container[dir="rtl"] .info-row i[b-loxzzq06tn] {
                margin-left: 6px;
                margin-right: 0;
            }

        .lab-results-container[dir="rtl"] .time-row[b-loxzzq06tn] {
            flex-direction: row-reverse;
        }

        .lab-results-container[dir="rtl"] .category-label .test-count[b-loxzzq06tn] {
            margin-left: 0;
            margin-right: auto;
        }

/* ─── Loading Spinner ────────────────────────────────────────────────────── */
.loading-spinner[b-loxzzq06tn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-loxzzq06tn] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-loxzzq06tn] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: lab-spin-b-loxzzq06tn 1s linear infinite;
}

@keyframes lab-spin-b-loxzzq06tn {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state[b-loxzzq06tn] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-loxzzq06tn] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-loxzzq06tn] {
        color: var(--text-2);
        font-size: 1.1rem;
    }

/* ─── Filters Panel ──────────────────────────────────────────────────────── */
.filters-panel[b-loxzzq06tn] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 16px 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-loxzzq06tn] {
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-grid[b-loxzzq06tn] {
    display: grid;
    grid-template-columns: repeat(2, 1fr) auto;
    gap: 12px;
    align-items: flex-end;
}

.filter-group-with-btn[b-loxzzq06tn] {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
}

.filter-group[b-loxzzq06tn] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.filter-label[b-loxzzq06tn] {
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}

.filter-select[b-loxzzq06tn] {
    padding: 10px 32px 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%234b86aa'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
    transition: all .2s ease;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
}

.lab-results-container[dir="rtl"] .filter-select[b-loxzzq06tn] {
    background-position: left 10px center;
    padding: 10px 12px 10px 32px;
}

.filter-select:hover[b-loxzzq06tn] {
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(75, 134, 170, 0.15);
}

.filter-select:focus[b-loxzzq06tn] {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.clear-btn[b-loxzzq06tn] {
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-surf);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .clear-btn:hover[b-loxzzq06tn] {
        background: var(--bg-white);
        border-color: var(--brand);
        color: var(--brand);
    }

    .clear-btn:active[b-loxzzq06tn] {
        background: var(--border);
    }

.print-btn[b-loxzzq06tn] {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 18px;
    transition: background .2s, transform .15s;
    box-shadow: var(--shadow-sm);
}

    .print-btn:hover:not(:disabled)[b-loxzzq06tn] {
        background: var(--brand-dark);
        transform: scale(1.08);
        box-shadow: 0 2px 12px rgba(75, 134, 170, 0.3);
    }

    .print-btn:active:not(:disabled)[b-loxzzq06tn] {
        transform: scale(.95);
    }

    .print-btn:disabled[b-loxzzq06tn] {
        opacity: .5;
        cursor: not-allowed;
    }

/* ─── Desktop Table View ─────────────────────────────────────────────────── */
.lab-results-table-wrapper[b-loxzzq06tn] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    width: 100%;
    overflow-x: auto;
}

.lab-category-section[b-loxzzq06tn] {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--brand);
}

.lab-results-container[dir="rtl"] .lab-category-section[b-loxzzq06tn] {
    border-left: none;
    border-right: 4px solid var(--brand);
}

.lab-category-header[b-loxzzq06tn] {
    background: var(--bg-surf);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

    .lab-category-header .category-title[b-loxzzq06tn] {
        color: var(--text-2);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: .95rem;
    }

    .lab-category-header i[b-loxzzq06tn] {
        color: var(--brand);
        font-size: 1.1rem;
    }

    .lab-category-header .badge[b-loxzzq06tn] {
        font-size: 10px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 10px;
        margin-left: auto;
    }

.lab-results-container[dir="rtl"] .lab-category-header .badge[b-loxzzq06tn] {
    margin-left: 0;
    margin-right: auto;
}

.lab-table[b-loxzzq06tn] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 600px;
}

    .lab-table thead[b-loxzzq06tn] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .lab-table thead th[b-loxzzq06tn] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

    .lab-table tbody tr[b-loxzzq06tn] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .lab-table tbody tr:hover[b-loxzzq06tn] {
            background: var(--bg-surf);
        }

    .lab-table tbody td[b-loxzzq06tn] {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
    }

.lab-row[b-loxzzq06tn] {
    transition: transform .2s, box-shadow .2s;
}

    .lab-row:hover[b-loxzzq06tn] {
        background: linear-gradient(90deg, rgba(75, 134, 170, 0.05) 0%, rgba(75, 134, 170, 0.02) 100%);
    }

/* ─── Status Badges ──────────────────────────────────────────────────────── */
.badge[b-loxzzq06tn] {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-info[b-loxzzq06tn] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

.text-success[b-loxzzq06tn] {
    color: var(--green-text) !important;
    font-weight: 600;
}

.text-danger[b-loxzzq06tn] {
    color: var(--red-text) !important;
    font-weight: 600;
}

/* ─── Mobile Card View ───────────────────────────────────────────────────── */
.lab-list[b-loxzzq06tn] {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
}

.lab-category-mobile[b-loxzzq06tn] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    animation: lab-cardIn-b-loxzzq06tn .25s ease-out both;
}

.lab-results-container[dir="rtl"] .lab-category-mobile[b-loxzzq06tn] {
    border-left: none;
    border-right: 4px solid var(--brand);
}

.category-label[b-loxzzq06tn] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-surf);
    border-bottom: 1px solid var(--border-lt);
    margin: 0;
}

    .category-label i[b-loxzzq06tn] {
        color: var(--brand);
        font-size: 14px;
    }

    .category-label .test-count[b-loxzzq06tn] {
        background: var(--brand);
        color: #fff;
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
        margin-left: auto;
        font-weight: 700;
    }

.lab-results-container[dir="rtl"] .category-label .test-count[b-loxzzq06tn] {
    margin-left: 0;
    margin-right: auto;
}

.lab-card[b-loxzzq06tn] {
    background: var(--bg-white);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-lt);
    overflow: hidden;
    box-shadow: none;
    animation: lab-cardIn-b-loxzzq06tn .25s ease-out both;
}

    .lab-card:last-child[b-loxzzq06tn] {
        border-bottom: none;
        border-radius: 0 0 var(--r-lg) var(--r-lg);
    }

@keyframes lab-cardIn-b-loxzzq06tn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-loxzzq06tn] {
    display: flex;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
    border-bottom: 1px solid var(--border-lt);
}

.lab-results-container[dir="rtl"] .card-strip[b-loxzzq06tn] {
    flex-direction: row-reverse;
}

.card-date-col[b-loxzzq06tn] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-loxzzq06tn] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-loxzzq06tn] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-loxzzq06tn] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-loxzzq06tn] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-loxzzq06tn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lab-results-container[dir="rtl"] .time-row[b-loxzzq06tn] {
    flex-direction: row-reverse;
}

.card-time[b-loxzzq06tn] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-loxzzq06tn] {
        font-size: 11px;
        color: var(--text-3);
    }

.card-info-rows[b-loxzzq06tn] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.info-row[b-loxzzq06tn] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-results-container[dir="rtl"] .info-row[b-loxzzq06tn] {
    flex-direction: row-reverse;
}

.info-row i[b-loxzzq06tn] {
    font-size: 11px;
    color: var(--text-3);
    flex-shrink: 0;
    width: 13px;
    text-align: center;
}

.lab-results-container[dir="rtl"] .info-row i[b-loxzzq06tn] {
    margin-left: 6px;
    margin-right: 0;
}

.info-row span[b-loxzzq06tn] {
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.test-pill[b-loxzzq06tn] {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--blue-bg);
    color: var(--blue-text);
}

.normal-range[b-loxzzq06tn] {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    background: var(--bg-surf);
    border-radius: 4px;
}

/* ─── Result Badge ───────────────────────────────────────────────────────── */
.result-badge[b-loxzzq06tn] {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Card Meta & Footer ─────────────────────────────────────────────────── */
.card-meta[b-loxzzq06tn] {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-white);
    font-size: 11px;
}

    .card-meta .meta-item[b-loxzzq06tn] {
        flex: 1;
        color: var(--text-3);
    }

.card-footer[b-loxzzq06tn] {
    padding: 10px 12px;
    background: var(--bg-surf);
    font-size: 11px;
    color: var(--text-3);
}

/* ─── Modal Message Card ─────────────────────────────────────────────────── */
.msg-modal-backdrop[b-loxzzq06tn] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lab-fadeIn-b-loxzzq06tn .2s ease;
    isolation: isolate;
}

@keyframes lab-fadeIn-b-loxzzq06tn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-loxzzq06tn] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: lab-slideUp-b-loxzzq06tn .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes lab-slideUp-b-loxzzq06tn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-card.error[b-loxzzq06tn] {
    border-top: 4px solid #dc3545;
}

.modal-card.success[b-loxzzq06tn] {
    border-top: 4px solid #28a745;
}

.modal-card-header[b-loxzzq06tn] {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title[b-loxzzq06tn] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.modal-card.error .modal-title[b-loxzzq06tn] {
    color: #dc3545;
}

.modal-card.success .modal-title[b-loxzzq06tn] {
    color: #28a745;
}

.modal-card-body[b-loxzzq06tn] {
    padding: 1.25rem 1.5rem;
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.6;
}

    .modal-card-body p[b-loxzzq06tn] {
        margin: 0;
        word-break: break-word;
    }

.sheet-close[b-loxzzq06tn] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Dialog ─────────────────────────────────────────────────────────────── */
.dialog-overlay[b-loxzzq06tn] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    isolation: isolate;
    animation: rad-fadeIn-b-loxzzq06tn .2s ease;
}

@keyframes rad-fadeIn-b-loxzzq06tn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-container[b-loxzzq06tn] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    width: 92%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
    animation: rad-slideUp-b-loxzzq06tn .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes rad-slideUp-b-loxzzq06tn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header[b-loxzzq06tn] {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: white;
}

.dialog-title[b-loxzzq06tn] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.dialog-close-btn[b-loxzzq06tn] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

    .dialog-close-btn:hover[b-loxzzq06tn] {
        background: var(--border);
    }

.dialog-content[b-loxzzq06tn] {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    background-color:white;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination-container[b-loxzzq06tn] {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination[b-loxzzq06tn] {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    justify-content: center;
    gap: 4px;
}

.page-item[b-loxzzq06tn] {
    display: inline-block;
}

    .page-item.disabled .page-link[b-loxzzq06tn] {
        cursor: not-allowed;
        opacity: 0.65;
        background-color: #e9ecef;
        border-color: #dee2e6;
        color: #6c757d;
    }

    .page-item.active .page-link[b-loxzzq06tn] {
        background-color: var(--brand);
        border-color: var(--brand);
        color: white;
        z-index: 3;
    }

.page-link[b-loxzzq06tn] {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--brand);
    background-color: var(--bg-white);
    border: 1px solid #dee2e6;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .page-link:hover:not(:disabled)[b-loxzzq06tn] {
        background-color: #e9ecef;
        border-color: #dee2e6;
        color: var(--brand-dark);
    }

    .page-link i[b-loxzzq06tn] {
        font-size: 0.8em;
    }

.pagination-info[b-loxzzq06tn] {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-2);
    font-size: 0.85rem;
}

    .pagination-info small[b-loxzzq06tn] {
        display: block;
    }

/* RTL Pagination Support */
[dir="rtl"] .page-link[b-loxzzq06tn] {
    margin-left: 0;
    margin-right: -1px;
}


/* ─── Responsive: Mobile (< 768px) ──────────────────────────────────────── */
@media (max-width: 767px) {
    .lab-results-container[b-loxzzq06tn] {
        padding: .75rem;
    }

    .d-md-none[b-loxzzq06tn] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-loxzzq06tn],
    .d-md-block[b-loxzzq06tn] {
        display: none !important;
    }

    /* Filters: single column stack */
    .filters-grid[b-loxzzq06tn] {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Date filter + print button stay side-by-side */
    .filter-group-with-btn[b-loxzzq06tn] {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
    }

        .filter-group-with-btn .filter-group[b-loxzzq06tn] {
            flex: 1;
            min-width: 0;
        }

        /* Print button: fixed square, never squished */
        .filter-group-with-btn .print-btn[b-loxzzq06tn] {
            width: 42px;
            min-width: 42px;
            min-height: 42px;
            height: auto;
            flex-shrink: 0;
        }

    /* Select: grow to content, never clip text */
    .filter-select[b-loxzzq06tn] {
        min-height: 42px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        line-height: 1.4;
    }

    /* Clear button: full width, centred content */
    .clear-btn[b-loxzzq06tn] {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }
}

/* ─── Responsive: Desktop (≥ 768px) ─────────────────────────────────────── */
@media (min-width: 768px) {
    .lab-results-container[b-loxzzq06tn] {
        padding: 1.5rem;
    }

    .d-md-none[b-loxzzq06tn] {
        display: none !important;
    }

    .d-none.d-md-block[b-loxzzq06tn],
    .d-md-block[b-loxzzq06tn] {
        display: block !important;
    }

    .filters-grid[b-loxzzq06tn] {
        grid-template-columns: 1.5fr 1.2fr auto;
        gap: 14px;
    }

    .filter-group-with-btn[b-loxzzq06tn] {
        grid-column: span 1;
        gap: 12px;
    }

        .filter-group-with-btn .filter-group[b-loxzzq06tn] {
            flex: 1;
        }

    .clear-btn[b-loxzzq06tn] {
        grid-column: auto;
    }
}
/* /Pages/PatientPortalPages/PharmacyMedications.razor.rz.scp.css */
/* ========== CSS VARIABLES SYSTEM ========== */
.medications-container[b-nw62r33da3] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green: #22c55e;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
    margin: 0 auto;
}

    /* RTL Support */
    .medications-container[dir="rtl"][b-nw62r33da3] {
        direction: rtl;
    }

        /*.medications-container[dir="rtl"] .tabs-row {
            flex-direction: row-reverse;
        }*/

        .medications-container[dir="rtl"] .filters-grid[b-nw62r33da3] {
            direction: rtl;
        }

        .medications-container[dir="rtl"] .medications-table th[b-nw62r33da3],
        .medications-container[dir="rtl"] .medications-table td[b-nw62r33da3] {
            text-align: right;
        }

        .medications-container[dir="rtl"] .card-strip[b-nw62r33da3] {
            flex-direction: row-reverse;
        }

        .medications-container[dir="rtl"] .info-row[b-nw62r33da3] {
            flex-direction: row-reverse;
        }

            .medications-container[dir="rtl"] .info-row i[b-nw62r33da3] {
                margin-left: 6px;
                margin-right: 0;
            }

        .medications-container[dir="rtl"] .time-row[b-nw62r33da3] {
            flex-direction: row-reverse;
        }

/* Table column alignment */
.medications-table th[b-nw62r33da3],
.medications-table td[b-nw62r33da3] {
    text-align: left;
}

.medications-container[dir="rtl"] .medications-table th[b-nw62r33da3],
.medications-container[dir="rtl"] .medications-table td[b-nw62r33da3] {
    text-align: right;
}

/* Specific column widths for better alignment */
.col-product[b-nw62r33da3] {
    min-width: 180px;
}

.col-quantity[b-nw62r33da3] {
    min-width: 80px;
    text-align: center;
}

.col-datetime[b-nw62r33da3] {
    min-width: 140px;
}

.col-pharmacist[b-nw62r33da3] {
    min-width: 130px;
}

.col-comments[b-nw62r33da3] {
    min-width: 150px;
}

.col-status[b-nw62r33da3] {
    min-width: 100px;
    text-align: center;
}

.col-dose[b-nw62r33da3] {
    min-width: 80px;
    text-align: center;
}

.col-frequency[b-nw62r33da3] {
    min-width: 100px;
}

.col-duration[b-nw62r33da3] {
    min-width: 80px;
    text-align: center;
}

.col-route[b-nw62r33da3] {
    min-width: 100px;
}

.medications-container[dir="rtl"] .col-quantity[b-nw62r33da3],
.medications-container[dir="rtl"] .col-status[b-nw62r33da3],
.medications-container[dir="rtl"] .col-dose[b-nw62r33da3],
.medications-container[dir="rtl"] .col-duration[b-nw62r33da3] {
    text-align: center;
}

/* ========== LOADING & EMPTY STATES ========== */
.loading-spinner[b-nw62r33da3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-nw62r33da3] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-nw62r33da3] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin-b-nw62r33da3 1s linear infinite;
}

@keyframes spin-b-nw62r33da3 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state[b-nw62r33da3] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-nw62r33da3] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-nw62r33da3] {
        color: var(--text-2);
        font-size: 1.1rem;
    }

/* ========== BOOK BUTTON ========== */
.book-btn[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    margin-bottom: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .2s, transform .15s;
}

    .book-btn:hover[b-nw62r33da3] {
        background: var(--brand-dark);
    }

    .book-btn:active[b-nw62r33da3] {
        transform: scale(.98);
    }

/* ========== TABS ROW ========== */
.tabs-row[b-nw62r33da3] {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    overflow-x: clip;
}

.tab-btn[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color .2s;
}

    .tab-btn i[b-nw62r33da3] {
        font-size: 15px;
    }

    .tab-btn .cnt[b-nw62r33da3] {
        background: var(--border);
        color: var(--text-2);
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        min-width: 24px;
        text-align: center;
    }

    .tab-btn:hover[b-nw62r33da3] {
        color: var(--brand);
    }

    .tab-btn.active[b-nw62r33da3] {
        color: var(--brand);
    }

        .tab-btn.active[b-nw62r33da3]::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--brand);
        }

        .tab-btn.active .cnt[b-nw62r33da3] {
            background: var(--brand);
            color: white;
        }

/* ========== FILTERS PANEL ========== */
.filters-panel[b-nw62r33da3] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 16px 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-nw62r33da3] {
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-grid[b-nw62r33da3] {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

.medications-container[dir="rtl"] .filters-grid[b-nw62r33da3] {
    direction: rtl;
}

.filter-group[b-nw62r33da3] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label[b-nw62r33da3] {
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.filter-input[b-nw62r33da3],
.filter-select[b-nw62r33da3] {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-white);
    color: var(--text-1);
    transition: border-color .2s, box-shadow .2s;
}

    .filter-input:focus[b-nw62r33da3],
    .filter-select:focus[b-nw62r33da3] {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
    }

    .filter-input[b-nw62r33da3]::placeholder {
        color: var(--text-3);
    }

.clear-btn[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-surf);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

    .clear-btn:hover[b-nw62r33da3] {
        background: var(--border);
        border-color: var(--brand);
        color: var(--brand);
    }

    .clear-btn i[b-nw62r33da3] {
        font-size: 13px;
    }

/* ========== DESKTOP TABLE VIEW ========== */
.medications-table-wrapper[b-nw62r33da3] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.medications-table[b-nw62r33da3] {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    min-width: 800px;
}

    .medications-table thead[b-nw62r33da3] {
        background: var(--bg-surf);
        border-bottom: 1px solid var(--border);
    }

        .medications-table thead th[b-nw62r33da3] {
            padding: 12px 14px;
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-2);
            text-transform: uppercase;
            letter-spacing: .5px;
            white-space: nowrap;
        }

    .medications-table tbody tr[b-nw62r33da3] {
        border-bottom: 1px solid var(--border);
        transition: background-color .2s;
    }

        .medications-table tbody tr:hover[b-nw62r33da3] {
            background-color: var(--bg-surf);
        }

    .medications-table tbody td[b-nw62r33da3] {
        padding: 12px 14px;
        font-size: 13px;
        color: var(--text-1);
        vertical-align: middle;
    }

.medication-row[b-nw62r33da3] {
    transition: transform .2s, box-shadow .2s;
}

    .medication-row:hover[b-nw62r33da3] {
        background: linear-gradient(90deg, rgba(75, 134, 170, 0.05) 0%, rgba(75, 134, 170, 0.02) 100%);
    }

/* ========== MOBILE CARD VIEW ========== */
.medication-list[b-nw62r33da3] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.medication-card[b-nw62r33da3] {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: cardIn-b-nw62r33da3 .3s ease-out;
}

@keyframes cardIn-b-nw62r33da3 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-nw62r33da3] {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.medications-container[dir="rtl"] .card-strip[b-nw62r33da3] {
    flex-direction: row-reverse;
}

.card-date-col[b-nw62r33da3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-width: 60px;
    padding: 8px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: var(--r-sm);
    color: white;
    text-align: center;
}

    .card-date-col .day-name[b-nw62r33da3] {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        opacity: .9;
    }

    .card-date-col .day-num[b-nw62r33da3] {
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        margin: 2px 0;
    }

    .card-date-col .month[b-nw62r33da3] {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .3px;
        opacity: .9;
    }

.card-main[b-nw62r33da3] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.time-row[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.medications-container[dir="rtl"] .time-row[b-nw62r33da3] {
    flex-direction: row-reverse;
}

.card-time[b-nw62r33da3] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-2);
    font-weight: 600;
}

    .card-time i[b-nw62r33da3] {
        font-size: 13px;
        color: var(--brand);
    }

.card-title[b-nw62r33da3] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.status-badge[b-nw62r33da3] {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.card-info-rows[b-nw62r33da3] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row[b-nw62r33da3] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
}

.medications-container[dir="rtl"] .info-row[b-nw62r33da3] {
    flex-direction: row-reverse;
}

.info-row i[b-nw62r33da3] {
    font-size: 13px;
    color: var(--brand);
    flex-shrink: 0;
}

.medications-container[dir="rtl"] .info-row i[b-nw62r33da3] {
    margin-left: 6px;
    margin-right: 0;
}

.info-row span[b-nw62r33da3] {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-row .qty-pill[b-nw62r33da3] {
    background: var(--blue-bg);
    color: var(--blue-text);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.info-row .trade-name[b-nw62r33da3] {
    color: var(--text-3);
    font-style: italic;
}

.card-footer[b-nw62r33da3] {
    padding: 8px 12px;
    background: var(--bg-surf);
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-2);
    line-height: 1.4;
}

.card-meta[b-nw62r33da3] {
    padding: 8px 12px;
    background: var(--bg-surf);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-2);
}

.meta-item[b-nw62r33da3] {
    flex: 1;
    display: flex;
    align-items: center;
}

    .meta-item small[b-nw62r33da3] {
        font-weight: 600;
    }

/* ========== STATUS BADGES ========== */
.badge-success[b-nw62r33da3] {
    background-color: var(--green-bg) !important;
    color: var(--green-text) !important;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge-warning[b-nw62r33da3] {
    background-color: var(--amber-bg) !important;
    color: var(--amber-text) !important;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge-info[b-nw62r33da3] {
    background-color: var(--blue-bg) !important;
    color: var(--blue-text) !important;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-primary[b-nw62r33da3] {
    background-color: var(--blue-bg) !important;
    color: var(--blue-text) !important;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.bg-success[b-nw62r33da3] {
    background-color: var(--green-bg) !important;
    color: var(--green-text) !important;
}

.bg-warning[b-nw62r33da3] {
    background-color: var(--amber-bg) !important;
    color: var(--amber-text) !important;
}

.bg-info[b-nw62r33da3] {
    background-color: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

.bg-primary[b-nw62r33da3] {
    background-color: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

/* ========== PAGINATION ========== */
.pagination-container[b-nw62r33da3] {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.pagination[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.medications-container[dir="rtl"] .pagination[b-nw62r33da3] {
    flex-direction: row-reverse;
}

.pagination .page-item[b-nw62r33da3] {
    margin: 0;
}

.pagination .page-link[b-nw62r33da3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    gap: 4px;
}

    .pagination .page-link:hover[b-nw62r33da3] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination .page-item.active .page-link[b-nw62r33da3] {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.pagination .page-item.disabled .page-link[b-nw62r33da3] {
    color: var(--text-3);
    cursor: not-allowed;
    opacity: .5;
}

.pagination-info[b-nw62r33da3] {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 600;
}

/* ========== ERROR MODAL ========== */
.msg-modal-backdrop[b-nw62r33da3] {
    animation: fadeIn-b-nw62r33da3 .2s ease-out;
}

@keyframes fadeIn-b-nw62r33da3 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-nw62r33da3] {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-card-header[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-surf);
    border-bottom: 1px solid var(--border);
}

.modal-title[b-nw62r33da3] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.modal-card.error .modal-title[b-nw62r33da3] {
    color: var(--red-text);
}

    .modal-card.error .modal-title i[b-nw62r33da3] {
        color: var(--red);
    }

.sheet-close[b-nw62r33da3] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    font-size: 16px;
    transition: color .2s;
}

    .sheet-close:hover[b-nw62r33da3] {
        color: var(--text-1);
    }

.modal-card-body[b-nw62r33da3] {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-1);
    line-height: 1.5;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 767px) {
    .medications-container[b-nw62r33da3] {
        padding: 1rem;
    }

    .filters-grid[b-nw62r33da3] {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .clear-btn[b-nw62r33da3] {
        width: 100%;
    }

    .medications-table-wrapper[b-nw62r33da3] {
        display: none;
    }

    .medication-list[b-nw62r33da3] {
        display: flex;
    }

    .tabs-row[b-nw62r33da3] {
        margin-bottom: 12px;
    }

    .tab-btn[b-nw62r33da3] {
        padding: 9px 10px;
        font-size: 12px;
    }

        .tab-btn i[b-nw62r33da3] {
            font-size: 14px;
        }

        .tab-btn .cnt[b-nw62r33da3] {
            font-size: 10px;
            padding: 1px 6px;
            min-width: 20px;
        }
}

@media (min-width: 768px) {
    .medication-list[b-nw62r33da3] {
        display: none !important;
    }

    .medications-table-wrapper[b-nw62r33da3] {
        display: block !important;
    }
}
/* /Pages/PatientPortalPages/RadiologyResults.razor.rz.scp.css */
/* CSS VARIABLES */
.radiology-container[b-qtgb3v0se6] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green: #22c55e;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
}

/* Container */
.radiology-container[b-qtgb3v0se6] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

    /* RTL Support */
    .radiology-container[dir="rtl"][b-qtgb3v0se6] {
        direction: rtl;
    }

        .radiology-container[dir="rtl"] .filters-grid[b-qtgb3v0se6] {
            direction: rtl;
        }

        .radiology-container[dir="rtl"] .filter-group-with-btn[b-qtgb3v0se6] {
            flex-direction: row-reverse;
        }

        .radiology-container[dir="rtl"] .radiology-table th[b-qtgb3v0se6],
        .radiology-container[dir="rtl"] .radiology-table td[b-qtgb3v0se6] {
            text-align: right;
        }

        .radiology-container[dir="rtl"] .result-details[b-qtgb3v0se6] {
            border-left: none;
            border-right: 4px solid var(--brand);
        }

        .radiology-container[dir="rtl"] .detail-section.critical-info[b-qtgb3v0se6] {
            border-left: none;
            border-right: 4px solid #ffc107;
        }

        .radiology-container[dir="rtl"] .card-strip[b-qtgb3v0se6] {
            flex-direction: row-reverse;
        }

        .radiology-container[dir="rtl"] .info-row[b-qtgb3v0se6] {
            flex-direction: row-reverse;
        }

            .radiology-container[dir="rtl"] .info-row i[b-qtgb3v0se6] {
                margin-left: 6px;
                margin-right: 0;
            }

        .radiology-container[dir="rtl"] .time-row[b-qtgb3v0se6] {
            flex-direction: row-reverse;
        }

        .radiology-container[dir="rtl"] .sort-header[b-qtgb3v0se6] {
            flex-direction: row-reverse;
        }

/* Loading Spinner */
.loading-spinner[b-qtgb3v0se6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-qtgb3v0se6] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-qtgb3v0se6] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rad-spin-b-qtgb3v0se6 1s linear infinite;
}

@keyframes rad-spin-b-qtgb3v0se6 {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state[b-qtgb3v0se6] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-qtgb3v0se6] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-qtgb3v0se6] {
        color: var(--text-2);
        font-size: 1.1rem;
    }

/* Sort Header */
.sort-header[b-qtgb3v0se6] {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

    .sort-header:hover[b-qtgb3v0se6] {
        color: var(--brand);
    }

/* Filters Panel */
.filters-panel[b-qtgb3v0se6] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 16px 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-qtgb3v0se6] {
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-grid[b-qtgb3v0se6] {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr auto;
    gap: 14px;
    align-items: flex-end;
}

.filter-group[b-qtgb3v0se6] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group-with-btn[b-qtgb3v0se6] {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-label[b-qtgb3v0se6] {
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}

.filter-select[b-qtgb3v0se6] {
    padding: 10px 32px 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%234b86aa'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
    transition: all .2s ease;
    font-weight: 500;
}

.radiology-container[dir="rtl"] .filter-select[b-qtgb3v0se6] {
    background-position: left 10px center;
    padding: 10px 12px 10px 32px;
}

.filter-select:hover[b-qtgb3v0se6] {
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(75, 134, 170, 0.15);
}

.filter-select:focus[b-qtgb3v0se6] {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
}

.clear-btn[b-qtgb3v0se6] {
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-surf);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    transition: all .2s ease;
}

    .clear-btn:hover[b-qtgb3v0se6] {
        background: var(--bg-white);
        border-color: var(--brand);
        color: var(--brand);
    }

    .clear-btn:active[b-qtgb3v0se6] {
        background: var(--border);
    }

.print-btn[b-qtgb3v0se6] {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 18px;
    transition: background .2s, transform .15s;
    box-shadow: var(--shadow-sm);
}

    .print-btn:hover:not(:disabled)[b-qtgb3v0se6] {
        background: var(--brand-dark);
        transform: scale(1.08);
        box-shadow: 0 2px 12px rgba(75, 134, 170, 0.3);
    }

    .print-btn:active:not(:disabled)[b-qtgb3v0se6] {
        transform: scale(.95);
    }

    .print-btn:disabled[b-qtgb3v0se6] {
        opacity: .5;
        cursor: not-allowed;
    }

/* action icons container (desktop) */
.action-icons[b-qtgb3v0se6] {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* print icon button (desktop) */
.icon-btn[b-qtgb3v0se6] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .icon-btn:hover[b-qtgb3v0se6] {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .icon-btn:active[b-qtgb3v0se6] {
        transform: scale(0.95);
    }

.icon-print[b-qtgb3v0se6] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

    .icon-print:hover[b-qtgb3v0se6] {
        background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    }

/* DESKTOP TABLE VIEW */
.radiology-table-wrapper[b-qtgb3v0se6] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    width: 100%;
    overflow-x: auto;
}

.radiology-table[b-qtgb3v0se6] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 700px;
}

    .radiology-table thead[b-qtgb3v0se6] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .radiology-table thead th[b-qtgb3v0se6] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

    .radiology-table tbody tr[b-qtgb3v0se6] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .radiology-table tbody tr:hover[b-qtgb3v0se6] {
            background: var(--bg-surf);
        }

    .radiology-table tbody td[b-qtgb3v0se6] {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
    }

.radiology-row[b-qtgb3v0se6] {
    transition: transform .2s, box-shadow .2s;
}

    .radiology-row:hover[b-qtgb3v0se6] {
        background: linear-gradient(90deg, rgba(75, 134, 170, 0.05) 0%, rgba(75, 134, 170, 0.02) 100%);
    }

/* Details Row */
.details-row[b-qtgb3v0se6] {
    background-color: var(--bg-surf) !important;
}

    .details-row td[b-qtgb3v0se6] {
        padding: 0 !important;
    }

.result-details[b-qtgb3v0se6] {
    padding: 1.5rem;
    background: white;
    border-left: 4px solid var(--brand);
    margin: 0.5rem;
    border-radius: 8px;
}

.detail-section[b-qtgb3v0se6] {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-lt);
}

    .detail-section:last-child[b-qtgb3v0se6] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-section h6[b-qtgb3v0se6] {
        color: var(--brand);
        font-weight: 600;
        margin-bottom: 0.75rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .detail-section p[b-qtgb3v0se6] {
        color: var(--text-2);
        margin: 0;
        line-height: 1.6;
        white-space: pre-wrap;
    }

    .detail-section.critical-info[b-qtgb3v0se6] {
        background-color: var(--amber-bg);
        padding: 1rem;
        border-radius: 8px;
        border-left: 4px solid #ffc107;
    }

        .detail-section.critical-info h6[b-qtgb3v0se6] {
            color: var(--amber-text);
        }

        .detail-section.critical-info p[b-qtgb3v0se6] {
            color: var(--amber-text);
        }

    .detail-section.metadata[b-qtgb3v0se6] {
        background-color: var(--bg-surf);
        padding: 1rem;
        border-radius: 8px;
        border: none;
    }

        .detail-section.metadata small[b-qtgb3v0se6] {
            color: var(--text-3);
        }

/* MOBILE CARD VIEW */
.radiology-list[b-qtgb3v0se6] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.radiology-card[b-qtgb3v0se6] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: rad-cardIn-b-qtgb3v0se6 .25s ease-out both;
}

@keyframes rad-cardIn-b-qtgb3v0se6 {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-qtgb3v0se6] {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
}

.radiology-container[dir="rtl"] .card-strip[b-qtgb3v0se6] {
    flex-direction: row-reverse;
}

.card-date-col[b-qtgb3v0se6] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-qtgb3v0se6] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-qtgb3v0se6] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-qtgb3v0se6] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-qtgb3v0se6] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-qtgb3v0se6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.radiology-container[dir="rtl"] .time-row[b-qtgb3v0se6] {
    flex-direction: row-reverse;
}

.card-time[b-qtgb3v0se6] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-qtgb3v0se6] {
        font-size: 11px;
        color: var(--text-3);
    }

.card-info-rows[b-qtgb3v0se6] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.info-row[b-qtgb3v0se6] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radiology-container[dir="rtl"] .info-row[b-qtgb3v0se6] {
    flex-direction: row-reverse;
}

.info-row i[b-qtgb3v0se6] {
    font-size: 11px;
    color: var(--text-3);
    flex-shrink: 0;
    width: 13px;
    text-align: center;
}

.radiology-container[dir="rtl"] .info-row i[b-qtgb3v0se6] {
    margin-left: 6px;
    margin-right: 0;
}

.info-row span[b-qtgb3v0se6] {
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dept-pill[b-qtgb3v0se6] {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--blue-bg);
    color: var(--blue-text);
}

.card-actions[b-qtgb3v0se6] {
    display: flex;
    border-top: 1px solid var(--border-lt);
    padding: 8px 14px;
    gap: 6px;
    align-items: center;
}

.radiology-container[dir="rtl"] .card-actions[b-qtgb3v0se6] {
    flex-direction: row-reverse;
}

/* Mobile report buttons */
.report-btn[b-qtgb3v0se6] {
    padding: 9px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background .15s;
    white-space: nowrap;
    flex: 1;
}

    .report-btn:active[b-qtgb3v0se6] {
        background: var(--brand-dark);
    }

.report-btn--sick[b-qtgb3v0se6] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

    .report-btn--sick:active[b-qtgb3v0se6] {
        background: var(--brand-dark);
    }

.action-btn[b-qtgb3v0se6] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: background .15s;
}

    .action-btn:active[b-qtgb3v0se6] {
        background: var(--bg-surf);
    }

.a-view[b-qtgb3v0se6] {
    color: var(--brand);
}

.card-details[b-qtgb3v0se6] {
    padding: 12px;
    background: var(--bg-surf);
    border-top: 1px solid var(--border-lt);
}

    .card-details .detail-section[b-qtgb3v0se6] {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-lt);
    }

        .card-details .detail-section:last-child[b-qtgb3v0se6] {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .card-details .detail-section h6[b-qtgb3v0se6] {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .card-details .detail-section p[b-qtgb3v0se6] {
            font-size: 0.85rem;
        }

/* Status Badges */
.badge-success[b-qtgb3v0se6] {
    background: var(--green-bg) !important;
    color: var(--green-text) !important;
}

.badge-warning[b-qtgb3v0se6] {
    background: var(--amber-bg) !important;
    color: var(--amber-text) !important;
}

.badge-danger[b-qtgb3v0se6] {
    background: var(--red-bg) !important;
    color: var(--red-text) !important;
}

.badge-info[b-qtgb3v0se6] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
}

.badge-secondary[b-qtgb3v0se6] {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

.btn-sm[b-qtgb3v0se6] {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary[b-qtgb3v0se6] {
    color: var(--brand);
    border: 1px solid var(--brand);
    background: transparent;
    cursor: pointer;
}

    .btn-outline-primary:hover[b-qtgb3v0se6] {
        background-color: var(--brand);
        color: white;
    }

/* Pagination */
.pagination-container[b-qtgb3v0se6] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pagination[b-qtgb3v0se6] {
    gap: .35rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}



.page-item[b-qtgb3v0se6] {
    list-style: none;
}

    .page-item.active .page-link[b-qtgb3v0se6] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-qtgb3v0se6] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-qtgb3v0se6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .75rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s ease;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-qtgb3v0se6] {
        background: var(--bg-surf);
        border-color: var(--brand);
        color: var(--brand-dark);
    }

    .page-link i[b-qtgb3v0se6] {
        font-size: 0.8em;
    }

.pagination-container[b-qtgb3v0se6] {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pagination[b-qtgb3v0se6] {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-item[b-qtgb3v0se6] {
    display: inline-block;
}

.pagination-info[b-qtgb3v0se6] {
    font-size: .85rem;
    color: var(--text-3);
    margin-top: 1rem;
}

    .pagination-info small[b-qtgb3v0se6] {
        display: block;
    }


/* Modal Message Card */
.msg-modal-backdrop[b-qtgb3v0se6] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rad-fadeIn-b-qtgb3v0se6 .2s ease;
    isolation: isolate;
}

@keyframes rad-fadeIn-b-qtgb3v0se6 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-qtgb3v0se6] {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: rad-slideUp-b-qtgb3v0se6 .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes rad-slideUp-b-qtgb3v0se6 {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-card.error[b-qtgb3v0se6] {
    border-top: 4px solid #dc3545;
}

.modal-card.success[b-qtgb3v0se6] {
    border-top: 4px solid #28a745;
}

.modal-card-header[b-qtgb3v0se6] {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title[b-qtgb3v0se6] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.modal-card.error .modal-title[b-qtgb3v0se6] {
    color: #dc3545;
}

.modal-card.success .modal-title[b-qtgb3v0se6] {
    color: #28a745;
}

.modal-card-body[b-qtgb3v0se6] {
    padding: 1.25rem 1.5rem;
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.6;
}

    .modal-card-body p[b-qtgb3v0se6] {
        margin: 0;
        word-break: break-word;
    }

.sheet-close[b-qtgb3v0se6] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dialog */
.dialog-overlay[b-qtgb3v0se6] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-container[b-qtgb3v0se6] {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dialog-header[b-qtgb3v0se6] {
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-title[b-qtgb3v0se6] {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.dialog-close-btn[b-qtgb3v0se6] {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: #666;
    transition: color 0.2s;
}

    .dialog-close-btn:hover[b-qtgb3v0se6] {
        color: #000;
    }

.dialog-content[b-qtgb3v0se6] {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 767px) {
    .radiology-container[b-qtgb3v0se6] {
        padding: .75rem;
    }

    /* show mobile cards */
    .d-md-none[b-qtgb3v0se6] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-qtgb3v0se6],
    .d-md-block[b-qtgb3v0se6] {
        display: none !important;
    }

    /* filters: 2-column grid */
    .filters-grid[b-qtgb3v0se6] {
        grid-template-columns: 1fr;
    }

    .filter-group-with-btn[b-qtgb3v0se6] {
        flex-direction: column;
        align-items: stretch;
    }

        .filter-group-with-btn .filter-group[b-qtgb3v0se6] {
            flex: 1;
        }

        .filter-group-with-btn .print-btn[b-qtgb3v0se6] {
            width: 100%;
            height: 36px;
        }

    .clear-btn[b-qtgb3v0se6] {
        grid-column: auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .radiology-container[b-qtgb3v0se6] {
        padding: 1.5rem;
    }

    .d-md-none[b-qtgb3v0se6] {
        display: none !important;
    }

    .d-none.d-md-block[b-qtgb3v0se6],
    .d-md-block[b-qtgb3v0se6] {
        display: block !important;
    }

    /* Filters: 3-column grid with more space */
    .filters-grid[b-qtgb3v0se6] {
        display: grid;
        grid-template-columns: 1fr 0.8fr 0.8fr auto; /* Changed from 1.5fr 1.2fr auto */
        gap: 12px;
        align-items: flex-end;
    }

    .filter-group-with-btn[b-qtgb3v0se6] {
        grid-column: span 1;
        gap: 12px;
    }

        .filter-group-with-btn .filter-group[b-qtgb3v0se6] {
            flex: 1;
        }

    .clear-btn[b-qtgb3v0se6] {
        grid-column: auto;
    }
}
/* Dialog */
.dialog-overlay[b-qtgb3v0se6] {
    position: fixed;
    inset: 0; /* ← replaces top/left/width/height */
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* ← was 1000, nav is likely ~1000 */
    isolation: isolate; /* ← creates new stacking context */
    animation: rad-fadeIn-b-qtgb3v0se6 .2s ease;
}

@keyframes rad-fadeIn-b-qtgb3v0se6 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-container[b-qtgb3v0se6] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    width: 92%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
    animation: rad-slideUp-b-qtgb3v0se6 .28s ease;
    position: relative;
    z-index: 2001; /* ← sits above the overlay */
}

@keyframes rad-slideUp-b-qtgb3v0se6 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header[b-qtgb3v0se6] {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: white;
}

.dialog-title[b-qtgb3v0se6] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.dialog-close-btn[b-qtgb3v0se6] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

    .dialog-close-btn:hover[b-qtgb3v0se6] {
        background: var(--border);
    }

.dialog-content[b-qtgb3v0se6] {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    background-color: white;
}

.badge[b-qtgb3v0se6] {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-info[b-qtgb3v0se6] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
    cursor: default;
}
/* /Pages/PatientPortalPages/SickLeaves.razor.rz.scp.css */
/* ═══════════════════════════════════════════
   SICKLEAVES.CSS  — mirrors visits.css with full RTL support
   ═══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
.appointments-container[b-jwmc45yhau] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ── CONTAINER ── */
.appointments-container[b-jwmc45yhau] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ── LOADING ── */
.loading-spinner[b-jwmc45yhau] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-jwmc45yhau] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-jwmc45yhau] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: vis-spin-b-jwmc45yhau 1s linear infinite;
}

@keyframes vis-spin-b-jwmc45yhau {
    to {
        transform: rotate(360deg);
    }
}

/* ── EMPTY STATE ── */
.empty-state[b-jwmc45yhau] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-jwmc45yhau] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-jwmc45yhau] {
        color: var(--text-2);
        font-size: 1.1rem;
        margin-bottom: .25rem;
    }

/* ── ALERT ── */
.alert[b-jwmc45yhau] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.2rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: .9rem;
}

    .alert.alert-danger[b-jwmc45yhau] {
        background: var(--red-bg);
        color: var(--red-text);
    }

    .alert i[b-jwmc45yhau] {
        flex-shrink: 0;
    }

/* ── FILTERS PANEL ── */
.filters-panel[b-jwmc45yhau] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-jwmc45yhau] {
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filters-grid[b-jwmc45yhau] {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.filter-group[b-jwmc45yhau] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label[b-jwmc45yhau] {
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.filter-select[b-jwmc45yhau] {
    padding: 6px 24px 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa5b4'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
}

    .filter-select:focus[b-jwmc45yhau] {
        outline: none;
        border-color: var(--brand);
    }

.clear-btn[b-jwmc45yhau] {
    padding: 7px 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-surf);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .clear-btn:active[b-jwmc45yhau] {
        background: var(--border);
    }

/* ── SORT BAR ── */
.sort-bar[b-jwmc45yhau] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-label[b-jwmc45yhau] {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.sort-btn[b-jwmc45yhau] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* ── DESKTOP TABLE ── */
.appointments-table-wrapper[b-jwmc45yhau] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.appointments-table[b-jwmc45yhau] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 900px;
}

    .appointments-table thead[b-jwmc45yhau] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .appointments-table thead th[b-jwmc45yhau] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

    .appointments-table tbody tr[b-jwmc45yhau] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .appointments-table tbody tr:hover[b-jwmc45yhau] {
            background: var(--bg-surf);
        }

    .appointments-table tbody td[b-jwmc45yhau] {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
    }

/* sort header button */
.sort-header[b-jwmc45yhau] {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    font-size: .9rem;
}

    .sort-header:hover[b-jwmc45yhau] {
        color: var(--brand);
    }

/* action icons container (desktop) */
.action-icons[b-jwmc45yhau] {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* print icon button (desktop) */
.icon-btn[b-jwmc45yhau] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .icon-btn:hover[b-jwmc45yhau] {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .icon-btn:active[b-jwmc45yhau] {
        transform: scale(0.95);
    }

.icon-print[b-jwmc45yhau] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

    .icon-print:hover[b-jwmc45yhau] {
        background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    }

/* duration and visit type badge */
.badge[b-jwmc45yhau] {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.duration-badge[b-jwmc45yhau] {
    background: var(--amber-bg) !important;
    color: var(--amber-text) !important;
}

.visit-type[b-jwmc45yhau] {
    background: var(--brand) !important;
    color: #fff !important;
}

/* ── MOBILE CARD LIST ── */
.appt-list[b-jwmc45yhau] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.appt-card[b-jwmc45yhau] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: vis-cardIn-b-jwmc45yhau .25s ease-out both;
}

@keyframes vis-cardIn-b-jwmc45yhau {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-jwmc45yhau] {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
}

/* date colour block */
.card-date-col[b-jwmc45yhau] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-jwmc45yhau] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-jwmc45yhau] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-jwmc45yhau] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-jwmc45yhau] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-jwmc45yhau] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-time[b-jwmc45yhau] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-jwmc45yhau] {
        font-size: 11px;
        color: var(--text-3);
    }

.card-info-rows[b-jwmc45yhau] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
}

.info-row[b-jwmc45yhau] {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .info-row i[b-jwmc45yhau] {
        font-size: 11px;
        color: var(--text-3);
        flex-shrink: 0;
        width: 13px;
        text-align: center;
    }

    .info-row span[b-jwmc45yhau] {
        font-size: 12px;
        color: var(--text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* report button row at bottom of card */
.card-report-row[b-jwmc45yhau] {
    border-top: 1px solid var(--border-lt);
    padding: 8px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.report-btn[b-jwmc45yhau] {
    padding: 9px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background .15s;
    white-space: nowrap;
    flex: 1;
}

    .report-btn:active[b-jwmc45yhau] {
        background: var(--brand-dark);
    }

.report-btn--sick[b-jwmc45yhau] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

    .report-btn--sick:active[b-jwmc45yhau] {
        background: var(--brand-dark);
    }

.report-btn--discharge[b-jwmc45yhau] {
    background: var(--green-bg);
    color: var(--green-text);
    border-color: var(--green-bg);
}

    .report-btn--discharge:active[b-jwmc45yhau] {
        background: #c6f6d5;
    }

/* ── PAGINATION ── */
.pagination-container[b-jwmc45yhau] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Scrollbar Styling for Table Wrapper */
.appointments-table-wrapper[b-jwmc45yhau]::-webkit-scrollbar {
    height: 8px;
}

.appointments-table-wrapper[b-jwmc45yhau]::-webkit-scrollbar-track {
    background: var(--border-lt);
    border-radius: 4px;
}

.appointments-table-wrapper[b-jwmc45yhau]::-webkit-scrollbar-thumb {
    background: var(--text-3);
    border-radius: 4px;
    transition: background .2s;
}

.appointments-table-wrapper[b-jwmc45yhau]::-webkit-scrollbar-thumb:hover {
    background: var(--text-2);
}

.pagination[b-jwmc45yhau] {
    gap: .35rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item[b-jwmc45yhau] {
    list-style: none;
}

    .page-item.active .page-link[b-jwmc45yhau] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-jwmc45yhau] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-jwmc45yhau] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-jwmc45yhau] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination-info[b-jwmc45yhau] {
    font-size: .85rem;
    color: var(--text-3);
}

/* ── MEDICAL REPORT DIALOG ── */
.dialog-overlay[b-jwmc45yhau] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    isolation: isolate;
    animation: vis-fadeIn-b-jwmc45yhau .2s ease;
}

@keyframes vis-fadeIn-b-jwmc45yhau {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-container[b-jwmc45yhau] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    width: 92%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
    animation: vis-slideUp-b-jwmc45yhau .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes vis-slideUp-b-jwmc45yhau {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header[b-jwmc45yhau] {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: white;
}

.dialog-title[b-jwmc45yhau] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.dialog-content[b-jwmc45yhau] {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    background-color: white;
}

/* shared close button */
.sheet-close[b-jwmc45yhau] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

    .sheet-close:hover[b-jwmc45yhau] {
        background: var(--border);
    }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Mobile: show cards, hide table */
@media (max-width: 767px) {
    .appointments-container[b-jwmc45yhau] {
        padding: .75rem;
    }

    .d-md-none[b-jwmc45yhau] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-jwmc45yhau],
    .d-md-block[b-jwmc45yhau] {
        display: none !important;
    }

    /* filters: 2×2 grid */
    .filters-grid[b-jwmc45yhau] {
        grid-template-columns: 1fr 1fr;
    }

    .clear-btn[b-jwmc45yhau] {
        grid-column: 1 / -1;
    }

    .page-link[b-jwmc45yhau] {
        padding: .45rem .7rem;
        font-size: 12px;
    }
}

/* Desktop: show table, hide cards */
@media (min-width: 768px) {
    .appointments-container[b-jwmc45yhau] {
        padding: 1.5rem;
    }

    .d-md-none[b-jwmc45yhau] {
        display: none !important;
    }

    .d-none.d-md-block[b-jwmc45yhau],
    .d-md-block[b-jwmc45yhau] {
        display: block !important;
    }

    /* filters: single row */
    .filters-grid[b-jwmc45yhau] {
        grid-template-columns: 1fr 1fr auto;
    }

    .clear-btn[b-jwmc45yhau] {
        grid-column: auto;
    }
}

/* ???????????????????????????????????????????????????????
   RTL SUPPORT — Arabic layout overrides
   All rules are scoped to [dir="rtl"] so LTR is untouched
   ??????????????????????????????????????????????????????? */

/* ?? Base font: use a font with good Arabic glyph coverage ?? */
[dir="rtl"] .appointments-container[b-jwmc45yhau] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

/* ?? Table: flip all text alignment to right ?? */
[dir="rtl"] .appointments-table thead th[b-jwmc45yhau] {
    text-align: right;
}

[dir="rtl"] .appointments-table tbody td[b-jwmc45yhau] {
    text-align: right;
}

/* ?? Filter select: move dropdown arrow to left side ?? */
[dir="rtl"] .filter-select[b-jwmc45yhau] {
    background-position: left 8px center;
    padding: 6px 8px 6px 24px;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .filter-label[b-jwmc45yhau] {
    text-align: right;
}

[dir="rtl"] .filter-group[b-jwmc45yhau] {
    align-items: flex-end;
}

/* ?? Filters panel title: icon before text in RTL = reversed ?? */
[dir="rtl"] .filters-title[b-jwmc45yhau] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ?? Clear button icon order ?? */
[dir="rtl"] .clear-btn[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

/* ?? Sort bar ?? */
[dir="rtl"] .sort-bar[b-jwmc45yhau] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ?? Mobile card: flip strip direction so date box appears on right ?? */
[dir="rtl"] .card-strip[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-main[b-jwmc45yhau] {
    text-align: right;
}

/* time on right, status badge on left */
[dir="rtl"] .time-row[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

/* icon then text → text then icon in RTL */
[dir="rtl"] .info-row[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

    [dir="rtl"] .info-row i[b-jwmc45yhau] {
        text-align: center;
    }

/* ?? Card report buttons: flip direction ?? */
[dir="rtl"] .card-report-row[b-jwmc45yhau] {
    direction: rtl;
}

[dir="rtl"] .report-btn[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

/* ?? Desktop action icons row ?? */
[dir="rtl"] .action-icons[b-jwmc45yhau] {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* ?? Card time: clock icon after time text in RTL ?? */
[dir="rtl"] .card-time[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

/* ?? Dialog header: title on right, close button on left ?? */
[dir="rtl"] .dialog-header[b-jwmc45yhau] {
    flex-direction: row-reverse;
}

/* ?? Inline alert ?? */
[dir="rtl"] .alert[b-jwmc45yhau] {
    flex-direction: row-reverse;
    text-align: right;
}

/* ?? Pagination: numbers and buttons flow RTL ?? */
[dir="rtl"] .pagination-container[b-jwmc45yhau] {
    direction: rtl;
}

[dir="rtl"] .page-link[b-jwmc45yhau] {
    direction: rtl;
    flex-direction: row-reverse;
}

/* ?? RTL responsive: fix filter grid direction on mobile ?? */
@media (max-width: 767px) {
    [dir="rtl"] .filters-grid[b-jwmc45yhau] {
        direction: rtl;
    }

    [dir="rtl"] .clear-btn[b-jwmc45yhau] {
        justify-content: center;
    }
}
.badge[b-jwmc45yhau] {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-info[b-jwmc45yhau] {
    background: var(--blue-bg) !important;
    color: var(--blue-text) !important;
    cursor: default;
}
/* /Pages/PatientPortalPages/Visits.razor.rz.scp.css */
/* ═══════════════════════════════════════════
   VISITS.CSS  — mirrors appointments.css with full RTL support
   ═══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
.appointments-container[b-p7n4iq15th] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --brand-deep: #2d5f80;
    --green-bg: #dcfce7;
    --green-text: #14532d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ── CONTAINER ── */
.appointments-container[b-p7n4iq15th] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ── LOADING ── */
.loading-spinner[b-p7n4iq15th] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-p7n4iq15th] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-p7n4iq15th] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: vis-spin-b-p7n4iq15th 1s linear infinite;
}

@keyframes vis-spin-b-p7n4iq15th {
    to {
        transform: rotate(360deg);
    }
}

/* ── EMPTY STATE ── */
.empty-state[b-p7n4iq15th] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-p7n4iq15th] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-p7n4iq15th] {
        color: var(--text-2);
        font-size: 1.1rem;
        margin-bottom: .25rem;
    }

/* ── ALERT ── */
.alert[b-p7n4iq15th] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.2rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: .9rem;
}

    .alert.alert-danger[b-p7n4iq15th] {
        background: var(--red-bg);
        color: var(--red-text);
    }

    .alert i[b-p7n4iq15th] {
        flex-shrink: 0;
    }

/* ── FILTERS PANEL ── */
.filters-panel[b-p7n4iq15th] {
    background: var(--bg-white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.filters-title[b-p7n4iq15th] {
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filters-grid[b-p7n4iq15th] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.filter-group[b-p7n4iq15th] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label[b-p7n4iq15th] {
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.filter-select[b-p7n4iq15th] {
    padding: 6px 24px 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa5b4'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    color: var(--text-1);
    cursor: pointer;
    width: 100%;
}

    .filter-select:focus[b-p7n4iq15th] {
        outline: none;
        border-color: var(--brand);
    }

.clear-btn[b-p7n4iq15th] {
    padding: 7px 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-surf);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .clear-btn:active[b-p7n4iq15th] {
        background: var(--border);
    }

/* ── SORT BAR ── */
.sort-bar[b-p7n4iq15th] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-label[b-p7n4iq15th] {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.sort-btn[b-p7n4iq15th] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* ── DESKTOP TABLE ── */
.appointments-table-wrapper[b-p7n4iq15th] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.appointments-table[b-p7n4iq15th] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 900px;
}

    .appointments-table thead[b-p7n4iq15th] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .appointments-table thead th[b-p7n4iq15th] {
            color: var(--text-2);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
            font-size: .9rem;
            text-align: left;
            white-space: nowrap;
        }

        .appointments-table thead th:last-child[b-p7n4iq15th] {
            text-align: center;
        }

    .appointments-table tbody tr[b-p7n4iq15th] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .appointments-table tbody tr:hover[b-p7n4iq15th] {
            background: var(--bg-surf);
        }

    .appointments-table tbody td[b-p7n4iq15th] {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        font-size: .9rem;
    }

    .appointments-table tbody td:last-child[b-p7n4iq15th] {
        text-align: center;
    }

/* sort header button */
.sort-header[b-p7n4iq15th] {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    font-size: .9rem;
}

    .sort-header:hover[b-p7n4iq15th] {
        color: var(--brand);
    }

/* action icons container (desktop) */
.action-icons[b-p7n4iq15th] {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* print icon button (desktop) */
.icon-btn[b-p7n4iq15th] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .icon-btn:hover[b-p7n4iq15th] {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .icon-btn:active[b-p7n4iq15th] {
        transform: scale(0.95);
    }

.icon-print[b-p7n4iq15th] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

    .icon-print:hover[b-p7n4iq15th] {
        background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    }

/* visit type badge */
.badge[b-p7n4iq15th] {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.visit-type[b-p7n4iq15th] {
    background: var(--brand) !important;
    color: #fff !important;
}

/* ── MOBILE CARD LIST ── */
.appt-list[b-p7n4iq15th] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.appt-card[b-p7n4iq15th] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: vis-cardIn-b-p7n4iq15th .25s ease-out both;
}

@keyframes vis-cardIn-b-p7n4iq15th {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-p7n4iq15th] {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
}

/* date colour block */
.card-date-col[b-p7n4iq15th] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-p7n4iq15th] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-p7n4iq15th] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-p7n4iq15th] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-p7n4iq15th] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row[b-p7n4iq15th] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-time[b-p7n4iq15th] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-time i[b-p7n4iq15th] {
        font-size: 11px;
        color: var(--text-3);
    }

.card-info-rows[b-p7n4iq15th] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
}

.info-row[b-p7n4iq15th] {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .info-row i[b-p7n4iq15th] {
        font-size: 11px;
        color: var(--text-3);
        flex-shrink: 0;
        width: 13px;
        text-align: center;
    }

    .info-row span[b-p7n4iq15th] {
        font-size: 12px;
        color: var(--text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* report button row at bottom of card */
.card-report-row[b-p7n4iq15th] {
    border-top: 1px solid var(--border-lt);
    padding: 8px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.report-btn[b-p7n4iq15th] {
    padding: 9px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: 1px solid #bfdbfe;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background .15s;
    white-space: nowrap;
}

    .report-btn:active[b-p7n4iq15th] {
        background: #bfdbfe;
    }

/* ── PAGINATION ── */
.pagination-container[b-p7n4iq15th] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Scrollbar Styling for Table Wrapper */
.appointments-table-wrapper[b-p7n4iq15th]::-webkit-scrollbar {
    height: 8px;
}

.appointments-table-wrapper[b-p7n4iq15th]::-webkit-scrollbar-track {
    background: var(--border-lt);
    border-radius: 4px;
}

.appointments-table-wrapper[b-p7n4iq15th]::-webkit-scrollbar-thumb {
    background: var(--text-3);
    border-radius: 4px;
    transition: background .2s;
}

.appointments-table-wrapper[b-p7n4iq15th]::-webkit-scrollbar-thumb:hover {
    background: var(--text-2);
}

.pagination[b-p7n4iq15th] {
    gap: .35rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item[b-p7n4iq15th] {
    list-style: none;
}

    .page-item.active .page-link[b-p7n4iq15th] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-p7n4iq15th] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-p7n4iq15th] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-p7n4iq15th] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination-info[b-p7n4iq15th] {
    font-size: .85rem;
    color: var(--text-3);
}

/* ── MEDICAL REPORT DIALOG ── */
.dialog-overlay[b-p7n4iq15th] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    isolation: isolate;
    animation: vis-fadeIn-b-p7n4iq15th .2s ease;
}

@keyframes vis-fadeIn-b-p7n4iq15th {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-container[b-p7n4iq15th] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    width: 92%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
    animation: vis-slideUp-b-p7n4iq15th .28s ease;
    position: relative;
    z-index: 2001;
}

@keyframes vis-slideUp-b-p7n4iq15th {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header[b-p7n4iq15th] {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: white;
}

.dialog-title[b-p7n4iq15th] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.dialog-content[b-p7n4iq15th] {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    background-color: white;
}

/* shared close button */
.sheet-close[b-p7n4iq15th] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

    .sheet-close:hover[b-p7n4iq15th] {
        background: var(--border);
    }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Mobile: show cards, hide table */
@media (max-width: 767px) {
    .appointments-container[b-p7n4iq15th] {
        padding: .75rem;
    }

    .d-md-none[b-p7n4iq15th] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-p7n4iq15th],
    .d-md-block[b-p7n4iq15th] {
        display: none !important;
    }

    /* filters: 2×2 grid */
    .filters-grid[b-p7n4iq15th] {
        grid-template-columns: 1fr 1fr;
    }

    .clear-btn[b-p7n4iq15th] {
        grid-column: 1 / -1;
    }

    .page-link[b-p7n4iq15th] {
        padding: .45rem .7rem;
        font-size: 12px;
    }
}

/* Desktop: show table, hide cards */
@media (min-width: 768px) {
    .appointments-container[b-p7n4iq15th] {
        padding: 1.5rem;
    }

    .d-md-none[b-p7n4iq15th] {
        display: none !important;
    }

    .d-none.d-md-block[b-p7n4iq15th],
    .d-md-block[b-p7n4iq15th] {
        display: block !important;
    }

    /* filters: single row */
    .filters-grid[b-p7n4iq15th] {
        grid-template-columns: 1fr 1fr 1fr auto;
    }

    .clear-btn[b-p7n4iq15th] {
        grid-column: auto;
    }
}

/* ???????????????????????????????????????????????????????
   RTL SUPPORT — Arabic layout overrides
   All rules are scoped to [dir="rtl"] so LTR is untouched
   ??????????????????????????????????????????????????????? */

/* ?? Base font: use a font with good Arabic glyph coverage ?? */
[dir="rtl"] .appointments-container[b-p7n4iq15th] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

/* ?? Table: flip all text alignment to right ?? */
[dir="rtl"] .appointments-table thead th[b-p7n4iq15th] {
    text-align: right;
}

[dir="rtl"] .appointments-table thead th:last-child[b-p7n4iq15th] {
    text-align: center;
}

[dir="rtl"] .appointments-table tbody td[b-p7n4iq15th] {
    text-align: right;
}

[dir="rtl"] .appointments-table tbody td:last-child[b-p7n4iq15th] {
    text-align: center;
}

/* ?? Filter select: move dropdown arrow to left side ?? */
[dir="rtl"] .filter-select[b-p7n4iq15th] {
    background-position: left 8px center;
    padding: 6px 8px 6px 24px;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .filter-label[b-p7n4iq15th] {
    text-align: right;
}

[dir="rtl"] .filter-group[b-p7n4iq15th] {
    align-items: flex-end;
}

/* ?? Filters panel title: icon before text in RTL = reversed ?? */
[dir="rtl"] .filters-title[b-p7n4iq15th] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ?? Clear button icon order ?? */
[dir="rtl"] .clear-btn[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

/* ?? Sort bar ?? */
[dir="rtl"] .sort-bar[b-p7n4iq15th] {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ?? Book button icon order ?? */

/* ?? Mobile card: flip strip direction so date box appears on right ?? */
[dir="rtl"] .card-strip[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-main[b-p7n4iq15th] {
    text-align: right;
}

/* time on right, status badge on left */
[dir="rtl"] .time-row[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

/* icon then text → text then icon in RTL */
[dir="rtl"] .info-row[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

    [dir="rtl"] .info-row i[b-p7n4iq15th] {
        text-align: center;
    }

/* ?? Card report buttons: flip direction ?? */
[dir="rtl"] .card-report-row[b-p7n4iq15th] {
    direction: rtl;
}

[dir="rtl"] .report-btn[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

/* ?? Desktop action icons row ?? */
[dir="rtl"] .action-icons[b-p7n4iq15th] {
    flex-direction: row;
}

/* ?? Card time: clock icon after time text in RTL ?? */
[dir="rtl"] .card-time[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

/* ?? Dialog header: title on right, close button on left ?? */
[dir="rtl"] .dialog-header[b-p7n4iq15th] {
    flex-direction: row-reverse;
}

/* ?? Inline alert ?? */
[dir="rtl"] .alert[b-p7n4iq15th] {
    flex-direction: row-reverse;
    text-align: right;
}

/* ?? Pagination: numbers and buttons flow RTL ?? */
[dir="rtl"] .pagination-container[b-p7n4iq15th] {
    direction: rtl;
}

[dir="rtl"] .page-link[b-p7n4iq15th] {
    direction: rtl;
    flex-direction: row-reverse;
}

/* ?? RTL responsive: fix filter grid direction on mobile ?? */
@media (max-width: 767px) {
    [dir="rtl"] .filters-grid[b-p7n4iq15th] {
        direction: rtl;
    }

    [dir="rtl"] .clear-btn[b-p7n4iq15th] {
        justify-content: center;
    }
}
/* /Pages/PatientPortalPages/VitalSigns.razor.rz.scp.css */
/* ═══════════════════════════════════════════
   VITALS.CSS — mirrors appointments.css exactly
   ═══════════════════════════════════════════ */

/* ── VARIABLES ── */
.vitals-container[b-oxtn48eg00] {
    --brand: #4b86aa;
    --brand-dark: #3a7099;
    --red-bg: #fee2e2;
    --red-text: #7f1d1d;
    --amber-bg: #fef3c7;
    --amber-text: #78350f;
    --blue-bg: #dbeafe;
    --blue-text: #1e3a5f;
    --border: #e4e8ed;
    --border-lt: #eef0f3;
    --text-1: #1a2332;
    --text-2: #5a6474;
    --text-3: #9aa5b4;
    --bg-white: #ffffff;
    --bg-surf: #f8f9fa;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ── CONTAINER ── */
.vitals-container[b-oxtn48eg00] {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* ── LOADING ── */
.loading-spinner[b-oxtn48eg00] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .loading-spinner p[b-oxtn48eg00] {
        margin-top: 1rem;
        color: var(--text-2);
        font-size: 1rem;
    }

.spinner[b-oxtn48eg00] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: vit-spin-b-oxtn48eg00 1s linear infinite;
}

@keyframes vit-spin-b-oxtn48eg00 {
    to {
        transform: rotate(360deg);
    }
}

/* ── EMPTY STATE ── */
.empty-state[b-oxtn48eg00] {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surf);
    border-radius: var(--r-lg);
    border: 2px dashed var(--border);
}

    .empty-state i[b-oxtn48eg00] {
        font-size: 3.5rem;
        color: var(--text-3);
        display: block;
        margin-bottom: 1rem;
    }

    .empty-state h4[b-oxtn48eg00] {
        color: var(--text-2);
        font-size: 1.1rem;
        margin-bottom: .25rem;
    }

/* ── ALERTS ── */
.alert[b-oxtn48eg00] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: .9rem;
}

    .alert i[b-oxtn48eg00] {
        flex-shrink: 0;
    }

    .alert.alert-danger[b-oxtn48eg00] {
        background: var(--red-bg);
        color: var(--red-text);
    }

    .alert.alert-info[b-oxtn48eg00] {
        background: var(--blue-bg);
        color: var(--blue-text);
    }

/* ── SORT BAR ── */
.sort-bar[b-oxtn48eg00] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-label[b-oxtn48eg00] {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.sort-btn[b-oxtn48eg00] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--blue-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* ── DESKTOP TABLE ── */
.vitals-table-wrapper[b-oxtn48eg00] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    width: 100%;
}

.vitals-table[b-oxtn48eg00] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

    .vitals-table thead[b-oxtn48eg00] {
        background: var(--bg-surf);
        border-bottom: 2px solid var(--border);
    }

        .vitals-table thead th[b-oxtn48eg00] {
            color: var(--text-2);
            font-weight: 600;
            padding: .9rem 1rem;
            border: none;
            font-size: .85rem;
            white-space: nowrap;
            text-align: center;
        }

            .vitals-table thead th:first-child[b-oxtn48eg00] {
                text-align: left;
            }

    .vitals-table tbody tr[b-oxtn48eg00] {
        border-bottom: 1px solid var(--border-lt);
        transition: background .15s;
    }

        .vitals-table tbody tr:hover[b-oxtn48eg00] {
            background: var(--bg-surf);
        }

        .vitals-table tbody tr[data-status="critical"][b-oxtn48eg00] {
            background: var(--bg-white);
        }

            .vitals-table tbody tr[data-status="critical"]:hover[b-oxtn48eg00] {
                background: var(--blue-bg);
            }

    .vitals-table tbody td[b-oxtn48eg00] {
        padding: .9rem 1rem;
        vertical-align: middle;
        text-align: center;
        font-size: .88rem;
    }

        .vitals-table tbody td:first-child[b-oxtn48eg00] {
            text-align: left;
        }

/* sort header */
.sort-header[b-oxtn48eg00] {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    font-size: .85rem;
}

    .sort-header:hover[b-oxtn48eg00] {
        color: var(--brand);
    }

/* vital value cell */
.vital-value[b-oxtn48eg00] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

    .vital-value span[b-oxtn48eg00] {
        font-weight: 700;
        font-size: .88rem;
    }

/* highlighted columns (BP, BMI, Pain) */
.vitals-table thead th:nth-child(5)[b-oxtn48eg00],
.vitals-table thead th:nth-child(9)[b-oxtn48eg00],
.vitals-table thead th:nth-child(10)[b-oxtn48eg00] {
    color: var(--brand) !important;
    background: #eef4f8;
}

.vitals-table tbody td:nth-child(5)[b-oxtn48eg00],
.vitals-table tbody td:nth-child(9)[b-oxtn48eg00],
.vitals-table tbody td:nth-child(10)[b-oxtn48eg00] {
    background: rgba(75,134,170,.04);
}

    .vitals-table tbody td:nth-child(5) .vital-value span[b-oxtn48eg00],
    .vitals-table tbody td:nth-child(9) .vital-value span[b-oxtn48eg00],
    .vitals-table tbody td:nth-child(10) .vital-value span[b-oxtn48eg00] {
        color: var(--brand) !important;
        font-weight: 800;
    }

/* badges */
.badge[b-oxtn48eg00] {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.bg-secondary[b-oxtn48eg00] {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

/* shared close button */
.sheet-close[b-oxtn48eg00] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surf);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
    margin-left: auto;
}

    .sheet-close:hover[b-oxtn48eg00] {
        background: var(--border);
    }

/* ── MOBILE CARD LIST ── */
.appt-list[b-oxtn48eg00] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.appt-card[b-oxtn48eg00] {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: vit-cardIn-b-oxtn48eg00 .25s ease-out both;
}



@keyframes vit-cardIn-b-oxtn48eg00 {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-strip[b-oxtn48eg00] {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 12px;
}

/* date colour block */
.card-date-col[b-oxtn48eg00] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    min-width: 52px;
    text-align: center;
}

    .card-date-col .day-num[b-oxtn48eg00] {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .card-date-col .day-name[b-oxtn48eg00] {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .8px;
        opacity: .85;
    }

    .card-date-col .month[b-oxtn48eg00] {
        font-size: 10px;
        font-weight: 600;
        opacity: .9;
        margin-top: 1px;
    }

.card-main[b-oxtn48eg00] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-time[b-oxtn48eg00] {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

    .card-time i[b-oxtn48eg00] {
        font-size: 11px;
        color: var(--text-3);
    }

/* critical badge inside card */
.critical-badge[b-oxtn48eg00] {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--red-bg);
    color: var(--red-text);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .critical-badge i[b-oxtn48eg00] {
        font-size: 9px;
    }

/* vitals 5-column mini grid inside card */
.vitals-mobile-grid[b-oxtn48eg00] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.vm-item[b-oxtn48eg00] {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-surf);
    border-radius: var(--r-sm);
    padding: 5px 4px;
    border: 1px solid var(--border-lt);
    min-width: 0;
}

    .vm-item.vm-highlight[b-oxtn48eg00] {
        background: #eef4f8;
        border-color: #bfdbfe;
    }

.vm-label[b-oxtn48eg00] {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 2px;
}

.vm-item.vm-highlight .vm-label[b-oxtn48eg00] {
    color: var(--brand);
}

.vm-value[b-oxtn48eg00] {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.vm-item.vm-highlight .vm-value[b-oxtn48eg00] {
    color: var(--brand);
}

/* ── PAGINATION ── */
.pagination-container[b-oxtn48eg00] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pagination[b-oxtn48eg00] {
    gap: .25rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item[b-oxtn48eg00] {
    list-style: none;
}

    .page-item.active .page-link[b-oxtn48eg00] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

    .page-item.disabled .page-link[b-oxtn48eg00] {
        color: var(--text-3);
        background: #e9ecef;
        border-color: var(--border);
        cursor: not-allowed;
    }

.page-link[b-oxtn48eg00] {
    display: inline-block;
    color: var(--brand);
    border: 1px solid var(--border);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    cursor: pointer;
    background: var(--bg-white);
    text-decoration: none;
}

    .page-link:hover[b-oxtn48eg00] {
        background: var(--bg-surf);
        border-color: var(--brand);
    }

.pagination-info[b-oxtn48eg00] {
    font-size: .85rem;
    color: var(--text-3);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Mobile: cards, hide table */
@media (max-width: 767px) {
    .vitals-container[b-oxtn48eg00] {
        padding: .75rem;
    }

    .d-md-none[b-oxtn48eg00] {
        display: flex !important;
        flex-direction: column;
    }

    .d-none.d-md-block[b-oxtn48eg00],
    .d-md-block[b-oxtn48eg00] {
        display: none !important;
    }

    .page-link[b-oxtn48eg00] {
        padding: .4rem .65rem;
        font-size: 12px;
    }
}

/* Desktop: table, hide cards */
@media (min-width: 768px) {
    .vitals-container[b-oxtn48eg00] {
        padding: 1.5rem;
    }

    .d-md-none[b-oxtn48eg00] {
        display: none !important;
    }

    .d-none.d-md-block[b-oxtn48eg00],
    .d-md-block[b-oxtn48eg00] {
        display: block !important;
    }
}

/* Progressively hide less-important columns on mid-size screens */
@media (max-width: 1200px) {
    .vitals-table thead th:nth-child(9)[b-oxtn48eg00],
    .vitals-table tbody td:nth-child(9)[b-oxtn48eg00] {
        display: none;
    }
}

@media (max-width: 992px) {
    .vitals-table thead th:nth-child(7)[b-oxtn48eg00],
    .vitals-table tbody td:nth-child(7)[b-oxtn48eg00],
    .vitals-table thead th:nth-child(8)[b-oxtn48eg00],
    .vitals-table tbody td:nth-child(8)[b-oxtn48eg00] {
        display: none;
    }
}
/* /Pages/PatientPortalPages/WaitingAppointments.razor.rz.scp.css */
.page-container[b-0qde4uhqfd] {
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper[b-0qde4uhqfd] {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

.filter-sort-container[b-0qde4uhqfd] {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.branch-header[b-0qde4uhqfd] {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #4b86aa;
}

.branch-name[b-0qde4uhqfd] {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #4b86aa;
    letter-spacing: 0.5px;
}

.branch-header-text[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.branch-logo[b-0qde4uhqfd] {
    height: 2.5rem;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Info Banner Styles */
.info-banner[b-0qde4uhqfd] {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #4b86aa;
    border-radius: 6px;
    margin-bottom: 1rem;
    animation: slideIn-b-0qde4uhqfd 0.3s ease-out;
}

.info-banner-content[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[dir="rtl"] .info-banner-content[b-0qde4uhqfd] {
    flex-direction: row-reverse;
    direction: rtl;
}

[dir="ltr"] .info-banner-content[b-0qde4uhqfd] {
    flex-direction: row;
    direction: ltr;
}

.info-icon[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(75, 134, 170, 0.15);
    border-radius: 50%;
    color: #4b86aa;
    font-size: 0.9rem;
}

.info-text[b-0qde4uhqfd] {
    flex: 1;
    line-height: 1.3;
}

.info-text-ar[b-0qde4uhqfd],
.info-text-en[b-0qde4uhqfd] {
    margin: 0;
}

.info-text-ar strong[b-0qde4uhqfd],
.info-text-en strong[b-0qde4uhqfd] {
    display: inline;
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-text-ar p[b-0qde4uhqfd],
.info-text-en p[b-0qde4uhqfd] {
    display: inline;
    margin: 0;
    color: #495057;
    font-size: 0.9rem;
}

.btn-close-info[b-0qde4uhqfd] {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: auto;
    height: auto;
    flex-shrink: 0;
    margin-left: auto;
    transition: color 0.3s ease;
}

[dir="rtl"] .btn-close-info[b-0qde4uhqfd] {
    margin-left: 0;
    margin-right: auto;
}

.btn-close-info:hover[b-0qde4uhqfd] {
    color: #333;
}

.form-label[b-0qde4uhqfd] {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control[b-0qde4uhqfd] {
    /* Remove or change this line */
    min-height: 36px; /* Use min-height instead */
    height: auto; /* Allow auto height */
    padding: 0.5rem 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    /* Add text handling */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    .form-control:focus[b-0qde4uhqfd] {
        outline: none;
        border-color: #4b86aa;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
    }

    .form-control:hover[b-0qde4uhqfd] {
        border-color: #4b86aa;
    }

    .form-control.is-invalid[b-0qde4uhqfd] {
        border-color: #dc3545 !important;
        border-width: 2px;
        background-color: white;
        background-image: none !important;
        padding-right: 0.75rem !important;
        box-shadow: none;
    }

    .form-control.is-invalid:focus[b-0qde4uhqfd] {
        outline: none;
        border-color: #dc3545 !important;
        background-color: white;
        background-image: none !important;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
    }

.row[b-0qde4uhqfd] {
    --bs-gutter-x: 0.75rem;
}

    .row.g-3[b-0qde4uhqfd] {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

.mt-2[b-0qde4uhqfd] {
    margin-top: 0.75rem;
}

.mt-3[b-0qde4uhqfd] {
    margin-top: 1rem;
}

.btn[b-0qde4uhqfd] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    height: 36px;
}

    .btn:hover[b-0qde4uhqfd] {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.btn-success[b-0qde4uhqfd] {
    background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
    color: white;
}

    .btn-success:hover[b-0qde4uhqfd] {
        background: linear-gradient(135deg, #3a7099 0%, #2d5a7a 100%);
    }

.btn-outline-secondary[b-0qde4uhqfd] {
    background-color: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

    .btn-outline-secondary:hover[b-0qde4uhqfd] {
        background-color: #6c757d;
        color: white;
        border-color: #6c757d;
    }

.btn:disabled[b-0qde4uhqfd] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

    .btn:disabled:hover[b-0qde4uhqfd] {
        transform: none;
        box-shadow: none;
    }

.waiting-slots-section[b-0qde4uhqfd] {
    margin-top: 1rem;
}

.slots-status[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.slots-available[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #28a745;
    font-weight: 600;
}

    .slots-available i[b-0qde4uhqfd] {
        font-size: 1.2rem;
    }

.slots-unavailable[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc3545;
    font-weight: 600;
}

    .slots-unavailable i[b-0qde4uhqfd] {
        font-size: 1.2rem;
    }

.patient-form-card[b-0qde4uhqfd] {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideIn-b-0qde4uhqfd 0.3s ease-out;
    margin-top: 1rem;
}

@keyframes slideIn-b-0qde4uhqfd {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-content[b-0qde4uhqfd] {
    padding: 1.25rem;
}

.booking-summary[b-0qde4uhqfd] {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #4b86aa;
    margin: 0;
}

[dir="rtl"] .booking-summary[b-0qde4uhqfd] {
    border-left: none;
    border-right: 3px solid #4b86aa;
    direction: rtl;
    text-align: right;
}

[dir="ltr"] .booking-summary[b-0qde4uhqfd] {
    border-left: 3px solid #4b86aa;
    border-right: none;
    direction: ltr;
    text-align: left;
}

.summary-grid[b-0qde4uhqfd] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .summary-grid[b-0qde4uhqfd] {
        grid-template-columns: 1fr;
    }
}

.summary-item[b-0qde4uhqfd] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

    .summary-item .label[b-0qde4uhqfd] {
        font-weight: 600;
        color: #495057;
        white-space: nowrap;
    }

    .summary-item .value[b-0qde4uhqfd] {
        color: #333;
        text-align: left;
        word-break: break-word;
    }

    .summary-item .highlight[b-0qde4uhqfd] {
        color: #28a745;
        font-weight: 700;
    }

/* RTL Grid Layout */
[dir="rtl"] .summary-item[b-0qde4uhqfd] {
    grid-template-columns: 1fr auto;
    direction: rtl;
}

[dir="rtl"] .summary-item .label[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .summary-item .value[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
}

/* LTR Grid Layout */
[dir="ltr"] .summary-item[b-0qde4uhqfd] {
    grid-template-columns: auto 1fr;
    direction: ltr;
}

[dir="ltr"] .summary-item .label[b-0qde4uhqfd] {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .summary-item .value[b-0qde4uhqfd] {
    text-align: left;
    direction: ltr;
}

.form-actions[b-0qde4uhqfd] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

    .form-actions .btn[b-0qde4uhqfd] {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

.required[b-0qde4uhqfd] {
    color: #dc3545;
    font-weight: 700;
}

.no-data-message[b-0qde4uhqfd] {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

    .no-data-message i[b-0qde4uhqfd] {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        display: block;
        color: #adb5bd;
    }

    .no-data-message h4[b-0qde4uhqfd] {
        color: #495057;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .no-data-message p[b-0qde4uhqfd] {
        color: #6c757d;
        margin: 0;
        font-size: 0.9rem;
    }

.loading-spinner[b-0qde4uhqfd] {
    text-align: center;
    padding: 3rem;
}

.spinner[b-0qde4uhqfd] {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4b86aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin-b-0qde4uhqfd 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin-b-0qde4uhqfd {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Clinic Closed Message Styling */
.clinic-closed-message[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border: 2px solid #dc3545;
    border-radius: 6px;
    text-align: center;
    min-height: 36px;
    height: 36px;
    animation: slideIn-b-0qde4uhqfd 0.3s ease-out;
}

    .clinic-closed-message i[b-0qde4uhqfd] {
        font-size: 1rem;
        color: #dc3545;
        flex-shrink: 0;
    }

    .clinic-closed-message p[b-0qde4uhqfd] {
        margin: 0;
        font-size: 0.85rem;
        font-weight: 600;
        color: #dc3545;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.disabled-date-picker[b-0qde4uhqfd] {
    opacity: 0.6;
    pointer-events: none;
}
        transform: rotate(0deg);[b-0qde4uhqfd]
    }

    100%[b-0qde4uhqfd] {
        transform: rotate(360deg);
    }
}

.loading-spinner p[b-0qde4uhqfd] {
    color: #495057;
    font-weight: 600;
}

/* Modal Styles */
.modal-custom[b-0qde4uhqfd] {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    .modal-custom.show[b-0qde4uhqfd] {
        display: flex;
        justify-content: center;
        align-items: center;
    }

.modal-card[b-0qde4uhqfd] {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    animation: slideUp-b-0qde4uhqfd 0.3s ease-out;
}

@keyframes slideUp-b-0qde4uhqfd {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header[b-0qde4uhqfd] {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title[b-0qde4uhqfd] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .modal-title i[b-0qde4uhqfd] {
        font-size: 1.3rem;
    }

.btn-close[b-0qde4uhqfd] {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: auto;
    height: auto;
}

    .btn-close:hover[b-0qde4uhqfd] {
        color: #333;
    }

.modal-body[b-0qde4uhqfd] {
    padding: 1.5rem;
    color: #495057;
    font-size: 0.95rem;
}

.modal-footer[b-0qde4uhqfd] {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-card.error[b-0qde4uhqfd] {
    border-top: 4px solid #dc3545;
}

.modal-card.success[b-0qde4uhqfd] {
    border-top: 4px solid #28a745;
}

.modal-card.validation[b-0qde4uhqfd] {
    border-top: 4px solid #ffc107;
}

.clinic-warning-badge[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a8 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #856404;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.15);
    animation: slideDown-b-0qde4uhqfd 0.3s ease-out;
}

    .clinic-warning-badge i[b-0qde4uhqfd] {
        font-size: 1.1rem;
        color: #ff9800;
        flex-shrink: 0;
    }

    .clinic-warning-badge span[b-0qde4uhqfd] {
        font-weight: 500;
        flex: 1;
    }

.date-picker-container.disabled-date-picker[b-0qde4uhqfd] {
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
}

    .date-picker-container.disabled-date-picker .custom-date-picker[b-0qde4uhqfd],
    .date-picker-container.disabled-date-picker input[b-0qde4uhqfd],
    .date-picker-container.disabled-date-picker button[b-0qde4uhqfd] {
        pointer-events: none;
    }

    .date-picker-container.disabled-date-picker[b-0qde4uhqfd]  input,
    .date-picker-container.disabled-date-picker[b-0qde4uhqfd]  button {
        pointer-events: none;
    }

/* ==================== RTL/LTR Support ==================== */

/* RTL Styling */
[dir="rtl"] .form-control-rtl[b-0qde4uhqfd],
[dir="rtl"] .form-control[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-label[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .booking-summary[b-0qde4uhqfd] {
    border-left: none;
    border-right: 3px solid #4b86aa;
}

[dir="rtl"] .summary-item[b-0qde4uhqfd] {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-actions[b-0qde4uhqfd] {
    flex-direction: row-reverse;
}

[dir="rtl"] .invalid-feedback[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
    display: block;
    margin-top: 0.25rem;
    margin-right: 0;
    margin-left: 0;
    clear: both;
}

[dir="ltr"] .invalid-feedback[b-0qde4uhqfd] {
    text-align: left;
    direction: ltr;
    display: block;
    margin-top: 0.25rem;
    clear: both;
}

[dir="rtl"] .text-muted[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] input[b-0qde4uhqfd]::placeholder {
    text-align: right;
}

/* Info Banner RTL Specific */
[dir="rtl"] .info-banner-content[b-0qde4uhqfd] {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-banner-content .info-icon[b-0qde4uhqfd] {
    margin:7px;
}

[dir="rtl"] .info-text[b-0qde4uhqfd] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .btn-close-info[b-0qde4uhqfd] {
    margin-left: auto;
    margin-right: 0;
}

/* Branch Header RTL */
[dir="rtl"] .branch-header-text[b-0qde4uhqfd] {
    flex-direction: row-reverse;
}

/* LTR Styling (explicit for clarity) */
[dir="ltr"] .form-control-rtl[b-0qde4uhqfd],
[dir="ltr"] .form-control[b-0qde4uhqfd] {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .form-label[b-0qde4uhqfd] {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .booking-summary[b-0qde4uhqfd] {
    border-left: 3px solid #4b86aa;
    border-right: none;
}

[dir="ltr"] .info-banner-content[b-0qde4uhqfd] {
    flex-direction: row;
}

[dir="ltr"] .info-banner-content .info-icon[b-0qde4uhqfd] {
 margin:7px;
}

[dir="ltr"] .info-text[b-0qde4uhqfd] {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .btn-close-info[b-0qde4uhqfd] {
    margin-right: auto;
    margin-left: 0;
}

/* ==================== Mobile Responsive ==================== */

@media (max-width: 768px) {
    .page-container[b-0qde4uhqfd] {
        padding: 1rem 0.5rem;
    }

    .content-wrapper[b-0qde4uhqfd] {
        padding: 1rem;
        border-radius: 8px;
    }

    .branch-header[b-0qde4uhqfd] {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .branch-name[b-0qde4uhqfd] {
        font-size: 1.5rem;
    }

    .branch-subtitle[b-0qde4uhqfd] {
        font-size: 0.85rem;
    }

    .info-banner[b-0qde4uhqfd] {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .info-banner-content[b-0qde4uhqfd] {
        gap: 0.75rem;
    }

    .info-icon[b-0qde4uhqfd] {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }

    .info-text-ar strong[b-0qde4uhqfd],
    .info-text-en strong[b-0qde4uhqfd] {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .info-text-ar p[b-0qde4uhqfd],
    .info-text-en p[b-0qde4uhqfd] {
        font-size: 0.8rem;
    }

    .form-label[b-0qde4uhqfd] {
        font-size: 0.85rem;
    }

    .form-control[b-0qde4uhqfd] {
        font-size: 0.85rem;
        height: 32px;
        padding: 0.4rem 0.6rem;
    }

    .btn[b-0qde4uhqfd] {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        height: 32px;
    }

    .form-actions .btn[b-0qde4uhqfd] {
        min-width: 100px;
        flex: 1;
    }

    .booking-summary[b-0qde4uhqfd] {
        padding: 0.75rem;
    }

    .summary-grid[b-0qde4uhqfd] {
        gap: 0.75rem;
    }

    .summary-item[b-0qde4uhqfd] {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    .row.g-3[b-0qde4uhqfd] {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .col-6[b-0qde4uhqfd],
    .col-md-3[b-0qde4uhqfd],
    .col-md-4[b-0qde4uhqfd],
    .col-md-6[b-0qde4uhqfd],
    .col-md-2[b-0qde4uhqfd],
    .col-12[b-0qde4uhqfd] {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .patient-form-card[b-0qde4uhqfd] {
        margin-top: 0.75rem;
    }

    .form-content[b-0qde4uhqfd] {
        padding: 1rem;
    }

    .otp-verification-section[b-0qde4uhqfd] {
        padding: 0.75rem !important;
        font-size: 0.85rem;
    }

    .otp-digits-container[b-0qde4uhqfd] {
        gap: 0.3rem !important;
    }

    .otp-digit-input[b-0qde4uhqfd] {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1rem;
    }

    .no-data-message[b-0qde4uhqfd] {
        padding: 2rem 1rem;
    }

    .no-data-message i[b-0qde4uhqfd] {
        font-size: 2rem;
    }

    .modal-card[b-0qde4uhqfd] {
        width: 95%;
    }

    .modal-header[b-0qde4uhqfd] {
        padding: 1rem;
    }

    .modal-body[b-0qde4uhqfd] {
        padding: 1rem;
    }

    .modal-footer[b-0qde4uhqfd] {
        padding: 0.75rem 1rem;
    }

    .modal-title[b-0qde4uhqfd] {
        font-size: 1rem;
    }

    .modal-title i[b-0qde4uhqfd] {
        font-size: 1.1rem;
    }

    /* Mobile RTL adjustments */
    [dir="rtl"] .col-6[b-0qde4uhqfd],
    [dir="rtl"] .col-md-3[b-0qde4uhqfd],
    [dir="rtl"] .col-md-4[b-0qde4uhqfd],
    [dir="rtl"] .col-md-6[b-0qde4uhqfd] {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .page-container[b-0qde4uhqfd] {
        padding: 0.75rem 0.25rem;
    }

    .content-wrapper[b-0qde4uhqfd] {
        padding: 0.75rem;
        margin: 0;
        border-radius: 6px;
    }

    .branch-header[b-0qde4uhqfd] {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .branch-header-text[b-0qde4uhqfd] {
        flex-direction: column;
    }

    .branch-name[b-0qde4uhqfd] {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .branch-subtitle[b-0qde4uhqfd] {
        font-size: 0.75rem;
    }

    .branch-logo[b-0qde4uhqfd] {
        height: 1.5rem !important;
        width: auto;
    }

    .info-banner[b-0qde4uhqfd] {
        padding: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .info-banner-content[b-0qde4uhqfd] {
        gap: 0.5rem;
    }

    .info-icon[b-0qde4uhqfd] {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }

    .info-text-ar strong[b-0qde4uhqfd],
    .info-text-en strong[b-0qde4uhqfd] {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .info-text-ar p[b-0qde4uhqfd],
    .info-text-en p[b-0qde4uhqfd] {
        font-size: 0.7rem;
    }

    .btn-close-info[b-0qde4uhqfd] {
        font-size: 1.25rem;
    }

    .form-label[b-0qde4uhqfd] {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .form-control[b-0qde4uhqfd] {
        font-size: 0.8rem;
        height: 30px;
        padding: 0.35rem 0.5rem;
    }

    .btn[b-0qde4uhqfd] {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        height: 30px;
        gap: 0.25rem;
    }

    .form-actions[b-0qde4uhqfd] {
        gap: 0.5rem;
    }

    .form-actions .btn[b-0qde4uhqfd] {
        min-width: 80px;
    }

    .booking-summary[b-0qde4uhqfd] {
        padding: 0.6rem;
    }

    .summary-grid[b-0qde4uhqfd] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .summary-item[b-0qde4uhqfd] {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .row.g-3[b-0qde4uhqfd] {
        --bs-gutter-x: 0.25rem;
        --bs-gutter-y: 0.25rem;
    }

    .col-6[b-0qde4uhqfd],
    .col-md-3[b-0qde4uhqfd],
    .col-md-4[b-0qde4uhqfd],
    .col-md-6[b-0qde4uhqfd],
    .col-md-2[b-0qde4uhqfd],
    .col-12[b-0qde4uhqfd] {
        padding-left: 0.125rem;
        padding-right: 0.125rem;
    }

    .filter-sort-container[b-0qde4uhqfd] {
        margin-bottom: 1rem;
    }

    .patient-form-card[b-0qde4uhqfd] {
        margin-top: 0.5rem;
    }

    .form-content[b-0qde4uhqfd] {
        padding: 0.75rem;
    }

    .otp-verification-section[b-0qde4uhqfd] {
        padding: 0.6rem !important;
        font-size: 0.8rem;
    }

    .otp-digits-container[b-0qde4uhqfd] {
        gap: 0.2rem !important;
    }

    .otp-digit-input[b-0qde4uhqfd] {
        width: 2.2rem !important;
        height: 2.2rem !important;
        font-size: 0.9rem;
    }

    .no-data-message[b-0qde4uhqfd] {
        padding: 1.5rem 1rem;
    }

    .no-data-message i[b-0qde4uhqfd] {
        font-size: 1.5rem;
    }

    .no-data-message h4[b-0qde4uhqfd] {
        font-size: 0.95rem;
    }

    .no-data-message p[b-0qde4uhqfd] {
        font-size: 0.8rem;
    }

    .modal-card[b-0qde4uhqfd] {
        width: 98%;
    }

    .modal-header[b-0qde4uhqfd] {
        padding: 0.75rem;
    }

    .modal-body[b-0qde4uhqfd] {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .modal-footer[b-0qde4uhqfd] {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }

    .modal-title[b-0qde4uhqfd] {
        font-size: 0.95rem;
    }

    .modal-title i[b-0qde4uhqfd] {
        font-size: 1rem;
    }

    .btn-close[b-0qde4uhqfd] {
        font-size: 1.25rem;
    }

    small[b-0qde4uhqfd] {
        font-size: 0.75rem !important;
    }

    .info-banner-content[b-0qde4uhqfd] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-banner-content [dir="rtl"][b-0qde4uhqfd] {
        flex-direction: column;
    }

    .info-banner-content [dir="ltr"][b-0qde4uhqfd] {
        flex-direction: column;
    }
}

/* OTP Verification Styles */
.otp-verification-section[b-0qde4uhqfd] {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 2px solid #4b86aa;
    border-radius: 8px;
    padding: 1.25rem;
    animation: slideIn-b-0qde4uhqfd 0.3s ease-out;
}

    .otp-verification-section h6[b-0qde4uhqfd] {
        color: #2c5aa0;
        font-weight: 700;
        margin: 0 0 1rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .otp-verification-section h6 i[b-0qde4uhqfd] {
            font-size: 1.2rem;
            color: #4b86aa;
        }

.otp-input-group[b-0qde4uhqfd] {
    margin: 0;
}

    .otp-input-group .form-label[b-0qde4uhqfd] {
        margin-bottom: 0.75rem;
        color: #2c5aa0;
    }

.otp-digits-container[b-0qde4uhqfd] {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .otp-digits-container[b-0qde4uhqfd] {
        gap: 0.5rem;
    }
}

.otp-digit-input[b-0qde4uhqfd] {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #4b86aa;
    border-radius: 8px;
    font-weight: 700;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    padding: 0;
}

    .otp-digit-input:focus[b-0qde4uhqfd] {
        outline: none;
        border-color: #2c5aa0;
        background: white;
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.2);
        transform: scale(1.05);
    }

    .otp-digit-input:hover[b-0qde4uhqfd] {
        border-color: #2c5aa0;
    }

    .otp-digit-input[b-0qde4uhqfd]::-webkit-outer-spin-button,
    .otp-digit-input[b-0qde4uhqfd]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-digit-input[type=number][b-0qde4uhqfd] {
        -moz-appearance: textfield;
    }

    .otp-digit-input.is-invalid[b-0qde4uhqfd] {
        border-color: #dc3545 !important;
        border-width: 2px;
        background: white;
        background-image: none !important;
        box-shadow: none;
    }

    .otp-digit-input.is-invalid:focus[b-0qde4uhqfd] {
        outline: none;
        border-color: #dc3545 !important;
        background: white;
        background-image: none !important;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
        transform: scale(1.05);
    }

@media (max-width: 480px) {
    .otp-digit-input[b-0qde4uhqfd] {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

.resend-button-container[b-0qde4uhqfd] {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

[dir="rtl"] .resend-button-container[b-0qde4uhqfd] {
    justify-content: flex-end;
}

[dir="ltr"] .resend-button-container[b-0qde4uhqfd] {
    justify-content: flex-start;
}

    .resend-button-container .btn[b-0qde4uhqfd] {
        min-width: 180px;
        justify-content: center;
        background-color: #f8f9fa;
        border: 2px solid #dee2e6;
        color: #6c757d;
    }

        .resend-button-container .btn:hover:not(:disabled)[b-0qde4uhqfd] {
            background-color: #e9ecef;
            border-color: #adb5bd;
        }

        .resend-button-container .btn:disabled[b-0qde4uhqfd] {
            opacity: 0.7;
            cursor: not-allowed;
        }

/* Send OTP Button Container */
.send-otp-button-container[b-0qde4uhqfd] {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

[dir="rtl"] .send-otp-button-container[b-0qde4uhqfd] {
    justify-content: flex-end;
}

[dir="ltr"] .send-otp-button-container[b-0qde4uhqfd] {
    justify-content: flex-start;
}

.otp-actions[b-0qde4uhqfd] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .otp-actions .btn[b-0qde4uhqfd] {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

@media (max-width: 480px) {
    .otp-actions .btn[b-0qde4uhqfd] {
        min-width: 110px;
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
        height: 32px;
    }
}

/* Invalid Feedback Styling - Clean Red Text */
.invalid-feedback[b-0qde4uhqfd] {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.branch-header[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #dce3ef;
    box-shadow: 0 2px 10px rgba(75, 134, 170, 0.08);
    margin-bottom: 20px;
}

.branch-logo[b-0qde4uhqfd] {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e8edf5;
    padding: 4px;
    background: #fff;
}

.branch-header-text[b-0qde4uhqfd] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .branch-header-text .branch-name[b-0qde4uhqfd] {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #4b86aa;
        line-height: 1.2;
    }

.branch-subtitle[b-0qde4uhqfd] {
    font-size: 13px;
    color: #6c7a96;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 576px) {
    .branch-header[b-0qde4uhqfd] {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .branch-header-text .branch-name[b-0qde4uhqfd] {
        font-size: 18px;
    }
}

/* ── OTP Verification Styles ── */

.otp-verification-section[b-0qde4uhqfd] {
    background: #f0f7ff;
    border-left: 4px solid #4b86aa;
}

.otp-verification-section h6[b-0qde4uhqfd] {
    color: #4b86aa;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .otp-verification-section h6 i[b-0qde4uhqfd] {
        font-size: 1.2rem;
    }

.otp-input-group[b-0qde4uhqfd] {
    margin: 1rem 0;
}

.otp-input-group label[b-0qde4uhqfd] {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.otp-input-group .input-group[b-0qde4uhqfd] {
    display: flex;
    gap: 0.5rem;
}

.otp-input-group input[b-0qde4uhqfd] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .otp-input-group input:focus[b-0qde4uhqfd] {
        outline: none;
        border-color: #4b86aa;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.1);
    }

    .otp-input-group input.is-invalid[b-0qde4uhqfd] {
        border-color: #dc3545;
        background-color: #fff5f5;
    }

        .otp-input-group input.is-invalid:focus[b-0qde4uhqfd] {
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        }

.otp-input-group .btn-outline-secondary[b-0qde4uhqfd] {
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

    .otp-input-group .btn-outline-secondary:disabled[b-0qde4uhqfd] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.invalid-feedback[b-0qde4uhqfd] {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.otp-input-group small[b-0qde4uhqfd] {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.otp-actions[b-0qde4uhqfd] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .otp-actions .btn[b-0qde4uhqfd] {
        flex: 1;
        min-width: 120px;
    }

.btn-info[b-0qde4uhqfd] {
    background: linear-gradient(135deg, #4b86aa 0%, #3a7099 100%);
    color: white;
    border: none;
}

/* ── Info Banner Styles ── */
.info-banner[b-0qde4uhqfd] {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 2px solid #4b86aa;
    border-left: 6px solid #4b86aa;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideDown-b-0qde4uhqfd 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(75, 134, 170, 0.1);
}

.info-banner-content[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon[b-0qde4uhqfd] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(75, 134, 170, 0.15);
    flex-shrink: 0;
}

    .info-icon i[b-0qde4uhqfd] {
        font-size: 1.5rem;
        color: #4b86aa;
    }

.info-text[b-0qde4uhqfd] {
    flex: 1;
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .info-text[b-0qde4uhqfd] {
        flex-direction: column;
        gap: 1rem;
    }
}

.info-text-en[b-0qde4uhqfd],
.info-text-ar[b-0qde4uhqfd] {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.info-text-en strong[b-0qde4uhqfd],
.info-text-ar strong[b-0qde4uhqfd] {
    display: block;
    font-weight: 700;
    color: #2c5aa0;
    font-size: 1rem;
}

.info-text-en p[b-0qde4uhqfd],
.info-text-ar p[b-0qde4uhqfd] {
    margin: 0;
    color: #555;
}

.info-text-ar[b-0qde4uhqfd] {
    direction: rtl;
    text-align: right;
}

.btn-close-info[b-0qde4uhqfd] {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .btn-close-info:hover[b-0qde4uhqfd] {
        background-color: rgba(75, 134, 170, 0.1);
        color: #4b86aa;
        transform: rotate(90deg);
    }

    .btn-close-info:focus[b-0qde4uhqfd] {
        outline: none;
        box-shadow: 0 0 0 3px rgba(75, 134, 170, 0.15);
    }

@keyframes slideDown-b-0qde4uhqfd {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    .btn-info:hover:not(:disabled)[b-0qde4uhqfd] {
        background: linear-gradient(135deg, #3a7099 0%, #2d5a7a 100%);
    }

    .btn-info:disabled[b-0qde4uhqfd] {
        background: linear-gradient(135deg, #adb5bd 0%, #b3bcc4 100%);
    }

.alert[b-0qde4uhqfd] {
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success[b-0qde4uhqfd] {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

    .alert-success i[b-0qde4uhqfd] {
        font-size: 1.2rem;
        color: #28a745;
    }

@media (max-width: 768px) {
    .otp-verification-section[b-0qde4uhqfd] {
        padding: 1.5rem 1rem;
    }

    .otp-input-group .input-group[b-0qde4uhqfd] {
        flex-direction: column;
    }

        .otp-input-group .input-group .btn-outline-secondary[b-0qde4uhqfd] {
            width: 100%;
        }

    .otp-actions[b-0qde4uhqfd] {
        flex-direction: column;
    }

        .otp-actions .btn[b-0qde4uhqfd] {
            width: 100%;
        }
}
/* /Pages/Profile.razor.rz.scp.css */
.profile-container[b-gx9y2gjtbu] {
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* Profile Banner */
.profile-banner[b-gx9y2gjtbu] {
    position: relative;
    background: linear-gradient(135deg, #4b86aa 0%, #5a94b8 50%, #6ea8c8 100%);
    padding: 4rem 2rem 3rem 2rem;
    overflow: hidden;
    animation: fadeIn-b-gx9y2gjtbu 0.6s ease-out;
}

    .profile-banner[b-gx9y2gjtbu]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        opacity: 0.3;
    }

.banner-content[b-gx9y2gjtbu] {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-large[b-gx9y2gjtbu] {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

    .profile-avatar-large:hover[b-gx9y2gjtbu] {
        transform: scale(1.05);
    }

.profile-header-info[b-gx9y2gjtbu] {
    color: white;
}

.profile-main-name[b-gx9y2gjtbu] {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    line-height: 1.2;
}

.profile-main-name-arabic[b-gx9y2gjtbu] {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    direction: rtl;
}

.profile-badges[b-gx9y2gjtbu] {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-badge[b-gx9y2gjtbu] {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .profile-badge i[b-gx9y2gjtbu] {
        font-size: 1rem;
    }

/* Profile Content */
.profile-content[b-gx9y2gjtbu] {
    width: 100%;
    padding: 2rem;
}

/* Info Cards */
.info-card[b-gx9y2gjtbu] {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    animation: fadeInUp-b-gx9y2gjtbu 0.6s ease-out;
    height: 100%;
}

    .info-card:hover[b-gx9y2gjtbu] {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.info-card-icon[b-gx9y2gjtbu] {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.age-card .info-card-icon[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.gender-card .info-card-icon[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.phone-card .info-card-icon[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.branch-card .info-card-icon[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.info-card-content[b-gx9y2gjtbu] {
    flex: 1;
}

.info-card-label[b-gx9y2gjtbu] {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-card-value[b-gx9y2gjtbu] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b86aa;
    margin: 0;
    line-height: 1.2;
}

/* Detail Sections */
.detail-section[b-gx9y2gjtbu] {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp-b-gx9y2gjtbu 0.6s ease-out;
    height: 100%;
}

    .detail-section:hover[b-gx9y2gjtbu] {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

.section-header[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #4b86aa 0%, #5a94b8 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon[b-gx9y2gjtbu] {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.section-title[b-gx9y2gjtbu] {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-content[b-gx9y2gjtbu] {
    padding: 1.5rem;
}

.detail-row[b-gx9y2gjtbu] {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

    .detail-row:last-child[b-gx9y2gjtbu] {
        border-bottom: none;
    }

    .detail-row:hover[b-gx9y2gjtbu] {
        background-color: #f8f9fa;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 8px;
    }

.detail-label[b-gx9y2gjtbu] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

    .detail-label i[b-gx9y2gjtbu] {
        font-size: 1.1rem;
        color: #4b86aa;
    }

.detail-value[b-gx9y2gjtbu] {
    color: #4b86aa;
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
}

.arabic-text[b-gx9y2gjtbu] {
    direction: rtl;
    font-family: 'Arial', 'Traditional Arabic', sans-serif;
}

/* Action Buttons */
.profile-actions[b-gx9y2gjtbu] {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeIn-b-gx9y2gjtbu 0.8s ease-out 0.2s both;
}

.btn-action[b-gx9y2gjtbu] {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .btn-action i[b-gx9y2gjtbu] {
        font-size: 1.1rem;
    }

    .btn-action:hover:not(:disabled)[b-gx9y2gjtbu] {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .btn-action:active:not(:disabled)[b-gx9y2gjtbu] {
        transform: translateY(-1px);
    }

.btn-primary[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #4b86aa 0%, #5a94b8 100%);
    color: white;
}

    .btn-primary:hover:not(:disabled)[b-gx9y2gjtbu] {
        background: linear-gradient(135deg, #3a7099 0%, #4b86aa 100%);
    }

.btn-secondary[b-gx9y2gjtbu] {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

    .btn-secondary:hover:not(:disabled)[b-gx9y2gjtbu] {
        background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    }

    .btn-secondary:disabled[b-gx9y2gjtbu] {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Animations */
@keyframes fadeIn-b-gx9y2gjtbu {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp-b-gx9y2gjtbu {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for info cards */
.info-card:nth-child(1)[b-gx9y2gjtbu] {
    animation-delay: 0.1s;
}

.info-card:nth-child(2)[b-gx9y2gjtbu] {
    animation-delay: 0.2s;
}

.info-card:nth-child(3)[b-gx9y2gjtbu] {
    animation-delay: 0.3s;
}

.info-card:nth-child(4)[b-gx9y2gjtbu] {
    animation-delay: 0.4s;
}

/* Staggered animations for detail sections */
.detail-section:nth-child(1)[b-gx9y2gjtbu] {
    animation-delay: 0.2s;
}

.detail-section:nth-child(2)[b-gx9y2gjtbu] {
    animation-delay: 0.3s;
}

.detail-section:nth-child(3)[b-gx9y2gjtbu] {
    animation-delay: 0.4s;
}

.detail-section:nth-child(4)[b-gx9y2gjtbu] {
    animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-banner[b-gx9y2gjtbu] {
        padding: 3rem 1.5rem 2.5rem 1.5rem;
    }

    .banner-content[b-gx9y2gjtbu] {
        flex-direction: column;
        text-align: center;
    }

    .profile-main-name[b-gx9y2gjtbu] {
        font-size: 2rem;
    }

    .profile-main-name-arabic[b-gx9y2gjtbu] {
        font-size: 1.25rem;
    }

    .profile-badges[b-gx9y2gjtbu] {
        justify-content: center;
    }

    .profile-content[b-gx9y2gjtbu] {
        padding: 1.5rem;
    }

    .info-card-value[b-gx9y2gjtbu] {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .profile-banner[b-gx9y2gjtbu] {
        padding: 2.5rem 1rem 2rem 1rem;
    }

    .profile-avatar-large[b-gx9y2gjtbu] {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }

    .profile-main-name[b-gx9y2gjtbu] {
        font-size: 1.75rem;
    }

    .profile-main-name-arabic[b-gx9y2gjtbu] {
        font-size: 1.1rem;
    }

    .profile-badges[b-gx9y2gjtbu] {
        flex-direction: column;
        align-items: center;
    }

    .profile-badge[b-gx9y2gjtbu] {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .profile-content[b-gx9y2gjtbu] {
        padding: 1rem;
    }

    .info-card[b-gx9y2gjtbu] {
        padding: 1.25rem;
    }

    .info-card-icon[b-gx9y2gjtbu] {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .info-card-value[b-gx9y2gjtbu] {
        font-size: 1.1rem;
    }

    .section-header[b-gx9y2gjtbu] {
        padding: 1.25rem;
    }

    .section-icon[b-gx9y2gjtbu] {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .section-title[b-gx9y2gjtbu] {
        font-size: 1.1rem;
    }

    .section-content[b-gx9y2gjtbu] {
        padding: 1.25rem;
    }

    .detail-row[b-gx9y2gjtbu] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-value[b-gx9y2gjtbu] {
        text-align: left;
    }

    .btn-action[b-gx9y2gjtbu] {
        width: 100%;
        justify-content: center;
    }

    .profile-actions[b-gx9y2gjtbu] {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .profile-banner[b-gx9y2gjtbu] {
        padding: 2rem 0.75rem 1.5rem 0.75rem;
    }

    .profile-avatar-large[b-gx9y2gjtbu] {
        width: 90px;
        height: 90px;
        font-size: 3rem;
    }

    .profile-main-name[b-gx9y2gjtbu] {
        font-size: 1.5rem;
    }

    .profile-main-name-arabic[b-gx9y2gjtbu] {
        font-size: 1rem;
    }

    .profile-badge[b-gx9y2gjtbu] {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    .info-card-label[b-gx9y2gjtbu] {
        font-size: 0.7rem;
    }

    .detail-label[b-gx9y2gjtbu] {
        font-size: 0.85rem;
    }

    .detail-value[b-gx9y2gjtbu] {
        font-size: 0.95rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .profile-banner[b-gx9y2gjtbu],
    .info-card[b-gx9y2gjtbu],
    .detail-section[b-gx9y2gjtbu],
    .profile-actions[b-gx9y2gjtbu] {
        animation: none;
    }

        .info-card:hover[b-gx9y2gjtbu],
        .detail-section:hover[b-gx9y2gjtbu],
        .btn-action:hover[b-gx9y2gjtbu],
        .profile-avatar-large:hover[b-gx9y2gjtbu] {
            transform: none;
        }
}
