/* =========================================================
   GEZOND4YOU APP 2026 - APP.CSS
   Warm • Vrouwelijk • Natuurlijk • Professioneel • In balans

   Centrale stylesheet voor:
   - basislayout en sidebar
   - knoppen, formulieren, kaarten, tabellen en badges
   - dashboard, klantenoverzicht en klantdossier
   - documenten, rapportages, facturen, agenda en notities
   - grafieken, print en responsive gedrag

   Richtlijnen:
   - Gebruik dit bestand als centrale stylesheet.
   - Vermijd inline styling in PHP-bestanden.
   - Gebruik generieke klassen zoveel mogelijk opnieuw.
   - Nieuwe modules krijgen eigen duidelijke secties of later losse CSS-bestanden.
   ========================================================= */

/* =========================================================
   1. BASISVARIABELEN
   ========================================================= */

:root {
    /* Layout */
    --g4y-sidebar-width: 292px;
    --g4y-content-max: 1380px;
    --g4y-content-narrow: 960px;

    /* Achtergronden */
    --g4y-bg-cream: #fbf8f3;
    --g4y-bg-sand: #f7f3eb;
    --g4y-bg-sage: #f2f5ed;
    --g4y-bg-blush: #f7eeee;
    --g4y-bg-mint: #eff8f1;

    --g4y-bg-page:
        radial-gradient(circle at 8% 8%, rgba(143, 165, 142, 0.085), transparent 28%),
        radial-gradient(circle at 96% 12%, rgba(230, 220, 205, 0.22), transparent 30%),
        radial-gradient(circle at 92% 92%, rgba(236, 229, 240, 0.20), transparent 34%),
        linear-gradient(135deg, var(--g4y-bg-sand) 0%, var(--g4y-bg-cream) 48%, var(--g4y-bg-sage) 100%);

    /* Tekst */
    --g4y-heading: #3f463e;
    --g4y-text: #2f352f;
    --g4y-muted: #687267;
    --g4y-soft-text: #7a8378;

    /* Merkkleuren */
    --g4y-olive: #556054;
    --g4y-olive-dark: #4f594d;
    --g4y-olive-mid: #6d7966;
    --g4y-sage: #8d9a83;
    --g4y-sage-soft: #dfe6d7;
    --g4y-mint: #dff3e7;
    --g4y-mauve: #a58c9e;
    --g4y-blush: #ead7d5;
    --g4y-coral: #e97757;
    --g4y-orange: #d99545;
    --g4y-blue: #7f94aa;
    --g4y-teal: #7fa7a0;
    --g4y-gold: #ad9a72;
    --g4y-red: #b77d71;
    --g4y-lime: #9ccb3b;

    /* Kaarten */
    --g4y-card-bg:
        radial-gradient(circle at 96% 12%, rgba(223, 230, 215, 0.36), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 248, 243, 0.91) 54%, rgba(242, 245, 237, 0.86) 100%);

    --g4y-card-bg-soft:
        radial-gradient(circle at 96% 12%, rgba(241, 236, 227, 0.42), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(251, 248, 243, 0.84) 55%, rgba(242, 245, 237, 0.78) 100%);

    --g4y-card-bg-hormone:
        radial-gradient(circle at 96% 12%, rgba(236, 229, 240, 0.40), transparent 30%),
        radial-gradient(circle at 8% 12%, rgba(223, 230, 215, 0.30), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 248, 243, 0.88) 56%, rgba(247, 238, 238, 0.80));

    /* Randen */
    --g4y-border: rgba(85, 96, 84, 0.12);
    --g4y-border-strong: rgba(63, 70, 62, 0.18);

    /* Rondingen */
    --g4y-radius-xs: 10px;
    --g4y-radius-sm: 14px;
    --g4y-radius-md: 18px;
    --g4y-radius: 20px;
    --g4y-radius-lg: 22px;
    --g4y-radius-xl: 28px;
    --g4y-radius-pill: 999px;

    /* Schaduw */
    --g4y-shadow-soft: 0 8px 18px rgba(63, 70, 62, 0.055);
    --g4y-shadow: 0 14px 32px rgba(63, 70, 62, 0.08);
    --g4y-shadow-strong: 0 18px 42px rgba(63, 70, 62, 0.12);
    --g4y-shadow-sidebar: 14px 0 34px rgba(63, 70, 62, 0.06);

    /* Focus en animatie */
    --g4y-focus: 0 0 0 4px rgba(116, 132, 109, 0.15);
    --g4y-transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

/* =========================================================
   2. RESET EN BASIS
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--g4y-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    background: var(--g4y-bg-page);
    background-attachment: fixed;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.62;
}

::selection {
    background: rgba(116, 132, 109, 0.22);
}

:focus {
    outline: none;
}

:focus-visible {
    outline: none;
    box-shadow: var(--g4y-focus);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--g4y-heading);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(32px, 3.2vw, 46px);
}

h2 {
    font-size: clamp(27px, 2.7vw, 38px);
}

h3 {
    font-size: clamp(21px, 2vw, 28px);
}

p {
    color: var(--g4y-muted);
}

strong {
    color: var(--g4y-heading);
}

small {
    color: var(--g4y-soft-text);
}

/* =========================================================
   3. APP LAYOUT
   ========================================================= */

.app-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.app-main,
.main-area {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    width: calc(100% - var(--g4y-sidebar-width));
    max-width: calc(100% - var(--g4y-sidebar-width));
    margin-left: var(--g4y-sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--g4y-bg-page);
}

.app-inner {
    width: 100%;
    min-height: 100vh;
    background: var(--g4y-bg-page);
}

.page-content,
.agenda-page,
.reports-page,
.invoices-page-content {
    width: 100%;
    padding: 26px 34px 42px;
    background: transparent;
}

.page-inner,
.page-wrap,
.content-wrap,
.dashboard-wrap,
.calc-wrap,
.clients-wrap,
.measurements-wrap,
.documents-wrap,
.reports-wrap,
.rapportages-wrap,
.invoices-wrap,
.calculations-wrap,
.agenda-wrap,
.invoice-wrap,
.dossier-wrap,
.client-detail-wrap,
.client-dossier-wrap,
.document-view-wrap,
.client-notes-wrap,
.progress-wrap {
    width: 100%;
    max-width: var(--g4y-content-max);
    margin: 0 auto;
}

.narrow-wrap {
    width: 100%;
    max-width: var(--g4y-content-narrow);
    margin: 0 auto;
}

/* =========================================================
   4. SIDEBAR
   ========================================================= */

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: var(--g4y-sidebar-width);
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 8%, rgba(143, 165, 142, 0.18), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(230, 220, 205, 0.20), transparent 34%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(248, 244, 236, 0.94));
    border-right: 1px solid var(--g4y-border);
    box-shadow: var(--g4y-shadow-sidebar);
}

.sidebar-inner {
    height: 100vh;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-top {
    margin-bottom: 18px;
}

.brand {
    display: block;
    padding: 13px;
    color: var(--g4y-heading);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--g4y-border);
    border-radius: 24px;
    box-shadow: var(--g4y-shadow);
    backdrop-filter: blur(12px);
    transition: var(--g4y-transition);
}

.brand:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(116, 132, 109, 0.28);
    box-shadow: var(--g4y-shadow-strong);
}

.g4y-sidebar-logo {
    width: 100%;
    min-height: 96px;
    margin-bottom: 11px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 18%, rgba(156, 203, 59, 0.16), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(233, 119, 87, 0.10), transparent 32%),
        linear-gradient(135deg, #87967f 0%, #6f7f68 48%, #596653 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px rgba(63, 70, 62, 0.16);
}

.g4y-sidebar-logo img {
    width: 100%;
    max-width: 230px;
    max-height: 80px;
    object-fit: contain;
}

.brand-text {
    padding: 0 5px 2px;
    text-align: center;
}

.brand-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--g4y-heading);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.brand-text span {
    display: block;
    color: var(--g4y-muted);
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.4;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    position: relative;
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--g4y-heading);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid transparent;
    border-radius: 17px;
    transition: var(--g4y-transition);
}

.nav-item:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(116, 132, 109, 0.24);
    box-shadow: var(--g4y-shadow-soft);
}

.nav-item.active {
    color: var(--g4y-heading);
    background: linear-gradient(135deg, rgba(223, 230, 215, 0.86), rgba(255, 255, 255, 0.78));
    border-color: rgba(116, 132, 109, 0.34);
    box-shadow: var(--g4y-shadow-soft);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -6px;
    width: 4px;
    border-radius: var(--g4y-radius-pill);
    background: linear-gradient(180deg, var(--g4y-lime), #6f816c);
}

.nav-icon {
    width: 25px;
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.54);
    filter: saturate(0.88);
}

.nav-label {
    flex: 1;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
}

.nav-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: var(--g4y-radius-pill);
    background: rgba(233, 119, 87, 0.11);
    color: #8f5b49;
    font-size: 10px;
    font-weight: 900;
}

.nav-item-muted {
    opacity: 0.76;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 12px 4px;
    color: var(--g4y-muted);
    text-align: center;
}

.sidebar-footer span {
    display: block;
    color: var(--g4y-heading);
    font-size: 12px;
    font-weight: 850;
}

.sidebar-footer small {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    opacity: 0.78;
}

/* =========================================================
   5. PAGINAKOPPEN
   ========================================================= */

.page-header,
.page-head,
.calc-topbar,
.clients-topbar,
.dashboard-topbar,
.content-header,
.agenda-topbar,
.reports-topbar,
.invoices-page-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.page-kicker,
.card-eyebrow,
.login-eyebrow,
.agenda-kicker,
.reports-kicker,
.documents-wrap .eyebrow,
.invoices-kicker,
.invoices-eyebrow,
.invoice-wrap .eyebrow,
.page-badge,
.document-kicker {
    width: fit-content;
    margin-bottom: 9px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--g4y-radius-pill);
    color: #5d6957;
    background: rgba(223, 230, 215, 0.72);
    border: 1px solid var(--g4y-border);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-header h1,
.page-header h2,
.page-head h1,
.page-head h2,
.calc-title h1,
.clients-intro h2,
.dashboard-intro h2,
.content-header h1,
.content-header h2,
.agenda-intro h2,
.reports-intro h2,
.invoices-page-head h1 {
    margin: 0 0 8px;
    color: var(--g4y-heading);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-header p,
.page-head p,
.clients-intro p,
.dashboard-intro p,
.content-header p,
.agenda-intro p,
.reports-intro p,
.invoices-page-head p {
    max-width: 760px;
    margin: 0;
    color: var(--g4y-muted);
}

/* =========================================================
   6. KAARTEN EN BLOKKEN
   ========================================================= */

.g4y-card,
.card,
.panel,
.widget,
.stat-card,
.info-card,
.document-card,
.report-card,
.invoice-card,
.note-card {
    background: var(--g4y-card-bg);
    border: 1px solid var(--g4y-border);
    border-radius: var(--g4y-radius-lg);
    box-shadow: var(--g4y-shadow-soft);
}

.g4y-card-soft,
.card-soft,
.panel-soft {
    background: var(--g4y-card-bg-soft);
}

.g4y-card-hormone,
.card-hormone {
    background: var(--g4y-card-bg-hormone);
}

.g4y-card,
.card,
.panel {
    padding: 20px;
}

.card-title {
    margin: 0 0 8px;
    color: var(--g4y-heading);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.card-text {
    margin: 0;
    color: var(--g4y-muted);
}

/* =========================================================
   7. KNOPPEN
   ========================================================= */

.btn,
.button,
.g4y-btn,
a.btn,
button.btn {
    min-height: 42px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--g4y-radius-pill);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
    transition: var(--g4y-transition);
}

.btn-primary,
.g4y-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--g4y-olive), var(--g4y-olive-dark));
    border-color: rgba(63, 70, 62, 0.12);
    box-shadow: 0 10px 22px rgba(63, 70, 62, 0.12);
}

.btn-primary:hover,
.g4y-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--g4y-shadow);
}

.btn-secondary,
.g4y-btn-secondary {
    color: var(--g4y-heading);
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--g4y-border);
}

.btn-secondary:hover,
.g4y-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(116, 132, 109, 0.26);
    box-shadow: var(--g4y-shadow-soft);
}

.btn-accent,
.g4y-btn-accent {
    color: #ffffff;
    background: linear-gradient(135deg, var(--g4y-coral), var(--g4y-orange));
    border-color: rgba(233, 119, 87, 0.16);
    box-shadow: 0 10px 22px rgba(233, 119, 87, 0.16);
}

.btn-accent:hover,
.g4y-btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(233, 119, 87, 0.20);
}

.btn-small,
.g4y-btn-small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12.5px;
}

/* =========================================================
   8. FORMULIEREN
   ========================================================= */

.form-row,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group,
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label,
.form-label {
    color: var(--g4y-heading);
    font-size: 13px;
    font-weight: 850;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="url"],
select,
textarea,
.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    color: var(--g4y-text);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--g4y-border);
    border-radius: var(--g4y-radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: var(--g4y-transition);
}

textarea,
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(116, 132, 109, 0.38);
    box-shadow: var(--g4y-focus);
}

/* =========================================================
   9. TABELLEN
   ========================================================= */

.table-wrap,
.g4y-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--g4y-border);
    border-radius: var(--g4y-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--g4y-shadow-soft);
}

table,
.g4y-table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(85, 96, 84, 0.08);
}

th {
    color: var(--g4y-heading);
    background: rgba(223, 230, 215, 0.48);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    color: var(--g4y-text);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   10. BADGES EN STATUSSEN
   ========================================================= */

.badge,
.status-badge,
.g4y-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: var(--g4y-radius-pill);
    color: var(--g4y-heading);
    background: rgba(223, 230, 215, 0.72);
    border: 1px solid var(--g4y-border);
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.1;
}

.badge-success,
.status-success {
    background: rgba(156, 203, 59, 0.16);
    color: #52633f;
}

.badge-warning,
.status-warning {
    background: rgba(217, 149, 69, 0.15);
    color: #8a6536;
}

.badge-danger,
.status-danger {
    background: rgba(183, 125, 113, 0.15);
    color: #8a5148;
}

.badge-info,
.status-info {
    background: rgba(127, 148, 170, 0.15);
    color: #52677d;
}

/* =========================================================
   11. WERKENDE OUDE MODULE-STYLING NETJES GEINTEGREERD
   =========================================================
   Doel:
   - bestaande PHP-selectors blijven werken;
   - module-specifieke styling staat gegroepeerd;
   - basislayout, kleuren, kaarten, knoppen, formulieren en tabellen blijven centraal geregeld.
   ========================================================= */

