@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-main: 'Inter', Arial, Helvetica, sans-serif;
}

html,
body,
* {
  font-family: var(--font-main) !important;
}

button,
input,
select,
textarea,
table,
th,
td,
label,
a {
  font-family: var(--font-main) !important;
}
:root {
      --bg: #000000;
      --card: #ffffff;
      --accent: #6CFF6C;
      --muted: #bdbdbd;
      --text: #111111;
      --shadow: rgba(0,0,0,0.35);
      --danger: #ff5a5a;
      --warn: #ffd24d;
      --icon-yellow: #fdae0c;
      --ok: #6CFF6C;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 14px;
      background: var(--bg);
      color: #ffffff;
    }

    header {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    header .title {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 220px;
    }
    header .title h1 {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.2px;
    }
    header .title .subtitle {
      margin: 0;
      font-size: 12px;
      color: var(--muted);
    }

    .toolbar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }
    .header-icon {
      width: 3cm;
      height: 3cm;
      object-fit: contain;
      display: block;
    }


    button, .btn {
      appearance: none;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.06);
      color: #ffffff;
      padding: 8px 10px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 700;
      letter-spacing: 0.2px;
    }
    button:hover { background: rgba(255,255,255,0.12); }
    button:active { transform: translateY(1px); }
    button.primary {
      border-color: rgba(108,255,108,0.55);
      background: rgba(108,255,108,0.14);
      color: #000000 !important;
      -webkit-text-fill-color: #000000 !important;
    }
    button.primary,
    button.primary:hover,
    button.primary:active,
    button.primary:focus,
    button.primary:disabled {
      color: #000000 !important;
      -webkit-text-fill-color: #000000 !important;
    }
    button.danger {
      border-color: rgba(255,90,90,0.6);
      background: rgba(255,90,90,0.12);
    }
    button.small {
      padding: 7px 9px;
      border-radius: 9px;
      font-size: 12px;
      font-weight: 700;
    }

    /* Botón "Detectar equipo" con el mismo estilo del botón primario (Resumir problema) */
    #btnDetectEquipo {
      border-color: rgba(108,255,108,0.55);
      background: rgba(108,255,108,0.14);
      color: #000000 !important;
      -webkit-text-fill-color: #000000 !important;
    }
    #btnDetectEquipo:hover,
    #btnDetectEquipo:active,
    #btnDetectEquipo:focus,
    #btnDetectEquipo:disabled {
      color: #000000 !important;
      -webkit-text-fill-color: #000000 !important;
    }


    input[type="file"] { display: none; }

    .container {
      padding: 14px 16px 18px;
      display: grid;
      gap: 14px;
    }

    .row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.06);
      border-radius: 999px;
      color: #fff;
      font-size: 12px;
    }
    .pill strong { font-weight: 800; }
    .pill .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--warn);
      display: inline-block;
    }
    .pill.ok .dot { background: var(--ok); }
    .pill.bad .dot { background: var(--danger); }

    .tree-wrap { overflow-x: auto; padding-bottom: 6px; }
    .tree { display: flex; align-items: stretch; gap: 10px; min-width: 980px; }

    .card {
      width: 340px; min-width: 340px;
      background: var(--card); color: var(--text);
      border: 2px solid var(--accent);
      border-radius: 14px;
      box-shadow: 0 10px 24px var(--shadow);
      display: flex; flex-direction: column;
      overflow: hidden;
      /* Tarjetas 3 cm más bajas (solo UI) */
      height: 11cm;
    }

    .card .label {
      font-size: 12px; font-weight: 800;
      padding: 8px 10px;
      border-bottom: 1px solid rgba(0,0,0,0.08);
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px;
    }
    .card .label .tag {
      font-size: 10px; font-weight: 800;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(108,255,108,0.18);
      border: 1px solid rgba(108,255,108,0.35);
    }

    .card .content {
      padding: 8px;
      display: grid;
      gap: 8px;
      /* Scroll interno si excede el alto fijo */
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
    }

    textarea, input[type="text"], select {
      width: 100%;
      border: 1px solid rgba(0,0,0,0.18);
      border-radius: 10px;
      padding: 8px;
      font-family: inherit;
      font-size: 12px;
      outline: none;
    }
    textarea { min-height: 55px; resize: vertical; }

    .hint { font-size: 11px; color: #444; line-height: 1.35; }

    .arrow { width: 44px; min-width: 44px; display: grid; place-items: center; }
    .arrow svg { width: 44px; height: 44px; filter: drop-shadow(0px 6px 10px rgba(0,0,0,0.6)); }

    .chipbar { display: flex; gap: 8px; align-items: center; }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
    .chip {
      display: inline-flex; gap: 8px; align-items: center;
      border: 1px solid rgba(0,0,0,0.14);
      background: rgba(0,0,0,0.04);
      padding: 7px 10px;
      border-radius: 999px;
      font-size: 12px;
    }
    .chip button {
      border: none; background: transparent; color: #000;
      font-weight: 900; padding: 0 2px; cursor: pointer;
    }

    .split { display: grid; gap: 10px; }

    .panel {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 14px;
      padding: 12px;
    }
    .panel h2 { margin: 0 0 8px 0; font-size: 14px; letter-spacing: 0.2px; }

    .table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); }
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 980px;
      background: rgba(255,255,255,0.06);
      color: #fff;
    }
    th, td {
      border-bottom: 1px solid rgba(255,255,255,0.12);
      padding: 8px;
      vertical-align: top;
      font-size: 12px;
    }
    th {
      text-align: left;
      font-weight: 900;
      letter-spacing: 0.2px;
      background: rgba(255,255,255,0.07);
    }
    td input, td textarea {
      background: rgba(255,255,255,0.9);
      color: #000;
      border: 1px solid rgba(0,0,0,0.18);
      border-radius: 10px;
      padding: 8px;
      font-size: 12px;
    }
    td textarea { min-height: 54px; resize: vertical; }

    .footer-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

    /* Checklist catÃ¡logo causas */
    .check-item {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 8px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(255,255,255,0.06);
      width: fit-content;
      max-width: 100%;
      justify-self: start;
    }

    .check-item > div { min-width: 0; }
    .check-item .t, .check-item .meta { word-break: break-word; }
    .check-item input[type="checkbox"] {
      margin-top: 3px;
      transform: scale(1.1);
      accent-color: var(--accent);
    }
    .check-item .t {
      font-size: 12px;
      color: #fff;
      line-height: 1.25;
    }
    .check-item .meta {
      margin-top: 4px;
      font-size: 11px;
      color: rgba(255,255,255,0.75);
    }


    @media print {
      body { background: #fff; color: #000; }
      header, .panel .footer-actions, .toolbar, .pill, .row { display: none !important; }
      .panel { border: none; background: #fff; padding: 0; }
      .card { box-shadow: none; }
      table { background: #fff; color: #000; }
      th, td { border: 1px solid #ddd; }
    }
/* === Ajustes UI solicitados (sin cambios funcionales) === */
header .title h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.05;
}

/* Título: "RCA" grande/negrita y "4" en amarillo (mismo tono del icono) */
header .title h1 .app-title-main {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
header .title h1 .app-title-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--icon-yellow);
}
header .title h1 .app-title-sub {
  font-size: 18px;
  font-weight: 800;
  margin-left: 6px;
  letter-spacing: 0.2px;
}

/* Ocultar control visual de carga de catalogo (input sigue presente para no afectar JS) */
label[for="fileModes"] {
  display: none !important;
}

/* Ocultar boton "Exportar JSON" sin afectar funcionalidad (permanece en DOM) */
#btnExport {
  display: none !important;
}

/* Dropdown Detalle compacto */
#selDetalle {
  width: auto !important;
  min-width: 150px;
  text-align: left;
  white-space: nowrap;
}
#selDetalle option {
  color: #000 !important;
  text-align: left;
}

/* Solo frases/etiquetas solicitadas en blanco */
.txt-white-target {
  color: #ffffff !important;
}

/* Solo botones verdes solicitados con texto blanco */
#btnAplicarPlantilla,
#btnAplicarPlantilla:hover,
#btnAplicarPlantilla:active,
#btnAplicarPlantilla:focus,
#btnAplicarPlantilla:disabled,
#btnPlan,
#btnPlan:hover,
#btnPlan:active,
#btnPlan:focus,
#btnPlan:disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Checklist catÃ¡logo (offline): mostrar todas las filas aplicables con scroll vertical */
#catalogChecklist{
  max-height: 55vh; /* suficiente para ver muchas filas sin crecer indefinidamente */
  overflow-y: auto;
  justify-items: start;
  padding-right: 6px;
}



/* Resumen del problema en negrita */
.problem-summary {
  font-weight: 900;
  color: #000000;
}


/* === Propuesta visual moderna v12 (SOLO UI, sin cambios funcionales) === */
@media screen {
  :root {
    --bg: #06080c;
    --card: #ffffff;
    --accent: #52f07a;
    --muted: #bfc9d8;
    --text: #12161c;
    --shadow: rgba(0,0,0,0.38);
    --danger: #ff6565;
    --warn: #ffcf4a;
    --ok: #52f07a;
  }

  body {
    background:
      radial-gradient(1200px 520px at 10% -10%, rgba(82,240,122,0.08), transparent 60%),
      radial-gradient(900px 420px at 100% 0%, rgba(76,132,255,0.14), transparent 55%),
      linear-gradient(180deg, #05070a 0%, #070a0f 42%, #05070b 100%);
    color: #eef2f7;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
    opacity: .4;
    z-index: 0;
  }

  header,
  .container {
    position: relative;
    z-index: 1;
  }

  header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
  }

  .header-right {
    gap: 14px;
  }

  .header-icon {
    border-radius: 16px;
    box-shadow:
      0 10px 24px rgba(0,0,0,0.35),
      0 0 0 1px rgba(255,255,255,0.06);
    background: transparent;
  }

  .toolbar {
    padding: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    gap: 7px;
  }

  button, .btn {
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    color: #f4f7fb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  }

  button:hover, .btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 7px 16px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-1px);
  }

  button:active, .btn:active {
    transform: translateY(0px) scale(.99);
  }

  button.primary {
    border-color: rgba(82,240,122,0.55);
    background: linear-gradient(180deg, rgba(82,240,122,0.38), rgba(82,240,122,0.22));
    box-shadow: 0 6px 16px rgba(82,240,122,0.14), inset 0 1px 0 rgba(255,255,255,0.12);
  }

  button.danger {
    border-color: rgba(255,101,101,0.42);
    background: linear-gradient(180deg, rgba(255,101,101,0.16), rgba(255,101,101,0.09));
  }

  #selDetalle {
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05)) !important;
    color: #f7fbff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.07);
  }

  .pill {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 12px rgba(0,0,0,0.14);
    padding: 9px 12px;
  }

  .pill .dot {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05), 0 0 12px rgba(255,207,74,0.35);
  }
  .pill.ok .dot { box-shadow: 0 0 0 3px rgba(255,255,255,0.05), 0 0 12px rgba(82,240,122,0.35); }
  .pill.bad .dot { box-shadow: 0 0 0 3px rgba(255,255,255,0.05), 0 0 12px rgba(255,101,101,0.35); }

  .tree-wrap {
    border-radius: 18px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012));
    border: 1px solid rgba(255,255,255,0.07);
  }

  .tree {
    gap: 14px;
    align-items: stretch;
  }

  .card {
    border: 1px solid rgba(82,240,122,0.22);
    border-radius: 18px;
    box-shadow:
      0 14px 32px rgba(0,0,0,0.28),
      0 0 0 1px rgba(255,255,255,0.06),
      inset 0 1px 0 rgba(255,255,255,0.35);
    position: relative;
    transition: transform .22s ease, box-shadow .24s ease, border-color .2s ease;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.985), rgba(248,250,253,0.985));
  }

  .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(82,240,122,0.09), transparent 32%, transparent 68%, rgba(76,132,255,0.06));
    opacity: .9;
  }

  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(82,240,122,0.35);
    box-shadow:
      0 18px 38px rgba(0,0,0,0.34),
      0 0 0 1px rgba(255,255,255,0.10),
      0 0 0 4px rgba(82,240,122,0.08);
  }

  .card .label {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
    font-size: 12px;
    color: #0f1620;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,248,251,0.92));
    backdrop-filter: blur(4px);
  }

  .card .label .tag {
    background: linear-gradient(180deg, rgba(82,240,122,0.18), rgba(82,240,122,0.12));
    border: 1px solid rgba(82,240,122,0.28);
    color: #15311d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    padding: 3px 8px;
  }

  .card .content {
    position: relative;
    z-index: 1;
    padding: 10px;
    gap: 9px;
  }

  textarea, input[type="text"], select {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color .16s ease, box-shadow .2s ease, background .2s ease;
  }

  textarea:focus, input[type="text"]:focus, select:focus {
    border-color: rgba(82,240,122,0.55);
    box-shadow: 0 0 0 4px rgba(82,240,122,0.12), inset 0 1px 2px rgba(0,0,0,0.03);
    background: #ffffff;
  }

  textarea {
    line-height: 1.35;
  }

  .hint {
    color: #36404d;
    background: linear-gradient(180deg, rgba(0,0,0,0.025), rgba(0,0,0,0.015));
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 8px 9px;
  }

  .problem-summary {
    font-weight: 900;
    color: #000000;
    text-shadow: none;
  }

  .chipbar {
    gap: 7px;
  }

  .chips {
    gap: 7px;
  }

  .chip {
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,251,0.98));
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .16s ease, box-shadow .18s ease;
  }
  .chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
  }

  .arrow svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
  }
  .arrow svg path:first-child,
  .arrow svg path:last-child {
    stroke: #61ff80;
  }

  .panel {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 12px 26px rgba(0,0,0,0.20);
    backdrop-filter: blur(8px);
    padding: 14px;
  }

  .panel h2 {
    font-size: 15px;
    font-weight: 800;
    color: #f2f6fb;
    margin-bottom: 10px;
  }

  .table-wrap {
    border-radius: 16px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  table {
    background: rgba(255,255,255,0.03);
  }

  th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.07));
    backdrop-filter: blur(6px);
  }

  tbody tr:hover td {
    background: rgba(255,255,255,0.035);
  }

  .check-item {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform .14s ease, border-color .2s ease, background .2s ease;
  }

  .check-item:hover {
    transform: translateY(-1px);
    border-color: rgba(82,240,122,0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  }

  .check-item input[type="checkbox"] {
    accent-color: #52f07a;
  }

  #catalogChecklist::-webkit-scrollbar,
  .card .content::-webkit-scrollbar,
  .tree-wrap::-webkit-scrollbar,
  .table-wrap::-webkit-scrollbar {
    height: 10px;
    width: 10px;
  }

  #catalogChecklist::-webkit-scrollbar-thumb,
  .card .content::-webkit-scrollbar-thumb,
  .tree-wrap::-webkit-scrollbar-thumb,
  .table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,0);
    background-clip: padding-box;
  }

  #catalogChecklist::-webkit-scrollbar-track,
  .card .content::-webkit-scrollbar-track,
  .tree-wrap::-webkit-scrollbar-track,
  .table-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
  }

  .footer-actions {
    gap: 7px;
  }

  @media (max-width: 1080px) {
    .toolbar {
      justify-content: flex-start;
    }
    .header-right {
      width: 100%;
      justify-content: space-between;
    }
    .header-icon {
      width: 2.35cm;
      height: 2.35cm;
    }
    .tree-wrap {
      padding: 8px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
      animation: none !important;
      scroll-behavior: auto !important;
    }
  }
}


