/* Smart Seat Map preview — Excel grid replica (preview only) */
.seat-map-wrapper,
.smart-seat-preview-wrapper {
  overflow-x: auto;
  padding: 20px;
  max-width: 100%;
}

.seat-map-inner {
  display: inline-block;
  min-width: min-content;
}

.seat-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 10px;
}

.seat-row-aisle {
  min-height: 24px;
}

.row-label {
  width: 35px;
  min-width: 35px;
  flex: 0 0 35px;
  font-weight: bold;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  align-self: center;
  user-select: none;
}

.seat-grid {
  display: grid;
  column-gap: 4px;
  align-items: center;
  flex: 0 0 auto;
}

.seat,
.seat-placeholder {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.seat-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.seat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  border: 1px solid #9aaec0;
  border-radius: 4px;
  background: #fff;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
}

button.seat {
  appearance: none;
  -webkit-appearance: none;
}

.seat.clickable {
  cursor: pointer;
}

.seat.clickable:hover {
  outline: 2px solid #007bff;
  z-index: 2;
  position: relative;
}

.seat.selected,
.smart-seat-cell.selected {
  outline: 2px solid #007bff;
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007bff;
}

.seat.booked,
.seat.blocked {
  cursor: not-allowed;
}

.stage-block {
  margin-left: 35px;
  margin-top: 35px;
  height: 28px;
  background: #b7d7ee;
  border: 1px solid #7eb8d8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 500;
  font-size: 11px;
  color: #1a5276;
  box-sizing: border-box;
}

/* Admin live preview box on edit page */
#ssm-preview-wrap .seat-map-wrapper {
  border: 1px dashed #dee2e6;
  border-radius: 6px;
  background: #fafafa;
}

/* Handsontable Excel grid — always visible on edit page */
.ssm-hot-container {
  display: block;
  visibility: visible;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 0;
}

.ssm-hot-container .handsontable {
  font-size: 12px;
}

.ssm-hot-container td {
  text-align: center;
  vertical-align: middle;
}

.ssm-hot-container .htCore thead th {
  background: #f8f9fa;
  font-weight: 600;
}

.ssm-hot-container .handsontable .wtBorder.current {
  z-index: 2;
}

.ssm-hot-container .handsontable .area {
  background: rgba(0, 123, 255, 0.12);
}

/* Stage below Excel grid on edit page */
.ssm-edit-stage-block {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  margin-bottom: 0;
  background: #b7d7ee;
  border: 1px solid #7eb8d8;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 8px;
  font-weight: 600;
  font-size: 11px;
  color: #1a5276;
  box-sizing: border-box;
}

#ssm-form-actions {
  margin-bottom: 0;
}

/* Toolbar legend (unchanged) */
.ssm-legend {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
}

.smart-seat-toolbar .btn {
  margin: 2px;
}
