@import url("./genericos.css");

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #f4f4f9;
  font-size: 0.875rem;
}

.navbar-brand img {
  width: 185px;
}

footer {
  background-color: #202020;
}

label:has(+ [required]) {
  font-weight: 500;
  &:after {
    content: " *";
    font-weight: bold;
    color: darkgrey;
  }
}

.ok {
  font-size: 20px !important;
  font-weight: bold !important;
  border: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #011627;
}

.validation-summary-valid {
  display: none;
}

.validation-summary-errors {
  ul {
    margin: 0;
  }

  &:not(.card-body) {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  color: var(--bs-danger);
}

.nav-item > a.active:not([role="tab"]),
.nav-item.dropdown:has(a.active) > a {
  color: var(--bs-primary) !important;
}

@media screen and (min-width: 992px) {
  /* >=992px = lg */
  .nav-item:has(a.active:not([role="tab"])) {
    border-bottom: 3px solid var(--bs-primary) !important;
    border-top: 3px solid var(--bs-white) !important;
  }
}

.nav-item {
  @media screen and (min-width: 992px) {
    /* >=992px = lg */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
  }
}

.offcanvas.show {
  padding: 1em;
}

header .nav-item > a:not(.dropdown-item) {
  font-weight: bold;
}

footer {
  font-size: 0.75rem;
}

footer .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.25);
}

tbody tr:has(td:first-child input[type="checkbox"]:checked:not([disabled])) td {
  background-color: var(--bs-info-bg-subtle);
}

.dt-container {
  width: 100%;
}

.card .form-control {
  background-color: #fbfbfb;
}

.card-footer .btn-link {
  padding-right: 1rem;
}

@media print {
  .dataTables_length,
  .dataTables_filter,
  .dataTables_paginate {
    display: none;
  }
}

.fs-small,
div.dataTables_info {
  font-size: 10px;
}

td,
th {
  font-size: 12px;
}

.filtro-booleano .form-switch {
  min-height: 0.75rem;
  margin-bottom: 0;

  .form-check-input:checked {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e");
  }
}

thead tr th:first-child {
  border-radius: 8px 0 0 8px;
}

thead tr th:last-child {
  border-radius: 0 8px 8px 0;
}

.table > thead > tr th {
  background-color: #f4f4f9;
  border-bottom-width: 0;
}

td:not(:first-of-type) {
  border-left-width: 1px;
  border-bottom-width: 1px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-primary);
}

.breadcrumb-item.active {
  text-decoration: none;
}

input[readonly],
.form-select:disabled,
.form-control.disabled,
.input-group:has(input[readonly], .form-select:disabled, .form-control.disabled) .input-group-text {
  color: #838383;
  border-color: whitesmoke;
  background-color: #fbfbfb;
}

.form-subtitle {
  color: #0a53be;
  margin-bottom: 0;
  margin-top: 2rem; /* equivale a mt-4 */
}

.iduni-form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 1rem;
  width: 100%;

  @media screen and (min-width: 992px) {
    /* >=992px = lg */
    grid-template-columns: repeat(12, 1fr);
  }
}

div:has(iframe[name="Imitate Email"]) {
  right: 20px !important;
}
