:root {
  --brand: #2f8d68;
}

* { scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.sidebar-link.active {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
}
.sidebar-link.active i { color: #fff; }

.card {
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04), 0 1px 3px 0 rgba(0,0,0,0.06);
  border: 1px solid #eef1f5;
}

.kpi-card { transition: transform .15s ease, box-shadow .15s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(0,0,0,0.12); }

table.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
  background: #f8fafc;
  white-space: nowrap;
}
table.data-table td {
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  border-top: 1px solid #f1f5f9;
  white-space: nowrap;
}
table.data-table tr:hover td { background: #fafcfb; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tab-btn.active {
  border-color: var(--brand);
  color: var(--brand);
  background: #eef7f4;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  padding: 1rem;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.toast {
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="month"], select, textarea {
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(47,141,104,0.12);
}

.progress-bar-bg { background: #eef2f0; border-radius: 999px; overflow: hidden; height: 10px; }
.progress-bar-fill { background: linear-gradient(90deg, #4ba884, #2f8d68); height: 100%; border-radius: 999px; transition: width .4s ease; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
