/**
 * ESTILOS DE LA PÁGINA DE NOTIFICACIONES Y AVISOS OFICIALES
 * Concesión Vías del Nus - Vinus S.A.S.
 *
 * @author  Mateo Jaramillo Suarez
 * @email   teojaramillosuarez@gmail.com
 * @phone   3157456196
 */

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL
   ========================================================================== */
.notificaciones-page-section {
  padding: 40px 0 90px;
  background-color: #fafbfc;
  min-height: 70vh;
}

/* ==========================================================================
   2. BARRA SUPERIOR & CONTADOR
   ========================================================================== */
.notif-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.notif-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #004785;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.notif-counter-pill strong {
  color: #0079c2;
}

/* ==========================================================================
   3. BARRA DE BÚSQUEDA Y FILTRADO
   ========================================================================== */
.notif-filter-wrap {
  margin-bottom: 24px;
}

.notif-search-box {
  position: relative;
  max-width: 520px;
}

.notif-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.notif-search-box input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notif-search-box input:focus {
  border-color: #0079c2;
  box-shadow: 0 0 0 3px rgba(0, 121, 194, 0.12);
}

#clearNotifSearch {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 0;
}

/* ==========================================================================
   4. BLOQUES Y CONTENEDORES DE TABLA
   ========================================================================== */
.notif-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 35px;
}

.notif-block-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.notif-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
}

.notif-tag.predial-tag {
  color: #0284c7;
}

.notif-tag.judicial-tag {
  color: #059669;
}

.notif-block-title {
  font-size: 18px;
  font-weight: 800;
  color: #004785;
  margin: 0;
}

.notif-badge-count {
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   5. TABLAS DE NOTIFICACIONES
   ========================================================================== */
.notif-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.notif-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.notif-table thead tr {
  background: #004785;
  color: #ffffff;
}

.notif-table th {
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.notif-table th:last-child {
  border-right: none;
}

.notif-table td {
  padding: 16px 18px;
  font-size: 13.5px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}

.notif-table td:last-child {
  border-right: none;
}

.notif-table tbody tr:hover {
  background-color: #f8fafc;
}

.notif-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   6. ELEMENTOS INTERNOS Y CELDAS
   ========================================================================== */
.predio-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.notificado-name {
  color: #0f172a;
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

.comunicacion-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comunicacion-title {
  color: #0f172a;
  font-size: 13.5px;
  text-transform: capitalize;
}

.radicado-pill {
  font-size: 11.5px;
  color: #64748b;
  font-family: monospace, monospace;
}

.date-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.aviso-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aviso-text {
  margin: 0;
  line-height: 1.5;
  color: #334155;
  font-size: 13.5px;
}

.notif-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.notif-btn-pdf:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

/* ==========================================================================
   7. MENSAJE CUANDO NO HAY COINCIDENCIAS
   ========================================================================== */
.notif-no-results {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-top: 20px;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .notif-block-header {
    padding: 16px 18px;
  }
  .notif-block-title {
    font-size: 16px;
  }
  .notif-table th,
  .notif-table td {
    padding: 12px 14px;
  }
}
