/* ============================================
   ABYCO BIM Systeem — Huisstijl
   Donkerblauw · Staalgrijs · Oranje accenten
   ============================================ */

:root {
    --abyco-navy: #0F2942;
    --abyco-navy-light: #1A3A5C;
    --abyco-navy-dark: #0A1E30;
    --abyco-orange: #E8620A;
    --abyco-orange-light: #FF7A1F;
    --abyco-orange-dark: #C74E00;
    --steel-50: #F5F7FA;
    --steel-100: #E8ECF1;
    --steel-200: #D3DBE3;
    --steel-300: #B0BCC9;
    --steel-400: #8695A6;
    --steel-500: #647486;
    --steel-600: #4A5764;
    --steel-700: #37414C;
    --steel-800: #232B33;
    --steel-900: #151A1F;

    --blue: #3B82F6;
    --green: #10B981;
    --orange: #F59E0B;
    --red: #EF4444;
    --purple: #8B5CF6;
    --teal: #14B8A6;
    --yellow: #EAB308;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15,41,66,0.06);
    --shadow: 0 2px 8px rgba(15,41,66,0.08);
    --shadow-md: 0 4px 16px rgba(15,41,66,0.10);
    --shadow-lg: 0 8px 32px rgba(15,41,66,0.14);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--steel-50);
    color: var(--steel-800);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============ NAVIGATIE ============ */
.bim-nav {
    background: var(--abyco-navy);
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.bim-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    margin-right: 40px;
}

.bim-nav__menu {
    display: flex;
    list-style: none;
    gap: 4px;
    flex: 1;
}

.bim-nav__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--steel-300);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.bim-nav__menu a svg { width: 18px; height: 18px; }
.bim-nav__menu a:hover { color: white; background: var(--abyco-navy-light); }
.bim-nav__menu a.active { color: white; background: var(--abyco-orange); }

.bim-nav__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bim-nav__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--abyco-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
}

.bim-nav__user-info { display: flex; flex-direction: column; line-height: 1.2; }
.bim-nav__user-name { color: white; font-weight: 600; font-size: 13px; }
.bim-nav__user-role { color: var(--steel-400); font-size: 11px; }

.bim-nav__logout {
    background: transparent;
    border: none;
    color: var(--steel-400);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    transition: all 0.15s;
}
.bim-nav__logout svg { width: 18px; height: 18px; }
.bim-nav__logout:hover { color: white; background: var(--abyco-navy-light); }

/* ============ HOOFDINHOUD ============ */
.bim-main { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }
.bim-page { display: flex; flex-direction: column; gap: 24px; }
.bim-page--narrow { max-width: 900px; margin: 0 auto; width: 100%; }

.bim-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.bim-page__title { font-size: 26px; font-weight: 700; color: var(--abyco-navy); letter-spacing: -0.02em; }
.bim-page__subtitle { color: var(--steel-500); font-size: 14px; margin-top: 2px; }
.bim-page__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bim-page__number { font-family: monospace; font-size: 13px; color: var(--steel-500); font-weight: 600; }
.bim-page__type { font-size: 13px; color: var(--steel-500); }
.bim-page__actions { display: flex; gap: 10px; }

/* ============ BROODKRUIMEL ============ */
.bim-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--steel-500);
}
.bim-breadcrumb a { color: var(--abyco-orange); font-weight: 500; }
.bim-breadcrumb a:hover { text-decoration: underline; }

/* ============ KNOPPEN ============ */
.bim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.bim-btn svg { width: 16px; height: 16px; }
.bim-btn--primary { background: var(--abyco-orange); color: white; }
.bim-btn--primary:hover { background: var(--abyco-orange-dark); box-shadow: var(--shadow-md); }
.bim-btn--secondary { background: var(--abyco-navy); color: white; }
.bim-btn--secondary:hover { background: var(--abyco-navy-light); }
.bim-btn--ghost { background: var(--steel-100); color: var(--steel-700); }
.bim-btn--ghost:hover { background: var(--steel-200); }
.bim-btn--danger { background: var(--red); color: white; }
.bim-btn--danger:hover { background: #DC2626; }
.bim-btn--sm { padding: 6px 12px; font-size: 13px; }
.bim-btn--block { width: 100%; justify-content: center; }

.bim-link { color: var(--abyco-orange); font-weight: 600; font-size: 13px; }
.bim-link:hover { text-decoration: underline; }

/* ============ KAARTEN ============ */
.bim-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--steel-100);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.bim-card--table { padding: 0; overflow: hidden; }
.bim-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.bim-card__title { font-size: 16px; font-weight: 700; color: var(--abyco-navy); }
.bim-card__subheader {
    font-size: 13px; font-weight: 600; color: var(--steel-500);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin: 20px 0 12px;
}

