:root {
  --app-primary: #0d4f8b;
  --app-primary-dark: #093a68;
}

body {
  font-size: 0.925rem;
  background-color: #f6f8fa;
}

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

.navbar-brand {
  background-color: rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

@media (max-width: 767.98px) {
  .sidebar {
    position: static;
    padding-top: 0;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #40484f;
  padding: 0.6rem 1rem;
  border-radius: 0;
}

.sidebar .nav-link:hover {
  background-color: #eef3f8;
  color: var(--app-primary);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: var(--app-primary);
}

/* ---------------------------------------------------------------- cards */
.card {
  border: 1px solid #e3e8ee;
  border-radius: 0.5rem;
}

.stat-card {
  border-left: 4px solid var(--app-primary);
}

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

.stat-card .stat-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.stat-card.danger  { border-left-color: #dc3545; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.success { border-left-color: #198754; }
.stat-card.info    { border-left-color: #0dcaf0; }

/* ---------------------------------------------------------------- tables */
.table > :not(caption) > * > * {
  padding: 0.6rem 0.65rem;
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  border-bottom-width: 1px;
  white-space: nowrap;
}

.table-hover tbody tr:hover {
  background-color: #f2f7fc;
}

/* ---------------------------------------------------------------- misc */
.btn-app {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}

.btn-app:hover {
  background-color: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
  color: #fff;
}

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 0.9rem 1.35rem;
  border-left: 2px solid #e3e8ee;
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -0.32rem;
  top: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--app-primary);
}

.login-wrap {
  max-width: 400px;
  margin: 7vh auto;
}

.overdue {
  color: #dc3545;
  font-weight: 600;
}

.checklist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f3f6;
}

.checklist-item:last-child {
  border-bottom: 0;
}

code.small-code {
  font-size: 0.8rem;
}
