:root {
    --wm-body-bg: #f1f3ff;
    --wm-border-color: rgba(var(--bs-wm-green-rgb), .35);
    --wm-caret-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

html {
    font-size: 0.85rem;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Nunito', sans-serif;
    height: 100%;
    background-color: var(--wm-body-bg);
}

.wrapper {
    width: 100%;
    padding-inline: var(--bs-sidebar-occupy-start, 0) var(--bs-sidebar-occupy-end, 0);
    will-change: auto;
    transition: padding 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .wrapper {
        transition: none;
    }
}

/* Avatars */
.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--bs-avatar-width, 2rem);
    height: var(--bs-avatar-height, 2rem);
    font-size: var(--bs-avatar-font-size, 0.8rem);
    border-radius: var(--bs-avatar-border-radius, 50%);
    vertical-align: middle;
    transition: margin 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .avatar {
        transition: none;
    }
}

.avatar-img {
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.avatar-sm {
    --bs-avatar-width: 1.5rem;
    --bs-avatar-height: 1.5rem;
    --bs-avatar-font-size: 0.6rem;
}

.avatar-md {
    --bs-avatar-width: 2.5rem;
    --bs-avatar-height: 2.5rem;
    --bs-avatar-font-size: 1rem;
}

.avatar-lg {
    --bs-avatar-width: 3rem;
    --bs-avatar-height: 3rem;
    --bs-avatar-font-size: 1.2rem;
}

.avatar-xl {
    --bs-avatar-width: 4rem;
    --bs-avatar-height: 4rem;
    --bs-avatar-font-size: 1.6rem;
}

/* Icons */
.icon {
    display: inline-block;
    color: inherit;
    text-align: center;
    vertical-align: -.125rem;
    fill: currentcolor;
}

.icon-normal {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

.icon-sm {
    width: .875rem;
    height: .875rem;
    font-size: .875rem;
}

.icon-lg {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
}

.icon-xl {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

.icon-xxl {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
}

.icon-3xl {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
}

.icon-4xl {
    width: 4rem;
    height: 4rem;
    font-size: 4rem;
}

.icon-5xl {
    width: 5rem;
    height: 5rem;
    font-size: 5rem;
}

.icon-6xl {
    width: 6rem;
    height: 6rem;
    font-size: 6rem;
}

.icon-7xl {
    width: 7rem;
    height: 7rem;
    font-size: 7rem;
}

.icon-8xl {
    width: 8rem;
    height: 8rem;
    font-size: 8rem;
}

.icon-9xl {
    width: 9rem;
    height: 9rem;
    font-size: 9rem;
}

/* Cards */
.card {
    border: none !important;
    box-shadow: var(--bs-box-shadow-sm) !important;
}

.card-body .card-body-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: .5rem;
    color: var(--bs-kp-primary);
}

/* Sidebar & header */
.sidebar-header, header {
    min-height: 5rem;
}

/* Language switcher */
.language-switcher-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bs-kp-primary);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

.language-switcher-toggle:hover,
.language-switcher-toggle[aria-expanded="true"] {
    color: var(--bs-kp-primary);
}

.language-switcher-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.language-switcher-toggle img,
.language-switcher-option img {
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.language-switcher-menu {
    z-index: 1050;
    min-width: 10rem;
    padding: .375rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.5rem rgba(24, 39, 75, .16);
}

.language-switcher-option {
    min-height: 2.5rem;
    border-radius: .5rem;
    color: var(--bs-kp-primary);
}

.language-switcher-option.active,
.language-switcher-option:active {
    background-color: var(--bs-kp-primary);
    color: #fff;
}

.app-topbar {
    min-height: var(--rp-header-min-height);
    padding-block: var(--rp-space-2);
    flex-shrink: 0;
}

.app-breadcrumb {
    min-width: 0;
    color: #35445c;
    font-size: .9rem;
    font-weight: 500;
}

.app-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    line-height: 1.25;
}

.app-breadcrumb__item a {
    color: #35445c;
    text-decoration: none;
    transition: color .15s ease;
}

.app-breadcrumb__item a:hover,
.app-breadcrumb__item a:focus-visible {
    color: var(--bs-kp-primary);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.app-breadcrumb__item.is-active {
    color: #26364f;
    font-weight: 650;
}

.app-breadcrumb__separator {
    color: #9aa5b5;
    font-size: .7rem;
}

/* Sheet tabs */
.sheet-tabs {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 8px 0;
    border-top: 1px solid #ddd;
    z-index: 10;
}

/* Sidebar submenu */
.sidebar-nav .has-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.sidebar-nav .has-submenu:hover > .submenu,
.sidebar-nav .has-submenu.submenu-open > .submenu {
    max-height: 500px;
    opacity: 1;
}

.sidebar-nav .submenu .nav-link {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.25s ease;
}

.has-submenu.submenu-open > a .submenu-arrow,
.has-submenu:hover > a .submenu-arrow {
    transform: rotate(180deg);
}

/* Modals */
.project-modal,
.select-function-modal {
    font-family: Segoe UI, Tahoma, sans-serif;
    font-size: 13px;
    width: 70%;
}

    .project-modal .form-row-2 {
        display: grid;
        grid-template-columns: 180px 80px 80px 1fr;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }

        .project-modal .form-row-2 label {
            text-align: left;
            white-space: nowrap;
        }

        .project-modal .form-row-2 span {
            text-align: right;
            white-space: nowrap;
            padding-right: 6px;
        }

    .project-modal input,
    .project-modal select,
    .project-modal .form-control,
    .project-modal .form-select {
        width: 100%;
        height: 26px;
        padding: 2px 6px;
        font-size: 13px;
        box-sizing: border-box;
    }

/* Align-right forms */
.align-right .form-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 420px;
}

    .align-right .form-row-2 label {
        flex: 0 0 160px;
        font-weight: 600;
    }

    .align-right .form-row-2 span {
        flex: 1;
        text-align: right;
        white-space: nowrap;
    }

.select-function-modal .action-button {
    justify-content: end;
}

#planningRequest-view,
#planning-view,
.plan-werkelijk-page,
#planning-functie-view {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#planningRequest-view .form-row-2 {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    align-items: center;
}

