/* Marca São Judas no cabeçalho. */
header {
  min-height: 74px;
  padding-block: 10px;
}

header .office-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

header .office-logo img {
  width: 150px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

header .office-logo span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

main {
  max-width: 1440px;
}

.auth .auth-logo {
  display: block;
  width: min(100%, 210px);
  height: auto;
  margin: 0 0 18px;
}

.reconciliation-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  min-height: 42px;
  border-bottom: 1px solid #b8cac3;
}

.reconciliation-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: #48606a;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.reconciliation-tab:hover {
  color: #007c78;
  background: #e9f3ef;
}

.reconciliation-tab.is-active {
  color: #006b67;
  border-bottom-color: #007c78;
}

.value-match-bulk {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: none;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #d1dfd8;
  border-radius: 6px;
  background: #ffffff;
}

.value-match-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #29444d;
  font-size: 0.9rem;
  font-weight: 700;
}

.value-match-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #007c78;
}

.value-match-check--card {
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid #b8cac3;
  border-radius: 4px;
  cursor: pointer;
}

.value-match-check--card:has(input:checked) {
  border-color: #007c78;
  background: #e3f2ec;
}

.value-match-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.value-match table {
  width: 100%;
}

.value-match table th:nth-child(3),
.value-match table td:nth-child(3) {
  min-width: 100px;
  white-space: nowrap;
}

.value-match-bulk [role="status"] {
  color: #48606a;
  font-size: 0.88rem;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth .password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.auth .password-field > label:first-child {
  min-width: 0;
}

.auth .password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #d1dfd8;
  border-radius: 4px;
  color: #48606a;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.auth .password-toggle:hover {
  border-color: #8fb5a5;
  background: #f1f7f4;
}

.auth .password-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #007c78;
}

.auth .password-toggle:has(input:checked) {
  border-color: #007c78;
  background: #e3f2ec;
  color: #006b67;
}

@media (max-width: 760px) {
  header .office-logo img {
    width: 122px;
    height: 40px;
  }

  header .office-logo span {
    display: none;
  }

  header nav {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .reconciliation-tabs {
    flex-wrap: wrap;
    margin: 16px 0;
  }

  .value-match-bulk {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .auth .password-field {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth .password-toggle {
    min-height: auto;
  }

  .auth .auth-logo {
    width: min(100%, 180px);
  }

  main {
    max-width: none;
  }
}
