/* eigen kleur menubalk */
.custom-navbar {
    background-color: #009FE3; /* Schipper blauw */
    /* #E30613 Schipper Rood */
}

/*tekst kleuren in de menubalk*/
.custom-navbar .navbar-brand,
.custom-navbar .nav-link,
.custom-navbar .btn,
.custom-navbar .bi {
    color: white !important;
}

.custom-navbar .mos-nav-link {
    color: #E30613 !important;
    border: 1px solid #E30613;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
}

.custom-navbar .mos-nav-link:hover,
.custom-navbar .mos-nav-link:focus {
    color: #fff !important;
    background-color: #E30613;
}


body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* eigen kleur footer */
.custom-footer {
    background-color: #009FE3; /* Schipper blauw */
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: auto;
}

.btn-footer {
    background-color: #009FE3;
    border-color: #009FE3;
    color: #fff;
}

.btn-footer:hover,
.btn-footer:focus {
    background-color: #0089c2;
    border-color: #0089c2;
    color: #fff;
}

.info-card-icon {
    font-size: 3rem;
    color: #009FE3;
}

main.container-fluid {
    flex: 1 0 auto;
    margin-bottom: 0;
}

/*icon buttons*/

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.icon-button:hover {
    background-color: #6c757d; /* iets donkerder grijs bij hover */
}

/* Responsive table header labels */

.tussencontroles-rapport-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: white;
}

.tussencontroles-rapport-wrapper {
    max-height: 70vh;
    overflow-y: auto;
}

.foutlus-zi-table {
    border-collapse: collapse;
}

.foutlus-zi-table th + th,
.foutlus-zi-table td + td {
    border-left: 1px solid #000;
}


@media (max-width: 576px) {
    th[data-label="Omschrijving"]::before,
    th[data-label="Projectleider"]::before {
        content: attr(data-label-short);
        display: block;
        text-align: left;
        font-weight: bold;
    }

    th[data-label="Omschrijving"],
    th[data-label="Projectleider"] {
        font-size: 0;
        position: relative;
    }

    th[data-label="Omschrijving"]::before,
    th[data-label="Projectleider"]::before {
        font-size: 0.875rem;
        color: inherit;
    }

    /* Ensure table fits screen */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100% !important;
        table-layout: fixed;
    }
    td, th {
        word-wrap: break-word;
        white-space: normal;
    }

    /* Icon buttons stacked and centered */
    td .icon-button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 4px 0 !important;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        text-decoration: none;
    }

    td .icon-button i {
        font-size: 1.2rem;
        line-height: 1;
    }
}

@media (max-width: 576px) {
    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .sectionSignatureDesktop {
        display: none;
    }

    .sectionSignatureMobile {
        display: inline;
    }    
}

@media (min-width: 577px) {
    .desktop-label {
        display: inline;
    }

    .mobile-label {
        display: none;
    }

    .sectionSignatureDesktop {
        display: inline;
    }

    .sectionSignatureMobile {
        display: none;
    }    
}      
