
    .gradient-custom {
        
    /* fallback for old browsers */
    background: #6a11cb;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1));

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
    }

 .gradient-custom2 {
   background-color:rgb(67, 105, 143) !important /* background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);*/;
/* background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);*/

    }

   .primarylight{

     background-color: rgb(67, 105, 143) !important;
     color: white !important;
/*background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);*/

   }

li a {
      color: #ffffff; /* Rojo */
      
   
   }

   /* Cambiar el color del enlace normal */
a {
   color: #031b48; /* Rojo */
   

}

/* Cambiar el color del enlace cuando el ratón pasa por encima (hover) */
a:hover {
   color: #157da3; /* Verde */
}

/* Paginador: números siempre negros y visibles (no heredar blanco/azul de li a / a:hover) */
.pagination .page-link,
.pagination li a {
   color: #000 !important;
}
.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination li a:hover,
.pagination li a:focus {
   color: #000 !important;
}
.pagination .page-item.active .page-link {
   color: #fff !important;
}

/* Cambiar el color del enlace cuando ha sido visitado */
a:visited {
   color: #031b48; /* Azul */
}

/* Cambiar el color del enlace cuando es activo (al hacer clic) */
a:active {
   color: #157da3; /* Naranja */
}

.color-default{
   color: #e0e2e5; /* Color de fondo */
}
.color-primary{
   color: rgba(33, 150, 243, 0.8); /* Color azul más opaco */
}
.color-secondary{
   color: rgba(158, 158, 158, 0.8); /* Color gris más opaco */
}
.color-danger{
   color: rgba(176, 0, 32, 0.8); /* Color de fondo más opaco */
}
.color-warning{
   color: rgba(251, 192, 45, 0.8); /* Color de fondo más opaco */
}
.color-info{
   color: rgba(0, 188, 212, 0.8); /* Color de fondo más opaco */
}
.color-success{
   color: rgba(76, 175, 80, 0.8); /* Color de fondo más opaco (verde) */
}


.btn-default{
   background-color: #e0e2e5; /* Color de fondo */
   color: rgb(0, 0, 0); /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}
