:root {
  --app-background: #f4f6f9;
}

body {
  background-color: var(--app-background);
  color: #212529;
}

.login-body {
  min-height: 100vh;
}

.card {
  border-radius: 1rem;
}

.form-control,
.btn {
  min-height: 44px;
}

.summary-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.dashboard-search {
  width: min(100%, 340px);
}

.table th {
  white-space: nowrap;
  font-size: 0.875rem;
  color: #495057;
}

.table td {
  vertical-align: middle;
}

code {
  color: #495057;
  font-size: 0.875rem;
}

.badge {
  padding: 0.55rem 0.75rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  main.container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .dashboard-search {
    width: 100%;
  }
}

.historical-table-wrapper {
  max-height: 68vh;
}

.historical-table {
  width: max-content;
  min-width: 100%;
}

.historical-table th,
.historical-table td {
  white-space: nowrap;
  padding: 0.65rem 0.85rem;
}

.historical-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.columns-dropdown {
  width: 280px;
  max-height: 420px;
  overflow-y: auto;
}

.columns-list {
  display: grid;
  gap: 0.4rem;
}

.counter-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.paper-counter-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(135px, 1fr));
  gap: 1rem;
}

.report-input:disabled {
  background-color: #f8f9fa;
  opacity: 1;
  color: #212529;
}

dl dd {
  overflow-wrap: anywhere;
}

.nav-tabs .nav-link {
  min-height: auto;
}

@media (max-width: 576px) {
  .counter-grid,
  .paper-counter-grid {
    grid-template-columns: 1fr 1fr;
  }
}