
:root{
  --hdi-follow-primary:#006f3c;
  --hdi-follow-primary-2:#0a8b4a;
  --hdi-follow-dark:#064629;
  --hdi-follow-soft:#eef8f2;
  --hdi-follow-border:#dbe9df;
  --hdi-follow-text:#253246;
  --hdi-follow-muted:#6f7c8f;
  --hdi-follow-bg:#f4f7f5;
  --hdi-follow-orange:#a45a16;
  --hdi-follow-shadow:0 16px 38px rgba(26,62,42,.10);
}
body.hdi-followups-page{background:linear-gradient(180deg,#f4f7f5 0%,#edf3ef 100%)!important;color:var(--hdi-follow-text)}
.hdi-v3-followups{padding:22px 24px 48px;max-width:1780px;margin:0 auto}
.hdi-v3-followups__hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;padding:22px 26px;border-radius:22px;background:radial-gradient(circle at 92% 0%,rgba(255,255,255,.14),transparent 26%),linear-gradient(135deg,var(--hdi-follow-dark),var(--hdi-follow-primary) 58%,var(--hdi-follow-primary-2));color:#fff;box-shadow:var(--hdi-follow-shadow)}
.hdi-v3-followups__hero-main{display:flex;align-items:center;gap:16px;min-width:0}
.hdi-v3-followups__hero-icon{width:58px;height:58px;border-radius:17px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:1.35rem;flex:0 0 auto}
.hdi-v3-followups__eyebrow{display:block;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:#d9f99d}
.hdi-v3-followups__hero h1{margin:4px 0 5px;font-size:clamp(1.65rem,2vw,2.25rem);font-weight:900;line-height:1.05}
.hdi-v3-followups__hero p{margin:0;color:rgba(255,255,255,.86);font-weight:600;max-width:850px}
.hdi-v3-refresh-btn{min-height:44px;padding:0 16px;border-radius:12px;border:1px solid rgba(255,255,255,.26);background:#fff;color:var(--hdi-follow-dark);font-weight:900;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:.18s ease;flex:0 0 auto}
.hdi-v3-refresh-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.hdi-v3-refresh-btn:disabled{opacity:.65;cursor:wait;transform:none}
.hdi-v3-followups__summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.hdi-v3-summary-card{background:#fff;border:1px solid var(--hdi-follow-border);border-radius:17px;padding:14px 16px;box-shadow:0 8px 22px rgba(31,71,46,.06);display:flex;align-items:center;gap:13px}
.hdi-v3-summary-icon{width:42px;height:42px;border-radius:13px;background:#edf5f0;color:var(--hdi-follow-primary);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.hdi-v3-summary-card--followup .hdi-v3-summary-icon{background:#eef4fb;color:#3b6e9f}
.hdi-v3-summary-card--assignment .hdi-v3-summary-icon{background:#fff4e8;color:#a45a16}
.hdi-v3-summary-card span{display:block;color:var(--hdi-follow-muted);font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.hdi-v3-summary-card strong{display:block;margin-top:2px;font-size:1.5rem;line-height:1;color:#1f2d3d}
.hdi-v3-followups__card{background:#fff;border-radius:22px;padding:18px;box-shadow:var(--hdi-follow-shadow);border:1px solid var(--hdi-follow-border)}
.hdi-v3-followups__card-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:15px}
.hdi-v3-followups__card-head h2{margin:0;color:#1c2d3f;font-size:1.04rem;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.hdi-v3-followups__card-head h2 i{color:var(--hdi-follow-primary);margin-right:7px}
.hdi-v3-followups__card-head p{margin:4px 0 0;color:var(--hdi-follow-muted);font-size:.84rem}
.hdi-v3-quick-filter{display:inline-flex;align-items:center;padding:4px;border:1px solid var(--hdi-follow-border);border-radius:13px;background:#f8fbf9;gap:3px;flex-wrap:wrap}
.hdi-v3-filter-btn{min-height:35px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#5a687a;font-size:.78rem;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:.16s ease}
.hdi-v3-filter-btn:hover{background:#edf5f0;color:var(--hdi-follow-primary)}
.hdi-v3-filter-btn.is-active{background:var(--hdi-follow-primary);color:#fff;box-shadow:0 5px 12px rgba(0,111,60,.18)}
.hdi-v3-table-wrap{border:1px solid var(--hdi-follow-border);border-radius:16px;overflow:auto;background:#fff}
#tablaHdiV3Seguimientos{margin-bottom:0!important;border-collapse:separate!important;border-spacing:0!important;font-size:.82rem}
#tablaHdiV3Seguimientos thead th{position:sticky;top:0;z-index:2;background:#0a6138!important;color:#fff!important;border-color:#16764a!important;padding:13px 11px!important;font-weight:900;white-space:nowrap;vertical-align:middle}
#tablaHdiV3Seguimientos tbody td{padding:13px 11px!important;border-color:#e8efea!important;vertical-align:top;color:#667085;background:#fff;line-height:1.45}
#tablaHdiV3Seguimientos tbody tr:nth-child(even) td{background:#fbfdfc}
#tablaHdiV3Seguimientos tbody tr:hover td{background:#f3faf6!important}
.hdi-v3-date{min-width:108px;white-space:nowrap}
.hdi-v3-date strong{display:block;color:#253246;font-size:.82rem}
.hdi-v3-date span{display:block;color:#8a94a6;margin-top:2px;font-size:.76rem}
.hdi-v3-event{display:inline-flex;align-items:center;gap:6px;font-weight:900;font-size:.71rem;white-space:nowrap;border-radius:999px;padding:6px 9px;background:#eef3f7;color:#5b6878;border:1px solid #dce4eb}
.hdi-v3-event--assignment{background:#fff4e8;color:#9a4d0f;border-color:#f2cfaa}
.hdi-v3-case{min-width:145px}
.hdi-v3-case strong{display:block;color:#233247;font-size:.86rem;line-height:1.2}
.hdi-v3-case span{display:block;color:#8a94a6;margin-top:3px;font-size:.74rem}
.hdi-v3-person{min-width:170px}
.hdi-v3-person strong{display:block;color:#253246;line-height:1.25}
.hdi-v3-person span{display:block;color:#8a94a6;margin-top:3px;font-size:.73rem}
.hdi-v3-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:.71rem;font-weight:900;border:1px solid #dbe6de;background:#edf8f1;color:#17653b;white-space:nowrap}
.hdi-v3-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.75}
.hdi-v3-route{min-width:165px;color:#536173}
.hdi-v3-route strong{display:block;color:#324158;font-size:.79rem}
.hdi-v3-route span{display:block;margin-top:3px;color:#7b8798;font-size:.74rem}
.hdi-v3-action{display:block;min-width:180px;max-width:240px;color:#46556a;font-weight:700;white-space:normal}
.hdi-v3-comment{display:block;min-width:240px;max-width:360px;white-space:normal;color:#59677a;line-height:1.5}
.hdi-v3-comment:empty::after{content:"Sin comentario";color:#a3acb9;font-style:italic}
.hdi-v3-assigned{display:inline-flex;gap:7px;align-items:center;max-width:200px;white-space:normal;font-weight:900;color:var(--hdi-follow-primary);background:#eef8f2;border:1px solid #d4eadb;border-radius:10px;padding:7px 9px}
.hdi-v3-assigned-empty{color:#a3acb9;font-style:italic}
.dataTables_wrapper .row:first-child{align-items:center;margin-bottom:8px}
.dataTables_wrapper .dataTables_length label,.dataTables_wrapper .dataTables_filter label,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{font-weight:700;color:#536173}
.dataTables_wrapper .dataTables_length select,.dataTables_wrapper .dataTables_filter input{border:1px solid #cbded2;border-radius:10px;min-height:38px;background:#fff;padding:0 10px;outline:none}
.dataTables_wrapper .dataTables_filter input:focus,.dataTables_wrapper .dataTables_length select:focus{border-color:var(--hdi-follow-primary);box-shadow:0 0 0 3px rgba(0,111,60,.10)}
.page-item.active .page-link{background:var(--hdi-follow-primary)!important;border-color:var(--hdi-follow-primary)!important;color:#fff!important}
.page-link{color:var(--hdi-follow-primary);border-radius:9px!important;margin:0 2px}
.dataTables_scrollHead{border-radius:14px 14px 0 0}
@media(max-width:1100px){.hdi-v3-followups__card-head{align-items:flex-start;flex-direction:column}.hdi-v3-quick-filter{width:100%}.hdi-v3-filter-btn{flex:1;justify-content:center}}
@media(max-width:767px){.hdi-v3-followups{padding:14px 12px 32px}.hdi-v3-followups__hero{align-items:flex-start;flex-direction:column;padding:18px}.hdi-v3-followups__hero-main{align-items:flex-start}.hdi-v3-followups__summary{grid-template-columns:1fr}.hdi-v3-refresh-btn{width:100%;justify-content:center}.hdi-v3-followups__card{padding:12px}.hdi-v3-summary-card{padding:12px}.hdi-v3-quick-filter{display:grid;grid-template-columns:1fr}.hdi-v3-filter-btn{width:100%}}
