/* 10/30 夜・第1段。固有のnx-of1だけ。単事業所ではこのCSSも読み込まない。 */
.nx-of1 { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 224px; margin: 0; }
.nx-of1 select, .nx-of1 button, .nx-of1__fixed { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--sheet); min-height: 38px; }
.nx-of1 select { width: 154px; min-width: 0; max-width: 100%; padding: 4px 22px 4px 8px; text-overflow: ellipsis; }
.nx-of1 button { flex: none; padding: 4px 8px; cursor: pointer; }
.nx-of1__fixed { max-width: 180px; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:has(.nx-of1) .nx-density { display: none; }
.nx-of1-member { flex: 1 0 100%; min-width: 0; max-width: 100%; margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.nx-of1-member fieldset, .nx-of1-invite { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; margin: 0; padding: 0 0 8px; min-width: 0; }
.nx-of1-member legend, .nx-of1-invite legend { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.nx-of1-member label, .nx-of1-invite label { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow-wrap: anywhere; }
.nx-of1-member input, .nx-of1-invite input { flex: none; }
.nx-of1-invite { flex-basis: 100%; }
.mb-inv .nx-of1-invite { grid-column: 1 / -1; grid-row: 2; }
.mb-inv:has(.nx-of1-invite) > button { grid-column: 4; grid-row: 1; white-space: nowrap; }
@media (hover: hover) { .nx-of1 button:hover { border-color: var(--acc); } }
@media (max-width: 1440px) { body:has(.nx-of1) .nx-acct__name { display: none; } }
@media (max-width: 760px) {
  /* 既存のメニュー・通知の位置を保ち、切替を上部バーの次の行へ。 */
  body:has(.nx-of1) .nx-bar { height: 104px; align-items: flex-start; padding-top: 6px; box-sizing: border-box; }
  body:has(.nx-of1) .nx-brand { margin-top: 8px; }
  body:has(.nx-of1) #nx-main { padding-top: 48px; }
  .nx-of1 { position: fixed; top: 57px; left: 14px; right: 14px; max-width: none; justify-content: flex-end; }
  .nx-of1 select { width: min(290px, calc(100vw - 82px)); font-size: 16px; min-height: 40px; }
  .nx-of1 button { min-height: 40px; }
  .nx-of1__fixed { max-width: calc(100vw - 28px); min-height: 40px; font-size: 16px; }
  .mb-inv .nx-of1-invite, .mb-inv:has(.nx-of1-invite) > button { grid-column: 1; grid-row: auto; }
}
/* 10/31 見た目: ヘッダーのほかの部品と同じ丸い札。建物の印と事業所の名前。選ぶとすぐ切り替わる（切替ボタンは JS が動かないときだけ） */
.nx-of1 { gap: 2px; padding: 0 4px 0 10px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--sheet-2); }
.nx-of1__ic { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nx-of1 select { border: 0; background: transparent; font-weight: 700; color: var(--ink); min-height: 34px; padding: 2px 20px 2px 6px; cursor: pointer; }
.nx-of1 select:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-radius: 999px; }
.nx-of1 .nx-of1__go { min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.nx-of1.is-auto .nx-of1__go { display: none; }
.nx-of1__fixed { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-weight: 700; min-height: 34px; padding: 0 8px 0 0; }
.nx-of1:has(.nx-of1__fixed) { padding-right: 4px; }
@media (hover: hover) { .nx-of1:hover { border-color: var(--acc); } }
@media (max-width: 760px) {
  .nx-of1 { padding: 0 6px 0 12px; }
  .nx-of1 select { flex: 1 1 auto; width: auto; min-height: 40px; }
  .nx-of1 { justify-content: flex-start; }
}
@media (min-width: 761px) and (max-width: 1280px) { .nx-of1__ic { display: none; } .nx-of1 { padding-left: 6px; } }   /* 狭い PC は名前を優先 */
/* 10/31 総点検 R3B-01: スマホは選択欄が帯の2段目（57〜98px）にあり、メール確認の赤い案内（帯の右下に出る）が選択欄に重なって、
   真ん中を押すと案内のリンクが開いた → 選択欄がある間は、案内を帯（高さ 104px）の下に置く。帯の上の部品を指す三角は外す。
   本文は案内が出ている間 120px 下がる決まり（next.css）なので、案内（約 112〜148px）は本文にもかからない。
   あわせて、スマホの札の角は 6px（台帳 10/14） */
@media (max-width: 760px) {
  body:has(.nx-of1) .nx-setupbub { position: fixed; top: 112px; right: 12px; left: auto; max-width: calc(100vw - 24px); }
  body:has(.nx-of1) .nx-setupbub::before { display: none; }
  .nx-of1, .nx-of1 .nx-of1__go, .nx-of1 select:focus-visible { border-radius: 6px; }
}
/* 10/31 総点検 R4C-01: スマホの押せる高さ 44px 前後（台帳 10/23）。帯（104px）の2段目に収まる */
@media (max-width: 760px) { .nx-of1 select { min-height: 44px; } }