#planningRequest-view .project-name {
    font-weight: bold;
    color: var(--bs-kp-primary);
}

/* Flex column forms */
.flex-column .form-row-2 label {
    min-width: 110px;
    text-align: left;
}

.flex-column .form-row-2 input,
.flex-column .form-row-2 select {
    flex: 1;
}

/* Handsontable */
.template-editor-page {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    overflow: hidden;
}

.template-editor-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: .15rem;
}

.template-editor-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.template-editor-back {
    align-items: center;
    color: var(--bs-kp-primary, #0e1a76);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: 2rem;
    justify-content: center;
    text-decoration: none;
    width: 2rem;
}

.template-editor-back:hover {
    background: #f4f6fa;
    color: var(--bs-kp-primary, #0e1a76);
}

.template-editor-heading h1 {
    color: var(--bs-kp-primary, #0e1a76);
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.template-editor-heading p {
    color: #69778a;
    margin: 0;
}

.template-editor-form {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
}

.template-editor-form > #template-save-error,
.template-editor-form > .validation-summary-errors {
    margin: 0 0 .75rem;
}

.template-editor-form > .validation-summary-valid {
    display: none;
}

.detail-info {
    background: var(--bs-white);
    border: 1px solid #d8dde4;
    padding: .8rem 1rem;
}

.detail-info dl {
    display: grid;
    grid-template-columns: repeat(var(--detail-info-columns, 5), minmax(0, 1fr));
    margin: 0;
}

.detail-info dl > div {
    min-width: 0;
}

.detail-info dl > div + div {
    border-left: 1px solid #e1e5ea;
    padding-left: 1rem;
}

.detail-info dl > div:not(:last-child) {
    padding-right: 1rem;
}

.detail-info dt {
    color: #747f8e;
    font-size: .72rem;
    font-weight: 500;
    margin-bottom: .2rem;
}

.detail-info dd {
    color: #303c4d;
    font-size: .84rem;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-detail-info {
    --detail-info-columns: 2;
    margin-bottom: .75rem;
}

@media (max-width: 1100px) {
    .detail-info dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .detail-info dl > div + div,
    .detail-info dl > div:not(:last-child) {
        border: 0;
        padding: 0;
    }
}

@media (max-width: 700px) {
    .detail-info dl {
        grid-template-columns: 1fr;
    }
}

.template-editor-form > .template-forecast-workspace {
    margin: 0;
}

.template-forecast-workspace {
    border: 1px solid var(--rp-color-border) !important;
    border-radius: var(--rp-radius-panel);
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grid-save-indicator {
    align-items: center;
    color: #54705f;
    display: grid;
    font-size: .78rem;
    height: 1.2rem;
    justify-items: start;
}

.grid-save-indicator > span {
    align-items: center;
    gap: .3rem;
    grid-area: 1 / 1;
    line-height: 1;
    white-space: nowrap;
}

.grid-save-indicator.success .save-success,
.grid-save-indicator.ongoing .save-ongoing,
.grid-save-indicator.error .save-error {
    display: inline-flex;
}

.grid-save-indicator .save-success {
    color: #39805a;
}

.grid-save-indicator .save-ongoing {
    color: #a86208;
}

.grid-save-indicator .save-error {
    color: #bb3e3e;
}

.template-forecast-grid {
    overflow: hidden;
}

.template-forecast-workspace .forecast-footer {
    border-top: 1px solid #edf0f4;
    color: #7c8798;
    display: flex;
    font-size: .76rem;
    padding: .7rem 1.2rem;
}

.template-forecast-workspace .handsontable th {
    background: #f5f7fa;
    color: #617087;
    font-weight: 800;
}

@media (max-width: 700px) {
    .template-editor-hero {
        align-items: flex-start;
    }

    .template-editor-heading {
        align-items: flex-start;
    }

    .template-editor-heading h1 {
        font-size: 1.3rem;
    }
}

.htAutocompleteArrow {
    opacity: 1 !important;
    display: block !important;
}

.overlap-cell {
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip;
    z-index: 1;
}

.section-row-cell {
    font-weight: bold !important;
}

.first-column-cell {
    font-weight: bold !important;
    color: var(--bs-kp-primary) !important;
}

.ht-theme-main td.section-row-cell {
    padding-left: 4px !important;
    font-weight: 600;
}

.ht-theme-main thead tr:nth-child(1) th,
.ht-theme-main thead tr:nth-child(2) th {
    background-color: #0e1a76 !important;
    color: #fff;
    border-bottom: 1px solid #0b3d91;
}

.open-project-modal {
    cursor: pointer;
}

.open-project-modal:hover {
    text-decoration: underline;
}

.hot-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(80vh - 200px);
    overflow: hidden;
}

#planning-view .hot-wrapper,
#planning-functie-view .hot-wrapper,
#capaciteit-vraag-page .hot-wrapper,
.project-view-page .hot-wrapper,
.employee-view-page .hot-wrapper {
    height: calc(99vh - 200px);
}

.plan-werkelijk-page .hot-wrapper{
    height: calc(96vh - 200px);
}
 
.totals-row {
    font-weight: bold;
    background-color: #f8f9fa;
}

.planning-page .section-row-cell.htDimmed,
.planning-functie-page .section-row .htDimmed {
    background: #f28c18 !important;
    color: #000 !important;
    font-weight: 600;
}

.planning-page .name-row-cell.htDimmed,
.planning-functie-page .name-row .htDimmed {
    background: #8fb3cf !important;
    color: #000 !important;
    font-weight: 600;
}

.plan-werkelijk-page .htCore tr.section-row td {
    background: #f28c18 !important;
    color: #000 !important;
    font-weight: 600;
}

.plan-werkelijk-page .htCore tr.name-row td {
    background: #8fb3cf !important;
    color: #000 !important;
    font-weight: 600;
}

.plan-werkelijk-page .week-cell {
    font-size: 12px;
}

.plan-werkelijk-page .htCore td {
    white-space: nowrap;
}

/* Planning workspace */
/* Constrain the flex chain to the window so the grid gets the remaining space.
   Keep the page scrollable when wrapped controls leave too little grid space. */
.wrapper:has(.planning-workspace),
.wrapper:has(.capacity-detail-page),
.wrapper:has(.template-editor-page) {
    height: 100%;
    min-height: 0 !important;
    overflow-y: auto;
}

.wrapper:has(.employee-roles-page) {
    height: 100%;
    min-height: 0 !important;
    overflow-y: auto;
}

.wrapper:has(.planning-workspace) > .body,
.main-content:has(.planning-workspace),
.planning-workspace,
.planning-workspace > .card,
.wrapper:has(.capacity-detail-page) > .body,
.main-content:has(.capacity-detail-page),
.capacity-detail-page,
.capacity-detail-page > .card,
.wrapper:has(.template-editor-page) > .body,
.main-content:has(.template-editor-page),
.template-editor-page,
.template-editor-form,
.template-forecast-workspace,
.wrapper:has(.employee-roles-page) > .body,
.main-content:has(.employee-roles-page),
.employee-roles-page,
.employee-roles-page > .card {
    min-height: 0;
    min-width: 0;
}

.planning-workspace .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.planning-workspace #planning-view,
.planning-workspace #planning-functie-view,
.capacity-detail-page .forecast-workspace,
.template-editor-page .template-forecast-workspace {
    flex: 1 1 0;
    min-height: 120px;
}

.planning-workspace .hot-wrapper,
.planning-workspace #planning-view .hot-wrapper,
.planning-workspace #planning-functie-view .hot-wrapper,
.capacity-detail-page .hot-wrapper,
.template-editor-page .template-forecast-grid {
    flex: 1 1 0;
    height: 0;
    min-height: 120px;
    min-width: 0;
}

.planning-workspace .resource-page-heading,
.planning-workspace .planning-toolbar,
.capacity-detail-page > .detail-hero,
.capacity-detail-page > .detail-info,
.capacity-detail-page > .archive-notice,
.capacity-detail-page .forecast-toolbar,
.capacity-detail-page .forecast-footer,
.template-editor-hero,
.template-detail-info,
.template-forecast-workspace > .table-toolbar,
.template-forecast-workspace > .forecast-footer {
    flex-shrink: 0;
}

.planning-workspace {
    border: 1px solid rgba(14, 26, 118, .08) !important;
    overflow: hidden;
}

.button-with-icon {
    align-items: center;
    display: inline-flex;
    gap: var(--rp-space-2);
    justify-content: center;
    white-space: nowrap;
}

.resource-page-card-header {
    --bs-card-cap-padding-x: var(--rp-space-4);
    --bs-card-cap-padding-y: var(--rp-space-4);
    --bs-card-cap-bg: var(--rp-color-surface);
    --bs-card-border-color: var(--rp-color-border);
    flex-shrink: 0;
}

.resource-page-card-header .resource-page-heading {
    margin-bottom: 0;
}

.resource-page-heading {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 48px;
    margin-bottom: 1rem;
}

.resource-page-heading__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    background: var(--bs-kp-primary);
    font-size: 1.15rem;
}

.resource-page-heading__title {
    margin: 0;
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.resource-page-heading__subtitle {
    margin-top: .2rem;
    color: #000;
    font-size: .82rem;
}

.app-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 2rem 1rem;
    color: #748398;
    text-align: center;
}

.app-empty-state[hidden] {
    display: none;
}

.app-empty-state__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: .25rem;
    border-radius: 50%;
    background: #f0f2fb;
    color: #0e1a76;
    font-size: 1.25rem;
}

.app-empty-state__title {
    color: #212529;
    font-size: var(--rp-empty-state-title-size, .95rem);
    font-weight: 600;
}

.app-empty-state__description {
    max-width: 320px;
    font-size: var(--rp-empty-state-description-size, .82rem);
}

.planning-workspace .save-state > span {
    margin-left: -.35rem;
    padding: .35rem .5rem;
    border-radius: 999px;
    background: #f5f7fb;
}

.planning-toolbar {
    display: flex;
    align-items: center;
    min-height: 72px;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e4e7f0;
    border-radius: 12px;
    background: #f9faff;
}

.planning-toolbar__primary {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    width: 100%;
}

.planning-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.planning-toolbar__label {
    color: #676f8a;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.planning-toolbar__control,
.planning-toolbar .form-select {
    min-height: 34px;
    border-color: #d9ddec;
    background-color: #fff;
    color: #242b52;
    box-shadow: 0 1px 2px rgba(20, 35, 90, .03);
}

.planning-toolbar__range {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.planning-toolbar__range .form-select {
    min-width: 138px;
}

.planning-toolbar__range-separator {
    color: #9096aa;
}

.planning-toolbar__action {
    min-height: 34px;
    border-radius: 7px;
    font-weight: 600;
}

.planning-toolbar__autofill {
    margin-left: auto;
}

.planning-workspace .hot-wrapper {
    border: 1px solid #dfe3ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.planning-workspace .ht-theme-main {
    --ht-border-color: #e2e5ed;
    --ht-cell-horizontal-padding: 10px;
    --ht-cell-vertical-padding: 6px;
    --ht-header-font-weight: 600;
    --ht-cell-selection-border-color: #2639a6;
}

.planning-workspace .ht-theme-main thead tr:first-child th {
    background: #0e1a76 !important;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.planning-workspace .ht-theme-main thead tr:nth-child(2) th {
    background: #192986 !important;
    font-size: .76rem;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .planning-toolbar__autofill {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .planning-toolbar__primary,
    .planning-toolbar__field,
    .planning-toolbar__range {
        width: 100%;
    }

    .planning-toolbar__range .form-select {
        min-width: 0;
    }
}

.ht_nestingButton {
    width: 14px;
    height: 14px;
    border: 1px solid #999;
    background: #fff;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ht_nestingButton:after {
    content: "+";
}

.ht_nestingButton.ht_nestingButtonOpen:after {
    content: "ÃƒÂ¢Ã‹â€ Ã¢â‚¬â„¢";
}

.planning-workspace .handsontable .ht_nestingButton {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    margin: 0 4px 0 0 !important;
    border: 1px solid #999;
    background: #fff;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 0 !important;
    font-weight: bold;
    line-height: 14px !important;
    display: inline-flex !important;
    flex: 0 0 16px !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    vertical-align: middle;
}

.planning-workspace .handsontable .ht_nestingButton:after {
    display: block;
    color: #3f4652;
    font-size: 12px;
    line-height: 14px;
}

.project-inline {
    display: grid;
    grid-template-columns: 140px 1fr; 
    gap: 12px;
    width: 100%;
}

.proj-number {
    text-align: left;
    color: #555;
    white-space: nowrap;
}

.proj-name {
    text-align: left;
}

.ht_clone_left .rowHeader {
    color: transparent;
}

#hot-project-requests .htCore tbody tr td {
    cursor: pointer;
}

.gewenst-row td {
    background: #f7f7f7;
}

.werkelijk-row td {
    background: #eef2f6;
}

.planning-functie-page .section-row {
    background: #f28c00 !important;
}

.planning-functie-page .name-row {
    background: #8fb3cf !important;
}

.planning-functie-page .project-row {
    background: #d1dcf7 !important;
}

.color-cell {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.color-cell:hover {
    transform: scale(1.1);
}

.archived-row {
    opacity: 0.5;
    background-color: #f5f5f5;
}

.page-loader {
    display: none;
    position: absolute;
    inset: 0; 
    background: rgba(255,255,255,0.7);
    z-index: 10;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    .page-loader.active {
        display: flex;
    }

.spinner {
    width: 55px;
    height: 55px;
    border: 6px solid #e9ecef;
    border-top: 6px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.grafiek-page {
    min-height: 100vh;
}

.grafiek-layout {
    gap: 3rem;
    min-width: 0;
}

.functie-panel {
    width: 260px;
    flex-shrink: 0;
}

.functie-list {
    max-height: 700px;
    overflow-y: auto;
}

.grafiek-page .function-checkbox:checked {
    background-color: #0e1a76;
    border-color: #0e1a76;
}

.grafiek-page .function-checkbox:focus:not(:focus-visible) {
    box-shadow: none;
}

.grafiek-page .function-checkbox:focus-visible {
    box-shadow: 0 0 0 .2rem rgba(14, 26, 118, .2);
}

.grafiek-content {
    min-width: 0;
}

.grafiek-legend .legend-color {
    width: 40px;
    height: 5px;
    display: inline-block;
    margin-right: 10px;
}

.grafiek-legend .legend-line {
    width: 40px;
    height: 2px;
    display: inline-block;
    margin-right: 10px;
}

.grafiek-legend .legend-dash {
    width: 40px;
    border-top: 3px dashed;
    display: inline-block;
    margin-right: 10px;
}

#planningGraph {
    display: block;
    max-width: none;
}

.grafiek-container {
    min-height: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.06);
}

.grafiek-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.grafiek-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

.grafiek-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #94a3b8 #f1f5f9;
    scrollbar-width: thin;
}

#planningTable .project-name-clickable {
    cursor: pointer !important;
}
#planWerkelijkProjectenTable .handsontable tbody tr td:first-child {
    cursor: pointer;
}

.grafiek-legend {
    width: min(100%, 42rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.55rem 1.25rem;
    color: #475569;
    font-size: 0.8rem;
}

.grafiek-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.8rem;
    white-space: nowrap;
}

.legend-color--prognose {
    background-color: #4f81bd;
}

.legend-color--nog-gewenst {
    background-color: #f4cccc;
}

.legend-color--inleen {
    background-color: #9dc3e6;
}

.legend-color--werkelijk {
    background-color: #c0504d;
}

.legend-line--beschikbaarheid {
    background-color: #f79646;
}

.legend-dash--personeel {
    color: #00b050;
}

.legend-dash--ziekte {
    color: #7030a0;
}

.legend-dash--vakantie {
    color: #ff0000;
}

@media (max-width: 1100px) {
    .grafiek-heading {
        flex-direction: column;
    }

    .grafiek-legend {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .grafiek-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .functie-panel,
    .grafiek-content {
        width: 100%;
    }

    .functie-list {
        max-height: 12rem;
    }
}

.save-state .save-success,
.save-state .save-ongoing,
.save-state .save-error {
    display: none;
}

.save-state.success .save-success {
    display: block;
}

.save-state.ongoing .save-ongoing {
    display: block;
}

.save-state.error .save-error {
    display: block;
}

.planning-workspace .handsontable td.htHoliday {
    background-color: #ccffff !important;
}

.planning-workspace .handsontable td.htDimmed.valid-planned-Total {
    background-color: #93e151 !important;
}
.planning-workspace .handsontable td.htDimmed.invalid-planned-Total {
    background-color: #f68290 !important;
}

.vacations-page .handsontable th {
    background-color: #f28c18 !important;
}

.htHoliday {
    background-color: #ccffff !important;
}

/* Differences take precedence over the holiday background on actual cells. */
.planning-workspace .handsontable td.planning-actual-differs {
    background-color: #fff2cc !important;
}

/* Inactivity warnings layer over existing holiday, difference and total colors. */
.planning-workspace .planning-inactive-summary {
    margin: 0 0 .75rem;
    color: #805000;
    font-size: .82rem;
}

.planning-workspace .planning-inactive-badge {
    display: inline-block;
    margin-left: .5rem;
    padding: 0 .3rem;
    border-radius: 3px;
    background: #fff1d6;
    color: #704500;
    font-size: .7rem;
    font-weight: 600;
    vertical-align: middle;
}

.planning-workspace .handsontable td.planning-inactive-hours {
    position: relative;
    padding-left: 17px;
}

.planning-workspace .planning-inactive-marker {
    position: absolute;
    top: 1px;
    left: 2px;
    color: #704500;
    background: #fff1d6;
    border-radius: 2px;
    font-size: 11px;
    line-height: 14px;
    pointer-events: none;
}

.nav-page-header {
    --bs-nav-link-padding-x: var(--rp-space-4);
    --bs-nav-link-padding-y: var(--rp-space-3);
    --bs-nav-link-font-size: .9rem;
    --bs-nav-link-font-weight: 600;
    --bs-nav-link-color: var(--rp-color-text-muted);
    --bs-nav-link-hover-color: var(--rp-color-primary);
    --bs-nav-tabs-border-width: 1px;
    --bs-nav-tabs-border-color: var(--rp-color-border);
    --bs-nav-tabs-border-radius: var(--rp-radius-control);
    --bs-nav-tabs-link-hover-border-color: transparent;
    --bs-nav-tabs-link-active-color: var(--rp-color-primary);
    --bs-nav-tabs-link-active-bg: transparent;
    --bs-nav-tabs-link-active-border-color: transparent;
    --rp-tab-indicator-color: var(--rp-color-accent);
    --rp-tab-indicator-height: 3px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--rp-space-1);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: rgba(var(--bs-kp-primary-rgb), .3) transparent;
    scrollbar-width: thin;
}

.card-header-tabs.nav-page-header {
    margin-inline: 0;
}

.nav-page-header .nav-item {
    flex: 0 0 auto;
}

.nav-page-header .nav-link {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: var(--rp-space-2);
    line-height: 1.25;
    white-space: nowrap;
}

.nav-page-header .nav-link i {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 1.05rem;
}

.nav-page-header .nav-link.active {
    font-weight: 650;
}

.nav-page-header .nav-link.active::after {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: var(--rp-tab-indicator-height);
    content: "";
    background: var(--rp-tab-indicator-color);
    border-radius: var(--bs-nav-tabs-border-radius) var(--bs-nav-tabs-border-radius) 0 0;
}

.nav-page-header .nav-link:focus-visible {
    outline: 2px solid var(--bs-nav-tabs-link-active-color);
    outline-offset: -3px;
    box-shadow: none;
}

.nav-page-header::-webkit-scrollbar {
    height: var(--rp-space-1);
}

.nav-page-header::-webkit-scrollbar-track {
    background: transparent;
}

.nav-page-header::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-kp-primary-rgb), .3);
    border-radius: 999px;
}

