/* =====================================================================
   GASCA · Logística (fase 1) — «Pedidos del día» y «Preparación» dentro de Reparto.
   Mismo estilo que gasca_reparto.css (variables --rp-*). Prefijo .lg-.
   ===================================================================== */
.lg-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lg-tools-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg-fecha { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg-fecha label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rp-muted); }
.lg-fecha input[type=date] { height: 38px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--rp-ink); background: #fff; }
.lg-pill { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rp-line); background: #fff; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--rp-ink); }
.lg-pill.lg-on { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; }
.lg-sel { height: 38px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: .85rem; font-weight: 600; background: #fff; color: var(--rp-ink); max-width: 100%; }
.lg-quien { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; }
.lg-metrics { margin-top: 0; }
@container rp (min-width: 1024px) { .lg-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* avance por almacenero */
.lg-alms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 22px; }
.lg-alm { text-align: left; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--rp-ink); box-shadow: var(--rp-shadow); display: grid; gap: 8px; }
.lg-alm:hover { border-color: #cbd5e1; }
.lg-alm.lg-on { border-color: var(--rp-red); box-shadow: 0 0 0 3px rgba(180,0,12,.12); }
.lg-alm-top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.lg-alm-top span { font-variant-numeric: tabular-nums; font-weight: 800; }
.lg-alm-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; color: var(--rp-muted); }
.lg-curso { color: #1d4ed8; font-weight: 700; }
.lg-bad { color: #dc2626; font-weight: 700; }
.lg-warn { color: var(--rp-amber); font-weight: 700; }

/* filtros y tabla */
.lg-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lg-buscar { display: inline-flex; align-items: center; gap: 6px; height: 38px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 0 10px; background: #fff; color: var(--rp-muted); flex: 1 1 220px; }
.lg-buscar input { border: 0; outline: 0; font: inherit; font-size: .88rem; width: 100%; color: var(--rp-ink); background: transparent; }
.lg-tabla-wrap { overflow-x: auto; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); }
.lg-tabla { width: 100%; border-collapse: collapse; font-size: .84rem; }
.lg-tabla th { text-align: left; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-muted); padding: 10px 12px; border-bottom: 1px solid var(--rp-line); background: var(--rp-bg); white-space: nowrap; }
.lg-tabla td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.lg-tabla tbody tr[data-lg-ped] { cursor: pointer; }
.lg-tabla tbody tr[data-lg-ped]:hover { background: #f8fafc; }
.lg-tabla .lg-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lg-tabla-mini { font-size: .8rem; margin-top: 8px; }
.lg-row-add td:first-child { box-shadow: inset 3px 0 0 #7c3aed; }
.lg-mono { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.lg-sub { font-size: .74rem; color: var(--rp-muted); }
.lg-pie { margin-top: 8px; font-size: .76rem; color: var(--rp-muted); }

/* estados */
.lg-st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.lg-st-pend { background: var(--rp-amber-soft); color: var(--rp-amber); }
.lg-st-curso { background: #eff6ff; color: #1d4ed8; }
.lg-st-ok { background: var(--rp-green-soft); color: var(--rp-green); }
.lg-st-bad { background: #fef2f2; color: #dc2626; }

/* diálogos */
.rp-dialog.rp-dialog-xl.lg-dlg { width: min(860px, 100%); }
.lg-mini-wrap { overflow-x: auto; max-width: 100%; }
.lg-dlg .rp-dialog-body { min-width: 0; overflow-x: hidden; }
.rp-dialog.lg-dlg-sm { width: min(480px, 100%); }
.lg-kv { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; margin-bottom: 8px; }
.lg-kv > span:first-child { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-muted); min-width: 110px; }
.lg-aviso { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: .82rem; margin: 6px 0; }
.lg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.lg-span2 { grid-column: 1 / -1; }
.lg-inp { width: 100%; height: 40px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: .9rem; color: var(--rp-ink); background: #fff; box-sizing: border-box; }
.lg-inp:focus { outline: 0; border-color: var(--rp-red); box-shadow: 0 0 0 3px rgba(180,0,12,.12); }
.lg-inp-big { height: 56px; font-size: 1.5rem; font-weight: 800; text-align: center; }
.lg-sug { display: grid; gap: 4px; margin: -4px 0 8px; }
.lg-sug button { text-align: left; border: 1px solid var(--rp-line); background: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .84rem; cursor: pointer; }
.lg-sug button:hover { border-color: var(--rp-red); }
.lg-dlg .rp-dialog-actions, .lg-card-acts { flex-wrap: wrap; }

/* preparación (almacenero): botones grandes para tablet / móvil */
.lg-prog { display: grid; gap: 8px; margin-bottom: 14px; font-size: .95rem; }
.lg-prog b { font-size: 1.4rem; }
.lg-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lg-card { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); padding: 14px 16px; display: grid; gap: 10px; }
.lg-card-en_preparacion { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(29,78,216,.10); }
.lg-card-preparado { opacity: .72; }
.lg-card-incidencia, .lg-card-no_disponible { border-color: #fca5a5; }
.lg-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lg-card-cli { font-weight: 800; font-size: 1rem; line-height: 1.3; }
.lg-card-mid { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--rp-muted); }
.lg-card-mid span { display: inline-flex; gap: 4px; align-items: center; }
.lg-card-com { font-size: .8rem; background: var(--rp-bg); border-radius: 8px; padding: 6px 10px; }
.lg-card-acts { display: flex; gap: 8px; }
.lg-btn { flex: 1 1 auto; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--rp-line); background: #fff; font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; color: var(--rp-ink); }
.lg-btn-go { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.lg-btn-ok { background: var(--rp-green); border-color: var(--rp-green); color: #fff; }
.lg-btn-inc { color: #dc2626; border-color: #fecaca; flex: 0 1 auto; }
.lg-btn-sec { flex: 0 1 auto; font-weight: 700; }
.rp-btn-save.lg-btn-inc { background: #fff; color: #dc2626; border-color: #fecaca; box-shadow: none; }
.rp-btn-save.lg-btn-sec { background: #fff; color: var(--rp-ink); border-color: var(--rp-line); box-shadow: none; }
.rp-btn-save.lg-btn-go { background: #1d4ed8; border-color: #1d4ed8; }
.rp-btn-save.lg-btn-ok { background: var(--rp-green); border-color: var(--rp-green); }
.rp-nota code { font-size: .74rem; background: rgba(255,255,255,.6); padding: 0 4px; border-radius: 4px; }
@media (max-width: 560px) { .lg-grid2 { grid-template-columns: 1fr; } .lg-cards { grid-template-columns: 1fr; } }

/* ===== fase 2: rutas por fases (.lr-) ===== */
.lr-buscar { flex: 0 1 260px; }
.lr-sin { background: var(--rp-amber-soft); border: 1px solid #fde68a; border-radius: var(--rp-radius); padding: 10px 14px; margin-bottom: 18px; }
.lr-sin summary { cursor: pointer; font-size: .9rem; }
.lr-sin-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.lr-chk { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; }
.lr-sr-list { display: grid; gap: 2px; max-height: 320px; overflow: auto; background: #fff; border-radius: 10px; border: 1px solid var(--rp-line); }
.lr-sr-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 10px; font-size: .82rem; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.lr-sr-cli { flex: 1 1 260px; min-width: 0; }
.lr-ns-t { margin: 10px 0 4px; }
.lr-fase { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; background: #f1f5f9; color: var(--rp-ink); }
.lr-f-almacen { background: #fef3c7; color: #92400e; }
.lr-f-cocina { background: #fee2e2; color: #991b1b; }
.lr-f-gourmet { background: #ede9fe; color: #5b21b6; }
.lr-f-recogidas { background: #e0f2fe; color: #075985; }
.lr-rutas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); align-items: start; }
.lr-ruta { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.lr-ruta-h, .lr-mr-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lr-ruta-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lr-ruta-sel label { display: inline-flex; align-items: center; gap: 4px; color: var(--rp-muted); }
.lr-ruta-sel .lg-sel { height: 32px; font-size: .78rem; max-width: 190px; }
.lr-ruta-st { display: grid; justify-items: end; gap: 4px; }
.lr-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lr-aviso { display: inline-flex; gap: 4px; align-items: center; font-size: .72rem; font-weight: 700; color: var(--rp-amber); background: var(--rp-amber-soft); border-radius: 999px; padding: 2px 8px; }
.lr-toggle { justify-self: start; border: 0; background: none; color: var(--rp-red); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 0; }
.lr-mini { border: 1px solid var(--rp-line); background: #fff; border-radius: 6px; font-size: .62rem; line-height: 1; padding: 3px 5px; cursor: pointer; color: var(--rp-muted); }
.lr-mini:disabled { opacity: .3; cursor: default; }
.lr-fase-blk { border-top: 1px solid var(--rp-line); padding-top: 8px; }
.lr-fase-h { display: flex; gap: 8px; align-items: center; font-size: .86rem; margin-bottom: 6px; }
.lr-paradas { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.lr-p { display: grid; grid-template-columns: auto 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: .8rem; padding: 6px 4px; border-bottom: 1px solid #f1f5f9; }
.lr-p-n { font-weight: 800; color: var(--rp-muted); font-variant-numeric: tabular-nums; text-align: right; }
.lr-p-r { display: grid; justify-items: end; gap: 2px; }
.lr-ord { display: inline-flex; gap: 2px; }
.lr-p-hecha { opacity: .62; }
.lr-tag { font-size: .62rem; font-weight: 800; color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 0 4px; }
.lr-tag-x { color: #b45309; background: var(--rp-amber-soft); }
.lr-foto { color: #1d4ed8; font-size: .74rem; }
.lr-mover { border-top: 1px solid var(--rp-line); padding-top: 8px; }
/* chófer */
.lr-mr { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); padding: 14px 16px; display: grid; gap: 12px; margin-bottom: 16px; }
.lr-mr-hitos { justify-content: flex-start; }
.lr-mr-fase { border-top: 1px solid var(--rp-line); padding-top: 10px; display: grid; gap: 8px; }
.lr-cps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lr-cp { border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #fff; }
.lr-cp-actual { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.lr-cp .lg-card-mid a { color: #1d4ed8; display: inline-flex; gap: 4px; align-items: center; font-weight: 700; }
@media (max-width: 560px) { .lr-rutas { grid-template-columns: 1fr; } .lr-ruta-sel .lg-sel { max-width: 100%; } }
.lr-ruta .rp-route-kind, .lr-mr .rp-route-kind { color: var(--rp-muted); font-weight: 700; }
.lr-ruta .rp-route-prog-n, .lr-mr .rp-route-prog-n { color: var(--rp-ink); font-size: 1.4rem; }
.lr-ruta .rp-route-prog-n span, .lr-mr .rp-route-prog-n span { color: var(--rp-muted); }

/* ===== fase 3: seguimiento (.ls-) ===== */
.ls-rutas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: start; }
.ls-ruta { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.ls-ruta.ls-alta { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.ls-ruta.ls-media { border-color: #fde68a; }
.ls-ruta .rp-route-kind { color: var(--rp-muted); font-weight: 700; }
.ls-ruta .rp-route-prog-n { color: var(--rp-ink); font-size: 1.4rem; }
.ls-ruta .rp-route-prog-n span { color: var(--rp-muted); }
.ls-ruta a { color: #1d4ed8; }
.ls-alertas { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ls-alertas li { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem; border-radius: 8px; padding: 5px 8px; }
.ls-al-alta { background: #fef2f2; color: #991b1b; }
.ls-al-media { background: var(--rp-amber-soft); color: var(--rp-amber); }
@media (max-width: 560px) { .ls-rutas { grid-template-columns: 1fr; } }
.lr-deca { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; border-top: 1px dashed var(--rp-line); padding-top: 8px; }
.lr-deca-a { color: #1d4ed8; font-weight: 700; font-size: .82rem; display: inline-flex; gap: 4px; align-items: center; }

/* ===== reunión 07/10/2026 ===== */
.lg-st-warn { background: var(--rp-amber-soft); color: var(--rp-amber); }
.lr-f-ok { background: var(--rp-green-soft); color: var(--rp-green); }
.lr-param { margin: -6px 0 14px; }
/* arrastrar */
[data-drag] { cursor: grab; }
.lr-arrastrando { opacity: .45; }
.lr-sobre { box-shadow: inset 0 3px 0 #1d4ed8; }
.lr-sobre-ruta { outline: 2px dashed #1d4ed8; outline-offset: 2px; }
.lr-p-n { white-space: nowrap; }
/* carga con lista de comprobación */
.lr-carga { border: 1px solid #fde68a; background: var(--rp-amber-soft); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.lr-carga-ok { border-color: #a7f3d0; background: var(--rp-green-soft); display: flex; gap: 8px; align-items: center; font-size: .86rem; }
.lr-carga-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.lr-carga-items li { background: #fff; border: 1px solid var(--rp-line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.lr-carga-items label { display: flex; gap: 10px; align-items: center; font-size: .86rem; cursor: pointer; }
.lr-carga-items input[type=checkbox] { width: 24px; height: 24px; flex: 0 0 auto; }
.lr-carga-items label > span:nth-of-type(1) { flex: 1 1 auto; min-width: 0; }
.lr-ci-ok { opacity: .6; }
.lr-ubi { font-weight: 800; font-size: .95rem; background: var(--rp-ink); color: #fff; border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.lr-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rp-line); display: inline-block; margin: 2px 4px 2px 0; }
.lr-btn-ancho { width: 100%; }
.lr-inp-n { width: 70px; height: 36px; text-align: center; }
/* preparación línea a línea */
.lg-bulto { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.lg-bulto .lg-inp-big { height: 44px; font-size: 1.2rem; }
.lg-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lg-pick li { display: grid; grid-template-columns: auto minmax(0, 1fr) 120px; gap: 10px; align-items: center; border: 1px solid var(--rp-line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.lg-pick-chk input { width: 28px; height: 28px; }
.lg-pick-cant { display: grid; gap: 2px; text-align: right; }
.lg-pick-cant .lg-inp { height: 40px; text-align: center; font-weight: 700; }
.lg-l-ok { opacity: .55; }
.lg-tabla tr.lg-l-ok td { text-decoration: none; }
/* mapa de seguimiento */
.ls-mapa { height: min(70vh, 640px); border-radius: var(--rp-radius); border: 1px solid var(--rp-line); margin-bottom: 8px; }
.ls-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--rp-muted); }
.ls-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.ls-leyenda i.ls-camion { border-radius: 3px; background: var(--rp-red); width: 16px; }
.ls-pin span { display: inline-block; background: var(--rp-red); color: #fff; font-weight: 800; font-size: .72rem; border-radius: 6px; padding: 2px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.3); white-space: nowrap; }
@media (max-width: 560px) { .lg-pick li { grid-template-columns: auto minmax(0, 1fr); } .lg-pick-cant { grid-column: 2; text-align: left; } }
.lg-btn:disabled, .lg-btn[disabled] { opacity: .4; cursor: not-allowed; filter: grayscale(.4); }

/* ===== tablero de rutas (arrastrar) ===== */
.lr-vistas { display: inline-flex; gap: 4px; margin-right: 8px; }
.lr-tablero { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.lr-col { flex: 0 0 270px; background: var(--rp-bg); border: 1px solid var(--rp-line); border-radius: 14px; display: flex; flex-direction: column; max-height: 78vh; scroll-snap-align: start; }
.lr-col-h { padding: 10px 12px; border-top: 4px solid #94a3b8; border-radius: 14px 14px 0 0; background: #fff; border-bottom: 1px solid var(--rp-line); display: grid; gap: 4px; }
.lr-col-nom { font-weight: 800; font-size: .8rem; color: var(--rp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.lr-col-b { overflow-y: auto; padding: 8px; display: grid; gap: 6px; min-height: 80px; }
.lr-col-sin { flex-basis: 290px; }
.lr-col-sin .lr-col-h { border-top-color: var(--rp-amber); }
.lr-col-mas { flex-basis: 220px; opacity: .85; }
.lr-col-fase { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 6px; padding: 3px 8px; display: flex; gap: 6px; align-items: center; }
.lr-col-fase span { margin-left: auto; }
.lr-col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 24px; }
.lr-col-vacia { font-size: .78rem; color: var(--rp-muted); text-align: center; padding: 18px 6px; border: 2px dashed var(--rp-line); border-radius: 10px; }
.lr-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--rp-line); border-left: 4px solid #94a3b8; border-radius: 10px; padding: 7px 8px; font-size: .78rem; cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.lr-card:hover { border-color: #93c5fd; }
.lr-card:active { cursor: grabbing; }
.lr-cb-almacen { border-left-color: #d97706; }
.lr-cb-cocina { border-left-color: #dc2626; }
.lr-cb-gourmet { border-left-color: #7c3aed; }
.lr-cb-recogidas { border-left-color: #0891b2; }
.lr-card-n { font-weight: 800; color: var(--rp-muted); font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }
.lr-card-t { min-width: 0; }
.lr-card-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-card-t .lg-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-card-e { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.lr-e-completada { background: #059669; } .lr-e-incidencia { background: #d97706; } .lr-e-no_entregada { background: #dc2626; } .lr-e-en_destino { background: #1d4ed8; }
.lr-card.lr-sobre { box-shadow: inset 0 3px 0 #1d4ed8, 0 1px 2px rgba(15,23,42,.05); }
.lr-col.lr-sobre-ruta { outline: 3px dashed #1d4ed8; outline-offset: -3px; background: #eff6ff; }

/* ===== seguimiento visual ===== */
.ls-graf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ls-graf { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); padding: 12px 14px; min-width: 0; }
.ls-graf h3 { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rp-muted); margin-bottom: 8px; }
.ls-graf-ancho { grid-column: span 2; }
.ls-cv { position: relative; height: 230px; }
.ls-cv-alto { height: 300px; }
.ls-cv-scroll { height: 300px; overflow-y: auto; }
.ls-cv-scroll > div { position: relative; }
.ls-mapa-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 10px; margin-bottom: 8px; }
.ls-mapa-wrap .ls-mapa { height: 520px; margin: 0; }
.ls-mapa-grande .ls-mapa { height: calc(100vh - 300px); min-height: 480px; }
.ls-mapa-lado { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); overflow-y: auto; max-height: 520px; padding: 8px; display: grid; gap: 4px; align-content: start; }
.ls-mapa-grande .ls-mapa-lado { max-height: calc(100vh - 300px); }
.ls-lado-h { display: flex; gap: 6px; align-items: center; font-size: .82rem; padding: 2px 4px 6px; border-bottom: 1px solid var(--rp-line); }
.ls-lado-r { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: .76rem; padding: 4px; border-radius: 8px; cursor: pointer; }
.ls-lado-r:hover { background: var(--rp-bg); }
.ls-lado-r i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ls-lado-r.ls-off { opacity: .45; }
.ls-leyenda i.ls-i-aprox { border: 2px dashed #64748b; background: transparent; }
.ls-barra { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #e2e8f0; }
.ls-barra span { display: block; height: 100%; }
.ls-b-completada { background: #059669; } .ls-b-incidencia { background: #d97706; } .ls-b-no_entregada { background: #dc2626; } .ls-b-pendiente { background: #cbd5e1; }
.ls-datos { margin-top: 10px; } .ls-datos summary { cursor: pointer; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.ls-datos .lg-tabla-wrap { margin-bottom: 10px; }
@media (max-width: 900px) { .ls-mapa-wrap { grid-template-columns: 1fr; } .ls-graf-ancho { grid-column: auto; } .ls-mapa-lado { max-height: 220px; } }
.ls-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ls-foto { display: grid; grid-template-rows: 130px auto; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 12px; overflow: hidden; color: var(--rp-ink); box-shadow: var(--rp-shadow); }
.ls-foto img { width: 100%; height: 130px; object-fit: cover; }
.ls-foto span { padding: 6px 8px; font-size: .74rem; line-height: 1.35; }
.ls-foto i { color: var(--rp-muted); font-style: normal; }
.ls-foto-pend { border-color: #fcd34d; box-shadow: 0 0 0 2px rgba(217,119,6,.15); }

/* INC-00041: grupo «Cocina» del tablero (Tradicional + Gourmet); las tarjetas conservan su color (rojo / morado) */
.lr-f-comida { background: linear-gradient(90deg, #fee2e2 0%, #ede9fe 100%); color: #7f1d1d; }
.lr-col-list + .lr-col-list { margin-top: 6px; }

/* Carga manual de cocina y Gourmet (06/10/2026) */
.lr-cps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; margin-top: 12px; }
.lr-cp { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.lr-cp code { font-size: .7rem; color: #64748b; }
.lr-cp small { color: #64748b; font-size: .72rem; line-height: 1.3; }
.lg-link { border: 0; background: none; color: #0563c1; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
