/* Simulador de TPV — El Punto. Todo bajo [data-sim]; clases con prefijo sim-. */

[data-sim] {
  position: relative;
  font-family: 'Archivo', system-ui, sans-serif;
  color: #f3f2f2;
  background: #201e1d;
  width: 100%;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
[data-sim] *, [data-sim] *::before, [data-sim] *::after { box-sizing: border-box; }
[data-sim] button { font: inherit; }
[data-sim] a { color: inherit; }

[data-sim] a:focus-visible,
[data-sim] button:focus-visible,
[data-sim] input:focus-visible {
  outline: 2px solid #f3f2f2;
  outline-offset: 2px;
}
[data-sim] [data-on-light]:focus-visible {
  outline-color: #201e1d;
  outline-offset: -2px;
}
[data-sim] button:active { transform: translateY(1px); }
[data-sim] button:disabled { cursor: default; }
[data-sim] button:disabled:active { transform: none; }
[data-sim] input::placeholder { color: #b4b2b2; }

@keyframes dxsim-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dxsim-shrink { from { transform: scale(1); } to { transform: scale(0); } }
@keyframes dxsim-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-sim] *, [data-sim] *::before, [data-sim] *::after {
    transition: none !important;
    animation: none !important;
  }
}

.sim-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout general ---------- */
.sim-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 64px;
  align-items: flex-start;
}
.sim-info { flex: 999 1 400px; min-width: 0; }
.sim-device { flex: 1 1 580px; min-width: 0; max-width: 600px; }

.sim-label {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b4b2b2;
}
.sim-label--mods { margin: 48px 0 12px; }
.sim-label--extra { margin: 32px 0 12px; }

