/*
   Huisstijl overgenomen uit IBapps: teal als hoofdkleur, warm zand als vlakkleur. Het
   Telerik-thema (Bootstrap) neemt de kleuren over via de --kendo-color-* variabelen.
*/

:root {
    --ib-teal: #2c9baf;
    --ib-teal-dark: #1f7a8b;
    --ib-teal-darker: #175f6c;
    --ib-teal-light: #95cdd7;
    --ib-teal-50: #eaf6f8;
    --ib-sand: #d9d0cb;
    --ib-sand-light: #f4f0ed;
    --ib-ink: #2f3437;
    --ib-muted: #62686c;
    --ib-line: #e6e1dd;
    --ib-radius: 14px;
    --ib-shadow: 0 1px 2px rgba(47, 52, 55, .06), 0 8px 24px rgba(47, 52, 55, .07);
    --ib-font: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;

    --kendo-color-primary: var(--ib-teal);
    --kendo-color-primary-hover: var(--ib-teal-dark);
    --kendo-color-primary-active: var(--ib-teal-darker);
    --kendo-color-primary-emphasis: var(--ib-teal-light);
    --kendo-color-primary-subtle: var(--ib-teal-50);
    --kendo-color-primary-subtle-hover: #d6eef2;
    --kendo-color-primary-subtle-active: #c2e5eb;
    --kendo-color-primary-on-subtle: var(--ib-teal-darker);
    --kendo-color-primary-on-surface: var(--ib-teal-dark);
    --kendo-color-on-primary: #fff;
    --kendo-font-family: var(--ib-font);

    --bs-primary: var(--ib-teal);
    --bs-primary-rgb: 44, 155, 175;
    --bs-link-color: var(--ib-teal-dark);
    --bs-link-color-rgb: 31, 122, 139;
    --bs-link-hover-color: var(--ib-teal-darker);
    --bs-body-font-family: var(--ib-font);
    --bs-body-color: var(--ib-ink);
    --bs-border-radius: 8px;
}

body {
    font-family: var(--ib-font);
    color: var(--ib-ink);
    background: #fff;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.01em; color: var(--ib-ink); line-height: 1.2; }
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: 1.35rem; }
a { text-underline-offset: 3px; }

.ib-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.ib-main { flex: 1 0 auto; padding-bottom: 3rem; }
.ib-page { padding-top: 2rem; }
.ib-lead { color: var(--ib-muted); max-width: 46rem; }

