/* BOXIES host — login helpers + content-slot page styles (not chrome). */

[hidden] { display: none !important; }

/* ── Login (premium entry) ── */
.boxies-login {
  position: relative;
}

.boxies-login__fs {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 10050;
}

.boxies-host .hall-login-page .auth-experience-box.boxies-login__card,
.boxies-host .boxies-login__card {
  width: min(580px, calc(100vw - 48px));
  max-width: 580px;
  margin: 0;
  padding: 48px 44px 44px;
  box-sizing: border-box;
}

.boxies-host .boxies-login__brand,
.boxies-host .hall-login-brand.boxies-login__brand {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  margin-right: -0.42em;
}

.boxies-login__subtitle {
  margin: 0 0 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.42);
}

.boxies-login__brand-mark {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.02em;
}

.boxies-host .boxies-login .auth-oauth-row {
  margin: 0;
}

.boxies-host .boxies-login .auth-oauth-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.boxies-host .boxies-login .auth-oauth-divider {
  margin: 28px 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.34);
}

.boxies-host .boxies-login__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.boxies-host .boxies-login .auth-field {
  gap: 8px;
  margin-bottom: 18px;
}

.boxies-host .boxies-login .auth-field > span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  opacity: 0.48;
}

.boxies-host .boxies-login .auth-field input {
  height: 52px;
  padding: 0 16px;
  padding-right: 48px;
  font-size: 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.boxies-host .boxies-login .auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.boxies-host .boxies-login .auth-field #bxEmail {
  padding-right: 16px;
}

.boxies-host .boxies-login .boxies-login__eye.auth-toggle-password {
  top: auto;
  right: 12px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  font-size: 0;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.boxies-host .boxies-login .boxies-login__eye:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

.boxies-host .boxies-login .boxies-login__eye svg {
  width: 16px;
  height: 16px;
  display: block;
}

.boxies-host .boxies-login .auth-remember-row {
  margin: 4px 0 22px;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.boxies-host .boxies-login .boxies-login__submit.auth-action-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boxies-host .boxies-login .auth-modal-message {
  margin-top: 18px;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .boxies-host .hall-login-page .auth-experience-box.boxies-login__card,
  .boxies-host .boxies-login__card {
    width: min(100%, calc(100vw - 32px));
    max-width: none;
    padding: 36px 24px 32px;
  }

  .boxies-host .boxies-login__brand,
  .boxies-host .hall-login-brand.boxies-login__brand {
    font-size: 1.15rem;
    letter-spacing: 0.36em;
    margin-right: -0.36em;
  }
}

#boxiesContent .boxies-page {
  max-width: min(920px, 100%);
}

/* ── Showrooms workspace shell ──
 * Content fills the panel. Only the table region scrolls.
 * Footer stays pinned to the bottom of the content area.
 */
.boxies-workspace:has(#boxiesContent.boxies-content--showrooms),
.boxies-workspace__panel:has(#boxiesContent.boxies-content--showrooms) {
  height: calc(
    100vh - var(--boxies-header-h) - var(--boxies-dock-h) - var(--boxies-dock-safe)
  );
  min-height: calc(
    100vh - var(--boxies-header-h) - var(--boxies-dock-h) - var(--boxies-dock-safe)
  );
  overflow: hidden;
}

#boxiesContent.boxies-content--showrooms {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(
    100vh - var(--boxies-header-h) - var(--boxies-dock-h) - var(--boxies-dock-safe)
  );
  max-height: calc(
    100vh - var(--boxies-header-h) - var(--boxies-dock-h) - var(--boxies-dock-safe)
  );
  min-height: 0;
  box-sizing: border-box;
  padding-bottom: 12px;
}

.boxies-workspace:has(#boxiesContent.boxies-content--showrooms) #boxiesContent.boxies-content--showrooms,
.boxies-workspace__panel:has(#boxiesContent.boxies-content--showrooms) #boxiesContent.boxies-content--showrooms {
  height: 100%;
  max-height: 100%;
}

#boxiesContent .boxies-page--showrooms {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

#boxiesContent .boxies-page__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.95);
}

