/* ══════════════════════════════════════════════════════════════════════
   Hoeki.tech klantportaal
   Herzien door Lotte, 28-09-2026.

   Waarom opnieuw opgezet: er liepen twee kleursystemen door elkaar. De
   variabelen heetten --teal (turkoois #2bbfbf) maar werden door
   hoeki-theme.css overschreven naar merkblauw, terwijl tientallen plekken
   de oude turkooizen tinten hard ingetypt hadden staan. Daardoor botsten
   turkoois, twee soorten geel en merkblauw in hetzelfde scherm.

   Nu: één stel tokens, afgeleid van de huisstijl.
     navy   = structuur (koppen, footer, logo)
     blauw  = alles wat klikbaar is (links, actieve staat, focus)
     oranje = de primaire actie (één per scherm)
   De oude klassenamen zijn ALLEMAAL blijven bestaan, ook --teal, zodat
   geen enkele pagina omvalt. Kleurnamen zijn nu wel eerlijk.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Merk ─────────────────────────────────────────── */
    --navy:       #001f47;
    --navy-soft:  #16324a;
    --blue:       #4969ed;
    --blue-dk:    #3553d6;
    --blue-lt:    #eef1fd;
    --orange:     #ffa801;
    --orange-dk:  #f29400;
    --orange-lt:  #fff6e3;
    --sand:       #f5f4ef;

    /* ── Neutraal ─────────────────────────────────────── */
    --ink:        #1c2b3a;   /* koppen */
    --body:       #48525f;   /* lopende tekst */
    --muted:      #79838f;   /* bijschriften */
    --faint:      #aab2bd;   /* iconen, scheidingen in tekst */
    --border:     #e3e1d9;
    --border-lt:  #efeee9;
    --surface:    #ffffff;
    --surface-2:  #faf9f6;   /* tabelkop, subtiele vlakken */

    /* ── Status ───────────────────────────────────────── */
    --ok:         #1f8b4c;
    --ok-bg:      #e8f6ed;
    --warn:       #b46b00;
    --warn-bg:    #fdf3e0;
    --err:        #c0392b;
    --err-bg:     #fbeceb;

    /* ── Tekstschaal ──────────────────────────────────── */
    --t-xs:  12px;
    --t-sm:  13px;
    --t-md:  14px;
    --t-lg:  15.5px;
    --t-xl:  19px;
    --t-2xl: 24px;

    /* ── Ruimte, rondingen, diepte ────────────────────── */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
    --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  14px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(0,31,71,.05);
    --shadow:    0 6px 24px rgba(0,31,71,.10);
    --shadow-lg: 0 18px 48px rgba(0,31,71,.14);
    --ring:      0 0 0 3px rgba(73,105,237,.28);

    --radius:    var(--r-md);
    --sidebar-w: 268px;
    --header-h:  64px;

    /* Oude namen blijven werken; ze wijzen nu naar de huisstijl. */
    --yellow:     var(--orange);
    --yellow-dk:  var(--orange-dk);
    --teal:       var(--blue);
    --teal-dark:  var(--blue-dk);
    --teal-dk:    var(--blue-dk);
    --teal-light: var(--blue-lt);
    --text-muted: var(--muted);
}

* { box-sizing: border-box; }

body {
    background: var(--sand);
    font-family: 'Rubik', 'Segoe UI', -apple-system, Arial, sans-serif;
    font-size: var(--t-md);
    line-height: 1.55;
    margin: 0;
    color: var(--body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 600; }

a { color: var(--blue); }
a:hover { color: var(--blue-dk); }

/* Eén zichtbare focusring voor het hele portaal. Stond er niet: wie met het
   toetsenbord werkt, zag nergens waar hij was. */
:focus { outline: none; }
:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════════════
   HEADER — wit, sticky, logo + nav + gebruiker
   De logo-sectie is even breed als de sidebar, zodat de
   scheidingslijn doorloopt van boven tot onder.
   ═══════════════════════════════════════════════════════ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 200;
    height: var(--header-h);
}
.header-inner {
    display: flex; align-items: stretch;
    height: 100%;
}