/* === Propuesta visual v13 | Tema Confiabilidad de Activos (SOLO UI) === */
@media screen {
  :root {
    --tech-cyan: #49d8ff;
    --tech-blue: #5d7cff;
    --tech-green: #51f28f;
    --tech-amber: #ffcb44;
    --tech-orange: #ff9f43;
    --tech-violet: #9c7bff;
    --glass-line: rgba(255,255,255,0.08);
  }

  body {
    background:
      radial-gradient(1100px 520px at -6% -10%, rgba(81,242,143,0.10), transparent 60%),
      radial-gradient(900px 460px at 108% -6%, rgba(73,216,255,0.10), transparent 56%),
      radial-gradient(800px 420px at 50% 120%, rgba(93,124,255,0.08), transparent 58%),
      linear-gradient(180deg, #04070b 0%, #050913 45%, #03060a 100%);
    overflow-x: hidden;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .25;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500' viewBox='0 0 900 500'%3E%3Cg fill='none' stroke='rgba(120,170,255,0.18)' stroke-width='1'%3E%3Cpath d='M0 210 C 120 160, 180 260, 300 210 S 480 160, 600 210 S 780 260, 900 210'/%3E%3Cpath d='M0 250 C 110 205, 190 295, 300 250 S 490 205, 600 250 S 790 295, 900 250'/%3E%3Cpath d='M0 290 C 100 250, 200 330, 300 290 S 500 250, 600 290 S 800 330, 900 290'/%3E%3C/g%3E%3Cg fill='rgba(81,242,143,0.20)'%3E%3Ccircle cx='300' cy='210' r='3'/%3E%3Ccircle cx='600' cy='250' r='3'/%3E%3Ccircle cx='300' cy='290' r='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 1200px auto;
    background-position: center 18%;
    background-repeat: no-repeat;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background:
      linear-gradient(180deg, rgba(7,10,16,0.88), rgba(7,10,16,0.72));
    backdrop-filter: blur(12px) saturate(120%);
  }

  header::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(81,242,143,0), rgba(81,242,143,0.75), rgba(73,216,255,0.75), rgba(255,203,68,0.55), rgba(81,242,143,0));
    opacity: .8;
  }

  .toolbar {
    position: relative;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    border-color: rgba(255,255,255,0.07);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.04),
      0 8px 18px rgba(0,0,0,0.22);
  }

  .toolbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
      linear-gradient(90deg, transparent, rgba(73,216,255,0.05), transparent);
    opacity: .8;
  }

  .header-icon {
    box-shadow:
      0 16px 30px rgba(0,0,0,0.42),
      0 0 0 1px rgba(255,255,255,0.05),
      0 0 18px rgba(73,216,255,0.12);
  }

  /* Título sin cambiar texto/logo: solo realce visual */
  header .title h1 .app-title-main,
  header .title h1 .app-title-num {
    text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.22);
  }
  header .title h1 .app-title-sub {
    color: #d9e4f2;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
  }

  button, .btn {
    border-radius: 13px;
  }

  button:not(.primary):not(.danger):hover {
    box-shadow:
      0 10px 18px rgba(0,0,0,0.24),
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 0 0 1px rgba(73,216,255,0.10);
  }

  button.primary {
    background:
      linear-gradient(180deg, rgba(81,242,143,0.55), rgba(81,242,143,0.25));
    border-color: rgba(81,242,143,0.58);
    box-shadow:
      0 8px 18px rgba(81,242,143,0.18),
      inset 0 1px 0 rgba(255,255,255,0.16);
  }
  button.primary:hover {
    box-shadow:
      0 12px 22px rgba(81,242,143,0.22),
      inset 0 1px 0 rgba(255,255,255,0.18),
      0 0 0 1px rgba(81,242,143,0.20);
  }

  button.danger:hover {
    box-shadow:
      0 10px 18px rgba(255,101,101,0.14),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .container {
    gap: 16px;
    padding-top: 16px;
  }

  .row .pill {
    position: relative;
    overflow: hidden;
  }
  .row .pill::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 18%, transparent 40%);
    transform: translateX(-120%);
    animation: pillSweep 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 1s);
    opacity: .65;
  }
  #pillCatalog { --delay: 0.2; }
  #pillSession { --delay: 1.0; }
  #pillEquipo { --delay: 1.8; }
  #pillModo { --delay: 2.6; }

  .pill .dot {
    animation: dotPulse 2.8s ease-in-out infinite;
  }

  .tree-wrap {
    position: relative;
    border-radius: 20px;
    padding: 12px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border-color: rgba(255,255,255,0.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.04),
      0 14px 30px rgba(0,0,0,0.22);
  }

  .tree-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: .22;
    background-image:
      radial-gradient(circle at 8px 8px, rgba(73,216,255,0.35) 0 1px, transparent 1.5px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 24px 24px;
  }

  .tree {
    position: relative;
    gap: 8px;
    padding: 2px;
  }

  /* Tarjetas: apariencia de panel técnico */
  .card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,249,253,0.99));
    box-shadow:
      0 18px 34px rgba(0,0,0,0.28),
      0 1px 0 rgba(255,255,255,0.75) inset,
      0 0 0 1px rgba(82,240,122,0.08);
  }

  .card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 54px;
    height: 54px;
    pointer-events: none;
    opacity: .08;
    background-image: radial-gradient(circle at center, rgba(0,0,0,0.16) 0 1px, transparent 1.6px);
    background-size: 6px 6px;
    border-radius: 12px;
  }

  /* Acento por etapa (sin cambiar textos ni estructura) */
  .tree > section.card:nth-of-type(1) { --stage-accent: var(--tech-amber); }
  .tree > section.card:nth-of-type(2) { --stage-accent: var(--tech-cyan); }
  .tree > section.card:nth-of-type(3) { --stage-accent: var(--tech-blue); }
  .tree > section.card:nth-of-type(4) { --stage-accent: var(--tech-green); }
  .tree > section.card:nth-of-type(5) { --stage-accent: var(--tech-violet); }
  .tree > section.card:nth-of-type(6) { --stage-accent: var(--tech-orange); }

  .tree > section.card .label {
    padding-left: 14px;
    position: relative;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,248,251,0.96));
  }

  .tree > section.card .label::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 85%, white), var(--stage-accent));
    box-shadow: 0 0 8px color-mix(in srgb, var(--stage-accent) 35%, transparent);
  }

  .tree > section.card .label .tag {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 18%, white), color-mix(in srgb, var(--stage-accent) 12%, white));
    border-color: color-mix(in srgb, var(--stage-accent) 30%, rgba(0,0,0,0.08));
    color: #17212c;
  }

  .card:hover {
    box-shadow:
      0 22px 40px rgba(0,0,0,0.34),
      0 1px 0 rgba(255,255,255,0.9) inset,
      0 0 0 1px rgba(255,255,255,0.10),
      0 0 0 4px color-mix(in srgb, var(--stage-accent) 13%, transparent);
  }

  .card .content {
    scrollbar-gutter: stable;
  }

  textarea, input[type="text"], select {
    border-radius: 13px;
    border-color: rgba(10, 20, 36, 0.12);
    background:
      linear-gradient(180deg, #ffffff, #f9fbff);
  }

  textarea {
    background-image:
      linear-gradient(transparent 23px, rgba(0,0,0,0.03) 24px);
    background-size: 100% 24px;
  }

  textarea:focus, input[type="text"]:focus, select:focus {
    border-color: rgba(73,216,255,0.45);
    box-shadow:
      0 0 0 4px rgba(73,216,255,0.11),
      0 0 0 1px rgba(73,216,255,0.10) inset,
      inset 0 1px 2px rgba(0,0,0,0.03);
  }

  .hint {
    border-radius: 13px;
    border-color: rgba(10,20,36,0.06);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,249,252,0.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  }

  /* Resumen del problema: mantener negrilla negra, solo mejor presentación */
  .card:first-of-type .hint {
    border-left: 3px solid rgba(255,203,68,0.65);
  }
  .problem-summary {
    color: #000 !important;
    font-weight: 900 !important;
    letter-spacing: .05px;
  }

  .chip {
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.98));
    border: 1px solid rgba(10,20,36,0.10);
    box-shadow:
      0 4px 10px rgba(0,0,0,0.08),
      inset 0 1px 0 rgba(255,255,255,0.75);
  }
  .chip:hover {
    box-shadow:
      0 8px 14px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.8);
  }

  .arrow {
    position: relative;
    width: 50px;
    min-width: 50px;
  }
  .arrow::before {
    content: "";
    position: absolute;
    width: 26px; height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(81,242,143,0.22), rgba(81,242,143,0));
    filter: blur(2px);
    animation: arrowPulse 2.4s ease-in-out infinite;
    pointer-events: none;
  }
  .arrow svg {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
  }
  .arrow svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 6;
    animation: flowDash 1.8s linear infinite;
  }

  .panel {
    position: relative;
    border-radius: 20px;
    border-color: rgba(255,255,255,0.10);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.022));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 16px 30px rgba(0,0,0,0.22);
    overflow: hidden;
  }

  .panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(81,242,143,0.7), rgba(73,216,255,0.7), rgba(93,124,255,0.7));
    opacity: .85;
    pointer-events: none;
  }
  .panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image:
      radial-gradient(circle at 12px 12px, rgba(255,255,255,0.5) 0 1px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, black 0%, black 35%, transparent 100%);
  }

  .panel h2 {
    font-size: 15px;
    letter-spacing: .25px;
    padding-left: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .panel h2::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fff, var(--tech-cyan));
    box-shadow: 0 0 0 4px rgba(73,216,255,0.12), 0 0 16px rgba(73,216,255,0.16);
    flex: 0 0 auto;
  }

  .table-wrap {
    border-radius: 18px;
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
  }

  table {
    border-collapse: separate;
    border-spacing: 0;
  }

  th {
    background:
      linear-gradient(180deg, rgba(11,16,26,0.78), rgba(11,16,26,0.62));
    color: #eef4fb;
    border-bottom-color: rgba(255,255,255,0.14);
    font-weight: 800;
  }

  tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.015);
  }
  tbody tr:hover td {
    background: rgba(73,216,255,0.05);
  }

  td {
    border-bottom-color: rgba(255,255,255,0.08);
  }

  td input, td textarea {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,252,255,0.96));
    border-radius: 12px;
  }

  #catalogChecklist {
    max-height: 56vh;
    border-radius: 14px;
    padding: 4px 4px 4px 0;
    position: relative;
  }

  .check-item {
    border-radius: 15px;
    border-color: rgba(255,255,255,0.10);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.03),
      0 3px 10px rgba(0,0,0,0.08);
  }

  .check-item:hover {
    border-color: rgba(73,216,255,0.20);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 8px 14px rgba(0,0,0,0.12);
  }

  .check-item input[type="checkbox"] {
    filter: drop-shadow(0 0 6px rgba(81,242,143,0.14));
  }

  /* Scrollbars tipo consola técnica */
  #catalogChecklist::-webkit-scrollbar-thumb,
  .card .content::-webkit-scrollbar-thumb,
  .tree-wrap::-webkit-scrollbar-thumb,
  .table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(73,216,255,0.28), rgba(81,242,143,0.18));
    border-radius: 999px;
    border: 2px solid rgba(5,8,12,0);
    background-clip: padding-box;
  }

  #catalogChecklist::-webkit-scrollbar-track,
  .card .content::-webkit-scrollbar-track,
  .tree-wrap::-webkit-scrollbar-track,
  .table-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 999px;
  }

  /* Microinteracciones seguras (solo visual) */
  .footer-actions button,
  .row button {
    will-change: transform;
  }

  @keyframes pillSweep {
    0%, 75%, 100% { transform: translateX(-120%); }
    30%, 55% { transform: translateX(120%); }
  }

  @keyframes dotPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.08); }
  }

  @keyframes arrowPulse {
    0%, 100% { transform: scale(.88); opacity: .45; }
    50% { transform: scale(1.18); opacity: .85; }
  }

  @keyframes flowDash {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -42; }
  }

  @media (max-width: 1080px) {
    body::after {
      opacity: .18;
      background-position: center 12%;
      background-size: 960px auto;
    }
    header {
      position: relative; /* evita cubrir contenido en móviles compactos */
    }
    .toolbar {
      width: 100%;
    }
    .toolbar::after {
      opacity: .55;
    }
  }

  @supports not (color: color-mix(in srgb, red, white)) {
    .tree > section.card .label::before { background: rgba(82,240,122,0.75); box-shadow: none; }
    .tree > section.card .label .tag { background: rgba(82,240,122,0.14); border-color: rgba(82,240,122,0.28); }
    .card:hover { box-shadow: 0 22px 40px rgba(0,0,0,0.34), 0 1px 0 rgba(255,255,255,0.9) inset, 0 0 0 1px rgba(255,255,255,0.10), 0 0 0 4px rgba(82,240,122,0.10); }
  }
}


/* === Ajuste visual v14 (SOLO UI) ===
   Solicitud: quitar tono gris de botones secundarios, manteniendo funcionalidad intacta. */
@media screen {
  button:not(.primary):not(.danger),
  .btn {
    border-color: rgba(73,216,255,0.24);
    background: linear-gradient(180deg, rgba(73,216,255,0.14), rgba(93,124,255,0.08));
    color: #eef6ff;
    box-shadow:
      0 4px 12px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 0 0 1px rgba(73,216,255,0.05);
  }

  button:not(.primary):not(.danger):hover,
  .btn:hover {
    background: linear-gradient(180deg, rgba(73,216,255,0.20), rgba(93,124,255,0.12));
    border-color: rgba(73,216,255,0.34);
  }

  /* Mantener chips internos (botón X) sin cambiar su apariencia compacta */
  .chip button {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
  }
}


/* === Ajuste visual v15 (SOLO UI, sin cambios funcionales) ===
   Solicitud: texto negro en botón "Sugerir causas comunes" y convertir ciertos hints en texto blanco sin forma de botón. */
@media screen {
  /* 1) Botón "Sugerir causas comunes" con fuente negra */
  #btnSugerirCausas,
  #btnSugerirCausas:hover,
  #btnSugerirCausas:active,
  #btnSugerirCausas:focus,
  #btnSugerirCausas:disabled {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
  }

  /* 2) Frases/etiquetas solicitadas: quitar apariencia de botón/caja y dejar texto blanco */
  .hint:has(.txt-white-target) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
  }
  .hint:has(.txt-white-target) .txt-white-target,
  .hint:has(.txt-white-target) strong,
  .hint:has(.txt-white-target) span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
  }

  /* Nota dinámica del catálogo: "Mostrando hasta ..." (creada por JS) */
  #catalogChecklist > .hint:first-child {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 2px 4px 2px !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Mantener legibilidad en la línea superior del catálogo (dos frases seguidas) */
  .panel .row > .hint:has(.txt-white-target) {
    line-height: 1.35;
  }
}


/* v16 - Botón "Borrar" por tarjeta de causas raíz (solo UI) */
.card .label .label-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.card .label .mini-clear {
  appearance: none;
  border: 1px solid rgba(220, 76, 76, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,253,0.96));
  color: #1c2430;
  font: inherit;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.card .label .mini-clear:hover {
  border-color: rgba(220, 76, 76, 0.42);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.card .label .mini-clear:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12) inset;
}
.card .label .mini-clear:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(220,76,76,0.16),
    0 2px 6px rgba(0,0,0,0.08);
}



/* =========================================================
   REPORTE PDF (Formato Carta) — SOLO impresión (@media print)
   - No afecta lógica/funcionalidad; solo presentación de impresión
   ========================================================= */

#printReport { display: none; }

/* Estilos del reporte (estructura base; se activa en impresión) */
#printReport .print-title { font-weight: 900; letter-spacing: .2px; }
#printReport .print-subtitle { color: #444; }
#printReport .pr-section > h2 {
  background: #f1f1f1;
  border-left: 5pt solid #111;
  padding: 5pt 7pt;
  border-radius: 6pt;
}
#printReport .pr-section > h2 + .pr-grid,
#printReport .pr-section > h2 + .pr-note,
#printReport .pr-section > h2 + p { margin-top: 0; }
#printReport .pr-thead-section th {
  background: #e8e8e8;
  font-weight: 900;
  text-align: left;
  font-size: 11pt;
}
#printReport h2 { margin: 0 0 6pt 0; font-size: 12.5pt; }
#printReport h3 { margin: 0 0 5pt 0; font-size: 10.8pt; }
#printReport .pr-note { margin: 0 0 6pt 0; color: #333; font-size: 10pt; }
#printReport .pr-bullets { margin: 6pt 0 0 18pt; padding: 0; }
#printReport .pr-bullets li { margin: 0 0 4pt 0; }

#printReport .pr-section { margin: 0 0 8pt 0; }
#printReport .pr-note.pr-tight { margin: 0 0 4pt 0; font-size: 9.6pt; }
#printReport .pr-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6pt;
}
#printReport .pr-card {
  border: 1px solid #d7d7d7;
  border-radius: 7pt;
  overflow: hidden;
  background: #fff;
}
#printReport .pr-card.pr-card-wide { grid-column: 1 / -1; }
#printReport .pr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10pt;
  padding: 5pt 7pt;
  background: #ececec;
  border-bottom: 1px solid #d7d7d7;
}
#printReport .pr-card-head .t { font-weight: 900; font-size: 10.8pt; }
#printReport .pr-card-head .tag {
  font-weight: 900;
  font-size: 9.5pt;
  background: #111;
  color: #fff;
  padding: 2pt 6pt;
  border-radius: 999px;
}
#printReport .pr-card-body { padding: 6pt 7pt; }
#printReport .pr-kv { margin: 0 0 6pt 0; }
#printReport .pr-kv:last-child { margin-bottom: 0; }
#printReport .pr-kv .k {
  font-size: 9.3pt;
  color: #555;
  font-weight: 800;
  margin-bottom: 3pt;
}
#printReport .pr-kv .v {
  font-size: 10.5pt;
  color: #000;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}
#printReport .pr-kv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8pt 10pt;
  margin-bottom: 6pt;
}
#printReport .pr-grid.pr-grid-2 { grid-template-columns: 1fr 1fr; }
#printReport .pr-list.compact { margin: 4pt 0 0 14pt; }
#printReport .pr-list.compact li { margin: 0 0 3.5pt 0; line-height: 1.25; }


#printReport .pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8pt 10pt;
}
#printReport .pr-field .k {
  font-size: 9.5pt;
  color: #555;
  font-weight: 700;
  margin-bottom: 4pt;
}
#printReport .pr-field .v {
  font-size: 10.6pt;
  color: #000;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}
#printReport .pr-field.pr-wide { grid-column: 1 / -1; }
#printReport .pr-field .line { color: #000; }

#printReport .pr-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10pt;
}
#printReport .pr-list-box {
  border: 1px solid #d9d9d9;
  border-radius: 7pt;
  padding: 8pt;
}
#printReport .pr-list {
  margin: 6pt 0 0 16pt;
  padding: 0;
}
#printReport .pr-list li {
  margin: 0 0 6pt 0;
  line-height: 1.35;
  word-break: break-word;
}

#printReport .pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.6pt;
}
#printReport .pr-table th,
#printReport .pr-table td {
  border: 1px solid #cfcfcf;
  padding: 4pt 5pt;
  vertical-align: top;
  word-break: break-word;
}
#printReport .pr-table th {
  background: #f2f2f2;
  font-weight: 900;
}
#printReport .pr-table thead { display: table-header-group; }

/* Saltos de página */
#printReport .pr-pagebreak {
  break-before: auto;
  page-break-before: auto;
}