/* ============ KPI GRID ============ */
.bim-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.bim-kpi {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--steel-100);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.bim-kpi__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bim-kpi__icon svg { width: 24px; height: 24px; }
.bim-kpi__icon--blue { background: #EFF6FF; color: var(--blue); }
.bim-kpi__icon--green { background: #ECFDF5; color: var(--green); }
.bim-kpi__icon--orange { background: #FFF7ED; color: var(--abyco-orange); }
.bim-kpi__icon--purple { background: #F5F3FF; color: var(--purple); }
.bim-kpi__content { display: flex; flex-direction: column; }
.bim-kpi__value { font-size: 24px; font-weight: 700; color: var(--abyco-navy); letter-spacing: -0.02em; }
.bim-kpi__label { font-size: 13px; color: var(--steel-500); }

/* ============ GRID LAYOUTS ============ */
.bim-grid-2col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.bim-card--full { grid-column: auto; }

/* ============ PROJECT KAARTEN ============ */
.bim-project-list { display: flex; flex-direction: column; gap: 12px; }
.bim-project-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--steel-100);
    border-radius: var(--radius);
    transition: all 0.15s;
}
.bim-project-card:hover { border-color: var(--abyco-orange); box-shadow: var(--shadow-md); }
.bim-project-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.bim-project-card__number { font-family: monospace; font-size: 12px; color: var(--steel-400); font-weight: 600; }
.bim-project-card__name { font-size: 16px; font-weight: 700; color: var(--abyco-navy); margin: 2px 0; }
.bim-project-card__client { font-size: 13px; color: var(--steel-500); }
.bim-project-card__stats { display: flex; gap: 24px; margin-bottom: 12px; }
.bim-stat-label { display: block; font-size: 11px; color: var(--steel-400); text-transform: uppercase; letter-spacing: 0.05em; }
.bim-stat-value { display: block; font-size: 15px; font-weight: 700; color: var(--steel-800); }

/* Project tegels (index) */
.bim-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bim-project-tile {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--steel-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
}
.bim-project-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bim-project-tile__header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--abyco-navy);
}
.bim-project-tile__type-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--abyco-navy-light);
    position: relative;
}
.bim-project-tile__type-icon::after {
    content: '🏗️'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.bim-project-tile__type-icon--gevel::after { content: '🧱'; }
.bim-project-tile__type-icon--renovatie::after { content: '🔨'; }
.bim-project-tile__type-icon--installatie::after { content: '🔧'; }
.bim-project-tile__body { padding: 18px; flex: 1; }
.bim-project-tile__number { font-family: monospace; font-size: 12px; color: var(--steel-400); font-weight: 600; }
.bim-project-tile__name { font-size: 17px; font-weight: 700; color: var(--abyco-navy); margin: 4px 0; }
.bim-project-tile__client { font-size: 13px; color: var(--steel-600); font-weight: 500; }
.bim-project-tile__address { font-size: 12px; color: var(--steel-400); }
.bim-project-tile__stats {
    display: flex;
    justify-content: space-around;
    padding: 14px 18px;
    border-top: 1px solid var(--steel-100);
    background: var(--steel-50);
}
.bim-project-tile__stat { text-align: center; }
.bim-project-tile__stat span { display: block; font-size: 17px; font-weight: 700; color: var(--abyco-navy); }
.bim-project-tile__stat small { font-size: 11px; color: var(--steel-400); }
.bim-project-tile__footer { padding: 14px 18px; display: flex; gap: 8px; }

/* ============ BADGES ============ */
.bim-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.bim-badge--blue { background: #EFF6FF; color: #1D4ED8; }
.bim-badge--green { background: #ECFDF5; color: #047857; }
.bim-badge--orange { background: #FFF7ED; color: var(--abyco-orange-dark); }
.bim-badge--yellow { background: #FEFCE8; color: #A16207; }
.bim-badge--purple { background: #F5F3FF; color: #6D28D9; }
.bim-badge--teal { background: #F0FDFA; color: #0F766E; }
.bim-badge--red { background: #FEF2F2; color: #B91C1C; }
.bim-badge--gray { background: var(--steel-100); color: var(--steel-600); }

/* ============ VOORTGANGSBALK ============ */
.bim-progress-bar {
    height: 6px;
    background: var(--steel-100);
    border-radius: 10px;
    overflow: hidden;
}
.bim-progress-bar--lg { height: 12px; }
.bim-progress-bar__fill {
    height: 100%;
    background: var(--abyco-orange);
    border-radius: 10px;
    transition: width 0.4s ease;
}
.bim-progress-bar__fill--orange { background: var(--orange); }
.bim-progress-bar__fill--red { background: var(--red); }

/* ============ BUDGET KAART ============ */
.bim-budget-card { display: flex; flex-direction: column; gap: 14px; }
.bim-budget-card__header { display: flex; justify-content: space-between; align-items: flex-end; }
.bim-budget-card__label { font-size: 13px; color: var(--steel-500); display: block; }
.bim-budget-card__total { font-size: 24px; font-weight: 700; color: var(--abyco-navy); }
.bim-budget-card__usage { font-size: 14px; font-weight: 600; }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }

/* ============ FASES ============ */
.bim-phase { padding: 16px 0; border-bottom: 1px solid var(--steel-100); }
.bim-phase:last-child { border-bottom: none; }
.bim-phase__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bim-phase__title-group { display: flex; align-items: center; gap: 10px; }
.bim-phase__status { width: 10px; height: 10px; border-radius: 50%; background: var(--steel-300); }
.bim-phase__status--actief { background: var(--blue); }
.bim-phase__status--afgerond { background: var(--green); }
.bim-phase__status--vertraagd { background: var(--red); }
.bim-phase__name { font-size: 15px; font-weight: 600; color: var(--abyco-navy); }
.bim-phase__progress { font-size: 14px; font-weight: 700; color: var(--steel-600); }

/* ============ ELEMENT RIJEN ============ */
.bim-element-list { display: flex; flex-direction: column; gap: 6px; }
.bim-element-row {
    display: grid;
    grid-template-columns: auto 1.5fr 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--steel-50);
}
.bim-element-row__color { width: 8px; height: 8px; border-radius: 50%; }
.bim-element-row__name a { font-weight: 600; color: var(--abyco-navy); }
.bim-element-row__name a:hover { color: var(--abyco-orange); }
.bim-element-row__type { font-size: 12px; color: var(--steel-500); }
.bim-element-row__cost { font-weight: 700; color: var(--steel-700); font-size: 13px; text-align: right; }
.bim-more-link { font-size: 13px; color: var(--abyco-orange); font-weight: 600; padding: 8px 12px; }

/* ============ ACTIVITEIT ============ */
.bim-activity-list { display: flex; flex-direction: column; gap: 14px; }
.bim-activity-item { display: flex; gap: 12px; }
.bim-activity-item__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--abyco-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.bim-activity-item__content { display: flex; flex-direction: column; }
.bim-activity-item__text { font-size: 13px; color: var(--steel-700); }
.bim-activity-item__meta { font-size: 12px; color: var(--steel-400); }

/* ============ TABELLEN ============ */
.bim-table { width: 100%; border-collapse: collapse; }
.bim-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--steel-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--steel-50);
    border-bottom: 1px solid var(--steel-200);
}
.bim-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--steel-100); }
.bim-table tbody tr:hover { background: var(--steel-50); }
.bim-table tbody tr:last-child td { border-bottom: none; }
.bim-table__code { font-family: monospace; font-size: 12px; color: var(--steel-500); }
.bim-table__link { font-weight: 600; color: var(--abyco-navy); }
.bim-table__link:hover { color: var(--abyco-orange); }
.bim-table__dims { font-size: 12px; color: var(--steel-500); font-family: monospace; }
.bim-table__cost { font-weight: 700; color: var(--steel-700); }
.bim-table__action { color: var(--steel-400); display: inline-flex; padding: 4px; }
.bim-table__action svg { width: 16px; height: 16px; }
.bim-table__action:hover { color: var(--abyco-orange); }
.bim-table__row--inactive { opacity: 0.5; }

.bim-type-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--steel-300);
    font-size: 12px;
    font-weight: 500;
    color: var(--steel-700);
}