.header-logo-area {
    width: var(--sidebar-w); flex-shrink: 0;
    border-right: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 var(--sp-4);
}
.site-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--navy);
}
.logo-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: var(--r-md);
    background: var(--orange); color: var(--navy);
    display: grid; place-items: center;
    font-weight: 800; font-size: 17px;
    transition: background .15s;
}
.logo-text-main { font-weight: 700; font-size: var(--t-md); color: var(--navy); display: block; line-height: 1.15; letter-spacing: -.01em; }
.logo-text-sub  { font-weight: 400; font-size: var(--t-xs); color: var(--muted); display: block; }
.site-logo:hover .logo-icon { background: var(--orange-dk); }
.site-logo:hover { color: var(--navy); }

/* ── Navigatie ──────────────────────────────────────── */
.header-nav-area {
    display: flex; align-items: stretch; flex: 1;
    padding: 0 var(--sp-2); gap: 2px; min-width: 0;
}
.header-nav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 0 13px;
    font-size: var(--t-sm); font-weight: 500;
    color: var(--body); text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s;
}
.header-nav-item i { font-size: 14px; color: var(--faint); transition: color .15s; }
.header-nav-item:hover { color: var(--navy); background: var(--surface-2); }
.header-nav-item:hover i { color: var(--blue); }
.header-nav-item.active {
    color: var(--navy); font-weight: 600;
    border-bottom-color: var(--orange);
    background: transparent;
}
.header-nav-item.active i { color: var(--orange-dk); }

/* ── Gebruikershoek ─────────────────────────────────── */
.header-user-area {
    display: flex; align-items: center; gap: var(--sp-2);
    padding: 0 var(--sp-4); border-left: 1px solid var(--border);
}
.header-username { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.btn-logout {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--t-sm); color: var(--muted);
    border: 1px solid transparent; border-radius: var(--r-sm);
    padding: 6px 10px; text-decoration: none;
    transition: all .15s;
}
.btn-logout:hover { color: var(--navy); background: var(--surface-2); border-color: var(--border); }

/* ═══════════════════════════════════════════════════════
   LAYOUT — header → [sidebar | inhoud] → footer
   ═══════════════════════════════════════════════════════ */
.layout-wrapper {
    display: flex; align-items: flex-start;
    min-height: calc(100vh - var(--header-h) - 40px);
    /* Witte sidebar-kolom + rand doorlopen tot de footer, ook als de sidebar zelf korter is */
    background: linear-gradient(to right,
        var(--surface) calc(var(--sidebar-w) - 1px),
        var(--border)  calc(var(--sidebar-w) - 1px) var(--sidebar-w),
        transparent    var(--sidebar-w));
}