#boxiesContent .boxies-page__desc {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  margin: 0 0 22px;
  line-height: 1.55;
}

#boxiesContent .boxies-showrooms-header {
  flex: 0 0 auto;
}

#boxiesContent .boxies-showrooms-header .boxies-page__desc {
  margin-bottom: 10px;
}

#boxiesContent .boxies-projects-order-status {
  flex: 0 0 auto;
  min-height: 1.25rem;
  margin: -4px 0 10px;
  padding: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

#boxiesContent .boxies-projects-order-status.is-error {
  color: #f0a0a0;
}

/* Scrollable table region — takes all remaining height */
#boxiesContent .boxies-showrooms-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#boxiesContent .admin-table-wrap {
  padding: 0 8px 8px;
}

#boxiesContent .boxies-showrooms-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: auto;
}

#boxiesContent .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--hall-text, rgba(255, 255, 255, 0.86));
}

#boxiesContent .admin-table th,
#boxiesContent .admin-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hall-border-hairline, rgba(255, 255, 255, 0.04));
  text-align: left;
  vertical-align: middle;
}

#boxiesContent .admin-table thead th {
  padding-top: 12px;
  padding-bottom: 14px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hall-text-faint, rgba(255, 255, 255, 0.34));
  background: transparent;
  font-weight: 550;
}

#boxiesContent .admin-table tbody tr:last-child td {
  border-bottom: 0;
}

#boxiesContent .admin-table tbody tr {
  transition: background 0.18s var(--hall-ease, ease);
}

#boxiesContent .admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

#boxiesContent .admin-table code {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--hall-text-faint, rgba(255, 255, 255, 0.34));
  background: none;
}

/* Continuous full-width table */
#boxiesContent .boxies-showrooms-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Padding lives on .boxies-cell so th/td geometry matches exactly */
#boxiesContent .boxies-showrooms-table th,
#boxiesContent .boxies-showrooms-table td {
  padding: 0;
  position: relative;
  overflow: visible;
  vertical-align: middle;
  box-sizing: border-box;
  border-bottom: 1px solid var(--hall-border-hairline, rgba(255, 255, 255, 0.04));
}

#boxiesContent .boxies-showrooms-table thead th {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid var(--hall-border-hairline, rgba(255, 255, 255, 0.06));
  font-size: 0.625rem;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hall-text-faint, rgba(255, 255, 255, 0.34));
  background: transparent;
}

#boxiesContent .boxies-showrooms-table thead th .boxies-th-label {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  line-height: 1.3;
}

#boxiesContent .boxies-showrooms-table tbody tr:last-child td {
  border-bottom: 0;
}

#boxiesContent .boxies-cell {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  overflow: hidden;
}

#boxiesContent .boxies-showrooms-table thead .boxies-cell {
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#boxiesContent .boxies-th-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Alignment: header and body share the same flex justification */
#boxiesContent .boxies-col-actions .boxies-cell,
#boxiesContent .boxies-col-drag .boxies-cell,
#boxiesContent .boxies-col-slug .boxies-cell,
#boxiesContent .boxies-col-status .boxies-cell,
#boxiesContent .boxies-col-public .boxies-cell,
#boxiesContent .boxies-col-updated .boxies-cell {
  justify-content: center;
  text-align: center;
}

#boxiesContent .boxies-col-name .boxies-cell {
  justify-content: flex-start;
  text-align: left;
}

#boxiesContent .boxies-col-actions .boxies-th-label,
#boxiesContent .boxies-col-slug .boxies-th-label,
#boxiesContent .boxies-col-status .boxies-th-label,
#boxiesContent .boxies-col-public .boxies-th-label,
#boxiesContent .boxies-col-updated .boxies-th-label {
  text-align: center;
}

#boxiesContent .boxies-col-name .boxies-th-label {
  text-align: left;
}

/*
 * Resize handle: 12px hit target centered on the column boundary.
 * Visible rule is exactly 1px on that boundary.
 */
#boxiesContent .boxies-col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 12px;
  height: 100%;
  transform: translateX(50%);
  cursor: col-resize;
  touch-action: none;
}

