:root {
  --ink: #1c3036;
  --muted: #6b7a81;
  --line: #e0e6e8;
  --paper: #f4f6f7;
  --brand: #234b54;
  --gold: #bd9556;
  --red: #ad433a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.5 system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: var(--brand);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.muted,
p,
small {
  color: var(--muted);
}
.brand {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -2px;
}
.brand span {
  color: var(--gold);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}
aside .eyebrow {
  font-size: 11px;
  margin: 5px 0 32px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  color: var(--muted);
  background: transparent;
  text-align: left;
  padding: 13px 12px;
}
nav button.active {
  color: var(--brand);
  background: #eaf0f1;
  font-weight: 600;
}
nav span {
  float: right;
  background: #fff;
  border-radius: 5px;
  padding: 0 6px;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.liv-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.sidebar-foot small {
  display: block;
  font-size: 12px;
}
main {
  margin-left: 248px;
}
header {
  height: 78px;
  padding: 0 42px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.page {
  max-width: 1600px;
  margin: auto;
  padding: 32px 42px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 4px 0;
}
h2 {
  font-size: 19px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  margin: 6px 0 16px;
}
.filters {
  display: flex;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
select,
input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px;
  min-width: 150px;
}
.notice {
  font-size: 14px;
  padding: 12px 16px;
  background: #e9eff0;
  border: 1px solid #d8e4e6;
  border-radius: 8px;
  margin-bottom: 24px;
}
.notice.warning {
  background: #fff5e4;
  border-color: #e8d3a7;
  color: #7b5623;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card {
  padding: 22px;
}
.card .label {
  font-size: 14px;
  color: var(--muted);
}
.card b {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  margin: 9px 0;
}
.card small {
  font-size: 13px;
}
.card.featured {
  border-top: 3px solid var(--brand);
}
.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.panel {
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.tag {
  font-size: 12px;
  background: #eaf0f1;
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.chart {
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  overflow: auto;
  padding-top: 28px;
}
.bar-group {
  min-width: 22px;
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.stack {
  width: 100%;
  max-width: 50px;
  align-self: center;
  min-height: 2px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.financeiro {
  background: #234b54;
}
.obras {
  background: #7099a3;
}
.corretores {
  background: #c5a36b;
}
.humano {
  background: #b8c3c7;
}
.legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 18px;
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
}
.dist {
  margin: 18px 0;
}
.dist label {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}
.track {
  height: 8px;
  background: #edf1f2;
  border-radius: 5px;
  margin-top: 8px;
  overflow: hidden;
}
.track div {
  height: 100%;
}
.list-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.list-item:first-of-type {
  border: 0;
}
.list-item p {
  font-size: 14px;
  margin: 4px 0;
}
.list-item small {
  font-size: 13px;
}
.empty {
  padding: 30px 10px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  background: #f7f9fa;
}
td,
th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td a {
  color: var(--brand);
}
footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #e6edef, #f6f7f8);
}
.login-card {
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 60px #1a343b10;
}
.login form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
#login-error {
  color: var(--red);
  font-size: 14px;
}
.measurement {
  display: grid;
  gap: 14px;
}
.measurement article {
  padding: 18px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.measurement p {
  font-size: 14px;
  margin: 6px 0 0;
}
@media (max-width: 1150px) {
  aside {
    width: 210px;
    padding: 25px 16px;
  }
  main {
    margin-left: 210px;
  }
  .page {
    padding: 26px 24px;
  }
  header {
    padding: 0 24px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  aside {
    position: static;
    width: 100%;
    padding: 12px 16px;
  }
  .brand {
    font-size: 30px;
  }
  aside .eyebrow,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 10px;
  }
  nav button {
    white-space: nowrap;
    font-size: 14px;
  }
  main {
    margin: 0;
  }
  header {
    height: 55px;
  }
  .page {
    padding: 22px 16px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card {
    padding: 16px;
  }
  .card b {
    font-size: 29px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .panel {
    padding: 18px;
  }
  h1 {
    font-size: 28px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 390px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #edf1f2;
  display: block;
  margin-top: 8px;
}
progress::-webkit-progress-bar {
  background: #edf1f2;
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: var(--brand);
  border-radius: 4px;
}
.table-wrap svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: 235px;
}
.grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.panel,
.card {
  min-width: 0;
}
@media (max-width: 1150px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