/* ── Sidebar ────────────────────────────────────────── */
.sidebar-col {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: sticky; top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin;
}
.sidebar-col::-webkit-scrollbar { width: 8px; }
.sidebar-col::-webkit-scrollbar-thumb { background: #e0ded6; border-radius: var(--r-pill); }

.sidebar-search-wrap { position: relative; padding: var(--sp-3) var(--sp-3) 10px; }
.sidebar-search {
    width: 100%; padding: 8px 12px 8px 32px;
    font-size: var(--t-sm); color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.sidebar-search::placeholder { color: var(--faint); }
.sidebar-search:focus {
    outline: none; background: var(--surface);
    border-color: var(--blue); box-shadow: var(--ring);
}
.sidebar-search-icon {
    position: absolute; left: 22px; top: 50%; transform: translateY(-3px);
    font-size: 12px; color: var(--faint); pointer-events: none;
}

.sidebar-new-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin: 0 var(--sp-3) var(--sp-3);
    padding: 9px; border-radius: var(--r-sm);
    background: var(--orange); color: var(--navy);
    font-size: var(--t-sm); font-weight: 700; text-decoration: none;
    transition: background .15s;
}
.sidebar-new-btn:hover { background: var(--orange-dk); color: var(--navy); }

.sidebar-list { padding: var(--sp-1) 0 var(--sp-2); }
.sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px var(--sp-3); margin: 0 var(--sp-2) 2px;
    border-radius: var(--r-sm);
    text-decoration: none; color: var(--body);
    border-left: 2px solid transparent;
    transition: background .12s, border-color .12s;
}
.sidebar-item:hover { background: var(--surface-2); }
.sidebar-item.active { background: var(--blue-lt); border-left-color: var(--blue); }
.sidebar-item-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--surface-2); color: var(--muted);
    display: grid; place-items: center; font-size: 13px;
}
.sidebar-item-icon.ok   { background: var(--ok-bg);   color: var(--ok); }
.sidebar-item-icon.warn { background: var(--warn-bg); color: var(--warn); }
.sidebar-item.active .sidebar-item-icon { background: var(--surface); color: var(--blue); }
.sidebar-item-body { flex: 1; min-width: 0; }
.sidebar-item-title {
    font-size: var(--t-sm); font-weight: 500; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-item-sub { font-size: var(--t-xs); color: var(--muted); margin-top: 1px; }
.sidebar-item.active .sidebar-item-title { color: var(--navy); font-weight: 600; }

.sidebar-section-title {
    font-size: var(--t-xs); font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em;
    padding: var(--sp-4) var(--sp-4) var(--sp-2);
}
.sidebar-empty { padding: var(--sp-5) var(--sp-4); font-size: var(--t-sm); color: var(--muted); text-align: center; }

/* ── Inhoudkolom ────────────────────────────────────── */
.content-col { flex: 1; min-width: 0; }
.content-inner { max-width: 1040px; margin: 0 auto; padding: 0 var(--sp-6) var(--sp-6); }

/* ═══════════════════════════════════════════════════════
   PAGINAKOP
   ═══════════════════════════════════════════════════════ */
.page-domain-header { margin: var(--sp-5) 0 var(--sp-4); }
.page-domain-header h2 {
    font-size: var(--t-2xl); font-weight: 600; color: var(--ink);
    margin: 0; letter-spacing: -.02em; line-height: 1.25;
}
.page-domain-header h2 strong { color: var(--navy); font-weight: 700; }

.domain-header-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); margin: var(--sp-5) 0 var(--sp-4);
    overflow: hidden;
}
.domain-header-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--sp-4); padding: var(--sp-4) var(--sp-5);
}
.domain-header-left { flex: 1; min-width: 0; }
.domain-title { font-size: var(--t-xl); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.domain-plan { font-size: var(--t-sm); color: var(--muted); margin-top: 2px; }
.domain-header-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

.domain-info-row { display: flex; border-top: 1px solid var(--border-lt); background: var(--surface-2); }
.domain-info-item { flex: 1; min-width: 0; padding: var(--sp-3) var(--sp-5); border-right: 1px solid var(--border-lt); }
.domain-info-item:last-child { border-right: none; }
.domain-info-label {
    font-size: var(--t-xs); font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px;
}
.domain-info-value { font-size: var(--t-sm); color: var(--ink); }
.domain-info-value code {
    font-size: var(--t-xs); background: var(--surface); color: var(--navy);
    border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px;
}

/* ═══════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════ */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--t-xs); font-weight: 600;
    padding: 3px 9px; border-radius: var(--r-pill);
}
.status-badge i { font-size: 7px; }
.status-badge.active   { background: var(--ok-bg);  color: var(--ok); }
.status-badge.inactive { background: var(--err-bg); color: var(--err); }

.badge { font-size: var(--t-xs); font-weight: 600; padding: .32em .7em; border-radius: var(--r-pill); }

