/* StartInvoice — aanvullingen op het NexLink-thema (Bootstrap 5). Alleen app-specifieke componenten. */
.app-page-head h4 { font-weight: 650; }
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-link { color: inherit; font-weight: 600; text-decoration: none; } .row-link:hover { color: var(--bs-primary); }
.small-muted { font-size: .8rem; color: var(--bs-secondary-color); }

/* Factuurregels */
.lines-table td { padding: .4rem .3rem; vertical-align: top; }
.lines-table th { white-space: nowrap; font-size: .85rem; }
.lines-table .l-total { white-space: nowrap; }
.lines-table .form-control, .lines-table .form-select { padding: .4rem .55rem; font-size: .9rem; }
.lines-table textarea.form-control { min-height: 44px; }
.totals-box { margin-left: auto; width: 100%; max-width: 340px; }
.totals-box .row-t { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.totals-box .row-t > :last-child { white-space: nowrap; }
.totals-box .grand { border-top: 2px solid var(--bs-primary); margin-top: .4rem; padding-top: .5rem; font-weight: 700; font-size: 1.1rem; }
.preview-frame { width: 100%; height: 1210px; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: #e5e7eb; display: block; }

/* Sjablooneditor */
.editor-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: .25rem; flex-wrap: wrap; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .35rem; margin-bottom: .6rem; position: sticky; top: 70px; z-index: 5; align-items: center; }
.toolbar button { border: 1px solid transparent; background: transparent; padding: .35rem .55rem; border-radius: 6px; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; color: var(--bs-body-color); }
.toolbar button:hover { background: var(--bs-tertiary-bg); } .toolbar .sep { width: 1px; height: 22px; background: var(--bs-border-color); margin: 0 .25rem; }
.layout-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.layout-pick label { border: 2px solid var(--bs-border-color); border-radius: 8px; padding: .6rem; cursor: pointer; text-align: center; font-weight: 600; font-size: .85rem; margin: 0; }
.layout-pick input { display: none; } .layout-pick label:has(input:checked) { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
.placeholders { max-height: 240px; overflow: auto; font-size: .8rem; } .placeholders code { display: block; padding: .25rem .4rem; cursor: pointer; border-radius: 4px; color: var(--bs-body-color); } .placeholders code:hover { background: var(--bs-primary-bg-subtle); }
.tpl-thumb { height: 150px; background: var(--bs-tertiary-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .5rem .5rem 0 0; }
.tpl-thumb .mini { width: 110px; height: 150px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 10px; font-size: 5px; line-height: 1.3; color: #333; }
.timeline-list { list-style: none; padding: 0; margin: 0; } .timeline-list li { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--bs-border-color); font-size: .88rem; } .timeline-list li:last-child { border: 0; }
.timeline-list .when { color: var(--bs-secondary-color); white-space: nowrap; min-width: 115px; font-size: .8rem; }
img.logo-preview { max-height: 70px; max-width: 220px; border: 1px solid var(--bs-border-color); padding: 4px; border-radius: 6px; background: #fff; }
.doc-frame { width: 100%; height: 1210px; border: 0; border-radius: .5rem; background: #e5e7eb; display: block; }
.kbd { font-family: ui-monospace, monospace; font-size: .8em; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 4px; padding: 0 .3em; }
.org-card { transition: .15s; } .org-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.menu-item form button.menu-link { font: inherit; }
.price-card.hl { border-color: var(--bs-success); box-shadow: 0 0 0 3px var(--bs-success-bg-subtle); }

/* Zijbalk: op laptops (1200–1480px) het menu gewoon open tonen in plaats van alleen icoontjes */
@media (min-width: 1200px) and (max-width: 1480px) {
    :root { --app-menubar-tabs: 300px; }
    .app-menubar-tabs .app-tab-content { left: 80px; width: 220px; background-color: var(--app-sidebar-bg); }
    :has(.app-menubar-tabs) .app-wrapper { margin-left: var(--app-menubar-tabs); padding-left: 25px; padding-right: 25px; }
    :has(.app-menubar-tabs) .app-toggler::after { display: none !important; }
    [data-app-sidebar=mini] { --app-menubar-tabs: 80px; }
    [data-app-sidebar=mini] .app-menubar-tabs .app-tab-content { left: -160px; }
    [data-app-sidebar=mini] :has(.app-menubar-tabs) .app-wrapper { margin-left: 80px; }
}

/* Header: niets laten afbreken op laptopbreedte */
.app-header .btn, .app-header .dropdown-toggle, .app-header .badge { white-space: nowrap; }
.app-header .header-trial { white-space: nowrap; }
@media (max-width: 1480px) { .app-header .header-trial .trial-label { display: none; } }
.nav-pills .nav-link { display: inline-flex; align-items: center; gap: .35rem; }
.doc-wrap { width: 100%; overflow: hidden; }
.card { --bs-card-height: auto; }
