/* DtReassignShiftPerson (mw-rsp-*) — standalone, no scoped CSS.
   The person picker for reassigning a not-yet-checked-in shift, opened from the MwShiftCheckinOps
   transition console. Dark themed to match the console (mw-sco-*): hairline borders, mono chips,
   stable avatar hues. Custom properties scoped to .mw-rsp-root. */

.mw-rsp-shell {
    max-width: min(480px, 96vw);
    width: 480px;
}

.mw-rsp-root {
    --mw-rsp-surface: hsl(240 12% 9%);
    --mw-rsp-surface-elev: hsl(240 11% 11.5%);
    --mw-rsp-surface-hover: hsla(0 0% 100% / 0.05);
    --mw-rsp-lines: hsla(0 0% 100% / 0.06);
    --mw-rsp-lines-strong: hsla(0 0% 100% / 0.10);
    --mw-rsp-text: hsl(0 0% 96%);
    --mw-rsp-text-dim: hsl(240 5% 60%);
    --mw-rsp-text-faint: hsl(240 5% 40%);
    --mw-rsp-accent: hsl(263 90% 67%);
    --mw-rsp-teal: hsl(172 60% 50%);
    --mw-rsp-font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --mw-rsp-font-mono: 'JetBrains Mono', ui-monospace, monospace;

    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(72vh, 640px);
    background: var(--mw-rsp-surface);
    color: var(--mw-rsp-text);
    font-family: var(--mw-rsp-font-body);
    font-size: 14px;
    border-radius: 14px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.mw-rsp-root *,
.mw-rsp-root *::before,
.mw-rsp-root *::after { box-sizing: border-box; }

.mw-rsp-mi {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    flex-shrink: 0;
}

/* ── header ── */
.mw-rsp-head {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px 13px;
    border-bottom: 1px solid var(--mw-rsp-lines);
}

.mw-rsp-head-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
}

.mw-rsp-head-title .mw-rsp-mi { color: var(--mw-rsp-accent); }

.mw-rsp-head-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--mw-rsp-text-dim);
    font-size: 12.5px;
}

.mw-rsp-head-time {
    font-family: var(--mw-rsp-font-mono);
    font-size: 12px;
    color: var(--mw-rsp-text-dim);
}

.mw-rsp-head-current {
    color: var(--mw-rsp-text-faint);
    font-size: 12px;
}

.mw-rsp-head-current b { color: var(--mw-rsp-text-dim); font-weight: 600; }

/* ── search ── */
.mw-rsp-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 14px 4px;
    padding: 9px 12px;
    background: var(--mw-rsp-surface-elev);
    border: 1px solid var(--mw-rsp-lines);
    border-radius: 10px;
}

.mw-rsp-search:focus-within { border-color: var(--mw-rsp-lines-strong); }

.mw-rsp-search .mw-rsp-mi { color: var(--mw-rsp-text-faint); font-size: 17px; }

.mw-rsp-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--mw-rsp-text);
    font-family: var(--mw-rsp-font-body);
    font-size: 14px;
}

.mw-rsp-search input::placeholder { color: var(--mw-rsp-text-faint); }

/* ── list ── */
.mw-rsp-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mw-rsp-empty,
.mw-rsp-more {
    color: var(--mw-rsp-text-faint);
    font-size: 12.5px;
    text-align: center;
    padding: 14px 8px;
}

.mw-rsp-more { padding: 10px 8px 4px; }

.mw-rsp-row {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: var(--mw-rsp-text);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 90ms ease;
}

.mw-rsp-row:hover { background: var(--mw-rsp-surface-hover); }

.mw-rsp-row--current {
    cursor: default;
    opacity: 0.62;
}

.mw-rsp-row--current:hover { background: transparent; }

.mw-rsp-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: hsl(var(--h) 70% 88%);
    background: hsl(var(--h) 45% 26%);
}

.mw-rsp-row-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mw-rsp-tag {
    font-family: var(--mw-rsp-font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mw-rsp-text-faint);
    border: 1px solid var(--mw-rsp-lines-strong);
    border-radius: 999px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.mw-rsp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-family: var(--mw-rsp-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 2.5px 9px;
    color: var(--mw-rsp-teal);
    background: color-mix(in srgb, var(--mw-rsp-teal) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--mw-rsp-teal) 42%, transparent);
}

.mw-rsp-chip .mw-rsp-mi { font-size: 12px; }

.mw-rsp-chip--none {
    color: var(--mw-rsp-text-faint);
    background: transparent;
    border-color: var(--mw-rsp-lines);
}
