:root {
    --gio-bg: #ffffff;
    --gio-bg-soft: #f8fafc;
    --gio-bg-gradient: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
    --gio-surface: rgba(255, 255, 255, 0.95);
    --gio-surface-strong: #ffffff;
    --gio-border: #e2e8f0;
    --gio-text: #1a202c;
    --gio-text-muted: #64748b;
    --gio-primary: #4ea3ff;
    --gio-primary-strong: #2f87ee;
    --gio-link: #2f87ee;
    --gio-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --gio-input-bg: #ffffff;
    --gio-input-border: #cbd5e1;
    --gio-input-placeholder: #94a3b8;
    --gio-auth-layout-gradient: radial-gradient(circle at 18% 0%, rgba(76, 123, 255, 0.12) 0%, rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, #f0f6ff 0%, var(--gio-bg) 100%);
    --gio-auth-panel-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gio-nav-active-bg: rgba(78, 163, 255, 0.12);
    --gio-nav-active-text: #2f87ee;
    --gio-shell-border: rgba(15, 23, 42, 0.08);
    --gio-calendar-overlay-bg: rgba(0, 0, 0, 0.35);
    --gio-calendar-overlay-bg-hover: rgba(0, 0, 0, 0.65);
    --gio-calendar-overlay-text: #ffffff;
    --gio-workstation-lock-gradient:
        radial-gradient(ellipse 85% 65% at 18% 8%, rgba(96, 165, 250, 0.5) 0%, transparent 58%),
        radial-gradient(ellipse 75% 55% at 82% 92%, rgba(52, 211, 153, 0.38) 0%, transparent 52%),
        radial-gradient(ellipse 60% 45% at 72% 18%, rgba(167, 139, 250, 0.32) 0%, transparent 48%),
        linear-gradient(160deg, #dbeafe 0%, #e0f2fe 32%, #ecfdf5 68%, #eff6ff 100%);
    --gio-workstation-lock-text: #1e293b;
    --gio-workstation-lock-text-muted: rgba(30, 41, 59, 0.72);
    --gio-workstation-lock-account-bg: rgba(255, 255, 255, 0.42);
    --gio-workstation-lock-account-bg-hover: rgba(255, 255, 255, 0.62);
    --gio-workstation-lock-account-border: rgba(255, 255, 255, 0.55);
    --gio-workstation-lock-account-name: #1e293b;
    --gio-workstation-lock-pin-bg: rgba(255, 255, 255, 0.35);
}

.mud-theme-dark,
.stork-theme-dark {
    --gio-bg: #030a2f;
    --gio-bg-soft: #071445;
    --gio-bg-gradient: linear-gradient(180deg, #041142 0%, #050d2f 100%);
    --gio-surface: rgba(5, 15, 51, 0.82);
    --gio-surface-strong: #081237;
    --gio-border: rgba(161, 187, 255, 0.26);
    --gio-text: #f3f7ff;
    --gio-text-muted: #95a4c9;
    --gio-primary: #4ea3ff;
    --gio-primary-strong: #2f87ee;
    --gio-link: #8bc0ff;
    --gio-shadow: 0 30px 70px rgba(0, 5, 28, 0.58);
    --gio-input-bg: rgba(5, 14, 43, 0.72);
    --gio-input-border: rgba(138, 171, 255, 0.28);
    --gio-input-placeholder: #687aab;
    --gio-auth-layout-gradient: radial-gradient(circle at 18% 0%, rgba(76, 123, 255, 0.18) 0%, rgba(3, 10, 47, 0) 35%),
        linear-gradient(180deg, #031042 0%, var(--gio-bg) 100%);
    --gio-auth-panel-gradient: linear-gradient(180deg, rgba(10, 22, 61, 0.95) 0%, rgba(5, 13, 44, 0.96) 100%);
    --gio-nav-active-bg: rgba(78, 163, 255, 0.16);
    --gio-nav-active-text: #b8d8ff;
    --gio-shell-border: rgba(130, 166, 255, 0.2);
    --gio-calendar-overlay-bg: rgba(0, 0, 0, 0.4);
    --gio-calendar-overlay-bg-hover: rgba(0, 0, 0, 0.72);
    --gio-calendar-overlay-text: #ffffff;
    --gio-workstation-lock-gradient:
        radial-gradient(ellipse 85% 65% at 14% 12%, rgba(59, 130, 246, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 75% 55% at 88% 88%, rgba(20, 184, 166, 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 58% 48% at 62% 28%, rgba(99, 102, 241, 0.34) 0%, transparent 48%),
        linear-gradient(165deg, #030a2f 0%, #071445 42%, #041042 100%);
    --gio-workstation-lock-text: #f3f7ff;
    --gio-workstation-lock-text-muted: rgba(243, 247, 255, 0.72);
    --gio-workstation-lock-account-bg: rgba(255, 255, 255, 0.08);
    --gio-workstation-lock-account-bg-hover: rgba(255, 255, 255, 0.16);
    --gio-workstation-lock-account-border: rgba(255, 255, 255, 0.16);
    --gio-workstation-lock-account-name: #f3f7ff;
    --gio-workstation-lock-pin-bg: rgba(0, 0, 0, 0.28);
}

.stork-auth-layout {
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gio-auth-layout-gradient);
}

.stork-auth-container {
    width: min(820px, 100%);
}

.stork-auth-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    border: 1px solid var(--gio-border);
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--gio-surface);
    box-shadow: var(--gio-shadow);
}

.stork-auth-media-wrap {
    display: none;
}

.stork-auth-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.stork-auth-panel {
    padding: 1.5rem 1.25rem;
    color: var(--gio-text);
    background: var(--gio-auth-panel-gradient);
}

@media (min-width: 901px) {
    .stork-auth-card {
        grid-template-columns: minmax(240px, 300px) minmax(320px, 1fr);
    }

    .stork-auth-media-wrap {
        display: flex;
        align-items: stretch;
        justify-content: center;
        min-height: 100%;
        background: linear-gradient(180deg, #eef4fb 0%, #e2ebf6 100%);
        overflow: hidden;
    }

    .stork-auth-panel {
        padding: 1.75rem 2rem;
    }
}

.stork-auth-title {
    margin: 0;
    color: var(--gio-text);
    font-size: 1.55rem;
    font-weight: 700;
}

.stork-auth-subtitle {
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
    color: var(--gio-text-muted);
    font-size: 0.9rem;
}

.stork-auth-panel a {
    color: var(--gio-link);
}

.stork-auth-field {
    margin-bottom: 0.9rem;
}

.stork-auth-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gio-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.stork-auth-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    color: var(--gio-text);
    border: 1px solid var(--gio-input-border);
    border-radius: 0.5rem;
    background: var(--gio-input-bg);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.stork-auth-input::placeholder {
    color: var(--gio-input-placeholder);
}

.stork-auth-input:focus {
    outline: none;
    border-color: var(--gio-primary);
    box-shadow: 0 0 0 2px rgba(78, 163, 255, 0.2);
}

.stork-auth-validation {
    display: block;
    margin-top: 0.3rem;
    color: #ff8594;
    font-size: 0.75rem;
}

.stork-auth-submit {
    margin-top: 0.5rem;
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.65rem 0.95rem;
    color: #eff6ff;
    background: linear-gradient(180deg, #5aaeff 0%, var(--gio-primary-strong) 100%);
    font-weight: 700;
    cursor: pointer;
    transition: filter 120ms ease;
}

.stork-auth-submit:hover {
    filter: brightness(1.06);
}

a.stork-auth-submit {
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.stork-auth-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gio-text-muted);
}

.stork-auth-links .btn-link {
    color: var(--gio-nav-active-text);
    margin-top: 0.3rem;
}

.stork-auth-alert {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 78, 106, 0.14);
    border: 1px solid rgba(255, 130, 148, 0.4);
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 500;
}

.stork-theme-dark .stork-auth-alert {
    color: #ffd9df;
}

.stork-dashboard-shell {
    min-height: 100vh;
    background: var(--gio-bg-gradient, var(--mud-palette-background));
    color: var(--mud-palette-text-primary);
}

.stork-dashboard-shell .mud-main-content {
    background: transparent;
}

.stork-calendar-page {
    padding: 0 !important;
}

@media (min-width: 960px) {
    .stork-calendar-page {
        padding: 16px !important;
    }
}

.stork-dashboard-shell .mud-appbar {
    border-bottom: 1px solid var(--gio-shell-border);
    backdrop-filter: blur(6px);
}

.stork-dashboard-shell .mud-drawer {
    border-right: 1px solid var(--gio-shell-border);
}

.stork-dashboard-shell .mud-nav-link {
    border-radius: 0.5rem;
    margin: 0.15rem 0.5rem;
}

.stork-dashboard-shell .mud-nav-link.active {
    background: var(--gio-nav-active-bg);
    color: var(--gio-nav-active-text);
}

.calendar-item-overlay {
    background-color: var(--gio-calendar-overlay-bg);
    color: var(--gio-calendar-overlay-text);
}

.stork-workstation-lock {
    position: fixed;
    inset: 0;
    z-index: calc(var(--mud-zindex-appbar, 1100) + 300);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    color: var(--gio-workstation-lock-text);
}

.stork-workstation-lock__backdrop {
    position: absolute;
    inset: 0;
    background: var(--gio-workstation-lock-gradient);
}

.stork-workstation-lock__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
}

.stork-workstation-lock__brand {
    align-self: center;
    margin-top: clamp(0.25rem, 1.5vh, 0.75rem);
}

.stork-workstation-lock__logo {
    display: block;
    width: auto;
    height: clamp(1.75rem, 4vw, 2.35rem);
    opacity: 0.95;
}

.stork-workstation-lock__clock {
    margin-top: clamp(0.75rem, 2vh, 1.25rem);
    text-align: center;
}

.stork-workstation-lock__date {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--gio-workstation-lock-text-muted);
}

.stork-workstation-lock__time {
    margin: 0.35rem 0 0;
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--gio-workstation-lock-text);
}

.stork-workstation-lock__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(920px, 100%);
    margin: clamp(1rem, 4vh, 2.5rem) 0;
    text-align: center;
}

