
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 1rem;
  background: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.tabla-responsive {
  width: 100%;
  overflow-x: auto;
}

.tabla-responsive table {
  min-width: 900px;
  border-collapse: separate;
}

table,
table.dataTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0px;
  margin-top: 1rem;
  clear: both;
  max-width: none !important;
}

table.dataTable th,
table.dataTable td {
  border-collapse: collapse !important;
  border-spacing: 0;
}

th,
td {
  padding: 0;
  text-align: left;
  background: #fff;
}

th {
  background: #f1f5f9;
}

tr {
  transition: background 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

tr:hover {
  background-color: #e0f7fa;
}

.filtros a {
  text-decoration: none;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: white;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 5px;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
}

.activo {
  border: 2px solid black;
}

.titulo-link {
  color: #1a202c;
  text-decoration: none;
  font-weight: 600;
}

.titulo-link:hover {
  color: #0077cc;
  text-decoration: underline;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: gray;
}

.sin-estado {
  background: #9e9e9e;
}

.col-estado {
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 12px !important;
  }

  .container {
    padding: 0.3rem !important;
  }

  table.dataTable,
  table.dataTable th,
  table.dataTable td {
    font-size: 12px !important;
    padding: 2px 3px !important;
    white-space: nowrap !important;
  }

  .filtros {
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }

  .filtros a {
    font-size: 0.9rem !important;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.6rem !important;
  }

  .titulo-link {
    font-size: 0.8rem !important;
  }

  button {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  input[type="text"] {
    font-size: 0.85rem !important;
  }

  .col-titulo {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .col-estado {
    text-align: left;
  }

  .titular {
    text-align: center;
  }
}