@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap');

:root {
    --bg: #0F1115;
    --panel: #1A1D23;
    --bar: #171A1F;
    --accent: #D32F2F;
    --accent-hover: #B71C1C;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B6C3;
    --text-muted: #7A808A;
    --border: #282D36;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top right, #1d2129 0%, var(--bg) 45%);
    color: var(--text-primary);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.public-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Public footer (login / register / terms / privacy) */
.public-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px 16px 12px;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.public-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.public-footer a:hover {
    color: var(--text-secondary);
}

/* App-shell footer (ingelogd) */
.app-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bar);
}

.app-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.app-footer a:hover {
    color: var(--text-secondary);
}

.app-footer-sep {
    color: var(--border);
}

/* Legal pagina's (terms / privacy) */
.page-terms .public-main,
.page-privacy .public-main {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px;
}

.legal-brand {
    margin-bottom: 0;
}

.legal-page {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.legal-page-inner {
    padding: 36px 40px;
}

.legal-page-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legal-version,
.legal-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #1e2530;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
}

.legal-page h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.legal-page h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 28px 0 8px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.legal-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-page p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.91rem;
    margin: 6px 0;
}

.legal-page ul {
    color: var(--text-secondary);
    font-size: 0.91rem;
    line-height: 1.8;
    padding-left: 22px;
    margin: 8px 0;
}

.legal-page ul li {
    margin-bottom: 2px;
}

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-page-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-page-footer p {
    margin: 0;
}

.legal-page-footer a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-back-link {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}

.page-renter {
    background:
        radial-gradient(1100px 450px at 90% -5%, rgba(211, 47, 47, 0.34), transparent 60%),
        radial-gradient(900px 350px at 10% 5%, rgba(255, 255, 255, 0.06), transparent 60%),
        #0A0D12;
}

.page-renter .public-main {
    align-items: flex-start;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bar);
    border-right: 1px solid var(--border);
    padding: 24px 18px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.public-brand {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(23, 26, 31, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    backdrop-filter: blur(4px);
}

.public-brand span {
    font-weight: 700;
}

.public-brand.public-brand-static {
    pointer-events: none;
}

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

.sidebar a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 10px;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-alert-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    flex: 0 0 auto;
}

.sidebar a:hover,
.sidebar a.active {
    background: #20252d;
    color: var(--text-primary);
}

.main {
    padding: 24px;
}

.topbar {
    background: var(--bar);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.25rem;
}

.topbar-title-link {
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: 2px 6px;
    margin: -2px -6px;
    display: inline-flex;
    align-items: center;
}

.topbar-title-link:hover {
    background: #20252d;
}

.topbar-title-link:focus-visible {
    outline: 2px solid #3f4758;
    outline-offset: 2px;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.period-switch {
    display: flex;
    gap: 8px;
}

button {
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: var(--accent-hover);
}

.secondary-btn {
    background: #2a2f38;
}

.secondary-btn:hover {
    background: #343a44;
}

.logout-btn {
    text-decoration: none;
    color: var(--text-primary);
    background: #2a2f38;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}

.plus-btn {
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
}

.plus-btn:hover {
    background: var(--accent-hover);
}

.period-switch button {
    background: #2a2f38;
}

.period-switch .active {
    background: var(--accent);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.card h3 {
    margin-top: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.card-title-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-title-action h3 {
    margin: 0;
}

.metric-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-add-btn:hover {
    background: var(--accent-hover);
}

.card strong {
    font-size: 1.4rem;
}

.narrow {
    max-width: 520px;
    width: 100%;
}

.grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.two-col {
    grid-template-columns: 1fr 1fr;
}

.highlight {
    border-color: #40323a;
    box-shadow: inset 0 0 0 1px rgba(211, 47, 47, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 10px 8px;
    font-size: 0.92rem;
}

th {
    color: var(--text-secondary);
    font-weight: 600;
}

.status {
    background: #242a34;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

.status-inactive {
    background: rgba(211, 47, 47, 0.2);
    border: 1px solid rgba(211, 47, 47, 0.6);
    color: #ffb3b3;
    font-weight: 700;
}

.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vehicle-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    background: #20242c;
    border-radius: 10px;
    padding: 10px;
}

.vehicle-row .status {
    justify-self: start;
    align-self: center;
    display: inline-flex;
    width: auto;
    white-space: nowrap;
}

.dashboard-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashboard-card-head h3 {
    margin: 0;
}

.top-vehicles-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-vehicles-filter-icon {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: #171d27;
}

.top-vehicles-filter-icon svg {
    width: 14px;
    height: 14px;
}

.top-vehicles-filter select {
    margin: 0;
    min-width: 155px;
    padding: 7px 10px;
}

.top-metric-badge {
    background: rgba(211, 47, 47, 0.14);
    border: 1px solid rgba(211, 47, 47, 0.45);
    color: #ffc6c6;
    font-weight: 600;
}

.thumb {
    background: #2d323d;
    border-radius: 8px;
    width: 72px;
    height: 54px;
    overflow: hidden;
    border: 1px solid #394150;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inline-form,
.stack-form {
    display: flex;
    gap: 10px;
}

.inline-form {
    align-items: end;
}

.inline-form.wrap {
    flex-wrap: wrap;
}

.stack-form {
    flex-direction: column;
}

/* Terms acceptance checkbox */
.terms-acceptance-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #1e2530;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.terms-acceptance-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.terms-acceptance-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.terms-acceptance-label a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-acceptance-label a:hover {
    color: #ff8a8a;
}

input,
select,
textarea {
    width: 100%;
    background: #11151b;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 12px;
}

label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.muted {
    color: var(--text-muted);
}

.error-text {
    color: #ff8a8a;
}

.success-text {
    color: #4ade80;
}

a {
    color: #f2f4f8;
}

.qr-img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    display: block;
}

/* ── Deelpagina layout ── */
.sharing-top-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

/* Whitelabel-balk: compact, één horizontale rij */
.sharing-branding-card {
    padding: 10px 14px !important;
}

.sharing-branding-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sharing-branding-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.sharing-branding-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sharing-branding-form input[type="text"] {
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    padding: 6px 10px;
    height: 34px;
    border-radius: 8px;
}

.sharing-branding-form button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 6px 14px;
    height: 34px;
    min-height: unset;
    border-radius: 8px;
}

/* QR-kaart h3 kleiner */
.sharing-qr-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ── Compacte QR-small variant (sharing pagina) ── */
.qr-img-small {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    display: block;
    flex-shrink: 0;
}

/* Compacte QR + link rij */
.share-compact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.share-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.share-link-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-link-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.share-link-field-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.share-link-input {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: text;
}

.share-link-hint {
    font-size: 0.76rem;
    margin: 0;
}

/* Copy / download knop */
.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1e2530;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    min-height: unset;
    flex-shrink: 0;
}

.share-copy-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: #252c38;
    border-color: var(--accent);
    color: #fff;
}

.share-copy-btn.is-copied {
    border-color: #6ed39a;
    color: #6ed39a;
}

/* Oud grid (niet meer gebruikt maar bewaren voor compatibiliteit) */
.share-link-qr-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.share-link-col {
    min-width: 0;
}

.share-qr-col {
    display: flex;
    justify-content: center;
}

@media (max-width: 780px) {
    .share-link-qr-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .share-qr-col {
        justify-content: start;
    }
}

.brand-preview-logo {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #36404f;
    background: #11151b;
}

.renter-header {
    margin-bottom: 14px;
}

.renter-shell {
    width: min(1220px, 100%);
    display: grid;
    gap: 16px;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.renter-hero {
    background: linear-gradient(140deg, rgba(211, 47, 47, 0.18), rgba(26, 29, 35, 0.95));
    border: 1px solid #2c3038;
    border-radius: 14px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.renter-brand-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.renter-hero-logo-link {
    display: inline-flex;
    border-radius: 14px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.renter-hero-logo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.renter-hero-logo-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.renter-hero-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.renter-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f2a9a9;
    font-size: 0.68rem;
    margin: 0 0 2px;
}

.renter-hero h1 {
    margin: 0;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.2;
}

.renter-sub {
    margin: 4px 0 0;
    color: #c8ced9;
    max-width: 60ch;
    font-size: 0.8rem;
}

.renter-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.renter-auth-top {
    display: flex;
    justify-content: flex-end;
    align-items: start;
}

.renter-auth-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(15, 18, 23, 0.75);
    color: #f4f7fd;
    font-weight: 600;
    cursor: pointer;
}

.renter-profile-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.renter-auth-modal-card {
    width: min(560px, 94vw);
}
.renter-auth-switch-line {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #aeb8c9;
}

.renter-auth-switch-link {
    border: 0;
    background: none;
    padding: 0;
    color: #f25d5d;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

.renter-auth-switch-link:hover {
    color: #ff7b7b;
}

.renter-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.renter-auth-tab {
    background: #232935;
    border: 1px solid #3b4455;
    color: #dce3ef;
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
}

.renter-auth-tab.is-active {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}
.renter-badges span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: #f5f7fb;
    background: rgba(15, 17, 21, 0.55);
}

.renter-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.renter-filter {
    background: rgba(19, 23, 30, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.calendar-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #222834;
    border: 1px solid #364155;
    padding: 9px 12px;
    min-width: 320px;
}

.calendar-trigger-btn svg {
    width: 18px;
    height: 18px;
    fill: #d6dce7;
    flex-shrink: 0;
}

.calendar-trigger-btn span {
    display: grid;
    text-align: left;
}

.calendar-trigger-btn strong {
    font-size: 0.84rem;
    line-height: 1.1;
}

.calendar-trigger-btn small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.1;
}

.renter-filter input {
    width: auto;
    min-width: 200px;
}

.renter-filter select {
    width: auto;
    min-width: 170px;
}

.renter-date-wrap {
    display: grid;
    gap: 6px;
}

.renter-filter input[type="date"] {
    color-scheme: dark;
    min-width: 220px;
}

.renter-filter input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.3);
    cursor: pointer;
}

.filters-dropdown {
    position: relative;
}

.filters-dropdown summary {
    list-style: none;
    background: #2a2f38;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.filters-dropdown summary::-webkit-details-marker {
    display: none;
}

.filters-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(360px, 92vw);
    max-height: min(72vh, 620px);
    overflow: auto;
    background: #151922;
    border: 1px solid #313847;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 8px;
    z-index: 30;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reset-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.category-list span {
    background: #202733;
    border: 1px solid #323b4b;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.76rem;
}

.renter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.renter-card {
    background: linear-gradient(165deg, rgba(22, 26, 34, 0.97), rgba(18, 21, 27, 0.97));
    border: 1px solid #2a2f37;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
}

