html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Safety net: full-bleed sections/images use negative margins to escape their
       container's padding, and viewport-width units can be wider than the visible
       area when a scrollbar is present. Neither should ever cause horizontal scrolling. */
    overflow-x: hidden;
}

/* Keep the fixed HeartTrax app bar below the iOS status bar/notch. */
.hearttrax-app-bar {
    padding-top: max(8px, env(safe-area-inset-top)) !important;
    padding-left: env(safe-area-inset-left) !important;
    padding-right: env(safe-area-inset-right) !important;
    /* Ensure app bar height expands when safe-area-inset is present (iOS notch) */
    height: auto !important;
    min-height: 60px !important;
}

/* iOS touch target: 44px minimum per Apple HIG - button sizing */
.hearttrax-app-bar button,
.hearttrax-app-bar .mud-icon-button,
.hearttrax-app-bar .mud-button {
    min-width: 44px !important;
    min-height: 44px !important;
    width: auto !important;
    height: auto !important;
    padding: 10px !important;
}

/* Extra specific targeting for the hamburger menu button */
.hearttrax-app-bar .mud-icon-button-root {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
}

/* iPhone with notch - ensure app bar has enough space */
@supports (padding-top: max(0px)) {
    .hearttrax-app-bar {
        min-height: max(60px, calc(44px + env(safe-area-inset-top))) !important;
    }

    /* MudMainContent normally reserves only MudBlazor's standard app-bar height. The
       HeartTrax bar is taller by its safe-area padding, so reserve that same amount
       here or the first part of every page sits underneath the fixed bar on iOS. */
    .hearttrax-app-bar ~ .mud-main-content {
        padding-top: calc(var(--mud-appbar-height) + max(8px, env(safe-area-inset-top))) !important;
    }

    @media (max-width: 599.98px) and (orientation: portrait) {
        .hearttrax-app-bar ~ .mud-main-content {
            padding-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 8 + max(8px, env(safe-area-inset-top))) !important;
        }
    }

    @media (max-width: 599.98px) and (orientation: landscape) {
        .hearttrax-app-bar ~ .mud-main-content {
            padding-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 4 + max(8px, env(safe-area-inset-top))) !important;
        }
    }
}

/* Safe area bottom padding for fixed elements */
body {
    padding-bottom: env(safe-area-inset-bottom) !important;
}

/* Brand utilities (purple/blue healthcare palette, see HeartTraxTheme.cs) */
:root {
    --brand-gradient: linear-gradient(135deg, #E63950 0%, #7C3AED 55%, #2563EB 100%);
}

.brand-gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Onboarding wizard stepper (Setup.razor) - heart/dot/progress-line nav in place of
   MudStepper's default numbered-circle-and-title row. */
.hearttrax-stepper-nav {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.hearttrax-stepper-connector {
    height: 3px;
    border-radius: 2px;
}

.hearttrax-stepper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--mud-palette-lines-default);
}

.hearttrax-stepper-dot-completed {
    background-color: var(--mud-palette-primary);
}

/* Community Home header (CommunityHeader.razor) - cover image banner with the avatar
   overlapping the bottom edge. margin-bottom reserves just enough room below the banner for the
   avatar's overhang (see .hearttrax-community-cover-overlay's bottom offset) plus a small gap
   before the title - it used to reserve a full 64px against a 32px overhang, leaving an oversized
   32px+ gap before the title. */
.hearttrax-community-cover {
    height: 160px;
    margin-bottom: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hearttrax-community-cover-overlay {
    position: absolute;
    bottom: -24px;
    left: 24px;
}

.brand-gradient-bar {
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.brand-icon-duotone {
    --fa-primary-color: #7C3AED;
    --fa-secondary-color: #2563EB;
    --fa-secondary-opacity: 0.65;
}

.stat-card-shadow {
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.08);
}

.transplant-team-card {
    border-radius: 24px;
    background: var(--mud-palette-surface);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--mud-palette-lines-default);
}

