/* ── Reset & utilities ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
}

/* ── Header (sticky) ──────────────────────────── */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.header h1 { font-size: 22px; font-weight: 700; color: #0f172a; }

.header .theme {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn:hover { border-color: #94a3b8; color: #334155; }
.btn.primary { background: #4F46E5; color: white; border-color: #4F46E5; }
.btn.primary:hover { background: #4338CA; border-color: #4338CA; }
.btn.danger { background: #ef4444; color: white; border-color: #ef4444; }
.btn.danger:hover { background: #dc2626; border-color: #dc2626; }
.btn.success { background: #22c55e; color: white; border-color: #22c55e; }
.btn.success:hover { background: #16a34a; border-color: #16a34a; }

.btn-sm {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-sm:hover { border-color: #94a3b8; color: #334155; }

.backlog-badge {
    display: inline-block;
    background: #4F46E5;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

/* ── Main nav ─────────────────────────────────── */
.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav-link {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s;
}

.main-nav-link:hover { color: #334155; background: #f1f5f9; }
.main-nav-link.active { color: #4F46E5; background: #eef2ff; }

/* ── Team strip ───────────────────────────────── */
.team-strip { display: flex; gap: 24px; }

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.team-member .info { display: flex; flex-direction: column; }
.team-member .name { font-size: 13px; font-weight: 600; color: #1e293b; text-decoration: none; }
.team-member .name:hover { color: #4F46E5; }
.team-member .role { font-size: 11px; color: #94a3b8; }

/* ── Avatars ──────────────────────────────────── */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.xs { width: 18px; height: 18px; font-size: 8px; font-weight: 700; }

/* ── Main layout (timeline + boards) ─────────── */
.main-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 130px);
}

/* ── Timeline (left column) ──────────────────── */
.timeline {
    flex: 1;
    min-width: 0;
    max-width: 820px;
    padding: 24px 16px 140px;
}

/* ── Boards panel (right column) ─────────────── */
.boards-panel {
    width: 380px;
    flex-shrink: 0;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 0 0 140px;
    overflow-y: auto;
    position: sticky;
    top: 130px;
    height: calc(100vh - 130px);
}

.boards-header {
    padding: 20px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
}
.boards-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.board-section {
    background: white;
    border-radius: 12px;
    margin: 0 16px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.board-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 8px;
}
.board-section-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.board-section-count {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 99px;
    margin-left: auto;
}

.board-items {
    padding: 0 6px 8px;
    min-height: 38px;
}

/* ── Board strip ─────────────────────────────── */
.board-strip {
    display: flex;
    align-items: center;
    height: 34px;
    margin: 3px 0;
    background: white;
    border-radius: 6px;
    cursor: grab;
    font-size: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}
.board-strip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.board-strip:active { cursor: grabbing; }

.board-strip .strip-edge {
    width: 4px;
    height: 100%;
    flex-shrink: 0;
    background: #cbd5e1;
}

.board-strip .strip-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
}

.board-strip .status-pill {
    margin-right: 8px;
}

.strip-coowners {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    flex-shrink: 0;
}

.strip-coowners .avatar {
    border: 1.5px solid #fff;
    margin-left: -4px;
}

.strip-coowners .avatar:first-of-type {
    margin-left: 0;
}

.coowner-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

@media (max-width: 1100px) {
    .boards-panel { display: none; }
    .timeline { max-width: 820px; margin: 0 auto; }
}

.activity-empty { font-size: 13px; color: #64748b; padding: 20px 0; }

.activity-entry {
    padding: 10px 0;
    border-bottom: 1px solid #334155;
}

.activity-who {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.activity-action {
    font-size: 11px;
    color: #94a3b8;
}
.activity-action.activity-created { color: #22c55e; }
.activity-action.activity-deleted { color: #ef4444; }
.activity-action.activity-moved { color: #818cf8; }

.activity-summary {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.activity-time {
    font-size: 10px;
    color: #64748b;
}

/* ── Month divider ────────────────────────────── */
.month-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.month-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

/* ── Week card ────────────────────────────────── */
.week {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: opacity 0.2s;
}

.week.past { opacity: 0.55; }
.week.past:hover { opacity: 0.8; }

.week.current {
    border-left: 4px solid #4F46E5;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

/* ── Week header ──────────────────────────────── */
.week-head {
    padding: 14px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-label { font-size: 15px; font-weight: 700; color: #0f172a; }
.week-dates { font-size: 13px; color: #64748b; font-weight: 400; }

.week-badge {
    font-size: 11px;
    font-weight: 600;
    color: #4F46E5;
    background: #EEF2FF;
    padding: 2px 10px;
    border-radius: 99px;
}

/* ── Availability strip ───────────────────────── */
.availability {
    display: flex;
    gap: 6px;
    padding: 0 20px 10px;
}

.avail-dot {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.avail-dot .avatar { opacity: 1; transition: opacity 0.15s; }
.avail-dot.away .avatar { opacity: 0.3; filter: grayscale(1); }

/* ── Events section ───────────────────────────── */
.events {
    padding: 6px 20px 2px;
    background: #FAFBFF;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.event-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4338CA;
    font-weight: 500;
}

.event-people { display: flex; gap: 3px; }

/* ── Work items ───────────────────────────────── */
.items {
    padding: 6px 8px;
    min-height: 20px;
}

.item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 3px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.12s;
    border: 1px solid transparent;
}

.item-card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.week.past .item-card { cursor: default; }

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

.item-title {
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.item-people { display: flex; gap: 3px; }

/* ── Status pill ──────────────────────────────── */
.status-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.status-bezig { background: #dbeafe; color: #1d4ed8; }
.status-wacht { background: #ffedd5; color: #c2410c; }
.status-done  { background: #dcfce7; color: #15803d; }

/* ── Product tag ──────────────────────────────── */
.product-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Vacation row ─────────────────────────────── */
.vacations {
    border-top: 1px solid #f8fafc;
}

.vacation-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

.vacation-name {
    color: #94a3b8;
}

.vacation-row .avatar { opacity: 0.4; filter: grayscale(0.6); }

/* ── Add button ───────────────────────────────── */
.week-actions {
    padding: 0 8px 8px;
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin: 2px 0;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
}
.add-btn:hover {
    border-color: #4F46E5;
    color: #4F46E5;
    background: #FAFBFF;
}

/* ── Scroll-to-current button ─────────────────── */
.scroll-to-current {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
    transition: transform 0.15s;
    z-index: 50;
}
.scroll-to-current:hover { transform: scale(1.05); }

/* ── Drawer (shared) ─────────────────────────── */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: #1e293b;
    box-shadow: -4px 0 24px rgba(0,0,0,0.35);
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}
.drawer-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
}
.drawer-header h3 i { margin-right: 6px; color: #64748b; }
.drawer-count {
    font-size: 12px;
    color: #64748b;
    background: #334155;
    padding: 2px 8px;
    border-radius: 99px;
}
.drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}
.drawer-close:hover { color: white; }

/* ── Drawer toggle tabs (right edge) ─────────── */
.drawer-toggle {
    position: fixed;
    right: 0;
    background: #1e293b;
    color: #e2e8f0;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 140;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: all 0.15s;
}
.drawer-toggle:hover { background: #334155; padding-right: 12px; }
.drawer-toggle .toggle-count {
    display: inline-block;
    background: #4F46E5;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 6px;
}
.drawer.open ~ .drawer-toggle { display: none; }

.drawer-toggle--backlog { top: calc(50% - 60px); }
.drawer-toggle--activity { top: calc(50% + 60px); }

/* ── Activity drawer content ─────────────────── */
.activity-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 40px;
}

/* ── Add-to-backlog button ────────────────────── */
.backlog-add {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin: 2.5px 0;
    background: transparent;
    border: 1px dashed #475569;
    border-radius: 3px;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
}
.backlog-add:hover { border-color: #818cf8; color: #c7d2fe; background: rgba(79,70,229,0.1); }

/* ── Strip bay (ATC holder) ───────────────────── */
.strip-bay {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 41px,
            rgba(0,0,0,0.2) 41px,
            rgba(0,0,0,0.2) 43px
        ),
        linear-gradient(to bottom, #1e293b, #162032);
}

/* ── ATC strip ────────────────────────────────── */
.strip {
    display: flex;
    align-items: center;
    height: 38px;
    margin: 2.5px 0;
    background: #f1f5f9;
    border-radius: 3px;
    cursor: grab;
    font-size: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}
.strip:hover {
    transform: translateY(-1px);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.7);
}
.strip:active { cursor: grabbing; }

.strip-edge {
    width: 5px;
    height: 100%;
    flex-shrink: 0;
    background: #cbd5e1;
}

.strip-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 0 10px;
}

.strip-people {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    padding-right: 8px;
}

/* ── Drag states (for future Stimulus sortable) ── */
.sortable-ghost {
    opacity: 0.3;
    background: #EEF2FF;
    border-radius: 8px;
}
.sortable-chosen { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

/* ── Team member filter states ────────────────── */
body.filtering .team-member { opacity: 0.35; }
body.filtering .team-member.active { opacity: 1; }
body.filtering .team-member.active .avatar { box-shadow: 0 0 0 3px white, 0 0 0 5px #4F46E5; }

body.filtering .item-card:not(.filter-match),
body.filtering .vacation-row:not(.filter-match) { display: none; }
body.filtering .event-row:not(.filter-match) { opacity: 0.25; }
body.filtering .board-section:not(.filter-match) { display: none; }

/* ── Modal (add/edit item) ────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.hidden { display: none; }

.modal {
    background: white;
    border-radius: 16px;
    padding: 28px;
    width: 525px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal h2 { font-size: 17px; margin-bottom: 16px; color: #0f172a; }

.modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    margin-top: 12px;
}

.modal input[type="text"],
.modal textarea,
.modal select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: #4F46E5; }
.modal textarea { resize: vertical; max-height: 100px; font-size: 13px; }

.modal .people-picks {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.modal .person-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    user-select: none;
}
.modal .person-pick.selected { border-color: #4F46E5; background: #EEF2FF; }

.modal .product-picks {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.modal .product-pick {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s;
    color: #475569;
}
.modal .product-pick.selected { border-color: currentColor; }

.modal .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    transition: all 0.15s;
}
.modal .btn:hover { background: #f8fafc; }
.modal .btn.primary {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}
.modal .btn.primary:hover { background: #4338CA; }
.modal .btn.danger { color: #ef4444; margin-right: auto; }

/* ── Person schedule page ─────────────────────── */
.schedule-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.schedule-header {
    margin-bottom: 24px;
}

.back-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}
.back-link:hover { color: #4F46E5; }

.schedule-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.schedule-person h1 { font-size: 20px; font-weight: 700; color: #0f172a; }
.schedule-role { font-size: 13px; color: #64748b; }

.schedule-range {
    display: flex;
    gap: 6px;
}
.range-btn {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s;
}
.range-btn:hover { border-color: #94a3b8; color: #334155; }
.range-btn.active { background: #4F46E5; color: white; border-color: #4F46E5; }

.schedule-body {
    display: flex;
    gap: 24px;
}

.schedule-timeline {
    flex: 1;
    min-width: 0;
}

.schedule-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.schedule-empty-section {
    font-size: 13px;
    color: #94a3b8;
    padding: 8px 0;
}

@media (max-width: 700px) {
    .schedule-body { flex-direction: column; }
    .schedule-sidebar { width: 100%; position: static; }
}

.schedule-week {
    margin-bottom: 20px;
}

.schedule-week-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
}
.schedule-week-label { font-size: 14px; font-weight: 700; color: #0f172a; }
.schedule-week-dates { font-size: 13px; color: #64748b; }

.schedule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: #334155;
}

.schedule-dot {
    color: #94a3b8;
    font-size: 8px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.schedule-icon {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 13px;
}

.schedule-item-title {
    flex: 1;
}

.schedule-event { color: #4338CA; font-weight: 500; }
.schedule-vacation { color: #94a3b8; font-style: italic; }

.schedule-board {
    margin-bottom: 20px;
}

.schedule-backlog {}

.schedule-empty {
    color: #94a3b8;
    font-size: 14px;
    padding: 20px 0;
}

/* ── Login page ───────────────────────────────── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 380px;
    max-width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.login-card h1 { font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.login-subtitle { font-size: 14px; color: #64748b; margin-bottom: 28px; }

.login-card form { text-align: left; }
.login-card label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.login-card input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    margin-bottom: 16px;
}
.login-card input:focus { border-color: #4F46E5; }

.login-card .btn.primary {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #4F46E5;
    color: white;
    transition: background 0.15s;
}
.login-card .btn.primary:hover { background: #4338CA; }

.login-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-success {
    background: #f0fdf4;
    color: #15803d;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}
.login-success p { margin-bottom: 6px; }
.login-success p:last-child { margin-bottom: 0; }

/* ── Tokens page ──────────────────────────────── */
.tokens-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.tokens-header { margin-bottom: 24px; }
.tokens-header h1 { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.tokens-header h1 i { color: #64748b; }
.tokens-subtitle { font-size: 13px; color: #64748b; }

.token-create {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.token-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.token-name-input:focus { border-color: #4F46E5; }

.token-reveal {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
}
.token-reveal p { margin-bottom: 8px; }
.token-value {
    display: block;
    background: #1e293b;
    color: #22c55e;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
    user-select: all;
}

.token-list {}

.token-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.token-info { display: flex; flex-direction: column; gap: 2px; }
.token-label { font-size: 14px; font-weight: 600; color: #1e293b; }
.token-meta { font-size: 12px; color: #94a3b8; }
.token-meta code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-size: 11px; }

.btn-revoke { color: #ef4444 !important; border-color: #fecaca !important; }
.btn-revoke:hover { background: #fef2f2 !important; }

.tokens-empty { font-size: 13px; color: #94a3b8; padding: 20px 0; }

.settings-section {
    margin-bottom: 28px;
}
.settings-section h2 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}
.photo-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-actions { display: flex; flex-direction: column; gap: 4px; }
.photo-btn { cursor: pointer; }
.photo-hint { font-size: 11px; color: #94a3b8; }

/* ── Trello integration ──────────────────────── */
.trello-link-icon {
    color: #0079bf;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
}
.trello-link-icon:hover { color: #026aa7; }

.trello-picker-wrap { margin-bottom: 4px; }

.trello-linked {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 13px;
}
.trello-linked-card {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    color: #0079bf;
}
.trello-linked-card i { flex-shrink: 0; }

.trello-selects {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.trello-selects .ts-control { font-size: 13px; min-height: 34px; border-color: #e2e8f0; border-radius: 6px; }
.trello-selects .ts-control:focus-within { border-color: #0079bf; box-shadow: none; }
.trello-selects .ts-dropdown { font-size: 13px; border-color: #e2e8f0; border-radius: 6px; }

.trello-board-badge {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.trello-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.trello-connected { font-size: 13px; color: #059669; font-weight: 500; }
.trello-connected i { margin-right: 4px; }
.trello-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.trello-form .token-name-input { flex: 1; min-width: 180px; }
.trello-form .photo-hint { width: 100%; }

/* ── MT page ─────────────────────────────────── */
.mt-layout {
    display: flex;
    gap: 32px;
    padding: 24px 32px;
    max-width: 1200px;
}

.mt-pile {
    flex: 1;
    min-width: 0;
}

.mt-pile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mt-pile-header h2 { font-size: 18px; font-weight: 700; color: #0f172a; }

.btn-sm.primary {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}
.btn-sm.primary:hover { background: #4338CA; border-color: #4338CA; color: white; }

.mt-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.mt-sidebar h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.mt-empty {
    font-size: 14px;
    color: #94a3b8;
    padding: 16px 0;
}

/* ── Bespreekpunt cards ── */
.mt-bp-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.mt-bp-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mt-bp-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.mt-bp-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.mt-bp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* ── Meeting history items ── */
.mt-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 6px;
}

.mt-history-date {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.mt-history-item { text-decoration: none; cursor: pointer; transition: all 0.15s; }
.mt-history-item:hover { border-color: #94a3b8; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.mt-history-meta {
    display: flex;
    gap: 4px;
}

.mt-pile-actions { display: flex; gap: 6px; }

/* ── Active meeting banner ── */
.mt-active-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    background: #eef2ff;
    border-bottom: 1px solid #c7d2fe;
    font-size: 14px;
    font-weight: 500;
    color: #4F46E5;
}

.mt-active-banner i { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.mt-start-info { font-size: 14px; color: #64748b; margin-bottom: 12px; }

/* ── Meeting view ── */
.mt-meeting-layout {
    padding: 24px 32px;
    max-width: 900px;
}

.mt-meeting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mt-meeting-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.mt-meeting-attendees { display: flex; gap: 4px; }
.mt-meeting-header-actions { display: flex; gap: 8px; }

.mt-meeting-closed-badge {
    font-size: 13px;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* ── Agenda items ── */
.mt-agenda-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    transition: all 0.15s;
}

.mt-agenda-item.handled { opacity: 0.65; }
.mt-agenda-item.handled:hover { opacity: 0.85; }
.mt-agenda-item.uitgesteld { border-left: 3px solid #f59e0b; }
.mt-agenda-item.niet_behandeld { border-left: 3px solid #94a3b8; }
.mt-agenda-item.besproken { border-left: 3px solid #22c55e; }

.mt-agenda-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.mt-agenda-item-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.mt-agenda-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.mt-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: capitalize;
}

.mt-status-badge.besproken { background: #dcfce7; color: #16a34a; }
.mt-status-badge.uitgesteld { background: #fef3c7; color: #d97706; }
.mt-status-badge.niet_behandeld { background: #f1f5f9; color: #64748b; }
.mt-status-badge.overige { background: #fef3c7; color: #92400e; text-transform: none; }

.mt-agenda-overige-placeholder {
    border-style: dashed;
    background: #fffbeb;
}
.mt-agenda-overige-hint {
    font-style: italic;
    color: #92400e;
}

/* ── Attachments ── */
.mt-attachments { margin: 8px 0 4px; }
.mt-attachment-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}
.mt-attachment i { color: #64748b; flex-shrink: 0; }
.mt-attachment-name { color: #1d4ed8; text-decoration: none; font-weight: 500; }
.mt-attachment-name:hover { text-decoration: underline; }
.mt-attachment-meta { color: #64748b; font-size: 11px; margin-left: auto; }
.mt-attachment-delete {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}
.mt-attachment-delete:hover { background: #fee2e2; color: #dc2626; }
.mt-attachment-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
}
.mt-attachment-upload:hover { border-color: #94a3b8; color: #475569; }
.mt-attachment-status { font-size: 11px; color: #64748b; margin-left: 8px; }
.mt-attachment-status.error { color: #dc2626; }

.mt-bp-card-body { cursor: pointer; }

.bp-modal-attachments { margin-top: 12px; }
.bp-modal-attachments label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; }
.bp-modal-attachments input[type="file"] { font-size: 13px; }
.bp-modal-file-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #64748b; }

.mt-agenda-actions { display: flex; gap: 6px; flex-shrink: 0; }

.mt-agenda-item-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.mt-agenda-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* ── Besluiten & acties in agenda ── */
.mt-besluiten, .mt-acties { margin-top: 8px; }

.mt-besluit, .mt-actie {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.mt-besluit {
    background: #f0fdf4;
    color: #15803d;
}

.mt-besluit i { margin-top: 2px; flex-shrink: 0; }

.mt-actie {
    background: #eff6ff;
    color: #1d4ed8;
}

.mt-actie i { margin-top: 2px; flex-shrink: 0; }

.mt-actie.deleted { opacity: 0.55; text-decoration: line-through; }
.mt-actie.deleted .mt-actie-badge { text-decoration: none; }

.mt-actie-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 3px;
}

/* ── Inline forms (besluit/actie) ── */
.mt-inline-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.mt-besluit-input, .mt-actie-form {
    margin-top: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.mt-besluit-input textarea,
.mt-actie-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

.mt-besluit-input textarea:focus,
.mt-actie-form input[type="text"]:focus {
    outline: none;
    border-color: #4F46E5;
}

.mt-actie-people {
    margin-top: 8px;
    margin-bottom: 0;
}

.mt-actie-people .person-pick {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.mt-actie-people .person-pick:hover { border-color: #94a3b8; }
.mt-actie-people .person-pick.selected { border-color: #4F46E5; background: #EEF2FF; }

.mt-inline-form-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-end;
}

/* ── Search ── */
.mt-search { margin-bottom: 20px; }

.mt-search input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.mt-search input[type="text"]:focus { outline: none; border-color: #4F46E5; }

.mt-search-results { margin-top: 8px; }

.mt-search-empty { font-size: 13px; color: #94a3b8; padding: 8px 0; }

.mt-search-result {
    display: block;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: all 0.15s;
}

.mt-search-result:hover { border-color: #94a3b8; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.mt-search-result-text {
    font-size: 13px;
    color: #15803d;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.mt-search-result-text i { margin-top: 2px; flex-shrink: 0; }

.mt-search-result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.mt-search-result-bp {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.mt-search-result-date { flex-shrink: 0; }

/* ── Besluitenlijst page ── */

.besluiten-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 32px;
}

.besluiten-page h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

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

.besluiten-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
    transition: box-shadow 0.15s;
}

.besluiten-item:hover {
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.besluiten-item-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
}

.besluiten-item-text i {
    margin-top: 2px;
    color: #4F46E5;
    flex-shrink: 0;
}

.besluiten-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.besluiten-item-bp {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.besluiten-item-date {
    flex-shrink: 0;
    color: #64748b;
}

.besluiten-loader {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
    font-size: 14px;
}

/* ── Verlof page ── */

.verlof-year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 32px 0;
}

.verlof-year-selector h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    min-width: 60px;
    text-align: center;
}

.verlof-layout {
    display: flex;
    gap: 32px;
    padding: 16px 32px 0;
    max-width: 1400px;
}

.verlof-sidebar {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.verlof-person-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.verlof-person-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    transition: background-color 0.15s;
}

.verlof-person-item:hover {
    background-color: #e2e8f0;
}

.verlof-person-item.active {
    background-color: #4F46E5;
    color: #fff;
}

.verlof-person-item.active .avatar {
    box-shadow: 0 0 0 2px #fff;
}

.verlof-person-name {
    font-weight: 500;
}

.verlof-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.verlof-month {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.verlof-month-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.verlof-month-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.verlof-month-header span {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

.verlof-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.verlof-day {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: default;
    font-size: 11px;
    color: #334155;
    background-color: #f8fafc;
    transition: background-color 0.15s, opacity 0.15s;
}

.verlof-day.empty {
    background: none;
}

.verlof-day:not(.empty):not(.locked):not(.vacant):hover {
    background-color: #e2e8f0;
}

.verlof-day[data-action] {
    cursor: pointer;
}

.verlof-day.vacant {
    color: #fff;
    font-weight: 600;
}

.verlof-day.vacant:not(.locked):hover {
    opacity: 0.85;
}

.verlof-day.locked {
    opacity: 0.45;
    cursor: default;
}

.verlof-day-number {
    line-height: 1;
}

.verlof-day-hours {
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
}

/* Popover */

.verlof-popover {
    position: absolute;
    z-index: 200;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
    padding: 14px;
    width: 220px;
}

.verlof-popover.hidden {
    display: none;
}

.verlof-popover-content label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.verlof-popover-content label:not(:first-child) {
    margin-top: 10px;
}

.verlof-popover-content select,
.verlof-popover-content input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
}

.verlof-popover-content select:focus,
.verlof-popover-content input[type="text"]:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 2px rgb(79 70 229 / 0.15);
}

.verlof-popover-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.verlof-popover-actions .btn-sm.danger {
    background: #ef4444;
    color: #fff;
}

.verlof-popover-actions .btn-sm.danger:hover {
    background: #dc2626;
}

/* Team view */

.verlof-team-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.verlof-team-person {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.verlof-team-person-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.verlof-team-person-total {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
}

.verlof-grid.compact {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
}

.verlof-month.compact {
    background: none;
    padding: 0;
    box-shadow: none;
}

.verlof-month.compact .verlof-month-name {
    font-size: 10px;
    margin-bottom: 3px;
    color: #64748b;
}

.verlof-days.compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

.verlof-day.compact {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    font-size: 0;
    min-width: 0;
    background-color: #f1f5f9;
}

.verlof-day.compact.empty {
    background: none;
}

.verlof-day.compact.vacant {
    border-radius: 2px;
}

.verlof-day.compact.locked {
    opacity: 0.35;
}

/* Modal hint */

.modal-hint {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Overuren section */

.verlof-overtime {
    max-width: 900px;
    margin: 24px auto 48px;
    padding: 0 24px;
}

.verlof-overtime-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px;
}

.verlof-overtime-form {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
    margin-bottom: 12px;
}

.verlof-overtime-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.verlof-overtime-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.verlof-overtime-fields label.grow {
    flex: 1;
    min-width: 180px;
}

.verlof-overtime-fields input,
.verlof-overtime-fields select {
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
}

.verlof-overtime-fields input:focus,
.verlof-overtime-fields select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 2px rgb(79 70 229 / 0.15);
}

.verlof-overtime-empty {
    color: #64748b;
    font-size: 13px;
    margin: 8px 0 0;
}

.verlof-overtime-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.verlof-overtime-entry {
    display: grid;
    grid-template-columns: 120px 80px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.verlof-overtime-date {
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.verlof-overtime-hours {
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.verlof-overtime-note {
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 12px;
}

.modal input[type="date"]:focus {
    border-color: #4F46E5;
    outline: none;
}

/* Summary */

.verlof-summary {
    padding: 16px 32px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* Toasts */

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 300;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
    max-width: 420px;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--leaving {
    opacity: 0;
    transform: translateY(12px);
}

.toast--success { background: #16a34a; }
.toast--error { background: #dc2626; }