/* Status select in tabel */
.bim-status-select {
    padding: 4px 8px;
    border-radius: 20px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}
.bim-status-select--gepland { background: #EFF6FF; color: #1D4ED8; }
.bim-status-select--besteld { background: #FEFCE8; color: #A16207; }
.bim-status-select--geleverd { background: #F5F3FF; color: #6D28D9; }
.bim-status-select--gemonteerd { background: #F0FDFA; color: #0F766E; }
.bim-status-select--goedgekeurd { background: #ECFDF5; color: #047857; }
.bim-status-select--afgekeurd { background: #FEF2F2; color: #B91C1C; }

/* ============ STATUS SAMENVATTING ============ */
.bim-status-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bim-status-summary__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--steel-100);
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 120px;
}
.bim-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bim-status-dot--gepland { background: var(--blue); }
.bim-status-dot--besteld { background: var(--yellow); }
.bim-status-dot--geleverd { background: var(--purple); }
.bim-status-dot--gemonteerd { background: var(--teal); }
.bim-status-dot--goedgekeurd { background: var(--green); }
.bim-status-dot--afgekeurd { background: var(--red); }
.bim-status-summary__count { font-size: 18px; font-weight: 700; color: var(--abyco-navy); }
.bim-status-summary__label { font-size: 12px; color: var(--steel-500); }

/* ============ STATUS BAR (detail) ============ */
.bim-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid;
}
.bim-status-bar__label { font-size: 14px; color: var(--steel-700); }
.bim-status-bar__date { margin-left: auto; font-size: 13px; color: var(--steel-500); }

.bim-status-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.bim-status-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--steel-200);
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--steel-600);
    cursor: pointer;
    transition: all 0.15s;
}
.bim-status-btn:hover { border-color: var(--abyco-orange); }
.bim-status-btn--active { background: var(--abyco-navy); color: white; border-color: var(--abyco-navy); }

