/*
 * Portal look on top of Metronic 8 (loaded after style.bundle.css).
 * Colours follow the association's branding through --bs-primary and --eh-accent (set in layouts/app.blade.php).
 */
/* Small utility Metronic lacks */
.min-w-0 { min-width: 0 !important; }

:root {
    --pt-accent: var(--eh-accent, #F9963F);
    --pt-card-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px rgba(16, 24, 40, .05);
    --pt-line: var(--mmv-line);
}

/* =====================================================================================================
   Platform brand: mijnmuziekvereniging.nl
   These are the colours of the platform itself (central site, login pages, icons, credits, emails).
   Inside a portal the association's own colours (--bs-primary, --eh-accent) stay in charge.
   Copper is an accent: never use #F28C38 for text or with white text on it (2.5:1). For copper text use --mmv-copper-text.
   ===================================================================================================== */
:root {
    --mmv-ink: #1F2A44;            /* Inktblauw: main buttons, headings, app icon, dark surfaces (white text 14:1) */
    --mmv-copper: #F28C38;         /* Koper: the note in the logo, dots, highlights. Decoration only */
    --mmv-copper-strong: #D9701E;  /* "mijn" in the wordmark, link hover. Large bold text only (3.3:1) */
    --mmv-copper-text: #B85A12;    /* Copper-coloured text at normal size (4.7:1 on white) */
    --mmv-copper-light: #F7A766;   /* Copper on dark backgrounds (7.3:1 on ink) */
    --mmv-copper-soft: #FCE8D6;    /* Background of letter tiles and copper badges */
    --mmv-bg: #F3F5F9;             /* Lichtgrijs: page background */
    --mmv-surface-soft: #F7F8FB;   /* Subtle panels, search results */
    --mmv-line: #E3E7EF;           /* Separators */
    --mmv-border: #DDE2EB;         /* Card and panel borders */
    --mmv-input-border: #8A92A3;   /* Form field borders (3.1:1, so fields are easy to find) */
    --mmv-gray: #5B6475;           /* Grijs: secondary text (6:1 on white) */
    --mmv-text: #4A5468;           /* Longer body text */
    --mmv-on-dark-muted: #B9C1D4;  /* Small text on ink */
    --mmv-success-bg: #E6F4EC;
    --mmv-success-text: #1D6B3F;
    --mmv-error: #B42318;
    --mmv-font-heading: "Manrope", "Inter", system-ui, sans-serif;
}
[data-bs-theme=dark] {
    --mmv-bg: #0A0B0E;
    --mmv-line: #26272F;
    --mmv-border: #2B2C35;
}

/* Headings in Manrope (body text stays Inter). Switch the whole portal by also setting --bs-body-font-family. */
h1, h2, h3, h4, .page-heading, .card-title, .modal-title, .mmv-heading { font-family: var(--mmv-font-heading); letter-spacing: -.01em; }

/* Login and other "blank" pages use the same light gray */
.app-blank.bg-body-secondary { background-color: var(--mmv-bg) !important; }

/* Wordmark: <x-brand.wordmark /> */
.mmv-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mmv-font-heading); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.mmv-wordmark-md { font-size: 17px; }
.mmv-wordmark-sm { font-size: 13px; gap: 6px; }
.mmv-wordmark-light { color: var(--mmv-ink); }
.mmv-wordmark-light .mmv-wordmark-mijn { color: var(--mmv-copper-strong); }
.mmv-wordmark-light .mmv-wordmark-tld { color: var(--mmv-gray); font-weight: 600; }
.mmv-wordmark-dark { color: #FFFFFF; }
.mmv-wordmark-dark .mmv-wordmark-mijn { color: var(--mmv-copper-light); }
.mmv-wordmark-dark .mmv-wordmark-tld { color: var(--mmv-on-dark-muted); font-weight: 600; }
.mmv-wordmark-sm.mmv-wordmark-light .mmv-wordmark-mijn { color: var(--mmv-copper-text); } /* small text needs the darker copper */
[data-bs-theme=dark] .mmv-wordmark-light { color: #FFFFFF; }
[data-bs-theme=dark] .mmv-wordmark-light .mmv-wordmark-mijn { color: var(--mmv-copper-light); }
[data-bs-theme=dark] .mmv-wordmark-light .mmv-wordmark-tld { color: var(--mmv-on-dark-muted); }
[data-bs-theme=dark] .mmv-wordmark-light .mmv-mark path { stroke: #FFFFFF; }

/* Page background: the brand's light gray (#F3F5F9), a step darker than Metronic's near-white, so the white cards stand out */
[data-bs-theme=light] { --bs-app-bg-color: var(--mmv-bg); }
[data-bs-theme=dark] { --bs-app-bg-color: #0A0B0E; }

/* Cards: no outline, a soft shadow to lift them off the background */
.app-content .card { box-shadow: var(--pt-card-shadow); border: 0; border-radius: 12px; }

/* Clean separators: Metronic's dashed lines become thin solid lines everywhere in the app */
.app-content .border-dashed { border-style: solid !important; border-color: var(--pt-line) !important; }
.app-content .border-bottom.border-dashed:last-child { border-bottom: 0 !important; }
/* Only the intended side gets a line: without explicit widths the other sides showed a 3px box around every row */
.app-content .border-bottom.border-dashed:not(.border) { border-width: 0 0 1px 0 !important; }
.app-content .border-top.border-dashed:not(.border) { border-width: 1px 0 0 0 !important; }
.app-content .table:not(.table-bordered).table-row-dashed tr { border-bottom-style: solid; border-bottom-color: var(--pt-line); }
.app-content .table:not(.table-bordered).table-row-dashed tbody tr:last-child { border-bottom: 0; }

/* Sidebar brand block */
.pt-brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--bs-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.pt-brand-sub { color: #9A9CAE; font-size: 12px; font-weight: 400; }

/* Header */
.pt-breadcrumb { font-size: 13px; color: var(--bs-gray-600); }
.pt-breadcrumb a { color: var(--bs-gray-600); }
.pt-breadcrumb a:hover { color: var(--bs-primary); }
.pt-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pt-user-name { font-weight: 600; font-size: 13px; color: var(--bs-gray-900); line-height: 1.3; }
.pt-user-role { font-size: 12px; color: var(--bs-gray-600); line-height: 1.3; }

/* Date block: day number with month or weekday */
.pt-date { width: 56px; flex-shrink: 0; text-align: center; border-radius: 10px; padding: 8px 0;
    background: var(--bs-gray-100); color: var(--bs-gray-900); }
.pt-date-top { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--bs-gray-600); }
.pt-date-day { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.pt-date.is-today { background: var(--bs-primary); color: #fff; }
.pt-date.is-today .pt-date-top { color: rgba(255, 255, 255, .85); }
.pt-date.is-performance { background: #FFF1E6; color: #9A4A0B; }
.pt-date.is-performance .pt-date-top { color: #9A4A0B; }
.pt-date-lg { width: 96px; height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 0; border-radius: 12px; }
.pt-date-lg .pt-date-day { font-size: 36px; line-height: 1; }

/* Response bar: yes / maybe / no as one stacked bar */
.pt-respbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bs-gray-200); }
.pt-respbar > span:nth-child(1) { background: var(--bs-success); }
.pt-respbar > span:nth-child(2) { background: var(--bs-warning); }
.pt-respbar > span:nth-child(3) { background: var(--bs-danger); }
.pt-respbar-lg { height: 8px; border-radius: 4px; }

/* Badges used on activities */
.pt-badge-today { background: var(--pt-accent); color: #071437; font-weight: 700; }
.pt-badge-performance { background: #FFF1E6; color: #9A4A0B; }

/* Hero card for the next activity */
.pt-hero { background: var(--bs-primary); color: #fff; border-radius: 12px; }
.pt-hero .pt-hero-muted { color: rgba(255, 255, 255, .85); }
.pt-hero .pt-respbar { background: rgba(255, 255, 255, .22); height: 8px; }
.pt-hero .pt-date { background: #fff; color: #071437; width: 76px; }
.pt-hero .pt-date .pt-date-top { color: var(--bs-danger); }
.pt-hero .btn-pt-outline { border: 1px solid rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.pt-hero .btn-pt-outline:hover, .pt-hero .btn-pt-outline.active { background: rgba(255, 255, 255, .15); color: #fff; }
.pt-hero .btn-pt-white { background: #fff; color: #0E7A3B; }
.pt-hero .btn-pt-white:hover { background: #F1FFF6; color: #0E7A3B; }
.pt-hero a.pt-hero-link { color: #fff; font-weight: 600; }
.pt-hero a.pt-hero-link:hover { text-decoration: underline; }

/* Stat tiles */
.pt-stat { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 12px; background: var(--bs-body-bg);
    box-shadow: var(--pt-card-shadow); color: var(--bs-gray-900); height: 100%; }
.pt-stat:hover { color: var(--bs-gray-900); box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }
.pt-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pt-stat-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.pt-stat-label { font-size: 13px; color: var(--bs-gray-600); }

/* Attendance mini chart (CSS bars) */
.pt-bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; border-bottom: 1px solid var(--bs-gray-200); padding: 0 4px; }
.pt-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.pt-bar-fill { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--bs-primary); }
.pt-bar-fill.is-performance { background: var(--pt-accent); }
.pt-bar-value { font-size: 11px; font-weight: 600; color: var(--bs-gray-700); }
.pt-bar-labels { display: flex; gap: 14px; padding: 8px 4px 0; }
.pt-bar-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--bs-gray-600); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Rows in lists (calendar, coming up) */
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--bs-gray-200); color: var(--bs-gray-900); }
.pt-row:last-child { border-bottom: 0; }
a.pt-row:hover { background: var(--bs-gray-100); color: var(--bs-gray-900); }
.pt-row.is-today { background: rgba(31, 111, 184, .03); }
.pt-row-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pt-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--bs-gray-600); }
.pt-row-resp { width: 210px; display: flex; flex-direction: column; gap: 6px; }

/* Orchestra filter chips */
.pt-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px;
    border: 1px solid var(--bs-gray-300); background: var(--bs-body-bg); color: var(--bs-gray-900); font-size: 13px; font-weight: 500; }
.pt-chip:hover { border-color: var(--bs-gray-500); color: var(--bs-gray-900); }
.pt-chip.active { border-color: var(--bs-gray-900); background: var(--bs-gray-100); }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Segmented control */
.pt-segment { display: inline-flex; background: var(--bs-gray-100); border-radius: 8px; padding: 3px; }
.pt-segment > a, .pt-segment > button { border: 0; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--bs-gray-700); background: transparent; }
.pt-segment > .active { background: var(--bs-body-bg); color: var(--bs-gray-900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* Month grid */
.pt-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.pt-cal-dow { font-size: 11px; font-weight: 600; color: var(--bs-gray-600); padding: 4px 0; }
.pt-cal-day { height: 38px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 13px; font-weight: 500; color: var(--bs-gray-900); }
.pt-cal-day.is-past { color: var(--bs-gray-500); }
.pt-cal-day.is-today { background: var(--bs-primary); color: #fff; font-weight: 700; }
.pt-cal-day .pt-dot { width: 5px; height: 5px; background: transparent; }
.pt-cal-day.has-event .pt-dot { background: var(--bs-primary); }
.pt-cal-day.has-performance .pt-dot { background: var(--pt-accent); }
.pt-cal-day.is-today .pt-dot { background: #fff; }

/* Readable text colours for yes / maybe / no (Metronic's own are too light on white) */
.pt-text-yes { color: #0E7A3B; }
.pt-text-maybe { color: #8A6A00; }
.pt-text-no { color: #C2183F; }

/* Count tiles (counts on the activity header): filled tiles instead of dashed boxes */
.pt-count { background: var(--bs-gray-100); border-radius: 10px; padding: 10px 16px; min-width: 110px; }
.pt-count-value { display: block; font-size: 20px; font-weight: 700; }
.pt-count-label { font-size: 12px; color: var(--bs-gray-600); }

/* Tabs under the activity header */
.pt-tabs { display: flex; flex-wrap: wrap; gap: 28px; padding: 0 28px; border-top: 1px solid var(--bs-gray-200); }
.pt-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 16px 0; font-weight: 600; color: var(--bs-gray-600); background: transparent; }
.pt-tabs .nav-link.active { color: var(--bs-primary); border-bottom-color: var(--bs-primary); }

/* Attendance buttons per member */
.pt-mark { height: 32px; padding: 0 12px; border-radius: 6px; border: 0; font-size: 12px; font-weight: 600; background: var(--bs-gray-100); color: var(--bs-gray-700); }
.pt-mark.is-aanwezig { background: var(--bs-success); color: #fff; }
.pt-mark.is-misschien { background: var(--bs-warning); color: #071437; }
.pt-mark.is-afwezig { background: var(--bs-danger); color: #fff; }

.pt-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0; background: var(--bs-primary-light); color: var(--bs-primary); }

@media (max-width: 767.98px) {
    .pt-row { padding: 14px 16px; }
    .pt-row-resp { width: 100%; }
    .pt-bars { gap: 6px; }
    .pt-bar-labels { gap: 6px; }
}

/* Music proposals: each proposal is its own small card, with the actions in a fixed column (wide screens)
   or a two-column button grid below the text (phones) */
.pt-proposal { display: flex; gap: 24px; padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--pt-line);
    border-radius: 12px; background: var(--bs-body-bg); }
.pt-proposal:last-child { margin-bottom: 0; }
.pt-proposal.is-internal { background: var(--bs-warning-light); border-color: color-mix(in srgb, var(--bs-warning) 35%, transparent); }
.pt-proposal-body { flex: 1 1 auto; min-width: 0; }
.pt-proposal-actions { flex: 0 0 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.pt-proposal-actions.is-compact { flex-basis: auto; grid-template-columns: auto; }
.pt-proposal-actions.is-compact > * { min-width: 96px; }
.pt-proposal-actions form { margin: 0; }
.pt-proposal-actions .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.pt-proposal-actions .btn i { padding: 0; }
.pt-proposal-actions .pt-span, .pt-proposal-actions .pt-span-lg { grid-column: 1 / -1; }
.pt-proposal-done { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; }

@media (max-width: 767.98px) {
    .pt-proposal { flex-direction: column; gap: 14px; padding: 16px; }
    .pt-proposal-actions { flex-basis: auto; padding-top: 14px; border-top: 1px solid var(--pt-line); }
    .pt-proposal-actions.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-proposal-actions .pt-span-lg { grid-column: auto; }
    /* Bigger tap targets on phones */
    .pt-proposal-actions .btn, .pt-proposal-actions .form-select { min-height: 42px; }
    .pt-proposal-actions .btn { white-space: normal; line-height: 1.2; }
}

/* Rich text editor (Quill "snow" theme, restyled to match Metronic's solid inputs) */
/* No overflow:hidden here: the heading menu and the link popup must be able to stick out */
.pt-richtext { border-radius: .475rem; background: var(--bs-gray-100); border: 1px solid transparent; }
.pt-richtext:focus-within { background: var(--bs-gray-200); }
.pt-richtext.is-invalid { border-color: var(--bs-danger); }
.pt-richtext .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--bs-gray-300); padding: 6px 8px; font-family: inherit;
    display: flex; flex-wrap: wrap; gap: 2px; }
.pt-richtext .ql-toolbar.ql-snow .ql-formats { margin-right: 8px; }
.pt-richtext .ql-container.ql-snow { border: 0; font-family: inherit; font-size: 1.1rem; }
.pt-richtext .ql-editor { min-height: calc(var(--pt-rt-rows, 6) * 1.6em); color: var(--bs-gray-800); line-height: 1.6; }
.pt-richtext .ql-editor.ql-blank::before { color: var(--bs-gray-500); font-style: normal; }
.pt-richtext .ql-snow .ql-stroke { stroke: var(--bs-gray-700); }
.pt-richtext .ql-snow .ql-fill { fill: var(--bs-gray-700); }
.pt-richtext .ql-snow .ql-picker { color: var(--bs-gray-700); }
.pt-richtext .ql-snow button:hover .ql-stroke, .pt-richtext .ql-snow button.ql-active .ql-stroke,
.pt-richtext .ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--bs-primary); }
.pt-richtext .ql-snow button:hover .ql-fill, .pt-richtext .ql-snow button.ql-active .ql-fill { fill: var(--bs-primary); }
.pt-richtext .ql-snow .ql-picker-options { background: var(--bs-body-bg); border-color: var(--bs-gray-300); }
.pt-richtext .ql-snow .ql-tooltip { z-index: 5; border-radius: 8px; box-shadow: var(--pt-card-shadow); background: var(--bs-body-bg);
    border-color: var(--bs-gray-300); color: var(--bs-gray-800); }
.pt-richtext .ql-snow .ql-tooltip input[type=text] { background: var(--bs-body-bg); color: var(--bs-gray-900); border-color: var(--bs-gray-300); }
@media (max-width: 767.98px) {
    /* Finger-sized toolbar buttons */
    .pt-richtext .ql-snow.ql-toolbar button { width: 34px; height: 34px; padding: 6px; }
}

/* Formatted text as shown to readers */
.pt-prose > :first-child { margin-top: 0; }
.pt-prose > :last-child { margin-bottom: 0; }
.pt-prose p { margin: 0 0 .75em; }
.pt-prose h2 { font-size: 1.25rem; font-weight: 700; margin: 1.1em 0 .5em; color: var(--bs-gray-900); }
.pt-prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1em 0 .4em; color: var(--bs-gray-900); }
.pt-prose ul, .pt-prose ol { padding-left: 1.4em; margin: 0 0 .75em; }
.pt-prose li { margin-bottom: .2em; }
.pt-prose blockquote { margin: 0 0 .75em; padding: .25em 0 .25em 1em; border-left: 3px solid var(--bs-gray-300); color: var(--bs-gray-600); }
.pt-prose a { text-decoration: underline; }
.pt-prose.pt-quote { padding-left: 12px; border-left: 3px solid var(--bs-gray-300); }

/* Announcements on an activity page */
.pt-announcement { padding: 16px 0; border-bottom: 1px solid var(--pt-line); }
.pt-announcement:first-child { padding-top: 4px; }
.pt-announcement:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-announcement.is-pinned { background: var(--bs-warning-light); border-radius: 10px; padding: 14px 16px; border-bottom: 0; margin-bottom: 8px; }

/* Full-width layout: header, toolbar, content and footer use the whole width next to the sidebar,
   with a 32px gutter on desktop (Metronic's default is 30px) */
@media (min-width: 992px) {
    .app-container { padding-left: 32px !important; padding-right: 32px !important; }
}

/* Card headers: one consistent bar with a divider line (also on .card-flush, and overriding pt-5 / pt-6 in the views) */
.app-content .card > .card-header {
    min-height: 64px;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--pt-line) !important;
    align-items: center;
}
.app-content .card > .card-header .card-title { margin: 0; }
.app-content .card > .card-header .card-toolbar { margin: 0; }
/* The body under a header needs breathing room now that there is a line between them */
.app-content .card > .card-header + .card-body { padding-top: 20px !important; }
.app-content .card > .card-body { padding-left: 24px; padding-right: 24px; }

/* =====================================================================================================
   Page building blocks (first used on the seating page; meant for reuse on other pages).
   Overview with examples: docs/ui-patterns.md
   ===================================================================================================== */

/* Buttons: 40px high with icon + text; icon-only buttons are square */
.pt-btn { height: 40px; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.pt-btn i { padding: 0 !important; }
.pt-btn-icon { width: 40px !important; height: 40px !important; }
.pt-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-weight: 500; }
.pt-menu form { margin: 0; }

/* Small status pills */
.pt-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.pt-pill-success { background: var(--bs-success-light); color: #0E7A3B; }
.pt-pill-warning { background: #FFF4E5; color: #9A4A0B; font-size: 11px; padding: 2px 8px; }
[data-bs-theme=dark] .pt-pill-warning { background: rgba(249, 150, 63, .15); color: #F9B27A; }
.pt-text-open { color: #B45309; }

/* Subtitle line under the page title: text · pill · save status */
.pt-subline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-save-status { display: inline-flex; align-items: center; gap: 4px; color: #0E7A3B; }
.pt-save-status i { color: inherit; }
.pt-save-status[data-state=saving] { color: var(--bs-gray-600); }
.pt-save-status[data-state=saving] i { visibility: hidden; }
.pt-save-status[data-state=error] { color: var(--bs-danger); }

/* A row of number tiles */
.pt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pt-stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 12px; background: var(--bs-body-bg); box-shadow: var(--pt-card-shadow); min-width: 0; }
.pt-stat-tile-label { font-size: 13px; font-weight: 500; color: var(--bs-gray-600); }
.pt-stat-tile-value { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--bs-gray-900); font-variant-numeric: tabular-nums; }
.pt-stat-tile-note { font-size: 12px; color: var(--bs-gray-500); }

/* Main card + side column (side column drops below on smaller screens) */
.pt-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pt-split-main { flex: 999 1 620px; min-width: 0; }
.pt-split-side { flex: 1 1 340px; max-width: 400px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pt-split-side > .card { margin: 0; }

/* Card footer bar with chips and a tip */
.pt-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px 20px; border-top: 1px solid var(--pt-line); }
.pt-card-foot-tip { font-size: 12px; color: var(--bs-gray-500); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.pt-chip { height: 32px; font-size: 12px; cursor: pointer; }

/* Compact zoom control */
.pt-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bs-gray-100); }
.pt-zoom-btn { width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--bs-gray-800); display: inline-flex; align-items: center; justify-content: center; }
.pt-zoom-btn:hover:not(:disabled) { background: var(--bs-body-bg); }
.pt-zoom-btn:disabled { opacity: .4; }
.pt-zoom-value { width: 44px; text-align: center; font-size: 12px; font-weight: 600; color: var(--bs-gray-800); font-variant-numeric: tabular-nums; }

/* Occupancy list: dot, name, open badge, count and a thin progress bar per row */
.pt-occ { display: flex; flex-direction: column; }
.pt-occ-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; row-gap: 4px;
    padding: 7px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.pt-occ-row:hover, .pt-occ-row.active { background: var(--bs-gray-100); }
.pt-occ-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--fam, var(--bs-primary)); }
.pt-occ-name { font-size: 13px; font-weight: 500; color: var(--bs-gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-occ-count { min-width: 34px; text-align: right; font-size: 13px; color: var(--bs-gray-600); font-variant-numeric: tabular-nums; }
.pt-occ-bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: var(--bs-gray-200); overflow: hidden; }
.pt-occ-bar > span { display: block; height: 100%; background: var(--fam, var(--bs-primary)); }

/* Selected item: badge + name, fields, actions */
.pt-seat-head { display: flex; align-items: center; gap: 14px; }
.pt-seat-badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; box-sizing: border-box; border: 2.5px solid var(--fam);
    background: color-mix(in srgb, var(--fam) 16%, var(--bs-body-bg)); color: var(--fam); font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; }
.pt-seat-fields { display: grid; gap: 16px; margin-top: 20px; }
.pt-seat-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.pt-empty-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px 0; }

/* Bottom sheet: below 1200px the side card slides up from the bottom when something is selected */
.pt-sheet-handle { display: none; }
@media (max-width: 1199.98px) {
    .pt-split-side { max-width: none; }
    .pt-sheet { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 106; margin: 0 !important; max-height: 75vh; overflow-y: auto;
        border-radius: 20px 20px 0 0 !important; box-shadow: 0 -8px 24px rgba(16, 24, 40, .14) !important;
        transform: translateY(105%); transition: transform .22s ease; visibility: hidden; }
    .pt-sheet.is-open { transform: none; visibility: visible; }
    .pt-sheet .pt-sheet-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--bs-gray-300); margin: 10px auto 0; }
    .pt-sheet > .card-header { border-bottom: 0 !important; min-height: 48px; padding-top: 8px !important; padding-bottom: 0 !important; }
    .pt-sheet > .card-header + .card-body { padding-top: 8px !important; padding-bottom: 24px; }
    .pt-sheet .btn, .pt-sheet .form-select { min-height: 44px; }
}

@media (max-width: 767.98px) {
    .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pt-stat-tile { padding: 14px 16px; }
    .pt-stat-tile-value { font-size: 22px; }
    .pt-card-foot { padding: 12px 16px 16px; }
    .pt-card-foot .pt-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
    .pt-card-foot .pt-chip { flex: 0 0 auto; }
    .pt-card-foot-tip { display: none; }
}

/* Tables inside a card: the table starts right under the header line, cell padding (gs-6) lines up with the header */
.app-content .card > .card-header + .card-body.pt-card-table, .app-content .card > .card-body.pt-card-table { padding: 0 !important; }
.pt-card-table thead tr { background: var(--bs-gray-100); }
.pt-card-table thead th { padding-top: 12px !important; padding-bottom: 12px !important; letter-spacing: .02em; }

/* Clickable rows (see layouts/app.blade.php) */
.pt-row-link { cursor: pointer; transition: background-color .12s; }
.pt-row-link:hover { background: var(--bs-gray-100); }
.pt-row-link:hover .ki-right { color: var(--bs-primary) !important; }
.pt-row-link:focus-within { background: var(--bs-gray-100); }

/* Thin progress bar for table cells */
.pt-mini-bar { width: 90px; height: 6px; border-radius: 3px; background: var(--bs-gray-200); overflow: hidden; flex-shrink: 0; }
.pt-mini-bar > span { display: block; height: 100%; background: var(--bs-primary); border-radius: 3px; }

/* Instrument-group colours and stage colours (seating plans) */
:root { --fam-fl:#2E8B57; --fam-kl:#2C6DB5; --fam-sax:#7A4CB0; --fam-hn:#B7791F; --fam-tp:#C04A2B; --fam-low:#1E8582; --fam-perc:#6B7280; --stage:#FBF7F0; --stage-line:#E6DCCB; }
[data-bs-theme=dark] { --fam-fl:#5CC08A; --fam-kl:#6FA3E6; --fam-sax:#B08BE0; --fam-hn:#E2B05A; --fam-tp:#EE8467; --fam-low:#56C2BE; --fam-perc:#A3A9B5; --stage:#221F1A; --stage-line:#3D372D; }

/* Section heading above a group of cards */
.pt-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pt-section-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--bs-gray-900); }
.pt-section-head .pt-dot { width: 10px; height: 10px; }
.pt-section-count { font-size: 13px; color: var(--bs-gray-500); }

/* Grid of cards that each open something (seating plans) */
.pt-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pt-plan-card { display: flex; flex-direction: column; border-radius: 12px; background: var(--bs-body-bg); box-shadow: var(--pt-card-shadow);
    color: var(--bs-gray-800); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.pt-plan-card:hover { color: var(--bs-gray-800); box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 12px 24px rgba(16, 24, 40, .08); transform: translateY(-2px); }
.pt-plan-card:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 2px; }
.pt-plan-card:hover .pt-plan-name { color: var(--bs-primary); }
.pt-plan-thumb { position: relative; background: color-mix(in srgb, var(--stage, #FBF7F0) 55%, var(--bs-body-bg)); padding: 16px 20px 0; border-bottom: 1px solid var(--pt-line); }
.pt-plan-thumb svg { display: block; width: 100%; height: auto; }
.pt-plan-thumb-stage { fill: var(--stage, #FBF7F0); stroke: var(--stage-line, #E6DCCB); stroke-width: 3; }
.pt-plan-thumb circle.is-filled { fill: var(--fam); }
.pt-plan-thumb circle.is-open { fill: var(--bs-body-bg); stroke: var(--fam); stroke-width: 5; stroke-dasharray: 8 6; }
.pt-plan-thumb circle.is-me { stroke: var(--bs-primary); stroke-width: 10; paint-order: stroke; }
.pt-plan-thumb-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--bs-gray-500); }
.pt-plan-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 18px; }
.pt-plan-name { font-size: 15px; font-weight: 700; color: var(--bs-gray-900); transition: color .15s; }
.pt-plan-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--bs-gray-600); }
.pt-plan-me { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 12px;
    background: var(--bs-primary-light); color: var(--bs-primary); font-size: 12px; font-weight: 600; }
.pt-plan-me i { color: inherit; }

/* "Add" tile at the end of a grid */
.pt-plan-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; padding: 20px;
    border: 1.5px solid var(--bs-gray-300); border-radius: 12px; background: transparent; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pt-plan-add:hover { border-color: var(--bs-primary); background: color-mix(in srgb, var(--bs-primary) 4%, transparent); }
.pt-plan-add-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bs-primary-light); color: var(--bs-primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.pt-plan-add-icon i { color: inherit; }

@media (max-width: 575.98px) {
    .pt-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pt-plan-add { min-height: 0; flex-direction: row; }
    .pt-plan-add-icon { margin: 0; width: 40px; height: 40px; }
}

/* =====================================================================================================
   Dashboard building blocks (board and member dashboards; reusable elsewhere)
   ===================================================================================================== */

/* Rows: a wide block with a side card next to it; three equal columns */
.pt-dash-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.pt-dash-wide { flex: 3 1 560px; min-width: 0; margin: 0; }
.pt-dash-side { flex: 2 1 340px; min-width: 0; margin: 0; }
.pt-dash-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pt-dash-cols > .card { margin: 0; }
@media (max-width: 1199.98px) { .pt-dash-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pt-dash-cols { grid-template-columns: minmax(0, 1fr); } .pt-dash-row, .pt-dash-cols { gap: 16px; } }

/* Text link with an arrow, for card toolbars and footers */
.pt-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--bs-primary); }
.pt-link i { color: inherit; transition: transform .15s; }
.pt-link:hover { color: var(--bs-primary-active); }
.pt-link:hover i { transform: translateX(2px); }

/* Soft square icon holder */
.pt-icon-box { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.pt-icon-box i { color: inherit; }
.pt-icon-primary { background: var(--bs-primary-light); color: var(--bs-primary); }
.pt-icon-warning { background: #FFF4E5; color: #B45309; }
.pt-icon-danger { background: var(--bs-danger-light); color: #C2183F; }
.pt-icon-success { background: var(--bs-success-light); color: #0E7A3B; }
.pt-icon-accent { background: color-mix(in srgb, var(--pt-accent) 16%, var(--bs-body-bg)); color: color-mix(in srgb, var(--pt-accent) 75%, black); }

/* More pills */
.pt-pill-primary { background: var(--bs-primary-light); color: var(--bs-primary); }
.pt-pill-accent { background: #FFF1E6; color: #9A4A0B; }
.pt-pill-danger { background: var(--bs-danger-light); color: #C2183F; }
.pt-pill-pinned { background: #FFE9C7; color: #9A4A0B; font-size: 11px; padding: 2px 8px; }
[data-bs-theme=dark] .pt-pill-accent, [data-bs-theme=dark] .pt-pill-pinned { background: rgba(249, 150, 63, .15); color: #F9B27A; }

/* Banners (a reply reminder, a first-steps hint) */
.pt-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; }
.pt-banner-warning { background: #FFF8EC; border: 1px solid #FBD9A8; color: #7A3A06; }
.pt-banner-warning .pt-banner-sub { color: #9A4A0B; }
.pt-banner-soft { background: var(--bs-body-bg); box-shadow: var(--pt-card-shadow); color: var(--bs-gray-800); }
.pt-banner-primary { background: var(--bs-body-bg); box-shadow: var(--pt-card-shadow); color: var(--bs-gray-800); }
[data-bs-theme=dark] .pt-banner-warning { background: rgba(249, 150, 63, .1); border-color: rgba(249, 150, 63, .3); color: #F9B27A; }
[data-bs-theme=dark] .pt-banner-warning .pt-banner-sub { color: #F9C9A0; }

/* Hero card for the next activity (partials/next-hero) */
.pt-next { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 14px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--bs-primary) 25%, transparent); }
.pt-next-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-next-label { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 3px 10px; }
.pt-date-hero { width: 76px; background: #fff; color: #071437; }
.pt-date-hero .pt-date-top { color: #C2183F; }
.pt-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.pt-next-reply { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-next-reply form { margin: 0; }
.pt-next-btn { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff;
    font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s; }
.pt-next-btn:hover { background: rgba(255, 255, 255, .12); }
.pt-next-btn i { color: inherit; }
.pt-next-btn.is-active { background: #fff; border-color: #fff; }
.pt-next-btn.is-aanwezig { color: #0E7A3B; }
.pt-next-btn.is-misschien { color: #8A6A00; }
.pt-next-btn.is-afwezig { color: #C2183F; }
@media (max-width: 575.98px) {
    .pt-next { padding: 20px; gap: 16px; }
    .pt-next-reply { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .pt-next-btn { width: 100%; height: 44px; justify-content: center; padding: 0 6px; }
    .pt-next-actions .pt-hero-link { margin-left: 0 !important; }
}

/* "Needs attention" list */
.pt-attn { display: flex; flex-direction: column; flex: 1; }
.pt-attn-row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--pt-line); color: var(--bs-gray-900); }
.pt-attn-row:last-child { border-bottom: 0; }
.pt-attn-row:hover { background: var(--bs-gray-100); color: var(--bs-gray-900); }
.pt-attn-row.is-done .pt-attn-label { color: var(--bs-gray-600); font-weight: 500; }
.pt-attn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-attn-label { font-size: 14px; font-weight: 600; }
.pt-attn-sub { font-size: 12px; color: var(--bs-gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-attn-count { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Number tile with an icon in the top right (a link or a plain block) */
.pt-stat-tile.has-icon { position: relative; padding-right: 72px; }
.pt-stat-tile.has-icon > .pt-icon-box { position: absolute; top: 18px; right: 20px; }
a.pt-stat-tile { transition: box-shadow .15s; }
a.pt-stat-tile:hover { box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 10px 20px rgba(16, 24, 40, .07); }

/* Lists of rows inside a card (coming up, your tasks) */
.pt-list { padding: 4px 0 8px; }
.pt-list-row { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--pt-line); color: var(--bs-gray-900); }
.pt-list-row:last-child { border-bottom: 0; }
.pt-list-row:hover { background: var(--bs-gray-100); color: var(--bs-gray-900); }
.pt-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-list-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-list-sub { font-size: 12px; color: var(--bs-gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-list-end { width: 48px; text-align: right; font-size: 12px; color: var(--bs-gray-600); flex-shrink: 0; }
.pt-date-sm { width: 48px; padding: 6px 0; }
.pt-date-sm .pt-date-day { font-size: 18px; }
.pt-date-md { width: 64px; }
@media (max-width: 575.98px) { .pt-list-row { padding: 12px 16px; } .pt-list-row .pt-pill { display: none; } }

/* Little gray number blocks inside a card */
.pt-mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pt-mini-tiles.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-mini-tiles > div { background: var(--bs-gray-100); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.pt-mini-tiles b { display: block; font-size: 18px; font-weight: 700; color: var(--bs-gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-mini-tiles span { font-size: 12px; color: var(--bs-gray-600); }

/* Numbered list (concert programme) */
.pt-numbered { list-style: none; margin: 0; padding: 0; }
.pt-numbered li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--pt-line); }
.pt-numbered li:last-child { border-bottom: 0; }
.pt-numbered-n { width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; background: var(--bs-gray-100); color: var(--bs-gray-600);
    font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pt-numbered-main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }

/* People rows (tasks) and a "you" line */
.pt-person-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pt-line); }
.pt-person-row:last-of-type { border-bottom: 0; }
.pt-mine { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: var(--bs-primary-light); color: var(--bs-primary); font-size: 12px; font-weight: 600; }
.pt-mine i { color: inherit; }

/* Announcement teasers */
.pt-ann { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--pt-line); }
.pt-ann:last-child { border-bottom: 0; }
.pt-ann.is-pinned { background: #FFF8EC; border-radius: 10px; padding: 14px 16px; border-bottom: 0; }
[data-bs-theme=dark] .pt-ann.is-pinned { background: rgba(249, 150, 63, .08); }
.pt-ann-title { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.pt-ann-title a { color: var(--bs-gray-900); }
.pt-ann-title a:hover { color: var(--bs-primary); }
.pt-ann-meta { font-size: 12px; color: var(--bs-gray-500); }
.pt-ann-text { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--bs-gray-700); }

/* Average line across the attendance bars */
.pt-bars { position: relative; }
.pt-bars-avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--bs-gray-500); pointer-events: none; margin-bottom: 0; }
.pt-bars-avg > span { position: absolute; right: 0; bottom: 2px; font-size: 11px; font-weight: 600; color: var(--bs-gray-600); background: var(--bs-body-bg); padding: 0 4px; }

@media (max-width: 991.98px) { .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/*
 * Item list: rows of "status · task · person · actions" inside a card (duty roster, and reusable for other lists).
 * <div class="pt-items">
 *   <div class="pt-item [is-open] [is-done]">
 *     <div class="pt-item-lead">…</div>        toggle, icon or avatar
 *     <div class="pt-item-body">               grows
 *       <div class="pt-item-title">…</div>
 *       <div class="pt-item-meta">…</div>
 *     </div>
 *     <div class="pt-item-side">…</div>        person or status, fixed width so columns line up
 *     <div class="pt-item-actions">…</div>     buttons, never cut off
 *   </div>
 * </div>
 */
.pt-items { display: flex; flex-direction: column; }
.pt-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; border-bottom: 1px solid var(--pt-line); }
.pt-item:last-child { border-bottom: 0; }
.pt-item.is-open { background: #FFF8FA; margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 8px; }
[data-bs-theme=dark] .pt-item.is-open { background: rgba(248, 40, 90, .08); }
.pt-item.is-done .pt-item-title { color: var(--bs-gray-500); text-decoration: line-through; }
.pt-item-lead { flex-shrink: 0; display: flex; align-items: center; }
.pt-item-body { flex: 1 1 220px; min-width: 0; }
.pt-item-title { font-size: 14px; font-weight: 600; color: var(--bs-gray-900); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-item-meta { font-size: 12px; color: var(--bs-gray-600); margin-top: 2px; }
.pt-item-side { flex: 0 0 240px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pt-item-actions { flex-shrink: 0; min-width: 150px; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pt-chip-time { font-size: 11px; font-weight: 600; color: var(--bs-gray-700); background: var(--bs-gray-100); border-radius: 5px; padding: 2px 7px; }

/* Round "done" toggle */
.pt-check { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid var(--bs-gray-300); background: var(--bs-body-bg);
    display: inline-flex; align-items: center; justify-content: center; color: transparent; }
button.pt-check:hover { border-color: var(--bs-success); color: var(--bs-success); }
.pt-check.is-done { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.pt-check i { color: inherit; }

/* Who: avatar + name, or a red "nobody yet" marker */
.pt-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-who .pt-avatar { width: 32px; height: 32px; font-size: 12px; }
.pt-who-name { font-size: 13px; font-weight: 500; color: var(--bs-gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-who.is-open .pt-avatar { background: #FFEEF3; color: #C2183F; border: 1px dashed #F8285A; }
.pt-who.is-open .pt-who-name { color: #C2183F; font-weight: 600; }

/* Card header for a group of items: progress bar + status */
.pt-progress-line { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.pt-progress-line > .pt-progress-track { flex: 1; height: 6px; border-radius: 3px; background: var(--bs-gray-200); overflow: hidden; }
.pt-progress-line > .pt-progress-track > span { display: block; height: 100%; background: var(--bs-success); }
.pt-stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 767.98px) {
    .pt-item-side { flex-basis: 100%; padding-left: 48px; }
    .pt-item-actions { margin-left: 48px; min-width: 0; justify-content: flex-start; }
    .pt-stats.is-3 { grid-template-columns: 1fr; }
}

/* Reason for absence (attendance) */
.pt-reason { display: inline-flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: 12px; color: #9F1239; line-height: 1.4; }
.pt-reason i { color: inherit; margin-top: 2px; }
[data-bs-theme=dark] .pt-reason { color: #FDA4AF; }
.pt-reason-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.pt-hero .pt-reason, .pt-hero .pt-reason-line .btn-link { color: #fff; }

/* =====================================================================================================
   Login, registration and central pages (layouts/guest), in the platform brand
   ===================================================================================================== */
.mmv-auth-body { background: var(--mmv-bg) !important; color: var(--mmv-ink); font-family: var(--mmv-font-heading); } /* login and www pages: Manrope throughout, as in the design */
[data-bs-theme=dark] .mmv-auth-body { color: var(--bs-gray-900); }
.mmv-auth { min-height: 100vh; display: flex; flex-direction: column; }
.mmv-auth-locale { position: absolute; top: 16px; right: 16px; }
.mmv-auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 64px 20px 40px; }
.mmv-auth-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mmv-auth-logo { height: 64px; max-width: 220px; object-fit: contain; margin-bottom: 6px; }
.mmv-auth-name { font-family: var(--mmv-font-heading); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--bs-gray-900); }
.mmv-auth-sub { font-size: 15px; color: var(--mmv-gray); }
.mmv-auth-card { width: 100%; max-width: 420px; box-sizing: border-box; padding: 32px; border-radius: 18px; background: var(--bs-body-bg);
    box-shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 8px 24px rgba(31, 42, 68, .06); }
.mmv-auth-title { margin: 0 0 4px; font-family: var(--mmv-font-heading); font-size: 22px; font-weight: 800; color: var(--bs-gray-900); }
.mmv-auth-intro { margin: 0 0 24px; font-size: 14px; color: var(--mmv-gray); }
.mmv-auth-card h1 { font-family: var(--mmv-font-heading); }
.mmv-auth-card .form-label { font-size: 13px; font-weight: 700; color: var(--bs-gray-900); }
/* Bordered fields that are easy to find (3:1 against white) */
.mmv-auth-card .form-control, .mmv-auth-card .form-select, .mmv-finder .form-control {
    height: 46px; border-radius: 10px; border: 1px solid var(--mmv-input-border); background: var(--bs-body-bg); font-size: 15px; }
.mmv-auth-card .form-control:focus, .mmv-finder .form-control:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 18%, transparent); }
.mmv-auth-card .btn-primary { height: 46px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.mmv-auth-foot { margin: 0; max-width: 420px; text-align: center; font-size: 13px; color: var(--mmv-gray); line-height: 1.8; }
.mmv-auth-foot a { font-weight: 700; color: var(--mmv-ink); text-decoration: underline; }
[data-bs-theme=dark] .mmv-auth-foot a { color: #fff; }
.mmv-auth-foot a.mmv-auth-credit { text-decoration: none; }
.mmv-auth-foot .mmv-wordmark-sm { font-size: 13px; vertical-align: baseline; }

/* Letter tile for an association without a logo, in its own colour */
.mmv-tile { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--bs-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-family: var(--mmv-font-heading); font-weight: 800; font-size: 24px; }
.mmv-tile-sm { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }

/* Central site (www): header, buttons and the login finder */
.mmv-site-header { background: var(--bs-body-bg); border-bottom: 1px solid var(--mmv-line); }
.mmv-site-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.mmv-site-brand { margin-right: auto; text-decoration: none; }
.mmv-site-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mmv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
    font-family: var(--mmv-font-heading); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.mmv-btn-ink { background: var(--mmv-ink); color: #fff; }
.mmv-btn-ink:hover { background: #151D30; color: #fff; }
.mmv-btn-outline { border-color: var(--mmv-ink); color: var(--mmv-ink); background: transparent; }
.mmv-btn-outline:hover, .mmv-btn-outline.is-current { background: var(--mmv-bg); color: var(--mmv-ink); }
.mmv-btn-block { width: 100%; height: 48px; border-radius: 12px; }
[data-bs-theme=dark] .mmv-btn-outline { border-color: #fff; color: #fff; }

.mmv-finder { max-width: 1200px; width: 100%; margin: 0 auto; box-sizing: border-box; padding: 56px 24px 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.mmv-finder-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.mmv-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mmv-copper-text); }
.mmv-display { margin: 0; font-family: var(--mmv-font-heading); font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--bs-gray-900); }
.mmv-lead { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--mmv-text); }
[data-bs-theme=dark] .mmv-lead { color: var(--bs-gray-700); }
.mmv-finder-signup { margin: 8px 0 0; font-size: 15px; color: var(--mmv-gray); }
.mmv-finder-signup a { font-weight: 700; color: var(--mmv-ink); text-decoration: underline; }
.mmv-finder-card { flex: 1 1 460px; max-width: 520px; box-sizing: border-box; padding: 36px; border-radius: 20px; background: var(--bs-body-bg);
    display: flex; flex-direction: column; gap: 22px; box-shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 12px 32px rgba(31, 42, 68, .08); }
.mmv-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.mmv-label { font-size: 14px; font-weight: 800; color: var(--bs-gray-900); }
.mmv-finder .form-control { height: 48px; border-radius: 12px; font-size: 16px; padding: 0 16px; }
.mmv-hint { margin: 0; font-size: 13px; color: var(--mmv-gray); }
.mmv-error { margin: 0; font-size: 13px; color: var(--mmv-error); }
.mmv-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mmv-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--mmv-surface-soft); color: var(--bs-gray-900); text-decoration: none; }
.mmv-result:hover, .mmv-result:focus-visible { background: var(--mmv-line); color: var(--bs-gray-900); }
.mmv-result-text { min-width: 0; display: flex; flex-direction: column; }
.mmv-result-name { font-size: 15px; font-weight: 800; }
.mmv-result-sub { font-size: 12px; color: var(--mmv-gray); }
.mmv-tile-copper { background: var(--mmv-copper-soft); color: var(--mmv-copper-text); }
.mmv-tile-ink { background: var(--mmv-ink); color: #fff; }
.mmv-continue { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--mmv-ink);
    background: var(--mmv-bg); color: var(--mmv-ink); text-decoration: none; }
.mmv-continue:hover { background: var(--mmv-line); color: var(--mmv-ink); }
.mmv-continue i { color: inherit; }
.mmv-continue-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mmv-continue-label { font-size: 12px; color: var(--mmv-gray); }
.mmv-continue-name { font-size: 16px; font-weight: 800; }
.mmv-or { display: flex; align-items: center; gap: 12px; color: #6B7385; font-size: 13px; font-weight: 600; }
.mmv-or span { flex: 1; height: 1px; background: var(--mmv-line); }
.mmv-sent { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--mmv-success-bg); color: #24543A; font-size: 14px; line-height: 1.5; }
.mmv-sent-title { font-size: 15px; font-weight: 800; color: var(--mmv-success-text); }
.mmv-sent a { align-self: flex-start; font-weight: 700; color: var(--mmv-success-text); text-decoration: underline; }
@media (max-width: 575.98px) {
    .mmv-finder { padding: 32px 16px 48px; gap: 28px; }
    .mmv-finder-intro { padding-top: 0; }
    .mmv-finder-card { padding: 24px 20px; }
    .mmv-site-locale { order: 3; }
}

/* www header: menu, buttons and the NL | EN switch (design: "www header — navigation and language") */
.mmv-site-header-inner { gap: 16px 32px; }
.mmv-site-nav { display: flex; align-items: center; gap: 28px; font-family: var(--mmv-font-heading); font-size: 15px; font-weight: 600; }
.mmv-site-nav a { color: var(--mmv-ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.mmv-site-nav a:hover { color: var(--mmv-copper-text); }
.mmv-site-nav a.is-current { border-bottom-color: var(--mmv-copper); }
.mmv-site-actions { display: flex; align-items: center; gap: 10px; }
.mmv-site-sep { width: 1px; height: 28px; background: var(--mmv-border); margin: 0 6px; }
.mmv-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--mmv-bg); border: 1px solid var(--mmv-border); }
.mmv-lang form { margin: 0; }
.mmv-lang-btn { height: 30px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--mmv-gray);
    font-family: var(--mmv-font-heading); font-size: 13px; font-weight: 800; cursor: pointer; }
.mmv-lang-btn:hover { color: var(--mmv-ink); }
.mmv-lang-btn.is-active { background: var(--mmv-ink); color: #fff; }
.mmv-lang-compact, .mmv-menu-btn { display: none; }
.mmv-menu-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--mmv-ink); align-items: center; justify-content: center; cursor: pointer; }
.mmv-menu-btn.is-open { background: var(--mmv-bg); }
.mmv-menu-icon-close, .mmv-menu-btn.is-open .mmv-menu-icon-open { display: none; }
.mmv-menu-btn.is-open .mmv-menu-icon-close { display: block; }
.mmv-site-menu { border-top: 1px solid var(--mmv-line); padding: 8px 16px 20px; }
.mmv-site-menu nav { display: flex; flex-direction: column; }
.mmv-site-menu nav a { padding: 14px 4px; border-bottom: 1px solid var(--mmv-line); font-family: var(--mmv-font-heading); font-size: 17px; font-weight: 700; color: var(--mmv-ink); text-decoration: none; }
.mmv-site-menu nav a[aria-current] { color: var(--mmv-copper-text); }
.mmv-site-menu-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.mmv-site-menu-buttons .mmv-btn { height: 48px; padding: 0 10px; font-size: 14px; text-align: center; }
.mmv-site-menu-lang { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--mmv-gray); }
@media (max-width: 991.98px) {
    .mmv-site-nav, .mmv-site-actions { display: none; }
    .mmv-lang-compact { display: inline-flex; }
    .mmv-menu-btn { display: inline-flex; }
    .mmv-site-header-inner { padding: 10px 12px 10px 16px; gap: 8px; flex-wrap: nowrap; }
    .mmv-site-header .mmv-wordmark-md { font-size: 15px; }
}
@media (min-width: 992px) { .mmv-site-menu { display: none !important; } }
[data-bs-theme=dark] .mmv-site-nav a, [data-bs-theme=dark] .mmv-site-menu nav a { color: #fff; }

/* Simple content pages on www */
.mmv-page { max-width: 1200px; margin: 0 auto; padding: 56px 24px 72px; display: flex; flex-direction: column; gap: 36px; }
.mmv-page-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.mmv-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mmv-page-card { padding: 24px; border-radius: 16px; background: var(--bs-body-bg); box-shadow: var(--pt-card-shadow); }
.mmv-page-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--bs-gray-900); }
.mmv-todo { margin: 0; color: var(--mmv-copper-text); font-weight: 700; font-size: 14px; }
.mmv-page-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 575.98px) { .mmv-page { padding: 32px 16px 48px; } }

/* Central pages fill the width of the header (the guest layout is a flex column, so set the width explicitly) */
.mmv-finder, .mmv-page { width: 100%; box-sizing: border-box; }
.mmv-finder .form-select { height: 48px; border-radius: 12px; border: 1px solid var(--mmv-input-border); background-color: var(--bs-body-bg); font-size: 16px; }
.mmv-finder .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mmv-finder .input-group-text { border: 1px solid var(--mmv-input-border); border-left: 0; border-radius: 0 12px 12px 0; background: var(--mmv-bg); color: var(--mmv-gray); font-size: 14px; }
.mmv-finder .form-label { font-size: 14px; font-weight: 800; color: var(--bs-gray-900); }
.mmv-signup-card h3 { font-family: var(--mmv-font-heading); font-size: 16px; font-weight: 800; color: var(--bs-gray-900); }
.mmv-checklist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--mmv-text); }
.mmv-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.mmv-checklist li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 50%;
    background: var(--mmv-copper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B85A12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
