/* /Components/Cleaner/CleanerJobDone.razor.rz.scp.css */
.room-flow--done[b-52fbrzfesl] { max-width: 720px; margin: 0 auto; }
.done-stats[b-52fbrzfesl] { display: grid; gap: 0.5rem; margin: 1rem 0; }
.done-stats > div[b-52fbrzfesl] { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.25); }
.done-stats dt[b-52fbrzfesl] { font-weight: 600; }
.done-stats dd[b-52fbrzfesl] { margin: 0; text-align: right; }
.done-next[b-52fbrzfesl] {
    display: grid;
    gap: 0.25rem;
    min-height: 48px;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}
.done-next__label[b-52fbrzfesl] { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
/* /Components/Cleaner/CleanerJobFlow.razor.rz.scp.css */
/* Room-by-room flow (#26). Phone first (390x844); desktop keeps one centred column. */
.room-flow[b-9k2p6b7edi] {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    --room-flow-bottom: 0px;
    /* Room for the sticky bar and the floating Report button so neither covers the last row. */
    padding-bottom: calc(var(--room-flow-bottom) + 10rem + env(safe-area-inset-bottom, 0px));
}

.room-flow__head[b-9k2p6b7edi] { margin-bottom: 1rem; }
.room-flow__property[b-9k2p6b7edi] { margin: 0 0 0.25rem; }
.room-flow__finish-by[b-9k2p6b7edi], .room-flow__overall[b-9k2p6b7edi] { margin: 0.25rem 0; }
.room-flow__overall[b-9k2p6b7edi] { font-weight: 600; font-size: 1.1rem; }

.room-list[b-9k2p6b7edi], .room-tasks[b-9k2p6b7edi], .finish-review[b-9k2p6b7edi] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.room-row[b-9k2p6b7edi], .finish-review__row[b-9k2p6b7edi] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.finish-review__row[b-9k2p6b7edi] { min-height: 44px; }
.room-row__name[b-9k2p6b7edi] { flex: 1; font-weight: 600; }
.room-row__count[b-9k2p6b7edi] { font-variant-numeric: tabular-nums; }
.room-row--done[b-9k2p6b7edi] { border-color: rgba(16, 185, 129, 0.6); }
.room-row--done .room-row__icon[b-9k2p6b7edi] { color: #10b981; }

.room-flow__back[b-9k2p6b7edi], .room-flow__my-jobs[b-9k2p6b7edi] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem;
}

.room-ref[b-9k2p6b7edi] { margin: 0.5rem 0 1rem; }
.room-ref figcaption[b-9k2p6b7edi] { font-weight: 600; margin-bottom: 0.25rem; }
.room-ref__strip[b-9k2p6b7edi] { display: flex; gap: 0.5rem; overflow-x: auto; }
.room-ref__strip img[b-9k2p6b7edi] { height: 160px; border-radius: 8px; object-fit: cover; }

.room-task[b-9k2p6b7edi] {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.25rem 0.5rem 0.5rem;
}

.room-task__form[b-9k2p6b7edi] { margin: 0; }

.room-task__row[b-9k2p6b7edi] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.5rem;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.room-task__row:disabled[b-9k2p6b7edi] { cursor: not-allowed; opacity: 0.7; }
.room-task__tick[b-9k2p6b7edi] { font-size: 1.5rem; line-height: 1; }
.room-task__title[b-9k2p6b7edi] { flex: 1; min-width: 8rem; }
.room-task--done .room-task__title[b-9k2p6b7edi] { text-decoration: line-through; opacity: 0.8; }
.room-task--busy[b-9k2p6b7edi] { opacity: 0.7; }
.room-task__note[b-9k2p6b7edi] { margin: 0 0.5rem; }

.room-photo[b-9k2p6b7edi] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.room-photo__add[b-9k2p6b7edi] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.room-flow__done[b-9k2p6b7edi] { margin-top: 1rem; text-align: center; }

.room-flow__bar[b-9k2p6b7edi] {
    position: fixed;
    left: 0;
    right: 0;
    /* Tier 2 (signed in): sit above the Cleaning bottom bar shown below 768px. */
    bottom: var(--room-flow-bottom);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface, #0f172a);
    border-top: 1px solid var(--color-border, rgba(148, 163, 184, 0.35));
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.room-flow__finish-form[b-9k2p6b7edi] { width: 100%; max-width: 720px; margin: 0; }

.room-flow__bar-btn[b-9k2p6b7edi] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    min-height: 48px;
}

.room-flow__reason[b-9k2p6b7edi] { margin: 0; }

.room-flow__report[b-9k2p6b7edi] {
    position: fixed;
    right: max(1rem, calc((100vw - 720px) / 2));
    bottom: calc(var(--room-flow-bottom) + 5.5rem + env(safe-area-inset-bottom, 0px));
    min-width: 56px;
    min-height: 56px;
    padding: 0 1rem;
    border-radius: 28px;
    border: 0;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 21;
}

.room-flow__bar-row[b-9k2p6b7edi] {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 720px;
}
.room-flow__bar-row .room-flow__bar-btn[b-9k2p6b7edi] { flex: 1 1 auto; width: auto; }
.room-flow__report--in-bar[b-9k2p6b7edi] {
    position: static;
    flex: 0 0 auto;
    min-height: 48px;
    box-shadow: none;
}

.room-flow__offline[b-9k2p6b7edi] {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

/* Offline (js/cleaner-offline.js): Finish waits for the connection; ticks and photos go to the #29 queue. */
[data-mt-offline="true"] [data-mt-needs-online][b-9k2p6b7edi], [data-mt-circuit-down="true"] [data-mt-needs-online][b-9k2p6b7edi] { pointer-events: none; opacity: 0.5; }

/* Tier 2 below 768px: the Cleaning bottom bar is fixed at the bottom; the sticky bar and Report sit above it. */
@media (max-width: 767.98px) {
    .site-layout:has(.bottom-nav) .room-flow[b-9k2p6b7edi] { --room-flow-bottom: var(--bottom-nav-height); }
    .site-layout:has(.bottom-nav) .room-flow__bar[b-9k2p6b7edi] { padding-bottom: 0.75rem; }
}

/* #39 guided arrival photos: one room at a time, large one-handed targets. */
.before-walk[b-9k2p6b7edi] {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, #d8dde3);
    border-radius: 12px;
    background: var(--surface-subtle, #f7f9fb);
}
.before-walk__title[b-9k2p6b7edi] { margin: 0 0 0.35rem; font-size: 1.05rem; }
.before-walk__room[b-9k2p6b7edi] { margin: 0 0 0.2rem; font-size: 1.05rem; }
.before-walk__hint[b-9k2p6b7edi] { margin: 0 0 0.6rem; }
.before-walk__actions[b-9k2p6b7edi] { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.before-walk__take[b-9k2p6b7edi], .before-walk__skip[b-9k2p6b7edi] {
    min-height: 48px;
    flex: 1 1 8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.before-walk__close[b-9k2p6b7edi] { margin-top: 0.5rem; min-height: 44px; }
.before-walk__done[b-9k2p6b7edi] { margin: 0; }
.before-walk__list[b-9k2p6b7edi] { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.95rem; }
/* /Components/Cleaner/JobPhotoPanel.razor.rz.scp.css */
.job-photo-panel[b-6zjbcm7b23] {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border, rgba(148, 163, 184, 0.35));
    border-radius: 8px;
}
.job-photo-panel__header[b-6zjbcm7b23] { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.job-photo-panel__grid[b-6zjbcm7b23] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
}
.job-photo-panel__grid a[b-6zjbcm7b23] { display: block; }
.job-photo-panel__grid img[b-6zjbcm7b23] { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.job-photo-panel__grid .photo-date[b-6zjbcm7b23] { font-size: 0.75rem; }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Error UI chrome lives in wwwroot/app.css so CleanerPortalLayout shares the same hide-by-default rules. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-6p2kfaq9cd],
.components-reconnect-repeated-attempt-visible[b-6p2kfaq9cd],
.components-reconnect-failed-visible[b-6p2kfaq9cd],
.components-pause-visible[b-6p2kfaq9cd],
.components-resume-failed-visible[b-6p2kfaq9cd],
.components-rejoining-animation[b-6p2kfaq9cd] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-retrying[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-failed[b-6p2kfaq9cd],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-6p2kfaq9cd] {
    display: block;
}


#components-reconnect-modal[b-6p2kfaq9cd] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-6p2kfaq9cd 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-6p2kfaq9cd 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-6p2kfaq9cd 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-6p2kfaq9cd]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-6p2kfaq9cd 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-6p2kfaq9cd {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-6p2kfaq9cd {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-6p2kfaq9cd {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-6p2kfaq9cd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-6p2kfaq9cd] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-6p2kfaq9cd] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-6p2kfaq9cd] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-6p2kfaq9cd] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-6p2kfaq9cd] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-6p2kfaq9cd] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-6p2kfaq9cd 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-6p2kfaq9cd] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-6p2kfaq9cd {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/CleanerPortal.razor.rz.scp.css */
/* The portal's photo and Report overlays sit above the room flow's sticky bar and the Cleaning bottom bar. */
.modal-overlay[b-py99oebaqk] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
}

/* Report (#26): on a phone the existing issue form fills the screen, with Submit reachable above the keyboard. */
@media (max-width: 640px) {
    .issue-modal[b-py99oebaqk] {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        z-index: 1001;
        box-sizing: border-box;
    }

    .issue-modal .modal-actions[b-py99oebaqk] {
        position: sticky;
        bottom: 0;
        padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: inherit;
    }
}

/* #28 prep card: "Change time" opens the same slot sheet as confirming. */
.cleaner-change-slot[b-py99oebaqk] { margin: 0.5rem 0; }
.cleaner-change-slot__toggle[b-py99oebaqk] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}
.cleaner-change-slot__toggle[b-py99oebaqk]::-webkit-details-marker { display: none; }
.cleaner-change-slot[open] .cleaner-change-slot__toggle[b-py99oebaqk] { margin-bottom: 0.5rem; }