.btn-default:hover {
   background-color: #d2d4d8; /* Color de fondo más oscuro al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}
/* Botón Primario */
.btn-primary {
   background-color: rgba(33, 150, 243, 0.8); /* Color azul más opaco */
   color: white; /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.btn-primary:hover {
   background-color: rgba(21, 101, 192, 0.8); /* Color azul más oscuro y opaco al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}

/* Botón Secundario */
.btn-secondary {
   background-color: rgba(158, 158, 158, 0.8); /* Color gris más opaco */
   color: white; /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.btn-secondary:hover {
   background-color: rgba(97, 97, 97, 0.8); /* Color gris más oscuro y opaco al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}


/* Botón de Peligro */
.btn-danger {
   background-color: rgba(176, 0, 32, 0.8); /* Color de fondo más opaco */
   color: white; /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.btn-danger:hover {
   background-color: rgba(121, 0, 0, 0.8); /* Color de fondo más opaco al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}

/* Botón de Advertencia */
.btn-warning {
   background-color: rgba(251, 192, 45, 0.8); /* Color de fondo más opaco */
   color: black; /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.btn-warning:hover {
   background-color: rgba(249, 168, 37, 0.8); /* Color de fondo más opaco al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}


/* Botón de Información */
.btn-info {
   background-color: rgba(0, 188, 212, 0.8); /* Color de fondo más opaco */
   color: white; /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.btn-info:hover {
   background-color: rgba(0, 151, 167, 0.8); /* Color de fondo más opaco al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}

/* Botón Success */
.btn-success {
   background-color: rgba(76, 175, 80, 0.8); /* Color de fondo más opaco (verde) */
   color: white; /* Color del texto */
   border: none; /* Sin borde */
   border-radius: 4px; /* Bordes redondeados */
   padding: 8px 14px; /* Espaciado interno */
   font-size: 14px; /* Tamaño de fuente */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave */
   transition: background-color 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.btn-success:hover {
   background-color: rgba(56, 142, 60, 0.8); /* Color de fondo más opaco al pasar el mouse */
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Sombra más suave al pasar el mouse */
}


/* ============================================================
   UI-kit: cabecera + filtros + tabla responsive (tabla→cards)
   Estándar para listados/reportes. Prefijo .rtc-   ·  jul-2026
   Definir una vez, reusar en todas las vistas de listado.
   ============================================================ */
:root{
  --bc-ink:#16202e; --bc-muted:#8a96a8; --bc-bd:#e9edf2; --bc-line:#f1f4f7;
  --bc-cyan:#22c1dc; --bc-cyan-d:#1390b0; --bc-slate:#242c41;
}
/* Título de página (idéntico a resumen/panel): título grande + subtítulo */
.page-head{ margin:18px 2px 2px; }
.page-head h1{ font-weight:800; font-size:23px; color:var(--bc-ink); letter-spacing:-.02em; margin:0; }
.page-head p{ font-weight:500; font-size:13.5px; color:var(--bc-muted); margin:6px 0 0; }

/* Cabecera de sección — look claro de resumen/panel (antes era slate oscuro).
   Fondo gris-azul claro, texto oscuro, borde izq. cyan, ícono en chip blanco. */
.rtc-head{ display:flex; align-items:center; gap:11px;
  background:linear-gradient(180deg,#eaeff6,#e1e8f1); color:var(--bc-ink);
  border:1px solid #d3dce8; border-left:3px solid var(--bc-cyan);
  border-radius:14px; padding:14px 18px; margin:18px 0 14px; box-shadow:0 1px 2px rgba(16,32,54,.05); }
.rtc-head .rtc-ic{ width:32px; height:32px; border-radius:9px; background:#fff;
  box-shadow:0 1px 2px rgba(16,32,54,.07); display:inline-flex; align-items:center; justify-content:center;
  font-size:15px; color:var(--bc-cyan-d); flex:none; }
.rtc-head .rtc-ic i{ color:var(--bc-cyan-d) !important; }
.rtc-head h1{ font-size:15px; font-weight:700; letter-spacing:-.01em; margin:0; color:var(--bc-ink); }
.rtc-head small{ color:#56657a; font-size:12px; }
.rtc-head a{ color:var(--bc-cyan-d); font-weight:600; }
/* Meta a la derecha de la cabecera (totales, resumen) */
.rtc-head .rtc-meta{ margin-left:auto; text-align:right; font-size:12.5px; color:#56657a; font-weight:600; }
.rtc-head .rtc-meta b{ color:var(--bc-ink); }

/* Tira compacta de KPIs (idéntica a .cartera-strip de resumen), reutilizable en cualquier listado */
.rtc-strip{ display:flex; background:#fff; border:1px solid var(--bc-bd); border-radius:14px;
  box-shadow:0 1px 2px rgba(16,32,54,.04); overflow:hidden; margin:16px 0 22px; }
.rtc-strip .cell{ flex:1 1 0; padding:13px 18px; border-left:1px solid var(--bc-line); min-width:0; }
.rtc-strip .cell:first-child{ border-left:0; }
.rtc-strip .cell.link{ cursor:pointer; transition:background .15s ease; }
.rtc-strip .cell.link:hover{ background:#f7fafc; }
.rtc-strip .c-lbl{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--bc-muted); }
.rtc-strip .c-val{ font-size:20px; font-weight:700; letter-spacing:-.02em; color:var(--bc-ink); margin:5px 0 2px; line-height:1.05; font-variant-numeric:tabular-nums; }
.rtc-strip .c-val.good{ color:#1f9d6b; } .rtc-strip .c-val.warn{ color:#cf8a26; }
.rtc-strip .c-meta{ font-size:11.5px; color:#aab3c0; line-height:1.4; }
.rtc-strip .c-meta b{ color:#5c6879; font-weight:600; }
@media (max-width:900px){
  .rtc-strip{ display:grid; grid-template-columns:1fr 1fr; }
  .rtc-strip .cell{ border-left:1px solid var(--bc-line); border-top:1px solid var(--bc-line); }
  .rtc-strip .cell:nth-child(odd){ border-left:0; }
  .rtc-strip .cell:nth-child(-n+2){ border-top:0; }
}
@media (max-width:520px){
  .rtc-strip{ grid-template-columns:1fr; }
  .rtc-strip .cell{ border-left:0; border-top:1px solid var(--bc-line); }
  .rtc-strip .cell:first-child{ border-top:0; }
}
/* Tarjetas de info (label + valor textual) — cabeceras de detalle/ficha.
   Distinto de .rtc-kpi (valor numérico grande): aquí el valor es texto normal. */
.rtc-info{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:0 0 8px; }
.rtc-info .cell{ background:#fff; border:1px solid var(--bc-bd); border-radius:12px; padding:12px 14px; box-shadow:0 1px 2px rgba(16,32,54,.04); }
.rtc-info .i-lbl{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--bc-muted); display:flex; align-items:center; gap:6px; }
.rtc-info .i-lbl i{ color:var(--bc-cyan-d) !important; }
.rtc-info .i-val{ font-size:14px; font-weight:600; color:var(--bc-ink); margin-top:6px; line-height:1.3; word-break:break-word; }
.rtc-info .i-val a{ color:var(--bc-cyan-d); font-weight:700; }
.rtc-info .i-sub{ font-size:11.5px; color:var(--bc-muted); margin-top:2px; }

.rtc-filters{ background:#fff; border:1px solid var(--bc-bd); border-radius:12px; padding:14px 16px;
  margin-bottom:16px; box-shadow:0 1px 2px rgba(16,32,54,.04); }
.rtc-filters .rtc-lbl{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--bc-muted); margin-bottom:4px; display:block; }
.rtc-count{ font-size:13px; color:var(--bc-muted); margin:2px 0 12px; }
.rtc-count b{ color:var(--bc-ink); font-weight:700; }
.rtc-wrap{ background:#fff; border:1px solid var(--bc-bd); border-radius:12px; overflow:hidden;
  box-shadow:0 1px 2px rgba(16,32,54,.04); }
.rtc-scroll{ overflow-x:auto; }
table.rtc{ width:100%; border-collapse:collapse; font-size:13px; margin:0; }
table.rtc thead th{ text-align:left; font-size:10.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color:var(--bc-muted); background:#fafbfc; padding:10px 12px;
  border-bottom:1px solid var(--bc-bd); white-space:nowrap; }
table.rtc tbody td{ padding:10px 12px; border-bottom:1px solid var(--bc-line); color:#2f3a4b; vertical-align:middle; }
table.rtc tbody tr:last-child td{ border-bottom:0; }
table.rtc tbody tr:hover{ background:#f7fafc; }
table.rtc .rtc-n{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
table.rtc .rtc-strong{ font-weight:700; color:var(--bc-ink); }
table.rtc .rtc-id{ font-weight:700; color:var(--bc-ink); font-variant-numeric:tabular-nums; }
.rtc-empty{ padding:26px; text-align:center; color:var(--bc-muted); }
.rtc-act{ display:inline-flex; gap:6px; white-space:nowrap; }
@media (max-width:820px){
  .rtc-wrap{ border:0; box-shadow:none; background:transparent; overflow:visible; }
  .rtc-scroll{ overflow-x:visible; }
  table.rtc thead{ display:none; }
  table.rtc, table.rtc tbody, table.rtc tr, table.rtc td{ display:block; width:100%; }
  table.rtc tr{ background:#fff; border:1px solid var(--bc-bd); border-radius:12px;
    box-shadow:0 1px 2px rgba(16,32,54,.04); margin:0 0 12px; padding:4px 2px; }
  table.rtc tbody tr:hover{ background:#fff; }
  table.rtc td{ border-bottom:1px solid var(--bc-line); padding:9px 14px;
    display:flex; justify-content:space-between; align-items:center; gap:14px; text-align:right; }
  table.rtc tbody tr td:last-child{ border-bottom:0; }
  table.rtc td::before{ content:attr(data-label); font-size:10.5px; font-weight:700;
    letter-spacing:.05em; text-transform:uppercase; color:var(--bc-muted); text-align:left; flex:none; }
  table.rtc td.rtc-actcell::before{ content:none; }
  table.rtc td.rtc-actcell{ justify-content:flex-end; }
  table.rtc .rtc-id{ font-size:15px; }
}

/* KPIs compactos reutilizables (resumen de métricas sobre un listado) */
.rtc-kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:0 0 16px; }
@media (max-width:820px){ .rtc-kpis{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:460px){ .rtc-kpis{ grid-template-columns:1fr; } }
.rtc-kpi{ background:#fff; border:1px solid var(--bc-bd); border-radius:12px; padding:12px 14px;
  box-shadow:0 1px 2px rgba(16,32,54,.04); }
.rtc-kpi .k-lbl{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--bc-muted); }
.rtc-kpi .k-val{ font-size:20px; font-weight:700; letter-spacing:-.02em; color:var(--bc-ink);
  margin-top:5px; line-height:1.1; font-variant-numeric:tabular-nums; }
.rtc-kpi.is-accent{ border-color:#bfe6ee; background:#f4fbfc; }
.rtc-kpi.is-accent .k-val{ color:var(--bc-cyan-d); }

/* Card contenedora — envuelve el CONTENIDO de vistas tipo formulario/ficha.
   El título va en .rtc-head (afuera); el form/contenido va adentro de .rtc-card. */
.rtc-card{ background:#fff; border:1px solid var(--bc-bd); border-radius:14px;
  box-shadow:0 1px 2px rgba(16,32,54,.04); padding:18px 20px; margin:0 0 16px; }
.rtc-card > .rtc-card-title{ font-size:14px; font-weight:700; color:var(--bc-ink); margin:0 0 12px; }
.rtc-card label, .rtc-card .control-label{ font-weight:600; color:var(--bc-ink); font-size:13px; }
.rtc-card .form-group{ margin-bottom:14px; }

/* ====== Popover (Bootstrap) a tono con el sistema ====== */
.popover{ border:1px solid var(--bc-bd); border-radius:12px; box-shadow:0 10px 30px rgba(16,32,54,.16);
  font-family:inherit; max-width:300px; }
.popover .popover-header{ background:linear-gradient(180deg,#eaeff6,#e1e8f1); color:var(--bc-ink);
  font-weight:700; font-size:12.5px; letter-spacing:-.01em; border-bottom:1px solid #d3dce8;
  border-radius:12px 12px 0 0; padding:8px 13px; }
.popover .popover-body{ color:#3a4757; font-size:12.5px; line-height:1.45; padding:9px 13px; }
.popover .popover-body p{ margin:0 0 4px; }
.popover .popover-body p:last-child{ margin-bottom:0; }
.popover .popover-body b{ color:var(--bc-ink); }
/* la flecha hereda el borde/fondo del popover en Bootstrap 5, no requiere override de color */

/* ====== Afordancia de clic: todo elemento clickeable debe verse clickeable ====== */
.cursorp{ cursor:pointer; }
/* Filas de tabla clickeables: cursor + realce de hover para que se note */
tr.cursorp{ cursor:pointer; }
.rtc tr.cursorp:hover td, table tr.cursorp:hover td{ background:#f2f9fb; }

/* ====== Select2: ocultar de verdad el <select> original ======
   Los select2.css del proyecto no traen la regla estándar .select2-hidden-accessible,
   y el <select> original (aunque clipeado) conserva su ancho natural — con opciones
   largas (razones sociales) mide 1700px+ y genera scroll horizontal en toda la página. */
/* selector con elemento (select.…) para ganarle también a utilitarias tipo
   .w-full{width:100%!important} registradas inline después de esta hoja */
select.select2-hidden-accessible, input.select2-hidden-accessible,
.select2-hidden-accessible{
    border:0 !important; clip:rect(0 0 0 0) !important;
    -webkit-clip-path:inset(50%) !important; clip-path:inset(50%) !important;
    height:1px !important; overflow:hidden !important; padding:0 !important;
    position:absolute !important; width:1px !important; white-space:nowrap !important;
}
