.v7-combobox {
  position: relative;
  width: 100%;
}

.v7-combobox-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.v7-combobox-input-wrap {
  position: relative;
}

.v7-combobox-input {
  width: 100%;
  padding-right: 42px !important;
}

.v7-combobox-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
}

.v7-combobox-menu {
  position: absolute;
  z-index: 1400;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.v7-combobox-menu[hidden] {
  display: none;
}

.v7-combobox-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.v7-combobox-option:hover,
.v7-combobox-option.active {
  background: #eaf2ff;
}

.v7-combobox-empty {
  padding: 10px;
  color: #64748b;
  font-size: 13px;
}

.v7-seat-board {
  min-width: 0;
}

.v7-seat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.v7-seat-head h1 {
  margin-bottom: 4px;
}

.v7-seat-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.v7-seat-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.v7-capacity-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #fff;
}

.v7-capacity-card strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.1;
}

.v7-capacity-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
}

.v7-capacity-card.over {
  border-color: #f1a7a7;
  background: #fff6f6;
}

.v7-capacity-progress {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.v7-capacity-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f6fed;
}

.v7-seat-preview {
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid #cbdcf4;
  border-radius: 14px;
  background: #f8fbff;
}

.v7-seat-preview-head strong,
.v7-seat-preview-head span {
  display: block;
}

.v7-seat-preview-head span {
  margin-top: 3px;
  color: #64748b;
}

.v7-seat-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.v7-seat-preview-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e0e9f5;
  border-radius: 10px;
  background: #fff;
}

.v7-seat-preview-grid article span {
  color: #64748b;
}

.v7-seat-preview-grid article strong {
  font-size: 18px;
}

.v7-legacy-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid #f3d18a;
  border-radius: 12px;
  background: #fffaf0;
}

.v7-legacy-note p {
  margin: 3px 0 0;
  color: #6b7280;
}

.v7-group-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fbff;
}

.v7-group-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.v7-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v7-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  background: #fff;
}

.v7-group-card strong,
.v7-group-card span,
.v7-group-card small {
  display: block;
}

.v7-group-card small {
  margin-top: 3px;
  color: #64748b;
}

.v7-seat-card {
  padding: 14px;
}

.v7-seat-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) minmax(100px, .6fr) repeat(2, minmax(165px, 1fr)) repeat(3, minmax(135px, .75fr));
  gap: 10px;
  align-items: end;
}

.v7-seat-selection-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e4eaf2;
}

.v7-seat-selection-tools > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v7-seat-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.v7-seat-player {
  display: grid;
  grid-template-columns: 34px minmax(220px, 1.35fr) minmax(175px, .9fr) minmax(230px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  background: #fff;
}

.v7-seat-player.selected {
  border-color: #8eb5ff;
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.08);
}

.v7-seat-player-readonly {
  grid-template-columns: minmax(220px, 1.35fr) minmax(175px, .9fr) minmax(175px, .9fr);
}

.v7-seat-readonly-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e4eaf2;
  color: #64748b;
}

.v7-seat-readonly-note strong {
  color: #172033;
}

.v7-seat-check input {
  width: 18px;
  height: 18px;
}

.v7-seat-identity strong,
.v7-seat-identity small,
.v7-seat-meta strong,
.v7-seat-meta span {
  display: block;
}

.v7-seat-identity small,
.v7-seat-meta span,
.v7-seat-interest small {
  color: #64748b;
  margin-top: 3px;
}

.v7-seat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.v7-seat-row-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.v7-seat-bulk {
  position: sticky;
  bottom: 12px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(150px, .9fr) minmax(240px, 1.5fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #a9c6ff;
  border-radius: 14px;
  background: rgba(250, 252, 255, .97);
  box-shadow: 0 12px 30px rgba(37, 78, 146, .16);
  backdrop-filter: blur(8px);
}

.v7-seat-bulk.hidden {
  display: none;
}

.v7-seat-bulk-count {
  align-self: center;
}

.v7-seat-bulk-count strong,
.v7-seat-bulk-count small {
  display: block;
}

.v7-seat-bulk-count small {
  margin-top: 3px;
  color: #64748b;
}

.v7-seat-row-commit {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 6px;
  flex: 1 1 210px;
}

.v7-seat-row-controls > button {
  align-self: stretch;
}

.v7-seat-empty {
  padding: 30px 12px;
  text-align: center;
  color: #64748b;
}

.v7-inline-message {
  margin-top: 8px;
  font-size: 13px;
  color: #2563eb;
}

.v7-seat-board .field label {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .v7-seat-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v7-seat-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v7-seat-player {
    grid-template-columns: 34px minmax(200px, 1fr) minmax(170px, .8fr);
  }

  .v7-seat-player-readonly {
    grid-template-columns: minmax(200px, 1.2fr) minmax(170px, .8fr) minmax(170px, .8fr);
  }

  .v7-seat-interest {
    grid-column: 2 / -1;
  }

  .v7-seat-bulk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .v7-seat-head,
  .v7-legacy-note,
  .v7-seat-selection-tools,
  .v7-group-card {
    align-items: stretch;
    flex-direction: column;
  }

  .v7-seat-head-actions {
    justify-content: flex-start;
  }

  .v7-seat-summary,
  .v7-group-grid,
  .v7-seat-filters,
  .v7-seat-bulk,
  .v7-seat-preview-grid {
    grid-template-columns: 1fr;
  }

  .v7-seat-player {
    grid-template-columns: 30px 1fr;
  }

  .v7-seat-player-readonly {
    grid-template-columns: 1fr;
  }

  .v7-seat-player > :not(.v7-seat-check) {
    grid-column: 2;
  }

  .v7-seat-player-readonly > :not(.v7-seat-check) {
    grid-column: 1;
  }

  .v7-seat-readonly-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .v7-seat-row-controls,
  .v7-seat-row-commit {
    width: 100%;
  }

  .v7-seat-row-commit {
    flex-basis: 100%;
  }
}
