.title-magistraturas {
  font-size: 1.5rem;
  color: #000;
  font-weight: 700 !important;
}

.table-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 20px 0;
}

.table-card .table-responsive {
  overflow-x: auto;
}

.table-card table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}

.table-card tbody tr.accordion:nth-child(odd) {
  background-color: #ffffff;
}
.table-card tbody tr.accordion:nth-child(even) {
  background-color: rgba(255, 155, 184, 0.1);
}

.table-card th {
  color: #000;
  text-transform: uppercase;
  font-size: 0.85em;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  word-break: normal;
}
.bg-mtsj {
  background: #ff9bb8;
}
.bg-mtdj {
  background: #8bb8ee;
}
.bg-mtd {
  background: #d4e3be;
}
.bg-pjpi {
  background: #ffc588;
}

.table-card td {
  border: 1px solid #e0e0e0;
  padding: 10px;
  text-align: center;
  font-size: 0.95em;
  word-break: normal;
}

.table-card tr.accordion {
  cursor: pointer;
}

.table-card tr.accordion:hover {
  background-color: rgba(80,37,94,0.05) !important;
  transition: background 0.2s ease;
}

.sub-table-container .subtabla {
  background: #fff;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  padding: 12px;
  margin: 10px 0;
}

.acordion-color-mtsj tbody tr:nth-child(even) {
  background-color: #ffd3e0;
}
.acordion-color-mtsj tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.acordion-color-mtdj tbody tr:nth-child(even) {
  background-color: #d3e3ff;
}
.acordion-color-mtdj tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.acordion-color-mtd tbody tr:nth-child(even) {
  background-color: #e8eedc;
}
.acordion-color-mtd tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.acordion-color-pjpi tbody tr:nth-child(even) {
  background-color: #ffe5c8;
}
.acordion-color-pjpi tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.color-pe { background-color: #B3C0AF !important; }
.color-pl { background-color: #BBBABA !important; }
.color-pj { background-color: #D5C2DD !important; }
.color-nulos { background-color: #EEE !important; }

.pagination {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pagination button {
  padding: 6px 12px;
  background-color: #50255e;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pagination button:hover:not([disabled]) {
  background-color: #6a3c80;
}
.pagination button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}
.pagination .page-btn.active {
  background-color: rgba(80,37,94,0.9);
  font-weight: bold;
}
.pagination .dots {
  color: #666;
  user-select: none;
}

.acta-disabled {
  display: inline-block;
  padding: 4px 8px;
  color: #999;
  background: #f0f0f0;
  border-radius: 4px;
  font-style: italic;
}

table td, table th {
  border: none !important;
}

@media (max-width: 767px) {
  .table-card th, 
  .table-card td {
    padding: 8px 6px;
    font-size: 0.85em;
  }

  .table-card {
    margin: 10px 0;
  }

  .subtabla {
    overflow-x: auto;
  }
}