.table-toolbar {
    align-items: center;
    background: var(--rp-color-surface-navigation);
    border-bottom: 1px solid var(--rp-color-border);
    display: flex;
    flex-shrink: 0;
    gap: var(--rp-space-4);
    justify-content: space-between;
    padding: var(--rp-toolbar-padding);
}

.table-toolbar__heading {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: var(--rp-space-3);
}

.table-toolbar__heading h2 {
    color: var(--rp-color-text);
    font-size: var(--rp-toolbar-title-size);
    font-weight: 700;
    margin: 0;
}

.table-toolbar__heading p {
    color: var(--rp-color-text-muted);
    font-size: var(--rp-toolbar-description-size);
    margin: 0;
}

.table-toolbar__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--rp-space-2);
}

.table-toolbar__actions .btn {
    align-items: center;
    display: inline-flex;
    gap: var(--rp-space-1);
}

@media (max-width: 1100px) {
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .table-toolbar__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .table-toolbar__actions .btn {
        justify-content: center;
    }
}

.resource-table-wrap {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--rp-color-border);
    border-radius: var(--rp-radius-panel);
    background: var(--rp-color-surface);
}

.resource-data-table {
    min-width: 760px;
    color: #29364a;
    --bs-table-bg: #fff;
    --bs-table-color: #29364a;
    --bs-table-hover-bg: #f5f7ff;
    --bs-table-hover-color: #26354d;
}

