﻿: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: hidden; /* disable body scroll */
}

body {
    font-family: 'Nunito', sans-serif;
    height: 100%;
    background-color: var(--wm-body-bg);
    overflow: hidden;
}

.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;
}

/* 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 */
.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:nth-child(1) {
   
}

.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: auto;
}

#planning-view .hot-wrapper,
#planning-functie-view .hot-wrapper {
    height: calc(99vh - 200px);
}

.plan-werkelijk-page .hot-wrapper {
    height: calc(96vh - 200px);
}
 
.overlap-cell {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    z-index: 1;
}

.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;
}

.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: "−";
}

.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);
}
