:root {
  --vermelho: #d31f31;
  --primary-color: #191919;
  --primary: #565DE9;
  --white: #FFFFFF;
  --sidebar-primary-hover: #EBEFFD;
  --sidebar-background: #ffffff;
  --background: #DEE0E5;
  --text: #646FA7;
  --text-link: #565DE9;
  --expand-button: #565DE9;
  --logout: #FA7575;
  --search-background: #EBEFFD;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  padding: 1rem;
  height: 100%;
  background: var(--background);
}

html {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  display: flex;
  gap: 2rem;
}

.container {
  width: 100%;

}

.title-pag {
  display: flex;
  justify-content: space-between;
}

.block {
  background: white;
  cursor: pointer;
  min-height: 3rem;
  margin-right: 30%;
  color: #d31f31;
  border-radius: 0.75rem;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  font-size: 1.4rem;
  border: none;
}

.novo-parceiro {
  align-content: center;
  background: white;
  cursor: pointer;
  min-height: 3rem;
  text-decoration: none;
  margin-right: 30%;
  color: var(--text);
  border-radius: 0.75rem;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  font-size: 1.4rem;
  border: none;
}

.login-form .link {
  color: var(--text);
}

.novo-parceiro:hover {
  color: var(--primary);
  font-weight: 550;
}

.main {
  margin-bottom: 1rem;
  max-width: 1370px;
  width: 100%;
  margin-top: 10px;
  background: #DEE0E5;
}

.main table {
  width: 100%;
  border-radius: 10px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.main th, .main td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.main th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
}

.main tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Ajuste da largura das colunas */
.main th:nth-child(1),
.main td:nth-child(1) {
  width: 15%;
}

.main th:nth-child(2),
.main td:nth-child(2) {
  width: 35%;
  text-align: left;
}

.main th:nth-child(3),
.main td:nth-child(3) {
  width: 20%;
}

.main th:nth-child(4),
.main td:nth-child(4) {
  width: 30%;
}

td {
  background-color: white;
  font-weight: 550;
}

td a {
  text-decoration: none;
  color: #333;
}

td a:hover {
  color: #565DE9;
}

/* Cores para entrada e saída */
.entrada {
  color: #08a12c; /* Verde claro */
  font-weight: bold;
}

.saida {
  color: #d31f31; /* Vermelho claro */
  font-weight: bold;
}

.login-form {
  position: sticky;
  top: 0;
  left: 0;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  user-select: none;
  min-width: 4rem;
  display: flex;
  color: var(--white);
  flex-direction: column;
  gap: 1rem;
  text-align: end;
  background: var(--sidebar-background);
  transition: max-width 0.2s ease-in-out;
  align-items: center;
}

/* .login-form button {
  background: var(--primary-color);
  cursor: pointer;
  min-height: 3rem;
  color: var(--background);
  border-radius: 0.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  font-size: 1.4rem;
  border: none;
} */

.login-form button {
  background: var(--primary-color);
  cursor: pointer;
  color: var(--background);
  border-radius: 10px;
  border: none;
  padding: 14px;
  font-size: 16px;
}

.login-form form {
  display: flex;
  flex-direction: column;
}

#username {
  background: var(--search-background);
  min-height: 3rem;
  color: var(--text);
  border-radius: 0.75rem;
  padding-left: 2.75rem;
  font-size: 1.4rem;
  border: none;
}

.label {
  color: #191919;
}

@media screen and (min-width: 1950px) {
  .sidebar {
    min-height: 50rem; 
  }
}

.sidebar {
  position: sticky;
  top: 0;
  left: 0;
 
  height: 100%;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  user-select: none;
  max-width: 18rem;
  min-width: 4rem;
  display: flex;
  color: var(--white);
  flex-direction: column;
  background: var(--sidebar-background);
  transition: max-width 0.2s ease-in-out;
}

body.collapsed .sidebar {
  max-width: 5.6rem;
  display: flex;
}

body.collapsed .hide {
  position: absolute;
  visibility: hidden;
}

/*? separator */

.separator {
  width: 100%;
  height: 1px;
  background: var(--sidebar-primary-hover);
  margin: 1rem 0;
}

/*? search wrapper */
.search__wrapper {
  position: relative;
}

