/*
  SUMMARY:
  - Header
  - Banner
  - Drawer
  - Pagination
  - Carousel
  - Tabs
  - Filter
  - Menu
  - Modal Change Vínculo
*/

/* Header */
.header {
  height: 64px;
  margin-left: 56px;
  background-color: white;
  border-bottom: 1px solid #E6E6E6;
}

.header .logo {
  height: 48px;
}

.header .logo.vec {
  height: 50px;
}

.header .logo.lais {
  height: 40px;
}

.subheader {
  height: 48px;
  margin-left: 56px;
  background: white;
  display: flex;
  align-items: center;
  font-size: 1.125rem;
}

.subheader-dark {
  background: var(--dark-color);
  color: white;
}

.header .profile-picture {
  width: 40px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
}

.header .dropdown-item {
  display: flex;
  font-weight: 500;
  color: var(--primary-color);
}

.header .dropdown-item:hover {
  background-color: var(--primary-background);
}

.header .dropdown-item:active {
  background-color: var(--primary-color);
  color: white;
}

.header .dropdown-item:active img {
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 1200px) {
  .subheader button {
    height: auto !important;
    font-size: 0.9rem !important;
  }
}

@media screen and (max-width: 768px) {
  .header {
    margin-left: 0;
  }

  .header .logo {
    height: 36px;
  }

  .header .logo.vec {
    height: 30px;
  }
}


/* Banner */
.banner {
  padding: 8px 0;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
}

.banner:has(h1) {
  padding: 0;
  min-height: 64px;
}

.banner h1 {
  color: white;
  font-size: 2rem;
  margin: 0;
  display: flex;
}

.banner h1 img {
  margin-right: 0.5rem;
}

.banner img {
  filter: brightness(0) invert(1) !important;
}

.banner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  color: white;
  font-size: 14px;
}

.banner ul a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  display: inherit;
  font-size: .875rem !important;
}

.banner ul li img{
  margin-right: .3125rem;
  width: 1rem;
}

.banner ul li {
  margin-right: .5rem;
  display: flex;
  align-items: center;
}

.banner ul li:not(:last-child) a {
  opacity: 0.5;
}

.banner ul li:not(:last-child) a:hover {
  opacity: 1;
}

.banner ul li:not(:last-child)::after {
  content: "";
  width: 1rem;
  height: 1rem;
  display: inline-block;
  background: url(../../../images/v2/icons/arrow.right.svg) no-repeat center;
  background-size: contain;
  margin-left: .5rem;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}


/* Drawer */
.drawer {
  background-color: white;
  width: 100%;
  max-width: 56px;
  height: 100%;
  position: fixed;
  top: 0;
  text-align: center;
  user-select: none;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #E6E6E6;
  transition: max-width 0.2s ease-out;
}

.close-menu:hover {
  cursor: pointer; 
}

.divisor {
  height: 1px;
  background-color: #E6E6E6;
  width: 90%;
  margin-left: 5%;
}

.menu--text {
  font-weight: 600;
  font-size: 20px;
  line-height: 29px;
  color: #3FB8AF;
}

.drawer.active {
  max-width: 350px;
  overflow-y: auto;
  overflow-x: hidden;
}

.drawer .drawer-header {
  height: 80px;
}

