/* Add here all your CSS customizations */

.card {
    height: 100%;
}
.card-body{
    display : flex;
    height: 100%;
    flex-direction : column;
}
.card-text {
    flex-grow: 1;
}

.table.dataTable tbody td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.table th.datatable-actions,
.table td.datatable-actions {
    text-align: end;
    white-space: nowrap;
}

    .table td.datatable-actions a,
    .table td.datatable-actions button,
    .table td.datatable-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        box-shadow: none;
    }

        .table td.datatable-actions a + a,
        .table td.datatable-actions a + button,
        .table td.datatable-actions button + a,
        .table td.datatable-actions button + button {
            margin-left: 0.5rem;
        }

    .table td.datatable-actions i {
        font-size: 1.25rem !important;
        color: inherit !important;
        font-weight: 400;
    }

    .table td.datatable-actions .text-primary,
    .table td.datatable-actions .text-secondary,
    .table td.datatable-actions .text-success,
    .table td.datatable-actions .text-info,
    .table td.datatable-actions .text-warning,
    .table td.datatable-actions .text-danger,
    .table td.datatable-actions .text-dark,
    .table td.datatable-actions .text-muted,
    .table td.datatable-actions .text-light {
        color: inherit !important;
    }


/*kleurenpallet*/
:root {
    /* Jouw bestaande groen */
    --primary: #0a5a3b;
    --bs-primary: var(--primary);
    --secondary: #7A8450; /* mosgroen */
    --info: #8A7967; /* taupe / grijsbruin */
    /* Donker neutraal */
    --dark: #222222;
    /* Licht neutraal */
    --light: #F9F9F9;
    --custom-accent: #8B6B4A;
}

/*Badges*/
.badge.bg-primary {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: var(--info) !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
    color: #fff !important;
}

.badge.bg-dark {
    background-color: var(--dark) !important;
    color: #fff !important;
}

.badge.bg-light {
    background-color: var(--light) !important;
    color: #000 !important;
}
.badge.bg-accent {
    background-color: var(--custom-accent) !important;
    color: #fff !important;
}





.form-control.form-control-modern + .select2-container--bootstrap .select2-selection--single,
.form-control.form-control-modern + .select2-container--bootstrap .select2-selection--multiple {
    height: 46px !important;
    line-height: 2.3 !important; /* aanpassen zodat tekst netjes gecentreerd is */
    padding: 6px 17px !important;
}

/* Sidebar visual refresh: icon-first tiles + flyout children */
#sidebar-left .nano-content {
    overflow-x: visible !important;
}

#sidebar-left ul.nav-main > li {
    position: relative;
    margin-bottom: 6px;
}

    #sidebar-left ul.nav-main > li > a.main-nav-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        border-radius: 14px;
        padding: 14px 10px;
        transition: background-color .2s ease, color .2s ease;
    }

        #sidebar-left ul.nav-main > li > a.main-nav-tile i {
            font-size: 30px;
            margin: 0;
            line-height: 1;
        }

#sidebar-left .main-nav-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

#sidebar-left ul.nav-main li.nav-parent > a.main-nav-tile:after {
    display: none !important;
}

#sidebar-left ul.nav-main > li.nav-parent > .nav-children {
    display: none;
    position: absolute;
    left: calc(100% + 12px);
    top: 0;
    min-width: 430px;
    max-width: 520px;
    padding: 18px 20px;
    background: #0f4b40;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .24);
    columns: 2;
    column-gap: 24px;
    z-index: 1200;
}

    #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li {
        break-inside: avoid;
        margin-bottom: 6px;
    }

        #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li > a {
            border-radius: 8px;
            color: rgba(255, 255, 255, .92);
            font-weight: 500;
            font-size: 14px;
            padding: 8px 10px;
        }

            #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li > a:hover,
            #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li > a:focus {
                color: #ffffff;
                background: rgba(255, 255, 255, .1);
                text-decoration: none;
            }

#sidebar-left ul.nav-main > li.nav-parent:hover > .nav-children,
#sidebar-left ul.nav-main > li.nav-parent:focus-within > .nav-children,
#sidebar-left ul.nav-main > li.nav-parent.nav-expanded > .nav-children {
    display: block;
}

@media (max-width: 991px) {
    #sidebar-left ul.nav-main > li.nav-parent > .nav-children {
        position: static;
        min-width: 0;
        max-width: none;
        width: 100%;
        margin-top: 8px;
        columns: 1;
    }
}

