/* ============================================================================
   PLANIORA v3.6.0 — FASE 2: CASCADA BLOQUEADA, MULTIGRADO Y AUDITORÍA (BASE v3.5.18)
   Estilos 100 % modulares (sin alterar styles.css ni CSS de fases previas)
   ============================================================================ */

.f2-cascade-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 0 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(8, 126, 131, 0.30);
  background: rgba(8, 126, 131, 0.08);
  font-size: 12px;
  color: #073B43;
}

.f2-cascade-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #073B43;
  color: #FFFFFF;
}

.f2-audit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.f2-audit-btn.is-ok {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #065F46 !important;
  border-color: rgba(16, 185, 129, 0.50) !important;
}

.f2-audit-btn.is-warn {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #991B1B !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
}

[data-theme="dark"] .f2-audit-btn.is-ok {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6EE7B7 !important;
}

[data-theme="dark"] .f2-audit-btn.is-warn {
  background: rgba(239, 68, 68, 0.24) !important;
  color: #FCA5A5 !important;
}

.f2-lock-note {
  font-size: 11.5px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(8, 126, 131, 0.09);
  border: 1px solid rgba(8, 126, 131, 0.28);
  color: var(--fg);
  line-height: 1.4;
}

.f2-unlock-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.f2-unlock-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: #087E83;
}

.f2-readonly-field {
  background: var(--surface) !important;
  opacity: 0.78;
  cursor: not-allowed;
}

.f2-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}

.f2-audit-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
}

.f2-audit-row.pass {
  border-color: rgba(16, 185, 129, 0.40);
  background: rgba(16, 185, 129, 0.08);
}

.f2-audit-row.fail {
  border-color: rgba(239, 68, 68, 0.48);
  background: rgba(239, 68, 68, 0.09);
}

.f2-audit-ico {
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}

.f2-audit-txt strong {
  display: block;
  margin-bottom: 2px;
}

.f2-audit-meta {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.38;
}

.f2-word-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #E0F2FE;
  color: #075985;
  margin-top: 3px;
}

.f2-multi-tbl th {
  background: #FEF3C7 !important;
  color: #78350F !important;
}

#modal-f2-audit .modal-card {
  max-height: 88vh;
  overflow-y: auto;
}

@media (max-width: 780px) {
  .f2-unlock-row {
    min-height: 44px;
    padding: 4px 0;
  }
}

@media print {
  .f2-cascade-bar,
  .f2-audit-btn,
  .f2-word-badge,
  #modal-f2-audit {
    display: none !important;
  }
}
