/* ==========================================================================
   Takeway · piel de administración inspirada en WordPress (wp-admin)
   --------------------------------------------------------------------------
   Solo se carga en admin.html. Reestiliza el panel SIN tocar css/style.css,
   que sigue siendo la base de la carta, el repartidor y el seguimiento.

   Referencias de wp-admin:
     barra y menú lateral  #1d2327 · hover #2c3338 · activo #2271b1
     fondo del contenido   #f0f0f1 · cajas blancas con borde #c3c4c7
     texto #3c434a · apagado #646970 · primario #2271b1 / #135e96
   ========================================================================== */

body.wp {
  --wp-bg: #f0f0f1;
  --wp-box: #fff;
  --wp-bar: #1d2327;
  --wp-bar-2: #2c3338;
  --wp-bar-3: #32373c;
  --wp-txt: #3c434a;
  --wp-mut: #646970;
  --wp-line: #c3c4c7;
  --wp-line-2: #dcdcde;
  --wp-pri: #2271b1;
  --wp-pri-h: #135e96;
  --wp-link: #2271b1;
  --wp-ok: #00a32a;
  --wp-warn: #dba617;
  --wp-err: #d63638;
  --wp-info: #72aee6;

  --wp-w: 160px;   /* ancho del menú lateral */
  --wp-barh: 32px; /* alto de la barra superior */

  --acc: var(--wp-pri);
  --acc2: var(--wp-pri-h);
  --acc-ink: #fff;
  --bg: var(--wp-bg);
  --card: var(--wp-box);
  --card2: #f6f7f7;
  --inset: #f6f7f7;
  --txt: var(--wp-txt);
  --mut: var(--wp-mut);
  --faint: #8c8f94;
  --line: var(--wp-line-2);
  --ok: var(--wp-ok);
  --red: var(--wp-err);
  --warnc: var(--wp-warn);
  --r: 4px;
  --border: 1px solid var(--wp-line-2);
  --focus: var(--wp-pri);
  --tap: 36px;

  background: var(--wp-bg);
  color: var(--wp-txt);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100dvh;
}

/* Todo lo que el sitio público pinta en oscuro y que aquí debe ir en claro. */
body.wp a { color: var(--wp-link); }
body.wp a:hover { color: var(--wp-pri-h); }
body.wp code {
  background: #f0f0f1;
  color: #d63638;
  padding: .1em .35em;
  border-radius: 3px;
  font-size: .92em;
}
body.wp h1, body.wp h2, body.wp h3, body.wp h4 { color: var(--wp-txt); font-weight: 600; }
body.wp .small { color: var(--wp-mut); font-size: 12px; }
body.wp .ok { color: var(--wp-ok); }
body.wp .warn { color: #8a6116; background: #fcf9e8; border: 1px solid #dba617; border-left-width: 4px; padding: 8px 12px; border-radius: 3px; display: block; margin: 6px 0; }
body.wp .price { color: var(--wp-txt); font-weight: 600; }
body.wp .rule { display: none; } /* wp no usa reglas decorativas bajo los h1 */

body.wp :focus-visible {
  outline: 2px solid var(--wp-pri);
  outline-offset: 1px;
  border-radius: 2px;
}

/* --------------------------------------------------------------- barra --- */
#wpadminbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--wp-barh);
  z-index: var(--z-sticky);
  background: var(--wp-bar);
  color: #f0f0f1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 13px;
}
#wpadminbar .wpbrand { display: flex; align-items: center; gap: 7px; padding-right: 8px; }
#wpadminbar .wpbrand .dot { width: 16px; height: 16px; border-radius: 50%; background: #ffb800; box-shadow: inset 0 0 0 3px var(--wp-bar); flex: none; }
#wpadminbar .wpbrand b { font-weight: 600; }
#wpadminbar .wpbrand .dom { color: #a7aaad; }
#wpadminbar .wpspacer { flex: 1; }
#wpadminbar .wplink,
#wpadminbar .wpuser {
  color: #f0f0f1;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}
