/* Organizer hall schemes + Seat Hall Builder cabinet skin */

.hall-schemes__lead {
  width: 100%;
  margin: -8px 0 4px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.hall-banner {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.hall-banner--ok {
  background: var(--success-soft);
  color: var(--success);
}

.hall-banner--warn {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.hall-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 168px;
}

.hall-card__preview {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--surface-3), transparent 70%),
    var(--surface);
  border-right: 1px solid var(--border);
}

.hall-card__dots {
  display: grid;
  grid-template-columns: repeat(6, 8px);
  gap: 7px;
}

.hall-card__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.92;
}

.hall-card__ga {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hall-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  min-width: 0;
}

.hall-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hall-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hall-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.hall-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.hall-zones li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.hall-zones i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hall-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.hall-card__delete {
  margin-left: auto;
}

.hall-card__delete .is-danger {
  color: var(--danger);
}

.hall-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hall-chip--live {
  background: var(--success-soft);
  color: var(--success);
}

.hall-chip--draft {
  background: var(--surface-3);
  color: var(--text);
}

.hall-empty .hall-empty__visual {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 10px;
  margin-bottom: 8px;
}

.hall-empty__visual span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-3);
}

.hall-empty__visual span:nth-child(2),
.hall-empty__visual span:nth-child(5),
.hall-empty__visual span:nth-child(8) {
  background: var(--seat-a);
  opacity: 0.7;
}

.hall-modal-hint {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.hall-field-link {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hall-field-link:hover {
  color: var(--text);
}

.cabinet--constructor {
  align-items: start;
}

.hall-constructor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hall-constructor__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hall-constructor__title {
  width: auto;
  margin: 0;
  font-size: 28px;
}

.hall-constructor__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hall-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: te-step;
}

.hall-steps li {
  counter-increment: te-step;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.hall-steps li::before {
  content: counter(te-step);
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 700;
}

/* SHB editor — TicketEasy tokens */
body.te-theme .shb-editor-root--cabinet #shb-panel-sectors {
  display: none !important;
}

body.te-theme .shb-editor-root--cabinet {
  margin-top: 0;
}

body.te-theme .shb-editor-root--cabinet .shb-editor-toolbar {
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-toolbar__row--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
}

body.te-theme .shb-editor-root--cabinet .shb-field {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

body.te-theme .shb-editor-root--cabinet .shb-field--title {
  flex: 1 1 240px;
  max-width: 420px;
}

body.te-theme .shb-editor-root--cabinet .shb-field input,
body.te-theme .shb-editor-root--cabinet .shb-editor-panel input[type="text"],
body.te-theme .shb-editor-root--cabinet .shb-editor-panel input[type="number"],
body.te-theme .shb-editor-root--cabinet .shb-editor-panel select,
body.te-theme .shb-editor-root--cabinet .shb-editor-rowtools input,
body.te-theme .shb-editor-root--cabinet .shb-editor-rowtools select {
  min-height: 44px;
  padding: 8px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

body.te-theme .shb-editor-root--cabinet .shb-field input:focus,
body.te-theme .shb-editor-root--cabinet .shb-editor-panel input:focus,
body.te-theme .shb-editor-root--cabinet .shb-editor-panel select:focus,
body.te-theme .shb-editor-root--cabinet .shb-editor-rowtools input:focus,
body.te-theme .shb-editor-root--cabinet .shb-editor-rowtools select:focus {
  outline: none;
  border-color: var(--border-strong);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.te-theme .shb-editor-root--cabinet .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), opacity var(--duration);
}

body.te-theme .shb-editor-root--cabinet .button:hover {
  background: var(--surface-2);
}

body.te-theme .shb-editor-root--cabinet .button-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}

body.te-theme .shb-editor-root--cabinet .button-primary:hover {
  filter: brightness(0.94);
}

body.te-theme .shb-editor-root--cabinet .button:disabled {
  opacity: 0.4;
  pointer-events: none;
}

body.te-theme .shb-editor-root--cabinet .shb-editor-hint,
body.te-theme .shb-editor-root--cabinet .shb-panel-hint,
body.te-theme .shb-editor-root--cabinet .description {
  color: var(--text-muted);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-banner {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--success-soft);
  border-left: 3px solid var(--success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-elementsbar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

body.te-theme .shb-editor-root--cabinet .shb-elbar__label {
  color: var(--text-muted);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-main {
  gap: 14px;
  min-height: min(68vh, 720px);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-panel {
  flex: 0 0 280px;
  max-width: 300px;
  max-height: min(68vh, 720px);
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

body.te-theme .shb-editor-root--cabinet .shb-panel-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

body.te-theme .shb-editor-root--cabinet .shb-zone-row {
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border);
}

body.te-theme .shb-editor-root--cabinet .shb-zone-assign {
  border-top-color: var(--border);
}

body.te-theme .shb-editor-root--cabinet .shb-zone-assign-divider {
  border-top-color: var(--border);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-viewport__inner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #0a0a0c;
}

body.te-theme .shb-editor-root--cabinet .shb-admin-preview-svg {
  height: min(56vh, 640px);
  max-height: none;
  border-radius: var(--radius-lg);
}

body.te-theme .shb-editor-root--cabinet .shb-editor-rowtools {
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

body.te-theme .shb-editor-root--cabinet .shb-row-place-mode {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 4px;
}

body.te-theme .shb-editor-root--cabinet .shb-row-place-mode label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

body.te-theme .hall-status,
body.te-theme .shb-admin__status {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--seat-a);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
}

body.te-constructor .site-footer {
  display: none;
}

html[data-theme="light"] body.te-theme .shb-editor-root--cabinet .shb-editor-viewport__inner,
html[data-theme="light"] body.te-theme .shb-editor-root--cabinet .shb-admin-preview-svg {
  background: #16161c;
}

@media (max-width: 1100px) {
  .hall-grid {
    grid-template-columns: 1fr;
  }

  .hall-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hall-card {
    grid-template-columns: 1fr;
  }

  .hall-card__preview {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hall-constructor__title {
    font-size: 22px;
  }

  body.te-theme .shb-editor-root--cabinet .shb-editor-panel {
    max-height: none;
  }
}

/* Public seat map (plugin example, TicketEasy tokens) */
.te-seats-page .te-shb-root,
body.te-theme .te-shb-root.shb-root {
  margin: 28px auto 40px;
  max-width: 1080px;
  text-align: left;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  --shb-bg: var(--card-bg);
  --shb-panel: var(--surface);
  --shb-border: var(--border);
  --shb-text: var(--text);
  --shb-muted: var(--text-muted);
  --shb-primary: var(--accent);
}

body.te-theme .te-shb-root .shb-btn {
  font-family: inherit;
  border-radius: var(--radius-pill);
  min-height: 48px;
  padding: 10px 28px;
  font-weight: 600;
}

body.te-theme .te-shb-root .shb-btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}

body.te-theme .te-shb-root .shb-pricechip {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

body.te-theme .te-shb-root .shb-pricechip--active {
  border-color: var(--text);
}

body.te-theme .te-shb-root .shb-viewport {
  background: #0a0a0c;
  border-radius: var(--radius-lg);
}

body.te-theme .te-shb-root .shb-footer {
  padding: 16px 18px 22px;
  display: flex;
  justify-content: center;
}