.resource-table-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--rp-color-border);
    border-radius: var(--rp-radius-panel);
    background: var(--rp-color-surface);
}

.resource-table-panel > .resource-table-wrap {
    border: 0;
    border-radius: 0;
}

.resource-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .55rem .55rem;
    color: #fff;
    background: var(--bs-kp-primary, #0e1a76);
    border: 0;
    border-right: 1px solid var(--rp-color-border);
    border-bottom: 1px solid var(--rp-color-border);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
}

.resource-data-table thead th:last-child {
    border-right: 0;
}

.resource-data-table tbody td {
    padding: .3rem .5rem;
    color: #0e1a76;
    border-color: var(--rp-color-border);
    font-size: .875rem;
    transition: background-color .14s ease;
}

.resource-data-table tbody tr {
    transition: background-color .14s ease;
}

.capacity-request-template-table {
    table-layout: fixed;
    overflow-wrap: anywhere;
}

.resource-data-table tbody tr.capacity-request-template-row {
    cursor: pointer;
}

.capacity-request-template-row__link {
    text-decoration: none;
}

.capacity-request-template-row__actions {
    position: relative;
    z-index: 2;
    cursor: default;
}

.capacity-request-template-row:has(.dropdown-menu.show) {
    z-index: 3;
}

.capacity-request-template-row__link:hover,
.capacity-request-template-row__link:focus-visible {
    text-decoration: underline;
}