/* ═══════════════════════════════════════════════════════
   KAARTEN
   Border óf schaduw, niet allebei: dat maakte het rommelig.
   ═══════════════════════════════════════════════════════ */
.portal-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); margin-bottom: var(--sp-4);
    overflow: hidden;
}
.portal-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    background: var(--surface); border-bottom: 1px solid var(--border-lt);
    padding: var(--sp-3) var(--sp-5);
    font-size: var(--t-md); font-weight: 600; color: var(--ink);
}
.portal-card-body { padding: 0; }
.portal-card-body.padded { padding: var(--sp-4) var(--sp-5); }

/* Was een oranje pil. Op het dashboard stonden er drie naast elkaar plus de
   echte actieknop, waardoor niets meer opviel. Oranje is nu voorbehouden aan
   de primaire actie; dit is een rustige verwijzing geworden. */
.card-header-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--t-xs); font-weight: 600; color: var(--blue);
    padding: 4px 8px; border-radius: var(--r-sm);
    text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s;
}
.card-header-link i { font-size: 10px; transition: transform .15s; }
.card-header-link:hover { background: var(--blue-lt); color: var(--blue-dk); text-decoration: none; }
.card-header-link:hover i { transform: translateX(2px); }

.info-banner {
    background: var(--blue-lt); border: 1px solid #d7dffb;
    border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-4);
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.info-banner p { margin: 0; font-size: var(--t-sm); color: var(--body); }

/* ═══════════════════════════════════════════════════════
   KNOPPEN
   Oranje = de primaire actie. Hou het bij één per scherm.
   ═══════════════════════════════════════════════════════ */
.btn-teal {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--orange); color: var(--navy); border: none;
    padding: 9px 18px; border-radius: var(--r-sm);
    font-size: var(--t-sm); font-weight: 700; font-family: inherit;
    text-decoration: none; cursor: pointer;
    transition: background .15s, transform .08s;
}
.btn-teal:hover { background: var(--orange-dk); color: var(--navy); }
.btn-teal:active { transform: translateY(1px); }
.btn-teal.btn-sm { padding: 6px 13px; font-size: var(--t-xs); }

.btn-navy {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--navy); color: #fff; border: none;
    padding: 9px 18px; border-radius: var(--r-sm);
    font-size: var(--t-sm); font-weight: 600; font-family: inherit;
    text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-navy.btn-sm { padding: 6px 13px; font-size: var(--t-xs); }

/* Bootstrap-knoppen meetrekken in de huisstijl */
.btn-outline-secondary {
    border-color: var(--border); color: var(--body); border-radius: var(--r-sm); font-size: var(--t-sm);
}
.btn-outline-secondary:hover { background: var(--surface-2); border-color: var(--faint); color: var(--navy); }
.btn-outline-danger { border-radius: var(--r-sm); }

/* ═══════════════════════════════════════════════════════
   TABEL
   ═══════════════════════════════════════════════════════ */
.portal-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.portal-table th {
    background: var(--surface-2); border-bottom: 1px solid var(--border);
    padding: 10px var(--sp-5); text-align: left; color: var(--muted);
    font-weight: 600; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap;
}
.portal-table td {
    padding: 12px var(--sp-5); border-bottom: 1px solid var(--border-lt);
    color: var(--body); vertical-align: middle;
}
.portal-table tr:last-child td { border-bottom: none; }
.portal-table tbody tr { transition: background .1s; }
.portal-table tbody tr:hover td { background: var(--surface-2); }
.portal-table a { color: var(--blue); text-decoration: none; font-weight: 500; }
.portal-table a:hover { color: var(--blue-dk); text-decoration: underline; }
.portal-table code { font-size: var(--t-xs); color: var(--navy); }
.empty-row td { text-align: center; color: var(--muted); padding: var(--sp-6); }

/* ═══════════════════════════════════════════════════════
   SNELKOPPELINGEN
   ═══════════════════════════════════════════════════════ */
