:root {
  --lightcolor: #7b7575;
  --darkcolor: #1f1e1e;
  --bgcolor: #f4f4f4;
  --white: #fff;
  --black: #000;
  --transparent: rgba(0, 0, 0, 0) fff;
  --lightcolorshadowfocus: #1f1e1e68;

  --mainfont: "Red Hat Display", sans-serif;
  --normalfontweight: 400;
  --semiboldfontweight: 500;
  --boldfontweight: 700;
  --normalfontstyle: normal;

  --pagetitlefontsize: calc(1.3rem + 0.5vw);
  --pagecategoryfontsize: calc(1rem + 0.5vw);
  --pagetitletablefontsize: calc(0.9rem + 0.5vw);
  --contentfontsize: calc(0.9rem + 0.3vw);
  --buttonfontsize: calc(0.7rem + 0.3vw);

  --defaulborderradius: 1rem;
  --defaultboxshadow: 0px 0px 20px rgba(0, 0, 0, 0.2);

  --subtitlelineh: 1;

  --lightfontsize: 0.8rem;
  --lightfontweight: 300;
}

/* MATTEO CUSTOM */

.text-dark {
  color: var(--black) !important;
}

.inner-content {
  display: flex;
  padding-left: 4.9rem;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: stretch;
  margin-bottom: 5rem;
}

.two-distance-elements,
.two-distance-elements-h {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.two-distance-elements-h {
  height: calc(3rem + 2.5vh);
}

.two-near-items {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  column-gap: 0.5rem !important;
}

.i-in-content,
.sort-table {
  color: var(--black);
  cursor: pointer;
}

.i-in-content {
  font-size: var(--contentfontsize);
  display: flex;
  align-items: center;
}

.i-in-content:hover,
.sort-table:hover {
  color: var(--lightcolor);
}

.list-border-settings {
  border-bottom: 1px;
  border-left: 0;
  border-right: 0;
  border-radius: 0 !important;
}

.title-row-category {
  display: flex;
  padding-left: 0.5rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bgcolor);
  height: calc(2rem + 2.5vh);
  padding-right: 1rem;
  border-color: var(--bs-border-color) !important;
  border-top: 1px solid;
}

.title-category {
  font-size: var(--pagecategoryfontsize);
  margin: 0 !important;
  padding: 0 !important;
  height: auto;
  font-weight: var(--boldfontweight);
  color: var(--black);
  text-transform: capitalize;
}

.title-table-category {
  font-size: var(--pagetitletablefontsize);
  height: auto;
  font-weight: var(--boldfontweight);
  color: var(--black);
  line-height: var(--subtitlelineh);
}

.page-title {
  font-size: var(--pagetitlefontsize);
  margin: 0 !important;
  padding: 0 !important;
  height: auto;
  font-weight: var(--boldfontweight);
  color: var(--black);
  text-transform: normal;
}

.table thead th {
  border-bottom: 0;
  background-color: var(--white);
}

td {
  font-weight: var(--lightfontweight);
  font-size: var(--contentfontsize);
  line-height: var(--subtitlelineh);
}

li {
  font-weight: var(--lightfontweight);
  font-size: var(--contentfontsize);
}

a {
  color: var(--lightcolor);
}

a:hover {
  color: var(--darkcolor);
}

.default-button,
.default-button-light,
.default-button-dark {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-size: var(--buttonfontsize);
  font-weight: var(--lightfontweight);
}

.default-button-light {
  color: var(--lightcolor) !important;
  background-color: var(--transparent) !important;
  border-color: var(--lightcolor) !important;
}

.default-button-dark {
  color: var(--white) !important;
  background-color: var(--lightcolor) !important;
  border-color: var(--lightcolor) !important;
}

.default-button-light:hover,
.default-button-dark:hover,
.default-button-light:active,
.default-button-dark:active,
.default-button-light:focus,
.default-button-dark:focus {
  border-color: var(--darkcolor) !important;
  color: var(--white) !important;
  background-color: var(--darkcolor) !important;
}
.default-button-light:focus,
.default-button-dark:focus,
.form-check-input:focus,
.form-check-input:checked:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--bgcolor);
  box-shadow: 0 0 0 0.25rem var(--lightcolorshadowfocus);
}

.btn.show {
  background-color: var(--darkcolor);
  border-color: var(--darkcolor);
}

.btn-close:focus {
  box-shadow: 0 0 0 0.25rem var(--lightcolorshadowfocus);
}

.form-check-input,
.form-control {
  border-color: var(--bgcolor);
  color: var(--black);
}

.form-check-input:checked,
.form-control:checked {
  background-color: var(--lightcolor);
  border-color: var(--lightcolor);
}

.page-link,
.page-link:hover,
.page-link:focus {
  color: var(--lightcolor);
}