/* Impresión (Carta) */
@media print {
  /* Hoja Carta (8.5" x 11") y márgenes compactos */
  @page {
    size: Letter;
    size: 8.5in 11in;
    margin: 0.5cm;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  body {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Ocultar UI interactiva sin ocultar el contenedor padre del reporte */
  body > header {
    display: none !important;
  }

  body > .container {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body > .container > *:not(#printReport) {
    display: none !important;
  }

  /* Mostrar reporte */
  #printReport {
    display: block !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Encabezado y pie en flujo normal (evita escalado/desproporción) */
  #printHeader {
    position: static !important;
    padding: 0 0 4pt 0;
    border-bottom: 1px solid #d0d0d0;
    display: grid;
    grid-template-columns: 44pt 1fr;
    gap: 8pt;
    align-items: center;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #printHeader .print-logo {
    width: 34pt;
    height: 34pt;
    object-fit: contain;
    border-radius: 10pt;
  }

  #printHeader .print-title {
    font-size: 13pt;
    line-height: 1.1;
  }

  #printHeader .print-subtitle {
    font-size: 9pt;
    margin-top: 2pt;
  }

  #printHeader .print-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6pt;
    margin-top: 3pt;
    font-size: 8.6pt;
    color: #333;
  }

  #printBody {
    padding: 8pt 0 0 0; /* compacto */
  }

  #printFooter {
    position: static !important;
    height: auto !important;
    margin-top: 8pt;
    padding-top: 4pt;
    border-top: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8.6pt;
    color: #444;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Evitar cortes feos (sin forzar demasiado para ahorrar páginas) */
  .pr-card,
  .pr-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .pr-card.pr-card-wide {
    break-inside: auto;
    page-break-inside: auto;
  }
}



/* ===== Ajustes v29: selector de modo de falla más grande ===== */
#txtBuscarModo{font-size:14px; padding:9px 11px;}
#selModo{font-size:14px; line-height:1.25; padding:8px 10px;}
#selModo option{padding:4px 6px;}
#topSugeridos button.small{font-size:13px; padding:8px 10px;}


/* === Acciones de verificación y soportes === */
.verification-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-size: 11px;
  line-height: 1.4;
}

.verif-actions {
  display: grid;
  gap: 8px;
}

.verif-actions textarea {
  min-height: 64px;
}

.support-upload {
  display: grid;
  gap: 8px;
}

.support-upload .btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: #f4f7fb;
  font-weight: 700;
  cursor: pointer;
}

.support-upload .btn-upload:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
}

.support-list {
  display: grid;
  gap: 6px;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.support-pill button {
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}


.support-upload { display: grid; gap: 8px; }
.btn-upload { display: inline-flex; align-items: center; justify-content: center; padding: 7px 10px; border-radius: 8px; background: rgba(108,255,108,0.14); border: 1px solid rgba(108,255,108,0.35); color: #000; font-weight: 700; cursor: pointer; max-width: 130px; }
.support-list { display: flex; flex-wrap: wrap; gap: 6px; }
.support-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); max-width: 100%; }
.support-link { background: transparent !important; border: none !important; color: #fff !important; padding: 0 !important; text-decoration: underline; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-remove { background: transparent !important; border: none !important; color: #fff !important; padding: 0 4px !important; font-weight: 800; }
.support-link:hover, .support-remove:hover { opacity: 0.85; }


/* Gestión documental del caso */
.case-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap:14px;
  margin-top:14px;
}
.case-grid label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#fff;
  font-weight:700;
}
.case-grid input{
  width:100%;
}
.doc-path-box{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color:#fff;
  display:grid;
  gap:6px;
}
.doc-status{
  display:flex;
  align-items:center;
  gap:8px;
}
.support-upload{
  display:grid;
  gap:8px;
}
.support-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.support-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(108,255,108,0.12);
  border:1px solid rgba(108,255,108,0.35);
  max-width:100%;
}
.support-link{
  background:transparent;
  border:none;
  color:#d9ffd9;
  font-weight:700;
  cursor:pointer;
  text-decoration:underline;
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.support-remove{
  width:24px;
  height:24px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color:#fff;
  cursor:pointer;
}
.btn-upload[disabled], .support-file-input[disabled] + *{
  opacity:.55;
}
.support-loading{
  color:#fff;
  font-size:12px;
  opacity:.8;
}
@media (max-width: 900px){
  .case-grid{
    grid-template-columns: 1fr;
  }
}


.panel h2 { color: var(--icon-yellow); }
.panel-diagrama-title { background: transparent; border: none; padding: 0; margin-bottom: -4px; }
.panel-diagrama-title h2 { margin: 0; color: var(--icon-yellow); }
#btnInitCase { color:#fff !important; -webkit-text-fill-color:#fff !important; }
.support-list .hint, .support-empty { color: #fff !important; }
.case-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:14px;margin-top:14px;}
.case-grid label{display:flex;flex-direction:column;gap:8px;color:#fff;font-weight:700;}
.case-grid input{width:100%;}
.doc-path-box{margin-top:14px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,0.14);background: rgba(255,255,255,0.05);color:#fff;display:grid;gap:6px;}
.doc-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.verif-actions{display:grid;gap:8px;}
.verif-actions textarea{min-height:64px;}
.support-upload{display:grid;gap:8px;}
.btn-upload{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:8px;background: rgba(108,255,108,0.14);border: 1px solid rgba(108,255,108,0.35);color:#000;font-weight:700;cursor:pointer;max-width:130px;}
.support-list{display:flex;flex-wrap:wrap;gap:8px;}
.support-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background: rgba(108,255,108,0.12);border:1px solid rgba(108,255,108,0.35);max-width:100%;}
.support-link{background:transparent !important;border:none !important;color:#d9ffd9 !important;padding:0 !important;text-decoration:underline;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;}
.support-remove{background:transparent !important;border:none !important;color:#fff !important;padding:0 4px !important;font-weight:800;}
@media (max-width:900px){.case-grid{grid-template-columns:1fr;}}
@media print { #printReport{display:block !important;} }


/* Ajuste v49: soportes vacíos y autofill con fondo verde y letra blanca */
.support-empty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:8px;
  background: rgba(108,255,108,0.14);
  border:1px solid rgba(108,255,108,0.35);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:700;
}
#btnInitCase,
#btnAutofillCase{
  border-color: rgba(108,255,108,0.55) !important;
  background: linear-gradient(180deg, rgba(81,242,143,0.55), rgba(81,242,143,0.25)) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow: 0 8px 18px rgba(81,242,143,0.18), inset 0 1px 0 rgba(255,255,255,0.16);
}
#btnInitCase:hover,
#btnAutofillCase:hover{
  box-shadow: 0 12px 22px rgba(81,242,143,0.22), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(81,242,143,0.20);
}


/* UI hidden in v64 without affecting JS hooks */
#selDetalle,
#btnAplicarPlantilla {
  display: none !important;
}


/* Ocultar nota informativa del checklist sin afectar la funcionalidad */
#catalogChecklist > .hint:first-child { display:none !important; }

/* ===== Ajuste v73: tarjeta 2/6 más compacta, sin cambios funcionales ===== */
@media screen {
  .tree > section.card:nth-of-type(2) .content > .row {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: stretch;
  }

  .tree > section.card:nth-of-type(2) .content > .row #btnDetectModo,
  .tree > section.card:nth-of-type(2) .content > .row #btnSugerirCausas {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 7px;
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .tree > section.card:nth-of-type(2) #topSugeridos,
  .tree > section.card:nth-of-type(2) #topSugeridos * {
    font-size: 11px;
    line-height: 1.2;
  }

  .tree > section.card:nth-of-type(2) #topSugeridos button.small {
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.15;
  }
}


/* Ajuste v75: filas manuales para verificación y plan */
.manual-row-stack{
  display:grid;
  gap:8px;
  min-width:140px;
}
.manual-row-stack button{
  width:fit-content;
}
.manual-row-select,
.manual-row-input{
  width:100%;
  min-width:0;
}

/* ---- Control Room overrides integradas ---- */

/*
  EJEMPLO 1: CONTROL ROOM INDUSTRIAL
  Línea visual recomendada: técnica, robusta y corporativa.
*/

body.theme-control-room {
  --bg: #09131f;
  --card: #eff5fb;
  --accent: #37a6ff;
  --muted: #9fb0c7;
  --text: #102134;
  --shadow: rgba(0,0,0,0.34);
  --danger: #ff6b6b;
  --warn: #ffbf47;
  --ok: #35d07f;
  --icon-yellow: #ffb020;
  --tech-cyan: #4fd5ff;
  --tech-blue: #2f7fff;
  --tech-green: #35d07f;
  --tech-violet: #9c7dff;
  --tech-orange: #ffb020;
  --tech-amber: #ffd166;
  background:
    radial-gradient(circle at top left, rgba(62,130,196,0.20), transparent 28%),
    radial-gradient(circle at top right, rgba(52,120,255,0.14), transparent 24%),
    linear-gradient(180deg, #07111c 0%, #0b1726 38%, #0e1d30 100%);
  color: #e9f2ff;
}

body.theme-control-room header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,17,28,0.94), rgba(10,22,36,0.88)) !important;
  border-bottom: 1px solid rgba(79,213,255,0.18) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

body.theme-control-room header .title h1 {
  font-size: 22px !important;
  letter-spacing: .2px;
}

body.theme-control-room .header-icon {
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,255,255,0.08);
}

body.theme-control-room .toolbar,
body.theme-control-room #selDetalle {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 18px !important;
}

body.theme-control-room button,
body.theme-control-room .btn,
body.theme-control-room #selDetalle {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  border-color: rgba(110,158,206,0.22) !important;
  color: #e7f2ff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

body.theme-control-room button.primary,
body.theme-control-room #btnDetectEquipo,
body.theme-control-room .btn-upload,
body.theme-control-room #btnInitCase,
body.theme-control-room #btnAutofillCase {
  background: linear-gradient(180deg, #51b8ff, #1f7fdf) !important;
  border-color: rgba(112,195,255,0.72) !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  box-shadow: 0 10px 22px rgba(31,127,223,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

body.theme-control-room button.danger {
  background: linear-gradient(180deg, rgba(255,107,107,0.20), rgba(255,107,107,0.10)) !important;
  border-color: rgba(255,107,107,0.42) !important;
}

body.theme-control-room .row > .pill,
body.theme-control-room .pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(111,167,221,0.18) !important;
  color: #d7e5f7 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

body.theme-control-room .pill strong { color: #ffffff; }
body.theme-control-room .pill .dot { background: #59b7ff !important; }
body.theme-control-room .pill.ok .dot { background: #3dd68a !important; }
body.theme-control-room .pill.bad .dot { background: #ff6b6b !important; }

body.theme-control-room .panel,
body.theme-control-room .tree-wrap {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03)) !important;
  border: 1px solid rgba(109,166,219,0.14) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.05);
}

body.theme-control-room .panel h2,
body.theme-control-room .panel-diagrama-title h2 {
  color: #ffb020 !important;
  letter-spacing: .3px;
}

body.theme-control-room .tree-wrap::before {
  opacity: .16;
  background-image:
    linear-gradient(90deg, rgba(79,213,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(79,213,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.theme-control-room .card {
  border-radius: 18px !important;
  min-width: 260px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%) !important;
  border: 1px solid rgba(22,49,78,0.08) !important;
  box-shadow: 0 18px 36px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.88) !important;
}

body.theme-control-room .card .label {
  min-height: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,247,255,0.96)) !important;
}

body.theme-control-room .card .label > span:first-child {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .85px;
  color: #17314b;
}

body.theme-control-room .tree > section.card .label .tag {
  font-weight: 800;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

body.theme-control-room .arrow svg path {
  stroke: #4fd5ff !important;
  filter: drop-shadow(0 0 5px rgba(79,213,255,0.18));
}

body.theme-control-room textarea,
body.theme-control-room input[type="text"],
body.theme-control-room input[type="date"],
body.theme-control-room select {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  border: 1px solid rgba(22,49,78,0.12) !important;
  color: #112235 !important;
}

body.theme-control-room textarea:focus,
body.theme-control-room input[type="text"]:focus,
body.theme-control-room input[type="date"]:focus,
body.theme-control-room select:focus {
  border-color: rgba(63,165,255,0.58) !important;
  box-shadow: 0 0 0 4px rgba(63,165,255,0.12) !important;
}

body.theme-control-room .hint {
  background: linear-gradient(180deg, #ffffff, #f5f9fd) !important;
  border: 1px solid rgba(20,46,74,0.08) !important;
  color: #17314b !important;
}

body.theme-control-room .chips .chip,
body.theme-control-room .support-pill {
  background: linear-gradient(180deg, #ffffff, #eff5fb) !important;
  border: 1px solid rgba(24,54,87,0.12) !important;
  color: #17314b !important;
}

body.theme-control-room .support-link { color: #145ea8 !important; }
body.theme-control-room .support-remove { color: #17314b !important; }

body.theme-control-room .table-wrap {
  border: 1px solid rgba(109,166,219,0.16) !important;
  background: rgba(8,17,27,0.26) !important;
}

body.theme-control-room table {
  background: linear-gradient(180deg, rgba(247,251,255,0.98), rgba(240,246,252,0.98)) !important;
  color: #13263a !important;
}

body.theme-control-room thead th {
  background: linear-gradient(180deg, #163556, #102945) !important;
  color: #eef6ff !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

body.theme-control-room tbody tr:nth-child(even) td {
  background: rgba(25,63,103,0.03) !important;
}

body.theme-control-room tbody tr:hover td {
  background: rgba(63,165,255,0.08) !important;
}

body.theme-control-room .support-empty,
body.theme-control-room .support-list .hint {
  background: linear-gradient(180deg, rgba(63,165,255,0.14), rgba(63,165,255,0.08)) !important;
  border-color: rgba(63,165,255,0.24) !important;
  color: #17314b !important;
}

body.theme-control-room #printReport {
  background: #ffffff;
}


/* Ajuste solicitado: tarjeta 2/6 contenida dentro de bordes + textos guía blancos sobre el fondo */
body.theme-control-room .tree > section.card:nth-of-type(2) .content,
body.theme-control-room .tree > section.card:nth-of-type(2) .content > *,
body.theme-control-room .tree > section.card:nth-of-type(2) .split,
body.theme-control-room .tree > section.card:nth-of-type(2) .split > *,
body.theme-control-room .tree > section.card:nth-of-type(2) .hint,
body.theme-control-room .tree > section.card:nth-of-type(2) #topSugeridos,
body.theme-control-room .tree > section.card:nth-of-type(2) #topSugeridos > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.theme-control-room .tree > section.card:nth-of-type(2) .content {
  overflow-x: hidden !important;
}

body.theme-control-room .tree > section.card:nth-of-type(2) .content > .row {
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

body.theme-control-room .tree > section.card:nth-of-type(2) .content > .row > button {
  flex: 1 1 140px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

body.theme-control-room .tree > section.card:nth-of-type(2) #txtBuscarModo,
body.theme-control-room .tree > section.card:nth-of-type(2) #selModo,
body.theme-control-room .tree > section.card:nth-of-type(2) #selEquipo {
  width: 100% !important;
  max-width: 100% !important;
}

body.theme-control-room .tree > section.card:nth-of-type(2) .hint,
body.theme-control-room .tree > section.card:nth-of-type(2) #topSugeridos > * {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body.theme-control-room .hint:has(.txt-white-target),
body.theme-control-room #catalogChecklist > .hint:first-child {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #e9f2ff !important;
  -webkit-text-fill-color: #e9f2ff !important;
}

body.theme-control-room .hint:has(.txt-white-target) .txt-white-target,
body.theme-control-room .hint:has(.txt-white-target) strong,
body.theme-control-room .hint:has(.txt-white-target) span,
body.theme-control-room #catalogChecklist > .hint:first-child {
  color: #e9f2ff !important;
  -webkit-text-fill-color: #e9f2ff !important;
  text-shadow: none !important;
}

body.theme-control-room .txt-white-target {
  color: #e9f2ff !important;
  -webkit-text-fill-color: #e9f2ff !important;
}


/* Ajuste solicitado v3: texto negro en botones Quitar y Borrar */
body.theme-control-room .mini-clear,
body.theme-control-room button.danger,
body.theme-control-room .btn-remove-verification-row,
body.theme-control-room .btn-remove-plan-row {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}


/* Ajuste solicitado v4: impresión y colores sin cambiar funcionalidad */
body.theme-control-room #btnClearSession,
body.theme-control-room #btnLimpiarSeleccion,
body.theme-control-room #btnClearPlan {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-control-room .support-empty,
body.theme-control-room .support-list .hint.support-empty {
  color: #12395f !important;
  -webkit-text-fill-color: #12395f !important;
}

/* Mantener Quitar/Borrar en negro, excepto los 3 botones específicos solicitados */
body.theme-control-room .mini-clear,
body.theme-control-room button.danger,
body.theme-control-room .btn-remove-verification-row,
body.theme-control-room .btn-remove-plan-row {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

body.theme-control-room #btnClearSession,
body.theme-control-room #btnLimpiarSeleccion,
body.theme-control-room #btnClearPlan {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* === Ajuste solicitado 2026-03-19 (solo UI, sin cambios funcionales) === */
@media screen {
  /* X negras en las tarjetas/chips de sugerencias */
  .chip button,
  .chip button:hover,
  .chip button:active,
  .chip button:focus {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
  }

}


/* =====================
   RCA-R Monetización
   Panel comercial
   ===================== */
.pricing-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(108,255,108,0.08));
}
.pricing-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid rgba(108,255,108,0.20);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
}
.pricing-copy {
  flex: 1 1 520px;
}
.pricing-copy h3 {
  margin: 8px 0 8px;
  font-size: 26px;
  line-height: 1.15;
  color: #ffffff;
}
.pricing-copy h3 span {
  color: var(--accent);
}
.pricing-copy p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.5;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108,255,108,0.15);
  border: 1px solid rgba(108,255,108,0.30);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
}
.pricing-watermark {
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 360px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(108,255,108,0.28);
  background: linear-gradient(135deg, rgba(108,255,108,0.16), rgba(255,255,255,0.08));
  box-shadow: 0 12px 24px rgba(0,0,0,0.24);
  transform: rotate(-4deg);
}
.pricing-watermark-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pricing-watermark-main {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
}
.pricing-watermark-sub {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.pricing-watermark-cta {
  color: #000000;
  background: var(--accent);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 6px 14px rgba(108,255,108,0.22);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 16px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.20);
}
.pricing-card.featured {
  border-color: rgba(108,255,108,0.50);
  background: linear-gradient(180deg, rgba(108,255,108,0.10), rgba(255,255,255,0.05));
}
.plan-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108,255,108,0.15);
  border: 1px solid rgba(108,255,108,0.28);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.plan-tag.premium {
  background: rgba(255,210,77,0.16);
  border-color: rgba(255,210,77,0.35);
}
.price {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  color: #ffffff;
}
.price small {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.pricing-card ul {
  margin: 0 0 16px 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.pricing-card li {
  line-height: 1.4;
  color: rgba(255,255,255,0.90);
}
.pricing-btn {
  width: 100%;
}
.pricing-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}
@media (max-width: 700px) {
  .pricing-copy h3 {
    font-size: 22px;
  }
  .pricing-watermark {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    transform: none;
  }
  .pricing-watermark-main {
    font-size: 24px;
  }
}


/* ===== RCA-R v3 | monetización operativa ===== */
#btnSave,
#btnPrint {
  display: none !important;
}

.premium-config {
  margin: 0 0 14px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display: none;
  gap: 10px;
}
.premium-config.is-open {
  display: grid;
}
.premium-config label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}
.premium-config input[type="text"],
.premium-config input[type="file"] {
  width: 100%;
}
#premiumLogoInput {
  display: block !important;
  background: rgba(255,255,255,0.9);
  color: #000;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 8px;
}
.premium-logo-status {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

#printReport {
  position: relative;
}
#prWatermark {
  display: none;
}

