/* /Pages/Rounds.razor.rz.scp.css */
/* Phone-first. Everything is sized for a thumb on a ward round: tap targets at least 44px, no
   hover-only affordances, one column, and nothing that needs a pinch to read. */

[b-ccbo0he1tx] * { box-sizing: border-box; }

.m-top[b-ccbo0he1tx] {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0b1418;
    color: #fff;
    padding: 0.75rem 1rem 0.6rem;
}

.m-top__row[b-ccbo0he1tx] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.m-top__title[b-ccbo0he1tx] { font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.m-top__sub[b-ccbo0he1tx] { font-size: 0.82rem; opacity: 0.75; margin-top: 0.15rem; }
.m-top__who[b-ccbo0he1tx] { font-size: 0.75rem; opacity: 0.6; margin-top: 0.35rem; }

.m-top__count[b-ccbo0he1tx] {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
}

.m-top__count strong[b-ccbo0he1tx] { font-size: 1.05rem; }

/* Tabs — four fixed targets, always reachable. */
.m-tabs[b-ccbo0he1tx] {
    display: flex;
    position: sticky;
    top: 0;
    background: #14232a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-tab[b-ccbo0he1tx] {
    flex: 1 1 0;
    min-height: 46px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0.4rem 0.2rem;
}

.m-tab--on[b-ccbo0he1tx] {
    color: #fff;
    box-shadow: inset 0 -3px 0 #3aa9c9;
    font-weight: 600;
}

.m-banner[b-ccbo0he1tx] {
    margin: 0.6rem 0.75rem 0;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #e8f4ea;
    border: 1px solid #b9dcc0;
}

.m-banner--bad[b-ccbo0he1tx] { background: #fdf0e6; border-color: #f0c9a8; }

.m-empty[b-ccbo0he1tx] { padding: 2rem 1.25rem; text-align: center; color: #57676d; }
.m-empty p[b-ccbo0he1tx] { margin: 0 0 0.6rem; }

.m-sort[b-ccbo0he1tx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem 0.2rem;
    font-size: 0.8rem;
    color: #57676d;
}

.m-sort select[b-ccbo0he1tx], .m-qual select[b-ccbo0he1tx] {
    flex: 1 1 auto;
    min-height: 40px;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #cfd9dd;
    border-radius: 8px;
    background: #fff;
}

/* One patient. */
.m-card[b-ccbo0he1tx] {
    margin: 0.6rem 0.75rem;
    padding: 0.7rem 0.75rem 0.6rem;
    border: 1px solid #dce4e7;
    border-left: 4px solid #dce4e7;
    border-radius: 10px;
    background: #fff;
}

.m-card--done[b-ccbo0he1tx] { border-left-color: #3f9e5a; background: #fbfdfb; }

.m-card__head[b-ccbo0he1tx] { display: flex; justify-content: space-between; gap: 0.5rem; }
.m-card__id[b-ccbo0he1tx] { flex: 1 1 auto; min-width: 0; }

.m-card__fix[b-ccbo0he1tx] {
    width: 100%;
    min-height: 42px;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #e0b483;
    border-radius: 8px;
    background: #fffaf4;
}
.m-card__name[b-ccbo0he1tx] { font-size: 1.02rem; font-weight: 600; line-height: 1.2; }

.m-card__meta[b-ccbo0he1tx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.6rem;
    font-size: 0.76rem;
    color: #64757b;
    margin-top: 0.2rem;
}

.m-src[b-ccbo0he1tx] { font-style: italic; opacity: 0.75; }
.m-warn[b-ccbo0he1tx] { color: #a4601c; }

.m-nomatch[b-ccbo0he1tx] {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #8a5a1d;
    background: #fdf6ec;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
}

.m-x[b-ccbo0he1tx] {
    border: 0;
    background: transparent;
    color: #95a5ab;
    font-size: 1.5rem;
    line-height: 1;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
}

/* The codes. Big, and showing what each becomes, so a wrong tap is caught at the bedside. */
.m-codes[b-ccbo0he1tx] { display: flex; gap: 0.45rem; margin-top: 0.6rem; }
.m-codes--secondary[b-ccbo0he1tx] { flex-wrap: wrap; margin-top: 0.45rem; }

.m-code[b-ccbo0he1tx] {
    flex: 1 1 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    border: 1px solid #cfd9dd;
    border-radius: 10px;
    background: #f7fafb;
    font-family: inherit;
    cursor: pointer;
    padding: 0.3rem 0.2rem;
}

.m-code--sm[b-ccbo0he1tx] { flex: 0 0 calc(25% - 0.35rem); min-height: 46px; }
.m-code--more[b-ccbo0he1tx] { flex: 0 0 22%; font-size: 0.8rem; color: #4a5c63; }
.m-code__n[b-ccbo0he1tx] { font-size: 1.15rem; font-weight: 700; color: #16323c; line-height: 1; }
.m-code__cpt[b-ccbo0he1tx] { font-size: 0.66rem; color: #7b8b91; letter-spacing: 0.02em; }

.m-code--on[b-ccbo0he1tx] {
    background: #16323c;
    border-color: #16323c;
}

.m-code--on .m-code__n[b-ccbo0he1tx], .m-code--on .m-code__cpt[b-ccbo0he1tx] { color: #fff; }

.m-qual[b-ccbo0he1tx] { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.8rem; }

/* Diagnoses. */
.m-dx[b-ccbo0he1tx] { margin-top: 0.6rem; border-top: 1px dashed #e3eaec; padding-top: 0.5rem; }

.m-dx__head[b-ccbo0he1tx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #64757b;
}

.m-link[b-ccbo0he1tx] {
    border: 0;
    background: transparent;
    color: #1d7f9c;
    font-family: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    min-height: 36px;
}

.m-chips[b-ccbo0he1tx] { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }

.m-chip[b-ccbo0he1tx] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    background: #eef5f7;
    border: 1px solid #d5e3e8;
    border-radius: 999px;
    padding: 0.2rem 0.3rem 0.2rem 0.55rem;
    max-width: 100%;
}

.m-chip strong[b-ccbo0he1tx] { color: #16323c; }

.m-chip button[b-ccbo0he1tx] {
    border: 0;
    background: transparent;
    color: #7b8b91;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    min-width: 26px;
}

/* Panels: scan, add, review. */
.m-panel[b-ccbo0he1tx] { padding: 0.9rem 0.9rem 2rem; }
.m-panel h2[b-ccbo0he1tx] { font-size: 1.05rem; margin: 0 0 0.5rem; }
.m-hint[b-ccbo0he1tx] { font-size: 0.82rem; color: #64757b; margin: 0 0 0.7rem; line-height: 1.45; }

.m-file[b-ccbo0he1tx] {
    display: block;
    width: 100%;
    padding: 1rem 0.9rem;
    border: 2px dashed #bfd0d6;
    border-radius: 10px;
    background: #f7fafb;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
}

.m-file__cta[b-ccbo0he1tx] { display: block; font-size: 1rem; font-weight: 600; color: #16323c; }
.m-file__sub[b-ccbo0he1tx] { display: block; font-size: 0.78rem; color: #7b8b91; margin-top: 0.15rem; }

/* ::deep, because InputFile's own <input> is outside this component's CSS scope. */
.m-file[b-ccbo0he1tx]  input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
}

.m-field[b-ccbo0he1tx] { margin-bottom: 0.6rem; }
.m-field label[b-ccbo0he1tx] { display: block; font-size: 0.78rem; color: #64757b; margin-bottom: 0.2rem; }

.m-field input[b-ccbo0he1tx], .m-dxsearch[b-ccbo0he1tx] {
    width: 100%;
    min-height: 46px;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #cfd9dd;
    border-radius: 8px;
}

.m-btn[b-ccbo0he1tx] {
    min-height: 48px;
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid #16323c;
    border-radius: 10px;
    background: #fff;
    color: #16323c;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.m-btn--primary[b-ccbo0he1tx] { background: #16323c; color: #fff; }
.m-btn--sm[b-ccbo0he1tx] { width: auto; min-height: 38px; padding: 0 0.8rem; font-size: 0.82rem; margin: 0; }
.m-btn:disabled[b-ccbo0he1tx] { opacity: 0.45; cursor: default; }

.m-busy[b-ccbo0he1tx] { padding: 0.8rem 0; color: #64757b; font-size: 0.88rem; }

.m-scanres[b-ccbo0he1tx] {
    margin-top: 0.9rem;
    padding: 0.75rem;
    border: 1px solid #dce4e7;
    border-radius: 10px;
    font-size: 0.88rem;
    background: #fff;
}

.m-results[b-ccbo0he1tx] { list-style: none; margin: 0.8rem 0 0; padding: 0; }

.m-results li[b-ccbo0he1tx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef2f4;
    font-size: 0.9rem;
}

.m-results em[b-ccbo0he1tx] { color: #7b8b91; font-size: 0.78rem; font-style: normal; }

.m-table[b-ccbo0he1tx] { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.m-table th[b-ccbo0he1tx] { text-align: left; color: #64757b; font-weight: 600; padding: 0.35rem 0.3rem; }
.m-table td[b-ccbo0he1tx] { padding: 0.4rem 0.3rem; border-top: 1px solid #eef2f4; vertical-align: top; }
.m-mono[b-ccbo0he1tx] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; }

.m-summary[b-ccbo0he1tx] { margin-top: 0.9rem; font-size: 0.88rem; }
.m-summary > div[b-ccbo0he1tx] { margin-bottom: 0.2rem; }

/* Diagnosis picker — a bottom sheet, so the list stays under the thumb. */
.m-sheet[b-ccbo0he1tx] {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 24, 0.5);
    display: flex;
    align-items: flex-end;
    z-index: 20;
}

.m-sheet__body[b-ccbo0he1tx] {
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 0.8rem 0.9rem 1.5rem;
}

.m-sheet__head[b-ccbo0he1tx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.m-sheet__label[b-ccbo0he1tx] {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a9aa0;
    margin: 0.8rem 0 0.3rem;
}

.m-dxlist[b-ccbo0he1tx] { list-style: none; margin: 0; padding: 0; }

.m-dxlist li[b-ccbo0he1tx] {
    padding: 0.65rem 0.4rem;
    border-bottom: 1px solid #eef2f4;
    font-size: 0.88rem;
    cursor: pointer;
    line-height: 1.35;
}

.m-dxlist li strong[b-ccbo0he1tx] {
    display: inline-block;
    min-width: 4.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #16323c;
}

/* The answer to a billing question: one figure, then where it came from. */
.m-answer[b-ccbo0he1tx] {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid #dce4e7;
    border-radius: 10px;
    background: #fff;
}

.m-answer__figure[b-ccbo0he1tx] { font-size: 2rem; font-weight: 700; color: #16323c; line-height: 1.1; }
.m-answer__label[b-ccbo0he1tx] { font-size: 0.85rem; color: #64757b; margin-top: 0.1rem; }

.m-answer__from[b-ccbo0he1tx] {
    font-size: 0.76rem;
    color: #7b8b91;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e3eaec;
}

/* Several amounts side by side, because one report can answer "how much" more than one way. */
.m-figures[b-ccbo0he1tx] { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.m-figure__amount[b-ccbo0he1tx] { font-size: 1.6rem; font-weight: 700; color: #16323c; line-height: 1.1; }
.m-figure__label[b-ccbo0he1tx] { font-size: 0.72rem; color: #7b8b91; text-transform: uppercase; letter-spacing: 0.04em; }

/* A field with a mic beside it. */
.m-field--mic[b-ccbo0he1tx] { position: relative; }

.m-field--mic input[b-ccbo0he1tx] { padding-right: 6.6rem; }

.m-mic[b-ccbo0he1tx] {
    position: absolute;
    /* Clears the spell button beside it (0.35rem + its 44px), with a gap so a thumb landing
       between them hits neither rather than the wrong one. */
    right: 3.4rem;
    bottom: 0.25rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.m-mic--on[b-ccbo0he1tx] {
    background: #fdecec;
    box-shadow: inset 0 0 0 2px #d98a8a;
    animation: m-mic-pulse-b-ccbo0he1tx 1.2s ease-in-out infinite;
}

@keyframes m-mic-pulse-b-ccbo0he1tx {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .m-mic--on[b-ccbo0he1tx] { animation: none; }
}

/* The spell button sits inboard of the mic. Text, not an icon: "A·B" says what it does, and a
   second microphone glyph would read as a duplicate. */
.m-mic--spell[b-ccbo0he1tx] {
    right: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #4a5c63;
}

/* What was heard, with a way to fix it. */
.m-heard[b-ccbo0he1tx] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.6rem;
    margin: -0.2rem 0 0.7rem;
    font-size: 0.78rem;
    color: #64757b;
}

.m-heard__text[b-ccbo0he1tx] { font-style: italic; }
.m-heard__warn[b-ccbo0he1tx] { color: #a4601c; flex-basis: 100%; }
.m-heard__actions[b-ccbo0he1tx] { display: flex; gap: 0.75rem; }
.m-heard__actions .m-link[b-ccbo0he1tx] { min-height: 32px; font-size: 0.78rem; }

/* "Is this the same patient?" — the guard against creating a duplicate. */
.m-match[b-ccbo0he1tx] { margin-top: 1rem; }

.m-match__lead[b-ccbo0he1tx] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #16323c;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.m-match__card[b-ccbo0he1tx] {
    border: 1px solid #dce4e7;
    border-radius: 10px;
    background: #fff;
    padding: 0.75rem;
    margin-bottom: 0.6rem;
}

.m-match__name[b-ccbo0he1tx] { font-size: 1rem; font-weight: 600; }

.m-match__facts[b-ccbo0he1tx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.9rem;
    font-size: 0.8rem;
    color: #4a5c63;
    margin-top: 0.25rem;
}

.m-match__facts b[b-ccbo0he1tx] { font-weight: 600; color: #7b8b91; font-size: 0.7rem; text-transform: uppercase; }

.m-match__note[b-ccbo0he1tx] {
    margin-top: 0.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    font-size: 0.79rem;
    line-height: 1.4;
    background: #f4f7f8;
    color: #4a5c63;
}

.m-match__note--good[b-ccbo0he1tx] { background: #edf6ef; color: #2f6b41; }
.m-match__note--bad[b-ccbo0he1tx] { background: #fdeeea; color: #93331d; }

.m-match__seen[b-ccbo0he1tx] { font-size: 0.72rem; color: #95a5ab; margin-top: 0.35rem; }

.m-matched[b-ccbo0he1tx] {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #35704a;
    background: #f0f7f2;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
}

/* The service date, as a control. */
.m-top__date[b-ccbo0he1tx] { display: flex; align-items: center; gap: 0.15rem; margin-top: 0.1rem; }

.m-daynudge[b-ccbo0he1tx] {
    min-width: 30px;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.m-daynudge:disabled[b-ccbo0he1tx] { opacity: 0.3; cursor: default; }

/* Coding a day that is not today. Loud, because the mistake is silent otherwise: every code is
   valid and only the date is wrong. */
.m-pastday[b-ccbo0he1tx] {
    margin: 0.6rem 0.75rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #fff4e0;
    border: 1px solid #e8c98a;
    font-size: 0.85rem;
    color: #7a5c17;
}

.m-pastday .m-link[b-ccbo0he1tx] { color: #7a5c17; margin-left: 0.3rem; }

/* "Send N charges" — the primary action, on the screen the provider is already on. Deliberately
   loud: until it is pressed, a coded round exists only in this browser tab. */
.m-send[b-ccbo0he1tx] {
    display: block;
    width: calc(100% - 1.5rem);
    margin: 0.6rem 0.75rem 0;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #16323c;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.m-send span[b-ccbo0he1tx] {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 0.1rem;
}

/* The running transcript while a question is being dictated. Continuous recognition has no natural
   end, so this carries both the evidence that it is working and the way to stop it. */
.m-listening[b-ccbo0he1tx] {
    background: #eef4f6;
    border-left: 3px solid #16323c;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 0.6rem;
    margin: 0.4rem 0 0;
    font-style: italic;
}

.m-listening span[b-ccbo0he1tx] {
    display: block;
    font-style: normal;
    font-size: 0.72rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* The state of the day, in the header where the eye already is. A queued round is not a failure and
   must not be coloured like one -- but "sent" and "waiting to send" are different facts, and only the
   doctor can decide whether to walk somewhere with signal before the day ends. */
.m-queued[b-ccbo0he1tx] {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.68rem;
}

.m-offline[b-ccbo0he1tx] {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #6b4a12;
    color: #ffe6b0;
    font-size: 0.68rem;
}
