/* Custom styles */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data-table th,
table.data-table td {
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.75rem;
  text-align: left;
}

table.data-table th {
  background: #f1f5f9;
  font-weight: 600;
}

table.data-table tbody tr:hover {
  background: #f8fafc;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }

.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

.btn-secondary { background: #64748b; color: white; }
.btn-secondary:hover { background: #475569; }

.btn-sm { padding: 0.375rem 0.625rem; font-size: 0.75rem; }

.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  outline: none;
  font-size: 0.875rem;
}

.input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  min-width: 120px;
}

/* Horizontal KPI form table */
table.kpi-form-table {
  border-collapse: collapse;
  min-width: 100%;
}

table.kpi-form-table th,
table.kpi-form-table td {
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

table.kpi-form-table th {
  font-weight: 600;
}

table.kpi-form-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #334155;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.25s ease-out;
}