@media print {
  #printReport {
    position: relative;
  }
  #prWatermark {
    display: block;
    position: fixed;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-28deg);
    font-size: 34pt;
    font-weight: 900;
    letter-spacing: 3pt;
    color: rgba(0,0,0,0.08);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
  }
  #printHeader,
  #printBody,
  #printFooter {
    position: relative;
    z-index: 1;
  }
}


/* =====================
   RCA-R Monetización v6
   Oculta indicadores visuales sin afectar funcionalidad
   ===================== */
#pillCatalog,
#pillSession,
#pillCaseServer {
  display: none !important;
}


/* =====================
   RCA-R Monetización v7
   Ajustes de encabezado y textos visibles
   ===================== */
.header-claim-wrap {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 560px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(89,183,255,0.10), rgba(108,255,108,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.18);
  padding: 10px 0;
}
.header-claim-track {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  padding-left: 100%;
  animation: headerClaimMove 18s linear infinite;
}
.header-claim-track span {
  display: inline-block;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
@keyframes headerClaimMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 1080px) {
  .header-claim-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-claim-track {
    animation: none !important;
    padding-left: 0;
    display: block;
    white-space: normal;
    text-align: center;
  }
}


/* =====================
   RCA-R Monetización v8
   Header centrado + ocultar visual de sesión
   ===================== */
.hidden-session-ui {
  display: none !important;
}

header {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.header-center-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.normative-marquee {
  position: relative;
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(90deg, rgba(255,255,255,0.07), rgba(108,255,108,0.12), rgba(255,255,255,0.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.18);
  padding: 10px 0;
}

.normative-marquee span {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  animation: normativeTicker 18s linear infinite;
}

@keyframes normativeTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.header-right {
  justify-self: end;
}

.header-right .toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-right .toolbar > *:not(#btnReset) {
  display: none !important;
}

@media (max-width: 980px) {
  header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .title,
  .header-center-message,
  .header-right {
    width: 100%;
    justify-self: stretch;
  }

  .header-right {
    display: flex;
    justify-content: center;
  }

  .header-right .toolbar {
    justify-content: center;
  }

  .normative-marquee {
    max-width: 100%;
  }

  .normative-marquee span {
    font-size: 12px;
  }
}


/* =====================
   RCA-R Monetización v9
   Solo texto central + verde neón
   ===================== */
.header-claim-wrap,
.header-claim-track {
  display: none !important;
}

.normative-marquee {
  border: 1px solid rgba(108,255,108,0.35) !important;
  background: linear-gradient(90deg, rgba(108,255,108,0.10), rgba(108,255,108,0.18), rgba(108,255,108,0.10)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 14px rgba(108,255,108,0.18), 0 6px 18px rgba(0,0,0,0.18) !important;
}

.normative-marquee span {
  color: #6CFF6C !important;
  text-shadow: 0 0 6px rgba(108,255,108,0.55), 0 0 16px rgba(108,255,108,0.22);
  font-weight: 900 !important;
}


/* =====================
   RCA-R Monetización v10
   Header centrado sin texto móvil
   ===================== */
.header-center-message,
.normative-marquee,
.header-claim-wrap,
.header-claim-track {
  display: none !important;
}

header {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.header-main-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.header-main-center .title {
  min-width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-main-center .title h1 {
  text-align: center;
}

.header-main-center .header-icon {
  width: 3cm;
  height: 3cm;
  flex: 0 0 auto;
}

.header-right {
  justify-self: end;
}

.header-right .toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-right .toolbar > *:not(#btnReset) {
  display: none !important;
}

@media (max-width: 980px) {
  header {
    grid-template-columns: 1fr;
  }

  .header-main-center {
    flex-direction: column;
    gap: 10px;
  }

  .header-right {
    justify-self: center;
  }

  .header-right .toolbar {
    justify-content: center;
  }
}


/* =====================
   RCA-R Monetización v11
   Título lateral + mensaje intermitente al centro
   ===================== */
.header-main-center,
.normative-marquee,
.header-claim-wrap,
.header-claim-track {
  display: none !important;
}

header {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.title {
  min-width: 280px;
}

.title h1 {
  text-align: left !important;
}

.header-center-message {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.center-flash-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(108,255,108,0.35);
  background: linear-gradient(90deg, rgba(108,255,108,0.10), rgba(255,255,255,0.04), rgba(108,255,108,0.10));
  color: #6CFF6C;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 0 14px rgba(108,255,108,0.18), 0 6px 16px rgba(0,0,0,0.16);
  animation: flashCenterMessage 1.2s ease-in-out infinite;
}

@keyframes flashCenterMessage {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 6px rgba(108,255,108,0.50), 0 0 16px rgba(108,255,108,0.25);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.02);
    text-shadow: 0 0 14px rgba(108,255,108,0.80), 0 0 28px rgba(108,255,108,0.35);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-right .toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-right .toolbar > *:not(#btnReset) {
  display: none !important;
}

.header-right .header-icon {
  width: 3cm;
  height: 3cm;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  header {
    grid-template-columns: 1fr;
  }

  .title,
  .header-center-message,
  .header-right {
    width: 100%;
    justify-self: stretch;
  }

  .title h1 {
    text-align: center !important;
  }

  .header-right {
    justify-content: center;
  }

  .header-right .toolbar {
    justify-content: center;
  }

  .center-flash-message {
    width: 100%;
    font-size: 14px;
  }
}


/* =====================
   RCA-R Monetización v12
   Título principal más grande
   ===================== */
header .title h1 .app-title-main,
header .title h1 .app-title-num {
  font-size: 48px !important;
  line-height: 1 !important;
}

header .title h1 .app-title-sub {
  font-size: 26px !important;
  line-height: 1.05 !important;
  margin-left: 8px !important;
}

@media (max-width: 980px) {
  header .title h1 .app-title-main,
  header .title h1 .app-title-num {
    font-size: 40px !important;
  }

  header .title h1 .app-title-sub {
    font-size: 22px !important;
  }
}


/* =====================
   RCA-R Monetización v13
   Catálogo oculto hasta seleccionar plantilla
   ===================== */
.checklist-hidden {
  display: none !important;
}

.catalog-locked-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

#catalogChecklistSection {
  display: block;
}


/* =====================
   RCA-R Monetización v14
   Contadores de hallazgos y limpieza del catálogo
   ===================== */
.cause-counters-inline {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.cause-counters-inline .counter-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cause-counters-inline .counter-item {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.25;
  color: #222;
}

.cause-counters-inline .counter-item strong {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .cause-counters-inline .counter-box {
    grid-template-columns: 1fr;
  }
}


/* =====================
   RCA-R Monetización v15
   Contadores junto a Equipo y Modo
   ===================== */
.pill-group {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-side-counters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 620px;
}

.pill-side-counters .counter-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.pill-side-counters .counter-mini strong {
  font-size: 12px;
  font-weight: 900;
  color: #6CFF6C;
}

.cause-counters-inline {
  display: none !important;
}

@media (max-width: 980px) {
  .pill-group {
    width: 100%;
  }

  .pill-side-counters {
    width: 100%;
  }
}


/* =====================
   RCA-R Monetización v16
   Estado único: Equipo, Modo, FC, CRF, CRH, CRL
   ===================== */
.status-row-rca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill-group,
.pill-side-counters {
  display: none !important;
}

.metric-pill {
  min-width: 84px;
  justify-content: center;
}

.metric-pill strong {
  color: #6CFF6C;
}


/* =====================
   RCA-R Monetización v17
   Desplazamiento horizontal por puntero sobre tarjetas
   ===================== */
.tree-wrap.pointer-scroll-active {
  cursor: ew-resize;
}

.tree-wrap {
  scroll-behavior: auto;
}


/* RCA-R Monetización v23 | Base visual v19 + color de letra en verificación y plan */
#verificationBody input,
#verificationBody textarea,
#planBody input,
#planBody textarea {
  color: #0b255d !important;
  font-weight: 700;
}

#verificationBody input::placeholder,
#verificationBody textarea::placeholder,
#planBody input::placeholder,
#planBody textarea::placeholder {
  color: rgba(11,37,93,0.55) !important;
}


/* =====================
   RCA-R Monetización v24
   Ajuste texto central y botón sugerir causas
   ===================== */
#btnSugerirCausas {
  border-color: rgba(108,255,108,0.55) !important;
  background: rgba(108,255,108,0.14) !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

#btnSugerirCausas:hover,
#btnSugerirCausas:active,
#btnSugerirCausas:focus,
#btnSugerirCausas:disabled {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}


/* =====================
   RCA-R Monetización v26
   Ajustes de PDF
   - Oculta Nivel de detalle y Catálogo en encabezado impreso
   - 6 tarjetas iguales en 2 columnas x 3 filas
   ===================== */
#printReport .print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6pt 10pt;
}

#printReport .pr-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 8pt;
  align-items: stretch;
}

#printReport .pr-card.pr-card-wide {
  grid-column: auto !important;
}

#printReport .pr-card.pr-card-equal,
#printReport .pr-card {
  min-height: 160pt;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#printReport .pr-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#printReport .pr-card-body .pr-list.compact {
  margin-top: 0;
}

#printReport .pr-card-body .pr-kv:last-child,
#printReport .pr-card-body .pr-kv-row:last-child {
  margin-bottom: 0;
}

@media print {
  #printReport .pr-card-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 1fr !important;
    gap: 8pt !important;
  }

  #printReport .pr-card.pr-card-wide {
    grid-column: auto !important;
  }

  #printReport .pr-card.pr-card-equal,
  #printReport .pr-card {
    min-height: 160pt !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #printReport .pr-card-body {
    flex: 1 1 auto !important;
  }
}


/* =====================
   RCA-R Monetización v27
   Mostrar solo columnas esenciales en tablas
   ===================== */
#verificationTable th:nth-child(n+4),
#verificationTable td:nth-child(n+4),
#planTable th:nth-child(n+4),
#planTable td:nth-child(n+4) {
  display: none !important;
}

#verificationTable th:nth-child(1),
#verificationTable td:nth-child(1),
#planTable th:nth-child(1),
#planTable td:nth-child(1) {
  width: 16%;
}

#verificationTable th:nth-child(2),
#verificationTable td:nth-child(2),
#planTable th:nth-child(2),
#planTable td:nth-child(2) {
  width: 28%;
}

#verificationTable th:nth-child(3),
#verificationTable td:nth-child(3),
#planTable th:nth-child(3),
#planTable td:nth-child(3) {
  width: 56%;
}

#verificationTable td,
#planTable td {
  vertical-align: top;
}


/* =====================
   RCA-R Monetización v28
   Ajuste estético de tablas visibles y PDF de 3 columnas
   ===================== */
#verificationTable,
#planTable {
  table-layout: fixed;
}

#verificationTable th:nth-child(1),
#verificationTable td:nth-child(1),
#planTable th:nth-child(1),
#planTable td:nth-child(1) {
  width: 18% !important;
}

#verificationTable th:nth-child(2),
#verificationTable td:nth-child(2),
#planTable th:nth-child(2),
#planTable td:nth-child(2) {
  width: 30% !important;
}

#verificationTable th:nth-child(3),
#verificationTable td:nth-child(3),
#planTable th:nth-child(3),
#planTable td:nth-child(3) {
  width: 52% !important;
}

#verificationTable th,
#planTable th {
  font-size: 13px !important;
}

#verificationTable td,
#planTable td {
  font-size: 13px !important;
  line-height: 1.4;
}

#verificationTable td textarea,
#verificationTable td input,
#planTable td textarea,
#planTable td input {
  font-size: 13px !important;
  line-height: 1.4;
}

#printReport .pr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#printReport .pr-table thead th,
#printReport .pr-table tbody td {
  font-size: 10pt;
  line-height: 1.35;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(1),
#printReport .pr-table tbody tr td:nth-child(1) {
  width: 18% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(2),
#printReport .pr-table tbody tr td:nth-child(2) {
  width: 30% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(3),
#printReport .pr-table tbody tr td:nth-child(3) {
  width: 52% !important;
}

@media print {
  #verificationTable th:nth-child(n+4),
  #verificationTable td:nth-child(n+4),
  #planTable th:nth-child(n+4),
  #planTable td:nth-child(n+4) {
    display: none !important;
  }

  #printReport .pr-table thead th,
  #printReport .pr-table tbody td {
    font-size: 9.8pt !important;
    line-height: 1.32 !important;
  }
}


/* =====================
   RCA-R Monetización v29
   Simetría entre tablas y nuevos títulos
   ===================== */
#verificationTable,
#planTable {
  table-layout: fixed !important;
  width: 100% !important;
}

#verificationTable th:nth-child(1),
#verificationTable td:nth-child(1),
#planTable th:nth-child(1),
#planTable td:nth-child(1) {
  width: 18% !important;
  min-width: 18% !important;
  max-width: 18% !important;
}

#verificationTable th:nth-child(2),
#verificationTable td:nth-child(2),
#planTable th:nth-child(2),
#planTable td:nth-child(2) {
  width: 30% !important;
  min-width: 30% !important;
  max-width: 30% !important;
}

#verificationTable th:nth-child(3),
#verificationTable td:nth-child(3),
#planTable th:nth-child(3),
#planTable td:nth-child(3) {
  width: 52% !important;
  min-width: 52% !important;
  max-width: 52% !important;
}

#verificationTable th,
#planTable th,
#verificationTable td,
#planTable td {
  word-break: break-word;
}


/* =====================
   RCA-R Monetización v30
   Simetría exacta entre Acciones de Verificación y Acciones de Eliminación
   ===================== */
#verificationTable,
#planTable {
  table-layout: fixed !important;
  width: 100% !important;
}

#verificationTable colgroup,
#planTable colgroup {
  display: none;
}

#verificationTable thead th:nth-child(1),
#verificationTable tbody td:nth-child(1),
#planTable thead th:nth-child(1),
#planTable tbody td:nth-child(1) {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

#verificationTable thead th:nth-child(2),
#verificationTable tbody td:nth-child(2),
#planTable thead th:nth-child(2),
#planTable tbody td:nth-child(2) {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
}

#verificationTable thead th:nth-child(3),
#verificationTable tbody td:nth-child(3),
#planTable thead th:nth-child(3),
#planTable tbody td:nth-child(3) {
  width: calc(100% - 420px) !important;
  min-width: calc(100% - 420px) !important;
}

#verificationTable thead th,
#planTable thead th {
  box-sizing: border-box;
}

#verificationTable tbody td,
#planTable tbody td {
  box-sizing: border-box;
}

/* PDF con la misma lógica visual de simetría */
#printReport .pr-table {
  table-layout: fixed !important;
  width: 100% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(1),
#printReport .pr-table tbody tr td:nth-child(1) {
  width: 18% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(2),
#printReport .pr-table tbody tr td:nth-child(2) {
  width: 30% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(3),
#printReport .pr-table tbody tr td:nth-child(3) {
  width: 52% !important;
}


/* =====================
   RCA-R Monetización v31
   Distribución visual mejorada de columnas
   ===================== */

/* Tablas visibles del análisis */
#verificationTable,
#planTable {
  table-layout: fixed !important;
  width: 100% !important;
}

#verificationTable thead th:nth-child(1),
#verificationTable tbody td:nth-child(1),
#planTable thead th:nth-child(1),
#planTable tbody td:nth-child(1) {
  width: 16% !important;
  min-width: 16% !important;
  max-width: 16% !important;
}

#verificationTable thead th:nth-child(2),
#verificationTable tbody td:nth-child(2),
#planTable thead th:nth-child(2),
#planTable tbody td:nth-child(2) {
  width: 29% !important;
  min-width: 29% !important;
  max-width: 29% !important;
}

#verificationTable thead th:nth-child(3),
#verificationTable tbody td:nth-child(3),
#planTable thead th:nth-child(3),
#planTable tbody td:nth-child(3) {
  width: 55% !important;
  min-width: 55% !important;
  max-width: 55% !important;
}

#verificationTable thead th,
#planTable thead th {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

#verificationTable tbody td,
#planTable tbody td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.45 !important;
}

#verificationTable tbody td:nth-child(3),
#planTable tbody td:nth-child(3) {
  padding-right: 12px !important;
}

