 /* From Uiverse.io by SouravBandyopadhyay */
 .notification {
    display: flex;
    flex-direction: column;
    isolation: isolate;
    position: relative;
    width: 18rem;
    height: 8rem;
    background: #292b2c;
    border-radius: 1rem;
    overflow: hidden;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 16px;
    --gradient: linear-gradient(to bottom, #2eadff, #3d83ff, #7e61ff);
    --color: #32a6ff
  }

  .notification:before {
    position: absolute;
    content: "";
    inset: 0.0625rem;
    border-radius: 0.9375rem;
    background: #18181b;
    z-index: 2
  }

  .notification:after {
    position: absolute;
    content: "";
    width: 0.25rem;
    inset: 0.65rem auto 0.65rem 0.5rem;
    border-radius: 0.125rem;
    background: var(--gradient);
    transition: transform 300ms ease;
    z-index: 4;
  }

  .notification:hover:after {
    transform: translateX(0.15rem)
  }

  .notititle {
    color: var(--color);
    padding: 0.65rem 0.25rem 0.4rem 1.25rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 300ms ease;
    z-index: 5;
  }

  .notification:hover .notititle {
    transform: translateX(0.15rem)
  }

  .notibody {
    color: #99999d;
    padding: 0 1.25rem;
    transition: transform 300ms ease;
    z-index: 5;
  }

  .notification:hover .notibody {
    transform: translateX(0.25rem)
  }

  .notiglow,
  .notiborderglow {
    position: absolute;
    width: 20rem;
    height: 20rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle closest-side at center, white, transparent);
    opacity: 0;
    transition: opacity 300ms ease;
  }

  .notiglow {
    z-index: 3;
  }

  .notiborderglow {
    z-index: 1;
  }

  .notification:hover .notiglow {
    opacity: 0.1
  }

  .notification:hover .notiborderglow {
    opacity: 0.1
  }

  .note {
    color: var(--color);
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9rem;
    width: 75%;
  }

  .card1 {
    width: 285px;
    height: 254px;
    background: rgb(6, 130, 160);
    transition: all 0.4s;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 5px  rgba(0, 0, 0, 0.705);
    font-size: 30px;
    font-weight: 900;
  }
  
  .card1:hover {
    border-radius: 15px;
    cursor: pointer;
    transform: scale(1.2);
    box-shadow: 0px 0px 10px 5px  rgba(0, 0, 0, 0.705);
    background: rgb(17, 164, 250);
  }
  
  .first-content {
    height: 100%;
    width: 100%;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    border-radius: 15px;
  }
  
  .card1:hover .first-content {
    height: 0px;
    opacity: 0;
  }
  
  .second-content {
    height: 0%; /* Esto parece incorrecto, debe ser ajustado */
    width: 100%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    transition: all 0.4s;
    font-size: 12px; /* Tamaño de fuente pequeño */
    transform: rotate(90deg) scale(-1);
    flex-direction: column; /* Alinea los elementos verticalmente */
    text-align: center; /* Asegura que el texto esté centrado */
    padding: 1rem; /* Añade un pequeño padding alrededor */
    box-sizing: border-box; /* Incluye el padding en el cálculo del ancho y alto */
  }
  
  
  .card1:hover .second-content {
    opacity: 1;
    height: 100%;
    font-size: 1.8rem;
    transform: rotate(0deg);
  }
  
  .card1-container {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten a una nueva línea si no caben en una fila */
    gap: 3rem; /* Espacio entre las tarjetas */
    justify-content: start; /* Alinea las tarjetas a la izquierda */
  }



/* Global responsive safeguards */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.table-responsive,
.dataTables_wrapper,
.dataTables_scrollBody {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table td,
.table th {
  word-break: break-word;
}

.select2-container {
  max-width: 100% !important;
}

.notification {
  width: min(18rem, 100%);
}

.card1 {
  width: min(285px, 100%);
}

@media (max-width: 991.98px) {
  .content-wrapper {
    overflow-x: hidden;
  }

  .modal-dialog,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    margin: 0.5rem auto;
    max-width: calc(100vw - 1rem);
  }

  .card1-container {
    gap: 1rem;
  }

  .card1:hover {
    transform: scale(1.03);
  }
}

@media (max-width: 767.98px) {
  .content-header h1,
  .content-header .m-0 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .table td,
  .table th {
    font-size: 0.9rem;
    padding: 0.45rem;
  }

  #toast-container > div {
    width: min(22rem, calc(100vw - 1rem));
  }
}

/* =======================================================
   SIG PANEL DE CONTROL  (vistas/modulos/sig/panel.php)
   Estilos propios del panel de usuario del módulo SIG.
   Depende de: AdminLTE dark-mode, Bootstrap 4
   ======================================================= */

/* ── Contenedor principal ──────────────────────────────── */
.sig-panel { padding: 1.5rem 1rem 2rem; }

