/* The administration and phone views' stylesheet (nxttechnology/Nxt.Atrium#1549): the parts of the directory list, the
   membership shuttle and the station's site line, the phone list, and the directory authority. A host that draws these
   views declares it beside the shared palette.css and controls.css, before its own stylesheet:

       _content/Nxt.Identity.Presentation.Blazor/css/identity-administration.css

   Moved from Atrium's shell.css. The administration page's shared parts (.nxt-admin, .nxt-admin-card, .nxt-admin__detail,
   __input, __hint, __label, __row*, __notice*, ...) are Nxt.Presentation.Blazor's controls.css; the parts only these views
   draw were .nxt-admin__* there and are .nxt-directory__* here, because a block's parts are defined by the package that
   owns the block. A second file rather than a longer identity-forms.css, so a product that shows only the sign-in form
   does not carry these rules. Every colour is an --nxt-* token of the shared palette. */

/* THE DIRECTORY LIST: the list beside a section's detail, and the buttons above it. */
.nxt-directory__list         { width: 280px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.nxt-directory__list-actions { display: flex; gap: 8px; }

/* #25 FR-021: a station at a site that is unknown or out of use is said in the warning colour, never as "not at a site". */
.nxt-directory__site          { margin: 0 0 4px 0; }
.nxt-directory__site--problem { color: var(--nxt-semantic-warning-strong); font-weight: 600; }

/* THE MEMBERSHIP SHUTTLE: members on one side, everyone else on the other, Add and Remove between. */
.nxt-directory__shuttle         { display: flex; gap: 12px; margin-top: 16px; align-items: flex-start; }
.nxt-directory__shuttle-side    { flex: 1 1 0; min-width: 0; }
.nxt-directory__shuttle-heading { margin: 0 0 6px 0; font-size: 13px; }
.nxt-directory__shuttle-buttons { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; max-width: 160px; }

/* #1092: why Add or Remove is off, said right under it. */
.nxt-directory__shuttle-reason { margin: -4px 0 0; font-size: 11px; }

/* An organisation document's refusals: which file, and why. */
.nxt-directory__refusals     { list-style: none; margin: 0 0 12px 0; padding: 0; }
.nxt-directory__refusal-file { display: block; font-weight: 600; }
.nxt-directory__refusal-why  { display: block; }

/* #410 — a person's phones (PhoneList.razor) and the enrolment code; laid out as the Add my phone design handoff draws
   them (#644, #937). The code is dark modules on the light panel whatever the theme, because a phone's camera reads dark
   on light. */
.nxt-phones { margin-top: 24px; }

.nxt-phones__header    { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.nxt-phones__heading   { margin: 0; font-size: 14px; font-weight: 600; }
.nxt-phones__counts    { font: 11.5px var(--nxt-font-mono); color: var(--nxt-text-secondary); }
.nxt-phones__directory { margin: 0 0 12px 0; font-size: 12.5px; color: var(--nxt-text-secondary); }

.nxt-phones__rows { border: 1px solid var(--nxt-border-primary); border-radius: 8px; overflow: hidden; }

.nxt-phones__row { padding: 14px 16px; }
.nxt-phones__row + .nxt-phones__row { border-top: 1px solid var(--nxt-border-primary); }
.nxt-phones__row--withdrawn { background: var(--nxt-surface-standard); color: var(--nxt-text-secondary); }

.nxt-phones__title { display: flex; align-items: center; gap: 10px; }
.nxt-phones__label { font-size: 14.5px; font-weight: 600; }

.nxt-phones__badge {
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: var(--nxt-semantic-active-soft);
    color: var(--nxt-semantic-active-strong);
}
.nxt-phones__badge--withdrawn { background: var(--nxt-bg-secondary); color: var(--nxt-text-secondary); }

.nxt-phones__key { font-family: var(--nxt-font-mono); }
.nxt-phones__key-label { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--nxt-text-secondary); }
.nxt-phones__row .nxt-phones__key { margin: 4px 0 2px 0; font-size: 13.5px; }
.nxt-phones__detail { font-size: 12px; color: var(--nxt-text-secondary); }

.nxt-phones__withdraw {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--nxt-border-primary);
}
.nxt-admin__input.nxt-phones__reason { width: var(--nxt-field-medium); margin: 0; }
.nxt-phones__why-off { margin-left: 2px; font-size: 12px; color: var(--nxt-text-secondary); }

