/* 求人DB 共通スタイル（画面ワイヤー wireframes/job-db-wireframes.html の配色に合わせる） */
:root {
  --paper:#eef1f5; --surface:#ffffff; --surface-2:#f6f8fa; --ink:#16202b; --muted:#5c6b7c;
  --line:#ccd5de; --line-soft:#e0e6ec; --accent:#0c6b62; --accent-ink:#ffffff; --accent-soft:#dfeeec;
  --admin:#8a5a05; --admin-soft:#f6ecd9; --warn:#a8531c; --warn-soft:#fbeee6;
  --font:"Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","Noto Sans JP",sans-serif;
  --mono:"JetBrains Mono",Consolas,"SFMono-Regular",monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:#0e141a; --surface:#161e26; --surface-2:#1c252f; --ink:#dde5ee; --muted:#93a2b3;
    --line:#2f3b47; --line-soft:#232d38; --accent:#57c6ba; --accent-ink:#08201e; --accent-soft:#16302e;
    --admin:#d7a445; --admin-soft:#332811; --warn:#e0895a; --warn-soft:#35211a;
  }
}
* { box-sizing:border-box; }
html, body { margin:0; }
body { background:var(--paper); color:var(--ink); font-family:var(--font); font-size:14px; line-height:1.7; }
h1, h2, h3 { margin:0; line-height:1.4; }
/* 「（本社）」の全角の括弧は左半分が空白なので、その分を詰めて見出しと左端をそろえる */
.lead-paren { margin-left:-.5em; white-space:nowrap; }
p { margin:0; }
a { color:var(--accent); }
.mono { font-family:var(--mono); font-size:.92em; }
.muted { color:var(--muted); }
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
                   clip-path:inset(50%); white-space:nowrap; border:0; }

/* --- 共通レイアウト --- */
.layout { display:grid; grid-template-columns:200px minmax(0,1fr); min-height:100vh; }
/* 左メニューは右の内容の長さに関係なく、常にブラウザの高さに合わせて固定する（長い画面でもログアウトが見える） */
.sidebar { background:var(--surface-2); border-right:1px solid var(--line-soft); padding:16px 10px;
           display:flex; flex-direction:column; gap:2px; font-size:13px;
           position:sticky; top:0; align-self:start; height:100vh; height:100dvh; overflow-y:auto; }
.brand { font-weight:700; font-size:15px; padding:0 8px 10px; }
.menu-label { font-size:11px; letter-spacing:.12em; color:var(--muted); padding:12px 8px 4px; }
.mi { display:flex; align-items:center; gap:6px; padding:6px 8px; border-radius:5px; color:var(--ink);
      text-decoration:none; }
a.mi:hover { background:var(--surface); }
.mi.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.mi.off { color:var(--muted); }
.mi .tag { margin-left:auto; font-size:10px; color:var(--admin); background:var(--admin-soft);
           border-radius:3px; padding:0 4px; }
.mi.off .tag { color:var(--muted); background:transparent; border:1px dashed var(--line); }
.sidebar-foot { margin-top:auto; padding:10px 8px 0; border-top:1px dashed var(--line); font-size:12px;
                color:var(--muted); display:flex; flex-direction:column; gap:6px; }
.content { padding:24px 28px 56px; display:flex; flex-direction:column; gap:18px; max-width:1100px; }
.page-head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.page-head h1 { font-size:20px; }

