/* =====================================================================
   GASCA · Menús — clon de la app Access "Elaboración de menús"
   Estilo Victoria (Inter, tarjetas blancas, bordes suaves) con el rojo GASCA.
   Todo va prefijado con .gm- para no chocar con el resto de Victoria.
   ===================================================================== */
#menus-view, #reparto-view .gm-app, .gm-modal-bg, .gm-toast { --gm-red: #b4000c; --gm-red-2: #8f000a; --gm-red-soft: rgba(180,0,12,.07);
  --gm-ink: #0f172a; --gm-muted: #64748b; --gm-line: #e2e8f0; --gm-card: #fff; --gm-bg: #f8fafc;
  --gm-green: #059669; --gm-green-soft: #ecfdf5; --gm-amber: #b45309; --gm-amber-soft: #fffbeb;
  --gm-radius: 14px; --gm-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12); }
#menus-view .gm-root, #reparto-view .gm-app .gm-root { display: flex; flex-direction: column; gap: 18px; }

/* --- Cabecera de sección --- */
.gm-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px;
  background: radial-gradient(1200px 300px at 100% 0%, rgba(255,255,255,.14), transparent 60%),
              linear-gradient(135deg, #b4000c 0%, #7a0009 100%);
  color: #fff; box-shadow: 0 18px 40px -22px rgba(143,0,10,.55); }
.gm-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; border: 36px solid rgba(255,255,255,.06); }
.gm-hero h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.gm-hero p { margin: 6px 0 0; opacity: .85; font-size: .92rem; max-width: 720px; }
.gm-hero .gm-hero-meta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }

/* --- Portada (réplica del formulario Inicio) --- */
.gm-block-title { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gm-muted); margin: 6px 2px 10px; display: flex; align-items: center; gap: 10px; }
.gm-block-title::after { content: ''; flex: 1; height: 1px; background: var(--gm-line); }
.gm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .gm-grid { grid-template-columns: 1fr; } }
.gm-group { background: var(--gm-card); border: 1px solid var(--gm-line); border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.gm-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gm-group-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gm-red-soft); color: var(--gm-red); font-size: .95rem; }
.gm-group-head b { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gm-ink); }
.gm-fn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--gm-ink); font: 500 .9rem 'Inter', sans-serif; transition: background .15s, border-color .15s, transform .15s; }
.gm-fn i { width: 18px; text-align: center; color: var(--gm-muted); transition: color .15s; }
.gm-fn .gm-fn-go { margin-left: auto; opacity: 0; color: var(--gm-red); transition: opacity .15s, transform .15s; }
.gm-fn:hover { background: var(--gm-red-soft); border-color: rgba(180,0,12,.12); }
.gm-fn:hover i { color: var(--gm-red); }
.gm-fn:hover .gm-fn-go { opacity: 1; transform: translateX(2px); }
.gm-fn small { display: block; font-size: .72rem; color: var(--gm-muted); font-weight: 400; margin-top: 1px; }
.gm-fn.gm-soon { opacity: .55; }
.gm-tag { font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; letter-spacing: .03em;
  background: #f1f5f9; color: var(--gm-muted); margin-left: 6px; vertical-align: 1px; }

/* --- Pantalla interna --- */
.gm-screen-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gm-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--gm-line); background: #fff; color: var(--gm-ink); font: 600 .82rem 'Inter', sans-serif; }
.gm-back:hover { border-color: var(--gm-red); color: var(--gm-red); }
.gm-screen-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--gm-ink); }
.gm-crumb { font-size: .78rem; color: var(--gm-muted); }
.gm-card { background: var(--gm-card); border: 1px solid var(--gm-line); border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow); padding: 18px; }
.gm-empty { padding: 40px 20px; text-align: center; color: var(--gm-muted); }
.gm-empty i { font-size: 1.8rem; color: #cbd5e1; display: block; margin-bottom: 10px; }

/* --- Controles --- */
.gm-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.gm-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.gm-field label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gm-muted); }
.gm-input, .gm-select { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--gm-line); background: #fff;
  font: 500 .88rem 'Inter', sans-serif; color: var(--gm-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.gm-input:focus, .gm-select:focus { border-color: var(--gm-red); box-shadow: 0 0 0 3px rgba(180,0,12,.1); }
.gm-btn { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--gm-line); background: #fff; color: var(--gm-ink); font: 600 .85rem 'Inter', sans-serif; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.gm-btn:hover { border-color: var(--gm-red); color: var(--gm-red); }
.gm-btn.gm-primary { background: var(--gm-red); border-color: var(--gm-red); color: #fff; box-shadow: 0 8px 18px -10px rgba(180,0,12,.7); }
.gm-btn.gm-primary:hover { background: var(--gm-red-2); color: #fff; }
.gm-btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Tablas --- */
.gm-table-wrap { overflow: auto; border: 1px solid var(--gm-line); border-radius: 12px; }
.gm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.gm-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; text-align: left; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gm-muted); padding: 10px 12px; border-bottom: 1px solid var(--gm-line); }
.gm-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: var(--gm-ink); }
.gm-table tr:hover td { background: #fcfcfd; }
.gm-num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Avisos --- */
.gm-toast { position: fixed; right: 24px; bottom: 24px; z-index: 9999; max-width: 420px; padding: 12px 16px; border-radius: 12px;
  background: var(--gm-ink); color: #fff; font-size: .86rem; box-shadow: 0 18px 40px -16px rgba(15,23,42,.5); animation: gmIn .2s ease; }
.gm-toast.gm-err { background: #991b1b; }
@keyframes gmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gm-loading { display: flex; align-items: center; gap: 10px; color: var(--gm-muted); padding: 24px; }
.gm-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e2e8f0; border-top-color: var(--gm-red); animation: gmSpin .7s linear infinite; }
@keyframes gmSpin { to { transform: rotate(360deg); } }

/* --- Diálogos --- */
.gm-modal-bg { position: fixed; inset: 0; z-index: 9990; background: rgba(15,23,42,.45); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px; animation: gmIn .15s ease; }
.gm-modal { width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,.45); overflow: hidden; }
.gm-modal-sm { width: min(440px, 100%); }
.gm-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #f1f5f9; }
.gm-modal-head b { font-size: 1rem; color: #0f172a; }
.gm-modal-body { padding: 16px 18px; overflow: auto; }
.gm-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid #f1f5f9; background: #fafafa; }
.gm-x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: #64748b; }
.gm-x:hover { background: #f1f5f9; color: #0f172a; }
.gm-pick { cursor: pointer; }
.gm-pick:hover td { background: rgba(180,0,12,.06) !important; }
.gm-muted { color: #64748b; }
.gm-btn.gm-danger { background: #b91c1c; border-color: #b91c1c; }
.gm-btn.gm-danger:hover { background: #991b1b; }
.gm-btn.gm-ghost-danger:hover { border-color: #b91c1c; color: #b91c1c; }

/* --- Selector con buscador (combo + lupa, como combo + etiqueta-matchcode del Access) --- */
.gm-combo { display: flex; gap: 6px; }
.gm-combo .gm-select { flex: 1; min-width: 0; }
.gm-icon-btn { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--gm-line); background: #fff;
  color: var(--gm-muted); cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.gm-icon-btn:hover { border-color: var(--gm-red); color: var(--gm-red); }
.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.gm-divider { width: 1px; align-self: stretch; background: var(--gm-line); margin: 0 4px; }

/* --- Rejilla semanal (réplica de grd_Semanal) --- */
.gm-cal-title { text-align: center; font-weight: 800; letter-spacing: .14em; font-size: .78rem; color: #fff; padding: 10px;
  border-radius: 12px 12px 0 0; background: linear-gradient(90deg, #4f81bd, #3b6aa8); }
.gm-cal { display: flex; flex-direction: column; gap: 14px; }
.gm-week { border: 1px solid var(--gm-line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--gm-shadow); }
.gm-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gm-day { display: grid; grid-template-rows: subgrid; grid-row: span var(--gm-rows); border-right: 1px solid var(--gm-line); min-width: 0; }
.gm-day:last-child { border-right: 0; }
.gm-cell { padding: 6px 8px; font-size: .74rem; line-height: 1.3; text-align: center; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: center; min-height: 30px; word-break: break-word; }
.gm-cell-head { background: #92d050; color: #0f172a; font-weight: 800; font-size: .72rem; letter-spacing: .02em; cursor: pointer; }
.gm-cell-head:hover { filter: brightness(.95); }
.gm-cell-head.gm-pub { background: #92d050; }
.gm-cell-head.gm-nopub { background: #1f497d; color: #fff; }
.gm-cell-val { background: #f2f2f2; padding: 0; gap: 0; }
.gm-cell-val span { flex: 1; padding: 5px 4px; font-variant-numeric: tabular-nums; font-weight: 600; color: #334155; }
.gm-cell-val span + span { border-left: 1px solid #e2e8f0; }
.gm-cell-ico { min-height: 22px; padding: 2px; gap: 3px; color: var(--gm-red); font-size: .72rem; }
.gm-cell-plato { font-weight: 600; color: #0f172a; cursor: pointer; transition: background .12s; position: relative; }
.gm-cell-plato:hover { background: rgba(180,0,12,.06); }
.gm-cell-plato.gm-norev { text-decoration: line-through; }
.gm-cell-plato.gm-alerg { color: #c00000; font-weight: 800; }
.gm-cell-plato.gm-vacio { color: #cbd5e1; font-weight: 400; }
.gm-cell-plato.gm-opt-first { border-top: 2px solid #e2e8f0; }
.gm-opt { position: absolute; left: 4px; top: 3px; font-size: .56rem; font-weight: 800; color: #94a3b8; letter-spacing: .03em; }
.gm-cell-cena { background: #f2f2f2; color: #334155; font-weight: 500; font-style: italic; }
.gm-cell-pad { background: #fcfcfd; }
.gm-cell-especial { color: var(--gm-red); }
.gm-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .74rem; color: var(--gm-muted); align-items: center; }
.gm-legend i { margin-right: 5px; }
.gm-legend .gm-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }

/* --- Tabla editable (vista dividida del Access) --- */
.gm-table input.gm-input { height: 32px; font-size: .84rem; }
.gm-row-dirty td { background: #fffbeb !important; }
.gm-row-sel td { background: rgba(180,0,12,.05) !important; }
.gm-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .gm-split { grid-template-columns: 1fr; } }
.gm-form-card h4 { margin: 0 0 4px; font-size: 1rem; }
.gm-form-grid { display: grid; gap: 12px; margin-top: 14px; }
/* La rejilla necesita ancho: desplazamiento horizontal dentro del calendario, nunca de la página */
.gm-cal-wrap { overflow-x: auto; border-radius: 12px; }
.gm-cal-wrap > * { min-width: 1080px; }

/* =====================================================================
   Calendario v2 — una semana cada vez, días como tarjetas
   ===================================================================== */
.gm-weeknav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.gm-weeknav .gm-wn-title { font-size: 1.05rem; font-weight: 800; color: var(--gm-ink); margin-right: 6px; }
.gm-weeknav .gm-wn-sub { font-size: .8rem; color: var(--gm-muted); }
.gm-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-pill { min-width: 36px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gm-line); background: #fff;
  font: 700 .8rem 'Inter', sans-serif; color: var(--gm-muted); cursor: pointer; transition: all .15s; }
.gm-pill:hover { border-color: var(--gm-red); color: var(--gm-red); }
.gm-pill.on { background: var(--gm-red); border-color: var(--gm-red); color: #fff; box-shadow: 0 6px 14px -8px rgba(180,0,12,.8); }
.gm-pill.gm-all { font-weight: 600; }
.gm-nav-arrows { display: flex; gap: 6px; margin-left: auto; }

.gm-days { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; }
.gm-days-scroll { overflow-x: auto; padding-bottom: 6px; }
.gm-days-scroll > .gm-days { min-width: 1120px; }
.gm-dcard { background: #fff; border: 1px solid var(--gm-line); border-radius: 14px; box-shadow: var(--gm-shadow);
  display: flex; flex-direction: column; overflow: hidden; min-width: 0; transition: box-shadow .15s, transform .15s; }
.gm-dcard:hover { box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 32px -16px rgba(15,23,42,.22); }
.gm-dcard.gm-dcard-empty { background: #fafafa; border-style: dashed; box-shadow: none; }
.gm-dhead { padding: 12px 12px 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; position: relative;
  background: linear-gradient(180deg, #f7fdf1, #fff); }
.gm-dhead::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: #92d050; }
.gm-dhead.gm-nopub { background: linear-gradient(180deg, #f1f5fb, #fff); }
.gm-dhead.gm-nopub::before { background: #1f497d; }
.gm-dhead:hover .gm-dopen { opacity: 1; }
.gm-dname { font-size: .95rem; font-weight: 800; color: var(--gm-ink); display: flex; align-items: center; justify-content: space-between; }
.gm-dopen { opacity: 0; font-size: .72rem; color: var(--gm-red); transition: opacity .15s; }
.gm-dsub { font-size: .7rem; font-weight: 600; color: var(--gm-muted); letter-spacing: .03em; margin-top: 2px; }
.gm-dmetrics { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.gm-metric { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: #f1f5f9;
  font-size: .72rem; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.gm-metric i { font-size: .66rem; color: var(--gm-muted); }
.gm-dicons { display: flex; gap: 4px; margin-top: 6px; color: var(--gm-red); font-size: .7rem; }
.gm-dbody { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gm-menu { border: 1px solid #eef2f6; border-radius: 10px; overflow: hidden; }
.gm-menu-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; background: #fafbfc;
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gm-muted); }
.gm-menu-h .gm-menu-n { color: var(--gm-red); }
.gm-dish { display: flex; align-items: flex-start; gap: 7px; padding: 6px 8px; cursor: pointer; border-top: 1px solid #f4f6f8;
  transition: background .12s; position: relative; }
.gm-menu-h + .gm-dish { border-top: 0; }
.gm-dish:hover { background: rgba(180,0,12,.05); }
.gm-dish .gm-dt { flex: none; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; margin-top: 1px;
  font-size: .58rem; font-weight: 800; color: #fff; background: #94a3b8; }
.gm-dt.t1 { background: #0ea5e9; } .gm-dt.t2 { background: #b4000c; } .gm-dt.t3 { background: #f59e0b; } .gm-dt.t4 { background: #a3a3a3; }
.gm-dish .gm-dn { flex: 1; min-width: 0; font-size: .76rem; font-weight: 600; line-height: 1.3; color: var(--gm-ink); text-transform: uppercase; word-break: break-word; }
.gm-dish .gm-edit { opacity: 0; color: var(--gm-red); font-size: .7rem; margin-top: 2px; transition: opacity .12s; }
.gm-dish:hover .gm-edit { opacity: 1; }
.gm-dish.gm-norev .gm-dn { color: #64748b; }
.gm-dish.gm-norev .gm-dn::after { content: 'sin receta'; display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  font-size: .56rem; font-weight: 700; letter-spacing: .03em; text-transform: none; color: #92400e; background: #fef3c7; vertical-align: 1px; }
.gm-dish.gm-alerg .gm-dn { color: #c00000; font-weight: 800; }
.gm-dish.gm-alerg .gm-dn::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c00000; margin-right: 5px; vertical-align: 1px; }
.gm-dish.gm-empty .gm-dn { color: #cbd5e1; font-weight: 500; text-transform: none; font-style: italic; }
.gm-dish.gm-especial { background: #fff7ed; }
.gm-dfoot { padding: 8px 10px; border-top: 1px solid #f1f5f9; background: #fafbfc; font-size: .72rem; color: #475569; display: flex; gap: 6px; align-items: flex-start; }
.gm-dfoot i { color: #6366f1; margin-top: 2px; }
.gm-legend2 { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .75rem; color: var(--gm-muted); }
.gm-legend2 .gm-lg { display: inline-flex; align-items: center; gap: 6px; }
.gm-week-block + .gm-week-block { margin-top: 22px; }
.gm-week-label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-muted); margin: 0 0 10px 2px; }

/* Selector de platos: sin desbordes horizontales, botón principal siempre visible */
.gm-modal-body { overflow-x: hidden; }
.gm-modal .gm-table { table-layout: fixed; }
.gm-modal .gm-table td { overflow: hidden; text-overflow: ellipsis; }
.gm-modal .gm-table-wrap { overflow-x: hidden; overflow-y: auto; }
.gm-modal-foot .gm-btn.gm-primary { opacity: 1; background: var(--gm-red, #b4000c); border-color: var(--gm-red, #b4000c); color: #fff; }
.gm-modal-foot .gm-btn.gm-primary:disabled { opacity: .55; }

/* =====================================================================
   Diario (ventana del día)
   ===================================================================== */
.gm-diario { width: min(1180px, 100%); }
.gm-dia-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
  background: linear-gradient(135deg, #17365d, #1f497d); color: #fff; }
.gm-dia-head h3 { margin: 2px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.gm-dia-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.gm-x-light { color: rgba(255,255,255,.8); } .gm-x-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.gm-dia-bar { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid #f1f5f9; }
.gm-dia-info { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px 18px; padding: 14px 22px; background: #fafbfc; border-bottom: 1px solid #f1f5f9; }
.gm-dia-info .gm-span2 { grid-column: span 2; }
.gm-dia-info label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #64748b; }
.gm-dia-info b { font-size: .88rem; color: #0f172a; }
.gm-dia-menus { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: 58vh; }
.gm-dia-menu { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; }
.gm-dia-mh { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #eef2f6; flex-wrap: wrap; }
.gm-orden { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--gm-red); color: #fff; font: 800 .95rem 'Inter', sans-serif; cursor: pointer; }
.gm-orden:hover { background: var(--gm-red-2); }
.gm-dia-tot { display: flex; gap: 14px; font-size: .84rem; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.gm-dia-tot i { opacity: .7; margin-right: 3px; }
.gm-aplica { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gm-aplica label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.gm-aplica .gm-select { height: 32px; font-size: .8rem; font-weight: 700; }
.gm-select.gm-per-1 { background: #1f497d; color: #fff; border-color: #1f497d; }
.gm-select.gm-per-2 { background: #ba1419; color: #fff; border-color: #ba1419; }
.gm-dia-acts { display: flex; gap: 6px; }
.gm-dia-acts .gm-icon-btn { width: 32px; height: 32px; }
.gm-dia-platos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.gm-dia-plato { position: relative; padding: 12px 14px; border-right: 1px solid #f1f5f9; cursor: pointer; transition: background .12s; }
.gm-dia-plato:last-child { border-right: 0; }
.gm-dia-plato:hover { background: rgba(180,0,12,.04); }
.gm-dia-plato .gm-edit { position: absolute; right: 12px; top: 12px; opacity: 0; color: var(--gm-red); font-size: .75rem; }
.gm-dia-plato:hover .gm-edit { opacity: 1; }
.gm-dia-pt { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.gm-dia-pn { font-size: .88rem; font-weight: 700; color: #0f172a; margin: 3px 0 6px; text-transform: uppercase; line-height: 1.3; }
.gm-dia-pv { display: flex; gap: 10px; font-size: .74rem; color: #475569; font-variant-numeric: tabular-nums; }
.gm-selgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gm-mini-h { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin: 12px 0 6px; }
.gm-picked { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px dashed #cbd5e1; font-size: .8rem; color: #94a3b8; }
.gm-picked.on { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-weight: 700; }
@media (max-width: 900px) { .gm-dia-platos, .gm-selgrid { grid-template-columns: 1fr; } .gm-dia-info { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Asistentes con pestañas (copiado de menús)
   ===================================================================== */
.gm-tabs { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--gm-line); padding-bottom: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.gm-tab { height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--gm-line); background: #fff; cursor: pointer;
  font: 700 .84rem 'Inter', sans-serif; color: var(--gm-muted); position: relative; }
.gm-tab::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); margin-right: 8px; vertical-align: 1px; }
.gm-tab.on { background: var(--tc); border-color: var(--tc); color: #fff; }
.gm-tab.on::before { background: #fff; }
.gm-tabpane[hidden] { display: none; }
.gm-listbox { border: 1px solid var(--gm-line); border-radius: 10px; overflow: auto; margin-top: 6px; background: #fff; }
.gm-li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #f4f6f8; cursor: pointer; font-size: .84rem; user-select: none; }
.gm-li:last-child { border-bottom: 0; }
.gm-li:hover { background: #fafbfc; }
.gm-li i { color: #94a3b8; }
.gm-li.on { background: rgba(180,0,12,.05); }
.gm-li.on i { color: var(--gm-red); }
.gm-seg { display: inline-flex; border: 1px solid var(--gm-line); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.gm-seg button { height: 32px; padding: 0 14px; border: 0; background: #fff; font: 600 .8rem 'Inter', sans-serif; color: var(--gm-muted); cursor: pointer; }
.gm-seg button + button { border-left: 1px solid var(--gm-line); }
.gm-seg button.on { background: var(--gm-red); color: #fff; }
.gm-check { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--gm-ink); cursor: pointer; }
.gm-desvio { display: flex; align-items: center; gap: 8px; }
.gm-desvio .gm-input { width: 90px; text-align: center; font-size: 1.3rem; font-weight: 800; height: 46px; }
.gm-desvio .gm-btn { width: 46px; height: 46px; font-size: 1.2rem; background: #9bbb59; border-color: #9bbb59; color: #fff; }
.gm-prev { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #ebf1de; color: #3f5a1c; font-size: .9rem; }
.gm-link { color: var(--gm-red); font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* --- Concretos --- */
.gm-fiesta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #fff7ed, #fff7ed 10px, #ffedd5 10px, #ffedd5 20px); color: #c2410c; font-weight: 800; letter-spacing: .1em; }
.gm-pubtag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #dcfce7; color: #166534;
  font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.gm-dish.gm-cocina .gm-dn { color: #e8710a; font-weight: 800; }
.gm-dish.gm-insitu .gm-dn { color: #d000d0; font-weight: 800; }

/* --- Selector de platos producidos (concretos) --- */
.gm-prodbar { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)) auto; gap: 10px; align-items: end; }
@media (max-width: 900px) { .gm-prodbar { grid-template-columns: 1fr 1fr; } }
.gm-prod .gm-grp td { background: #f1f5f9 !important; font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: #475569; }
.gm-cut { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #64748b; font-size: .78rem; }
.gm-modal .gm-prod { table-layout: auto; }

/* --- Diario concretos --- */
.gm-pub-big { padding: 6px 12px; border-radius: 999px; background: #a7da4e; color: #1a2e05; font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.gm-fest-big { padding: 6px 12px; border-radius: 999px; background: #fed7aa; color: #9a3412; font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.gm-aviso { margin: 12px 22px 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .86rem; font-weight: 600; }
.gm-iconos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.gm-iconos .gm-check { font-size: .8rem; }
.gm-check.gm-dis { color: #94a3b8; }
.gm-dia-cols { display: grid; grid-template-columns: 1fr; }
.gm-dia-cols.con-basal { grid-template-columns: minmax(0,1fr) 300px; }
.gm-basal { margin: 16px 22px 22px 0; border: 1px solid #fed7aa; border-radius: 14px; overflow: hidden; align-self: start; }
.gm-basal-h { padding: 8px 12px; background: #f7b580; color: #431407; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gm-basal-b { padding: 10px 12px; font-size: .82rem; line-height: 1.5; color: #334155; background: #fff7ed; }
.gm-rng { padding: 0 5px; border-radius: 4px; }
@media (max-width: 900px) { .gm-dia-cols.con-basal { grid-template-columns: 1fr; } .gm-basal { margin: 0 22px 22px; } }
.gm-modal .gm-table.gm-auto { table-layout: auto; }
.gm-modal .gm-table.gm-auto td { white-space: normal; }
.gm-table td.gm-num { white-space: nowrap; }

/* --- Modo "cambiar cocina" y campos obligatorios --- */
body.gm-modo-cocina .gm-dish:not(.gm-empty) { cursor: crosshair; }
body.gm-modo-cocina .gm-dish:not(.gm-empty):hover { outline: 2px solid #e8710a; outline-offset: -2px; background: #fff7ed; }
.gm-req { border-color: #fe4848 !important; box-shadow: 0 0 0 2px rgba(254,72,72,.25) !important; }
.gm-metric[style*="background"] i { color: inherit; opacity: .8; }

/* --- Menús seleccionados --- */
.gm-selnav { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gm-line); }
.gm-pill.hecho:not(.on) { border-color: #86efac; background: #f0fdf4; color: #166534; }

/* --- Leyendas en pantalla (diferencias / pendientes / pruebas) --- */
.gm-notas { display: grid; gap: 8px; margin-top: 14px; }
.gm-nota { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: .8rem; line-height: 1.5; border: 1px solid; }
.gm-nota i { margin-top: 3px; }
.gm-nota b { font-weight: 800; }
.gm-nota-diferencia { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.gm-nota-pendiente { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.gm-nota-pruebas { background: #f5f3ff; border-color: #ddd6fe; color: #4c1d95; }
.gm-nota-regla { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.gm-nota-dato { background: #f8fafc; border-color: #e2e8f0; color: #334155; }
.gm-nota-origen { background: #f0f9ff; border-color: #bae6fd; color: #0c4a6e; font-size: .8rem; }
.gm-modal .gm-notas { margin: 12px 22px 0; }

/* --- Revisión mensual de dietas publicadas --- */
.gm-rev { border-collapse: collapse; font-size: .74rem; width: 100%; }
.gm-rev th { position: sticky; top: 0; background: #f8fafc; color: #64748b; font-weight: 700; padding: 7px 4px; border-bottom: 1px solid #e2e8f0; min-width: 30px; }
.gm-rev td { border-bottom: 1px solid #f1f5f9; border-right: 1px solid #fff; text-align: center; padding: 6px 3px; font-weight: 700; font-size: .66rem; }
.gm-rev .gm-rev-d { text-align: left; min-width: 260px; font-weight: 600; font-size: .76rem; color: #0f172a; padding-left: 8px; }
.gm-rev td a { color: #2563eb; font-weight: 800; text-decoration: none; }
.gm-rev tbody tr:hover .gm-rev-d { background: #fafbfc; }

/* =====================================================================
   Menú lateral de Victoria plegable (escritorio). En ≤980px sigue el drawer de la hamburguesa.
   ===================================================================== */
/* Botón dentro del menú, a la derecha del logo; plegado queda debajo del isotipo */
.logo-area { position: relative; }
.sb-toggle-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff; color: #64748b; cursor: pointer;
  font-size: .8rem; transition: color .15s, border-color .15s; }
.sb-toggle-btn:hover { color: #b4000c; border-color: #b4000c; }
.sidebar { transition: width .22s ease; }
.sidebar-mark { display: none; width: 40px; height: 40px; }
@media (min-width: 981px) {
  .app-container.sb-collapsed .sidebar { width: 76px; }
  .app-container.sb-collapsed .sidebar-logo { display: none; }
  .app-container.sb-collapsed .sidebar-mark { display: block; }
  .app-container.sb-collapsed .logo-area { padding: 14px 8px 12px; flex-direction: column; gap: 10px; }
  .app-container.sb-collapsed .sb-toggle-btn { position: static; transform: none; }
  .app-container.sb-collapsed .user-profile { justify-content: center; padding-left: 0; padding-right: 0; }
  .app-container.sb-collapsed .user-profile .user-info,
  .app-container.sb-collapsed .user-profile #btn-cambiar-pass { display: none; }
  .app-container.sb-collapsed .menu { padding-left: 8px; padding-right: 8px; }
  .app-container.sb-collapsed .menu-label { display: none; }
  .app-container.sb-collapsed .menu-section { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid #f1f5f9; }
  .app-container.sb-collapsed .menu-section.collapsed .menu-item:not([style*="display: none"]) { display: flex !important; }
  .app-container.sb-collapsed .menu-item { justify-content: center; padding: 10px 0; margin-left: 0 !important; font-size: 0; gap: 0; }
  .app-container.sb-collapsed .menu-item i { font-size: 1rem; margin: 0; }
  .app-container.sb-collapsed .menu-item:hover { transform: none; }
  .app-container.sb-collapsed .menu-item .crm-nav-badge { display: none !important; }
  .app-container.sb-collapsed .sidebar-footer { padding-left: 8px; padding-right: 8px; }
  .app-container.sb-collapsed .sidebar-footer > *:not(#btn-logout) { display: none !important; }
  .app-container.sb-collapsed #btn-logout { font-size: 0; padding: 10px 0; }
  .app-container.sb-collapsed #btn-logout i { font-size: 1rem; margin: 0; }
}
@media (max-width: 980px) { .sb-toggle-btn { display: none; } }

/* --- Mantenimientos --- */
.gm-sort { cursor: pointer; user-select: none; }
.gm-sort i { opacity: .35; font-size: .62rem; margin-left: 4px; }
.gm-sort:hover { color: var(--gm-red); }
.gm-idlink { color: #2563eb; font-weight: 800; text-decoration: none; }
.gm-ayuda { color: #94a3b8; cursor: pointer; margin-left: 4px; text-transform: none; }
.gm-ayuda:hover { color: var(--gm-red, #b4000c); }
.gm-req-mark { color: #dc2626; }
.gm-ta { height: auto; padding: 8px 12px; resize: vertical; font-family: inherit; }

/* Dietas repetitivas */
.gm-rep-grid { display: grid; grid-template-columns: 110px 120px 1fr; gap: 12px 14px; align-items: center; }
.gm-rep-link { font-weight: 700; color: #1d4ed8; text-decoration: none; font-size: .86rem; }
.gm-rep-link:hover { text-decoration: underline; }
.gm-rep-nombre { font-weight: 800; font-size: .92rem; line-height: 1.25; }
.gm-rep-menu { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; background: #fafbfc; min-height: 60px; }
.gm-rep-menu-sm { padding: 6px 0; border: 0; background: none; min-height: 0; gap: 2px; }
.gm-rep-plato { display: flex; gap: 10px; font-size: .86rem; }
.gm-rep-menu-sm .gm-rep-plato { font-size: .8rem; }
.gm-rep-plato span { flex: 0 0 48px; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; padding-top: 2px; }
.gm-pill.gm-req { outline: 2px solid #dc2626; }
@media (max-width: 640px) { .gm-rep-grid { grid-template-columns: 90px 1fr; } .gm-rep-nombre { grid-column: 1 / -1; } }

/* Transporte */
.gm-trans-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.gm-trans-tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-color, #e5e7eb); background: #fff; cursor: pointer; text-align: left; transition: all .15s; font: inherit; }
.gm-trans-tab i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fdf2f2; color: #b4000c; font-size: 1rem; flex: 0 0 38px; }
.gm-trans-tab span { display: flex; flex-direction: column; min-width: 0; }
.gm-trans-tab small { color: #94a3b8; font-size: .74rem; }
.gm-trans-tab:hover { border-color: #b4000c; }
.gm-trans-tab.gm-on { border-color: #b4000c; box-shadow: 0 0 0 3px rgba(180, 0, 12, .08); }
.gm-trans-tab.gm-on i { background: #b4000c; color: #fff; }
.gm-veh-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gm-veh-fotos figure { margin: 0; }
.gm-veh-fotos figcaption { font-size: .78rem; font-weight: 700; color: #64748b; margin-bottom: 6px; }
.gm-veh-fotos img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border-color, #e5e7eb); background: #f8fafc; }
.gm-veh-sinfoto { height: 120px; display: grid; place-items: center; border: 1px dashed var(--border-color, #e5e7eb); border-radius: 12px; }
@media (max-width: 640px) { .gm-trans-tabs, .gm-veh-fotos { grid-template-columns: 1fr; } }

/* Ficha con pestañas y filtro Activo */
.gm-ficha-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color, #e5e7eb); margin: -4px 0 16px; }
.gm-ficha-tab { border: 0; background: none; padding: 9px 14px; font: inherit; font-weight: 700; font-size: .86rem; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gm-ficha-tab.gm-on { color: #b4000c; border-bottom-color: #b4000c; }
.gm-seg { display: inline-flex; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; overflow: hidden; background: #fff; }
.gm-seg button { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: .82rem; cursor: pointer; color: #475569; }
.gm-seg button + button { border-left: 1px solid var(--border-color, #e5e7eb); }
.gm-seg button.gm-on { background: #b4000c; color: #fff; font-weight: 700; }
.gm-cam-grupo { border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.gm-cam-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #456287; color: #fff; font-size: .86rem; }
.gm-cam-head .gm-icon-btn { background: rgba(255, 255, 255, .15); color: #fff; border-color: transparent; }
.gm-cam-tabla { margin: 0; }
.gm-cam-tipo td { font-weight: 800; font-size: .74rem; text-transform: uppercase; color: #475569; background: #f8fafc; }
.gm-spin.gm-spin-sm { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: -2px; margin: 0; }

/* Dietas */
.gm-tags-box { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: #fafbfc; font-weight: 700; font-size: .84rem; }
.gm-tags-box span { flex: 1; }
.gm-ale-fila { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid #f1f5f9; }
.gm-ale-fila span { width: 36px; font-size: .76rem; }
.gm-ale-fila b { flex: 1; font-size: .86rem; }

/* Listados y herramientas */
.gm-checklist { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow: auto; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; padding: 6px 8px; background: #fff; }
.gm-checklist label { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.gm-checklist label:hover { background: #f8fafc; }
.gm-checklist label span { min-width: 34px; font-size: .74rem; }
.gm-sust-platos { display: grid; grid-template-columns: 120px 110px 1fr; gap: 10px 14px; align-items: center; margin-top: 12px; }
.gm-sust-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gm-sust-caja { border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.gm-sust-caja.gm-on { border-color: #b4000c; box-shadow: 0 0 0 3px rgba(180, 0, 12, .08); }
.gm-sust-caja.gm-req-box { border-color: #dc2626; }
.gm-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.gm-sust-listas { display: grid; grid-template-columns: 1.1fr 0.8fr 1.3fr; gap: 16px; }
.gm-gv td { font-size: .74rem; vertical-align: top; line-height: 1.35; min-width: 150px; }
.gm-gv td.sem { font-weight: 800; white-space: nowrap; background: #f8fafc; }
@media (max-width: 900px) { .gm-sust-tipo, .gm-sust-listas { grid-template-columns: 1fr; } .gm-sust-platos { grid-template-columns: 100px 1fr; } .gm-sust-platos .gm-rep-nombre { grid-column: 1 / -1; } }

/* Pantallas bajas o con zoom (125-150 %): el navegador encogía las tarjetas de las columnas flexibles con altura
   máxima y recortaba su texto. Las tarjetas mantienen su altura y, si no caben, aparece la barra de desplazamiento. */
.gm-dia-menus > *, .gm-dbody > *, .gm-checklist > * { flex-shrink: 0; }
.gm-modal > .gm-modal-head, .gm-modal > .gm-modal-foot { flex-shrink: 0; }
.gm-modal-body { min-height: 0; }
.gm-modal.gm-diario { overflow: auto; }
.gm-modal.gm-diario > * { flex-shrink: 0; }

/* Títulos con color propio: la regla global de Victoria (h3/h4 { color: var(--accent-dark) }) cambia según el tema
   y la empresa de cada usuario, y dejaba el título del Diario oscuro sobre la banda azul. */
.gm-dia-head h3, .gm-dia-head .gm-dia-kicker, .gm-hero h2 { color: #fff; }
#menus-view h3, #menus-view h4, #reparto-view .gm-app h3, #reparto-view .gm-app h4, .gm-modal h3, .gm-modal h4 { color: var(--gm-ink, #0f172a); display: block; }
#menus-view .gm-dia-head h3, .gm-modal .gm-dia-head h3 { color: #fff; }

/* El atributo hidden debe ocultar SIEMPRE (las reglas con display: flex/grid lo anulaban: filtros de listas que no filtraban) */
#menus-view [hidden], #reparto-view .gm-app [hidden], .gm-modal-bg [hidden] { display: none !important; }
/* Sustituir platos: los campos de semana/día no deben salirse de su columna */
.gm-sust-caja .gm-form-grid > .gm-field { min-width: 0; }
.gm-sust-caja .gm-input, .gm-sust-caja .gm-select { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 1280px) { .gm-sust-caja[data-caja="CICLICO"] .gm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Convertir periodo en ciclo */
.gm-pc-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .gm-pc-cols { grid-template-columns: 1fr; } }
.gm-btn.gm-btn-sm { height: 28px; padding: 0 10px; font-size: .74rem; }
.gm-pc-res { margin-top: 16px; border: 1px solid var(--gm-line, #e5e7eb); border-radius: 14px; padding: 14px 16px; background: #fafbfc; }
.gm-pc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gm-pc-kpis > div { background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 10px 12px; }
.gm-pc-kpis b { display: block; font-size: 1.4rem; color: #1f497d; line-height: 1.1; }
.gm-pc-kpis span { font-size: .72rem; color: #64748b; font-weight: 600; }
.gm-pc-kpis .gm-pc-warn b { color: #d97706; }
@media (max-width: 900px) { .gm-pc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Selector múltiple común (buscar, Todos/Ninguno, contador) */
.gm-ms { border: 1px solid var(--gm-line, #e5e7eb); border-radius: 12px; background: #fff; overflow: hidden; }
.gm-ms-bar { display: flex; gap: 6px; align-items: center; padding: 6px; border-bottom: 1px solid #eef2f6; background: #fafbfc; }
.gm-ms-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 8px; background: #fff; }
.gm-ms-q i { color: #94a3b8; font-size: .78rem; }
.gm-ms-q input { flex: 1; min-width: 0; border: 0; outline: 0; height: 30px; font: inherit; font-size: .82rem; background: none; }
.gm-ms-lista { overflow: auto; padding: 4px 6px; }
.gm-ms-lista label { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 4px 6px; border-radius: 7px; cursor: pointer; }
.gm-ms-lista label:hover { background: #f8fafc; }
.gm-ms-lista label.on { background: #fdf2f2; }
.gm-ms-cod { min-width: 34px; font-size: .72rem; color: #94a3b8; font-variant-numeric: tabular-nums; }
.gm-ms-pie { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border-top: 1px solid #eef2f6; font-size: .74rem; color: #64748b; background: #fafbfc; }
.gm-ms-solo { border: 0; background: none; color: #b4000c; font: 600 .74rem Inter, sans-serif; cursor: pointer; }
.gm-ms-lista label input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; }
.gm-ms-lista label span:last-child { min-width: 0; }

/* ============ Planificación (gasca_menus_plan*.js) ============ */
.gp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.gp-kpis > div { background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 10px 12px; }
.gp-kpis b { display: block; font-size: 1.35rem; color: #1f497d; line-height: 1.15; }
.gp-kpis span { font-size: .72rem; color: #64748b; font-weight: 600; }
.gp-kpis .gp-good b { color: #16a34a; } .gp-kpis .gp-bad b { color: #dc2626; } .gp-kpis .gp-warn b { color: #d97706; }
.gp-tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); white-space: nowrap; }
.gp-mini { display: inline-block; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #f1f5f9; color: #475569; text-transform: uppercase; letter-spacing: .03em; }
.gp-ta { height: auto; padding: 8px 12px; resize: vertical; width: 100%; line-height: 1.4; }
.gp-ciclos { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.gp-ciclo { border: 1px solid var(--gm-line); border-radius: 14px; padding: 14px; background: #fcfdfe; }
.gp-ciclo-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.gp-cascada { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: #94a3b8; }
.gp-lin { display: inline-flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--gm-line); color: var(--gm-ink); }
.gp-lin b { font-size: .82rem; } .gp-lin small { font-size: .7rem; color: #64748b; }
.gp-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.gp-opts label { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--gm-line); border-radius: 10px; cursor: pointer; font-size: .88rem; }
.gp-opts label small { grid-column: 2; color: #64748b; font-size: .76rem; }
.gp-opts label:has(input:checked) { border-color: #b4000c; background: #fdf2f2; }
.gp-vhead { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.gp-rejilla { display: grid; grid-template-columns: 170px repeat(var(--dias), minmax(150px, 1fr)); gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.gp-rh { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #475569; padding: 6px 4px; }
.gp-rh small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; }
.gp-rl { background: #f8fafc; border: 1px solid var(--gm-line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; }
.gp-rl small { color: #64748b; font-size: .7rem; } .gp-rl .gm-btn { margin-top: 6px; }
.gp-rc { border: 1px solid var(--gm-line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 6px; background: #fff; min-width: 0; }
.gp-op { border: 1px solid #eef2f6; border-radius: 8px; padding: 4px 6px; background: #fcfdfe; }
.gp-op.gp-exceso { border-color: #fcd34d; background: #fffbeb; }
.gp-op-h { display: flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; }
.gp-x { margin-left: auto; border: 0; background: none; color: #94a3b8; cursor: pointer; font-size: .8rem; padding: 0 2px; }
.gp-x:hover { color: #b4000c; }
.gp-pl { font-size: .74rem; line-height: 1.25; padding: 2px 4px; border-radius: 5px; word-break: break-word; }
.gp-pl.gp-edit { cursor: pointer; } .gp-pl.gp-edit:hover { background: #fdf2f2; color: #b4000c; }
.gp-pl.gp-reut { background: #ecfdf5; color: #065f46; }
.gp-add { border: 1px dashed #cbd5e1; background: none; border-radius: 8px; font-size: .72rem; color: #64748b; padding: 4px; cursor: pointer; }
.gp-add:hover { border-color: #b4000c; color: #b4000c; }
.gp-leyenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: .74rem; color: #64748b; margin-top: 8px; }
.gp-leyenda span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.gp-leyenda .gp-reut::before { background: #ecfdf5; border: 1px solid #6ee7b7; }
.gp-leyenda .gp-exceso-l::before { background: #fffbeb; border: 1px solid #fcd34d; }
.gp-leyenda .gp-l-med::before { background: #1f497d; } .gp-leyenda .gp-l-max::before { background: #cbd5e1; }
.gp-panel { border: 1px solid var(--gm-line); border-radius: 12px; padding: 12px; background: #fcfdfe; margin-top: 14px; }
.gp-panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.gp-panel details summary, .gp-dia summary { cursor: pointer; font-size: .86rem; padding: 6px 0; }
.gp-dia { border: 1px solid var(--gm-line); border-radius: 12px; padding: 8px 12px; margin-top: 10px; background: #fff; }
.gp-dia summary { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.gp-ok-row td { background: #f0fdf4 !important; }
.gp-exc { font-size: .74rem; color: #166534; margin-top: 4px; }
.gp-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .gp-cols2 { grid-template-columns: 1fr; } }
.gp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.gp-cal-h { font-size: .72rem; font-weight: 800; color: #64748b; text-align: center; }
.gp-cal-d { border: 1px solid var(--gm-line); border-radius: 10px; padding: 8px; text-align: left; cursor: pointer; background: #fff; font: inherit; }
.gp-cal-d b { display: block; font-size: 1rem; } .gp-cal-d small { font-size: .68rem; color: #64748b; }
.gp-cal-d.on { background: #ecfdf5; border-color: #a7f3d0; } .gp-cal-d.off { background: #f8fafc; color: #94a3b8; }
.gp-cal-d.fest { box-shadow: inset 0 -3px 0 #d97706; }
.gp-barras { display: flex; align-items: flex-end; gap: 3px; height: 180px; border-bottom: 1px solid var(--gm-line); overflow-x: auto; padding-top: 6px; }
.gp-barra { position: relative; flex: 1 0 18px; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.gp-barra span { position: absolute; bottom: 16px; width: 70%; border-radius: 4px 4px 0 0; }
.gp-b-max { background: #cbd5e1; } .gp-b-med { background: #1f497d; width: 45% !important; }
.gp-b-med.gp-warn-t { background: #d97706; } .gp-b-med.gp-bad-t { background: #dc2626; }
.gp-barra small { position: absolute; bottom: 0; font-size: .58rem; color: #94a3b8; }
.gp-warn-t { color: #b45309; font-weight: 700; } .gp-bad-t { color: #dc2626; font-weight: 700; }
.gp-chipx { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #f1f5f9; font-size: .8rem; margin: 0 6px 6px 0; }
.gp-chipx button { border: 0; background: none; color: #94a3b8; cursor: pointer; } .gp-chipx button:hover { color: #b4000c; }
.gp-tareas { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gp-tarea { border: 1px solid var(--gm-line); border-radius: 12px; padding: 12px; background: #fff; }
.gp-tarea.hecha, .gp-tarea.descartada { opacity: .7; }
.gp-tarea-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gp-pri { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.gp-tarea-d { white-space: pre-line; font-size: .84rem; color: #334155; margin-top: 6px; }
.gp-tarea-m { font-size: .74rem; color: #64748b; margin-top: 6px; }
.gp-tarea-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.gp-t td .gm-icon-btn { display: inline-grid; vertical-align: middle; width: 32px; height: 32px; margin: 1px 0; }
.gp-t td { vertical-align: top; }

/* ── Interruptores Sí/No (sustituyen a los combos Sí/No del Access · INC-00007) ── */
.gm-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 38px; cursor: pointer; user-select: none; }
.gm-switch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.gm-switch .gm-sw { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .18s; flex-shrink: 0; }
.gm-switch .gm-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.gm-switch input:checked + .gm-sw { background: #16a34a; }
.gm-switch input:checked + .gm-sw::after { transform: translateX(20px); }
.gm-switch input:focus-visible + .gm-sw { box-shadow: 0 0 0 3px rgba(180,0,12,.18); }
.gm-switch em { font-style: normal; font-size: .86rem; font-weight: 700; color: #64748b; }
.gm-switch em::before { content: 'No'; }
.gm-switch input:checked ~ em { color: #166534; }
.gm-switch input:checked ~ em::before { content: 'Sí'; }
.gm-switch:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.gm-switch.gm-switch-c { height: 30px; gap: 6px; }
.gm-switch.gm-switch-c em { font-size: .76rem; }
/* ── Semanas guardadas fuera del ciclo (INC-00008) y eliminar semana (INC-00009) ── */
.gm-pill.gm-fuera:not(.on) { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.gm-pill.gm-fuera.on { background: #d97706; border-color: #d97706; box-shadow: 0 6px 14px -8px rgba(217,119,6,.8); }
.gm-badge-fuera { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gm-fuera-txt { color: #b45309; }
.gm-aviso.gm-aviso-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; font-weight: 500; line-height: 1.45; }
.gm-aviso.gm-aviso-warn i { margin-right: 6px; color: #d97706; }
.gm-week-label .gm-week-del { width: 26px; height: 26px; margin-left: 10px; vertical-align: middle; color: #94a3b8; }
.gm-week-label .gm-week-del:hover { color: #b91c1c; border-color: #b91c1c; }
.gm-nav-arrows .gm-btn-sm { height: 32px; }
.gm-ciclo-sem { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-ciclo-chip { min-width: 32px; height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid #86efac; background: #f0fdf4; color: #166534; font-size: .8rem; font-weight: 700; display: inline-grid; place-items: center; }
.gm-ciclo-chip.gm-fuera { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.gm-field label.gm-switch { text-transform: none; letter-spacing: 0; font-size: .86rem; color: inherit; }

/* ── Botón «+» de alta rápida junto a los campos alimentados (INC-00010) ── */
.gm-icon-btn.gm-mas { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; flex-shrink: 0; }
.gm-icon-btn.gm-mas:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
.gm-ms-bar .gm-mas { height: 28px; width: 28px; }
.gm-field > .gm-combo { width: 100%; }

/* ============ Menús cíclicos · Crear ciclo (diseño «Planificador de Menús GASCA») ============ */
.cc-wrap { display: flex; flex-direction: column; gap: 14px; }
.cc-steps { display: flex; align-items: flex-start; background: #fff; border: 1px solid var(--gm-line); border-radius: 14px; padding: 18px 22px 30px; overflow-x: auto; }
.cc-step { display: flex; flex-direction: column; align-items: center; position: relative; flex: none; min-width: 90px; }
.cc-step.ir { cursor: pointer; }
.cc-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e5e7eb; color: #6b7280; font-weight: 700; transition: all .2s; }
.cc-step.hecho .cc-dot, .cc-step.actual .cc-dot { background: #dc2626; color: #fff; }
.cc-step.actual .cc-dot { box-shadow: 0 0 0 5px #fee2e2; }
.cc-step span { position: absolute; top: 46px; font-size: .74rem; color: #4b5563; white-space: nowrap; }
.cc-step.actual span { color: #dc2626; font-weight: 600; }
.cc-line { flex: 1; min-width: 30px; height: 2px; background: #e5e7eb; margin: 18px 6px 0; }
.cc-line i { display: block; height: 100%; background: #dc2626; transition: width .3s; }
.cc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--gm-line); border-radius: 12px; padding: 8px 12px; }
.cc-head h3 { margin: 4px 0 4px; font-size: 1.35rem; color: #111827; font-weight: 700; }
.cc-head p { margin: 0 0 6px; color: #4b5563; }
.cc-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cc-grid13 { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 14px; }
@media (max-width: 900px) { .cc-grid13 { grid-template-columns: 1fr; } }
.cc-aviso { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: .84rem; }
.cc-aviso.amb { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cc-semprev { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.cc-semprev > div { background: #fef2f2; border: 2px solid #fecaca; border-radius: 10px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cc-semprev i { color: #dc2626; font-size: 1.5rem; }
.cc-semprev b { color: #374151; font-weight: 600; }
.cc-semprev small { color: #6b7280; font-size: .72rem; }
.cc-semtabs .gm-pill { border-radius: 8px; padding: 0 14px; }
.cc-semtabs .gm-pill.on { background: #dc2626; border-color: #dc2626; }
.cc-scroll { overflow-x: auto; }
.cc-rej { display: grid; grid-template-columns: 150px repeat(var(--n), minmax(150px, 1fr)); gap: 10px; min-width: calc(150px + var(--n) * 160px); }
.cc-dh { background: #fef2f2; border-radius: 8px; padding: 12px; text-align: center; color: #374151; }
.cc-rh { background: #f9fafb; border-radius: 8px; padding: 12px; display: flex; align-items: center; color: #374151; font-size: .9rem; }
.cc-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-hueco { border: 2px dashed #d1d5db; border-radius: 10px; padding: 12px 8px; text-align: center; color: #6b7280; font-size: .74rem; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.cc-hueco i { color: #9ca3af; font-size: 1rem; }
.cc-hueco:hover { border-color: #f87171; background: #fef2f2; }
.cc-hueco:hover i { color: #dc2626; }
.cc-hueco.off { border-style: solid; background: #f9fafb; color: #9ca3af; }
.cc-sw { position: relative; display: inline-block; width: 40px; height: 22px; margin: 6px auto; }
.cc-sw input { opacity: 0; width: 0; height: 0; }
.cc-sw span { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: .2s; cursor: pointer; }
.cc-sw span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.cc-sw input:checked + span { background: #dc2626; }
.cc-sw input:checked + span::before { transform: translateX(18px); }
.cc-fam { display: flex; flex-direction: column; gap: 4px; }
.cc-fam small { font-size: .66rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; }
.cc-chip { display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(0,0,0,.06); }
.cc-resumen { font-size: .82rem; color: #374151; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cc-tip { padding: 12px 16px; border-radius: 10px; font-size: .86rem; margin: 6px 0 4px; }
.cc-tip.azul { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.cc-tip.amb { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.cc-tip.verde { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.cc-foot .gm-primary { background: #dc2626; border-color: #dc2626; }
.cc-pl { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; border-bottom: 1px dashed #eef2f6; }
.cc-pl small { font-size: .66rem; color: #9ca3af; }
.cc-plbtn { text-align: left; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .76rem; line-height: 1.25; cursor: pointer; color: #111827; min-height: 30px; }
.cc-plbtn:hover { border-color: #f87171; background: #fef2f2; }
.cc-plbtn.lleno { background: #fafafa; }
.cc-tot { display: flex; justify-content: space-between; font-size: .72rem; color: #b91c1c; font-weight: 600; padding-top: 2px; }
.cc-tot span.mal { background: #fee2e2; border-radius: 4px; padding: 0 4px; }
.cc-cal { margin-top: 12px; max-width: 520px; }
.cc-calh, .cc-calg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cc-calh div { font-size: .68rem; font-weight: 700; color: #6b7280; text-align: center; }
.cc-cd { border: 1px solid #eef2f6; border-radius: 6px; padding: 3px; text-align: center; font-size: .72rem; color: #9ca3af; min-height: 34px; }
.cc-cd b { display: block; font-weight: 600; }
.cc-cd small { font-size: .62rem; }
.cc-cd.on { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.cc-cd.sel { box-shadow: inset 0 0 0 2px #dc2626; }
.cc-regla { font-size: .84rem; padding: 8px 10px; background: #f9fafb; border-radius: 8px; margin-bottom: 6px; }
.cc-regla.mal { background: #fef2f2; color: #991b1b; }
.cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cc-kpis > div { border-radius: 12px; padding: 16px; border: 1px solid #e5e7eb; background: linear-gradient(135deg, #f8fafc, #fff); display: flex; flex-direction: column; gap: 4px; }
.cc-kpis span { font-size: .8rem; color: #4b5563; }
.cc-kpis b { font-size: 1.9rem; color: #111827; font-weight: 700; }
.cc-kpis small { font-size: .74rem; color: #6b7280; }
.cc-kpis .r { background: linear-gradient(135deg, #fef2f2, #fff); border-color: #fecaca; }
.cc-kpis .g { background: linear-gradient(135deg, #f0fdf4, #fff); border-color: #bbf7d0; }
.cc-kpis .g b { color: #15803d; }
.cc-kpis .a { background: linear-gradient(135deg, #fffbeb, #fff); border-color: #fde68a; }
.cc-kpis .a b { color: #b45309; }
.cc-prog { height: 8px; background: #fee2e2; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.cc-prog i { display: block; height: 100%; background: #dc2626; }
.cc-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 2px solid; margin-bottom: 8px; }
.cc-check.ok { background: #f0fdf4; border-color: #bbf7d0; }
.cc-check.ko { background: #fef2f2; border-color: #fecaca; }
.cc-check > i { font-size: 1.3rem; margin-top: 2px; }
.cc-check.ok > i { color: #16a34a; }
.cc-check.ko > i { color: #dc2626; }
.cc-check .n { color: #111827; }
.cc-check.ko .n { color: #7f1d1d; }
.cc-check .c { font-size: .74rem; color: #6b7280; margin-top: 2px; }
.cc-check details summary { cursor: pointer; font-size: .76rem; color: #b91c1c; margin-top: 4px; }
.cc-check .it { font-size: .76rem; color: #374151; margin-top: 4px; }
.cc-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* Crear ciclo v2 (3 pasos) */
.cc-tit { font-size: .9rem; color: #334155; }
.cc-reglas { margin-top: 8px; font-size: .76rem; color: #475569; display: flex; flex-direction: column; gap: 3px; background: #f8fafc; border-radius: 8px; padding: 8px 10px; }
.cc-par { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cc-par .gm-select { flex: 1; min-width: 0; height: 32px; }
.cc-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .cc-2col { grid-template-columns: 1fr; } }
.cc-sem { margin-bottom: 12px; }
.cc-semt { font-weight: 700; color: #b4000c; font-size: .86rem; margin-bottom: 8px; }
.cc-rej3 { grid-template-columns: repeat(var(--n), minmax(170px, 1fr)); min-width: calc(var(--n) * 180px); }
.cc-g { display: flex; align-items: center; gap: 2px; border: 1px solid; border-radius: 8px; padding: 2px 2px 2px 6px; }
.cc-g select { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .78rem; font-weight: 600; height: 30px; cursor: pointer; outline: none; }
.cc-lock { border: 0; background: transparent; color: #94a3b8; width: 26px; cursor: pointer; border-radius: 6px; font-size: .74rem; flex: none; }
.cc-lock:hover { background: rgba(0,0,0,.05); color: #334155; }
.cc-lock.on { color: #b4000c; }
.cc-leyenda { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cc-inc { position: sticky; top: 8px; max-height: calc(100vh - 140px); overflow: auto; font-size: .8rem; }
.cc-inc-h { display: flex; gap: 8px; align-items: center; font-weight: 700; padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; }
.cc-inc-h.ok { background: #f0fdf4; color: #166534; }
.cc-inc-h.ko { background: #fef2f2; color: #991b1b; }
.cc-inc-i { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; color: #334155; line-height: 1.35; }
.cc-inc-i.ko { color: #7f1d1d; }
.cc-inc-i small { display: block; font-size: .64rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.cc-inc details summary { cursor: pointer; color: #92400e; margin: 8px 0 4px; font-weight: 600; }
.cc-guar { text-align: left; border: 1px dashed #bbf7d0; background: #fff; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: .7rem; cursor: pointer; color: #166534; }
.cc-guar.lleno { border-style: solid; background: #f0fdf4; }
.cc-pansel { height: 28px; font-size: .74rem; }
.cc-kpi3 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cc-kpi3 > div { border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.cc-kpi3 > div.mal { background: #fef2f2; border-color: #fecaca; }
.cc-kpi3 span { font-size: .68rem; color: #6b7280; }
.cc-kpi3 b { font-size: 1.15rem; color: #111827; }
.cc-kpi3 small { font-size: .66rem; color: #94a3b8; }

/* Grupos de frecuencias */
.fr-g { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.fr-g.off { opacity: .6; }
.fr-n { font-weight: 700; color: #111827; }
.fr-rs { font-size: .8rem; color: #334155; margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.fr-lin { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.fr-lin > b { width: 90px; flex: none; padding-top: 6px; }
.fr-lin .gm-pill { font-size: .72rem; height: 28px; }
.fr-t td { vertical-align: top; }
.fr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.fr-c { background: #fef2f2; color: #7f1d1d; }
.fr-c i { cursor: pointer; margin-left: 4px; opacity: .6; }
.fr-c i:hover { opacity: 1; }
.fr-add { display: flex; gap: 4px; flex-wrap: wrap; }
.fr-add .gm-select { height: 28px; font-size: .74rem; width: auto; max-width: 200px; }

/* INC-00020: paso 1 de Crear ciclo sin desbordes (rejilla responsiva y controles al 100 %) */
.cc-def { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cc-def > .gm-card { min-width: 0; overflow: visible; height: auto; }
.cc-def .gm-field { min-width: 0; }
.cc-def .gm-select, .cc-def .gm-input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.cc-def .gm-input::placeholder { text-overflow: ellipsis; }
.cc-def .gm-pills { flex-wrap: wrap; }
.cc-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.cc-lbl { display: block; font-size: .8rem; color: #374151; font-weight: 600; margin-bottom: 4px; }
.cc-titrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cc-titrow a { font-size: .78rem; white-space: nowrap; }
.cc-par { min-width: 0; }
.cc-par .gm-select { width: auto; flex: 1 1 0; }
.cc-par .gm-icon-btn { flex: none; }

/* INC-00021: líneas de menú editables */
.fr-lin-n { width: 210px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.fr-lin-n .gm-input { height: 32px; font-weight: 700; }
.fr-lin-b { display: flex; gap: 4px; }
.fr-lin-b .gm-icon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; }

/* INC-00024: el texto de los desplegables de grupo no se corta · INC-00025: diseño más limpio */
.cc-g { position: relative; min-height: 38px; border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .12s, box-shadow .12s; cursor: grab; }
.cc-g:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(15,23,42,.25); }
.cc-g select, .cc-g select.gm-select { height: 34px !important; min-height: 0 !important; padding: 0 4px !important; margin: 0 !important; line-height: 34px !important;
  box-shadow: none !important; border: 0 !important; background: transparent !important; font-size: .8rem !important; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cc-g .cc-asa { color: rgba(15,23,42,.25); font-size: .7rem; flex: none; }
.cc-g.cc-arrastrando, .cc-pl.cc-arrastrando { opacity: .45; }
.cc-g.cc-sobre, .cc-pl.cc-sobre { outline: 2px dashed #b4000c; outline-offset: 2px; }
.cc-pl[draggable="true"] { cursor: grab; }
.cc-pl { border-radius: 10px; padding: 6px; border: 1px solid transparent; }
.cc-pl.mal { background: #fef2f2; border-color: #fecaca; }
.cc-plbtn.mal { border-color: #dc2626 !important; color: #991b1b; background: #fff5f5 !important; box-shadow: 0 0 0 2px #fee2e2; }
.cc-chip-mal { background: #dc2626 !important; color: #fff !important; margin-left: 4px; }
.cc-ia { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #fff7f7, #f8fafc); border: 1px solid #fde2e2; }
.cc-ia > i { color: #b4000c; }
.cc-ia .gm-input { flex: 1; min-width: 0; border-radius: 10px; }
.cc-head h3 { display: flex; align-items: center; gap: 10px; }
.cc-dh { background: linear-gradient(180deg, #fff1f1, #fde8e8); font-weight: 600; letter-spacing: .02em; border: 1px solid #fbd5d5; }
.cc-rh { font-weight: 700; color: #475569; background: #f8fafc; border: 1px solid #eef2f6; }
.cc-sem { border-radius: 14px; }
.cc-semt { display: inline-flex; align-items: center; gap: 6px; background: #b4000c; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.cc-steps { box-shadow: 0 6px 20px -14px rgba(15,23,42,.35); }
.cc-def > .gm-card, .cc-2col .gm-card { border-radius: 14px; }
.cc-tit { display: inline-flex; align-items: center; gap: 6px; }
/* Grupos de frecuencias: tarjetas por grupo con sus tres secciones y edición maximizada (INC-00022/26) */
.fr-card.off { opacity: .6; }
.fr-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.fr-sec { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 10px 12px; }
.fr-sec-t { font-weight: 700; color: #b4000c; font-size: .82rem; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.fr-sec-t small { background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 0 7px; font-size: .68rem; }
.fr-r { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; font-size: .78rem; padding: 4px 0; border-top: 1px solid #eef2f6; }
.fr-r span { color: #0B3C73; font-weight: 600; white-space: nowrap; }
.fr-r small { grid-column: 1 / -1; color: #94a3b8; font-size: .68rem; }
.fr-modal.max { width: 96vw !important; max-width: 96vw !important; height: 92vh; display: flex; flex-direction: column; }
.fr-modal.max .gm-modal-body { flex: 1; overflow: auto; max-height: none; }
.fr-modal:not(.max) { width: min(1100px, 100%); }
.fr-cab { display: flex; gap: 12px; flex-wrap: wrap; }
.fr-cab .gm-field { flex: 1; min-width: 220px; }
.fr-sec-ed { margin-top: 16px; }

/* ── Comprobar grupos de frecuencias en el ciclo (INC-00033) y explicación de periodo sin menús (INC-00032) ── */
.gm-frec td, .gm-frec th { white-space: nowrap; }
.gm-frec .gm-ok { color: #16a34a; } .gm-frec .gm-ko { color: #dc2626; }
.gm-frec tr.gm-frec-ko td:first-child { font-weight: 700; }
.gm-frec td.gm-frec-cell-ko { background: #fef2f2; color: #b91c1c; font-weight: 800; }
.gm-frec-mes { display: inline-block; min-width: 22px; text-align: center; padding: 1px 5px; margin: 1px; border-radius: 6px; background: #f1f5f9; font-size: .74rem; font-weight: 700; }
.gm-frec-mes.ko { background: #fee2e2; color: #b91c1c; }
.gm-frec-lista { margin: 0; padding-left: 18px; font-size: .84rem; line-height: 1.5; color: #7f1d1d; }
.gm-ms-lista .gm-ms-explica { white-space: normal; line-height: 1.5; color: #334155; }
.gm-ms-lista .gm-ms-explica a { color: #b4000c; font-weight: 700; }

/* ── Frecuencias sobre el propio menú (INC-00034/35/36) ── */
.gm-frec-chip { margin-left: auto; align-self: center; flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; }
.gm-dish.gm-frec-exceso { outline: 2px dashed #dc2626; outline-offset: -2px; background: #fff1f2; }
.gm-frec-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 10px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.gm-frec-b { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.gm-frec-b i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #94a3b8); display: inline-block; }
.gm-frec-b.ko { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.gm-frec-b.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.gm-frec-panel { padding: 12px 16px; }
.gm-frec-panel summary { cursor: pointer; list-style: none; } .gm-frec-panel summary::-webkit-details-marker { display: none; }
.gm-frec-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.gm-frec-kpi { padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem; } .gm-frec-kpi.ko { background: #fee2e2; color: #b91c1c; } .gm-frec-kpi.ok { background: #dcfce7; color: #166534; }
.gm-frec-leyenda { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gm-frec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ── Tabla de frecuencias legible (INC-00033, ampliación): nombres completos, semanas estrechas, ventanas resumidas ── */
.gm-table.gm-frec { font-size: .78rem; table-layout: auto; }
.gm-table.gm-frec th, .gm-table.gm-frec td { max-width: none; overflow: visible; text-overflow: clip; padding: 5px 6px; }
.gm-table.gm-frec .gm-frec-nom { white-space: normal; min-width: 210px; max-width: 320px; line-height: 1.25; font-weight: 600; }
.gm-table.gm-frec .gm-frec-lim { white-space: nowrap; font-size: .72rem; }
.gm-table.gm-frec .gm-frec-s { width: 26px; min-width: 26px; padding: 5px 2px; text-align: center; font-variant-numeric: tabular-nums; }
.gm-table.gm-frec th.gm-frec-s { font-size: .68rem; }
.gm-table.gm-frec .gm-frec-v { white-space: nowrap; }
.gm-frec-mes.okb { background: #dcfce7; color: #166534; }

/* ── GASCA · pantallas operativas (gasca_ops.js): Stocks, Almacén, Caducidades, Trazabilidad, Producción, Salidas, Scorecard, Maquinaria ── */
.go-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.go-head h2 { margin: 0; font-size: 1.3rem; }
.go-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: .82rem; max-width: 900px; }
.go-head-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.go-lbl { font-size: .78rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 5px; }
.go-sel, .go-inp { padding: 7px 10px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 8px; background: var(--bg-main, #fff); color: inherit; font-size: .82rem; min-width: 150px; }
.go-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.go-grid6 { grid-template-columns: repeat(6, 1fr); }
.go-grid8 { grid-template-columns: repeat(8, 1fr); }
.go-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1500px) { .go-grid8 { grid-template-columns: repeat(4, 1fr); } .go-grid6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .go-grid4, .go-grid6, .go-grid8 { grid-template-columns: repeat(2, 1fr); } .go-grid2 { grid-template-columns: 1fr !important; } }
.go-kpi { padding: 10px 12px; min-width: 0; }
.go-kpi-t { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); font-weight: 700; }
.go-kpi-v { font-size: 1.35rem; font-weight: 800; margin-top: 2px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.go-kpi-s { font-size: .7rem; color: var(--text-secondary); margin-top: 2px; }
.go-box { padding: 12px 14px; min-width: 0; }
.go-box-t { font-size: .8rem; font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.go-box-x { font-size: .7rem; font-weight: 500; color: var(--text-secondary); }
.go-chart { position: relative; height: 230px; }
.go-chart-lg { height: 290px; }
.go-table-wrap { overflow: auto; border: 1px solid var(--border-color, #e2e8f0); border-radius: 10px; }
.go-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.go-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; text-align: left; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary); padding: 7px 8px; border-bottom: 1px solid var(--border-color, #e2e8f0); white-space: nowrap; }
.go-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-table tr:hover td { background: #f8fafc; }
.go-table .go-num { text-align: right; font-variant-numeric: tabular-nums; }
.go-table th.go-sort { cursor: pointer; user-select: none; } .go-table th.go-sort.on { color: #0B3C73; }
.go-sc-row, .go-erp-row, .go-ruta { cursor: pointer; }
.go-bar { height: 4px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 3px; min-width: 60px; } .go-bar > div { height: 100%; border-radius: 3px; }
.go-chip { display: inline-block; font-size: .68rem; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #334155; margin: 1px 2px 1px 0; white-space: nowrap; }
.go-chip-v { background: #dcfce7; color: #166534; } .go-chip-r { background: #fee2e2; color: #991b1b; }
.go-rojo { color: #dc2626; } .go-ambar { color: #d97706; } .go-verde { color: #16a34a; } .go-azul { color: #0B3C73; } .go-muted { color: var(--text-secondary); }
.go-vacio { padding: 18px; text-align: center; color: var(--text-secondary); font-size: .82rem; }
.go-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 10px 14px; font-size: .82rem; margin: 8px 0; }
.go-art, .go-lote { color: #0B3C73; text-decoration: none; border-bottom: 1px dotted #93c5fd; } .go-art:hover, .go-lote:hover { border-bottom-style: solid; }
.go-toggle { display: inline-flex; border: 1px solid var(--border-color, #e2e8f0); border-radius: 8px; overflow: hidden; }
.go-tg { border: none; background: transparent; color: var(--text-secondary); padding: 6px 12px; cursor: pointer; font-size: .8rem; } .go-tg.on { background: #0B3C73; color: #fff; }
.go-pasos { display: grid; gap: 12px; }
.go-paso { border-left: 4px solid #cbd5e1; background: var(--card-bg, #fff); border-radius: 10px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.go-paso-h { font-weight: 700; font-size: .82rem; margin-bottom: 6px; }
.go-det summary { cursor: pointer; font-size: .76rem; color: var(--text-secondary); margin-top: 6px; }
.go-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.go-card { padding: 10px 12px; } .go-card-off { opacity: .6; }
.go-card-h { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.go-card-t { font-weight: 700; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-card-s { font-size: .74rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-card-g { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 6px; font-size: .74rem; }
.go-card-g small { display: block; color: var(--text-secondary); font-size: .62rem; text-transform: uppercase; } .go-card-g b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-modal-lg { width: min(1200px, 96vw); } .go-modal-md { width: min(700px, 96vw); }
.go-modal-body { max-height: 82vh; overflow: auto; }
.go-modal-body .go-grid2 { grid-template-columns: 1fr 1fr; }
.gm-modal-head .gm-x { margin-left: auto; border: none; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--text-secondary); }
/* Catálogos CCS de la demo: GASCA solo tiene RPS */
.menu-item[data-target="erp-view"][data-erp="ccs"] { display: none !important; }
@media print { .go-head-r, .sidebar, .topbar { display: none !important; } .go-table-wrap { max-height: none !important; overflow: visible; } }

/* ── 2ª tanda operativa: plan de producción, centro de alertas ── */
.go-dias { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; margin-bottom: 12px; }
.go-dia { background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 10px; padding: 6px 4px 4px; text-align: center; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.go-dia:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11,60,115,.12); }
.go-dia.on { border-color: #0B3C73; box-shadow: 0 0 0 2px #0B3C7333; } .go-dia.hoy .go-dia-h b { color: #0B3C73; text-decoration: underline; } .go-dia.finde { background: #f8fafc; } .go-dia.sin { opacity: .75; }
.go-dia-h { font-size: .68rem; color: var(--text-secondary); } .go-dia-h b { font-size: .95rem; color: inherit; } .go-dia-h small { font-size: .62rem; }
.go-dia-bar { height: 46px; display: flex; align-items: flex-end; justify-content: center; margin: 4px 10px; } .go-dia-bar > div { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; }
.go-dia-n { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; } .go-dia-s { font-size: .62rem; color: var(--text-secondary); min-height: 12px; }
.go-alertas { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin-bottom: 12px; }
.go-alerta { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.go-alerta-h { display: flex; align-items: flex-start; gap: 10px; } .go-alerta-ic { font-size: 1.4rem; line-height: 1; } .go-alerta-t { font-weight: 700; font-size: .9rem; } .go-alerta-s { font-size: .74rem; color: var(--text-secondary); margin-top: 2px; }
.go-alerta-n { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.go-alerta-items { border-top: 1px solid #f1f5f9; padding-top: 6px; } .go-alerta-it { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; padding: 3px 0; border-bottom: 1px dashed #f1f5f9; }
.go-alerta-it[data-codart], .go-alerta-it[data-lote], .go-alerta-it[data-cliente] { cursor: pointer; } .go-alerta-it[data-codart]:hover span, .go-alerta-it[data-cliente]:hover span { color: #0B3C73; text-decoration: underline; }
.go-alerta-it span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .go-alerta-it small { color: var(--text-secondary); white-space: nowrap; }
.go-alerta-f { display: flex; justify-content: flex-end; } .go-alerta-f .btn { font-size: .76rem; }
/* distintivo del entorno en la portada de Menus: verde cuando trabaja en produccion */
.gm-chip.gm-chip-prod { background: #dcfce7; color: #166534; }
