/* /Components/EncounterSelectPanel.razor.rz.scp.css */
.enc-status-filter[b-olir8xp47m] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.enc-status-chip[b-olir8xp47m] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border: 1.5px solid #cbd5e0;
    border-radius: 999px;
    background: #fff;
    color: #4a5568;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: capitalize;
}
.enc-status-chip:hover[b-olir8xp47m] { border-color: #90cdf4; background: #f7fbff; }
.enc-status-chip.on[b-olir8xp47m] {
    border-color: #004080;
    background: #ebf4ff;
    color: #1a365d;
}
.enc-status-chip:disabled[b-olir8xp47m] { opacity: 0.6; cursor: wait; }
.enc-status-chip-check[b-olir8xp47m] {
    width: 14px; height: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: #004080;
}
.enc-status-chip-check .spinner-border[b-olir8xp47m] {
    width: 0.8rem; height: 0.8rem; border-width: 0.12em;
}
.enc-status-chip-count[b-olir8xp47m] {
    background: #e2e8f0;
    color: #4a5568;
    border-radius: 999px;
    padding: 0 0.4rem;
    font-size: 0.65rem;
    min-width: 1.1rem;
    text-align: center;
}
.enc-status-chip.on .enc-status-chip-count[b-olir8xp47m] {
    background: #004080;
    color: #fff;
}

.enc-error[b-olir8xp47m] { font-size: 0.8rem; }
.enc-fin-error[b-olir8xp47m] {
    font-size: 0.78rem;
    color: #c53030;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
    text-align: left;
}
.enc-muted[b-olir8xp47m] { color: #718096; }
.enc-empty-icon[b-olir8xp47m] { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; color: #cbd5e0; }
.enc-empty-icon-sm[b-olir8xp47m] { font-size: 2rem; display: block; margin-bottom: 0.5rem; color: #cbd5e0; }
.enc-empty-text[b-olir8xp47m] { font-size: 0.85rem; margin-bottom: 0.75rem; }
.enc-empty-text-lg[b-olir8xp47m] { font-size: 0.9rem; }

.enc-row-title[b-olir8xp47m] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}
.enc-type[b-olir8xp47m] {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
}
.enc-status-pill[b-olir8xp47m] {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}
.enc-status-active[b-olir8xp47m] { background: #c6f6d5; color: #22543d; }
.enc-status-default[b-olir8xp47m] { background: #e2e8f0; color: #4a5568; }
.enc-meta[b-olir8xp47m] { font-size: 0.78rem; color: #718096; }

.enc-amt-spinner[b-olir8xp47m] { width: 1rem; height: 1rem; }
.enc-amt-stack[b-olir8xp47m] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}
.enc-amt-label[b-olir8xp47m] {
    font-size: 0.68rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.enc-amt-value[b-olir8xp47m] {
    font-weight: 700;
    color: #1a202c;
    font-size: 0.95rem;
}

.enc-amt-input-wrap[b-olir8xp47m] {
    position: relative;
    width: 7.25rem;
}
.enc-amt-prefix[b-olir8xp47m] {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-weight: 600;
    font-size: 0.9rem;
}
.enc-amt-input[b-olir8xp47m] {
    padding-left: 1.5rem;
    text-align: right;
    border-radius: 10px;
    border-color: #cbd5e0;
    background: #fff;
    min-height: 2.1rem;
    font-weight: 600;
}

/* Recurring encounter expand toggle */
.encounter-expand-toggle[b-olir8xp47m] {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: transform 0.15s;
}

/* Billing period expand/collapse */
.billing-periods-expand[b-olir8xp47m] {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease-out;
}
.billing-periods-expand.open[b-olir8xp47m] {
    grid-template-rows: 1fr;
    margin-bottom: 0.5rem;
}
.billing-periods-inner[b-olir8xp47m] {
    overflow: hidden;
    min-height: 0;
    padding: 0 0.5rem 0 1.2rem;
}

/* Billing period sub-rows */
.billing-period-item[b-olir8xp47m] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    margin: 0.35rem 0 0 0.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    position: relative;
}
/* horizontal branch */
.billing-period-item[b-olir8xp47m]::before {
    content: '';
    position: absolute;
    left: -0.675rem;
    top: 50%;
    width: 0.55rem;
    border-top: 2px solid #cbd5e0;
}
/* vertical trunk: extends into margin gap above to form continuous line */
.billing-period-item[b-olir8xp47m]::after {
    content: '';
    position: absolute;
    left: -0.675rem;
    top: -0.5rem;
    bottom: 0;
    border-left: 2px solid #cbd5e0;
}
/* last item: stop at the horizontal branch (center), don't trail below */
.billing-period-item:last-child[b-olir8xp47m] {
    margin-bottom: 0.15rem;
}
.billing-period-item:last-child[b-olir8xp47m]::after {
    bottom: 50%;
}
.billing-period-item:hover[b-olir8xp47m] { border-color: #90cdf4; background: #f7fbff; }
.billing-period-item.checked[b-olir8xp47m] { border-color: #004080; background: #ebf4ff; }
.billing-period-item.checked .encounter-checkbox[b-olir8xp47m] {
    border-color: #004080; background: #004080; color: #fff;
}
.billing-period-top[b-olir8xp47m] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.billing-period-info[b-olir8xp47m] {
    flex: 1;
    min-width: 0;
}
.billing-period-label[b-olir8xp47m] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
}
.billing-period-date[b-olir8xp47m] {
    font-size: 0.72rem;
    color: #718096;
}
.billing-period-state[b-olir8xp47m] {
    font-size: 0.68rem;
    color: #718096;
}
.billing-period-balance[b-olir8xp47m] {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a202c;
    white-space: nowrap;
}
.billing-period-loading[b-olir8xp47m] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 1.2rem;
}
.billing-period-empty[b-olir8xp47m] {
    padding: 0.5rem 0.75rem 0.5rem 1.2rem;
    font-size: 0.8rem;
    color: #718096;
}
/* /Components/LoggedInUserMenu.razor.rz.scp.css */
.logged-in-user-wrapper[b-nquq3lanhv] {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 320px;
}
.logged-in-user[b-nquq3lanhv] {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem 0.4rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    color: #1a365d;
    min-width: 0;
    max-width: 280px;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.logged-in-user:hover[b-nquq3lanhv] {
    border-color: #90cdf4;
    box-shadow: 0 2px 12px rgba(0, 64, 128, 0.15);
}
.logged-in-user-chevron[b-nquq3lanhv] {
    color: #a0aec0;
    font-size: 0.75rem;
    margin-left: 0.1rem;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.logged-in-user-chevron.open[b-nquq3lanhv] {
    transform: rotate(180deg);
    color: #004080;
}
.logged-in-user-avatar[b-nquq3lanhv] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}
.logged-in-user-text[b-nquq3lanhv] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logged-in-user-label[b-nquq3lanhv] {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #718096;
    font-weight: 600;
}
.logged-in-user-name[b-nquq3lanhv],
.logged-in-user-id[b-nquq3lanhv] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logged-in-user-name[b-nquq3lanhv] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a365d;
}
.logged-in-user-id[b-nquq3lanhv] {
    font-size: 0.7rem;
    color: #4a5568;
    font-weight: 500;
}

.eod-report-panel[b-nquq3lanhv] {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transform-origin: top right;
    /* closed state — collapsed from top to bottom */
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transition: opacity 0.18s ease-out,
                transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.22s;
    pointer-events: none;
}
.eod-report-panel.open[b-nquq3lanhv] {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
    transition: opacity 0.18s ease-out 0.04s,
                transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                visibility 0s;
    pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
    .eod-report-panel[b-nquq3lanhv] { transition: none; }
    .logged-in-user-chevron[b-nquq3lanhv] { transition: none; }
}
.eod-report-panel h6[b-nquq3lanhv] {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.eod-report-panel label[b-nquq3lanhv] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.2rem;
}
.eod-report-panel input[type="date"][b-nquq3lanhv] {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #1a202c;
}
.eod-report-panel input[type="date"]:focus[b-nquq3lanhv] {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.15);
}
.eod-filter-row[b-nquq3lanhv] {
    display: flex;
    align-items: center;
}
.eod-checkbox[b-nquq3lanhv] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    margin-bottom: 0;
}
.eod-checkbox input[b-nquq3lanhv] {
    accent-color: #004080;
}
.eod-select[b-nquq3lanhv] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.4rem 2rem 0.4rem 0.55rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #1a202c;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.eod-select:hover[b-nquq3lanhv] {
    border-color: #90cdf4;
    background: #ffffff;
}
.eod-select:focus[b-nquq3lanhv] {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.15);
}
.eod-select-wrap[b-nquq3lanhv] {
    position: relative;
}
.eod-select-chevron[b-nquq3lanhv] {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 0.75rem;
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease;
}
.eod-select-wrap:hover .eod-select-chevron[b-nquq3lanhv],
.eod-select-wrap:focus-within .eod-select-chevron[b-nquq3lanhv] {
    color: #004080;
}
.eod-select-wrap:focus-within .eod-select-chevron[b-nquq3lanhv] {
    transform: translateY(-50%) rotate(180deg);
}
.eod-report-panel .btn-download[b-nquq3lanhv] {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
}
.eod-report-panel .btn-download:hover:not(:disabled)[b-nquq3lanhv] {
    background: #003366;
}
.eod-report-panel .btn-download:disabled[b-nquq3lanhv] {
    opacity: 0.55;
    cursor: not-allowed;
}
.eod-report-panel .eod-error[b-nquq3lanhv] {
    color: #c53030;
    font-size: 0.75rem;
}
.beta-badge[b-nquq3lanhv] {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
/* /Components/ManagePayments/ManagePaymentsConfirmPanel.razor.rz.scp.css */
.mp-confirm-warning[b-3zgq220pm2] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.5rem 0.5rem;
    color: #975a16;
    font-size: 0.72rem;
    font-weight: 500;
}
.mp-confirm-warning i[b-3zgq220pm2] {
    color: #d69e2e;
    font-size: 0.8rem;
}

.mp-error[b-3zgq220pm2] { font-size: 0.8rem; }
.mp-muted[b-3zgq220pm2] { color: #718096; }
.mp-empty-text[b-3zgq220pm2] { font-size: 0.9rem; }
.mp-meta-sm[b-3zgq220pm2] { font-size: 0.75rem; color: #718096; }

.mp-unavailable[b-3zgq220pm2] {
    opacity: 0.55;
    cursor: default;
}
.mp-confirm-item[b-3zgq220pm2] {
    cursor: default;
}
.mp-confirm-row-title[b-3zgq220pm2] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.15rem;
    flex-wrap: wrap;
}
.mp-confirm-reason[b-3zgq220pm2] {
    font-size: 0.78rem;
    color: #4a5568;
}
.mp-confirm-reason-block[b-3zgq220pm2] {
    padding: 0 1rem 0.5rem 1rem;
}
.mp-optional[b-3zgq220pm2] {
    font-weight: 400;
    color: #a0aec0;
    margin-left: 0.3rem;
}
/* /Components/ManagePayments/ManagePaymentsSelectPanel.razor.rz.scp.css */
.mp-error[b-gmx5ympn5b] { font-size: 0.8rem; }
.mp-muted[b-gmx5ympn5b] { color: #718096; }
.mp-empty-icon[b-gmx5ympn5b] {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    color: #cbd5e0;
}
.mp-empty-text[b-gmx5ympn5b] { font-size: 0.9rem; }

.mp-row-title[b-gmx5ympn5b] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.15rem;
}
.mp-payment-strong[b-gmx5ympn5b] {
    color: #1a202c;
    font-size: 0.9rem;
}
.mp-badge[b-gmx5ympn5b] {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}
.mp-badge-type[b-gmx5ympn5b] { background: #e2e8f0; color: #4a5568; }
.mp-badge-terminal[b-gmx5ympn5b] { background: #ebf8ff; color: #2b6cb0; }
.mp-badge-online[b-gmx5ympn5b] { background: #f0fff4; color: #276749; }

.mp-meta[b-gmx5ympn5b] { font-size: 0.78rem; color: #718096; }
.mp-meta-sm[b-gmx5ympn5b] { font-size: 0.75rem; color: #718096; }
.mp-fin[b-gmx5ympn5b] { color: #2d3748; font-weight: 600; }
.mp-sep[b-gmx5ympn5b] { margin: 0 0.4rem; }
/* /Components/ManualWritebackModal.razor.rz.scp.css */
/* Allocation card */
.mw-alloc-card[b-efghe6o436] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
}
.mw-alloc-top[b-efghe6o436] {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}
.mw-alloc-enc-group[b-efghe6o436] {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 0;
}
.mw-alloc-enc-group > input[b-efghe6o436] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
    min-width: 0;
}
.mw-alloc-refresh[b-efghe6o436] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
    padding: 0 0.55rem;
    display: flex;
    align-items: center;
}
.mw-alloc-amount[b-efghe6o436] {
    width: 7rem;
    flex-shrink: 0;
}
.mw-alloc-remove[b-efghe6o436] {
    padding: 0 0.55rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.mw-alloc-extras[b-efghe6o436] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.45rem;
    max-width: 60%;
}
.mw-alloc-fin[b-efghe6o436] {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    padding-left: 0.1rem;
}

.mw-summary[b-efghe6o436] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.mw-summary dt[b-efghe6o436] {
    color: #64748b;
    font-weight: 500;
    font-size: 0.8rem;
}
.mw-summary dd[b-efghe6o436] {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-break: break-all;
}
/* /Components/PatientSearchView.razor.rz.scp.css */
.patient-field-label[b-mcptl4zqv6] {
    display: block;
    font-weight: 600;
    color: #1a365d;
    font-size: 0.85rem;
    margin-bottom: 0.125rem;
}
.patient-results-scroll[b-mcptl4zqv6] {
    max-height: 400px;
    overflow-y: auto;
}
.patient-list-item[b-mcptl4zqv6] {
    cursor: pointer;
}
.patient-list-name[b-mcptl4zqv6] {
    font-weight: 600;
    color: #1a202c;
}
.patient-chevron[b-mcptl4zqv6] {
    color: #a0aec0;
}
/* /Components/TerminalSelectModal.razor.rz.scp.css */
.terminal-name[b-9a9oywf3yj] {
    font-weight: 600;
    color: #1a202c;
}
.terminal-radio[b-9a9oywf3yj] {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #90cdf4;
    background: #ebf8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.terminal-radio[b-9a9oywf3yj]::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}
.payment-list-item.selected .terminal-radio[b-9a9oywf3yj] {
    border-color: #003366;
    background: #dbeafe;
}
.payment-list-item.selected .terminal-radio[b-9a9oywf3yj]::after {
    background: #003366;
}
/* /Components/WritebackToast.razor.rz.scp.css */
.writeback-toast[b-7qhntj5hpy] {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 320px;
    max-width: 460px;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    animation: toast-slide-in-b-7qhntj5hpy 0.3s ease-out;
    font-size: 0.88rem;
}
.writeback-toast-success[b-7qhntj5hpy] {
    background: #d4edda;
    border: 1px solid #b1dfbb;
    color: #155724;
}
.writeback-toast-error[b-7qhntj5hpy] {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.writeback-toast-warning[b-7qhntj5hpy] {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
}
.writeback-toast .toast-icon[b-7qhntj5hpy] {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.writeback-toast .btn-close[b-7qhntj5hpy] {
    flex-shrink: 0;
    margin-left: auto;
}
@keyframes toast-slide-in-b-7qhntj5hpy {
    from { opacity: 0; transform: translateX(-50%) translateY(-1rem); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-5p463peh61] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-5p463peh61] {
    flex: 1;
}

.sidebar[b-5p463peh61] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-5p463peh61] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-5p463peh61]  a, .top-row[b-5p463peh61]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-5p463peh61]  a:hover, .top-row[b-5p463peh61]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-5p463peh61]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-5p463peh61] {
        justify-content: space-between;
    }

    .top-row[b-5p463peh61]  a, .top-row[b-5p463peh61]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-5p463peh61] {
        flex-direction: row;
    }

    .sidebar[b-5p463peh61] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-5p463peh61] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-5p463peh61]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-5p463peh61], article[b-5p463peh61] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-rrbz3k0zj2] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-rrbz3k0zj2] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-rrbz3k0zj2] {
    font-size: 1.1rem;
}