/* --- 部品 --- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line);
       background:var(--surface); color:var(--ink); border-radius:6px; padding:6px 14px; font:inherit;
       font-size:13px; cursor:pointer; text-decoration:none; white-space:nowrap; }
.btn:hover { border-color:var(--accent); }
.btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:600; }
.btn.ghost { background:transparent; }
.btn.block { width:100%; padding:9px 14px; }
.btn.link { border:0; background:none; padding:0; color:var(--accent); text-decoration:underline; }
.btn:focus-visible, .input:focus-visible, .member:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.btn[disabled] { opacity:.5; cursor:not-allowed; }

.input { width:100%; border:1px solid var(--line); border-radius:6px; padding:8px 10px; background:var(--surface);
         color:var(--ink); font:inherit; }
.field { display:flex; flex-direction:column; gap:4px; }
.field label { font-size:12px; color:var(--muted); }
.field .errors { color:var(--warn); font-size:12px; margin:0; padding:0; list-style:none; }
.help { font-size:12px; color:var(--muted); }

.alert { border:1px solid var(--warn); background:var(--warn-soft); color:var(--warn); border-radius:6px;
         padding:8px 12px; font-size:13px; }
.alert.ok { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }

/* 企業統合の確定: 企業ごとに同じ幅の列で見比べる */
table.compare { table-layout:fixed; width:100%; }
table.compare col.compare-label { width:130px; }
table.compare th, table.compare td { vertical-align:top; text-align:left; overflow-wrap:anywhere; }
table.compare tbody th { color:var(--muted); font-weight:600; background:var(--surface-2); }
table.compare tbody tr:nth-child(even) td { background:var(--surface-2); }
table.compare thead th { background:var(--surface); border-bottom:2px solid var(--line); }
.compare-head { display:flex; gap:8px; align-items:flex-start; }
.compare-no { flex:none; width:22px; height:22px; border-radius:50%; background:var(--accent-soft); color:var(--accent);
              display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.compare-name { font-weight:700; font-size:14px; color:var(--ink); }
.compare-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.compare-list.branches li { display:flex; flex-direction:column; padding:2px 0; border-bottom:1px dashed var(--line-soft); }
.compare-list.branches li:last-child { border-bottom:0; }
.compare-num { font-size:16px; }

/* 統合候補の段階（名前・短い説明・グループ数を分けて出す） */
.level-tabs { display:grid; grid-template-columns:repeat(auto-fit, minmax(118px, 1fr)); gap:8px; }
.level-tab { display:flex; flex-direction:column; gap:2px; padding:8px 10px; border:1px solid var(--line);
             border-radius:8px; background:var(--surface); color:var(--ink); text-decoration:none; }
.level-tab:hover { border-color:var(--warn); }
.level-tab .lt-name { font-weight:700; font-size:13px; color:var(--warn); }
.level-tab.merge .lt-name { color:var(--accent); }
.level-tab .lt-desc { font-size:12px; color:var(--muted); line-height:1.3; }
.level-tab .lt-count { font-size:12px; color:var(--muted); margin-top:2px; }
.level-tab .lt-count strong { font-size:18px; color:var(--ink); margin-right:2px; }
.level-tab.is-empty { background:var(--surface-2); }
.level-tab.is-empty .lt-name, .level-tab.is-empty .lt-count strong { color:var(--muted); }
.level-tab.on { border:2px solid var(--warn); background:var(--warn-soft); padding:7px 9px; }
.level-tab.merge.on { border-color:var(--accent); background:var(--accent-soft); }

/* 求人 要確認の確かめ方（求人詳細の上・企業の画面の欄） */
.review-box { border:1px solid var(--warn); background:var(--surface); border-radius:8px; padding:14px 16px; }
.review-box h3 { font-size:13px; margin:0 0 6px; }
.review-box p { margin:0; }
.review-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:12px 24px; }
.hint { padding:6px 10px; border-radius:6px; font-size:13px; }
.hint.likely { background:var(--accent-soft); color:var(--accent); }
.hint.check { background:var(--surface-2); color:var(--ink); }
.hint.caution { background:var(--warn-soft); color:var(--warn); font-weight:600; }
.fit-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13px; }
.fit-mark { display:inline-block; width:18px; text-align:center; font-weight:700; }
.fit-mark.ok { color:var(--accent); }
.fit-mark.ng { color:var(--warn); }
.fit-mark.none { color:var(--muted); }
.checklist { margin:0; padding-left:20px; font-size:13px; }
.review-table td { vertical-align:top; }
.review-table .hint { display:inline-block; padding:2px 8px; white-space:nowrap; }
.messages { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }

.panel { background:var(--surface); border:1px solid var(--line-soft); border-radius:8px; padding:16px; }
.panel h2 { font-size:15px; margin-bottom:10px; }
.cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.stack { display:flex; flex-direction:column; gap:10px; }
.row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.row .spacer { flex:1 1 auto; }

.chip { display:inline-block; border:1px solid var(--line); border-radius:99px; padding:0 9px; font-size:12px;
        color:var(--muted); background:var(--surface); white-space:nowrap; }
.chip.on { background:var(--accent-soft); border-color:transparent; color:var(--accent); }
.badge-admin { color:var(--admin); background:var(--admin-soft); border-radius:99px; padding:1px 9px; font-size:12px;
               white-space:nowrap; }

/* 中の絶対配置（.visually-hidden）が枠からはみ出してページを横に広げないよう、基準を枠にする */
.table-wrap { overflow-x:auto; position:relative; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { text-align:left; font-weight:600; font-size:12px; color:var(--muted); padding:8px; border-bottom:1px solid var(--line);
     white-space:nowrap; }
td { padding:8px; border-bottom:1px solid var(--line-soft); vertical-align:middle; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; }
tr.inactive td { color:var(--muted); }
.empty { color:var(--muted); text-align:center; padding:18px; }

/* --- 認証画面（メニューなし） --- */
.auth { min-height:100vh; display:flex; align-items:flex-start; justify-content:center; padding:56px 16px; }
.card { width:100%; max-width:380px; background:var(--surface); border:1px solid var(--line); border-radius:10px;
        padding:24px; display:flex; flex-direction:column; gap:14px; }
.card .title { font-size:18px; font-weight:700; }
.card .lead { color:var(--muted); font-size:12px; margin-top:-10px; }
.card .foot { border-top:1px dashed var(--line); padding-top:12px; font-size:12px; color:var(--muted); }
.members { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px;
           max-height:420px; overflow-y:auto; }
.member { width:100%; display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line-soft);
          border-radius:6px; background:var(--surface-2); color:var(--ink); font:inherit; cursor:pointer; text-align:left; }
.member:hover { border-color:var(--accent); background:var(--accent-soft); }
.member .when { margin-left:auto; font-size:11px; color:var(--muted); }
/* この端末で前回ログインした方（名前一覧の上） */
.remembered { display:flex; flex-direction:column; gap:10px; padding:14px; border:1px solid var(--accent);
              border-radius:6px; background:var(--accent-soft); }
.remembered-title { font-size:12px; font-weight:400; color:var(--muted); margin:0; }
.remembered-name { display:flex; align-items:baseline; gap:8px; font-size:16px; font-weight:700; overflow-wrap:anywhere; }
.remembered-name .when { margin-left:auto; font-size:11px; font-weight:400; color:var(--muted); white-space:nowrap; }
.remembered-login { padding-top:12px; padding-bottom:12px; font-size:15px; }
details.others > summary { font-size:12px; color:var(--accent); text-decoration:underline; }
details.others[open] > summary { margin-bottom:10px; }
/* 一覧を開いたときにページのスクロールバーが出て画面が横にずれないよう、スクロールバーの幅を先に取っておく */
html:has(main.auth) { scrollbar-gutter:stable; }
/* 開いた一覧も枠の中でスクロールさせる（利用者が多いとページが長くなりすぎるため） */
details.others .members { max-height:min(420px, 55vh); overflow-y:auto; overscroll-behavior:contain; }

@media (max-width:760px) {
  .layout { grid-template-columns:minmax(0,1fr); }
  .sidebar { flex-direction:row; flex-wrap:wrap; align-items:center; border-right:0; border-bottom:1px solid var(--line-soft);
             position:static; height:auto; overflow:visible; }
  .menu-label { display:none; }
  .sidebar-foot { margin-top:0; border-top:0; flex-direction:row; align-items:center; }
  .content { padding:16px; }
  .cols { grid-template-columns:minmax(0,1fr); }
  .auth { padding:24px 16px; }
}

