/**
 * MCM Project Hub — Klant Dashboard
 *
 * Hub v2 stijl: compact, informatiedicht, app-achtig
 *
 * @package MCM
 * @author MCM Websites
 * @link https://mcmwebsites.nl
 * @since 2.0.0
 */

/* ===========================
   DESIGN TOKENS
   =========================== */

.mcm-hub,
.mcm-portal {
    --mcm-primary: #ae432b;
    --mcm-primary-light: #fdf0ea;
    --mcm-teal: #008a8a;
    --mcm-teal-light: #e6f3f3;
    --mcm-orange: #e78e46;
    --mcm-orange-light: #fef5ed;
    --mcm-brown-dark: #824131;

    --mcm-bg: #fafaf8;
    --mcm-surface: #ffffff;
    --mcm-surface-hover: #f7f7f5;
    --mcm-surface-alt: #f3f2ef;
    --mcm-border: #e8e6e1;
    --mcm-border-light: #f0eeea;

    --mcm-text: #1a1a18;
    --mcm-text-secondary: #6b6960;
    --mcm-text-tertiary: #9e9a8f;

    --mcm-phase-done: #008a8a;
    --mcm-phase-active: #e78e46;
    --mcm-phase-upcoming: #e8e6e1;

    --mcm-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --mcm-shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --mcm-shadow-md: 0 4px 12px rgba(0,0,0,0.07);

    --mcm-radius: 10px;
    --mcm-radius-sm: 6px;

    --mcm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===========================
   BASE & AVADA RESET
   =========================== */

.mcm-hub {
    font-family: var(--mcm-font) !important;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--mcm-text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 0;
}

.mcm-hub *,
.mcm-hub *::before,
.mcm-hub *::after,
.mcm-portal *,
.mcm-portal *::before,
.mcm-portal *::after {
    box-sizing: border-box;
}

.mcm-hub h1, .mcm-hub h2, .mcm-hub h3, .mcm-hub h4,
.mcm-hub p, .mcm-hub a, .mcm-hub span, .mcm-hub div,
.mcm-hub strong, .mcm-hub em {
    font-family: var(--mcm-font) !important;
}

.mcm-hub h1, .mcm-hub h2, .mcm-hub h3, .mcm-hub h4,
.mcm-hub p {
    margin: 0;
    padding: 0;
}

/* ===========================
   SECTION LABELS
   =========================== */

.mcm-hub-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--mcm-text-tertiary);
    font-weight: 700;
    margin-bottom: 12px;
}

.mcm-hub-section {
    margin-bottom: 24px;
}

/* ===========================
   HEADER
   =========================== */

.mcm-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.mcm-hub-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: var(--mcm-text);
}

.mcm-hub-subtitle {
    font-size: 13px;
    color: var(--mcm-text-secondary);
    margin-top: 3px;
}

.mcm-hub-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.mcm-hub-badge {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.mcm-hub-badge-active {
    background: var(--mcm-teal-light);
    color: var(--mcm-teal);
}

.mcm-hub-badge-phase {
    background: var(--mcm-surface-alt);
    color: var(--mcm-text-secondary);
}

/* ===========================
   STAT CARDS
   =========================== */

.mcm-hub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.mcm-hub-stat {
    background: var(--mcm-surface);
    border: 1px solid var(--mcm-border);
    border-radius: var(--mcm-radius);
    padding: 18px;
}

.mcm-hub-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mcm-text-tertiary);
    font-weight: 600;
    margin-bottom: 8px;
}

.mcm-hub-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--mcm-text);
}

.mcm-hub-stat-value .unit {
    font-size: 16px;
    color: var(--mcm-text-tertiary);
    font-weight: 500;
}

.mcm-hub-stat-sub {
    font-size: 11.5px;
    color: var(--mcm-text-tertiary);
    margin-top: 6px;
}

.mcm-hub-stat-sub .highlight {
    color: var(--mcm-teal);
    font-weight: 500;
}

.mcm-hub-stat-bar {
    height: 4px;
    background: var(--mcm-border);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.mcm-hub-stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.mcm-hub-stat-bar-fill.teal { background: var(--mcm-teal); }
.mcm-hub-stat-bar-fill.orange { background: var(--mcm-orange); }
.mcm-hub-stat-bar-fill.primary { background: var(--mcm-primary); }

/* ===========================
   PROGRESS STRIP
   =========================== */

.mcm-hub-progress {
    display: flex;
    gap: 3px;
    margin-bottom: 24px;
}

.mcm-hub-progress-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--mcm-phase-upcoming);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.mcm-hub-progress-seg:hover {
    transform: scaleY(2.5);
}