.resource-table__primary {
    color: #26344d;
    font-weight: 700;
}

.resource-table__secondary {
    display: block;
    margin-top: .18rem;
    color: #8591a3;
    font-size: .75rem;
    font-weight: 500;
}

.resource-table__muted {
    color: #9aa4b2;
}

@media (max-width: 768px) {
    .resource-data-table thead th {
        padding: .55rem .45rem;
    }

    .resource-data-table tbody td {
        padding: .3rem .45rem;
    }
}

.employee-actions {
    display: inline-block;
}

.employee-actions__toggle {
    display: inline-flex;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #25388f;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font: inherit;
    line-height: 1;
    transition: color .15s ease;
}

.employee-actions__toggle::after {
    display: none;
}

.employee-actions__toggle > i {
    font-size: 1.15rem;
}

.employee-actions__toggle:hover, .employee-actions.show .employee-actions__toggle {
    color: var(--bs-kp-primary);
    background: rgba(var(--bs-kp-primary-rgb), .08);
    border-color: transparent;
}

.employee-actions__toggle:focus-visible {
    outline: 2px solid rgba(var(--bs-kp-primary-rgb), .3);
    outline-offset: 2px;
    box-shadow: none;
}

.employee-actions__menu {
    min-width: 13.5rem;
    margin-top: .35rem !important;
    padding: .45rem;
    border: 1px solid #e1e6f0;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .65rem 1.8rem rgba(18, 32, 75, .16);
}