.quick-section { margin-bottom: 0; }
.quick-section-title {
    color: var(--muted); font-size: var(--t-xs); font-weight: 700;
    padding: var(--sp-3) var(--sp-5) var(--sp-2); border-bottom: 1px solid var(--border-lt);
    text-transform: uppercase; letter-spacing: .06em;
}
.quick-link {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: 11px var(--sp-5); border-bottom: 1px solid var(--border-lt);
    text-decoration: none; color: var(--body); font-size: var(--t-sm);
    /* Alleen de achtergrond beweegt. De oude regel schoof de tekst 4px
       naar rechts bij hover; dat leest onrustig. */
    transition: background .12s, color .12s;
}
.quick-link:last-child { border-bottom: none; }
.quick-link:hover { background: var(--blue-lt); color: var(--navy); }
.quick-link i.bi-chevron-right { color: var(--faint); font-size: 11px; flex-shrink: 0; transition: transform .12s, color .12s; }
.quick-link:hover i.bi-chevron-right { color: var(--blue); transform: translateX(2px); }

/* ── Factuurregels ──────────────────────────────────── */
.invoice-row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: 11px var(--sp-5); border-bottom: 1px solid var(--border-lt);
    text-decoration: none; color: var(--body); font-size: var(--t-sm);
    transition: background .12s;
}
.invoice-row:last-child { border-bottom: none; }
.invoice-row:hover { background: var(--surface-2); }

/* ═══════════════════════════════════════════════════════
   DIENSTKAARTEN
   ═══════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: var(--sp-3); }
.service-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden; position: relative;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card-status {
    position: absolute; top: 9px; right: 9px;
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill);
}
.service-card-status.active   { background: var(--ok-bg);  color: var(--ok); }
.service-card-status.inactive { background: var(--err-bg); color: var(--err); }
.service-card-icon {
    background: var(--blue-lt); color: var(--blue);
    padding: 20px 12px 16px; text-align: center; font-size: 28px; line-height: 1;
}
.service-card-body { padding: var(--sp-3); }
.service-card-name { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.service-card-desc { font-size: var(--t-xs); color: var(--muted); margin-top: 3px; line-height: 1.45; }
.service-card-more { font-size: var(--t-xs); color: var(--blue); margin-top: var(--sp-2); font-weight: 600; }
.service-card-clickable { cursor: pointer; }
.service-card-clickable:hover { border-color: var(--blue); }
.service-card-clickable:hover .service-card-icon { background: #e2e8fc; }

/* ═══════════════════════════════════════════════════════
   STATISTIEKEN
   ═══════════════════════════════════════════════════════ */
