/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-gs0bi0ihb8] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-gs0bi0ihb8] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content[b-gs0bi0ihb8] {
    flex: 1;
}

.app-footer[b-gs0bi0ihb8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid #dde3ea;
    color: #8a93a6;
    font-size: 0.85rem;
}

.sidebar[b-gs0bi0ihb8] {
    background-color: var(--emr-sidebar-bg, #eaeef3);
    box-shadow: 3px 0 15px rgba(163,177,198,.35);
}

.top-row[b-gs0bi0ihb8] {
    background-color: var(--emr-topbar-bg, #f4f6f9);
    border-bottom: 1px solid #dde3ea;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-gs0bi0ihb8]  a, .top-row[b-gs0bi0ihb8]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-gs0bi0ihb8]  a:hover, .top-row[b-gs0bi0ihb8]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-gs0bi0ihb8]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-gs0bi0ihb8] {
        justify-content: space-between;
    }

    .top-row[b-gs0bi0ihb8]  a, .top-row[b-gs0bi0ihb8]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-gs0bi0ihb8] {
        flex-direction: row;
    }

    .sidebar[b-gs0bi0ihb8] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-gs0bi0ihb8] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-gs0bi0ihb8]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-gs0bi0ihb8], article[b-gs0bi0ihb8] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-lollnzgh8k] {
    background-color: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

.top-row[b-lollnzgh8k] {
    min-height: 3.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: transparent;
}

.navbar-brand[b-lollnzgh8k] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3c4257 !important;
    margin-right: 0;
}

.clinic-logo[b-lollnzgh8k] {
    max-height: 40px;
    width: auto;
}

.clinic-name[b-lollnzgh8k] {
    font-size: 0.9rem;
    line-height: 1.15;
}

/* ── Icon bubbles ──
   Each .bi span is the round "bubble"; the glyph itself is drawn with a
   CSS mask on ::before so its color follows currentColor (dark by default,
   white automatically once the parent link becomes .active). */

.bi[b-lollnzgh8k] {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    margin-right: 0.9rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f4f6f9;
    box-shadow: -3px -3px 6px rgba(255,255,255,.8), 3px 3px 6px rgba(163,177,198,.45);
    transition: background .15s ease, box-shadow .15s ease;
}

.bi[b-lollnzgh8k]::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.bi-people-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E");
}

.bi-house-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 6.207V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 6.207V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5Z'/%3E%3C/svg%3E");
}

.bi-calendar-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4 .5a.5.5 0 0 0-1 0V1H2a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-1V.5a.5.5 0 0 0-1 0V1H4V.5zM16 14V6H0v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4 .5a.5.5 0 0 0-1 0V1H2a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-1V.5a.5.5 0 0 0-1 0V1H4V.5zM16 14V6H0v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z'/%3E%3C/svg%3E");
}

.bi-bar-chart-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V2z'/%3E%3C/svg%3E");
}

.bi-clipboard-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.bi-currency-dollar-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4 10.781c.148 1.667 1.513 2.85 3.591 3.003V15h1.043v-1.216c2.27-.179 3.678-1.438 3.678-3.3 0-1.59-.947-2.51-2.956-3.028l-.722-.187V3.467c1.122.11 1.879.714 2.07 1.616h1.47c-.166-1.6-1.54-2.748-3.54-2.875V1H7.591v1.233c-1.939.23-3.27 1.472-3.27 3.156 0 1.454.966 2.408 2.661 2.82l.61.153v4.026c-1.145-.162-1.96-.826-2.131-1.607H4Zm3.391-3.968c-1.043-.263-1.6-.825-1.6-1.616 0-.944.704-1.641 1.8-1.828v3.495l-.2-.05Zm1.591 1.872c1.287.323 1.852.859 1.852 1.769 0 1.097-.826 1.828-2.2 1.939V8.617l.348.068Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4 10.781c.148 1.667 1.513 2.85 3.591 3.003V15h1.043v-1.216c2.27-.179 3.678-1.438 3.678-3.3 0-1.59-.947-2.51-2.956-3.028l-.722-.187V3.467c1.122.11 1.879.714 2.07 1.616h1.47c-.166-1.6-1.54-2.748-3.54-2.875V1H7.591v1.233c-1.939.23-3.27 1.472-3.27 3.156 0 1.454.966 2.408 2.661 2.82l.61.153v4.026c-1.145-.162-1.96-.826-2.131-1.607H4Zm3.391-3.968c-1.043-.263-1.6-.825-1.6-1.616 0-.944.704-1.641 1.8-1.828v3.495l-.2-.05Zm1.591 1.872c1.287.323 1.852.859 1.852 1.769 0 1.097-.826 1.828-2.2 1.939V8.617l.348.068Z'/%3E%3C/svg%3E");
}

