.aea-content:has([data-aea-invoice]) > .aea-module {
  display: none !important;
}

.aea-invoice {
  --ink: #0f172a;
  --muted: #64748b;
  --teal: #0f766e;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px 28px;
}

.aea-inv-head, .aea-inv-top, .aea-inv-kind, .aea-inv-gender, .aea-inv-item-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aea-inv-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.aea-inv-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.aea-inv-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #d1fae5;
  color: #047857;
}

.aea-inv-steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 16px;
}
.aea-inv-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.aea-inv-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  flex: none;
}
.aea-inv-steps li.is-on { color: var(--teal); }
.aea-inv-steps li.is-on span, .aea-inv-steps li.is-done span { background: var(--teal); color: #fff; }
.aea-inv-steps li.is-done { color: #334155; }
.aea-inv-error {
  margin: 0;
  background: #fff1f2;
  color: #be123c;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.aea-inv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.aea-inv-main, .aea-inv-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aea-inv-card {
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.aea-inv-card h2 { margin: 0; font-size: 16px; flex: 1; }
.aea-inv-card h3 { margin: 12px 0 6px; font-size: 13px; }
.aea-inv-kind { margin-left: auto; }
.aea-inv-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #475569; }
.aea-inv-radio.is-on { color: var(--teal); }
.aea-inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.aea-inv-grid-3 { grid-template-columns: 1.15fr 1.15fr 0.9fr; }
.aea-inv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aea-inv-span { grid-column: span 2; }
.aea-inv-field { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; color: #475569; }
.aea-inv-input, .aea-inv-card textarea { min-width: 0;
  width: 100%;
  height: 40px;
  border: 1px solid #e6edf2;
  border-radius: 10px;
  padding: 0 10px;
  font: 600 14px "DM Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}
.aea-inv-card textarea { height: 84px; padding: 10px; resize: vertical; margin-top: 10px; }
.aea-inv-age { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.aea-inv-count { margin: 6px 0 0; text-align: right; color: #94a3b8; font-size: 12px; }

.aea-inv-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.aea-inv-tab, .aea-inv-line, .aea-inv-go {
  height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 700 12.5px "DM Sans", sans-serif;
  cursor: pointer;
}
.aea-inv-tab { border: 1px solid #e7eef2; background: #fff; color: #475569; }
.aea-inv-tab.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.aea-inv-search { max-width: none; flex: 1; min-width: 180px; }
.aea-inv-item-bar { align-items: center; flex-wrap: wrap; margin-top: 12px; }
.aea-inv-custom { width: auto; margin-top: 0; flex: none; white-space: nowrap; }
.aea-inv-suggest { display: flex; flex-direction: column; gap: 6px; }
.aea-inv-catalog { max-height: 280px; overflow: auto; margin-top: 10px; }
.aea-inv-catalog .aea-inv-empty { text-align: left; padding: 8px 2px; }
.aea-inv-suggest-item {
  text-align: left;
  border: 1px solid #eef3f6;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font: inherit;
}
.aea-inv-scroll { overflow-x: auto; margin-top: 8px; }
.aea-invoice table { width: 100%; border-collapse: collapse; min-width: 760px; }
.aea-invoice th, .aea-invoice td { text-align: left; padding: 10px 8px; border-top: 1px solid #f1f5f9; font-size: 13px; white-space: nowrap; }
.aea-invoice th { color: #94a3b8; font-size: 12px; }
.aea-inv-stack { display: grid; }
.aea-inv-stack small { color: var(--muted); font-size: 12px; }
.aea-inv-type { background: #dcfce7; color: #15803d; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.aea-inv-stepper { display: inline-flex; align-items: center; gap: 6px; }
.aea-inv-stepper button { width: 24px; height: 24px; border-radius: 8px; border: 1px solid #e7eef2; background: #fff; cursor: pointer; font-weight: 800; }
.aea-inv-discount { height: 32px; border: 1px solid #e6edf2; border-radius: 8px; padding: 0 6px; font: 700 13px "DM Sans", sans-serif; }
.aea-inv-amt { font-weight: 800; }
.aea-inv-trash { width: 32px; height: 32px; border-radius: 10px; border: 1px solid #ffe4e6; background: #fff; color: #e11d48; display: grid; place-items: center; cursor: pointer; }
.aea-inv-empty { color: var(--muted); text-align: center; padding: 16px !important; }

.aea-inv-draft { background: #f1f5f9; color: #64748b; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.aea-inv-meta, .aea-inv-bill { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.aea-inv-meta span, .aea-inv-bill span, .aea-inv-tax { color: var(--muted); }
.aea-inv-bill .off { color: #e11d48; }
.aea-inv-tax { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.aea-inv-payable { margin-top: 12px; background: #ecfdf5; border-radius: 14px; padding: 12px; display: flex; justify-content: space-between; align-items: center; }
.aea-inv-payable strong { font-size: 22px; color: #047857; }
.aea-inv-pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.aea-inv-pay {
  border: 1px solid #e7eef2;
  background: #fff;
  border-radius: 12px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  font: 700 12px "DM Sans", sans-serif;
  color: #475569;
  cursor: pointer;
}
.aea-inv-pay.is-on { border-color: var(--teal); background: #f0fdfa; color: var(--teal); }
.aea-inv-line { border: 1px solid #e7eef2; background: #fff; color: #334155; width: 100%; margin-top: 8px; }
.aea-inv-go { border: 0; background: var(--teal); color: #fff; width: 100%; margin-top: 8px; }
.aea-inv-side .aea-inv-go, .aea-inv-side .aea-inv-line { height: 42px; }
.aea-inv-success h2 { font-size: 22px; }
.aea-inv-success p { color: var(--muted); }
.aea-inv-success .aea-inv-go { width: auto; }

.aea-inv-shade { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.28); display: flex; z-index: 40; }
.aea-inv-modal { width: min(460px, calc(100% - 32px)); margin: auto; background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.aea-inv-billpop { width: min(860px, calc(100% - 32px)); max-height: min(86vh, 820px); overflow: auto; }
.aea-invoice .aea-inv-billpop .aea-inv-sessions { min-width: 0; }
.aea-inv-pophead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aea-inv-pophead h2 { font-size: 18px; }
.aea-inv-modal h2 { margin: 0; }
.aea-inv-modal p { margin: 0; color: #334155; }
.aea-inv-preview-line { font-size: 14px; }
.aea-inv-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.aea-inv-modal-actions .aea-inv-go, .aea-inv-modal-actions .aea-inv-line { width: auto; }
.aea-inv-listhead { justify-content: space-between; align-items: flex-start; }
.aea-inv-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aea-inv-create { height: 40px; border: 0; border-radius: 12px; background: #16a34a; color: #fff; padding: 0 16px; font: 750 14px "DM Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.aea-inv-create:hover { background: #15803d; }
.aea-inv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.aea-inv-moneys { display: flex; flex-wrap: wrap; gap: 8px; }
.aea-inv-money { border: 1px solid #e7eef2; background: #fff; color: #475569; border-radius: 999px; height: 36px; padding: 0 12px; font: 750 13px "DM Sans", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.aea-inv-money b { color: #0f766e; }
.aea-inv-money.is-on { background: #0f766e; border-color: #0f766e; color: #fff; }
.aea-inv-money.is-on b { color: #fff; }
.aea-inv-refund { margin-top: 14px; display: grid; gap: 8px; }
.aea-inv-refund h3 { margin: 0; font-size: 15px; }
.aea-inv-refund-line { border: 1px solid #e7eef2; border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.aea-inv-refunded { color: #9f1239; }
a[href="/invoices/payments"],
a[href="/aesthetic-admin/invoices/payments"] { display: none !important; }
.aea-inv-kpi { background: #fff; border: 1px solid #eef3f6; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.aea-inv-kpi.paid { background: #f6fef9; }
.aea-inv-kpi.wait { background: #fffaf3; }
.aea-inv-kpi.due { background: #faf7ff; }
.aea-inv-kpi-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.aea-inv-kpi.total .aea-inv-kpi-icon { background: #dcfce7; color: #16a34a; }
.aea-inv-kpi.paid .aea-inv-kpi-icon { background: #d1fae5; color: #059669; }
.aea-inv-kpi.wait .aea-inv-kpi-icon { background: #ffedd5; color: #d97706; }
.aea-inv-kpi.due .aea-inv-kpi-icon { background: #ede9fe; color: #7c3aed; }
.aea-inv-kpi strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.aea-inv-kpi span { color: var(--muted); font-size: 12px; font-weight: 700; }
.aea-inv-board { padding: 14px 14px 10px; }
.aea-inv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.aea-inv-listq { flex: 1; min-width: 220px; }
.aea-inv-filter { width: auto; min-width: 140px; color: #475569; }
.aea-inv-reset { height: 40px; border: 0; background: transparent; color: #64748b; font: 700 13px "DM Sans", sans-serif; cursor: pointer; }
.aea-inv-sort { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.aea-inv-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.aea-inv-table th, .aea-inv-table td { text-align: left; padding: 12px 10px; border-top: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
.aea-inv-table th { color: #94a3b8; font-size: 12px; font-weight: 700; border-top: 0; }
.aea-inv-table tbody tr { cursor: pointer; }
.aea-inv-table tbody tr:hover { background: #f8fafc; }
.aea-inv-num { color: #94a3b8; }
.aea-inv-no { font-weight: 700; color: #0f172a; }
.aea-invoice .aea-inv-table td.aea-inv-service { white-space: normal; min-width: 180px; color: #334155; }
.aea-inv-person { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.aea-inv-avatar { width: 28px; height: 28px; border-radius: 99px; color: #fff; display: inline-grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.aea-inv-method { display: inline-flex; align-items: center; gap: 6px; }
.aea-inv-method i { width: 18px; height: 18px; border-radius: 6px; background: #dcfce7; color: #16a34a; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.aea-inv-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 750; }
.aea-inv-pill i { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.aea-inv-pill.paid { background: #ecfdf3; color: #16a34a; }
.aea-inv-pill.part { background: #fffbeb; color: #d97706; }
.aea-inv-pill.pend { background: #f5f3ff; color: #7c3aed; }
.aea-inv-pill.unpaid { background: #fef2f2; color: #ef4444; }
.aea-inv-pill.cancel { background: #f1f5f9; color: #64748b; }
.aea-inv-empty { color: var(--muted); padding: 18px 8px; }
.aea-inv-detail { margin-top: 12px; padding: 12px; border: 1px solid #eef3f6; border-radius: 14px; background: #f8fafc; display: grid; gap: 6px; }
.aea-inv-detail h3, .aea-inv-detail p { margin: 0; }
.aea-inv-table tbody tr.is-open { background: #f3faf7; }
.aea-inv-actions { white-space: nowrap; text-align: right; }
.aea-inv-icon { width: 32px; height: 32px; border: 0; background: transparent; color: #64748b; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; }
.aea-inv-icon:hover { background: #f1f5f9; color: #0f172a; }
.aea-inv-menu { position: relative; display: inline-block; }
.aea-inv-pop { position: absolute; right: 0; top: 34px; z-index: 6; min-width: 180px; background: #fff; border: 1px solid #e7eef2; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12); padding: 6px; }
.aea-inv-pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; font: 650 13px "DM Sans", sans-serif; color: #0f172a; cursor: pointer; }
.aea-inv-pop button:hover { background: #f3faf7; }
.aea-inv-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 4px; color: #64748b; font-size: 13px; }
.aea-inv-pages { display: flex; gap: 6px; }
.aea-inv-page { width: 32px; height: 32px; border-radius: 10px; border: 1px solid #e7eef2; background: #fff; cursor: pointer; font: 750 14px "DM Sans", sans-serif; color: #334155; }
.aea-inv-page.is-on { background: #16a34a; border-color: #16a34a; color: #fff; }
.aea-inv-page:disabled { opacity: 0.4; cursor: default; }
.aea-inv-size { display: inline-flex; align-items: center; gap: 8px; }
.aea-inv-size .aea-inv-input { width: 72px; height: 34px; }
.aea-inv-mini { border: 1px solid #d5e4df; background: #fff; color: #0f5c49; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; margin-right: 6px; }
.aea-inv-mini:hover { background: #f3faf7; }
.aea-inv-sessions { width: 100%; border-collapse: collapse; margin-top: 8px; }
.aea-inv-sessions th, .aea-inv-sessions td { text-align: left; padding: 6px 8px; border-top: 1px solid #eef3f6; font-size: 12px; }
.aea-inv-adjust { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.aea-inv-adjust .aea-inv-input { width: auto; min-width: 120px; }
.aea-inv-note { color: #64748b; font-size: 12px; }

@media (max-width: 1500px) {
  .aea-inv-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .aea-inv-layout, .aea-inv-grid, .aea-inv-grid-3, .aea-inv-grid-4, .aea-inv-kpis { grid-template-columns: 1fr 1fr; }
  .aea-inv-span { grid-column: auto; }
  .aea-inv-steps { flex-wrap: wrap; }
}
