/* Elysian IQ shared list/report design (2026-11-04).
   Same look as the Appointment and Patients tabs (their apt2-/pt- classes live inside those pages), packaged once here
   for the invoice and payment pages. All classes are prefixed eu- so nothing else on the site is affected. */
.eu-page { padding-bottom: 1rem; }
.eu-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.eu-title { font-size: 1.35rem; font-weight: 700; color: #1f2430; margin: 0; }
.eu-sub { color: #6b7280; font-size: .9rem; }
.eu-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.eu-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.eu-chip { border: 1px solid #d5d9e0; background: #fff; color: #3a3f44; border-radius: 18px; padding: .3rem .85rem; font-size: .9rem; cursor: pointer; font: inherit; font-size: .9rem; }
.eu-chip:hover { background: #f3f4f6; }
.eu-chip.on { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.eu-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border: 1px solid #d5d9e0; background: #fff; border-radius: 20px; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 500; color: #3a3f44; width: fit-content; user-select: none; }
.eu-btn:hover { background: #f3f4f6; }
.eu-btn.primary { background: #0d6efd; border-color: #0d6efd; color: #fff; font-weight: 600; }
.eu-btn.primary:hover { background: #0b5ed7; }
.eu-btn.danger { color: #b3261e; border-color: #f1b0b7; }
.eu-btn.disabled, .eu-btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.eu-btn .rzi { font-size: 1.15rem; }
.eu-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: .9rem; }
.eu-field { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.eu-field > label { font-size: .8rem; color: #6b7280; }
.eu-search { flex: 1 1 240px; min-width: 0; }
.eu-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: .9rem; }
.eu-card { background: #fff; border: 2px solid #e5e8ee; border-radius: 14px; padding: .8rem 1rem; min-width: 0; text-align: left; font: inherit; color: inherit; }
button.eu-card { cursor: pointer; }
button.eu-card:hover { border-color: #c4cad6; }
.eu-card.on { border-color: #0d6efd; background: #f3f8ff; }
.eu-card-label { font-size: .78rem; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.eu-card-value { font-size: 1.55rem; font-weight: 700; line-height: 1.15; margin-top: .1rem; color: #1f2430; word-break: break-word; }
.eu-card-sub { font-size: .85rem; color: #6b7280; margin-top: .15rem; }
.eu-card.good .eu-card-value { color: #1b6e3a; }
.eu-card.warn .eu-card-value { color: #8a5a00; }
.eu-card.bad .eu-card-value { color: #b3261e; }
.eu-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: .9rem; align-items: start; }
.eu-panels.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.eu-panel { background: #fff; border: 1px solid #e5e8ee; border-radius: 14px; padding: .9rem 1rem; min-width: 0; margin-bottom: .8rem; }
.eu-panels > .eu-panel { margin-bottom: 0; }
.eu-panel h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.eu-panel h3 small { font-weight: 500; color: #6b7280; font-size: .82rem; }
.eu-table-wrap { overflow-x: auto; }
.eu-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.eu-table th { text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; padding: .45rem .6rem; border-bottom: 1px solid #e5e8ee; white-space: nowrap; }
.eu-table td { padding: .5rem .6rem; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.eu-table tbody tr:hover { background: #f8f9fb; }
.eu-table tfoot td { font-weight: 700; border-top: 2px solid #e5e8ee; border-bottom: 0; background: #fafbfc; }
.eu-table .num, .eu-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.eu-table .empty { text-align: center; color: #6b7280; padding: 1.4rem .6rem; }
.eu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .8rem; align-items: start; }
.eu-item { background: #fff; border: 1px solid #e5e8ee; border-radius: 14px; padding: .8rem .9rem; min-width: 0; }
.eu-item.cancelled { background: #fdf6f6; border-color: #f1d0d3; }
.eu-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.eu-item-name { font-weight: 700; word-break: break-word; }
.eu-item-amt { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.eu-item-meta { font-size: .85rem; color: #6b7280; margin-top: .15rem; word-break: break-word; }
.eu-kv { font-size: .85rem; color: #3a3f44; margin-top: .45rem; }
.eu-kv div { margin-top: .1rem; word-break: break-word; }
.eu-kv span { display: inline-block; min-width: 5rem; color: #6b7280; }
.eu-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.eu-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 0; }
.eu-pill { display: inline-block; border-radius: 12px; padding: .1rem .55rem; font-size: .75rem; font-weight: 700; background: #eef2ff; color: #3b4a8f; }
.eu-pill.paid { background: #e6f4ea; color: #1b6e3a; }
.eu-pill.part { background: #fff4de; color: #8a5a00; }
.eu-pill.unpaid { background: #fdecea; color: #b3261e; }
.eu-pill.cancelled { background: #eceef1; color: #5b6270; text-decoration: line-through; }
.eu-pill.muted { background: #f5f6f8; color: #5b6270; }
.eu-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.eu-tag { display: inline-flex; align-items: center; gap: .35rem; background: #e7f0ff; color: #0a4fc4; border-radius: 14px; padding: .2rem .65rem; font-size: .85rem; }
.eu-tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; }
.eu-empty { text-align: center; padding: 2.2rem 1rem; color: #6b7280; background: #fff; border: 1px solid #e5e8ee; border-radius: 14px; margin-bottom: .8rem; }
.eu-note { color: #6b7280; font-size: .85rem; }
.eu-alert { border-radius: 12px; padding: .65rem .9rem; font-size: .88rem; margin-top: .7rem; }
.eu-alert.warn { background: #fff8e6; border: 1px solid #f5d98b; color: #6b4a00; }
.eu-alert.info { background: #eaf3ff; border: 1px solid #bcd6fb; color: #0a3d82; }
.eu-more { display: flex; align-items: center; gap: .8rem; justify-content: center; padding: .8rem 0 1rem; flex-wrap: wrap; }
.eu-bar { display: block; height: 7px; background: #eef0f4; border-radius: 4px; margin-top: .25rem; overflow: hidden; }
.eu-bar > span { display: block; height: 100%; background: #0d6efd; border-radius: 4px; }
.eu-barline { display: flex; justify-content: space-between; gap: .6rem; font-size: .92rem; }
.eu-barrow { padding: .3rem 0; }
.eu-day { font-weight: 700; color: #1f2430; margin: 1rem 0 .4rem; display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 992px) {
    .eu-panels, .eu-panels.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .eu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .eu-card-value { font-size: 1.25rem; }
    .eu-list { grid-template-columns: 1fr; }
    .eu-filters > .eu-field, .eu-filters > .eu-btn { flex: 1 1 100%; }
    .eu-filters > .eu-btn { justify-content: center; }
}