/* PDF / impresión */
#printReport .pr-table {
  width: 100% !important;
  table-layout: fixed !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(1),
#printReport .pr-table tbody tr td:nth-child(1) {
  width: 16% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(2),
#printReport .pr-table tbody tr td:nth-child(2) {
  width: 29% !important;
}

#printReport .pr-table thead tr:not(.pr-thead-section) th:nth-child(3),
#printReport .pr-table tbody tr td:nth-child(3) {
  width: 55% !important;
}

#printReport .pr-table thead th,
#printReport .pr-table tbody td {
  padding-top: 7pt !important;
  padding-bottom: 7pt !important;
  line-height: 1.35 !important;
}


/* =====================
   RCA-R Monetización v32
   Simetría exacta entre columnas de acciones
   ===================== */
.analysis-action-table {
  table-layout: fixed !important;
  width: 100% !important;
}

.analysis-action-table col.col-tipo {
  width: 16% !important;
}

.analysis-action-table col.col-causa {
  width: 29% !important;
}

.analysis-action-table col.col-accion {
  width: 55% !important;
}

.analysis-action-table col.col-hidden {
  width: 0 !important;
}

.analysis-action-table thead th:nth-child(1),
.analysis-action-table tbody td:nth-child(1) {
  width: 16% !important;
  min-width: 16% !important;
  max-width: 16% !important;
}

.analysis-action-table thead th:nth-child(2),
.analysis-action-table tbody td:nth-child(2) {
  width: 29% !important;
  min-width: 29% !important;
  max-width: 29% !important;
}

.analysis-action-table thead th:nth-child(3),
.analysis-action-table tbody td:nth-child(3) {
  width: 55% !important;
  min-width: 55% !important;
  max-width: 55% !important;
}

.analysis-action-table thead th,
.analysis-action-table tbody td {
  box-sizing: border-box !important;
}

.analysis-action-table th:nth-child(n+4),
.analysis-action-table td:nth-child(n+4) {
  display: none !important;
}

.analysis-action-table tbody td:nth-child(3),
.analysis-action-table thead th:nth-child(3) {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.analysis-action-table tbody td:nth-child(3) textarea,
.analysis-action-table tbody td:nth-child(3) input,
.analysis-action-table tbody td:nth-child(2) textarea,
.analysis-action-table tbody td:nth-child(2) input {
  width: 100% !important;
  box-sizing: border-box !important;
}


/* =====================
   RCA-R Monetización v33
   Simetría real entre columna de verificación y eliminación
   ===================== */
.analysis-action-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.analysis-action-table col.col-tipo {
  width: 16% !important;
}

.analysis-action-table col.col-causa {
  width: 29% !important;
}

.analysis-action-table col.col-accion {
  width: 55% !important;
}

.analysis-action-table col.col-hidden {
  width: 0 !important;
  visibility: collapse !important;
}

.analysis-action-table th:nth-child(n+4),
.analysis-action-table td:nth-child(n+4) {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  display: none !important;
  visibility: collapse !important;
}

.analysis-action-table thead th:nth-child(1),
.analysis-action-table tbody td:nth-child(1) {
  width: 16% !important;
  min-width: 16% !important;
  max-width: 16% !important;
}

.analysis-action-table thead th:nth-child(2),
.analysis-action-table tbody td:nth-child(2) {
  width: 29% !important;
  min-width: 29% !important;
  max-width: 29% !important;
}

.analysis-action-table thead th:nth-child(3),
.analysis-action-table tbody td:nth-child(3) {
  width: 55% !important;
  min-width: 55% !important;
  max-width: 55% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.analysis-action-table .verif-actions {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.analysis-action-table tbody td:nth-child(3) textarea,
.analysis-action-table tbody td:nth-child(3) input {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.analysis-action-table tbody td:nth-child(3) > * {
  box-sizing: border-box !important;
}


/* =====================
   RCA-R Monetización v34
   Contenedor de acciones de verificación igual al de eliminación
   ===================== */
#verificationTable tbody td:nth-child(3),
#planTable tbody td:nth-child(3) {
  display: table-cell !important;
  vertical-align: top !important;
}

#verificationTable tbody td:nth-child(3) textarea,
#planTable tbody td:nth-child(3) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

#verificationTable tbody td:nth-child(3) textarea {
  min-height: 55px !important;
}

#verificationTable tbody td:nth-child(3),
#planTable tbody td:nth-child(3),
#verificationTable thead th:nth-child(3),
#planTable thead th:nth-child(3) {
  padding-left: 8px !important;
  padding-right: 8px !important;
}


/* =====================
   RCA-R Monetización v35
   PDF en formato carta con márgenes estrechos
   ===================== */
@page {
  size: Letter portrait;
  margin-top: 1.27cm;
  margin-bottom: 1.27cm;
  margin-left: 1.27cm;
  margin-right: 1.27cm;
}

@media print {
  html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  #printReport {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #printReport .pr-section {
    margin: 0 0 6pt 0 !important;
  }

  #printReport .pr-card-grid {
    gap: 6pt !important;
  }

  #printHeader,
  #printFooter {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* =====================
   RCA-R Monetización v39
   Ajustes solicitados:
   - Botón: Identificar Problema
   - Causas en negrilla
   - Acciones sin negrilla
   - Premium con mismo color que estándar
   ===================== */

/* Causa en negrilla: Plan de Verificación y Plan de Eliminación */
#verificationTable tbody td:nth-child(2),
#planTable tbody td:nth-child(2),
#verificationTable tbody td:nth-child(2) textarea,
#verificationTable tbody td:nth-child(2) input,
#planTable tbody td:nth-child(2) textarea,
#planTable tbody td:nth-child(2) input {
  font-weight: 800 !important;
}

/* Acciones sin negrilla */
#verificationTable tbody td:nth-child(3),
#planTable tbody td:nth-child(3),
#verificationTable tbody td:nth-child(3) textarea,
#verificationTable tbody td:nth-child(3) input,
#planTable tbody td:nth-child(3) textarea,
#planTable tbody td:nth-child(3) input {
  font-weight: 400 !important;
}

/* Tarjeta Premium con mismo color de contenedor que la estándar */
.pricing-card.premium {
  border-color: rgba(108,255,108,0.50) !important;
  background: linear-gradient(180deg, rgba(108,255,108,0.10), rgba(255,255,255,0.05)) !important;
}

.pricing-card.premium .plan-tag.premium {
  background: rgba(108,255,108,0.15) !important;
  border-color: rgba(108,255,108,0.28) !important;
  color: #ffffff !important;
}


/* =====================
   RCA-R Monetización v40
   Ajustes visuales problema y botones
   ===================== */

/* Botones de la tarjeta 1/6: pegados y del mismo tamaño */
.tree > section.card:nth-of-type(1) .content > .row {
  display: flex !important;
  gap: 6px !important;
  align-items: stretch !important;
}

#btnResumir,
#btnDetectEquipo {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

/* Contenedor del problema más grande */
.problem-summary-box {
  min-height: 96px !important;
  padding: 12px !important;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 12px;
  background: rgba(0,0,0,0.035);
  display: block;
}

/* Texto del problema más grande */
.problem-summary-box .problem-summary {
  display: block;
  margin-top: 6px;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #111111 !important;
}


/* =====================
   RCA-R Monetización v41
   Botones de tarjeta 1/6 en vertical y con tamaño visual de tarjeta 2/6
   ===================== */
.tree > section.card:nth-of-type(1) .content > .row {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: stretch !important;
}

#btnResumir,
#btnDetectEquipo {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: auto !important;
  padding: 6px 7px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  border-radius: 10px !important;
}


/* === Ajuste solicitado v44: texto Porque en tarjetas 2/6 a 6/6 === */
.card .porque-caption {
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  color: #1b2430;
  padding: 6px 10px 0;
  line-height: 1.15;
}

#printReport .pr-step-because {
  text-align: center;
  font-weight: 800;
  font-size: 9.2pt;
  color: #333;
  padding: 4pt 7pt 0;
}


/* === Ajuste solicitado v45: impresión PDF con logo mayor y título centrado === */
@media print {
  #printHeader {
    grid-template-columns: 82pt 1fr 82pt !important;
    gap: 10pt !important;
    align-items: center !important;
    padding: 0 0 8pt 0 !important;
  }

  #printHeader .ph-left,
  #printHeader .ph-spacer {
    width: 82pt !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #printHeader .ph-right {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #printHeader .print-logo {
    width: 58pt !important;
    height: 58pt !important;
    border-radius: 14pt !important;
  }

  #printHeader .print-title {
    width: 100% !important;
    text-align: center !important;
    font-size: 18pt !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: 0.2pt !important;
  }

  #printHeader .print-subtitle {
    width: 100% !important;
    text-align: center !important;
    font-size: 10pt !important;
    margin-top: 3pt !important;
  }

  #printHeader .print-meta {
    justify-content: center !important;
    font-size: 8.8pt !important;
    margin-top: 4pt !important;
  }
}


/* === v48 | Valor agregado informe premium === */
#printReport[data-report-tier="standard"] .pr-premium-only {
  display: none !important;
}

#printReport[data-report-tier="premium"] .pr-premium-only {
  display: block !important;
}

#printReport .pr-premium-summary-wrap {
  margin: 0 0 8pt 0;
}

#printReport .pr-premium-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8pt;
  margin: 0 0 8pt 0;
}

#printReport .pr-premium-duo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8pt;
}

#printReport .pr-premium-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8pt;
}

#printReport .pr-premium-stack {
  display: grid;
  gap: 8pt;
}

#printReport .pr-premium-box {
  border: 1px solid #d5dbe3;
  background: #f7f9fc;
  border-radius: 8pt;
  padding: 7pt 8pt;
  break-inside: avoid;
  page-break-inside: avoid;
}

#printReport .pr-premium-summary-box {
  width: 100%;
  padding: 10pt 12pt;
}

#printReport .pr-premium-summary-box .v {
  font-size: 10.7pt !important;
  line-height: 1.48 !important;
}

#printReport .pr-premium-highlight {
  background: #eef5ff;
  border-color: #bfcfe6;
}

#printReport .pr-premium-box .k,
#printReport .pr-signoff-box .k {
  font-size: 9pt;
  font-weight: 800;
  color: #2f4159;
  margin-bottom: 3pt;
  text-transform: uppercase;
  letter-spacing: 0.2pt;
}

#printReport .pr-premium-box .v,
#printReport .pr-signoff-box .v {
  font-size: 10pt;
  color: #111;
  line-height: 1.35;
}

#printReport .pr-premium-table thead th,
#printReport .pr-premium-table tbody td {
  font-size: 8.8pt;
}

#printReport .pr-signoff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10pt;
  margin-top: 6pt;
}

#printReport .pr-signoff-box {
  border: 1px solid #d5dbe3;
  border-radius: 8pt;
  padding: 8pt;
  background: #fafbfd;
}

#printReport .pr-signoff-box .sign-line {
  height: 26pt;
  border-bottom: 1px solid #68788a;
  margin: 4pt 0 6pt 0;
}

#printReport .pr-premium-closing-stack {
  display: grid;
  gap: 8pt;
}

@media print {
  #printReport[data-report-tier="premium"] .pr-premium-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #printReport[data-report-tier="premium"] .pr-premium-duo-grid {
    grid-template-columns: 1.35fr 1fr;
  }

  #printReport[data-report-tier="premium"] .pr-premium-triple-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #printReport[data-report-tier="premium"] .pr-consolidated-table thead th,
  #printReport[data-report-tier="premium"] .pr-consolidated-table tbody td {
    font-size: 8.2pt !important;
  }

  #printReport[data-report-tier="premium"] .pr-signoff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =====================
   RCA-R Monetización v53
   Refinamiento ejecutivo del PDF
   - Tablas más claras para impresión
   - Más aire entre secciones
   - Estética más limpia para gerencia
   - Sin alterar funcionalidad
   ===================== */

@media print {
  @page {
    size: Letter;
    margin: 0.65cm 0.7cm;
  }

  #printReport {
    color: #1c2833 !important;
    background: #ffffff !important;
  }

  #printHeader {
    border-bottom: 1px solid #d8e1ea !important;
    padding: 0 0 8pt 0 !important;
    margin-bottom: 12pt !important;
    gap: 10pt !important;
  }

  #printHeader .print-logo {
    width: 60pt !important;
    height: 60pt !important;
    border-radius: 12pt !important;
  }

  #printHeader .print-title {
    color: #1f3447 !important;
    font-size: 18.5pt !important;
    line-height: 1.14 !important;
    letter-spacing: 0.15pt !important;
  }

  #printHeader .print-subtitle {
    color: #5a6c7f !important;
    margin-top: 4pt !important;
    font-size: 10pt !important;
  }

  #printHeader .print-meta,
  #printFooter {
    color: #5a6c7f !important;
  }

  #printBody {
    display: block !important;
  }

  #printReport .pr-section {
    margin: 0 0 14pt 0 !important;
    padding-bottom: 2pt !important;
    break-inside: auto;
    page-break-inside: auto;
  }

  #printReport .pr-section > h2 {
    margin: 0 0 8pt 0 !important;
    padding: 7pt 10pt !important;
    border-radius: 9pt !important;
    border: 1px solid #d6e1ea !important;
    border-left: 5pt solid #6b89a6 !important;
    background: #edf3f8 !important;
    color: #1f3d55 !important;
    font-size: 12.7pt !important;
    line-height: 1.2 !important;
  }

  #printReport .pr-note,
  #printReport .pr-note.pr-tight {
    color: #566879 !important;
    line-height: 1.45 !important;
    margin: 0 0 8pt 0 !important;
  }

  #printReport .table-wrap {
    margin-top: 7pt !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #printReport .pr-card-grid {
    gap: 10pt !important;
  }

  #printReport .pr-card,
  #printReport .pr-list-box,
  #printReport .pr-premium-box,
  #printReport .pr-signoff-box {
    background: #fbfcfe !important;
    border: 1px solid #d9e2ea !important;
    border-radius: 9pt !important;
    box-shadow: none !important;
  }

  #printReport .pr-card-head {
    background: #f5f8fb !important;
    border-bottom: 1px solid #d9e2ea !important;
    padding: 6pt 8pt !important;
  }

  #printReport .pr-card-head .t {
    color: #20384d !important;
  }

  #printReport .pr-card-head .tag {
    background: #6b89a6 !important;
    color: #ffffff !important;
  }

  #printReport .pr-card-body {
    padding: 8pt 9pt !important;
  }

  #printReport .pr-step-because {
    background: #eef4f9 !important;
    color: #4a6782 !important;
    border-bottom: 1px solid #dbe5ee !important;
    padding: 5pt 8pt !important;
  }

  #printReport .pr-premium-summary-wrap {
    margin: 0 0 10pt 0 !important;
  }

  #printReport .pr-premium-meta-grid,
  #printReport .pr-premium-duo-grid,
  #printReport .pr-premium-triple-grid,
  #printReport .pr-premium-stack,
  #printReport .pr-signoff-grid,
  #printReport .pr-premium-closing-stack {
    gap: 10pt !important;
  }

  #printReport .pr-premium-highlight,
  #printReport .pr-premium-summary-box {
    background: #f2f7fc !important;
    border-color: #cfdbe7 !important;
  }

  #printReport .pr-premium-box .k,
  #printReport .pr-signoff-box .k,
  #printReport .pr-kv .k,
  #printReport .pr-field .k {
    color: #446078 !important;
  }

  #printReport .pr-premium-box .v,
  #printReport .pr-signoff-box .v,
  #printReport .pr-kv .v,
  #printReport .pr-field .v,
  #printReport .pr-list li,
  #printReport .pr-bullets li {
    color: #1b2732 !important;
    line-height: 1.42 !important;
  }

  #printReport .pr-premium-summary-box .v {
    font-size: 10.8pt !important;
    line-height: 1.52 !important;
  }

  #printReport .pr-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d3dde7 !important;
    border-radius: 10pt !important;
    overflow: hidden !important;
  }

  #printReport .pr-table th,
  #printReport .pr-table td {
    border: 0 !important;
    vertical-align: top !important;
  }

  #printReport .pr-table thead tr.pr-thead-section th {
    background: #eaf1f7 !important;
    color: #1f3d55 !important;
    border-bottom: 1px solid #d2dde7 !important;
    padding: 7pt 8pt !important;
    font-size: 10.8pt !important;
    font-weight: 900 !important;
  }

  #printReport .pr-table thead tr:not(.pr-thead-section) th {
    background: #f6f9fc !important;
    color: #36506a !important;
    border-bottom: 1px solid #dbe3eb !important;
    padding: 6.5pt 7pt !important;
    font-size: 9.3pt !important;
    font-weight: 800 !important;
  }

  #printReport .pr-table tbody td {
    background: #ffffff !important;
    color: #1b2732 !important;
    border-bottom: 1px solid #e3e9ef !important;
    padding: 7pt 7pt !important;
    line-height: 1.38 !important;
  }

  #printReport .pr-table tbody tr:nth-child(even) td {
    background: #fbfdff !important;
  }

  #printReport .pr-table tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  #printReport .pr-premium-table tbody td:nth-child(4) {
    color: #294962 !important;
    font-weight: 800 !important;
  }

  #printReport .pr-premium-table tbody td:nth-child(1),
  #printReport .pr-premium-table thead tr:not(.pr-thead-section) th:nth-child(1) {
    text-align: center !important;
  }

  #printReport .pr-list,
  #printReport .pr-bullets,
  #printReport .pr-card-body .pr-list.compact {
    margin-top: 6pt !important;
  }

  #printReport .pr-list li,
  #printReport .pr-bullets li {
    margin-bottom: 5pt !important;
  }

  #printReport .pr-signoff-box .sign-line {
    border-bottom: 1px solid #8193a5 !important;
    margin: 8pt 0 8pt 0 !important;
  }

  #printFooter {
    border-top: 1px solid #d8e1ea !important;
    padding-top: 6pt !important;
    margin-top: 10pt !important;
  }
}


