.tablero-iniciativas {
  width: calc(100% - 20px);
  height: calc(100vh - 108px);
  margin: 8px auto;
  padding: 8px 10px 12px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  color: #071a34;
  font-family: Arial, sans-serif;
  background: #f8fafc;
}

.tablero-iniciativas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.tablero-iniciativas-eyebrow {
  margin: 0 0 6px;
  color: #d70663;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.tablero-iniciativas h1 {
  margin: 0;
  color: #071a34;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.tablero-iniciativas-header span {
  display: block;
  color: #475569;
  font-size: 15px;
  margin-top: 7px;
}

.tablero-iniciativas-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.tablero-iniciativas-actions .tablero-iniciativas-updated {
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
  margin: 0 8px 0 0;
}

.tablero-iniciativas-action {
  height: 44px;
  border-radius: 7px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 16px 30px rgba(15, 23, 42, .12);
}

.tablero-iniciativas-action i {
  font-size: 16px;
}

.tablero-iniciativas-action-dark {
  background: #071a34;
  color: #fff;
  border-color: #071a34;
}

.tablero-iniciativas-action-outline {
  background: #fff;
  color: #d70663;
  border-color: #e41462;
  box-shadow: none;
}

.tablero-iniciativas-resumen {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.tablero-resumen-card {
  min-height: 68px;
  padding: 10px 12px 10px 68px;
  background: #fff;
  border: 1px solid #dde4ee;
  border-radius: 10px;
  position: relative;
  display: grid;
  align-content: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}

.tablero-resumen-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.resumen-iniciativas .tablero-resumen-icon { background: linear-gradient(135deg, #e40063, #d10068); }
.resumen-vencidas .tablero-resumen-icon { background: linear-gradient(135deg, #ff7a73, #ef3945); }
.resumen-hoy .tablero-resumen-icon { background: linear-gradient(135deg, #ffbd71, #ff842a); }
.resumen-proximas .tablero-resumen-icon { background: linear-gradient(135deg, #ffe27a, #f2b51d); }
.resumen-sin-seguimiento .tablero-resumen-icon { background: linear-gradient(135deg, #2a9bff, #086de6); }
.resumen-finalizadas .tablero-resumen-icon { background: linear-gradient(135deg, #18c786, #00a767); }

.tablero-resumen-card strong {
  display: block;
  color: #071a34;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.tablero-resumen-card span:not(.tablero-resumen-icon) {
  color: #071a34;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 4px;
}

.tablero-iniciativas-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  background: #fff;
  border: 1px solid #dde4ee;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.tablero-iniciativas-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  box-sizing: border-box;
}

.tablero-iniciativas-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #c9005a 0%, #b90053 100%);
  color: #fff;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, .12);
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.tablero-iniciativas-table th:nth-child(1) { width: 6%; }
.tablero-iniciativas-table th:nth-child(2) { width: 19%; }
.tablero-iniciativas-table th:nth-child(3) { width: 13.5%; }
.tablero-iniciativas-table th:nth-child(4) { width: 17%; }
.tablero-iniciativas-table th:nth-child(5) { width: 9%; }
.tablero-iniciativas-table th:nth-child(6) { width: 12.5%; }
.tablero-iniciativas-table th:nth-child(7) { width: 11%; }
.tablero-iniciativas-table th:nth-child(8) { width: 12%; }

.tablero-iniciativas-table td {
  padding: 11px 10px;
  vertical-align: middle;
  border-right: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
  font-size: 14px;
  line-height: 1.28;
  background: #fff;
  cursor: default;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.tablero-iniciativas-table tr:nth-child(even) td {
  background: #fbfdff;
}

.tablero-iniciativas-table strong {
  display: block;
  color: #071a34;
  font-weight: 900;
}

.tablero-iniciativas-table small,
.tablero-iniciativas-table em {
  display: block;
  color: #334155;
  font-size: 12px;
  line-height: 1.25;
  margin-top: 7px;
}

.tablero-iniciativas-table em {
  color: #006fe6;
  font-style: normal;
  font-weight: 900;
}

.tablero-iniciativas-vigencia {
  font-weight: 900;
  text-align: center;
  font-size: 18px !important;
}

.tablero-iniciativas-etapa {
  display: inline-block;
  font-weight: 900;
}

.tablero-proxima {
  display: grid;
  gap: 3px;
}

.tablero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 94px;
  min-height: 28px;
  border-radius: 7px;
  padding: 6px 9px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #086de6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tablero-alerta {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #dbe3ed;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  padding: 7px 8px;
  text-align: center;
  font-weight: 900;
  box-sizing: border-box;
}

.tablero-alerta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.tablero-alerta strong {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.alerta-vencida {
  border-color: #fecaca;
  background: #fff7f7;
  color: #dc2626;
}

.alerta-proxima,
.alerta-hoy {
  border-color: #fed7aa;
  background: #fffaf0;
  color: #d97706;
}

.alerta-finalizada {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #059669;
}

.alerta-neutra,
.alerta-normal {
  border-color: #dbe3ed;
  background: #f8fafc;
  color: #475569;
}

.tablero-estado-doble {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #d6dee9;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.tablero-estado-doble b {
  color: #071a34;
  font-size: 20px;
  line-height: 1;
}

.tablero-estado-sistema {
  min-width: 0;
  flex: 1 1 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 4px 5px;
  border: 1px solid transparent;
  color: #071a34;
  font-weight: 900;
  text-align: center;
}

.tablero-estado-sistema small {
  margin: 0;
  font-size: 10px;
  color: #475569;
  font-weight: 900;
}

.tablero-estado-sistema strong {
  font-size: 12px;
  line-height: 1.05;
}

.estado-sistema-liquidado {
  background: #dff7ec;
  border-color: #a7f3d0;
}

.estado-sistema-legalizado {
  background: #eaf3ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.estado-sistema-en-ejecucion {
  background: #fff7e6;
  border-color: #fed7aa;
}

.estado-sistema-firmado {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.tablero-sectorial {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 900;
  color: #334155;
  text-transform: uppercase;
  max-width: 100%;
}

.tablero-sectorial i {
  min-width: 22px;
  font-size: 22px;
}

.tablero-sectorial span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.sectorial-ambiente i { color: #7ac943; }
.sectorial-salud i { color: #118ae8; }
.sectorial-infraestructura i { color: #fb9814; }
.sectorial-educacion i { color: #7c3aed; }
.sectorial-gobierno i { color: #0f766e; }
.sectorial-na i { color: #64748b; }

.tablero-seguimiento {
  display: grid;
  gap: 2px;
}

.tablero-seguimiento strong {
  font-size: 14px;
}

.tablero-iniciativas-empty {
  text-align: center;
  color: #64748b;
  font-weight: 900;
  padding: 28px !important;
}

body.tablero-iniciativas-exclusivo {
  padding-left: 0 !important;
}

body.tablero-iniciativas-exclusivo .app-sidebar {
  display: none !important;
}

body.tablero-iniciativas-exclusivo .tablero-iniciativas {
  width: calc(100% - 20px);
  height: calc(100vh - 104px);
}

body.tablero-iniciativas-en-fullscreen .tablero-iniciativas-action-fullscreen,
#tableroIniciativas:fullscreen .tablero-iniciativas-action-fullscreen {
  display: none !important;
}

#tableroIniciativas:fullscreen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px 14px;
  background: #f8fafc;
}

#tableroIniciativas:fullscreen .tablero-iniciativas-header {
  padding-top: 0;
}

@media (max-width: 1200px) {
  .tablero-iniciativas {
    width: calc(100% - 20px);
    height: auto;
    overflow: visible;
  }

  .tablero-iniciativas-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tablero-iniciativas h1 {
    font-size: 32px;
  }

  .tablero-iniciativas-resumen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1500px) {
  .tablero-iniciativas-table th {
    padding: 10px 8px;
    font-size: 13px;
  }

  .tablero-iniciativas-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .tablero-alerta {
    padding: 6px;
  }

  .tablero-alerta span,
  .tablero-alerta strong {
    font-size: 11px;
  }

  .tablero-sectorial {
    gap: 5px;
    font-size: 9.5px;
  }

  .tablero-sectorial i {
    min-width: 18px;
    font-size: 19px;
  }

  .tablero-badge {
    min-width: 86px;
    padding: 6px 7px;
    font-size: 11px;
  }
}
