/* JuridiCloud v0.3.1: tablas interactivas; diseño transversal, sin dependencias. */
.table th,
.table td {
  text-align: center;
}
.table td .inline-form { justify-content: center; }
.table thead th { vertical-align: middle; }
.table.jc-filterable thead tr.jc-filter-row th {
  padding: 7px 8px 11px;
  background: #f7f9fc;
  border-bottom: 2px solid #e4e7ec;
}
.table .jc-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 30px;
  padding: 3px 0;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.table .jc-sort-button:hover { color: #174a8b; }
.table .jc-sort-button:focus-visible,
.table .jc-column-filter:focus-visible,
.jc-clear-filters:focus-visible { outline: 2px solid #174a8b; outline-offset: 2px; }
.table .jc-sort-icon { font-size: 12px; line-height: 1; opacity: .60; }
.table th[aria-sort="ascending"] .jc-sort-icon,
.table th[aria-sort="descending"] .jc-sort-icon { opacity: 1; color: #174a8b; }
.table .jc-column-filter {
  width: 100%;
  min-width: 105px;
  height: 33px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  padding: 6px 8px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: #182230;
  text-align: center;
}
.table .jc-column-filter::placeholder { color: #858e9d; opacity: 1; }
.jc-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 9px 12px;
  background: #fbfcff;
  border-bottom: 1px solid #e4e7ec;
  font-size: 12px;
  color: #667085;
}
.jc-clear-filters {
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  padding: 5px 9px;
  background: #fff;
  color: #174a8b;
  font-size: 12px;
  cursor: pointer;
}
.jc-clear-filters:disabled { opacity: .45; cursor: default; }
.table .jc-no-match td { background: #f8fafc; color: #667085; padding: 16px; }
.table tbody tr[hidden] { display: none !important; }
@media(max-width:820px) {
  .table.jc-filterable .jc-sort-button { min-width: 94px; }
  .table.jc-filterable .jc-column-filter { min-width: 94px; }
  .jc-table-tools { gap: 6px; }
}

/* v0.3.11: selector de roles en Usuarios; integrado con el filtrado de columnas. */
.jc-users-role-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e4e7ec;
  background: #fbfcff;
}
.jc-users-role-bar label { font-size: 13px; min-width: 105px; }
.jc-users-role-bar select {
  width: min(100%, 300px);
  min-height: 40px;
  background: #fff;
}
@media (max-width: 600px) {
  .jc-users-role-bar { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .jc-users-role-bar select { width: 100%; }
}
