/* Seating chart tool */
.sc-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .sc-shell {
    grid-template-columns: 1fr;
  }
}

.sc-panel .sc-field {
  display: block;
  margin: 0 0 12px;
}

.sc-field > span {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
}

.sc-field textarea,
.sc-field input,
.sc-field select {
  width: 100%;
}

.sc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .sc-grid-2 {
    grid-template-columns: 1fr;
  }
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sc-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6fa;
  border: 1px solid #d7def0;
}

.sc-banner--error {
  background: #fff5f5;
  border-color: #f1b0b0;
}

.sc-banner--warn {
  background: #fff9e6;
  border-color: #f1d28a;
}

.sc-summary {
  font-weight: 600;
  margin: 6px 0 12px;
}

.sc-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sc-grid td {
  border: 1px solid #cfd6e6;
  padding: 0;
  vertical-align: top;
}

.sc-seat {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 6px 6px 8px;
  background: var(--sc-seat-bg, transparent);
  border: 0;
  text-align: left;
  color: inherit;
}

.sc-seat:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: -2px;
}

.sc-seat--blocked {
  --sc-seat-bg: #f0f2f7;
}

.sc-seat--violation {
  box-shadow: inset 0 0 0 2px #d11;
}

.sc-seat-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.sc-seat-name {
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
  word-break: break-word;
}

.sc-seat-group {
  margin-top: 4px;
  font-size: 11px;
  color: #374151;
  word-break: break-word;
}

.sc-attention {
  box-shadow: 0 0 0 2px #0b57d0 inset;
}

.sc-legend {
  margin: 6px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f7fb;
  border: 1px solid #d7def0;
}

.sc-legend-title {
  font-weight: 650;
  margin-bottom: 8px;
}

.sc-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.sc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #cfd6e6;
  flex: 0 0 auto;
}

.sc-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .sc-tables {
    grid-template-columns: 1fr;
  }
}

.sc-table {
  border: 1px solid #cfd6e6;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  break-inside: avoid;
}

.sc-table-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.sc-table-seats {
  margin: 0;
  padding-left: 18px;
}

.sc-table-seats li {
  padding: 4px 6px;
  border-radius: 10px;
  background: var(--sc-li-bg, transparent);
}

.sc-table-seats li.sc-li--violation {
  box-shadow: inset 0 0 0 2px #d11;
}

.sc-li-group {
  margin-left: 8px;
  font-size: 11px;
  color: #4b5563;
}

@media print {
  header,
  .lang-switch,
  .ad-slot,
  #comments,
  .footer-links {
    display: none !important;
  }

  .sc-legend {
    display: none !important;
  }

  .card {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .sc-seat {
    min-height: 46px;
    padding: 4px 4px 6px;
    --sc-seat-bg: transparent !important;
  }

  .sc-seat--violation {
    box-shadow: inset 0 0 0 1px #000;
  }
}
