html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.vaccine-item {
    display: flex;
    align-items: center;
    min-height: 32px;
}

    .vaccine-item .rz-label {
        font-size: 14px;
        font-weight: 500;
    }

.user-form-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .permission-list {
        grid-template-columns: 1fr;
    }
}

/*login*/
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 30%), #f4f6f9;
}

.login-shell {
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: white;
}

.login-left {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(37, 99, 235, 0.95)), radial-gradient(circle at 20% 20%, rgba(255,255,255,0.24), transparent 24%);
    min-height: 560px;
}

.login-logo-circle {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.32);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .login-page {
        padding: 12px;
        align-items: flex-start;
    }

    .login-shell {
        min-height: auto;
        border-radius: 18px;
    }

    .login-left {
        min-height: 280px;
    }
}

/*Uploading animation*/

.upload-processing-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 16px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    animation: uploadPulse 1.4s ease-in-out infinite;
}

.upload-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid #bfdbfe;
    border-top-color: #2563eb;
    animation: uploadSpin 0.8s linear infinite;
    flex-shrink: 0;
}

@@keyframes uploadSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@@keyframes uploadPulse {
    0% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    50% {
        box-shadow: 0 8px 26px rgba(37, 99, 235, 0.14);
    }

    100% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

/*Patient Information*/
.patient-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
}

/*.patient-page-header {
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.patient-avatar {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.patient-header-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}*/

.patient-navigation-card {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-x: auto;
}

.patient-navigation-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.patient-navigation {
    width: auto;
    min-width: 760px;
}