/* === Ajuste v54 | Bloque ejecutivo del informe en formato vertical === */
#printReport .pr-premium-single-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10pt;
}

#printReport .pr-premium-single-stack .pr-premium-box {
  width: 100%;
}

#printReport .pr-premium-single-stack .pr-premium-box .v,
#printReport .pr-premium-single-stack .pr-premium-box li {
  text-align: justify;
  text-justify: inter-word;
}

@media print {
  #printReport[data-report-tier="premium"] .pr-premium-single-stack {
    grid-template-columns: 1fr !important;
    gap: 10pt !important;
  }

  #printReport .pr-premium-single-stack .pr-premium-box .v,
  #printReport .pr-premium-single-stack .pr-premium-box li {
    text-align: justify !important;
    text-justify: inter-word !important;
  }
}


/* RCA-R Monetización v57 | ajuste de borrado de causas */
.chip button,
.chip .chip-remove-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
  flex: 0 0 22px;
  position: relative;
  z-index: 3;
}

.chip .chip-remove-btn:hover,
.chip .chip-remove-btn:focus-visible {
  background: rgba(0,0,0,0.08) !important;
  outline: none;
}

.chips,
.chipbar {
  position: relative;
  z-index: 2;
}


/* RCA-R Monetización v58 | corrección robusta de borrado de causas */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip .chip-text {
  flex: 1 1 auto;
  min-width: 0;
}

.chip button,
.chip .chip-remove-btn {
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.chip .chip-remove-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  font-size: 18px;
  font-weight: 900;
}

.tree-wrap.pointer-scroll-active {
  cursor: default;
}

/* ============================================================
   RCA-R v1.0 | Branding PDF Pro para R-tools
   Solo aplica en impresión/PDF. No modifica el flujo funcional.
============================================================ */
#printReport[data-report-tier="premium"] #printHeader {
  background: #071625 !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
  border-radius: 0 0 10pt 10pt;
  padding: 7pt 9pt !important;
}
#printReport[data-report-tier="premium"] #printHeader .print-title {
  color: #ffffff !important;
}
#printReport[data-report-tier="premium"] #printHeader .print-subtitle,
#printReport[data-report-tier="premium"] #printHeader .print-meta {
  color: rgba(255,255,255,.82) !important;
}
#printReport[data-report-tier="premium"] #printHeader .print-logo {
  object-fit: contain;
  background: #ffffff;
  border-radius: 12pt;
  padding: 2pt;
}
#printReport[data-report-tier="premium"] .pr-section > h2 {
  background: #eef4ff !important;
  border-left: 6pt solid #0b5cab !important;
  color: #081827 !important;
  border-radius: 7pt;
}
#printReport[data-report-tier="premium"] .pr-table thead th {
  background: #071625 !important;
  color: #ffffff !important;
}
#printReport[data-report-tier="premium"] #printFooter {
  border-top: 1.5pt solid #0b5cab !important;
  color: #34465d !important;
  font-weight: 700;
}
@media print {
  #printReport[data-report-tier="premium"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ============================================================
   RCA-R v59 | Alineación visual con apps R-tools (solo UI)
   No modifica IDs, eventos, funciones ni flujo funcional.
============================================================ */
@media screen {
  body.rtools-shell-layout {
    min-height: 100vh;
    background:
      radial-gradient(900px 420px at 8% -12%, rgba(30, 124, 210, 0.22), transparent 60%),
      radial-gradient(760px 360px at 96% 4%, rgba(0, 180, 168, 0.16), transparent 58%),
      linear-gradient(180deg, #08111d 0%, #07101a 46%, #050b13 100%) !important;
    overflow-x: hidden;
  }

  body.rtools-shell-layout header {
    min-height: 132px;
    padding: 18px 14px !important;
    display: grid !important;
    grid-template-columns: minmax(480px, auto) minmax(320px, 1fr) auto !important;
    align-items: center !important;
    column-gap: 22px !important;
    background: #07111d !important;
    border-bottom: 1px solid rgba(76, 159, 217, 0.28) !important;
    box-shadow: 0 16px 34px rgba(0,0,0,0.30) !important;
  }

  body.rtools-shell-layout header .title {
    min-width: 0 !important;
  }

  body.rtools-shell-layout header .title h1 {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  body.rtools-shell-layout header .title h1 .app-title-main,
  body.rtools-shell-layout header .title h1 .app-title-num {
    font-size: clamp(40px, 4vw, 58px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 1px !important;
  }

  body.rtools-shell-layout header .title h1 .app-title-main {
    color: #edf5ff !important;
  }

  body.rtools-shell-layout header .title h1 .app-title-num {
    color: #ffc83d !important;
    text-shadow: 0 0 18px rgba(255, 200, 61, .16);
  }

  body.rtools-shell-layout header .title h1 .app-title-sub {
    margin-left: 12px !important;
    font-size: clamp(22px, 2vw, 32px) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #dfeaff !important;
  }

  body.rtools-shell-layout .header-center-message {
    display: flex !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  body.rtools-shell-layout .center-flash-message {
    min-width: 430px;
    max-width: 100%;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(71, 230, 101, .46) !important;
    background: linear-gradient(90deg, rgba(37, 165, 68, .18), rgba(71, 230, 101, .12), rgba(37, 165, 68, .18)) !important;
    color: #55e769 !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    text-align: center !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 0 1px rgba(71, 230, 101, .10),
      0 0 18px rgba(71, 230, 101, .28),
      0 8px 22px rgba(0,0,0,.22) !important;
  }

  body.rtools-shell-layout .header-right {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
  }

  body.rtools-shell-layout .header-right .toolbar {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.rtools-shell-layout .header-right .toolbar > *:not(#btnReset) {
    display: none !important;
  }

  body.rtools-shell-layout #btnReset {
    min-height: 48px;
    padding: 0 22px !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(121, 42, 57, .95), rgba(83, 30, 43, .95)) !important;
    border: 1px solid rgba(255, 105, 125, .40) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10) !important;
  }

  body.rtools-shell-layout .header-right .header-icon {
    width: 114px !important;
    height: 114px !important;
    padding: 12px !important;
    background: linear-gradient(180deg, #111111, #000000) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    object-fit: contain !important;
    box-shadow:
      0 14px 30px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.10),
      0 0 0 1px rgba(255,255,255,.06) !important;
  }

  body.rtools-shell-layout .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 14px 22px;
  }

  body.rtools-shell-layout .rtools-sidebar {
    position: sticky;
    top: 148px;
    align-self: start;
    min-height: 260px;
    padding: 18px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 31, 54, .96), rgba(7, 18, 32, .98));
    border: 1px solid rgba(76, 159, 217, .16);
    box-shadow: 0 18px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  }

  body.rtools-shell-layout .sidebar-title {
    margin-bottom: 16px;
    color: #f5f9ff;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.2px;
  }

  body.rtools-shell-layout .sidebar-title::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 3px;
    border-radius: 999px;
    background: #ffc83d;
    box-shadow: 0 0 10px rgba(255, 200, 61, .45);
    vertical-align: middle;
  }

  body.rtools-shell-layout .sidebar-nav {
    display: grid;
    gap: 8px;
  }

  body.rtools-shell-layout .sidebar-step {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: #d9e8fb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
  }

  body.rtools-shell-layout .sidebar-step:hover,
  body.rtools-shell-layout .sidebar-step.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(38, 94, 139, .78), rgba(0, 188, 170, .22));
    border-color: rgba(89, 183, 255, .18);
    transform: translateX(2px);
  }

  body.rtools-shell-layout .rtools-main {
    min-width: 0;
  }

  body.rtools-shell-layout .container {
    padding: 0 !important;
    gap: 14px !important;
  }

  body.rtools-shell-layout .app-intro-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 178px;
    padding: 26px 20px !important;
    border-radius: 22px;
    background:
      radial-gradient(560px 220px at 100% 0%, rgba(14, 178, 166, .19), transparent 62%),
      linear-gradient(100deg, rgba(27, 56, 95, .86), rgba(4, 51, 58, .78)) !important;
    border: 1px solid rgba(67, 172, 219, .24) !important;
    box-shadow: 0 18px 38px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.06);
  }

  body.rtools-shell-layout .intro-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }

  body.rtools-shell-layout .intro-logo {
    width: 52px;
    height: 52px;
    padding: 5px;
    flex: 0 0 auto;
    object-fit: contain;
    background: linear-gradient(180deg, #111111, #000000);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,.28);
  }

  body.rtools-shell-layout .intro-copy {
    min-width: 0;
  }

  body.rtools-shell-layout .intro-kicker {
    margin-bottom: 16px;
    color: #59b7ff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 1.2px;
  }

  body.rtools-shell-layout .intro-copy h2 {
    margin: 0 0 22px 0;
    color: #f8fbff;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.4px;
  }

  body.rtools-shell-layout .intro-title-r {
    color: #ffc83d;
  }

  body.rtools-shell-layout .intro-title-sep {
    color: #9fc9ff;
  }

  body.rtools-shell-layout .intro-copy p {
    max-width: 900px;
    margin: 0;
    color: #cfe1f8;
    font-size: 13px;
    line-height: 1.55;
  }

  body.rtools-shell-layout .intro-status-card {
    min-width: 154px;
    padding: 16px 16px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1f83d8, #12b6a4);
    box-shadow: 0 18px 34px rgba(0,0,0,.24);
    color: #ffffff;
  }

  body.rtools-shell-layout .intro-status-card strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
  }

  body.rtools-shell-layout .intro-status-card span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.86);
  }

  body.rtools-shell-layout .status-row-rca {
    margin-top: 0 !important;
  }

  body.rtools-shell-layout .panel,
  body.rtools-shell-layout .tree-wrap {
    border-radius: 22px !important;
  }

  body.rtools-shell-layout .panel-diagrama-title {
    padding: 14px 18px !important;
    margin: 0 !important;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
    border: 1px solid rgba(109,166,219,.14) !important;
  }

  body.rtools-shell-layout .panel-diagrama-title h2 {
    color: #ffffff !important;
    font-size: 20px !important;
    letter-spacing: .2px !important;
  }

  body.rtools-shell-layout .tree-wrap {
    padding: 14px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028)) !important;
    border: 1px solid rgba(109,166,219,.16) !important;
  }

  body.rtools-shell-layout .tree {
    min-width: 1180px;
  }

  body.rtools-shell-layout .card {
    min-width: 320px !important;
    width: 320px !important;
  }

  body.rtools-shell-layout .pricing-panel {
    margin-bottom: 4px;
  }
}

@media screen and (max-width: 1180px) {
  body.rtools-shell-layout header {
    grid-template-columns: 1fr !important;
    min-height: auto;
    gap: 14px !important;
  }

  body.rtools-shell-layout header .title h1 {
    justify-content: center !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.rtools-shell-layout .center-flash-message {
    min-width: 0;
    width: 100%;
  }

  body.rtools-shell-layout .header-right {
    justify-self: center !important;
  }

  body.rtools-shell-layout .app-shell {
    grid-template-columns: 1fr;
  }

  body.rtools-shell-layout .rtools-sidebar {
    position: static;
    min-height: 0;
  }

  body.rtools-shell-layout .sidebar-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.rtools-shell-layout .sidebar-step {
    text-align: center;
  }

  body.rtools-shell-layout .app-intro-card {
    flex-direction: column;
    align-items: stretch;
  }

  body.rtools-shell-layout .intro-status-card {
    align-self: flex-start;
  }
}

@media screen and (max-width: 720px) {
  body.rtools-shell-layout .app-shell {
    padding: 12px;
  }

  body.rtools-shell-layout .sidebar-nav {
    grid-template-columns: 1fr;
  }

  body.rtools-shell-layout .intro-brand {
    align-items: flex-start;
  }

  body.rtools-shell-layout .intro-copy h2 {
    font-size: 23px;
  }

  body.rtools-shell-layout .header-right {
    flex-wrap: wrap;
  }

  body.rtools-shell-layout .header-right .header-icon {
    width: 92px !important;
    height: 92px !important;
  }

  body.rtools-shell-layout #btnReset {
    min-height: 44px;
  }
}

@media print {
  .app-shell,
  .rtools-sidebar,
  .app-intro-card {
    display: none !important;
  }
}



body.rtools-shell-layout .intro-status-card.is-analyzed {
  background: linear-gradient(135deg, #1d9d55, #17c488);
  box-shadow: 0 18px 34px rgba(0,0,0,.24), 0 0 0 1px rgba(111,255,178,.18) inset;
}

body.rtools-shell-layout .intro-status-card.is-analyzed strong {
  color: #ffffff;
}


/* R-tools v20260616: dashboard y logos proporcionados en preview/PDF */
a.dashboard-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:9px;
  border:1px solid rgba(64,169,255,.55);
  background:linear-gradient(135deg,#0d64d8,#16a9e6);
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-decoration:none!important;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
}
a.dashboard-link:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
}
#printReport #printHeader .print-logo{
  width:54px!important;
  height:54px!important;
  max-width:54px!important;
  max-height:54px!important;
  object-fit:contain!important;
  border-radius:12px!important;
  background:#ffffff!important;
  padding:3px!important;
  flex:0 0 54px!important;
}
#printReport[data-report-tier="premium"] #printHeader .print-logo{
  width:54px!important;
  height:54px!important;
  max-width:54px!important;
  max-height:54px!important;
  object-fit:contain!important;
}


/* ============================================================
   R-tools v20260616 | RCA-R informes uniformes con Bad Actors-R
   Solo presentación de informe/preinforme. No altera lógica ni datos.
============================================================ */
#printReport{
  background:#ffffff!important;
  color:#172033!important;
  font-family:Arial, Helvetica, sans-serif!important;
}
#printReport,
#printReport *{
  box-sizing:border-box;
}
#printReport #printBody,
#printReport .pr-section,
#printReport .pr-premium-only,
#printReport .pr-premium-single-stack,
#printReport .pr-premium-closing-stack{
  color:#172033!important;
}
#printReport #printHeader{
  background:#ffffff!important;
  color:#071d36!important;
  border-bottom:3px solid #0b3b66!important;
  border-radius:0!important;
  padding:12px 0 14px!important;
  margin-bottom:18px!important;
}
#printReport[data-report-tier="premium"] #printHeader{
  background:linear-gradient(135deg,#071d36,#0b3b66)!important;
  color:#ffffff!important;
  border-bottom:0!important;
  border-radius:18px!important;
  padding:18px!important;
  box-shadow:0 14px 28px rgba(7,29,54,.15)!important;
}
#printReport #printHeader .print-title{
  color:#071d36!important;
  font-size:28px!important;
  line-height:1.1!important;
  letter-spacing:-.35px!important;
  font-weight:900!important;
}
#printReport #printHeader .print-subtitle,
#printReport #printHeader .print-meta{
  color:#4e6078!important;
}
#printReport[data-report-tier="premium"] #printHeader .print-title,
#printReport[data-report-tier="premium"] #printHeader .print-subtitle,
#printReport[data-report-tier="premium"] #printHeader .print-meta{
  color:#ffffff!important;
}
#printReport[data-report-tier="premium"] #printHeader .print-subtitle,
#printReport[data-report-tier="premium"] #printHeader .print-meta{
  opacity:.9!important;
}
#printReport #printHeader .print-logo{
  width:76px!important;
  height:76px!important;
  max-width:76px!important;
  max-height:76px!important;
  object-fit:contain!important;
  border-radius:14px!important;
  background:#ffffff!important;
  padding:4px!important;
  flex:0 0 76px!important;
}
#printReport .pr-section > h2{
  margin:22px 0 10px!important;
  padding:9px 12px!important;
  background:linear-gradient(90deg,#0b3b66,#1b74b8)!important;
  color:#ffffff!important;
  border:0!important;
  border-radius:12px!important;
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:-.12px!important;
}
#printReport[data-report-tier="standard"] .pr-section > h2{
  background:#f4f7fb!important;
  color:#0b3b66!important;
  border:1px solid #d8e2ef!important;
  border-left:6px solid #0b3b66!important;
}
#printReport .pr-note,
#printReport .pr-note.pr-tight,
#printReport p,
#printReport li{
  color:#243b56!important;
  line-height:1.48!important;
}
#printReport .pr-card,
#printReport .pr-list-box,
#printReport .pr-premium-box,
#printReport .pr-signoff-box,
#printReport .pr-field,
#printReport .pr-kv,
#printReport .pr-premium-summary-box{
  background:#ffffff!important;
  border:1px solid #d8e2ef!important;
  border-radius:14px!important;
  box-shadow:0 5px 14px rgba(7,29,54,.06)!important;
  color:#172033!important;
}
#printReport .pr-card-head{
  background:#f8fbff!important;
  border-bottom:1px solid #d8e2ef!important;
  color:#0b3b66!important;
}
#printReport .pr-card-head .t,
#printReport .pr-premium-box .k,
#printReport .pr-signoff-box .k,
#printReport .pr-kv .k,
#printReport .pr-field .k{
  color:#0b3b66!important;
  font-weight:900!important;
}
#printReport .pr-card-body,
#printReport .pr-card-body *,
#printReport .pr-premium-box .v,
#printReport .pr-signoff-box .v,
#printReport .pr-kv .v,
#printReport .pr-field .v,
#printReport .pr-premium-summary-box .v{
  color:#172033!important;
}
#printReport .pr-step-because{
  background:#eef5ff!important;
  color:#0b3b66!important;
  border-bottom:1px solid #d8e2ef!important;
}
#printReport .table-wrap{
  background:#ffffff!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#printReport .pr-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:#ffffff!important;
  border:1px solid #d8e2ef!important;
  border-radius:16px!important;
  overflow:hidden!important;
  box-shadow:0 6px 16px rgba(7,29,54,.05)!important;
}
#printReport .pr-table th,
#printReport .pr-table td{
  border:0!important;
  padding:8px 9px!important;
  vertical-align:top!important;
  line-height:1.38!important;
  word-break:break-word!important;
}
#printReport .pr-table thead tr.pr-thead-section th{
  background:linear-gradient(90deg,#0b3b66,#1b74b8)!important;
  color:#ffffff!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.1px!important;
  border-bottom:1px solid #d8e2ef!important;
}
#printReport .pr-table thead tr:not(.pr-thead-section) th{
  background:#eef5ff!important;
  color:#0b3b66!important;
  font-size:11px!important;
  font-weight:900!important;
  border-bottom:1px solid #d8e2ef!important;
}
#printReport .pr-table tbody td,
#printReport .pr-table tbody td *,
#printReport .pr-table tbody td span,
#printReport .pr-table tbody td div,
#printReport .pr-table tbody td p,
#printReport .pr-table tbody td li{
  background:transparent!important;
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
}
#printReport .pr-table tbody td{
  background:#ffffff!important;
  border-bottom:1px solid #e3ebf4!important;
  font-size:10.5px!important;
  font-weight:500!important;
}
#printReport .pr-table tbody tr:nth-child(even) td{
  background:#f8fbff!important;
}
#printReport .pr-table tbody tr:last-child td{
  border-bottom:0!important;
}
#printReport .pr-table tbody td strong,
#printReport .pr-table tbody td b{
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
  font-weight:900!important;
}
#printReport .pr-premium-table tbody td:nth-child(4){
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
  font-weight:900!important;
}
#printReport .pr-signoff-box .sign-line{
  border-bottom:1px solid #8fa0b5!important;
}
#printFooter,
#printReport #printFooter{
  color:#4e6078!important;
  border-top:1px solid #d8e2ef!important;
}

