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

/* Header */
.header {
  height: 64px;
  padding-left: 94px;
  background-color: white;
  border-bottom: 1px solid #e6e6e6;
}

.header .logo {
  height: 48px;
}

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

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

.subheader.px-5 {
  padding-left: calc(3rem + 94px) !important;
}

.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 (min-width: 1158px) {
  .header {
    padding-left: 26px;
  }

  .subheader.px-5 {
    padding-left: calc(3rem + 26px) !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 991.98px) {
  .header {
    padding-left: 134px;
  }
}

@media screen and (max-width: 767.98px) {
  .header {
    padding-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.banner-light {
  background-color: transparent !important;
}

.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:not(.banner-light) 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.banner-light ul {
  color: var(--primary-color);
}

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

.banner.banner-light ul a {
  color: var(--primary-color);
}

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

.banner ul li {
  margin-right: 0.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: 0.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.banner.banner-light ul li:not(:last-child)::after {
  filter: var(--primary-filter);
}

/* 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: 0.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: rgba(63, 184, 175, 0.2);
  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 {
  position: absolute;
  top: 50%;
  left: 65px;
  transform: translate(0, -50%);
  color: var(--primary-color);
  white-space: nowrap;
  transition: opacity 0.4s ease-out;
}

.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: 0 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;
    max-width: 0;
  }

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

.drawer-container {
  --drawer-offset: 12px;
  --drawer-rail-width: 48px;
  --drawer-expanded-width: 320px;
  position: fixed;
  inset: var(--drawer-offset) auto var(--drawer-offset) var(--drawer-offset);
  z-index: 1040;
  user-select: none;
}

.drawer-mode-transition {
  transform-origin: top left;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.drawer-mode-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.drawer-mode-hidden {
  opacity: 0;
  transform: translateX(-6px) scale(0.98);
}

.system-drawer [x-cloak] {
  display: none !important;
}

.system-drawer .drawer {
  position: static;
  top: auto;
  display: block;
  width: var(--drawer-rail-width);
  max-width: none;
  height: 100%;
  overflow: visible;
  background-color: transparent;
  border-right: 0;
  color: var(--primary-color);
  text-align: left;
  transition:
    width 0.2s ease-out,
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.system-drawer .drawer.active {
  width: var(--drawer-expanded-width);
  max-width: none;
  overflow: visible;
}

.drawer-panel,
.drawer-compact-trigger,
.drawer-compact-menu {
  background-color: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12);
}

.drawer-panel {
  padding: 16px 4px;
  border-radius: 8px;
  overflow: visible;
}

.system-drawer .drawer:not(.active) .drawer-panel {
  overflow-x: hidden;
}

.system-drawer .drawer.active .drawer-panel {
  padding: 16px;
  border-radius: 12px;
}

.system-drawer .drawer-header {
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 8px;
  flex: 0 0 auto;
}

.system-drawer .drawer .drawer-header button {
  width: auto;
  flex-direction: row;
  justify-content: center;
  padding: 0;
}

.system-drawer .drawer-title {
  height: 32px;
}

.system-drawer .drawer:not(.active) .drawer-title {
  justify-content: center;
}

.system-drawer .drawer-title h2 {
  color: #333;
  font-size: 28px;
  line-height: 32px;
}

.system-drawer .drawer .drawer-toggle,
.system-drawer .drawer .drawer-search-trigger {
  width: 40px;
  height: 32px;
  padding: 4px 8px;
  border-radius: 6px;
}

.system-drawer .drawer:not(.active) .drawer-toggle {
  margin-left: 0 !important;
}

.system-drawer .drawer.active .drawer-toggle {
  width: 32px;
  min-width: 32px;
  padding: 4px;
}

.system-drawer .drawer .drawer-toggle > span,
.drawer-compact-trigger > span:last-child {
  display: flex;
}

.system-drawer .drawer-divider {
  height: 1px;
  margin: 13px 8px 14px;
  background-color: #e6e6e6;
}

.system-drawer .drawer.active .drawer-divider {
  margin-right: 8px;
  margin-left: 8px;
}

.system-drawer .drawer-search-trigger {
  flex: 0 0 auto;
}

.system-drawer .drawer-search.form-control {
  height: 32px;
  min-height: 32px;
  padding: 4px 36px 4px 12px;
  border-color: #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  background-image: url(../../../images/v2/icons/search-.svg);
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 24px;
}

.system-drawer .drawer-search.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.2);
}

.system-drawer .drawer-content {
  min-height: 0;
  padding-top: 12px;
  overflow: hidden;
}

.system-drawer .drawer-section-text {
  height: 24px;
  overflow: hidden;
  color: #666;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  padding-left: 0;
  visibility: visible;
  white-space: nowrap;
  opacity: 0;
}

.system-drawer .drawer.active .drawer-section-text {
  opacity: 1;
}

.system-drawer .drawer:not(.active) .drawer-section-text {
  background: linear-gradient(#e6e6e6, #e6e6e6) center / calc(100% - 16px) 1px no-repeat;
}

.system-drawer .drawer-items {
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.system-drawer .drawer:not(.active) .drawer-items {
  align-items: center;
  overflow-x: hidden;
}

.system-drawer .drawer.active .drawer-items {
  padding-top: 8px;
}

.system-drawer .drawer-item {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 32px;
  min-height: 32px;
  width: 100%;
  padding: 4px 16px;
  gap: 8px;
  border-radius: 6px;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.system-drawer .drawer:not(.active) .drawer-item {
  justify-content: center;
  width: 40px;
  padding: 4px 8px;
}

.system-drawer .drawer-item:hover,
.system-drawer .drawer-item:focus-visible,
.system-drawer .drawer-item.active {
  border-right: 0;
  color: var(--primary-color);
  background-color: rgba(var(--primary-color-rgb), 0.1);
  outline: none;
}

.system-drawer .drawer-item.active::before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 2px;
  width: 3px;
  border-radius: 999px;
  background-color: var(--primary-color);
}

.system-drawer .drawer-item--icon {
  display: flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.system-drawer .drawer .drawer-item.active .drawer-item--icon {
  margin-right: 0;
}

.system-drawer .drawer-item--tooltip {
  position: static;
  inset: auto;
  transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-drawer .drawer:not(.active) .drawer-item--tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  z-index: 2;
  width: max-content;
  max-width: 240px;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow:
    0 0 1px #ccc,
    0 4px 8px rgba(0, 0, 0, 0.08);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.system-drawer .drawer:not(.active) .drawer-item:hover .drawer-item--tooltip,
.system-drawer .drawer:not(.active) .drawer-item:focus-visible .drawer-item--tooltip {
  visibility: visible;
  opacity: 1;
}

.system-drawer .drawer-footer {
  flex: 0 0 auto;
}

.system-drawer .drawer-footer .drawer-divider {
  margin-top: 14px;
}

.system-drawer .drawer-compact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  padding: 4px 8px;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.system-drawer .drawer.active .drawer-compact-button {
  justify-content: flex-start;
  width: 100%;
  padding: 4px;
}

.system-drawer .drawer-compact-button:hover,
.system-drawer .drawer-compact-button:focus-visible {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  outline: none;
}

.drawer-compact {
  position: fixed;
  top: var(--drawer-offset);
  left: var(--drawer-offset);
  align-items: flex-start;
}

.drawer-compact-trigger {
  display: flex;
  align-items: center;
  width: 118px;
  height: 48px;
  padding: 8px;
  gap: 6px;
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 16px;
  line-height: 24px;
  overflow: hidden;
}

.drawer-compact-menu-button.v-btn.v-btn-small,
.drawer-default-button.v-btn.v-btn-icon {
  height: 32px;
  min-height: 32px;
}

.drawer-compact-menu-button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 12px;
  text-align: left;
}

.drawer-default-button.v-btn.v-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  padding: 4px;
}

.drawer-compact-menu-button.v-btn:hover:not([disabled]),
.drawer-compact-menu-button.v-btn:focus-visible,
.drawer-default-button.v-btn:hover:not([disabled]),
.drawer-default-button.v-btn:focus-visible {
  background-color: var(--primary-background) !important;
  border-color: transparent;
}

.drawer-compact-menu {
  position: absolute;
  top: 56px;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 264px;
  max-height: calc(100vh - 80px);
  padding: 8px;
  gap: 12px;
  border-radius: 12px;
}

.drawer-compact-menu .drawer-items {
  gap: 0;
}

.drawer-compact-menu .drawer-item {
  flex-basis: 32px;
  padding-right: 8px;
  padding-left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .system-drawer .drawer,
  .drawer-mode-transition {
    transition: none;
  }
}

/* Carousel */
.cyan-circle {
  background-color: transparent;
  border: 1px solid #008380 !important;
  width: 10px !important;
  height: 10px !important;
}

.cyan-circle.active {
  background-color: #008380;
}

#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: 0.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: #737373 !important;
  font-weight: 500;
  border-radius: 0px;
  font-size: 18px;
  border-bottom: 1px solid #737373;
  padding: 0.5rem 0.8125rem;
}

.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 #008380;
}

.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(0, 131, 128, 0.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:hover {
  color: var(--info-color) !important;
}

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

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

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

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

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

.v-tab.v-tab-error.active img,
.v-tab.v-tab-error:hover img {
  filter: var(--error-filter) !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: #eee;
}

.v-tab:hover .v-tab-count,
.v-tab.active .v-tab-count {
  background: var(--primary-background);
}

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

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

/* Filter */
.v-filter {
  width: 360px;
  height: 100vh;
  background-color: #fff;
  padding: 24px 8px;
  position: fixed;
  top: 0;
  right: -360px;
  z-index: 1040;
  transition: 0.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: 0.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: 0.5rem 1rem;
  font-weight: 500;
}

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

.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, 0.5);
}

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