/* Sidebar color & behavior overrides requested */
#sidebar-left.sidebar-left,
#sidebar-left .nano,
#sidebar-left .nano-content {
    background: #0a5a3b !important;
}

#sidebar-left .sidebar-header,
#sidebar-left .sidebar-title {
    background: #0a5a3b !important;
    color: #e7fff1 !important;
}

#sidebar-left ul.nav-main > li > a.main-nav-tile,
#sidebar-left ul.nav-main > li > a.main-nav-tile:hover,
#sidebar-left ul.nav-main > li > a.main-nav-tile:focus {
    background: transparent !important;
    color: #e7fff1 !important;
    text-decoration: none;
}

    #sidebar-left ul.nav-main > li > a.main-nav-tile i,
    #sidebar-left ul.nav-main > li > a.main-nav-tile .main-nav-label {
        color: #e7fff1 !important;
    }

/* actieve tegel krijgt andere groentint, zonder streep links */
#sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile,
#sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile:hover,
#sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile:focus {
    background: #0f7a52 !important;
    color: #f1fff8 !important;
    box-shadow: none !important;
}

#sidebar-left ul.nav-main > li.nav-active:before,
#sidebar-left ul.nav-main > li.nav-active > a:before,
#sidebar-left ul.nav-main > li.nav-active > a:after {
    display: none !important;
    content: none !important;
}

/* flyout moet zichtbaar boven main content liggen */
#sidebar-left,
#sidebar-left .nano,
#sidebar-left .nano-content,
#sidebar-left nav,
#sidebar-left ul.nav-main,
#sidebar-left ul.nav-main > li.nav-parent {
    overflow: visible !important;
}

    #sidebar-left ul.nav-main > li.nav-parent > .nav-children {
        left: 100% !important;
        margin-left: 0 !important;
        z-index: 99999 !important;
        border: 1px solid rgba(231, 255, 241, 0.08);
    }

        #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li > a {
            color: #e7fff1 !important;
        }

            #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li > a:hover,
            #sidebar-left ul.nav-main > li.nav-parent > .nav-children > li > a:focus {
                background: rgba(231, 255, 241, 0.14) !important;
                color: #ffffff !important;
            }

    /* Flyout behavior refinements */
    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu {
        display: none;
        left: calc(100% - 22px) !important;
        top: 50%;
        transform: translateY(-50%);
        min-width: 360px;
        max-width: 520px;
        columns: 1;
    }

        #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu.submenu-two-columns {
            columns: 2;
        }

        #sidebar-left ul.nav-main > li.nav-parent:hover > .flyout-menu,
        #sidebar-left ul.nav-main > li.nav-parent:focus-within > .flyout-menu,
        #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu:hover {
            display: block;
        }

        #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu::before {
            content: "";
            position: absolute;
            left: -26px;
            top: 50%;
            width: 26px;
            height: 2px;
            transform: translateY(-50%);
            background: rgba(231, 255, 241, 0.92);
        }

@media (max-width: 991px) {
    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu,
    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu.submenu-two-columns {
        position: static;
        transform: none;
        min-width: 0;
        max-width: none;
        width: 100%;
        columns: 1;
    }

        #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu::before {
            display: none;
        }
}

/* Final sidebar interaction fixes */
#sidebar-left {
    width: 300px;
}

@media only screen and (min-width: 768px) {
    html.sidebar-left-collapsed #sidebar-left {
        width: 73px !important;
    }
}

#sidebar-left ul.nav-main {
    margin-right: 0 !important;
}

    /* hoofdmenu actieve item: geen achtergrond, alleen groene tekst/icon */
    #sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile,
    #sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile:hover,
    #sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile:focus {
        background: transparent !important;
        box-shadow: none !important;
        color: #7bdcae !important;
    }

        #sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile i,
        #sidebar-left ul.nav-main > li.nav-active > a.main-nav-tile .main-nav-label {
            color: #7bdcae !important;
        }

    /* submenu styling volgens feedback */
    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu {
        box-shadow: none !important;
        background: #0f4b40 !important;
    }

        #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu > li > a {
            font-weight: 400 !important;
        }

        /* connectorlijn: zelfde kleur als submenu en 20px kort van het icoon */
        #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu::before {
            left: -80px;
            width: 80px;
            background: #0f4b40;
        }

/* Nano inline right-offset neutraliseren voor correcte uitlijning */
#sidebar-left .nano > .nano-content {
    right: 0 !important;
}

#sidebar-left .nano-content > nav.nav-main {
    width: 100%;
}

