/* 管理の画面（pages/admin.html）だけの部品。土台は console.css（tabana. の社内管理画面・運営画面と同じ紺・白・オレンジ）。
   ここには、admin.js が前の見た目（style.css）の名前で書いている部品と、takama. だけの部品（状態の札・地図の印・見本の帯）を置く。
   地図・日報・大画面は今までどおり style.css。 */

:root {
  /* 状態の色は地図と同じ（style.css）。移動中＝青、滞在＝橙、休憩＝青緑、電波なし＝灰、退勤＝薄い灰 */
  --moving: #1e6fc2; --stay: #d9740a; --break: #2a8579; --offline: #7a828b; --off: #b8bec5;
}

/* 上の帯のログアウト。スマホの「メニュー」は押したあとも紺の帯の上で読めるように（.btn:hover の白地だと字が消えていた） */
.con-top .who a { margin-left: 12px; }
.con-top .menu-btn:hover, .con-top .menu-btn:focus { background: var(--navy-2); color: #fff; }

/* ---------- 枠（前の .block）。中身の白いカード ---------- */
.con-main .block { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; overflow-x: auto; }
/* タブの中の見出し。console.css は h2 の大きさを決めていないので、ここで中身の見出しの大きさにそろえる */
#pane h2 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
#pane h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
#pane h2 + .hint, #pane h3 + .hint { margin-top: -4px; }

/* 横に並べる入力の列 */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > div { min-width: 0; }
.grow { flex: 1; }
.con-main .row .btn { min-height: 37px; }
.hint { margin: 6px 0 0; }
.error { margin: 8px 0; }
.notice { background: #fbf1dc; border: 1px solid #ead1a0; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 0 0 12px; }
.empty { padding: 26px 14px; color: var(--sub); text-align: center; font-size: 14px; }
.pins { font-family: Consolas, "Courier New", monospace; font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* 前の名前の小さいボタン（.btn.small）は .btn.sm と同じ */
.btn.small { padding: 3px 9px; font-size: 12px; }

/* ---------- 表（前の table.tbl）。console.css の .tbl は表を包む枠なので、表そのものには枠を付けない ---------- */
table.tbl { background: none; border: 0; border-radius: 0; padding: 0; overflow: visible; font-size: 13.5px; }
table.tbl th { background: none; }
table.tbl td { vertical-align: middle; }
table.tbl td.num { text-align: right; white-space: nowrap; }
table.tbl tr.open td { color: var(--stay); }

/* ---------- 状態の札と印（地図と同じ色） ---------- */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.moving { background: var(--moving); } .dot.stay { background: var(--stay); }
.dot.break { background: var(--break); } .dot.offline { background: var(--offline); } .dot.off { background: var(--off); }
/* 帯の「takama.」の「.」は文字のまま（上の丸印と同じ名前で、下にずれていた） */
.con-top h1 .dot { display: inline; width: auto; height: auto; margin: 0; border-radius: 0; vertical-align: baseline; background: none; }
.st { font-size: 11px; line-height: 1.6; padding: 1px 8px; border-radius: 10px; color: #fff; white-space: nowrap; }
.st.moving { background: var(--moving); } .st.stay { background: var(--stay); }
.st.break { background: var(--break); } .st.offline { background: var(--offline); } .st.off { background: #eef1f4; color: var(--sub); }
/* 注意の小さい札（前の .warn）。ボタンや帯の .warn とは別 */
span.warn { display: inline-block; font-size: 11px; color: #fff; background: var(--ng); border-radius: 10px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }

/* ---------- 届け先を地図で選ぶ ---------- */
.pmap { height: 380px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.pl { width: 12px; height: 12px; background: #fff; border: 2px solid var(--navy); transform: rotate(45deg); }
.pl-l { font-size: 10px; color: var(--navy); background: rgba(255, 255, 255, .85); padding: 0 4px; border-radius: 3px; white-space: nowrap; margin-top: 4px; }
@media (max-width: 760px) { .pmap { height: 300px; } }

/* ---------- 見本（お客さんが試す画面）の帯。common.js が出す ---------- */
.demobar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--txt); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px;
  padding: 8px 12px; box-shadow: 0 6px 20px rgba(10, 22, 36, .16); font-size: 13px; width: max-content; max-width: calc(100vw - 24px); }
.demobar .t { font-weight: 700; white-space: nowrap; }
.demobar .s { color: var(--sub); }
.demobar .k { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--txt); white-space: nowrap; }
.demobar select { width: auto; padding: 4px 6px; }
.demobar .c { background: var(--orange); color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.demobar .osm { font-size: 11px; color: var(--sub); white-space: nowrap; } .demobar .osm a { color: inherit; }
@media (max-width: 760px) { .demobar .s { display: none; } .demobar { bottom: 8px; gap: 4px 8px; flex-wrap: wrap; } }
body.has-demobar .con-main { padding-bottom: 90px; }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  .con-top .who span { display: none; }
  .row > div { flex: 1 1 140px; }
}

/* ---------- 印刷（集計の「印刷」など）。帯とメニューは出さない ---------- */
@media print {
  .con-top, .con-side, .noprint, .demobar, #service-notice { display: none !important; }
  body { background: #fff; }
  .con-body { display: block; }
  .con-main { padding: 0; max-width: none; }
  .page-head { margin-bottom: 8px; }
  .con-main .block { border: 0; padding: 0; }
}
