/* =====================================================
   timetable.css
   output-1706.css から抽出した タイムテーブル用 CSS
   (CSS 変数を具体的な値に展開済み)
   ===================================================== */

/* ----- Tailwind ユーティリティ ----- */
*,
::before,
::after {
  box-sizing: border-box;
}
img,
video {
  max-width: 100%;
  height: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}
.rounded-box {
  border-radius: 0.5rem;
}
.border {
  border-style: solid;
  border-width: 1px;
}
.border-gray-200 {
  border-color: oklch(92.8% 0.006 264.531);
}
.table {
  display: table;
}

/* th 共通 */
.align-top {
  vertical-align: top;
}
.text-center {
  text-align: center;
}
.w-auto {
  width: auto;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.w-1\/3 {
  width: calc(1 / 3 * 100%);
}
.w-1\/4 {
  width: 25%;
}
.bg-blue-50 {
  background-color: var(--color-blue-50);
}
/* ----- チェックボックス ----- */
.table input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #afa9ec;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.table input[type="checkbox"]:checked {
  background: #534ab7;
  border-color: #534ab7;
}
.table input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: 3px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.table input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #afa9ec66;
}
.table input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* ----- daisyUI: table ----- */
.table {
  font-size: 0.875rem;
  position: relative;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0;
  border-radius: 0.5rem;
  text-align: left;
  &:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
    text-align: right;
  }
  tr.row-hover {
    &,
    &:nth-child(even) {
      &:hover {
        @media (hover: hover) {
          background-color: oklch(98% 0 0);
        }
      }
    }
  }
  :where(th, td) {
    padding-inline: 1rem;
    padding-block: 0.75rem;
    vertical-align: middle;
  }
  :where(thead, tfoot) {
    white-space: nowrap;
    color: oklch(21% 0.006 285.885);
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in oklab, oklch(21% 0.006 285.885) 60%, transparent);
    }
    font-size: 0.875rem;
    font-weight: 600;
  }
  :where(tfoot tr:first-child :is(td, th)) {
    border-top: 1px solid oklch(21% 0.006 285.885);
    @supports (color: color-mix(in lab, red, red)) {
      border-top: 1px solid
        color-mix(in oklch, oklch(21% 0.006 285.885) 5%, #0000);
    }
  }
  :where(.table-pin-rows thead tr) {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: oklch(100% 0 0);
  }
  :where(.table-pin-rows tfoot tr) {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background-color: oklch(100% 0 0);
  }
  :where(.table-pin-cols tr th) {
    position: sticky;
    right: 0;
    left: 0;
    background-color: oklch(100% 0 0);
  }
  :where(thead tr :is(td, th), tbody tr:not(:last-child) :is(td, th)) {
    border-bottom: 1px solid oklch(21% 0.006 285.885);
    @supports (color: color-mix(in lab, red, red)) {
      border-bottom: 1px solid
        color-mix(in oklch, oklch(21% 0.006 285.885) 5%, #0000);
    }
  }
}

/* ----- カスタム: セッションID ----- */
.tm_session_name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.6rem;
  border-radius: 4px;
  padding: 0 0.5rem;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 900;
  margin-right: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----- カスタム: 登壇者名 ----- */
.author {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: oklch(37.3% 0.034 259.733);
}

/* ----- カスタム: テーブル ----- */
.table-wrap {
  overflow-x: auto;
  border-radius: 0.5rem;
  border-style: solid;
  border-width: 1px;
  border-color: oklch(92.8% 0.006 264.531);
  -webkit-overflow-scrolling: touch;
}

.table th {
  background-color: oklch(96.7% 0.003 264.542);
  border-right-style: solid;
  border-right-width: 1px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-color: oklch(92% 0 0);
}
.table th:last-child {
  border-right-style: solid;
  border-right-width: 0px;
}

.table td.blank {
  background-color: oklch(96.7% 0.003 264.542);
}
.th-cell {
  display: block;
  @media (width >= 64rem) {
    display: table-cell;
  }
}
.table td {
  border-right-style: solid;
  border-right-width: 1px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-color: oklch(92% 0 0);
}
.table td:last-child {
  border-right-style: solid;
  border-right-width: 0px;
}
.table tr:last-child td {
  border-bottom-style: solid;
  border-bottom-width: 0px;
}
.table tr td:first-child {
  border-left-style: solid;
  border-left-width: 1px;
  border-color: oklch(92% 0 0);
}
.table thead th {
  border-top-style: solid;
  border-top-width: 1px;
  border-color: oklch(92% 0 0);
}

/* テーブル ユーティリティ上書き */
.table {
  font-size: 1rem;
  line-height: 2rem;
  & :where(thead tr :is(td, th), tbody tr:not(:last-child) :is(td, th)) {
    border-bottom: 1px solid oklch(21% 0.006 285.885);
    @supports (color: color-mix(in lab, red, red)) {
      border-bottom: 1px solid
        color-mix(in oklch, oklch(21% 0.006 285.885) 10%, #0000);
    }
  }
}
.table {
  :where(th, td) {
    @media (width < 48rem) {
      padding-inline: 0.75rem;
      padding-block: 0.5rem;
    }
  }
}

/* ----- Tailwind ユーティリティ: タブ周辺 ----- */
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.justify-center {
  justify-content: center;
}
.text-center {
  text-align: center;
}

/* ----- カスタム: タブグループ ----- */
.tab-group {
  margin-bottom: 1.5rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  @media (width >= 40rem) {
    flex-direction: row;
  }
}
.tab-group-btn {
  margin-top: -1px;
  cursor: pointer;
  border-style: solid;
  border-width: 1px;
  border-color: oklch(87.2% 0.01 258.338);
  background-color: #fff;
  padding-inline: 1rem;
  padding-block: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: oklch(37.3% 0.034 259.733);
  transition-property:
    color, background-color, border-color, outline-color, text-decoration-color,
    fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  &:first-child {
    margin-top: 0;
  }
  &:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }
  &:last-child {
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
  }
  &:hover {
    @media (hover: hover) {
      background-color: oklch(98.5% 0.002 247.839);
    }
  }
  @media (width >= 40rem) {
    margin-top: 0;
    margin-left: -1px;
    &:first-child {
      margin-left: 0;
      border-top-left-radius: 0.5rem;
      border-bottom-left-radius: 0.5rem;
      border-top-right-radius: 0;
    }
    &:last-child {
      border-top-right-radius: 0.5rem;
      border-bottom-right-radius: 0.5rem;
      border-bottom-left-radius: 0;
    }
  }
}
.tab-group-btn.active {
  position: relative;
  z-index: 10;
  font-weight: 700;
  background-color: #130183;
  color: #fff;
  border-color: #130183;
}