.bi[b-rrbz3k0zj2] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-rrbz3k0zj2] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-rrbz3k0zj2] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-rrbz3k0zj2] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-rrbz3k0zj2] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-rrbz3k0zj2] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-rrbz3k0zj2] {
        padding-bottom: 1rem;
    }

    .nav-item[b-rrbz3k0zj2]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-rrbz3k0zj2]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-rrbz3k0zj2]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-rrbz3k0zj2] {
        display: none;
    }

    .collapse[b-rrbz3k0zj2] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-rrbz3k0zj2] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Home.razor.rz.scp.css */
    .page-shell[b-x4dii6p4kx] {
        min-height: 100vh;
        background: #f0f4f8;
        display: flex;
        justify-content: center;
        padding: 0.75rem;
    }
    .page-shell-top[b-x4dii6p4kx] {
        align-items: flex-start;
    }
    .page-shell-centered[b-x4dii6p4kx] {
        align-items: center;
    }
    .patient-info-bar[b-x4dii6p4kx] {
        background: #f0f4f8;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .patient-info-bar .patient-name[b-x4dii6p4kx] {
        font-weight: 600;
        color: #1a365d;
        font-size: 0.95rem;
    }
    .patient-info-bar .patient-details[b-x4dii6p4kx] {
        color: #4a5568;
        font-size: 0.8rem;
    }
    .patient-info-bar .patient-details span[b-x4dii6p4kx] {
        margin-right: 1rem;
    }
    .terminal-status[b-x4dii6p4kx] {
        display: flex;
        align-items: center;
        flex: 0 0 100%;
        justify-content: flex-start;
        min-width: 0;
    }
    .terminal-selector-btn[b-x4dii6p4kx] {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.7rem;
        border: 1px solid #cbd5e0;
        border-radius: 999px;
        background: #fff;
        color: #1a365d;
        font-size: 0.75rem;
        font-weight: 600;
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        min-width: 0;
        max-width: 220px;
        flex-shrink: 1;
    }
    .terminal-selector-label[b-x4dii6p4kx] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    .terminal-status-indicator[b-x4dii6p4kx] {
        width: 118px;
        min-width: 118px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .terminal-selector-btn:hover:not(:disabled)[b-x4dii6p4kx] {
        background: #f7fbff;
        border-color: #90cdf4;
        box-shadow: 0 2px 8px rgba(0, 64, 128, 0.12);
    }
    .terminal-selector-btn:disabled[b-x4dii6p4kx] {
        opacity: 0.6;
    }
    .terminal-badge[b-x4dii6p4kx] {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.6rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        min-width: 55px;
        justify-content: center;
    }
    .terminal-badge.online[b-x4dii6p4kx] {
        background: #c6f6d5;
        color: #22543d;
    }
    .terminal-badge.offline[b-x4dii6p4kx] {
        background: #fed7d7;
        color: #742a2a;
    }
    .terminal-badge.unknown[b-x4dii6p4kx] {
        background: #e2e8f0;
        color: #4a5568;
    }
    .amount-display[b-x4dii6p4kx] {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1a202c;
        text-align: center;
    }
    .amount-input[b-x4dii6p4kx] {
        font-size: 2.5rem;
        font-weight: 700;
        text-align: center;
        border: none;
        background: transparent;
        width: 200px;
        padding: 0;
    }
    .amount-input:focus[b-x4dii6p4kx] {
        outline: none;
        border-bottom: 2px solid #004080;
    }
    .wallet-btn[b-x4dii6p4kx] {
        background: #000;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: opacity 0.2s;
    }
    .wallet-btn:hover:not(:disabled)[b-x4dii6p4kx] {
        opacity: 0.85;
    }
    .wallet-btn:disabled[b-x4dii6p4kx] {
        opacity: 0.35;
        cursor: not-allowed;
    }
    .divider[b-x4dii6p4kx] {
        display: flex;
        align-items: center;
        text-align: center;
        color: #718096;
        margin: 1.25rem 0;
    }
    .divider[b-x4dii6p4kx]::before,
    .divider[b-x4dii6p4kx]::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }
    .divider span[b-x4dii6p4kx] {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
    .payment-option-btn[b-x4dii6p4kx] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.875rem 1rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 500;
        color: #1a202c;
        transition: all 0.2s;
        margin-bottom: 0.5rem;
    }
    .payment-option-btn:hover:not(:disabled)[b-x4dii6p4kx] {
        border-color: #004080;
        box-shadow: 0 2px 8px rgba(0,64,128,0.12);
    }
    .payment-option-btn:disabled[b-x4dii6p4kx] {
        opacity: 0.35;
        cursor: not-allowed;
        background: #f7fafc;
    }
    .payment-option-btn .btn-content[b-x4dii6p4kx] {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    .payment-option-btn .chevron[b-x4dii6p4kx] {
        color: #a0aec0;
    }
    .payment-option-btn.credit-card[b-x4dii6p4kx] {
        border-color: #ecc94b;
        background: #fffff0;
    }
    .sub-options[b-x4dii6p4kx] {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        padding-left: 0.25rem;
    }
    .sub-option-btn[b-x4dii6p4kx] {
        flex: 1;
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    .disclaimer-box[b-x4dii6p4kx] {
        background: #fffff0;
        border-left: 3px solid #ecc94b;
        padding: 0.75rem 1rem;
        border-radius: 0 6px 6px 0;
        margin-top: 1rem;
    }
    .disclaimer-box h6[b-x4dii6p4kx] {
        font-weight: 600;
        margin-bottom: 0.15rem;
        color: #744210;
        font-size: 0.85rem;
    }
    .disclaimer-box p[b-x4dii6p4kx] {
        margin-bottom: 0;
        color: #975a16;
        font-size: 0.8rem;
    }
    .management-section[b-x4dii6p4kx] {
        background: #f7fafc;
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }
    .management-section h6[b-x4dii6p4kx] {
        color: #718096;
        font-weight: 600;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    .status-alert[b-x4dii6p4kx] {
        border-radius: 8px;
        margin-top: 1rem;
        font-size: 0.9rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .payment-method-group[b-x4dii6p4kx] {
        margin-bottom: 0.5rem;
    }
    .section-header[b-x4dii6p4kx] {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        color: #003366;
        font-size: 0.9rem;
        margin-top: 0.75rem;
        margin-bottom: 0.25rem;
    }
    .section-hint[b-x4dii6p4kx] {
        font-size: 0.75rem;
        color: #718096;
        margin: 0 0 0.5rem 0;
    }
    .payment-option-btn.online-payment[b-x4dii6p4kx] {
        border-color: #38a169;
        background: #f0fff4;
    }
    .payment-option-btn.online-payment:hover:not(:disabled)[b-x4dii6p4kx] {
        border-color: #2f855a;
        box-shadow: 0 2px 8px rgba(56,161,105,0.15);
    }
    .supported-methods[b-x4dii6p4kx] {
        display: inline-flex;
        gap: 0.35rem;
        margin-left: 0.5rem;
        font-size: 0.75rem;
        color: #718096;
    }
    .supported-methods i[b-x4dii6p4kx] {
        font-size: 0.8rem;
    }
    .management-section .btn:disabled[b-x4dii6p4kx] {
        opacity: 0.35;
        cursor: not-allowed;
    }
    /* ── Multi-encounter slide panel ── */
    .slide-viewport[b-x4dii6p4kx] {
        position: relative;
        overflow: hidden;
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: height;
    }
    .slide-track[b-x4dii6p4kx] {
        display: flex;
        align-items: flex-start;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    .slide-panel[b-x4dii6p4kx] { flex: 0 0 100%; min-width: 0; }
    .slide-track.slide-0[b-x4dii6p4kx] { transform: translateX(0); }
    .slide-track.slide-1[b-x4dii6p4kx] { transform: translateX(-100%); }
    .slide-track.slide-2[b-x4dii6p4kx] { transform: translateX(-200%); }
    .slide-track.slide-3[b-x4dii6p4kx] { transform: translateX(-300%); }
    @media (prefers-reduced-motion: reduce) {
        .slide-viewport[b-x4dii6p4kx],
        .slide-track[b-x4dii6p4kx] { transition: none; }
    }

    .encounter-total-btn[b-x4dii6p4kx] {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; padding: 1rem 1.15rem;
        background: linear-gradient(135deg, #ebf4ff 0%, #dbeafe 100%);
        border: 2px solid #90cdf4; border-radius: 12px;
        cursor: pointer; transition: all 0.2s; margin-bottom: 1.25rem;
    }
    .encounter-total-btn:hover[b-x4dii6p4kx] { border-color: #004080; box-shadow: 0 2px 12px rgba(0,64,128,0.15); }
    .encounter-total-btn .left[b-x4dii6p4kx] { display: flex; align-items: center; gap: 0.75rem; }
    .encounter-total-btn .icon-circle[b-x4dii6p4kx] {
        width: 42px; height: 42px; border-radius: 50%; background: #004080; color: #fff;
        display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
    }
    .encounter-total-btn .label[b-x4dii6p4kx] { font-size: 0.8rem; color: #4a5568; font-weight: 500; }
    .encounter-total-btn .total-amount[b-x4dii6p4kx] { font-size: 1.35rem; font-weight: 700; color: #1a365d; }
    .encounter-total-btn .chevron[b-x4dii6p4kx] { color: #004080; font-size: 1.25rem; }