.patient-content-card {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 26px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.patient-section-card {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.basic-section {
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.contact-section {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.hmo-section {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.supervisor-section {
    background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 21px;
}

.basic-icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.contact-icon {
    color: #0369a1;
    background: #e0f2fe;
}

.hmo-icon {
    color: #15803d;
    background: #dcfce7;
}

.supervisor-icon {
    color: #b45309;
    background: #fef3c7;
}

.view-mode-notice,
.edit-mode-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
}

.view-mode-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.edit-mode-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.patient-form-actions {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.patient-validator {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 12px;
}

.patient-child-content {
    width: 100%;
}

@@media (max-width: 768px) {
    .patient-page {
        padding: 10px;
    }

    .patient-page-header {
        padding: 18px;
    }

    .patient-content-card {
        padding: 16px;
    }

    .patient-section-card {
        padding: 16px;
    }

    .patient-navigation {
        min-width: 720px;
    }

    .patient-avatar {
        width: 48px;
        height: 48px;
    }
}

/* Report Cards */
.summary-cards-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
}

.summary-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px;
    border-radius: 14px;
}

    .summary-card .rz-text-body2 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@@media (max-width: 992px) {
    .summary-cards-row {
        flex-wrap: wrap;
    }

    .summary-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@@media (max-width: 576px) {
    .summary-card {
        flex: 1 1 100%;
    }
}

/* ═══════════════════════════════════════════════════
   ✅ HEADER — Blue Gradient
   ═══════════════════════════════════════════════════ */
.rz-header {
    background: linear-gradient(90deg, #1e40af 0%, #059669 100%) !important;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.25) !important;
    height: 60px !important;
}

/* ═══════════════════════════════════════════════════
   ✅ SIDEBAR — Clean white modern
   ═══════════════════════════════════════════════════ */
.rz-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #eef2f7 !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04) !important;
}

    .rz-sidebar .rz-panel-menu {
        padding: 10px 10px !important;
        background: transparent !important;
    }

/* ═══════════════════════════════════════════════════
   ✅ SIDEBAR MENU ITEMS
   ═══════════════════════════════════════════════════ */
.rz-navigation-item {
    margin: 4px 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.rz-navigation-item-wrapper {
    padding: 11px 14px !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
}

    .rz-navigation-item-wrapper:hover {
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        transform: translateX(3px);
    }

.rz-navigation-item-wrapper-active {
    background: linear-gradient(90deg, #dbeafe 0%, #e0e7ff 100%) !important;
    color: #1d4ed8 !important;
    border-left: 3px solid #3b82f6 !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════
   ✅ SIDEBAR ICONS & TEXT
   ═══════════════════════════════════════════════════ */
.rz-navigation-item-icon {
    font-size: 20px !important;
    margin-right: 12px !important;
}

.rz-navigation-item-text {
    font-size: 13.5px !important;
    letter-spacing: 0.2px !important;
}

/* ═══════════════════════════════════════════════════
   ✅ SUBMENU
   ═══════════════════════════════════════════════════ */
.rz-navigation-item-link .rz-navigation-item-wrapper {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    color: #4b5563 !important;
}

    .rz-navigation-item-link .rz-navigation-item-wrapper:hover {
        background: #f3f4f6 !important;
        color: #1d4ed8 !important;
    }

.rz-navigation-item-link .rz-navigation-item-wrapper-active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-left: 3px solid #0ea5e9 !important;
}

/* ═══════════════════════════════════════════════════
   ✅ FOOTER
   ═══════════════════════════════════════════════════ */
.rz-footer {
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 12px !important;
    text-align: center !important;
    padding: 14px !important;
    border-top: 1px solid #eef2f7 !important;
    font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════
   ✅ BODY CONTENT AREA
   ═══════════════════════════════════════════════════ */
.rz-body {
    background: #f8fafc !important;
}

/* ═══════════════════════════════════════════════════
   ✅ LOGOUT BUTTON
   ═══════════════════════════════════════════════════ */
.rz-header .rz-button {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1d4ed8 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

    .rz-header .rz-button:hover {
        background: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    }

/* ═══════════════════════════════════════════════════
   ✅ SCROLLBAR
   ═══════════════════════════════════════════════════ */
.rz-sidebar::-webkit-scrollbar {
    width: 6px;
}

.rz-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    .rz-sidebar::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Forgot Password*/
.forgot-password-btn {
    border: none;
    background: transparent;
    color: #15803d;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .forgot-password-btn:hover {
        color: #166534;
        text-decoration: underline;
    }

    .forgot-password-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

 /*   Doctor Dashboard Css*/
.doctor-action-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.doctor-selection-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.doctor-action-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.doctor-action-buttons {
    flex: 1 1 auto;
}

.doctor-action-button {
    min-width: 175px;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 600;
}

.consultation-button {
    min-width: 210px;
}

.care-button,
.prescription-button {
    min-width: 175px;
}

.doctor-search-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.doctor-search-icon {
    position: absolute;
    left: 18px;
    z-index: 2;
    color: #64748b;
    pointer-events: none;
}

.doctor-search-input {
    width: 280px;
    min-width: 220px;
    padding-left: 34px !important;
}

.doctor-search-button,
.doctor-clear-button {
    min-height: 38px;
    border-radius: 9px;
}

@@media (max-width: 1100px) {
    .doctor-action-buttons {
        width: 100%;
    }

    .doctor-search-panel {
        width: 100%;
    }

    .doctor-search-input {
        flex: 1 1 auto;
        width: auto;
    }
}

@@media (max-width: 720px) {
    .doctor-action-card {
        padding: 16px;
    }

    .doctor-action-buttons {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .doctor-action-button,
    .consultation-button,
    .care-button,
    .prescription-button {
        width: 100%;
        min-width: 0;
    }

    .doctor-search-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .doctor-search-icon {
        top: 18px;
    }

    .doctor-search-input {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .doctor-search-button,
    .doctor-clear-button {
        width: 100%;
    }
    /*Patient Report Css*/
    .utilization-report-icon {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        font-size: 23px;
    }

    .utilization-reason-icon {
        color: #334155;
        background: #e2e8f0;
    }

    .utilization-consultation-icon {
        color: #1d4ed8;
        background: #dbeafe;
    }

    .utilization-outcome-icon {
        color: #15803d;
        background: #dcfce7;
    }

    .utilization-intervention-icon {
        color: #c2410c;
        background: #ffedd5;
    }

    .utilization-summary-icon {
        color: #a16207;
        background: #fef3c7;
    }

    .utilization-description {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 10px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .utilization-description-blue {
        background: #f8fbff;
        border-color: #bfdbfe;
    }

    .utilization-description-green {
        background: #f7fff9;
        border-color: #bbf7d0;
    }

    .utilization-description-orange {
        background: #fffaf5;
        border-color: #fed7aa;
    }

    .utilization-description-yellow {
        background: #fffef5;
        border-color: #fde68a;
    }

    @@media (max-width: 700px) {
        .utilization-report-icon {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }
    }
    /*User Creation CSS*/

    .user-form-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px;
        background: rgba(15, 23, 42, 0.55);
    }

    .compact-user-form {
        width: min(1080px, 97vw);
        max-height: 96vh;
        padding: 0;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    }

    .compact-user-header {
        padding: 14px 18px;
        border-bottom: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .compact-user-header-icon {
        width: 39px;
        height: 39px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: #ffffff;
        background: #2563eb;
        font-size: 20px;
    }

    .compact-user-close {
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }

    .compact-user-body {
        max-height: calc(96vh - 68px);
        overflow-y: auto;
        padding: 14px 18px;
    }

    .compact-form-section {
        width: 100%;
    }

    .compact-section-heading {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 9px;
        color: #2563eb;
    }

        .compact-section-heading .rzi {
            font-size: 18px;
        }

    .compact-divider {
        width: 100%;
        height: 1px;
        background: #e2e8f0;
    }

    .compact-validator {
        display: block;
        margin-top: 3px;
        color: #dc2626;
        font-size: 11px;
    }

    .compact-switch-option {
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #f8fafc;
    }

    .compact-account-type {
        min-height: 58px;
        padding: 7px 9px;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #f8fafc;
    }

    .compact-option-title {
        color: #0f172a;
        font-size: 12px;
        font-weight: 700;
    }

    .compact-option-caption {
        margin-top: 1px;
        color: #64748b;
        font-size: 10px;
    }

    .compact-option-state {
        min-width: 20px;
        color: #475569;
        font-size: 11px;
        font-weight: 700;
    }

    .doctor-type-select {
        width: 100%;
        margin-top: 5px;
    }

        .doctor-type-select .rz-button,
        .doctor-type-select .rz-selectbar-label {
            min-height: 30px;
            justify-content: center;
            font-size: 11px;
        }

    .compact-permission-preview {
        padding: 8px 10px;
        border: 1px solid #dbeafe;
        border-radius: 9px;
        background: #f8fbff;
    }

    .compact-permission-items {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .compact-permission-item {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 3px 7px;
        border-radius: 999px;
        color: #166534;
        background: #dcfce7;
        font-size: 10px;
        font-weight: 600;
    }

    .compact-form-actions {
        margin: 0 -18px -14px;
        padding: 10px 18px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    @@media (max-width: 700px) {
        .user-form-backdrop {
            align-items: flex-end;
            padding: 0;
        }

        .compact-user-form {
            width: 100%;
            max-height: 97vh;
            border-radius: 16px 16px 0 0;
        }

        .compact-user-header {
            padding: 13px 15px;
        }

        .compact-user-body {
            max-height: calc(97vh - 66px);
            padding: 13px 15px;
        }

        .compact-form-actions {
            margin: 0 -15px -13px;
            padding: 10px 15px;
        }
    }
    /* Past Medical History */

    .past-medical-history-fieldset {
        width: 100%;
    }

    .medical-history-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .medical-history-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px;
    }

    .medical-history-item {
        min-width: 0;
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 7px 9px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background-color: #f8fafc;
        color: #334155;
        font-size: 12px;
        line-height: 1.25;
        cursor: pointer;
        transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    }

        .medical-history-item:hover {
            border-color: #93c5fd;
            background-color: #eff6ff;
            color: #1d4ed8;
        }

        .medical-history-item .rz-chkbox {
            flex: 0 0 auto;
        }

        .medical-history-item span {
            min-width: 0;
            overflow-wrap: anywhere;
        }

    .medical-history-long {
        grid-column: span 2;
    }

    .medical-history-extra-long {
        grid-column: span 2;
    }

    .medical-history-item:has(.rz-chkbox-box.rz-state-active) {
        border-color: #86efac;
        background-color: #f0fdf4;
        color: #166534;
        font-weight: 600;
    }

    .medical-history-item:has(.rz-state-disabled) {
        cursor: default;
    }

        .medical-history-item:has(.rz-state-disabled):hover {
            border-color: #e2e8f0;
            background-color: #f8fafc;
            color: #334155;
        }
    /* Tablet */
    @media (max-width: 950px) {
        .medical-history-group {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .medical-history-long,
        .medical-history-extra-long {
            grid-column: span 2;
        }
    }
    /* Mobile */
    @media (max-width: 620px) {
        .medical-history-group {
            grid-template-columns: 1fr;
        }

        .medical-history-long,
        .medical-history-extra-long {
            grid-column: span 1;
        }

        .medical-history-item {
            min-height: 40px;
        }
    }
}