/* ── Título de sección (separador con línea) ───────────── */
.sig-section-title {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.sig-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Tarjetas KPI (grid de estados) ────────────────────── */
.sig-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem; margin-bottom: 1.75rem;
}
.sig-kpi {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid transparent;
  border-radius: 12px; padding: 1rem 1.1rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  transition: transform .2s, box-shadow .2s; cursor: default;
}
.sig-kpi:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.28); }
.sig-kpi-total   { border-top-color: #4a9eff; }
.sig-kpi-abierta { border-top-color: #39bde7; }
.sig-kpi-proceso { border-top-color: #ffc107; }
.sig-kpi-verif   { border-top-color: #9d74ff; }
.sig-kpi-cerrada { border-top-color: #33c06f; }
.sig-kpi-vencida { border-top-color: #ff6b7a; }
.sig-kpi-rechaz  { border-top-color: #fd7e14; }
.sig-kpi-icon    { font-size: 1.1rem; margin-bottom: 0.5rem; }
.sig-kpi-total   .sig-kpi-icon { color: #4a9eff; }
.sig-kpi-abierta .sig-kpi-icon { color: #39bde7; }
.sig-kpi-proceso .sig-kpi-icon { color: #ffc107; }
.sig-kpi-verif   .sig-kpi-icon { color: #9d74ff; }
.sig-kpi-cerrada .sig-kpi-icon { color: #33c06f; }
.sig-kpi-vencida .sig-kpi-icon { color: #ff6b7a; }
.sig-kpi-rechaz  .sig-kpi-icon { color: #fd7e14; }
.sig-kpi-val { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.sig-kpi-lbl { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }

/* ── Widget de cumplimiento anual ───────────────────────── */
.sig-compliance {
  border-radius: 14px; border: 1px solid;
  padding: 1.2rem 1.4rem; margin-bottom: 1.6rem;
  position: relative; overflow: hidden;
}
.sig-compliance::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  opacity: 0.08; background: currentColor; pointer-events: none;
}
.sig-compliance-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.95rem; }
.sig-compliance-title  { font-size: 0.88rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.sig-compliance-year   { font-size: 0.72rem; font-weight: 600; opacity: 0.65; background: rgba(255,255,255,0.1); padding: 0.15rem 0.55rem; border-radius: 20px; }
.sig-compliance-msg    { font-size: 0.81rem; opacity: 0.78; line-height: 1.45; margin-bottom: 1rem; }
.sig-progress-row      { display: flex; flex-direction: column; gap: 0.6rem; }
.sig-progress-meta     { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.28rem; }
.sig-progress-name     { font-size: 0.79rem; font-weight: 700; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 0.4rem; }
.sig-progress-count    { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.55); }
.sig-progress-track    { height: 8px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.sig-progress-fill     { height: 100%; border-radius: 99px; transition: width .6s ease; }
.sig-compliance-footer { margin-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.sig-compliance-tip    { font-size: 0.75rem; opacity: 0.55; display: flex; align-items: center; gap: 0.35rem; }
@keyframes sigPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,122,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(255,107,122,0); }
}
.sig-compliance.critical { animation: sigPulse 2.4s ease-in-out infinite; }

/* ── Tarjeta de gráfica / actividades ───────────────────── */
.sig-chart-card        { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); border-radius: 13px; overflow: hidden; height: 100%; }
.sig-chart-card-header { padding: 0.8rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.87rem; font-weight: 700; color: rgba(255,255,255,0.8); }
.sig-chart-card-body   { padding: 1rem 1.1rem; }
.sig-chart-wrap        { position: relative; height: 220px; }

/* ── Lista de actividades próximas ─────────────────────── */
.sig-act-list  { list-style: none; padding: 0; margin: 0; }
.sig-act-item  {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; padding: 0.75rem 0.9rem; border-radius: 10px;
  margin-bottom: 0.45rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07); transition: background .18s;
}
.sig-act-item:hover { background: rgba(255,255,255,0.06); }
.sig-act-dot   { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: #ff6b7a; box-shadow: 0 0 6px rgba(255,107,122,.55); }
.sig-act-name  { font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,0.85); line-height: 1.3; flex: 1; }
.sig-act-date  { font-size: 0.75rem; color: rgba(255,255,255,0.38); margin-top: 0.15rem; }
.sig-act-badge { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 6px; white-space: nowrap; }
.sig-act-badge-urgent { background: rgba(255,107,122,0.18); color: #ff6b7a; border: 1px solid rgba(255,107,122,0.3); }
.sig-act-badge-warn   { background: rgba(255,193,7,0.15);   color: #ffc107; border: 1px solid rgba(255,193,7,0.28); }
.sig-act-badge-ok     { background: rgba(57,189,231,0.14);  color: #39bde7; border: 1px solid rgba(57,189,231,0.25); }

/* ── Acciones rápidas ───────────────────────────────────── */
.sig-quick-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sig-quick-btn  {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.9rem; border-radius: 9px; font-size: 0.81rem;
  font-weight: 600; border: 1px solid; cursor: pointer;
  text-decoration: none; transition: background .18s, transform .15s;
}
.sig-quick-btn:hover { transform: translateY(-1px); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .sig-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sig-kpi-val  { font-size: 1.6rem; }
  .sig-compliance { padding: 1rem; }
}
