/* Kerncijfers op de bedrijfspagina (js/bedrijf-kerncijfers.js) */
.kc-in { padding: 0 24px 20px; margin: 0; }
.kc-tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 24px 18px; }
.kc-tegel {
    display: grid; gap: 3px; align-content: start; min-width: 0; padding: 12px 14px;
    border: 1px solid var(--alp-outline); border-radius: var(--alp-radius-sm); background: var(--alp-surface);
    font: inherit; color: inherit; text-align: start;
}
/* style.css geeft elke button een groene achtergrond en flex: hier een gewone tegel */
button.kc-tegel {
    display: grid; justify-content: stretch; justify-items: start; align-items: start;
    width: auto; height: auto; min-height: 0; margin: 0; padding: 12px 14px;
    border: 1px solid var(--alp-outline); border-radius: var(--alp-radius-sm) !important;
    background: var(--alp-surface); color: inherit; box-shadow: none; transform: none;
    font-size: inherit; font-weight: 400; letter-spacing: normal; text-align: start; white-space: normal; cursor: pointer;
}
button.kc-tegel:hover, button.kc-tegel:active { background: var(--alp-rij-hover, var(--alp-surface-muted)); color: inherit; transform: none; border-bottom-width: 1px; }
button.kc-tegel:focus-visible { outline: 2px solid var(--alp-brand-primary); outline-offset: 2px; }
.kc-label { color: var(--alp-text-secondary); font-size: 0.75rem; }
.kc-waarde { color: var(--alp-text-primary); font-size: 1.35rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kc-tegel.is-groot .kc-waarde { font-size: 1.6rem; }
.kc-tegel.is-winst .kc-waarde { color: var(--alp-status-klaar-tekst); }
.kc-tegel.is-alarm .kc-waarde { color: var(--alp-status-blokkade-tekst); }
.kc-onder { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 0.75rem; }
.kc-noot { min-width: 0; color: var(--alp-text-secondary); overflow-wrap: anywhere; }

.kc-vs { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-vs.is-goed { color: var(--alp-status-klaar-tekst); }
.kc-vs.is-slecht { color: var(--alp-status-blokkade-tekst); }
.kc-vs.is-neutraal { color: var(--alp-text-secondary); }
.kc-vs.is-geen { font-weight: 400; color: var(--alp-text-secondary); }

.kc-tabel-wikkel { border-top: 1px solid var(--alp-outline); overflow-x: auto; }
.kc-tabel { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
/* style.css zet elke th grijs, in hoofdletters en met !important: hier niet */
.kc-tabel th, .kc-tabel td { padding: 9px 12px !important; border-bottom: 1px solid var(--alp-outline); text-align: start; vertical-align: top; }
.kc-tabel th:first-child, .kc-tabel td:first-child { padding-inline-start: 24px !important; }
.kc-tabel th:last-child, .kc-tabel td:last-child { padding-inline-end: 24px !important; }
.kc-tabel thead th { background: var(--alp-surface-muted) !important; color: var(--alp-text-secondary) !important; font-size: 0.75rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: normal !important; white-space: nowrap; }
.kc-tabel tbody th { background: transparent !important; color: var(--alp-text-primary) !important; font-size: inherit !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: normal !important; min-width: 140px; overflow-wrap: anywhere; }
.kc-tabel tbody tr:last-child th, .kc-tabel tbody tr:last-child td { border-bottom: 0; }
.kc-tabel small { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 400; color: var(--alp-text-secondary); }
.kc-tabel .kc-n { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kc-tabel .kc-alarm.is-alarm { color: var(--alp-status-blokkade-tekst); font-weight: 600; }
.kc-bedrag { position: relative; }
.kc-balk { display: block; height: 4px; margin: 0 0 4px auto; width: 90px; max-width: 100%; border-radius: 2px; background: var(--alp-status-toekomst-bg, var(--alp-surface-muted)); overflow: hidden; }
.kc-balk i { display: block; height: 100%; margin-inline-start: auto; border-radius: 2px; background: var(--alp-brand-primary); }

.kc-noten { margin: 0; padding: 10px 24px 16px 40px; border-top: 1px solid var(--alp-outline); color: var(--alp-text-secondary); font-size: 0.78rem; }
.kc-noten li + li { margin-top: 2px; }

@media (max-width: 640px) {
    .kc-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; gap: 8px; }
    .kc-tegel { padding: 10px 12px; }
    .kc-waarde, .kc-tegel.is-groot .kc-waarde { font-size: 1.15rem; }
    .kc-tabel .kc-per, .kc-tabel .kc-alarm, .kc-balk { display: none; }
    .kc-tabel { font-size: 0.78rem; }
    .kc-tabel th, .kc-tabel td { padding: 8px 6px !important; }
    .kc-tabel th:first-child, .kc-tabel td:first-child { padding-inline-start: 16px !important; }
    .kc-tabel th:last-child, .kc-tabel td:last-child { padding-inline-end: 16px !important; }
    .kc-tabel tbody th { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: auto; }
    .kc-tabel td.kc-n { white-space: normal; }
    .kc-in { padding: 0 16px 16px; }
    .kc-noten { padding: 10px 16px 14px 32px; }
}