/* ============ DETAILS LIJST ============ */
.bim-details { display: flex; flex-direction: column; }
.bim-details > div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--steel-100);
}
.bim-details > div:last-child { border-bottom: none; }
.bim-details dt { color: var(--steel-500); font-size: 13px; }
.bim-details dd { font-weight: 600; color: var(--steel-800); font-size: 13px; }
.bim-details__total { border-top: 2px solid var(--steel-200); margin-top: 4px; padding-top: 12px !important; }
.bim-details__total dt { color: var(--abyco-navy); font-weight: 600; }
.bim-details__total dd { color: var(--abyco-orange); font-size: 16px; }

.bim-material-list { display: flex; flex-direction: column; gap: 6px; }
.bim-material-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 10px;
    padding: 8px 12px;
    background: var(--steel-50);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.bim-notes { color: var(--steel-600); line-height: 1.6; white-space: pre-wrap; }

/* ============ TEAM ============ */
.bim-team-list { display: flex; flex-direction: column; gap: 12px; }
.bim-team-member { display: flex; align-items: center; gap: 12px; }
.bim-team-member__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--steel-200);
    color: var(--steel-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
.bim-team-member__name { font-weight: 600; color: var(--steel-800); font-size: 14px; display: block; }
.bim-team-member__role { font-size: 12px; color: var(--steel-400); text-transform: capitalize; }

/* ============ DOCUMENTEN ============ */
.bim-document-list { display: flex; flex-direction: column; gap: 8px; }
.bim-document-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--steel-50); }
.bim-document-item__icon { font-size: 20px; }
.bim-document-item__name { font-weight: 600; color: var(--abyco-navy); font-size: 13px; display: block; }
.bim-document-item__name:hover { color: var(--abyco-orange); }
.bim-document-item__meta { font-size: 12px; color: var(--steel-400); }

/* ============ FORMULIEREN ============ */
.bim-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bim-form-group { display: flex; flex-direction: column; gap: 6px; }
.bim-form-group--full { grid-column: 1 / -1; }
.bim-form-group--third { grid-column: span 1; }
.bim-form-group--inline { flex-direction: row; align-items: center; }
.bim-form-divider {
    font-size: 13px;
    font-weight: 700;
    color: var(--abyco-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 12px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--steel-100);
}
.bim-label { font-size: 13px; font-weight: 600; color: var(--steel-700); }
.req { color: var(--abyco-orange); }
.bim-input, .bim-select, .bim-textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--steel-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--steel-800);
    background: white;
    transition: all 0.15s;
    width: 100%;
}
.bim-input:focus, .bim-select:focus, .bim-textarea:focus {
    outline: none;
    border-color: var(--abyco-orange);
    box-shadow: 0 0 0 3px rgba(232,98,10,0.1);
}
.bim-input--readonly { background: var(--steel-50); color: var(--abyco-orange); font-weight: 700; }
.bim-textarea { resize: vertical; }
.bim-error { font-size: 12px; color: var(--red); }
.bim-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--steel-100);
}
.bim-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--steel-700); }
.bim-checkbox input { width: 16px; height: 16px; accent-color: var(--abyco-orange); }
.bim-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bim-checkbox small { color: var(--steel-400); }