#boxiesContent .boxies-col-resizer::after {
  content: '';
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition:
    background 0.15s ease,
    width 0.15s ease,
    box-shadow 0.15s ease;
}

#boxiesContent .boxies-col-resizer:hover::after {
  width: 2px;
  background: #6fbf86;
}

#boxiesContent .boxies-col-resizer.is-active::after,
body.boxies-col-resizing .boxies-col-resizer.is-active::after {
  width: 3px;
  background: #6fbf86;
  box-shadow: 0 0 0 1px rgba(111, 191, 134, 0.2);
}

body.boxies-col-resizing,
body.boxies-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

#boxiesContent .boxies-showrooms-table td.boxies-col-updated {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  white-space: nowrap;
}

#boxiesContent .boxies-showroom-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
  min-width: 0;
  width: 100%;
}

#boxiesContent .boxies-showroom-slug {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#boxiesContent .table-actions {
  white-space: nowrap;
}

#boxiesContent .boxies-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Generous space between Editar and the Clonar/Eliminar group */
#boxiesContent .boxies-row-actions__gap {
  display: inline-block;
  width: 28px;
  flex-shrink: 0;
}

/* Slightly more space between Clonar and Eliminar */
#boxiesContent .boxies-row-actions .boxies-icon-action--danger {
  margin-left: 10px;
}

#boxiesContent .boxies-icon-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hall-btn-border, rgba(255, 255, 255, 0.14));
  border-radius: var(--hall-radius-pill, 999px);
  background: var(--hall-btn-bg, rgba(255, 255, 255, 0.03));
  color: var(--hall-text, rgba(255, 255, 255, 0.72));
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color var(--boxies-transition, 0.18s ease),
    background var(--boxies-transition, 0.18s ease),
    border-color var(--boxies-transition, 0.18s ease),
    opacity var(--boxies-transition, 0.18s ease);
}

#boxiesContent .boxies-icon-action:hover:not(:disabled) {
  color: var(--hall-text, #fff);
  background: var(--hall-btn-hover-bg, rgba(255, 255, 255, 0.07));
  border-color: var(--hall-btn-hover-border, rgba(255, 255, 255, 0.22));
}

#boxiesContent .boxies-icon-action:disabled {
  opacity: 0.35;
  cursor: default;
}

#boxiesContent .boxies-icon-action--danger:hover:not(:disabled) {
  color: #ffc9c9;
  border-color: rgba(240, 160, 160, 0.45);
  background: rgba(240, 160, 160, 0.08);
}

#boxiesContent .boxies-icon-action.is-busy-label {
  width: auto;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#boxiesContent .boxies-showroom-drag-th .boxies-cell,
#boxiesContent .boxies-showroom-drag .boxies-cell {
  padding-left: 6px;
  padding-right: 6px;
}

#boxiesContent .boxies-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: grab;
  letter-spacing: -0.15em;
  font-size: 0.85rem;
  line-height: 1;
}

#boxiesContent .boxies-drag-handle:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

#boxiesContent .boxies-drag-handle:active {
  cursor: grabbing;
}

#boxiesContent .boxies-showroom-row {
  cursor: grab;
}

#boxiesContent .boxies-showroom-row.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

#boxiesContent .boxies-showroom-row.is-drag-over {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

#boxiesContent #boxiesProjectsBody.is-reordering {
  pointer-events: none;
  opacity: 0.72;
}

#boxiesContent .boxies-public-cell {
  vertical-align: middle;
}

#boxiesContent .boxies-public-toggle {
  vertical-align: middle;
}

#boxiesContent .boxies-public-toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

#boxiesContent .admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#boxiesContent .badge-success {
  color: rgba(140, 230, 180, 0.95);
  background: rgba(80, 180, 120, 0.12);
}

#boxiesContent .badge-muted {
  color: var(--hall-text-faint, rgba(255, 255, 255, 0.42));
  background: rgba(255, 255, 255, 0.04);
}

#boxiesContent .boxies-placeholder {
  max-width: 420px;
  padding: 8px 0;
}

#boxiesContent .boxies-placeholder__kicker {
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

/* Hall — empty resting state (Shell only; no workspace content) */