/* ---------- Pestañas de producto ---------- */
.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #2d2b2b;
  color: #f3f2f2;
  transition: background 120ms cubic-bezier(.2,.7,.2,1), color 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-tab.is-active { background: #f3f2f2; color: #201e1d; }
.sim-tab-dot { display: inline-block; width: 10px; height: 10px; }

/* ---------- Titular y presentación ---------- */
.sim-heading {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(44px, 5.4vw, 88px);
}
.sim-heading-line { display: block; }
.sim-heading-accent { white-space: nowrap; }
.sim-dot-inline {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.04em;
  background: currentColor;
}
.sim-product-body {
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #b4b2b2;
  max-width: 38ch;
}
.sim-cta,
.sim-cta:hover {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  min-height: 56px;
  font-size: 18px;
  font-weight: 800;
  color: #f3f2f2;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

/* ---------- Pruébalo (lista de módulos, columna izquierda) ---------- */
.sim-mods-group {
  border-top: 2px solid #605d5d;
  max-width: 560px;
}
.sim-mod-btn {
  width: 100%;
  min-height: 64px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid #3a3837;
  border-radius: 0;
  background: transparent;
  color: #f3f2f2;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.sim-mod-icon { flex: none; }
.sim-mod-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.sim-mod-name { font-size: 16px; font-weight: 800; }
.sim-mod-hint { font-size: 15px; color: #b4b2b2; }
.sim-mod-dot {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  background: transparent;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Insignias comunes ---------- */
.sim-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sim-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  box-shadow: inset 0 0 0 1px #605d5d;
  font-size: 13px;
  font-weight: 700;
}
.sim-more {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-size: 16px;
  color: #b4b2b2;
}
.sim-more-link,
.sim-more-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 800;
  color: #f3f2f2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Columna del dispositivo ---------- */
.sim-device-kicker { margin: 0 0 16px; }
.sim-frame {
  background: #151413;
  padding: 8px;
  box-shadow: 0 0 0 1px #ffffff14, 0 24px 48px #00000066;
}

/* Barra de herramientas (toast / estado) */
.sim-toolbar {
  height: 56px;
  box-sizing: border-box;
  padding-bottom: 8px;
  display: flex;
  align-items: stretch;
}
.sim-toolbar-default {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}
.sim-toolbar-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #b4b2b2;
}
.sim-toolbar-dot { display: inline-block; width: 10px; height: 10px; }
.sim-toolbar-offline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  background: #4a211a;
  color: #ff9783;
  font-size: 13px;
  font-weight: 700;
}
.sim-toast {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 0 16px;
  background: #f3f2f2;
  color: #201e1d;
  box-shadow: 0 0 0 1px #ffffff14, 0 1px 2px #0000004d;
}
.sim-toast-dot {
  flex: none;
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #201e1d;
  animation: dxsim-shrink 5000ms linear forwards;
}
.sim-toast-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sim-toast-undo {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #201e1d;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Fila: rail de módulos + panel */
.sim-devrow {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 8px;
}
.sim-rail {
  flex: 1 1 96px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
}
.sim-rail-btn {
  flex: 1 1 72px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b4b2b2;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1), color 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-rail-btn.is-active { color: #201e1d; }
.sim-rail-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sim-panel {
  flex: 999 1 400px;
  min-width: 0;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  background: #201e1d;
  position: relative;
}
.sim-panel-head {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  min-height: 64px;
  padding: 8px 16px;
  border-bottom: 2px solid #605d5d;
}
.sim-panel-head-left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.sim-panel-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.sim-panel-demo {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  box-shadow: inset 0 0 0 1px #605d5d;
  font-size: 13px;
  font-weight: 700;
  color: #b4b2b2;
}
.sim-panel-ctx { font-size: 13px; color: #b4b2b2; }
.sim-panel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sim-panel-body:focus-visible { outline: none; }

.sim-view { animation: dxsim-fade 200ms cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.sim-view--pad { padding: 16px; gap: 16px; }
.sim-view--pad-tight { padding: 16px; }
.sim-view--pad-8 { padding: 16px; gap: 8px; }
.sim-view--cobro { padding: 24px 16px 16px; }

/* ---------- Sala ---------- */
.sim-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr));
  gap: 8px;
}
.sim-table-btn {
  min-height: 104px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 2px #747372;
  color: #f3f2f2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-table-btn.is-occupied { background: #6e6b6a; box-shadow: none; }
.sim-table-info { display: flex; flex-direction: column; gap: 2px; }
.sim-table-name { font-size: 16px; font-weight: 700; }
.sim-table-sub { font-size: 13px; line-height: 1.35; white-space: pre-line; color: #b4b2b2; }
.sim-table-btn.is-occupied .sim-table-sub { color: #f3f2f2; }
.sim-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 6px;
  background: #201e1d;
  color: #f3f2f2;
  font-size: 13px;
  font-weight: 700;
}
.sim-chip-dot { display: inline-block; width: 8px; height: 8px; background: #6393ff; }
.sim-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #b4b2b2;
}
.sim-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.sim-legend-swatch { display: inline-block; width: 10px; height: 10px; }
.sim-legend-swatch--free { box-shadow: inset 0 0 0 2px #747372; }
.sim-legend-swatch--occ { background: #6e6b6a; }

/* ---------- Cuenta ---------- */
.sim-cuenta { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.sim-cats { display: flex; flex-wrap: wrap; gap: 4px; padding: 16px 16px 0; }
.sim-cat-btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-cat-btn.is-active { background: #6e6b6a; }
.sim-tiles {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}
.sim-tile-wrap { position: relative; display: flex; min-width: 0; }
.sim-tile-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 96px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-tile-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.sim-tile-price { font-size: 15px; font-weight: 700; color: #b4b2b2; }
.sim-tile-alg-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f3f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sim-tile-alg-btn.is-open { background: #6e6b6a; }
.sim-alg-panel {
  margin: 0 16px 16px;
  padding: 12px 8px 12px 16px;
  background: #292726;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.sim-alg-title { flex: 1 1 100%; font-size: 13px; color: #b4b2b2; }
.sim-alg-item { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.sim-alg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  box-shadow: inset 0 0 0 2px #f3f2f2;
}

.sim-lines-wrap { background: #292726; border-top: 1px solid #3a3837; margin-top: auto; }
.sim-cuenta .sim-lines-wrap { margin-top: 0; }
.sim-client-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #3a3837;
  font-size: 15px;
}
.sim-client-row-label { color: #b4b2b2; }
.sim-client-row-name { font-weight: 700; }
.sim-empty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 0 16px;
}
.sim-empty-dot { flex: none; display: inline-block; width: 12px; height: 12px; box-shadow: inset 0 0 0 2px #b4b2b2; }
.sim-empty-text { font-size: 15px; color: #b4b2b2; }
.sim-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 4px 8px 4px 16px;
  border-bottom: 1px solid #3a3837;
}
.sim-line-units { flex: none; display: flex; flex-wrap: wrap; align-content: center; gap: 3px; width: 41px; }
.sim-unit-dot { display: inline-block; width: 8px; height: 8px; background: #f3f2f2; }
.sim-unit-dot.is-new { animation: dxsim-pop 200ms cubic-bezier(.2,.7,.2,1); }
.sim-line-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sim-line-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.sim-line-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: #b4b2b2; }
.sim-unsent-tag { display: inline-flex; align-items: center; gap: 6px; }
.sim-unsent-dot { display: inline-block; width: 8px; height: 8px; background: #6393ff; }
.sim-unsent-dot.is-new { animation: dxsim-pop 200ms cubic-bezier(.2,.7,.2,1); }
.sim-line-price { flex: none; font-size: 18px; font-weight: 800; text-align: right; }
.sim-line-minus {
  flex: none;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sim-actions-row { margin-top: auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.sim-park-btn {
  flex: 1 1 auto;
  min-height: 72px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sim-park-btn:disabled { color: #b4b2b2; cursor: default; }
.sim-main-btn {
  flex: 999 1 240px;
  min-height: 72px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1), color 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-main-btn:disabled { cursor: default; }
.sim-main-btn-label { font-size: 15px; font-weight: 700; }
.sim-main-btn-total { font-size: 32px; font-weight: 800; line-height: 36px; white-space: nowrap; }

/* ---------- Cobro / Cobrado ---------- */
.sim-cobro-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #b4b2b2; }
.sim-cobro-total { margin: 8px 0 0; font-size: 56px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.sim-cobro-meta { margin: 8px 0 0; font-size: 13px; color: #b4b2b2; }
.sim-pay-label { margin: 32px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #b4b2b2; }
.sim-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sim-pay-btn {
  min-height: 96px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sim-pay-btn-label { font-size: 16px; font-weight: 700; }
.sim-back-btn {
  margin-top: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 2px #605d5d;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.sim-cobrado-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  background: #243729;
  color: #93c69f;
  font-size: 15px;
  font-weight: 700;
}
.sim-ticket-toggle {
  margin-top: 24px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sim-ticket-panel { margin-top: 8px; padding: 16px; background: #f3f2f2; color: #201e1d; }
.sim-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #595756;
}
.sim-ticket-lines { margin-top: 12px; border-top: 2px solid #201e1d; }
.sim-ticket-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #dcdada; font-size: 15px; }
.sim-ticket-line-price { font-weight: 700; white-space: nowrap; }
.sim-ticket-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
}
.sim-ticket-paidwith { margin: 4px 0 0; font-size: 13px; color: #595756; }
.sim-new-btn {
  margin-top: 16px;
  width: 100%;
  min-height: 72px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  color: #201e1d;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

/* ---------- Cocina ---------- */
.sim-kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 8px;
  align-items: start;
}
.sim-kitchen-card { background: #292726; border-top: 6px solid #605d5d; padding: 12px 12px 4px; }
.sim-kitchen-card.is-late { border-top-color: #dfad71; }
.sim-kitchen-card.is-done { border-top-color: #93c69f; }
.sim-kitchen-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sim-kitchen-mesa { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sim-kitchen-min { font-size: 22px; font-weight: 800; }
.sim-kitchen-tag { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.sim-kitchen-tag--late { color: #dfad71; }
.sim-kitchen-tag--done { color: #93c69f; }
.sim-kitchen-items { margin-top: 8px; }
.sim-kitchen-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; border-top: 1px solid #3a3837; }
.sim-kitchen-item-label { font-size: 16px; font-weight: 700; color: #f3f2f2; }
.sim-kitchen-item-label.is-done { color: #b4b2b2; text-decoration: line-through; }
.sim-ready-btn {
  flex: none;
  min-height: 56px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 2px #a9a8a7;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sim-done-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #93c69f; }

/* ---------- Agenda ---------- */
.sim-agenda-grid { display: flex; flex-direction: column; gap: 4px; }
.sim-agenda-headrow { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 4px; padding-bottom: 4px; }
.sim-agenda-colhead { font-size: 13px; color: #b4b2b2; }
.sim-agenda-colhead--pro { font-size: 15px; font-weight: 800; color: #f3f2f2; }
.sim-agenda-row { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 4px; }
.sim-agenda-time { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; font-size: 13px; font-weight: 400; color: #b4b2b2; }
.sim-agenda-time.is-now { font-weight: 700; color: #f3f2f2; }
.sim-agenda-now-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #f3f2f2; }
.sim-agenda-now-dot { display: inline-block; width: 8px; height: 8px; background: #ff563c; }
.sim-agenda-cell {
  min-width: 0;
  min-height: 64px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 2px #3a3837;
  color: #b4b2b2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-agenda-cell.is-cita { background: #6e6b6a; box-shadow: none; color: #f3f2f2; }
.sim-agenda-cell.is-bloq { background: #2d2b2b; box-shadow: none; color: #f3f2f2; }
.sim-agenda-cell-title { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.sim-agenda-cell-sub { font-size: 13px; overflow-wrap: anywhere; }
.sim-agenda-note { margin: 16px 0 0; font-size: 13px; color: #b4b2b2; }

/* ---------- Clientes ---------- */
.sim-search-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #b4b2b2; }
.sim-search-wrap { position: relative; }
.sim-search-icon { position: absolute; left: 16px; top: 18px; }
.sim-search-input {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 16px 0 48px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  box-shadow: inset 0 0 0 2px #a9a8a7;
  color: #f3f2f2;
  font-size: 16px;
}
.sim-noresults { display: flex; align-items: center; gap: 12px; min-height: 56px; font-size: 15px; color: #b4b2b2; }
.sim-noresults-dot { flex: none; display: inline-block; width: 12px; height: 12px; box-shadow: inset 0 0 0 2px #b4b2b2; }
.sim-clients-list { display: flex; flex-direction: column; gap: 4px; }
.sim-client-btn {
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-client-btn.is-active { background: #6e6b6a; }
.sim-client-btn-name { font-size: 16px; font-weight: 700; }
.sim-client-btn-next { font-size: 13px; color: #b4b2b2; }
.sim-client-btn.is-active .sim-client-btn-next { color: #f3f2f2; }
.sim-ficha { background: #292726; padding: 16px; }
.sim-ficha-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sim-ficha-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 12px; }
.sim-ficha-field { display: flex; flex-direction: column; gap: 4px; }
.sim-ficha-field-label { font-size: 13px; color: #b4b2b2; }
.sim-ficha-field-value { font-size: 15px; font-weight: 700; }
.sim-ficha-cobrar {
  margin-top: 16px;
  width: 100%;
  min-height: 72px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #ff563c;
  color: #201e1d;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* ---------- Caja ---------- */
.sim-caja-rows { background: #292726; padding: 4px 16px; }
.sim-caja-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid #3a3837; }
.sim-caja-row-label { font-size: 15px; color: #b4b2b2; }
.sim-caja-row-value { font-size: 18px; font-weight: 800; }
.sim-caja-drawer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; padding: 16px 0 12px; }
.sim-caja-drawer-label { font-size: 15px; font-weight: 700; }
.sim-caja-drawer-value { font-size: 32px; font-weight: 800; line-height: 36px; }
.sim-caja-note { margin: 12px 0 0; font-size: 13px; color: #b4b2b2; }
.sim-caja-close {
  margin-top: auto;
  width: 100%;
  min-height: 72px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #ff563c;
  color: #201e1d;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.sim-caja-closed { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sim-caja-closed-msg { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; background: #243729; color: #93c69f; font-size: 15px; font-weight: 700; }
.sim-caja-closed-note { margin: 0; font-size: 13px; color: #b4b2b2; }
.sim-caja-reopen {
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sim-caja-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000000a6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sim-caja-dialog { background: #292726; padding: 24px 16px 16px; box-shadow: 0 8px 24px #00000066; animation: dxsim-fade 200ms cubic-bezier(.2,.7,.2,1); }
.sim-caja-dialog-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sim-caja-dialog-text { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: #b4b2b2; }
.sim-caja-dialog-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.sim-caja-cancel { flex: 1 1 120px; min-height: 72px; padding: 0 20px; border: 0; border-radius: 0; background: #2d2b2b; color: #f3f2f2; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.sim-caja-confirm { flex: 999 1 200px; min-height: 72px; padding: 0 20px; border: 0; border-radius: 0; background: #ff563c; color: #201e1d; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }

/* ---------- Hoy (Sarea) ---------- */
.sim-sarea-locs { display: flex; flex-wrap: wrap; gap: 4px; }
.sim-loc-btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-loc-btn.is-active { background: #6e6b6a; }
.sim-stat-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-stat-card { flex: 1 1 150px; min-width: 0; box-sizing: border-box; background: #292726; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sim-stat-label { font-size: 13px; color: #b4b2b2; }
.sim-stat-value { font-size: 25px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- Equipo ---------- */
.sim-team-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.sim-filter-btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: #2d2b2b;
  color: #f3f2f2;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 120ms cubic-bezier(.2,.7,.2,1);
}
.sim-filter-btn.is-active { background: #6e6b6a; }
.sim-team-list { display: flex; flex-direction: column; }
.sim-team-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 60px; padding: 8px 0; box-sizing: border-box; border-bottom: 1px solid #3a3837; }
.sim-team-name-block { display: flex; flex-direction: column; gap: 2px; }
.sim-team-name { font-size: 16px; font-weight: 700; }
.sim-team-sub { font-size: 13px; color: #b4b2b2; }
.sim-team-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.sim-team-status.is-dentro { color: #93c69f; }
.sim-team-status.is-fuera { color: #b4b2b2; }

/* ---------- Locales ---------- */
.sim-locales-list { display: flex; flex-direction: column; gap: 8px; }
.sim-local-card {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #292726;
  color: #f3f2f2;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.sim-local-head { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.sim-local-name { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sim-local-dot { display: inline-block; width: 10px; height: 10px; background: transparent; }
.sim-local-status { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; font-size: 13px; font-weight: 700; }
.sim-local-status.is-open { background: #243729; color: #93c69f; }
.sim-local-status.is-offline { background: #4a211a; color: #ff9783; }
.sim-local-stats { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 12px; }
.sim-local-stat { display: flex; flex-direction: column; gap: 4px; }
.sim-local-stat-label { font-size: 13px; color: #b4b2b2; }
.sim-local-stat-value { font-size: 18px; font-weight: 800; white-space: nowrap; }
.sim-local-note { font-size: 13px; color: #b4b2b2; }
.sim-local-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }

/* ---------- Interruptor sin conexión ---------- */
.sim-offline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 12px; }
.sim-offline-toggle {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b4b2b2;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sim-offline-checkbox { display: inline-block; width: 12px; height: 12px; background: transparent; box-shadow: inset 0 0 0 2px #b4b2b2; transition: background 120ms cubic-bezier(.2,.7,.2,1); }
.sim-offline-checkbox.is-on { background: #b4b2b2; }
.sim-offline-caption { font-size: 13px; color: #b4b2b2; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .sim-tiles,
  .sim-tables-grid,
  .sim-kitchen-grid { gap: 8px; }
  .sim-panel { min-height: 0; }
}
