/* Admin UI tweaks */

/**
 * Calendario de reservas — modal crear/editar evento:
 * monto del "Total con IVA / importe a cobrar".
 */
.reservas-calendario-importe-cobrar-monto {
    font-size: xx-large;
}

/* Make Tiptap editors taller (e.g. Reglas). */
.tiptap-editor .ProseMirror {
  min-height: 220px;
}

/* Dashboard — date/month inputs legibles en claro y oscuro */
.dashboard-date-input {
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
}

html.dark .dashboard-date-input,
.dark .dashboard-date-input {
  color-scheme: dark;
}

.dashboard-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

html.dark .dashboard-date-input::-webkit-calendar-picker-indicator,
.dark .dashboard-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
}

html.dark .dashboard-panel-title {
  color: #f9fafb !important;
}

.dashboard-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgb(156 163 175) transparent;
}

.dashboard-ranking-label {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 120px;
}

html.dark .dashboard-ranking-label {
  color: #e5e7eb;
}

.dashboard-ranking-list::-webkit-scrollbar {
  width: 6px;
}

.dashboard-ranking-list::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-ranking-list::-webkit-scrollbar-thumb {
  background-color: rgb(156 163 175);
  border-radius: 9999px;
}

html.dark .dashboard-ranking-list {
  scrollbar-color: rgb(75 85 99) transparent;
}

html.dark .dashboard-ranking-list::-webkit-scrollbar-thumb {
  background-color: rgb(75 85 99);
}

/* Reportes de ventas — alinear botón con los filtros */
.reportes-ventas-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reportes-ventas-page-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(229 231 235);
}

html.dark .reportes-ventas-page-header {
  border-bottom-color: rgb(55 65 81);
}

.reportes-ventas-page-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(217 119 6);
}

html.dark .reportes-ventas-page-kicker {
  color: rgb(251 191 36);
}

.reportes-ventas-page-title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(3 7 18);
}

html.dark .reportes-ventas-page-title {
  color: rgb(255 255 255);
}

.reportes-ventas-page-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

html.dark .reportes-ventas-page-desc {
  color: rgb(156 163 175);
}

.reportes-ventas-filtros .fi-fo-grid,
.reportes-ventas-filtros .fi-section,
.reportes-ventas-filtros .fi-section-content-ctn,
.reportes-ventas-filtros .fi-section-content {
  background: transparent !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  box-shadow: none !important;
}

@media (min-width: 1280px) {
  .reportes-ventas-filtros .fi-fo-grid {
    align-items: end;
  }

  .reportes-ventas-filtros .reportes-ventas-filtro-accion {
    align-self: end;
    margin-bottom: 0.1rem;
  }

  .reportes-ventas-filtros .reportes-ventas-filtro-accion .fi-btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }
}

/* Panel y cards — mismos tokens de color que Filament (Zinc vía --gray-*) */

/* Resumen compacto — una fila de KPIs (cards estilo dashboard Resumen) */
.reportes-ventas-resumen {
  display: grid;
  grid-template-columns: repeat(var(--reportes-resumen-cols, 3), minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.reportes-ventas-resumen-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem;
}

.reportes-ventas-resumen-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(17 24 39);
}

.reportes-ventas-resumen-valor {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgb(3 7 18);
  font-variant-numeric: tabular-nums;
}

html.dark .reportes-ventas-resumen-label {
  color: rgb(255 255 255);
}

html.dark .reportes-ventas-resumen-valor {
  color: rgb(255 255 255);
}

@media (max-width: 768px) {
  .reportes-ventas-resumen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .reportes-ventas-resumen {
    grid-template-columns: 1fr;
  }
}

.reportes-ventas-empty {
  border-radius: 0.5rem;
  border: 1px dashed rgb(209 213 219);
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: transparent;
}

html.dark .reportes-ventas-empty {
  border-color: rgb(75 85 99);
}

.reportes-ventas-empty-icon {
  margin-left: auto;
  margin-right: auto;
  height: 2.5rem;
  width: 2.5rem;
  color: rgb(156 163 175);
}

html.dark .reportes-ventas-empty-icon {
  color: rgb(107 114 128);
}

.reportes-ventas-empty-title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(3 7 18);
}

html.dark .reportes-ventas-empty-title {
  color: rgb(255 255 255);
}

.reportes-ventas-empty-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

html.dark .reportes-ventas-empty-desc {
  color: rgb(156 163 175);
}

/* Hub de reportes */
.reportes-hub {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reportes-hub-intro {
  padding-bottom: 0.25rem;
}

.reportes-hub-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(217 119 6);
}

html.dark .reportes-hub-kicker {
  color: rgb(251 191 36);
}

.reportes-hub-title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(3 7 18);
}

html.dark .reportes-hub-title {
  color: rgb(255 255 255);
}

