/* ワッペン(NAK-1833)。送付の台帳と店舗の在庫。HR BASE のフラットな表(角丸・カード・ピルなし)。スタイルはこの画面の中だけ */
.wp { font-variant-numeric: tabular-nums; }
.wp-bar .seg { margin-right: 6px; padding-right: 16px; border-right: 1px solid var(--line2); }
.wp-pick .combo { width: 140px; }
.wp-bar .search input { width: 120px; }

/* 行の中に一覧(combo)を開くので、表の内側でスクロールさせない(一覧が表の下端で切れる)。縦はページごと、横は幅が足りない時だけ */
.card:has(> .wp-table), .card:has(> .wp-stock) { overflow: visible; max-height: none; }
.wp-table { min-width: 860px; }
.wp-table th, .wp-table td { padding: 7px 8px; white-space: nowrap; vertical-align: top; }
.wp-table .wp-ck, .wp-table .wp-name, .wp-table .wp-rank { padding-top: 12px; }
.wp-table thead th { top: 0; }
.wp-table tbody tr:hover { background: var(--hover); }
.wp-table tbody tr.wp-on { background: var(--selected); }
.wp-table tbody tr.wp-s-cancelled .wp-name, .wp-table tbody tr.wp-s-cancelled .wp-rank { color: var(--text3); text-decoration: line-through; }
.wp-ck { width: 32px; text-align: center; }
.wp-ck input { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
.wp-name { position: static; background: none; font-size: 13px; font-weight: 700; color: var(--txt); padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.wp-name .badge, .wp-name .sub, .wp-rank .sub { margin-left: 6px; font-weight: 500; }
.wp-table tbody tr:last-child .wp-name { border-bottom: 0; }
.wp-rank b { font-weight: 700; }
.wp-table input[type="text"], .wp-table input[type="number"], .wp-table .combo input[type="text"] { padding: 5px 8px; font-size: 12px; }
.wp-table .combo { width: 108px; }
.wp-table .wp-cb-store.combo { width: 132px; }
.wp-qty { width: 56px; }
.wp-table .wp-memo { width: 100%; }
.wp-note { width: 100%; min-width: 160px; }
/* 状態の下の日付。行内の編集はアンダーラインのリンク(押すと日付の入力欄) */
.wp-dates { display: flex; gap: 12px; margin-top: 4px; min-height: 18px; }
.wp-dl { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; color: var(--sub); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.wp-dl:hover { color: var(--txt); text-decoration-color: currentColor; }
.wp-dates .dp { width: 128px; }
.wp-dates input.wp-date { padding: 3px 6px; font-size: 12px; }

/* まとめて変える(選んだ行がある時だけ) */
.wp-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; margin-bottom: 8px; border-top: 2px solid var(--txt); }
.wp-bulk[hidden] { display: none; }
.wp-bulk-n { font-weight: 700; margin-right: 6px; }

/* ランクアップの取り込み。セクションの始まりは上辺2pxの黒罫 */
.wp-import { border-top: 2px solid var(--txt); padding: 12px 0 18px; margin-bottom: 18px; }
.wp-import-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.wp-import-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.wp-import-head #wp-import-close { margin-left: auto; }
.wp-cand { width: auto; min-width: 520px; }
.wp-cand th, .wp-cand td { padding: 6px 14px 6px 0; position: static; background: none; }
.wp-cand thead th { border-bottom: 1px solid var(--line); }
.wp-cand tbody th { font-weight: 700; color: var(--txt); font-size: 13px; border-bottom: 1px solid var(--line); }
.wp-cand .sub { margin-left: 6px; }
.wp-cand tr.wp-done th, .wp-cand tr.wp-done td { color: var(--text3); }
.wp-cand tbody tr:last-child th, .wp-stock tbody tr:last-child th { border-bottom: 0; }
.wp-import-foot { margin-top: 14px; }
.wp-excluded { margin: 10px 0 0; }
/* 開いた時の自動取込に失敗した時だけ(一覧はそのまま出す) */
.wp-alert { margin: 0 0 12px; font-size: 13px; color: var(--danger); }

/* 在庫 */
.wp-stock { min-width: 0; width: auto; }
.wp-stock th, .wp-stock td { padding: 5px 14px; }
.wp-stock tbody th { position: static; background: none; font-weight: 700; color: var(--txt); font-size: 13px; border-bottom: 1px solid var(--line); }
.wp-stock input[type="number"] { width: 76px; padding: 5px 8px; text-align: right; }
.wp-stock .dp { width: 136px; }
.wp-stock input.wp-date { padding: 5px 8px; }
.wp-diff { font-weight: 700; min-width: 64px; }
.wp-over { color: var(--warn); }
.wp-short { color: var(--danger); }

@media (max-width: 720px) {
  .wp-bar .seg { border-right: 0; padding-right: 0; }
  .wp-pick .combo, .wp-bar .search input { width: 100%; }
}