/* Sidebar toggle styling aligned with sidebar/menu colors */
#sidebar-left .sidebar-header .sidebar-toggle {
    background: #0a5a3b !important;
    border-left-color: rgba(231, 255, 241, 0.2) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    #sidebar-left .sidebar-header .sidebar-toggle i,
    #sidebar-left .sidebar-header .sidebar-toggle .fa-bars {
        color: #e7fff1 !important;
    }

    #sidebar-left .sidebar-header .sidebar-toggle:hover,
    #sidebar-left .sidebar-header .sidebar-toggle:focus {
        background: #0a5a3b !important;
    }

/* Primary button hover should match submenu background */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #0f4b40 !important;
    border-color: #0f4b40 !important;
}

/* Layout: sidebar full height and header next to sidebar */
#sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    min-height: 100vh;
    z-index: 1020;
}

.header {
    margin-left: 300px;
    width: calc(100% - 300px);
}

@media only screen and (min-width: 768px) {
    html.sidebar-left-collapsed .header {
        margin-left: 73px;
        width: calc(100% - 73px);
    }
}

/* Logo in sidebar footer, centered and 100px from bottom */
#sidebar-left .nano-content {
    position: relative;
    min-height: 100%;
    padding-bottom: 220px;
}

#sidebar-left .sidebar-brand-footer {
    position: absolute;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

    #sidebar-left .sidebar-brand-footer img {
        max-width: 120px;
        height: auto;
        opacity: 0.95;
    }

@media only screen and (min-width: 768px) {
    html.sidebar-left-collapsed #sidebar-left .sidebar-brand-footer img {
        max-width: 53px;
    }
}

/* Mobile sidebar behavior: closed by default, full width when opened */
@media only screen and (max-width: 767px) {
    #sidebar-left {
        left: -100%;
        margin-left: 0 !important;
        width: 100vw !important;
        max-width: 100vw;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 1200 !important;
        transition: left .25s ease !important;
    }

    .header .logo-container {
        z-index: 1301 !important;
    }

    html.csstransforms #sidebar-left {
        margin-left: 0 !important;
        transition: left .25s ease !important;
    }

    html.sidebar-left-opened #sidebar-left {
        left: 0;
        margin-left: 0 !important;
        top: 0;
        height: 100vh;
    }

    html.sidebar-left-opened.csstransforms #sidebar-left {
        left: 0 !important;
        margin-left: 0 !important;
    }

    .header {
        margin-left: 0 !important;
        width: 100% !important;
    }

    html.sidebar-left-opened .header {
        display: none !important;
    }

    #sidebar-left .nano {
        height: calc(100vh - 60px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    html.sidebar-left-opened #sidebar-left .nano {
        height: 100vh;
    }

    #sidebar-left .nano-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: calc(100vh - 60px);
        padding-bottom: 220px;
    }

    html.sidebar-left-opened #sidebar-left .nano-content {
        max-height: 100vh;
    }

    #sidebar-left ul.nav-main > li > a.main-nav-tile {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 12px 14px;
    }

        #sidebar-left ul.nav-main > li > a.main-nav-tile i {
            font-size: 14px;
            line-height: 1;
        }

    #sidebar-left .main-nav-label {
        font-size: 14px;
        line-height: 1.2;
    }

    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu,
    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu.submenu-two-columns {
        display: none;
        position: static;
        left: auto !important;
        top: auto;
        transform: none;
        min-width: 0;
        max-width: none;
        width: 100%;
        margin-top: 8px;
        columns: 1;
    }

    #sidebar-left ul.nav-main > li.nav-parent.nav-expanded > .flyout-menu {
        display: block;
    }

    #sidebar-left .sidebar-brand-footer {
        bottom: 100px;
    }

    #sidebar-left ul.nav-main > li.nav-parent > .flyout-menu > li > a {
        text-align: center;
    }

    /* Groene mobiele header balk */
    .header .logo-container {
        background: #0a5a3b !important;
        background-image: none !important;
        border-bottom: none !important;
        border-top: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 !important;
    }

    /* Zelfde grootte en positie als sidebar-toggle */
    .header-btn-collapse-nav {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        width: 73px !important;
        height: 60px !important;
        float: none !important;
        margin: 0 !important;
        position: static !important;
        top: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-btn-collapse-nav i {
        font-size: 22px !important;
        color: #ffffff !important;
        line-height: 1 !important;
    }
}

.doc-thumb-column {
    padding-left: 8px;
}

.doc-thumb-link {
    position: relative;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dce3e7;
}

.doc-thumb-image {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform .2s ease;
}

.doc-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 183, 136, 0.45);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}

