:root {
  --edevac-primary: #0f766e;
  --tblr-primary: var(--edevac-primary);
  --tblr-primary-rgb: 15, 118, 110;
}

body {
  background: #f4f6f8;
}

.navbar-brand-image {
  height: 32px;
}

.edevac-login {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.edevac-login-card {
  max-width: 420px;
}

.nav-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.stat-card .h1 {
  letter-spacing: -0.03em;
}

.month-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 150px;
  overflow-x: auto;
  padding-top: 4.75rem;
}

.month-chart-col {
  position: relative;
  flex: 1 0 36px;
  max-width: 56px;
}

.month-chart-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  z-index: 2;
  margin-bottom: 6px;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.month-chart-col:hover .month-chart-tip {
  display: block;
}

.month-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 120px;
}

.month-chart-bar {
  width: 12px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.text-orange {
  color: #f76707;
}

@media print {
  .text-success {
    color: #2fb344 !important;
  }

  .text-orange {
    color: #f76707 !important;
  }

  .text-danger {
    color: #d63939 !important;
  }

  .js-table-toolbar,
  .js-table-pager {
    display: none !important;
  }

  .js-data-table tbody tr,
  .js-data-table tbody tr[hidden] {
    display: table-row !important;
  }
}

.js-table-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem 0;
}

.js-table-toolbar .js-table-search {
  max-width: 240px;
}

.js-table-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1rem;
}

.js-data-table thead th.js-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.js-data-table thead th.js-sortable:hover {
  color: var(--edevac-primary);
}

.js-data-table thead th[aria-sort="ascending"]::after {
  content: " \2191";
  font-size: 0.75em;
}

.js-data-table thead th[aria-sort="descending"]::after {
  content: " \2193";
  font-size: 0.75em;
}

.js-leaf-grid {
  max-height: 22rem;
}

.js-data-table tbody tr[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.9rem;
  }

  .js-table-toolbar {
    padding: 0.75rem 0.75rem 0;
  }

  .js-table-toolbar .js-table-search {
    max-width: 100%;
  }

  .js-table-pager {
    flex-wrap: wrap;
  }
}