#wpadminbar .wplink:hover { background: var(--wp-bar-2); color: #72aee6; }
#wpadminbar .wpuser { cursor: default; font-weight: 600; }
/* Botón Salir: arriba a la derecha, rojo suave al pasar */
#wpadminbar .wplogout {
  background: transparent; border: 1px solid rgba(255, 90, 90, .55);
  color: #ffb1b1; font: inherit; font-weight: 700; cursor: pointer;
}
#wpadminbar .wplogout:hover { background: #b3362e; border-color: #b3362e; color: #fff; }

.wpmenu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #f0f0f1;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  min-width: var(--tap);
  min-height: var(--tap);
  cursor: pointer;
  border-radius: 3px;
}
.wpmenu-toggle:hover { background: var(--wp-bar-2); }

/* ------------------------------------------------------ menú lateral ----- */
#adminmenuwrap {
  position: fixed;
  top: var(--wp-barh);
  bottom: 0;
  left: 0;
  width: var(--wp-w);
  z-index: calc(var(--z-sticky) - 1);
  background: var(--wp-bar);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid #101517;
}
#adminmenuwrap ol { list-style: none; margin: 0; padding: 8px 0 24px; }

#adminmenu .wp-menu-group {
  padding: 12px 12px 4px;
  color: #a7aaad;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#adminmenu li.grp { margin: 0; padding: 0; }

#adminmenu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: #c3c4c7;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
#adminmenu button:hover { background: var(--wp-bar-2); color: #72aee6; }
#adminmenu button:focus-visible { outline: 2px solid #72aee6; outline-offset: -2px; background: var(--wp-bar-2); }
#adminmenu button[aria-current="page"] {
  background: var(--wp-pri);
  color: #fff;
  border-left-color: #fff;
  font-weight: 600;
}
#adminmenu button svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
#adminmenu .count {
  margin-left: auto;
  background: #d63638;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
#adminmenu button[aria-current="page"] .count { background: #fff; color: var(--wp-pri); }
#adminmenu .wp-sub {
  display: block;
  padding: 3px 12px 6px 44px;
  color: #a7aaad;
  font-size: 12px;
}

/* ------------------------------------------------------------- cuerpo --- */
#wpbody {
  margin-top: var(--wp-barh);
  margin-left: var(--wp-w);
  padding: 10px 10px 10px 20px;
  min-height: calc(100dvh - var(--wp-barh));
}
#wpbody > main, #wpbody > .card { margin: 0; }

.wrap {
  background: var(--wp-box);
  border: 1px solid var(--wp-line);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  padding: 12px 20px 20px;
  min-height: calc(100dvh - var(--wp-barh) - 40px);
  margin: 0;
}
.wrap:focus { outline: none; }

