/* Fuente base */
:root {
  /* Paleta clara inspirada en verde-aguamarina (teal → green) */
  --bg: #f6fafb;
  --card: #ffffff;
  --muted: #5b6b73;
  --text: #0e2431;
  --primary: #0f9da5;          /* teal */
  --primary-600: #0b8b92;      /* teal más oscuro */
  --accent: #2cc48a;           /* verde */
  --danger: #ef5350;
  --ring: rgba(15, 157, 165, .25);
  --border: #e2e8ee;
}

/* Layout with left sidebar */
.app-shell { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .app-shell { grid-template-columns: 1fr; } }
/* Expand content when sidebar is collapsed (any viewport) */
body.sidebar-collapsed .app-shell { grid-template-columns: 1fr !important; }
.app-shell > #content-col { min-width: 0; }
.sidebar { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(2,6,23,.05); padding: 10px; position: sticky; top: 0; max-height: calc(100vh - 52px); overflow-y: auto; will-change: transform; }
.sidebar .section { border-bottom: 1px dashed var(--border); }
.sidebar .section:last-child { border-bottom: none; }
.sidebar .section-header { display:flex; align-items:center; justify-content:space-between; cursor: pointer; padding: 10px 8px; font-weight: 700; color: #0b3b40; border-radius: 8px; }
.sidebar .section-header:hover { background: #f5f8fb; }
.sidebar .section-header .left { display:flex; align-items:center; gap:8px; }
.sidebar .section-header .caret { transition: transform .2s ease; color:#536471; }
.sidebar .section.open .section-header .caret { transform: rotate(180deg); }
.sidebar .section-body { padding: 4px 0 10px 8px; display:none; }
.sidebar .section.open .section-body { display:block; }
.sidebar a.navlink, .sidebar button.navlink { display:flex; align-items:center; gap:8px; padding: 8px 10px; border-radius: 8px; color: #0b3b40; text-decoration: none; border: 1px solid transparent; margin: 4px 0; font-weight: 600; background: transparent; cursor: pointer; }
.sidebar a.navlink:hover, .sidebar button.navlink:hover { background: #f5f8fb; }
.sidebar a.navlink.active, .sidebar button.navlink.active { background: #e6f7f0; border-color: #b6ead4; color: #0b6b4f; }
.sidebar .nav-ico { width: 16px; height: 16px; color:#0b3b40; }

/* Tables responsiveness */
.data-table-wrapper { overflow-x: auto; }
.data-table { width: 100%; }

/* Unified Card styling across app */
.card {
  background: #ffffff;
  border: 1px solid #d9e3eb;
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  box-shadow:
    0 24px 60px rgba(2,6,23,.06),
    0 6px 18px rgba(2,6,23,.06);
  padding: 16px;
}
.card h3 { margin: 0 0 10px; color:#0b3b40; }

/* Toolbar (lists header) */
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap: wrap; }
.toolbar .group { display:flex; align-items:center; gap:8px; flex-wrap: wrap; }
.toolbar .group .btn { height:36px; }
.toolbar .divider { width:1px; height:24px; background: var(--border); margin: 0 4px; }
@media (max-width: 720px) {
  .toolbar { align-items: flex-start; }
  .toolbar .group { width: 100%; justify-content: space-between; }
}

/* Sidebar collapse (mobile) */
.sidebar-toggle { display:inline-flex; align-items:center; gap:6px; margin-right: 8px; border:1px solid var(--border); background:#fff; border-radius:8px; padding:8px 10px; cursor:pointer; }
body.sidebar-collapsed .sidebar { display:none; }

/* Breadcrumb visible only when sidebar is collapsed */
.breadcrumb { display:none; align-items:center; gap:8px; color:#536471; font-weight:600; margin: 6px 0 10px; }
.breadcrumb .sep { color:#b0b8bf; }
.breadcrumb strong { color:#0b3b40; }
body.sidebar-collapsed .breadcrumb { display:flex; }

/* Password field helpers */
.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { flex: 1 1 auto; padding-right: 44px; }
.pass-toggle { position:absolute; right:6px; top:50%; transform: translateY(-50%); border:1px solid var(--border); background:#fff; border-radius:8px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.pass-meter { height:6px; border-radius:6px; background:#eef2f6; overflow:hidden; }
.pass-meter > span { display:block; height:100%; width:0%; transition: width .2s ease, background-color .2s ease; background:#ef4444; }

/* Lock scroll when modal open */
body.modal-open { overflow: hidden; }

/* Hide some table columns on small screens by index (index.html main table) */
@media (max-width: 1200px) {
  /* 7: Dirección, 8: Correo */
  table.data-table thead th:nth-child(7),
  table.data-table tbody td:nth-child(7),
  table.data-table thead th:nth-child(8),
  table.data-table tbody td:nth-child(8) { display:none; }
}
@media (max-width: 768px) {
  /* 5: Departamento */
  table.data-table thead th:nth-child(5),
  table.data-table tbody td:nth-child(5) { display:none; }
}

/* ICO page mobile tweaks */
@media (max-width: 768px) {
  .ico-container { padding: 0 12px; }
  .ico-section .form-field, .ico-actions { width: 100%; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-top: 52px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(15,157,165,0.08), rgba(44,196,138,0.04) 35%, rgba(255,255,255,0) 60%),
    var(--bg);
}

.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px clamp(12px, 2vw, 24px);
  min-height: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: fixed; top: 0; left: 0; right: 0; backdrop-filter: blur(6px);
  background: #089D9D; /* alineado con ICO header */
  z-index: 1000;
  will-change: transform;
  flex-wrap: nowrap;
  gap: 4px;
}
.brand { display: flex; gap: 4px; align-items: center; color: #ffffff; width: 100%; justify-content: space-between; }
.brand-lockup { height: 32px; width: auto; display: block; flex-shrink: 0; }
.brand-text { flex: 0 1 auto; }
.brand-text h1 { color:#ffffff; margin: 0; font-size: 0.95em; line-height: 1.1; }
.subtitle { margin: 0; color: #eaf6f7; font-size: 10px; display: none; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.import-export { display: flex; gap: 8px; }

.container { 
  padding: 16px clamp(16px, 3vw, 40px); 
  max-width: 1600px; 
  margin: 0 auto; 
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15,157,165,0.08);
  padding: 16px;
  margin-bottom: 16px;
}

.filters .filter-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.filters.collapsed .filter-grid {
  display: none;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { color: var(--muted); font-size: 12px; }
.form-field input, .form-field select, .form-field textarea {
  background: #ffffff; color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 10px;
  outline: none; transition: box-shadow .15s, border-color .15s;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.filters .form-field.span-1 { grid-column: span 1; }
.filters .form-field.span-2 { grid-column: span 2; }
.filters .form-field.span-3 { grid-column: span 3; }
.filters .form-field.span-4 { grid-column: span 4; }
.filters .form-actions { grid-column: span 1; display: flex; align-items: flex-end; }

@media (max-width: 900px) {
  .filters .filter-grid { grid-template-columns: 1fr; }
  .filters .form-field, .filters .form-actions { grid-column: 1 / -1; }
}

.btn {
  background: #ffffff; color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  font-weight: 600; letter-spacing: .2px;
}
.btn:hover { background: #f3fbfc; border-color: #cfe8eb; box-shadow: 0 2px 10px rgba(11,139,146,0.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.primary { background: linear-gradient(90deg, var(--primary), var(--accent)); border-color: transparent; color: #ffffff; }
.btn.outline { background: transparent; border-color: var(--primary); color: var(--primary-600); }
.btn.ghost { background: transparent; }
.btn.danger { background: linear-gradient(180deg, #ff7270, #ef5350); border-color: transparent; color: #ffffff; }
.btn.tiny { padding: 4px 8px; font-size: 12px; }
.btn.icon { padding: 6px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.btn.icon.outline { border-color: var(--primary); color: var(--primary-600); }
.row-actions { display: flex; gap: 6px; align-items: center; }

/* Botones en el banner principal (mejor combinación con el degradado) */
.app-header .btn {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.35);
  color: #ffffff;
  box-shadow: none;
}
.app-header .btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
  box-shadow: none;
}
.app-header .btn.primary {
  background: #ffffff;
  color: #0b8b92;
  border-color: transparent;
}
.app-header .btn.primary:hover {
  background: #f5ffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.app-header .btn.outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
}
.app-header .btn.outline:hover { background: rgba(255,255,255,0.10); }
.app-header .btn.ghost { background: transparent; border-color: transparent; color: #ffffff; }

.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.summary { color: var(--muted); font-size: 13px; }
.pagination { display: flex; gap: 8px; align-items: center; }

.table-wrap { overflow: auto; border-radius: 10px; border: 1px solid var(--border); }
/* Show and style bottom scrollbar */
.table-wrap { scrollbar-width: thin; } /* Firefox */
.table-wrap::-webkit-scrollbar { height: 10px; } /* WebKit */
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #dfe9ef, #d5e3ea); border-radius: 8px; border: 2px solid #ffffff; }
.data-table { width: 100%; border-collapse: collapse; background: #ffffff; table-layout: fixed; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody td { position: relative; z-index: 0; }
.data-table thead th { position: sticky; top: 0; background: #f0fbfc; text-align: left; font-weight: 700; color: #0b3b40; background-clip: padding-box; z-index: 10; will-change: transform; }
.data-table tbody tr { position: relative; }
.data-table tbody tr:hover { background: #f7fdfb; }

/* Ajustes específicos para columnas Correo (8) y Nodo (9) */
.data-table tbody td:nth-child(8) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table tbody td:nth-child(9) {
  white-space: nowrap;
}

/* Top synced scrollbar */
.table-scroll-top { overflow-x: auto; overflow-y: hidden; height: 10px; margin: 0 0 6px 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.table-scroll-top .scrollbar-spacer { height: 1px; }

/* Visual refinement for top horizontal scrollbar (Chromium/WebKit) */
.table-scroll-top::-webkit-scrollbar { height: 8px; }
.table-scroll-top::-webkit-scrollbar-track { background: transparent; }
.table-scroll-top::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #dfe9ef, #d5e3ea); border-radius: 8px; border: 2px solid #ffffff; }

/* Firefox */
.table-scroll-top { scrollbar-color: #d5e3ea transparent; scrollbar-width: thin; }

/* Sticky columns (left) */
.data-table thead th.sticky-left { position: sticky; left: 0; z-index: 4; background: #f0fbfc; border-right: 1px solid var(--border); }
.data-table thead th.sticky-left-2 { position: sticky; left: 56px; z-index: 4; background: #f0fbfc; border-right: 1px solid var(--border); }
.data-table tbody td:nth-child(1) { position: sticky; left: 0; background: rgba(255,255,255,0.99); z-index: 2; border-right: 1px solid var(--border); }
.data-table tbody td:nth-child(2) { position: sticky; left: 56px; background: rgba(255,255,255,0.99); z-index: 2; border-right: 1px solid var(--border); }

/* Sticky columns (right) with unified variables */
:root { --w-actions: 180px; --w-docs: 200px; --w-ico: 180px; --sep: 2px; --r-actions: 0px; --r-docs: 0px; --r-ico: 0px; }
.data-table thead th.sticky-right { position: sticky; right: var(--r-actions); z-index: 24; background: #f0fbfc; border-left: var(--sep) solid var(--border); background-clip: padding-box; box-shadow: -4px 0 8px rgba(0,0,0,0.05); }
.data-table thead th.sticky-right-2 { position: sticky; right: var(--r-docs); z-index: 23; background: #f0fbfc; border-left: var(--sep) solid var(--border); background-clip: padding-box; }
.data-table thead th.sticky-right-3 { position: sticky; right: var(--r-ico); z-index: 22; background: #f0fbfc; border-left: var(--sep) solid var(--border); background-clip: padding-box; }

.data-table tbody td.sticky-right, .data-table tbody td.sticky-right-2, .data-table tbody td.sticky-right-3 { box-sizing: border-box; text-align: center; overflow: hidden; background: #ffffff; }
.data-table tbody td.sticky-right { position: sticky; right: var(--r-actions); z-index: 14; border-left: var(--sep) solid var(--border); box-shadow: -4px 0 8px rgba(0,0,0,0.05); }
.data-table tbody td.sticky-right-2 { position: sticky; right: var(--r-docs); z-index: 13; border-left: var(--sep) solid var(--border); }
.data-table tbody td.sticky-right-3 { position: sticky; right: var(--r-ico); z-index: 12; border-left: var(--sep) solid var(--border); }
.data-table tbody td.sticky-right .row-actions { justify-content: center; flex-wrap: nowrap; }
.data-table tbody td.sticky-right-3, .data-table tbody td.sticky-right-2 { display: table-cell; vertical-align: middle; }
.data-table tbody td.sticky-right-2 .paap-badges { display: flex; gap: 6px; }
.data-table tbody td.sticky-right-2, .data-table tbody td.sticky-right-3 { white-space: nowrap; }
.ico-actions { display: inline-flex; align-items: center; gap: 8px; }

/* Overlap masks to hide any bleed between sticky-right columns and scrolled content */
.data-table thead th.sticky-right::before,
.data-table thead th.sticky-right-2::before,
.data-table thead th.sticky-right-3::before {
  content: none;
}
.data-table tbody td:nth-child(13)::before,
.data-table tbody td:nth-child(12)::before,
.data-table tbody td:nth-child(11)::before {
  content: none;
}

/* Left sticky edge masks (to avoid bleed under the left sticky columns) */
.data-table thead th.sticky-left::after,
.data-table thead th.sticky-left-2::after {
  content: "";
  position: absolute; right: -12px; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(to right, rgba(240,251,252,0.95), rgba(240,251,252,0));
  pointer-events: none;
}
.data-table tbody td:nth-child(1)::after,
.data-table tbody td:nth-child(2)::after {
  content: "";
  position: absolute; right: -12px; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(to right, rgba(255,255,255,0.98), rgba(255,255,255,0));
  pointer-events: none;
}
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* Center content for ICO and Acciones columns */
.data-table thead th.sticky-right,
.data-table thead th.sticky-right-3 { text-align: center; }
.data-table tbody td.sticky-right,
.data-table tbody td.sticky-right-3 { text-align: center; }
.data-table td.sticky-right .row-actions,
.data-table td.sticky-right-3 .row-actions { justify-content: center; }

/* ICO status indicator: tiny dot inline next to ICO button */
.ico-status-pill { display: none; width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; margin-left: 2px; flex: 0 0 auto; }
.ico-status-pill.sufficient { background:#16a34a; }
.ico-status-pill.acceptable { background:#0284c7; }
.ico-status-pill.poor { background:#d97706; }
.ico-status-pill.critical { background:#dc2626; }

/* Color coding for ICO gear button (data-action="ico") */
.btn.icon.process.state-sufficient { background: #dcfce7; color: #065f46; border-color: #a7f3d0; }
.btn.icon.process.state-acceptable { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.btn.icon.process.state-poor { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.btn.icon.process.state-critical { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.btn.icon.process.state-sufficient:hover { filter: saturate(1.1); }
.btn.icon.process.state-acceptable:hover { filter: saturate(1.1); }
.btn.icon.process.state-poor:hover { filter: saturate(1.1); }
.btn.icon.process.state-critical:hover { filter: saturate(1.1); }

/* Highlight Unlock button when ICO está bloqueado */
.btn.icon.outline.state-locked { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.btn.icon.outline.state-locked:hover { filter: saturate(1.05); }

/* PAAP badges */
.paap-badges { display:flex; gap:4px; align-items:center; justify-content:center; flex-wrap: wrap; }
.badge { font-size: 10px; padding: 1px 5px; border-radius: 999px; border: 1px solid var(--border); }
.badge.ok { background: #e6f7f0; border-color: #b6ead4; color: #0b6b4f; }
.badge.missing { background: #fff1f1; border-color: #ffd4d4; color: #a12525; }
.badge.unknown { background: #f1f5f9; border-color: #e2e8ee; color: #5b6b73; }
/* Pointer on badges to indicate action */
.paap-badges [data-badge] { cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.paap-badges [data-badge]:hover { box-shadow: 0 1px 6px rgba(11,139,146,0.15); border-color: var(--primary); }

/* Compact the PAAP cell */
.data-table td[data-paap-cell] { padding-top: 6px; padding-bottom: 6px; text-align: center; }
.data-table td[data-paap-cell] .btn { padding: 3px 6px; font-size: 11px; border-radius: 8px; margin-top: 4px; }

.app-footer { padding: 24px; text-align: center; color: var(--muted); }

/* Modal */
.modal { border: none; padding: 0; border-radius: 12px; width: min(720px, 96vw); background: transparent; }
.modal::backdrop { background: rgba(2,6,23,.35); backdrop-filter: blur(3px); }
.modal-content { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.modal-header { padding: 16px 16px 0; }
.modal-header h3 { margin: 0; }
.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-footer { padding: 16px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* PDF Viewer */
.pdf-viewer {
  min-height: 70vh;
  background: #f6fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Reports - Shared Styles (reportes.html, reportes_calificacion.html) */
.report-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.report-card { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.report-card h3 { margin: 0 0 6px; font-size: 13px; color: #536471; font-weight: 700; text-transform: uppercase; }
.report-card .value { font-size: 28px; font-weight: 800; color: var(--primary); margin: 0; }
.report-card.highlight { background: linear-gradient(135deg, #f0fbfc 0%, #e8f8fa 100%); border-color: var(--primary); }
.report-card.success .value { color: #10b981; }
.report-card.warning .value { color: #f59e0b; }
.report-card.danger .value { color: #ef4444; }

.chart-container { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.chart-container h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #0b3b40; }

.state-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.state-label { min-width: 120px; font-size: 13px; font-weight: 600; color: #536471; }
.state-progress { flex: 1; height: 24px; background: #f0fbfc; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.state-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #089D9D); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: #ffffff; font-size: 12px; font-weight: 700; }
.state-count { min-width: 40px; text-align: right; font-weight: 700; color: #0b3b40; }

.table-container { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th { background: #f0fbfc; padding: 12px; text-align: left; font-weight: 700; color: #0b3b40; border-bottom: 2px solid var(--border); font-size: 13px; }
.report-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.report-table tbody tr:hover { background: #f7fdfb; }

.filters { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filters button { padding: 8px 16px; border: 1px solid var(--border); background: #ffffff; border-radius: 6px; cursor: pointer; font-weight: 600; color: #0b3b40; transition: all 0.2s ease; }
.filters button:hover { background: #f0fbfc; border-color: var(--primary); }
.filters button.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }

th[data-sort] { position: relative; user-select: none; }
th[data-sort]:hover { background: #f0fbfc; }
th[data-sort]::after { content: ' \21C5'; opacity: 0.3; font-size: 12px; }

.filter-row { background: #f9fafb; border-top: 2px solid var(--border); }
.filter-row th { padding: 8px; border: none; }
.column-filter { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-family: inherit; }
.column-filter:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 157, 165, 0.1); }

/* Status badges (estado de diligenciamiento y calificación) */
.status-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-progress { background: #fef3c7; color: #92400e; }
.status-not-started { background: #fee2e2; color: #991b1b; }

/* Calificación ICO badges (Resultados) */
.rating-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.rating-suf { background:#dcfce7; color:#166534; }
.rating-ace { background:#fef3c7; color:#92400e; }
.rating-def { background:#fee2e2; color:#991b1b; }
.rating-cri { background:#fee2e2; color:#7f1d1d; border:1px solid #fecaca; }

/* Text color helpers for summary counters */
.rate-suf { color: #16a34a; }
.rate-ace { color: #f59e0b; }
.rate-def { color: #dc2626; }
.rate-cri { color: #991b1b; }