/* Algemene helpers */
.text-muted,
.muted {
    color: var(--g4y-muted) !important;
}

.text-small {
    font-size: 13px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

.right {
    text-align: right;
}

.soft-divider {
    height: 1px;
    margin: 16px 0;
    background: rgba(63, 70, 62, 0.10);
}

.empty-state,
.empty,
.empty-note {
    display: grid;
    gap: 5px;
    padding: 24px;
    color: var(--g4y-muted);
    text-align: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed var(--g4y-border-strong);
    border-radius: 17px;
}

.empty-state strong,
.empty-note strong {
    color: var(--g4y-heading);
    font-size: 18px;
}

/* Oude kaartnamen behouden zonder extra visuele vervuiling */
.soft-card,
.hero-card,
.form-card,
.table-card,
.content-card,
.formula-box,
.selector-card,
.summary-box,
.progress-card,
.chart-card,
.measurement-card,
.client-header,
.client-summary-card,
.detail-card,
.agenda-card,
.agenda-stat,
.reports-card,
.reports-stat,
.client-section,
.dossier-section,
.client-detail-section,
.client-content-card,
.invoice-stat-card,
.documents-form-card,
.documents-list-card,
.filters-card,
.reports-filter-card {
    position: relative;
    overflow: hidden;
    background: var(--g4y-card-bg);
    border: 1px solid var(--g4y-border);
    border-radius: var(--g4y-radius-lg);
    box-shadow: var(--g4y-shadow);
    backdrop-filter: blur(10px);
}

.soft-card::after,
.hero-card::after,
.form-card::after,
.table-card::after,
.content-card::after,
.formula-box::after,
.selector-card::after,
.summary-box::after,
.metric-card::after,
.stat-card::after,
.document-card::after,
.invoice-card::after,
.notice-card::after,
.progress-card::after,
.chart-card::after,
.measurement-card::after,
.client-header::after,
.client-summary-card::after,
.detail-card::after,
.agenda-card::after,
.agenda-stat::after,
.reports-card::after,
.reports-stat::after,
.client-section::after,
.dossier-section::after,
.client-detail-section::after,
.client-content-card::after,
.invoice-stat-card::after,
.documents-form-card::after,
.documents-list-card::after,
.filters-card::after,
.reports-filter-card::after {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    z-index: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(223, 230, 215, 0.92), rgba(223, 230, 215, 0.52));
    pointer-events: none;
}

.soft-card > *,
.hero-card > *,
.form-card > *,
.table-card > *,
.content-card > *,
.formula-box > *,
.selector-card > *,
.summary-box > *,
.metric-card > *,
.stat-card > *,
.document-card > *,
.invoice-card > *,
.notice-card > *,
.progress-card > *,
.chart-card > *,
.measurement-card > *,
.client-header > *,
.client-summary-card > *,
.detail-card > *,
.agenda-card > *,
.agenda-stat > *,
.reports-card > *,
.reports-stat > *,
.client-section > *,
.dossier-section > *,
.client-detail-section > *,
.client-content-card > *,
.invoice-stat-card > *,
.documents-form-card > *,
.documents-list-card > *,
.filters-card > *,
.reports-filter-card > * {
    position: relative;
    z-index: 1;
}

.form-card,
.table-card,
.content-card,
.formula-box,
.selector-card,
.summary-box,
.metric-card,
.stat-card,
.document-card,
.invoice-card,
.notice-card,
.progress-card,
.chart-card,
.measurement-card,
.detail-card,
.documents-form-card,
.documents-list-card,
.filters-card,
.reports-filter-card {
    padding: 20px;
}

.hero-card,
.client-hero,
.dossier-hero,
.client-header-card,
.reports-hero,
.document-hero-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 96% 10%, rgba(223, 230, 215, 0.62), transparent 30%),
        radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.72), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(251, 248, 243, 0.90) 54%, rgba(242, 245, 237, 0.86));
    border: 1px solid rgba(85, 96, 84, 0.13);
    box-shadow: var(--g4y-shadow);
    backdrop-filter: blur(10px);
}

.hero-card.hormone,
.reports-hero.hormone,
.client-hero.hormone {
    background: var(--g4y-card-bg-hormone);
}

.section-title,
.card-title {
    margin: 0 0 14px;
    color: var(--g4y-heading);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.card-subtitle,
.section-subtitle,
.reports-card-intro,
.reports-table-top p {
    margin: 0 0 16px;
    color: var(--g4y-muted);
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.65;
}

/* Oude formulierklassen behouden */
.field,
.form-group,
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin-bottom: 14px;
}

.field-label,
.form-label,
label {
    display: block;
    margin-bottom: 8px;
    color: var(--g4y-heading);
    font-size: 13px;
    font-weight: 900;
}

.field-select,
.form-input,
.form-select,
.input,
.select,
input[type="search"],
input[type="file"] {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--g4y-text);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(63, 70, 62, 0.16);
    border-radius: var(--g4y-radius-sm);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input[type="file"] {
    padding-top: 10px;
    cursor: pointer;
}

.field-select:focus,
.form-input:focus,
.form-select:focus,
.input:focus,
.select:focus {
    background: #ffffff;
    border-color: rgba(116, 132, 109, 0.55);
    box-shadow: var(--g4y-focus);
}

input::placeholder,
textarea::placeholder {
    color: rgba(47, 53, 47, 0.46);
}

.help,
.form-help,
.field small {
    color: var(--g4y-soft-text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.filter-grid,
.bulk-grid,
.reports-filter-grid,
.note-form-grid,
.client-notes-filter-grid,
.reports-form-grid,
.agenda-form-grid,
.documents-form-card .document-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.span-all,
.full {
    grid-column: 1 / -1;
}

.span-2,
.span-3,
.half {
    grid-column: span 2;
}

/* Oude knopnamen behouden */
.quick-action,
.btn-soft,
.btn-danger,
.mini-link,
.delete-link,
.primary-mini,
.document-btn,
.document-mini-link,
.mini-doc-btn,
.client-mini-btn,
input[type="submit"],
input[type="button"] {
    min-height: 40px;
    padding: 9px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4f594d;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(63, 70, 62, 0.16);
    border-radius: var(--g4y-radius-pill);
    box-shadow: 0 8px 18px rgba(63, 70, 62, 0.045);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--g4y-transition);
}

.quick-action:hover,
.btn-soft:hover,
.mini-link:hover,
.document-btn:hover,
.document-mini-link:hover,
.mini-doc-btn:hover,
.client-mini-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    color: var(--g4y-heading);
    background: rgba(241, 236, 227, 0.82);
    border-color: rgba(116, 132, 109, 0.28);
    box-shadow: 0 10px 22px rgba(63, 70, 62, 0.07);
}

.btn-add,
.btn-new,
.btn-save,
.btn-submit,
.quick-action.primary,
button[type="submit"],
input[type="submit"],
.primary-mini,
.document-btn.primary,
.mini-doc-btn.primary,
.client-mini-btn.primary {
    color: #fbf8f3;
    background: linear-gradient(135deg, #849078 0%, #6d7966 48%, #556054 100%);
    border-color: rgba(85, 96, 84, 0.34);
    box-shadow: 0 10px 22px rgba(85, 96, 84, 0.18);
}

.btn-add:hover,
.btn-new:hover,
.btn-save:hover,
.btn-submit:hover,
.quick-action.primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.primary-mini:hover,
.document-btn.primary:hover,
.mini-doc-btn.primary:hover,
.client-mini-btn.primary:hover {
    color: #fbf8f3;
    background: linear-gradient(135deg, #748069 0%, #63705d 50%, #4f594d 100%);
    border-color: rgba(63, 70, 62, 0.42);
    box-shadow: 0 14px 28px rgba(85, 96, 84, 0.22);
}

.btn-soft {
    min-height: 34px;
    padding: 7px 12px;
    color: #5d6957;
    background: rgba(223, 230, 215, 0.56);
    box-shadow: none;
}

.btn-danger,
.delete-link {
    color: #934d44;
    background: rgba(250, 234, 231, 0.86);
    border-color: rgba(200, 106, 95, 0.28);
}

.btn-danger:hover,
.delete-link:hover {
    color: #ffffff;
    background: #a85646;
    border-color: #a85646;
}

.btn-small,
.mini-link,
.delete-link,
.primary-mini,
.mini-doc-btn,
.client-mini-btn {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 12px;
}

.btn-disabled,
.disabled {
    opacity: 0.55;
    pointer-events: none;
    border-style: dashed;
}

.quick-actions,
.actions,
.form-actions,
.hero-actions,
.clients-top-actions,
.invoice-actions,
.document-actions,
.table-actions,
.recent-actions,
.head-actions,
.action-row,
.agenda-top-actions,
.reports-top-actions,
.reports-filter-actions,
.reports-actions,
.reports-form-actions,
.filter-actions,
.linked-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Oude badges en statussen */
.pill,
.label,
.status-pill,
.tag,
.doc-chip,
.client-chip,
.report-pill,
.document-pill,
.client-type-badge,
.type-badge,
.client-group-badge {
    min-height: 24px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #5d6957;
    background: rgba(223, 230, 215, 0.72);
    border: 1px solid var(--g4y-border);
    border-radius: var(--g4y-radius-pill);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.pill::before,
.client-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: currentColor;
    border-radius: var(--g4y-radius-pill);
    opacity: 0.58;
}

.doc-chip::before,
.status-pill::before,
.tag::before,
.label::before,
.report-pill::before,
.document-pill::before {
    display: none;
}

.badge-green,
.badge-success,
.status-active,
.status-ready,
.status-shared,
.status-done,
.status-paid,
.pill-paid,
.badge-paid,
.payment-paid,
.payment-active,
.pill-visible,
.report-pill-ready,
.report-pill-done {
    color: #527f38;
    background: rgba(223, 243, 231, 0.76);
    border-color: rgba(111, 159, 76, 0.24);
}

.badge-blue,
.badge-gareo,
.pill-gareo,
.client-chip-gareo,
.group-gareo,
.access-not-commercial,
.payment-not-applicable,
.status-not-applicable,
.report-pill-gareo,
.report-pill-sport {
    color: #4d657d;
    background: rgba(224, 236, 247, 0.78);
    border-color: rgba(120, 144, 170, 0.25);
}

.badge-blush,
.badge-danger,
.status-danger,
.status-overdue,
.pill-expired,
.badge-expired,
.payment-expired,
.payment-cancelled,
.note-priority-high,
.note-priority-urgent {
    color: #934d44;
    background: rgba(250, 234, 231, 0.86);
    border-color: rgba(200, 106, 95, 0.28);
}

.badge-gold,
.badge-warning,
.status-draft,
.status-concept,
.pill-open,
.badge-open,
.payment-open,
.payment-pending,
.note-priority-normal,
.pill-template,
.report-pill-concept {
    color: #8b642f;
    background: rgba(255, 247, 230, 0.86);
    border-color: rgba(217, 149, 69, 0.28);
}

.status-internal,
.status-archive,
.status-default,
.soft,
.note-priority-low,
.pill-soft,
.report-pill-archive {
    color: rgba(47, 53, 47, 0.72);
    background: rgba(241, 236, 227, 0.80);
    border-color: rgba(63, 70, 62, 0.10);
}

.badge-praktijk,
.pill-praktijk,
.client-chip-praktijk,
.group-praktijk {
    color: #4f6249;
    background: rgba(223, 230, 215, 0.78);
    border-color: rgba(116, 132, 109, 0.22);
}

.badge-sport,
.pill-sport,
.client-chip-sport,
.group-sport,
.report-pill-bgn,
.report-pill-meting {
    color: #4f736f;
    background: rgba(223, 243, 231, 0.76);
    border-color: rgba(127, 167, 160, 0.24);
}

.badge-combi,
.pill-combi,
.client-chip-combi,
.group-combi {
    color: #806132;
    background: rgba(255, 247, 230, 0.86);
    border-color: rgba(217, 149, 69, 0.26);
}

.badge-online,
.pill-online,
.client-chip-online,
.group-online,
.badge-premium,
.pill-premium,
.access-premium,
.access-plus,
.pill-report,
.report-pill-hormoon {
    color: #665178;
    background: rgba(236, 229, 240, 0.88);
    border-color: rgba(165, 140, 158, 0.26);
}

.warning-card,
.notice,
.error,
.message,
.invoice-message,
.task-message {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(63, 70, 62, 0.07);
}

.warning-card,
.notice,
.message-info,
.message-warning {
    color: #6d5a32;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 236, 0.90));
    border: 1px solid rgba(173, 154, 114, 0.22);
}

.error,
.warning-card.red,
.message-error,
.notice.error,
.task-message.error,
.invoice-message-error {
    color: #8a4f45;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 234, 231, 0.88));
    border: 1px solid rgba(183, 125, 113, 0.24);
}

.notice.success,
.message-success,
.invoice-message-success {
    color: #41683a;
    background: rgba(223, 243, 231, 0.76);
    border: 1px solid rgba(111, 159, 76, 0.26);
}

/* Statistieken en grids */
.client-summary,
.metrics-grid,
.stats-grid,
.cards-grid,
.documents-stats,
.reports-grid,
.documents-report-style-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-box,
.metric-card,
.stat-card,
.reports-stat {
    min-height: 112px;
}

.summary-label,
.metric-label,
.stat-label,
.stat-card span,
.reports-stat span {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 9px;
    color: rgba(47, 51, 47, 0.66);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-value,
.metric-value,
.stat-value,
.stat-card strong,
.reports-stat strong {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--g4y-heading);
    font-size: 29px;
    font-weight: 900;
    line-height: 1.1;
}

.summary-sub,
.metric-sub,
.stat-note {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: var(--g4y-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.invoice-table-wrap,
.clients-table-wrap,
.reports-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    border-radius: 18px;
}

.table {
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
}

tbody tr:hover td,
tbody tr:hover {
    background: rgba(243, 246, 238, 0.54);
}

.table-card {
    overflow: visible;
}

/* Klantenpagina */
.clients-wrap {
    max-width: 1500px;
}

.clients-wrap .table-card {
    width: 100%;
    max-width: none;
    padding: 18px;
    overflow: visible;
}

.clients-wrap .table-wrap,
.clients-wrap .clients-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.clients-wrap table {
    min-width: 1380px;
    table-layout: fixed;
}

.clients-wrap thead th {
    padding: 11px 12px;
    background: rgba(243, 246, 238, 0.96);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
}

.clients-wrap tbody td {
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.3;
}

.clients-wrap th:nth-child(1),
.clients-wrap td:nth-child(1) { width: 44px; }
.clients-wrap th:nth-child(2),
.clients-wrap td:nth-child(2) { width: 230px; }
.clients-wrap th:nth-child(3),
.clients-wrap td:nth-child(3) { width: 180px; }
.clients-wrap th:nth-child(4),
.clients-wrap td:nth-child(4) { width: 210px; }
.clients-wrap th:nth-child(5),
.clients-wrap td:nth-child(5) { width: 135px; }
.clients-wrap th:nth-child(6),
.clients-wrap td:nth-child(6) { width: 230px; }
.clients-wrap th:nth-child(7),
.clients-wrap td:nth-child(7) { width: 140px; }
.clients-wrap th:nth-child(8),
.clients-wrap td:nth-child(8) { width: 115px; }

.clients-wrap tbody tr:not(.quick-edit-open) .quick-row-select,
.clients-wrap tbody tr:not(.quick-edit-open) .quick-row-input {
    display: none;
}

.clients-wrap tbody tr.quick-edit-open .quick-row-select,
.clients-wrap tbody tr.quick-edit-open .quick-row-input {
    display: block;
}

.clients-wrap .quick-current-label,
.clients-wrap .quick-small-note,
.clients-wrap .quick-contact-read {
    display: inline-flex;
}

.clients-wrap .quick-edit-stack,
.clients-wrap .quick-contact-compact,
.clients-wrap .quick-edit-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 0;
}

.clients-wrap .client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.clients-wrap .pill,
.clients-wrap .badge,
.clients-wrap .client-chip,
.clients-wrap .status-pill,
.clients-wrap .quick-current-label {
    min-height: 20px;
    padding: 3px 8px;
    font-size: 10.5px;
}

.clients-wrap .quick-small-note {
    color: var(--g4y-muted);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.2;
}

.clients-wrap .quick-contact-read {
    color: var(--g4y-heading);
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.clients-wrap .quick-row-select,
.clients-wrap .quick-row-input {
    min-height: 29px;
    height: 29px;
    padding: 0 9px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 750;
}

.age-height-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.age-height-cell strong,
.age-height-cell span {
    font-size: 12.5px;
    line-height: 1.2;
}

/* Uitklapacties */
.actions-cell,
.report-actions-cell,
.document-actions-cell,
.refined-actions {
    position: relative;
    overflow: visible;
}

.row-actions,
.report-row-actions,
.document-row-actions {
    position: relative;
    z-index: 20;
    display: inline-block;
}

.row-actions-toggle,
.report-actions-toggle,
.document-actions-toggle {
    min-height: 32px;
    height: 32px;
    padding: 0 14px;
    color: #fbf8f3;
    background: linear-gradient(135deg, #849078 0%, #6d7966 48%, #556054 100%);
    border: 1px solid rgba(85, 96, 84, 0.32);
    border-radius: var(--g4y-radius-pill);
    box-shadow: 0 8px 16px rgba(85, 96, 84, 0.16);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.row-actions-menu,
.report-actions-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 10002;
    display: none;
    min-width: 190px;
    padding: 7px;
    background:
        radial-gradient(circle at 96% 10%, rgba(223, 230, 215, 0.34), transparent 30%),
        rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(63, 70, 62, 0.13);
    border-radius: 16px;
    box-shadow: 0 22px 48px rgba(63, 70, 62, 0.22);
}

.row-actions.open .row-actions-menu,
.report-row-actions.open .report-actions-menu {
    display: grid;
    gap: 4px;
}

.row-actions-menu .btn,
.row-actions-menu a,
.row-actions-menu button,
.report-actions-menu .btn,
.report-actions-menu a,
.report-actions-menu button {
    width: 100%;
    min-height: 31px;
    justify-content: flex-start;
    padding: 7px 10px;
    border-radius: 11px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-align: left;
    text-decoration: none;
}

tbody tr {
    position: relative;
    z-index: 1;
}

tbody tr.row-actions-open,
tbody tr.report-actions-open {
    z-index: 9999;
}

tr.row-actions-open .actions-cell,
tr.report-actions-open .report-actions-cell {
    z-index: 10000;
}

.row-actions.open,
.report-row-actions.open {
    z-index: 10001;
}

.document-actions-cell,
.refined-actions {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(63, 70, 62, 0.08);
    overflow: visible;
}

.document-row-actions {
    z-index: 1;
    display: block;
    width: 100%;
}

.document-actions-menu {
    display: none;
}

.document-row-actions.open .document-actions-menu {
    position: static;
    display: grid;
    width: 100%;
    max-width: 460px;
    min-width: 0;
    margin-top: 10px;
    padding: 10px;
    gap: 6px;
    background:
        radial-gradient(circle at 96% 10%, rgba(223, 230, 215, 0.30), transparent 30%),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(63, 70, 62, 0.12);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 10px 24px rgba(63, 70, 62, 0.07);
}

.document-actions-menu .btn,
.document-actions-menu a,
.document-actions-menu button {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 7px 11px;
    border-radius: 11px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.document-delete-form,
.report-delete-form {
    margin: 0;
}

/* Documenten */
.documents-wrap {
    max-width: 1380px;
}

.smart-intro,
.linked-report-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 96% 12%, rgba(223, 230, 215, 0.40), transparent 30%),
        rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(63, 70, 62, 0.10);
    box-shadow: var(--g4y-shadow-soft);
}

.linked-report-box {
    background:
        radial-gradient(circle at 96% 12%, rgba(165, 140, 158, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.70);
    border-color: rgba(165, 140, 158, 0.20);
}

.smart-intro h2,
.linked-report-box h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.smart-intro p,
.linked-report-box p {
    max-width: 860px;
    margin: 0;
    font-weight: 700;
    line-height: 1.65;
}

.smart-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    min-width: 260px;
}

.smart-badges span {
    min-height: 28px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    color: var(--g4y-olive);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(63, 70, 62, 0.12);
    border-radius: var(--g4y-radius-pill);
    font-size: 12px;
    font-weight: 900;
}

.documents-add-toggle-section {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 16px;
}

.documents-layout-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(380px, 0.78fr) minmax(720px, 1.22fr);
    gap: 18px;
    align-items: start;
}

.documents-layout-grid.documents-form-closed {
    grid-template-columns: minmax(0, 1fr);
}

.documents-layout-grid.documents-form-closed .documents-form-card {
    display: none;
}

.documents-list-card,
.documents-form-card {
    width: 100%;
    min-width: 0;
}

.documents-list-card {
    overflow: visible;
}

.documents-list-card .filter-grid,
.documents-wrap .filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-form {
    margin-bottom: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(63, 70, 62, 0.10);
    border-radius: 18px;
}

.check-grid,
.documents-form-card .check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.check-card,
.documents-form-card .check-card {
    min-height: 112px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(63, 70, 62, 0.12);
    border-radius: 17px;
    cursor: pointer;
    transition: var(--g4y-transition);
}

.check-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(116, 132, 109, 0.26);
}

.check-card input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--g4y-olive);
}

