/* ============================================================
   rms.css — Receipt Management System custom overrides
   Layered on top of EasyAdmin (main.css) template
   ============================================================ */

/* ── Page title ─────────────────────────────────────────── */
.pagetitle h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

/* ── Stat Cards ─────────────────────────────────────────── */
.stat-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.5rem;
  transition: box-shadow var(--transition-base);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-label  { font-size: 0.78rem; color: var(--muted-color); text-transform: uppercase; letter-spacing: .04em; }
.stat-value  { font-size: 1.75rem; font-weight: 700; color: var(--heading-color); line-height: 1.1; }
.stat-sub    { font-size: 0.78rem; color: var(--muted-color); margin-top: 2px; }

/* ── Receipt type badges ────────────────────────────────── */
.badge-admission     { background: color-mix(in srgb,#0891b2,transparent 88%); color: #0891b2; }
.badge-exam          { background: color-mix(in srgb,#ca8a04,transparent 88%); color: #ca8a04; }
.badge-miscellaneous { background: color-mix(in srgb,#7c3aed,transparent 88%); color: #7c3aed; }

/* ── Table tweaks ───────────────────────────────────────── */
.table-rms thead th {
  background: var(--table-header-bg);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-color);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
}
.table-rms tbody tr:hover { background: var(--table-hover-bg); }
.table-rms td, .table-rms th { vertical-align: middle; padding: .65rem .9rem; }

/* ── Card wrapper ───────────────────────────────────────── */
.rms-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.rms-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.rms-card-title {
  font-size: .9rem; font-weight: 600;
  color: var(--heading-color); margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.rms-card-body { padding: 1.25rem; }

/* ── Fee row in receipt form ────────────────────────────── */
.fee-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .5rem;
  align-items: center;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--border-color-light);
}
.fee-row:last-child { border-bottom: none; }
.fee-label-input { font-size: .875rem; }

/* ── Receipt preview (printable) ────────────────────────── */
.receipt-preview {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.receipt-header-org {
  text-align: center;
  border-bottom: 2px solid #0891b2;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.receipt-header-org h2 { font-size: 1.1rem; font-weight: 700; color: #0e4f5e; margin: 0; }
.receipt-header-org p  { font-size: .78rem; color: #555; margin: .15rem 0 0; }
.receipt-meta { font-size: .82rem; }
.receipt-meta strong { color: var(--heading-color); }
.receipt-fee-table th { background: #e0f5fa; color: #0e4f5e; font-size: .8rem; }
.receipt-total-row td { font-weight: 700; font-size: 1rem; border-top: 2px solid #0891b2 !important; }
.receipt-amount-words { font-size: .82rem; font-style: italic; color: var(--muted-color); }
.receipt-sig { margin-top: 2.5rem; display: flex; justify-content: space-between; font-size: .82rem; }
.receipt-sig div { text-align: center; }
.receipt-sig span { display: block; border-top: 1px solid var(--border-color-dark); padding-top: .35rem; margin-top: 2rem; color: var(--muted-color); }

/* ── Login page ─────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--background-color);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo i { font-size: 2.5rem; color: #0891b2; }
.login-logo h5 { font-weight: 700; margin: .5rem 0 .2rem; color: var(--heading-color); }
.login-logo p  { font-size: .8rem; color: var(--muted-color); margin: 0; }

/* ── Search bar on list pages ───────────────────────────── */
.rms-search { max-width: 280px; }

/* ── Action icon buttons ────────────────────────────────── */
.btn-icon { padding: .3rem .5rem; font-size: .85rem; }

/* ── Status pill ────────────────────────────────────────── */
.status-active   { color: var(--success-color); background: var(--success-color-light); }
.status-inactive { color: var(--danger-color);  background: var(--danger-color-light); }
.status-pill { font-size: .72rem; padding: .25rem .65rem; border-radius: 9999px; font-weight: 500; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted-color); }
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .4; }

/* ── Section divider label ──────────────────────────────── */
.form-section-label {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: .35rem; margin-bottom: 1rem; margin-top: 1.5rem;
}

/* ── Print: hide shell, show only receipt ───────────────── */
@media print {
  .header, .sidebar, .footer, .no-print { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .receipt-preview { box-shadow: none; border: none; max-width: 100%; }
}