.bi-activity-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 2a.5.5 0 0 1 .47.33L10 12.036l1.53-4.208A.5.5 0 0 1 12 7.5h3.5a.5.5 0 0 1 0 1h-3.15l-1.88 5.17a.5.5 0 0 1-.94 0L6 3.964 4.47 8.171A.5.5 0 0 1 4 8.5H.5a.5.5 0 0 1 0-1h3.15l1.88-5.17A.5.5 0 0 1 6 2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 2a.5.5 0 0 1 .47.33L10 12.036l1.53-4.208A.5.5 0 0 1 12 7.5h3.5a.5.5 0 0 1 0 1h-3.15l-1.88 5.17a.5.5 0 0 1-.94 0L6 3.964 4.47 8.171A.5.5 0 0 1 4 8.5H.5a.5.5 0 0 1 0-1h3.15l1.88-5.17A.5.5 0 0 1 6 2Z'/%3E%3C/svg%3E");
}

.bi-send-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576zm6.787-8.201L1.591 6.602l4.339 2.76z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576zm6.787-8.201L1.591 6.602l4.339 2.76z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
}

.bi-tag-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1H2zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1H2zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu[b-lollnzgh8k]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

/* ── Nav items ── */

.nav-item[b-lollnzgh8k] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-lollnzgh8k] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-lollnzgh8k] {
        padding-bottom: 1rem;
    }

    .nav-item[b-lollnzgh8k]  a,
    .nav-item[b-lollnzgh8k]  .btn-link {
        color: #3c4257;
        border-radius: 50px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1;
        transition: background-color .15s ease, color .15s ease;
    }

.nav-item[b-lollnzgh8k]  a.active,
.nav-item[b-lollnzgh8k]  a.active .bi {
    color: #fff;
}