.transplant-team-card-content {
    padding: 24px;
}

.transplant-team-card-header {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: 16px;
}

.transplant-team-card-row {
    display: grid;
    gap: 6px;
}

.transplant-team-card-actions {
    padding: 16px 24px 20px;
}

.transplant-number-card {
    border-radius: 20px;
    background: var(--mud-palette-surface);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--mud-palette-lines-default);
}

.transplant-number-card-content {
    padding: 20px;
}

.transplant-number-card-actions {
    padding: 16px 20px 20px;
}

@media (max-width: 959.98px) {
    .transplant-team-card,
    .transplant-number-card {
        border-radius: 18px;
    }
}

@media (max-width: 599.98px) {
    .transplant-team-card-content,
    .transplant-number-card-content {
        padding: 18px;
    }
}

.provider-access-paper {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 24px;
}

.provider-access-avatar {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.24);
}

.provider-access-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    border: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    background: var(--mud-palette-surface);
}

.provider-access-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px;
}

.provider-access-card-avatar {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.24);
}

.provider-access-meta {
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 16px;
}

.provider-access-card-button {
    margin-top: auto;
}

.transplant-team-card,
.transplant-number-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.transplant-team-card-content,
.transplant-number-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.transplant-team-card-actions,
.provider-access-card-actions {
    margin-top: auto;
}

@media (max-width: 599.98px) {
    .provider-access-card-content {
        padding: 20px;
    }
}

/* InputFile's generated element is not reliably covered by component-scoped CSS.
   Keep camera and programmatically opened import pickers out of the visible layout. */
.camera-input,
.lab-import-input {
    display: none !important;
}

/* Use half of MudBlazor's standard horizontal container gutter on phones. This
   applies consistently to every page, including pages with nested containers. */
@media (max-width: 599.98px) {
    .mud-main-content .mud-container {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Use compact dialog chrome on phones. All dialogs share MudBlazor's
       title/content/actions structure, so new dialogs inherit this automatically. */
    .mud-dialog .mud-dialog-title {
        padding: 16px 16px 8px;
    }

    .mud-dialog .mud-dialog-content {
        padding: 8px 12px 12px;
    }

    .mud-dialog .mud-dialog-actions {
        padding: 8px 12px 12px;
    }
}

/* Marketing landing page section rhythm - keep every section on the same vertical spacing scale */
.marketing-section {
    padding: 64px 20px;
    margin: 0 -16px;
}

.marketing-section-subtitle {
    max-width: 650px;
    margin: 0 auto;
}

/* Bootstrap-style text alignment utilities - not shipped by MudBlazor, but used throughout
   the marketing page markup, so define them here rather than on every element. */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resource-card-link:hover {
    transform: translateY(-2px);
}

/* Marketing page illustration images on phones should stay fully visible in-frame. */
@media (max-width: 599px) {
    .marketing-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block;
    }
}

/* HeartButton's shared .btnHeart class stacks to full width below 992px, which is the
   right call for stacked form actions but not for this side-by-side sign-in pair - keep
   them shrinking to fit in a row instead of stacking. */
.signin-cta-buttons .btnHeart {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0 !important;
}

@media (max-width: 420px) {
    .signin-cta-buttons .btnHeart {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.75rem;
    }
}

/* PageHeader's HeaderButtons row (see PageHeader.razor) - same idea as .signin-cta-buttons
   above: .btnHeart's full-width-below-992px default is right for stacked form actions, but a
   page header's action buttons should always stay single-line and right-aligned in one row. */
.page-header-buttons .btnHeart {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.vitals-history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.vitals-history-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 20px;
    overflow: hidden;
}

.vitals-history-card-inner {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 12px;
    align-items: stretch;
}

.vitals-date-tile {
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 114px;
    gap: 2px;
}