.renter-card-image {
    height: 170px;
    background: linear-gradient(140deg, rgba(211, 47, 47, 0.26), rgba(16, 20, 26, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d7dde8;
    font-size: 0.9rem;
}

.renter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

.renter-card-body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.renter-card-body h3 {
    margin: 0;
    font-size: 1.08rem;
}

.renter-card-body p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.open-application-btn {
    width: 100%;
}

.renter-price {
    margin: 2px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.renter-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.renter-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.renter-meta li {
    background: #202631;
    border: 1px solid #303744;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #d3dae6;
}

.renter-empty {
    background: rgba(19, 23, 30, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.renter-empty h3 {
    margin: 0 0 8px;
}

.renter-period-modal {
    width: min(740px, 100%);
    max-height: min(92vh, 760px);
    overflow: hidden;
}

.application-modal-card {
    width: min(680px, 100%);
}

.renter-period-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.period-summary-panel {
    border: 1px solid #313a49;
    background: linear-gradient(150deg, #171e2a, #111723);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    display: grid;
    gap: 10px;
}

.period-summary-panel strong {
    font-size: 0.98rem;
}

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

.period-preset-btn {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.period-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.period-time-row > div {
    display: grid;
    gap: 6px;
}

.renter-period-modal .agenda-weekdays {
    margin-bottom: 6px;
    gap: 6px;
}

.renter-period-modal .agenda-grid {
    gap: 6px;
}

.renter-period-modal .agenda-day {
    min-height: 58px;
    padding: 6px;
    border-radius: 10px;
    gap: 4px;
}

.renter-period-modal .agenda-day-head {
    font-size: 0.8rem;
}

.renter-period-modal .agenda-day-head > span {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
}

.renter-period-modal .period-time-row {
    margin: 8px 0;
}

.vehicle-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.vehicle-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.vehicle-link {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.vehicle-image {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 10px;
    background: #222833;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

.vehicle-image span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.danger-btn {
    background: #6d2323;
}

.danger-btn:hover {
    background: #511818;
}

.back-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-auto-form .status-select {
    min-width: 180px;
}

.vehicle-price {
    margin: 2px 0 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
}

.vehicle-price span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.vehicle-warning-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.vehicle-warning-dot::before {
    content: "!";
}

.vehicle-warning-inline {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #d32f2f;
    margin-left: 6px;
    vertical-align: middle;
}

.contracts-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.contracts-hero-compact {
    gap: 8px;
}

.contracts-hero-compact h2 {
    margin: 0;
    font-size: 1.35rem;
}

.contracts-jump-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.contracts-jump-card h3 {
    margin: 0;
}

.contracts-jump-card span {
    color: #ffb4b4;
    font-weight: 700;
}

.contracts-warning-bar {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(211, 47, 47, 0.55);
    background: rgba(211, 47, 47, 0.14);
    color: #ffd0d0;
    border-radius: 12px;
}

.contracts-hero h2 {
    margin: 4px 0 8px;
}

.contracts-hero-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contracts-hero-metrics > div {
    min-width: 110px;
    border: 1px solid #303745;
    background: #151a22;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
}

.contracts-hero-metrics strong {
    font-size: 1.15rem;
}

.contracts-hero-metrics span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.vehicle-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.vehicle-link-item {
    border: 1px solid #303845;
    background: #151a22;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.vehicle-link-item input {
    width: auto;
    margin: 0 0 6px;
}

.vehicle-card h3 {
    margin: 2px 0 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
}

.vehicle-gallery {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 190px));
    justify-content: start;
    gap: 8px;
}

.gallery-item {
    background: #151b24;
    border: 1px solid #2a3341;
    border-radius: 10px;
    overflow: hidden;
    width: 190px;
    aspect-ratio: 4 / 3;
    height: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vehicle-photo-item {
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vehicle-photo-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #44526a;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.vehicle-photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(11, 15, 22, 0.78);
    color: #ffd8d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
    transform: translateY(-2px);
    padding: 0;
}

.vehicle-photo-item:hover .vehicle-photo-delete-btn,
.vehicle-photo-item:focus-within .vehicle-photo-delete-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.vehicle-photo-delete-btn:hover {
    background: rgba(211, 47, 47, 0.28);
}

.vehicle-photo-delete-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.vehicle-photo-delete-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.vehicle-photo-delete-actions .danger-btn,
.vehicle-photo-delete-actions .secondary-btn {
    min-width: 72px;
}

.agenda-layout {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 14px;
}

.agenda-main h2 {
    margin: 0;
}

.agenda-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.agenda-nav {
    display: flex;
    gap: 8px;
}
.agenda-plus-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: #d32f2f;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.agenda-plus-btn:hover {
    background: #b71c1c;
}

.agenda-nav-btn {
    text-decoration: none;
    background: #2a2f38;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.agenda-cost-toggle {
    border: 1px solid rgba(211, 47, 47, 0.8);
    background: transparent;
    color: #ffb9b9;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.02rem;
    font-weight: 800;
}

.agenda-cost-toggle:hover {
    background: rgba(211, 47, 47, 0.15);
}

.agenda-cost-toggle.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.agenda-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.agenda-weekdays div {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.agenda-day {
    background: #151920;
    border: 1px solid #2b313d;
    border-radius: 12px;
    min-height: 130px;
    padding: 10px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.agenda-day.is-outside {
    opacity: 0.44;
}

.agenda-day.is-today {
    border-color: #2b313d;
    box-shadow: none;
}

.agenda-day.is-today .agenda-day-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(211, 47, 47, 0.22);
    border: 1px solid rgba(211, 47, 47, 0.7);
    color: #ffdada;
    font-weight: 700;
}

.agenda-day.is-selected {
    border-color: #e24a4a;
    box-shadow: inset 0 0 0 1px rgba(226, 74, 74, 0.42);
    background: #1b212c;
}

.agenda-day.is-full-booked {
    border-color: #8e2a2a;
    background: linear-gradient(160deg, rgba(102, 29, 29, 0.42), rgba(29, 18, 21, 0.92));
}

.agenda-capacity-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: rgba(211, 47, 47, 0.2);
    border: 1px solid rgba(211, 47, 47, 0.55);
    color: #ffb4b4;
    font-size: 0.74rem;
    padding: 2px 8px;
}

.agenda-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.agenda-day-head small {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.agenda-day-events {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.agenda-chip {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 8px;
    background: #232a36;
    border: 1px solid #364052;
    padding: 6px 8px;
    display: grid;
    gap: 2px;
    text-align: left;
    width: 100%;
    min-width: 0;
    cursor: pointer;
}

.agenda-chip strong {
    font-size: 0.74rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-chip span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-chip.type-rental {
    background: #2d2240;
    border-color: #6a4aa1;
}

.agenda-chip.type-rental.status-planned {
    background: #2d2240;
    border-color: #6a4aa1;
}

.agenda-chip.type-rental.status-confirmed {
    background: #1f3a2b;
    border-color: #3d9860;
}

.agenda-chip.type-rental.status-completed {
    background: #1f3148;
    border-color: #4f82bf;
}

.agenda-chip.type-maintenance {
    background: #30251b;
    border-color: #62482f;
}

.agenda-chip.type-reservation_request {
    background: #3a1f23;
    border-color: #a13a49;
}

.agenda-chip.type-cost {
    background: #2a1e1f;
    border-color: #7b3232;
}

.agenda-more {
    color: var(--text-muted);
    font-size: 0.74rem;
    padding-left: 2px;
}

.agenda-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.agenda-title-new {
    color: #d85a6a;
}

.agenda-card-new {
    background: #3a1f23;
    border-color: #a13a49;
}


.agenda-card-active {
    background: #1f3a2b;
    border-color: #3d9860;
}

.agenda-title-active {
    color: #6ed39a;
}.agenda-card-upcoming {
    background: #2d2240;
    border-color: #6a4aa1;
}
.agenda-title-upcoming {
    color: #9a7be0;
}

.agenda-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #121a26;
    border: 1px solid #2f3f56;
    color: #e8edf6;
    border-radius: 10px;
    padding: 10px 14px;
    z-index: 220;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.agenda-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.global-flash-toast,
.js-global-inline-flash {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1f7a45;
    border: 1px solid #39b36b;
    color: #f3fff7;
    border-radius: 10px;
    padding: 10px 14px;
    z-index: 240;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    max-width: min(92vw, 720px);
}

.global-flash-toast.is-visible,
.js-global-inline-flash.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.js-global-inline-flash p {
    margin: 0;
}

.js-global-inline-flash p + p {
    margin-top: 6px;
}

.agenda-feed {
    display: grid;
    gap: 8px;
}

.agenda-feed.limited-list {
    --agenda-list-item-height: 86px;
    max-height: calc((var(--agenda-list-item-height) * 3) + (8px * 2));
    overflow-y: auto;
    padding-right: 4px;
}

.agenda-feed.limited-list .agenda-feed-item {
    min-height: var(--agenda-list-item-height);
}

.agenda-feed-item {
    border: 1px solid #2b313d;
    background: #151920;
    border-radius: 10px;
    padding: 10px;
}

.agenda-feed-item p {
    margin: 0 0 4px;
    font-weight: 600;
}

.agenda-feed-item small {
    color: var(--text-secondary);
}

.cost-detail-content {
    padding-top: 4px;
}

.cost-detail-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: start;
}

.cost-detail-photo-wrap {
    width: 220px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2f3a4a;
    background: #11161e;
}

.cost-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cost-detail-info {
    display: grid;
    gap: 10px;
    align-content: start;
}

.cost-detail-amount {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.cost-detail-vehicle {
    font-size: 0.96rem;
    color: #dbe2ef;
    font-weight: 600;
}

.cost-detail-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
}

.reservation-detail-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: start;
}

.reservation-detail-photo-wrap {
    width: 220px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2f3a4a;
    background: #11161e;
}

.reservation-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reservation-detail-breakdown {
    margin-top: 8px;
    border: 1px solid #2f3a4a;
    background: #101722;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: #d8e0ee;
    display: grid;
    gap: 6px;
}
.reservation-detail-info {
    display: grid;
    gap: 8px;
    align-content: start;
}

.reservation-detail-customer {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.reservation-detail-vehicle {
    font-size: 0.96rem;
    font-weight: 600;
    color: #dbe2ef;
}

.reservation-detail-vehicle-link {
    text-decoration: none;
}

.reservation-detail-vehicle-link:hover {
    text-decoration: underline;
}

.reservation-signed-contract-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reservation-inline-form {
    margin: 0;
    display: inline-flex;
}

.signed-contract-delete-btn {
    border: 0;
    background: #c62828;
    color: #fff;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.signed-contract-delete-btn:hover {
    background: #a91f1f;
}
.reservation-detail-period,
.reservation-detail-deposit {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.reservation-detail-price {
    font-size: 1.26rem;
    font-weight: 800;
    color: #fff;
}

.reservation-detail-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reservation-detail-actions form {
    margin: 0;
}

.reservation-customer-link {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
}

.reservation-customer-link:hover {
    color: #ffd2d2;
}

.customer-detail-content {
    padding-top: 4px;
}

.customer-detail-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: start;
}

.customer-detail-photo-wrap {
    width: 220px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2f3a4a;
    background: #11161e;
}

.customer-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-detail-info {
    display: grid;
    gap: 8px;
    align-content: start;
}

.customer-detail-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.customer-detail-line {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.upcoming-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
}

.upcoming-thumb {
    width: 52px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2f3a4a;
    background: #11161e;
}

.upcoming-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upcoming-body {
    display: grid;
    gap: 2px;
}

.application-review-item {
    display: grid;
    gap: 10px;
}

.application-open-btn {
    cursor: pointer;
}

.application-review-head {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
}

.application-answers {
    border-top: 1px solid #2b313d;
    padding-top: 8px;
    display: grid;
    gap: 6px;
}

.application-answers div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.agenda-actions {
    display: grid;
    gap: 10px;
}

.application-detail-layout {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.application-detail-media {
    display: grid;
    gap: 8px;
}

.application-thumb-btn {
    width: 100%;
    border: 1px solid #2b3240;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: #121720;
    cursor: pointer;
}

.application-thumb-btn img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.application-detail-text {
    display: grid;
    gap: 8px;
}

.application-detail-text p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Regels met een kopieer-knop: altijd naast elkaar */
.application-answer-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* Tekst mag niet de knop wegduwen */
.application-answer-line > span,
.application-answer-line > strong {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: break-word;
}

.application-popup-actions {
    margin-top: 8px;
}

/* Copy-knop: altijd inline naast de tekst, flex-shrink 0 */
.application-copy-icon-btn {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
    padding: 0;
    min-height: unset;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.application-copy-icon-btn::before,
.application-copy-icon-btn::after {
    content: '';
    position: absolute;
    border: 1.5px solid #ff5a6a;
    border-radius: 2px;
    width: 8px;
    height: 9px;
}

.application-copy-icon-btn::before {
    top: 3px;
    left: 7px;
}

.application-copy-icon-btn::after {
    top: 5px;
    left: 4px;
    background: transparent;
}

.application-copy-icon-btn:hover {
    filter: brightness(1.2);
}

.application-copy-icon-btn.is-copied {
    filter: brightness(1.5);
}

/* ── Aanvraag-details modal: schoon en overzichtelijk ── */
.application-details-modal-card {
    max-width: 560px;
}

.application-details-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Blok met voertuig / periode / klant info */
.application-info-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.application-info-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.application-info-row:last-child {
    border-bottom: none;
}

.application-info-label {
    flex-shrink: 0;
    min-width: 68px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Actie-rij: Accepteren + Weigeren naast elkaar */
.application-popup-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.application-popup-actions-row form {
    flex: 1;
}

.application-accept-btn,
.application-reject-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Detailregel met label + waarde */
.application-answer-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.application-answer-line:last-child {
    border-bottom: none;
}

/* ── Tekst-waarde in de detailregel ── */
.application-answer-text {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.application-image-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.application-image-viewer img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #2b3240;
    background: #11161e;
}

@media (max-width: 700px) {
    .application-detail-layout {
        grid-template-columns: 1fr;
    }

    .application-detail-media {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}


.agenda-action-btn {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
}

.agenda-selection-panel {
    border: 1px solid #363f50;
    background: #151c27;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.day-focus-hero {
    border: 1px solid #363f50;
    background: linear-gradient(145deg, #171f2c, #131a23);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.day-timeline {
    display: grid;
    gap: 10px;
}

.day-event-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    align-items: stretch;
}

.day-event-time {
    border: 1px solid #2e3848;
    background: #151c27;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.day-event-body {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #2e3848;
    background: #1a2230;
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    display: grid;
    gap: 4px;
    cursor: pointer;
}

.day-event-body p {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.day-event-body small {
    color: var(--text-secondary);
}

.day-event-body.type-rental {
    border-color: #6a4aa1;
    background: #2d2240;
}

.day-event-body.type-rental.status-planned {
    border-color: #6a4aa1;
    background: #2d2240;
}

.day-event-body.type-rental.status-confirmed {
    border-color: #3d9860;
    background: #1f3a2b;
}

.day-event-body.type-rental.status-completed {
    border-color: #4f82bf;
    background: #1f3148;
}

.day-event-body.type-maintenance {
    border-color: #6a5035;
    background: #312418;
}

.day-event-body.type-reservation_request {
    border-color: #a13a49;
    background: #3a1f23;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 12, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
    padding: 20px;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(560px, 100%);
    max-height: 88vh;
    overflow: auto;
    background: #151a22;
    border: 1px solid #2c3543;
    border-radius: 14px;
    padding: 16px;
}

.expense-modal-card {
    width: min(500px, 100%);
}

.expense-agenda-option {
    border: 1px solid #333c4c;
    background: #121925;
    border-radius: 10px;
    padding: 10px 12px;
}

.expense-recurrence {
    border: 1px solid #333c4c;
    background: #121925;
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.expense-date-picker-btn {
    width: fit-content;
}

.expense-date-modal-card {
    width: min(520px, 100%);
}

.expense-date-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.expense-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.expense-date-weekdays span {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.expense-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    user-select: none;
}

.expense-date-cell {
    background: #151b24;
    border: 1px solid #303846;
    border-radius: 10px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
}

.expense-date-cell:hover {
    background: #1b2330;
}

.expense-date-cell.is-outside {
    opacity: 0.45;
}

.expense-date-cell.is-today {
    border-color: #8a3a3a;
}

.expense-date-cell.is-selected {
    background: rgba(211, 47, 47, 0.2);
    border-color: rgba(211, 47, 47, 0.8);
    color: #ffd8d8;
}

.expense-date-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.inline-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-head h3 {
    margin: 0;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #2a2f38;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.5);
    z-index: 140;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}

.toast-card {
    width: min(640px, 100%);
    background: #151b25;
    border: 1px solid #343e50;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.toast-warning {
    border-color: #8e2d2d;
    background: linear-gradient(145deg, #271a1d, #181c25);
}

.toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toast-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #2a303b;
    padding: 0;
    font-size: 1.05rem;
}

.public-preview-wrap {
    border: 1px solid #2b313d;
    border-radius: 12px;
    overflow: hidden;
    background: #10141b;
}

.public-preview-frame {
    width: 100%;
    height: 680px;
    border: 0;
    display: block;
}

@media (max-width: 1040px) {
    .app-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .public-brand {
        position: static;
        margin-bottom: 10px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    /* Only apply column topbar between 769px and 1040px — mobile overrides this */
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .contracts-hero {
        grid-template-columns: 1fr;
    }
    .agenda-layout {
        grid-template-columns: 1fr;
    }
    .agenda-feed.limited-list {
        max-height: calc((var(--agenda-list-item-height) * 3) + (8px * 2));
        overflow-y: auto;
        padding-right: 4px;
    }
    .agenda-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .agenda-weekdays {
        display: none;
    }
    .renter-hero,
    .renter-toolbar {
        grid-template-columns: 1fr;
    }
    .renter-brand-head {
        align-items: flex-start;
    }
    .renter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .renter-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .renter-filter input,
    .renter-filter select {
        min-width: 100%;
        width: 100%;
    }
    .calendar-trigger-btn {
        min-width: 100%;
        width: 100%;
    }
    .filters-dropdown,
    .filters-dropdown summary {
        width: 100%;
    }
    .filters-panel {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 740px) {
    .cost-detail-layout {
        grid-template-columns: 1fr;
    }
    .cost-detail-photo-wrap {
        width: 100%;
        max-width: 320px;
        height: 190px;
    }
    .reservation-detail-layout {
        grid-template-columns: 1fr;
    }
    .reservation-detail-photo-wrap {
        width: 100%;
        max-width: 320px;
        height: 190px;
    }
    .customer-detail-layout {
        grid-template-columns: 1fr;
    }
    .customer-detail-photo-wrap {
        width: 100%;
        max-width: 320px;
        height: 190px;
    }
    .day-event-card {
        grid-template-columns: 1fr;
    }
    .agenda-grid {
        grid-template-columns: 1fr;
    }
    .renter-grid {
        grid-template-columns: 1fr;
    }
    .period-time-row {
        grid-template-columns: 1fr;
    }
}

.page-home {
    background:
        radial-gradient(1200px 520px at 100% -10%, rgba(211, 47, 47, 0.35), transparent 60%),
        radial-gradient(900px 440px at -10% -10%, rgba(255, 255, 255, 0.08), transparent 62%),
        #0B0E14;
}

.page-home .public-main {
    align-items: flex-start;
    padding-top: 90px;
}

.home-shell {
    width: min(1220px, 100%);
    display: grid;
    gap: 14px;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.home-hero {
    padding: 34px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(23, 27, 34, 0.98), rgba(16, 20, 27, 0.95));
    border: 1px solid #313846;
}

.home-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #f2aaaa;
    font-size: 0.76rem;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.1;
}

.home-hero > p {
    margin: 12px 0 0;
    color: #c7ced9;
    max-width: 72ch;
    line-height: 1.6;
}

.home-cta-row {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-cta-primary,
.home-cta-secondary {
    text-decoration: none;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
}

.home-cta-primary {
    background: var(--accent);
    color: #fff;
}

.home-cta-primary:hover {
    background: var(--accent-hover);
}

.home-cta-secondary {
    background: #242b37;
    border: 1px solid #3a4557;
    color: #fff;
}

.home-cta-secondary:hover {
    background: #2d3645;
}

.home-proof-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-proof-grid article {
    border: 1px solid #2e3747;
    background: #151c27;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.home-proof-grid strong {
    font-size: 0.96rem;
}

.home-proof-grid span {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.home-section {
    padding: 22px;
}

.home-section-head h2 {
    margin: 0;
    font-size: clamp(1.28rem, 2.3vw, 1.86rem);
}

.home-feature-grid,
.home-value-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-feature-grid article,
.home-value-grid article {
    border: 1px solid #2f3746;
    background: #131922;
    border-radius: 12px;
    padding: 14px;
}

.home-feature-grid h3,
.home-value-grid h3 {
    margin: 0;
    font-size: 1rem;
}

.home-feature-grid p,
.home-value-grid p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.92rem;
}

.home-pricing {
    padding: 24px;
    border: 1px solid #3a3f4d;
    background: linear-gradient(145deg, rgba(211, 47, 47, 0.12), rgba(21, 27, 36, 0.95));
}

.home-pricing-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(211, 47, 47, 0.65);
    background: rgba(211, 47, 47, 0.16);
    color: #ffd3d3;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-pricing h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.26rem, 2.2vw, 1.8rem);
}

.home-pricing p {
    margin: 0 0 10px;
    color: #d1d8e4;
    line-height: 1.6;
}

.home-pricing p:last-child {
    margin-bottom: 0;
}

.home-bottom {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #3a3f4d;
    background: linear-gradient(150deg, rgba(211, 47, 47, 0.16), rgba(23, 28, 36, 0.95));
}

.home-bottom h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.95rem);
}

.home-bottom p {
    margin: 10px 0 0;
    color: #cfd5e1;
}

@media (max-width: 1040px) {
    .page-home .public-main {
        padding-top: 24px;
    }
    .home-proof-grid {
        grid-template-columns: 1fr;
    }
    .home-feature-grid,
    .home-value-grid {
        grid-template-columns: 1fr;
    }
    .home-bottom {
        grid-template-columns: 1fr;
    }
}
/* Home v2: scanbare, visuele landing */
.home-shell-v2 {
    gap: 12px;
}

.home-hero-v2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    align-items: stretch;
    padding: 18px;
}

.home-hero-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.home-hero-copy h1 {
    margin: 0;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.8rem);
    line-height: 1.08;
}

.home-lead {
    margin: 0;
    color: #d5dce8;
    font-size: 1.02rem;
    font-weight: 600;
}

.home-bullet-row {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-bullet-row li {
    background: #1a2230;
    border: 1px solid #364052;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.82rem;
    color: #d9e0ec;
}

.home-hero-visual {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #343d4e;
    min-height: 300px;
}

.home-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-scan-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.home-scan-strip article {
    border: 1px solid #2f3848;
    background: #151d28;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 5px;
}

.home-scan-strip strong {
    font-size: 0.9rem;
}

.home-scan-strip span {
    color: var(--text-secondary);
    font-size: 0.83rem;
}

.home-section-head.compact h2 {
    font-size: clamp(1.12rem, 2vw, 1.5rem);
}

.compact-cards {
    gap: 8px;
}

.compact-cards article {
    padding: 12px;
}

.compact-cards p {
    margin-top: 6px;
    font-size: 0.86rem;
}

.home-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-visual-card {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.home-visual-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.home-visual-card > div {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.home-visual-card h3 {
    margin: 0;
    font-size: 1rem;
}

.home-visual-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.home-pricing-v2 {
    padding: 16px;
}

.home-pricing-v2 h2 {
    margin: 8px 0 6px;
}

.home-pricing-v2 p {
    margin: 0;
}

@media (max-width: 1040px) {
    .home-hero-v2 {
        grid-template-columns: 1fr;
    }
    .home-scan-strip {
        grid-template-columns: 1fr 1fr;
    }
    .home-visual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .home-scan-strip {
        grid-template-columns: 1fr;
    }
}

/* Booqable-inspired home layout */
.vf-home {
    width: min(1200px, 100%);
    display: grid;
    gap: 12px;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.vf-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f1b1b1;
    font-size: 0.74rem;
    font-weight: 700;
}

.vf-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(150deg, #171b22, #11151c);
}

.vf-hero-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.vf-hero-copy h1 {
    margin: 0;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.06;
}

.vf-sub {
    margin: 0;
    color: #ced5e2;
    max-width: 56ch;
}

.vf-pills {
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vf-pills li {
    border: 1px solid #364153;
    background: #1b2230;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.8rem;
    color: #dde4f1;
}

.vf-hero-media {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #313b4d;
    min-height: 300px;
}

.vf-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vf-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.vf-proof article {
    background: #141b26;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 5px;
}

.vf-proof strong {
    font-size: 0.92rem;
}

.vf-proof span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.vf-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
}

.vf-block {
    padding: 16px;
}

.vf-block h2 {
    margin: 8px 0 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.vf-list-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vf-list-grid div {
    border: 1px solid #303a4b;
    background: #141c28;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.vf-list-grid strong {
    font-size: 0.9rem;
}

.vf-list-grid span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.vf-image-block {
    padding: 0;
    overflow: hidden;
}

.vf-image-block img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.vf-image-block > div {
    padding: 12px;
    display: grid;
    gap: 5px;
}

.vf-image-block h3 {
    margin: 0;
    font-size: 1rem;
}

.vf-image-block p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.vf-features {
    padding: 16px;
}

.vf-features-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.18rem, 2vw, 1.6rem);
}

.vf-feature-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.vf-feature-grid article {
    border: 1px solid #2f3848;
    background: #131b27;
    border-radius: 10px;
    padding: 10px;
}

.vf-feature-grid h3 {
    margin: 0;
    font-size: 0.92rem;
}

.vf-feature-grid p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.vf-pricing {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border-color: #4a3a3a;
    background: linear-gradient(145deg, rgba(211, 47, 47, 0.13), rgba(24, 29, 37, 0.96));
}

.vf-pricing h2 {
    margin: 7px 0 6px;
    font-size: clamp(1.2rem, 2.2vw, 1.72rem);
}

.vf-pricing p {
    margin: 0;
    color: #d2d9e6;
    font-size: 0.9rem;
    max-width: 70ch;
}

.vf-pricing-actions {
    display: grid;
    gap: 8px;
}

@media (max-width: 1060px) {
    .vf-hero {
        grid-template-columns: 1fr;
    }
    .vf-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vf-split {
        grid-template-columns: 1fr;
    }
    .vf-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vf-pricing {
        grid-template-columns: 1fr;
    }
    .vf-pricing-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .vf-proof,
    .vf-feature-grid,
    .vf-list-grid,
    .vf-pricing-actions {
        grid-template-columns: 1fr;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 17px;
    height: 17px;
    opacity: 0.9;
    flex-shrink: 0;
}

.vf-mini-icon {
    width: 18px;
    height: 18px;
    opacity: 0.95;
    margin-bottom: 2px;
}

.vf-list-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.vf-proof article,
.vf-feature-grid article,
.vf-list-grid div {
    position: relative;
}

.vf-proof article {
    align-content: start;
}

.vf-feature-grid article {
    display: grid;
    gap: 6px;
}

.vf-list-grid div {
    align-content: start;
}

.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 130;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.chat-launcher img {
    width: 16px;
    height: 16px;
}

.chat-panel {
    width: min(420px, calc(100vw - 24px));
    max-height: min(76vh, 700px);
    overflow: hidden;
    background: #121722;
    border: 1px solid #2f394a;
    border-radius: 14px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}

.chat-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #2a3343;
    background: #161d2a;
}

.chat-panel-head strong {
    display: block;
    font-size: 0.92rem;
}

.chat-panel-head p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.chat-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: #2a3342;
}

.chat-panel-body {
    padding: 12px;
    overflow: auto;
    display: grid;
    gap: 8px;
    background: #0f1520;
}

.chat-widget-row {
    display: flex;
}

.chat-widget-row.is-owner {
    justify-content: flex-start;
}

.chat-widget-row.is-visitor {
    justify-content: flex-end;
}

.chat-widget-bubble {
    max-width: 86%;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #2e3a4c;
    background: #162032;
    display: grid;
    gap: 6px;
}

.chat-widget-row.is-visitor .chat-widget-bubble {
    background: #2a1f24;
    border-color: #4a343d;
}

.chat-widget-bubble strong {
    font-size: 0.76rem;
    color: #d6deec;
}

.chat-widget-bubble p {
    margin: 0;
    line-height: 1.45;
    font-size: 0.9rem;
}

.chat-widget-form {
    border-top: 1px solid #2a3343;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.chat-widget-form label {
    font-size: 0.78rem;
}

.chat-widget-form textarea,
.chat-widget-form input {
    background: #0f151f;
}

.chat-status {
    margin: 0;
    padding: 8px 12px;
    font-size: 0.83rem;
    border-top: 1px solid #2a3343;
}

.chat-status-ok {
    color: #9fe2bc;
    background: rgba(53, 122, 90, 0.2);
}

.chat-status-error {
    color: #ffc6c6;
    background: rgba(148, 56, 56, 0.22);
}

.chat-owner-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 12px;
}

.chat-owner-list,
.chat-owner-thread {
    min-height: 72vh;
}

.chat-owner-head h3,
.chat-thread-head h3 {
    margin: 0;
}

.chat-owner-head p {
    margin: 6px 0 0;
    font-size: 0.84rem;
}

.chat-owner-items {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.chat-owner-item {
    border: 1px solid #2f394a;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    background: #121a27;
    display: grid;
    gap: 7px;
}

.chat-owner-item:hover,
.chat-owner-item.is-active {
    border-color: #4b5f7c;
    background: #172132;
}

.chat-owner-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-owner-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.chat-unread-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    background: #d32f2f;
    color: #fff;
    font-weight: 700;
}

.chat-owner-thread {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}

.chat-thread-messages {
    border: 1px solid #2f3a4c;
    border-radius: 12px;
    background: #101723;
    padding: 10px;
    overflow: auto;
    display: grid;
    gap: 9px;
}

.chat-message-row {
    display: flex;
}

.chat-message-row.is-owner {
    justify-content: flex-end;
}

.chat-message-row.is-visitor {
    justify-content: flex-start;
}

.chat-bubble {    width: fit-content;    max-width: 62%;    border-radius: 12px;    border: 1px solid #304157;    background: #1a273a;    padding: 6px 8px;    display: inline-block;}.chat-message-row.is-owner .chat-bubble {    border-color: #5a3e47;    background: #2b2127;}

.chat-bubble p {
    margin: 0;
    line-height: 1.45;
}

.chat-bubble small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 980px) {
    .chat-owner-layout {
        grid-template-columns: 1fr;
    }
    .chat-owner-list,
    .chat-owner-thread {
        min-height: auto;
    }
    .chat-widget {
        right: 12px;
        bottom: 12px;
    }
}

.vf-site-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.vf-site-icons article {
    border: 1px solid #2f3848;
    background: #151d28;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 5px;
}

.vf-site-icons strong {
    font-size: 0.9rem;
}

.vf-site-icons span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.chat-contact-note {
    margin: -2px 0 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.chat-contact-mini {
    color: #c2d0e5 !important;
    font-size: 0.8rem !important;
}

.chat-thread-contact {
    margin: 6px 0 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #c3d2e9;
    font-size: 0.85rem;
}

@media (max-width: 1060px) {
    .vf-site-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .vf-site-icons {
        grid-template-columns: 1fr;
    }
}

/* Contact widget minimal */
.request-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.request-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff2e2e;
    box-shadow: 0 0 0 3px rgba(255, 46, 46, 0.25);
    flex-shrink: 0;
}

.contact-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 220;
    background: #c9f7cf;
    color: #1f5b2a;
    border: 1px solid #97e2a2;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: opacity 0.25s ease;
}

.contact-toast.hide {
    opacity: 0;
}

.chat-widget {
    right: 16px;
    left: auto;
    bottom: 16px;
    justify-items: end;
}

.chat-launcher {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    padding: 0;
    justify-content: center;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.chat-launcher span {
    display: none;
}

.chat-launcher img {
    width: 20px;
    height: 20px;
}

.chat-panel.compact {
    width: min(340px, calc(100vw - 22px));
    max-height: none;
    overflow: visible;
    grid-template-rows: auto;
}

.chat-widget-form.compact-form {
    border-top: 0;
}

.chat-widget-form.compact-form label {
    font-weight: 600;
    color: #d6dcea;
}

.chat-widget-form.compact-form textarea {
    min-height: 68px;
}

@media (max-width: 980px) {
    .chat-widget {
        right: 12px;
        left: auto;
        bottom: 12px;
    }
}


/* Insight section - compact and balanced */
.vf-insight {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.vf-insight-media {
    margin: 0;
    width: 100%;
    max-width: 420px;
    border: 2px solid #3f4f67;
    border-radius: 12px;
    overflow: hidden;
    background: #0f1622;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.vf-insight-media img {
    width: 100%;
    height: auto;
    max-height: 270px;
    object-fit: cover;
    display: block;
}

.vf-insight-copy h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.18rem, 2vw, 1.56rem);
}

.vf-insight-copy p {
    margin: 0;
    color: #d2d9e6;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .vf-insight {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .vf-insight-media {
        max-width: 100%;
    }
}

.vf-red-icon {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18);
    display: inline-block;
}


.contracts-list-actions {
    margin-top: 12px;
}

.template-list {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #171d27;
    border: 1px solid #2a3341;
    border-radius: 10px;
    padding: 10px 12px;
}

.template-item strong {
    display: block;
}

.template-item small {
    color: var(--text-muted);
}

.template-delete-btn {
    border: 1px solid rgba(211, 47, 47, 0.55);
    background: rgba(211, 47, 47, 0.16);
    color: #ffb3b3;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.template-delete-btn:hover {
    background: rgba(211, 47, 47, 0.25);
}
.template-name-btn {
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.template-name-btn:hover {
    color: #ffd1d1;
}

.template-detail-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.template-detail-list li {
    display: grid;
    gap: 2px;
}

.template-contract-text {
    white-space: pre-wrap;
    background: #11161f;
    border: 1px solid #2a3341;
    border-radius: 10px;
    padding: 10px;
    color: #e7ebf3;
}
.template-name-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.template-name-link:hover {
    color: #ffd1d1;
}

.template-name-link.is-disabled {
    color: var(--text-muted);
    cursor: default;
}
.vehicle-detail-stack {
    display: grid;
    gap: 12px;
    align-content: start;
}

.vehicle-edit-compact {
    display: grid;
    gap: 10px;
    align-content: start;
}

.vehicle-edit-compact .secondary-btn {
    width: auto;
    justify-self: start;
}
.damage-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 0;
    border: 0;
    background: #d83b32;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.damage-add-btn:hover {
    background: #b72f28;
}

.damage-list {
    display: grid;
    gap: 10px;
}

.damage-list-item {
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
    background: #121825;
    border: 1px solid #253047;
    border-radius: 10px;
    padding: 8px;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.damage-list-item:hover {
    border-color: #3b4a68;
}

.damage-list-thumb {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #0c121d;
    border: 1px solid #2a3449;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.damage-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.damage-list-thumb-empty {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.damage-list-text {
    display: grid;
    gap: 4px;
}

.damage-detail-image-wrap {
    margin-bottom: 12px;
    border: 1px solid #2a3449;
    border-radius: 10px;
    overflow: hidden;
}

.damage-detail-image-wrap img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.renter-card-link {
    color: inherit;
    text-decoration: none;
    display: grid;
    height: 100%;
    transition: transform 0.16s ease;
}

.renter-card-link:hover {
    transform: translateY(-2px);
}

.renter-detail-card {
    display: grid;
    gap: 14px;
}

.renter-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.renter-detail-media {
    display: grid;
    gap: 10px;
}

.renter-detail-cover-wrap {
    position: relative;
}

.renter-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #2d3442;
    background: #131720;
    touch-action: pan-y;
}

.renter-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 19, 26, 0.72);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.renter-gallery-prev {
    left: 10px;
}

.renter-gallery-next {
    right: 10px;
}

.renter-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.renter-detail-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.renter-detail-thumb {
    border: 1px solid #2b3240;
    background: #121720;
    border-radius: 10px;
    padding: 0;
    min-width: 92px;
    width: 92px;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.renter-detail-thumb:hover {
    border-color: #7ea4ff;
    transform: translateY(-1px);
}

.renter-detail-thumb.is-active {
    border-color: #7ea4ff;
    box-shadow: 0 0 0 1px rgba(126, 164, 255, 0.2);
}

.renter-detail-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

.renter-detail-content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.renter-detail-content h2 {
    margin: 0;
}

.renter-detail-meta {
    display: grid;
    gap: 6px;
}

.renter-detail-meta p {
    margin: 0;
    color: var(--text-secondary);
}

.renter-application-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #151922;
    padding: 14px;
}

.renter-application-box h3 {
    margin: 0 0 8px;
}

.renter-application-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.renter-application-box .open-application-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
    align-self: start;
}

.renter-application-description {
    border: 1px solid #303746;
    background: #121722;
    border-radius: 10px;
    padding: 9px 11px;
}

.renter-application-description strong {
    display: block;
    margin-bottom: 4px;
}

.renter-application-description p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.45;
}


@media (max-width: 900px) {
    .renter-detail-layout {
        grid-template-columns: 1fr;
    }
    .renter-application-row {
        grid-template-columns: 1fr;
    }

    .renter-application-box .open-application-btn {
        width: fit-content;
    }
}
.vehicle-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vehicle-card .renter-card-image {
    border-bottom: 1px solid #2a2f37;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #0f131a;
}

@media (max-width: 1300px) {
    .vehicle-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .vehicle-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    /* Op mobiel (768px-blok) wordt dit verder overschreven — zie mobiel blok */
    .vehicle-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.vehicle-warning-dot {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.vehicle-missing-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
}
.vehicle-missing-list a {
    color: #ffd8d8;
    text-decoration: underline;
    font-weight: 600;
}

.vehicle-missing-list a:hover {
    color: #ffffff;
}



.damage-reservation-pick {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.damage-reservation-pick:hover {
    border-color: #7ea4ff;
}

.customer-suggestions {
    border: 1px solid #2b3240;
    border-radius: 10px;
    background: #121720;
    max-height: 180px;
    overflow-y: auto;
    padding: 4px;
}

.customer-suggestion-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.customer-suggestion-item:hover {
    background: #1d2430;
}



.application-applicant-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-alert-btn {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid #d44b55;
    background: #59181f;
    color: #ffe1e4;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.customer-alert-btn:hover {
    filter: brightness(1.08);
}
.application-applicant-link {
    color: #f2f5fb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.application-applicant-link:hover {
    color: #ffffff;
}
.upcoming-reservation-open {
    cursor: pointer;
}

.application-vehicle-link {
    color: #f2f5fb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.application-vehicle-link:hover {
    color: #ffffff;
}

















.split-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 760px) {
    .split-two {
        grid-template-columns: 1fr;
    }
}


.reservation-settlement-box {
    border: 1px solid #344054;
    background: #111722;
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    gap: 6px;
}

.settlement-summary-inner {
    display: grid;
    gap: 4px;
}

.settlement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

.settlement-row--total {
    border-top: 1px solid #344054;
    margin-top: 4px;
    padding-top: 6px;
    color: var(--text-primary);
}

.return-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.return-items-list {
    display: grid;
    gap: 6px;
}

.return-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #121a26;
    border: 1px solid #2b3240;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.84rem;
}

.return-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.return-item-info .muted {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.return-item-amount {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.return-item-row,
.return-extra-row {
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 8px;
    background: #121a26;
}


/* Settlement financial overview */
.settlement-overview {
    display: grid;
    gap: 0;
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #121a26;
}

.sov-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid #1e293b;
    font-size: 0.88rem;
}

.sov-row:last-child {
    border-bottom: none;
}

.sov-label {
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
}

.sov-value {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.sov-neg {
    color: #f87171;
}

.sov-cost {
    font-size: 0.83rem;
    padding-top: 6px;
    padding-bottom: 6px;
    background: rgba(248, 113, 113, 0.06);
}

.sov-cost .sov-label {
    font-size: 0.82rem;
    padding-left: 10px;
}

.sov-sub {
    font-size: 0.82rem;
    padding-top: 6px;
    padding-bottom: 6px;
    background: rgba(248, 113, 113, 0.04);
}

.sov-sub .sov-label {
    padding-left: 20px;
    color: #94a3b8;
}

.sov-divider {
    height: 1px;
    background: #334155;
    border: none;
    margin: 0;
    padding: 0;
}

.sov-result {
    font-size: 0.92rem;
    padding: 11px 14px;
    background: rgba(30, 41, 59, 0.7);
}

.sov-result .sov-label {
    font-weight: 600;
    color: var(--text-primary);
}

.sov-result .sov-value {
    font-size: 1rem;
}

.sov-result--refund .sov-label,
.sov-result--refund .sov-value {
    color: #4ade80;
}

.sov-result--zero .sov-label,
.sov-result--zero .sov-value {
    color: var(--text-muted);
}

.sov-result--warn .sov-label,
.sov-result--warn .sov-value {
    color: #fb923c;
}

/* Landlord in-app support chat */
.landlord-chat-widget {
    z-index: 240;
}

.landlord-chat-widget .chat-launcher {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    padding: 0;
    justify-content: center;
}

.chat-launcher-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111a2a;
}

.landlord-chat-panel {
    width: min(980px, calc(100vw - 40px));
    max-height: min(86vh, 860px);
    grid-template-rows: auto 1fr auto auto;
}

.landlord-chat-body {
    min-height: 420px;
}

.landlord-chat-form textarea {
    min-height: 0;
    height: 34px;
    max-height: 34px;
    border-radius: 8px;
    border: 1px solid #34526d;
    background: #111b22;
    padding: 6px 10px;
    line-height: 1.2;
    font-size: 13px;
    resize: none;
    overflow-y: hidden;
}

@media (max-width: 980px) {
    .landlord-chat-panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 24px);
    }

    .landlord-chat-body {
        min-height: 320px;
    }
}

/* WhatsApp-like chat refresh */
.landlord-chat-panel {
    width: min(460px, calc(100vw - 24px));
    max-height: min(82vh, 760px);
    border-radius: 16px;
    border: 1px solid #22364d;
    background: #0b141a;
}

.landlord-chat-panel .chat-panel-head {
    background: #202c33;
    border-bottom-color: #2a3a45;
}

.landlord-chat-panel .chat-panel-head p {
    color: #b5c4cf;
}

.landlord-chat-body {
    min-height: 380px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.04) 0, transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.03) 0, transparent 24%),
        #0e1b23;
    padding: 14px;
    gap: 10px;
}

.landlord-chat-widget .chat-widget-row.is-owner {
    justify-content: flex-start;
}

.landlord-chat-widget .chat-widget-row.is-visitor {
    justify-content: flex-end;
}

.landlord-chat-widget .chat-widget-bubble {
    width: fit-content;
    max-width: 30%;
    border-radius: 8px;
    border: 0 !important;
    padding: 3px 5px;
    background: #202c33 !important;
    color: #e9f2f8;
    display: inline-block;
}

.landlord-chat-widget .chat-widget-row.is-visitor .chat-widget-bubble {
    background: #1f7a60 !important;
    border: 0 !important;
}

.landlord-chat-widget .chat-widget-bubble p {
    margin: 0;
    line-height: 1.32;
    font-size: 15px;
}

.landlord-chat-widget .chat-widget-bubble small {
    display: none;
}

.landlord-chat-form {
    background: #202c33;
    border-top-color: #2a3a45;
    padding: 10px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 8px;
}

.landlord-chat-form textarea {
    min-height: 0;
    height: 34px;
    max-height: 34px;
    border-radius: 8px;
    border: 1px solid #34526d;
    background: #111b22;
    padding: 6px 10px;
    line-height: 1.2;
    font-size: 13px;
    resize: none;
    overflow-y: hidden;
}

.landlord-chat-form button {
    height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
}

.landlord-chat-widget .chat-launcher {
    width: 56px;
    height: 56px;
    background: #25d366;
    border: 1px solid #1ea853;
}

.landlord-chat-widget .chat-launcher img {
    filter: brightness(0) invert(1);
}

.landlord-chat-widget .chat-launcher-badge {
    background: #ef4444;
    border-color: #ffffff;
}

@media (max-width: 980px) {
    .landlord-chat-panel {
        width: calc(100vw - 16px);
    }

    .landlord-chat-body {
        min-height: 320px;
    }

    .landlord-chat-form {
        grid-template-columns: 1fr;
    }

    .landlord-chat-form button {
    height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
}
}

.sidebar-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sidebar-help-icon {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(0.85);
    opacity: 0.9;
}

.sidebar a.active .sidebar-help-icon,
.sidebar-help-link:hover .sidebar-help-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.help-chat-card {
    min-height: 560px;
}

.help-chat-thread {
    min-height: 380px;
}

.help-chat-form {
    grid-template-columns: 1fr auto;
}

.help-chat-form textarea {
    min-height: 44px;
    max-height: 140px;
}

@media (max-width: 980px) {
    .help-chat-form {
        grid-template-columns: 1fr;
    }

    .help-chat-form button {
        width: 100%;
    }
}

.help-chat-thread .chat-bubble {    width: fit-content;    max-width: 56%;    padding: 6px 8px;}@media (max-width: 980px) {    .help-chat-thread .chat-bubble {        max-width: 72%;    }}


.sidebar .sidebar-help-link {
    justify-content: flex-start !important;
    align-items: center;
    gap: 8px;
}
.sidebar .sidebar-help-link span {
    display: inline-block;
}
.sidebar .sidebar-help-link .sidebar-help-icon {
    flex: 0 0 15px;
}

/* Final compact chat bubble sizing */
.chat-thread-messages .chat-bubble {
    width: fit-content !important;
    max-width: 52% !important;
    padding: 6px 8px !important;
    display: inline-block !important;
}

.help-chat-thread .chat-bubble {
    width: fit-content !important;
    max-width: 48% !important;
    padding: 6px 8px !important;
}

@media (max-width: 980px) {
    .chat-thread-messages .chat-bubble,
    .help-chat-thread .chat-bubble {
        max-width: 72% !important;
    }
}

.vehicle-edit-form {
    padding-bottom: 4px;
}

.vehicle-edit-save-bar {
    position: sticky;
    bottom: -16px;
    padding-top: 10px;
    margin-top: 4px;
    background: linear-gradient(to bottom, rgba(21, 26, 34, 0), #151a22 36%);
    z-index: 2;
}

.vehicle-edit-save-btn {
    width: 100%;
}

.vehicle-photo-success-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 220;
    background: #1f8f47;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.vehicle-photo-success-toast.hide {
    opacity: 0;
    transform: translateY(-6px);
}
.vehicle-photo-success-toast.is-danger {
    background: #b33030;
}

.analytics-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-gauge-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-gauge-card {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
}

.analytics-gauge-card h3 {
    margin: 2px 0 0;
}

.analytics-gauge {
    --score: 0;
    --gauge-color: #d32f2f;
    width: 132px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: conic-gradient(var(--gauge-color) calc(var(--score) * 1%), #2a3240 0);
    position: relative;
    display: grid;
    place-items: center;
}

.analytics-gauge::before {
    content: "";
    position: absolute;
    inset: 12px;
    background: #151a22;
    border-radius: 50%;
    border: 1px solid #2f3949;
}

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

.analytics-gauge-inner strong {
    font-size: 1.15rem;
}

.analytics-main-grid {
    align-items: start;
}

.analytics-bars {
    display: grid;
    gap: 10px;
}

.analytics-bars-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px;
    align-items: center;
}

.analytics-bars-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.analytics-bars-track {
    display: grid;
    gap: 4px;
    background: #121722;
    border: 1px solid #2e3646;
    border-radius: 10px;
    padding: 7px;
}

.analytics-bar {
    height: 7px;
    border-radius: 999px;
}

.analytics-bar-revenue {
    background: #3ba7ff;
}

.analytics-bar-expense {
    background: #f09b39;
}

.analytics-bar-profit {
    background: #2faa58;
}

.analytics-bars-values {
    grid-column: 2;
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    flex-wrap: wrap;
}

.analytics-expense-list {
    display: grid;
    gap: 8px;
}

.analytics-expense-item {
    display: grid;
    gap: 4px;
}

.analytics-expense-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
}

.analytics-expense-track {
    height: 8px;
    background: #202837;
    border-radius: 999px;
    border: 1px solid #2f3a4b;
    overflow: hidden;
}

.analytics-expense-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d06334, #eeb053);
}