.drawer .drawer-header button {
  background: none;
  border: none;
  padding: 10px 0;
  color: var(--primary-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.drawer .drawer-header button:focus {
  outline-color: var(--primary-color);
}

.drawer.active .drawer-header button {
  flex-direction: row;
  justify-content: left;
}

.drawer .drawer-item {
  position: relative;
  display: flex;
  padding: .875rem 0;
  cursor: pointer;
  transition: background-color 0.3s ease-out;
  text-decoration: none;
  border-radius: 0;
}

.drawer-item.acessar {
  background-color: var(--primary-color);
  width: calc(100% -15px);
  height: 40px;
  padding: 0;
  margin: 8px auto;
  border-radius: 5px;
}

.drawer .drawer-item.active {
  background: var(--primary-background);
  border-right: 5px solid var(--primary-color);
}

.drawer .drawer-item.acessar {
  width: calc(100% - 15px);
}

.drawer .drawer-item img {
  margin: auto;
}

.drawer .drawer-item--icon {
  width: 55px;
}

.drawer .acessar .drawer-item--icon {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer .drawer-item.active .drawer-item--icon {
  margin-right: -5px;
}

.drawer .drawer-item--tooltip {
  transition: opacity 0.4s ease-out;
}

.drawer .drawer-item--tooltip {
  position: absolute;
  top: 50%;
  left: 65px;
  transform: translate(0, -50%);
  color: var(--primary-color);
  white-space: nowrap;
}

.drawer:not(.active) .drawer-item--tooltip {
  min-width: 100%;
  visibility: hidden;
  opacity: 0;
}

.drawer:not(.active) .drawer-item:hover .drawer-item--tooltip {
  visibility: visible;
  opacity: 1;
  background: var(--primary-color);
  color: white;
  padding: 0 5px;
  border-radius: 5px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.03);
}

.drawer.active .acessar .drawer-item--tooltip {
  color: white;
}

.drawer-section-text {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 500;
  text-align: left;
  padding-left: 10px;
  visibility: hidden;
  white-space: nowrap;
}

.drawer.active .drawer-section-text {
  visibility: visible;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1039;
  display: none;
}

.drawer-backdrop.active {
  display: block;
}

@media screen and (max-width: 768px) {
  .drawer {
    display: none;
  }

  .drawer.mobile{
    right: 0;
    left: auto;
  }

  .drawer.mobile {
    max-width: 0px;
  }
  
  .drawer.mobile.active{
    display: inline;
    max-width: 300px;
  }
}

/* Carousel */
.cyan-circle {
  background-color: transparent;
  border: 1px solid var(--primary-color) !important;
  width: 10px !important;
  height: 10px !important;
}

.cyan-circle.active {
  background-color: var(--primary-color);
}

#info-btn:hover {
  color: #0B486B !important;
  background-color: #CEDAE1 !important;
}

/* Pagination */
.v-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.v-pagination__description {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-color);
}

.v-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.v-pagination__button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  width: 2rem;
  height: 2rem;
  transition: .3s;
  user-select: none;
}

.v-pagination__button--active {
  background-color: var(--primary-color);
  color: white;
}

.v-pagination__button:hover {
  background-color: var(--primary-color);
  color: white;
}

.v-pagination__button:hover img, .v-pagination__button:focus-visible img {
  filter: brightness(0) invert(1);
}

.v-pagination__button:focus-visible {
  box-shadow: none;
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  color: white;
}

@media screen and (min-width: 992px) {
  .v-pagination {
    flex-direction: row;
  }
}

/* Tabs */
.v-tab {
  text-align: center;
  color: var(--primary-color) !important;
  font-weight: 500;
  border-radius: 0px;
  font-size: 18px;
  border-bottom: 1px solid var(--primary-color);
  padding: .5rem .8125rem;
  filter: grayscale(100%);
}

.v-tab img {
  filter: var(--disabled-filter) !important;
}

.v-tab:hover {
  cursor: pointer;
  color: var(--primary-color) !important;
}

.v-tab.active {
  color: var(--primary-color) !important;
  border-bottom: 4px solid var(--primary-color)
}

.v-tab.active img,
.v-tab:hover img {
  filter: var(--primary-filter) !important;
}

.v-tab:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), .5);
}

.v-tab.v-tab-warning:hover {
  color: var(--warning-color-dark) !important;
}

.v-tab.v-tab-warning.active {
  color: var(--warning-color-dark) !important;
  border-bottom: 4px solid  var(--warning-color-dark);
}

.v-tab.v-tab-warning.active img,
.v-tab.v-tab-warning:hover img {
  filter: var(--warning-dark-filter) !important;
}