.employee-actions__heading {
    margin: 0;
    padding: .5rem .62rem .38rem;
    color: #77849a;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.employee-actions__menu .dropdown-item {
    display: flex;
    width: 100%;
    min-height: 2.2rem;
    align-items: center;
    gap: .65rem;
    padding: .48rem .62rem;
    color: #35445b;
    border-radius: .38rem;
    font-size: .8rem;
    font-weight: 550;
    text-align: left;
}

.employee-actions__menu .dropdown-item > i {
    width: 1rem;
    flex: 0 0 1rem;
    color: #65748d;
    font-size: .9rem;
    text-align: center;
}

.employee-actions__menu .dropdown-item:hover, .employee-actions__menu .dropdown-item:focus-visible {
    color: #172a83;
    background: #f0f3ff;
}

.employee-actions__menu .dropdown-item:hover > i, .employee-actions__menu .dropdown-item:focus-visible > i {
    color: #273c9b;
}

.employee-actions__menu .employee-action--danger:not(:disabled) {
    color: #a43d46;
}

.employee-actions__menu .employee-action--danger:not(:disabled) > i {
    color: #bd525b;
}

.employee-actions__menu .employee-action--danger:not(:disabled):hover {
    color: #982a35;
    background: #fff1f1;
}

.employee-actions__divider {
    height: 1px;
    margin: .35rem .55rem;
    background: #e9edf3;
}
