:root {
    --bs-body-font-size: 0.9375rem; /* ≈ 15px */

    --bs-primary: #007aa6;
    --bs-primary-rgb: 0, 122, 166;

    --bs-link-color: #007aa6;
    --bs-link-hover-color: #004184;
    --bs-dropdown-link-color: #fff;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/*
 **********************************************************************************************
    sticky footer
 **********************************************************************************************
*/
html,
body {
    height: 100%;
    /* Set to 100% of the container */
}

body>footer {
    top: 100vh;
    /* pushes the footer outside the visible area */
    position: sticky;
    /* pulls it back up and sticks it to the bottom edge */
}

.wrapper-body {
    min-height: 100px;
    /* need to set a value to override the theme.css's calc value */
    padding-bottom: 50px;
}

.pagesBreadcrumb {
    margin-bottom:  0;
}

.pagesBreadcrumb .breadcrumb-item p {
    color: #007aa6;
}

.pagesBreadcrumb .breadcrumb-item.active p {
    color: #000;
    font-weight: bold;
}

.pagesBreadcrumb .breadcrumb-item p a {
    margin: 0;
    padding-left: 3px;
}

.table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(0, 122, 166, 0.1);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color)
}

.btn {
    --bs-btn-padding-x: 0.50rem;
    --bs-btn-padding-y: 0.30rem;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x) !important;
}

.form-control {
    border-radius: 2px;
}

label,
label.fw-bold {
    color: var(--bs-primary);
    font-weight: 400 !important;
}

.gss-subtitle {
    font-size: small;
    color: #666;
    min-height: 19px;
}

#gss-functions-overview h2 {
    margin-bottom: 30px;
}

#gss-functions-overview h4 {
    font-size: 17px;
    color: #000;
}

#gss-functions-overview ul {
    margin-top: 10px;   
}

#gss-functions-overview hr {
    margin-top: 30px;   
    margin-bottom: 35px;
}


/***********************************************************************************************
    login
 **********************************************************************************************
*/

.gss-employee-login button[name="provider"] {
    margin-top: 110px;
}

@media (max-width: 991px) {

    .login-heading-section {
        padding-bottom: 15px;
    }

    .gss-external-login {
        margin-top: 50px;
        padding-top: 40px;
        border-top: 1px solid #80808059;
    }

    .gss-employee-login {
        margin-top: 25px;
    }

    .gss-employee-login button[name="provider"] {
        margin-top: 25px;
    }

    .gss-external-login #submit-signin-local,
    .gss-external-login a.btn {
        margin-top: 25px;
    }
}

.card {
    border: 1px solid #eee !important;
}

.card>.card-header {
    padding: 5px 15px 5px 15px;
    color: #017aa6 !important;
    font-size: 18px !important;
    border-bottom: 3px solid #017aa6;
}

.modal {
    border-radius: 0;
}

.modal-dialog iframe {
    width: 100%;
    border: none;
    height: 80vh;
}

.modal-dialog .btn-close {
    box-sizing:content-box;
    width:1em;
    height:1em;
    padding:.25em .25em;
    color:#000;
    background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border:0;
    border-radius:.375rem;
    opacity:.5
}

/**********************************************************************************/
/** crmEntityFormView optimizations                                              **/
/**********************************************************************************/

p {
    font-size: 15px;
}

div.info {
    padding-bottom: 0;
}

label {
    font-weight: 400;
    /* color: #303030; */
    /*margin-bottom: 5px;*/
}

.crmEntityFormView .section-title {
    display: block;
    padding-bottom: 0px;
    margin-bottom: 0;
    border-bottom: 1px solid #cccccc;
}

.crmEntityFormView .section-title h3 {
    font-size: 20px;
}

.crmEntityFormView .form-control.readonly,
.crmEntityFormView .form-control[readonly][disabled],
.crmEntityFormView .form-control-static,
.form-readonly .form-control {
    height: auto;
    padding-top: 0;
}

.crmEntityFormView label {
    background-color: #ffffff !important;
    color: var(--bs-primary) !important;
}

.crmEntityFormView fieldset {
    margin-bottom: 0 !important;
}

.crmEntityFormView .cell {
    padding: 4px 0;
}

.hide-tab-titles h2.tab-title,
.gss-personnel-file-header h2.tab-title {
    display: none;
}

/* Loader */
#pp-loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.63);
    z-index: 9999;
}

#pp-loader[data-visible="true"] {
    display: flex;
}

.pp-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, .15);
    border-top-color: rgb(0 133 183 / 70%);
    border-radius: 50%;
    animation: pp-spin 1s linear infinite;
}

@keyframes pp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide non PDF files */
div#gss-shared-documents-spi tr.sp-item[data-filename]:not([data-filename$='.pdf' i]),
div[data-name*='DocumentsFiltered'] tr.sp-item[data-filename]:not([data-filename$='.pdf' i]) {
    display: none;
}