.vitals-date-month {
    color: #b782ff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.vitals-date-day {
    color: var(--mud-palette-text-primary);
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.vitals-date-dow {
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.vitals-card-content {
    min-width: 0;
}

.vitals-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vitals-am-pm-toggle {
    display: inline-flex;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
    border-radius: 999px;
    overflow: hidden;
}

.vitals-toggle-btn {
    border: 0;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    min-width: 42px;
    padding: 5px 10px;
    cursor: pointer;
}

.vitals-toggle-btn.active {
    background: linear-gradient(110deg, #7e5cff, #b969ff);
    color: #ffffff;
}

.vitals-card-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.vitals-card-actions .mud-icon-button {
    color: var(--mud-palette-action-default);
}

.vitals-card-actions .mud-icon-button:hover {
    background: var(--mud-palette-action-disabled-background);
}

.vitals-metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.vitals-metric-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
}

.vitals-metric-item .mud-icon-root {
    font-size: 0.95rem;
}

.vitals-metric-item span {
    min-width: 0;
    text-overflow: ellipsis;
    overflow: hidden;
}

.vitals-metric-weight {
    color: #2ab5ff;
}

.vitals-metric-temp {
    color: #ffb358;
}

.vitals-metric-pulse {
    color: #ff5f98;
}

.vitals-metric-bp.bp-normal {
    color: #57de85;
}

.vitals-metric-bp.bp-elevated {
    color: #ffd166;
}

.vitals-metric-bp.bp-high {
    color: #ff7a7a;
}

.vitals-metric-bp.bp-missing {
    color: var(--mud-palette-text-secondary);
}

.vitals-metric-exercise {
    color: #7d8aa8;
}

.vitals-metric-static {
    color: var(--mud-palette-text-disabled);
}

.vitals-overview-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 18px;
    padding: 14px;
}

.vitals-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--mud-palette-text-primary);
}

.vitals-overview-range {
    margin-top: 2px;
    color: var(--mud-palette-text-secondary);
}

.vitals-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--mud-palette-lines-default);
    border-left: 1px solid var(--mud-palette-lines-default);
}