/* Meldingen -------------------------------------------------------------- */
.ib-notice { padding: .5rem 0; font-size: .92rem; }
.ib-notice-info { background: var(--ib-teal-50); color: var(--ib-teal-darker); }
.ib-notice-meekijken { background: #fff4d6; color: #5c4700; border-bottom: 1px solid #f0d58a; }

/* Kopbalk --------------------------------------------------------------- */
.ib-header { background: #fff; position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid var(--ib-line); transition: box-shadow .2s; }
.ib-header-scrolled { box-shadow: 0 4px 18px rgba(47, 52, 55, .08); }
.ib-header .navbar { min-height: 68px; }
.ib-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ib-teal-darker) !important; font-size: 1.2rem; }
.ib-brand .k-icon { font-size: 1.6rem; color: var(--ib-teal); }
.ib-brand-bureau { font-size: .85rem; font-weight: 700; color: var(--ib-muted); border-left: 1px solid var(--ib-line); padding-left: .6rem; margin-left: .1rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-nav { gap: .15rem; }
.ib-nav .nav-link { color: #555; font-weight: 700; font-size: .96rem; padding: .5rem .85rem !important; border-radius: 999px; transition: background .15s, color .15s; }
.ib-nav .nav-link:hover, .ib-nav .nav-link:focus-visible { background: var(--ib-sand-light); color: var(--ib-ink); }
.ib-nav .nav-link.active { background: var(--ib-teal-50); color: var(--ib-teal-darker); }
.ib-dropdown { border: 1px solid var(--ib-line); border-radius: 12px; box-shadow: var(--ib-shadow); padding: .5rem; min-width: 16rem; }
.ib-dropdown .dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.ib-dropdown .dropdown-item .k-icon { color: var(--ib-teal); }
.ib-dropdown .dropdown-item:active { background: var(--ib-teal); }
.ib-utility { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; font-size: .9rem; }
.ib-login-link { color: var(--ib-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.navbar-toggler { border: 1px solid var(--ib-line); padding: .45rem .6rem; font-size: 1.3rem; }
@media (max-width: 1199.98px) {
    .ib-nav { padding: .75rem 0; }
    .ib-utility { justify-content: flex-start; padding: 0 0 1rem; }
}

/* Kaarten en kerncijfers --------------------------------------------------- */
.ib-card { background: #fff; border: 1px solid var(--ib-line); border-radius: var(--ib-radius); box-shadow: var(--ib-shadow); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.ib-card > :last-child { margin-bottom: 0; }
.ib-card h2 { font-size: 1.1rem; }
.ib-stat { font-size: 2rem; font-weight: 800; color: var(--ib-teal-dark); line-height: 1; }
.ib-stat-label { color: var(--ib-muted); font-size: .9rem; }
.ib-stat-warning { color: #9a6700; }
.ib-stat-danger { color: #b3261e; }
.ib-dl { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: .35rem 1rem; margin: 0; }
.ib-dl dt { color: var(--ib-muted); font-weight: 600; }
.ib-dl dd { margin: 0; }
.ib-section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 2rem 0 .75rem; }
.ib-section-title h2 { margin: 0; }
.ib-breadcrumb { font-size: .875rem; margin-bottom: .5rem; }
.ib-breadcrumb a { color: #555; }

/* Account (aanmelden, beveiliging): formulier links, zijbalk rechts ---------- */
.ib-account { padding: clamp(2rem, 5vw, 4rem) 0; }
.ib-account-panel { background: #fff; border: 1px solid var(--ib-line); border-radius: var(--ib-radius); box-shadow: var(--ib-shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.ib-account-panel h1 { font-size: 1.75rem; }
.ib-well { background: var(--ib-sand-light); border-radius: var(--ib-radius); padding: 1.5rem; }
.ib-well h2 { font-size: 1.05rem; }
.ib-well ul { list-style: none; padding: 0; margin: 0; }
.ib-well li a { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; font-weight: 700; text-decoration: none; }
.ib-well li a.active { color: var(--ib-ink); }

/* Formulieren ------------------------------------------------------------ */
.ib-form .k-form-field, .ib-field { margin-bottom: 1.1rem; }
.ib-form label, .ib-field > label { font-weight: 700; margin-bottom: .3rem; display: block; }
.ib-field .field-validation-error, .ib-form .field-validation-error, .text-danger { color: #b3261e !important; font-size: .9rem; }
.ib-field-hint { font-size: .85rem; color: var(--ib-muted); margin-top: .25rem; }
.ib-password { position: relative; }
.ib-password .toggle-password { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--ib-muted); z-index: 2; }
.ib-password .k-input-inner { padding-right: 2.5rem; }
.ib-strength { height: 6px !important; margin-top: .4rem; }
.ib-strength.ib-weak .k-selected { background: #d9534f; }
.ib-strength.ib-medium .k-selected { background: #e0a100; }
.ib-strength.ib-strong .k-selected { background: #2e8b57; }
.ib-code-input .k-input-inner { font-size: 1.4rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.ib-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; font-family: Consolas, monospace; font-size: 1.05rem; background: var(--ib-sand-light); border-radius: 10px; padding: 1rem 1.25rem; }
.ib-qr { background: #fff; border: 1px solid var(--ib-line); border-radius: 12px; padding: 12px; display: inline-block; }
.ib-secret { font-family: Consolas, monospace; background: var(--ib-sand-light); padding: .2rem .5rem; border-radius: 6px; word-break: break-all; }
.ib-status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; }
.ib-status-ok { color: #2e7d4f; }
.ib-status-todo { color: #9a6700; }
.ib-empty-icon { font-size: 48px; color: var(--ib-teal); margin-bottom: 1rem; }
.ib-bureau-keuze { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ib-bureau-keuze:hover, .ib-bureau-keuze:focus-visible { border-color: var(--ib-teal); box-shadow: 0 0 0 3px var(--ib-teal-50); }
.ib-bureau-keuze img { max-height: 44px; max-width: 180px; display: block; margin-bottom: .75rem; }
.ib-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Kendo-onderdelen ------------------------------------------------------------ */
.k-button { font-weight: 700; }
.k-button-lg { padding-inline: 1.4rem; }
.k-grid { border-radius: 10px; overflow: hidden; font-size: .93rem; }
.k-badge { font-weight: 700; }
.ib-row-muted { color: var(--ib-muted); }

/* Audit uitvoeren ---------------------------------------------------------- */
.ib-uitvoeren-lijst { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 1rem; }
.ib-uitvoeren-lijst ul { list-style: none; padding: 0; margin: 0 0 .75rem; }
.ib-uitvoeren-lijst li a { display: flex; gap: .45rem; align-items: baseline; padding: .3rem .5rem; border-radius: 8px; color: var(--ib-ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.ib-uitvoeren-lijst li a:hover { background: var(--ib-sand-light); }
.ib-uitvoeren-lijst li a.active { background: var(--ib-teal-50); font-weight: 700; }
.ib-uitvoeren-groep { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ib-muted); margin: .5rem .5rem .25rem; }
.ib-nummer { font-variant-numeric: tabular-nums; color: var(--ib-muted); min-width: 3.4rem; flex: none; }
.ib-stip { width: .7rem; height: .7rem; border-radius: 50%; flex: none; align-self: center; border: 2px solid var(--ib-sand); }
.ib-stip-success { background: var(--kendo-color-success, #2e7d4f); border-color: transparent; }
.ib-stip-info { background: var(--kendo-color-info, #0d6efd); border-color: transparent; }
.ib-stip-tertiary { background: var(--kendo-color-tertiary, #6f42c1); border-color: transparent; }
.ib-stip-warning { background: var(--kendo-color-warning, #e0a100); border-color: transparent; }
.ib-stip-error { background: var(--kendo-color-error, #b3261e); border-color: transparent; }
.ib-helptekst { background: var(--ib-teal-50); border-color: #cfe9ee; }
.ib-helptekst h2 .k-icon, .ib-card h2 .k-icon { color: var(--ib-teal); }
.ib-eerder { border-top: 1px solid var(--ib-line); padding: .6rem 0; }
.ib-eerder:first-of-type { border-top: 0; padding-top: 0; }
.ib-oordelen { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .6rem; }
.ib-oordeel { display: flex; flex-direction: column; gap: .2rem; border: 2px solid var(--ib-line); border-top-width: 5px; border-radius: 10px; padding: .6rem .75rem; cursor: pointer; font-weight: 400 !important; line-height: 1.35; }
.ib-oordeel .k-radio { margin-bottom: .2rem; }
.ib-oordeel:has(input:checked) { background: var(--ib-sand-light); box-shadow: 0 0 0 3px var(--ib-teal-50); border-right-color: var(--ib-teal); border-bottom-color: var(--ib-teal); border-left-color: var(--ib-teal); }
.ib-oordeel-success { border-top-color: var(--kendo-color-success, #2e7d4f); }
.ib-oordeel-info { border-top-color: var(--kendo-color-info, #0d6efd); }
.ib-oordeel-tertiary { border-top-color: var(--kendo-color-tertiary, #6f42c1); }
.ib-oordeel-warning { border-top-color: var(--kendo-color-warning, #e0a100); }
.ib-oordeel-error { border-top-color: var(--kendo-color-error, #b3261e); }
details.ib-card summary { cursor: pointer; }

/* Voettekst -------------------------------------------------------------- */
.ib-footer { background: var(--ib-ink); color: #d9d6d3; padding: 1.25rem 0; font-size: .85rem; }
.ib-footer a { color: #fff; text-decoration: none; }
.ib-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

@media print {
    .ib-card { box-shadow: none; border: 0; }
}