/* ============ FILTERS ============ */
.bim-filters { background: white; padding: 16px; border-radius: var(--radius); border: 1px solid var(--steel-100); }
.bim-filters__form { display: flex; gap: 12px; flex-wrap: wrap; }
.bim-filters__form .bim-input { flex: 1; min-width: 200px; width: auto; }
.bim-filters__form .bim-select { width: auto; min-width: 150px; }

/* ============ DANGER ZONE ============ */
.bim-danger-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 20px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
}
.bim-danger-zone h3 { font-size: 14px; color: #991B1B; }
.bim-danger-zone p { font-size: 13px; color: #B91C1C; }

/* ============ MODAL ============ */
.bim-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.bim-modal.hidden { display: none; }
.bim-modal__overlay { position: absolute; inset: 0; background: rgba(15,41,66,0.5); backdrop-filter: blur(2px); }
.bim-modal__content { position: relative; background: white; border-radius: var(--radius-lg); padding: 28px; width: 480px; max-width: 90vw; box-shadow: var(--shadow-lg); }
.bim-modal__title { font-size: 18px; font-weight: 700; color: var(--abyco-navy); margin-bottom: 20px; }
.bim-modal__content .bim-form-group { margin-bottom: 16px; }
.bim-modal__footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

/* ============ ALERTS ============ */
.bim-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
}
.bim-alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.bim-alert--success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.bim-alert--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ============ LEGE STATEN ============ */
.bim-empty { text-align: center; padding: 40px 20px; color: var(--steel-400); }
.bim-empty--full { grid-column: 1 / -1; }
.bim-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.4; }
.bim-empty p { margin-bottom: 16px; }
.bim-empty--table { padding: 32px; }
.bim-empty-text { color: var(--steel-400); font-size: 14px; padding: 20px 0; text-align: center; }
.bim-empty-text--small { padding: 8px 0; font-size: 13px; }

/* ============ AUTH / LOGIN ============ */
.bim-auth-body { background: var(--abyco-navy); }
.bim-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.bim-auth__panel {
    background: linear-gradient(135deg, var(--abyco-navy) 0%, var(--abyco-navy-dark) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.bim-auth__panel::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232,98,10,0.15) 0%, transparent 70%);
}
.bim-auth__brand { display: flex; align-items: center; gap: 16px; color: white; }
.bim-auth__brand h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.bim-auth__brand span { font-size: 13px; color: var(--steel-400); }
.bim-auth__tagline h2 { color: white; font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 16px; }
.bim-auth__tagline p { color: var(--steel-300); font-size: 16px; line-height: 1.6; max-width: 400px; }
.bim-auth__footer { color: var(--steel-500); font-size: 13px; position: relative; z-index: 1; }
.bim-auth__form-wrap { background: white; display: flex; align-items: center; justify-content: center; padding: 40px; }
.bim-auth__form { width: 100%; max-width: 380px; }
.bim-auth__form h2 { font-size: 26px; font-weight: 700; color: var(--abyco-navy); }
.bim-auth__subtitle { color: var(--steel-500); margin: 8px 0 28px; }
.bim-auth__form .bim-form-group { margin-bottom: 18px; }

/* ============ PAGINATIE ============ */
.bim-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.bim-pagination a, .bim-pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--steel-600);
    background: white;
    border: 1px solid var(--steel-200);
}
.bim-pagination a:hover { border-color: var(--abyco-orange); color: var(--abyco-orange); }
.bim-pagination .active span { background: var(--abyco-orange); color: white; border-color: var(--abyco-orange); }

/* ============ GEBRUIKER CEL ============ */
.bim-user-cell { display: flex; align-items: center; gap: 10px; }
.bim-user-cell__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--abyco-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

/* ============ NAV ZOEKEN & MELDINGEN ============ */
.bim-nav__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--abyco-navy-light);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    height: 38px;
    margin-right: 12px;
}
.bim-nav__search svg { width: 16px; height: 16px; color: var(--steel-400); flex-shrink: 0; }
.bim-nav__search input {
    background: transparent; border: none; outline: none; color: white;
    font-size: 13px; width: 160px; font-family: var(--font);
}
.bim-nav__search input::placeholder { color: var(--steel-400); }