.mcm-hub-progress-seg.done {
    background: var(--mcm-phase-done);
}

.mcm-hub-progress-seg.current {
    background: linear-gradient(90deg, var(--mcm-phase-active) 60%, var(--mcm-phase-upcoming) 60%);
}

.mcm-hub-progress-seg .seg-tip {
    display: none;
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mcm-text);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.mcm-hub-progress-seg:hover .seg-tip {
    display: block;
}

/* ===========================
   PHASE TABS + CONTENT PANEL
   =========================== */

.mcm-hub-tabbed {
    margin-bottom: 28px;
}

/* --- Tab strip --- */
.mcm-hub-tabs {
    display: flex;
    gap: 0;
    padding-left: 12px;
    padding-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.mcm-hub-tabs::-webkit-scrollbar {
    display: none;
}

.mcm-hub-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--mcm-radius-sm) var(--mcm-radius-sm) 0 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    color: var(--mcm-text-tertiary);
    background: var(--mcm-surface-alt);
    border: 1px solid var(--mcm-border);
    border-bottom: 1px solid var(--mcm-orange);
    margin-right: 1px;
    position: relative;
    user-select: none;
}

.mcm-hub-tab:hover:not(.current):not(.upcoming) {
    background: var(--mcm-orange-light);
    color: var(--mcm-text-secondary);
    margin-bottom: 0;
}

/* Afgerond tab */
.mcm-hub-tab.done {
    color: var(--mcm-teal);
    background: var(--mcm-teal-light);
    border-color: var(--mcm-teal);
    border-bottom-color: var(--mcm-orange);
}

.mcm-hub-tab.done .mcm-hub-tab-label {
    text-decoration: line-through;
    text-decoration-color: var(--mcm-teal);
    opacity: 0.7;
}

/* Actieve tab — naadloos verbonden met panel, subtiele schaduw rechts */
.mcm-hub-tab.current {
    color: var(--mcm-primary);
    background: var(--mcm-orange-light);
    border-color: var(--mcm-orange);
    border-bottom-color: var(--mcm-orange-light);
    font-weight: 700;
    z-index: 2;
    box-shadow: 5px 0 8px rgba(0,0,0,0.15), -5px 0 8px rgba(0,0,0,0.10);
}

/* Inverse border-radius "oren" — css-tricks round-out techniek */
.mcm-hub-tab.current::before,
.mcm-hub-tab.current::after,
.mcm-hub-tab.selected::before,
.mcm-hub-tab.selected::after {
    position: absolute;
    bottom: -1px;
    width: 6px;
    height: 6px;
    content: '';
    border: 1px solid var(--mcm-orange);
}
.mcm-hub-tab.current::before,
.mcm-hub-tab.selected::before {
    left: -6px;
    border-bottom-right-radius: 6px;
    border-width: 0 1px 1px 0;
    box-shadow: 2px 2px 0 var(--mcm-orange-light);
}
.mcm-hub-tab.current::after,
.mcm-hub-tab.selected::after {
    right: -6px;
    border-bottom-left-radius: 6px;
    border-width: 0 0 1px 1px;
    box-shadow: -2px 2px 0 var(--mcm-orange-light);
}

/* Done+selected: groene oren */
.mcm-hub-tab.done.selected::before,
.mcm-hub-tab.done.selected::after {
    border-color: var(--mcm-teal);
}
.mcm-hub-tab.done.selected::before {
    box-shadow: 2px 2px 0 var(--mcm-teal-light);
}
.mcm-hub-tab.done.selected::after {
    box-shadow: -2px 2px 0 var(--mcm-teal-light);
}

/* Done-mode: alle tabs border-bottom teal als afgeronde fase geselecteerd is */
.mcm-hub-tabbed--done .mcm-hub-tab {
    border-bottom-color: var(--mcm-teal);
}

