/* One scrolling listbox per unit. Rows are denser than a menu's so a column reads as a scale; the height
   is declared once and rows take it via `--lotics-menu-button-height`, so window and rows agree. */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-time-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--lotics-space-4);
    /* Also the unit the window counts in. */
    --lotics-time-columns-row: 36px;
    --lotics-menu-button-height: var(--lotics-time-columns-row);
  }

  /* An odd count, so the seated row sits near the middle with context either side. */
  .lotics-time-columns__column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 56px;
    max-height: calc(var(--lotics-time-columns-row) * 7);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--lotics-radius-control);
    background-color: var(--card);
    scrollbar-width: none;
  }

  .lotics-time-columns__column::-webkit-scrollbar {
    display: none;
  }

  /* Padding, not a spacer row, so the end values still reach the middle. */
  .lotics-time-columns__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: var(--lotics-space-2);
  }
}
