/* MotelClean — Console da Recepção & Gerência (/recepcao)
 * Claro Operacional: legível a 2 metros no balcão, alvos >= 44x44px, fontes >= 12px, inputs >= 16px.
 */

.rec-header {
  gap: 12px;
}

.rec-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.rec-brand-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.rec-terminal-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rec-role-badge {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  color: var(--primary);
}

.rec-sound-btn.is-on {
  background: var(--st-vistoria-bg);
  border-color: var(--st-vistoria-bd);
  color: #1D4ED8;
}

.rec-root {
  max-width: 1380px;
}

.rec-login-active .login-shell {
  min-height: calc(100dvh - var(--header-h) - 40px);
  padding-top: 12px;
  padding-bottom: 16px;
}

.rec-boot-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-boot-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
}

.rec-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Tabs Navigation
   ========================================================================== */
.rec-tabs {
  position: sticky;
  top: calc(var(--header-h) + 6px);
  z-index: 25;
  box-shadow: var(--shadow-xs);
}

.rec-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tab-btn.is-active .rec-tab-count {
  background: var(--primary-soft);
  color: var(--primary);
}

.rec-tab-count--alert {
  background: var(--st-suja);
  color: #FFFFFF;
}

.rec-tab-count--vistoria {
  background: var(--st-vistoria);
  color: #FFFFFF;
}

/* ==========================================================================
   Mapa de Suítes — KPI Summary Strip (Clickable)
   ========================================================================== */
.rec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
}

.rec-kpi-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  min-height: 82px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  text-align: left;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.rec-kpi-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.rec-kpi-btn.is-active {
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-sm);
  background: var(--primary-soft);
}

.rec-kpi-btn--pronta { border-left-color: var(--st-pronta); }
.rec-kpi-btn--pronta.is-active { background: var(--st-pronta-bg); box-shadow: 0 0 0 2px var(--st-pronta); }

.rec-kpi-btn--suja { border-left-color: var(--st-suja); }
.rec-kpi-btn--suja.is-active { background: var(--st-suja-bg); box-shadow: 0 0 0 2px var(--st-suja); }

.rec-kpi-btn--limpando { border-left-color: var(--st-limpando); }
.rec-kpi-btn--limpando.is-active { background: var(--st-limpando-bg); box-shadow: 0 0 0 2px var(--st-limpando); }

.rec-kpi-btn--vistoria { border-left-color: var(--st-vistoria); }
.rec-kpi-btn--vistoria.is-active { background: var(--st-vistoria-bg); box-shadow: 0 0 0 2px var(--st-vistoria); }

.rec-kpi-btn--manutencao { border-left-color: var(--st-manutencao); }
.rec-kpi-btn--manutencao.is-active { background: var(--st-manutencao-bg); box-shadow: 0 0 0 2px var(--st-manutencao); }

.rec-kpi-btn--prioridade { border-left-color: #B91C1C; }
.rec-kpi-btn--prioridade.is-active { background: var(--st-suja-bg); box-shadow: 0 0 0 2px #B91C1C; }

.rec-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.rec-kpi-val {
  font-size: 1.85rem;
  font-weight: 850;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.rec-controls-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.rec-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rec-controls-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 320px;
}

.rec-search-wrap {
  position: relative;
  flex: 1 1 210px;
  min-width: 180px;
}

.rec-search-wrap .mc-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-subtle);
  pointer-events: none;
}

.rec-search-input {
  padding-left: 38px;
}

.rec-ala-select {
  flex: 0 1 200px;
  min-width: 150px;
}

.rec-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rec-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-pronta);
  flex-shrink: 0;
}

/* ==========================================================================
   Live Suite Grid (Designed for 2-Meter Desk Visibility)
   ========================================================================== */
.rec-suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 296px), 1fr));
  gap: 14px;
}

.suite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 6px solid var(--border-strong);
  border-left: 6px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 140ms ease, transform 100ms ease, border-color 140ms ease;
}

.suite-card:hover {
  box-shadow: var(--shadow-md);
}

.suite-card--pronta {
  border-top-color: var(--st-pronta);
  border-left-color: var(--st-pronta);
}

