:root {
  --line: #d8d8d8;
  --muted: #666;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #090909;
  font:
    14px Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
aside {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
  padding: 12px 22px;
  display: grid;
  grid-template-columns: 180px repeat(8, minmax(105px, 1fr)) 120px 120px;
  gap: 10px;
  align-items: end;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  align-self: center;
}
.brand > span {
  background: #111;
  color: #fff;
  padding: 9px;
  border-radius: 8px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.5px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
input,
select {
  display: block;
  width: 100%;
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  margin-top: 4px;
  outline: none;
}
input:focus,
select:focus {
  border-color: #111;
}
select[multiple] {
  height: 54px;
}
.split {
  display: contents;
}
button,
.ghost {
  display: block;
  border: 1px solid #111;
  border-radius: 7px;
  padding: 9px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin: 0;
  width: 100%;
}
.ghost {
  background: #fff;
  color: #111;
}
main {
  padding: 25px;
  max-width: 1700px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 {
  font-size: 28px;
  margin: 0;
}
h2 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  color: var(--muted);
}
header select {
  width: 145px;
  display: inline-block;
  margin-left: 6px;
}
.live {
  font-size: 10px;
  color: #111;
  margin-left: 12px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.metric,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px #00000008;
}
.metric small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.metric strong {
  display: block;
  font-size: 21px;
  margin-top: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wide {
  grid-column: span 2;
}
.card > div[id] {
  height: 310px;
}
.table-card {
  margin-top: 14px;
}
.table-wrap {
  overflow: auto;
  max-height: 480px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
tbody tr:hover {
  background: #f7f7f7;
}
#loading {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffffcc;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 5;
}
@media (max-width: 1300px) {
  aside {
    grid-template-columns: repeat(5, 1fr);
  }
  .brand {
    grid-column: span 1;
  }
  .kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 750px) {
  aside {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .brand {
    grid-column: span 2;
  }
  .grid {
    display: block;
  }
  .card {
    margin-bottom: 12px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
}
