/* Contracargos (2026-10-07). Prefijo cb-. Colores por tokens: claro y oscuro salen del tema. */
.cb-head { flex-wrap: wrap; } .cb-head h1 + p { margin-top: 2px; }
.cb-body { display: flex; flex-direction: column; gap: 14px; padding: 0 22px 24px; flex: 1; min-height: 0; overflow: auto; }
.cb-aviso { display: flex; align-items: center; gap: 14px; padding: 14px 16px; } .cb-aviso p { margin-top: 3px; color: var(--text-2); line-height: 1.45; }
.cb-aviso-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--card-2); color: var(--primary); }
.cb-aviso.err .cb-aviso-ic { color: var(--danger); }
.cb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cb-tile { padding: 16px 18px; border-left: 4px solid transparent; } .cb-tile.warn { border-left-color: var(--warn); } .cb-tile.danger { border-left-color: var(--danger); } .cb-tile.ok { border-left-color: var(--ok); }
.cb-tile-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; } .cb-tile-l { font-weight: 700; margin: 6px 0 2px; }
.cb-filtros { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cb-chips { display: flex; gap: 6px; flex-wrap: wrap; } .cb-buscar { max-width: 320px; margin-left: auto; }
.cb-lista { display: flex; flex-direction: column; gap: 8px; }
.cb-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border-radius: var(--r-md, 16px); background: var(--card); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: background var(--t, .15s) var(--ease), transform var(--t, .15s) var(--ease); }
.cb-row:hover { background: var(--card-2); } .cb-row:active { transform: scale(.995); }
.cb-row-main { flex: 1; min-width: 0; } .cb-row-top { gap: 8px; flex-wrap: wrap; } .cb-row-monto { font-weight: 800; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-row-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.pill.sm { height: 20px; padding: 0 8px; font-size: 11px; } .pill.info { background: var(--info-soft, var(--card-2)); color: var(--info-text, var(--text)); }
.cb-wrap { gap: 8px; flex-wrap: wrap; }
.cb-ficha { display: flex; flex-direction: column; gap: 12px; } .cb-sec { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; } .cb-sec h3 { font-size: 16px; } .cb-sec h4 { font-size: 13.5px; margin-bottom: 6px; }
.cb-fechas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .cb-dato { display: flex; flex-direction: column; gap: 2px; }
.cb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 18px; margin: 0; }
.cb-fact { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border-left: 3px solid transparent; } .cb-fact dt { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 3px; } .cb-fact dd { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.cb-fact.warn { border-left-color: var(--warn); } .cb-fact.ok { border-left-color: var(--ok); }
.cb-nota { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--card-2); color: var(--text-2); line-height: 1.45; } .cb-nota .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary); }
.cb-nota.warn { background: var(--warn-soft); color: var(--warn-text); } .cb-nota.warn .icon { color: currentColor; }
.cb-resumen { font-size: 15px; line-height: 1.5; }
.cb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.cb-ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.4; } .cb-ul.ok li::marker { color: var(--ok); } .cb-ul.falta { list-style: none; padding: 0; gap: 8px; }
.cb-campo { display: flex; flex-direction: column; gap: 6px; } .cb-campo label { display: block; } .cb-ta { min-height: 72px; font-size: 13.5px; }
.cb-extra { display: flex; flex-direction: column; gap: 12px; }
.cb-archivos { padding-top: 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; } .cb-archivos .cb-ul { list-style: none; padding: 0; } .cb-archivos li { display: flex; align-items: center; gap: 6px; }
.cb-ev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .cb-ev li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.cb-ev-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--card-2); color: var(--primary); } .cb-ev-ic .icon { width: 15px; height: 15px; }
.cb-form { gap: 10px; } .cb-form .adm-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.cb-informe { display: flex; flex-direction: column; gap: 12px; } .cb-inf { display: flex; flex-direction: column; gap: 10px; } .cb-inf h4 { margin-top: 6px; }
.cb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; } .cb-cards .card.soft { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; } .cb-cards p { line-height: 1.45; }
@media (max-width: 860px) {
  .cb-body { padding: 0 14px calc(24px + var(--nav-h, 0px) + var(--dock-h, 0px)); }   /* la última fila no queda debajo de la barra de abajo del celular ni del dock de la llamada */ .cb-row { flex-wrap: wrap; } .cb-row-pills { max-width: none; justify-content: flex-start; width: 100%; } .cb-buscar { max-width: none; margin-left: 0; width: 100%; }
  .cb-tile-n { font-size: 26px; }
}

