/* BASE */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #020617;
  padding: 20px;
}

.sidebar h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.sidebar nav a {
  display: block;
  padding: 10px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: #1e293b;
  color: #fff;
}

/* MAIN */
.main {
  flex: 1;
  padding: 24px;
}

/* TOP STATIC HEADER */
.top-header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  margin: -24px -24px 20px;
  padding: 14px 24px;
}

.top-menu {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.top-menu span {
  color: #94a3b8;
  cursor: default;
}

.top-menu span.active {
  color: #e5e7eb;
  font-weight: 600;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 4px;
}

.top-menu span:not(.active):hover {
  color: #cbd5f5;
}

/* TABS */
.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* PDF BUTTONS */
.pdf-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pdf-actions button {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.pdf-actions button:hover {
  background: #334155;
}

/* KPIS */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.kpi {
  background: #020617;
  padding: 18px;
  border-radius: 10px;
}

.kpi span {
  font-size: 12px;
  color: #94a3b8;
}

.kpi b {
  font-size: 28px;
}

.kpi.danger {
  border-left: 4px solid #ef4444;
}

.up {
  color: #22c55e;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* CARDS */
.card {
  background: #020617;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.card.big {
  grid-row: span 2;
}

.resume p {
  color: #cbd5f5;
  line-height: 1.5;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #1e293b;
  text-align: left;
}
