/* ════════════════════════════════════════════════════════════════ Luiz Panel — Finance & Paiements HTMX fragment Scoped to .luiz-panel, replaces all inline styles in template. ════════════════════════════════════════════════════════════════ */ .luiz-panel { display: flex; flex-direction: column; gap: 0.875rem; padding: 0 1.125rem 1.25rem; } /* ── Panel header ── */ .luiz-panel__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.625rem; border-bottom: 1px solid var(--border); } .luiz-panel__title { display: flex; align-items: center; gap: 0.375rem; } .luiz-panel__title-icon { width: 13px; height: 13px; color: var(--text-muted); } .luiz-panel__title-text { font-size: 0.8125rem; font-weight: 600; color: var(--text); } .luiz-panel__title-sub { font-size: 0.75rem; color: var(--text-muted); } .luiz-panel__voir-tout { font-size: 0.6875rem; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.2rem; transition: color var(--duration-fast) var(--ease-default); } .luiz-panel__voir-tout:hover { color: var(--text); } /* ── KPI grid ── */ .luiz-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.5rem; } .luiz-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 0.625rem 0.875rem; transition: border-color var(--duration-fast) var(--ease-default); } .luiz-kpi:hover { border-color: var(--border-strong); } .luiz-kpi__label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; line-height: 1.3; } .luiz-kpi__value { font-size: 1.125rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; } .luiz-kpi__sub { font-size: 0.6875rem; color: var(--text-muted); margin-top: 2px; } /* Neutral kpi */ .luiz-kpi--default .luiz-kpi__label { color: var(--text-muted); } .luiz-kpi--default .luiz-kpi__value { color: var(--text); } /* Paid/success kpi */ .luiz-kpi--success { border-color: var(--c-success-200, #bbf7d0); } .luiz-kpi--success .luiz-kpi__label { color: var(--success); } .luiz-kpi--success .luiz-kpi__value { color: var(--success); } /* Unpaid/error kpi — conditionally applied via Alpine/class binding */ .luiz-kpi--error { border-color: var(--c-error-200, #fecaca); } .luiz-kpi--error .luiz-kpi__label { color: var(--error); } .luiz-kpi--error .luiz-kpi__value { color: var(--error); } /* Recovery rate — color applied inline by template logic */ .luiz-kpi--rate .luiz-kpi__label { color: var(--text-muted); } [data-theme="dark"] .luiz-kpi--success { border-color: rgba(56,161,105,0.2); } [data-theme="dark"] .luiz-kpi--error { border-color: rgba(229,62,62,0.2); } /* ── Progress bar card ── */ .luiz-progress-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 0.875rem 1.125rem; } .luiz-progress-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; } .luiz-progress-card__label { font-size: 0.8125rem; font-weight: 600; color: var(--text); } .luiz-progress-card__rate { font-size: 0.8125rem; font-weight: 700; } .luiz-progress-bar { height: 5px; background: var(--border); border-radius: 9999px; overflow: hidden; } .luiz-progress-bar__fill { height: 100%; border-radius: 9999px; transition: width 0.4s var(--ease-default); } .luiz-progress-card__legend { display: flex; gap: 1rem; margin-top: 0.625rem; } .luiz-legend--paid { font-size: 0.6875rem; font-weight: 600; color: var(--success); } .luiz-legend--partial { font-size: 0.6875rem; font-weight: 600; color: var(--warning); } .luiz-legend--unpaid { font-size: 0.6875rem; font-weight: 600; color: var(--error); } /* ── Section card ── */ .luiz-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; } .luiz-section__head { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.125rem 0.625rem; border-bottom: 1px solid var(--border); } .luiz-section__title { font-size: 0.8125rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 0.4rem; } .luiz-section__link { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; transition: color var(--duration-fast) var(--ease-default); } .luiz-section__link:hover { color: var(--text); } /* ── Data table ── */ .luiz-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; } .luiz-table th { padding: 0.4375rem 0.875rem; text-align: left; font-weight: 600; color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; background: var(--surface-sunken); border-bottom: 1px solid var(--border); } .luiz-table th.th-right { text-align: right; } .luiz-table th.th-center { text-align: center; } .luiz-table td { padding: 0.5rem 0.875rem; border-top: 1px solid var(--border-subtle); vertical-align: middle; } .luiz-table td.td-right { text-align: right; } .luiz-table td.td-center { text-align: center; } .luiz-table tbody tr { transition: background var(--duration-fast) var(--ease-default); } .luiz-table tbody tr:hover { background: var(--surface-hover); } /* Cell types */ .luiz-cell--ref { font-family: var(--font-mono, monospace); font-size: 0.75rem; font-weight: 700; color: var(--primary); text-decoration: none; } .luiz-cell--ref:hover { text-decoration: underline; } .luiz-cell--name { font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .luiz-cell--label { color: var(--text-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .luiz-cell--amount { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; } .luiz-cell--balance-owed { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--error); white-space: nowrap; } .luiz-cell--balance-clear { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; } /* ── Payment status badge ── */ .luiz-status { display: inline-block; font-size: 0.6875rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 9999px; white-space: nowrap; } .luiz-status--paye { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); } .luiz-status--partiel { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); } .luiz-status--impaye { color: var(--error); background: color-mix(in srgb, var(--error) 12%, transparent); } .luiz-status--other { color: var(--text-muted); background: var(--surface-active); } /* ── Footer ── */ .luiz-footer { text-align: center; padding-top: 0.25rem; } .luiz-footer__link { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: color var(--duration-fast) var(--ease-default); } .luiz-footer__link:hover { color: var(--text); }