/* Tema UNICEF sobre FinDash: solo recolorea variables y agrega los componentes del portal. */
:root {
  --iq-primary: #00AEEF;
  --iq-primary-hover: #0090c8;
  --iq-light-primary: #e5f6fd;
  --iq-primary-rgb: 0, 174, 239;
  --iq-title-text: #2D2926;
  --iq-body-text: #5b5a5c;
  --iq-body-bg: #f3f6f9;
  --iq-secondary: #777779;
  --iq-success: #00A651;
  --iq-warning: #FFC20E;
  --iq-danger: #D2105C;
  --iq-info: #374EA2;
  --iq-dark: #2D2926;
  --iq-light-success: #e6f6ee;
  --iq-light-danger: #fbe7ef;
  --iq-light-warning: #fff6d9;
  --iq-light-info: #e9ecf6;
  --un-cyan: #00AEEF; --un-yellow: #FFC20E; --un-green: #00A651; --un-magenta: #D2105C; --un-indigo: #374EA2;
  --un-grey: #777779; --un-ink: #2D2926; --un-line: #e3e8ee;
}
body { font-family: Arial, Helvetica, sans-serif; background: var(--iq-body-bg); color: var(--iq-body-text); }
h1,h2,h3,h4,h5,h6 { font-family: Arial, Helvetica, sans-serif; color: var(--un-ink); }
.bg-primary, .btn-primary, .badge-primary { background-color: var(--un-cyan) !important; border-color: var(--un-cyan) !important; }
.btn-primary:hover { background-color: var(--iq-primary-hover) !important; }
.text-primary { color: var(--un-cyan) !important; }
.sign-in-page { background: linear-gradient(135deg, #00AEEF 0%, #0079b5 100%); }
.sign-in-page .bg-primary { background: #00AEEF !important; }
.sign-in-page-image { background: linear-gradient(160deg, #00AEEF, #374EA2); border-radius: 0 .5rem .5rem 0; }
.sign-in-detail h4 { font-weight: 300; font-size: 1.6rem; }
.login-msg { min-height: 1.4em; color: #D2105C; font-size: .9rem; margin-top: .75rem; text-align: center; }
.iq-sidebar-menu .iq-menu li a span { white-space: normal; }
.iq-sidebar-menu .iq-menu li a i.iq-arrow-left { font-size: 1.25rem; }
.header-logo span { font-weight: 300; letter-spacing: .3px; }
.cid-credit { padding: 14px 18px; font-size: 11px; color: #9aa3ad; border-top: 1px solid var(--un-line); }
.cid-credit img { height: 22px; opacity: .85; display: block; margin-bottom: 6px; }

/* ---- barra de filtros */
.filterbar { position: sticky; top: 0; z-index: 30; margin: 0 0 18px; }
.filterbar .iq-card-body { padding: 12px 18px; }
.filterbar .fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.filterbar label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--un-grey); margin-bottom: 3px; font-weight: 700; display: block; }
.filterbar .select2-container { width: 100% !important; }
.filterbar .select2-container--default .select2-selection--multiple { min-height: 34px; border: 1px solid var(--un-line); border-radius: 8px; }
.nbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--un-ink); }
.nbadge b { font-size: 18px; color: var(--un-cyan); }
.chip-active { background: var(--iq-light-primary); color: #007db3; border-radius: 999px; padding: 2px 10px; font-size: 12px; margin-right: 4px; display: inline-block; }

/* ---- encabezado de página */
.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; gap: 12px; }
.pagehead .eyebrow { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--un-grey); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.pagehead .eyebrow:before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: var(--un-cyan); }
.pagehead h2 { font-weight: 300; color: var(--un-cyan); font-size: 2.1rem; margin: 6px 0 0; }
.pagehead p { margin: 4px 0 0; color: var(--un-grey); max-width: 760px; }

/* ---- tarjetas */
.iq-card { border-radius: 14px; box-shadow: 0 2px 14px rgba(45, 41, 38, .06); border: 0; }
.qcard .iq-card-header h4, .qcard .card-title { font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.25; color: var(--un-ink); }
.qcard .qname { font-size: 12px; color: var(--un-grey); margin-top: 4px; line-height: 1.35; }
.qcard .qbase { font-size: 11px; color: var(--un-grey); }
.qcard .qbtn { border: 0; background: var(--iq-light-primary); color: #007db3; border-radius: 8px; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.qcard .qbtn:hover { background: var(--un-cyan); color: #fff; }
.subtopic { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--un-grey); font-weight: 700; margin: 6px 0 10px; display: flex; gap: 10px; align-items: center; }
.subtopic:after { content: ''; flex: 1; height: 1px; background: var(--un-line); }

/* ---- indicadores (anillos) */
.ind { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; transition: transform .18s, box-shadow .18s; border-radius: 14px; background: #fff; box-shadow: 0 2px 14px rgba(45, 41, 38, .06); height: 100%; }
.ind:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 174, 239, .18); }
.ind .ring { position: relative; width: 98px; height: 98px; flex: 0 0 98px; }
.ind .ring svg { display: block; }
.ind .ring .val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; color: var(--un-ink); letter-spacing: -.5px; }
.ind .ring .val small { font-size: 12px; font-weight: 400; margin-left: 1px; }
.ind .ico { position: absolute; left: -6px; top: -6px; width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 3px solid #fff; }
.ind .mod { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.ind .txt { font-size: 14px; line-height: 1.25; color: var(--un-ink); }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---- tablas de cruce */
.xt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.xt th { background: #f6f9fb; color: var(--un-ink); font-weight: 700; padding: 8px 10px; text-align: center; border-bottom: 2px solid var(--un-cyan); position: sticky; top: 0; }
.xt th:first-child, .xt td:first-child { text-align: left; min-width: 220px; max-width: 320px; }
.xt td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--un-line); font-variant-numeric: tabular-nums; }
.xt tr.base td { color: var(--un-grey); font-size: 12px; border-top: 2px solid var(--un-line); }
.xt .letter { font-size: 10px; color: var(--un-grey); font-weight: 400; display: block; }
.xt .sig { font-size: 10px; color: #007db3; font-weight: 700; margin-left: 3px; vertical-align: super; }
.xt .lowb { color: #b4bbc3; font-style: italic; }
.xt td.tot { background: #fbfdfe; font-weight: 700; }
.modal-xl-q .modal-dialog { max-width: 1100px; }
.mapwrap svg { width: 100%; height: auto; }
.mapwrap path { stroke: #fff; stroke-width: .6; transition: fill .2s, opacity .2s; cursor: pointer; }
.mapwrap path:hover { opacity: .82; }
.maplegend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--un-grey); justify-content: center; }
.maplegend i { display: block; width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d6f1fc, #00AEEF, #00537a); }
.fade-enter { animation: fadeup .35s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 37%, #eef2f6 63%); background-size: 400% 100%; animation: sk 1.3s infinite; border-radius: 12px; min-height: 160px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--un-grey); }
.hl-text p { font-size: 15px; line-height: 1.6; color: #3d3b3a; }
.method-table td:first-child { color: var(--un-grey); width: 32%; }
@media print { .iq-sidebar, .iq-top-navbar, .filterbar, .qbtn { display: none !important; } .content-page { margin: 0 !important; } }

/* ---- sin elementos del template: cargador propio (anillo cian) y sin ilustraciones */
#loading { background: #fff !important; }
#loading-center:after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 4px solid #d6f1fc; border-top-color: #00AEEF; animation: unspin .8s linear infinite; }
@keyframes unspin { to { transform: rotate(360deg); } }
.sign-in-detail .item { padding: 40px 30px; }
.sign-in-detail .item h4 { font-size: 1.9rem; margin-bottom: 14px !important; }
.sign-in-detail .item p { font-size: 1.05rem; opacity: .92; }
@media (max-width: 1199px) { .filterbar .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .filterbar .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- logos UNICEF / CID Gallup */
.header-logo .un-logo { height: 34px; width: auto; max-width: 100%; border-radius: 0 !important; }
.iq-sidebar .iq-navbar-logo { height: 70px; align-items: center; }
.iq-sidebar .iq-navbar-logo .header-logo { display: flex; align-items: center; max-width: 210px; }
.un-logo-login { display: block; margin: 0 auto 22px; height: 44px; width: auto; max-width: 100%; }
.cid-by { margin-top: 28px; text-align: center; font-size: 11px; color: #9aa3ad; letter-spacing: .6px; text-transform: uppercase; }
.cid-by img { display: block; margin: 6px auto 0; height: 40px; width: auto; }
.cid-credit img { height: 34px; width: auto; }
.sign-in-page-image .sign-in-detail { padding-top: 10px; }

/* ---- panel azul del login */
.un-emblem { width: 150px; height: 150px; margin: 8px auto 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 14px rgba(255,255,255,.14), 0 0 0 30px rgba(255,255,255,.07); }
.un-emblem img { width: 96px; height: auto; }
.un-ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; }
.sign-in-detail .owl-dots { margin-top: 10px; }

/* ---- panel azul del login (v2: sin escudo ni carrusel) */
.sign-in-page-image { display: flex; align-items: center; justify-content: center; }
.un-panel { max-width: 560px; margin: 0 auto; padding: 40px 34px; text-align: left; }
.un-kicker { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; opacity: .85; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.un-kicker:before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: #FFC20E; }
.un-title { color: #fff; font-weight: 300; font-size: 2.3rem; line-height: 1.15; margin-bottom: 14px; }
.un-sub { color: rgba(255,255,255,.92); font-size: 1.02rem; line-height: 1.5; margin-bottom: 26px; }
.un-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.un-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.un-chip i { font-size: 15px; }

/* ---- simetría de tarjetas: cabecera de altura pareja y gráfica centrada en el espacio sobrante */
.qcard .iq-card-body { display: flex; flex-direction: column; }
.qcard .qhead { min-height: 66px; }
.qcard [id^="ch-"] { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; }
.qcard [id^="ch-"] > .highcharts-container { margin: 0 auto; }