/* Toekomstig tab — op slot */
.mcm-hub-tab.upcoming {
    color: var(--mcm-text-tertiary);
    background: var(--mcm-surface-alt);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.mcm-hub-tab.upcoming .mcm-hub-tab-lock {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.6;
}

/* Geselecteerde tab (klik-state, overschrijft upcoming) */
.mcm-hub-tab.selected {
    color: var(--mcm-primary);
    background: var(--mcm-orange-light);
    border-color: var(--mcm-orange);
    border-bottom-color: var(--mcm-orange-light);
    font-weight: 700;
    z-index: 2;
    opacity: 1;
    box-shadow: 5px 0 8px rgba(0,0,0,0.15), -5px 0 8px rgba(0,0,0,0.10);
}

/* Afgeronde tab geselecteerd — groene stijl behouden, naadloos met panel */
.mcm-hub-tab.done.selected {
    color: var(--mcm-teal);
    background: var(--mcm-teal-light);
    border-color: var(--mcm-teal);
    border-bottom-color: var(--mcm-teal-light);
    font-weight: 700;
    z-index: 2;
    opacity: 1;
    box-shadow: 5px 0 8px rgba(0,0,0,0.15), -5px 0 8px rgba(0,0,0,0.10);
}
.mcm-hub-tab.done.selected .mcm-hub-tab-label {
    text-decoration: none;
    opacity: 1;
}

/* --- Status dots in tabs --- */
.mcm-hub-phase-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcm-hub-phase-dot.done { background: var(--mcm-phase-done); }
.mcm-hub-phase-dot.active { background: var(--mcm-phase-active); animation: mcm-hub-pulse 2s infinite; }
.mcm-hub-phase-dot.upcoming { background: var(--mcm-phase-upcoming); }

@keyframes mcm-hub-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Content tabs (herbruikbaar voor Formulieren, Taken, Vragen, Feedback) --- */
.mcm-hub-content-tabbed {
    margin-bottom: 0;
    margin-top: 28px;
}
.mcm-hub-content-tabbed .mcm-hub-tabs {
    gap: 0;
}

/* Content tabs (.mcm-hub-content-tab) erven alle stijlen van .mcm-hub-tab:
   basis, hover, selected/current, oren, box-shadow — geen overrides nodig */

.mcm-hub-content-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    background: rgba(0,0,0,0.08);
    color: var(--mcm-text-tertiary);
    margin-left: 4px;
}
.mcm-hub-content-tab.selected .mcm-hub-content-tab-count,
.mcm-hub-content-tab.current .mcm-hub-content-tab-count {
    background: var(--mcm-orange);
    color: #fff;
}

/* Panel — doorlopende border, actieve tab breekt de bovenlijn */
.mcm-hub-content-panel {
    background: var(--mcm-orange-light);
    border: 1px solid var(--mcm-orange);
    border-radius: 0 var(--mcm-radius) var(--mcm-radius) var(--mcm-radius);
    padding: 20px;
}
.mcm-portal-empty-tab {
    color: var(--mcm-text-secondary);
    text-align: center;
    padding: 30px 16px;
    font-size: 14px;
    font-style: italic;
}

/* Resolved feedback card */
.mcm-ph-card--resolved {
    opacity: 0.7;
    border-left-color: var(--mcm-teal) !important;
}
.mcm-ph-card--resolved .mcm-ph-card-tekst {
    text-decoration: line-through;
    text-decoration-color: var(--mcm-teal);
}

/* Afgehandeld button in fase panel vragen */
.mcm-hub-task-rich .mcm-hub-dash-vraag-afsluiten {
    margin-top: 4px;
}

/* --- Content panel (doorlopende bg van actieve tab) --- */
.mcm-hub-tab-panel {
    background: var(--mcm-orange-light);
    border: 1px solid var(--mcm-orange);
    border-radius: 0 var(--mcm-radius) var(--mcm-radius) var(--mcm-radius);
    padding: 20px;
}

/* Afgerond panel — groene achtergrond */
.mcm-hub-tab-panel--done {
    background: var(--mcm-teal-light);
    border-color: var(--mcm-teal);
}

.mcm-hub-tab-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(231, 142, 70, 0.2);
}

.mcm-hub-tab-panel-fase {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mcm-orange);
    font-weight: 700;
}

.mcm-hub-tab-panel-naam {
    font-size: 16px;
    font-weight: 700;
    color: var(--mcm-primary);
}

.mcm-hub-tab-panel-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--mcm-orange);
    color: #fff;
    margin-left: auto;
}

.mcm-hub-tab-panel-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 138, 138, 0.1);
    color: var(--mcm-teal);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.mcm-hub-tab-panel-upload:hover {
    background: var(--mcm-teal);
    color: #fff;
}
.mcm-hub-tab-panel-upload svg {
    display: block;
}