.vitals-overview-stat {
    min-height: 124px;
    padding: 12px 10px;
    border-right: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vitals-stat-icon {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.vitals-overview-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.vitals-overview-value {
    color: var(--mud-palette-text-primary);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    margin-top: 6px;
}

.vitals-overview-value-bp {
    color: #53df8a;
}

.vitals-overview-unit {
    color: var(--mud-palette-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.vitals-exercise-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(38, 211, 123, 0.2);
    color: #41dc8d;
}

.health-weekly-compare-list {
    display: grid;
    gap: 12px;
}

.health-weekly-compare-card {
    padding: 12px;
}

.health-weekly-compare-header {
    margin-bottom: 10px;
}

.health-weekly-metric-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.health-weekly-metric-icon {
    font-size: 1rem;
}

.health-weekly-compare-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(108px, 1fr));
    gap: 8px;
}

.health-weekly-day-tile {
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
    border-radius: 12px;
    padding: 8px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.health-weekly-day-label {
    color: var(--mud-palette-text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.health-weekly-day-date {
    color: var(--mud-palette-text-secondary);
    font-size: 0.76rem;
}

.health-weekly-day-value {
    color: var(--mud-palette-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 6px;
}

.health-weekly-day-empty {
    opacity: 0.68;
}

.symptom-journal-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.symptom-journal-card {
    min-height: 100%;
}

.symptom-journal-entry-date {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 8px;
}

.symptom-journal-body {
    white-space: pre-wrap;
    color: var(--mud-palette-text-primary);
    line-height: 1.5;
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 10px;
}

.provider-notes-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.provider-note-card {
    min-height: 100%;
}

.provider-note-provider {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-primary);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.provider-note-date {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 8px;
}

.provider-note-body {
    white-space: pre-wrap;
    color: var(--mud-palette-text-primary);
    line-height: 1.5;
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 10px;
}

@media (max-width: 899.98px) {
    .vitals-history-card-inner {
        grid-template-columns: 80px 1fr;
        padding: 10px;
        gap: 10px;
    }

    .vitals-date-tile {
        min-height: 106px;
    }

    .vitals-date-day {
        font-size: 1.75rem;
    }

    .vitals-metric-item {
        font-size: 0.84rem;
        padding: 6px;
    }

    /* On phones, trade columns for rows so values never truncate. */
    .vitals-metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vitals-metric-item {
        white-space: normal;
    }

    .vitals-metric-item span {
        text-overflow: clip;
        overflow: visible;
    }

    .vitals-overview-value {
        font-size: 1.7rem;
    }

    .vitals-overview-stat {
        min-height: 112px;
    }

    .health-weekly-compare-days {
        display: flex;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    .health-weekly-day-tile {
        min-width: 108px;
        flex: 0 0 108px;
    }
}

@media (min-width: 1100px) {
    .vitals-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vitals-overview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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 #e50790;
}

.validation-message {
    color: #e50790;
}

.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."
    }

.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;
}

.cookie-policy-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1300;
    max-width: 900px;
    margin-inline: auto;
}

/* Daily Medication Log table cells - the header/action-button layout that used to live here
   was replaced with a plain MudGrid xs/sm/md breakpoint structure directly in MedicationLog.razor
   (more reliable than custom flex classes applied via a MudBlazor component's Class parameter).
   These three still apply to per-row table cells inside MudTable's mobile card layout. */
@media (max-width: 960px) {
    .med-log-dose-input {
        width: 100%;
        min-width: 0 !important;
    }

    .med-log-actions-cell {
        text-align: left !important;
    }

    .med-log-row-action {
        width: 100%;
    }
}

.med-log-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.med-log-card-actions {
    width: 100%;
}

.med-log-card-row {
    display: grid;
    gap: 8px;
}

.med-log-card-values {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.5fr;
    gap: 16px;
    align-items: start;
}

.med-log-card-value {
    min-width: 0;
}

.med-log-card-value .mud-text-caption {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.med-log-dose-input {
    width: 100%;
    min-width: 0 !important;
}

@media (max-width: 599.98px) {
    .med-log-card {
        border-radius: 18px;
    }

    .med-log-card-values {
        grid-template-columns: 1fr;
    }
}

/* Base */
.btnHeart {
   width: 295px !important;
}
.btnGrid{
    width: 100px !important;
}
.btnAuth {
    width: 295px !important;
    margin-right: 3px !important;
    margin-left: 2px !important;
}
 .HideSmall{

}
/* Extra Small (<576px) */
@media (max-width: 575.98px) {
     .HideSmall{
display: none;
}
    .btnHeart {
        width: 100% !important;
        /* margin-bottom: 15px !important; */
      
    }
     .btnAuth {
        width: 100% !important;
     
       /* margin-bottom: 15px !important; */
    }
      .btnGrid{
    width: 100% !important;
}

}

/* Small (576px–767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
     .HideSmall{
display: none;
}
    .btnHeart {
        width: 100% !important;
        /*margin-bottom: 15px !important;   */

    }
     .btnAuth {
        width: 100% !important;
        margin-left: 0px !important;;
     /*   margin-bottom: 15px !important; */    
    }
     .btnGrid{
    width: 100% !important;
}
}



/* Medium (768px–991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .HideSmall{
display: none;
}
    .btnHeart {
        width: 100% !important;
       /* margin-bottom: 15px !important;*/
      
    }
     .btnAuth {
        width: 100% !important;
       margin-left: 0px !important;;
       /* margin-bottom: 15px !important; */
    }
     .btnGrid{
    width: 100% !important;
}
}

/* Large (992px–1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .btnHeart {
       
    }
}

/* Extra Large (1200px+) */
@media (min-width: 1200px) {
    .btnHeart {
    }
}

.mud-main-content {
    padding-bottom: env(safe-area-inset-bottom);
}
