/* Matilde v71: controles coherentes, nueva reserva tematizada y arrastre exacto. */
#section-tablet .tablet-controlbar {
  grid-template-columns: 260px 210px 260px auto minmax(0, 1fr);
}

#section-tablet .matilde-now-control {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 17px;
  border: 1px solid var(--mat-border);
  background: var(--mat-surface);
}

#section-tablet #tablet-btn-ahora.tablet-now-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 82px;
  border: 1px solid var(--mat-border) !important;
  border-radius: 12px;
  color: var(--mat-text) !important;
  background: var(--mat-surface) !important;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  #section-tablet .tablet-controlbar {
    grid-template-columns: minmax(210px, 1.1fr) minmax(160px, .8fr) minmax(240px, 1fr) auto;
  }
  #section-tablet .tablet-control-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

#section-tablet #tablet-btn-ahora.tablet-now-btn:hover {
  color: var(--mat-accent-text) !important;
  background: var(--mat-accent) !important;
}

#drawer-reserva-local.matilde-wizard-reserva,
.matilde-wizard-reserva .wizard-head,
.matilde-wizard-reserva .wizard-body,
.matilde-wizard-reserva .wizard-footer,
.matilde-wizard-reserva .wizard-suggestions {
  background: var(--mat-surface) !important;
  color: var(--mat-text) !important;
  border-color: var(--mat-border) !important;
}

.matilde-wizard-reserva .wizard-title,
.matilde-wizard-reserva .wizard-dot.is-active,
.matilde-wizard-reserva .wizard-dot.is-done {
  color: var(--mat-accent) !important;
}

.matilde-wizard-reserva .wizard-dot.is-active,
.matilde-wizard-reserva .wizard-dot.is-done,
.matilde-wizard-reserva .wizard-number.is-active,
.matilde-wizard-reserva .wizard-pill.is-active,
.matilde-wizard-reserva .wizard-hour.is-active,
.matilde-wizard-reserva .wizard-waiter.is-active,
.matilde-wizard-reserva .wizard-btn-main,
#matilde-wizard-confirm-table {
  background: var(--mat-accent) !important;
  border-color: var(--mat-accent) !important;
  color: var(--mat-accent-text) !important;
}

.matilde-wizard-reserva .wizard-subtitle,
.matilde-wizard-reserva .wizard-step-label,
.matilde-wizard-reserva .wizard-help,
.matilde-wizard-reserva .wizard-suggestion span {
  color: var(--mat-muted) !important;
}

.matilde-wizard-reserva .wizard-help,
.matilde-wizard-reserva .wizard-input,
.matilde-wizard-reserva .wizard-select,
.matilde-wizard-reserva .wizard-textarea,
.matilde-wizard-reserva .wizard-number,
.matilde-wizard-reserva .wizard-pill,
.matilde-wizard-reserva .wizard-hour,
.matilde-wizard-reserva .wizard-waiter,
.matilde-wizard-reserva .wizard-close,
.matilde-wizard-reserva .wizard-btn-cancel,
.matilde-wizard-reserva .wizard-suggestion {
  background: var(--mat-card) !important;
  color: var(--mat-text) !important;
  border-color: var(--mat-border) !important;
}

.matilde-wizard-reserva .wizard-hour.is-disabled {
  background: var(--mat-app-bg) !important;
  color: var(--mat-muted) !important;
}

#local-res-map-container,
#local-res-map-info,
#local-res-map-summary,
#drawer-reserva-local .bg-gray-50,
#drawer-reserva-local .bg-white {
  background-color: var(--mat-card) !important;
  color: var(--mat-text) !important;
  border-color: var(--mat-border) !important;
}

#matilde-wizard-table-bar {
  background: var(--mat-surface) !important;
  color: var(--mat-text) !important;
  border-color: var(--mat-border) !important;
}

#matilde-wizard-table-bar span {
  color: var(--mat-muted) !important;
}

#matilde-wizard-table-selected {
  background: var(--mat-app-bg) !important;
  border-color: var(--mat-accent) !important;
  color: var(--mat-text) !important;
}

#matilde-wizard-cancel-table {
  background: var(--mat-card) !important;
  color: var(--mat-text) !important;
  border-color: var(--mat-border) !important;
}

#tablet-map-base .tablet-table.matilde-v71-dragging {
  transition: none !important;
  animation: none !important;
  will-change: left, top !important;
  z-index: 999 !important;
}
