html {
    font-size: 14px;
}

h1 {
    margin-bottom: 1rem;
}

a, a.btn:hover, .nav-link:hover {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.menu-link.collapsed .sluiten {
    display: none;
}

.menu-link.collapsed .menu {
    display: block !important;
}

.sidebar .nav-link:not(.active) {
    color: #1a1e21!important;
}

.sidebar .nav-link:not(.active):hover {
    background-color: var(--bs-gray-200);
}

.form-floating .textarea-big {
    height: 100px;
}

.pb-6 {
    padding-bottom: 4.5rem !important;
}

.fs-7 {
    font-size: 0.85rem!important;
}

.fs-8 {
    font-size: 0.7rem!important;
}

.fw-bold {
    font-weight: 500!important;
}

.dropdown-center:after {
    margin: 0;
}

.resize-none {
    resize: none;
}

.focus-none:focus {
    box-shadow: none;
}

.border-focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

.toast-container {
    top: 70px;
}

.toast-header {
    color: inherit;
}

.loading:before {
    background: rgb(255 255 255 / 60%);
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.loading:after {
    align-items: center;
    animation: 1s infinite loader;
    background-color: var(--bs-primary);
    border-radius: 100px;
    bottom: 0;
    color: #fff;
    content: "\f001";
    display: flex;
    font-family: "Font Awesome 5 Free";
    font-size: 1.4rem;
    font-weight: 900;
    height: 50px;
    justify-content: center;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    z-index: 1;
}

@keyframes loader {
    0%      {transform:scale(1)}
    10%     {transform:scale(1.05)}
    35%     {transform:scale(1.2)}
    60%     {transform:scale(1)}
    80%     {transform:scale(1.1)}
    100%    {transform:scale(1)}
}

/* Dialog */
.modal-dialog-scrollable .modal-content {
    flex-direction: row;
}

.modal-dialog-scrollable form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.col-form-label-optioneel {
    display: flex;
    margin-top: -6px;
    padding-bottom: calc(.375rem + 1px);
    padding-top: calc(.375rem + 1px);
}

.col-form-label-optioneel small {
    align-self: end;
    margin-left: .5rem;
}

.was-validated .selectize-input.invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Cards */
.card {
    --bs-card-border-color: var(--bs-border-color);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 500;
    background: none;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Tabs */
.nav-tabs.nav-bordered {
    padding: 0 1.5rem;
}

.nav-tabs.nav-bordered li a {
    color: #495057;
    padding: 1.3rem 1rem;
    border: 0;
}

.nav-tabs.nav-bordered li a.active {
    color: inherit;
    border-bottom: 2px solid var(--bs-primary);
}

.nav-tabs.nav-bordered li a:hover {
    color: var(--bs-primary);
}

/* Tables */
.table>:not(:last-child)>:last-child>* {
    border-bottom-color: inherit;
}

th.rotate {
    height: 140px;
    white-space: nowrap;
    vertical-align: middle;
}

th.rotate > div {
    transform: 
        translate(25px, 51px)
        rotate(315deg);
    width: 30px;
}
th.rotate > div > span {
    border-bottom: 1px solid var(--bs-gray-300);
    padding: 5px 10px;
}

thead.sticky {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    background: #fff;
    box-shadow: 0px 2px 0 #dee2e6;
}

.modal-body .row.gy-3 div:nth-child(even) {
    --bs-gutter-y: 0;
}

.ts-wrapper.bottom {
    position: fixed !important;
    max-width: 285px;
}

@media screen and (min-width: 768px) {
    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1020;
    }
    
    .main {
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    .sidebar {
        height: calc(100vh - 70px);
        top: 70px;
        border-right: 1px solid var(--bs-border-color)!important;
    }
    
    .col-form-label-optioneel {
        flex-direction: column;
        padding-bottom: 0;
        padding-top: 0;
    }

    .col-form-label-optioneel small {
        align-self: unset;
        margin-left: 0;
    }
    
    thead.sticky {
        top: 70px;
    }
    
    .columns-2 {
        column-count: 2;
    }
    
    .modal-body .row.gy-3 div:nth-child(even) {
        --bs-gutter-y: 1rem;
    }
    
    .toast-container {
        top: 70px !important;
    }
}    