/* Admin common: select color, form cards, tables - same UI (Change Password excluded) */
select.form-control,
.form-control select,
.admin-form-card select,
.client-form-card select { color: #212121 !important; }
.admin-form-card select option,
.client-form-card select option,
select option { color: #212121 !important; }

/* Unified form card - same as client form */
.admin-form-card { border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-form-card .card-body { padding: 1.5rem 2rem; }
.admin-form-card .card-title { margin-bottom: 0.25rem; font-weight: 600; }
.admin-form-card .card-description { color: #6c757d; margin-bottom: 1.25rem; font-size: 0.9rem; }
.admin-form-card .form-group { margin-bottom: 1.1rem; }
.admin-form-card .form-control,
.client-form-card .form-control { border: 1px solid #000 !important; border-radius: 4px; color: #212121 !important; }
.admin-form-card .form-control::placeholder { color: #757575; }
.client-form-card .form-control::placeholder { color: #757575; }
.admin-form-card .form-control:focus { border-color: #000 !important; box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.15); }

/* Unified table - full width, consistent colors */
.admin-table-wrap { width: 100%; }
.admin-table-wrap .card { border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-table-wrap .table { width: 100%; color: #212121; }
.admin-table-wrap .table thead th { background-color: #212121 !important; color: #fff !important; border-color: #212121; font-weight: 600; }
.admin-table-wrap .table tbody tr:hover { background-color: rgba(0,0,0,0.02); }
.admin-table-wrap .table td { color: #212121; }

/* DataTables: Show entries + Search (same design as manage_invoices) */
.admin-table-wrap .dataTables_length select { padding: 0.375rem 1.75rem; border: 1px solid #ced4da; border-radius: 4px; font-size: 0.875rem; }
.admin-table-wrap .dataTables_filter input { padding: 0.375rem 0.75rem; border: 1px solid #ced4da; border-radius: 4px; font-size: 0.875rem; margin-left: 0.5rem; width: 200px; }

/* Dashboard – pehle jesi design, thoda improve */
.dashboard-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  background: #fff;
}
.dashboard-card .card-body {
  padding: 1.25rem 1.5rem;
}

.dashboard-welcome-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1f2937;
}
.dashboard-welcome-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Total Receivables card – admin panel ke hisaab (dashboard-card style) */
.total-receivables-card .card-body {
  padding: 1.5rem 1.75rem;
}

/* Receivables: 5 alag cards ek row me */
.receivables-cards-row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.receivables-mini-col {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.receivables-mini-card .card-body {
  padding: 1rem 0.75rem;
}
@media (min-width: 992px) {
  .receivables-cards-row .receivables-mini-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.receivables-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}
.receivables-label-current { color: #00C8BF; }
.receivables-label-overdue { color: #ea580c; }
.receivables-amount {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
}
.receivables-item-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Sales and Expenses card */
.sales-expenses-card .card-body {
  padding: 1.5rem 1.75rem;
}
.sales-expenses-info-icon {
  font-size: 1rem;
  color: #6b7280;
  cursor: help;
}

/* Sales and Expenses – Total Sales / Total Receipts / Total Expenses: alag-alag cards */
.sales-expenses-mini-card {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  border: 1px solid #e5e7eb;
}
.sales-expenses-mini-card .card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sales-expenses-mini-label {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
}
.sales-expenses-mini-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
}
.sales-expenses-card-sales .sales-expenses-mini-label { color: #2563eb; }
.sales-expenses-card-receipts .sales-expenses-mini-label { color: #059669; }
.sales-expenses-card-expenses .sales-expenses-mini-label { color: #dc2626; }

/* Sales, Receipts, and Dues card + table */
.sales-receipts-dues-card .card-body {
  padding: 1.5rem 1.75rem;
}
.sales-receipts-dues-info {
  font-size: 0.95rem;
  color: #6b7280;
  cursor: help;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
}
.sales-receipts-dues-table {
  font-size: 0.9rem;
  color: #374151;
}
.sales-receipts-dues-table thead th {
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
  border-color: #e5e7eb;
  padding: 0.65rem 0.75rem;
}
.sales-receipts-dues-th-period {
  text-align: left;
  min-width: 120px;
}
.sales-receipts-dues-th {
  text-align: right;
}
.sales-receipts-dues-table tbody td {
  border-color: #e5e7eb;
  padding: 0.6rem 0.75rem;
}
.sales-receipts-dues-period {
  font-weight: 500;
  color: #374151;
}
.sales-receipts-dues-table tbody td:not(.sales-receipts-dues-period) {
  text-align: right;
}
.sales-receipts-dues-table tbody tr:hover {
  background: #fafafa;
}
