*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand:     #1a3c6e;
  --brand-dark:#122b52;
  --accent:    #e8a000;
  --bg:        #f0f2f5;
  --surface:   #ffffff;
  --text:      #1e2a3a;
  --muted:     #6b7a8d;
  --border:    #dce3ed;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(0,0,0,.10);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand);
  color: #fff;
  padding: 0 1.5rem;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.topbar-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--brand-dark);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: .25rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-back {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  padding: .35rem .9rem;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 6px;
  transition: all .2s;
}

.btn-back:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ── HOME ────────────────────────────────────────── */
.home-main {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dashboard-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.card-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.card-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.card-info p {
  font-size: .825rem;
  color: var(--muted);
  margin-top: .2rem;
}

.card-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--brand);
  opacity: .6;
}

/* ── BI PAGE ─────────────────────────────────────── */
.bi-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.bi-container {
  flex: 1;
  overflow: hidden;
}

.bi-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.bi-error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-direction: column;
  gap: .75rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

.bi-error h2 {
  color: var(--text);
  font-size: 1.25rem;
}
