:root {
  --navy: #102a43;
  --cyan: #00a7b5;
  --magenta: #d72976;
  --canvas: #f4f7fa;
  --muted: #627d98;
}
html,
body {
  min-height: 100%;
}
body {
  background: var(--canvas);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
.app-header {
  background: #fff;
  border-bottom: 1px solid #dce6ef;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: min(190px, 42vw);
  object-fit: contain;
}
.eyebrow {
  color: var(--cyan);
}
.portal-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.session-email {
  color: var(--muted);
  font-size: 0.8rem;
}
.logout-link {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.logout-link:hover {
  color: var(--magenta);
}
.welcome-panel {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.08);
  border-left: 5px solid var(--cyan);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: #173f62;
  --bs-btn-hover-border-color: #173f62;
}
.period-filter {
  min-width: 220px;
}
.partner-heading {
  gap: 24px;
  min-width: 0;
}
.oromar-logo-container {
  width: 100px;
  max-width: 100px;
  flex: 0 0 100px;
  line-height: 0;
}
.oromar-logo {
  display: block;
  width: 100%;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.report-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #9de0e5;
  background: #e9fbfc;
  border-radius: 0.75rem;
  color: #176b72;
  font-size: 0.85rem;
}
.report-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--cyan);
  border-radius: 50%;
}
.metric-card,
.dashboard-card {
  background: #fff;
  border: 1px solid #e2eaf1;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.05);
}
.metric-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--cyan);
}
.accent-card {
  border-top-color: var(--magenta);
}
.peak-card {
  border-top-color: var(--navy);
  background: linear-gradient(135deg, #fff 65%, #e9fbfc);
}
.peak-time {
  color: var(--navy);
  font-size: 1.45rem;
  margin: 0.55rem 0;
}
.metric-label,
.metric-context {
  color: var(--muted);
}
.metric-label {
  font-weight: 600;
}
.metric-value {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0.45rem 0;
}
.metric-context {
  font-size: 0.8rem;
}
.card-heading {
  padding: 1.35rem 1.35rem 0.5rem;
}
.hourly-chart-scroll {
  overflow-x: auto;
  padding: 1rem 1.35rem 1.5rem;
}
.hourly-chart {
  min-width: 760px;
  height: 300px;
  display: grid;
  grid-template-columns: repeat(24, minmax(22px, 1fr));
  gap: 0.55rem;
  align-items: end;
  padding-top: 1rem;
  border-bottom: 1px solid #dce6ef;
  background: repeating-linear-gradient(to top, transparent 0, transparent 59px, #edf1f5 60px);
}
.hour-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1.25rem 1fr 1.75rem;
  align-items: end;
  text-align: center;
}
.hour-value {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.hour-column:hover .hour-value,
.hour-column.is-peak .hour-value {
  opacity: 1;
}
.bar-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
}
.hour-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 0.3rem 0.3rem 0 0;
  background: linear-gradient(180deg, #15becb, var(--cyan));
}
.hour-column.is-peak .hour-bar {
  background: linear-gradient(180deg, var(--magenta), #b71f62);
}
.hour-column.is-peak .hour-value,
.hour-column.is-peak .hour-label {
  color: var(--magenta);
  font-weight: 800;
}
.hour-label {
  padding-top: 0.45rem;
  color: var(--muted);
  font-size: 0.67rem;
}
.table {
  --bs-table-bg: transparent;
}
.table th,
.table td {
  padding: 0.9rem 1.35rem;
  border-color: #edf1f5;
  color: var(--navy);
}
.table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.table tfoot {
  background: #f8fafc;
}
.peak-row > * {
  background: #f0fbfc !important;
}
.peak-row td:first-child {
  box-shadow: inset 3px 0 0 var(--magenta);
}
.peak-badge {
  display: inline-block;
  padding: 0.18rem 0.4rem;
  border-radius: 1rem;
  background: #fbe9f1;
  color: var(--magenta);
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}
.time-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.error-code {
  display: block;
  color: var(--magenta);
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  opacity: 0.9;
}
@media (max-width: 575.98px) {
  .portal-label {
    display: none;
  }
  .session-email {
    display: none;
  }
  .metric-value {
    font-size: 2rem;
  }
  .period-filter {
    width: 100%;
  }
  .brand-logo {
    height: 34px;
  }
  .partner-heading {
    gap: 16px;
  }
  .oromar-logo-container {
    width: 76px;
    max-width: 76px;
    flex-basis: 76px;
  }
  .oromar-logo {
    max-width: 76px;
  }
}