/* --- 利用者管理 --- */
.radios { display:flex; gap:14px; flex-wrap:wrap; }
.radios label { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink); }
.radios input { accent-color:var(--accent); }
.kv { display:grid; grid-template-columns:auto 1fr; gap:4px 14px; font-size:13px; margin:0; }
.kv dt { color:var(--muted); }
.kv dd { margin:0; }
.secret { font-family:var(--mono); font-size:22px; letter-spacing:.06em; padding:12px 14px; border:1px dashed var(--accent);
          border-radius:8px; background:var(--accent-soft); color:var(--ink); user-select:all; word-break:break-all; }
.notes { margin:0; padding-left:18px; font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.narrow { max-width:620px; }
table.nowrap td { white-space:nowrap; }

/* --- 求人一覧 --- */
.content.wide { max-width:none; }
.mi .c { margin-left:auto; font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.mi.on .c { color:var(--accent); }
.row .grow { flex:1 1 240px; width:auto; }
.input.auto { width:auto; }
select.input { padding:6px 8px; }
.filter-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px 10px; }
.filter-grid .field span, .field.inline span { font-size:12px; color:var(--muted); }
.field.inline { flex-direction:row; align-items:center; gap:6px; }
.field.inline .input { width:auto; }
.check { display:inline-flex; align-items:center; gap:6px; font-size:13px; white-space:nowrap; }
.check input { accent-color:var(--accent); }
.chips { gap:6px; }
a.chip { text-decoration:none; }
a.chip:hover { border-color:var(--accent); }
.chip.warn { background:var(--warn-soft); border-color:transparent; color:var(--warn); }
.panel.flush { padding:0; }
table.jobs td { vertical-align:top; overflow-wrap:anywhere; }
/* 列の幅は中身によらず固定（ページを替えても同じ）。狭い画面では横にスクロール */
table.jobs { table-layout:fixed; min-width:1180px; }
table.jobs col.w-check { width:36px; }
table.jobs col.w-company { width:22%; }
table.jobs col.w-branch { width:10%; }
table.jobs col.w-category { width:15%; }
table.jobs col.w-employment { width:9%; }
table.jobs col.w-location { width:12%; }
table.jobs col.w-count { width:48px; }
table.jobs col.w-media { width:9%; }
table.jobs col.w-date { width:96px; }
table.jobs col.w-status { width:92px; }
table.jobs col.w-person { width:84px; }
table.jobs col.w-link { width:76px; }
table.jobs td.nowrap { white-space:normal; }   /* 固定幅からはみ出さないよう、長い値は折り返す */
table.jobs .sub { font-size:11px; color:var(--muted); }
td.nowrap { white-space:nowrap; }
/* 担当の絞り込み（打って絞り込み、スクロールしてクリックで選ぶ） */
.combo { position:relative; display:block; }
.combo-list { position:absolute; z-index:30; top:calc(100% + 4px); left:0; min-width:100%; max-height:300px;
              overflow-y:auto; margin:0; padding:4px 0; list-style:none; background:var(--surface);
              border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.14); }
.combo-list li { padding:7px 12px; cursor:pointer; white-space:nowrap; font-size:14px; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background:var(--accent-soft); }
.combo-list li:first-child { color:var(--muted); }
.pager { justify-content:center; }
.pager span.btn[aria-disabled] { opacity:.45; cursor:default; }
.bulkbar { position:sticky; bottom:0; box-shadow:0 -4px 12px rgba(0,0,0,.06); }
.tag-admin { font-size:10px; color:var(--admin); background:var(--admin-soft); border-radius:3px; padding:0 4px; }
fieldset.plain { border:0; padding:0; margin:0; min-width:0; }
fieldset.plain legend { padding:0; margin-bottom:4px; }

/* --- 求人詳細 --- */
.detail-cols { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:16px; align-items:start; }
.page-head .spacer { flex:1 1 auto; }
.kv dd.pre { white-space:pre-wrap; }
.kv dd.break { word-break:break-all; }
textarea.input { resize:vertical; line-height:1.6; }
.history { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; font-size:12px; }
.history li { display:flex; flex-wrap:wrap; gap:2px 8px; padding-bottom:6px; border-bottom:1px dashed var(--line-soft); }
.history .when { color:var(--muted); font-variant-numeric:tabular-nums; }
.panel h2 .tag-admin { margin-left:6px; vertical-align:middle; }
@media (max-width:980px) { .detail-cols { grid-template-columns:minmax(0,1fr); } }