.page-link:hover,
.page-link:focus {
  background-color: var(--lightcolor);
  color: var(--white);
  box-shadow: none;
}

.page-item.active .page-link {
  color: var(--white) !important;
  background-color: var(--lightcolor) !important;
  border-color: var(--bs-border-color);
}

.extra-inner-content {
  margin: 0.5rem !important;
  row-gap: 1.5rem;
}

.form-check-inline {
  margin-bottom: 1rem;
}

.dropdown-item,
.dropdown-item:focus,
.dropdown-item:hover {
  color: var(--black);
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: var(--bgcolor);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--white);
  background-color: var(--lightcolor);
}

.toast {
  border-color: var(--bgcolor) !important;
}

.toast-header {
  color: var(--lightcolor) !important;
  border-color: var(--bgcolor) !important;
}

/* Select2 Bootstrap 5 Theme */

.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option.select2-results__option--highlighted {
  color: var(--white) !important;
  background-color: var(--lightcolor) !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--bgcolor) !important;
  box-shadow: 0 0 0 0.15rem var(--lightcolorshadowfocus) !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-search__field:focus {
  border-color: var(--bgcolor) !important;
  box-shadow: 0 0 0 0.25rem var(--lightcolorshadowfocus) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
  border-color: var(--bgcolor) !important;
}

.select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-search
  .select2-search__field {
  box-shadow: none !important;
}

.select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-selection__rendered
  .select2-selection__choice {
  border-color: var(--lightcolor) !important;
  color: var(--black) !important;
}

.select2-container--bootstrap-5 .select2-selection {
  border-color: var(--bgcolor) !important;
}

/* SIDEBAR */

.logo-sidebar {
  vertical-align: middle;
  border-style: none;
  width: 5rem;
  margin-left: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--mainfont);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 4.875rem;
  background: var(--lightcolor);
  padding: 0.375rem 0.875rem;
  z-index: 99;
  transition: width 0.5s ease;
}

.sidebar.open {
  width: 15.625rem;
}

.sidebar .logo-details {
  height: 4.75rem;
  display: flex;
  align-items: center;
  position: relative;
}

.sidebar .logo-details .icon,
.sidebar .logo-details .logo_name {
  opacity: 0;
  transition: all 0.5s ease;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
  opacity: 1;
}

.sidebar .logo-details #btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 1.4375rem;
  text-align: center;
  cursor: pointer;
}

.sidebar.open .logo-details #btn {
  text-align: right;
}

.sidebar i {
  color: var(--lightcolor);
  height: 3.75rem;
  min-width: 3.125rem;
  font-size: 1.75rem;
  text-align: center;
  line-height: 3.75rem;
}

#btn {
  color: var(--white);
}

.sidebar .nav-list {
  margin-top: 1.25rem;
  height: 100%;
}

.sidebar li {
  position: relative;
  margin: 0.5rem 0;
  list-style: none;
}

.sidebar li .tooltip {
  position: absolute;
  top: -1.25rem;
  left: calc(100% + 0.9375rem);
  z-index: 3;
  background: var(--white);
  box-shadow: var(--defaultboxshadow);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-weight: var(--normalfontweight);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease, top 0.4s ease, transform 0.4s ease;
}

.sidebar li:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar.open li .tooltip {
  display: none;
}

.sidebar.open input {
  padding: 0 1.25rem 0 3.125rem;
}

.sidebar li a {
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 0.75rem;
  align-items: center;
  text-decoration: none;
  transition: background 0.4s ease;
  background: var(--white);
  border: 0.1px solid var(--white);
}

.sidebar li a:hover {
  background: var(--lightcolor);
  border: 0.1px solid var(--white);
}

.sidebar li a .links_name {
  color: var(--lightcolor);
  font-size: 0.9375rem;
  font-weight: var(--normalfontweight);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sidebar.open li a .links_name {
  opacity: 1;
  pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
  color: var(--white);
}

.sidebar li i {
  height: 3.125rem;
  line-height: 3.125rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.sidebar li img {
  height: 2.8125rem;
  width: 2.8125rem;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-right: 0.625rem;
}

.home-section {
  position: relative;
  min-height: 100vh;
  top: 0;
  left: 4.875rem;
  width: calc(100% - 4.875rem);
  transition: left 0.5s ease, width 0.5s ease;
  z-index: 2;
}

.sidebar.open ~ .home-section {
  left: 15.625rem;
  width: calc(100% - 15.625rem);
}

.home-section .text {
  display: inline-block;
  color: var(--lightcolor);
  font-size: 1.5625rem;
  font-weight: var(--semiboldfontweight);
  margin: 1.125rem;
}

@media (max-width: 420px) {
  .sidebar li .tooltip {
    display: none;
  }
}