/* Flujo de seguimiento (2026-10-07): grupos en la lista, chip del siguiente paso, responsable y tarjeta de pasos en la ficha */
.cb-grupo { display: flex; align-items: center; gap: 10px; margin: 6px 0 -2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .cb-grupo::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cb-paso-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card-2); color: var(--text-2); white-space: nowrap; } .cb-paso-chip .icon { width: 13px; height: 13px; }
.cb-paso-chip.analizar { background: var(--primary-soft, var(--card-2)); color: var(--primary); } .cb-paso-chip.evidencia { background: var(--warn-soft); color: var(--warn-text); } .cb-paso-chip.enviar { background: var(--danger-soft); color: var(--danger-text, var(--danger)); } .cb-paso-chip.esperando { background: var(--card-2); color: var(--muted); }
.cb-resp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .cb-resp .avatar { width: 20px; height: 20px; font-size: 9px; }
.cb-mas { align-self: center; }
.cb-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; } .cb-paso { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid transparent; font-size: 13px; }
.cb-paso b { display: flex; align-items: center; gap: 6px; } .cb-paso .icon { width: 15px; height: 15px; } .cb-paso.hecho { color: var(--ok-text); background: var(--ok-soft); } .cb-paso.actual { border-color: var(--primary); } .cb-paso.pendiente { color: var(--muted); }
.cb-paso .btn.sm { align-self: flex-start; }
.cb-seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .cb-seg select.input { height: 34px; padding: 0 10px; width: auto; }

/* Período y moneda (2026-10-07) + «Datos del pedido» en bloques */
.cb-periodo { row-gap: 8px; } .cb-fecha { width: 150px; height: 34px; padding: 0 10px; } .cb-moneda { height: 34px; padding: 0 10px; width: auto; margin-left: auto; } .cb-nota-periodo { margin-top: -6px; }
.cb-bloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.cb-bloque { padding: 12px 14px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; } .cb-bloque h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.cb-kv { margin: 0; display: flex; flex-direction: column; gap: 6px; } .cb-kv-row { display: grid; grid-template-columns: 118px 1fr; gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.4; } .cb-kv-row dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; } .cb-kv-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cb-kv-row.warn dd { color: var(--warn-text); } .cb-kv-row.ok dd { color: var(--ok-text); }
.cb-dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cb-dir { line-height: 1.4; font-size: 13.5px; } .cb-dir div:first-child { font-weight: 700; }
.cb-tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; } .cb-tabla td { padding: 6px 6px; border-top: 1px solid var(--line); vertical-align: top; } .cb-tabla tr:first-child td { border-top: 0; } .cb-tabla td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .cb-dirs { grid-template-columns: 1fr; } .cb-kv-row { grid-template-columns: 1fr; gap: 2px; } .cb-moneda { margin-left: 0; width: 100%; } }