.stork-workstation-lock__station {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gio-workstation-lock-text-muted);
}

.stork-workstation-lock__title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 500;
    color: var(--gio-workstation-lock-text);
}

.stork-workstation-lock__spinner {
    margin-top: 1rem;
}

.stork-workstation-lock__message {
    max-width: 34rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gio-workstation-lock-text-muted);
}

.stork-workstation-lock__accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    width: min(640px, 100%);
}

.stork-workstation-lock__account {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 0.85rem;
    border: 1px solid var(--gio-workstation-lock-account-border);
    border-radius: 0.85rem;
    background: var(--gio-workstation-lock-account-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.stork-workstation-lock__account:hover,
.stork-workstation-lock__account:focus-visible {
    background: var(--gio-workstation-lock-account-bg-hover);
    transform: translateY(-2px);
    outline: none;
}

.stork-workstation-lock__account-name {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--gio-workstation-lock-account-name);
}

.stork-workstation-lock__signin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(420px, 100%);
}

.stork-workstation-lock__signin-name {
    margin: 0;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 500;
    color: var(--gio-workstation-lock-text);
}

.stork-workstation-lock__pin-form {
    width: min(340px, 100%);
}

.stork-workstation-lock__pin-field {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    border-radius: 0.35rem;
    background: var(--gio-workstation-lock-pin-bg);
    border-bottom: 2px solid var(--gio-primary);
}

