:root {
  --panel-dark: #212529;
  --panel-green: #198754;
  --panel-amber: #ffc107;
  --panel-red: #dc3545;
  --panel-blue: #0d6efd;
}

body {
  background: #fff;
  font-size: 0.95rem;
}

.app-navbar {
  background: var(--panel-dark);
}

.app-navbar .navbar-brand {
  font-size: 1.05rem;
}

.app-navbar .nav-link {
  font-size: 1.15rem;
  padding-inline: 0.55rem;
  color: rgba(255, 255, 255, 0.75);
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: #fff;
}

/* --- stat cards ------------------------------------------------------- */

.stat-card {
  border: 0;
  border-radius: 0.375rem;
  color: #fff;
  padding: 1.1rem 1.25rem;
  min-height: 108px;
  display: block;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  color: #fff;
}

.stat-card .stat-label {
  font-size: 1.05rem;
  font-weight: 500;
}

.stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.stat-card .stat-note {
  font-size: 0.8rem;
  opacity: 0.95;
}

.stat-card.is-selected {
  outline: 3px solid var(--panel-amber);
  outline-offset: -1px;
}

.stat-green  { background: var(--panel-green); }
.stat-amber  { background: var(--panel-amber); color: #212529; }
.stat-amber:hover, .stat-amber .stat-note { color: #212529; }
.stat-red    { background: var(--panel-red); }
.stat-blue   { background: var(--panel-blue); }

/* --- tables ----------------------------------------------------------- */

.panel-table {
  font-size: 0.9rem;
}

.panel-table > thead > tr > th {
  font-weight: 700;
  border-bottom: 2px solid #212529;
  white-space: nowrap;
  vertical-align: bottom;
}

.panel-table > tbody > tr > td {
  vertical-align: middle;
}

.mt4-flagged {
  background: #ffd8a8;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  font-weight: 600;
}

.stamp {
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
}

.text-muted-sm {
  font-size: 0.82rem;
  color: #6c757d;
}

.badge-platform {
  background: var(--panel-blue);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-type {
  background: #6c757d;
  font-size: 0.72rem;
  font-weight: 600;
}

.action-group .btn {
  padding: 0.25rem 0.45rem;
  line-height: 1;
}

.countdown-warn { color: #b8860b; font-weight: 600; }
.countdown-bad  { color: var(--panel-red); font-weight: 600; }

.row-expired-unreconciled {
  background: #fff8e1 !important;
}

.card-header-plain {
  background: #f8f9fa;
  font-size: 1.15rem;
  font-weight: 500;
}

.login-wrap {
  max-width: 380px;
  margin: 8vh auto;
}