/* Ficha con pestañas y «Pedido» como resumen visual (2026-10-07, segunda vuelta) */
.cb-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card-2); align-self: flex-start; }
.cb-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background var(--t, .15s) var(--ease), color var(--t, .15s) var(--ease); }
.cb-tab .icon { width: 15px; height: 15px; } .cb-tab:hover { color: var(--text); }
.cb-tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 18px rgba(0, 0, 0, .07); }
.cb-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .cb-tab-dot.ok { background: var(--ok); } .cb-tab-dot.warn { background: var(--warn); } .cb-tab-dot.danger { background: var(--danger); }
.cb-tab-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-text); } .cb-tab-ok .icon { width: 11px; height: 11px; }
.cb-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: var(--card-2); color: var(--muted); } .cb-tab.active .cb-tab-n { background: var(--card-2); }
.cb-pane { display: flex; flex-direction: column; gap: 12px; }
.cb-ped { gap: 16px; } .cb-ped h4, .cb-subt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
/* señales */
.cb-senales-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: -6px; }
.cb-senales { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.cb-senal { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; background: var(--card-2); }
.cb-senal b { display: block; font-size: 13.5px; line-height: 1.3; margin-bottom: 2px; } .cb-senal .small { display: block; line-height: 1.35; }
.cb-senal-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; } .cb-senal-ic .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.cb-senal.si .cb-senal-ic { background: var(--ok-soft); color: var(--ok-text); } .cb-senal.no .cb-senal-ic { background: var(--danger-soft); color: var(--danger-text, var(--danger)); }
.cb-senal.info .cb-senal-ic { background: var(--warn-soft); color: var(--warn-text); } .cb-senal.nd .cb-senal-ic { background: var(--card); color: var(--muted); }
.cb-clave { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; background: var(--primary-soft); color: var(--primary); }
:root[data-theme='dark'] .cb-clave { color: #9fd36a; }
/* recorrido */
.cb-recorrido { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: -4px; }
.cb-etapa { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 0 6px; min-width: 0; }
.cb-etapa::before { content: ''; position: absolute; top: 19px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; border-radius: 2px; background: var(--line); }
.cb-etapa:first-child::before { display: none; } .cb-etapa.hecho::before { background: var(--ok); } .cb-etapa.falta::before { background: repeating-linear-gradient(90deg, var(--danger) 0 6px, transparent 6px 11px); opacity: .6; }
.cb-etapa-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; background: var(--card-2); color: var(--muted); } .cb-etapa-ic .icon { width: 18px; height: 18px; }
.cb-etapa.hecho .cb-etapa-ic { background: var(--ok-soft); color: var(--ok-text); } .cb-etapa.falta .cb-etapa-ic { background: var(--danger-soft); color: var(--danger-text, var(--danger)); } .cb-etapa.disputa .cb-etapa-ic { background: var(--warn-soft); color: var(--warn-text); }
.cb-etapa b { font-size: 13.5px; } .cb-etapa-fecha { font-size: 12px; font-weight: 700; color: var(--muted); } .cb-etapa-det { font-size: 12.5px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.cb-etapa.falta .cb-etapa-det { color: var(--danger-text, var(--danger)); }
/* cliente y productos */
.cb-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cb-panel { padding: 14px 16px; border-radius: 16px; background: var(--card-2); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cb-cli-top { display: flex; align-items: center; gap: 12px; min-width: 0; } .cb-cli-id { display: flex; flex-direction: column; min-width: 0; } .cb-cli-id b { font-size: 16px; } .cb-cli-id .small { overflow-wrap: anywhere; }
.cb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .cb-stat { padding: 9px 11px; border-radius: 12px; background: var(--card); min-width: 0; } .cb-stat b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-stat span { font-size: 11.5px; color: var(--muted); }
.cb-previos > summary, .cb-det > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text-2); } .cb-previos > summary::-webkit-details-marker, .cb-det > summary::-webkit-details-marker { display: none; }
.cb-previos > summary .icon, .cb-det > summary .icon { width: 15px; height: 15px; transition: transform var(--t, .15s) var(--ease); } .cb-previos[open] > summary .icon, .cb-det[open] > summary .icon { transform: rotate(180deg); } .cb-previos .cb-ul { margin-top: 8px; }
.cb-prods { display: flex; flex-direction: column; gap: 8px; } .cb-prod { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.cb-prod-q { min-width: 34px; height: 28px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: var(--card); font-weight: 800; font-size: 12.5px; } .cb-prod-t { flex: 1; min-width: 0; line-height: 1.3; } .cb-prod-p { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-prod-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; font-variant-numeric: tabular-nums; }
/* direcciones */
.cb-dirs2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.cb-dir2 { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); height: 100%; } .cb-dir2 > .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary); }
:root[data-theme='dark'] .cb-dir2 > .icon { color: #9fd36a; }
/* más detalles */
.cb-det { border-radius: 14px; background: var(--card-2); } .cb-det > summary { padding: 12px 14px; } .cb-det-body { margin: 0; padding: 0 14px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 22px; }
@media (max-width: 760px) {
  .cb-duo, .cb-dirs2 { grid-template-columns: 1fr; } .cb-dir-vs { justify-self: start; }
  .cb-recorrido { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .cb-etapa { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 2px 10px; padding: 6px 0 6px 52px; min-height: 48px; }
  .cb-etapa::before { top: -12px; bottom: auto; left: 19px; right: auto; width: 2px; height: 24px; }
  .cb-etapa-ic { position: absolute; left: 0; top: 4px; margin: 0; } .cb-etapa-det { flex-basis: 100%; }
  .cb-tabs { border-radius: 18px; } .cb-tab { padding: 0 12px; }
  .cb-stat b { white-space: normal; font-size: 14px; }
}

/* Sub-secciones del Centro de resoluciones y Órdenes problema (2026-10-07) */
.rs-subnav { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 999px; background: var(--card-2); }
.rs-sub { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.rs-sub .icon { width: 15px; height: 15px; } .rs-sub:hover { color: var(--text); }
.rs-sub.active { background: var(--rail-active-bg); color: var(--rail-active-fg); }
.rs-sub-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--danger); color: #fff; }
.op-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.op-prev:empty { display: none; }
.op-prev-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok-text); } .op-prev-card .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; } .op-prev-card b { color: var(--text); }
.op-prev-card.mal { background: var(--warn-soft); color: var(--warn-text); }
.op-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--card-2); }
.op-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.op-seg button.active.alta { background: var(--danger-soft); color: var(--danger-text, var(--danger)); } .op-seg button.active.media { background: var(--warn-soft); color: var(--warn-text); } .op-seg button.active.baja { background: var(--card); color: var(--text); }
.op-msg { padding: 14px 16px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 8px; } .op-msg p { white-space: pre-wrap; line-height: 1.5; }
.op-res { padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .op-res p { margin: 0; line-height: 1.45; }
button.pill { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; }
@media (max-width: 760px) { .rs-subnav { display: flex; width: 100%; } .rs-sub { flex: 1; justify-content: center; padding: 0 10px; } }

/* Menú desplegable propio (2026-10-07: el <select> salía blanco sobre blanco en oscuro) */
.dd { position: relative; display: inline-flex; margin-left: auto; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.dd-btn:hover, .dd.on .dd-btn { background: var(--card-2); border-color: var(--card-3); } .dd-btn .icon { width: 16px; height: 16px; color: var(--muted); }
.dd-btn .dd-flecha { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); } .dd.on .dd-flecha { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--solid); border: 1px solid var(--lg-border); box-shadow: var(--lg-hi), var(--lg-shadow); display: none; flex-direction: column; gap: 2px; }
.dd.on .dd-menu { display: flex; animation: dd-in 140ms var(--ease) both; } @keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd-op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dd-op:hover, .dd-op:focus-visible { background: var(--card-2); outline: none; } .dd-op.sel { background: var(--primary-soft); }
.dd-op-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .dd-op-t b { font-size: 13.5px; } .dd-op-t span { font-size: 12px; color: var(--muted); }
.dd-op .icon { width: 16px; height: 16px; color: var(--primary); flex: none; } :root[data-theme='dark'] .dd-op .icon { color: #9fd36a; }
@media (max-width: 760px) { .dd { margin-left: 0; width: 100%; } .dd-btn { width: 100%; justify-content: space-between; height: 44px; } .dd-menu { left: 0; right: 0; min-width: 0 !important; } }

/* Encabezado del Centro de resoluciones: las sub-pestañas van en su propia fila; en el celular todo se apila (2026-10-07) */
.rs-fila { flex-basis: 100%; display: flex; min-width: 0; } .rs-fila .rs-subnav { margin-top: 0; }
@media (max-width: 860px) {
  .cb-head > .grow { flex-basis: 100%; } .cb-head h1 { font-size: 24px; line-height: 1.15; } .cb-head > .grow p { overflow-wrap: anywhere; }
  .cb-head > .btn { flex: 1 1 0; min-width: 0; } .cb-head > .btn.primary { flex: 1.2 1 0; }
}

/* Pestaña «Shopify» de la ficha (2026-10-12): cómo va el caso sin abrir Shopify */
.cb-sh { gap: 16px; } .cb-sh h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.cb-sh-hero { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--card-2); }
.cb-sh-hero b { display: block; font-size: 16.5px; line-height: 1.3; margin-bottom: 2px; } .cb-sh-hero .small { line-height: 1.45; color: var(--text-2); }
.cb-sh-hero-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--primary); } .cb-sh-hero-ic .icon { width: 20px; height: 20px; }
.cb-sh-hero.warn { background: var(--warn-soft); } .cb-sh-hero.warn .cb-sh-hero-ic { color: var(--warn-text); }
.cb-sh-hero.danger { background: var(--danger-soft); } .cb-sh-hero.danger .cb-sh-hero-ic { color: var(--danger-text, var(--danger)); }
.cb-sh-hero.ok { background: var(--ok-soft); } .cb-sh-hero.ok .cb-sh-hero-ic { color: var(--ok-text); }
.cb-sh-hero.info { background: var(--primary-soft, var(--card-2)); }
.cb-etapa.actual .cb-etapa-ic { background: var(--warn-soft); color: var(--warn-text); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--warn-soft); }
.cb-etapa.actual::before { background: var(--ok); } .cb-etapa.pendiente .cb-etapa-det { color: var(--muted); }
.cb-sh-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.cb-sh-dato { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); min-width: 0; } .cb-sh-dato b { font-size: 14px; overflow-wrap: anywhere; }
.cb-sh-dato.danger { background: var(--danger-soft); } .cb-sh-dato.danger b { color: var(--danger-text, var(--danger)); }
.cb-sh-codigo { margin-top: -8px; }
.cb-sh-duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.cb-sh-hechos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cb-sh-hechos li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.cb-sh-hecho-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted); } .cb-sh-hecho-ic .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.cb-sh-hechos li.positive .cb-sh-hecho-ic { background: var(--ok-soft); color: var(--ok-text); } .cb-sh-hechos li.negative .cb-sh-hecho-ic { background: var(--danger-soft); color: var(--danger-text, var(--danger)); }
.cb-sh-linea .cb-chips { gap: 4px; } .cb-sh-linea .chip.sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.cb-sh-eventos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cb-sh-eventos li { position: relative; display: flex; gap: 11px; padding: 0 0 14px; }
.cb-sh-eventos li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.cb-sh-ev-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted); } .cb-sh-ev-ic .icon { width: 15px; height: 15px; }
.cb-sh-ev-t { font-size: 13.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.cb-sh-eventos li.comentario .cb-sh-ev-ic { background: var(--primary-soft, var(--card)); color: var(--primary); }
.cb-sh-eventos li.comentario .cb-sh-ev-t { padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--card); }
.cb-sh-eventos li.disputa .cb-sh-ev-ic, .cb-sh-eventos li.alerta .cb-sh-ev-ic { background: var(--warn-soft); color: var(--warn-text); }
.cb-sh-eventos li.envio .cb-sh-ev-ic { background: var(--ok-soft); color: var(--ok-text); }
.cb-sh-eventos li.reembolso .cb-sh-ev-ic { background: var(--danger-soft); color: var(--danger-text, var(--danger)); }
:root[data-theme='dark'] .cb-sh-eventos li.comentario .cb-sh-ev-ic, :root[data-theme='dark'] .cb-sh-hero-ic { color: #9fd36a; }
/* La IA sigue redactando (pestaña y avisos) */
.cb-tab-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--card-3, var(--line)); border-top-color: var(--primary); animation: spin .8s linear infinite; margin-top: 2px; }
@media (max-width: 760px) {
  .cb-sh-duo { grid-template-columns: 1fr; } .cb-sh-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-sh-hero { align-items: flex-start; }
}

