@layer components {
  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-medium);
  }

  .table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small);
    white-space: nowrap;
  }

  .table th,
  .table td {
    padding: 0.6em 0.9em;
    text-align: left;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .table thead th {
    background: var(--color-canvas-subtle);
    font-size: var(--text-x-small);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-ink-dark);
    position: sticky;
    top: 0;
  }

  .table tbody tr:last-child td {
    border-bottom: none;
  }

  .table tbody tr:hover {
    background: var(--color-canvas-subtle);
  }

  .table tr.is-weekend td {
    background: var(--color-warning-bg);
  }

  .table tr.is-empty td {
    color: var(--color-ink-light);
  }

  .table tr.is-libur td {
    color: #d00;
  }

  .table tr.is-alpa td {
    color: #d00;
    font-weight: bold;
  }

  .table td.is-scan {
    font-variant-numeric: tabular-nums;
    color: var(--color-ink-dark);
  }
}
