/* Latina Pizza · Ruta del camión (camionero): paradas y lista para marcar lo que se baja.
   Pensada para el celular en la calle: botones grandes y colores fuertes. */
.rt { max-width: 640px; gap: 14px; }
.rt-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.rt-cab h2 { font-size: 1.125rem; font-stretch: 108%; }
.rt-cab .nota { flex-basis: 100%; }
.rt-cab select { width: auto; max-width: 100%; }
.rt-volver { justify-self: start; padding-left: 0; font-size: 1rem; }
.rt-cola { display: grid; gap: 8px; justify-items: start; }
.rt-avance { display: grid; gap: 6px; }
.rt-barra { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rt-barra span { display: block; height: 100%; background: var(--basil); border-radius: inherit; transition: width 0.3s; }

/* Paradas */
.rt-paradas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rt-parada {
  width: 100%; min-height: 76px; padding: 14px 16px 14px 12px; display: grid; gap: 2px 12px; align-items: center; text-align: left;
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num nombre etq" "num det etq";
  background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--crust); border-radius: var(--r); cursor: pointer;
}
.rt-parada:hover { border-color: var(--ink-3); border-left-color: var(--crust); }
.rt-parada.rt-hecha { border-left-color: var(--basil); }
.rt-parada.rt-siguiente { border-color: var(--crust); box-shadow: 0 0 0 2px var(--crust); }
.rt-parada-num {
  grid-area: num; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2); font-weight: 750; font-variant-numeric: tabular-nums;
}
.rt-siguiente .rt-parada-num { background: var(--crust); color: #17201C; }
.rt-hecha .rt-parada-num { background: var(--basil); color: #fff; }
.rt-parada-nombre { grid-area: nombre; font-size: 1.25rem; font-weight: 750; font-stretch: 108%; line-height: 1.2; }
.rt-parada-det { grid-area: det; color: var(--ink-3); font-size: 0.875rem; }
.rt-parada .etiqueta { grid-area: etq; margin: 0; white-space: normal; text-align: center; max-width: 11rem; }

/* Lista de una parada */
.rt-ayuda { color: var(--ink-2); }
.rt-items { list-style: none; margin: 0; padding: 0; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rt-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line-2); }
.rt-item:last-child { border-bottom: 0; }
.rt-marca { width: 100%; min-height: 68px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; cursor: pointer; }
.rt-marca:disabled { cursor: default; color: inherit; }
.rt-check { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink-3); border-radius: 8px; background: var(--paper); }
.rt-check svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rt-ok { background: color-mix(in srgb, var(--basil-weak) 75%, transparent); }
.rt-ok .rt-check { background: var(--basil); border-color: var(--basil); }
.rt-parcial, .rt-mas { background: color-mix(in srgb, var(--crust-weak) 75%, transparent); }
.rt-parcial .rt-check, .rt-mas .rt-check { background: var(--crust); border-color: var(--crust); }
.rt-parcial .rt-check svg, .rt-mas .rt-check svg { stroke: #17201C; }
.rt-nada { background: color-mix(in srgb, var(--tomato-weak) 75%, transparent); }
.rt-nada .rt-check { background: var(--tomato); border-color: var(--tomato); }
.rt-txt { display: grid; min-width: 0; }
.rt-txt b { font-size: 1.0625rem; line-height: 1.25; overflow-wrap: anywhere; }
.rt-cant { font-size: 1.1875rem; font-weight: 750; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.rt-det { font-weight: 600; color: var(--crust-txt); }
.rt-nada .rt-det { color: var(--tomato); }
.rt-falto {
  min-height: 44px; margin-right: 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 650; cursor: pointer;
}
.rt-falto[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rt-editor { grid-column: 1 / -1; display: grid; gap: 8px; padding: 2px 14px 14px; }
.rt-editor label { font-weight: 650; }
.rt-editor-fila { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rt-editor-fila .cant { width: 140px; }
.rt-editor-fila .cant input { font-size: 1.125rem; }
.rt-datos { gap: 12px; }
.rt-deshacer { justify-self: start; color: var(--tomato); }
.rt-pie {
  position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--flour); border-top: 1px solid var(--line);
}
.rt-pie-estado { display: grid; gap: 2px; }
.rt-actualizando { text-align: center; }

/* Camión → Productos: orden de la ruta */
.cam-ruta { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); max-width: 460px; }
.cam-ruta li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line-2); min-height: 52px; }
.cam-ruta li:last-child { border-bottom: 0; }
.cam-ruta-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--line-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.cam-ruta-nombre { flex: 1; min-width: 0; font-weight: 600; }
.cam-ruta-btns { display: flex; gap: 6px; }
.cam-ruta-btns .btn { min-width: 44px; padding: 6px 0; }

/* Camión → Entregas: lo que marcó el camionero */
.cam-camion { display: block; margin-top: 4px; color: var(--ink-2); }
.cam-parada b { font-weight: 700; }
