

/* ── DASHBOARD CARDS ── */
.card-dashboard {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
  position: relative;
}

.card-dashboard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}

.card-dashboard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12) !important;
}

.card-dashboard .card-body { padding: 24px; }
.card-dashboard .card-icon { font-size: 1.5rem; }

.card-dashboard-blue    { background: linear-gradient(135deg,var(--brand-blue),var(--brand-blue-light)); }
.card-dashboard-orange  { background: linear-gradient(135deg,var(--bfc-orange),var(--bfc-orange-light)); }
.card-dashboard-navy    { background: linear-gradient(135deg,#143073,#1f4b94); }
.card-dashboard-red     { background: linear-gradient(135deg,#c0392b,#e74c3c); }

/* ── TABLE ── */
.table-container {
  background: #fff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
}

.table-container .card-body { padding: 20px; }

.table {
  margin-bottom: 0;
}

.table thead th {
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #6c757d;
  border-top: none;
  border-bottom: 2px solid #f0f2f5;
  padding: 14px 12px;
  white-space: nowrap;
}

.table td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f5;
  font-size: .875rem;
}

.table tbody tr {
  transition: background .2s;
}

.table tbody tr:hover {
  background: rgba(230,126,34,.03);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  padding: 8px 14px 8px 36px;
  font-size: .875rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--bfc-orange);
  box-shadow: 0 0 0 4px rgba(230,126,34,.1);
  outline: none;
}

.dataTables_wrapper .dataTables_length label {
  font-size: .85rem;
  color: #6c757d;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 6px;
  border: 1.5px solid #e5e7eb;
  padding: 4px 8px;
}

.dataTables_wrapper .dataTables_info {
  font-size: .85rem;
  color: #6c757d;
  padding-top: 16px !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 16px !important;
}

.dataTables_wrapper .paginate_button {
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: .85rem !important;
  margin: 0 2px !important;
}

.dataTables_wrapper .paginate_button.current {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #fff !important;
}

.dataTables_wrapper .paginate_button:hover {
  background: rgba(230,126,34,.1) !important;
  border-color: transparent !important;
}

/* ── TABLE BUTTONS ── */
.btn-table {
  border-radius: 8px;
  font-weight: 500;
  padding: 5px 12px;
  font-size: .8rem;
  white-space: nowrap;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-table:hover { transform: translateY(-1px); }

.btn-table.btn-primary {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
}

.btn-table.btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.btn-table.btn-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.btn-table.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.btn-table.btn-info {
  background: var(--brand-blue-soft);
  border: 1px solid #b8cceb;
  color: var(--brand-blue);
}

.btn-table.btn-info:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* ── BADGES ── */
.badge {
  font-weight: 500;
  padding: 4px 10px;
  font-size: .75rem;
  border-radius: 6px;
}

.badge.bg-success { background: #dcfce7 !important; color: #166534; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e; }
.badge.bg-danger { background: #fef2f2 !important; color: #991b1b; }
.badge.bg-secondary { background: #f3f4f6 !important; color: #4b5563; }

/* ── FORM SWITCH ── */
.form-switch .form-check-input:checked {
  background-color: var(--bfc-orange);
  border-color: var(--bfc-orange);
}

/* ── MODAL ── */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}

.modal-header {
  background: var(--brand-blue);
  color: #fff;
  padding: 18px 24px;
  border: none;
}

.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f0f2f5; }

.modal-xl { max-width: 800px; }



/* ── UTILITY ──────────────────────────────────────── */
.card-header-dark {
  background: var(--sidebar-bg) !important;
  color: #fff;
  border-radius: 12px 12px 0 0 !important;
  padding: 14px 20px;
  font-weight: 700;
  border: none;
}

.icon-wrap-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bfc-orange-soft);
  color: var(--bfc-orange);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap-md {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bfc-orange-soft);
  color: var(--bfc-orange);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.img-thumb-sm {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.img-thumb-xs {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}