.suite-card--suja {
  border-top-color: var(--st-suja);
  border-left-color: var(--st-suja);
  background: linear-gradient(180deg, #FFF7F7 0%, var(--surface) 72px);
}

.suite-card--limpando {
  border-top-color: var(--st-limpando);
  border-left-color: var(--st-limpando);
  background: linear-gradient(180deg, #FFFDF5 0%, var(--surface) 72px);
}

.suite-card--vistoria {
  border-top-color: var(--st-vistoria);
  border-left-color: var(--st-vistoria);
  background: linear-gradient(180deg, #F3F8FF 0%, var(--surface) 84px);
  box-shadow: 0 0 0 1px var(--st-vistoria-bd), var(--shadow-sm);
}

.suite-card--manutencao {
  border-top-color: var(--st-manutencao);
  border-left-color: var(--st-manutencao);
  background: linear-gradient(180deg, #FAF7FF 0%, var(--surface) 76px);
}

.suite-card.is-priority {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35), var(--shadow-sm);
}

.suite-card-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 12px;
}

.suite-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.suite-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.suite-code {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.suite-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suite-ala {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.suite-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.suite-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.suite-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.suite-timer--warn {
  background: var(--st-limpando-bg);
  border-color: var(--st-limpando-bd);
  color: #9A3412;
}

.suite-timer--over {
  background: var(--st-suja-bg);
  border-color: var(--st-suja-bd);
  color: #B91C1C;
}

.suite-maint-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--st-manutencao-bg);
  border: 1px solid var(--st-manutencao-bd);
  color: #6D28D9;
  font-size: 0.75rem;
  font-weight: 750;
}

.suite-detail-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
}

.suite-detail-strip--maid {
  background: var(--st-limpando-bg);
  border-color: var(--st-limpando-bd);
  color: #7C2D12;
}

.suite-detail-strip--vistoria {
  background: var(--st-vistoria-bg);
  border-color: var(--st-vistoria-bd);
  color: #1E3A8A;
}

.suite-detail-strip--block {
  background: var(--st-manutencao-bg);
  border-color: var(--st-manutencao-bd);
  color: #5B21B6;
}

.suite-detail-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
  background: rgba(246, 247, 249, 0.72);
  flex-wrap: wrap;
}

.suite-actions .btn {
  flex: 1 1 auto;
  padding: 8px 12px;
  font-size: 0.875rem;
}

.suite-actions .btn-icon {
  flex: 0 0 44px;
}

/* ==========================================================================
   Management CRUD Sections
   ========================================================================== */
.rec-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rec-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rec-section-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-section-sub {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.rec-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.rec-cell-strong {
  font-weight: 750;
  color: var(--ink);
}

.rec-cell-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Relatórios Tab
   ========================================================================== */
.rec-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rec-period-range {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.rec-report-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rec-report-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rec-subhead {
  font-size: 0.9375rem;
  font-weight: 750;
  color: var(--ink);
  margin-top: 4px;
}

.rec-cost-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   Marca & Config Tab (White-Label Studio)
   ========================================================================== */
.rec-config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.rec-config-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rec-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-color-picker {
  width: 52px;
  min-width: 52px;
  height: 44px;
  padding: 4px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.rec-upload-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.rec-upload-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rec-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rec-preview-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rec-preview-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px;
}

.rec-photo-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.rec-wl-sticky {
  position: sticky;
  top: calc(var(--header-h) + 74px);
}

.rec-wl-mockup {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.rec-wl-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-top: 5px solid var(--wl-primary, var(--primary));
  border-bottom: 1px solid var(--border);
}

.rec-wl-mock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rec-wl-mock-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.rec-wl-mock-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-wl-mock-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 750;
  color: #FFFFFF;
  background: var(--wl-accent, var(--accent));
}

.rec-wl-mock-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-wl-mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--wl-primary, var(--primary));
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rec-wl-mock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--wl-primary, var(--primary));
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
}

.rec-wl-rules-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   Modal Forms
   ========================================================================== */
.rec-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rec-inline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .rec-config-layout {
    grid-template-columns: 1fr;
  }

  .rec-wl-sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .rec-tabs {
    top: calc(var(--header-h) + 2px);
  }

  .rec-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rec-suite-grid {
    grid-template-columns: 1fr;
  }

  .rec-ala-select {
    flex: 1 1 100%;
  }

  .suite-code {
    font-size: 1.75rem;
  }
}