.doc-thumb-link:hover .doc-thumb-image {
    transform: scale(1.03);
}

.doc-thumb-link:hover .doc-thumb-overlay {
    opacity: 1;
}

/* Button outline */

.btn-outline-primary {
    color: #0a5a3b;
    border-color: #0a5a3b;
}

    .btn-outline-primary:hover {
        color: #fff;
        background-color: #0a5a3b;
        border-color: #0a5a3b;
    }

    .btn-outline-primary:focus,
    .btn-outline-primary.focus {
        box-shadow: 0 0 0 0.2rem rgba(10, 90, 59, 0.25);
    }

    .btn-outline-primary.disabled,
    .btn-outline-primary:disabled {
        color: #0a5a3b;
        background-color: transparent;
    }

    .btn-outline-primary:not(:disabled):not(.disabled):active,
    .btn-outline-primary:not(:disabled):not(.disabled).active {
        color: #fff;
        background-color: #0a5a3b;
        border-color: #0a5a3b;
    }


    /*Issuetable*/

.issue-card .card-body {
    padding: 1.5rem;
}

.issues-filter-form {
    margin-bottom: 1.5rem;
}

    .issues-filter-form .form-label {
        margin-bottom: 0.45rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #5f6b7a;
    }

    .issues-filter-form .input-group-text {
        background: #fff;
        border-color: #d7dee7;
        color: #6b7280;
        min-height: 45px;
    }

    .issues-filter-form .form-control,
    .issues-filter-form .select2-selection--single {
        min-height: 45px;
    }

.issue-table-block {
    display: block;
}

.issue-table-wrapper {
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.issue-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .issue-table thead th {
        background: #f8f9fb;
        color: #5f6b7a;
        font-weight: 600;
        font-size: 14px;
        padding: 14px 18px;
        border-top: 0 !important;
        border-bottom: 1px solid #d9e2ea;
        white-space: nowrap;
        vertical-align: middle;
    }

    .issue-table tbody td {
        padding: 16px 18px;
        border-top: 1px solid #eef2f5;
        vertical-align: middle;
        background: #fff;
    }

    .issue-table tbody tr:first-child td {
        border-top: 0;
    }

    .issue-table tbody tr:hover td {
        background: #fcfcfd;
    }

    .issue-table .col-check {
        width: 46px;
        min-width: 46px;
        text-align: center;
        padding-left: 12px;
        padding-right: 12px;
    }

    .issue-table .actions {
        white-space: nowrap;
    }

        .issue-table .actions a {
            color: #5f6b7a;
            text-decoration: none;
        }

            .issue-table .actions a:hover {
                color: #0a5a3b;
            }

.issue-table-footer {
    padding-top: 0.9rem;
}

    .issue-table-footer .dataTables_info {
        margin: 0;
        color: #6b7280;
        font-size: 0.9rem;
    }

    .issue-table-footer .dataTables_paginate {
        margin: 0;
    }

    .issue-table-footer .pagination {
        margin-bottom: 0;
        gap: 0.25rem;
    }

    .issue-table-footer .page-item .page-link {
        border-radius: 6px;
        border-color: #d9e2ea;
        color: #4b5563;
        min-width: 36px;
        text-align: center;
    }

    .issue-table-footer .page-item.active .page-link {
        background-color: #0a5a3b;
        border-color: #0a5a3b;
        color: #fff;
    }

    .issue-table-footer .page-item.disabled .page-link {
        color: #adb5bd;
    }

#datatable-issues_wrapper > .row:first-child {
    margin-bottom: 0;
}

#datatable-issues_wrapper > .row:last-child {
    display: none;
}

/* Detail menu positie correctie: theme.css gebruikt top: 114px maar dat is 10px te hoog */
@media only screen and (min-width: 768px) {
    html.fixed .inner-menu {
        top: 124px;
    }

    html.fixed .inner-menu-toggle {
        top: 124px;
    }

    html.fixed .inner-body {
        border-top: 123px solid transparent;
        margin-top: -120px;
    }
}

/* Sidebar-header meevolgen bij hover-expand op collapsed sidebar */
@media only screen and (min-width: 768px) {
    html.sidebar-left-collapsed .sidebar-left:has(.nano:hover) .sidebar-header,
    html.sidebar-left-collapsed .sidebar-left:has(.nano.hovered) .sidebar-header {
        width: 300px;
    }
}

/* Boxicons compatibility aliases */
.bx-arrow-out-up-square-half:before {
    content: "\eb3e"; /* alias naar bx-link-external in lokale boxicons versie */
}