/*
 * Restaurant R10 (0309): the captain's seat and course strips, «أطلق», «طاولاتي», the sections and the notices tray.
 * Every colour, size, radius and shadow is a token of tokens.css; every direction is LOGICAL (inline/block,
 * start/end); touch targets are at least 44 px (tests/architecture/restaurant-r10-rules.test.ts).
 */

.team-bar {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-block: var(--s-2);
  border-block-end: 1px solid var(--line);
}
.team-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.team-strip .chip-btn,
.team-serve .chip-btn,
.team-fire,
.team-mine .btn,
.team-section .btn,
.team-tray summary,
.team-notice {
  min-block-size: 44px;
}
.team-strip .chip-btn[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}
.team-strip .chip-btn[data-current='true'] {
  border-block-end: 3px solid var(--accent);
}
.team-mine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.team-mine-row {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-2);
}
.team-mine-head,
.team-serve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.team-serve {
  margin-block-start: var(--s-2);
}
.bar__notices {
  position: relative;
}
.team-tray summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-inline: var(--s-2);
}
.team-tray[open] > ul {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 100%;
  z-index: 10;
  min-inline-size: 18rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s-2);
}
.team-notices {
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-notice {
  display: block;
  inline-size: 100%;
  text-align: start;
}
.team-notice--late {
  color: var(--stop);
}
.team-section {
  border: 1px solid var(--line);
  border-inline-start: 6px solid var(--accent);
  border-radius: var(--r-card);
  padding: var(--s-3);
  margin-block: var(--s-2);
}
.team-tables {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  border: 0;
  padding: 0;
}
.team-table,
.team-enforce {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-block-size: 44px;
}
.team-assign,
.team-edit,
.team-new {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin-block-start: var(--s-2);
}
.team-assigned {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* a section's hue: the menu's ten (0170), one token each */
.team-hue--amber {
  border-inline-start-color: var(--hue-0);
}
.team-hue--sea {
  border-inline-start-color: var(--hue-1);
}
.team-hue--green {
  border-inline-start-color: var(--hue-2);
}
.team-hue--rose {
  border-inline-start-color: var(--hue-3);
}
.team-hue--violet {
  border-inline-start-color: var(--hue-4);
}
.team-hue--slate {
  border-inline-start-color: var(--hue-5);
}
.team-hue--red {
  border-inline-start-color: var(--hue-6);
}
.team-hue--olive {
  border-inline-start-color: var(--hue-7);
}
.team-hue--gold {
  border-inline-start-color: var(--hue-8);
}
.team-hue--blue {
  border-inline-start-color: var(--hue-9);
}