.search__wrapper input {
  background: var(--search-background);
  min-height: 3rem;
  width: 100%;
  color: var(--text);
  border-radius: 0.75rem;
  padding-left: 2.75rem;
  font-size: 1.4rem;
  border: none;
}

.search__wrapper input::placeholder {
  color: var(--text);
  font-size: 1.2rem;
}

body.collapsed .search__wrapper input::placeholder {
  color: transparent;
}

.search__wrapper input:focus {
  outline: 2px solid var(--primary);
}

.search__wrapper svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--vermelho);
  transform: translateY(-50%);
  pointer-events: none;
}

/*? sidebar top */
.sidebar-top-wrapper {
  display: flex;
  background: var(--primary-color-light);
}

.sidebar-top {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  height: 4rem;
  padding-bottom: 1rem;
}

.logo__wrapper {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.35rem;
  padding: 0 0.6rem;
  gap: 0.75rem;
}

.logo-small {
  width: 25%;
  overflow: hidden;
  object-fit: cover;
}

.company-name {
  white-space: nowrap;
  width: 60%;
}

/*? menu links */
.sidebar-links {
  margin-top: 1rem;
}

.sidebar-links ul {
  list-style-type: none;
  position: relative;
  display: flex;
  /* row-gap: 0.5rem; */
  flex-direction: column;
}

.sidebar-links li {
  color: var(--text);
  min-width: 3rem;
}

.sidebar-links li svg {
  stroke: var(--text);
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
}

.sidebar-links li a:hover {
  background: var(--sidebar-primary-hover);
  color: var(--text-link);
}



.sidebar-links li a:hover svg {
  stroke: var(--text-link);
}

.sidebar-links li a {
  color: var(--text);
  width: 100%;
  padding-left: 0.6rem;
  font-size: 1.25rem;
  display: flex;
  gap: 0.75rem;
  border-radius: 0.75rem;
  justify-content: start;
  align-items: center;
  min-height: 3.25rem;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.sidebar-links li a .link {
  overflow: hidden;
  white-space: nowrap;
  animation: fadeIn 0.2s ease-in-out;
}

.link-ativo {
  background: var(--sidebar-primary-hover);
  color: var(--text-link);
}

.link-ativo svg {
  stroke: var(--text-link);
}

.sidebar-links .active:hover {
  background: var(--sidebar-primary-hover);
}

.sidebar-links .active {
  text-decoration: none;
  background: var(--sidebar-primary-hover);
  color: var(--text-link);
}

.sidebar-links .active svg {
  stroke: var(--text-link);
}

/* ?tooltip */
.tooltip {
  position: relative;
}

.tooltip .tooltip__content::after {
  content: " ";
  position: absolute;
  top: 50%;
  left: 0%;
  margin-left: -9px;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--primary) transparent transparent;
}

.tooltip .tooltip__content {
  visibility: hidden;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  position: absolute;
  z-index: 1;
  left: 4.5rem;
}

.collapsed .tooltip:hover .tooltip__content {
  visibility: visible;
}

.collapsed .logo-small {
  width: 2.3rem;
}

.collapsed .tooltip:focus .tooltip__content {
  visibility: visible;
}

/*? profile part */
.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row;
  color: var(--text-link);
  overflow-x: hidden;
  min-height: 2.5rem;
  margin-top: auto;
}

.avatar__wrapper {
  position: relative;
  display: flex;
}

.avatar {
  display: block;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
  width: 11rem;
  height: 11rem;
  cursor: pointer;
}

.avatar:hover {
  border: 2px solid var(--vermelho);
}

.avatar__name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
}

.user-name {
  font-weight: 600;
  text-align: left;
  color: var(--text);
}

.email {
  color: var(--text);
  font-size: 0.8rem;
}

.logout {
  margin-left: auto;
  background-color: white;
  border: none;
  cursor: pointer;
}

.logout svg {
  color: var(--logout);
}

/*? Expand button */
.expand-btn {
  position: absolute;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--vermelho);
  z-index: 2;
  right: -1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
}

.expand-btn svg {
  transform: rotate(-180deg);
  stroke: var(--white);
  width: 1.25rem;
  height: 1.25rem;
}

body.collapsed .expand-btn svg {
  transform: rotate(-360deg);
}

@keyframes fadeIn {
  from {
    width: 4rem;
    opacity: 0;
  }

  to {
    opacity: 1;
    width: 100%;
  }
}