.reportes-hub-desc {
  margin-top: 0.25rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(107 114 128);
}

html.dark .reportes-hub-desc {
  color: rgb(156 163 175);
}

.reportes-hub-panel {
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
}

.reportes-hub-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reportes-hub-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(3 7 18);
}

html.dark .reportes-hub-panel-title {
  color: rgb(255 255 255);
}

.reportes-hub-panel-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

html.dark .reportes-hub-panel-desc {
  color: rgb(161 161 170);
}

.reportes-hub-badge {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(180 83 9);
  background-color: rgb(254 243 199);
}

html.dark .reportes-hub-badge {
  color: rgb(251 191 36);
  background-color: rgb(251 191 36 / 0.12);
}

.reportes-hub-grid {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.reportes-hub-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reportes-hub-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .reportes-hub-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reportes-hub-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reportes-hub-grid--4,
  .reportes-hub-grid--3 {
    grid-template-columns: 1fr;
  }

  .reportes-hub-panel {
    padding: 1rem;
  }
}

.reportes-hub-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reportes-hub-category + .reportes-hub-category {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(229 231 235);
}

html.dark .reportes-hub-category + .reportes-hub-category {
  border-top-color: rgb(255 255 255 / 0.1);
}

.reportes-hub-category-title {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(107 114 128);
}

html.dark .reportes-hub-category-title {
  color: rgb(161 161 170);
}

.reportes-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.reportes-hub-card:hover {
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
  transform: translateY(-1px);
}

html.dark .reportes-hub-card:hover {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 4px 14px rgb(0 0 0 / 0.35);
}

.reportes-hub-card--featured {
  min-height: 7.5rem;
}

.reportes-hub-card-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
}

.reportes-hub-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.reportes-hub-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(3 7 18);
}

html.dark .reportes-hub-card-title {
  color: rgb(255 255 255);
}

.reportes-hub-card-desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(107 114 128);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.dark .reportes-hub-card-desc {
  color: rgb(161 161 170);
}

.reportes-hub-card-meta {
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(217 119 6);
}

html.dark .reportes-hub-card-meta {
  color: rgb(251 191 36);
}

.reportes-hub-card-arrow {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: rgb(156 163 175);
  transition: color 0.15s ease, transform 0.15s ease;
}

.reportes-hub-card:hover .reportes-hub-card-arrow {
  color: rgb(251 191 36);
  transform: translateX(2px);
}

html.dark .reportes-hub-card-arrow {
  color: rgb(113 113 122);
}

.reportes-hub-panel-shell {
  border-radius: 0.5rem;
  background-color: rgb(255 255 255);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
}

html.dark .reportes-hub-panel-shell {
  background-color: rgb(24 24 27);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

.reportes-hub-stat {
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: rgb(249 250 251);
}

html.dark .reportes-hub-stat {
  background-color: rgb(39 39 42);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.reportes-hub-stat-label {
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

html.dark .reportes-hub-stat-label {
  color: rgb(161 161 170);
}

.reportes-hub-stat-value {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(3 7 18);
}

html.dark .reportes-hub-stat-value {
  color: rgb(255 255 255);
}

.reportes-hub-stat-value--sm {
  font-size: 1.125rem;
}

.reportes-hub-stat-suffix {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgb(107 114 128);
}

html.dark .reportes-hub-stat-suffix {
  color: rgb(161 161 170);
}

.reportes-hub-stat-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgb(107 114 128);
}

html.dark .reportes-hub-stat-hint {
  color: rgb(113 113 122);
}

.reportes-hub-badge--active {
  color: rgb(21 128 61);
  background-color: rgb(240 253 244);
}

html.dark .reportes-hub-badge--active {
  color: rgb(74 222 128);
  background-color: rgb(74 222 128 / 0.12);
}

.reportes-hub-badge--inactive {
  color: rgb(75 85 99);
  background-color: rgb(243 244 246);
}

html.dark .reportes-hub-badge--inactive {
  color: rgb(161 161 170);
  background-color: rgb(39 39 42);
}

.reportes-hub-card-shell {
  border-radius: 0.5rem;
  background-color: rgb(255 255 255);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
}

html.dark .reportes-hub-card-shell {
  background-color: rgb(24 24 27);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

.reportes-hub-card-icon-shell {
  border-radius: 0.5rem;
  background-color: rgb(255 255 255);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
}

html.dark .reportes-hub-card-icon-shell {
  background-color: rgb(39 39 42);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

.reportes-hub-card--disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background-color: rgb(249 250 251);
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
}

html.dark .reportes-hub-card--disabled {
  background-color: rgb(39 39 42 / 0.6);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}

html.dark .reportes-hub-card--disabled .reportes-hub-card-title {
  color: rgb(161 161 170);
}

html.dark .reportes-hub-card--disabled .reportes-hub-card-desc {
  color: rgb(113 113 122);
}