/* Counter Badge */
.counter {
    color: #fff;
    background-color: var(--portalThemeColor4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    top: -1px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.list-group .counter {
    margin-left: 6px;
    top: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* increase the width of displayed file-name in SharePoint integration */
.sharepoint-custom-icon {
    max-width: 83vw;
}

.gss-trainpath .delay {
    font-weight: 600;
    display: inline-block;
    text-align: right;
    min-width: 21px;
}

/* Language selector flags */
.drop_language.fi {
    font-size: 1.2rem;
    vertical-align: -0.1em;
}

.dropdown-menu .dropdown-item .fi {
    width: 2.33em;
    vertical-align: -0.1em;
    border-radius: 2px;
}

.language-dropdown-menu {
    min-width: auto;
}

.language-dropdown-menu .dropdown-item {
    text-align: center;
    padding-left: .75rem;
    padding-right: .75rem;
}

/* Account menu icon */
.nav-link .bi-person-circle {
    font-size: 1.2rem;
    vertical-align: -0.1em;
}

/***********************************************************************************************
    Document library / SharePoint
    Overgenomen uit v1.5 (gss_custom_theme.css) — ontbraken in V2.
***********************************************************************************************/

/* Optimize Sharepoint Integration messages */
.view-empty.message .alert.alert-warning,
.sharepoint-empty.message .alert.alert-warning,
.entity-grid.subgrid .alert.alert-warning {
    padding: 8px 0;
    background-color: transparent;
    border: none;
    color: #000;
}

.breadcrumb.sharepoint-breadcrumbs {
    padding: 0px;
    margin-bottom: 0;
}

#gss-shared-documents-spi .sharepoint-empty.message {
    display: none !important;
}

.subgrid.sharepoint-grid {
    padding: 0;
}

/* Hide modified date */
th[aria-label="Modified"] *,
.subgrid.sharepoint-grid .postedon .timeago {
    display: none !important;
}

/* Fix missing fa icons */
.fa-file-o::before {
    content: "\f15b";
}

.fa-folder-o::before {
    content: "\f07b";
}

.sharepoint-custom-icon .fa {
    margin-right: 5px;
}

.folder-link .fa-exclamation-triangle {
    position: relative;
    top: 2px;
    color: var(--portalThemeColor4);
}

.table>tbody>tr>td.sp-subitems {
    padding: 0;
}

.table>tbody>tr>td.sp-subitems table {
    margin-bottom: 0;
    background-color: transparent;
}

.collapse-versions {
    padding-left: 30px;
}

a[data-bs-toggle="collapse"] .rotate {
    display: inline-block;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

a[data-bs-toggle="collapse"].collapsed .rotate {
    display: inline-block;
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}

/***********************************************************************************************
    Grids / grid headers
    Overgenomen uit v1.5 (gss_custom_theme.css) — ontbraken in V2.
***********************************************************************************************/

time {
    white-space: nowrap;
}

.table>thead>tr>th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--portalThemeColor4);
    padding-bottom: 5px;
}

.table>thead>tr>th a {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--portalThemeColor4);
}

#gss-personnelfile-tabcontent {
    padding-top: 20px;
}

.gss-table-qualifications {
    table-layout: fixed;
    width: 100%;
}

.gss-table-qualifications .gss-datecol {
    width: 130px;
}

.gss-table-qualifications .gss-notescol {
    width: 230px;
}

.gss-table-qualifications .gss-detailcol {
    width: 160px;
}

tr.expiringsoon {
    background-color: #fbe9a5 !important;
    color: #896c01 !important;
}

tr.expired {
    background-color: #f9cfcf !important;
    color: #c72222 !important;
}

/* ---------------------------------------------------------------
   .table-stacked-md — onder 768px klapt elke rij om naar een kaartje.
   Labels komen uit de bestaande data-th attributen.
   De expliciete role-attributen in de HTML zijn nodig: zodra je
   display op tabelelementen overschrijft, verdwijnen de impliciete
   tabelrollen uit de accessibility tree.
   --------------------------------------------------------------- */
@media (max-width: 767.98px) {


    .crmEntityFormView .cell {
        padding: 5px 0;
        margin: 0;
    }

    html[dir=ltr] .crmEntityFormView .tab .tab-column {
        padding-left: 0px;
        float: left
    }

    .card {
        border: none !important;
    }

    .card-body {
        padding: 0;
    }

    .gss-table-qualifications .gss-file-actions {
        text-align: right;
    }

    .gss-table-stacked.gss-table-qualifications .gss-datecol {
        width: auto;
    }

    .gss-table-stacked.gss-table-qualifications .gss-notescol {
        width: auto;
    }

    .gss-table-stacked.gss-table-qualifications .gss-detailcol {
        width: auto;
    }

    .table.gss-table-stacked>:not(caption)>*>* {
        border-bottom: none;
    }

    .gss-notescol:empty {
        display: none;
    }

    table.gss-table-stacked {
        margin-top: 15px;
    }

    table.gss-table-stacked .gss-hidewhenstacked {
        display: none;
    }

    table.gss-table-stacked thead,
    table.gss-table-stacked tbody,
    table.gss-table-stacked tr,
    table.gss-table-stacked th,
    table.gss-table-stacked td {
        display: block;
    }

    /* Kopregel visueel verbergen, maar beschikbaar houden voor screenreaders */
    table.gss-table-stacked thead {
        position: absolute;
        width: 2px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    table.gss-table-stacked tr {
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
    }

    table.gss-table-stacked td {
        position: relative;
        border: none;
        padding-top: 1.8rem !important;
        /* Ruimte voor het label */
        padding-bottom: 0.6rem !important;
        padding-left: 8px;
    }

    /* Label uit het data-th attribuut */
    table.gss-table-stacked th::before,
    table.gss-table-stacked td::before {
        content: attr(data-th);
        position: absolute;
        top: 4px;
        left: 8px;
        font-weight: normal;
        color: var(--bs-primary) !important;
    }
}