/* 台帳の画面 (accounts.570.co.jp) だけの部品。2026-09-28 UIルールに整地 (峯岸さん「一気に」)。
   骨格・色・書体は blue の theme.css (帯・table.list・.pill・button.icon・.btn・.modal/.sheet) をそのまま借りる。
   ここに置くのは: 行を開いて直す欄 (置-2・Pink の .inline-edit と同じ物差し)・自社の決めごとの欄・台帳だけの札 */

/* ---- 帯: 項目の頭の絵は 16px・部署の印は塗り (blue の帯と同じ) ---- */
.nav-item .ico.mark[data-icon] { width: 16px; height: 16px; }

/* ---- 本文: 白地・箱なし (置-11)。タブの下に 見出しなしの説明 (言-2) + 帯 1 本 + 表 ---- */
body.flat .page.pg { padding-top: 20px; }
.acc-tabs { margin-bottom: 14px; }
.acc-deny { margin: 20px 0; font: 400 14px/22px var(--jp); color: var(--ink-sub); }
.pg .lead b { font-weight: 400; color: var(--ink-sub); }   /* 説明の中の強調は太字にしない (字-3) */
.pg-bar .btn.push { margin-left: auto; }                    /* 「＋ 人を足す」は右端 (置-7) */
table.list tr.click { cursor: pointer; }
table.list tr.off td { color: #9aa0a6; }                    /* 退職・取引終了は薄く */
table.list td .fold { margin: 1px 6px 0 0; vertical-align: top; }   /* 行の箱 20px に収める (middle だと 1px 膨らむ) */
table.list td .sub { margin-left: 6px; font-size: 12px; line-height: 20px; vertical-align: top; color: var(--ink-mute); }   /* ID・正式名は同じ行に薄字 (字-4) */
table.list td .pill { margin: 1px 0 0 6px; line-height: 16px; vertical-align: top; }   /* 札を入れても行は 35px (字-1) */
table.list td.mk { color: var(--blue-deep); }               /* ✓ の列 */

/* ---- 行を開いて直す (部-10・置-2・守-1)。Pink の .inline-edit と同じ形・色だけ blue ---- */
table.list tr.edit-row td { background: #f5f9fc; padding: 12px 14px 14px 30px; white-space: normal; cursor: default; }
table.list tr.edit-row:hover td { background: #f5f9fc; }
.inline-edit .row.fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.inline-edit .row.fields > * { flex: 0 0 auto; }
.inline-edit .row.fields + .row.fields, .inline-edit .row.fields + .ie-block { margin-top: 10px; }
.fl { display: block; margin: 2px 0 3px; font: 400 11px/16px var(--jp); color: var(--ink-mute); }
.ie-cap { min-height: 14px; margin-top: 3px; font: 400 11px/14px var(--jp); color: var(--ink-mute); }   /* 補足の無い欄も同じ高さ */
.inline-edit input[type=text], .inline-edit input[type=password], .inline-edit select,
.acc-form input[type=text], .acc-form input[type=password], .acc-form input[type=number], .acc-form select {
  height: 36px; box-sizing: border-box; padding: 0 9px; border: 1px solid var(--grey); border-radius: var(--s-radius, 4px);
  background: #fff; font: 400 13px/20px var(--jp); color: var(--ink); }
.inline-edit input.date, .acc-form input.date { cursor: pointer; }
/* 打ち込みもできる日付の欄 (2026-09-29): 字を打つ欄なので文字のカーソル。読めない字は赤い枠 */
.inline-edit input.date:not([readonly]), .sheet input.date:not([readonly]) { cursor: text; }
input.date.bad { border-color: #c0392b !important; background: #fdecea; }
/* プルダウンは自前の矢印 (ブラウザごとに形と字が変わる。suite と同じ描き方) */
.inline-edit select, .acc-form select, .sheet select {
  -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6'/></svg>") no-repeat right 10px center; }
.inline-edit input:disabled { background: #f4f6f8; color: var(--ink-mute); }
.inline-edit .btns, .acc-form .btns { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.inline-edit .btns > .check { margin-right: auto; }
.inline-edit .btns > .push, .acc-form .btns > .push { margin-left: auto; }   /* 危険なボタンは右端 (置-3・部-2) */
.ie-msg { font: 400 12px/18px var(--jp); color: var(--ink-mute); }
.ie-msg.err { color: #c0392b; }
label.check { display: inline-flex; align-items: center; gap: 6px; height: 36px; font: 400 13px/20px var(--jp); color: var(--ink); white-space: nowrap; cursor: pointer; }
label.check.off { color: var(--ink-mute); cursor: default; }
.ie-checks { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* 招待の人の「開くもの」 (開いた行の中の塊) */
.ie-block { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--grey); }
.ie-block h3 { margin: 0 0 4px; font: 400 12px/18px var(--jp); color: var(--ink-mute); }
.grants-mod { margin: 8px 0 2px; font: 400 12px/18px var(--jp); color: var(--ink-sub); }
.grants-row { display: flex; align-items: center; gap: 14px; min-height: 30px; font: 400 13px/20px var(--jp); }
.grants-row .gl { width: 220px; }
.grants-row label { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; cursor: pointer; }
.grants-row .caution { margin-left: 6px; font-size: 11px; color: #b45309; }

/* ---- 小窓 (＋ 人を足す / ＋ 会社を足す)。欄は blue の .sheet (36px・見出しは上) ---- */
.sheet.wide { max-width: 640px; }
.sheet .row { flex-wrap: wrap; }
.sheet .row > label { min-width: 180px; }
.sheet label[hidden], .sheet .check[hidden] { display: none; }   /* blue の .sheet label { display: block } が hidden に勝たないように */
.sheet input[type=password] { font: 400 13px/20px var(--jp); width: 100%; margin-top: 3px; background: #fff; color: var(--ink);
  border: 1px solid var(--grey); border-radius: var(--s-radius, 4px); padding: 0 8px; height: 36px; box-sizing: border-box; }   /* blue の .sheet は文字の欄と同じ形を password に付けていない */
.sheet .checks { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* ---- 自社の決めごと: 入力の塊なので 1 つの箱 (置-11 の例外は「入力の塊」) ---- */
.acc-form { max-width: 860px; }
.acc-form h3 { margin: 18px 0 2px; font: 400 15px/22px var(--jp); color: var(--ink); }   /* 項目の見出し 15px (字-2) */
.acc-form .row.fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.acc-form .row.fields + .row.fields { margin-top: 10px; }
.hol-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }

/* 3部署の管理画面は本物を枠 (iframe) でその場に出す。写しは作らない */
.dept-frame { display: block; border: 0; background: #fff; width: 100%; height: 100vh; }
.view[hidden] { display: none; }
body.dept .page.pg { padding: 0; }
/* 枠を出しているときは外のページの下の余白 (theme.css の .main の 80px) を外す。
   残っていると外のページも 80px ぶんスクロールし、枠の中のスクロールと二重に出ていた (2026-09-29) */
body.dept .main { padding-bottom: 0; }

/* ---- カレンダー・運用 (2026-09-28)。見出し 15px + 薄字 + 表 (置-11・字-2) ---- */
.acc-h { margin: 28px 0 2px; font: 400 15px/22px var(--jp); color: var(--ink); }
.acc-h:first-of-type { margin-top: 4px; }
.acc-h .cnt { margin-left: 12px; font: 400 12px var(--jp); color: var(--ink-mute); }
.acc-hint { margin: 0 0 8px; font: 400 12px/18px var(--jp); color: var(--ink-mute); }
.acc-cap { font: 400 11px/16px var(--jp); color: var(--ink-mute); }
#ho-rows td:first-child { width: 160px; }
.pg-bar .seg select { -webkit-appearance: none; appearance: none; height: 26px;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231a8ac6' stroke-width='1.6'/></svg>") no-repeat right 10px center; }
.pg-bar .btn-mini + .btn-mini { margin-left: 0; }
.ho-prev { margin: 4px 0 14px; padding: 12px 14px; background: #f5f9fc; font: 400 13px/20px var(--jp); }
.ho-prev .ho-line { margin: 2px 0 6px; }
.ho-prev ul { margin: 0 0 8px; padding-left: 20px; color: var(--ink-sub); font-size: 12px; line-height: 18px; }
.ho-prev .btns { display: flex; gap: 8px; margin-top: 8px; }
p.ie-msg:empty { display: none; }
table.list td.ng { color: #c0392b; }
table.list td.bug-text { max-width: 460px; overflow: hidden; text-overflow: ellipsis; }
table.list tr.empty td { padding: 6px 0; text-align: left; font-size: 12px; color: var(--ink-mute); border-bottom: 0; }
table.list:has(tr.empty) thead { display: none; }
.busy { display: flex; align-items: center; gap: 10px; padding: 14px 0; font: 400 13px var(--jp); color: var(--ink-mute); }
.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--blue) 25%, #fff); border-top-color: var(--blue); animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* 顔 (アバター) の欄。欄の高さ 36 に揃える (2026-09-28 台帳の画面で直す) */
.acc-facerow { display: inline-flex; align-items: center; gap: 8px; height: 36px; }
.acc-face img { width: 30px; height: 30px; border-radius: 15px; object-fit: cover; display: block; }
.acc-face .none { font: 400 12px/30px var(--jp); color: var(--ink-mute); }

/* 会社の色 (2026-09-29 Blue から台帳へ)。Blue の全体設定の色の欄と同じ形 */
.acc-colorrow { display: inline-flex; align-items: center; gap: 8px; height: 36px; }
.acc-color { width: 44px; height: 36px; padding: 3px; box-sizing: border-box; border: 1px solid #c9ced3; border-radius: 4px; background: #fff; cursor: pointer; }
.acc-color[data-none] { opacity: .35; }
.acc-chip { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---- 台帳の帯の色 #708090 (2026-09-29 峯岸さん指示)。選択中は同じ色を濃くした地 + 白の線 ---- */
.nav, .nav-account { background: #708090; }
.nav-item.active, .nav-item.active:hover { background: #5b6978; border-left-color: #fff; }
/* 部署の印も白だけ (グレーの塗りを使わない。2026-09-29)。形の線と頭文字を白で描く。
   **帯の項目だけ** — 左下の名前のメニュー (白地) の印は元のグレーのまま (09-29 峯岸さん指摘) */
.nav-item .ico.mark[data-icon="blue"] { --s-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'><rect x='1.75' y='1.75' width='12.5' height='12.5' rx='2.2' stroke-width='1.3'/><path d='M6 11.5V4.5h2.3a1.75 1.75 0 0 1 0 3.5H6M6 8h2.7a1.75 1.75 0 0 1 0 3.5H6' stroke-width='1.5'/></svg>"); }
.nav-item .ico.mark[data-icon="pink"] { --s-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'><rect x='1.75' y='1.75' width='12.5' height='12.5' rx='2.2' stroke-width='1.3'/><path d='M6 11.5V4.5h2.6a2 2 0 0 1 0 4H6' stroke-width='1.5'/></svg>"); }
.nav-item .ico.mark[data-icon="kabosu"] { --s-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.35' stroke-width='1.3'/><path d='M9.60 8.00L12.30 8.00M8.80 9.39L10.15 11.73M7.20 9.39L5.85 11.73M6.40 8.00L3.70 8.00M7.20 6.61L5.85 4.27M8.80 6.61L10.15 4.27' stroke-width='1.3'/></svg>"); }