.bim-nav__bell {
    position: relative; cursor: pointer; padding: 8px; margin-right: 8px;
    color: var(--steel-300); border-radius: var(--radius-sm); transition: all 0.15s;
}
.bim-nav__bell:hover { color: white; background: var(--abyco-navy-light); }
.bim-nav__bell > svg { width: 20px; height: 20px; }
.bim-nav__bell-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--abyco-orange); color: white;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.bim-notif-dropdown {
    position: absolute; top: 44px; right: 0; width: 320px;
    background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    z-index: 200; overflow: hidden; cursor: default;
}
.bim-notif-dropdown__head { padding: 14px 16px; font-weight: 700; color: var(--abyco-navy); border-bottom: 1px solid var(--steel-100); }
.bim-notif-dropdown__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--steel-100); }
.bim-notif-dropdown__item:hover { background: var(--steel-50); }
.bim-notif-dropdown__item strong { font-size: 13px; color: var(--steel-800); }
.bim-notif-dropdown__item span { font-size: 12px; color: var(--steel-500); }
.bim-notif-dropdown__item small { font-size: 11px; color: var(--steel-400); }
.bim-notif-dropdown__empty { padding: 24px 16px; text-align: center; color: var(--steel-400); font-size: 13px; }
.bim-notif-dropdown__all { display: block; padding: 12px 16px; text-align: center; color: var(--abyco-orange); font-weight: 600; font-size: 13px; }
.bim-notif-dropdown__all:hover { background: var(--steel-50); }

/* ============ MODULE-NAVIGATIE ============ */
.bim-module-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bim-module-tab {
    display: flex; align-items: center; gap: 10px;
    background: white; border: 1px solid var(--steel-100); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow-sm); transition: all 0.15s;
}
.bim-module-tab:hover { border-color: var(--abyco-orange); box-shadow: var(--shadow-md); }
.bim-module-tab svg { width: 20px; height: 20px; color: var(--abyco-navy); }
.bim-module-tab span:first-of-type { font-weight: 600; color: var(--steel-800); flex: 1; }
.bim-module-tab__count {
    background: var(--steel-100); color: var(--steel-600); font-weight: 700; font-size: 13px;
    min-width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 0 8px;
}
.bim-module-tab__count--alert { background: #FEF2F2; color: var(--red); }

/* ============ OPMERKINGEN ============ */
.bim-comments { display: flex; flex-direction: column; gap: 16px; }
.bim-comment-list { display: flex; flex-direction: column; gap: 14px; }
.bim-comment { display: flex; gap: 12px; }
.bim-comment__avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--abyco-navy);
    color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.bim-comment__body { flex: 1; background: var(--steel-50); border-radius: var(--radius); padding: 12px 14px; }
.bim-comment__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bim-comment__author { font-weight: 600; color: var(--abyco-navy); font-size: 13px; }
.bim-comment__time { font-size: 12px; color: var(--steel-400); }
.bim-comment__delete { margin-left: auto; }
.bim-comment__delete button { background: none; border: none; color: var(--steel-400); cursor: pointer; font-size: 18px; line-height: 1; }
.bim-comment__delete button:hover { color: var(--red); }
.bim-comment__text { font-size: 14px; color: var(--steel-700); white-space: pre-wrap; }
.bim-comment-form { display: flex; gap: 10px; align-items: flex-start; }
.bim-comment-form textarea { flex: 1; }

/* ============ MELDINGEN OVERZICHT ============ */
.bim-notification-list { display: flex; flex-direction: column; }
.bim-notification { display: flex; align-items: center; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--steel-100); position: relative; }
.bim-notification:hover { background: var(--steel-50); }
.bim-notification--unread { background: #FFF9F4; }
.bim-notification__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #FFF7ED; color: var(--abyco-orange); }
.bim-notification__icon svg { width: 20px; height: 20px; }
.bim-notification__icon--check { background: #ECFDF5; color: var(--green); }
.bim-notification__icon--comment { background: #EFF6FF; color: var(--blue); }
.bim-notification__content { display: flex; flex-direction: column; gap: 2px; }
.bim-notification__title { font-weight: 600; color: var(--steel-800); font-size: 14px; }
.bim-notification__message { font-size: 13px; color: var(--steel-500); }
.bim-notification__time { font-size: 12px; color: var(--steel-400); }
.bim-notification__dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--abyco-orange); }

/* ============ ZOEKEN ============ */
.bim-search-form { display: flex; gap: 12px; }
.bim-search-form .bim-input { flex: 1; }
.bim-search-results { display: flex; flex-direction: column; gap: 4px; }
.bim-search-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-sm); }
.bim-search-item:hover { background: var(--steel-50); }
.bim-search-item__icon { font-size: 22px; }
.bim-search-item strong { display: block; color: var(--abyco-navy); font-size: 14px; }
.bim-search-item small { color: var(--steel-500); font-size: 12px; }