.check-card span {
    display: grid;
    gap: 4px;
}

.check-card strong {
    font-size: 13px;
    font-weight: 950;
}

.check-card small {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.report-link-note,
.current-file {
    padding: 12px 14px;
    color: var(--g4y-heading);
    background: rgba(223, 230, 215, 0.58);
    border: 1px solid rgba(85, 96, 84, 0.13);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.current-file {
    margin-top: 8px;
    background: rgba(241, 236, 227, 0.74);
}

.document-list,
.document-list-refined,
.documents-wrap .document-list,
.documents-wrap .client-documents-grid {
    width: 100%;
    display: grid;
    gap: 14px;
}

.document-item,
.document-item-refined,
.documents-wrap .document-item,
.documents-wrap .document-item.document-item-refined {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    overflow: hidden;
    background:
        radial-gradient(circle at 96% 12%, rgba(223, 230, 215, 0.28), transparent 30%),
        rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(63, 70, 62, 0.10);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(63, 70, 62, 0.055);
    transition: var(--g4y-transition);
}

.document-item:hover,
.document-item-refined:hover {
    transform: translateY(-1px);
    border-color: rgba(116, 132, 109, 0.22);
    box-shadow: 0 12px 24px rgba(63, 70, 62, 0.07);
}

.document-item-refined.is-report-document {
    background:
        radial-gradient(circle at 96% 12%, rgba(165, 140, 158, 0.14), transparent 30%),
        radial-gradient(circle at 8% 10%, rgba(223, 230, 215, 0.22), transparent 32%),
        rgba(255, 255, 255, 0.80);
}

.document-main,
.document-title-block,
.document-title-row,
.refined-title-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.document-title-row,
.refined-title-row {
    display: block;
    margin-bottom: 8px;
}

.document-title-block h3,
.document-item-refined h3,
.client-document-title,
.document-title,
.documents-wrap h3 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    margin: 0 0 9px;
    color: var(--g4y-heading);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.24;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.document-pills,
.document-meta-pills {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.refined-meta,
.document-meta.refined-meta,
.client-document-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 10px;
    color: var(--g4y-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.refined-meta span,
.document-meta span,
.client-document-meta span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.refined-notes,
.document-notes.refined-notes,
.client-document-summary {
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
    padding: 11px 13px;
    color: var(--g4y-muted);
    background: rgba(251, 248, 243, 0.78);
    border: 1px solid rgba(63, 70, 62, 0.08);
    border-radius: 15px;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.documents-report-style-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Documentdetail */
.document-view-wrap {
    max-width: 1180px;
    padding-bottom: 42px;
}

.document-view-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.document-view-head h1 {
    margin: 10px 0 6px;
    color: var(--g4y-heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.document-view-head p {
    max-width: 760px;
    margin: 0;
    color: var(--g4y-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.document-alert {
    margin-bottom: 18px;
    padding: 15px 18px;
    color: #7a3a31;
    background: rgba(255, 244, 240, 0.82);
    border: 1px solid rgba(198, 89, 76, 0.24);
    border-radius: 18px;
    font-weight: 750;
}

.document-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.document-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.document-column {
    display: grid;
    gap: 18px;
}

.document-card-label {
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    color: var(--g4y-soft-text);
    background: rgba(247, 243, 235, 0.86);
    border: 1px solid rgba(63, 70, 62, 0.10);
    border-radius: var(--g4y-radius-pill);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-note-box {
    margin: 0;
    padding: 15px;
    color: var(--g4y-heading);
    background: rgba(247, 243, 235, 0.70);
    border: 1px solid rgba(63, 70, 62, 0.10);
    border-radius: 17px;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.65;
}

.document-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.document-detail-list div {
    display: grid;
    grid-template-columns: minmax(132px, 0.55fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(63, 70, 62, 0.08);
}

.document-detail-list div:last-child {
    border-bottom: 0;
}

.document-detail-list dt {
    color: var(--g4y-soft-text);
    font-size: 13px;
    font-weight: 900;
}

.document-detail-list dd {
    margin: 0;
    color: var(--g4y-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.42;
    word-break: break-word;
}

.document-empty {
    display: grid;
    gap: 5px;
    padding: 15px;
    color: var(--g4y-muted);
    background: rgba(255, 255, 255, 0.56);
    border: 1px dashed rgba(63, 70, 62, 0.22);
    border-radius: 17px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.document-link-box {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(247, 243, 235, 0.76);
    border: 1px solid rgba(63, 70, 62, 0.10);
    border-radius: 18px;
}

.document-preview img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(63, 70, 62, 0.10);
    border-radius: 18px;
}

.document-pdf-preview {
    height: 560px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(63, 70, 62, 0.12);
    border-radius: 18px;
}

.document-pdf-preview iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Klantdossier, notities en metingen */
.privacy-note,
.privacy-rule,
.bsn-warning,
.client-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    color: #5f5035;
    background:
        radial-gradient(circle at 96% 14%, rgba(255, 255, 255, 0.46), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(251, 248, 243, 0.72));
    border: 1px solid rgba(173, 154, 114, 0.22);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(63, 70, 62, 0.055);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.privacy-note::before,
.privacy-rule::before,
.bsn-warning::before,
.client-privacy-note::before {
    content: "!";
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b642f;
    background: rgba(255, 247, 230, 0.92);
    border: 1px solid rgba(217, 149, 69, 0.28);
    border-radius: var(--g4y-radius-pill);
    font-weight: 950;
}

.privacy-note .privacy-icon {
    display: none;
}

.gareo-note {
    border-color: rgba(120, 144, 170, 0.24);
}

.online-note {
    border-color: rgba(165, 140, 158, 0.24);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-meta,
.client-meta-grid,
.client-hero-meta,
.progress-wrap .hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.meta-box,
.client-meta-box {
    min-width: 0;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--g4y-border);
    border-radius: 17px;
    box-shadow: 0 8px 18px rgba(63, 70, 62, 0.045);
}

.meta-label,
.client-meta-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(47, 53, 47, 0.62);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.meta-value,
.client-meta-value {
    display: block;
    color: var(--g4y-heading);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dossier-tabs,
.client-tabs,
.client-anchor-tabs,
.dossier-filter-bar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 20px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--g4y-border);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(63, 70, 62, 0.075);
    backdrop-filter: blur(10px);
}

.dossier-tab,
.client-tab,
.client-anchor-tabs a,
.dossier-tabs a,
.dossier-filter-chip {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--g4y-olive);
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(63, 70, 62, 0.14);
    border-radius: var(--g4y-radius-pill);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--g4y-transition);
}

.dossier-tab:hover,
.client-tab:hover,
.client-anchor-tabs a:hover,
.dossier-tabs a:hover,
.dossier-filter-chip:hover {
    transform: translateY(-1px);
    color: var(--g4y-heading);
    background: rgba(241, 236, 227, 0.82);
    border-color: rgba(116, 132, 109, 0.28);
}

.dossier-tab.primary,
.client-tab.primary,
.client-anchor-tabs a.active,
.dossier-tabs a.active,
.dossier-tabs a.primary,
.dossier-filter-chip.active {
    color: #fbf8f3;
    background: linear-gradient(135deg, #849078 0%, #6d7966 48%, #556054 100%);
    border-color: rgba(85, 96, 84, 0.34);
    box-shadow: 0 9px 20px rgba(85, 96, 84, 0.16);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.quick-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--g4y-text);
    text-decoration: none;
    background:
        radial-gradient(circle at 94% 12%, rgba(223, 230, 215, 0.54), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 243, 0.86));
    border: 1px solid var(--g4y-border);
    border-radius: 22px;
    box-shadow: var(--g4y-shadow-soft);
    transition: var(--g4y-transition);
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(116, 132, 109, 0.25);
    box-shadow: var(--g4y-shadow);
}

.quick-card span {
    color: rgba(47, 53, 47, 0.62);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.quick-card strong {
    display: block;
    color: var(--g4y-heading);
    font-size: 30px;
    font-weight: 950;
    line-height: 1.05;
}

.quick-card small {
    color: var(--g4y-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.content-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 22px;
    background: rgba(255, 255, 255, 0.38);
    border-bottom: 1px solid rgba(63, 70, 62, 0.09);
}

.content-card-head h2 {
    margin: 0 0 5px;
    color: var(--g4y-heading);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.content-card-body {
    padding: 20px 22px 22px;
}

.client-documents-grid,
.client-reports-grid,
.client-invoices-grid,
.client-notes-grid {
    display: grid;
    gap: 12px;
}

.client-document-item,
.client-report-item,
.client-invoice-item,
.client-note-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 16px;
    background:
        radial-gradient(circle at 96% 12%, rgba(241, 236, 227, 0.30), transparent 32%),
        rgba(255, 255, 255, 0.68);
    border: 1px solid var(--g4y-border);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(63, 70, 62, 0.045);
    transition: var(--g4y-transition);
}

.client-document-title,
.client-report-title,
.client-invoice-title,
.client-note-title {
    margin: 0 0 8px;
    color: var(--g4y-heading);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.client-document-actions,
.client-report-actions,
.client-invoice-actions,
.client-note-actions {
    min-width: 250px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/* Rapportages */
.reports-wrap,
.rapportages-wrap,
.reports-page .reports-wrap {
    max-width: 1380px;
}

.reports-intro h2 {
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.04em;
}

.reports-intro p {
    max-width: 820px;
    font-weight: 750;
}

.reports-hero {
    padding: 28px 30px;
}

.reports-hero h3,
.reports-card h3,
.reports-filter-card h3,
.reports-table-top h3 {
    margin: 0 0 12px;
    color: var(--g4y-heading);
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.reports-hero p {
    max-width: 920px;
    margin: 0;
    color: var(--g4y-muted);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.6;
}

.reports-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reports-stat-dot {
    width: 16px;
    height: 16px;
    margin-bottom: 14px;
    background: rgba(109, 121, 102, 0.78);
    border-radius: var(--g4y-radius-pill);
}

.reports-card,
.reports-filter-card {
    margin-bottom: 18px;
    overflow: visible;
}

.reports-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.reports-filter-grid .field {
    margin: 0;
}

.reports-filter-grid input,
.reports-filter-grid select {
    min-height: 40px;
    height: 40px;
}

.reports-table-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.reports-table-wrap table {
    min-width: 1120px;
}

.reports-table-wrap th,
.reports-table-wrap td {
    padding: 10px 12px;
}

.reports-table-wrap th:nth-child(1),
.reports-table-wrap td:nth-child(1) { width: 250px; }
.reports-table-wrap th:nth-child(2),
.reports-table-wrap td:nth-child(2) { width: 145px; }
.reports-table-wrap th:nth-child(3),
.reports-table-wrap td:nth-child(3) { width: 185px; }
.reports-table-wrap th:nth-child(4),
.reports-table-wrap td:nth-child(4) { width: 130px; }
.reports-table-wrap th:nth-child(5),
.reports-table-wrap td:nth-child(5) { width: 145px; }
.reports-table-wrap th:nth-child(6),
.reports-table-wrap td:nth-child(6) { width: 105px; }
.reports-table-wrap th:nth-child(7),
.reports-table-wrap td:nth-child(7) { width: 110px; }

.report-title {
    display: block;
    color: var(--g4y-heading);
    font-weight: 900;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.reports-table-wrap .muted {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

/* Grafieken */
.chart-grid,
.charts-grid,
.dashboard-chart-grid,
.dashboard-charts-grid,
.reports-chart-grid,
.measurements-chart-grid,
.progress-chart-grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.chart-grid,
.progress-wrap .chart-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.chart-box,
.chart-panel,
.graph-card,
.dashboard-chart,
.progress-chart-card,
.measurement-chart-card,
.reports-chart-card,
.report-chart-card,
.canvas-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at 96% 10%, rgba(223, 230, 215, 0.42), transparent 30%),
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.56), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 243, 0.84) 58%, rgba(242, 245, 237, 0.74));
    border: 1px solid var(--g4y-border);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(63, 70, 62, 0.07);
    backdrop-filter: blur(10px);
}

.chart-title,
.chart-card-title,
.graph-title,
.dashboard-chart-title {
    margin: 0 0 7px;
    color: var(--g4y-heading);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.chart-help,
.chart-subtitle,
.graph-help,
.dashboard-chart-help {
    max-width: 760px;
    margin: 0 0 15px;
    color: var(--g4y-muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.chart-canvas-wrap,
.canvas-wrap,
.graph-canvas-wrap,
.progress-canvas-wrap,
.measurement-canvas-wrap {
    position: relative;
    height: 365px;
    min-height: 320px;
    padding: 16px 16px 10px;
    overflow: hidden;
    background:
        radial-gradient(circle at 94% 8%, rgba(223, 230, 215, 0.32), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(251, 248, 243, 0.72));
    border: 1px solid rgba(63, 70, 62, 0.09);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(63, 70, 62, 0.045);
}

.chart-canvas-wrap canvas,
.canvas-wrap canvas,
.graph-canvas-wrap canvas,
.progress-canvas-wrap canvas,
.measurement-canvas-wrap canvas,
.chart-box canvas,
.chart-card canvas,
.graph-card canvas {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 16px;
    filter: saturate(0.88) contrast(0.98);
}

/* Loginpagina */
body.login-page {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    color: var(--g4y-text) !important;
    background:
        radial-gradient(circle at 8% 8%, rgba(220, 239, 194, 0.72) 0, transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(234, 215, 213, 0.62) 0, transparent 26%),
        radial-gradient(circle at 80% 92%, rgba(157, 173, 146, 0.36) 0, transparent 30%),
        linear-gradient(135deg, #fbf8f3 0%, #f6f1e8 46%, #edf5e9 100%) !important;
}

body.login-page .login-shell {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 1080px !important;
    min-height: 640px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr) !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 30px !important;
    box-shadow: 0 22px 55px rgba(63, 70, 62, 0.13) !important;
    backdrop-filter: blur(14px) !important;
}

body.login-page .login-brand {
    padding: 46px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 34px !important;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.30) 52%, rgba(219, 233, 211, 0.42) 100%) !important;
}

body.login-page .login-card {
    padding: 46px 40px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.74) !important;
    border-left: 1px solid rgba(63, 70, 62, 0.08) !important;
}

body.login-page .login-panel {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

body.login-page .login-panel h1 {
    margin: 0 0 10px !important;
    color: var(--g4y-heading) !important;
    font-size: 34px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
}

body.login-page .form-input,
body.login-page .login-button {
    min-height: 54px !important;
    border-radius: 17px !important;
}

body.login-page .login-button {
    width: 100% !important;
    margin-top: 7px !important;
    color: #fbf8f3 !important;
    background: linear-gradient(135deg, #6d7966 0%, #556054 100%) !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(85, 96, 84, 0.22) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

/* =========================================================
   12. RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 1024px) {
    :root {
        --g4y-sidebar-width: 260px;
    }

    .page-content,
    .agenda-page,
    .reports-page,
    .invoices-page-content {
        padding: 22px 24px 38px;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .app-main,
    .main-area {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .app-sidebar.open,
    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .page-content,
    .agenda-page,
    .reports-page,
    .invoices-page-content {
        padding: 16px 20px 32px;
    }

    .page-header,
    .page-head,
    .calc-topbar,
    .clients-topbar,
    .dashboard-topbar,
    .content-header,
    .agenda-topbar,
    .reports-topbar,
    .invoices-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn,
    .button,
    .g4y-btn,
    a.btn,
    button.btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-content,
    .agenda-page,
    .reports-page,
    .invoices-page-content {
        padding: 12px 16px 24px;
    }

    h1,
    .page-header h1,
    .page-head h1,
    .content-header h1 {
        font-size: 30px;
    }

    h2,
    .page-header h2,
    .page-head h2,
    .content-header h2 {
        font-size: 25px;
    }

    .g4y-card,
    .card,
    .panel {
        padding: 16px;
        border-radius: var(--g4y-radius);
    }

    th,
    td {
        padding: 10px 11px;
    }
}

/* =========================================================
   12. PRINT
   ========================================================= */

@media print {
    body {
        color: #222222;
        background: #ffffff;
    }

    .app-sidebar,
    .sidebar,
    .no-print,
    .btn,
    .button,
    .g4y-btn {
        display: none !important;
    }

    .app-main,
    .main-area {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        background: #ffffff !important;
    }

    .page-content,
    .agenda-page,
    .reports-page,
    .invoices-page-content {
        padding: 0 !important;
    }

    .g4y-card,
    .card,
    .panel,
    .table-wrap,
    .g4y-table-wrap {
        box-shadow: none !important;
        background: #ffffff !important;
    }
}
/* Loginlogo beter zichtbaar maken */
body.login-page .login-logo-box {
    width: 260px !important;
    max-width: 100% !important;
    margin: 0 0 22px !important;
    padding: 18px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(156, 203, 59, 0.20), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(233, 119, 87, 0.10), transparent 32%),
        linear-gradient(135deg, #87967f 0%, #6f7f68 48%, #596653 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 14px 28px rgba(63, 70, 62, 0.16) !important;
}

body.login-page .login-logo-img {
    width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}/* Mobiele weergave medewerkerslogin - logo breed bovenaan */
@media (max-width: 768px) {
    body.login-page {
        padding: 14px !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    body.login-page .login-shell {
        width: 100% !important;
        max-width: 520px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 26px !important;
    }

    body.login-page .login-brand {
        padding: 24px 20px 16px !important;
        gap: 16px !important;
        text-align: center !important;
    }

    body.login-page .brand-top {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
    }

    body.login-page .login-logo-box {
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto 14px !important;
        padding: 18px 22px !important;
        border-radius: 26px !important;
    }

    body.login-page .login-logo-img {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.login-page .brand-content {
        text-align: center !important;
    }

    body.login-page .brand-pill {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.login-page .brand-content h2 {
        margin: 8px 0 8px !important;
        font-size: 30px !important;
    }

    body.login-page .brand-content p {
        max-width: 360px !important;
        margin: 0 auto !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    body.login-page .brand-points {
        display: none !important;
    }

    body.login-page .login-card {
        padding: 20px 20px 26px !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(63, 70, 62, 0.08) !important;
    }

    body.login-page .login-panel {
        max-width: 100% !important;
    }

    body.login-page .login-panel h1 {
        font-size: 28px !important;
        text-align: center !important;
    }

    body.login-page .login-eyebrow {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.login-page .login-intro {
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    body.login-page .form-input,
    body.login-page .login-button {
        min-height: 52px !important;
    }

    body.login-page .login-note,
    body.login-page .login-footer {
        text-align: center !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}
/* =========================================================
   MOBIELE LOGIN - PROFESSIONELE VERSIE
   ========================================================= */

@media (max-width: 768px) {
    body.login-page {
        min-height: 100vh !important;
        padding: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background:
            radial-gradient(circle at 20% 8%, rgba(223, 230, 215, 0.62), transparent 34%),
            radial-gradient(circle at 90% 4%, rgba(234, 215, 213, 0.42), transparent 30%),
            linear-gradient(135deg, #fbf8f3 0%, #f6f1e8 50%, #edf5e9 100%) !important;
    }

    body.login-page .login-shell {
        width: 100% !important;
        max-width: 430px !important;
        min-height: auto !important;
        display: block !important;
        overflow: hidden !important;
        border-radius: 30px !important;
        background: rgba(255, 255, 255, 0.88) !important;
        border: 1px solid rgba(85, 96, 84, 0.10) !important;
        box-shadow: 0 20px 48px rgba(63, 70, 62, 0.14) !important;
        backdrop-filter: blur(14px) !important;
    }

    /* Linker tekstblok op mobiel rustig maken */
    body.login-page .login-brand {
        padding: 28px 24px 10px !important;
        display: block !important;
        background: transparent !important;
        text-align: center !important;
    }

    body.login-page .brand-top {
        width: 100% !important;
        margin: 0 0 16px !important;
        display: flex !important;
        justify-content: center !important;
    }

    body.login-page .login-logo-box {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 18px 22px !important;
        border-radius: 26px !important;
        background:
            radial-gradient(circle at 18% 18%, rgba(156, 203, 59, 0.20), transparent 34%),
            radial-gradient(circle at 88% 22%, rgba(233, 119, 87, 0.10), transparent 32%),
            linear-gradient(135deg, #87967f 0%, #6f7f68 48%, #596653 100%) !important;
        box-shadow: 0 12px 26px rgba(63, 70, 62, 0.16) !important;
    }

    body.login-page .login-logo-img {
        width: 100% !important;
        max-width: 220px !important;
        height: auto !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    /* Voorkom dubbele titel boven formulier */
    body.login-page .brand-content {
        display: none !important;
    }

    body.login-page .brand-points {
        display: none !important;
    }

    /* Formulierkaart */
    body.login-page .login-card {
        padding: 12px 24px 28px !important;
        display: block !important;
        background: transparent !important;
        border-left: 0 !important;
        border-top: 0 !important;
    }

    body.login-page .login-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    body.login-page .login-eyebrow {
        margin: 0 auto 12px !important;
        padding: 7px 13px !important;
        display: flex !important;
        width: fit-content !important;
        font-size: 11px !important;
        letter-spacing: 0.08em !important;
    }

    body.login-page .login-panel h1 {
        margin: 0 0 10px !important;
        text-align: center !important;
        font-size: 32px !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em !important;
    }

    body.login-page .login-intro {
        max-width: 310px !important;
        margin: 0 auto 22px !important;
        text-align: center !important;
        color: var(--g4y-muted) !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    body.login-page .form-group {
        margin-bottom: 16px !important;
        gap: 7px !important;
    }

    body.login-page .form-label {
        margin-bottom: 4px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
    }

    body.login-page .form-input {
        min-height: 56px !important;
        padding: 0 17px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border: 1px solid rgba(63, 70, 62, 0.12) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
        font-size: 16px !important;
    }

    body.login-page .login-button {
        min-height: 58px !important;
        margin-top: 8px !important;
        border-radius: 20px !important;
        font-size: 16px !important;
        box-shadow: 0 14px 28px rgba(85, 96, 84, 0.22) !important;
    }

    body.login-page .login-note {
        max-width: 310px !important;
        margin: 16px auto 4px !important;
        text-align: center !important;
        color: var(--g4y-muted) !important;
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }

    body.login-page .login-footer {
        margin-top: 8px !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    body.login-page .login-footer a {
        color: var(--g4y-heading) !important;
        font-weight: 850 !important;
        text-decoration: underline !important;
        text-underline-offset: 3px !important;
    }
}
.clients-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 10px 40px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-head h1 {
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.page-head p {
    max-width: 780px;
    line-height: 1.55;
    color: #536153;
}

.soft-card {
    border: 1px solid rgba(95, 113, 89, 0.14);
    background: rgba(255, 255, 250, 0.9);
    box-shadow: 0 18px 45px rgba(65, 73, 58, 0.08);
    backdrop-filter: blur(10px);
}

.filters {
    margin-bottom: 18px;
}

.filter-grid,
.bulk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.bulk-card {
    margin: 0 0 18px;
}

.bulk-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-self: end;
}

.table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clients-table-wrap {
    border-radius: 22px;
    border: 1px solid rgba(95, 113, 89, 0.12);
    overflow: auto;
    background: #fffefa;
}

.clients-table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.clients-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f6ec;
    color: #3d473c;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(95, 113, 89, 0.12);
}

.clients-table-wrap td {
    vertical-align: top;
    border-bottom: 1px solid rgba(95, 113, 89, 0.08);
}

.clients-table-wrap tbody tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.clients-table-wrap tbody tr:hover {
    background: rgba(239, 246, 230, 0.55);
}

.client-name {
    font-weight: 800;
    color: #384438;
    text-decoration: none;
}

.client-name:hover {
    color: #6e7f58;
    text-decoration: underline;
}

.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.quick-current-label,
.pill {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.row-actions {
    position: relative;
}

.row-actions-menu {
    min-width: 190px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(95, 113, 89, 0.14);
    background: #fffefa;
    box-shadow: 0 18px 40px rgba(43, 50, 40, 0.18);
}

.row-actions-menu .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 6px;
}

.row-actions-menu .btn:last-child {
    margin-bottom: 0;
}

.btn-danger {
    background: #b95f52;
    color: #fff;
    border-color: #b95f52;
}

.btn-danger:hover {
    background: #9f4d42;
    border-color: #9f4d42;
    color: #fff;
}

.message {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.message-success {
    background: #edf7e9;
    color: #3f6b3c;
    border: 1px solid rgba(63, 107, 60, 0.18);
}

.message-error {
    background: #fff0ed;
    color: #9f4d42;
    border: 1px solid rgba(159, 77, 66, 0.18);
}

.message-info {
    background: #f3f6ec;
    color: #536153;
    border: 1px solid rgba(83, 97, 83, 0.16);
}

@media (max-width: 980px) {
    .page-head,
    .table-top {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-grid,
    .bulk-grid {
        grid-template-columns: 1fr;
    }

    .bulk-actions-row {
        flex-direction: column;
    }

    .bulk-actions-row .btn {
        width: 100%;
    }
}
/* Klantentabel gebruiksvriendelijker maken */
.clients-table-wrap {
    max-height: calc(100vh - 310px);
    min-height: 360px;
    overflow: auto;
    position: relative;
}

/* Header blijft bovenaan zichtbaar tijdens verticaal scrollen */
.clients-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Eerste kolom met checkbox blijft links vast staan */
.clients-table-wrap th.check-cell,
.clients-table-wrap td.check-cell {
    position: sticky;
    left: 0;
    z-index: 25;
    background: #fffefa;
    min-width: 54px;
    width: 54px;
}

/* Header van checkbox extra bovenop */
.clients-table-wrap thead th.check-cell {
    z-index: 35;
    background: #f3f6ec;
}

/* Tweede kolom Klant blijft ook vast staan */
.clients-table-wrap th:nth-child(2),
.clients-table-wrap td:nth-child(2) {
    position: sticky;
    left: 54px;
    z-index: 24;
    background: #fffefa;
    min-width: 260px;
    max-width: 300px;
    box-shadow: 8px 0 16px rgba(65, 73, 58, 0.08);
}

/* Header van Klant extra bovenop */
.clients-table-wrap thead th:nth-child(2) {
    z-index: 34;
    background: #f3f6ec;
}

/* Hoverkleur ook netjes toepassen op sticky cellen */
.clients-table-wrap tbody tr:hover td.check-cell,
.clients-table-wrap tbody tr:hover td:nth-child(2) {
    background: #f5f8ef;
}

/* Zorg dat brede inhoud netjes blijft */
.clients-table-wrap table {
    min-width: 1180px;
}

.clients-table-wrap th,
.clients-table-wrap td {
    white-space: normal;
}

/* Contactkolom mag iets compacter blijven */
.clients-table-wrap td:nth-child(6) {
    min-width: 220px;
}

/* Actieskolom blijft rechts genoeg ruimte houden */
.clients-table-wrap td.actions-cell,
.clients-table-wrap th:last-child {
    min-width: 140px;
}

/* Op kleine schermen blijft de klantnaam extra bruikbaar */
@media (max-width: 980px) {
    .clients-table-wrap {
        max-height: calc(100vh - 240px);
    }

    .clients-table-wrap th:nth-child(2),
    .clients-table-wrap td:nth-child(2) {
        min-width: 220px;
        max-width: 240px;
    }

    .clients-table-wrap table {
        min-width: 1080px;
    }
}
.bulk-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.btn-danger {
    background: #b95f52 !important;
    color: #fff !important;
    border-color: #b95f52 !important;
}

.btn-danger:hover {
    background: #9f4d42 !important;
    border-color: #9f4d42 !important;
    color: #fff !important;
}

.row-actions-menu {
    max-height: none;
    overflow: visible;
}

.row-actions-menu .btn-danger {
    margin-top: 6px;
}
/* Klantenpagina breder maken en lege ruimte links verminderen */
.clients-wrap {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 18px 44px 18px !important;
}

/* De content niet meer smal gecentreerd tonen */
.page-content:has(.clients-wrap) {
    max-width: none !important;
    width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

/* Als main-area zelf beperkt wordt */
.main-area:has(.clients-wrap) {
    max-width: none !important;
    width: 100% !important;
}

/* Kaarten op klantenpagina de volle breedte geven */
.clients-wrap .soft-card,
.clients-wrap .filters,
.clients-wrap .bulk-card,
.clients-wrap .table-card {
    width: 100% !important;
    max-width: none !important;
}

/* Tabelvak breder en praktischer */
.clients-table-wrap {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100vh - 300px);
    min-height: 440px;
}

/* Tabel zelf iets breder houden zodat kolommen niet proppen */
.clients-table-wrap table {
    min-width: 1250px !important;
}

/* Header en knoppen boven tabel netjes verdelen */
.table-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Filters/bulk ook breder en rustiger */
.filter-grid,
.bulk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Bulk knoppen over volledige rij */
.bulk-actions-row {
    grid-column: 1 / -1;
}

/* Op smallere schermen weer onder elkaar */
@media (max-width: 1100px) {
    .filter-grid,
    .bulk-grid {
        grid-template-columns: 1fr !important;
    }

    .table-top {
        flex-direction: column;
        align-items: stretch;
    }
}
/* =========================================================
   KLANTENPAGINA - volle beschikbare breedte naast sidebar
   Desktop/laptop: begint direct naast sidebar en schaalt mee
   Mobiel/tablet: tabel mag horizontaal scrollen
   ========================================================= */

/* De hoofdcontent op klantenpagina niet centreren */
.main-area:has(.clients-wrap) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
}

/* Pagina-content strak naast sidebar laten starten */
.main-area:has(.clients-wrap) .page-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 22px 24px 44px 24px !important;
}

/* De wrapper niet centreren, maar volle breedte gebruiken */
.clients-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header niet onnodig smal houden */
.clients-wrap .page-head {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 22px 0 !important;
}

.clients-wrap .page-head > div {
    max-width: none !important;
}

.clients-wrap .page-head p {
    max-width: 980px !important;
}

/* Alle kaarten over de beschikbare breedte */
.clients-wrap .soft-card,
.clients-wrap .filters,
.clients-wrap .bulk-card,
.clients-wrap .table-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Filters/bulk mooi meeschalen met schermbreedte */
.clients-wrap .filter-grid,
.clients-wrap .bulk-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    align-items: end !important;
}

/* Bulkknoppen netjes onder de selects */
.clients-wrap .bulk-actions-row {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Tabelkaart vult de ruimte */
.clients-wrap .table-card {
    overflow: hidden !important;
}

/* Tabelvak: breedte van scherm gebruiken, intern scrollen */
.clients-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 300px) !important;
    min-height: 430px !important;
}

/* Tabel mag breder zijn dan het vak; dan komt horizontale scroll */
.clients-table-wrap table {
    width: 100% !important;
    min-width: 1180px !important;
}

/* Kopregel blijft zichtbaar */
.clients-table-wrap thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
}

/* Checkbox-kolom vast links */
.clients-table-wrap th.check-cell,
.clients-table-wrap td.check-cell {
    position: sticky !important;
    left: 0 !important;
    z-index: 24 !important;
    width: 52px !important;
    min-width: 52px !important;
    background: #fffefa !important;
}

.clients-table-wrap thead th.check-cell {
    z-index: 34 !important;
    background: #f4f7ef !important;
}

/* Klantnaam vast naast checkbox */
.clients-table-wrap th:nth-child(2),
.clients-table-wrap td:nth-child(2) {
    position: sticky !important;
    left: 52px !important;
    z-index: 23 !important;
    min-width: 250px !important;
    max-width: 290px !important;
    background: #fffefa !important;
    box-shadow: 8px 0 16px rgba(65, 73, 58, 0.07) !important;
}

.clients-table-wrap thead th:nth-child(2) {
    z-index: 33 !important;
    background: #f4f7ef !important;
}

/* Hover ook netjes op sticky kolommen */
.clients-table-wrap tbody tr:hover td.check-cell,
.clients-table-wrap tbody tr:hover td:nth-child(2) {
    background: #f5f8ef !important;
}

/* Tabelkop bovenaan netjes */
.clients-wrap .table-top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    width: 100% !important;
}

.clients-wrap .table-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

/* Op kleinere laptops: 2 kolommen filters */
@media (max-width: 1250px) {
    .clients-wrap .filter-grid,
    .clients-wrap .bulk-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

/* Mobiel/tablet: content netjes, tabel horizontaal scrollbaar */
@media (max-width: 900px) {
    .main-area:has(.clients-wrap) .page-content {
        padding: 16px 12px 36px 12px !important;
    }

    .clients-wrap .page-head,
    .clients-wrap .table-top {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .clients-wrap .filter-grid,
    .clients-wrap .bulk-grid {
        grid-template-columns: 1fr !important;
    }

    .clients-table-wrap {
        max-height: calc(100vh - 260px) !important;
        min-height: 360px !important;
    }

    .clients-table-wrap table {
        min-width: 1080px !important;
    }

    .clients-table-wrap th:nth-child(2),
    .clients-table-wrap td:nth-child(2) {
        min-width: 215px !important;
        max-width: 235px !important;
    }

    .clients-wrap .bulk-actions-row {
        flex-direction: column !important;
    }

    .clients-wrap .bulk-actions-row .btn {
        width: 100% !important;
    }
}
/* Tabel smaller: zonder Toegang-kolom en contact verborgen achter knop */
.clients-table-wrap table {
    min-width: 940px !important;
}

/* Kolombreedtes na verwijderen Toegang */
.clients-table-wrap th:nth-child(2),
.clients-table-wrap td:nth-child(2) {
    min-width: 250px !important;
    max-width: 290px !important;
}

.clients-table-wrap th:nth-child(3),
.clients-table-wrap td:nth-child(3) {
    min-width: 130px !important;
}

.clients-table-wrap th:nth-child(4),
.clients-table-wrap td:nth-child(4) {
    min-width: 135px !important;
}

.clients-table-wrap th:nth-child(5),
.clients-table-wrap td:nth-child(5) {
    min-width: 120px !important;
}

.clients-table-wrap th:nth-child(6),
.clients-table-wrap td:nth-child(6) {
    min-width: 115px !important;
}

.clients-table-wrap th:nth-child(7),
.clients-table-wrap td:nth-child(7) {
    min-width: 130px !important;
}

/* Contact-knop met klein venster */
.contact-toggle-wrap {
    position: relative;
    display: inline-block;
}

.contact-toggle-btn {
    min-width: 92px;
}

.contact-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 80;
    min-width: 245px;
    padding: 14px;
    border-radius: 18px;
    background: #fffefa;
    border: 1px solid rgba(95, 113, 89, 0.16);
    box-shadow: 0 18px 40px rgba(43, 50, 40, 0.18);
}

.contact-toggle-wrap.open .contact-popover {
    display: block;
}

.contact-popover strong {
    display: block;
    margin-bottom: 10px;
    color: #364235;
}

.contact-line {
    display: grid;
    gap: 3px;
    margin-top: 9px;
}

.contact-line span {
    font-size: 0.76rem;
    font-weight: 800;
    color: #6d756a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-line a {
    color: #364235;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.contact-line a:hover {
    text-decoration: underline;
}

/* Zorg dat popovers niet worden afgesneden door de tabelkaart */
.clients-wrap .table-card {
    overflow: visible !important;
}

.clients-table-wrap {
    overflow-x: auto !important;
    overflow-y: auto !important;
}
/* Klantentabel: zonder Toegang-kolom, contact achter knop */
.clients-table-wrap table {
    min-width: 940px !important;
}

.clients-table-wrap th:nth-child(2),
.clients-table-wrap td:nth-child(2) {
    min-width: 250px !important;
    max-width: 290px !important;
}

.clients-table-wrap th:nth-child(3),
.clients-table-wrap td:nth-child(3) {
    min-width: 130px !important;
}

.clients-table-wrap th:nth-child(4),
.clients-table-wrap td:nth-child(4) {
    min-width: 135px !important;
}

.clients-table-wrap th:nth-child(5),
.clients-table-wrap td:nth-child(5) {
    min-width: 110px !important;
}

.clients-table-wrap th:nth-child(6),
.clients-table-wrap td:nth-child(6) {
    min-width: 115px !important;
}

.clients-table-wrap th:nth-child(7),
.clients-table-wrap td:nth-child(7) {
    min-width: 130px !important;
}

.contact-toggle-wrap {
    position: relative;
    display: inline-block;
}

.contact-toggle-btn {
    min-width: 88px;
}

.contact-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    min-width: 245px;
    padding: 14px;
    border-radius: 18px;
    background: #fffefa;
    border: 1px solid rgba(95, 113, 89, 0.16);
    box-shadow: 0 18px 40px rgba(43, 50, 40, 0.18);
}

.contact-toggle-wrap.open .contact-popover {
    display: block;
}

.contact-popover strong {
    display: block;
    margin-bottom: 10px;
    color: #364235;
}

.contact-line {
    display: grid;
    gap: 3px;
    margin-top: 9px;
}

.contact-line span {
    font-size: 0.76rem;
    font-weight: 800;
    color: #6d756a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-line a {
    color: #364235;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.contact-line a:hover {
    text-decoration: underline;
}

.contact-line em {
    color: #8a9187;
    font-style: normal;
}

.clients-wrap .table-card {
    overflow: visible !important;
}

.clients-table-wrap {
    overflow-x: auto !important;
    overflow-y: auto !important;
}
/* =========================================================
   Gezond4You - Voortgang in cijfers kaarten
   ========================================================= */

.progress-page .summary-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.progress-page .metric-card,
.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px 24px 22px;
    border: 1px solid rgba(85, 96, 84, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0%, rgba(205, 221, 196, 0.52) 0, rgba(205, 221, 196, 0.52) 42px, transparent 43px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 239, 0.88));
    box-shadow: 0 18px 42px rgba(63, 70, 62, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.progress-page .metric-card:hover,
.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(85, 96, 84, 0.2);
    box-shadow: 0 22px 54px rgba(63, 70, 62, 0.12);
}

.progress-page .metric-top,
.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.progress-page .metric-icon,
.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 9px;
    border-radius: 999px;
    background: #71806d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(85, 96, 84, 0.18);
}

.progress-page .metric-status,
.metric-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(233, 225, 199, 0.8);
    color: #7a6635;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.progress-page .metric-status.positive,
.metric-status.positive {
    background: rgba(219, 237, 211, 0.95);
    color: #4f7b43;
}

.progress-page .metric-status.negative,
.metric-status.negative {
    background: rgba(248, 221, 215, 0.95);
    color: #a55445;
}

.progress-page .metric-status.neutral,
.metric-status.neutral {
    background: rgba(240, 232, 208, 0.95);
    color: #8b7344;
}

.progress-page .metric-label,
.metric-label {
    display: block;
    margin-bottom: 12px;
    color: #747b70;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.progress-page .metric-value,
.metric-value {
    margin-bottom: 12px;
    color: #3f463e;
    font-size: 34px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.progress-page .metric-diffs,
.metric-diffs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.progress-page .diff-line,
.diff-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(85, 96, 84, 0.1);
    color: #697165;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.progress-page .diff-line strong,
.diff-line strong {
    color: #3f463e;
    font-weight: 950;
}

.progress-page .diff-line.positive,
.diff-line.positive {
    background: rgba(230, 242, 224, 0.88);
    color: #4f7b43;
    border-color: rgba(93, 133, 80, 0.16);
}

.progress-page .diff-line.negative,
.diff-line.negative {
    background: rgba(250, 229, 224, 0.88);
    color: #a55445;
    border-color: rgba(169, 84, 69, 0.16);
}

.progress-page .diff-line.neutral,
.diff-line.neutral {
    background: rgba(245, 239, 223, 0.88);
    color: #7d735f;
    border-color: rgba(125, 115, 95, 0.12);
}

.progress-page .metric-advice,
.metric-advice {
    margin: 0;
    color: #687265;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

/* Kleuren per kaart */
.progress-page .metric-card.color-olive .metric-icon,
.metric-card.color-olive .metric-icon {
    background: #6f7d68;
}

.progress-page .metric-card.color-green .metric-icon,
.metric-card.color-green .metric-icon {
    background: #7da36f;
}

.progress-page .metric-card.color-gold .metric-icon,
.metric-card.color-gold .metric-icon {
    background: #b8a36d;
}

.progress-page .metric-card.color-bluegreen .metric-icon,
.metric-card.color-bluegreen .metric-icon {
    background: #79aaa2;
}

.progress-page .metric-card.color-softblue .metric-icon,
.metric-card.color-softblue .metric-icon {
    background: #7fa7c7;
}

.progress-page .metric-card.color-rose .metric-icon,
.metric-card.color-rose .metric-icon {
    background: #bd7b70;
}

.progress-page .metric-card.color-cream .metric-icon,
.metric-card.color-cream .metric-icon {
    background: #d79b63;
}

/* Extra subtiele kaartkleur */
.progress-page .metric-card.color-olive,
.metric-card.color-olive {
    background:
        radial-gradient(circle at 92% 0%, rgba(205, 221, 196, 0.56) 0, rgba(205, 221, 196, 0.56) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #f7faf4);
}

.progress-page .metric-card.color-green,
.metric-card.color-green {
    background:
        radial-gradient(circle at 92% 0%, rgba(205, 230, 196, 0.56) 0, rgba(205, 230, 196, 0.56) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #f7fbf4);
}

.progress-page .metric-card.color-gold,
.metric-card.color-gold {
    background:
        radial-gradient(circle at 92% 0%, rgba(238, 225, 185, 0.58) 0, rgba(238, 225, 185, 0.58) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #fbf8ef);
}

.progress-page .metric-card.color-bluegreen,
.metric-card.color-bluegreen {
    background:
        radial-gradient(circle at 92% 0%, rgba(199, 226, 219, 0.62) 0, rgba(199, 226, 219, 0.62) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #f3fbf8);
}

.progress-page .metric-card.color-softblue,
.metric-card.color-softblue {
    background:
        radial-gradient(circle at 92% 0%, rgba(201, 222, 237, 0.6) 0, rgba(201, 222, 237, 0.6) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #f4f9fc);
}

.progress-page .metric-card.color-rose,
.metric-card.color-rose {
    background:
        radial-gradient(circle at 92% 0%, rgba(244, 213, 209, 0.6) 0, rgba(244, 213, 209, 0.6) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #fff7f5);
}

.progress-page .metric-card.color-cream,
.metric-card.color-cream {
    background:
        radial-gradient(circle at 92% 0%, rgba(244, 219, 190, 0.62) 0, rgba(244, 219, 190, 0.62) 42px, transparent 43px),
        linear-gradient(135deg, #ffffff, #fff8ef);
}

/* Responsive */
@media (max-width: 1200px) {
    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .progress-page .metric-card,
    .metric-card {
        min-height: auto;
        padding: 22px;
    }

    .progress-page .metric-value,
    .metric-value {
        font-size: 30px;
    }
}
/* =========================================================
   Voortgang pagina compacter + meer naar links
   Plak onderaan je CSS-bestand
   ========================================================= */

/* Minder lege ruimte tussen sidebar en inhoud */
.progress-page .page-content {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Content niet te smal centreren, maar breder en meer naar links */
.progress-page .progress-wrap {
    max-width: 1180px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Kaarten compacter */
.progress-page .summary-grid,
.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px !important;
}

/* Tegels minder hoog en minder padding */
.progress-page .metric-card,
.metric-card {
    min-height: 130px !important;
    padding: 18px 18px 16px !important;
    border-radius: 20px !important;
}

/* Bovenkant compacter */
.progress-page .metric-top,
.metric-top {
    margin-bottom: 12px !important;
}

/* Icoon kleiner */
.progress-page .metric-icon,
.metric-icon {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
}

/* Status-badge kleiner */
.progress-page .metric-status,
.metric-status {
    min-height: 24px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
}

/* Titel kleiner */
.progress-page .metric-label,
.metric-label {
    margin-bottom: 10px !important;
    font-size: 15px !important;
    letter-spacing: 0.07em !important;
}

/* Grote waarde kleiner */
.progress-page .metric-value,
.metric-value {
    margin-bottom: 10px !important;
    font-size: 26px !important;
    line-height: 1 !important;
}

/* Verschil-badges compacter */
.progress-page .metric-diffs,
.metric-diffs {
    gap: 6px !important;
    margin-bottom: 10px !important;
}

.progress-page .diff-line,
.diff-line {
    min-height: 26px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
}

/* Adviesregel kleiner */
.progress-page .metric-advice,
.metric-advice {
    font-size: 13px !important;
    line-height: 1.28 !important;
}

/* Kaartdecoratie iets kleiner */
.progress-page .metric-card,
.metric-card {
    background:
        radial-gradient(circle at 94% 0%, rgba(205, 221, 196, 0.48) 0, rgba(205, 221, 196, 0.48) 34px, transparent 35px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 239, 0.88)) !important;
}

/* Tabel en contentkaarten breder benutten */
.progress-page .content-card,
.content-card {
    max-width: 100% !important;
}

/* Op iets kleinere schermen nog steeds 3 naast elkaar zolang het kan */
@media (max-width: 1100px) {
    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobiel */
@media (max-width: 760px) {
    .progress-page .page-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .progress-page .metric-card,
    .metric-card {
        min-height: auto !important;
    }
}
/* =========================================================
   Gezond4You - Progress pagina: ruimte beter benutten
   + professionele meting aanpassen modal
   Plak dit helemaal onderaan je CSS-bestand
   ========================================================= */

/* -----------------------------
   1. Content dichter naar sidebar
   ----------------------------- */

body.progress-page .main-area,
.progress-page .main-area {
    margin-left: 300px !important;
    width: calc(100% - 300px) !important;
}

body.progress-page .page-content,
.progress-page .page-content {
    padding: 26px 26px 44px 26px !important;
}

body.progress-page .progress-wrap,
.progress-page .progress-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Alle grote blokken gebruiken de beschikbare breedte */
body.progress-page .hero-card,
body.progress-page .content-card,
.progress-page .hero-card,
.progress-page .content-card {
    width: 100% !important;
    max-width: none !important;
}

/* De kaartenrij iets breder en compacter */
body.progress-page .summary-grid,
.progress-page .summary-grid,
.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

/* Bij 4 kolommen moeten kaarten compacter */
body.progress-page .metric-card,
.progress-page .metric-card,
.metric-card {
    min-height: 145px !important;
    padding: 16px 16px 15px !important;
    border-radius: 20px !important;
}

body.progress-page .metric-top,
.progress-page .metric-top,
.metric-top {
    margin-bottom: 10px !important;
}

body.progress-page .metric-icon,
.progress-page .metric-icon,
.metric-icon {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
}

body.progress-page .metric-status,
.progress-page .metric-status,
.metric-status {
    min-height: 23px !important;
    padding: 4px 9px !important;
    font-size: 11px !important;
}

body.progress-page .metric-label,
.progress-page .metric-label,
.metric-label {
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

body.progress-page .metric-value,
.progress-page .metric-value,
.metric-value {
    margin-bottom: 9px !important;
    font-size: 26px !important;
}

body.progress-page .metric-diffs,
.progress-page .metric-diffs,
.metric-diffs {
    gap: 5px !important;
    margin-bottom: 8px !important;
}

body.progress-page .diff-line,
.progress-page .diff-line,
.diff-line {
    min-height: 24px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
}

body.progress-page .metric-advice,
.progress-page .metric-advice,
.metric-advice {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

/* Meetgeschiedenis tabel netter en breder */
body.progress-page .table-wrap,
.progress-page .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 22px !important;
    border: 1px solid rgba(85, 96, 84, 0.12) !important;
    background: rgba(255, 255, 255, 0.74) !important;
    box-shadow: 0 16px 36px rgba(63, 70, 62, 0.07) !important;
}

body.progress-page .progress-table,
.progress-page .progress-table {
    width: 100% !important;
    min-width: 980px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 14px !important;
}

body.progress-page .progress-table th,
.progress-page .progress-table th {
    padding: 14px 14px !important;
    background: rgba(238, 244, 234, 0.95) !important;
    color: #485144 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(85, 96, 84, 0.12) !important;
}

body.progress-page .progress-table td,
.progress-page .progress-table td {
    padding: 13px 14px !important;
    color: #3f463e !important;
    border-bottom: 1px solid rgba(85, 96, 84, 0.08) !important;
    vertical-align: middle !important;
}

body.progress-page .progress-table tbody tr:hover,
.progress-page .progress-table tbody tr:hover {
    background: rgba(241, 248, 237, 0.7) !important;
    cursor: pointer;
}

body.progress-page .edit-measurement-btn,
.progress-page .edit-measurement-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 8px 13px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #596855 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(85, 96, 84, 0.16) !important;
}

body.progress-page .edit-measurement-btn:hover,
.progress-page .edit-measurement-btn:hover {
    background: #465543 !important;
}

/* -----------------------------
   2. Professionele modal styling
   ----------------------------- */

/* Modal standaard verborgen en als overlay */
body.progress-page .modal-backdrop,
.progress-page .modal-backdrop,
.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px !important;
    background: rgba(44, 50, 42, 0.42) !important;
    backdrop-filter: blur(8px) !important;
    overflow-y: auto !important;
}

/* Alleen tonen als JS .is-open toevoegt */
body.progress-page .modal-backdrop.is-open,
.progress-page .modal-backdrop.is-open,
.modal-backdrop.is-open {
    display: flex !important;
}

/* Modal kaart */
body.progress-page .modal-card,
.progress-page .modal-card,
.modal-card {
    width: min(920px, 100%) !important;
    max-height: calc(100vh - 56px) !important;
    overflow-y: auto !important;
    border-radius: 30px !important;
    border: 1px solid rgba(85, 96, 84, 0.16) !important;
    background:
        radial-gradient(circle at 94% 0%, rgba(205, 221, 196, 0.64) 0, rgba(205, 221, 196, 0.64) 58px, transparent 59px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 239, 0.96)) !important;
    box-shadow: 0 34px 90px rgba(36, 43, 34, 0.24) !important;
}

/* Modal header */
body.progress-page .modal-head,
.progress-page .modal-head,
.modal-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 28px 30px 20px !important;
    border-bottom: 1px solid rgba(85, 96, 84, 0.11) !important;
}

body.progress-page .modal-kicker,
.progress-page .modal-kicker,
.modal-kicker {
    display: inline-flex !important;
    margin-bottom: 8px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: rgba(228, 238, 219, 0.92) !important;
    color: #596855 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.progress-page .modal-head h3,
.progress-page .modal-head h3,
.modal-head h3 {
    margin: 0 !important;
    color: #354036 !important;
    font-size: 32px !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
}

body.progress-page .modal-head p,
.progress-page .modal-head p,
.modal-head p {
    margin: 8px 0 0 !important;
    color: #697365 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Sluitknop rechtsboven */
body.progress-page .modal-close,
.progress-page .modal-close,
.modal-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(85, 96, 84, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #596855 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(63, 70, 62, 0.08) !important;
}

body.progress-page .modal-close:hover,
.progress-page .modal-close:hover,
.modal-close:hover {
    background: #596855 !important;
    color: #ffffff !important;
}

/* Modal body */
body.progress-page .modal-body,
.progress-page .modal-body,
.modal-body {
    padding: 24px 30px 30px !important;
}

/* Uitlegblok */
body.progress-page .readonly-note,
.progress-page .readonly-note,
.readonly-note {
    margin: 0 0 22px !important;
    padding: 16px 18px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(184, 169, 122, 0.18) !important;
    background: rgba(255, 250, 238, 0.78) !important;
    color: #596255 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.5 !important;
}

/* Formulier grid */
body.progress-page .modal-grid,
.progress-page .modal-grid,
.modal-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

body.progress-page .modal-field,
.progress-page .modal-field,
.modal-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

body.progress-page .modal-field-wide,
.progress-page .modal-field-wide,
.modal-field-wide {
    grid-column: span 2 !important;
}

body.progress-page .modal-label,
.progress-page .modal-label,
.modal-label {
    color: #4b5548 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    letter-spacing: 0.04em !important;
}

/* Inputs */
body.progress-page .modal-input,
body.progress-page .modal-textarea,
.progress-page .modal-input,
.progress-page .modal-textarea,
.modal-input,
.modal-textarea {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 15px !important;
    border: 1px solid rgba(85, 96, 84, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #354036 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.progress-page .modal-input:focus,
body.progress-page .modal-textarea:focus,
.progress-page .modal-input:focus,
.progress-page .modal-textarea:focus,
.modal-input:focus,
.modal-textarea:focus {
    border-color: rgba(85, 96, 84, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(205, 221, 196, 0.36) !important;
}

body.progress-page .modal-input.muted,
.progress-page .modal-input.muted,
.modal-input.muted {
    background: rgba(242, 244, 238, 0.82) !important;
    color: #697365 !important;
}

body.progress-page .modal-textarea,
.progress-page .modal-textarea,
.modal-textarea {
    min-height: 118px !important;
    resize: vertical !important;
}

/* Actieknoppen */
body.progress-page .modal-actions,
.progress-page .modal-actions,
.modal-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

body.progress-page .modal-actions-left,
body.progress-page .modal-actions-right,
.progress-page .modal-actions-left,
.progress-page .modal-actions-right,
.modal-actions-left,
.modal-actions-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body.progress-page .modal-btn,
.progress-page .modal-btn,
.modal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    border: 1px solid rgba(85, 96, 84, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #4a5548 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 12px 26px rgba(63, 70, 62, 0.08) !important;
}

body.progress-page .modal-btn:hover,
.progress-page .modal-btn:hover,
.modal-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 34px rgba(63, 70, 62, 0.12) !important;
}

body.progress-page .modal-btn.primary,
.progress-page .modal-btn.primary,
.modal-btn.primary {
    border-color: transparent !important;
    background: #596855 !important;
    color: #ffffff !important;
}

body.progress-page .modal-btn.primary:hover,
.progress-page .modal-btn.primary:hover,
.modal-btn.primary:hover {
    background: #465543 !important;
}

body.progress-page .cancel-form,
.progress-page .cancel-form,
.cancel-form {
    margin-top: 18px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(85, 96, 84, 0.12) !important;
}

body.progress-page .modal-btn.danger,
.progress-page .modal-btn.danger,
.modal-btn.danger {
    border-color: rgba(180, 90, 76, 0.18) !important;
    background: rgba(255, 242, 239, 0.95) !important;
    color: #a55445 !important;
}

body.progress-page .modal-btn.danger:hover,
.progress-page .modal-btn.danger:hover,
.modal-btn.danger:hover {
    background: #a55445 !important;
    color: #ffffff !important;
}

body.progress-page .full-width,
.progress-page .full-width,
.full-width {
    width: 100% !important;
}

/* Responsive */
@media (max-width: 1350px) {
    body.progress-page .summary-grid,
    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    body.progress-page .main-area,
    .progress-page .main-area {
        margin-left: 0 !important;
        width: 100% !important;
    }

    body.progress-page .summary-grid,
    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.progress-page .page-content,
    .progress-page .page-content {
        padding: 16px !important;
    }

    body.progress-page .summary-grid,
    .progress-page .summary-grid,
    .summary-grid {
        grid-template-columns: 1fr !important;
    }

    body.progress-page .modal-backdrop,
    .progress-page .modal-backdrop,
    .modal-backdrop {
        padding: 14px !important;
        align-items: flex-start !important;
    }

    body.progress-page .modal-head,
    .progress-page .modal-head,
    .modal-head {
        padding: 22px 20px 16px !important;
    }

    body.progress-page .modal-body,
    .progress-page .modal-body,
    .modal-body {
        padding: 20px !important;
    }

    body.progress-page .modal-grid,
    .progress-page .modal-grid,
    .modal-grid {
        grid-template-columns: 1fr !important;
    }

    body.progress-page .modal-field-wide,
    .progress-page .modal-field-wide,
    .modal-field-wide {
        grid-column: span 1 !important;
    }

    body.progress-page .modal-actions,
    .progress-page .modal-actions,
    .modal-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.progress-page .modal-actions-left,
    body.progress-page .modal-actions-right,
    .progress-page .modal-actions-left,
    .progress-page .modal-actions-right,
    .modal-actions-left,
    .modal-actions-right {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.progress-page .modal-btn,
    .progress-page .modal-btn,
    .modal-btn {
        width: 100% !important;
    }
}
/* =========================================================
   Gezond4You - Progress pagina breedtefix
   Inhoud dichter bij sidebar + meeschalen met schermbreedte
   Plak helemaal onderaan je CSS-bestand
   ========================================================= */

/* Pagina niet centreren, maar beschikbare ruimte gebruiken */
html body.progress-page .main-area {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

html body.progress-page .page-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-top: 24px !important;
    padding-right: clamp(14px, 1.6vw, 30px) !important;
    padding-bottom: 44px !important;
    padding-left: clamp(10px, 1vw, 18px) !important;
}

/* Dit is de belangrijkste: wrapper niet meer centreren */
html body.progress-page .progress-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Alle hoofdblokken volle beschikbare breedte */
html body.progress-page .progress-topbar,
html body.progress-page .privacy-note,
html body.progress-page .flash,
html body.progress-page .hero-card,
html body.progress-page .content-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cards in cijfers netjes over de breedte */
html body.progress-page .summary-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: clamp(10px, 1vw, 16px) !important;
}

/* Kaarten kleiner, zodat ze op laptop beter passen */
html body.progress-page .metric-card {
    min-height: 135px !important;
    padding: 14px 14px 13px !important;
    border-radius: 18px !important;
}

html body.progress-page .metric-top {
    margin-bottom: 8px !important;
}

html body.progress-page .metric-icon {
    min-width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
}

html body.progress-page .metric-status {
    min-height: 22px !important;
    padding: 3px 8px !important;
    font-size: 10.5px !important;
}

html body.progress-page .metric-label {
    margin-bottom: 7px !important;
    font-size: 13px !important;
    letter-spacing: 0.07em !important;
}

html body.progress-page .metric-value {
    margin-bottom: 8px !important;
    font-size: clamp(23px, 1.8vw, 30px) !important;
}

html body.progress-page .metric-diffs {
    gap: 5px !important;
    margin-bottom: 7px !important;
}

html body.progress-page .diff-line {
    min-height: 22px !important;
    padding: 4px 7px !important;
    font-size: 10.5px !important;
}

html body.progress-page .metric-advice {
    font-size: 11.5px !important;
    line-height: 1.22 !important;
}

/* Grafiek en coachblok gebruiken beschikbare breedte */
html body.progress-page .chart-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr) !important;
    gap: 18px !important;
}

html body.progress-page .chart-box {
    min-width: 0 !important;
}

/* Meetgeschiedenis tabel: volle breedte en nette scroll als nodig */
html body.progress-page .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body.progress-page .progress-table {
    width: 100% !important;
    min-width: 980px !important;
    table-layout: auto !important;
}

/* Tabel compacter zodat er meer zichtbaar is */
html body.progress-page .progress-table th {
    padding: 12px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

html body.progress-page .progress-table td {
    padding: 11px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

html body.progress-page .progress-table .note-cell {
    white-space: normal !important;
    min-width: 120px !important;
}

/* Grote schermen: inhoud mag mooi breed worden */
@media (min-width: 1500px) {
    html body.progress-page .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    html body.progress-page .metric-card {
        min-height: 145px !important;
    }

    html body.progress-page .progress-table {
        min-width: 100% !important;
    }
}

/* Laptop: nog steeds dicht bij sidebar en compact */
@media (max-width: 1300px) {
    html body.progress-page .page-content {
        padding-left: 10px !important;
        padding-right: 16px !important;
    }

    html body.progress-page .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html body.progress-page .chart-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Smallere laptop/tablet */
@media (max-width: 980px) {
    html body.progress-page .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobiel */
@media (max-width: 700px) {
    html body.progress-page .page-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    html body.progress-page .summary-grid {
        grid-template-columns: 1fr !important;
    }

    html body.progress-page .progress-table {
        min-width: 850px !important;
    }
}
/* =========================================================
   GEZOND4YOU - CLIENT PROGRESS FIX
   Opvullen witruimte + zelfde breedtegevoel als klantenpagina
   Plak helemaal onderaan client_progress.css
   ========================================================= */

/* -----------------------------
   PAGINA BREEDTE / UITLIJNING
------------------------------ */

body.progress-page .main-area {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.progress-page .page-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px 24px 40px 10px !important;
}

body.progress-page .progress-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Alle hoofdblokken volle breedte */
body.progress-page .page-kicker,
body.progress-page .privacy-note,
body.progress-page .flash,
body.progress-page .hero-card,
body.progress-page .content-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cards mooi laten aansluiten */
body.progress-page .content-card,
body.progress-page .hero-card {
    border-radius: 28px !important;
    overflow: hidden !important;
}

/* -----------------------------
   HERO
------------------------------ */

body.progress-page .hero-inner {
    padding: 26px 28px 24px !important;
}

body.progress-page .hero-inner h1 {
    margin: 10px 0 14px !important;
    font-size: clamp(2rem, 2.5vw, 3rem) !important;
    line-height: 1.08 !important;
}

body.progress-page .hero-inner p {
    max-width: none !important;
}

/* Info blokjes bovenin */
body.progress-page .hero-meta {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

body.progress-page .meta-box {
    min-width: 0 !important;
    padding: 15px 16px !important;
    border-radius: 18px !important;
}

body.progress-page .meta-label {
    font-size: 0.82rem !important;
}

body.progress-page .meta-value {
    font-size: 1.05rem !important;
}

/* Actieknoppen */
body.progress-page .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 18px !important;
}

/* -----------------------------
   SECTION HEADERS
------------------------------ */

body.progress-page .content-card-head {
    padding: 24px 28px 18px !important;
}

body.progress-page .content-card-head h2 {
    font-size: clamp(1.7rem, 2vw, 2.35rem) !important;
    line-height: 1.08 !important;
    margin: 0 0 6px !important;
}

body.progress-page .section-subtitle {
    font-size: 1rem !important;
    line-height: 1.45 !important;
}

body.progress-page .content-card-body {
    padding: 18px 28px 24px !important;
}

/* -----------------------------
   VOORTGANG IN CIJFERS
------------------------------ */

body.progress-page .summary-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

body.progress-page .metric-card {
    min-width: 0 !important;
    min-height: 228px !important;
    padding: 16px 16px 15px !important;
    border-radius: 22px !important;
}

body.progress-page .metric-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body.progress-page .metric-icon {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

body.progress-page .metric-status {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body.progress-page .metric-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.progress-page .metric-value {
    margin-bottom: 12px !important;
    font-size: clamp(2rem, 2vw, 2.6rem) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

body.progress-page .metric-diffs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

body.progress-page .diff-line {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

body.progress-page .metric-advice {
    font-size: 0.95rem !important;
    line-height: 1.28 !important;
    margin-top: auto !important;
}

/* -----------------------------
   GRAFIEK
------------------------------ */

body.progress-page .chart-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

body.progress-page .chart-box {
    min-width: 0 !important;
    border-radius: 24px !important;
    padding: 22px !important;
}

body.progress-page .chart-title {
    font-size: 1.55rem !important;
    margin-bottom: 8px !important;
}

body.progress-page .chart-help {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
}

body.progress-page .chart-canvas-wrap {
    min-height: 360px !important;
}

/* -----------------------------
   MEETGESCHIEDENIS TABEL
------------------------------ */

body.progress-page .table-hint {
    margin-bottom: 18px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

body.progress-page .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    border-radius: 22px !important;
}

body.progress-page .progress-table {
    width: 100% !important;
    min-width: 1120px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
}

body.progress-page .progress-table thead th {
    padding: 14px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
}

body.progress-page .progress-table tbody td {
    padding: 14px 14px !important;
    font-size: 0.98rem !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.progress-page .progress-table .note-cell {
    min-width: 180px !important;
    white-space: normal !important;
}

body.progress-page .action-cell {
    white-space: nowrap !important;
}

/* -----------------------------
   MODAL PROFESSIONELER
------------------------------ */

body.progress-page .modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: rgba(49, 58, 47, 0.32) !important;
    backdrop-filter: blur(4px) !important;
}

body.progress-page .modal-backdrop.is-open {
    display: flex !important;
}

body.progress-page .modal-card {
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
    border-radius: 28px !important;
    background: #fffdfa !important;
    box-shadow: 0 30px 70px rgba(56, 67, 53, 0.18) !important;
}

body.progress-page .modal-head {
    padding: 26px 30px 18px !important;
    border-bottom: 1px solid rgba(86, 99, 77, 0.10) !important;
}

body.progress-page .modal-head h3 {
    margin: 0 0 6px !important;
    font-size: 2rem !important;
    line-height: 1.1 !important;
}

body.progress-page .modal-head p {
    margin: 0 !important;
    font-size: 1rem !important;
    opacity: 0.8 !important;
}

body.progress-page .modal-body {
    padding: 24px 30px 30px !important;
}

body.progress-page .readonly-note {
    margin-bottom: 18px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    background: #f6f4ee !important;
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
}

body.progress-page .modal-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

body.progress-page .modal-field {
    min-width: 0 !important;
}

body.progress-page .modal-label {
    display: block !important;
    margin-bottom: 7px !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
}

body.progress-page .modal-input,
body.progress-page .modal-textarea {
    width: 100% !important;
    border: 1px solid #d8ddd1 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #364038 !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.progress-page .modal-input:focus,
body.progress-page .modal-textarea:focus {
    outline: none !important;
    border-color: #8fa583 !important;
    box-shadow: 0 0 0 4px rgba(143, 165, 131, 0.14) !important;
}

body.progress-page .modal-textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

body.progress-page .modal-actions {
    display: flex !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin-top: 18px !important;
}

body.progress-page .modal-actions-left,
body.progress-page .modal-actions-right {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body.progress-page .modal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border: 1px solid #cfd7c8 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #435041 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.progress-page .modal-btn:hover {
    transform: translateY(-1px) !important;
}

body.progress-page .modal-btn.primary {
    background: #738169 !important;
    border-color: #738169 !important;
    color: #ffffff !important;
}

body.progress-page .modal-btn.danger {
    width: 100% !important;
    background: #c86e5f !important;
    border-color: #c86e5f !important;
    color: #ffffff !important;
    margin-top: 16px !important;
}

/* -----------------------------
   LEGE MELDINGEN
------------------------------ */

body.progress-page .empty-note {
    padding: 20px 22px !important;
    border-radius: 18px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 1500px) {
    body.progress-page .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1250px) {
    body.progress-page .page-content {
        padding: 20px 18px 36px 8px !important;
    }

    body.progress-page .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.progress-page .chart-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    body.progress-page .hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.progress-page .modal-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    body.progress-page .page-content {
        padding: 16px 12px 30px 12px !important;
    }

    body.progress-page .content-card-head,
    body.progress-page .content-card-body,
    body.progress-page .hero-inner,
    body.progress-page .modal-head,
    body.progress-page .modal-body {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.progress-page .summary-grid {
        grid-template-columns: 1fr !important;
    }

    body.progress-page .hero-meta {
        grid-template-columns: 1fr !important;
    }

    body.progress-page .progress-table {
        min-width: 980px !important;
    }
}
/* =========================================================
   DEFINITIEVE FIX - CLIENT PROGRESS BREEDTE + MODAL
   Werkt zonder body.progress-page
   Plak helemaal onderaan app.css
   ========================================================= */

/* Voortgangspagina niet centreren */
.progress-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Content dichter tegen sidebar */
.main-area .page-content:has(.progress-wrap),
.page-content {
    max-width: none !important;
}

/* Specifiek: alleen als er een progress-wrap op de pagina staat */
.page-content:has(.progress-wrap) {
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 24px !important;
    padding-top: 22px !important;
    padding-bottom: 44px !important;
}

/* Alle blokken op voortgang volle breedte */
.progress-wrap .page-kicker,
.progress-wrap .privacy-note,
.progress-wrap .flash,
.progress-wrap .hero-card,
.progress-wrap .content-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Voortgang in cijfers over de hele breedte */
.progress-wrap .summary-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

/* Kaarten compacter zodat ze beter passen */
.progress-wrap .metric-card {
    min-width: 0 !important;
    min-height: 190px !important;
    padding: 15px 15px 14px !important;
    border-radius: 20px !important;
}

.progress-wrap .metric-top {
    margin-bottom: 9px !important;
}

.progress-wrap .metric-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
}

.progress-wrap .metric-status {
    min-height: 25px !important;
    padding: 4px 9px !important;
    font-size: 12px !important;
}

.progress-wrap .metric-label {
    margin-bottom: 7px !important;
    font-size: 14px !important;
}

.progress-wrap .metric-value {
    margin-bottom: 9px !important;
    font-size: 30px !important;
    line-height: 1 !important;
}

.progress-wrap .metric-diffs {
    gap: 6px !important;
    margin-bottom: 9px !important;
}

.progress-wrap .diff-line {
    min-height: 25px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

.progress-wrap .metric-advice {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
}

/* Grafiek breder */
.progress-wrap .chart-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr) !important;
    gap: 18px !important;
}

/* Meetgeschiedenis over volledige breedte */
.progress-wrap .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    margin: 0 !important;
}

.progress-wrap .progress-table {
    width: 100% !important;
    min-width: 1120px !important;
    table-layout: auto !important;
}

.progress-wrap .progress-table th {
    padding: 12px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.progress-wrap .progress-table td {
    padding: 11px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

.progress-wrap .progress-table .note-cell {
    min-width: 160px !important;
    white-space: normal !important;
}

/* Modal altijd als popup, niet als gewone pagina */
.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px !important;
    background: rgba(49, 58, 47, 0.38) !important;
    backdrop-filter: blur(6px) !important;
    overflow-y: auto !important;
}

.modal-backdrop.is-open {
    display: flex !important;
}

.modal-card {
    width: min(920px, 100%) !important;
    max-height: calc(100vh - 56px) !important;
    overflow-y: auto !important;
    border-radius: 30px !important;
    border: 1px solid rgba(85, 96, 84, 0.16) !important;
    background:
        radial-gradient(circle at 94% 0%, rgba(205, 221, 196, 0.58) 0, rgba(205, 221, 196, 0.58) 58px, transparent 59px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 239, 0.96)) !important;
    box-shadow: 0 34px 90px rgba(36, 43, 34, 0.24) !important;
}

.modal-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 28px 30px 20px !important;
    border-bottom: 1px solid rgba(85, 96, 84, 0.11) !important;
}

.modal-head h3 {
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
}

.modal-head p {
    margin: 8px 0 0 !important;
    color: #697365 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.modal-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(85, 96, 84, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #596855 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.modal-body {
    padding: 24px 30px 30px !important;
}

.readonly-note {
    margin: 0 0 22px !important;
    padding: 16px 18px !important;
    border-radius: 20px !important;
    background: rgba(255, 250, 238, 0.82) !important;
    color: #596255 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.5 !important;
}

.modal-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

.modal-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.modal-label {
    color: #4b5548 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.modal-input,
.modal-textarea {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 15px !important;
    border: 1px solid rgba(85, 96, 84, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #354036 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
}

.modal-textarea {
    min-height: 118px !important;
    resize: vertical !important;
}

.modal-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

.modal-actions-left,
.modal-actions-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.modal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    border: 1px solid rgba(85, 96, 84, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #4a5548 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.modal-btn.primary {
    border-color: transparent !important;
    background: #596855 !important;
    color: #ffffff !important;
}

.modal-btn.danger {
    width: 100% !important;
    border-color: rgba(180, 90, 76, 0.18) !important;
    background: rgba(255, 242, 239, 0.95) !important;
    color: #a55445 !important;
}

/* Grote schermen */
@media (min-width: 1500px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .progress-wrap .progress-table {
        min-width: 100% !important;
    }
}

/* Laptop */
@media (max-width: 1300px) {
    .page-content:has(.progress-wrap) {
        padding-left: 6px !important;
        padding-right: 16px !important;
    }

    .progress-wrap .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .progress-wrap .chart-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet */
@media (max-width: 980px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .modal-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobiel */
@media (max-width: 700px) {
    .page-content:has(.progress-wrap) {
        padding: 16px 12px 30px !important;
    }

    .progress-wrap .summary-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-backdrop {
        padding: 14px !important;
        align-items: flex-start !important;
    }

    .modal-head,
    .modal-body {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .modal-actions,
    .modal-actions-left,
    .modal-actions-right {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .modal-btn {
        width: 100% !important;
    }
}
/* =========================================================
   EXTRA STRAKKE PROGRESS LAYOUT
   Nog dichter naar sidebar + meer breedte benutten
   ========================================================= */

/* Nog dichter tegen de sidebar */
.page-content:has(.progress-wrap) {
    padding-left: 0 !important;
    padding-right: 14px !important;
    padding-top: 18px !important;
}

/* Wrapper volledig links uitlijnen */
.progress-wrap {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Kaarten/cardblokken minder binnenruimte */
.progress-wrap .hero-card,
.progress-wrap .content-card {
    border-radius: 24px !important;
}

.progress-wrap .hero-inner {
    padding: 22px 24px !important;
}

.progress-wrap .content-card-head {
    padding: 20px 24px 14px !important;
}

.progress-wrap .content-card-body {
    padding: 16px 24px 22px !important;
}

/* Voortgang in cijfers: meer kaarten naast elkaar waar mogelijk */
.progress-wrap .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
    gap: 12px !important;
}

/* Cijferkaarten extra compact */
.progress-wrap .metric-card {
    min-height: 168px !important;
    padding: 13px 13px 12px !important;
    border-radius: 18px !important;
}

.progress-wrap .metric-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
}

.progress-wrap .metric-status {
    min-height: 22px !important;
    padding: 3px 8px !important;
    font-size: 10.5px !important;
}

.progress-wrap .metric-label {
    margin-bottom: 6px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.07em !important;
}

.progress-wrap .metric-value {
    margin-bottom: 7px !important;
    font-size: 26px !important;
}

.progress-wrap .metric-diffs {
    gap: 5px !important;
    margin-bottom: 7px !important;
}

.progress-wrap .diff-line {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 10.5px !important;
}

.progress-wrap .metric-advice {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
}

/* Hero meta compacter en breder */
.progress-wrap .hero-meta {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
    gap: 10px !important;
}

.progress-wrap .meta-box {
    padding: 12px 13px !important;
    border-radius: 15px !important;
}

/* Tabel maximaal zichtbaar */
.progress-wrap .table-wrap {
    border-radius: 18px !important;
}

.progress-wrap .progress-table {
    min-width: 1000px !important;
}

.progress-wrap .progress-table th {
    padding: 10px 10px !important;
    font-size: 11px !important;
}

.progress-wrap .progress-table td {
    padding: 10px 10px !important;
    font-size: 12.5px !important;
}

/* Grafieksectie compacter */
.progress-wrap .chart-grid {
    grid-template-columns: minmax(0, 2.4fr) minmax(230px, 0.65fr) !important;
    gap: 14px !important;
}

.progress-wrap .chart-box {
    padding: 18px !important;
    border-radius: 20px !important;
}

.progress-wrap .chart-canvas-wrap {
    height: 320px !important;
    min-height: 280px !important;
}

/* Op grote schermen 5 kaarten naast elkaar */
@media (min-width: 1600px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Op normale laptop liever 4 naast elkaar */
@media (min-width: 1200px) and (max-width: 1599px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Op smallere laptop 3 naast elkaar */
@media (min-width: 950px) and (max-width: 1199px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
/* =========================================================
   PROGRESS PAGINA - RUIMTE MAXIMAAL BENUTTEN
   Laat content beginnen zoals klantenpagina
   ========================================================= */

/* Belangrijk: progresspagina niet meer gecentreerd tonen */
.page-content:has(.progress-wrap) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 18px !important;
    padding-top: 18px !important;
    padding-bottom: 44px !important;
}

/* Haal de vaste max-width en auto-margin eraf */
.page-content:has(.progress-wrap) .progress-wrap,
.progress-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Grote blokken helemaal links laten starten */
.progress-wrap .page-kicker,
.progress-wrap .privacy-note,
.progress-wrap .flash,
.progress-wrap .hero-card,
.progress-wrap .content-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Minder ruimte in de grote contentkaarten */
.progress-wrap .hero-card,
.progress-wrap .content-card {
    border-radius: 24px !important;
}

.progress-wrap .content-card-head {
    padding: 20px 24px 14px !important;
}

.progress-wrap .content-card-body {
    padding: 16px 24px 22px !important;
}

/* Voortgangskaarten: breder benutten */
.progress-wrap .summary-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

/* Kaarten iets lager/compacter, zodat 5 naast elkaar passen */
.progress-wrap .metric-card {
    min-width: 0 !important;
    min-height: 168px !important;
    padding: 13px 13px 12px !important;
    border-radius: 18px !important;
}

.progress-wrap .metric-top {
    margin-bottom: 8px !important;
}

.progress-wrap .metric-icon {
    width: 31px !important;
    min-width: 31px !important;
    height: 31px !important;
    font-size: 11px !important;
}

.progress-wrap .metric-status {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
}

.progress-wrap .metric-label {
    margin-bottom: 6px !important;
    font-size: 12px !important;
    letter-spacing: 0.07em !important;
}

.progress-wrap .metric-value {
    margin-bottom: 7px !important;
    font-size: 25px !important;
    line-height: 1 !important;
}

.progress-wrap .metric-diffs {
    gap: 5px !important;
    margin-bottom: 7px !important;
}

.progress-wrap .diff-line {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
}

.progress-wrap .metric-advice {
    font-size: 11px !important;
    line-height: 1.18 !important;
}

/* Grafiek en meetgeschiedenis ook volledige breedte */
.progress-wrap .chart-grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 2.6fr) minmax(240px, 0.7fr) !important;
    gap: 14px !important;
}

.progress-wrap .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

.progress-wrap .progress-table {
    width: 100% !important;
    min-width: 1000px !important;
}

/* Laptop: 4 kaarten naast elkaar */
@media (max-width: 1450px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Smallere laptop: 3 kaarten naast elkaar */
@media (max-width: 1120px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .progress-wrap .chart-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .progress-wrap .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobiel */
@media (max-width: 650px) {
    .page-content:has(.progress-wrap) {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .progress-wrap .summary-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   DEFINITIEVE PROGRESS UITLIJNING
   Haalt de dubbele ruimte links naast de sidebar weg
   ========================================================= */

/* Dit is de belangrijkste regel: geen extra margin-left op progresspagina */
.main-area:has(.progress-wrap) {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Content mag nu de volledige ruimte naast de sidebar gebruiken */
.main-area:has(.progress-wrap) .page-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 18px 44px 18px !important;
}

/* Wrapper niet centreren */
.main-area:has(.progress-wrap) .progress-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Alle blokken volle breedte */
.main-area:has(.progress-wrap) .hero-card,
.main-area:has(.progress-wrap) .content-card,
.main-area:has(.progress-wrap) .privacy-note,
.main-area:has(.progress-wrap) .flash {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Voortgangskaarten beter verdelen over de breedte */
.main-area:has(.progress-wrap) .summary-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

/* Kaarten compact houden */
.main-area:has(.progress-wrap) .metric-card {
    min-width: 0 !important;
    min-height: 165px !important;
    padding: 13px !important;
    border-radius: 18px !important;
}

.main-area:has(.progress-wrap) .metric-icon {
    width: 31px !important;
    min-width: 31px !important;
    height: 31px !important;
    font-size: 11px !important;
}

.main-area:has(.progress-wrap) .metric-status {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
}

.main-area:has(.progress-wrap) .metric-label {
    margin-bottom: 6px !important;
    font-size: 12px !important;
}

.main-area:has(.progress-wrap) .metric-value {
    margin-bottom: 7px !important;
    font-size: 25px !important;
}

.main-area:has(.progress-wrap) .diff-line {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
}

.main-area:has(.progress-wrap) .metric-advice {
    font-size: 11px !important;
    line-height: 1.18 !important;
}

/* Tabel en grafiek ook volle breedte */
.main-area:has(.progress-wrap) .chart-grid,
.main-area:has(.progress-wrap) .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

/* Laptop */
@media (max-width: 1450px) {
    .main-area:has(.progress-wrap) .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Smallere laptop */
@media (max-width: 1120px) {
    .main-area:has(.progress-wrap) .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .main-area:has(.progress-wrap) .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobiel */
@media (max-width: 650px) {
    .main-area:has(.progress-wrap) .summary-grid {
        grid-template-columns: 1fr !important;
    }
}