@media print{
  #printReport{
    background:#ffffff!important;
    color:#172033!important;
    print-color-adjust:exact!important;
    -webkit-print-color-adjust:exact!important;
  }
  #printReport .pr-section > h2{
    page-break-after:avoid!important;
  }
  #printReport .pr-table{
    break-inside:auto!important;
  }
  #printReport .pr-table tr{
    break-inside:avoid!important;
  }
  #printReport .pr-table thead{
    display:table-header-group!important;
  }
  #printReport .pr-table tbody td,
  #printReport .pr-table tbody td *{
    color:#172033!important;
    -webkit-text-fill-color:#172033!important;
  }
  #printReport .pr-table thead tr.pr-thead-section th,
  #printReport .pr-table thead tr.pr-thead-section th *{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
  }
  #printReport .pr-table thead tr:not(.pr-thead-section) th,
  #printReport .pr-table thead tr:not(.pr-thead-section) th *{
    color:#0b3b66!important;
    -webkit-text-fill-color:#0b3b66!important;
  }
}


/* R-tools v20260616: RCA-R Pro simétrico con Bad Actors-R / Weibull-R */
#printReport[data-report-tier="premium"] #printHeader{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  background:#0b3b66!important;
  color:#ffffff!important;
  border-radius:18px!important;
  padding:16px 18px!important;
  margin:0 0 18px!important;
  box-shadow:0 14px 28px rgba(7,29,54,.15)!important;
}
#printReport[data-report-tier="premium"] #printHeader .ph-left{
  flex:0 0 auto!important;
}
#printReport[data-report-tier="premium"] #printHeader .ph-right{
  flex:1 1 auto!important;
  min-width:0!important;
}
#printReport[data-report-tier="premium"] #printHeader .print-logo{
  width:76px!important;
  height:76px!important;
  max-width:76px!important;
  max-height:76px!important;
  object-fit:contain!important;
  border-radius:14px!important;
  background:#ffffff!important;
  padding:4px!important;
}
#printReport[data-report-tier="premium"] #printHeader .print-title{
  color:#ffffff!important;
  font-size:28px!important;
  font-weight:950!important;
  line-height:1.05!important;
  letter-spacing:-.35px!important;
  margin:0 0 4px!important;
}
#printReport[data-report-tier="premium"] #printHeader .print-subtitle,
#printReport[data-report-tier="premium"] #printHeader .print-meta,
#printReport[data-report-tier="premium"] #printHeader .print-meta *{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
#printReport[data-report-tier="premium"] #prEdition{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  padding:3px 10px!important;
  margin-right:4px!important;
  background:#f4ad19!important;
  color:#071d36!important;
  -webkit-text-fill-color:#071d36!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
}
#printReport[data-report-tier="premium"] .pr-table thead tr.pr-thead-section th,
#printReport[data-report-tier="premium"] .pr-section > h2{
  background:linear-gradient(90deg,#0b3b66,#1b74b8)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-radius:12px!important;
}
#printReport .pr-table tbody td,
#printReport .pr-table tbody td *,
#printReport #prVerificationTable tbody td,
#printReport #prVerificationTable tbody td *,
#printReport #prPlanTable tbody td,
#printReport #prPlanTable tbody td *,
#printReport .pr-premium-table tbody td,
#printReport .pr-premium-table tbody td *{
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
}
#printReport .pr-table tbody td strong,
#printReport .pr-table tbody td b{
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
}
#printReport .pr-rca-chart-box{
  break-inside:avoid!important;
}
#printReport .pr-rca-bars{
  display:grid!important;
  gap:9px!important;
  margin-top:6px!important;
}
#printReport .pr-rca-bar-row{
  display:grid!important;
  grid-template-columns:185px 1fr!important;
  gap:10px!important;
  align-items:center!important;
}
#printReport .pr-rca-bar-label strong{
  display:block!important;
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
  font-size:10.5px!important;
}
#printReport .pr-rca-bar-label span{
  display:block!important;
  color:#4e6078!important;
  -webkit-text-fill-color:#4e6078!important;
  font-size:9.5px!important;
  margin-top:2px!important;
}
#printReport .pr-rca-bar-track{
  height:13px!important;
  border-radius:999px!important;
  background:#e8f2ff!important;
  border:1px solid #cfe4f8!important;
  overflow:hidden!important;
}
#printReport .pr-rca-bar-track span{
  display:block!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#0b3b66,#1b74b8)!important;
}
@media print{
  #printReport .pr-rca-bar-row{grid-template-columns:165px 1fr!important;}
}


/* R-tools v20260616 | Ajuste final: dashboard junto a Borrar análisis y gráfico RCA Pro por causas */
.toolbar a.dashboard-link{
  order:7;
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#0d64d8,#16a9e6)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid rgba(64,169,255,.55)!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
#btnReset{order:6;}
#btnExport{order:8;}
#btnPrint{order:9;}
#printReport .pr-rca-diagnostic-chart{
  margin-top:12px!important;
  padding:13px 14px!important;
  background:linear-gradient(135deg,#ffffff,#f6f9fc)!important;
  border:1px solid #d8e2ef!important;
  border-radius:16px!important;
  box-shadow:0 8px 18px rgba(7,29,54,.07)!important;
}
#printReport .pr-rca-chart-intro{
  margin:0 0 9px!important;
  color:#243b56!important;
  font-size:10.5px!important;
  line-height:1.42!important;
}
#printReport .pr-rca-chart-foot{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:10px!important;
}
#printReport .pr-rca-chart-foot span{
  display:block!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  background:#eef5ff!important;
  border-left:4px solid #0f74df!important;
  color:#17324f!important;
  font-size:10px!important;
  font-weight:800!important;
}
#printReport .pr-rca-chart-foot strong{
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
}
#printReport .pr-premium-meta-grid + .pr-rca-diagnostic-chart{
  margin-top:14px!important;
}
@media print{
  #printReport .pr-rca-diagnostic-chart{break-inside:avoid!important;}
  #printReport .pr-rca-chart-foot{grid-template-columns:repeat(3,1fr)!important;}
}


/* R-tools v20260616 | Uniformidad final de informes y gráfica RCA Pro por cobertura causal */
#printReport .pr-rca-bar-track{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
#printReport .pr-rca-bar-track b{
  position:absolute!important;
  right:9px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
  font-size:9px!important;
  font-weight:950!important;
  line-height:1!important;
  z-index:2!important;
}
#printReport .pr-rca-diagnostic-chart .k{
  color:#0b3b66!important;
  -webkit-text-fill-color:#0b3b66!important;
  font-size:14px!important;
  font-weight:950!important;
}
#printReport[data-report-tier="standard"] #printHeader,
#printReport[data-report-tier="standard"] .pr-section > h2,
#printReport[data-report-tier="standard"] .pr-table thead tr.pr-thead-section th{
  border-radius:12px!important;
}
#printReport[data-report-tier="standard"] #printHeader{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  border:1px solid #d8e2ef!important;
  border-bottom:3px solid #0b3b66!important;
  padding:14px 16px!important;
  margin:0 0 18px!important;
  background:#ffffff!important;
  box-shadow:0 8px 20px rgba(7,29,54,.05)!important;
}
#printReport[data-report-tier="standard"] #printHeader .print-logo{
  width:76px!important;
  height:76px!important;
  max-width:76px!important;
  max-height:76px!important;
}
#printReport .pr-card,
#printReport .pr-list-box,
#printReport .pr-premium-box,
#printReport .pr-signoff-box,
#printReport .pr-field,
#printReport .pr-kv{
  break-inside:avoid!important;
}
@media print{
  #printReport .pr-rca-diagnostic-chart .k{font-size:11px!important;}
  #printReport .pr-rca-bar-track b{font-size:8px!important;right:7px!important;}
}


