/* `hidden` must win over display rules below. */
[hidden] { display: none !important; }

/* The scrollbar always keeps its place (Geert, 26 Oct 2026): a page that scrolls is not 15 px narrower than one that
   does not, so the right edge stays put from page to page. */
html { scrollbar-gutter: stable; }

/* NutriIQ online: sign-in pages and the account strip inside the practice workspace. */
/* One palette for every page: the sign-in pages, settings, agenda, backoffice and the workspace
   (styles.css reads --primary-color; a practice's own colour overrides both through brand.css). */
:root {
    --nq-brand: #00516b;
    --nq-brand-dark: #00384a;
    --nq-surface: #ffffff;
    --nq-page: #f3f7f5;
    --nq-text: #0f172a;
    --nq-muted: #5b6b7a;
    --nq-line: #dbe5e1;
    --nq-error: #b42318;
    --nq-success: #067647;
    --primary-color: var(--nq-brand);
    --primary-hover: var(--nq-brand-dark);
    --shell-height: 58px;
    /* One page frame for every page (suggestions 220 and 221): the same left column and the same page width in the
       practice space, Agenda, Instellingen and Beheer. The page grows with the screen up to --page-max and starts
       next to the menu (suggestion 116); its side margins grow with the screen too. */
    --side-width: 272px;
    --page-max: 1600px;
    --page-pad: clamp(16px, 2.4vw, 40px);
}
@media (max-width: 1280px) { :root { --side-width: 248px; } }

.auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--nq-page);
    color: var(--nq-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

.auth-shell {
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 16px 64px;
}

.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 24px; }
.auth-mark { width: 56px; height: 56px; margin-bottom: 8px; }
.auth-wordmark { font-size: 2rem; letter-spacing: -0.02em; color: var(--nq-brand-dark); }
.auth-wordmark strong { color: var(--nq-brand); }
.auth-tagline { color: var(--nq-muted); font-size: 0.9rem; }

.auth-card {
    background: var(--nq-surface);
    border: 1px solid var(--nq-line);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(0, 56, 74, 0.06);
}

.auth-card h1 { font-size: 1.35rem; margin: 0 0 12px; }
.auth-intro { color: var(--nq-muted); margin: 0 0 16px; }

.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.auth-card label small { font-weight: 400; color: var(--nq-muted); }
.auth-card input {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #c7d4cf;
    border-radius: 8px;
    background: #fff;
    color: var(--nq-text);
}
.auth-card select, .auth-card textarea { font: inherit; padding: 10px 12px; border: 1px solid #c7d4cf; border-radius: 8px; background: #fff; color: var(--nq-text); }
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus { outline: 3px solid rgba(0, 81, 107, 0.25); border-color: var(--nq-brand); }
.code-form input { font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; }

.auth-primary {
    font: inherit;
    font-weight: 600;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--nq-brand);
    color: #fff;
    cursor: pointer;
}
.auth-primary:hover:not(:disabled) { background: var(--nq-brand-dark); }
.auth-primary:disabled { opacity: 0.6; cursor: progress; }

.auth-links { margin: 16px 0 0; font-size: 0.9rem; }
.auth-links a, .auth-help summary { color: var(--nq-brand); }
.auth-help { margin-top: 14px; font-size: 0.9rem; color: var(--nq-muted); }
.auth-help summary { cursor: pointer; }
.auth-help p { margin: 8px 0; }

.auth-steps { margin: 0 0 16px; padding-left: 20px; color: var(--nq-muted); }
.auth-steps li { margin-bottom: 6px; }
.auth-qr { display: block; margin: 0 auto 8px; width: 220px; height: 220px; max-width: 100%; }
.auth-secret { display: block; padding: 8px; border-radius: 6px; background: var(--nq-page); font-size: 0.95rem; word-break: normal; overflow-wrap: break-word; color: var(--nq-text); }