@media (max-width: 1200px) {
    .analytics-kpi-grid,
    .analytics-gauge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .analytics-kpi-grid,
    .analytics-gauge-grid,
    .analytics-main-grid,
    .analytics-table-grid {
        grid-template-columns: 1fr;
    }

    .analytics-bars-row {
        grid-template-columns: 1fr;
    }

    .analytics-bars-values {
        grid-column: 1;
    }
}




body.help-modal-open {
    overflow: hidden;
}

/* Op mobiel: geen overflow:hidden op body (breekt position:fixed bottom-nav).
   De modal zelf is 100dvh en scrollt intern. */
@media (max-width: 768px) {
    body.help-modal-open {
        overflow: unset;
    }
}



.sidebar .sidebar-help-link {
    margin-top: auto;
    order: 999;
}

.help-modal-backdrop {
    z-index: 260;
}

.help-modal-card {
    width: min(760px, calc(100vw - 36px));
    max-height: 86vh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}

.help-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-help .main {
    padding: 0;
}

.page-help .topbar {
    display: none;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar nav {
    flex: 1;
}


.sidebar .sidebar-help-link {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: calc(260px - 36px);
    z-index: 140;
}

@media (max-width: 1040px) {
    .sidebar .sidebar-help-link {
        position: static;
        width: auto;
    }
}


.account-icon-btn {
    text-decoration: none;
    color: var(--text-primary);
    background: #2a2f38;
    border: 1px solid #3a404d;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.account-icon-btn:hover {
    background: #343a44;
}

.account-page-card {
    padding: 20px;
}

.account-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.account-legal-links a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.account-legal-links a:hover {
    color: var(--text-secondary);
}

.account-legal-links span {
    color: var(--border);
}

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

.account-page-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.account-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-head-actions .secondary-btn,
.account-head-actions .danger-btn {
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}

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

.account-block {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #141821;
    display: grid;
    gap: 8px;
}

.time-range-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary, #0f1319);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

.time-range-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-range-item input[type="time"] {
    width: 120px;
}

.time-range-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.time-range-sep {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 18px;
}

.account-block h4 {
    margin: 0 0 4px;
    color: var(--text-secondary);
}

.account-inline-flash {
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.account-inline-flash.is-ok {
    background: rgba(37, 157, 92, 0.14);
    border-color: rgba(37, 157, 92, 0.45);
}

.account-inline-flash.is-error {
    background: rgba(211, 47, 47, 0.14);
    border-color: rgba(211, 47, 47, 0.55);
}

.account-unsaved-modal {
    max-width: 440px;
}

.account-unsaved-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

@media (max-width: 980px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-page-head {
        flex-direction: column;
    }
}

.account-stack {
    display: grid;
    gap: 14px;
    max-width: 880px;
}

.account-company-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: start;
}

.account-logo-panel {
    display: grid;
    gap: 8px;
}

.account-logo-preview-wrap {
    width: 100%;
    height: 160px;
    border: 1px dashed #3a404d;
    border-radius: 12px;
    background: #10141c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.account-logo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-logo-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.account-logo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(211, 47, 47, 0.85);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    backdrop-filter: blur(4px);
}

.account-logo-preview-wrap:hover .account-logo-delete-btn {
    opacity: 1;
}

.account-logo-delete-btn:hover {
    background: rgba(211, 47, 47, 1);
}

.account-company-fields {
    display: grid;
    gap: 8px;
}

@media (max-width: 900px) {
    .account-company-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MOBILE BOTTOM NAV — hidden on desktop, shown on mobile
   ============================================================ */
.mobile-bottom-nav   { display: none; }
.mobile-meer-overlay { display: none; }

/* Funnel-strip alleen op mobiel zichtbaar */
.mobile-funnel-strip {
    display: none;
}

/* ============================================================
   MOBILE RESPONSIVE — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {

    /* --- Prevent ALL horizontal scrolling — alleen op html, niet body
         (body overflow:hidden breekt position:fixed op sommige browsers) --- */
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* --- Every element respects the viewport width --- */
    *,
    *::before,
    *::after {
        max-width: 100%;
        box-sizing: border-box;
    }

    img,
    video,
    canvas,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* --- App shell --- */
    .app-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    /* --- Sidebar: completely hidden, replaced by bottom nav --- */
    .sidebar {
        display: none;
    }

    /* --- Main content ---
       12px aan weerszijden zodat kaarten niet tot aan de schermrand lopen */
    .main {
        padding: 8px 12px;
        /* ruimte voor bottom nav + iOS safe area (notch/home-bar) */
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    /* --- Topbar: compact horizontal, nooit kolom --- */
    .topbar {
        flex-direction: row !important;
        align-items: center !important;
        padding: 8px 10px;
        border-radius: 10px;
        flex-wrap: nowrap;
        gap: 6px;
        overflow: hidden;
    }

    .topbar > div:first-child {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .topbar h1 {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .topbar p {
        font-size: 0.7rem;
        margin: 1px 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-actions {
        flex-shrink: 0;
        gap: 5px;
    }

    .topbar-actions .secondary-btn {
        display: none; /* Owner Center knop verborgen — zit in meer-menu */
    }

    /* Account icon verborgen op mobiel — zit in het Meer-menu */
    .account-icon-btn {
        display: none;
    }

    /* Owner center knop in topbar ook weg op mobiel */
    .topbar-owner-btn {
        display: none;
    }

    /* --- Desktop period-switch verborgen, mobiel dropdown zichtbaar --- */
    .period-switch {
        display: none !important;
    }

    .mobile-period-form {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .mobile-period-select {
        appearance: none;
        -webkit-appearance: none;
        background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 7px 28px 7px 10px;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        min-height: unset;
        line-height: 1;
    }

    .mobile-period-select option {
        background: var(--panel);
        color: var(--text-primary);
    }

    /* --- Algemene compactheid --- */
    .card {
        padding: 10px;
        border-radius: 10px;
    }

    .card h3 {
        font-size: 0.78rem;
        margin-bottom: 6px;
        margin-top: 0;
    }

    .card strong {
        font-size: 1rem;
    }

    p, li, td, th, label, small {
        font-size: 0.8rem;
    }

    h1 { font-size: 1.05rem; }
    h2 { font-size: 0.95rem; }
    h3 { font-size: 0.88rem; }
    h4 { font-size: 0.82rem; }

    /* --- KPI grid: 2 per rij, compact --- */
    .kpi-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .kpi-grid .card {
        padding: 8px 10px;
    }

    .kpi-grid .card h3 {
        font-size: 0.7rem;
        margin-bottom: 4px;
        color: var(--text-muted);
    }

    .kpi-grid .card strong {
        font-size: 0.95rem;
        display: block;
    }

    .kpi-grid .card p {
        font-size: 0.68rem;
        margin: 3px 0 0;
        color: var(--text-muted);
    }

    /* --- Overige grids → 1 kolom --- */
    .two-col,
    .dash-split,
    .dash-grid,
    .split-two {
        grid-template-columns: 1fr !important;
    }

    /* --- Grid gaps kleiner --- */
    .grid {
        gap: 8px;
        margin-bottom: 8px;
    }

    /* --- Knoppen: aanraakbaar maar compact --- */
    button,
    .secondary-btn,
    .danger-btn {
        padding: 9px 12px;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .plus-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    /* --- Forms: prevent iOS zoom op focus --- */
    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 8px 10px;
    }

    label {
        font-size: 0.78rem;
    }

    /* --- Tabellen: intern scrollbaar, pagina scrollt NIET mee --- */
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.76rem;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    th, td {
        padding: 6px 6px;
        font-size: 0.76rem;
    }

    /* ============================================================
       VOERTUIG OVERZICHT — 2 naast elkaar, compacte kaarten
       ============================================================ */
    .vehicle-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Kaart zelf: iets kleiner en strakker */
    .vehicle-card.renter-card {
        border-radius: 12px;
    }

    /* Foto minder hoog */
    .vehicle-card .renter-card-image {
        height: 100px !important;
    }

    /* Body compacter */
    .vehicle-card .renter-card-body {
        padding: 8px 10px;
        gap: 5px;
    }

    .vehicle-card .renter-card-body h3 {
        font-size: 0.82rem;
        line-height: 1.25;
        margin: 0;
        /* max 2 regels */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .vehicle-card .renter-price {
        font-size: 0.82rem;
        font-weight: 700;
        margin: 0;
    }

    .vehicle-card .renter-price span {
        font-size: 0.72rem;
        font-weight: 400;
    }

    /* Status-select kleiner en volledig breed */
    .vehicle-card .status-auto-form {
        padding: 0 10px 8px;
    }

    .vehicle-card .status-select {
        width: 100%;
        font-size: 0.75rem;
        padding: 5px 8px;
        border-radius: 7px;
    }

    /* ============================================================
       MODALS — volledige mobiele overhaul
       Alle modals komen als bottom-sheet omhoog.
       Inhoud is compact maar goed leesbaar en functioneel.
       ============================================================ */

    /* Backdrop: content van onderaf, boven bottom nav (z-index 9999) */
    .modal-backdrop {
        align-items: flex-end !important;
        padding: 0 !important;
        z-index: 10000;
    }

    /* Basis modal-card: bottom sheet met drag-handle */
    .modal-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92vh;
        min-height: 0;
        border-radius: 18px 18px 0 0 !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    /* Visuele drag-handle bovenaan elke modal */
    .modal-card::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: rgba(255,255,255,0.15);
        border-radius: 999px;
        margin: 0 auto 12px;
    }

    /* Modal header: kleiner en compacter */
    .modal-head {
        margin-bottom: 10px;
    }

    .modal-head h3 {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        flex-shrink: 0;
        min-height: unset;
        padding: 0;
    }

    /* Alle form-elementen BINNEN modals: compacter */
    .modal-card label {
        font-size: 0.74rem;
        margin-bottom: 2px;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .modal-card input,
    .modal-card select,
    .modal-card textarea {
        font-size: 0.84rem;
        padding: 7px 10px;
        border-radius: 8px;
    }

    .modal-card textarea {
        /* Maximeer textareas zodat modal niet te lang wordt */
        max-height: 80px;
        min-height: 44px;
        resize: none;
    }

    /* Stack-form in modals: kleinere gap */
    .modal-card .stack-form {
        gap: 7px;
    }

    /* Knoppen in modals: vol breed, netter gestapeld */
    .modal-card button:not(.modal-close):not(.agenda-plus-btn):not(.application-copy-icon-btn):not(.customer-alert-btn):not(.agenda-day):not(.agenda-nav-btn):not(.renter-auth-btn),
    .modal-card .secondary-btn,
    .modal-card .danger-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.84rem;
        padding: 10px 12px;
        min-height: 40px;
    }

    /* Maar knoppen NAAST elkaar in split-two mogen smaller */
    .modal-card .split-two button,
    .modal-card .split-two .secondary-btn,
    .modal-card .split-two .danger-btn {
        width: 100%;
        font-size: 0.82rem;
        padding: 9px 10px;
    }

    /* Inline-form (bijv. accepteren + weigeren) → kolom */
    .modal-card .inline-form.wrap,
    .modal-card .application-popup-actions {
        flex-direction: column;
        gap: 6px;
    }

    /* ── Reserveringsdetails acties (invoeren/beëindigen/bewerken) ── */
    .reservation-detail-actions {
        flex-direction: column;
        gap: 6px;
    }

    .reservation-detail-actions form,
    .reservation-detail-actions button,
    .reservation-detail-actions .secondary-btn {
        width: 100%;
    }

    /* .future-only-action knoppen zijn al buttons, width 100% via boven */

    /* ── Aanvraag-detail layout in modal: foto + tekst onder elkaar ── */
    .application-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .application-detail-media {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 6px;
    }

    .application-thumb-btn img {
        aspect-ratio: 4 / 3;
    }

    /* ── Copy-knoppen altijd naast tekst op mobiel ── */
    .application-answer-line {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        padding: 6px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 0.84rem;
    }

    .application-answer-line:last-child {
        border-bottom: none;
    }

    .application-answer-text {
        flex: 1 1 0;
        min-width: 0;
        word-break: break-word;
    }

    .application-copy-icon-btn {
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
        min-height: unset !important;
    }

    /* ── Aanvraag info-blok op mobiel ── */
    .application-info-row {
        padding: 7px 10px;
        font-size: 0.84rem;
        gap: 8px;
    }

    .application-info-label {
        min-width: 58px;
        font-size: 0.7rem;
    }

    /* ── Actie-knoppen naast elkaar (accepteren / weigeren) ── */
    .application-popup-actions-row {
        gap: 8px;
    }

    .application-popup-actions-row form {
        flex: 1;
    }

    .application-accept-btn,
    .application-reject-btn {
        width: 100% !important;
        font-size: 0.84rem;
        padding: 10px 8px;
        min-height: 40px;
    }

    /* ── Klant-detail layout in customerDetailsModal ── */
    .customer-detail-layout {
        grid-template-columns: 1fr !important;
    }

    .customer-detail-photo-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 140px;
    }

    /* ── Afbeelding-viewer modal (applicationImageModal) ── */
    .application-image-viewer {
        min-height: 0;
    }

    .application-image-viewer img {
        max-height: 55vh;
    }

    /* ── Kosten-datepicker modal (expenseDateModal) ── */
    .expense-date-modal-card .agenda-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 3px !important;
    }

    .expense-date-modal-card .agenda-weekdays {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px;
    }

    .expense-date-modal-card .agenda-weekdays div {
        font-size: 0.54rem;
    }

    .expense-date-modal-card .agenda-day {
        min-height: 34px !important;
        padding: 4px 2px !important;
        border-radius: 6px !important;
        font-size: 0.72rem;
    }

    .expense-date-modal-card .agenda-day-head {
        font-size: 0.68rem;
        justify-content: center;
    }

    /* ── Huurperiode-picker kalender (renter-period-modal) ── */
    .renter-period-modal {
        max-height: 92vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .renter-period-modal .agenda-grid {
        gap: 3px !important;
    }

    .renter-period-modal .agenda-day {
        min-height: 36px !important;
        padding: 4px 2px !important;
        border-radius: 6px !important;
        font-size: 0.72rem;
        gap: 2px !important;
    }

    .renter-period-modal .agenda-day-head {
        font-size: 0.68rem;
    }

    .period-time-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 8px 0;
    }

    /* ── Settlement box (huurperiode beëindigen) ── */
    .reservation-settlement-box {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .return-items-head .split-two {
        max-width: 100% !important;
    }

    /* ── Modal voor enkel bevestigen (deleteConfirmModal, accountUnsaved) ── */
    .account-unsaved-modal,
    .modal-card.account-unsaved-modal {
        max-height: 60vh;
    }

    /* ── Factuur-modal: compacte velden ── */
    .invoice-edit-modal-card {
        max-height: 92vh;
    }

    /* ============================================================
       AGENDA — mobiel
       ============================================================ */

    /* Funnel strip zichtbaar maken */
    .mobile-funnel-strip {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .mobile-funnel-section {
        background: #151920;
        border: 1px solid #2b313d;
        border-radius: 14px;
        padding: 10px 12px;
    }

    /* Lege secties subtiel weergeven */
    .mobile-funnel-section--empty {
        opacity: 0.7;
    }

    .mobile-funnel-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin: 0 0 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-funnel-label--new    { color: #d85a6a; }
    .mobile-funnel-label--upcoming { color: #9a7be0; }
    .mobile-funnel-label--active { color: #6ed39a; }

    .mobile-funnel-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        border-radius: 999px;
        background: rgba(255,255,255,0.1);
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0 4px;
        color: inherit;
    }

    /* Horizontaal scrollbare rij voertuig-kaartjes */
    .mobile-funnel-scroll {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .mobile-funnel-scroll::-webkit-scrollbar { display: none; }

    .mobile-funnel-none {
        font-size: 0.78rem;
        color: var(--text-muted);
        margin: 0;
    }

    /* Enkel voertuig-kaartje */
    .mobile-funnel-card {
        flex: 0 0 auto;
        width: 90px;
        background: #1c2130;
        border: 1px solid #2b313d;
        border-radius: 10px;
        padding: 7px 6px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        scroll-snap-align: start;
        text-align: center;
        transition: border-color 0.15s;
    }

    .mobile-funnel-card:active {
        border-color: var(--accent);
        opacity: 0.85;
    }

    .mobile-funnel-img-wrap {
        width: 64px;
        height: 44px;
        border-radius: 7px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .mobile-funnel-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-funnel-card p {
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.2;
        margin: 0;
        color: var(--text-primary);
        /* max 2 regels */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-funnel-card small {
        font-size: 0.62rem;
        color: var(--text-muted);
        display: block;
    }

    /* Agenda grid: verberg sidebar op mobiel, agenda fullwidth */
    .agenda-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Verberg de desktop sidebar-sectie op mobiel
       (die info staat al in de funnel-strip) */
    .agenda-side {
        display: none;
    }

    .agenda-toolbar {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
    }

    .agenda-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .agenda-nav::-webkit-scrollbar { display: none; }

    .agenda-nav-btn,
    .agenda-plus-btn {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    /* Kalender: blijft 7 kolommen maar compacter.
       !important overschrijft de bredere breakpoints (1040px → 2 col, 740px → 1 col) */
    .agenda-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 3px !important;
    }

    /* Weekdagnamen weer zichtbaar (1040px-breakpoint zet display:none) */
    .agenda-weekdays {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px;
        margin-bottom: 4px;
    }

    .agenda-weekdays div {
        font-size: 0.55rem;
        text-align: center;
        padding: 2px 0;
    }

    /* Dag-cellen compact: enkel getal + gekleurde stippen */
    .agenda-day {
        min-height: 48px !important;
        padding: 5px 3px !important;
        border-radius: 7px !important;
        gap: 3px !important;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(211,47,47,0.15);
    }

    .agenda-day:active {
        opacity: 0.75;
        border-color: var(--accent) !important;
    }

    .agenda-day-head {
        font-size: 0.7rem;
        justify-content: center;
    }

    /* Verberg het item-getal in de dag-kop (ruimte besparen) */
    .agenda-day-head small {
        display: none;
    }

    /* Chips: verberg tekst, toon alleen gekleurde stip
       pointer-events none: tap gaat naar de dag-cel zelf */
    .agenda-chip {
        pointer-events: none !important;
        display: block !important;
        width: 100% !important;
        height: 5px !important;
        border-radius: 999px !important;
        padding: 0 !important;
        min-height: unset !important;
        font-size: 0 !important;
        overflow: hidden !important;
    }

    .agenda-chip strong,
    .agenda-chip span {
        display: none !important;
    }

    /* "+N meer" ook verbergen, stip volstaat */
    .agenda-more {
        font-size: 0.55rem;
        color: var(--text-muted);
        text-align: center;
        line-height: 1;
    }

    /* Capaciteitsbadge kleiner */
    .agenda-capacity-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    /* Feed-items in (dag-weergave) */
    .agenda-feed-item,
    .upcoming-item {
        padding: 8px;
        gap: 8px;
    }

    .upcoming-thumb img {
        width: 44px;
        height: 36px;
        object-fit: cover;
        border-radius: 6px;
    }

    /* ============================================================
       MIJN ACCOUNT — geen horizontaal scrollen
       ============================================================ */
    .account-page-card {
        padding: 12px;
    }

    .account-page-head {
        flex-direction: column;
        gap: 8px;
    }

    .account-head-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .account-head-actions button,
    .account-head-actions a {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 8px 10px;
        min-height: 38px;
    }

    /* Form + stack volledig breed */
    .account-stack {
        max-width: 100%;
        gap: 10px;
    }

    .js-account-form {
        width: 100%;
    }

    /* Bedrijfsgegevens: logo boven velden */
    .account-company-layout {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .account-logo-panel {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .account-logo-preview-wrap {
        flex-shrink: 0;
    }

    /* Openingstijden: naast elkaar maar krapper */
    .time-range-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .time-range-item input[type="time"] {
        width: 100%;
        min-width: 0;
    }

    /* Alle inputs volledig breed zodat ze niet overflown */
    .account-stack input,
    .account-stack select,
    .account-stack textarea {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Logo verwijder-knop altijd zichtbaar (geen hover op touch) */
    .account-logo-delete-btn {
        opacity: 1;
    }

    /* ============================================================
       CHAT MET VECTRA — boven bottom nav, volledig scherm
       ============================================================ */

    /* Zet de help-modal boven de bottom nav (z-index 9999) */
    .help-modal-backdrop {
        z-index: 10001 !important;
        align-items: flex-start !important;
        padding: 0 !important;
    }

    /* Volledig schermvullend (niet als bottom sheet — geen drag-handle) */
    .help-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        display: grid;
        grid-template-rows: auto 1fr auto auto;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .help-modal-card::before {
        display: none;
    }

    /* Chat berichtenlijst neemt beschikbare ruimte */
    .help-chat-thread {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Bubbles breder op smal scherm */
    .help-chat-thread .chat-bubble {
        max-width: 82% !important;
    }

    /* Chat-textarea mag groter dan de modal-card max 80px override */
    .help-modal-card textarea {
        max-height: 120px;
        min-height: 44px;
    }

    /* Stuurknop op eigen rij */
    .help-chat-form {
        flex-direction: column;
        gap: 6px;
    }

    .help-chat-form button {
        width: 100%;
    }

    /* =====================================================
       BOTTOM NAVIGATION BAR (altijd zichtbaar, fixed)
       ===================================================== */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bar);
        border-top: 1px solid var(--border);
        height: 60px;
        z-index: 9999;
        align-items: stretch;
        /* Zorg dat iOS safe area ook gedekt is */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.58rem;
        font-weight: 600;
        background: none;
        border: none;
        border-radius: 0;
        padding: 5px 2px;
        cursor: pointer;
        transition: color 0.15s;
        position: relative;
        letter-spacing: 0.01em;
        min-height: unset;
    }

    .mobile-nav-item.is-active {
        color: var(--accent);
    }

    .mobile-nav-item:active {
        opacity: 0.65;
    }

    .mobile-nav-icon {
        font-size: 1.15rem;
        line-height: 1;
        position: relative;
        display: inline-block;
    }

    .mobile-nav-badge {
        position: absolute;
        top: -4px;
        right: -9px;
        background: var(--accent);
        color: #fff;
        font-size: 0.5rem;
        font-weight: 700;
        min-width: 14px;
        height: 14px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 2px;
    }

    /* =====================================================
       MEER OVERLAY (slide-up sheet)
       ===================================================== */
    .mobile-meer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 10000;
        backdrop-filter: blur(3px);
    }

    .mobile-meer-overlay[hidden] {
        display: none !important;
    }

    .mobile-meer-sheet {
        position: absolute;
        bottom: 60px;
        left: 0;
        right: 0;
        background: var(--panel);
        border-top: 1px solid var(--border);
        border-radius: 18px 18px 0 0;
        padding: 14px 14px 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-meer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .mobile-meer-head button {
        background: #2a2f38;
        padding: 3px 9px;
        font-size: 0.85rem;
        color: var(--text-secondary);
        border-radius: 8px;
        min-height: unset;
        line-height: 1.6;
    }

    .mobile-meer-nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-meer-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 10px;
        border-radius: 9px;
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 500;
        font-size: 0.88rem;
        transition: background 0.15s;
        cursor: pointer;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        min-height: unset;
    }

    .mobile-meer-item:active,
    .mobile-meer-item.is-active {
        background: #20252d;
    }

    .meer-icon {
        width: 22px;
        text-align: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .mobile-meer-danger {
        color: #ff8080;
    }

    /* ============================================================
       PER-PAGINA OVERFLOW FIXES — elke pagina, geen horizontaal scrollen
       ============================================================ */

    /* ── GLOBAAL: cards en secties nooit breder dan viewport ── */
    .card,
    .app-shell,
    section,
    article,
    aside {
        min-width: 0;
        max-width: 100%;
    }

    /* ── DASHBOARD ────────────────────────────────────────────── */
    /* vehicle-row: foto + naam (2 kolommen), rest verbergen */
    .vehicle-row {
        grid-template-columns: 46px 1fr;
        gap: 8px;
        padding: 8px;
        align-items: center;
    }

    .vehicle-list .vehicle-row > span:nth-child(3),
    .vehicle-list .vehicle-row > span:nth-child(4) {
        display: none;
    }

    .vehicle-row img,
    .vehicle-row .thumb img {
        width: 46px;
        height: 38px;
        object-fit: cover;
        border-radius: 6px;
        display: block;
    }

    .vehicle-row small {
        font-size: 0.7rem;
    }

    /* ── CONTRACTEN ───────────────────────────────────────────── */
    .contracts-hero {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contracts-hero-metrics {
        gap: 6px;
    }

    .contracts-hero-metrics > div {
        min-width: 0;
        flex: 1 1 80px;
        padding: 8px 10px;
    }

    .contracts-hero-metrics strong {
        font-size: 0.95rem;
    }

    .vehicle-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .template-list {
        gap: 8px;
    }

    .template-item {
        padding: 10px;
    }

    /* ── CONTRACT FORMULIEREN (tabel) ─────────────────────────── */
    /* Tabel al afgehandeld via global table { display:block; overflow-x:auto }
       Maar we verbergen minder-kritieke kolommen voor betere leesbaarheid */
    .contracts-list-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* ── KLANTEN (customer_base) ──────────────────────────────── */
    /* vehicle-row hier ook gebruikt voor klantlijst — al gedekt hierboven */

    /* ── KLANT DETAIL (customer_detail) ──────────────────────── */
    /* Inline flex met min-width → forceer kolom */
    .customer-detail-layout {
        grid-template-columns: 1fr !important;
    }

    /* Verberg inline min-width problemen via container-brede aanpak */
    .customer-detail-photo-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 160px;
    }

    /* Agenda-feed items in klant-detail */
    .agenda-feed-item {
        min-width: 0;
        overflow: hidden;
    }

    /* ── VOERTUIG DETAIL (vehicle_detail) ─────────────────────── */
    /* Foto-galerij: 2 breed en responsief ipv vaste 190px */
    .vehicle-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch;
    }

    .gallery-item {
        width: 100% !important;
        aspect-ratio: 4 / 3;
    }

    /* Two-col layout in voertuig detail → 1 kolom */
    .vehicle-detail-stack {
        grid-template-columns: 1fr !important;
    }

    /* Komende reserveringen tabel — intern scrollbaar (al globaal gedekt),
       maar extra: verberg mindere kolommen via thead/td nth-child */
    /* Kolom 3 (Einde) verbergen maakt tabel veel smaller */
    .vehicle-detail-stack table th:nth-child(3),
    .vehicle-detail-stack table td:nth-child(3) {
        display: none;
    }

    /* ── AGENDA ───────────────────────────────────────────────── */
    /* Al gedekt in eerder blok */

    /* ── FACTUREN (invoices) ──────────────────────────────────── */
    .invoice-grid {
        grid-template-columns: 1fr !important;
    }

    /* Factuurlijst tabel: intern scrollbaar via globale table-regel.
       Extra: verberg Periode-kolom (kolom 3) om de tabel smaller te maken */
    .invoice-list-card table th:nth-child(3),
    .invoice-list-card table td:nth-child(3) {
        display: none;
    }

    /* ── BOETES (fines) ────────────────────────────────────────── */
    /* two-col → al 1 kolom via globale .two-col fix */
    /* Boete-tabel: verberg Contract-kolom (kolom 5) */
    .card table th:nth-child(5),
    .card table td:nth-child(5) {
        display: none;
    }

    /* ── DEELPAGINA (sharing) ─────────────────────────────────── */
    .qr-img {
        width: 120px !important;
        height: 120px !important;
    }

    /* Whitelabel-balk: input en knop stapelen op smal scherm */
    .sharing-branding-inner {
        gap: 8px;
    }

    .sharing-branding-form {
        flex: 1 1 100%;
    }

    .sharing-branding-form input[type="text"],
    .sharing-branding-form button {
        font-size: 0.8rem;
        height: 36px;
        padding: 0 10px;
    }

    /* Preview iframe: hoogte verkleinen op mobiel */
    .public-preview-frame {
        height: 380px !important;
    }

    /* ── CHAT (chat.php) ──────────────────────────────────────── */
    .chat-owner-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chat-owner-list,
    .chat-owner-thread {
        min-height: 0;
        width: 100%;
    }

    /* Lijstpaneel beperkt hoog, thread neemt rest */
    .chat-owner-list {
        max-height: 260px;
        overflow-y: auto;
    }

    .chat-owner-thread {
        min-height: 50vh;
    }

    /* Chat-bubbles nooit breder dan scherm */
    .chat-bubble {
        max-width: 82% !important;
        word-break: break-word;
    }

    /* ── MIJN ACCOUNT (my_account) ────────────────────────────── */
    /* Al gedekt in eerder blok — extra: inputs en time-range */
    .account-block {
        padding: 10px;
    }

    .time-range-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .time-range-sep {
        display: none;
    }

    .time-range-item input[type="time"] {
        width: 100%;
    }

    /* ── HELP / CHAT MET VECTRA ───────────────────────────────── */
    /* Al gedekt in eerder blok */

    /* ── REGISTREER / LOGIN (public pagina's) ─────────────────── */
    .public-main {
        padding: 16px 12px;
    }

    /* ── RENTER (publieke voertuigen) ─────────────────────────── */
    .renter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    /* Renter hero: nog compacter op mobiel */
    .renter-hero {
        padding: 10px 12px;
        border-radius: 10px;
        gap: 8px;
    }

    .renter-hero-logo {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }

    .renter-hero h1 {
        font-size: 1rem !important;
    }

    .renter-kicker {
        display: none; /* ruimte besparen op klein scherm */
    }

    .renter-sub {
        display: none; /* ruimte besparen op klein scherm */
    }

    /* ── DEELPAGINA: compact QR + link ───────────────────────── */
    .share-compact-row {
        gap: 12px;
    }

    .qr-img-small {
        width: 68px;
        height: 68px;
    }

    .share-link-field-row {
        flex-direction: row; /* blijf horizontaal */
    }

    .share-copy-btn {
        font-size: 0.72rem;
        padding: 6px 8px;
    }

    /* Huurperiode modal: zorg dat agenda-dag knoppen niet 100% breed worden */
    .renter-period-modal .agenda-day {
        width: auto !important;
        min-height: 36px !important;
    }

    /* ── GLOBALE INLINE-FORM WRAPS ────────────────────────────── */
    /* Filter-rijen etc: altijd wrappen */
    .inline-form.wrap {
        flex-wrap: wrap;
        gap: 6px;
    }

    .inline-form.wrap input,
    .inline-form.wrap select {
        min-width: 0;
        flex: 1 1 120px;
    }

    /* ── TOP METRIC / KPI BADGE ───────────────────────────────── */
    .top-metric-badge {
        font-size: 0.68rem;
        padding: 2px 6px;
        white-space: nowrap;
    }

    /* ── Dashboard card heads: compacter ─────────────────────── */
    .dashboard-card-head {
        gap: 6px;
        margin-bottom: 8px;
    }

    /* ── STATUSBADGES ─────────────────────────────────────────── */
    .status {
        font-size: 0.7rem;
        padding: 3px 7px;
        white-space: nowrap;
    }
}