/* R-tools v20260616 | Botón Dashboard visible junto a Borrar análisis en RCA-R */
.toolbar .rca-analysis-actions{
  order:6!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.toolbar .rca-analysis-actions #btnReset{
  order:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
}
.toolbar .rca-analysis-actions .dashboard-back-btn,
.toolbar .rca-analysis-actions a.dashboard-link{
  order:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:9px!important;
  border:1px solid rgba(64,169,255,.62)!important;
  background:linear-gradient(135deg,#0d64d8,#16a9e6)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1!important;
  box-shadow:0 8px 18px rgba(13,100,216,.22)!important;
}
.toolbar .rca-analysis-actions .dashboard-back-btn:hover{
  filter:brightness(1.08)!important;
  transform:translateY(-1px)!important;
}
#btnExport{order:7!important;}
#btnPrint{order:8!important;}
@media(max-width:980px){
  .toolbar{
    justify-content:flex-end!important;
  }
  .toolbar .rca-analysis-actions{
    width:auto!important;
  }
}
@media(max-width:640px){
  .toolbar .rca-analysis-actions{
    width:100%!important;
    justify-content:flex-end!important;
  }
  .toolbar .rca-analysis-actions .dashboard-back-btn{
    flex:0 1 auto!important;
  }
}


/* R-tools v20260616 | RCA-R: botones Dashboard + Borrar Análisis visibles, estilo Bad Actors-R */
.toolbar .rca-top-actions{
  order:6!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

.toolbar .rca-top-actions .dashboard-back-btn,
.toolbar .rca-top-actions .rca-clear-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:38px!important;
  padding:9px 15px!important;
  border-radius:14px!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.1px!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 16px rgba(0,0,0,.20)!important;
}

.toolbar .rca-top-actions .dashboard-back-btn{
  border:1px solid rgba(64,169,255,.58)!important;
  background:linear-gradient(180deg,#1a3e68,#102b49)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

.toolbar .rca-top-actions .rca-clear-btn{
  border:1px solid rgba(64,169,255,.45)!important;
  background:linear-gradient(180deg,#152d4d,#0e2138)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

.toolbar .rca-top-actions .dashboard-back-btn:hover,
.toolbar .rca-top-actions .rca-clear-btn:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.08)!important;
}

#btnExport{order:7!important;}
#btnPrint{order:8!important;}

@media(max-width:1100px){
  .toolbar .rca-top-actions{
    order:6!important;
    width:100%!important;
    justify-content:flex-end!important;
  }
}

@media(max-width:640px){
  .toolbar .rca-top-actions{
    gap:8px!important;
    flex-wrap:wrap!important;
  }
  .toolbar .rca-top-actions .dashboard-back-btn,
  .toolbar .rca-top-actions .rca-clear-btn{
    flex:0 1 auto!important;
    padding:8px 12px!important;
  }
}


/* R-tools v20260616 | FIX visible: permitir grupo Dashboard + Borrar Análisis en RCA-R */
body.theme-control-room.rtools-shell-layout .header-right .toolbar > .rca-top-actions,
body.rtools-shell-layout .header-right .toolbar > .rca-top-actions,
.header-right .toolbar > .rca-top-actions{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:30!important;
  order:6!important;
  white-space:nowrap!important;
}

body.theme-control-room.rtools-shell-layout .header-right .toolbar > .rca-top-actions > .dashboard-back-btn,
body.theme-control-room.rtools-shell-layout .header-right .toolbar > .rca-top-actions > #btnReset,
body.rtools-shell-layout .header-right .toolbar > .rca-top-actions > .dashboard-back-btn,
body.rtools-shell-layout .header-right .toolbar > .rca-top-actions > #btnReset,
.header-right .toolbar > .rca-top-actions > .dashboard-back-btn,
.header-right .toolbar > .rca-top-actions > #btnReset{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:38px!important;
  padding:9px 15px!important;
  border-radius:14px!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.1px!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 16px rgba(0,0,0,.20)!important;
}

body.theme-control-room.rtools-shell-layout .header-right .toolbar > .rca-top-actions > .dashboard-back-btn,
body.rtools-shell-layout .header-right .toolbar > .rca-top-actions > .dashboard-back-btn,
.header-right .toolbar > .rca-top-actions > .dashboard-back-btn{
  border:1px solid rgba(64,169,255,.58)!important;
  background:linear-gradient(180deg,#1a3e68,#102b49)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

body.theme-control-room.rtools-shell-layout .header-right .toolbar > .rca-top-actions > #btnReset,
body.rtools-shell-layout .header-right .toolbar > .rca-top-actions > #btnReset,
.header-right .toolbar > .rca-top-actions > #btnReset{
  border:1px solid rgba(64,169,255,.45)!important;
  background:linear-gradient(180deg,#152d4d,#0e2138)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

body.theme-control-room.rtools-shell-layout .header-right .toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
}

@media(max-width:1100px){
  body.theme-control-room.rtools-shell-layout .header-right .toolbar > .rca-top-actions{
    width:100%!important;
    justify-content:flex-end!important;
  }
}


/* R-tools v20260616 | FIX definitivo RCA-R: Dashboard y Borrar Análisis como hijos directos del toolbar */
.header-right .toolbar > a.dashboard-back-btn:not(#btnReset),
body.theme-control-room.rtools-shell-layout .header-right .toolbar > a.dashboard-back-btn:not(#btnReset),
body.rtools-shell-layout .header-right .toolbar > a.dashboard-back-btn:not(#btnReset){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  order:5!important;
  min-height:38px!important;
  padding:9px 15px!important;
  border-radius:14px!important;
  border:1px solid rgba(64,169,255,.58)!important;
  background:linear-gradient(180deg,#1a3e68,#102b49)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.1px!important;
  white-space:nowrap!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 16px rgba(0,0,0,.20)!important;
}

.header-right .toolbar > #btnReset,
body.theme-control-room.rtools-shell-layout .header-right .toolbar > #btnReset,
body.rtools-shell-layout .header-right .toolbar > #btnReset{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  order:6!important;
  min-height:38px!important;
  padding:9px 15px!important;
  border-radius:14px!important;
  border:1px solid rgba(64,169,255,.45)!important;
  background:linear-gradient(180deg,#152d4d,#0e2138)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.1px!important;
  white-space:nowrap!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 16px rgba(0,0,0,.20)!important;
}

.header-right .toolbar > a.dashboard-back-btn:hover,
.header-right .toolbar > #btnReset:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.08)!important;
}

.header-right .toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
@media(max-width:980px){
  .header-right .toolbar{
    justify-content:flex-end!important;
  }
}


/* R-tools v20260617 | Plan PRO + Excel editable */
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.pro-excel{
  position:relative;
  border-color:rgba(22,169,230,.45)!important;
  box-shadow:0 18px 42px rgba(13,100,216,.14)!important;
}
.report-plan-card.pro-excel::before,
.report-plan-card.report-plan-excel::before,
.pricing-card.pro-excel::before{
  content:"PRO + EXCEL";
  position:absolute;
  top:14px;
  right:14px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,#0d64d8,#16a9e6);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}
@media(min-width:1100px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}


/* R-tools v20260617 | Cards de precios simétricas en una sola fila + PRO Excel branding */
@media (min-width: 1024px){
  .report-plan-grid,
  .pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.6vw,22px)!important;
    align-items:stretch!important;
    width:100%!important;
  }
}
.report-plan-grid > *,
.pricing-grid > *{
  min-width:0!important;
}
.report-plan-card,
.pricing-card{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.report-plan-card ul,
.pricing-card ul{
  flex:1 1 auto!important;
}
.report-card-btn,
.report-generate-btn,
.pricing-btn{
  margin-top:auto!important;
  width:100%!important;
}
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.pro-excel{
  position:relative;
  border-color:rgba(22,169,230,.50)!important;
  background:
    radial-gradient(circle at 80% 0%,rgba(22,169,230,.14),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,251,255,.96))!important;
  box-shadow:0 18px 44px rgba(13,100,216,.16)!important;
}
.pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border:1px solid rgba(13,100,216,.18)!important;
  border-radius:16px!important;
  background:rgba(13,100,216,.055)!important;
  display:grid!important;
  gap:9px!important;
}
.pro-excel-config label{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  font-size:12px!important;
  font-weight:850!important;
  color:inherit!important;
}
.pro-excel-config input[type="text"],
.pro-excel-config input:not([type]),
.pro-excel-config input[type="file"]{
  width:100%!important;
  max-width:100%!important;
  min-height:36px!important;
  border-radius:11px!important;
}
.pro-excel-config small,
.pro-excel-config .pro-logo-status,
.pro-excel-config .premium-logo-status{
  display:block!important;
  font-size:11px!important;
  line-height:1.35!important;
  color:rgba(82,103,122,.95)!important;
  font-weight:750!important;
}
@media (max-width: 1023px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:1fr!important;
  }
}


/* R-tools v20260617 | FIX definitivo: planes en 3 columnas y PRO + Excel sin fondo blanco */
@media (min-width: 1024px){
  .report-plan-grid,
  .pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.5vw,22px)!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .report-plan-grid > article,
  .pricing-grid > article{
    grid-column:auto!important;
    grid-row:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
  }
}
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.pro-excel{
  color:#f2f8ff!important;
}
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel{
  background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))!important;
  border-color:rgba(72,195,131,.38)!important;
}
.pricing-card.pro-excel{
  background:linear-gradient(180deg,rgba(7,29,54,.96),rgba(11,59,102,.92))!important;
  border-color:rgba(22,169,230,.40)!important;
}
.report-plan-card.pro-excel *,
.report-plan-card.report-plan-excel *,
.pricing-card.pro-excel *{
  color:inherit;
}
.report-plan-card.pro-excel h4,
.report-plan-card.pro-excel h5,
.report-plan-card.pro-excel strong,
.report-plan-card.report-plan-excel h4,
.report-plan-card.report-plan-excel h5,
.report-plan-card.report-plan-excel strong,
.pricing-card.pro-excel .price,
.pricing-card.pro-excel .price strong{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-plan-card.pro-excel li,
.report-plan-card.report-plan-excel li,
.pricing-card.pro-excel li{
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
}
.report-plan-card.pro-excel .report-price-row span,
.report-plan-card.report-plan-excel .report-price-row span,
.pricing-card.pro-excel .price small{
  color:#d2e0ef!important;
  -webkit-text-fill-color:#d2e0ef!important;
}
.report-plan-card.pro-excel .pro-excel-config,
.report-plan-card.report-plan-excel .pro-excel-config,
.pricing-card.pro-excel .pro-excel-config{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.report-plan-card.pro-excel .pro-excel-config label,
.report-plan-card.report-plan-excel .pro-excel-config label,
.pricing-card.pro-excel .pro-excel-config label{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-plan-card.pro-excel .pro-excel-config small,
.report-plan-card.pro-excel .pro-excel-config .pro-logo-status,
.report-plan-card.report-plan-excel .pro-excel-config small,
.report-plan-card.report-plan-excel .pro-excel-config .pro-logo-status,
.pricing-card.pro-excel .pro-excel-config small,
.pricing-card.pro-excel .pro-excel-config .premium-logo-status{
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
}
.report-plan-card.pro-excel input,
.report-plan-card.report-plan-excel input,
.pricing-card.pro-excel input{
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  background:#ffffff!important;
}
@media (max-width:1023px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:1fr!important;
  }
}



/* R-tools v20260617 | Uniformidad visual tarjetas Estándar / PRO / PRO + Excel */
@media (min-width:1024px){
  .report-plan-grid,
  .pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.5vw,22px)!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .report-plan-grid > article,
  .pricing-grid > article{
    grid-column:auto!important;
    grid-row:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
  }
}
.report-plan-card,
.pricing-card{
  position:relative!important;
  height:100%!important;
  min-height:clamp(500px,42vw,620px)!important;
  display:flex!important;
  flex-direction:column!important;
  padding:16px!important;
  border-radius:20px!important;
  border:1px solid rgba(72,195,131,.34)!important;
  background:linear-gradient(135deg,rgba(32,81,78,.38),rgba(25,47,73,.62))!important;
  box-shadow:0 16px 34px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#eaf4ff!important;
  overflow:hidden!important;
}
.report-plan-card.pro,
.report-plan-card.report-plan-pro,
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.premium,
.pricing-card.pro-excel{
  background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))!important;
  border-color:rgba(72,195,131,.38)!important;
}
.report-plan-badge,
.report-plan-pill,
.plan-tag{
  width:100%!important;
  min-height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 12px!important;
  margin:0 0 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(123,220,143,.35)!important;
  background:rgba(56,103,78,.55)!important;
  color:#eefcf0!important;
  -webkit-text-fill-color:#eefcf0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.25px!important;
  text-align:center!important;
  text-transform:uppercase!important;
}
.report-plan-card.pro-excel::before,
.report-plan-card.report-plan-excel::before,
.pricing-card.pro-excel::before{
  display:none!important;
  content:none!important;
}
.report-price-row,
.pricing-card .price,
.report-plan-card h4{
  margin:8px 0 12px!important;
  min-height:36px!important;
  display:flex!important;
  align-items:baseline!important;
  gap:10px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-price-row strong,
.pricing-card .price,
.pricing-card .price strong,
.report-plan-card h4 strong{
  font-size:28px!important;
  line-height:1.05!important;
  font-weight:950!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  letter-spacing:-.5px!important;
}
.report-price-row span,
.pricing-card .price small,
.report-plan-card h4 small{
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:850!important;
  color:#d2e0ef!important;
  -webkit-text-fill-color:#d2e0ef!important;
}
.report-deliverable-title,
.report-plan-card h5{
  margin:2px 0 8px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
.report-plan-card ul,
.pricing-card ul{
  flex:1 1 auto!important;
  margin:0 0 14px!important;
  padding-left:18px!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
  line-height:1.55!important;
  font-size:13px!important;
}
.report-plan-card li,
.pricing-card li{
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
  margin:4px 0!important;
}
.pro-config-box,
.report-pro-fields,
.premium-config,
.pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  display:grid!important;
  gap:9px!important;
  color:#ffffff!important;
}
.pro-config-box label,
.report-pro-fields label,
.premium-config label,
.pro-excel-config label,
.pro-field{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
.pro-config-box input,
.report-pro-fields input,
.premium-config input,
.pro-excel-config input{
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.32)!important;
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  padding:9px 12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.pro-config-box input[type="file"],
.report-pro-fields input[type="file"],
.premium-config input[type="file"],
.pro-excel-config input[type="file"]{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  padding:8px!important;
}
.pro-logo-status,
.premium-logo-status,
.report-pro-fields small,
.pro-excel-config small{
  display:block!important;
  margin-top:0!important;
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.report-card-btn,
.report-generate-btn,
.pricing-btn{
  margin-top:auto!important;
  width:100%!important;
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-weight:950!important;
  box-shadow:0 10px 20px rgba(0,0,0,.18)!important;
}
@media (max-width:1023px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:1fr!important;
  }
  .report-plan-card,
  .pricing-card{
    min-height:auto!important;
  }
}



/* R-tools v20260617 | Ajuste fino PRO + Excel: inputs oscuros y simetría */
.report-plan-card.pro-excel #proExcelAnalystName,
.report-plan-card.report-plan-excel #proExcelAnalystName,
#proExcelAnalystName{
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  border:1px solid rgba(64,169,255,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.report-plan-card.pro-excel #proExcelAnalystName::placeholder,
.report-plan-card.report-plan-excel #proExcelAnalystName::placeholder,
#proExcelAnalystName::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
.report-plan-card.pro-excel .pro-excel-config,
.report-plan-card.report-plan-excel .pro-excel-config{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:16px!important;
}
.report-plan-card.pro-excel .pro-excel-config label,
.report-plan-card.report-plan-excel .pro-excel-config label{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-plan-card.pro-excel .pro-excel-config input[type="file"],
.report-plan-card.report-plan-excel .pro-excel-config input[type="file"]{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  border:1px solid rgba(64,169,255,.26)!important;
}
.report-plan-card.pro-excel .pro-logo-status,
.report-plan-card.report-plan-excel .pro-logo-status,
.report-plan-card.report-plan-excel small{
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
}



/* R-tools v20260617 | RCA-R PRO + Excel idéntico a PRO, lista compacta */
.pricing-card.pro-excel{
  background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))!important;
  border:1px solid rgba(72,195,131,.38)!important;
  color:#eaf4ff!important;
}
.pricing-card.pro-excel .plan-tag{
  width:100%!important;
  min-height:28px!important;
  margin:0 0 12px!important;
  background:rgba(56,103,78,.55)!important;
  border:1px solid rgba(123,220,143,.35)!important;
  color:#eefcf0!important;
  -webkit-text-fill-color:#eefcf0!important;
}
.pricing-card.pro-excel .price{
  margin:8px 0 10px!important;
  min-height:34px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.pricing-card.pro-excel .price small{
  color:#d2e0ef!important;
  -webkit-text-fill-color:#d2e0ef!important;
}
.pricing-card.pro-excel ul{
  margin:0 0 12px!important;
  padding-left:18px!important;
  line-height:1.42!important;
  font-size:13px!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
}
.pricing-card.pro-excel li{
  margin:3px 0!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
}
.pricing-card.pro-excel .premium-config,
.pricing-card.pro-excel .pro-excel-config{
  margin:10px 0 12px!important;
  padding:12px!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:16px!important;
}
.pricing-card.pro-excel .premium-config label,
.pricing-card.pro-excel .pro-excel-config label{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pricing-card.pro-excel #premiumExcelAnalystName{
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  border:1px solid rgba(64,169,255,.34)!important;
}
.pricing-card.pro-excel #premiumExcelAnalystName::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
.pricing-card.pro-excel #premiumExcelLogoInput{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
}
.pricing-card.pro-excel #premiumExcelLogoStatus{
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
}


/* R-tools v20260617 | Bad Actors-R y RCA-R igualados visualmente a Weibull-R */
.report-plan-card,
.pricing-card{
  min-height:clamp(500px,42vw,620px)!important;
}
.report-plan-grid > article,
.pricing-grid > article{
  align-self:stretch!important;
}
.report-plan-card ul,
.pricing-card ul{
  flex:1 1 auto!important;
  margin:0 0 14px!important;
  padding-left:18px!important;
  line-height:1.55!important;
  font-size:13px!important;
}
.report-plan-card li,
.pricing-card li{
  margin:4px 0!important;
}
.report-plan-badge,
.plan-tag,
.report-plan-pill{
  width:100%!important;
  min-height:28px!important;
  margin:0 0 12px!important;
  padding:7px 12px!important;
}
.report-price-row,
.pricing-card .price,
.report-plan-card h4{
  margin:8px 0 12px!important;
  min-height:36px!important;
}
.pro-config-box,
.report-pro-fields,
.premium-config,
.pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  display:grid!important;
  gap:9px!important;
}
.pro-config-box label,
.report-pro-fields label,
.premium-config label,
.pro-excel-config label,
.pro-field{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.pro-config-box input,
.report-pro-fields input,
.premium-config input,
.pro-excel-config input{
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.32)!important;
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.pro-config-box input::placeholder,
.report-pro-fields input::placeholder,
.premium-config input::placeholder,
.pro-excel-config input::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
.pro-config-box input[type="file"],
.report-pro-fields input[type="file"],
.premium-config input[type="file"],
.pro-excel-config input[type="file"]{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  padding:8px!important;
}
.pro-logo-status,
.premium-logo-status,
.report-pro-fields small,
.pro-excel-config small{
  display:block!important;
  margin-top:0!important;
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.report-card-btn,
.report-generate-btn,
.pricing-btn{
  margin-top:auto!important;
  min-height:40px!important;
  width:100%!important;
}
/* Forzar que las tarjetas PRO+Excel de Bad Actors y RCA-R mantengan exactamente la caja oscura del modelo Weibull */
.report-plan-card.pro-excel .pro-excel-config,
.pricing-card.pro-excel .pro-excel-config,
.pricing-card.pro-excel .premium-config{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
.report-plan-card.pro-excel #proExcelAnalystName,
.pricing-card.pro-excel #premiumExcelAnalystName{
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  border:1px solid rgba(64,169,255,.32)!important;
}
.report-plan-card.pro-excel #proExcelAnalystName::placeholder,
.pricing-card.pro-excel #premiumExcelAnalystName::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}



/* R-tools v20260617 | RCA-R ajuste final: simetría con Weibull-R */
#sec-informe .pricing-grid{
  align-items:stretch!important;
}
#sec-informe .pricing-card{
  min-height:600px!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  padding:16px!important;
  border-radius:20px!important;
  border:1px solid rgba(72,195,131,.34)!important;
  background:linear-gradient(135deg,rgba(32,81,78,.38),rgba(25,47,73,.62))!important;
  color:#eaf4ff!important;
  overflow:hidden!important;
}
#sec-informe .pricing-card.premium,
#sec-informe .pricing-card.pro-excel{
  background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))!important;
  border-color:rgba(72,195,131,.38)!important;
}
#sec-informe .pricing-card .plan-tag{
  width:100%!important;
  min-height:28px!important;
  margin:0 0 12px!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(56,103,78,.55)!important;
  border:1px solid rgba(123,220,143,.35)!important;
  color:#eefcf0!important;
  -webkit-text-fill-color:#eefcf0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}
#sec-informe .pricing-card .price{
  display:flex!important;
  align-items:baseline!important;
  gap:10px!important;
  margin:8px 0 12px!important;
  min-height:36px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
#sec-informe .pricing-card .price small{
  color:#d2e0ef!important;
  -webkit-text-fill-color:#d2e0ef!important;
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:850!important;
}
/* La lista en RCA-R quedaba separada por herencias anteriores; se fuerza compacta como Weibull-R */
#sec-informe .pricing-card ul{
  display:block!important;
  flex:1 1 auto!important;
  margin:0 0 14px!important;
  padding-left:18px!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
  line-height:1.55!important;
  font-size:13px!important;
}
#sec-informe .pricing-card li{
  display:list-item!important;
  margin:4px 0!important;
  padding:0!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
  line-height:1.55!important;
}
#sec-informe .pricing-card .premium-config,
#sec-informe .pricing-card .pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  display:grid!important;
  gap:9px!important;
  color:#ffffff!important;
}
#sec-informe .pricing-card .premium-config label,
#sec-informe .pricing-card .pro-excel-config label{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
/* Fondo oscuro para Nombre del analista en PRO y PRO+Excel, igual al modelo Weibull-R */
#sec-informe #premiumAnalystName,
#sec-informe #premiumExcelAnalystName{
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.32)!important;
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
#sec-informe #premiumAnalystName::placeholder,
#sec-informe #premiumExcelAnalystName::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
#sec-informe #premiumLogoInput,
#sec-informe #premiumExcelLogoInput{
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  padding:8px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.26)!important;
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
}
#sec-informe #premiumLogoStatus,
#sec-informe #premiumExcelLogoStatus{
  display:block!important;
  margin-top:0!important;
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
#sec-informe .pricing-btn{
  margin-top:auto!important;
  width:100%!important;
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-weight:950!important;
}
@media(max-width:1023px){
  #sec-informe .pricing-card{
    min-height:auto!important;
  }
}



/* R-tools v20260617 | RCA-R ajuste PRO + Excel: caja analista/logo alineada y logo visible */
#sec-informe .pricing-card.premium,
#sec-informe .pricing-card.pro-excel{
  min-height:600px!important;
  display:flex!important;
  flex-direction:column!important;
}

/* En RCA-R la lista de PRO + Excel estaba empujando la caja hacia abajo por flex.
   Se fija un área de entregables común para que la caja de analista/logo inicie a la misma altura que PRO. */
#sec-informe .pricing-card.premium > ul,
#sec-informe .pricing-card.pro-excel > ul{
  flex:0 0 230px!important;
  min-height:230px!important;
  max-height:230px!important;
  display:block!important;
  margin:0 0 14px!important;
  padding-left:18px!important;
  line-height:1.42!important;
  font-size:13px!important;
  overflow:hidden!important;
}

#sec-informe .pricing-card.premium > ul li,
#sec-informe .pricing-card.pro-excel > ul li{
  display:list-item!important;
  margin:4px 0!important;
  padding:0!important;
  line-height:1.42!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
}

#sec-informe .pricing-card.premium .premium-config,
#sec-informe .pricing-card.pro-excel .premium-config,
#sec-informe .pricing-card.pro-excel .pro-excel-config{
  flex:0 0 auto!important;
  margin:0 0 14px!important;
  padding:12px!important;
  min-height:130px!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  display:grid!important;
  gap:9px!important;
  align-content:start!important;
  color:#ffffff!important;
}

#sec-informe .pricing-card.premium .premium-config label,
#sec-informe .pricing-card.pro-excel .premium-config label,
#sec-informe .pricing-card.pro-excel .pro-excel-config label{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
}

/* Nombre del analista: fondo oscuro igual a PRO/Weibull-R */
#sec-informe #premiumAnalystName,
#sec-informe #premiumExcelAnalystName{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  height:38px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.32)!important;
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}

/* Logo corporativo: forzar visibilidad en PRO + Excel */
#sec-informe #premiumLogoInput,
#sec-informe #premiumExcelLogoInput{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  height:38px!important;
  padding:8px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.26)!important;
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  appearance:auto!important;
  -webkit-appearance:auto!important;
}

#sec-informe #premiumLogoStatus,
#sec-informe #premiumExcelLogoStatus{
  display:block!important;
  margin-top:0!important;
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}

#sec-informe .pricing-card.premium .pricing-btn,
#sec-informe .pricing-card.pro-excel .pricing-btn{
  margin-top:auto!important;
}

@media(max-width:1023px){
  #sec-informe .pricing-card.premium > ul,
  #sec-informe .pricing-card.pro-excel > ul{
    flex:0 0 auto!important;
    min-height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  #sec-informe .pricing-card.premium .premium-config,
  #sec-informe .pricing-card.pro-excel .premium-config,
  #sec-informe .pricing-card.pro-excel .pro-excel-config{
    min-height:auto!important;
  }
}