.nav-item[b-lollnzgh8k]  a.active {
    background-color: var(--emr-active-bg, #5c73d0);
}

.nav-item[b-lollnzgh8k]  a.active .bi {
    background: rgba(255,255,255,.18);
    box-shadow: none;
}

.nav-item[b-lollnzgh8k]  a:hover,
.nav-item[b-lollnzgh8k]  .btn-link:hover {
    background-color: #d7dee7;
    color: #22252b;
}

.nav-item[b-lollnzgh8k]  a:hover .bi {
    background: #e7e9f1;
}

/* ── Sécurité submenu ── */

.nav-subitem[b-lollnzgh8k] {
    padding-left: 2rem !important;
    font-size: 0.85rem;
}

.nav-subitem[b-lollnzgh8k]  a {
    height: 2.5rem !important;
}

.nav-subitem[b-lollnzgh8k]  a .bi {
    width: 28px;
    height: 28px;
    margin-right: 0.7rem;
}

.nav-subitem[b-lollnzgh8k]  a .bi::before {
    width: 13px;
    height: 13px;
}

.nav-chevron[b-lollnzgh8k] {
    font-size: 1.1rem;
    color: #8a93a6;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.nav-chevron-open[b-lollnzgh8k] {
    transform: rotate(90deg);
}

@media (min-width: 641px) {
    .navbar-toggler[b-lollnzgh8k] {
        display: none;
    }

    .collapse[b-lollnzgh8k] {
        display: block;
    }

    .nav-scrollable[b-lollnzgh8k] {
        height: calc(100vh - 6rem);
        overflow-y: auto;
    }
}
/* /Layout/PrintLayout.razor.rz.scp.css */
.print-page[b-ofsyvy0ur2] {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.print-clinic-logo[b-ofsyvy0ur2] {
    display: block;
    max-height: 70px;
    width: auto;
    margin: 0 auto 0.75rem;
}

.print-clinic-name[b-ofsyvy0ur2] {
    text-align: center;
    margin-bottom: 1.5rem;
}
/* /Pages/Home.razor.rz.scp.css */
.home-grid[b-m7zzs18l8h] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 960px) {
    .home-grid[b-m7zzs18l8h] {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

.home-card .card-header[b-m7zzs18l8h] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Agenda list ── */

.home-appt-list[b-m7zzs18l8h] {
    display: grid;
    gap: 0.6rem;
}

.home-appt[b-m7zzs18l8h] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #dde3ea;
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}

.home-appt:hover[b-m7zzs18l8h] {
    border-color: var(--emr-active-bg, #5c73d0);
    background-color: #f4f6f9;
}

.home-appt-time[b-m7zzs18l8h] {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.85rem;
    color: #3c4257;
    width: 3.2rem;
    flex-shrink: 0;
}

.home-appt-who[b-m7zzs18l8h] {
    min-width: 0;
    flex: 1;
}

/* ── Alerts / Actions lists ──
   Bounded height so a long backlog scrolls inside the card instead of
   stretching the page; the scroll-shadow gradients hint there's more
   without needing JS. */

.home-simple-list[b-m7zzs18l8h] {
    max-height: 300px;
    overflow-y: auto;
    background:
        linear-gradient(#fff 40%, rgba(255,255,255,0)) 0 0,
        linear-gradient(rgba(255,255,255,0), #fff 60%) 0 100%,
        linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,0)) 0 0,
        linear-gradient(to top, rgba(0,0,0,.08), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 24px, 100% 24px, 100% 10px, 100% 10px;
    background-attachment: local, local, scroll, scroll;
}

.home-simple-item[b-m7zzs18l8h] {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
}

.home-simple-item:hover[b-m7zzs18l8h] {
    background-color: #f4f6f9;
}

.home-ico[b-m7zzs18l8h] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeef3;
    color: #3c4257;
    font-size: 0.85rem;
}

.home-simple-body[b-m7zzs18l8h] {
    min-width: 0;
    flex: 1;
}

.home-pill[b-m7zzs18l8h] {
    align-self: center;
    background-color: #fff3cd;
    color: #8a6400;
    white-space: nowrap;
}

.home-pill-danger[b-m7zzs18l8h] {
    background-color: #fdeaea;
    color: #b3261e;
}
/* /Pages/Patients/PatientDetail.razor.rz.scp.css */
.patient-grid[b-bydx6nbma2] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 960px) {
    .patient-grid[b-bydx6nbma2] {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.main-col[b-bydx6nbma2], .side-col[b-bydx6nbma2] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Identity header (name/code/avatar/edit) ── */

.identity-main[b-bydx6nbma2] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.identity-avatar[b-bydx6nbma2] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeef3;
    color: #3c4257;
}

    .identity-avatar svg[b-bydx6nbma2] {
        width: 22px;
        height: 22px;
    }

    .identity-avatar.female[b-bydx6nbma2] {
        background: #e7f1ff;
        color: #28578f;
    }

    .identity-avatar.male[b-bydx6nbma2] {
        background: #eef2ff;
        color: #4c5fa8;
    }

.patient-name[b-bydx6nbma2] {
    font-size: 1.25rem;
    font-weight: 700;
}

.patient-code[b-bydx6nbma2] {
    color: #8a93a6;
    font-size: 0.82rem;
}

/* ── Profile groups — side by side in the wide main column ── */

.profile-groups[b-bydx6nbma2] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 760px) {
    .profile-groups[b-bydx6nbma2] {
        grid-template-columns: 1fr;
    }
}

.profile-group[b-bydx6nbma2] {
    padding: 0.9rem 1.1rem;
}

    .profile-group + .profile-group[b-bydx6nbma2] {
        border-left: 1px solid #dde3ea;
    }

@media (max-width: 760px) {
    .profile-group + .profile-group[b-bydx6nbma2] {
        border-left: none;
        border-top: 1px solid #dde3ea;
    }
}

.profile-group h3[b-bydx6nbma2] {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a93a6;
    margin: 0 0 .5rem;
}

.profile-row[b-bydx6nbma2] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.83rem;
    padding: .2rem 0;
}

    .profile-row dt[b-bydx6nbma2] {
        color: #8a93a6;
        font-weight: 400;
    }

    .profile-row dd[b-bydx6nbma2] {
        margin: 0;
        text-align: right;
        font-weight: 500;
    }

/* ── Current / upcoming visit ── */

.current-visit.in-progress[b-bydx6nbma2] {
    border-left: 4px solid #b06a00;
}

.current-visit.upcoming[b-bydx6nbma2] {
    border-left: 4px solid #0d6efd;
}

.current-visit-body[b-bydx6nbma2] {
    padding: 1rem 1.1rem;
}

.cv-reason[b-bydx6nbma2] {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.cv-meta[b-bydx6nbma2] {
    margin-bottom: .75rem;
}

.cv-action[b-bydx6nbma2] {
    font-weight: 600;
    color: var(--emr-active-bg, #5c73d0);
    text-decoration: none;
    font-size: .85rem;
    cursor: pointer;
}

    .cv-action:hover[b-bydx6nbma2] {
        text-decoration: underline;
    }

.current-visit-empty[b-bydx6nbma2] {
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Scrollable section bodies — bounded height + scroll-shadow hint ── */

.scroll-body[b-bydx6nbma2] {
    max-height: 320px;
    overflow-y: auto;
    background:
        linear-gradient(#fff 40%, rgba(255,255,255,0)) 0 0,
        linear-gradient(rgba(255,255,255,0), #fff 60%) 0 100%,
        linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,0)) 0 0,
        linear-gradient(to top, rgba(0,0,0,.08), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 24px, 100% 24px, 100% 10px, 100% 10px;
    background-attachment: local, local, scroll, scroll;
}

/* ── Previous visits list ── */

.visit-list[b-bydx6nbma2] {
    padding: .6rem;
    display: grid;
    gap: .55rem;
}

.visit-row[b-bydx6nbma2] {
    display: flex;
    align-items: center;
    gap: .9rem;
    border: 1px solid #dde3ea;
    border-radius: .5rem;
    padding: .55rem .85rem;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}

    .visit-row:hover[b-bydx6nbma2] {
        border-color: var(--emr-active-bg, #5c73d0);
        background-color: #f4f6f9;
    }

    .visit-row .visit-date[b-bydx6nbma2] {
        font-variant-numeric: tabular-nums;
        font-weight: 700;
        font-size: .82rem;
        color: #3c4257;
        width: 5.4rem;
        flex-shrink: 0;
    }

    .visit-row .visit-who[b-bydx6nbma2] {
        flex: 1;
        min-width: 0;
        font-size: .88rem;
    }

/* ── Allergies ── */

.allergy-list[b-bydx6nbma2] {
    padding: .6rem;
    display: grid;
    gap: .5rem;
}

.allergy-row[b-bydx6nbma2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    border-radius: .45rem;
    padding: .55rem .75rem;
}

    .allergy-row .allergen[b-bydx6nbma2] {
        font-weight: 700;
        font-size: .85rem;
    }

    .allergy-row .reaction[b-bydx6nbma2] {
        font-size: .76rem;
        opacity: .85;
    }

    .allergy-row.severe[b-bydx6nbma2] {
        background: #fdeaea;
        color: #b3261e;
    }

    .allergy-row.moderate[b-bydx6nbma2] {
        background: #fff3cd;
        color: #8a6400;
    }

    .allergy-row.mild[b-bydx6nbma2] {
        background: #e7f1ff;
        color: #28578f;
    }

.allergy-sev[b-bydx6nbma2] {
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 1rem;
    white-space: nowrap;
    color: #fff;
}

    .allergy-row.severe .allergy-sev[b-bydx6nbma2] { background-color: #b3261e; }
    .allergy-row.moderate .allergy-sev[b-bydx6nbma2] { background-color: #8a6400; }
    .allergy-row.mild .allergy-sev[b-bydx6nbma2] { background-color: #28578f; }

/* ── Reference lists (history / medications / documents / billing) ── */

.ref-list[b-bydx6nbma2] {
    padding: .5rem;
    display: grid;
    gap: .5rem;
}

.ref-item[b-bydx6nbma2] {
    border: 1px solid #dde3ea;
    border-radius: .5rem;
    padding: .6rem .8rem;
}

    .ref-item:hover[b-bydx6nbma2] {
        border-color: var(--emr-active-bg, #5c73d0);
    }

    .ref-item .title[b-bydx6nbma2] {
        font-weight: 600;
        font-size: .85rem;
    }

    .ref-item .sub[b-bydx6nbma2] {
        font-size: .76rem;
        color: #8a93a6;
        margin-top: .2rem;
    }

    .ref-item.faded[b-bydx6nbma2] {
        opacity: .6;
    }
/* /Pages/Visits/VisitDetail.razor.rz.scp.css */
/* Sticky action header — status/actions stay visible while this long page scrolls */
.visit-head[b-se5q87ewng] {
    position: sticky;
    top: 0;
    background: #f4f6f9;
    padding: .75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #dde3ea;
    margin-bottom: 1.25rem;
}

.visit-title[b-se5q87ewng] {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Patient identity strip — who this visit belongs to */
.visit-patient-id[b-se5q87ewng] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.identity-avatar[b-se5q87ewng] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeef3;
    color: #3c4257;
}

    .identity-avatar svg[b-se5q87ewng] {
        width: 18px;
        height: 18px;
    }

    .identity-avatar.female[b-se5q87ewng] {
        background: #e7f1ff;
        color: #28578f;
    }

    .identity-avatar.male[b-se5q87ewng] {
        background: #eef2ff;
        color: #4c5fa8;
    }

.visit-patient-name[b-se5q87ewng] {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.15;
}

.visit-patient-meta[b-se5q87ewng] {
    font-size: 0.78rem;
    color: #8a93a6;
}

    .visit-patient-meta .patient-code[b-se5q87ewng] {
        color: inherit;
    }

/* Vital signs — compact stat strip instead of a plain definition list */
.vitals-strip[b-se5q87ewng] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0;
}

.vital-tile[b-se5q87ewng] {
    padding: .8rem 1rem;
    text-align: center;
    border-right: 1px solid #dde3ea;
    border-top: 1px solid #dde3ea;
}

    .vital-tile:nth-child(1)[b-se5q87ewng] {
        border-top: none;
    }

@media (min-width: 576px) {
    .vital-tile[b-se5q87ewng] {
        border-top: none;
    }
}

    .vital-tile:last-child[b-se5q87ewng] {
        border-right: none;
    }

    .vital-tile .v-label[b-se5q87ewng] {
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #8a93a6;
        margin-bottom: .25rem;
    }

    .vital-tile .v-value[b-se5q87ewng] {
        font-size: 1.1rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

        .vital-tile .v-value small[b-se5q87ewng] {
            font-size: .68rem;
            font-weight: 400;
            color: #8a93a6;
        }

.vitals-foot[b-se5q87ewng] {
    padding: .5rem 1rem;
    font-size: .74rem;
    color: #8a93a6;
    border-top: 1px solid #dde3ea;
}

/* Two-column layout: what happened in the room vs. what leaves the clinic */
.visit-grid[b-se5q87ewng] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 960px) {
    .visit-grid[b-se5q87ewng] {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.main-col[b-se5q87ewng], .side-col[b-se5q87ewng] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
