/* 不依賴 Tailwind 編譯的少量共用樣式 */
body { font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.inp { margin-top: .25rem; width: 100%; border: 1px solid #cbd5e1; border-radius: .75rem; padding: .5rem .75rem; outline: none; background: #fff; font-size: .95rem; }
.inp:focus { border-color: #0ea5e9; box-shadow: 0 0 0 1px #38bdf8; }
.tabnum { font-variant-numeric: tabular-nums; }
.nav-a { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: .75rem; font-size: .9rem; color: #475569; }
.nav-a:hover { background: #f8fafc; }
.nav-a.on { background: #f0f9ff; color: #0369a1; font-weight: 600; }
/* 分類分頁列 */
#subnav { scrollbar-width: none; }
#subnav::-webkit-scrollbar { display: none; }
.tab-a { display: flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .55rem .9rem; font-size: .9rem; color: #64748b;
  border: 1px solid transparent; border-bottom: none; border-radius: .6rem .6rem 0 0; }
.tab-a:hover { color: #0369a1; background: #f8fafc; }
.tab-a.on { color: #0369a1; font-weight: 600; background: #f8fafc; border-color: #e2e8f0; box-shadow: inset 0 2px 0 #0284c7; }
.tab-n { min-width: 1.25rem; padding: 0 .35rem; border-radius: 999px; font-size: .7rem; line-height: 1.25rem; text-align: center; font-weight: 600; }
/* 可複選膠囊（排約偏好的時段） */
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; flex-direction: column; align-items: center; padding: .35rem .8rem; border: 1px solid #cbd5e1; border-radius: .75rem;
  font-size: .9rem; color: #475569; background: #fff; line-height: 1.2; }
.chip span small { font-size: .65rem; color: #94a3b8; }
.chip input:checked + span { background: #0284c7; border-color: #0284c7; color: #fff; }
.chip input:checked + span small { color: #e0f2fe; }
.chip input:focus-visible + span { box-shadow: 0 0 0 2px #7dd3fc; }
/* 預約看板 */
.slot-line { border-top: 1px solid #f1f5f9; }
.slot-line.hour { border-top: 1px solid #e2e8f0; }
.appt { position: absolute; left: 3px; right: 3px; border-radius: .5rem; padding: 2px 6px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; border: 1px solid; }
.offhours { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 6px, #f1f5f9 6px, #f1f5f9 12px); }
.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .no-print, aside, header { display: none !important; }
  main { padding: 0 !important; margin: 0 !important; }
  .md\:ml-56 { margin-left: 0 !important; }
  body { background: #fff !important; }
  .print-page { break-after: page; }
}
/* 每日摘要列印（2026-11-04 會議：小字、一頁印完，照舊系統的預約一覽表） */
@media print {
  .sum-table { font-size: 10px; }
  .sum-table td, .sum-table th { padding-top: 1px; padding-bottom: 1px; }
  .print-page { border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
}

/* 民國日期、24 小時制的選擇器（dateinput.js） */
/* 預約列表：點一筆固定反白（2026-11-06 會議） */
.row-sel, .row-sel:hover { background: #bae6fd !important; box-shadow: inset 4px 0 0 #0369a1; }
.act-cell { position: sticky; right: 0; background: #fff; box-shadow: -1px 0 0 #f1f5f9; }
.act-head { background: #f8fafc; }
tr:hover > .act-cell:not(.act-head) { background: #f7fbfe; }
.row-sel > .act-cell, .row-sel:hover > .act-cell:not(.act-head) { background: #bae6fd; }
.colpop { position: fixed; z-index: 60; width: 15rem; background: #fff; border: 1px solid #cbd5e1; border-radius: .75rem; box-shadow: 0 10px 25px rgba(15,23,42,.18); padding: .5rem; font-size: .875rem; }
.colpop li { display: flex; align-items: center; gap: .5rem; padding: .35rem .4rem; border-radius: .5rem; cursor: grab; }
.colpop li:hover { background: #f1f5f9; }
.colpop li.drop { box-shadow: inset 0 2px 0 #0369a1; }
.rocpop { position: fixed; z-index: 60; width: 17.5rem; background: #fff; border: 1px solid #cbd5e1; border-radius: .75rem; box-shadow: 0 10px 25px rgba(15,23,42,.18); padding: .6rem; font-size: .9rem; }
.rocpop button { cursor: pointer; }
.rocpop-h { display: flex; align-items: center; gap: .35rem; margin-bottom: .4rem; }
.rocpop-h > button { width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid #e2e8f0; }
.rocpop-h label { flex: 1; white-space: nowrap; }
.rocpop-h input { width: 3.4rem; border: 1px solid #cbd5e1; border-radius: .4rem; padding: .1rem .25rem; }
.rocpop-h select { border: 1px solid #cbd5e1; border-radius: .4rem; padding: .1rem; }
.rocpop-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.rocpop-w { color: #64748b; font-size: .78rem; margin-bottom: 2px; }
.rocpop-d { height: 2rem; border-radius: .5rem; }
.rocpop-d:hover { background: #f1f5f9; }
.rocpop-d.now { border: 1px solid #38bdf8; }
.rocpop-d.on { background: #0369a1; color: #fff; font-weight: 700; }
.rocpop-f { display: flex; justify-content: space-between; margin-top: .4rem; color: #0369a1; font-size: .85rem; }
.rocpop-t { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; max-height: 14rem; overflow-y: auto; position: relative; font-variant-numeric: tabular-nums; }
.rocpop-t button { padding: .25rem 0; border-radius: .4rem; }
.rocpop-t button:hover { background: #f1f5f9; }
.rocpop-t button.on { background: #0369a1; color: #fff; font-weight: 700; }
