/* =========================================================
   この画面（入札情報データベース）だけの見た目
   土台は style.css（グループウェア カタリスト Office と同じファイル）。値はそこの変数（--sp-*・--fs-*・色）を使う。
   選択中・自社の行に、左の太い線は付けない（グループウェアと同じ決まり）。
   ========================================================= */

/* ページ全体の幅。表の列（事務所・件名・業者）が多いので、グループウェアの 1440px より広げる（2026-12-02 ユーザー指示） */
:root{ --wide: 1920px; }

/* ヘッダーの名前（ロゴの代わりの文字） */
.brand{ font-size: var(--fs-l); font-weight: 700; letter-spacing: .02em; }
.brand__area{ margin-left: var(--sp-xxs); padding: 0 6px; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r-s); font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; }
.hd__user{ text-decoration: none; }
.hd__user .ic{ width: 16px; height: 16px; }

/* 見出しの下の札 */
.ph__badges{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-x3s); }

/* 一覧の上の並び。絞り込みの欄は PC ではそのまま横に並べ、スマホでは「絞り込み」ボタンで開く */
.listbar__f{ display: contents; }
.listbar__ftg{ display: none; }
.listbar__ftg b{ font-weight: 700; }
.listbar select{ width: auto; min-width: 9em; max-width: 16em; }
.lbtog{ min-height: 42px; white-space: nowrap; }
.lbtog input:disabled + span{ color: var(--text-disabled); }
.listbar__sum{ margin-left: var(--sp-xs); color: var(--text-grey); }

/* 並べ替えのできる見出し */
.thsort{ display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; white-space: nowrap; }
.thsort .ic{ width: 14px; height: 14px; opacity: .55; }
th.is-sorted .thsort .ic{ opacity: 1; }
th[aria-sort="ascending"] .thsort .ic path{ d: path("M8 14l4-4 4 4"); }
th[aria-sort="descending"] .thsort .ic path{ d: path("M8 10l4 4 4-4"); }
.thsort:hover{ text-decoration: underline; text-underline-offset: 3px; }
.tbl th.num .thsort{ justify-content: flex-end; }

/* 表の中の補足 */
.tbl__sub{ display: block; margin-top: 2px; color: var(--text-grey); font-size: var(--fs-xs); font-weight: 400; }
.tbl__main{ min-width: 18em; }
/* 日付・数字・等級は折り返さない。業種・業者名は折り返してよいが、2〜3文字で折れないよう幅を残す */
@media (min-width: 721px){
  .tbl--list td.nw{ white-space: nowrap; }
  .tbl--list .w9{ min-width: 9em; }
  .tbl--list th.tbl__main{ width: 40%; }      /* 余った幅は件名に回す（ほかの欄は中身の幅） */
  /* 欄が多いので、欄の間の余白は 12px（両端は 16px のまま） */
  .tbl--list th, .tbl--list td{ padding-left: 12px; padding-right: 12px; }
  .tbl--list th:first-child, .tbl--list td:first-child{ padding-left: var(--sp-xs); }
  .tbl--list th:last-child, .tbl--list td:last-child{ padding-right: var(--sp-xs); }
}
.tbl td.num{ white-space: nowrap; }
.tbl tr.is-own td{ background: #eefafa; }
.tbl tr.is-own:hover td{ background: var(--column); }
.tbl tr.is-off td{ color: var(--text-grey); }
.stat{ display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.days{ display: block; color: var(--text-grey); font-size: var(--fs-xs); white-space: nowrap; }
.days.is-late{ color: var(--danger); font-weight: 700; }
dd .days{ display: inline; margin-left: var(--sp-xxs); }
.chips{ display: flex; flex-wrap: wrap; gap: 4px; }
.chip{ display: inline-block; padding: 0 var(--sp-xxs); border-radius: var(--r-s); background: var(--over-bg); color: var(--text); font-size: var(--fs-xs); line-height: 1.8; }

/* ページ送り（Pagination の形） */
.pager{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-xxs); padding: var(--sp-xs); border-top: 1px solid var(--border); }
.pager:empty{ display: none; }
.pager__info{ color: var(--text-grey); font-size: var(--fs-s); }
.pager__btns{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-x3s); }
.pager__n{ min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: var(--r-m); background: none; color: var(--text); font-size: var(--fs-s); }
.pager__n:hover{ background: var(--white-hover); }
.pager__n.is-current{ border-color: var(--btn); background: var(--btn); color: var(--on-brand); font-weight: 700; }
.pager__gap{ padding: 0 2px; color: var(--text-grey); }
.iconbtn .ic{ width: 16px; height: 16px; }

