/* 行事曆、教室切換：包班表單、大廳揪團日曆、管理頁課表預覽共用 */
/* 場館行事曆 */
.cal-empty {
  text-align: center; color: var(--ink-soft); font-size: 14px;
  background: var(--cream); border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px 10px;
}
.cal, .cal-legend { --c-main: #c0485f; --c-soft: #fbe4e9; --c-head: #b3405a; }
.cal-blue.cal, .cal-blue.cal-legend { --c-main: #3f86b8; --c-soft: #e2f0fa; --c-head: #2f6f9c; }
.cal { border: 1.5px solid transparent; border-radius: 14px; }
.cal-row { display: grid; grid-template-columns: 36px repeat(5, 1fr); gap: 4px; }
.cal-row + .cal-row { margin-top: 6px; }
.cal-day {
  text-align: center; font-size: 14px; color: #fff; background: var(--c-head);
  border-radius: 10px; padding: 4px 0;
}
.cal-gap { text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 1; margin: 4px 0; }
.cal-axis, .cal-col { position: relative; height: var(--h); }
.cal-axis span {
  position: absolute; right: 2px; transform: translateY(-50%);
  font-size: 10px; color: var(--ink-soft); line-height: 1;
}
.cal-axis span:first-child { transform: none; }
.cal-col {
  border-radius: 10px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour) - 1px), #f1e3e6 calc(var(--hour) - 1px) var(--hour))
    0 var(--off) / 100% 100% no-repeat,
    #fcf8f8;
}
.cal-blk {
  position: absolute; left: 1px; right: 1px; border-radius: 9px;
  font: inherit; font-size: 10px; line-height: 1.25; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px; overflow: hidden; white-space: pre-line; word-break: break-all;
}
.cal-blk small { font-size: 9.5px; opacity: .85; }
.cal-blk.busy { background: #e7e7e7; color: #999; }
.cal-blk.free {
  background: #fff; border: 1.5px dashed var(--c-main); color: var(--c-main);
  cursor: pointer; transition: transform .12s, background .12s;
}
.cal-blk.free::after { content: "+"; font-size: 16px; line-height: 1; opacity: .55; }
.cal-blk.free:active { transform: scale(.94); }
.cal-blk.free[aria-pressed=true] { background: var(--c-main); border-style: solid; color: #fff; }
.cal-blk.free[aria-pressed=true]::after { content: "✓"; opacity: 1; }
.cal-legend { display: flex; gap: 12px; justify-content: center; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.lg-free { border: 1.5px dashed var(--c-main); }
.lg-on { background: var(--c-main); }
.lg-busy { background: #ececec; }
/* 教室切換 */
.room-tabs { --c-main: #c0485f; display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; }
.room-tabs.cal-blue { --c-main: #3f86b8; }
.room-tab {
  flex: none; font: inherit; font-size: 13px; cursor: pointer;
  border: 1.5px solid var(--c-main); color: var(--c-main); background: #fff;
  border-radius: 12px; padding: 6px 12px;
}
.room-tab[aria-pressed=true] { background: var(--c-main); color: #fff; }
.room-tab .cnt {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px;
  font-size: 11px; background: #fff; color: var(--c-main); margin-left: 2px; padding: 0 4px;
}
.room-tab[aria-pressed=false] .cnt { background: var(--c-main); color: #fff; }