/* Celular (2026-11-16): con el botón al lado, el texto del aviso quedaba en una columna de 4 palabras y 9 renglones. El botón baja a su propia fila. */
@media (max-width: 640px) { .cb-aviso { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; } .cb-aviso > .grow { flex: 1 1 0; min-width: 0; } .cb-aviso > .btn, .cb-aviso > button { flex: 1 1 100%; justify-content: center; } }
/* Celular (2026-11-16): para el dedo. Medían 30–34 px de alto. */
@media (max-width: 860px) { .rs-sub { height: 40px; white-space: nowrap; } }
@media (max-width: 400px) { .rs-sub { padding: 0 6px; gap: 5px; font-size: 13px; } }   /* en un iPhone chico «Órdenes problema» se partía en dos renglones */

/* Reportes de pedidos (2026-11-20). Prefijo rp-. Lo que reporta el equipo: lista con miniaturas, formulario con adjuntos y ficha con galería. */
.rp-mis { font-size: 16px; margin: 4px 0 -6px; }
.rp-prob { margin-top: 4px; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rp-minis { display: flex; gap: 4px; flex: none; }
.rp-mini { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--card-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 800; } .rp-mini .icon { width: 18px; height: 18px; }
.rp-texto { white-space: pre-wrap; line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
.rp-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rp-gal { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); border: 0; padding: 0; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.rp-gal img { width: 100%; height: 100%; object-fit: cover; display: block; } .rp-gal > .icon { width: 28px; height: 28px; }
.rp-gal-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .28); pointer-events: none; } .rp-gal-play .icon { width: 30px; height: 30px; }
.rp-gal-n { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 7px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.rp-adj { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; } .rp-adj:empty { display: none; }
.rp-adj-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); display: grid; place-items: center; color: var(--muted); }
.rp-adj-tile img { width: 100%; height: 100%; object-fit: cover; display: block; } .rp-adj-tile > .icon { width: 26px; height: 26px; }
.rp-adj-tile.err { outline: 2px solid var(--danger); outline-offset: -2px; }
.rp-adj-x { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; } .rp-adj-x .icon { width: 15px; height: 15px; }
.rp-adj-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, .25); } .rp-adj-bar i { display: block; height: 100%; background: var(--accent); transition: width var(--t-fast) var(--ease); }
.rp-resp { padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); display: flex; flex-direction: column; gap: 4px; } .rp-resp p { margin: 0; white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; }
.rp-estados { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 860px) { .rp-minis { width: 100%; } .rp-adj-x { width: 40px; height: 40px; } .rp-galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rp-vista { margin-top: -4px; }
