h1:focus {
    outline: none;
}

html,
body {
    -webkit-touch-callout: none;
}

img,
video,
canvas,
svg {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.admin-sessions-header {
    gap: 1rem;
}

.admin-sessions-filters {
    flex-wrap: wrap;
}

.admin-sessions-search {
    flex: 1 1 22rem;
    min-width: min(100%, 18rem);
}

.admin-sessions-status-filter {
    min-width: 13rem;
}

.admin-sessions-table {
    overflow-x: auto;
}

.admin-sessions-table .mud-table-cell {
    vertical-align: top;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.session-client-cell {
    max-width: 19rem;
}

@media (max-width: 600px) {
    .admin-sessions-header {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .admin-sessions-header > .mud-stack {
        width: 100%;
        justify-content: space-between;
    }

    .admin-sessions-status-filter {
        width: 100%;
    }
}

/* School-day and sports-day illustrations frame the gallery loader. */
.mud-ex-app-loader-loading-container.photolinx-app-loader {
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(247, 251, 255, 0.95) 0 12%, transparent 52%),
        radial-gradient(ellipse at 5% 15%, rgba(117, 177, 235, 0.28), transparent 52%),
        radial-gradient(ellipse at 95% 85%, rgba(111, 191, 166, 0.26), transparent 52%),
        linear-gradient(135deg, #e6f0fc 0%, #eef5fa 48%, #e3f2ed 100%);
}

.mud-ex-app-loader-loading-container.photolinx-app-loader::before,
.mud-ex-app-loader-loading-container.photolinx-app-loader::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: clamp(170px, 29vw, 390px);
    height: min(78vh, 650px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.mud-ex-app-loader-loading-container.photolinx-app-loader::before {
    top: 5%;
    left: 4%;
    background-image: url("Images/loader-school.svg");
}

.mud-ex-app-loader-loading-container.photolinx-app-loader::after {
    right: 4%;
    bottom: 5%;
    background-image: url("Images/loader-sports.svg");
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .photolinx-app-loader-progress {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #244a78;
    box-shadow:
        0 0 0 12px rgba(72, 136, 218, 0.10),
        0 24px 48px rgba(36, 74, 120, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .photolinx-app-loader-circle {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 0 7px rgba(103, 178, 255, 0.68));
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .mud-ex-app-loader-circle-bg {
    stroke: rgba(255, 255, 255, 0.22);
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .photolinx-app-loader-logo {
    z-index: 1;
    width: 128px;
    max-width: 128px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .photolinx-app-loader-status {
    z-index: 3;
    margin-top: 274px;
    color: #355d8f;
    font-family: Nunito, Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .photolinx-app-loader-name {
    z-index: 3;
    margin-top: 350px;
    color: #244a78;
    font-family: Nunito, Helvetica, Arial, sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.mud-ex-app-loader-loading-container.photolinx-app-loader .photolinx-app-loader-name span:last-child {
    color: #617184;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.mud-ex-app-loader-loading-container.photolinx-app-loader.pixelated-out {
    animation: photolinx-gallery-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes photolinx-gallery-reveal {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.08);
    }
}

@media (max-width: 600px) {
    .mud-ex-app-loader-loading-container.photolinx-app-loader::before,
    .mud-ex-app-loader-loading-container.photolinx-app-loader::after {
        width: 160px;
        height: 260px;
        opacity: 0.8;
    }

    .mud-ex-app-loader-loading-container.photolinx-app-loader::before {
        top: -28px;
        left: -25px;
        transform: rotate(-12deg);
    }

    .mud-ex-app-loader-loading-container.photolinx-app-loader::after {
        right: -25px;
        bottom: -28px;
        transform: rotate(12deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mud-ex-app-loader-loading-container.photolinx-app-loader.pixelated-out {
        animation: none;
        opacity: 0;
        pointer-events: none;
    }

    .mud-ex-app-loader-loading-container.photolinx-app-loader .mud-ex-app-loader-circle-glowing {
        animation: none;
    }
}

.login-shell {
    min-height: calc(100vh - 96px);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.user-photo-order-page {
    padding-bottom: 2rem;
}

.user-photo-order-heading {
    padding: 0.25rem 0;
}

.user-photo-step-content {
    padding: 1rem 0 0.5rem;
}

.user-photo-step-actions {
    width: 100%;
    padding-top: 1.25rem;
}

.user-photo-child-card {
    min-height: 108px;
    border: 1px solid #d9e5f3;
    border-radius: 14px;
    background: #ffffff;
}

.user-photo-empty-scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-style: dashed;
    border-color: #9dbce0;
    background: #f7fbff;
}

.user-photo-child-toggle-group {
    align-self: flex-start;
    flex-wrap: wrap;
}

.user-photo-child-toggle-group .mud-badge-root {
    display: inline-flex;
}

.user-photo-product-panel-hidden {
    display: none;
}

.user-photo-selection-image {
    /* Essential sizing lives on the image so stale/missing CSS cannot cause overflow. */
    border-radius: 10px;
}

.user-photo-cart {
    border-top: 4px solid #4888da;
}

.user-photo-cart-line {
    padding: 0.45rem 0;
    border-top: 1px solid #edf1f5;
}

.user-photo-cart-line:first-of-type {
    border-top: 0;
}

@media (max-width: 599px) {
    .user-photo-stepper .mud-stepper-content {
        margin-inline-start: 0 !important;
        padding: 0 !important;
        border-inline-start: 0 !important;
    }

    .user-photo-stepper.mud-stepper > .mud-stepper-nav > button.mud-step {
        padding: 0 !important;
    }

    .user-photo-stepper.mud-stepper > .mud-stepper-nav > .mud-stepper-nav-connector {
        margin-inline-start: 0 !important;
    }

    .user-photo-order-page .photo-order-options {
        padding: 1rem 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .user-photo-order-page .photo-order-product-card {
        padding: 12px !important;
    }

    .user-photo-step-actions .mud-button-root {
        min-width: 0;
    }
}

.login-panel {
    width: min(100%, 420px);
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 2rem;
    background: #ffffff;
}

.login-logo {
    margin-inline: auto;
}

.nav-logo-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-dashboard-page {
    max-width: 1100px;
    margin-inline: auto;
}

.home-dashboard-grid {
    align-items: stretch;
}

.home-dashboard-card {
    min-height: 220px;
    padding: 28px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(18, 38, 63, 0.12);
}

.home-dashboard-card-icon {
    font-size: 42px;
}

.home-dashboard-card-school {
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
    border-color: rgba(72, 136, 218, 0.24);
}

.home-dashboard-card-event {
    background: linear-gradient(180deg, #f2fbf7 0%, #ffffff 100%);
    border-color: rgba(42, 140, 95, 0.24);
}

.home-dashboard-card-kindergarten {
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
    border-color: rgba(205, 145, 50, 0.24);
}

.home-dashboard-card-disabled {
    cursor: default;
}

.home-dashboard-card-disabled:hover {
    transform: none;
    box-shadow: none;
}

.login-subtitle {
    color: #5f6f82;
    margin-top: -0.5rem;
}

.login-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.login-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #5f6f82;
}

.login-step strong,
.login-step small {
    display: block;
}

.login-step strong {
    color: #243447;
    font-size: 0.92rem;
}

.login-step small {
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.login-step-badge {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e4edf8;
    color: #355d8f;
    font-weight: 700;
}

.login-step-active {
    border-color: #4888da;
    background: #eef5ff;
    box-shadow: 0 0 0 1px rgba(72, 136, 218, 0.08);
}

.login-step-active .login-step-badge,
.login-step-complete .login-step-badge {
    background: #4888da;
    color: #ffffff;
}

.login-step-complete {
    background: #f4f8fc;
}

.event-cart-badge {
    display: inline-flex;
    align-items: center;
}

.event-cart-appbar {
    gap: 10px;
}

.event-cart-appbar-copy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.event-cart-appbar-copy span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.support-ticket-form {
    border-top: 4px solid #4888da;
}

.support-ticket-optional {
    color: #6b7785;
    font-weight: 400;
}

.support-ticket-file-input {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
}

.payment-support-admin-page {
    max-width: 1500px;
    margin-inline: auto;
}

.payment-support-ticket-list {
    min-height: 460px;
}

.payment-support-filter {
    width: 130px;
}

.payment-support-ticket-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.65rem;
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 0.55rem;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.payment-support-ticket-row:hover,
.payment-support-ticket-row-selected {
    border-color: #4888da;
    background: #f4f8ff;
}

.payment-support-ticket-row-title {
    font-weight: 700;
    color: #244a78;
}

.payment-support-ticket-row-name,
.payment-support-ticket-row-date {
    overflow: hidden;
    color: #617184;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-support-ticket-row-date {
    text-align: right;
}

.support-analysis-card {
    background: linear-gradient(135deg, #f3f8ff 0%, #fff 70%);
}

.support-evidence-table-wrap {
    overflow-x: auto;
}

.support-evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.support-evidence-table th,
.support-evidence-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #e3eaf2;
    text-align: left;
    vertical-align: top;
}

.support-evidence-table th {
    color: #536477;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.event-cart-badge.mud-badge-root {
    padding-top: 6px;
}

.event-cart-badge.mud-badge-root .mud-badge,
.event-cart-badge.mud-badge-root .mud-badge-content,
.event-cart-badge.mud-badge-root .mud-badge.mud-badge-top.mud-badge-right.mud-badge-overlap {
    top: 8px !important;
    right: 2px !important;
}

.order-payment-toggle {
    width: 240px;
    margin-inline: auto;
}

.order-payment-toggle .mud-toggle-item {
    white-space: nowrap;
}

.order-payment-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 10px;
    color: var(--mud-palette-info-text);
    background-color: var(--mud-palette-info);
    font-size: 0.75rem;
    line-height: 1;
    vertical-align: middle;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field {
    display: grid;
    gap: 0.4rem;
    color: #243447;
    font-size: 0.875rem;
    font-weight: 600;
}

.login-field input {
    min-height: 3.25rem;
    width: 100%;
    border: 1px solid #b8c5d6;
    border-radius: 4px;
    padding: 0.75rem 0.9rem;
    color: #182536;
    background: #fff;
    font: inherit;
    font-weight: 400;
}

.login-field input:focus {
    border-color: #4888da;
    box-shadow: 0 0 0 3px rgba(72, 136, 218, 0.18);
    outline: none;
}

.login-step-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
}

.login-step-summary-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #5f6f82;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-step-summary-value {
    color: #243447;
    overflow-wrap: anywhere;
}

.login-helper-text {
    margin-top: -0.4rem;
    color: #5f6f82;
}

.login-action-row {
    align-items: stretch;
}

.login-action-row .mud-button-root {
    flex: 1 1 0;
}

input,
textarea,
select,
.mud-input,
.mud-input-root,
.mud-input-slot,
.mud-input-control,
.mud-input-adornment,
.mud-picker,
.mud-picker input,
.mud-picker .mud-input,
.mud-picker .mud-input-slot,
.mud-select,
.mud-select-input,
.mud-popover .mud-list-item {
    cursor: pointer !important;
}

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

.event-files-page {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.event-files-header {
    gap: 16px;
}

.event-files-grid {
    flex: 1 1 auto;
    align-items: stretch;
}

.event-files-grid-item {
    display: flex;
}

.event-files-panel {
    min-height: 620px;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-events-controls {
    flex: 0 0 auto;
}

.event-events-title-row {
    margin-bottom: 8px;
}

.event-events-controls .mud-input-control {
    margin-top: 0;
    margin-bottom: 8px;
}

.event-events-divider {
    margin: 0 0 12px;
}

.event-files-panel-body {
    flex: 1 1 auto;
    min-height: 0;
}

.event-events-scroll,
.event-items-scroll {
    min-height: 0;
    overflow: auto;
}

.event-files-table-scroll {
    min-height: 0;
    overflow: auto;
}

.event-upload-progress {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 12px;
}

.event-upload-progress-copy {
    margin-bottom: 4px;
}

.event-events-panel .event-events-scroll {
    flex: 1 1 auto;
}

.event-files-selected {
    background: rgba(72, 136, 218, 0.12);
    border-radius: 6px;
}

.event-folder-header {
    gap: 12px;
}

.event-folder-actions {
    max-width: 100%;
    margin-left: auto;
}

.event-folder-input {
    flex: 0 1 180px;
    min-width: 0;
    width: 180px;
}

.event-inline-rename-input {
    flex: 0 1 220px;
    min-width: 160px;
    width: 220px;
}

.event-file-breadcrumbs {
    padding: 0;
    flex-wrap: wrap;
    row-gap: 6px;
    max-width: 100%;
}

.event-file-breadcrumb-button {
    min-width: 0;
    padding: 0 4px;
    text-transform: none;
    border-radius: 999px;
    opacity: 1;
    max-width: 100%;
    white-space: normal;
}

.event-file-breadcrumb-button .mud-button-label {
    white-space: normal;
    text-align: left;
    line-height: 1.2;
}

.event-file-breadcrumb-button-active {
    background: rgba(72, 136, 218, 0.16);
    font-weight: 600;
}

.event-file-breadcrumb-button-inactive {
    opacity: 0.58;
}

.event-file-table .mud-table-cell {
    vertical-align: middle;
}

.event-file-table {
    margin-top: 0;
}

.upload-review-grid-scroll {
    max-height: 640px;
    overflow: auto;
}

.upload-review-grade-group {
    background: rgba(72, 136, 218, 0.08);
    font-weight: 600;
}

.grouped-package-preview {
    background: rgba(0, 0, 0, 0.02);
}

.grouped-package-row {
    background: #fff;
}

.upload-review-school-name {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
}

.upload-review-school-name-dense {
    font-size: 1rem !important;
}

.upload-review-school-name-compact {
    font-size: 0.8rem !important;
}

.event-file-name-button {
    max-width: 100%;
    justify-content: flex-start;
    text-transform: none;
}

.event-file-name-button .mud-button-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-events-page {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-events-heading {
    margin-bottom: 0;
}

.client-event-search {
    max-width: 720px;
    display: block;
}

.client-event-search,
.client-event-search.mud-input-control {
    margin-top: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.client-event-search .mud-input-control-helper-container {
    display: none;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.client-event-results {
    margin-top: 0;
}

.client-event-card {
    height: 100%;
    min-height: 132px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.client-event-card .mud-card-content {
    padding: 12px 16px 8px;
}

.client-event-card:hover {
    transform: translateY(-2px);
    border-color: rgba(72, 136, 218, 0.55);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.client-event-card-icon {
    margin-bottom: 16px;
}

.client-event-card-title,
.event-cart-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-event-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px;
}

.event-viewer-page {
    min-height: 0;
}

.event-cart-page {
    min-height: calc(100vh - 120px);
}

.event-viewer-header,
.event-cart-header {
    gap: 16px;
}

.event-viewer-back {
    margin-left: -8px;
    text-transform: none;
}

.event-viewer-price-summary {
    margin-top: 10px;
}

.event-sport-card {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.event-sport-card:hover {
    background: #f1f6fd;
    border-color: rgba(72, 136, 218, 0.5);
}

.event-sport-card-selected {
    background: rgba(72, 136, 218, 0.12);
    border-color: rgba(72, 136, 218, 0.65);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.07);
}

.event-sport-card-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.event-sport-card .mud-typography {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.uploaded-picture-school-copy {
    min-width: 0;
}

.uploaded-picture-school-copy .mud-typography {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-age-chipset {
    gap: 8px;
}

.event-viewer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.event-viewer-photo-card {
    overflow: hidden;
    border-radius: 8px;
}

.event-viewer-photo-card-in-cart {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 1px rgba(214, 69, 69, 0.14);
}

.event-viewer-photo-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.event-viewer-photo-button {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    display: block;
    background: #f7fafc;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.event-viewer-photo-button-in-cart {
    background: #fff2f2;
}

.event-viewer-photo-skeleton {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 180ms ease, visibility 180ms ease;
    pointer-events: none;
}

.event-viewer-photo-skeleton-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.event-viewer-photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 180ms ease;
}

.event-viewer-photo-image-loaded {
    opacity: 1;
}

.event-viewer-photo-actions {
    min-height: 56px;
    padding: 8px;
}

.event-viewer-load-more-sentinel {
    width: 100%;
    height: 1px;
}

.analytics-drilldown-card {
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.analytics-drilldown-card:hover {
    transform: translateY(-2px);
}

.uploaded-picture-card-copy {
    min-height: 76px;
    padding: 10px 12px;
}

.uploaded-picture-card-copy .mud-typography {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-preview-modal {
    width: min(97vw, 1600px);
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border-radius: 18px;
    overflow: hidden;
}

.event-preview-modal .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
}

.event-preview-modal .mud-dialog-actions {
    flex: 0 0 auto;
    padding: 10px 0 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #f8fafc);
}

.event-preview-dialog {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    display: flex;
    overflow: hidden;
    padding: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.event-preview-dialog-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.event-preview-dialog-arrow-left {
    left: 14px;
}

.event-preview-dialog-arrow-right {
    right: 14px;
}

.event-preview-modal .mud-dialog-title {
    width: 100%;
    text-align: center;
    padding-right: 48px;
    padding-left: 48px;
}

.event-preview-dialog-frame {
    position: relative;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-height: min(72dvh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-preview-dialog-frame-with-side-controls {
    padding-inline: 70px;
}

.event-preview-dialog-mobile-actions {
    display: none;
}

.event-preview-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.event-preview-dialog-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    justify-items: center;
}

.event-preview-dialog-cart {
    justify-self: center;
}

.event-cart-card {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.event-cart-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #f7fafc;
}

.event-cart-summary {
    position: sticky;
    top: 112px;
    border-radius: 8px;
}

.photo-order-options {
    padding: 1.5rem;
    border-radius: 8px;
}

.user-photos-header {
    overflow-wrap: anywhere;
}

.selected-student-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
}

.photo-qr-scanner-drawer {
    border-radius: 20px 20px 0 0;
}

.photo-qr-scanner-content {
    width: min(100%, 640px);
    margin: 0 auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.photo-qr-scanner-preview {
    position: relative;
    width: 100%;
    max-height: 48dvh;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.photo-qr-scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-qr-scanner-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(58vw, 260px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.public-topbar-title {
    font-weight: 600;
}

.photo-order-options-mobile {
    display: none;
}

.nursery-photo-picker-mobile {
    display: none;
}

.nursery-photo-grid-mobile {
    display: none !important;
}

.nursery-desktop-photo-card {
    height: 100%;
}

.nursery-desktop-photo-card-content {
    display: flex;
    flex-direction: column;
}

.nursery-desktop-photo-preview,
.nursery-desktop-photo-services {
    min-width: 0;
}

.nursery-desktop-photo-preview {
    display: flex;
    justify-content: center;
}

.nursery-desktop-photo-service-image {
    display: block;
    width: min(100%, 420px);
    height: auto;
    max-height: min(620px, 70vh);
    object-fit: contain;
    border-radius: 12px;
}

.nursery-mobile-photo-panel-title {
    min-width: 0;
}

.nursery-mobile-photo-panel-action {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.nursery-mobile-photo-card {
    overflow: hidden;
}

.nursery-mobile-photo-card + .nursery-mobile-photo-card {
    margin-top: 16px;
}

.nursery-mobile-photo-expansion {
    margin: 0 -8px -8px;
}

.nursery-mobile-photo-chip-list {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 16px 0;
}

.nursery-mobile-photo-chip-list .mud-chip {
    flex: 0 0 auto;
}

.nursery-mobile-photo-service-image {
    display: block;
    width: 100%;
    max-height: min(360px, 50dvh);
    object-fit: contain;
    border-radius: 12px;
}

.nursery-photo-service-option {
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nursery-photo-service-main-row {
    min-width: 0;
    width: 100%;
}

.nursery-photo-quantity-row {
    width: 100%;
    justify-content: flex-start;
}

.nursery-photo-sample-button {
    flex: 0 0 auto;
    margin: 0 !important;
    align-self: flex-start;
    white-space: nowrap;
}

.nursery-photo-quantity-decrease {
    margin-left: 0 !important;
}

.nursery-photo-service-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nursery-photo-quantity {
    width: 64px !important;
    flex: 0 0 64px !important;
}

.nursery-photo-service-price {
    flex: 0 0 auto;
    margin-top: 0;
    text-align: right;
    white-space: nowrap;
}

.nursery-photo-service-option:last-child {
    border-bottom: 0;
}

.nursery-service-card-copy {
    flex: 1 1 240px;
    min-width: 0;
}

.nursery-service-card-copy .mud-typography {
    overflow-wrap: anywhere;
}

.nursery-service-card-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.nursery-service-quantity {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 50%;
    font-size: 0.875rem;
    line-height: 1;
}

.nursery-photo-service-option .mud-input-control {
    margin: 0;
}

.nursery-photo-service-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: inherit;
    cursor: pointer;
}

.nursery-photo-service-trigger:focus-visible .mud-card {
    outline: 3px solid var(--mud-palette-primary);
    outline-offset: 3px;
}

.nursery-photo-service-table tr.selected td {
    background: var(--mud-palette-primary-hover);
}

.nursery-photo-picker-dialog .mud-dialog-content {
    padding-top: 8px;
}

.nursery-photo-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.nursery-photo-picker-image-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    background: var(--mud-palette-background-grey);
}

.nursery-photo-picker-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nursery-photo-picker-image-button {
    padding: 0;
    cursor: pointer;
}

.nursery-photo-picker-image-button:focus-visible {
    outline: 3px solid var(--mud-palette-primary);
    outline-offset: 3px;
}

.nursery-required-photo-slots {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nursery-package-photo-slots {
    margin-top: 16px;
}

.nursery-required-photo-slot {
    min-height: 120px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    color: var(--mud-palette-text-primary);
    background: var(--mud-palette-background);
    cursor: pointer;
}

.nursery-required-photo-slot.active {
    border: 3px solid var(--mud-palette-primary);
    padding: 6px;
}

.nursery-required-photo-slot.selected {
    border-color: #76b567;
    background: #f3faef;
}

.nursery-required-photo-slot:focus-visible {
    outline: none;
    border-color: var(--mud-palette-primary);
}

.nursery-required-photo-slot-label {
    font-weight: 700;
}

.nursery-required-photo-slot-empty {
    margin: auto 0;
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.nursery-required-photo-slot img {
    width: 100%;
    flex: 1;
    min-height: 72px;
    object-fit: contain;
}

.nursery-photo-picker-navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nursery-photo-picker-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.nursery-photo-picker-indexes {
    width: min(100%, 340px);
    display: grid;
    grid-template-columns: repeat(5, minmax(38px, 1fr));
    gap: 12px;
    justify-items: center;
}

.nursery-photo-index {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 50%;
    color: var(--mud-palette-text-primary);
    background: var(--mud-palette-background);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.nursery-photo-index:hover,
.nursery-photo-index:focus-visible {
    border-color: var(--mud-palette-primary);
    outline: none;
}

.nursery-photo-index.selected {
    border-color: #76b567;
    color: #245c24;
    background: #d9edd5;
}

.nursery-photo-index.current {
    border: 3px solid var(--mud-palette-primary);
    color: var(--mud-palette-primary);
    background: var(--mud-palette-background);
    font-weight: 700;
}

.nursery-photo-index.current.selected {
    border: 3px solid var(--mud-palette-primary);
    color: #245c24;
    background: #d9edd5;
    font-weight: 700;
}

.photo-order-product-card {
    padding: 14px;
    border-radius: 8px;
}

.photo-order-product-card + .photo-order-product-card {
    margin-top: 12px;
}

.photo-order-product-header,
.photo-order-mobile-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.photo-order-product-header .mud-typography:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.photo-order-product-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.photo-order-product-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.photo-order-product-title .mud-typography {
    min-width: 0;
    overflow-wrap: anywhere;
}

.photo-order-mobile-options {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.photo-order-mobile-option {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 12px;
}

.photo-order-mobile-option .mud-input-control {
    margin: 0;
}

.photo-order-quantity {
    width: 96px;
}

.photo-order-mobile-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    align-items: center;
}

.service-sample-modal {
    width: min(94vw, 900px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
}

.service-sample-modal .mud-dialog-content {
    min-height: 0;
    overflow: hidden;
    padding: 12px 16px;
}

.service-sample-dialog {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7fafc;
    border-radius: 8px;
}

.service-sample-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(78dvh, calc(100dvh - 120px));
    object-fit: contain;
}

@media (max-width: 960px) {
    .event-files-page,
    .event-files-grid,
    .event-files-grid-item,
    .event-files-panel {
        min-height: auto;
        height: auto;
    }

    .event-files-panel {
        overflow: visible;
    }

    .event-files-panel-body,
    .event-events-scroll,
    .event-items-scroll,
    .event-files-table-scroll {
        min-height: auto;
        overflow: visible;
    }

    .event-folder-input {
        flex: 1 1 auto;
        width: auto;
    }

    .event-folder-actions {
        width: 100%;
        margin-left: 0;
    }

    .event-viewer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-viewer-header,
    .event-cart-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

}

@media (max-width: 720px) {
    .event-preview-dialog-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-preview-dialog {
        height: auto;
        max-height: none;
        padding: 4px;
        border-radius: 0;
    }

    .event-preview-dialog-frame {
        max-height: min(56dvh, 460px);
        margin-bottom: 54px;
    }

    .event-preview-dialog-arrow {
        display: none;
    }

    .event-preview-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0 !important;
    }

    .event-preview-modal .mud-dialog-content {
        padding: 4px 4px 0 !important;
    }

    .event-preview-modal .mud-dialog-actions {
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }

    .event-preview-dialog-frame {
        padding: 0 4px;
    }

    .event-preview-dialog-mobile-actions {
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 8px 10px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(10px);
    }

    .event-preview-dialog-mobile-actions .mud-stack {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .scan-simulate-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .scan-simulate-subtitle {
        line-height: 1.4 !important;
        text-align: center !important;
    }

    .login-panel {
        padding: 1.5rem;
    }

    .login-steps {
        grid-template-columns: 1fr;
    }

    .login-action-row {
        flex-direction: column;
    }

    .login-step-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-photos-header {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .photo-order-options-table {
        display: none;
    }

    .photo-order-options-mobile {
        display: block;
    }

    .nursery-photo-picker-mobile {
        display: block;
    }

    .nursery-service-option {
        width: 100%;
        min-width: 0 !important;
    }

    .nursery-photo-grid-desktop {
        display: none !important;
    }

    .nursery-photo-grid-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }

    .nursery-photo-picker-actions {
        grid-template-columns: 1fr;
    }

    .service-sample-dialog {
        overflow: auto;
    }

    .event-sport-filter-grid {
        align-items: center;
    }

    .event-sport-filter-grid.mud-grid {
        margin: -4px;
        width: calc(100% + 8px);
    }

    .event-sport-filter-item.mud-grid-item {
        flex: 0 0 auto;
        max-width: none;
        padding: 4px;
        width: auto;
    }

    .event-viewer-page .event-sport-card {
        min-height: 40px;
        display: inline-grid;
        grid-template-columns: auto minmax(0, auto);
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        box-shadow: none;
    }

    .event-viewer-page .event-sport-card-selected {
        box-shadow: none;
    }

    .event-viewer-page .event-sport-card-icon {
        width: 20px;
        height: 20px;
    }

.event-viewer-page .event-sport-card .mud-typography {
    font-size: 0.875rem;
    line-height: 1.2;
}

    .event-viewer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .client-event-card {
        min-height: 124px;
    }

}

/* Keep card and paper surfaces softly rounded even when component styles or
   the generated MudBlazor theme styles provide a more specific radius. */
.mud-card:not(.mud-card-square),
.mud-paper:not(.mud-paper-square) {
    border-radius: 25px !important;
}

.mud-card-square,
.mud-paper-square {
    border-radius: 0 !important;
}
/* Client-facing service messages sit directly below the app bar, outside page content. */
.client-banner-messages {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 1rem 0;
}

.client-banner-message {
    width: 100%;
    border-radius: 6px;
}

.client-banner-separator {
    white-space: pre;
}
