/* 診療報酬点数表（管理者の画面・選ぶ部品・ニーズの詳細の表示・2026-11-05）。色はテーマのトークンに追従する。 */
#fsAdmin { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.fs-h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--theme-p1, #11748f); }
.fs-h1__act { margin-left: auto; }
.fs-h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.fs-meta { color: var(--cp-muted, #5a6875); font-size: .85rem; }
.fs-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fs-ok { padding: 10px 14px; border-radius: 12px; white-space: pre-line;
  background: color-mix(in srgb, var(--theme-p2, #11748f) 6%, var(--cp-surface, #fff)); }
.fs-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, #c47a00 10%, var(--cp-surface, #fff)); }
.fs-warn i { color: #9a5b00; }
.fs-tablewrap { overflow-x: auto; }
.fs-table { min-width: 640px; margin: 0; }
.fs-table td, .fs-table th { vertical-align: middle; }
.fs-chg { display: inline-flex; gap: 8px; font-size: .82rem; color: var(--cp-muted, #5a6875); }
.fs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 6px 16px;
  border-radius: 10px; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--theme-p2, #11748f) 35%, var(--cp-surface, #fff)); background: var(--cp-surface, #fff);
  color: var(--theme-p1, #11748f) !important; transition: background-color .15s ease, transform .1s ease; }
.fs-btn:hover, .fs-btn:focus-visible { background: color-mix(in srgb, var(--theme-p2, #11748f) 10%, var(--cp-surface, #fff)); }
.fs-btn:focus-visible { outline: 2px solid var(--theme-p2, #11748f); outline-offset: 2px; }
.fs-btn:active { transform: scale(.96); }
.fs-btn--main { background: var(--theme-p2, #11748f); border-color: var(--theme-p2, #11748f); color: #fff !important; }
.fs-btn--main:hover, .fs-btn--main:focus-visible { background: var(--theme-p1, #0e5a78); }
.fs-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.fs-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-search select { flex: 0 0 auto; width: auto; min-height: 44px; }
.fs-search input[type="search"] { flex: 1 1 260px; min-width: 0; min-height: 44px; }
.fs-cite { font-size: .78rem; color: var(--cp-muted, #5a6875); }
.fs-more > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.fs-more__body { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.fs-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-form input[type="url"], .fs-form input[type="file"] { flex: 1 1 280px; min-width: 0; }
.fs-form input[type="text"] { flex: 0 0 110px; }
.fs-err { color: #8a2e2e; font-size: .85rem; width: 100%; }
.fs-raw { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: .88rem; }
.fs-raw dt { color: var(--cp-muted, #5a6875); font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-raw dd { margin: 0; overflow-wrap: anywhere; }
.fs-big { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 選ぶ部品（<x-fee-schedule.picker>） */
.fsp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fsp__bar { display: flex; flex-wrap: wrap; gap: 8px; }
.fsp__bar select { flex: 0 0 auto; width: auto; min-height: 44px; }
.fsp__bar input { flex: 1 1 220px; min-width: 0; min-height: 44px; }
.fsp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.fsp__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; border-radius: 10px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--theme-p2, #11748f) 18%, var(--cp-surface, #fff)); background: var(--cp-surface, #fff); color: inherit;
  transition: background-color .15s ease; }
.fsp__item:hover, .fsp__item:focus-visible { background: color-mix(in srgb, var(--theme-p2, #11748f) 8%, var(--cp-surface, #fff)); }
.fsp__item:focus-visible { outline: 2px solid var(--theme-p2, #11748f); outline-offset: 1px; }
.fsp__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fsp__sub { display: block; font-size: .8rem; color: var(--cp-muted, #5a6875); }
.fsp__val { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fsp__empty { color: var(--cp-muted, #5a6875); font-size: .85rem; }

/* 選んだ行・ニーズの詳細の表示 */
.fs-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fs-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fs-item__name { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.fs-item__val { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 575.98px) {
  .fs-h1__act { margin-left: 0; }
  .fsp__item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-btn, .fsp__item { transition: none; }
}

/* 定義文（特定保険医療材料の定義・留意事項通知・2026-11-05）。公式の文をそのまま、項目ごとの改行を保って表示する。長い区分は器の中だけ送る */
.fs-def { white-space: pre-line; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.75; max-height: 420px; overflow-y: auto;
  padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--theme-p2, #11748f) 5%, var(--cp-surface, #fff)); }
.fs-defmore { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; }
.fs-defmore > summary { cursor: pointer; font-weight: 700; font-size: .88rem; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--theme-p1, #11748f); width: max-content; max-width: 100%; transition: color .15s ease; }
.fs-defmore > summary:hover, .fs-defmore > summary:focus-visible { color: var(--theme-p2, #11748f); }
.fs-defmore > summary:focus-visible { outline: 2px solid var(--theme-p2, #11748f); outline-offset: 2px; border-radius: 6px; }
/* 告示の注の知らせ（訂正の文書に出てくる・点数が合わない）。文は書き換えず、知らせだけを添える */
.fs-kjmark { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; min-height: 44px; padding: 6px 12px; border-radius: 10px;
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--theme-p1, #11748f) !important;
  background: color-mix(in srgb, var(--theme-p2, #11748f) 8%, var(--cp-surface, #fff)); transition: background-color .15s ease; }
a.fs-kjmark:hover, a.fs-kjmark:focus-visible { background: color-mix(in srgb, var(--theme-p2, #11748f) 16%, var(--cp-surface, #fff)); }
a.fs-kjmark:focus-visible { outline: 2px solid var(--theme-p2, #11748f); outline-offset: 2px; }
.fs-kjmark--warn { color: #7a4600 !important; background: color-mix(in srgb, #c47a00 12%, var(--cp-surface, #fff)); }
.fs-kjflag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #7a4600;
  background: color-mix(in srgb, #c47a00 14%, var(--cp-surface, #fff)); }
.fs-kjlist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ニーズ詳細の診療報酬の一覧（2026-11-13 オーナー承認の UI提案）。
   1行に「種類 → 名前と区分の番号 → 点線 → 金額 → 定義のボタン」。種類は色と形で見分ける（手技・材料・薬・入院）。 */
/* 2026-11-14：幅の上限（780px）をやめ、枠の幅いっぱいに使う。一覧はほかの一覧（一般的名称）と同じ白い地と線のカードにする */
.fsr-h .fsr-src { margin-left: auto; font-weight: 400; font-size: .76rem; color: var(--cp-muted, #5a6875); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fsr-src-m { display: none; }
.fsr { --fsr-proc: #0f766e; --fsr-mat: #a64b06; --fsr-drug: #6d32d6; --fsr-dpc: #1d58c4;
  list-style: none; margin: 0; padding: 0; background: var(--c, var(--cp-surface, #fff));
  border: 1px solid var(--line, color-mix(in srgb, var(--theme-p2, #11748f) 18%, var(--cp-surface, #fff))); border-radius: 10px; overflow: hidden; }
html[data-theme="dark"] .fsr { --fsr-proc: #4fd1c5; --fsr-mat: #f6ad55; --fsr-drug: #b794f4; --fsr-dpc: #7aa7ff; }
.fsr-row { --fsr-k: var(--fsr-proc); display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 44px; grid-template-areas: "kind nm val btn" "def def def def";
  align-items: center; column-gap: 14px; min-height: 52px; padding: 4px 12px 4px 16px;
  border-bottom: 1px solid var(--line, color-mix(in srgb, var(--theme-p2, #11748f) 14%, var(--cp-surface, #fff))); transition: background-color .15s ease; }
.fsr-row:last-child { border-bottom: 0; }
.fsr-row:hover { background: color-mix(in srgb, var(--theme-p2, #11748f) 4%, var(--c, var(--cp-surface, #fff))); }
.fsr-row--material { --fsr-k: var(--fsr-mat); }
.fsr-row--drug { --fsr-k: var(--fsr-drug); }
.fsr-row--dpc { --fsr-k: var(--fsr-dpc); }
.fsr-kind { grid-area: kind; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--fsr-k); background: color-mix(in srgb, var(--fsr-k) 12%, var(--cp-surface, #fff)); white-space: nowrap; }
.fsr-row--material .fsr-kind { border-radius: 6px; }
.fsr-row--dpc .fsr-kind { border-radius: 3px; }
.fsr-row--drug .fsr-kind { border-radius: 999px 6px 999px 6px; }
.fsr-nm { grid-area: nm; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fsr-nm__t { font-weight: 500; overflow-wrap: anywhere; }
.fsr-no { flex: 0 0 auto; font-size: .78rem; color: var(--cp-muted, #5a6875); font-variant-numeric: tabular-nums; }
.fsr-nm::after { content: ""; flex: 1 1 24px; min-width: 24px; align-self: center; border-bottom: 2px dotted color-mix(in srgb, var(--cp-muted, #5a6875) 45%, var(--cp-surface, #fff)); }
.fsr-val { grid-area: val; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.fsr-stage { display: block; font-size: .86rem; line-height: 1.55; }
.fsr-stage__d { font-weight: 500; color: var(--cp-muted, #5a6875); margin-right: 8px; }
.fsr-btn { grid-area: btn; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  font-size: 1.05rem; color: var(--theme-p2, #11748f); transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.fsr-btn:hover, .fsr-btn:focus-visible { background: color-mix(in srgb, var(--theme-p2, #11748f) 12%, var(--cp-surface, #fff)); }
.fsr-btn:focus-visible { outline: 2px solid var(--theme-p2, #11748f); outline-offset: 2px; }
.fsr-btn:active { transform: scale(.92); }
.fsr-btn[aria-expanded="true"] { background: var(--theme-p2, #11748f); color: #fff; }
.fsr-btn[aria-busy="true"] { opacity: .6; }
.fsr-btn__dot, .fsr-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #c47a00; border: 2px solid var(--cp-surface, #fff); }
html[data-theme="dark"] .fsr-btn__dot, html[data-theme="dark"] .fsr-dot { background: #f6ad55; }
.fsr-dot { position: static; display: inline-block; margin-left: 6px; vertical-align: middle; }
.fsr-def { grid-area: def; padding: 4px 0 12px; opacity: 0; transition: opacity .15s ease-out; }
.fsr-def.is-on { opacity: 1; }
.fsr-def.is-closing { transition: opacity .12s ease-in; }
.fsr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.fsr-tab { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--theme-p2, #11748f) 25%, var(--cp-surface, #fff));
  background: var(--cp-surface, #fff); color: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.fsr-tab:hover, .fsr-tab:focus-visible { background: color-mix(in srgb, var(--theme-p2, #11748f) 8%, var(--cp-surface, #fff)); }
.fsr-tab:focus-visible { outline: 2px solid var(--theme-p2, #11748f); outline-offset: 2px; }
.fsr-tab:active { transform: scale(.96); }
.fsr-tab[aria-selected="true"] { border-color: var(--theme-p2, #11748f); color: var(--theme-p1, #0e5a78);
  background: color-mix(in srgb, var(--theme-p2, #11748f) 14%, var(--cp-surface, #fff)); }
.fsr-txt { white-space: pre-line; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.75; max-height: 260px; overflow-y: auto; padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--theme-p2, #11748f) 6%, var(--cp-surface, #fff)); }
.fsr-pane .fs-cite { margin-top: 6px; }
.fsr-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--cp-muted, #5a6875); font-size: .86rem; }
.fsr-err { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .86rem; color: #8a2e2e;
  background: color-mix(in srgb, #c0392b 9%, var(--cp-surface, #fff)); }
html[data-theme="dark"] .fsr-err { color: #f5a3a3; }

/* 携帯：種類はアイコンだけ・金額は名前のすぐ下・出典はいちばん下 */
@media (max-width: 575.98px) {
  .fsr-h .fsr-src { display: none; }
  .fsr-src-m { display: block; margin-top: 8px; font-size: .74rem; color: var(--cp-muted, #5a6875); }
  .fsr-row { grid-template-columns: 30px minmax(0, 1fr) 44px; grid-template-areas: "kind nm btn" "kind val btn" "def def def"; column-gap: 10px; padding: 8px 10px 8px 12px; align-items: start; }
  .fsr-kind { width: 28px; height: 28px; padding: 0; justify-content: center; font-size: .72rem; margin-top: 2px; }
  .fsr-kind__w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fsr-nm { flex-wrap: wrap; gap: 0 8px; }
  .fsr-nm::after { display: none; }
  .fsr-val { justify-self: start; text-align: left; white-space: normal; }
  .fsr-btn { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fsr-btn, .fsr-def, .fsr-tab { transition: none; }
}
