/* =====================================================================
   GASCA · Pedidos Cocina Central (clon del Access BBDD_PedidosCC). Usa los componentes .ra- de gasca_rrhh_apps.css;
   aquí, las variables para la vista 'pcc-view' y lo propio del módulo (prefijo .pcc-).
   ===================================================================== */
#pcc-view {
    --ra-red: #b4000c; --ra-ink: #0f172a; --ra-ink2: #334155; --ra-muted: #64748b; --ra-line: #e2e8f0; --ra-card: #fff; --ra-bg: #f8fafc;
    --ra-blue: #2a78d6; --ra-green: #0f7b48; --ra-warn: #a15c00;
    --ra-radius: 16px; --ra-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.16);
    font-family: 'Inter', sans-serif; color: var(--ra-ink); font-size: 14px; line-height: 1.45;
}
:where(#pcc-view) :is(h2, h3, h4, p) { margin: 0; padding: 0; font-family: inherit; color: var(--ra-ink); }
:where(#pcc-view) :is(button, select, input, textarea) { font-family: inherit; }
.pcc-ico { background: linear-gradient(135deg, #0f172a, #334155); box-shadow: 0 10px 22px -12px rgba(15,23,42,.8); }

/* portada (formulario Inicio del Access) */
.pcc-grupo h3 { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ra-muted); margin: 0 0 10px 2px; }
.pcc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcc-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; background: #fff; border: 1px solid var(--ra-line); border-radius: 14px; padding: 16px 18px;
    box-shadow: var(--ra-shadow); cursor: pointer; color: var(--ra-ink); transition: transform .12s, border-color .12s; }
.pcc-card:hover { transform: translateY(-1px); border-color: var(--ra-red); }
.pcc-card > i { font-size: 1.15rem; color: var(--ra-red); width: 36px; height: 36px; border-radius: 10px; background: #fde8e9; display: grid; place-items: center; flex: 0 0 36px; }
.pcc-card b { display: block; font-size: .95rem; }
.pcc-card small { display: block; color: var(--ra-muted); font-size: .76rem; margin-top: 2px; line-height: 1.35; }
.pcc-card em { display: inline-block; margin-top: 6px; font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a15c00; background: #fff3dc; padding: 2px 8px; border-radius: 999px; }
.pcc-card.pcc-pend { opacity: .72; }
.pcc-card.pcc-pend > i { background: #f1f5f9; color: var(--ra-muted); }

/* listas de pedidos */
.pcc-gh { text-align: center !important; border-left: 1px solid var(--ra-line); }
.ra-t td.pcc-cero { color: #cbd5e1; }
.pcc-obs { width: 100%; min-width: 180px; height: 30px !important; font-size: .78rem !important; }
.pcc-ord { cursor: pointer; }
.pcc-totales { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pcc-tot { background: #fff; border: 1px solid var(--ra-line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--ra-shadow); display: grid; gap: 2px; }
.pcc-tot span { font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: var(--ra-muted); }
.pcc-tot b { font-size: 1.5rem; }
.pcc-tot small { color: var(--ra-muted); font-size: .74rem; }
.ra-t tr.pcc-mes td { background: #f1f5f9; font-weight: 800; text-transform: capitalize; }
.ra-t tr.pcc-hoy td { background: #eff6ff; }

/* ficha del pedido */
.pcc-servs { flex-wrap: wrap; }
.pcc-servs button { height: 34px; padding: 0 16px; font-size: .82rem; }
.pcc-nuevos { display: flex; flex-wrap: wrap; gap: 8px; }
.pcc-festivo { color: var(--ra-red) !important; font-weight: 800; }
.pcc-cat { border-top: 1px solid var(--ra-line); padding: 10px 0 6px; }
.pcc-cat:first-of-type { border-top: 0; padding-top: 0; }
.pcc-cat-h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.pcc-cat-h b { font-size: .86rem; }
.pcc-sub { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.pcc-lin { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 4px 0; }
.pcc-lin.pcc-rojo .pcc-nom { color: var(--ra-red); }
.pcc-cant { height: 30px !important; text-align: right; font-weight: 700; }
.pcc-nom { font-size: .84rem; font-weight: 600; min-width: 0; }
.pcc-nom small { display: block; color: var(--ra-muted); font-weight: 500; font-size: .72rem; }

/* ---------- MAESTROS (gasca_pcc_maestros.js / gasca_pcc_maestros2.js): comedores, clientes, centros, termos, navidad… ---------- */
.pcc-filtros { justify-content: flex-start; }
.pcc-oculto { display: none !important; }
.pcc-req, .ra-in.pcc-req, .ra-sel.pcc-req, .ra-ta.pcc-req { border: 2px solid var(--ra-red) !important; box-shadow: 0 0 0 3px rgba(180,0,12,.12) !important; }
.pcc-ficha { display: grid; gap: 16px; }
.pcc-cab { padding-bottom: 12px; border-bottom: 1px solid var(--ra-line); }
/* INC-00707 (Hugo, 30/10/2026): cabecera de la ficha del comedor con anchos a medida (ID corto, cliente y nombre anchos, interruptor «Activo») */
.ra-form.pcc-cab { grid-template-columns: 96px minmax(240px, 2.2fr) minmax(200px, 1.6fr) 150px auto; align-items: end; }
.pcc-cab .pcc-cab-ficha .ra-btn { white-space: nowrap; }
@media (max-width: 900px) {
    .ra-form.pcc-cab { grid-template-columns: 96px minmax(0, 1fr); }
    .pcc-cab [data-campo="com_id"] { order: 0; } .pcc-cab [data-campo="com_activo"] { order: 1; }
    .pcc-cab [data-campo="cli_id"] { order: 2; grid-column: 1 / -1; } .pcc-cab [data-campo="com_descripcion"] { order: 3; grid-column: 1 / -1; }
    .pcc-cab .pcc-cab-ficha { order: 4; grid-column: 1 / -1; } .pcc-cab .pcc-cab-ficha > span { display: none; }
}
/* campo de solo lectura: aspecto de dato, no de campo para escribir */
.ra-in.pcc-ro, .ra-sel.pcc-ro { background: #f1f5f9; border-color: transparent; color: var(--ra-ink); opacity: 1; -webkit-text-fill-color: var(--ra-ink); cursor: default; font-weight: 600; }
.ra-sel.pcc-ro { -webkit-appearance: none; appearance: none; background-image: none; text-overflow: ellipsis; }
/* casilla como interruptor (gm-switch de Victoria, «Sí»/«No»); sin la letra pequeña en mayúsculas de las etiquetas */
.ra-campo > .pcc-sw { font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: inherit; height: 36px; }
.pcc-sw input:not(:checked) ~ em { color: #b91c1c; }
.pcc-pest { margin-bottom: 4px; }
.pcc-ficha section[hidden] { display: none; }
.pcc-ficha section { display: grid; gap: 14px; }
/* INC-00698 (edurne.garcia, 30/10/2026): desplegables de una misma fila a la misma altura aunque las etiquetas ocupen 1, 2 o 3 líneas
   o lleven una nota: cada campo pega su control abajo y la nota («Los menus de monitor NO SE COBRAN») pasa entre la etiqueta y el control */
.pcc-ficha .ra-form > .ra-campo { align-content: end; }
.pcc-ficha .ra-form > .ra-campo > span:first-child { order: -2; }
.pcc-ficha .ra-form > .ra-campo > small { order: -1; }
.pcc-secc { border: 1px solid var(--ra-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.pcc-secc > h4, .pcc-sub-h { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ra-muted); margin: 0; }
.pcc-sub-h { margin-top: 8px; }
/* INC-00495: días de reparto (DIAS_REPARTO) en la ficha del cliente */
.pcc-dr { max-width: 760px; } .pcc-dr td:first-child { font-weight: 600; width: 130px; }
.pcc-dr-sel { min-width: 220px; padding: 4px 8px; } .pcc-dr-sel.pcc-dr-vacia { color: #94a3b8; }
.pcc-dr-nota { color: #64748b; margin: 4px 0; }
.pcc-srv, .pcc-dias { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pcc-fila-in { display: flex; gap: 6px; align-items: center; }
.pcc-fila-in .ra-in { flex: 1; }
.pcc-aviso-rojo { color: var(--ra-red); font-weight: 800; }
.pcc-mini { max-width: 320px; }
.pcc-rej td { padding: 4px 6px; }
.pcc-rej .ra-sel, .pcc-rej .ra-in { min-width: 120px; }
.pcc-rej tr.pcc-nueva td { background: #f8fafc; }
.pcc-obs-fila { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.pcc-obs-fila:last-child { border-bottom: 0; }
/* calendario de festivos del comedor */
.pcc-anio { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; }
.pcc-leyenda { display: flex; gap: 8px; flex-wrap: wrap; }
.pcc-leyenda span { padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.pcc-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pcc-mes-cal h4 { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-align: center; margin: 0 0 4px; }
.pcc-mes-cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pcc-mes-cal th { font-size: .6rem; color: var(--ra-muted); font-weight: 800; padding: 2px 0; }
.pcc-mes-cal td { padding: 1px; text-align: center; }
.pcc-dia { width: 100%; height: 26px; border: 1px solid var(--ra-line); border-radius: 6px; background: #fff; font-size: .74rem; font-weight: 700; cursor: pointer; color: var(--ra-ink); }
.pcc-dia:hover { border-color: var(--ra-ink); }
.pcc-d-nac { background: #d40000 !important; color: #fff !important; }
.pcc-d-com { background: #ffc000 !important; color: #000 !important; }
.pcc-d-exc { background: #a7da4e !important; color: #000 !important; }
@media (max-width: 640px) { .pcc-cal { grid-template-columns: 1fr; } }

/* ---------- IMPRESIÓN, INFORMES Y FACTURACIÓN (gasca_pcc_impresion.js / gasca_pcc_informes.js) ---------- */
.pcc-texto { white-space: pre-line; font-size: .9rem; line-height: 1.5; color: var(--ra-ink); }
.ra-in.pcc-rojo-campo { border-color: var(--ra-red, #b4000c) !important; box-shadow: 0 0 0 2px rgba(180,0,12,.12); }
/* Asistente_opciones */
.pcc-ops { display: grid; gap: 10px; max-width: 760px; }
.pcc-op { display: flex; gap: 14px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--ra-line); border-radius: 14px; padding: 14px 18px;
    box-shadow: var(--ra-shadow); cursor: pointer; color: var(--ra-ink); transition: transform .12s, border-color .12s; width: 100%; }
.pcc-op:hover { transform: translateY(-1px); border-color: var(--ra-red); }
.pcc-op > i { font-size: 1.05rem; color: var(--ra-red); width: 36px; height: 36px; border-radius: 10px; background: #fde8e9; display: grid; place-items: center; flex: 0 0 36px; }
.pcc-op b { display: block; font-size: .95rem; }
.pcc-op small { display: block; color: var(--ra-muted); font-size: .76rem; margin-top: 2px; }
.pcc-op.pcc-op-hecho > i { background: #e3f4ea; color: var(--ra-green); }
.pcc-op-grupo { border: 1px dashed var(--ra-line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; background: #fcfdfe; }
.pcc-op-grupo h4 { font-size: .9rem; font-weight: 800; margin: 0; }
.pcc-op-tit { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ra-muted); margin: 4px 0 2px; }
.pcc-op-oculto { padding: 4px 6px; }
/* Asistente_manual */
.pcc-manual { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.pcc-manual-papel { padding: 6px 0 8px; border-top: 1px solid var(--ra-line); }
.pcc-manual-papel:first-of-type { border-top: 0; }
.pcc-manual-doc { white-space: pre-line; padding: 3px 0; }
/* Asistente_MostrarPapel */
.pcc-papel { display: grid; gap: 12px; }
.pcc-papel-desc { font-size: 1.15rem; font-weight: 800; }
.pcc-papel-imgs { display: flex; flex-wrap: wrap; gap: 12px; }
.pcc-papel-img { margin: 0; flex: 1 1 200px; max-width: 360px; border: 1px solid var(--ra-line); border-radius: 12px; padding: 8px; background: #fff; text-align: center; }
.pcc-papel-img img { max-width: 100%; max-height: 260px; object-fit: contain; }
.pcc-papel-img figcaption { font-size: .7rem; color: var(--ra-muted); margin-top: 4px; }
.pcc-papel-ruta { font-family: monospace; font-size: .72rem; word-break: break-all; color: var(--ra-muted); }
/* visor (formulario Crystal) y documentos pendientes */
.ra-modal.pcc-modal-visor { height: calc(100vh - 32px); }
.ra-modal.pcc-modal-visor .ra-modal-b { flex: 1 1 auto; align-content: start; }
.pcc-pend-doc { display: flex; gap: 16px; align-items: flex-start; padding: 6px 2px; }
.pcc-pend-doc > i { font-size: 2rem; color: #a15c00; flex: 0 0 auto; margin-top: 2px; }
.pcc-pend-doc b { font-size: 1rem; }
.pcc-pend-doc p { margin: 8px 0 0; color: var(--ra-ink2); font-size: .86rem; }
.pcc-pend-doc ul { margin: 8px 0 0; padding-left: 18px; font-size: .82rem; }
/* informes imprimibles */
.pcc-inf-cab { margin-bottom: 12px; }
.pcc-inf-cab h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.pcc-inf-cab p { color: var(--ra-muted); font-size: .8rem; margin: 2px 0 0; }
.pcc-inf-t { width: 100%; }
.pcc-inf-t td small { display: block; color: var(--ra-muted); font-size: .72rem; }
.pcc-inf-t small.pcc-pre { white-space: pre-line; }
.ra-t tr.pcc-g1 td { background: #eef2f6; font-weight: 800; font-size: .86rem; }
.ra-t tr.pcc-g2 td { background: #f8fafc; font-weight: 700; padding-left: 18px; }
.ra-t tr.pcc-g3 td { font-size: .78rem; color: var(--ra-ink2); padding-left: 30px; }
.ra-t tr.pcc-g-obs td { font-size: .78rem; font-style: italic; color: var(--ra-ink2); padding-left: 18px; }
.pcc-g-sub { margin-left: 10px; font-weight: 500; color: var(--ra-muted); font-size: .76rem; text-transform: none; }
.ra-t tr.pcc-sub-fila td { font-weight: 700; border-top: 1px solid var(--ra-line); background: #fcfdfe; }
.ra-t tr.pcc-tot-fila td { font-weight: 800; border-top: 2px solid var(--ra-ink); }
.pcc-etqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pcc-etq { border: 1px dashed #94a3b8; border-radius: 6px; padding: 8px 10px; display: grid; gap: 2px; font-size: .78rem; break-inside: avoid; }
.pcc-etq b { font-size: .86rem; }
.pcc-etq em { font-style: normal; font-weight: 800; font-size: 1rem; text-align: right; }
/* formulario Informes */
.pcc-inf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.pcc-inf-cols > div { display: grid; gap: 14px; }
.pcc-inf-sec { background: #fff; border: 1px solid var(--ra-line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--ra-shadow); display: grid; gap: 2px; }
.pcc-inf-sec h4 { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ra-muted); margin: 0 0 6px; }
.pcc-inf-op { display: flex; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 7px 6px; border-radius: 8px; cursor: pointer; color: var(--ra-ink); font-size: .88rem; font-weight: 600; }
.pcc-inf-op:hover { background: #f1f5f9; color: var(--ra-red); }
.pcc-inf-op > i { color: var(--ra-red); width: 18px; text-align: center; }
.pcc-inf-op em { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #a15c00; background: #fff3dc; padding: 2px 7px; border-radius: 999px; }
.pcc-inf-op.pcc-inf-pend > i { color: var(--ra-muted); }
@media print {
    .pcc-inf .ra-tw, .pcc-inf { max-height: none !important; overflow: visible !important; box-shadow: none !important; border: 0 !important; }
    .pcc-inf-t thead { display: table-header-group; }
    .pcc-inf-t tr { break-inside: avoid; }
    .ra-t tr.pcc-g1 td, .ra-t tr.pcc-g2 td, .ra-t tr.pcc-tot-fila td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .pcc-etqs { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .pcc-etq { border: 1px dotted #999; border-radius: 0; min-height: 34mm; }
    /* visor de documentos (modal): solo se imprime su contenido */
    body.pcc-print-modal .ra-root .ra-imprimible, body.pcc-print-modal .ra-root .ra-imprimible * { visibility: hidden !important; }
    body.pcc-print-modal .ra-modal-root { position: absolute !important; inset: 0 auto auto 0 !important; background: none !important; padding: 0 !important; display: block !important; }
    body.pcc-print-modal .ra-modal, body.pcc-print-modal .ra-modal-b { max-height: none !important; height: auto !important; overflow: visible !important; box-shadow: none !important; }
}

/* líneas del pedido (gasca_pcc_lineas.js / gasca_pcc_eventos.js); también dentro de los diálogos (.ra-modal-root) */
.pcc-wrap { flex-wrap: wrap; gap: 8px; }
.ra-t.pcc-ed td { vertical-align: middle; }
.ra-t.pcc-ed .ra-in, .ra-t.pcc-ed .ra-sel { height: 30px; font-size: .8rem; }
.ra-t.pcc-ed select.ra-sel { width: 100%; max-width: 360px; min-width: 140px; }
.pcc-root select.ra-sel, .ra-modal select.ra-sel { max-width: 100%; }
.pcc-num { width: 72px; text-align: right; }
.ra-t.pcc-ed tr.pcc-sucia td { background: #fffbeb; }
.pcc-h4 { font-size: .74rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ra-muted) !important; margin: 16px 0 8px !important; }
.pcc-mbloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.pcc-mbloque { border: 1px solid var(--ra-line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.pcc-mbloque h4 { font-size: .8rem; font-weight: 800; }
.pcc-mbloque, .pcc-mbloque .ra-form, .pcc-mbloque .ra-campo, .ra-modal .ra-campo { min-width: 0; }
.pcc-mbloque select.ra-sel, .ra-modal .ra-campo select.ra-sel { width: 100%; min-width: 0; }
.pcc-pdia b { display: block; font-size: .68rem; letter-spacing: .06em; color: var(--ra-muted); margin-bottom: 4px; }
.pcc-pdia tr[data-fila] { cursor: copy; }
.ra-t.pcc-rejilla { font-size: .74rem; }
.ra-modal-b > :is(.pcc-mbloques, .pcc-rejilla, .pcc-sugs, .pcc-picdet, [data-cuerpo], [data-detalle], [data-pdia]) { min-width: 0; }
.ra-t.pcc-rejilla { table-layout: fixed; width: 100%; }
.ra-t.pcc-rejilla td, .ra-t.pcc-rejilla th { white-space: normal; word-break: break-word; }
.pcc-sugs { display: grid; gap: 6px; padding: 12px 14px; }
.pcc-sug { display: grid; grid-template-columns: 28px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.pcc-sug > b { width: 26px; height: 26px; border-radius: 8px; background: #eef2f6; display: grid; place-items: center; font-size: .8rem; }
.pcc-sug span { font-size: .8rem; padding: 6px 8px; border: 1px dashed transparent; border-radius: 8px; min-height: 30px; }
.pcc-sug span.pcc-dbl { border-color: var(--ra-line); cursor: copy; user-select: none; }
.pcc-sug span.pcc-dbl:hover { border-color: var(--ra-blue); background: #eff6ff; }
.pcc-anadir { margin: 10px 0 12px; align-items: end; }
.pcc-pm { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: .78rem; font-weight: 700; color: var(--ra-muted); }
.pcc-fila { display: flex; gap: 6px; align-items: center; }
.pcc-fila .ra-sel { flex: 1; }
.pcc-picdet { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.pcc-picdet .pcc-cat-h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.pcc-dual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 12px; }
.pcc-dual-b { display: grid; gap: 8px; }
.pcc-multi { height: auto !important; min-height: 260px; padding: 6px !important; width: 100%; }
@media (max-width: 760px) { .pcc-dual { grid-template-columns: 1fr; } .pcc-sug { grid-template-columns: 28px 1fr; } }

/* ---------------------------------------------------------------------
   Pedidos habituales, cambios automáticos y revisiones (gasca_pcc_habituales.js, gasca_pcc_cambios.js, gasca_pcc_revisiones.js).
   Prefijo .pcc-hb-
   --------------------------------------------------------------------- */
.pcc-hb-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pcc-hb-fecha { font-size: .95rem; text-transform: capitalize; }
.pcc-hb-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .pcc-hb-cols { grid-template-columns: 1fr; } }
.pcc-hb-nuevo { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-modal .pcc-hb-nuevo .ra-btn { flex: 1 1 200px; justify-content: center; height: 44px; }
.pcc-hb-mm { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 800; color: var(--ra-muted); }
.ra-t input.pcc-hb-num { width: 76px; text-align: right; }
.ra-t .pcc-hb-ancho, .pcc-hb-ancho { width: 100%; min-width: 220px; }
.pcc-hb-rojo { border: 2px solid #fe4848 !important; }
.pcc-hb-obs { font-size: .74rem; color: var(--ra-ink2); max-width: 320px; }
.pcc-hb-obs div + div { margin-top: 2px; }
.ra-btn.pcc-hb-on { color: var(--ra-red); border-color: #f3c2c5; }
.ra-t tr.pcc-hb-actual td { background: #eff6ff; }
.ra-t tr.pcc-hb-sub td { background: #f8fafc; font-weight: 800; font-size: .78rem; }
.ra-t tr.pcc-hb-sub2 td { font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ra-muted); }
.pcc-hb-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; border: 1px solid var(--ra-line); border-radius: 10px; padding: 8px 10px; }
.pcc-hb-checks .ra-check { font-size: .78rem; font-weight: 500; }
.pcc-hb-filtros { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pcc-hb-filtro { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .76rem; }
.pcc-hb-filtro > span { font-weight: 700; color: var(--ra-muted); }
.pcc-hb-filtro .ra-tabs button { height: 28px; padding: 0 10px; font-size: .74rem; }
.pcc-hb-informe { display: grid; gap: 4px; }
.pcc-hb-g1 { font-size: 1rem; font-weight: 800; margin-top: 10px !important; padding-bottom: 4px; border-bottom: 2px solid var(--ra-ink); }
.pcc-hb-g2 { font-size: .9rem; font-weight: 800; margin-top: 6px !important; text-transform: capitalize; }
.pcc-hb-g2 small { font-weight: 500; color: var(--ra-muted); text-transform: none; margin-left: 8px; }
.pcc-hb-g3 { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ra-muted); margin-top: 4px; }
.pcc-hb-plato, .pcc-hb-dieta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; }
.pcc-hb-plato { background: #f1f5f9; }
.pcc-hb-dieta { margin-left: 18px; border: 1px solid var(--ra-line); }
.pcc-hb-dieta small { color: var(--ra-muted); }
.pcc-hb-dieta.pcc-hb-ok, .pcc-hb-menu.pcc-hb-ok { background: #f0fdf4; border-color: #bbf7d0; }
.pcc-hb-plato .ra-acciones, .pcc-hb-dieta .ra-acciones { margin-left: auto; display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pcc-hb-cli { display: flex; gap: 10px; align-items: center; margin-left: 40px; font-size: .8rem; }
.pcc-hb-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; padding: 8px 10px; border: 1px solid var(--ra-line); border-radius: 12px; }
@media (max-width: 900px) { .pcc-hb-menu { grid-template-columns: 1fr; } }
.pcc-hb-pln { font-weight: 700; font-size: .82rem; cursor: pointer; user-select: none; }
.pcc-hb-obsp { font-size: .74rem; color: #713f12; background: #fefce8; border-radius: 6px; padding: 2px 6px; margin-top: 2px; }
.pcc-hb-ico { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pcc-hb-ico .ra-btn { height: 26px; padding: 0 7px; font-size: .7rem; text-transform: capitalize; }
.ra-btn.pcc-hb-rojoi { color: var(--ra-red); border-color: #f3c2c5; }
.pcc-hb-acc { display: grid; gap: 4px; align-content: start; justify-items: end; }
.pcc-hb-com h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px !important; }
.pcc-hb-com h3 small { color: var(--ra-muted); font-weight: 600; }
.pcc-hb-pref { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .78rem; margin-bottom: 8px; }
.pcc-hb-pref b { flex: 0 0 100%; font-size: .66rem; letter-spacing: .08em; color: var(--ra-muted); }
.pcc-hb-dia { display: grid; gap: 8px; align-content: start; background: #f8fafc; border: 1px solid var(--ra-line); border-radius: 12px; padding: 12px; }
.pcc-hb-lista { width: 100%; height: auto !important; min-height: 200px; font-size: .78rem; }
/* campos numéricos con botón ± (INC-00123: el teclado numérico del iPhone no tiene «-») */
.pcc-con-signo { display: flex; gap: 6px; align-items: center; }
.pcc-con-signo .ra-in { flex: 1; min-width: 0; }
.pcc-signo { min-width: 36px; height: 36px; font-weight: 800; font-size: 1rem; justify-content: center; }

/* ===================== Informes reproducidos desde los .rpt de Crystal (gasca_pcc_informes.js, 15/10/2026) ===================== */
.pcc-rpt-cab { display: flex; gap: 16px; align-items: center; margin: 4px 0 12px; }
.pcc-rpt-cab h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.pcc-rpt-cab p { margin: 2px 0 0; font-size: .8rem; }
.pcc-rpt-logo { flex: 0 0 auto; width: 116px; border: 2px solid #c8102e; color: #c8102e; border-radius: 10px; padding: 6px 8px; text-align: center; font-weight: 900; letter-spacing: .12em; line-height: 1.1; }
.pcc-rpt-logo small { display: block; font-size: .55rem; font-weight: 700; letter-spacing: 0; color: #555; }
.pcc-rpt-pie { margin: 14px 0 0; font-size: .72rem; color: var(--ra-muted); border-top: 1px solid var(--ra-line); padding-top: 4px; text-align: center; }
.pcc-band { background: #000; color: #fff; font-size: 1.15rem; padding: 4px 8px; margin: 8px 0; }
.pcc-fact-tit { font-weight: 800; font-size: .8rem; border-bottom: 1px solid #000; margin: 10px 0 6px; }
.pcc-fact-cli { background: #e3e3e3; font-weight: 800; font-size: .82rem; padding: 3px 6px; margin: 16px 0 0; }
.pcc-fact-dias { width: auto !important; min-width: 320px; margin: 10px 0 4px; }
.pcc-ct { width: auto !important; min-width: 60%; font-size: .76rem; border-collapse: collapse; margin-bottom: 6px; }
.pcc-ct th, .pcc-ct td { border: 1px solid #999; padding: 1px 6px !important; }
.pcc-ct th.pcc-ct-esq { text-align: left; font-weight: 800; }
.pcc-ct th.pcc-ct-col { text-align: center; }
.pcc-ct td.pcc-ct-v { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; background: #ddd; text-align: left; white-space: nowrap; }
.pcc-ct td.pcc-ct-tot, .pcc-ct tr.pcc-ct-gran td { font-weight: 800; }
.pcc-ct tr.pcc-ct-gran td { background: #c8c8c8; }
.pcc-ct tr.pcc-ct-n0 td { font-weight: 800; background: #ececec; }
.pcc-ct tr.pcc-ct-n1 td { font-weight: 700; background: #f5f5f5; }
.pcc-ct tr.pcc-ct-n2 td { font-weight: 600; }
.pcc-ct tr.pcc-ct-negro td { background: #000; color: #fff; font-weight: 800; }
.pcc-ct tr.pcc-ct-gris td { background: #e0e0e0; font-weight: 800; }
.pcc-ct tr.pcc-ct-rojo td { background: #d52b2b; color: #fff; font-weight: 800; }
.pcc-salto-antes { break-before: page; page-break-before: always; margin-top: 18px; }
.pcc-nota { border: 1px solid var(--ra-line); border-radius: 8px; padding: 14px 18px; margin: 0 0 16px; display: flex; flex-direction: column; min-height: 520px; }
.pcc-nota-cab { display: grid; grid-template-columns: auto 1fr 300px; gap: 16px; align-items: start; }
.pcc-nota-cli { font-size: .85rem; }
.pcc-nota-inc { border: 1px solid #000; padding: 6px 8px; font-size: .75rem; text-align: center; display: grid; gap: 4px; }
.pcc-nota-fecha { display: flex; justify-content: space-between; border-bottom: 1px solid #000; margin: 12px 0 4px; font-size: .82rem; }
.pcc-nota-t td { padding: 1px 10px; font-size: .82rem; }
.pcc-nota-pie { margin-top: auto; border-top: 1px solid #000; padding-top: 6px; text-align: center; font-size: .75rem; }
.pcc-mf-dia { font-size: .95rem; font-weight: 800; margin: 14px 0 4px; }
.pcc-mf-srv { font-size: .85rem; font-weight: 700; margin: 6px 0 2px; }
.pcc-mf-t td { padding: 1px 8px; font-size: .82rem; }
.pcc-mf-t td:first-child { width: 80px; text-align: right; color: var(--ra-ink2); }
.pcc-fc-sec { font-weight: 800; border-bottom: 1px solid #000; margin: 14px 0 6px; }
.pcc-fc-dl { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; margin: 0 0 0 30px; font-size: .85rem; }
.pcc-fc-dl dt { font-weight: 700; }
.pcc-fc-dl dd { margin: 0; }
.pcc-fc-dl2 { grid-template-columns: 160px 80px 160px 80px; }
.pcc-fc-sub, .pcc-fc-b { margin: 6px 0 6px 30px; font-size: .82rem; }
.pcc-fc-t { font-weight: 700; }
.pcc-fc-st { font-weight: 700; margin-top: 4px; }
.pcc-fc-aj { display: grid; grid-template-columns: 60px 1fr; }
.pcc-fc-com { color: var(--ra-ink2); font-size: .76rem; margin-bottom: 2px; }
.pcc-fc-baja { font-size: 2.2rem; font-weight: 900; color: #c8102e; text-align: center; letter-spacing: .3em; }
.pcc-pre { white-space: pre-line; }
.pcc-rojo { color: #d00; }
.pcc-nf-ct { margin: 10px 0 2px; font-size: .9rem; font-weight: 800; }
.pcc-nf-com { margin: 8px 0 2px; font-size: .82rem; font-weight: 700; }
.pcc-mp-sem { font-weight: 800; margin: 10px 0 4px; }
.pcc-mp-srv { font-weight: 700; margin: 8px 0 4px; }
.pcc-mp-t td { vertical-align: top; font-size: .76rem; }
.pcc-mp + .pcc-mp { break-before: page; page-break-before: always; }
.pcc-prev-t td.pcc-sangria { padding-left: 28px; }
@media print {
    .pcc-nota { break-after: page; page-break-after: always; border: 0; min-height: 0; }
    .pcc-ct tr, .pcc-ct td { break-inside: avoid; }
    .pcc-band, .pcc-ct td.pcc-ct-v, .pcc-ct tr td, .pcc-fact-cli { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===================== Transporte, ajustes y etiquetas para adelantar rehechos desde sus .rpt (gasca_pcc_informes.js, 15/10/2026) ===================== */
.pcc-tr { margin-bottom: 18px; }
.pcc-tr + .pcc-tr { break-before: page; page-break-before: always; }
.pcc-tr-cab { justify-content: space-between; }
.pcc-tr-cod { font-size: .68rem; text-align: right; color: var(--ra-ink2); }
.pcc-tr-t { width: 100%; border-collapse: collapse; font-size: .76rem; margin-bottom: 6px; }
.pcc-tr-t td { border: 1px solid #555; padding: 2px 6px; vertical-align: top; }
.pcc-tr-t .ra-c, .pcc-tr-t .pcc-tr-c { text-align: center; }
.pcc-tr-ruta td.pcc-tr-num { background: #c8c8c8; font-size: 1.4rem; font-weight: 900; text-align: center; vertical-align: middle; width: 22%; }
.pcc-tr-chk td { text-align: center; }
.pcc-tr-linea { text-align: center; font-weight: 800; margin: 10px 0 0; }
.pcc-tr-cli tr.pcc-tr-mun td { background: #c8c8c8; font-weight: 800; text-align: center; }
.pcc-tr-cli tr.pcc-tr-sub td { font-size: .6rem; font-weight: 400; }
.pcc-tr-cli tr.pcc-tr-barrio td { font-weight: 800; }
.pcc-tr-cli td:first-child { width: 62%; }
.pcc-tr-cli tr.pcc-tr-com td:first-child { text-align: right; }
.pcc-tr-cli td i { font-style: italic; }
.pcc-sangria { padding-left: 28px !important; }
.pcc-aj-gen { font-size: .8rem; border: 1px solid var(--ra-line); padding: 6px 10px; }
.pcc-etqs2 { display: grid; grid-template-columns: repeat(auto-fill, 3.6cm); gap: 4px; }
.pcc-etq2 { width: 3.6cm; height: 2.4cm; border: 1px dashed #bbb; padding: 3px 4px; font-size: 9pt; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.pcc-etq2-com { font-weight: 700; line-height: 1.1; }
.pcc-etq2-com.pcc-etq2-peq { font-size: 7pt; }
.pcc-etq2-lin { display: flex; justify-content: space-between; gap: 4px; font-weight: 800; }
.pcc-etq2-plt { font-size: 8pt; line-height: 1.1; max-height: 2.3em; overflow: hidden; }
@media print {
    .pcc-tr-ruta td.pcc-tr-num, .pcc-tr-cli tr.pcc-tr-mun td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .pcc-etq2 { border-color: transparent; break-inside: avoid; }
}

/* INC-00202: cuadro de mando del comedor */
.pcc-cm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.pcc-cm-k { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; background: #f8fafc; display: grid; gap: 2px; }
.pcc-cm-k span { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .02em; }
.pcc-cm-k b { font-size: 1.25rem; color: #0f172a; } .pcc-cm-k small { font-size: .72rem; color: #64748b; }
.pcc-cm-k.pcc-cm-mal b { color: #b91c1c; } .pcc-cm-k.pcc-cm-ok b { color: #15803d; }
.pcc-cm-graf { position: relative; height: 300px; margin: 6px 0 10px; }
.pcc-cm-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.pcc-cm-t { width: 100%; font-size: .8rem; } .pcc-cm-t th { text-align: left; } .pcc-cm-0 { color: #cbd5e1; }
.pcc-cm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .pcc-cm-chips span { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.pcc-cm-aj { margin: 4px 0 8px; font-size: .85rem; }
@media print { .pcc-cm-graf { height: 240px; } .pcc-cm-k { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* INC-00283 (Hugo, 20/10/2026): el ajuste general, como recordatorio pequeño */
.pcc-recordatorio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 4px 0 12px; padding: 6px 12px; border-radius: 10px; background: #f8fafc; border: 1px dashed #cbd5e1; font-size: .78rem; color: #475569; }
.pcc-recordatorio i { color: #94a3b8; } .pcc-recordatorio b { color: #334155; } .pcc-recordatorio em { font-style: normal; font-weight: 700; color: #0f172a; white-space: nowrap; }

/* INC-00284: a quién se envía el informe de ajustes del comedor */
.pcc-aj-para { margin: 8px 0; padding: 6px 10px; border-radius: 8px; background: #eff6ff; color: #1e3a8a; font-size: .82rem; } .pcc-aj-para i { color: #60a5fa; margin-right: 4px; }
@media print { .pcc-aj-para { display: none; } }

/* INC-00288: logotipo real de GASCA en los informes */
.pcc-rpt-logo-img { height: 58px; width: auto; flex: none; object-fit: contain; }

/* INC-00480: Análisis de consumos (el Excel COSTESCC.xlsx como cuadro de mando) */
.pcc-con-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.pcc-con-filtros select { max-width: 230px; }
.pcc-con-atajos { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pcc-con-atajos .ra-btn { height: 30px; padding: 0 10px; font-size: .74rem; }
.pcc-con-kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 0; }
.pcc-con-kpis .pcc-cm-k b small { font-size: .85rem; color: #64748b; }
.pcc-con-graf { margin: 6px 0 16px; }
.pcc-con-tabla .ra-card-h { margin-bottom: 8px; }
.pcc-con-tw { max-height: 560px; }
.pcc-con-t td, .pcc-con-t th { white-space: nowrap; padding: 6px 8px; }
.pcc-con-t tbody td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.pcc-con-t tfoot td { font-weight: 700; background: #f8fafc; border-top: 1px solid var(--ra-line); }
.pcc-con-t tr.pcc-con-tot td { font-weight: 800; }
.pcc-con-t tr.pcc-con-sel td:first-child { color: #b4000c; }
.pcc-con-t tbody td:first-child b { cursor: default; }
[data-pcc-pantalla="consumos"] [data-tab] .pcc-con-t tbody td:first-child b { cursor: pointer; }
.pcc-con-buscar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.pcc-con-buscar .ra-in { flex: 1 1 280px; max-width: 460px; }
@media print { .pcc-con-tw { max-height: none; overflow: visible; } .pcc-con-graf .ra-graf-c { height: 220px !important; } }

/* INC-00598: excepciones de reparto por familias / platos en matriz */
.pcc-exc-barra { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 10px; }
.pcc-exc-q { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 10px; min-width: 260px; color: #64748b; }
.pcc-exc-q input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; }
.pcc-exc-ley { display: flex; flex-wrap: wrap; gap: 6px; }
.pcc-exc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; color: #0f172a;
    background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); white-space: nowrap; }
.pcc-exc-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pcc-exc-chip b { color: var(--c); }
.pcc-exc .pcc-exc-fila { cursor: pointer; } .pcc-exc .pcc-exc-fila:hover td { background: #f8fafc; }
.pcc-exc td { vertical-align: middle; } .pcc-exc-no { color: #cbd5e1; } .pcc-exc-todos small { color: #64748b; margin-left: 6px; }
/* INC-00654: solicitudes de ajuste de cantidad */
.pcc-aj-t td { vertical-align: top; }
/* INC-00773 (Hugo): que todas las columnas entren en pantalla: el texto largo del cambio parte en líneas (el td global es nowrap) */
.pcc-aj-t { width: 100%; table-layout: auto; }
.pcc-aj-t td { white-space: normal; overflow-wrap: anywhere; }
.pcc-aj-t td:first-child:has(> input[type="checkbox"]), .pcc-aj-t td:last-child:has(> .ra-btn) { white-space: nowrap; width: 1%; }
.pcc-aj-t td.pcc-aj-cambio { min-width: 220px; }
.pcc-aj-e { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: #f1f5f9; color: #475569; }
.pcc-aj-pend { background: #fef3c7; color: #92400e; } .pcc-aj-ok { background: #dcfce7; color: #166534; } .pcc-aj-no { background: #fee2e2; color: #991b1b; }
/* INC-00613 (Hugo): en la ficha del cliente, la dirección de envío a todo el ancho (se cortaba) */
[data-rej="direcciones"] .pcc-rej { width: 100%; }
[data-rej="direcciones"] .pcc-rej td:first-child { width: 100%; }
[data-rej="direcciones"] .pcc-rej .ra-sel, [data-rej="direcciones"] .pcc-rej .ra-in { width: 100%; min-width: min(520px, 100%); }

/* INC-00711 reabierta: cambios con el antes y el después (foto nocturna) */
.pcc-cf-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.pcc-cf-kpis > div { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; background: #fff; }
.pcc-cf-kpis b { display: block; font-size: 1.25rem; } .pcc-cf-kpis span { font-size: .74rem; color: #64748b; }
.pcc-cf-h { margin: 16px 0 6px; font-size: .95rem; letter-spacing: .03em; }
.pcc-cf-linea { white-space: normal; min-width: 220px; max-width: 380px; }
.pcc-inf-t td:has(.pcc-cf-linea) { white-space: normal; }
.pcc-cf-mas { color: #15803d; } .pcc-cf-menos { color: #b91c1c; } .pcc-cf-igual { color: #94a3b8; }
.pcc-cf-t { display: inline-block; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.pcc-cf-nuevo { background: #dcfce7; color: #166534; } .pcc-cf-borrado { background: #fee2e2; color: #991b1b; } .pcc-cf-mod { background: #e0f2fe; color: #075985; }
tr.pcc-cf-cant td { background: #fffbeb; }
.pcc-cf-aviso { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
@media (max-width: 760px) { .pcc-cf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { tr.pcc-cf-cant td { background: #fff7d6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* INC-00708: diálogo «¿Enviar el informe del ajuste por email?» tras aprobar un ajuste de cantidad */
.pcc-ajm { display: grid; gap: 10px; min-width: 0; }
.pcc-ajm-sim { margin: 0; padding: 7px 11px; border-radius: 9px; background: #fef3c7; color: #92400e; font-size: .82rem; font-weight: 600; }
.pcc-ajm-com { display: grid; gap: 2px; }
.pcc-ajm-cambios { margin: 0; padding-left: 18px; font-size: .86rem; display: grid; gap: 3px; }
.pcc-ajm-sec { font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ra-muted); margin-top: 4px; border-top: 1px solid var(--ra-line); padding-top: 10px; }
.pcc-ajm-sups { display: grid; gap: 6px; }
.pcc-ajm-dest { align-items: flex-start; } .pcc-ajm-dest small { display: block; overflow-wrap: anywhere; }
.pcc-ajm-guardar { font-size: .8rem; }
.pcc-ajm-falta { margin: 0; color: #b45309; font-size: .84rem; }
.pcc-ajm-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pcc-ajm-ver { width: 100%; height: 360px; border: 1px solid var(--ra-line); border-radius: 10px; background: #f8fafc; }
@media (max-width: 760px) { .pcc-ajm-ver { display: none !important; } }

/* INC-00884: Rutas de clientes */
.prc-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prc-seg { display: inline-flex; gap: 2px; padding: 3px; background: #eef2f7; border-radius: 10px; }
.prc-seg button { border: 0; background: transparent; border-radius: 8px; padding: 5px 12px; cursor: pointer; font: inherit; color: #475569; font-weight: 600; }
.prc-seg button.on { background: #fff; color: #0f2a47; box-shadow: 0 1px 4px rgba(15,23,42,.15); }
.prc-chk { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; }
.prc-res { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.prc-k { padding: 4px 10px; border-radius: 999px; background: #f1f5f9; font-size: .82rem; } .prc-k-av { background: #fef3c7; color: #92400e; }
.prc-chip { border: 0; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.prc-bloque { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin: 6px 0; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; }
.prc-oculto { display: none; }
.prc-dias { display: inline-flex; gap: 8px; font-size: .82rem; } .prc-dias label { display: inline-flex; gap: 3px; align-items: center; }
.prc-wrap { max-height: 64vh; }
.prc-tabla th.prc-d, .prc-tabla td.prc-d { text-align: center; padding: 2px; min-width: 64px; } .prc-tabla th small { display: block; font-size: .62rem; color: #64748b; }
.prc-c { width: 100%; border: 0; border-radius: 6px; padding: 4px 2px; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.prc-c.prc-vacia { background: #f8fafc; color: #cbd5e1; } .prc-c:hover { outline: 2px solid #2563eb; }
.prc-sel { max-width: 140px; font-size: .78rem; padding: 2px 4px; }
.prc-sub { color: #64748b; font-size: .76rem; } .prc-inact td { opacity: .6; } .prc-tag { background: #e2e8f0; border-radius: 6px; padding: 0 5px; }
.prc-tabla { table-layout: auto; width: 100%; } .prc-tabla td:nth-child(2) { min-width: 200px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }   /* INC-00884: solo la columna del cliente */
.prc-tabla th:first-child, .prc-tabla td:first-child { width: 28px; }
/* INC-00888/889/894/895: Revision por comedor */
.pcc-rc-sep td { background: #eef2f7; color: #0f2a47; font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-top: 2px solid #94a3b8; }
.pcc-rc-sep td small { font-weight: 600; color: #64748b; text-transform: none; }
.pcc-rc .pcc-rc-ninguno { color: #94a3b8; font-style: italic; }
.pcc-rc-acc { white-space: nowrap; } .pcc-rc-acc .ra-btn + .ra-btn { margin-left: 4px; }
.pcc-rc-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .82rem; color: #475569; }
.pcc-rc-pp { flex: 1 1 260px; }
/* INC-00982 (edurne.garcia): en las revisiones (picnics, preferencias, dietas) la cantidad va siempre en la misma columna, junto a los botones */
.pcc-hb-plato > :first-child, .pcc-hb-dieta > :first-child { flex: 1 1 auto; min-width: 0; }
.pcc-hb-plato > .pcc-sub, .pcc-hb-dieta > .pcc-sub { margin-left: 0; min-width: 70px; text-align: right; }
.pcc-hb-plato .ra-acciones, .pcc-hb-dieta .ra-acciones { margin-left: 12px; }
/* INC-01040/1041: elegir varios días y copiar el calendario a otros comedores */
.pcc-dia.pcc-d-sel { outline: 3px solid #2563eb; outline-offset: 1px; box-shadow: 0 0 0 5px rgba(37,99,235,.18); }
.pcc-varios { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-color: #bfdbfe; background: #eff6ff; }
.pcc-copia-lista { max-height: 340px; overflow: auto; border: 1px solid var(--ra-line); border-radius: 8px; padding: 6px 8px; display: grid; gap: 4px; }
.pcc-copia-f { display: flex; gap: 8px; align-items: center; font-size: .84rem; cursor: pointer; }
.pcc-copia-f[hidden] { display: none; }
.pcc-copia-f small { color: #64748b; margin-left: auto; }