.stork-workstation-lock__pin-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--gio-workstation-lock-text);
    font-size: 1.05rem;
    letter-spacing: 0.45rem;
    text-align: center;
    outline: none;
}

.stork-workstation-lock__pin-input::placeholder {
    letter-spacing: normal;
    color: var(--gio-workstation-lock-text-muted);
}

.stork-workstation-lock__pin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--gio-workstation-lock-text);
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.stork-workstation-lock__pin-submit:disabled {
    opacity: 0.35;
    cursor: default;
}

.stork-workstation-lock__pin-submit:not(:disabled):hover,
.stork-workstation-lock__pin-submit:not(:disabled):focus-visible {
    background: var(--gio-workstation-lock-account-bg-hover);
    outline: none;
}

.stork-workstation-lock__pin-error {
    margin: 0;
    font-size: 0.92rem;
    color: #fca5a5;
}

.stork-workstation-lock__back {
    margin-top: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--gio-workstation-lock-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.stork-workstation-lock__back:hover,
.stork-workstation-lock__back:focus-visible {
    color: var(--gio-workstation-lock-text);
    background: var(--gio-workstation-lock-account-bg);
    outline: none;
}

.stork-workstation-lock__switcher {
    position: absolute;
    left: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(4.5rem, 10vh, 6rem);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: min(260px, 42vw);
}

.stork-workstation-lock__switcher-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    background: transparent;
    color: var(--gio-workstation-lock-text);
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.stork-workstation-lock__switcher-item.is-selected,
.stork-workstation-lock__switcher-item:hover,
.stork-workstation-lock__switcher-item:focus-visible {
    background: var(--gio-workstation-lock-account-bg-hover);
    border-color: var(--gio-workstation-lock-account-border);
    outline: none;
}

.stork-workstation-lock__footer {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.stork-workstation-lock__logout {
    border: 0;
    background: transparent;
    color: var(--gio-workstation-lock-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    border-radius: 0.45rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.stork-workstation-lock__logout:hover,
.stork-workstation-lock__logout:focus-visible {
    color: var(--gio-workstation-lock-text);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.stork-workstation-lock--light {
    --gio-workstation-lock-gradient:
        radial-gradient(ellipse 85% 65% at 18% 8%, rgba(96, 165, 250, 0.5) 0%, transparent 58%),
        radial-gradient(ellipse 75% 55% at 82% 92%, rgba(52, 211, 153, 0.38) 0%, transparent 52%),
        radial-gradient(ellipse 60% 45% at 72% 18%, rgba(167, 139, 250, 0.32) 0%, transparent 48%),
        linear-gradient(160deg, #dbeafe 0%, #e0f2fe 32%, #ecfdf5 68%, #eff6ff 100%);
    --gio-workstation-lock-text: #1e293b;
    --gio-workstation-lock-text-muted: rgba(30, 41, 59, 0.72);
    --gio-workstation-lock-account-bg: rgba(255, 255, 255, 0.42);
    --gio-workstation-lock-account-bg-hover: rgba(255, 255, 255, 0.62);
    --gio-workstation-lock-account-border: rgba(255, 255, 255, 0.55);
    --gio-workstation-lock-account-name: #1e293b;
    --gio-workstation-lock-pin-bg: rgba(255, 255, 255, 0.35);
}

.stork-workstation-lock--dark {
    --gio-workstation-lock-gradient:
        radial-gradient(ellipse 85% 65% at 14% 12%, rgba(59, 130, 246, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 75% 55% at 88% 88%, rgba(20, 184, 166, 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 58% 48% at 62% 28%, rgba(99, 102, 241, 0.34) 0%, transparent 48%),
        linear-gradient(165deg, #030a2f 0%, #071445 42%, #041042 100%);
    --gio-workstation-lock-text: #f3f7ff;
    --gio-workstation-lock-text-muted: rgba(243, 247, 255, 0.72);
    --gio-workstation-lock-account-bg: rgba(255, 255, 255, 0.08);
    --gio-workstation-lock-account-bg-hover: rgba(255, 255, 255, 0.16);
    --gio-workstation-lock-account-border: rgba(255, 255, 255, 0.16);
    --gio-workstation-lock-account-name: #f3f7ff;
    --gio-workstation-lock-pin-bg: rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
    .stork-workstation-lock__accounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stork-workstation-lock__switcher {
        position: static;
        max-width: 100%;
        margin-top: 1rem;
    }

    .stork-workstation-lock__footer {
        justify-content: center;
    }
}

/* My Visits – days with appointments in MudDatePicker (popover renders outside component tree) */
.mud-day.my-visits-day-has-appointments:not(.mud-hidden) {
    position: relative;
}

.mud-day.my-visits-day-has-appointments:not(.mud-hidden):not(.mud-selected) {
    font-weight: 700 !important;
    color: var(--mud-palette-primary) !important;
}

.mud-day.my-visits-day-has-appointments.mud-selected:not(.mud-hidden) {
    font-weight: 700 !important;
    color: var(--mud-palette-primary-text) !important;
}

.mud-day.my-visits-day-has-appointments:not(.mud-hidden)::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--mud-palette-primary);
}

.mud-day.my-visits-day-has-appointments.mud-selected:not(.mud-hidden)::after {
    background-color: var(--mud-palette-primary-text);
}

/* Shift repeat – multi-date picker in ShiftFormDialog */
.mud-day.shift-repeat-day-selected:not(.mud-hidden) {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary-text) !important;
    font-weight: 700 !important;
    border-radius: 50%;
}

.shift-repeat-date-picker.mud-picker-static {
    width: 100%;
}

.my-visits-calendar {
    overflow: hidden;
}

.my-visits-calendar .my-visits-date-picker.mud-picker-static {
    width: 100%;
    min-width: unset;
}

.supply-submit-slot {
    border: 2px dashed var(--gio-border);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.supply-submit-slot:hover {
    border-color: var(--gio-primary);
    background: var(--gio-nav-active-bg);
}

.supply-column {
    background: var(--gio-bg-soft);
    border-radius: 12px;
}

.supply-need-card {
    border-radius: 10px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.supply-need-card__actions {
    border-top: 1px solid var(--gio-border, rgba(0, 0, 0, 0.12));
    background: var(--gio-bg-soft);
    border-radius: 0 0 10px 10px;
}

.supply-archive-panel {
    margin-top: 1rem;
}

.supply-archive-item {
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.supply-board {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.supply-board .supply-board-column {
    flex: 1 1 200px;
    min-width: 200px;
}

@media (min-width: 1280px) {
    .supply-board .supply-board-column {
        flex: 1 1 0;
        min-width: 220px;
    }
}

.supply-need-detail-drawer.mud-drawer--bottom {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
}

.supply-need-detail-drawer.mud-drawer--right {
    max-width: min(480px, 100vw);
}

.supply-need-detail-drawer__scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.supply-need-detail-drawer__body {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.supply-need-detail-drawer__handle {
    flex-shrink: 0;
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: var(--gio-border);
}

.appointment-notes-drawer.mud-drawer-pos-bottom {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    z-index: 1450;
}

.appointment-notes-drawer.mud-drawer-pos-right {
    max-width: min(480px, 100vw);
    z-index: 1450;
}

.appointment-notes-drawer__scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.communications-drawer.mud-drawer-pos-bottom {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    z-index: 1450;
}

.communications-drawer.mud-drawer-pos-right {
    max-width: min(480px, 100vw);
    z-index: 1450;
}

.communications-drawer__scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Dashboard widgets */
.dashboard-grid {
    align-items: flex-start;
}

.dashboard-widget-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    background: var(--gio-surface-strong);
    border: 1px solid var(--gio-border);
    border-radius: 12px;
    box-shadow: var(--gio-shadow);
}

.dashboard-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.dashboard-widget-title {
    font-weight: 600;
    line-height: 1.3;
}

.dashboard-widget-more {
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: normal;
}

.dashboard-widget-loader {
    flex-shrink: 0;
}

.dashboard-widget-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.dashboard-widget-body--scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.15rem;
    margin-right: -0.15rem;
}

.dashboard-widget-body--scroll::-webkit-scrollbar {
    width: 6px;
}

.dashboard-widget-body--scroll::-webkit-scrollbar-thumb {
    background: var(--gio-border);
    border-radius: 999px;
}

.dashboard-widget-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.dashboard-widget-empty__icon {
    color: var(--gio-text-muted);
    opacity: 0.65;
}

.dashboard-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--gio-border);
    transition: background-color 0.15s ease, border-radius 0.15s ease;
}

.dashboard-feed-item:last-child {
    border-bottom: none;
}

.dashboard-feed-item:hover {
    background: var(--gio-bg-soft);
    border-radius: 8px;
}

.dashboard-feed-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-top: 0.1rem;
}

.dashboard-feed-item__icon--primary {
    background: rgba(78, 163, 255, 0.14);
    color: var(--gio-primary-strong);
}

.dashboard-feed-item__icon--info {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.dashboard-feed-item__icon--secondary {
    background: rgba(100, 116, 139, 0.14);
    color: var(--gio-text-muted);
}

.dashboard-feed-item__icon--success {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.dashboard-feed-item__icon--warning {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.dashboard-feed-item__icon--error {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.dashboard-feed-item__icon--tertiary {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

.dashboard-feed-item__icon--default {
    background: var(--gio-bg-soft);
    color: var(--gio-text-muted);
}

.dashboard-feed-item__content {
    flex: 1;
    min-width: 0;
}

.dashboard-feed-item__meta {
    margin-bottom: 0.15rem;
}

.dashboard-feed-item__title {
    font-weight: 500;
    line-height: 1.4;
}

.dashboard-feed-item__description {
    margin-top: 0.15rem;
    line-height: 1.4;
}

.dashboard-feed-item__trailing {
    margin-top: 0.35rem;
}

.dashboard-widget-stat-card {
    background: var(--gio-bg-soft);
    border: 1px solid var(--gio-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.dashboard-feed-item--with-trailing {
    align-items: center;
}

.dashboard-feed-item--with-trailing .dashboard-feed-item__trailing {
    flex-shrink: 0;
    margin-top: 0;
}

.mud-theme-dark .dashboard-feed-item__icon--info,
.stork-theme-dark .dashboard-feed-item__icon--info {
    color: #93c5fd;
}

.mud-theme-dark .dashboard-feed-item__icon--success,
.stork-theme-dark .dashboard-feed-item__icon--success {
    color: #86efac;
}

.mud-theme-dark .dashboard-feed-item__icon--warning,
.stork-theme-dark .dashboard-feed-item__icon--warning {
    color: #fcd34d;
}

.mud-theme-dark .dashboard-feed-item__icon--error,
.stork-theme-dark .dashboard-feed-item__icon--error {
    color: #fca5a5;
}

.mud-theme-dark .dashboard-feed-item__icon--tertiary,
.stork-theme-dark .dashboard-feed-item__icon--tertiary {
    color: #c4b5fd;
}

.mud-table .activity-row-failure {
    background-color: rgba(239, 68, 68, 0.08);
}

.mud-theme-dark .mud-table .activity-row-failure,
.stork-theme-dark .mud-table .activity-row-failure {
    background-color: rgba(239, 68, 68, 0.15);
}