.mcm-hub-tab-panel-help {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(174, 67, 43, 0.08);
    color: #7b6f64;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.mcm-hub-tab-panel-help:hover {
    background: #ae432b;
    color: #fff;
}
.mcm-hub-tab-panel-help svg {
    display: block;
}

/* Label count badge (bijv. "Vragen 3") */
.mcm-hub-label-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--mcm-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* "Bekijk alle" link */
.mcm-hub-show-all-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mcm-teal);
    text-decoration: none;
    font-weight: 600;
}
.mcm-hub-show-all-link:hover {
    text-decoration: underline;
}

/* Formulieren en taken binnen het panel krijgen witte achtergrond */
.mcm-hub-tab-panel-content .mcm-hub-section {
    margin-bottom: 16px;
}

.mcm-hub-tab-panel-content .mcm-hub-section:last-child {
    margin-bottom: 0;
}

.mcm-hub-tab-panel-content .mcm-hub-card {
    background: var(--mcm-surface);
    border-color: rgba(231, 142, 70, 0.15);
}

.mcm-hub-tab-panel-content .mcm-hub-form {
    background: var(--mcm-surface);
    border-color: rgba(231, 142, 70, 0.15);
}

.mcm-hub-tab-panel-content .mcm-hub-label {
    color: var(--mcm-brown-dark);
}

/* --- Afgerond panel: groene accenten in plaats van oranje --- */
.mcm-hub-tab-panel--done .mcm-hub-tab-panel-header {
    border-bottom-color: rgba(0, 138, 138, 0.2);
}
.mcm-hub-tab-panel--done .mcm-hub-tab-panel-fase {
    color: var(--mcm-teal);
}
.mcm-hub-tab-panel--done .mcm-hub-tab-panel-naam {
    color: var(--mcm-teal);
}
.mcm-hub-tab-panel--done .mcm-hub-tab-panel-badge {
    background: var(--mcm-teal);
}
.mcm-hub-tab-panel--done .mcm-hub-tab-panel-badge.done {
    background: var(--mcm-teal);
}
.mcm-hub-tab-panel--done .mcm-hub-card {
    border-color: rgba(0, 138, 138, 0.15);
}
.mcm-hub-tab-panel--done .mcm-hub-form {
    border-color: rgba(0, 138, 138, 0.15);
}
.mcm-hub-tab-panel--done .mcm-hub-label {
    color: var(--mcm-teal);
}

/* ===========================
   TWO-COLUMN LAYOUT
   =========================== */

.mcm-hub-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.mcm-hub-card {
    background: var(--mcm-surface);
    border: 1px solid var(--mcm-border);
    border-radius: var(--mcm-radius);
    padding: 20px;
}

.mcm-hub-card-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mcm-text-tertiary);
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mcm-hub-card-title a {
    font-size: 11px;
    color: var(--mcm-teal);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.mcm-hub-card-title a:hover {
    color: var(--mcm-primary);
}

/* ===========================
   FORM CARDS (compact)
   =========================== */

.mcm-hub-forms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.mcm-hub-form {
    background: var(--mcm-surface);
    border: 1px solid var(--mcm-border);
    border-radius: var(--mcm-radius);
    padding: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mcm-hub-form:hover {
    box-shadow: var(--mcm-shadow-sm);
}

.mcm-hub-form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mcm-hub-form-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcm-hub-form-dot.open { background: var(--mcm-orange); }
.mcm-hub-form-dot.done { background: var(--mcm-teal); }
.mcm-hub-form-dot.bezig { background: #5dade2; }

.mcm-hub-form-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--mcm-text);
}

.mcm-hub-form-desc {
    font-size: 12px;
    color: var(--mcm-text-tertiary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.mcm-hub-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mcm-hub-form-status {
    font-size: 11px;
    color: var(--mcm-text-tertiary);
    font-weight: 500;
}

.mcm-hub-form-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--mcm-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    font-family: var(--mcm-font) !important;
}

.mcm-hub-form-btn:hover {
    transform: translateY(-1px);
}

.mcm-hub-form-btn.open {
    background: var(--mcm-orange);
    color: #fff;
}

.mcm-hub-form-btn.open:hover {
    background: var(--mcm-primary);
    color: #fff;
}

.mcm-hub-form-btn.done {
    background: var(--mcm-teal-light);
    color: var(--mcm-teal);
}

.mcm-hub-form-btn.done:hover {
    background: #b3d9d9;
    color: #006666;
}

.mcm-hub-form-btn.bezig {
    background: #e5eef7;
    color: #2c5f99;
}

.mcm-hub-form-btn.bezig:hover {
    background: #cde0f2;
    color: #1a4a7a;
}

/* ===========================
   TASK ROWS
   =========================== */

.mcm-hub-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--mcm-border-light);
    font-size: 13px;
}