/* The side and padding are identity-forms.css's, the one phone-code size (nxttechnology/Nxt.Atrium#1695). */
.nxt-phones__code {
    box-sizing: border-box;
    width: var(--nxt-identity-code-side);
    height: var(--nxt-identity-code-side);
    padding: var(--nxt-identity-code-padding);
    border: 1px solid var(--nxt-border-primary);
    border-radius: 5px;
    background: var(--nxt-bg-panel);
}

.nxt-phones__code path { fill: var(--nxt-bg-black); }

/* My phones (nxttechnology/Nxt.Atrium#1550). The page padding was Atrium's --nxt-atrium-admin-page-padding; the Key-name card
   was Atrium's .nxt-administrators__compare / __eyebrow, which Atrium keeps for its own screens. */
.nxt-add-phone { max-width: 620px; padding: 24px 28px; }

.nxt-add-phone__eyebrow {
    font: 11px/1.2 var(--nxt-font-mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--nxt-text-secondary);
}

.nxt-add-phone__overview { display: flex; flex-direction: column; gap: 16px; }
.nxt-add-phone__start { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
.nxt-add-phone__steps { display: flex; flex-direction: column; gap: 12px; }
.nxt-add-phone__flow-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nxt-add-phone__flow-heading .nxt-phones__heading { margin: 0; }

.nxt-add-phone__guidance { margin: 0 0 16px 0; font-size: 14px; color: var(--nxt-text-primary); }

.nxt-add-phone__actions        { margin-top: 16px; }

.nxt-add-phone__scan        { display: grid; grid-template-columns: var(--nxt-identity-code-side) 1fr; gap: 24px; }
.nxt-add-phone__scan-side   { display: flex; flex-direction: column; }
.nxt-add-phone__scan-side .nxt-add-phone__guidance { margin-bottom: 14px; }
.nxt-add-phone__countdown   { display: flex; justify-content: space-between; margin: 12px 0 6px 0; font-size: 11.5px; color: var(--nxt-text-secondary); }
.nxt-add-phone__time-left   { font-family: var(--nxt-font-mono); color: var(--nxt-text-primary); }

.nxt-add-phone__bar {
    display: block;
    width: 100%;
    height: 3px;
    border: 0;
    border-radius: 2px;
    appearance: none;
    background: var(--nxt-border-primary);
    color: var(--nxt-accent-primary);
}
.nxt-add-phone__bar::-webkit-progress-bar   { background: var(--nxt-border-primary); border-radius: 2px; }
.nxt-add-phone__bar::-webkit-progress-value { background: var(--nxt-accent-primary); border-radius: 2px; }
.nxt-add-phone__bar::-moz-progress-bar      { background: var(--nxt-accent-primary); border-radius: 2px; }

.nxt-add-phone__well    { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 8px; background: var(--nxt-surface-standard); }
.nxt-add-phone__station { font: 22px var(--nxt-font-mono); color: var(--nxt-text-primary); overflow-wrap: anywhere; }
.nxt-add-phone__caption { font-size: 12.5px; color: var(--nxt-text-secondary); }

.nxt-add-phone__fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 16px; }

/* #937: the Key name compared with Nxt Sign's, and the phone's name, before the two buttons. */
.nxt-add-phone__compare  { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--nxt-border-primary); }
.nxt-add-phone__key-name { font-size: 18px; color: var(--nxt-text-on-accent); }

.nxt-add-phone__name-label { margin-top: 16px; }
.nxt-add-phone__hint       { margin: 6px 0 0 0; font-size: 12px; color: var(--nxt-text-secondary); }

.nxt-add-phone > .nxt-outlined-message { margin-top: 12px; }

.nxt-add-phone__key-card    { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-radius: 8px; background: var(--nxt-bg-black); }
.nxt-add-phone__key-eyebrow { font: 500 11px/1.2 var(--nxt-font-mono); color: var(--nxt-text-on-accent); opacity: .7; }