/* Cabecera de página, al estilo de wp-heading-inline + screen options */
.wptitle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.wptitle h1 { font-size: 23px; font-weight: 400; line-height: 1.3; margin: 0; }
.wptitle .meta { color: var(--wp-mut); font-size: 13px; }
.wptitle .screenopts { margin-left: auto; display: flex; gap: 4px; }
.wptitle .screenopts button {
  background: none;
  border: 0;
  color: var(--wp-link);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
}
.wptitle .screenopts button:hover { color: var(--wp-pri-h); background: #f0f0f1; }

/* Cajas y widgets */
body.wp .card {
  background: var(--wp-box);
  border: 1px solid var(--wp-line);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  padding: 1px 20px 14px;
  margin: 16px 0;
}
body.wp .card > h2,
body.wp .card > h3 {
  border-bottom: 1px solid #f0f0f1;
  font-size: 14px;
  margin: 0 -20px 12px;
  padding: 10px 20px 8px;
}
body.wp .card > h4 { border-top: 1px solid #f0f0f1; margin: 18px -20px 12px; padding: 12px 20px 0; }

/* Escritorio: rejilla de widgets */
.wp-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.wp-widgets .card { margin: 0; min-width: 0; }
.wp-widgets .card.wide { grid-column: 1 / -1; }

.wp-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
  background: #f0f0f1;
  border: 1px solid #f0f0f1;
  border-radius: 3px;
  overflow: hidden;
}
.wp-statgrid div { background: #fff; padding: 12px 14px; }
.wp-statgrid dt { color: var(--wp-mut); font-size: 12px; margin: 0 0 2px; }
.wp-statgrid dd { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wp-statgrid dd small { font-size: 12px; color: var(--wp-mut); font-weight: 400; }

/* ------------------------------------------------------- tablas y listas - */
body.wp .tbl {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--wp-line-2);
  border-radius: 3px;
  background: #fff;
  font-size: 13px;
}
body.wp .tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--wp-txt);
  background: #f6f7f7;
  border-bottom: 1px solid var(--wp-line-2);
  padding: 9px 12px;
}
body.wp .tbl td { border-bottom: 1px solid #f0f0f1; padding: 9px 12px; vertical-align: middle; }
body.wp .tbl tbody tr:nth-child(odd) { background: #f6f7f7; }
body.wp .tbl tbody tr:hover { background: #f0f6fc; }

.wp-rowacts { display: flex; gap: 10px; flex-wrap: wrap; }
.wp-rowacts button, .wp-rowacts .sec, .wp-rowacts a {
  background: none;
  border: 0;
  color: var(--wp-link);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: none;
}
.wp-rowacts button:hover { color: var(--wp-pri-h); }

/* ------------------------------------------------------------- botones --- */
body.wp .btn,
body.wp .frm button,
body.wp .frm .sec,
body.wp button:not(.wp-menu-toggle):not(#adminmenu button) {
  background: #f6f7f7;
  border: 1px solid #2271b1;
  border-radius: 3px;
  color: var(--wp-pri);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 2;
  min-height: 30px;
  padding: 0 12px;
  text-decoration: none;
  box-shadow: none;
}
body.wp button:hover:not(:disabled) { background: #f0f6fc; border-color: #135e96; color: var(--wp-pri-h); }
body.wp button:disabled { opacity: .6; cursor: default; }

body.wp .btn--primary {
  background: var(--wp-pri);
  border-color: var(--wp-pri);
  color: #fff;
}
body.wp .btn--primary:hover { background: var(--wp-pri-h); border-color: var(--wp-pri-h); color: #fff; }

body.wp .btn--danger {
  background: #fff;
  border-color: var(--wp-err);
  color: var(--wp-err);
}
body.wp .btn--danger:hover { background: #fcf0f1; border-color: #b32d2e; color: #b32d2e; }

body.wp .btn--ghost, body.wp .sec {
  background: #fff;
  border-color: var(--wp-line);
  color: var(--wp-link);
}
body.wp .btn--ghost:hover, body.wp .sec:hover { background: #f6f7f7; border-color: var(--wp-line); }

/* ------------------------------------------------------------- campos --- */
body.wp input[type="text"], body.wp input[type="password"], body.wp input[type="number"],
body.wp input[type="email"], body.wp input:not([type]), body.wp select, body.wp textarea {
  background: #fff;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  box-shadow: none;
  color: #2c3338;
  font: inherit;
  font-size: 14px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 8px;
}
body.wp input:focus, body.wp select:focus, body.wp textarea:focus {
  border-color: var(--wp-pri);
  box-shadow: 0 0 0 1px var(--wp-pri);
  outline: 2px solid transparent;
}
body.wp input[aria-invalid="true"] { border-color: var(--wp-err); box-shadow: 0 0 0 1px var(--wp-err); }
body.wp input[type="checkbox"] { min-height: auto; width: 16px; height: 16px; margin: 0 2px 0 0; }

body.wp label.f, body.wp .fld > label {
  color: #1d2327;
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
body.wp .fld .hint { color: var(--wp-mut); display: block; font-size: 12px; margin-top: 4px; }
body.wp .err { color: var(--wp-err); display: block; font-size: 12px; margin-top: 4px; }

/* Formularios al estilo de la tabla de ajustes de wp */
body.wp .frm {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
body.wp .frm > div { display: block; }
body.wp .frm.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 782px) { body.wp .frm.two { grid-template-columns: 1fr; } }
body.wp .frm .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ kanban ---- */
body.wp .board {
  display: grid;
  gap: 16px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(19rem, 1fr);
  overflow-x: auto;
  padding-bottom: 8px;
}
body.wp .col {
  background: #fff;
  border: 1px solid var(--wp-line);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 8rem;
  max-height: 72dvh;
}
body.wp .col > h3 {
  align-items: center;
  background: #f6f7f7;
  border-bottom: 1px solid var(--wp-line-2);
  color: var(--wp-txt);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: space-between;
  margin: 0;
  padding: 8px 12px;
}
body.wp .col > h3 .n { background: #f0f0f1; border-radius: 9px; color: var(--wp-mut); font-size: 11px; padding: 1px 8px; }
body.wp .col .body { background: #f6f7f7; gap: 10px; overflow-y: auto; padding: 10px; }

/* Ajustes del negocio: una sola sección con pestañas internas sencillas. */
.business-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--wp-line);
  margin: 0 -4px 16px;
  overflow-x: auto;
}
body.wp .business-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 3px 3px 0 0;
  background: transparent;
  color: var(--wp-mut);
  font-size: 14px;
  min-height: 44px;
  padding: 8px 18px;
  white-space: nowrap;
}
body.wp .business-tabs button:hover { background: #f6f7f7; color: var(--wp-pri); }
body.wp .business-tabs button.on { border-bottom-color: var(--wp-pri); color: var(--wp-pri); font-weight: 600; }
.business-content { max-width: 900px; }
body.wp .business-heading { font-size: 18px; margin: 6px 0 16px; }

/* Barra de cola de pedidos: búsqueda y filtros persistentes mientras se recorre el kanban. */
.orders-toolbar {
  background: rgba(255,255,255,.97);
  border: 1px solid var(--wp-line);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(29,35,39,.08);
  margin: 0 0 14px;
  padding: 10px 12px;
  position: sticky;
  top: calc(var(--wp-barh) + 6px);
  z-index: 5;
}
.orders-toolbar-top { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.orders-search { align-items: center; display: flex; gap: 8px; }
body.wp .orders-search input { min-height: 42px; width: min(30vw, 320px); }
.order-filters { display: flex; gap: 6px; margin-top: 9px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
body.wp .order-filters button {
  align-items: center;
  background: #f6f7f7;
  border: 1px solid var(--wp-line-2);
  border-radius: 999px;
  color: var(--wp-txt);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 5px 12px;
  white-space: nowrap;
}
body.wp .order-filters button.on { background: #e7f2fa; border-color: var(--wp-pri); color: var(--wp-pri); font-weight: 600; }
.order-filters button span { background: #e2e4e7; border-radius: 999px; font-size: 11px; line-height: 1.4; min-width: 20px; padding: 1px 5px; text-align: center; }
.order-filters button.on span { background: var(--wp-pri); color: #fff; }
.order-card[hidden] { display: none !important; }
.order-card-top { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.order-customer { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.order-customer .who { font-size: 16px; }
.order-items { color: var(--wp-txt); font-size: 14px; font-weight: 500; line-height: 1.4; margin-top: 6px; }
.order-facts { align-items: center; color: var(--wp-mut); display: flex; font-size: 12px; justify-content: space-between; margin-top: 8px; }
.order-facts .money { font-size: 17px; }
.order-address, .order-payment { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.order-payment { color: var(--wp-mut); font-size: 12px; justify-content: space-between; }
.order-primary { margin-top: 10px; }
body.wp .order-primary button { font-size: 15px; font-weight: 700; min-height: 48px; width: 100%; }
.order-more { border-top: 1px solid #f0f0f1; margin-top: 9px; padding-top: 7px; }
.order-more summary { color: var(--wp-link); cursor: pointer; font-size: 13px; font-weight: 600; min-height: 34px; padding: 6px 2px; }
.order-more-content { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0 2px; }
body.wp .order-more-content > button, body.wp .order-more-content > select { min-height: 42px; }
.order-rider-label { align-self: center; font-weight: 600; }
.order-status-actions { border-top: 1px solid #f0f0f1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 7px; width: 100%; }
body.wp .order-status-actions button { min-height: 40px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

body.wp .tile {
  background: #fff;
  border: 1px solid var(--wp-line-2);
  border-left: 3px solid var(--wp-line);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  color: var(--wp-txt);
  padding: 10px 12px;
}
body.wp .tile:hover { border-color: var(--wp-line); }
body.wp .tile.live { border-left-color: var(--acc); }
body.wp .tile .code { color: var(--wp-link); font-size: 12px; }
body.wp .tile .who { color: var(--wp-txt); font-weight: 600; }
body.wp .tile .meta { color: #646970; font-size: 12px; }
body.wp .tile .meta .addr { color: var(--wp-txt); }
body.wp .tile .money { color: #1d2327; font-weight: 600; }
body.wp .tile .acts { gap: 6px; margin-top: 8px; }

/* Etiquetas de estado, al estilo de las "post states" de wp */
body.wp .state {
  background: #f0f0f1;
  border: 1px solid var(--wp-line-2);
  border-radius: 9px;
  color: #50575e;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 9px;
}
body.wp .state--pendiente { background: #fcf9e8; border-color: #dba617; color: #8a6116; }
body.wp .state--cocina { background: #f0f6fc; border-color: #72aee6; color: #135e96; }
body.wp .state--reparto { background: #f0f6fc; border-color: #2271b1; color: #135e96; }
body.wp .state--listo { background: #edfaef; border-color: #00a32a; color: #00622a; }
body.wp .state--cerrado { background: #f0f0f1; border-color: #dcdcde; color: #646970; }

body.wp .pill {
  background: #f0f0f1;
  border: 1px solid var(--wp-line-2);
  border-radius: 9px;
  display: inline-block;
  font-size: 12px;
  margin: 0 4px 4px 0;
  padding: 1px 10px;
}

/* --------------------------------------------------------------- avisos -- */
body.wp .notice {
  background: #fff;
  border: 1px solid var(--wp-line);
  border-left: 4px solid var(--wp-info);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  margin: 16px 0;
  padding: 10px 14px;
}
body.wp .notice p { margin: 0 0 8px; }
body.wp .notice p:last-child { margin-bottom: 0; }
body.wp .notice-info { border-left-color: var(--wp-info); }
body.wp .notice-success { border-left-color: var(--wp-ok); }
body.wp .notice-error { border-left-color: var(--wp-err); }
body.wp .notice-warning { border-left-color: var(--wp-warn); }
body.wp .notice-inline {
  background: #f6f7f7;
  border-left-width: 4px;
  margin: 0 0 12px;
  padding: 6px 12px;
}

body.wp .skip {
  background: #fff;
  border-radius: 0 0 3px 0;
  color: var(--wp-pri);
  left: 0;
  padding: 8px 16px;
  position: absolute;
  top: -60px;
  transition: top var(--dur) var(--ease);
  z-index: var(--z-toast);
}
body.wp .skip:focus { top: 0; }

/* ------------------------------------------------------- avisos y overlays --- */
body.wp .toasts {
  bottom: 16px;
  display: grid;
  gap: 10px;
  justify-items: end;
  max-width: min(420px, calc(100vw - 32px));
  position: fixed;
  right: 16px;
  z-index: var(--z-toast);
}
body.wp .toast {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--wp-line);
  border-left: 4px solid var(--wp-info);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  color: var(--wp-txt);
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}
body.wp .toast .ic { color: var(--wp-info); font-weight: 700; }
body.wp .toast--ok { border-left-color: var(--wp-ok); }
body.wp .toast--ok .ic { color: var(--wp-ok); }
body.wp .toast--error { border-left-color: var(--wp-err); }
body.wp .toast--error .ic { color: var(--wp-err); }
body.wp .toast button {
  background: none;
  border: 0;
  color: var(--wp-mut);
  cursor: pointer;
  font-size: 0;
  min-height: 0;
  padding: 0;
  width: 16px;
  height: 16px;
}
body.wp .toast button::after { content: "✕"; font-size: 13px; }
body.wp .toast button:hover { background: none; color: #1d2327; }

/* ------------------------------------------------------- bloque / otros -- */
body.wp .codeblk {
  align-items: center;
  background: #f6f7f7;
  border: 1px solid var(--wp-line-2);
  border-radius: 3px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 6px 8px;
}
body.wp .codeblk code { background: none; color: #1d2327; }
body.wp .bar { background: #f0f0f1; border-radius: 3px; height: 20px; overflow: hidden; }
body.wp .bar i { background: var(--wp-pri); display: block; height: 100%; }
body.wp .variants .variant {
  background: #fff;
  border: 1px solid var(--wp-line-2);
  border-radius: 3px;
  display: flex;
  gap: 12px;
  padding: 12px;
}
body.wp .variant .grow h4 { border: 0; margin: 0 0 4px; padding: 0; }
body.wp details.frm > summary { color: var(--wp-link); }

body.wp .empty { text-align: center; }
body.wp .empty h2, body.wp .empty h4 { color: var(--wp-txt); }

/* --------------------------------------------------- pantalla de bloqueo - */
body.wp .wrap .card#lock { margin: 40px auto; max-width: 400px; padding: 20px 24px 24px; }
body.wp #lock h1 { font-size: 23px; font-weight: 400; margin: 0 0 8px; }
body.wp #lock .fld { margin-bottom: 16px; }
body.wp #lock .fld input { width: 100%; font-size: 16px; min-height: 40px; }
body.wp #pinBtn { width: 100%; min-height: 36px; font-size: 14px; }
body.wp #supaLock { border-top: 1px solid #f0f0f1; margin-top: 20px; padding-top: 16px; }
body.wp #supaLock h2 { border: 0; font-size: 13px; margin: 0 0 10px; padding: 0; }

/* ---------------------------------------------------------- responsive --- */
@media (max-width: 960px) {
  .wpmenu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  #nav {
    position: fixed;
    inset: var(--wp-barh) 0 0;
    z-index: calc(var(--z-sticky) - 1);
    pointer-events: none;
  }
  body.wp.menu-open #nav { pointer-events: auto; }
  body.wp.menu-open #nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
  }
  #adminmenuwrap {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transform: translateX(-100%);
    transition: transform var(--dur) var(--ease);
    width: 200px;
    top: var(--wp-barh);
    z-index: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #adminmenu button { min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
  body.wp.menu-open #adminmenuwrap { transform: none; }
  #wpbody { margin-left: 0; padding: 10px; }
  #wpadminbar .wplink:not(.keep) { display: none; }
}

/* Tablet: dos colas visibles, tarjetas legibles y controles táctiles grandes. */
@media (min-width: 700px) and (max-width: 1200px) {
  body.wp .board {
    align-items: stretch;
    grid-auto-columns: minmax(300px, 42vw);
    height: calc(100dvh - 275px);
    min-height: 390px;
    scroll-snap-type: x proximity;
  }
  body.wp .col { max-height: none; min-height: 0; scroll-snap-align: start; }
  body.wp .col .body { min-height: 0; }
  body.wp .tile.order-card { padding: 14px; }
  body.wp .order-customer .who { font-size: 17px; }
  body.wp .order-more summary { min-height: 42px; }
  body.wp .order-more-content > button { flex: 1 1 42%; }
  .orders-toolbar { padding: 12px 14px; }
  body.wp .order-filters button { min-height: 44px; padding-inline: 14px; }
}
@media (pointer: coarse) and (min-width: 700px) {
  body.wp .order-more-content button,
  body.wp .order-status-actions button,
  body.wp .order-more-content select { min-height: 46px; }
  body.wp .business-tabs button { min-height: 48px; }
}
@media (max-width: 699px) {
  .orders-toolbar-top { align-items: stretch; flex-direction: column; }
  .orders-search { width: 100%; }
  body.wp .orders-search input { flex: 1; width: 1px; }
  body.wp .board { grid-auto-columns: minmax(280px, 88vw); }
}

@media (prefers-reduced-motion: reduce) {
  #adminmenuwrap { transition: none; }
}
/* ------- Pop-ups mejorados en el panel ------- */
body.wp .toast.ask { align-items: stretch; max-width: min(380px, calc(100vw - 32px)); }
body.wp .askbox { flex: 1; display: grid; gap: 8px; }
body.wp .askhead { display: flex; align-items: center; gap: 8px; }
body.wp .askic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wp-pri); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
body.wp .asktitle { font-size: 14px; color: var(--wp-txt); }
body.wp .askrow { margin-top: 4px; gap: 8px; }
body.wp .toast.out { opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
body.wp .btn--ghost { background: #fff; border: 1px solid var(--wp-line); color: var(--wp-txt); }
body.wp .btn--danger { background: var(--wp-err); border: 1px solid var(--wp-err); color: #fff; }
body.wp .btn--primary { background: var(--wp-pri); border: 1px solid var(--wp-pri); color: #fff; }
