body {
  font-family: 'Tajawal' !important;
}

.table tbody tr td, .table tbody tr th {
  padding-top: 0.50rem !important;
  padding-bottom: 0.50rem !important;
}

.dataTables_filter {
  float: inline-end !important;
  padding-top: 7px !important;
  padding-left: 10px !important;
}

.dataTables_filter input[type="search"] {
  border: 1px solid #e5e5e5 !important;
  border-radius: 5px;
}

.dataTables_filter input[type="search"]:focus {
  border-color: #ffffff;
  outline: 0;
}

/* ===== Cards ===== */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: visible;
  background: #fff;
}

.card .card-header {
  border-bottom: 1px solid #e5e7eb;
}

.card .card-body {
  padding: 1.25rem !important;
}

/* ===== Buttons ===== */
.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

/* ===== Table rows ===== */
.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* ==============================================
   Tom Select Fix
   ============================================== */

/* Strip Metronic .select styles from wrapper */
.ts-wrapper.select {
  border: none !important;
  background: none !important;
  background-image: none !important;
  padding: 0 !important;
  min-height: auto !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
}

.ts-wrapper {
  width: 100% !important;
}

/* ts-control - user's fix applied */
.ts-wrapper .ts-control {
  border: none !important;
  box-shadow: none !important;
  padding-top: 10px !important;
  background-color: var(--tw-light-active, #f9f9f9) !important;
  border-radius: 0.375rem !important;
  padding-left: 0.675rem !important;
  padding-right: 0.675rem !important;
  padding-bottom: 0.425rem !important;
  min-height: 34px !important;
  height: auto !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--tw-gray-700, #4B5675) !important;
  cursor: pointer;
}

.ts-wrapper .ts-control > input {
  font-size: 0.8125rem !important;
  color: var(--tw-gray-700, #4B5675) !important;
}

.ts-wrapper .ts-control > .item {
  font-size: 0.8125rem !important;
  color: var(--tw-gray-700, #4B5675) !important;
}

.ts-wrapper.focus .ts-control {
  border: none !important;
  box-shadow: none !important;
}

/* Dropdown */
.ts-dropdown {
  border: 1px solid var(--tw-gray-300, #DBDFE9) !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin-top: 2px !important;
  z-index: 9999 !important;
  background: #fff !important;
}

.ts-dropdown .ts-dropdown-content {
  max-height: 220px !important;
  padding: 4px !important;
}

.ts-dropdown .option {
  padding: 0.4rem 0.675rem !important;
  font-size: 0.8125rem !important;
  border-radius: 0.25rem !important;
  color: var(--tw-gray-700, #4B5675) !important;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
  background-color: var(--tw-primary-light, #F1F5FF) !important;
  color: var(--tw-primary, #3b82f6) !important;
}

.ts-dropdown .option.selected {
  background-color: var(--tw-primary, #3b82f6) !important;
  color: #fff !important;
}

/* ===== File input fix ===== */
input[type="file"].input {
  padding: 0.35rem 0.5rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  height: auto !important;
}

/* ===== Supporters table ===== */
#supporters-table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

#supporters-table tbody td {
  vertical-align: middle;
}

/* ===== Form label ===== */
.form-label {
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

/* ===== Required star ===== */
.text-danger {
  color: #ef4444 !important;
  font-weight: bold;
}

/* ===== Sidebar active ===== */
.menu-item-active .menu-link {
  background-color: #eef2ff !important;
  border-color: #c7d2fe !important;
}

/* ===== Search input ===== */
form .input[name="term"] {
  min-width: 300px;
}

/* ===== DrugVet brand (2026-09 refresh) ===== */
:root, .light {
  --tw-primary: #e8592e;
  --tw-primary-active: #cf4a22;
  --tw-primary-light: #fdeee8;
  --tw-primary-clarity: rgba(232, 89, 46, 0.20);
  --tw-primary-inverse: #ffffff;
  --tw-primary-box-shadow: 0px 4px 12px 0px rgba(232, 89, 46, 0.30);
}
.dark {
  --tw-primary: #f0764f;
  --tw-primary-active: #e8592e;
  --tw-primary-light: rgba(232, 89, 46, 0.15);
  --tw-primary-clarity: rgba(232, 89, 46, 0.25);
}
#sidebar .menu-item.active > .menu-link { background: var(--tw-primary-light); border-color: rgba(232, 89, 46, 0.25); }
#sidebar .menu-item.active > .menu-link .menu-title { color: #cf4a22; font-weight: 600; }
#sidebar .menu-item.active > .menu-link .menu-icon { color: var(--tw-primary); }
.kpi-card .kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.kpi-card .kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
