/* Expense vouchers on the aesthetic clinic console. */
.aea-content:has([data-aea-vouchers]) > .aea-module { display: none !important; }

.aea-vouchers { font-family: "DM Sans", sans-serif; color: #142033; display: grid; gap: 14px; padding-bottom: 28px; }
.aea-vouchers h1, .aea-vouchers h2, .aea-vouchers h3, .aea-vouchers p { margin: 0; }
.aea-vch-head { display: flex; align-items: center; gap: 12px; }
.aea-vch-mark { width: 46px; height: 46px; border-radius: 14px; background: #e7f6ee; color: #157a45; display: grid; place-items: center; flex: none; }
.aea-vch-head h1 { font-size: 1.35rem; letter-spacing: -.02em; }
.aea-vch-head p { color: #64748b; font-size: .86rem; margin-top: 2px; }
.aea-vch-note, .aea-vch-error { font-size: .86rem; }
.aea-vch-note { color: #157a45; }
.aea-vch-error { color: #b91c1c; }

.aea-vch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 14px; align-items: start; }
.aea-vch-main, .aea-vch-side, .aea-vch-card { background: #fff; border: 1px solid #e6eef2; border-radius: 18px; }
.aea-vch-main { padding: 14px; display: grid; gap: 12px; }
.aea-vch-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aea-vch-kpi { border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.aea-vch-kpi b { display: block; font-size: 1.15rem; }
.aea-vch-kpi span { color: #64748b; font-size: .75rem; }
.aea-vch-kpi i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.7); }
.aea-vch-kpi.mint { background: #eefbf3; }
.aea-vch-kpi.green { background: #e9f8ef; }
.aea-vch-kpi.sand { background: #fff8e8; }
.aea-vch-kpi.lilac { background: #f4f0ff; }

.aea-vch-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.aea-vch-chip, .aea-vch-btn { border: 0; border-radius: 10px; height: 36px; padding: 0 12px; font: 700 13px "DM Sans", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.aea-vch-chip { background: #f4f7f8; color: #475569; }
.aea-vch-chip.is-on { background: #168a4a; color: #fff; }
.aea-vch-btn { background: #fff; border: 1px solid #e2e8f0; color: #142033; }
.aea-vch-btn.is-green { background: #168a4a; border-color: #168a4a; color: #fff; }
.aea-vch-btn:disabled { opacity: .6; cursor: default; }
.aea-vch-icon { width: 32px; height: 32px; border-radius: 9px; border: 1px solid #e2e8f0; background: #fff; color: #334155; display: grid; place-items: center; cursor: pointer; }
.aea-vch-icon:hover { background: #f8fafc; }
.aea-vch-icon.danger { color: #b91c1c; }

.aea-vch-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.aea-vch-filters input, .aea-vch-filters select, .aea-vch-field input, .aea-vch-field select, .aea-vch-field textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #142033; font: 500 13px "DM Sans", sans-serif;
}
.aea-vch-filters input, .aea-vch-filters select { height: 38px; padding: 0 10px; min-width: 0; }
.aea-vch-filters input[type="search"] { flex: 1; min-width: 180px; }
.aea-vch-table-wrap { overflow: auto; }
.aea-vch-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.aea-vch-table th { text-align: left; font-size: .72rem; letter-spacing: .04em; color: #94a3b8; font-weight: 700; padding: 8px; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.aea-vch-table td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.aea-vch-table code { font-weight: 700; color: #0f172a; }
.aea-vch-person small, .aea-vch-muted { display: block; color: #94a3b8; font-size: .75rem; }
.aea-vch-actions { display: flex; gap: 6px; justify-content: flex-end; }
.aea-vch-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 8px; font-size: .75rem; font-weight: 700; background: #f1f5f9; color: #475569; white-space: nowrap; }
.aea-vch-pill.green { background: #e8f8ee; color: #157a45; }
.aea-vch-pill.red { background: #fee2e2; color: #b91c1c; }
.aea-vch-pill.purple { background: #f3e8ff; color: #7e22ce; }
.aea-vch-pill.sand { background: #f8efe2; color: #9a6700; }
.aea-vch-pill.amber { background: #fef3c7; color: #b45309; }
.aea-vch-pill.blue { background: #e0f2fe; color: #0369a1; }
.aea-vch-pill.teal { background: #ccfbf1; color: #0f766e; }
.aea-vch-pill.gray { background: #f1f5f9; color: #475569; }
.aea-vch-status.Pending { background: #fff7ed; color: #c2410c; }
.aea-vch-status.Approved { background: #e0f2fe; color: #0369a1; }
.aea-vch-status.Rejected { background: #fee2e2; color: #b91c1c; }
.aea-vch-status.Paid { background: #e8f8ee; color: #157a45; }
.aea-vch-status.Cancelled { background: #f1f5f9; color: #64748b; }

.aea-vch-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #64748b; font-size: .8rem; }
.aea-vch-pages { display: flex; gap: 4px; align-items: center; }
.aea-vch-pages button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; }
.aea-vch-pages button.is-on { background: #168a4a; color: #fff; }

.aea-vch-side { padding: 16px; display: grid; gap: 10px; position: sticky; top: 12px; }
.aea-vch-side h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.aea-vch-field { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: #334155; }
.aea-vch-field input, .aea-vch-field select, .aea-vch-field textarea { font-weight: 500; padding: 8px 10px; }
.aea-vch-field textarea { min-height: 78px; resize: vertical; }
.aea-vch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aea-vch-drop { border: 1px dashed #cbd5e1; border-radius: 14px; padding: 16px; text-align: center; color: #64748b; font-size: .8rem; cursor: pointer; background: #f8fafc; }
.aea-vch-drop strong { color: #157a45; }
.aea-vch-drop input { display: none; }
.aea-vch-files { display: grid; gap: 4px; font-size: .78rem; color: #475569; }
.aea-vch-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.aea-vch-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 80; display: grid; place-items: center; padding: 20px; }
.aea-vch-modal { width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.aea-vch-modal h2 { font-size: 1.15rem; }
.aea-vch-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 10px; font-size: .88rem; }
.aea-vch-dl dt { color: #64748b; }
.aea-vch-history { display: grid; gap: 6px; font-size: .82rem; }
.aea-vch-history div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #f1f5f9; }

.aea-vch-report { display: grid; gap: 12px; }
.aea-vch-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aea-vch-sum { background: #fff; border: 1px solid #e6eef2; border-radius: 16px; padding: 14px; }
.aea-vch-sum b { font-size: 1.2rem; }

@media (max-width: 1100px) {
  .aea-vch-layout, .aea-vch-kpis, .aea-vch-sums { grid-template-columns: 1fr 1fr; }
  .aea-vch-side { position: static; }
}
@media (max-width: 720px) {
  .aea-vch-layout, .aea-vch-kpis, .aea-vch-sums, .aea-vch-split, .aea-vch-dl { grid-template-columns: 1fr; }
}
@media print {
  .aea-sidebar, .aea-top, .aea-vch-actions, .aea-vch-side, .aea-vch-filters, .aea-vch-chips, .aea-vch-form-actions { display: none !important; }
}