/* ============ KEURINGEN / CHECKLIST ============ */
.bim-checklist { display: flex; flex-direction: column; gap: 8px; }
.bim-checklist-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--steel-50); border-radius: var(--radius-sm); }
.bim-checklist-row__desc { flex: 1; font-size: 14px; color: var(--steel-700); }
.bim-checklist-row__actions { display: flex; gap: 6px; }
.bim-check-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1.5px solid var(--steel-200); background: white; cursor: pointer; font-size: 16px; font-weight: 700; transition: all 0.15s; }
.bim-check-btn--ok { color: var(--green); }
.bim-check-btn--ok.active { background: var(--green); color: white; border-color: var(--green); }
.bim-check-btn--nok { color: var(--red); }
.bim-check-btn--nok.active { background: var(--red); color: white; border-color: var(--red); }
.bim-checklist-input { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bim-checklist-input__num { font-weight: 600; color: var(--steel-400); width: 24px; }
.bim-inspection-verdict { display: flex; gap: 12px; }

/* ============ QR-CODE ============ */
.bim-qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bim-qr { margin: 12px 0; padding: 12px; background: white; border: 1px solid var(--steel-100); border-radius: var(--radius); }
.bim-qr img, .bim-qr canvas { display: block; }
.bim-qr__code { font-family: monospace; font-size: 13px; color: var(--steel-500); font-weight: 600; }

/* ============ HULPTEKST ============ */
.bim-help-text { font-size: 13px; color: var(--steel-500); margin-bottom: 8px; }
.bim-text-muted { color: var(--steel-400); }

/* ============ GANTT / PLANNING ============ */
.bim-gantt-legend { display: flex; gap: 20px; font-size: 13px; color: var(--steel-600); }
.bim-gantt-legend span { display: flex; align-items: center; gap: 6px; }
.bim-gantt-legend__swatch { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.bim-gantt-legend__swatch--planned { background: var(--abyco-navy); }
.bim-gantt-legend__swatch--actual { background: var(--abyco-orange); }
.bim-gantt-legend__swatch--today { background: var(--red); width: 3px; }

.bim-gantt-card { overflow-x: auto; }
.bim-gantt { min-width: 720px; }
.bim-gantt__header { display: flex; border-bottom: 2px solid var(--steel-200); padding-bottom: 8px; margin-bottom: 8px; }
.bim-gantt__label-col { width: 220px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--steel-600); }
.bim-gantt__timeline { flex: 1; position: relative; display: flex; }
.bim-gantt__month { font-size: 11px; color: var(--steel-500); text-transform: uppercase; letter-spacing: 0.03em; border-left: 1px solid var(--steel-100); padding-left: 6px; overflow: hidden; white-space: nowrap; }
.bim-gantt__today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); }

.bim-gantt__row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--steel-100); }
.bim-gantt__row:last-child { border-bottom: none; }
.bim-gantt__phase-name { display: block; font-weight: 600; color: var(--abyco-navy); font-size: 14px; }
.bim-gantt__phase-meta { display: block; font-size: 12px; color: var(--steel-400); }
.bim-gantt__edit { margin-left: auto; background: none; border: none; color: var(--steel-400); cursor: pointer; padding: 4px; }
.bim-gantt__edit svg { width: 15px; height: 15px; }
.bim-gantt__edit:hover { color: var(--abyco-orange); }
.bim-gantt__track { flex: 1; position: relative; height: 34px; }
.bim-gantt__today-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--red); opacity: 0.4; z-index: 1; }
.bim-gantt__bar { position: absolute; height: 13px; border-radius: 7px; min-width: 6px; }
.bim-gantt__bar--planned { top: 2px; background: var(--abyco-navy); opacity: 0.85; }
.bim-gantt__bar--planned .bim-gantt__bar-fill { display: block; height: 100%; background: var(--blue); border-radius: 7px; }
.bim-gantt__bar--actual { bottom: 2px; background: var(--abyco-orange); }
.bim-gantt__bar--late { background: var(--red); }

