/* eSuporte Ghost Cloud (#/ghost-cloud): painel do espaço, tabelas e diálogos. */
.gc-title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.gc-title > img {
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px -14px rgb(118 185 0 / 0.9);
}
.gc-title .kicker {
  margin-bottom: 6px;
}
.gc-switcher .form-select {
  min-width: 240px;
}
.gc-empty-state img {
  border-radius: 24px;
  filter: drop-shadow(0 18px 40px rgb(118 185 0 / 0.35));
}
.gc-inline-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto !important;
}

/* Visão geral: plano + uso */
.gc-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.gc-plan h2 {
  font-size: 1.8rem;
}
.gc-plan-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px 18px;
  width: 100%;
  margin: 4px 0 0;
}
.gc-plan-facts dt {
  color: #98d924;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gc-plan-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.gc-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.gc-plan-hint {
  color: #b8c6a8;
  font-size: 0.9rem;
}
.btn-ghost-light {
  color: #d9e3cc;
  border: 1px solid rgb(240 243 233 / 0.25);
  background: transparent;
}
.btn-ghost-light:hover {
  color: #101708;
  background: #f0f3e9;
}
.gc-usage .meters {
  margin-top: 6px;
}

/* Abas */
.gc-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  scrollbar-width: thin;
}
.gc-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.gc-tabs button:hover {
  color: var(--accent);
}
.gc-tabs button[aria-selected='true'] {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 6px 18px -10px rgb(118 185 0 / 0.9);
}
.gc-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.gc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 30px 0;
  color: var(--muted);
}
.gc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}
.gc-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}
.gc-search > .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
}
.gc-search .form-control {
  padding-left: 40px;
}
.gc-filter {
  flex: 0 1 220px;
}
.gc-count {
  color: var(--muted);
  font-size: 0.88rem;
}
.gc-toolbar .btn-ghost:last-child,
.gc-toolbar .btn-brand:last-child {
  margin-left: auto;
}
.gc-seats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.gc-seats .bi {
  color: var(--accent);
}
.gc-seats small {
  color: var(--muted);
}

/* Tabelas: viram cartões empilhados no celular, como a tabela de pagamentos. */
.gc-table-wrap {
  position: relative;
  overflow-x: auto;
}
.gc-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  margin: 0;
}
.gc-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gc-table td {
  vertical-align: middle;
}
.gc-table tbody tr {
  transition: background-color 0.2s;
}
.gc-table tbody tr:hover {
  background: var(--accent-soft);
}
.gc-table .form-select-sm {
  min-height: 36px;
  min-width: 150px;
  font-size: 0.88rem;
}
.gc-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.gc-name > .bi {
  color: var(--accent);
}
.gc-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}
.gc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--neutral-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}
.gc-mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.gc-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-black);
  color: #b8ec3a;
  font-size: 0.72rem;
  font-weight: 750;
}
.gc-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.gc-role.is-owner .bi {
  color: var(--warning);
}
.gc-note {
  max-width: 220px;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gc-note:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}
.gc-note:disabled {
  cursor: default;
}
.gc-toggle {
  padding: 0;
  border: 0;
  background: none;
}
.gc-actions {
  text-align: right;
  white-space: nowrap;
}
.gc-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.gc-icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.gc-icon-button.is-danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.stepper.is-small button {
  width: 32px;
  height: 32px;
}
.stepper.is-small output {
  min-width: 28px;
  font-size: 0.95rem;
}
.gc-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 10px;
  font-size: 1rem;
  font-weight: 700;
}
.gc-subtitle .bi {
  color: var(--accent);
}
.gc-hint {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.gc-hint .bi {
  color: var(--accent);
}
.gc-blank {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 42px 16px;
  text-align: center;
}
.gc-blank > .bi {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
}
.gc-blank span {
  max-width: 460px;
  color: var(--muted);
}
.gc-blank.is-error > .bi {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Diálogos */
.gc-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}
.gc-dialog.is-wide {
  width: min(640px, calc(100vw - 32px));
}
.gc-dialog::backdrop {
  background: rgb(8 10 7 / 0.55);
  backdrop-filter: blur(3px);
}
.gc-dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 42px);
}
.gc-dialog header,
.gc-dialog footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
}
.gc-dialog header {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.gc-dialog header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.gc-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}
.gc-dialog-body {
  overflow-y: auto;
  padding: 20px 22px;
}
.gc-dialog .form-alert {
  margin: 0 22px 12px;
}
.gc-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.gc-checks legend {
  grid-column: 1 / -1;
}
.gc-checks .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.gc-checks .form-check-input {
  margin: 0;
}
.gc-invite-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgb(118 185 0 / 0.4);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.gc-invite-result strong,
.gc-invite-result small {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.gc-invite-result strong .bi {
  color: var(--accent);
}
.gc-invite-result small {
  color: var(--muted);
}
.gc-invite-result small.is-warning {
  color: var(--warning);
}

@media (max-width: 991.98px) {
  .gc-overview {
    grid-template-columns: 1fr;
  }
  .gc-table thead {
    display: none;
  }
  .gc-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }
  .gc-table td {
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .gc-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .gc-table td:first-child {
    grid-column: 1 / -1;
  }
  .gc-table td.gc-actions {
    grid-column: 1 / -1;
    text-align: left;
  }
  .gc-table td.gc-actions:empty {
    display: none;
  }
  .gc-note {
    max-width: 100%;
  }
}
@media (max-width: 575.98px) {
  .gc-title {
    align-items: flex-start;
  }
  .gc-title > img {
    width: 44px;
    height: 44px;
  }
  .gc-panel {
    padding: 16px;
  }
  .gc-search {
    max-width: none;
  }
  .gc-filter {
    flex: 1 1 100%;
  }
  .gc-switcher,
  .gc-switcher .form-select {
    width: 100%;
    min-width: 0;
  }
  .dash-actions {
    width: 100%;
  }
  .gc-table .form-select-sm {
    min-width: 0;
    width: 100%;
  }
}
