body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #fff;
  font-weight: 300;
}

p {
  color: #b3b3b3;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
  -webkit-transition: .1s all ease;
  -o-transition: .1s all ease;
  transition: .1s all ease;
}

a,
a:hover {
  text-decoration: none !important;
}

.content {
  padding: 7rem 0;
}

h2 {
  font-size: 20px;
}

.custom-table {}

.custom-table thead tr,
.custom-table thead th {
  border-top: none;
  border-bottom: none !important;
}

.custom-table tbody th,
.custom-table tbody td {
  color: #777;
  font-weight: 400;
  padding-bottom: 20px;
  padding-top: 20px;
  font-weight: 300;
}

.custom-table tbody th small,
.custom-table tbody td small {
  color: #b3b3b3;
  font-weight: 300;
}

.custom-table tbody .persons {
  padding: 0;
  margin: 0;
}

.custom-table tbody .persons li {
  padding: 0;
  margin: 0 0 0 -15px;
  list-style: none;
  display: inline-block;
}

.custom-table tbody .persons li a {
  display: inline-block;
  width: 36px;
}

.custom-table tbody .persons li a img {
  border-radius: 50%;
  max-width: 100%;
}

.custom-table tbody tr th,
.custom-table tbody tr td {
  position: relative;
  -webkit-transition: .1s all ease;
  -o-transition: .1s all ease;
  transition: .1s all ease;
}

.custom-table tbody tr th:before,
.custom-table tbody tr th:after,
.custom-table tbody tr td:before,
.custom-table tbody tr td:after {
  -webkit-transition: .1s all ease;
  -o-transition: .1s all ease;
  transition: .1s all ease;
  content: "";
  left: 0;
  right: 0;
  position: absolute;
  height: 1px;
  background: #bfbfbf;
  width: 100%;
  opacity: 0;
  visibility: hidden;
}

.custom-table tbody tr th:before,
.custom-table tbody tr td:before {
  top: -1px;
}

.custom-table tbody tr th:after,
.custom-table tbody tr td:after {
  bottom: -1px;
}

.custom-table tbody tr:hover th,
.custom-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.03);
}

.custom-table tbody tr:hover th:before,
.custom-table tbody tr:hover th:after,
.custom-table tbody tr:hover td:before,
.custom-table tbody tr:hover td:after {
  opacity: 1;
  visibility: visible;
}

.custom-table tbody tr.active th,
.custom-table tbody tr.active td {
  background: rgba(0, 0, 0, 0.03);
}

.custom-table tbody tr.active th:before,
.custom-table tbody tr.active th:after,
.custom-table tbody tr.active td:before,
.custom-table tbody tr.active td:after {
  opacity: 1;
  visibility: visible;
}

/* Custom Checkbox */
.control {
  display: block;
  position: relative;
  margin-bottom: 25px;
  cursor: pointer;
  font-size: 18px;
}

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  border-radius: 4px;
  border: 2px solid #ccc;
  background: transparent;
}

.control--radio .control__indicator {
  border-radius: 50%;
}

.control:hover input~.control__indicator,
.control input:focus~.control__indicator {
  border: 2px solid #007bff;
}

.control input:checked~.control__indicator {
  border: 2px solid #007bff;
  background: #007bff;
}

.control input:disabled~.control__indicator {
  background: #e6e6e6;
  opacity: 0.6;
  pointer-events: none;
  border: 2px solid #ccc;
}

.control__indicator:after {
  font-family: 'icomoon';
  content: '\e5ca';
  position: absolute;
  display: none;
}

.control input:checked~.control__indicator:after {
  display: block;
  color: #fff;
}

.control--checkbox .control__indicator:after {
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -52%);
  -ms-transform: translate(-50%, -52%);
  transform: translate(-50%, -52%);
}

.control--checkbox input:disabled~.control__indicator:after {
  border-color: #7b7b7b;
}

.control--checkbox input:disabled:checked~.control__indicator {
  background-color: #007bff;
  opacity: .2;
  border: 2px solid #007bff;
}

.tr-selected {
  background-color: rgba(0, 0, 0, 0.03) !important;
  /* Color de fondo para la fila seleccionada - igual que hover */
}

.tr-selected td,
.tr-selected th {
  background: rgba(0, 0, 0, 0.03) !important;
}

/* Estilos personalizados para la tabla */
.tbl-head-action {
  width: auto;
  text-align: end;
}

.tbl-btn-action {
  min-width: 32px;
  max-width: 32px;
  width: 32px;
  height: 32px;
}

.tbl-foot-btn-actions {
  text-align: end;
}

.tbl-foot-btn-actions button {
  min-width: 32px;
  max-width: 32px;
  width: 32px;
  height: 32px;
}

/* Modo Dark - Background transparente */
@media (prefers-color-scheme: dark) {
  body,
  html,
  .container,
  .container-fluid {
    background-color: transparent !important;
  }
}

/* Para aplicaciones que usan data-bs-theme="dark" */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] html,
[data-bs-theme="dark"] .container,
[data-bs-theme="dark"] .container-fluid {
  background-color: transparent !important;
}

/* Para aplicaciones que usan clase .dark */
.dark body,
.dark html,
.dark .container,
.dark .container-fluid {
  background-color: transparent !important;
}

/* Sobrescribir específicamente la variable --bs-body-bg en modo dark */
[data-bs-theme="dark"] {
  --bs-body-bg: transparent !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bs-body-bg: transparent !important;
  }
}

/* Estilos de hover para tablas en modo dark */
@media (prefers-color-scheme: dark) {
  .custom-table tbody tr:hover th,
  .custom-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.1) !important; /* Blanco semi-transparente para mejor visibilidad */
  }
}

/* Para aplicaciones que usan data-bs-theme="dark" */
[data-bs-theme="dark"] .custom-table tbody tr:hover th,
[data-bs-theme="dark"] .custom-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1) !important; /* Blanco semi-transparente para mejor visibilidad */
}

/* Para aplicaciones que usan clase .dark */
.dark .custom-table tbody tr:hover th,
.dark .custom-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1) !important; /* Blanco semi-transparente para mejor visibilidad */
}

/* Alternativa usando variable CSS si existe, sino usa el color directo */
[data-bs-theme="dark"] {
  --hover-bg-dark: rgba(33, 37, 41, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hover-bg-dark: rgba(33, 37, 41, 0.8);
  }
}