/**
 * Pakistan Business Portal (PBP) Accounting Module
 * Clean, Dense, Professional ERP / Bookkeeping Stylesheet
 * 
 * Design Standards:
 * - 1px crisp borders (#e2e8f0 / #cbd5e1)
 * - Standard 6px-8px radius (rounded-lg / rounded-md)
 * - Tabular monospace numbers for all financial figures
 * - Quiet neutral palette with official PBP Forest Green (#184A27) accents
 * - Dense, scannable data tables and document forms
 */

:root {
  --pbp-primary: #184A27;
  --pbp-primary-hover: #0F331A;
  --pbp-surface: #ffffff;
  --pbp-bg: #f8fafc;
  --pbp-border: #e2e8f0;
  --pbp-border-subtle: #f1f5f9;
  --pbp-text-main: #0f172a;
  --pbp-text-muted: #475569;
  --pbp-text-subtle: #94a3b8;
}

/* Tabular Financial Figures */
.acc-amount,
.font-mono.tabular-nums,
.pbp-tabular-nums {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Dense ERP Card Container */
.acc-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.acc-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc-card-body {
  padding: 1rem;
}

/* Compact ERP Tables */
.acc-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: #ffffff;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.25rem;
  text-align: left;
}

.acc-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.6875rem; /* 11px */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.acc-table td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.acc-table tr:hover td {
  background-color: #f8fafc;
}

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

/* Subtle Status Pills */
.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-width: 1px;
}

.acc-badge-emerald,
.pbp-badge-paid,
.pbp-badge-posted {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.acc-badge-amber,
.pbp-badge-partial,
.pbp-badge-draft {
  background-color: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.acc-badge-rose,
.pbp-badge-overdue,
.pbp-badge-cancelled {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.acc-badge-blue {
  background-color: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.acc-badge-slate {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

/* Standard Buttons */
.btn-pbp-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  background-color: #184A27;
  color: #ffffff;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  border-radius: 0.375rem; /* 6px */
  border: 1px solid #184A27;
  transition: all 120ms ease-in-out;
  cursor: pointer;
}

.btn-pbp-primary:hover {
  background-color: #0F331A;
  border-color: #0F331A;
}

.btn-pbp-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
  transition: all 120ms ease-in-out;
  cursor: pointer;
}

.btn-pbp-secondary:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Dense Form Controls */
.acc-input,
.acc-select,
.acc-textarea {
  width: 100%;
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.acc-input:focus,
.acc-select:focus,
.acc-textarea:focus {
  border-color: #184A27;
  box-shadow: 0 0 0 1px #184A27;
}

/* Print Styles */
@media print {
  .print\:hidden {
    display: none !important;
  }
  .acc-card,
  .acc-table-container {
    border: none !important;
    box-shadow: none !important;
  }
}