.mcm-hub-task:last-child {
    border-bottom: none;
}

.mcm-hub-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--mcm-border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcm-hub-checkbox.done {
    background: var(--mcm-teal);
    border-color: var(--mcm-teal);
    color: #fff;
    font-size: 9px;
}

.mcm-hub-task-name {
    flex: 1;
    font-weight: 400;
}

.mcm-hub-task-name.done {
    text-decoration: line-through;
    color: var(--mcm-text-tertiary);
}

.mcm-hub-tasks-empty {
    text-align: center;
    padding: 20px;
    color: var(--mcm-text-tertiary);
    font-size: 12.5px;
}

/* ===========================
   CONTACT FOOTER
   =========================== */

.mcm-hub-contact {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--mcm-text-tertiary);
    border-top: 1px solid var(--mcm-border-light);
    margin-top: 8px;
}

.mcm-hub-contact a {
    color: var(--mcm-teal);
    text-decoration: none;
    font-weight: 500;
}

.mcm-hub-contact a:hover {
    color: var(--mcm-primary);
}

/* ===========================
   NOTICES (niet ingelogd / geen project)
   =========================== */

.mcm-hub-notice {
    background: var(--mcm-surface);
    border: 1px solid var(--mcm-border);
    border-radius: var(--mcm-radius);
    padding: 40px 32px;
    text-align: center;
    max-width: 480px;
    margin: 60px auto;
}

.mcm-hub-notice h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mcm-text);
    margin-bottom: 8px;
}

.mcm-hub-notice p {
    font-size: 14px;
    color: var(--mcm-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.mcm-hub-notice-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--mcm-primary);
    color: #fff;
    border-radius: var(--mcm-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--mcm-font) !important;
    transition: background 0.15s;
    min-height: 44px;
    line-height: 24px;
}

.mcm-hub-notice-btn:hover {
    background: var(--mcm-brown-dark);
    color: #fff;
}

.mcm-hub-notice-contact {
    margin-top: 16px;
    font-size: 12px;
    color: var(--mcm-text-tertiary);
}

.mcm-hub-notice-contact a {
    color: var(--mcm-teal);
    text-decoration: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 960px) {
    .mcm-hub-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 600px) {
    .mcm-hub {
        padding: 16px 0;
        font-size: 13px;
    }

    .mcm-hub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mcm-hub-stats {
        grid-template-columns: 1fr;
    }

    .mcm-hub-forms {
        grid-template-columns: 1fr;
    }

    .mcm-hub-stat-value {
        font-size: 24px;
    }

    .mcm-hub-title {
        font-size: 18px;
    }

    .mcm-hub-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .mcm-hub-tab-panel {
        padding: 14px;
        border-radius: 0 var(--mcm-radius) var(--mcm-radius) var(--mcm-radius);
    }

    .mcm-hub-tab-panel-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .mcm-hub-tab-panel-naam {
        font-size: 14px;
    }
}

/* --- Actie-pill in actieve fase-tab --- */
.mcm-hub-tab-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Klant aan de beurt — oranje */
.mcm-hub-tab-pill--klant {
    background: #ae432b;
    color: #fff;
}

/* Marco werkt — neutraal grijs */
.mcm-hub-tab-pill--marco {
    background: rgba(0,0,0,0.12);
    color: var(--mcm-text-secondary, #555);
}

@media (max-width: 480px) {
    .mcm-hub-tab-pill {
        display: none;
    }
}

/* ===========================
   RICH TASK ROWS (dashboard fase-tabs)
   =========================== */

.mcm-hub-task-rich {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mcm-border-light);
}

.mcm-hub-task-rich:last-child {
    border-bottom: none;
}

.mcm-hub-task-rich.done {
    opacity: 0.5;
}

.mcm-hub-checkbox-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #b0b0b0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 1px;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.mcm-hub-checkbox-btn:hover {
    border-color: var(--mcm-teal);
    background: var(--mcm-teal-light);
    transform: scale(1.1);
}

.mcm-hub-task-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mcm-hub-task-desc {
    font-size: 12px;
    color: var(--mcm-text-tertiary);
    line-height: 1.4;
}