/* --- ファイル取込 --- */
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px; }
.tile { border:1px solid var(--line-soft); border-radius:8px; padding:8px 10px; background:var(--surface-2); }
.tile .k { font-size:11px; color:var(--muted); }
.tile .v { font-size:20px; font-variant-numeric:tabular-nums; }
.tile.flag { border-color:var(--warn); background:var(--warn-soft); }
.tile.flag .k, .tile.flag .v { color:var(--warn); }
.scroll-y { max-height:320px; overflow-y:auto; }
details summary { cursor:pointer; font-size:13px; }
input[type=file].input { padding:6px; }

/* --- 取込・出力履歴 --- */
td.num.flagged { color:var(--warn); font-weight:600; }
.kv dd.break { word-break:break-all; }

/* --- 企業マスタ --- */
.branch-row { border:1px solid var(--line-soft); border-radius:6px; padding:8px; align-items:flex-end; }
.branch-row .field { min-width:120px; }
.branch-row .field.grow { flex:1 1 200px; }

/* --- ダッシュボード --- */
a.tile { color:inherit; text-decoration:none; }
a.tile:hover { border-color:var(--accent); }

/* --- 媒体・取込フォーマット --- */
table.columns td { vertical-align:top; }
table.columns td.order, .add-column .order { width:80px; }
table.columns td.order .input, .add-column .order .input { width:70px; }
.add-column { border-top:1px dashed var(--line); padding-top:12px; }
.add-column h3 { font-size:14px; }
.add-column .row { align-items:flex-end; }
.add-column .grow { flex:1 1 200px; }
.warn-text { color:var(--warn); }
details > form { margin-top:10px; }


/* --- ステータス・支店切り出しルール --- */
form.inline { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
form.inline.grow { flex:1 1 220px; }
form.inline.grow .input { flex:1 1 120px; width:auto; }
.btn.icon { padding:4px 9px; }
.status-list, .rule-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.status-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; border:1px solid var(--line-soft);
              border-radius:6px; padding:6px 8px; }
.status-row.inactive .input { color:var(--muted); }
.status-edit { display:flex; align-items:center; gap:6px; flex-wrap:wrap; flex:1 1 320px; }
.status-edit .name { flex:0 1 150px; width:auto; }
.status-edit .desc { flex:1 1 240px; width:auto; }
.status-row .count { min-width:70px; text-align:right; font-variant-numeric:tabular-nums; }
.rule-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.rule-group { border:1px solid var(--line-soft); border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; }
.rule-group h3 { font-size:14px; }
.rule-list li { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px;
                border-bottom:1px dashed var(--line-soft); padding-bottom:4px; }
.rule-list li.inactive > span { color:var(--muted); }
.add-rule { align-items:flex-end; border-top:1px dashed var(--line); padding-top:12px; }
.add-rule .grow { flex:1 1 200px; }