/* パネルの中の文 */
.panel__note{ padding: 0 var(--sp-s); margin-top: var(--sp-x3s); color: var(--text-grey); font-size: var(--fs-s); }
.panel__hd + .panel__note{ margin-top: var(--sp-xxs); }
.panel__note + .tblwrap{ margin-top: var(--sp-xs); }
.panel__bd--top{ padding-bottom: var(--sp-xs); }
.more{ margin-top: var(--sp-s); font-size: var(--fs-s); }
.more a{ display: inline-flex; align-items: center; gap: 2px; }
.more .ic{ width: 14px; height: 14px; }
.hint{ margin-top: var(--sp-xs); color: var(--text-grey); font-size: var(--fs-s); }

/* 添付ファイル */
.files{ display: grid; gap: var(--sp-xxs); }
.files li{ display: flex; align-items: flex-start; gap: var(--sp-xxs); }
.files .ic{ width: 18px; height: 18px; margin-top: 2px; color: var(--text-grey); }
.files b{ display: block; font-weight: 700; }
.files small{ display: block; color: var(--text-grey); overflow-wrap: anywhere; }

/* 集計の帯 */
.tbl .bar{ width: 120px; }

/* 自社の設定 */
.ownpick{ display: grid; gap: var(--sp-xs); }
.ownpick__cur{ display: grid; gap: 2px; }
.ownpick__cur b{ font-size: var(--fs-l); }
.ownpick .search__box{ max-width: 480px; }
.ownpick__list{ max-width: 480px; border-radius: var(--r-m); }
.ownpick__list:not(:empty){ border: 1px solid var(--border); padding: var(--sp-x3s) 0; }
.ownpick__list:empty{ display: none; }
.ownpick__none{ padding: var(--sp-xxs) var(--sp-xs); font-size: var(--fs-s); }
.cset{ min-width: 0; margin: 0; padding: 0; border: 0; }
.cset legend{ padding: 0; }
.cset__n{ color: var(--text-grey); font-size: var(--fs-s); font-weight: 400; }
.cset .cklist{ gap: 0 var(--sp-s); }
.cset .ck small{ font-size: var(--fs-xs); }
.cset__acts{ display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-top: var(--sp-xxs); }
.panel .cset__acts .btn{ margin-top: var(--sp-xs); }

/* 画面の下（出典） */
.ft{ border-top: 1px solid var(--border); background: var(--white); }
.ft__in{ display: grid; gap: var(--sp-x3s); max-width: var(--wide); margin: 0 auto; padding: var(--sp-s) var(--gutter); font-size: var(--fs-s); }

@media (max-width: 720px){
  .brand{ font-size: var(--fs-m); }
  .brand__area{ display: none; }
  .hd__uname{ max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
  .listbar__ftg{ display: inline-flex; }
  .listbar__f{ display: none; }
  .listbar.is-fopen .listbar__f{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs); width: 100%; }
  .listbar select{ flex: 1 1 45%; max-width: none; min-width: 0; }
  .listbar__count{ flex: 1 1 auto; white-space: normal; }
  .listbar__sum{ display: block; margin-left: 0; }
  .tabbar{ flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabbar__i{ flex: none; white-space: nowrap; }
  .tbl__main{ min-width: 0; }
  .panel__note{ padding: 0 var(--sp-xs); }
  .tbl .bar{ width: 100%; }
  .pager{ justify-content: center; }
  .pager__info{ width: 100%; text-align: center; }
}

/* パネルの右上にリンクを2つ並べるとき（トップの「ICT だけにする」と「すべて見る」） */
.panel__links{ display: inline-flex; align-items: center; gap: var(--sp-s); }