/* --- Opmerkingen in fase-tab --- */
.mcm-hub-task-comments {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcm-hub-comment {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: var(--mcm-surface-alt);
    border-radius: var(--mcm-radius-sm);
    border-left: 3px solid var(--mcm-border);
}

.mcm-hub-comment-avatar img {
    display: block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.mcm-hub-comment-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mcm-teal-light);
    color: var(--mcm-teal);
    font-size: 11px;
    font-weight: 700;
}

.mcm-hub-comment-content {
    flex: 1;
    min-width: 0;
}

.mcm-hub-comment-meta {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.mcm-hub-comment-naam {
    font-weight: 600;
    color: var(--mcm-text);
    font-size: 11.5px;
}

.mcm-hub-comment-datum {
    color: var(--mcm-text-tertiary);
    font-weight: 400;
}

.mcm-hub-comment-tekst {
    font-size: 12.5px;
    color: var(--mcm-text-secondary);
    line-height: 1.5;
}

.mcm-hub-comment-meer {
    font-size: 11px;
    color: var(--mcm-text-tertiary);
    padding-left: 32px;
    font-style: italic;
}

/* --- Inline comment-veld bij taken --- */
.mcm-hub-task-comment-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--mcm-border-light);
}

.mcm-hub-task-comment-section .mcm-portal-reply-avatar img {
    width: 24px;
    height: 24px;
}

.mcm-hub-task-comment-textarea {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    padding-right: 40px;
    border: none;
    background: transparent;
    font-family: var(--mcm-font);
    font-size: 13px;
    line-height: 1.4;
    resize: none;
    min-height: 36px;
    max-height: 160px;
    overflow-y: auto;
}

.mcm-hub-task-comment-textarea:focus {
    outline: none;
}

.mcm-hub-task-comment-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.mcm-hub-task-comment-submit {
    padding: 6px 14px;
    background: #00897b;
    color: #fff;
    border: none;
    border-radius: var(--mcm-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mcm-hub-task-comment-submit:hover { background: #00695c; }
.mcm-hub-task-comment-submit:disabled { opacity: 0.6; }

.mcm-hub-task-comment-feedback {
    font-size: 12px;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
}

.mcm-hub-task-comment-feedback:not(:empty) { display: block; }
.mcm-hub-task-comment-feedback.success { background: #e8f5e9; color: #2e7d32; }
.mcm-hub-task-comment-feedback.error { background: #fdecea; color: #c62828; }

/* ===========================
   DASHBOARD VRAGEN SECTIE
   =========================== */

.mcm-hub-dashboard-vragen {
    background: var(--mcm-surface);
    border: 1px solid var(--mcm-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.mcm-hub-dashboard-vragen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mcm-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mcm-border-light);
}
.mcm-hub-dashboard-vragen-header svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.mcm-hub-dashboard-vragen-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcm-hub-dash-vraag-item {
    background: var(--mcm-surface-alt);
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid var(--mcm-teal);
    transition: opacity 0.4s, max-height 0.5s;
}

.mcm-hub-dash-vraag-tekst {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    line-height: 1.5;
    margin-bottom: 10px;
}

.mcm-hub-dash-vraag-antwoord {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--mcm-surface);
    border-radius: 6px;
    border: 1px solid var(--mcm-border-light);
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-avatar {
    flex-shrink: 0;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-avatar img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-content {
    flex: 1;
    min-width: 0;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-naam {
    color: #555;
    font-weight: 600;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-datum {
    margin-left: 6px;
}
.mcm-hub-dash-vraag-antwoord .mcm-hub-comment-tekst {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.mcm-hub-dash-vraag-acties {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.mcm-hub-dash-vraag-acties .mcm-hub-task-comment-section {
    flex: 1;
    min-width: 0;
}

.mcm-hub-dash-vraag-afsluiten {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--mcm-border);
    border-radius: 6px;
    background: var(--mcm-surface);
    color: #7b6f64;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    align-self: flex-start;
    margin-top: 2px;
}
.mcm-hub-dash-vraag-afsluiten:hover {
    background: #65bc7b;
    color: #fff;
    border-color: #65bc7b;
}
.mcm-hub-dash-vraag-afsluiten:hover svg {
    stroke: #fff;
}
.mcm-hub-dash-vraag-afsluiten:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .mcm-hub-dashboard-vragen { padding: 12px 14px; }
    .mcm-hub-dash-vraag-acties { flex-direction: column; gap: 8px; }
    .mcm-hub-dash-vraag-afsluiten { align-self: flex-end; }
}