.v-tab.v-tab-warning:focus-visible {
  box-shadow: 0 0 0 0.2rem #946a007c;
}

.v-tab.v-tab-success:hover {
  color: var(--success-color) !important;
}

.v-tab.v-tab-success.active {
  color: var(--success-color) !important;
  border-bottom: 4px solid  var(--success-color);
}

.v-tab.v-tab-success.active img,
.v-tab.v-tab-success:hover img {
  filter: var(--success-filter) !important;
}

.v-tab.v-tab-success:focus-visible {
  box-shadow: 0 0 0 0.2rem #17854573;
}

.v-tab.v-tab-info {
  color: var(--info-color) !important;
  border-color: var(--info-color) !important;
}

.v-tab.v-tab-info.active {
  border-color: var(--info-color) !important;
}

.v-tab.v-tab-info:focus-visible {
  box-shadow: 0 0 0 0.2rem #446bb883;
}

.v-tab.v-tab-error {
  color: var(--error-color) !important;
  border-color: var(--error-color) !important;
}

.v-tab.v-tab-error.active {
  border-color: var(--error-color) !important;
}

.v-tab.v-tab-error:focus-visible {
  box-shadow: 0 0 0 0.2rem #dc35467e;
}

.v-tab-count {
  width: max-content;
  height: 20px;
  padding: 0 8px;
  font-size: 14px;
  text-align: center;
  margin: 0 auto;
  border-radius: 9999px;
  background: var(--primary-background);
}

.v-tab.v-tab-info .v-tab-count {
  background: var(--info-background);
}

.v-tab.v-tab-error .v-tab-count {
  background: var(--error-background);
}

.v-tab.v-tab-error.active .v-icon {
  filter: var(--error-filter);
}


/* Filter */
.v-filter {
  width: 360px;
  height: 100vh;
  background-color: #fff;
  padding: 24px 8px;
  position: fixed;
  top: 0;
  right: -360px;
  z-index: 1040;
  transition: .3s ease-out;
}

.v-filter.active {
  right: 0;
}

.v-filter .accordion-button {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 20px;
}

.v-filter .accordion-button:not(.collapsed) {
  background-color: white !important;
}

.v-filter .accordion-button::after {
  filter: var(--primary-filter);
  background-image: url('../../../images/v2/icons/arrow.down.svg') !important;
  width: 24px;
  background-size: 24px;
}

.v-filter__badge {
  display: inline-block;
  background: var(--error-color);
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 22px;
  border-radius: 50%;
  text-align: center;
  color: white;
  transition: .2s ease-out;
}

.v-filter__badge.v-filter__badge--small {
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
}

.v-filter__activeField {
  background: var(--primary-background);
}

.v-filter__activeField input,
.v-filter__activeField select:not(.select2-hidden-accessible),
.v-filter__activeField .select2 {
  border-color: var(--primary-color);
}


/* Menu */
.v-menu .dropdown-item {
  font-size: 1.125rem;
  padding: .5rem 1rem;
  font-weight: 500;
}


/* Modal Alterar Vínculo */
#changeVinculoModal .vinculo-modal-item:hover {
  cursor: pointer;
  background-color: #CEDAE1;
}

#changeVinculoModal .vinculo-modal-item.selected {
  color: white;
  background-color: #0B486B;
}

/* Modal Visualizar Unidade */
#viewModeModal .unidade-item:hover {
  cursor: pointer;
  background-color: #CCC;
}

#viewModeModal .unidade-item.selected {
  color: white;
  background-color: #333;
}

/* Full Loading */
.v-fullscreen {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  visibility: hidden;
}

.v-fullscreen.active {
  visibility: visible;
}

.v-fullscreen-loading {
  background-color: rgba(0, 0, 0, .5);
}

.v-fullscreen-viewmode {
  overflow-y: auto;
  min-height: 100vh;
  height: 100%;
  background-color: rgba(0, 0, 0, .8);
  z-index: 9999998;
}