/* --- ダッシュボードの説明書 --- */
.manuals { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.manuals li { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.manuals a { font-weight:600; }

/* --- 使い方ガイド（static/js/tour.js） --- */
#tour-steps[hidden] { display:none; }
/* ボタンは JS が見出しに足す。ほかに何が並んでいても、いちばん右に出す */
.page-head .tour-open { margin-left:auto; }
.tour { position:fixed; inset:0; z-index:90; }
.tour[hidden] { display:none; }
/* 対象のまわりだけ明るく残す。対象のない手順（.plain）は画面全体を暗くする */
.tour-spot { position:fixed; border-radius:8px; border:2px solid var(--accent); pointer-events:none;
             box-shadow:0 0 0 9999px color-mix(in srgb, #000 42%, transparent); transition:all .18s ease; }
.tour.plain { background:color-mix(in srgb, #000 42%, transparent); }
.tour-pop { position:fixed; top:50%; left:50%; width:min(360px, calc(100vw - 32px)); max-height:calc(100vh - 32px);
            overflow-y:auto; background:var(--surface); border:1px solid var(--line); border-radius:10px;
            padding:14px 16px; display:flex; flex-direction:column; gap:10px;
            box-shadow:0 10px 30px rgba(0,0,0,.22); }
.tour.plain .tour-pop { transform:translate(-50%,-50%); }
.tour-pop:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.tour-ttl { font-size:15px; }
.tour-body { display:flex; flex-direction:column; gap:6px; font-size:13px; }
.tour-count { font-variant-numeric:tabular-nums; }
.tour-x { font-size:16px; line-height:1; padding:2px 8px; }
@media (max-width:760px) {
  /* 狭い画面では吹き出しを下に固定する（対象の近くに置く余白がないため） */
  .tour-pop, .tour.plain .tour-pop { top:auto; bottom:12px; left:16px; right:16px; width:auto; transform:none;
                                     max-height:60vh; }
}
@media (prefers-reduced-motion: reduce) { .tour-spot { transition:none; } }

/* --- 時間のかかる送信の待ち表示（base.html） --- */
.busy { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:16px;
        background:color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter:blur(2px); cursor:progress; }
.busy[hidden] { display:none; }
.busy-box { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:24px 28px;
            display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; max-width:360px;
            box-shadow:0 8px 28px rgba(0,0,0,.12); }
.busy-msg { font-weight:600; }
.busy-elapsed { font-variant-numeric:tabular-nums; min-height:1.7em; }
.spinner { width:36px; height:36px; border-radius:50%; border:3px solid var(--accent-soft); border-top-color:var(--accent);
           animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration:2.4s; } }
/* 企業マスタ「支店が要確認」の見比べ表・支店の統合の確認 */
tr.branch-groups > td { background:var(--surface-2); }
table.sub-table { width:auto; margin:4px 0 8px; font-size:12px; }
table.sub-table th, table.sub-table td { padding:4px 10px; }
/* 企業マスタの表: 列の幅は中身によらず固定（タブ・ページを替えても同じ）。狭い画面では横にスクロール */
table.companies { table-layout:fixed; min-width:900px; }
table.companies col.w-check { width:36px; }
table.companies col.w-alias { width:56px; }
table.companies col.w-phone { width:136px; }
table.companies col.w-branches { width:56px; }
table.companies col.w-jobs { width:72px; }
table.companies col.w-postings { width:72px; }
table.companies col.w-date { width:104px; }
table.companies col.w-review { width:72px; }
table.companies td.company { white-space:normal; overflow-wrap:anywhere; }
table.sub-table.fixed { width:100%; table-layout:fixed; }
table.sub-table.fixed td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
table.branch-table col.w-name { width:24%; }
table.branch-table col.w-phone { width:14%; }
table.branch-table col.w-other { width:20%; }
table.branch-table col.w-city { width:13%; }
table.branch-table col.w-kg, table.branch-table col.w-ac { width:11%; }
table.branch-table col.w-jobs { width:64px; }
table.candidate-table col.w-company { width:32%; }
table.candidate-table col.w-jobs { width:64px; }
table.candidate-table col.w-phone { width:22%; }
.branch-row { border:1px solid var(--line-soft); border-radius:8px; padding:8px 10px; gap:6px; align-items:stretch; }
.branch-row > .row { align-items:flex-end; }
.branch-row.flagged { border-color:var(--warn); background:var(--warn-soft); }
table.merge-fields th, table.merge-fields td { vertical-align:top; }
table.merge-fields tr.differs { background:var(--warn-soft); }
/* 統合候補のグループ・一括統合の履歴 */
.candidate-group { border:1px solid var(--line-soft); border-radius:8px; padding:8px 10px; }
details.batch { border:1px solid var(--line-soft); border-radius:8px; padding:8px 10px; }
details.batch > summary { cursor:pointer; font-weight:600; }
.help.warn { color:var(--warn); }