.auth-message {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef3f2;
    color: var(--nq-error);
    border: 1px solid #fecdca;
}
.auth-message[data-kind="success"] { background: #ecfdf3; color: var(--nq-success); border-color: #abefc6; }

/* Account strip in the practice workspace sidebar. */
.online-account {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.online-account strong { color: var(--text-primary, #0f172a); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-account button {
    font: inherit;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nq-brand);
    cursor: pointer;
    text-decoration: underline;
}
.online-session-banner {
    position: fixed;
    left: 50%;
    top: calc(var(--shell-height, 58px) + 12px);
    transform: translateX(-50%);
    z-index: 1000;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 10px;
    background: #7a271a;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.online-session-banner a { color: #fff; font-weight: 600; }

/* Practice branding: logo picker and live preview on the sign-in pages. */
.brand-fieldset { border: 1px solid var(--nq-line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.brand-fieldset legend { font-weight: 600; font-size: 0.9rem; padding: 0 4px; }
.brand-fieldset legend small { font-weight: 400; color: var(--nq-muted); }
.brand-hint { margin: 0; font-size: 0.85rem; color: var(--nq-muted); }
.brand-fieldset input[type=file] { padding: 6px; font-size: 0.85rem; }
.brand-preview { display: flex; flex-direction: column; gap: 10px; }
.brand-preview-caption { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nq-muted); }
.brand-preview-sidebar { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid var(--nq-line); }
.brand-preview-sidebar img { max-width: 200px; max-height: 80px; width: auto; height: auto; }
.brand-preview-button { display: inline-block; padding: 9px 14px; border-radius: 8px; color: #fff; font-weight: 600; font-size: 0.85rem; }
.brand-color-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-card .brand-color { flex-direction: row; align-items: center; gap: 10px; }
.auth-card .brand-color input { width: 48px; height: 34px; padding: 2px; cursor: pointer; }
.brand-link { font: inherit; font-size: 0.85rem; border: 0; background: none; padding: 0; color: var(--nq-brand); text-decoration: underline; cursor: pointer; }
.brand-link[hidden] { display: none; }

/* Practice logo or name in the workspace sidebar and printed reports. */
.practice-logo { width: auto; max-width: 215px; max-height: 90px; }
.practice-name-logo { display: block; font-size: 19px; font-weight: 700; color: var(--primary-color); white-space: normal; line-height: 1.2; }
.report-logo { width: auto; max-width: 190px; max-height: 70px; }
.report-practice-name { font-size: 18px; color: var(--primary-color); }

/* Signed-in pages next to the workspace: settings and calendar. */
.shell-page { margin: 0; min-height: 100vh; background: var(--nq-page); color: var(--nq-text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; }
.shell-page *, .shell-page *::before, .shell-page *::after { box-sizing: border-box; }
.shell-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 58px; padding: 8px 24px; background: #fff; border-bottom: 1px solid var(--nq-line); position: sticky; top: 0; z-index: 30; box-sizing: border-box; }
.shell-suggest { font: inherit; font-size: 0.9rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--nq-line); background: #fff; color: var(--nq-brand); cursor: pointer; margin-left: 6px; }
.shell-suggest:hover { border-color: var(--nq-brand); background: var(--nq-page); }
.shell-brand { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; color: var(--nq-brand); text-decoration: none; }
.shell-brand img { max-height: 44px; max-width: 180px; width: auto; }
/* NutriIQ's own logo: in Beheer, and for a practice without a logo of its own. */
.shell-brand img.shell-brand-mark { width: 32px; height: 32px; margin-right: 10px; flex: 0 0 auto; }
/* A practice: its logo, then its name. A long name gets an ellipsis instead of pushing the links to a second row;
   they only wrap when the logo alone does not fit next to them. */
.shell-brand-practice { display: grid; grid-template-columns: auto minmax(0, max-content); flex: 1 1 0; max-width: max-content; }
.shell-brand-practice .shell-brand-name { grid-column: 2; }
.shell-brand img + .shell-brand-name { margin-left: 12px; }
.shell-brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.shell-nav a, .shell-logout, .shell-suggestions { font: inherit; font-size: 0.9rem; padding: 8px 12px; border-radius: 8px; color: var(--nq-text); text-decoration: none; background: none; border: 0; cursor: pointer; }
.shell-nav a:hover, .shell-logout:hover, .shell-suggestions:hover { background: var(--nq-page); }
.shell-nav a[aria-current="page"], .shell-nav a[aria-current="true"] { background: var(--nq-page); color: var(--nq-brand); font-weight: 600; }
/* Administrators: in the header the suggestions (with their number) and the agent's robot; the main menu is the left column (.beheer-menu). */
.shell-admin .shell-nav > a, .shell-suggestions { display: inline-flex; align-items: center; gap: 6px; }
.shell-suggestions { margin-left: 6px; }
.shell-suggestions[aria-expanded="true"] { color: var(--nq-brand); }
.shell-main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.shell-main.agenda { max-width: 1200px; }
.shell-title { font-size: 1.6rem; margin: 8px 0 16px; text-transform: capitalize; }
.shell-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: var(--nq-success); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.shell-toast[data-kind="error"] { background: var(--nq-error); }

.auth-secondary { display: inline-block; font: inherit; font-weight: 600; font-size: 0.9rem; padding: 9px 14px; border-radius: 8px; border: 1px solid #c7d4cf; background: #fff; color: var(--nq-brand); cursor: pointer; text-decoration: none; }
.auth-secondary:hover { border-color: var(--nq-brand); }
.shell-page .auth-primary { font-size: 0.9rem; padding: 9px 14px; }
.brand-link.danger { color: var(--nq-error); }

.settings-toc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-toc a { font-size: 0.85rem; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--nq-line); color: var(--nq-text); text-decoration: none; }
.settings-card { background: #fff; border: 1px solid var(--nq-line); border-radius: 14px; padding: 22px 22px 24px; margin-bottom: 18px; scroll-margin-top: 80px; }
.settings-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.settings-card h3 { font-size: 1rem; margin: 22px 0 8px; }
.settings-intro { color: var(--nq-muted); margin: 0 0 12px; }
.settings-steps { margin: 0 0 14px; padding-left: 20px; color: var(--nq-muted); }
.settings-steps li { margin-bottom: 4px; }
.settings-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.settings-form label, .agenda-dialog label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.settings-form label small { font-weight: 400; color: var(--nq-muted); }
/* Instellingen → Privacy (suggestion 152): the box next to its text, in the practice's colour. */
.settings-form .consent-check { flex-direction: row; align-items: center; gap: 10px; font-size: 0.95rem; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--nq-brand); cursor: pointer; }
.consent-check[data-locked], .consent-check[data-locked] input { cursor: default; }
.settings-form input, .settings-form select, .settings-form textarea, .libre-connections select { font: inherit; padding: 9px 11px; border: 1px solid #c7d4cf; border-radius: 8px; background: #fff; color: var(--nq-text); }
.settings-form .brand-color { flex-direction: row; align-items: center; }
.settings-form button[type=submit] { align-self: flex-start; }
.settings-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.settings-alert { padding: 10px 12px; border-radius: 8px; background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.settings-alert[data-kind="error"] { background: #fef3f2; border-color: #fecdca; color: var(--nq-error); }
.libre-status { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #ecfdf3; color: var(--nq-success); }
.status-pill[data-kind="warn"], .status-pill[data-kind="busy"] { background: #fffaeb; color: #93370d; }
.status-pill[data-kind="error"] { background: #fef3f2; color: var(--nq-error); }
.libre-connections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.libre-connections li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--nq-line); border-radius: 10px; }
.libre-name { display: flex; flex-direction: column; }
.libre-name small { color: var(--nq-muted); }
.libre-connections select { max-width: 100%; }

/* Calendar */
.agenda-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Beheer → Back-up: the steps to renew the key of Scaleway. */
.backup-steps { margin: 0 0 12px; padding-left: 22px; }
.backup-steps li { margin: 0 0 10px; line-height: 1.5; }
.backup-steps code { word-break: break-all; }
#backup-key-alert[data-kind="warning"] { background: #fff6e0; border-color: #f2c14e; color: #5c4400; }
/* Suggestions 296 and 299: the patients in the left column of the other pages, looking as in the practice space
   (workspace.css: .sidebar-mainmenu, .sidebar-header, .sidebar-search, .sidebar-add and .sidebar-subitem). */
.beheer-menu.practice-menu { gap: 2px; padding: 18px 16px 14px; }
.beheer-menu.practice-menu a { font-size: 15px; }
.beheer-menu.practice-menu .menu-patients { margin: 8px 0 4px; }
.menu-patient-count { background: #e9f1f3; color: var(--nq-brand); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.menu-patient-count[hidden] { display: none; }
.beheer-menu .menu-search { position: relative; margin: 0 0 6px; }
.menu-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--nq-muted); pointer-events: none; }
.beheer-menu .menu-search input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px 8px 34px; border: 1px solid var(--nq-line, #d5e0e4); border-radius: 10px; background: #fff; color: var(--nq-text); font: inherit; font-size: 15px; }
.beheer-menu .menu-search input:focus { outline: 3px solid rgba(0, 81, 107, .2); border-color: var(--nq-brand); }
.practice-menu a.menu-new-patient { justify-content: center; margin: 0 0 12px; padding: 11px 14px; background: var(--nq-brand); color: #fff; }
.practice-menu a.menu-new-patient:hover { background: var(--nq-brand-dark); }
.practice-menu a.menu-subitem { margin: -6px 0 12px; padding: 8px 12px 8px 24px; font-size: 14px; }
/* The patients found while typing, under Patiëntenlijst (as in the practice space). */
.menu-results { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 12px; }
.menu-results[hidden] { display: none; }
/* Blue, as there (Geert: 'overal gelijk, overal blauw'). */
.beheer-menu.practice-menu a.menu-result { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 9px 10px;
                                           border: 1px solid #d6e6ea; border-radius: 10px; background: #e9f1f3; color: var(--nq-brand); }
.beheer-menu.practice-menu a.menu-result:hover { border-color: var(--nq-brand); }
.menu-result-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; line-height: 22px; }
.menu-result-date { font-size: 12px; font-weight: 500; line-height: 18px; opacity: .8; }
.menu-results-empty { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--nq-muted); }
/* The line before Agenda: as far from Patiëntenlijst and from Agenda as in the practice space. */
.practice-menu a.menu-split { position: relative; margin-top: 15px; }
.practice-menu a.menu-split::before { content: ''; position: absolute; left: 0; right: 0; top: -11px; border-top: 1px solid var(--nq-line); }
/* Energiebehoefte: the PAL values of the practice (Instellingen). */
.pal-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0 0 8px; }
.pal-row input { padding: 8px 10px; border: 1px solid var(--nq-line, #d5e0e4); border-radius: 8px; font: inherit; min-width: 0; }
/* Suggestion 286: Voedingsmiddelen (the NEVO table). */
.shell-main.foods { max-width: 1200px; }
.foods-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.foods-search input[type="search"] { flex: 1 1 320px; min-width: 0; padding: 10px 12px; border: 1px solid var(--nq-line, #d5e0e4); border-radius: 10px; font: inherit; }
.foods-search select { flex: 0 1 280px; min-width: 0; padding: 10px 12px; border: 1px solid var(--nq-line, #d5e0e4); border-radius: 10px; font: inherit; background: #fff; }
.foods-count { margin: 0 0 8px; color: var(--text-secondary, #69766f); font-size: 14px; }
.foods-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--nq-line, #d5e0e4); border-radius: 12px; }
.foods-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.foods-table th, .foods-table td { padding: 9px 12px; border-bottom: 1px solid var(--nq-line, #e3eaed); text-align: right; white-space: nowrap; }
.foods-table th:first-child, .foods-table td:first-child { text-align: left; white-space: normal; min-width: 220px; }
.foods-table th { font-size: 12px; font-weight: 600; color: var(--text-secondary, #69766f); background: #f7faf9; position: sticky; top: 0; }
.foods-table td small { display: block; color: var(--text-secondary, #69766f); font-size: 12px; }
.foods-table tr:last-child td { border-bottom: 0; }
.foods-source { margin: 12px 0 0; font-size: 13px; color: var(--text-secondary, #69766f); }
.foods-table tbody tr { cursor: pointer; }
.foods-table tbody tr:hover, .foods-table tbody tr:focus { background: #f2f7f5; outline: none; }
.food-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 8px; }
.food-sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 28px; max-height: 65vh; overflow-y: auto; }
.food-sheet h3 { margin: 12px 0 4px; font-size: 1rem; color: var(--nq-brand, #00516b); }
.food-sheet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.food-sheet-table td { padding: 4px 0; border-bottom: 1px solid #edf2f0; }
.food-sheet-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.food-sheet-table tr.part td:first-child { padding-left: 16px; color: var(--text-secondary, #69766f); }
.food-sheet-table tr.part-2 td:first-child { padding-left: 32px; }
.food-sheet-table tr.part-3 td:first-child { padding-left: 48px; }
/* The table of a food, NEVO or Ciqual (Geert, 26 Oct 2026: 'when in the same table the source is known'). */
.food-table-tag { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700; line-height: 1.45;
    letter-spacing: .02em; vertical-align: 2px; white-space: nowrap; background: #e3eff3; color: #00516b; }
.food-table-tag.ciqual { background: #f6ecdf; color: #7a4a12; }
/* The demo patient (Geert, 26 Oct 2026): a tag wherever its name shows, a banner in its dossier. */
.demo-tag { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: var(--fs-small, 12px); font-weight: 700; line-height: 1.5;
    letter-spacing: .02em; vertical-align: 2px; white-space: nowrap; background: #fff3d1; color: #6b4a00; }
.foods-table td small .food-table-tag, .food-sheet-head h2 .food-table-tag { margin-left: 2px; }
.agenda-period { margin: 0; font-size: 1.25rem; text-transform: capitalize; }
.shell-main > .landing-header:first-child { padding-top: 4px; }  /* suggestion 250: the title as high as in the practice space */  /* suggestion 248: the month, beside the arrows */
.agenda-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.agenda-month { background: #fff; border: 1px solid var(--nq-line); border-radius: 14px; overflow: hidden; }
.agenda-weekdays, .agenda-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.agenda-weekdays span { padding: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nq-muted); border-bottom: 1px solid var(--nq-line); }
.agenda-cell { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 6px; border: 0; border-right: 1px solid var(--nq-line); border-bottom: 1px solid var(--nq-line); background: #fff; cursor: pointer; overflow: hidden; color: var(--nq-text); }
.agenda-cell:nth-child(7n) { border-right: 0; }
.agenda-cell.outside { background: #fafbfa; color: #9aa6a0; }
.agenda-cell.selected { box-shadow: inset 0 0 0 2px var(--nq-brand); }
.agenda-number { font: inherit; font-size: 0.85rem; font-weight: 600; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; align-self: flex-start; }
.agenda-cell.today .agenda-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--nq-brand); color: #fff; }
.agenda-chip { font-family: inherit; border: 0; text-align: left; cursor: pointer; width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.72rem; line-height: 1.3; padding: 2px 5px; border-radius: 5px; background: #e8f1ef; color: #134e40; overflow: hidden; overflow-wrap: anywhere; }
.agenda-chip.telefonisch, .agenda-item.telefonisch { background: #eef2fb; color: #2f3f73; }
.agenda-chip.online, .agenda-item.online { background: #f3eefb; color: #4a2f73; }
.agenda-more { font-size: 0.72rem; color: var(--nq-muted); }
.agenda-day { background: #fff; border: 1px solid var(--nq-line); border-radius: 14px; padding: 16px; position: sticky; top: 84px; }
.agenda-day h2 { font-size: 1.05rem; margin: 0 0 10px; text-transform: capitalize; }
.agenda-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agenda-item { border-radius: 10px; background: #e8f1ef; color: #134e40; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.agenda-item button { font: inherit; text-align: left; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; display: flex; flex-direction: column; }
.agenda-item small { opacity: .85; }
.agenda-item .brand-link { color: inherit; font-size: 0.8rem; align-self: flex-start; }
.agenda-dialog { border: 0; border-radius: 14px; padding: 22px; width: min(520px, calc(100% - 32px)); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.agenda-dialog::backdrop, .setup-wizard::backdrop { background: rgba(15, 23, 42, .45); }
.agenda-dialog h2 { margin: 0 0 4px; font-size: 1.2rem; }
.agenda-dialog .settings-form { max-width: none; }
.agenda-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
@media (max-width: 860px) {
    .agenda-layout { grid-template-columns: 1fr; }
    .agenda-day { position: static; }
    .agenda-cell { min-height: 72px; }
    .agenda-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .agenda-cell { min-height: 60px; }
    .agenda-chip { font-size: 0; padding: 0; height: 6px; }
}

/* First-login setup wizard and notices inside the workspace. */
.setup-wizard { border: 0; border-radius: 16px; padding: 26px 26px 22px; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.28); color: var(--text-primary, #0f172a); }
.setup-wizard h2 { margin: 6px 0 8px; font-size: 1.35rem; }
.setup-wizard p { color: var(--text-secondary, #64748b); margin: 0 0 12px; }
.setup-wizard .eyebrow { font-size: 11px; letter-spacing: .12em; color: var(--primary-color, #176b5b); font-weight: 700; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.wizard-progress span { height: 4px; border-radius: 4px; background: #e2e8e4; }
.wizard-progress span.done { background: var(--primary-color, #176b5b); }
.wizard-list { margin: 0 0 14px; padding-left: 20px; color: var(--text-secondary, #64748b); }
.wizard-list li { margin-bottom: 6px; }
.wizard-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.wizard-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 12px; }
.wizard-form input { font: inherit; padding: 9px 10px; border: 1px solid #cdd8d2; border-radius: 8px; }
.wizard-status { min-height: 1.2em; font-size: 13px; }
.wizard-status[data-kind="success"] { color: var(--nq-success); }
.wizard-status[data-kind="error"] { color: var(--nq-error); }
.wizard-note { font-size: 13px; }
.wizard-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.setup-wizard .brand-fieldset { border-color: #dfe6df; }
@media (max-width: 600px) { .wizard-form { grid-template-columns: 1fr; } }
.online-readings-banner { position: fixed; right: 16px; bottom: 16px; z-index: 1000; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--primary-color, #176b5b); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.online-readings-banner button { font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 0; background: #fff; color: var(--primary-color, #176b5b); cursor: pointer; }

.online-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.online-nav a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 8px; border: 1px solid var(--border-color, #dfe6df); color: var(--primary-color, #176b5b); font-size: 12px; font-weight: 600; text-decoration: none; background: #fff; }
.online-nav a:hover { background: #f3f7f1; }
.setup-wizard, .agenda-dialog { margin: auto; }
.brand-fieldset input[type=color] { width: 48px; height: 34px; padding: 2px; cursor: pointer; }
.brand-preview[hidden] { display: none; }
.brand-color { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.brand-color input { min-width: 0; max-width: 100%; }  /* on a phone the field goes under its label */


/* Backoffice */
.shell-main.beheer { max-width: 1320px; }
.beheer-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 18px; }
.beheer-total { background: #fff; border: 1px solid var(--nq-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.beheer-total strong { font-size: 1.6rem; line-height: 1.1; }
.beheer-total span { color: var(--nq-muted); font-size: 0.85rem; }
.beheer-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.beheer-filter input, .beheer-filter select, .beheer-plan { font: inherit; font-size: 0.9rem; padding: 8px 10px; border: 1px solid #c7d4cf; border-radius: 8px; background: #fff; }
.beheer-filter input { flex: 1; min-width: 220px; }
.beheer-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--nq-line); border-radius: 14px; }
/* A table that scrolls sideways keeps everything in it, also what is positioned (the screen-reader labels): otherwise
   the page itself became wider than the screen on a small laptop. */
.beheer-table-wrap, .avg-table-wrap, .usage-wrap, .month-table-wrap { position: relative; }
.dossier-code { font-size: 0.85rem; letter-spacing: .04em; color: var(--nq-muted); }  /* Facturatie: a dossier without its name (suggestion 223) */
.beheer-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.beheer-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nq-muted); padding: 10px 12px; border-bottom: 1px solid var(--nq-line); white-space: nowrap; }
.beheer-table td { padding: 12px; border-bottom: 1px solid var(--nq-line); vertical-align: top; }
.beheer-table tr:last-child td { border-bottom: 0; }
.beheer-table td small { display: block; color: var(--nq-muted); font-size: 0.78rem; }
.beheer-table .num { text-align: right; }
.beheer-table tr.status-pending { background: #fffdf5; }
.beheer-users { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.beheer-users li { display: flex; flex-direction: column; }
.beheer-users .brand-link { align-self: flex-start; font-size: 0.8rem; }
.beheer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 130px; }
.auth-secondary.small { padding: 6px 10px; font-size: 0.82rem; }
.agenda-dialog input[readonly] { font: inherit; font-size: 0.85rem; padding: 9px 11px; border: 1px solid #c7d4cf; border-radius: 8px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-inline-form { margin-top: 8px; }
.auth-inline-form p { margin: 0 0 4px; }
.auth-inline-form .auth-secondary { align-self: flex-start; }
.beheer-requests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.beheer-requests li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #fffaeb; border: 1px solid #fedf89; }
.beheer-requests small { display: block; color: var(--nq-muted); }
.beheer-actions.row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.beheer-section { margin-bottom: 18px; }
.beheer-note { font-size: 0.8rem; color: var(--nq-muted); margin: 8px 2px 0; }
.beheer-table tfoot th { text-align: left; padding: 10px 12px; border-top: 1px solid var(--nq-line); }
.beheer-table tfoot .num { text-align: right; }
.danger-button { background: var(--nq-error) !important; }
#view-facturatie .beheer-filter { align-items: center; }
#view-facturatie input[type=month] { font: inherit; padding: 7px 9px; border: 1px solid #c7d4cf; border-radius: 8px; }

.auth-hint { margin: 0; font-size: 0.8rem; color: var(--nq-muted); }

/* Read-only administrator view of a practice. */
.support-banner { position: sticky; top: 0; z-index: 2000; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 18px; background: #7a4b00; color: #fff; font-size: 13px; }
.support-banner a { color: #fff; font-weight: 700; }
.support-mode #save-status, .support-mode #retry-save-btn, .support-mode #import-files-btn, .support-mode #new-patient-btn, .support-mode #patient-csv-btn,
.support-mode #empty-select-files-btn { display: none !important; }
.agenda-dialog.wide { width: min(900px, calc(100% - 32px)); }

.auth-card .auth-check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; flex-wrap: wrap; }
.auth-card .auth-check input { margin-top: 3px; width: auto; padding: 0; }
.auth-card .auth-check small { flex-basis: 100%; padding-left: 22px; }

/* Backoffice invoicing */
.billing-grid { border: 1px solid var(--nq-line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.billing-grid label { min-width: 0; }
.billing-grid input, .billing-grid select, .billing-grid textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.billing-grid legend { font-weight: 700; font-size: 0.9rem; padding: 0 4px; }
.billing-grid .span { grid-column: 1 / -1; }
.billing-grid label small { font-weight: 400; color: var(--nq-muted); }
.agenda-dialog .billing-grid input, .agenda-dialog .billing-grid textarea, .agenda-dialog textarea, .agenda-dialog input[type=number],
.agenda-dialog input[type=email], .agenda-dialog input[type=text] { font: inherit; padding: 8px 10px; border: 1px solid #c7d4cf; border-radius: 8px; }
.beheer-totals.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.beheer-totals.compact strong { font-size: 1.2rem; }
.beheer-table td .brand-link { display: block; margin-top: 2px; font-size: 0.8rem; }
@media (max-width: 700px) { .billing-grid { grid-template-columns: 1fr; } .beheer-totals.compact { grid-template-columns: 1fr; } }

.settings-form.wide { max-width: none; }
.settings-form .billing-grid { max-width: 760px; }
/* Facturatie-instellingen as a page (suggestions 191 and 193): the width of the page, company and bank side by side, the
   prices below them in several columns, so there is little to scroll. One column on a narrow screen. */
#billing-settings-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px;
    max-width: 1400px; align-items: start; }
#billing-settings-form > :not(fieldset), #billing-settings-form > fieldset.wide { grid-column: 1 / -1; }
#billing-settings-form .billing-grid { max-width: none; }
/* Beheer → Privacy (AVG) */
.avg-card { margin-bottom: 16px; }
.avg-meta { color: var(--nq-muted); font-size: 0.85rem; margin: 0 0 10px; }
.avg-card.changed .avg-save { box-shadow: 0 0 0 3px rgba(152, 191, 19, .55); }
.avg-card textarea, .avg-card input[type=text] { font: inherit; font-size: 0.9rem; width: 100%; padding: 7px 9px; border: 1px solid #c7d4cf; border-radius: 8px; background: #fff; }
.avg-card textarea { resize: vertical; field-sizing: content; min-height: 2.4em; }
.avg-intro { margin-bottom: 10px; }
.avg-text { min-height: 24em; line-height: 1.5; }
.avg-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.avg-table, .avg-list { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.avg-table th, .avg-list th { text-align: left; color: var(--nq-muted); font-weight: 600; padding: 6px 6px; border-bottom: 1px solid var(--nq-line); white-space: nowrap; }
.avg-table td { padding: 4px 4px; vertical-align: top; min-width: 140px; }
.avg-table td.avg-row-actions { min-width: 0; width: 1%; }
.avg-list td { padding: 7px 6px; border-bottom: 1px solid var(--nq-line); vertical-align: top; }
.avg-list tr.avg-open-row td:nth-child(3) { color: var(--nq-error); font-weight: 600; }
.avg-late, .avg-late td { color: var(--nq-error); font-weight: 600; }
.avg-checklist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.avg-checklist li { display: grid; grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.avg-checklist input[type=checkbox], .avg-checklist button { margin-top: 8px; }
.avg-checklist input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--nq-brand); }
.avg-index { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 700px) {
    .avg-checklist li { grid-template-columns: auto minmax(0, 1fr) auto; }
    .avg-checklist li textarea:nth-of-type(2) { grid-column: 2; grid-row: 2; }
    .avg-checklist li button { grid-column: 3; grid-row: 1; }
}
/* Beheer → Back-up */
.backup-status { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 6px; }
.backup-status dt { font-weight: 600; }
.backup-status dd { margin: 0; overflow-wrap: anywhere; }
.backup-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.backup-list li { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; overflow-wrap: anywhere; }
.backup-list small { color: var(--nq-muted); }
.backup-run.error span { color: var(--nq-error); }
#backup-form > label { max-width: 760px; }
/* Suggestion 195: the fields of a row line up, whatever the length of their label. */
#billing-settings-form .billing-grid > label { justify-content: space-between; }
#billing-settings-form > fieldset.wide { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
/* The promotion's six fields on one line on a wide screen (Geert, 27 Oct 2026: "zet alles m.b.t. promotie op 1 lijn"). */
#billing-settings-form > fieldset.wide.promo-group { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
/* Suggestion 238: the label on top, the field at the bottom of its cell, so the fields of a row line up. */
#billing-settings-form .price-group > label { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
#billing-settings-form .price-group > p { margin: 0; line-height: 1.5; }
#billing-settings-form .price-group > ul { margin: 0; padding-left: 18px; line-height: 1.5; }
#billing-settings-form .price-group > label.price-switch { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 8px; }
#billing-settings-form .price-group > label.price-switch input { width: auto; margin-top: 3px; }
#billing-settings-form .price-group > label.price-switch .switch-name { flex: none; white-space: nowrap; }
.auth-plan { grid-column: 1 / -1; border: 1px solid var(--nq-line); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.auth-plan legend { font-weight: 700; padding: 0 4px; }
.auth-plan .plan-option { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 10px; margin: 8px 0; font-weight: 400; text-align: left; cursor: pointer; }  /* 284: left, radios under each other */
.auth-plan .plan-option input { width: auto; flex: none; margin: 3px 0 0; }
.feedback-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feedback-list > li { border: 1px solid var(--nq-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.feedback-list > li.afgehandeld { background: #fafbfa; }
.feedback-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback-head small { color: var(--nq-muted); }
.feedback-text { margin: 0; white-space: pre-wrap; }
.feedback-reply { margin: 0; padding: 8px 10px; border-radius: 8px; background: #ecfdf3; color: var(--nq-success); white-space: pre-wrap; }
.feedback-answer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feedback-answer textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #c7d4cf; border-radius: 8px; }

/* The workspace's own layout lives in workspace.css. */
.online-account, .online-nav { display: none; }

/* Landing page */
.landing { display: none; }
.landing-active .landing { display: block; }
.landing-active .patient-header, .landing-active #dashboard, .landing-active #empty-state { display: none !important; }
.landing-header { margin-bottom: 26px; }
.landing-header .eyebrow { display: block; font-size: 12px; letter-spacing: 1.2px; color: #78877c; font-weight: 600; text-transform: capitalize; margin-bottom: 6px; }
.landing-header h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.3px; }
.landing-header .subtitle { margin: 0; color: var(--text-secondary, #69766f); font-size: 15px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.landing-card { background: #fff; border: 1px solid var(--border-color, #dfe6df); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 150px; }
.landing-card h2 { font-size: 15px; font-weight: 700; margin: 0; color: var(--text-primary, #243b34); }
.landing-list { display: flex; flex-direction: column; gap: 6px; }
.landing-patient { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: #f5f8f4; color: var(--text-primary, #243b34); font: inherit; cursor: pointer; text-decoration: none; }
.landing-patient:hover { background: #eaf4ee; border-color: #dcebe1; }
.landing-patient.static { cursor: default; }
.landing-patient strong { font-size: 15px; }
.landing-patient small { color: var(--text-secondary, #69766f); font-size: 13px; }
.landing-empty { margin: 0; color: var(--text-secondary, #69766f); font-size: 14px; }
.landing-line { margin: 0; font-size: 14px; }
.landing-line.muted { color: var(--text-secondary, #69766f); }
.landing-line.warn { color: #93370d; }
.landing-alert { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #f04438; border-left-width: 6px; border-radius: 12px; background: #fef3f2; color: #7a271a; }
.landing-alert h2 { margin: 0 0 8px; font-size: 17px; color: #b42318; }
.landing-alert ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.landing-alert p { margin: 0; font-size: 13px; }
.landing-alert a { color: #b42318; font-weight: 600; }
.landing-link { margin-top: auto; color: var(--primary-color); font-weight: 600; font-size: 14px; text-decoration: none; }
.landing-link:hover { text-decoration: underline; }
.landing-cta { align-self: flex-start; text-decoration: none; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-action { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 13px; border-radius: 8px; border: 1px solid #cedbd1; background: #fff; color: var(--primary-color); cursor: pointer; text-decoration: none; }
.landing-action:hover { background: #f3f7f1; border-color: var(--primary-color); }
@media (max-width: 700px) { .landing-header h1 { font-size: 24px; } }

/* Touch sizes for the shared header and settings chips on phones and tablets. */
@media (max-width: 900px) {
    .shell-nav a, .shell-logout, .shell-suggest, .shell-suggestions { min-height: 40px; padding: 9px 12px; }
    /* Next to the links only a practice's logo fits (its name stays for screen readers); without a logo the name shows. */
    .shell-brand img + .shell-brand-name { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); }
    .settings-toc a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 12px; }
    .billing-grid { grid-template-columns: 1fr; }
    .billing-grid .span { grid-column: auto; }
}

/* Settings and agenda on phones: brand on the first row, the links in one swipeable row, not sticky. */
@media (max-width: 700px) {
    .shell-page .shell-header { position: relative; padding: 8px 12px; gap: 4px; }
    .shell-page .shell-brand { flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .shell-page .shell-nav { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
    .shell-page .shell-nav > * { flex: 0 0 auto; white-space: nowrap; }
    #agenda-prev, #agenda-next, #agenda-today { min-width: 40px; min-height: 40px; }
    .shell-page select, .shell-page input:not([type=checkbox]):not([type=radio]) { min-height: 42px; }
    .auth-help summary { padding: 10px 0; }
}
/* The administrator's menu is longer: already on tablets the brand gets the first row and the menu one swipeable row. */
@media (max-width: 1000px) {
    .shell-page .shell-admin { gap: 4px; }
    .shell-page .shell-admin .shell-brand { flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .shell-page .shell-admin .shell-nav { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
    .shell-page .shell-admin .shell-nav > * { flex: 0 0 auto; white-space: nowrap; }
    /* A soft edge where more of the menu is out of sight (shell.js sets more-left and more-right). */
    .shell-page .shell-admin::before, .shell-page .shell-admin::after { content: ''; position: absolute; bottom: 0; height: 52px; width: 40px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .15s; }
    .shell-page .shell-admin::before { left: 0; background: linear-gradient(to right, #fff 25%, rgba(255, 255, 255, 0)); }
    .shell-page .shell-admin::after { right: 0; background: linear-gradient(to left, #fff 25%, rgba(255, 255, 255, 0)); }
    .shell-page .shell-admin.more-left::before, .shell-page .shell-admin.more-right::after { opacity: 1; }
}

/* Show/hide next to password fields. */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 76px; box-sizing: border-box; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 4px 10px; border: 1px solid var(--nq-line);
    border-radius: 8px; background: #fff; color: var(--nq-brand); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.password-toggle:hover { border-color: var(--nq-brand); }

/* Remembered devices in Settings. */
.device-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--nq-line); border-radius: 10px; }
.device-list li div { display: flex; flex-direction: column; min-width: 0; }
.device-list small { color: var(--nq-muted); }

.admin-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-add label { flex: 1 1 260px; }

/* Start page: all patients, most recently placed sensor first. */
.landing-wide { margin-bottom: 16px; min-height: 0; }
.landing-table .landing-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 12px; }
.landing-row span { font-size: 14px; color: var(--nq-muted); }
.landing-row .landing-live { color: var(--nq-success); font-weight: 600; }
.landing-row .demo-tag { font-size: var(--fs-small); color: #6b4a00; }
.landing-more { align-self: flex-start; border: 0; background: none; font: inherit; cursor: pointer; padding: 6px 0; }
.landing-note { margin: 0; font-size: 13px; color: var(--nq-muted); }
@media (max-width: 600px) {
    .landing-table .landing-row { grid-template-columns: 1fr; gap: 2px; }
}
/* Agenda: calendar link dialog. */
.settings-check, .settings-form .settings-check { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; font-weight: 600; }
.settings-check input, .settings-form .settings-check input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: 0 0 auto; }
.calendar-warning { font-size: 0.9rem; }
#calendar-url { width: 100%; font-size: 0.85rem; }

/* ---- Beheer: the main menu in a left column, views, the items of the chosen group at the top, and a suggestions sidebar ---- */
.beheer-page .beheer-layout { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr) 360px; align-items: start; min-height: calc(100vh - var(--shell-height, 58px)); }
/* An administrator's other pages (Instellingen) get the same column next to their content. */
.admin-layout { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); align-items: start; min-height: calc(100vh - var(--shell-height, 58px)); }
/* A page as a small window of its own (?venster=1): only the page, without the header and the menu. */
body.shell-window .shell-header, body.shell-window .beheer-menu { display: none !important; }
body.shell-window .admin-layout { display: block; min-height: 0; }
body.shell-window .admin-layout > .shell-main { padding: 14px 16px; max-width: none; width: auto; }
.agenda-preset { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #e8f1f3; color: #0b5565; font-weight: 600; }
/* Next to the menu column the page starts at the left, not centred (suggestion 116). */
.admin-layout > .shell-main, .admin-layout > .shell-main.agenda, .admin-layout > .shell-main.beheer {
    width: 100%; max-width: var(--page-max); margin: 0; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.beheer-menu { position: sticky; top: var(--shell-height, 58px); display: flex; flex-direction: column; gap: 4px; padding: 24px 12px; border-right: 1px solid var(--nq-line); min-height: calc(100vh - var(--shell-height, 58px)); background: #fff; }
.beheer-menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--nq-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.beheer-menu a:hover { background: var(--nq-page); }
.beheer-menu a[aria-current="page"], .beheer-menu a[aria-current="true"] { background: #e9f1f3; color: var(--nq-brand); }
.beheer-tabs { position: sticky; top: var(--shell-height, 58px); z-index: 10; display: flex; flex-wrap: wrap; gap: 0 4px; margin: -8px 0 18px; padding-top: 4px; border-bottom: 1px solid var(--nq-line); background: var(--nq-page); }
.beheer-tabs[hidden] { display: none; }
.beheer-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--nq-muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.beheer-tabs a:hover { color: var(--nq-brand); }
.beheer-tabs a[aria-current="page"] { color: var(--nq-brand); border-bottom-color: var(--nq-brand); }
.menu-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #fef0c7; color: #93370d; font-size: 0.75rem; font-weight: 700; text-align: center; }
.beheer-main.shell-main { max-width: var(--page-max); width: 100%; padding: 24px var(--page-pad) 64px; margin: 0; }
.beheer-suggestions { position: sticky; top: var(--shell-height, 58px); height: calc(100vh - var(--shell-height, 58px)); overflow-y: auto; border-left: 1px solid var(--nq-line); background: #fff; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.suggestions-head { display: flex; align-items: center; gap: 8px; }
.suggestions-head h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.suggestions-close { display: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--nq-page); font-size: 1.3rem; cursor: pointer; }
/* Suggestion 227: the suggestions as a loose window, moved by its top bar (or ⠿ with the arrow keys) and resized by
   its lower right corner; from 900 px on. */
/* Between the pages of NutriIQ the header and the menu stay where they are (suggestion 229): the browser keeps the
   old page until the new one is ready, then fades only what changed. (Browsers without it simply open the page.) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
}
.shell-header { view-transition-name: nq-header; }
.beheer-menu { view-transition-name: nq-menu; }
/* Suggestion 227: a dialog moved by its title bar (shell.js movableDialog). */
.dialog-bar { display: flex; align-items: center; gap: 8px; cursor: move; user-select: none; touch-action: none; }
.dialog-move { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--nq-page); color: var(--nq-muted); font-size: 1rem; cursor: move; }
@media (max-width: 699px) { .dialog-bar { cursor: auto; touch-action: auto; } .dialog-move { display: none; } }
.suggestions-float { border: 1px solid var(--nq-line); border-radius: 8px; background: #fff; color: var(--nq-brand); font: inherit; font-size: 0.8rem; font-weight: 600; padding: 6px 9px; cursor: pointer; white-space: nowrap; }
.suggestions-move { width: 30px; height: 32px; border: 0; border-radius: 8px; background: var(--nq-page); color: var(--nq-muted); font-size: 1.1rem; cursor: move; touch-action: none; }
body.suggestions-floating .beheer-suggestions { position: fixed; z-index: 60; transform: none; visibility: visible; transition: none; resize: both; overflow: auto;
    min-width: 300px; min-height: 240px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px);
    border: 1px solid var(--nq-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 40, 54, .25); }
body.suggestions-floating.suggestions-folded .beheer-suggestions { display: none; }
body.beheer-page.suggestions-floating .beheer-layout { grid-template-columns: var(--side-width) minmax(0, 1fr); }
body.suggestions-floating .suggestions-head { cursor: move; user-select: none; touch-action: none; }
@media (max-width: 899px) { .suggestions-float, .suggestions-move { display: none !important; } }
.suggestion-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.suggestion-search { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.9rem; padding: 8px 10px; border: 1px solid #c7d4cf; border-radius: 8px; background: #fff; }
.suggestion-filter { border: 1px solid var(--nq-line); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--nq-muted); cursor: pointer; }
.suggestion-filter.active { background: var(--nq-brand); border-color: var(--nq-brand); color: #fff; }
.suggestion-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.suggestion { border: 1px solid var(--nq-line); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.suggestion.status-aandacht { border-left-color: var(--nq-error); }
.suggestion.status-open { border-left-color: #f59e0b; }
.suggestion.status-bezig { border-left-color: #3b82f6; }
.suggestion.status-afgehandeld { border-left-color: var(--nq-success); background: #fafbfa; }
.suggestion.status-afgewezen { border-left-color: #94a3b8; background: #fafbfa; }
.suggestion-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suggestion-head small { margin-left: auto; color: var(--nq-muted); }
.suggestion-meta { color: var(--nq-muted); font-size: 0.78rem; }
.suggestion-text { margin: 0; font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.suggestion-note, .suggestion-reply { margin: 0; font-size: 0.85rem; padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.suggestion-note { background: #eef5f7; }
.suggestion-reply { background: #f3f7f5; color: var(--nq-muted); }
.suggestion .brand-link { align-self: flex-start; font-size: 0.85rem; }
.suggestion-edit { gap: 8px; }
.suggestion-edit textarea { font-size: 0.9rem; }
.status-pill[data-kind="busy"] { background: #eff6ff; color: #1d4ed8; }
.status-pill[data-kind="muted"] { background: #f1f5f9; color: #475569; }
.suggestions-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 40; }

/* Overview */
.dashboard-kpis { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.beheer-total small { color: var(--nq-muted); font-size: 0.75rem; margin-top: 2px; }
.beheer-total.link { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s; }
.beheer-total.link:hover, .beheer-total.link:focus-visible { border-color: var(--nq-brand); }
.beheer-totals.compact .beheer-total strong { font-size: 1.3rem; }
.attention-card { border-left: 4px solid #f59e0b; }
.attention-card h2 { margin-top: 0; }
.attention-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.attention-list a { color: var(--nq-brand); font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-card { margin: 0; min-width: 0; }
.dashboard-card.wide { grid-column: 1 / -1; }
.dashboard-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dashboard-head h2 { margin: 0; font-size: 1.05rem; }
.dashboard-head small { color: var(--nq-muted); }
.chart-box { position: relative; height: 300px; }
.chart-box.small { height: 200px; }
.beheer-table.compact td, .beheer-table.compact th { padding: 8px 10px; }
.plan-bars { display: flex; flex-direction: column; gap: 10px; }
.plan-bar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 0.9rem; }
.plan-bar strong { text-align: right; }
.plan-track { height: 12px; border-radius: 999px; background: var(--nq-page); overflow: hidden; }
.plan-fill { height: 100%; border-radius: 999px; }
.plan-fill.paid { background: var(--nq-brand); }
.plan-fill.trial { background: #98bf13; }
.plan-fill.free { background: #94a3b8; }

.beheer-page.suggestions-folded .beheer-layout { grid-template-columns: var(--side-width) minmax(0, 1fr); }
.beheer-page.suggestions-folded .beheer-suggestions { display: none; }
.beheer-page .suggestions-close { display: inline-block; }
@media (max-width: 1600px) {
    .beheer-page .beheer-layout { grid-template-columns: var(--side-width) minmax(0, 1fr) 320px; }
    .beheer-main.shell-main { padding-top: 20px; padding-bottom: 56px; }
}
@media (max-width: 1399px) {
    .beheer-page .beheer-layout, .beheer-page.suggestions-folded .beheer-layout { grid-template-columns: var(--side-width) minmax(0, 1fr); }
    .beheer-page.suggestions-folded .beheer-suggestions { display: flex; }
    .beheer-suggestions { position: fixed; top: 0; right: 0; bottom: 0; height: 100vh; width: min(400px, 92vw); z-index: 50; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; box-shadow: none; border-left: 0; }
    .suggestions-open .beheer-suggestions { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
    .suggestions-close { display: inline-block; }
}
@media (max-width: 860px) {
    .beheer-page .beheer-layout, .admin-layout { display: block; }
    .admin-layout > .shell-main { padding-left: 16px; padding-right: 16px; }
    /* Phones and tablets: the main menu is one swipeable row under the header. */
    .beheer-menu { position: sticky; top: var(--shell-height, 58px); z-index: 20; flex-direction: row; min-height: 0; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--nq-line); overflow-x: auto; scrollbar-width: none; }
    .beheer-menu a { flex: 0 0 auto; padding: 9px 12px; min-height: 40px; }
    /* The practice's menu in that row: the search keeps a usable width; no column spacing or line. */
    .beheer-menu.practice-menu { padding: 8px 12px; gap: 4px; }
    .beheer-menu.practice-menu .menu-patients, .practice-menu a.menu-new-patient, .practice-menu a.menu-subitem { margin: 0; }
    .practice-menu a.menu-split { margin: 0; }
    .practice-menu a.menu-split::before { content: none; }
    .beheer-menu .menu-search { flex: 0 0 200px; margin: 0; }
    /* The menu is one row here: the patients found open under it, over the page. */
    .menu-results { position: fixed; top: calc(var(--shell-height, 58px) + 60px); left: 12px; right: 12px; z-index: 40; margin: 0; padding: 6px;
                    max-height: 50vh; overflow-y: auto; background: #fff; border: 1px solid var(--nq-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 40, 54, .14); }
    .beheer-tabs { position: static; gap: 2px 2px; margin: -4px 0 16px; padding-top: 0; }
    .beheer-tabs a { padding: 8px 9px; font-size: 0.9rem; }
    .beheer-main.shell-main { padding: 16px 14px 48px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .chart-box { height: 260px; }
}

/* ---- Sensor use per patient and month (Settings and Beheer) ------------------------- */
.sensor-usage { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.usage-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.usage-range { font-weight: 600; font-size: 0.9rem; }
.usage-wrap { overflow-x: auto; border: 1px solid var(--nq-line); border-radius: 12px; background: #fff; }
.usage-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.usage-table th, .usage-table td { padding: 8px 10px; border-bottom: 1px solid var(--nq-line); text-align: left; white-space: nowrap; }
.usage-table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nq-muted); }
.usage-table thead th.current { color: var(--nq-brand); }
.usage-table tbody th, .usage-table tfoot th { position: sticky; left: 0; background: #fff; font-weight: 600; z-index: 1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.usage-table tbody th small { display: block; font-weight: 400; color: var(--nq-muted); font-size: 0.75rem; }
.usage-table tfoot td, .usage-table tfoot th { font-weight: 700; border-bottom: 0; }
.usage-cell { min-width: 96px; position: relative; }
.usage-cell.counted { background: #eef6f8; }
.usage-strip { display: block; width: 100%; height: 8px; margin-bottom: 4px; background: #e6ece9; border-radius: 3px; }
.usage-strip rect { fill: #b6c4be; }
.usage-cell.counted .usage-strip rect { fill: var(--nq-brand); }
.usage-days { font-weight: 600; }
.usage-flag { margin-left: 6px; color: var(--nq-brand); font-weight: 700; }
.usage-flag.soft { color: var(--nq-muted); }
.usage-none { color: #b6c4be; }
.usage-legend { margin: 0; font-size: 0.8rem; color: var(--nq-muted); line-height: 1.6; }
.usage-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.usage-key.counted { background: #eef6f8; border: 2px solid var(--nq-brand); }

/* Beheer, after testing: forms, touch sizes, tables, overview grid. */
.settings-form.admin-add { flex-direction: row; align-items: flex-end; flex-wrap: wrap; max-width: 640px; }
.settings-form.admin-add label { flex: 1 1 260px; }
#practice-billing-form .billing-grid { max-width: none; }
#sensorgebruik { scroll-margin-top: calc(var(--shell-height, 58px) + 16px); }
.auth-secondary:disabled, .auth-primary:disabled { opacity: .45; cursor: default; }
.suggestion-edit-button { align-self: flex-start; }
.attention-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--nq-brand); cursor: pointer; text-decoration: underline; }
.dashboard-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-grid .dashboard-card:has(#revenue-years), .dashboard-grid .dashboard-card:has(#sensor-years) { grid-column: 1 / -1; }
.beheer-status small { display: block; margin-top: 6px; color: var(--nq-muted); font-size: 0.78rem; }
.beheer-table td:first-child { min-width: 170px; }
.usage-table { border-collapse: separate; border-spacing: 0; }
.usage-table thead th:first-child { position: sticky; left: 0; background: #fff; z-index: 2; }
.usage-table tbody th, .usage-table tfoot th { box-shadow: 1px 0 0 var(--nq-line); }
@media (max-width: 1100px) { .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
    .suggestions-close { width: 40px; height: 40px; }
    .suggestion-filter { min-height: 40px; padding: 8px 12px; }
    .beheer-suggestions .auth-secondary.small, .beheer-suggestions .auth-primary.small, .usage-nav .auth-secondary.small { min-height: 40px; }
    .attention-list li { padding: 6px 0; }
    .shell-nav a, .shell-logout, .shell-suggest, .shell-suggestions { min-height: 40px; }
}

/* Beheer, second round. */
dialog .shell-toast { position: static; transform: none; max-width: none; margin: 10px 0 0; box-shadow: none; }
.settings-form.admin-add button { align-self: flex-end; }
.beheer-totals.compact { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
.beheer-table.compact th { white-space: normal; }
@media (max-width: 1600px) {
    .beheer-table td { padding: 10px 9px; }
    .beheer-table th { padding: 9px; }
    .beheer-table .beheer-users { min-width: 170px; }
}
@media (pointer: coarse) {
    .shell-brand { min-height: 40px; }
    .beheer-suggestions select { min-height: 42px; }
}

.libre-terms { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.libre-terms p { margin: 0; }

#libre-terms-new { margin-top: 14px; }
#libre-terms { margin: 8px 0 12px; }
#libre-badge { white-space: nowrap; flex-shrink: 0; }

/* Praktijken: one card per practice */
.practice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
/* Praktijken as a list with a detail page (suggestion 127). */
.practice-table td { vertical-align: middle; }
/* Ten columns next to the suggestions panel: compact, headings may wrap, the Detail button always in view. */
.practice-table th, .practice-table td { padding: 10px 7px; }
.practice-table th { white-space: normal; font-size: 0.7rem; }
.practice-table td:first-child { min-width: 150px; }
.practice-table td:last-child { text-align: right; white-space: nowrap; }
.practice-table .status-pill { white-space: nowrap; }
.practice-table td small { display: block; color: var(--nq-muted); }
.practice-table tr.status-pending td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.practice-table tr.status-suspended td:first-child { box-shadow: inset 4px 0 0 var(--nq-error); }
#practice-detail > .brand-link { margin: 0 0 12px; }
#practice-detail .practice-card { max-width: 980px; }
.practice-card { background: #fff; border: 1px solid var(--nq-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.practice-card.status-pending { border-left: 4px solid #f59e0b; }
.practice-card.status-suspended { border-left: 4px solid var(--nq-error); opacity: .9; }
.practice-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.practice-card-head h3 { margin: 0; font-size: 1.1rem; }
.practice-card-head small, .practice-card .muted { color: var(--nq-muted); }
.practice-card-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 'Gesprek opnemen' on or off for the practice (suggestion 188). */
.practice-recording { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; white-space: nowrap; cursor: pointer; }
.practice-recording input { width: 16px; height: 16px; margin: 0; }
.practice-numbers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px; background: var(--nq-page); border-radius: 10px; }
.practice-numbers div { min-width: 0; }
.practice-numbers dt { font-size: 0.72rem; color: var(--nq-muted); text-transform: uppercase; letter-spacing: .03em; }
.practice-numbers dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; }
.practice-card-body { display: grid; grid-template-columns: 1fr; gap: 10px; }
.practice-card-body h4 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nq-muted); }
.practice-card-body p { margin: 0; font-size: 0.9rem; }
.practice-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin: 0; font-size: 0.88rem; }
.practice-fact { min-width: 0; }
.practice-fact dt { color: var(--nq-muted); font-size: 0.75rem; }
.practice-fact dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
/* Beheer: the invitation of a practice whose account is not set up yet (Geert, 26 Oct 2026) */
.practice-invite { border: 1px solid #f0d9a8; background: #fff8ec; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.practice-invite input { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid #e6cf9f; border-radius: 8px; background: #fff; font: inherit; font-size: var(--fs-hint); }
.practice-row .invite-note { display: block; color: #8a4b00; }
.practice-user { border-top: 1px solid var(--nq-line); padding-top: 8px; margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.practice-user-head { display: flex; flex-direction: column; }
.practice-user-head small { color: var(--nq-muted); font-size: 0.78rem; }
.practice-devices .label { color: var(--nq-muted); font-size: 0.75rem; }
.device-mini { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.device-mini li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.85rem; }
.device-mini small { color: var(--nq-muted); }
.practice-card footer { border-top: 1px solid var(--nq-line); padding-top: 10px; }
#admins > li { display: block; }
@media (max-width: 700px) {
    .practice-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .practice-facts { grid-template-columns: 1fr; }
}
/* Suggestions: status right on the entry, remarks log */
/* Not inside .suggestion-tools: a visible primary button there pauses the automatic refresh of the list. */
.suggestion-tools, .suggestion-approve-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.suggestion-quick-status { font: inherit; font-size: 0.85rem; padding: 6px 8px; border: 1px solid #c7d4cf; border-radius: 8px; background: #fff; min-height: 34px; }
.suggestion-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.suggestion-comments li { background: #fff4e5; border-radius: 8px; padding: 6px 10px; }
.suggestion-comments small { color: var(--nq-muted); font-size: 0.75rem; }
.suggestion-comments p { margin: 2px 0 0; font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (pointer: coarse) { .suggestion-quick-status { min-height: 42px; } }

.practice-numbers { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.practice-numbers dd { overflow-wrap: anywhere; }
.practice-devices .label { color: var(--nq-muted); font-size: 0.75rem; margin-top: 4px; }

/* Settings: one page per menu option */
.settings-toc { position: sticky; top: var(--shell-height, 58px); z-index: 5; background: var(--nq-page); padding: 8px 0; }
.settings-toc a[aria-current="page"] { background: var(--nq-brand); border-color: var(--nq-brand); color: #fff; font-weight: 600; }
@media (max-width: 700px) { .settings-toc { position: static; } }
/* Start page: actions, search, figures */
.landing-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.landing-toolbar .landing-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.landing-search input { width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; border: 1px solid #c7d4cf; border-radius: 10px; background: #fff; box-sizing: border-box; }
.landing-search ul { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--nq-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 40, 54, .14); }
.landing-search li button { width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.landing-search li button:hover, .landing-search li button:focus-visible { background: #e9f1f3; }
.landing-search small { color: var(--nq-muted); }
.landing-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.landing-kpi { background: #fff; border: 1px solid var(--nq-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.landing-kpi strong { font-size: 1.6rem; line-height: 1.15; }
.landing-kpi span { color: var(--nq-muted); font-size: 0.85rem; }
.landing-kpi small { color: var(--nq-muted); font-size: 0.75rem; }
.landing-chart { height: 220px; position: relative; }

/* Agent watching the suggestions (administrators only): a little robot peeks over the edge while it watches. */
.agent-status, .agent-pill { position: relative; margin: 0; display: flex; align-items: flex-end; border-bottom: 2px solid var(--nq-line); }
/* In the header a smaller robot. Its bubble hangs under the header, not the pill: a menu that scrolls sideways would cut it off. */
.shell-nav .agent-pill { position: static; align-self: center; margin: 0 4px; padding: 0 3px; }
.shell-nav .agent-robot { width: 44px; height: 32px; }
.shell-nav .agent-spoken { left: 0; top: 0; }  /* likewise placed in the header, so it cannot widen a phone's page */
.agent-status { padding-top: 4px; margin-bottom: 10px; }
.agent-pill:empty, .agent-status:empty { display: none; }
.agent-robot { display: block; width: 58px; height: 42px; padding: 0; border: 0; border-radius: 10px 10px 0 0; background: none; cursor: pointer; overflow: hidden; color: var(--nq-brand); }
.agent-robot:focus-visible { outline: 2px solid var(--nq-brand); outline-offset: 2px; }
.agent-robot svg { display: block; width: 100%; height: 100%; }
.agent-robot .robot { transform: translateY(14px); transform-box: view-box; transform-origin: 32px 46px; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
[data-active="true"] .agent-robot .robot { transform: translateY(0); animation: robot-peek 7s ease-in-out 1s infinite; }
.robot-head { fill: #e7f4f2; stroke: currentColor; stroke-width: 2.5; }
.robot-ear, .robot-eyes circle, .robot-hands rect { fill: currentColor; }
.robot-antenna, .robot-closed, .robot-mouth { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.robot-light { fill: #94a3b8; }
.robot-eyes { transform-box: fill-box; transform-origin: center; }
.robot-hands rect { opacity: 0; transition: opacity .4s; }
.robot-z { font: 700 11px/1 system-ui, sans-serif; fill: #94a3b8; opacity: 0; }
[data-active="true"] .robot-light { fill: #22c55e; animation: robot-light 2.2s ease-in-out infinite; }
[data-active="true"] .robot-eyes { animation: robot-blink 4.5s infinite; }
[data-active="true"] .robot-closed, [data-active="false"] .robot-eyes, [data-active="false"] .robot-mouth { display: none; }
[data-active="true"] .robot-hands rect { opacity: 1; }
[data-active="false"] .agent-robot { color: #94a3b8; }
[data-active="false"] .robot-head { fill: #f1f5f9; }
[data-active="false"] .robot-z { animation: robot-z 3.2s ease-in-out infinite; }
@keyframes robot-peek { 0%, 72%, 100% { transform: translateY(0) rotate(0deg); } 78% { transform: translateY(-1px) rotate(-7deg); } 86% { transform: translateY(-1px) rotate(7deg); } 92% { transform: translateY(0) rotate(0deg); } }
@keyframes robot-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes robot-light { 50% { opacity: .4; } }
@keyframes robot-z { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(5px, -7px); } }
/* Only text to read: a click goes through it to whatever lies under it. */
.agent-bubble { display: none; position: absolute; z-index: 30; left: 74px; bottom: 6px; width: max-content; max-width: 260px; padding: 8px 10px; border: 1px solid var(--nq-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(0, 40, 54, .14); color: var(--nq-text); font-size: .8rem; line-height: 1.35; pointer-events: none; }
.agent-pill .agent-bubble { top: calc(100% - 2px); bottom: auto; left: auto; right: 16px; max-width: min(300px, calc(100vw - 32px)); white-space: normal; }
/* Wide Beheer: the docked suggestions panel lies under the robot, so the bubble opens left of it, clear of its buttons. */
@media (min-width: 1400px) { .beheer-page:not(.suggestions-folded) .agent-pill .agent-bubble { right: 372px; } }
@media (min-width: 1400px) and (max-width: 1600px) { .beheer-page:not(.suggestions-folded) .agent-pill .agent-bubble { right: 332px; } }
.agent-status .agent-bubble { left: 68px; right: 0; width: auto; max-width: none; }
.agent-robot:hover + .agent-bubble, .agent-bubble.open { display: block; }
/* Separate rule: a browser without :focus-visible (Safari before 15.4) would otherwise drop the whole list. */
.agent-robot:focus-visible + .agent-bubble { display: block; }
@media (prefers-reduced-motion: reduce) { .agent-robot .robot, .agent-robot * { animation: none !important; transition: none !important; } }
.suggestion-comments li.from-agent { background: #eef4ff; border-left: 3px solid #3b82f6; }
.suggestion.waits { box-shadow: 0 0 0 2px #3b82f6 inset; }

.agenda-chip.cancelled, .agenda-item.cancelled strong { text-decoration: line-through; opacity: .6; }
.agenda-item.cancelled small { color: var(--nq-muted); }

.device-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.device-name { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-weight: 600; font-size: 0.9rem; }
.device-name[hidden] { display: none; }
.device-name small { font-weight: 400; color: var(--nq-muted); }

/* Instellingen → Facturen: per month */
.month-picker { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin: 6px 0 8px; }
.month-picker label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.85rem; }
.month-picker select { min-height: 38px; min-width: 140px; }
.month-summary { margin: 4px 0 8px; font-weight: 600; }
.month-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.month-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.month-table th, .month-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--nq-line); white-space: nowrap; }
.month-table th { color: var(--nq-muted); font-size: 0.78rem; font-weight: 700; }
.month-table td:first-child { white-space: normal; min-width: 140px; }

/* Beheer → Facturatie: analyses without a known sensor number (started via CSV) stand out in red */
.csv-warning, .beheer-table td small.csv-warning { color: var(--nq-error); font-weight: 700; }
.beheer-table tr.csv-suspect td:first-child { box-shadow: inset 3px 0 0 var(--nq-error); }
.beheer-table .muted { color: var(--nq-muted); }
/* A billing choice an administrator made by hand */
.billing-card .beheer-table th { white-space: normal; vertical-align: bottom; }  /* Facturatie: many columns next to the suggestions */
#billing-detail h2 { margin-top: 10px; }
#billing-detail .beheer-table-wrap { margin-top: 12px; }
.beheer-table .billing-details { margin-top: 6px; }
.mail-delivery { border: 1px solid var(--nq-line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; background: #f8fbfa; }
.mail-delivery .beheer-note { margin: 6px 0 0; }
.mail-switch { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.mail-switch input, .mail-admins input { width: 18px; height: 18px; margin: 0; accent-color: var(--nq-brand); }
.mail-admins { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.mail-admins legend { font-weight: 700; font-size: 0.9rem; padding: 0; margin-bottom: 4px; }
.mail-admins label { display: flex; align-items: center; gap: 8px; cursor: pointer; overflow-wrap: anywhere; }
.manual-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #fff4e5; color: #8a4b00; }
.beheer-table td small.manual-note { color: #8a4b00; font-weight: 700; }
.feedback-history { margin-top: 14px; border-top: 1px solid var(--nq-line); padding-top: 10px; max-height: 40vh; overflow-y: auto; }
.feedback-history h3 { margin: 0 0 8px; font-size: 0.95rem; }
.month-table tr.not-billed td, .beheer-table tr.not-billed td { color: var(--nq-muted); }
.month-table td:nth-child(4) { white-space: normal; min-width: 180px; }
.agenda-chip:hover, .agenda-chip:focus-visible { outline: 2px solid var(--nq-brand); outline-offset: -1px; }

/* Screenshots with a suggestion */
.feedback-images { display: flex; flex-direction: column; gap: 6px; }
.feedback-image-pick { align-self: flex-start; position: relative; cursor: pointer; }
.feedback-image-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.feedback-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-thumbs li { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.feedback-thumbs img, .feedback-attachments img { width: 96px; height: 64px; object-fit: cover; border: 1px solid var(--nq-line); border-radius: 6px; background: #fff; }
.feedback-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }

/* Accepting a new version of the legal texts (shell.js), and the checkbox on the sign-up page */
.legal-dialog { max-width: 560px; }
.legal-list { margin: 0 0 12px; padding-left: 20px; }
.legal-list li { margin: 4px 0; }
.legal-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; line-height: 1.45; }
.legal-check input { margin-top: 3px; width: auto; flex: 0 0 auto; }
.auth-card .legal-check { flex-wrap: nowrap; }
.legal-check a { color: var(--nq-brand); }
.legal-card h2 { margin-top: 0; }
.legal-card h2 .status-pill { vertical-align: middle; font-size: 0.75rem; }
.legal-changes { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #f5d9a8; border-radius: 8px; background: #fffaeb; }
.legal-changes h3 { margin: 0 0 8px; font-size: 0.95rem; }
.legal-changes ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.legal-changes del { color: var(--nq-error); background: #fef3f2; text-decoration: line-through; }
.legal-changes ins { color: var(--nq-success); background: #ecfdf3; text-decoration: none; font-weight: 600; }
.legal-editor { width: 100%; box-sizing: border-box; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px 12px; border: 1px solid #c7d4cf; border-radius: 8px; resize: vertical; }
.shell-title.plain-case { text-transform: none; }
/* Beheer → E-mailteksten */
.mail-card > summary { cursor: pointer; font-size: 1.05rem; }
.mail-card > summary strong { margin-right: 6px; }
.mail-card[open] > summary { margin-bottom: 14px; }
.mail-card .settings-form { margin-bottom: 12px; }
.mail-subject { width: 100%; box-sizing: border-box; }
/* Inside the bold label, .settings-form's font: inherit would beat these classes. */
.mail-card .mail-subject { font-weight: 400; }
.mail-card .legal-editor { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mail-card .mail-placeholders { margin: 4px 0 12px; }
.mail-token { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.mail-long { color: #93370d; }
.mail-preview { margin-top: 12px; padding: 12px 14px; border: 1px dashed #c7d4cf; border-radius: 8px; background: #f8faf9; }
.mail-preview p { margin: 0 0 8px; overflow-wrap: anywhere; }
.mail-preview pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: inherit; }
.legal-dialog .legal-check { flex-direction: row; flex-wrap: nowrap; font-size: 0.95rem; }
.legal-dialog .legal-list a { color: var(--nq-brand); font-weight: 600; }
/* Subscription build plan, phase 4: /geblokkeerd, and a closed subscription in Beheer. */
.blocked-part { border-top: 1px solid var(--nq-line); margin-top: 16px; padding-top: 14px; }
.blocked-part h2 { font-size: 1rem; margin: 0 0 6px; }
.blocked-part p { margin: 0 0 10px; }
.practice-subscription.closed > p { color: var(--nq-error); font-weight: 600; }
/* Subscription build plan, phase 2: the subscription block on a practice card in Beheer. */
.practice-subscription > p { margin: 0 0 8px; }
.practice-subscription .beheer-table-wrap { margin-bottom: 8px; }
.subscription-periods td small { display: block; color: var(--nq-muted); font-size: 0.8rem; }
.subscription-periods tr.cancelled td { color: var(--nq-muted); text-decoration: line-through; }
.subscription-periods tr.cancelled td:last-child { text-decoration: none; }
.subscription-periods tr.upcoming td { color: var(--nq-muted); font-style: italic; }  /* suggestion 247: planned, not yet asked */
.subscription-periods tr.upcoming td:last-child { font-style: normal; }
.practice-readiness { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-weight: 600; font-size: 0.9rem; }
.practice-readiness.ready { background: #ecfdf3; color: var(--nq-success); }
.auth-card .auth-company { border: 1px solid var(--nq-line); border-radius: 10px; padding: 10px 14px 14px; margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Registration (suggestion 145): a side panel like www.nutriiq.eu and the fields two by two on a wide screen. */
.register-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr; }
/* The patient's consent page (suggestion 144): the statement as plain text with its line breaks. */
.consent-shell { max-width: 720px; }
.consent-statement { white-space: pre-line; border: 1px solid var(--nq-line); border-radius: 10px; padding: 16px 18px; margin: 12px 0 18px;
    background: var(--nq-page); font-size: 0.95rem; max-height: 60vh; overflow-y: auto; }
.register-side { background: linear-gradient(160deg, var(--nq-brand), var(--nq-brand-dark)); color: #fff; padding: 26px 24px; }
.register-side h1 { color: #fff; font-size: 1.6rem; line-height: 1.2; }
.register-side p { color: #d7e7ec; margin: 0 0 14px; }
.register-eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fd3e3 !important; margin-bottom: 8px !important; }
.register-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }
.register-steps small { display: block; font-weight: 400; color: #b9d6df; font-size: 0.85rem; }
.register-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; color: #d7e7ec; }
.register-points li::before { content: "✓"; color: #6ee7b7; font-weight: 800; margin-right: 8px; }
.register-side .register-links { margin: 0; font-size: 0.9rem; }
.register-side a { color: #fff; }
.register-card .register-form { padding: 24px; }
@media (max-width: 899px) { .register-points { display: none; } }  /* on a phone the form comes sooner */
@media (min-width: 900px) {
    .auth-wide .auth-shell { max-width: 1080px; }
    .register-card { grid-template-columns: 320px 1fr; }
    .register-side { padding: 36px 30px; }
    .register-card .register-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-content: start; padding: 32px; }
    .register-form > .auth-company, .register-form > .auth-intro, .register-form > .legal-check, .register-form > button { grid-column: 1 / -1; }
    .register-form .auth-company { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
    .register-form .auth-company legend { grid-column: 1 / -1; }
    .register-form .auth-company .full, .register-form > .full { grid-column: 1 / -1; }
    .register-form label { justify-content: flex-end; }  /* fields side by side line up, also when one has a hint */
}
.auth-card .auth-company legend { font-weight: 700; padding: 0 4px; }
.auth-card .auth-company textarea, .auth-card .auth-company select { font: inherit; width: 100%; box-sizing: border-box; }
.auth-payment { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 8px 0 12px; }
.auth-payment .auth-primary { text-decoration: none; display: inline-block; }
/* Files with a Beheer message or an answer (documents: a link with name and size) */
.feedback-attachments .feedback-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--nq-line);
    border-radius: 8px; color: var(--nq-brand); font-size: 0.85rem; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.feedback-attachments .feedback-file::before { content: "📄"; }
.upload-pick { display: flex; flex-direction: column; gap: 6px; }
.upload-pick .upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.upload-pick .upload-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.85rem; font-weight: 400; overflow-wrap: anywhere; }
.upload-pick input[type=file] { font-size: 0.85rem; font-weight: 400; max-width: 100%; }
@media (pointer: coarse) { .upload-pick .upload-list .brand-link { min-height: 40px; } }
/* Long file names without spaces wrap also in Safari before 15.4 (no overflow-wrap: anywhere there) */
.upload-pick .upload-list li span { min-width: 0; word-break: break-word; }
.feedback-attachments .feedback-file { min-width: 0; word-break: break-word; }

/* An administrator's Instellingen (suggestion 113): the parts as the same tab bar as Praktijken and Beheer have. */
.admin-layout .settings-toc { position: sticky; top: var(--shell-height, 58px); z-index: 10; display: flex; flex-wrap: wrap; gap: 0 4px; margin: -8px 0 18px; padding: 4px 0 0; border-bottom: 1px solid var(--nq-line); background: var(--nq-page); }
.admin-layout .settings-toc a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--nq-muted); font-weight: 600; font-size: 0.95rem; }
.admin-layout .settings-toc a:hover { color: var(--nq-brand); background: none; }
.admin-layout .settings-toc a[aria-current="page"] { background: none; color: var(--nq-brand); border-bottom-color: var(--nq-brand); }
@media (max-width: 860px) { .admin-layout .settings-toc { position: static; } }

/* Help: the layers patient, opvolgingstraject, analyses and consultaties as nested boxes (Geert, 26 Oct 2026) */
.help-layers { margin: 12px 0 14px; max-width: 760px; }
.help-layer { border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.help-layer > strong { font-size: var(--fs-label); color: var(--nq-brand-dark, #00384a); }
.help-layer > span { font-size: var(--fs-hint); color: var(--nq-muted); }
.help-layer > small { font-size: var(--fs-small); color: var(--nq-brand, #00516b); font-weight: 600; margin-top: 4px; }
.help-layer-patient { border: 1.5px solid #c7d4cf; background: #f6f9f8; }
.help-layer-traject { border: 1.5px solid #9cc3b5; background: #eef6f2; margin-top: 8px; }
.help-layer-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.help-layer-analyse { border: 1.5px solid #b9d27a; background: #f5f9e8; }
.help-layer-consult { border: 1.5px solid #9fc4d6; background: #eef5f9; }
@media (max-width: 600px) { .help-layer-row { grid-template-columns: minmax(0, 1fr); } }

/* ---- One type scale for all of NutriIQ (Geert, 26 Oct 2026: 'lettertypes en grootte van titels overal hetzelfde, idem
   voor menu, gewone tekst'). These sizes decide the type on every page; the dossier follows them in workspace.css. The
   layer uses !important on purpose: it sits above the older sizes spread over the stylesheets. ---- */
:root {
    --nq-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --fs-title: 28px;     /* the title of a page: the patient's name, Agenda, Instellingen, the greeting */
    --fs-section: 20px;   /* a section: a tab, a part of a page, a dialog */
    --fs-card: 16px;      /* a card or a block */
    --fs-sub: 14px;       /* a heading inside a card */
    --fs-text: 15px;      /* text and fields */
    --fs-intro: 14px;     /* the explanation under a title */
    --fs-label: 14px;     /* labels, buttons, tabs, the top bar */
    --fs-menu: 15px;      /* the menu on the left */
    --fs-hint: 13px;      /* a hint under a field, small notes, link buttons */
    --fs-small: 12px;     /* table heads, counters */
    --fs-figure: 22px;    /* a big number: the counts on the start page, the values at the top of a dossier */
}
@media (max-width: 760px) { :root { --fs-title: 24px; --fs-section: 18px; --fs-figure: 20px; } }
.shell-page { font-family: var(--nq-font); font-size: var(--fs-text); line-height: 1.6; }
.shell-page input, .shell-page select, .shell-page textarea, .shell-page button { font-family: inherit; }
/* The top bar and the menu */
.shell-brand { font-size: 18px !important; }
.shell-suggest, .shell-logout, .shell-suggestions { font-size: var(--fs-label) !important; font-weight: 600 !important; }
.beheer-menu.practice-menu a, .beheer-menu a { font-size: var(--fs-menu) !important; }
.practice-menu a.menu-subitem { font-size: var(--fs-label) !important; }
.beheer-tabs a, .settings-toc a { font-size: var(--fs-label) !important; }
/* Titles */
.landing-header h1, .shell-title { font-size: var(--fs-title) !important; line-height: 1.25 !important; font-weight: 700 !important; }
.landing-header .subtitle { font-size: var(--fs-text) !important; }
.settings-card h2, .agenda-period, .agenda-dialog h2, .legal-card h2 { font-size: var(--fs-section) !important; line-height: 1.3 !important; font-weight: 700 !important; }
.settings-card h3, .agenda-day h2, .landing-card h2, .food-sheet h3, .feedback-history h3, .legal-changes h3, .practice-card-head h3, .blocked-part h2,
.dashboard-head h2 { font-size: var(--fs-card) !important; line-height: 1.4 !important; font-weight: 700 !important; }
.practice-card-body h4 { font-size: var(--fs-sub) !important; font-weight: 700 !important; }
/* Labels, text, hints */
.settings-form label, .agenda-dialog label, .brand-fieldset legend, .billing-grid legend, .wizard-form label { font-size: var(--fs-label) !important; font-weight: 600 !important; }
.settings-form .consent-check, .legal-dialog .legal-check { font-size: var(--fs-label) !important; font-weight: 400 !important; }
.shell-main p, .shell-main li, .settings-card p { font-size: var(--fs-text); }
.settings-intro { font-size: var(--fs-intro) !important; line-height: 1.55; }  /* the explanation under a title, as in the dossier */
.brand-hint, .auth-hint, .settings-form small, .beheer-note, .wizard-note, .landing-note, .foods-source { font-size: var(--fs-hint) !important; }
.shell-main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .shell-main select, .shell-main textarea,
.agenda-dialog input:not([type=checkbox]):not([type=radio]):not([type=file]), .agenda-dialog select, .agenda-dialog textarea { font-size: var(--fs-text) !important; font-weight: 400 !important; }
/* Buttons */
.shell-page .auth-primary, .shell-page .auth-secondary, .agenda-dialog button:not(.dialog-move):not(.suggestions-close) { font-size: var(--fs-label) !important; font-weight: 600 !important; }
.brand-link, .auth-secondary.small, .password-toggle { font-size: var(--fs-hint) !important; }
/* Big numbers and the small capitals above a title */
.landing-kpi strong { font-size: var(--fs-figure) !important; }
.landing-kpi span { font-size: var(--fs-hint) !important; }
.landing-kpi small { font-size: var(--fs-small) !important; }
.eyebrow { font-size: var(--fs-small) !important; }
.month-picker label { font-size: var(--fs-label) !important; font-weight: 600 !important; }
.practice-fact dd, .usage-range, .auth-help summary { font-size: var(--fs-label) !important; }
/* The month of the agenda: day numbers as table cells, appointments as small labels (a dot on a phone, below) */
.agenda-number { font-size: var(--fs-label) !important; }
.agenda-more { font-size: var(--fs-small) !important; }
@media (min-width: 601px) { .agenda-chip { font-size: var(--fs-small) !important; } }
/* Tables */
.usage-table th, .usage-table thead th, .month-table th, .foods-table th, .beheer-table th, .practice-table th { font-size: var(--fs-small) !important; font-weight: 700 !important; }
.usage-table td, .month-table td, .foods-table td, .beheer-table td, .beheer-table { font-size: var(--fs-label) !important; }
@media (max-width: 760px) {
    /* 16 px in fields on a phone: smaller makes an iPhone zoom in when you type */
    .shell-main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .shell-main select, .shell-main textarea,
    .agenda-dialog input:not([type=checkbox]):not([type=radio]):not([type=file]), .agenda-dialog select, .agenda-dialog textarea { font-size: 16px !important; }
}