/* ============ IFC-IMPORT ============ */
.bim-ifc-dropzone {
    border: 2px dashed var(--steel-300); border-radius: var(--radius);
    padding: 32px; text-align: center; position: relative; transition: all 0.15s;
}
.bim-ifc-dropzone:hover { border-color: var(--abyco-orange); background: #FFF9F4; }
.bim-ifc-dropzone svg { width: 40px; height: 40px; color: var(--steel-400); margin: 0 auto 12px; }
.bim-ifc-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bim-ifc-dropzone__label { display: block; font-weight: 600; color: var(--steel-700); }
.bim-ifc-dropzone__hint { font-size: 12px; color: var(--steel-400); }
.bim-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--steel-600); }
.bim-steps li { padding-left: 4px; }
.bim-note { margin-top: 16px; padding: 12px 14px; background: var(--steel-50); border-left: 3px solid var(--abyco-orange); border-radius: var(--radius-sm); font-size: 13px; color: var(--steel-600); }
.bim-note code { background: var(--steel-100); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.bim-log { background: var(--steel-900); color: #E5E7EB; padding: 16px; border-radius: var(--radius-sm); font-size: 13px; font-family: monospace; white-space: pre-wrap; overflow-x: auto; }

/* ============ 3D-VIEWER ============ */
.bim-viewer { background: white; border: 1px solid var(--steel-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bim-viewer__toolbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--steel-100); gap: 16px; flex-wrap: wrap; }
.bim-viewer__filters { display: flex; gap: 10px; flex-wrap: wrap; }
.bim-viewer__filters .bim-select { width: auto; min-width: 130px; }
.bim-viewer__legend { display: flex; gap: 14px; font-size: 12px; color: var(--steel-500); }
.bim-viewer__legend span { display: flex; align-items: center; gap: 5px; }
.bim-viewer__legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bim-viewer__body { display: grid; grid-template-columns: 1fr 340px; height: 600px; }
.bim-viewer__canvas { position: relative; background: #eef1f5; overflow: hidden; }
.bim-viewer__canvas canvas { display: block; }
.bim-viewer__loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--steel-500); font-size: 14px; text-align: center; padding: 20px; }
.bim-spinner { width: 36px; height: 36px; border: 3px solid var(--steel-200); border-top-color: var(--abyco-orange); border-radius: 50%; animation: bim-spin 0.8s linear infinite; }
@keyframes bim-spin { to { transform: rotate(360deg); } }
.bim-viewer__panel { border-left: 1px solid var(--steel-100); display: flex; flex-direction: column; background: white; }
.bim-viewer__panel-head { padding: 14px; border-bottom: 1px solid var(--steel-100); display: flex; flex-direction: column; gap: 8px; }
.bim-viewer__panel-head #panel-count { font-weight: 700; color: var(--abyco-navy); font-size: 13px; }
.bim-viewer__list { flex: 1; overflow-y: auto; }
.bim-viewer__item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--steel-100); cursor: pointer; }
.bim-viewer__item:hover { background: var(--steel-50); }
.bim-viewer__item-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bim-viewer__item-info { flex: 1; display: flex; flex-direction: column; }
.bim-viewer__item-info strong { font-size: 13px; color: var(--steel-800); }
.bim-viewer__item-info small { font-size: 11px; color: var(--steel-400); }
.bim-viewer__item-cost { font-size: 12px; font-weight: 600; color: var(--steel-500); }
.bim-viewer__detail { flex: 1; overflow-y: auto; padding: 16px; }
.bim-viewer__detail h3 { font-size: 16px; color: var(--abyco-navy); margin-bottom: 8px; }
.bim-viewer__detail-close { background: none; border: none; color: var(--abyco-orange); font-weight: 600; font-size: 13px; cursor: pointer; margin-bottom: 12px; padding: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .bim-nav__search { display: none; }
    .bim-module-nav { grid-template-columns: repeat(2, 1fr); }
    .bim-viewer__body { grid-template-columns: 1fr; height: auto; }
    .bim-viewer__canvas { height: 380px; }
    .bim-viewer__panel { border-left: none; border-top: 1px solid var(--steel-100); max-height: 400px; }
    .bim-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .bim-grid-2col { grid-template-columns: 1fr; }
    .bim-project-grid { grid-template-columns: repeat(2, 1fr); }
    .bim-auth { grid-template-columns: 1fr; }
    .bim-auth__panel { display: none; }
}
@media (max-width: 768px) {
    .bim-nav { padding: 0 16px; }
    .bim-nav__menu a span { display: none; }
    .bim-nav__user-info { display: none; }
    .bim-main { padding: 20px 16px; }
    .bim-kpi-grid { grid-template-columns: 1fr; }
    .bim-project-grid { grid-template-columns: 1fr; }
    .bim-form-grid { grid-template-columns: 1fr; }
    .bim-page__header { flex-direction: column; }
    .bim-element-row { grid-template-columns: auto 1fr auto; }
    .bim-element-row__type, .bim-element-row__cost { display: none; }
    .bim-table { font-size: 13px; }
    .bim-table thead { display: none; }
}
