/* Minimal frontend CSS placeholder for the amortization table + progress component */
.lfamort-table { border-collapse: collapse; width: 100%; }
.lfamort-table td, .lfamort-table th { padding: 6px 8px; border: 1px solid #eaeaea; }
.lfamort-toggle + .visible { display: block; }

/* Accessible screen-reader only helper */
.lfamort-sr-only { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Progress Region (plugin-prefixed selectors) */
.lfamort-progress-region { box-sizing: border-box; padding: 10px; margin: 8px 0; border-radius: 10px; background: #ffffff; border: 1px solid #e6eef6; }
.lfamort-progress-region .lfamort-progress-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.lfamort-progress-region .lfamort-kpi { flex: 1 1 0; min-width: 0; }
.lfamort-kpi__label { font-size: 12px; color: #334155; font-weight: 600; margin-bottom: 4px; }
.lfamort-kpi__value { font-size: 18px; font-weight: 700; color: #0f172a; }

/* Progress bar */
.lfamort-progress-bar { width: 100%; height: 10px; background: #eef2ff; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.lfamort-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#2563eb 0%,#3b82f6 100%); transition: width 280ms ease; }

/* Variant: reader (default) - larger, high contrast */
.lfamort-progress-region[data-variant="reader"] { background: #f8fafc; border-color: #dbeafe; }
.lfamort-progress-region[data-variant="reader"] .lfamort-kpi__value { font-size: 20px; }
.lfamort-progress-region[data-variant="reader"] .lfamort-kpi__label { font-size: 13px; }
.lfamort-progress-region[data-variant="reader"] .lfamort-progress-bar { height: 12px; }

/* Variant: compact - denser for investor view */
.lfamort-progress-region[data-variant="compact"] { background: transparent; border-color: transparent; }
.lfamort-progress-region[data-variant="compact"] .lfamort-kpi__value { font-size: 14px; font-weight: 700; }
.lfamort-progress-region[data-variant="compact"] .lfamort-kpi__label { font-size: 11px; font-weight:600; color:#475569 }
.lfamort-progress-region[data-variant="compact"] .lfamort-progress-inner { gap: 8px; }
.lfamort-progress-region[data-variant="compact"] .lfamort-progress-bar { height: 8px; }

/* Responsive */
@media (max-width: 720px) {
    .lfamort-progress-region .lfamort-progress-inner { flex-direction: column; align-items: stretch; }
    .lfamort-progress-region .lfamort-kpi { width: 100%; }
}

/* Tab styles */
.lfamort-tabs { display:flex; gap:8px; margin:8px 0; }
.lfamort-tab { padding:8px 12px; border-radius:8px; border:1px solid #e2e8f0; background:#fff; cursor:pointer; }
.lfamort-tab[aria-selected="true"] { background:#eff6ff; border-color:#bfdbfe; }
.lfamort-panel { margin:10px 0; }
.lfamort-table-placeholder { padding:18px; background:#fff; border:1px dashed #e6eef6; border-radius:8px; color:#475569 }
.lfamort-spinner { color:#2563eb; font-weight:600 }
.lfamort-error { color:#dc2626; }

/* Keep selectors specific to plugin prefix to avoid collisions */
.lfamort-progress-region, .lfamort-progress-region * { box-sizing: border-box; }

