/* ============================================================
   dropp.id — Design System
   Versie 2 — volledig herzien voor consistentie en netheid
   ============================================================ */

:root {
    --dropp-blue:       #0c447c;
    --dropp-blue-dark:  #042c53;
    --dropp-blue-light: #e6f1fb;
    --text-primary:     #1a1a1a;
    --text-muted:       #5a6472;
    --border-color:     #d8e3ee;
    --bg-page:          #f0f4f8;
    --bg-card:          #ffffff;
    --bg-subtle:        #f7f9fb;
    --radius-sm:        4px;
    --radius-md:        8px;
    --radius-lg:        12px;
    --shadow-sm:        0 1px 3px rgba(4,44,83,0.07);
    --shadow-md:        0 2px 8px rgba(4,44,83,0.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--text-primary);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Publieke header (login/landingspagina)
   ============================================================ */
.site-header { border-bottom: 1px solid var(--border-color); background: #fff; }

.header-inner {
    max-width: 1140px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.logo { font-size: 20px; font-weight: 700; color: var(--dropp-blue-dark); text-decoration: none; }
.logo-accent { color: var(--dropp-blue); }

.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--text-primary); text-decoration: none; font-size: 15px; }
.main-nav a:hover { color: var(--dropp-blue); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switcher select {
    padding: 6px 10px; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 14px; background: #fff;
}

/* ============================================================
   Knoppen
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--dropp-blue); color: #fff;
    padding: 10px 20px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; line-height: 1.4;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--dropp-blue-dark); }

.btn-login {
    background: var(--dropp-blue); color: #fff;
    padding: 10px 20px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: 14px; font-weight: 600;
}
.btn-login:hover { background: var(--dropp-blue-dark); }

.btn-secondary {
    display: inline-block;
    background: #fff; color: var(--text-primary);
    padding: 9px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-decoration: none; font-size: 14px; font-weight: 500;
    cursor: pointer; line-height: 1.4;
    transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--dropp-blue); color: var(--dropp-blue); }

.btn-delete-link {
    background: none; border: none;
    color: #a32d2d; font-size: 13px;
    cursor: pointer; text-decoration: underline; padding: 0;
}
.btn-delete-link:hover { color: #791f1f; }

.forgot-link {
    display: block; text-align: center;
    margin-top: 16px; font-size: 14px;
    color: var(--dropp-blue); text-decoration: none;
}

/* ============================================================
   Status badges
   ============================================================ */
.status-badge {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
    white-space: nowrap;
}
.status-new     { background: var(--dropp-blue-light); color: var(--dropp-blue); }
.status-pending { background: #faeeda; color: #633806; }
.status-done    { background: #eaf3de; color: #27500a; }

/* ============================================================
   Notificatiebakken
   ============================================================ */
.login-error {
    background: #fcebeb; color: #791f1f;
    border: 1px solid #f09595; border-radius: var(--radius-sm);
    padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
    line-height: 1.5;
}
.reset-confirmation {
    background: #eaf3de; color: #27500a;
    border: 1px solid #97c459; border-radius: var(--radius-sm);
    padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
    line-height: 1.5;
}

/* ============================================================
   Login / wachtwoord-vergeten
   ============================================================ */
.hero {
    max-width: 760px; margin: 80px auto;
    padding: 0 24px; text-align: center;
}
.hero h1 {
    font-size: 36px; color: var(--dropp-blue-dark);
    margin-bottom: 16px; line-height: 1.3;
}
.hero p {
    font-size: 17px; color: var(--text-muted);
    margin-bottom: 32px; line-height: 1.6;
}

.login-section { max-width: 420px; margin: 60px auto; padding: 0 24px; }

.login-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}
.login-form h1 {
    font-size: 22px; color: var(--dropp-blue-dark);
    margin: 0 0 28px; text-align: center;
}
.login-form label {
    display: block; font-size: 14px;
    margin-bottom: 6px; color: var(--text-primary); font-weight: 500;
}
.login-form input {
    width: 100%; padding: 10px 12px; margin-bottom: 18px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 15px; transition: border-color 0.15s;
}
.login-form input:focus {
    outline: none; border-color: var(--dropp-blue);
    box-shadow: 0 0 0 3px rgba(12,68,124,0.10);
}
.login-form .btn-primary { width: 100%; text-align: center; padding: 12px; font-size: 15px; }
.reset-intro { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* ============================================================
   App-shell: sidebar layout
   ============================================================ */
.app-body   { margin: 0; background: var(--bg-page); }
.app-shell  { display: flex; min-height: 100vh; }

/* Sidebar */
.app-sidebar {
    width: 220px; flex-shrink: 0;
    background: var(--dropp-blue-dark); color: #e6f1fb;
    display: flex; flex-direction: column;
}
.sidebar-logo {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center;
}
.sidebar-logo-img { max-width: 100%; height: auto; max-height: 32px; display: block; }

.sidebar-nav {
    padding: 12px 8px;
    display: flex; flex-direction: column; gap: 2px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: 14px; color: #bcd6ec; text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; }
.sidebar-link.disabled { color: #5c83a6; cursor: default; }

.sidebar-logout-link {
    margin: 0 8px 14px; padding: 9px 12px;
    border-radius: var(--radius-sm);
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px;
    color: #cfe1f4; text-decoration: none; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-logout-link:hover { color: #fff; }

/* Topbar */
.app-main {
    flex: 1; padding: 0;
    max-width: 1400px;
    display: flex; flex-direction: column;
    min-width: 0;
}
.app-topbar {
    display: flex; align-items: center;
    justify-content: flex-end;
    padding: 10px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    gap: 14px; flex-shrink: 0;
}
.app-topbar-user { font-size: 13px; color: var(--text-muted); }
.app-topbar-logout {
    font-size: 13px; color: var(--dropp-blue);
    text-decoration: none; padding: 6px 14px;
    border: 1px solid var(--dropp-blue); border-radius: var(--radius-sm);
    transition: background 0.12s, color 0.12s;
}
.app-topbar-logout:hover { background: var(--dropp-blue); color: #fff; }

/* Content */
.app-content { padding: 28px 32px; flex: 1; }

.content-header { margin-bottom: 24px; }
.content-header h1 {
    margin: 0 0 4px; font-size: 22px;
    color: var(--dropp-blue-dark); font-weight: 700;
}
.content-subtitle { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ============================================================
   Kaarten / secties
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 15px; font-weight: 600; color: var(--dropp-blue-dark); margin: 0 0 16px; }

/* ============================================================
   Statistiek-tegels (dashboard)
   ============================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 24px;
}
.stat-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.stat-tile-label { margin: 0 0 4px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-tile-value { margin: 0; font-size: 24px; font-weight: 700; color: var(--dropp-blue-dark); }
.stat-tile-warn   { border-color: #f09595; background: #fcebeb; }
.stat-tile-warn   .stat-tile-value { color: #791f1f; }
.stat-tile-warn   .stat-tile-label { color: #a33; }
.stat-tile-ok     { border-color: #97c459; background: #eaf3de; }
.stat-tile-ok     .stat-tile-value { color: #27500a; }
.stat-tile-ok     .stat-tile-label { color: #27500a; }

/* ============================================================
   Data-tabel (universeel, zonder padding-conflict)
   ============================================================ */
.data-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.data-table-head {
    display: grid;
    padding: 0;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}
.data-table-head span {
    padding: 10px 14px;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em;
}
.data-table-row {
    display: grid;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.1s;
}
.data-table-row:last-child { border-bottom: none; }
.data-table-row:hover { background: #f9fbfd; }
.data-table-row span,
.data-table-row a { padding: 12px 14px; font-size: 14px; align-self: center; }
.data-table-row a.row-link {
    color: var(--dropp-blue); text-decoration: none; font-weight: 600;
}
.data-table-row a.row-link:hover { text-decoration: underline; }

/* Klikbare rij (volledig) */
a.data-table-row {
    text-decoration: none; color: inherit; display: grid;
}
a.data-table-row:hover { background: #f9fbfd; }

/* ============================================================
   Bestaande .document-table klassen — backward-compat
   ============================================================ */
.documents-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.document-table-head {
    display: grid;
    padding: 0;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}
.document-table-head span {
    padding: 10px 14px;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em;
}
.document-table .document-row {
    display: grid;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.1s;
}
.document-table .document-row:hover { background: #f9fbfd; }
.document-table .document-row:last-child { border-bottom: none; }
.document-table .document-row > span,
.document-table .document-row > a { padding: 12px 14px; font-size: 14px; }

a.document-row { text-decoration: none; color: inherit; display: grid; }
a.document-row:hover { background: #f9fbfd; }

.empty-state {
    color: var(--text-muted); font-size: 14px;
    text-align: center; padding: 36px 0;
}

.document-name {
    color: var(--dropp-blue); text-decoration: none;
    font-size: 14px; font-weight: 600;
}
.document-name:hover { text-decoration: underline; }
.document-meta { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Formulieren
   ============================================================ */
.form-field { margin-bottom: 16px; }
.form-field label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--text-primary); margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%; padding: 9px 12px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    background: #fff; color: var(--text-primary);
    transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--dropp-blue);
    box-shadow: 0 0 0 3px rgba(12,68,124,0.08);
}

/* Inline formulier-inputs (bestaande pagina's, geen .form-field wrapper) */
input[type="text"]:not(.login-form input),
input[type="email"]:not(.login-form input),
input[type="date"],
input[type="number"],
select:not(.lang-switcher select),
textarea {
    font-family: inherit;
}

/* ============================================================
   Upload-sectie
   ============================================================ */
.upload-section {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px; margin-bottom: 20px;
    transition: border-color 0.15s;
}
.upload-section:hover { border-color: var(--dropp-blue); }

.upload-form-bar {
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.upload-form-info {
    display: flex; align-items: center;
    gap: 10px; font-size: 14px; color: var(--text-muted);
}
.upload-form-controls { display: flex; align-items: center; gap: 10px; }
.upload-form-controls input[type="file"] { font-size: 13px; }
.icon-upload::before { content: "\2191"; font-size: 15px; color: var(--dropp-blue); }




/* ============================================================
   Sidebar sectielabel (Modules)
   ============================================================ */
.sidebar-section-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.35);
    padding: 4px 20px 2px; margin: 0;
}





/* ============================================================
   Rekeningoverzicht tabel — eigen grid override
   ============================================================ */

/* Ledger tabel - vaste kolommen */
.ledger-tbl { table-layout: fixed !important; width: 100% !important; }
.ledger-tbl col:nth-child(1) { width: 95px; }
.ledger-tbl col:nth-child(2) { width: 160px; }
.ledger-tbl col:nth-child(3) { width: 60px; }
.ledger-tbl col:nth-child(4) { width: 150px; }
.ledger-tbl col:nth-child(5) { width: 120px; }
.ledger-tbl col:nth-child(6) { width: 110px; }
.ledger-tbl col:nth-child(7) { width: 110px; }
.ledger-tbl col:nth-child(8) { width: 120px; }
.ledger-tbl td, .ledger-tbl th { overflow: hidden; }

/* Ledger table */
.lt-wrap { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.lt { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.lt thead tr { background: var(--bg-subtle); border-bottom: 2px solid var(--border-color); }
.lt th { padding: 10px 12px; font-size: 11px; font-weight: 700; color: var(--text-muted);
         text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; }
.lt td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; overflow: hidden; }
.lt tr:last-child td { border-bottom: none; }
.lt tr:hover td { background: #f9fbfd; }
.lt-date { white-space: nowrap; color: var(--text-muted); }
.lt-desc { overflow: hidden; text-overflow: ellipsis; }
.lt-desc .lt-meta { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.lt-cat  { font-size: 12px; color: var(--text-muted); }
.lt-num  { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lt-muted { color: var(--text-muted); }
.lt-in   { color: #27ae60; font-weight: 600; }
.lt-out  { color: #c0392b; font-weight: 600; }
.lt-bold { font-weight: 700; color: var(--text-primary); }
.lt-gap td { background: #fff8e1; color: #856404; font-size: 12px; font-weight: 600;
             border-top: 1px dashed #e0a800; border-bottom: 1px dashed #e0a800; }

/* ============================================================
   Rekeningoverzicht
   ============================================================ */
.account-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px;
}
.account-tab {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card); text-decoration: none;
    transition: all 0.15s; min-width: 160px;
}
.account-tab:hover { border-color: var(--dropp-blue); }
.account-tab.active {
    border-color: var(--dropp-blue);
    background: var(--dropp-blue-light);
}
.account-tab-bank {
    font-size: 12px; font-weight: 700; color: var(--dropp-blue);
    letter-spacing: 0.05em;
}
.account-tab-nr {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.account-tab-count {
    font-size: 11px; color: var(--text-muted);
}

.account-summary {
    display: flex; gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.account-summary-item {
    flex: 1; padding: 14px 20px;
    display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid var(--border-color);
}
.account-summary-item:last-child { border-right: none; }
.account-summary-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.account-summary-value {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    letter-spacing: -0.3px;
}
.account-summary-value.pos { color: #27ae60; }
.account-summary-value.neg { color: #c0392b; }

/* ============================================================
   Kasboek
   ============================================================ */
.cashbook-saldo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.cashbook-saldo-label {
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.cashbook-saldo-amount {
    font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
}
.cashbook-saldo-amount.pos { color: #27ae60; }
.cashbook-saldo-amount.neg { color: #c0392b; }

.cashbook-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px; margin-bottom: 4px;
    box-shadow: var(--shadow-sm);
}

/* Formulier rij: alles naast elkaar */
.cashbook-form-row {
    display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-end;
}
.cashbook-form-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cashbook-field-date   { width: 130px; flex-shrink: 0; }
.cashbook-field-desc   { flex: 2; min-width: 0; }
.cashbook-field-amount { width: 340px; flex-shrink: 0; }
.cashbook-field-ref    { width: 180px; flex-shrink: 0; }
.cashbook-field-btn    { flex-shrink: 0; }

.cf-label {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.cf-input {
    padding: 0 12px; height: 40px; font-size: 14px; font-family: inherit;
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    background: #fff; color: var(--text-primary);
    transition: border-color 0.15s;
    width: 100%;
}
.cf-input:focus {
    outline: none; border-color: var(--dropp-blue);
    box-shadow: 0 0 0 3px rgba(12,68,124,0.08);
}

/* Ontvangen / Betaald toggle */
.cashbook-amount-row {
    display: flex; gap: 10px; align-items: stretch;
}
.cashbook-toggle {
    display: flex; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
}
.cashbook-toggle-btn {
    font-size: 20px; font-weight: 400; padding: 0 16px; height: 40px; width: 44px;
    background: #fff; color: var(--text-muted);
    border: none; cursor: pointer; transition: all 0.15s;
    line-height: 1;
}
.cashbook-toggle-btn + .cashbook-toggle-btn {
    border-left: 1.5px solid var(--border-color);
}
.cashbook-toggle-btn.active-in {
    background: #eafaf1; color: #1a7a45;
}
.cashbook-toggle-btn.active-out {
    background: #fdecea; color: #911;
}
.cashbook-currency-select {
    width: 72px !important; flex-shrink: 0;
    font-size: 13px; font-weight: 700; padding: 0 6px;
    height: 40px; cursor: pointer;
}
.cashbook-amount-input {
    flex: 1; min-width: 120px;
    font-weight: 700; font-size: 15px;
    height: 40px;
}

@media (max-width: 700px) {
    .cashbook-form-row { flex-direction: column; }
    .cashbook-field-date,
    .cashbook-field-desc,
    .cashbook-field-amount,
    .cashbook-field-ref { width: 100%; }
}
.cashbook-success {
    background: #eafaf1; color: #1a7a45;
    border-radius: var(--radius-sm); padding: 10px 14px;
    font-size: 14px; font-weight: 600; margin-bottom: 14px;
}

.cashbook-grid {
    grid-template-columns: 100px 1fr 130px 130px 120px 120px !important;
}
.cashbook-in  { color: #27ae60; font-weight: 600; }
.cashbook-out { color: #c0392b; font-weight: 600; }

.cashbook-row-locked {
    background: #fafafa;
}
.cashbook-row-locked .doc-cell-file span:first-child {
    color: var(--text-muted);
}
.cashbook-locked-icon {
    font-size: 14px; opacity: 0.6; cursor: help;
}

@media (max-width: 700px) {
    .cashbook-grid { grid-template-columns: 1fr !important; }
    .cashbook-form-grid { flex-direction: column; }
}

/* ============================================================
   Module pagina
   ============================================================ */

/* Categorie filter balk */
.module-cat-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.module-cat-btn {
    font-size: 13px; font-weight: 600;
    padding: 7px 16px; border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card); color: var(--text-muted);
    text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.module-cat-btn:hover {
    border-color: var(--dropp-blue); color: var(--dropp-blue);
}
.module-cat-btn.active {
    background: var(--dropp-blue); color: #fff;
    border-color: var(--dropp-blue);
}

/* Module grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.module-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}
.module-tile:hover {
    box-shadow: 0 4px 20px rgba(12,68,124,0.10);
    transform: translateY(-2px);
    border-color: #bdd4ee;
}
.module-tile-active {
    border-color: #27ae60;
    background: #f6fff9;
}

/* Populair badge */
.module-tile-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--dropp-blue); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 10px;
    letter-spacing: 0.02em;
}

/* Icon */
.module-tile-icon {
    padding: 24px 24px 0;
    color: var(--dropp-blue);
}

/* Body */
.module-tile-body {
    padding: 14px 24px 16px;
    flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.module-tile-body h3 {
    font-size: 16px; font-weight: 700;
    color: var(--text-primary); margin: 0;
    letter-spacing: -0.2px;
}
.module-cat-label {
    font-size: 11px; font-weight: 600;
    color: var(--dropp-blue); text-transform: uppercase;
    letter-spacing: 0.05em;
}
.module-tile-body p {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.55; margin: 4px 0 0;
}

/* Footer met prijs en knop */
.module-tile-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
}
.module-price { display: flex; align-items: baseline; gap: 3px; }
.module-price-amount {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
}
.module-price-period {
    font-size: 12px; color: var(--text-muted);
}
.module-btn-activate {
    font-size: 13px; font-weight: 700;
    background: var(--dropp-blue); color: #fff;
    border: none; border-radius: var(--radius-sm);
    padding: 8px 18px; cursor: pointer;
    transition: background 0.15s; white-space: nowrap;
}
.module-btn-activate:hover { background: var(--dropp-blue-dark, #063a68); }
.module-btn-active {
    font-size: 13px; font-weight: 700; color: #27ae60;
}

/* Modal */
.module-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.module-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
}
.module-modal-box {
    position: relative; z-index: 1;
    background: #fff; border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.20);
    padding: 36px 32px; max-width: 440px; width: 90%;
}
.module-modal-box h3 {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 10px; letter-spacing: -0.3px;
}
.module-modal-box p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.6; margin: 0 0 16px;
}
.module-modal-price {
    font-size: 20px; font-weight: 800; color: var(--dropp-blue);
    margin-bottom: 14px;
}
.module-modal-note {
    font-size: 12px; color: var(--text-muted);
    background: var(--bg-subtle); border-radius: var(--radius-sm);
    padding: 10px 14px; margin-bottom: 20px !important;
    line-height: 1.5;
}
.module-modal-actions {
    display: flex; gap: 10px;
}

/* ============================================================
   Coming soon kaart
   ============================================================ */
.coming-soon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 56px 32px;
    text-align: center;
    max-width: 520px;
    margin: 32px auto 0;
}
.coming-soon-icon {
    color: var(--dropp-blue); opacity: 0.6;
    display: flex; justify-content: center;
    margin-bottom: 20px;
}
.coming-soon-card h2 {
    font-size: 20px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 12px; letter-spacing: -0.3px;
}
.coming-soon-card p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.65; margin: 0;
}

/* ============================================================
   Klant dashboard tegels
   ============================================================ */
.client-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.client-dash-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex; align-items: flex-start; gap: 16px;
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
    position: relative;
}
.client-dash-tile:hover {
    border-color: var(--dropp-blue);
    box-shadow: 0 4px 16px rgba(12,68,124,0.10);
    transform: translateY(-1px);
}
.client-dash-tile-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--dropp-blue-light); color: var(--dropp-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.client-dash-tile-body {
    display: flex; flex-direction: column; gap: 4px;
}
.client-dash-tile-body strong {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    letter-spacing: -0.2px;
}
.client-dash-tile-body span {
    font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.client-dash-tile-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--dropp-red, #c0392b); color: #fff;
    font-size: 11px; font-weight: 700;
    border-radius: 10px; padding: 2px 7px; min-width: 20px; text-align: center;
}
.client-dash-tile-count {
    position: absolute; top: 12px; right: 12px;
    background: var(--dropp-blue-light); color: var(--dropp-blue);
    font-size: 11px; font-weight: 700;
    border-radius: 10px; padding: 2px 7px; min-width: 20px; text-align: center;
}

/* ============================================================
   Filter bar
   ============================================================ */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.filter-form {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
}
.filter-field {
    display: flex; flex-direction: column; gap: 4px;
}
.filter-field label {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.filter-field input,
.filter-field select {
    padding: 8px 12px; font-size: 14px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-family: inherit; background: #fff; color: var(--text-primary);
    transition: border-color 0.15s;
}
.filter-field input:focus,
.filter-field select:focus {
    outline: none; border-color: var(--dropp-blue);
    box-shadow: 0 0 0 3px rgba(12,68,124,0.08);
}

/* Kleine knop */
.btn-small {
    font-size: 13px; font-weight: 600;
    background: var(--dropp-blue-light); color: var(--dropp-blue);
    padding: 6px 14px; border-radius: 6px;
    text-decoration: none; transition: background 0.15s; white-space: nowrap;
    border: none; cursor: pointer;
}
.btn-small:hover { background: #d0e4f5; }
.btn-secondary {
    font-size: 13px; font-weight: 600;
    background: transparent; color: var(--text-muted);
    padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-decoration: none; cursor: pointer; transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Sidebar divider */
.sidebar-divider {
    height: 1px; background: rgba(255,255,255,0.12);
    margin: 8px 0;
}



/* ============================================================
   Upload succes banner
   ============================================================ */
.upload-success-banner {
    display: flex; align-items: center; gap: 16px;
    background: #eafaf1; border: 1.5px solid #a3d9b1;
    border-radius: var(--radius-md);
    padding: 16px 20px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(39,174,96,0.08);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}
.usb-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: #27ae60; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.usb-warn { background: #e67e22; }
.upload-success-banner.warn {
    background: #fef6ec; border-color: #f0a868;
}
.upload-success-banner.warn .usb-body strong { color: #7a3e0a; }
.upload-success-banner.warn .usb-body span   { color: #a0510f; }
.usb-body {
    display: flex; flex-direction: column; gap: 3px;
}
.usb-body strong {
    font-size: 15px; font-weight: 700; color: #1a5c36;
}
.usb-body span {
    font-size: 13px; color: #2e7d52;
}

/* ============================================================
   Upload zone
   ============================================================ */
.upload-zone { margin-bottom: 8px; }

.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Drop area */
.upload-drop-area {
    background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 100%);
    border-bottom: none;
    padding: 52px 32px 40px;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    cursor: default;
}
.upload-drop-area.drag-over {
    background: #e0eeff;
    outline: 3px dashed var(--dropp-blue);
    outline-offset: -3px;
}
.upload-drop-icon {
    color: var(--dropp-blue);
    margin-bottom: 16px;
    display: flex; justify-content: center;
    opacity: 0.85;
}
.upload-drop-text {
    font-size: 18px; font-weight: 700;
    color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.3px;
}
.upload-drop-hint {
    font-size: 13px; color: var(--text-muted); margin: 0;
}
.upload-selected-name {
    margin-top: 14px; font-size: 14px; font-weight: 600;
    color: var(--dropp-blue);
}

/* Scheidingslijn met "of" */
.upload-divider {
    display: flex; align-items: center; gap: 12px;
    padding: 0 28px;
    margin: 0;
}
.upload-divider hr {
    flex: 1; border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}
.upload-divider span {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    white-space: nowrap; padding: 14px 0;
}

/* Bestandskiezer rij */
.upload-file-row {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 24px 20px;
    flex-wrap: wrap;
}
.upload-file-label {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 600;
    background: var(--bg-subtle); color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 9px 18px; border-radius: var(--radius-sm);
    cursor: pointer; white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
}
.upload-file-label:hover {
    border-color: var(--dropp-blue); background: var(--dropp-blue-light);
}
.upload-file-hint {
    flex: 1; font-size: 13px; color: var(--text-muted);
    font-style: italic; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-submit-btn {
    white-space: nowrap;
    opacity: 0.45; pointer-events: none;
    transition: opacity 0.2s;
}
.upload-submit-btn.ready {
    opacity: 1; pointer-events: auto;
}

.upload-error {
    background: #fdecea; color: #911;
    padding: 10px 24px; font-size: 14px;
    border-bottom: 1px solid #f5c6c6;
}

/* Sectie kopje boven documenttabel */
.doc-section-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-color);
}
.doc-section-title {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 3px;
}
.doc-section-sub {
    font-size: 13px; color: var(--text-muted); margin: 0;
}

/* ============================================================
   Klant documententabel
   ============================================================ */
.doc-table {
    width: 100%;
}
.doc-table-head {
    display: grid;
    grid-template-columns: 1fr 120px 180px;
    padding: 0;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}
.doc-table-head span {
    padding: 10px 16px;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.doc-table-row {
    display: grid;
    grid-template-columns: 1fr 120px 180px;
    align-items: start;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.1s;
}
.doc-table-row:last-child { border-bottom: none; }
.doc-table-row:hover { background: #f9fbfd; }

.doc-cell-file {
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 3px;
}
.doc-cell-date {
    padding: 14px 16px;
    font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center;
}
.doc-cell-status {
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.doc-rejection-reason {
    font-size: 12px; color: #a33;
    margin: 0; line-height: 1.4;
}
.status-rejected { background: #fdecea; color: #911; }

@media (max-width: 600px) {
    .doc-table-head { display: none; }
    .doc-table-row {
        grid-template-columns: 1fr;
        padding: 12px 16px;
        gap: 6px;
    }
    .doc-cell-file,
    .doc-cell-date,
    .doc-cell-status { padding: 0; }
}

/* ============================================================
   Klantentegels
   ============================================================ */
.client-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.client-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.client-tile:hover { box-shadow: var(--shadow-md); border-color: #b9cfe8; }
.client-tile h3 { margin: 0 0 12px; font-size: 17px; color: var(--dropp-blue-dark); }

/* ============================================================
   Chat-bubbels
   ============================================================ */
.chat-bubble-out {
    display: inline-block; max-width: 78%;
    padding: 9px 14px; border-radius: 14px 14px 4px 14px;
    background: var(--dropp-blue); color: #fff;
    font-size: 14px; line-height: 1.5;
}
.chat-bubble-in {
    display: inline-block; max-width: 78%;
    padding: 9px 14px; border-radius: 14px 14px 14px 4px;
    background: #eef1f4; color: var(--text-primary);
    font-size: 14px; line-height: 1.5;
}
.chat-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   Hamburgermenu
   ============================================================ */
.app-topbar-hamburger {
    display: none; background: none; border: none;
    cursor: pointer; padding: 4px;
    flex-direction: column; gap: 5px; flex-shrink: 0;
}
.app-topbar-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--dropp-blue-dark); border-radius: 2px;
}
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ============================================================
   Responsief
   ============================================================ */
@media (max-width: 768px) {
    .app-topbar {
        justify-content: space-between;
        padding: 10px 16px;
        position: sticky; top: 0; z-index: 50;
    }
    .app-topbar-hamburger { display: flex; }
    .app-sidebar {
        position: fixed; top: 0; left: 0;
        height: 100%; width: 240px; z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }
    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.25);
    }
    .app-shell { flex-direction: column; }
    .app-main  { width: 100%; max-width: 100%; }
    .app-content { padding: 16px; }
    .client-tiles-grid { grid-template-columns: 1fr !important; }
    .document-table-head,
    .document-table .document-row { grid-template-columns: 1.5fr 1fr; }
    .document-table-head span:last-child { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .app-content { padding: 12px; }
    .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .main-nav { order: 3; width: 100%; justify-content: center; }
    .hero h1 { font-size: 28px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px; text-align: center;
    font-size: 13px; color: var(--text-muted);
}