.stat-item { margin-bottom: var(--sp-4); }
.stat-item:last-child { margin-bottom: 0; }
.stat-label {
    font-size: var(--t-sm); font-weight: 600; color: var(--ink);
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.stat-value { font-size: var(--t-xs); color: var(--muted); margin-top: 4px; }
.stat-pct { margin-left: auto; font-weight: 700; color: var(--navy); }
.stat-bar-track { background: var(--border-lt); border-radius: var(--r-pill); height: 8px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: var(--r-pill); background: var(--blue); transition: width .5s ease; }
.stat-bar-fill.warn   { background: var(--orange); }
.stat-bar-fill.danger { background: var(--err); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-top: var(--sp-4); }
.stat-count-box {
    background: var(--surface-2); border: 1px solid var(--border-lt);
    border-radius: var(--r-md); padding: var(--sp-3); text-align: center;
}
.stat-count-num { font-size: var(--t-2xl); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat-count-label { font-size: var(--t-xs); color: var(--muted); margin-top: 5px; }

/* ═══════════════════════════════════════════════════════
   TICKETGESPREK
   ═══════════════════════════════════════════════════════ */
.ticket-thread { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.ticket-msg { display: flex; gap: var(--sp-3); align-items: flex-start; }
.ticket-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: var(--t-sm); font-weight: 700; margin-top: 2px;
}
.ticket-msg.customer .ticket-avatar { background: var(--border-lt); color: var(--body); }
.ticket-msg.admin    .ticket-avatar { background: var(--navy); color: #fff; }
.ticket-bubble {
    flex: 1; min-width: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 3px var(--r-md) var(--r-md) var(--r-md);
    padding: var(--sp-3) var(--sp-4);
}
.ticket-msg.admin .ticket-bubble { background: var(--blue-lt); border-color: #d7dffb; }
.ticket-bubble-meta { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 6px; flex-wrap: wrap; }
.ticket-bubble-name { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.ticket-bubble-time { font-size: var(--t-xs); color: var(--faint); margin-left: auto; white-space: nowrap; }
.ticket-bubble-text { font-size: var(--t-md); line-height: 1.65; color: var(--body); white-space: pre-wrap; word-break: break-word; }

/* ═══════════════════════════════════════════════════════
   KRUIMELPAD
   ═══════════════════════════════════════════════════════ */
.breadcrumb-bar { padding: var(--sp-4) 0 0; }
.breadcrumb-bar .bc-inner { font-size: var(--t-sm); display: flex; align-items: center; gap: 7px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb-bar a { color: var(--muted); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb-bar .bc-sep { color: var(--faint); }
.breadcrumb-bar .bc-active { color: var(--ink); font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   FORMULIEREN
   ═══════════════════════════════════════════════════════ */
.form-label { font-weight: 600; font-size: var(--t-sm); color: var(--ink); margin-bottom: 5px; }
.form-control, .form-select {
    font-size: var(--t-sm); font-family: inherit; color: var(--ink);
    border-color: var(--border); border-radius: var(--r-sm); padding: 8px 12px;
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus, .form-select:focus {
    border-color: var(--blue); box-shadow: var(--ring);
}
.form-control-sm, .form-select-sm { font-size: var(--t-sm); padding: 6px 10px; }
.form-text { font-size: var(--t-xs); color: var(--muted); }
textarea.form-control { line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   MELDINGEN
   ═══════════════════════════════════════════════════════ */
.alert { border-radius: var(--r-md); font-size: var(--t-sm); padding: var(--sp-3) var(--sp-4); }
.alert-success   { background: var(--ok-bg);   border: none; border-left: 3px solid var(--ok);   color: #146c3a; }
.alert-danger    { background: var(--err-bg);  border: none; border-left: 3px solid var(--err);  color: #9c2d22; }
.alert-secondary { background: var(--surface-2); border: none; border-left: 3px solid var(--faint); color: var(--body); }

/* ═══════════════════════════════════════════════════════
   ADMIN (eigen koptekst, bewust apart gehouden)
   ═══════════════════════════════════════════════════════ */
.admin-header { background: var(--navy); padding: 0; height: 54px; }
.admin-header .header-inner { padding: 0 var(--sp-4); align-items: center; }
.admin-header .site-logo { color: #fff; height: auto; padding: 0; }
.admin-header .site-logo:hover { color: rgba(255,255,255,.85); }
.admin-header .header-right { display: flex; align-items: center; gap: var(--sp-1); }
.admin-header .btn-logout { color: rgba(255,255,255,.7); }
.admin-header .btn-logout:hover { color: #fff; background: rgba(255,255,255,.12); border-color: transparent; }
.admin-nav { background: var(--navy-soft); border-bottom: 1px solid rgba(255,255,255,.1); height: auto; }
.admin-nav .header-inner { height: auto; align-items: center; }
.portal-main { min-height: calc(100vh - 160px); padding-bottom: var(--sp-6); }
.portal-main .container-fluid { max-width: 1200px; margin: 0 auto; }
.portal-tabs { list-style: none; margin: 0; padding: 0 var(--sp-5); display: flex; }
.admin-tab {
    display: block; padding: 12px 14px; text-decoration: none;
    color: rgba(255,255,255,.72); font-size: var(--t-sm);
    border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.admin-tab:hover { color: #fff; }
.admin-tab.active { color: #fff; border-bottom-color: var(--orange); }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer-bar { background: var(--navy); color: rgba(255,255,255,.45); padding: var(--sp-3) 0; font-size: var(--t-sm); }
.site-footer-bar a { color: rgba(255,255,255,.7); }
.footer-inner { padding: 0 var(--sp-5); }

/* ═══════════════════════════════════════════════════════
   HULPKLASSEN
   Vervangen de inline stijlen die in de pagina's het vaakst
   voorkwamen. Inline stijl wint altijd van de stylesheet, dus
   zolang die er stonden was de opmaak niet centraal te sturen.
   ═══════════════════════════════════════════════════════ */
.u-accent { color: var(--blue); }
.u-muted  { color: var(--muted); }
.u-faint  { color: var(--faint); }
.u-ink    { color: var(--ink); }
.u-xs     { font-size: var(--t-xs); }
.u-sm     { font-size: var(--t-sm); }
.u-md     { font-size: var(--t-md); }
.u-strong { font-weight: 600; }
.u-static { cursor: default; }
.u-break  { word-break: break-word; overflow-wrap: anywhere; }
.u-nowrap { white-space: nowrap; }
.u-mono   { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--t-xs); }
.u-label  {
    font-size: var(--t-xs); font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIEF
   ═══════════════════════════════════════════════════════ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.portal-card .table-scroll { margin: 0; }

@media (max-width: 1100px) {
    :root { --sidebar-w: 232px; }
    .content-inner { padding: 0 var(--sp-5) var(--sp-6); }
    .header-nav-item { padding: 0 10px; }
}

@media (max-width: 860px) {
    /* Nav past niet meer naast het logo: laat hem scrollen in plaats van
       hem te verbergen, zodat de pagina's bereikbaar blijven. */
    .header-logo-area { width: auto; border-right: none; padding-right: var(--sp-3); }
    .header-nav-area { overflow-x: auto; scrollbar-width: none; }
    .header-nav-area::-webkit-scrollbar { display: none; }
    .sidebar-col { display: none; }
    .layout-wrapper { background: none; }
}

@media (max-width: 768px) {
    .content-inner { padding: 0 var(--sp-3) var(--sp-5); }
    .header-user-area { margin-left: auto; padding: 0 var(--sp-3); }
    .info-banner { flex-direction: column; align-items: flex-start; }
    .domain-info-row { flex-direction: column; }
    .domain-info-item { border-right: none; border-bottom: 1px solid var(--border-lt); }
    .domain-header-top { flex-direction: column; }
    .domain-header-actions { flex-wrap: wrap; }
    .portal-card .portal-table { min-width: 540px; }
    .portal-card-body:has(.portal-table) { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .hosting-bottom { grid-template-columns: 1fr !important; }
    .portal-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding: 0 var(--sp-3); }
    .admin-tab { flex-shrink: 0; }
    .admin-nav .header-inner { overflow-x: auto; }
    .page-domain-header { flex-direction: column; align-items: flex-start !important; gap: var(--sp-2); }
    .page-domain-header h2 { font-size: var(--t-xl); }
}

@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .header-username { display: none; }
    .portal-card-header { padding: var(--sp-3) var(--sp-4); }
    .portal-card-body.padded { padding: var(--sp-4); }
    .quick-link, .invoice-row { padding: 11px var(--sp-4); }
    .portal-table th, .portal-table td { padding-left: var(--sp-4); padding-right: var(--sp-4); }
    .btn-teal { padding: 11px 20px; }
    .ticket-bubble-text { font-size: var(--t-sm); }
}

/* iOS zoomt in op velden kleiner dan 16px */
@media (max-width: 767px) {
    input[type="text"], input[type="email"], input[type="password"],
    input[type="search"], textarea, select { font-size: 16px !important; }
}

/* Wie beweging liever uit heeft, krijgt geen animaties. */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
