html {

    font-size: calc(0.4rem + 0.37vw);
}
/*html {
    font-size: 0.8rem;
}*/


/*@media (min-width: 768px) {
  html {

    font-size: small;

  }
}*/

html {

  position: relative;
  min-height: 100%;

}


/* Login view */

.login_link{
    color: #000000;
}

/* Home view */
.home_h1 {
    padding-top: 200px;
    font-weight: bold;
/*    font-size: 1.3em;*/
}

.home_h1 {
    margin-top: 30px;
  

}

/* Body */

body {
    margin: 0;
    padding: 0;
    font-family: Helvetica;
    background: linear-gradient(160deg,#c5e4e3,#6f93ac);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    cursor: pointer;
}

header, footer {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

main {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    margin-left: 0.6rem;
    margin-right: 0.6rem;
}

.navbar-right {
    margin-right: 50px;
}

.footer {
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 2.5rem;
    background: #86a9bb;
}

.navbar_top {
    display: inline-block;
}


/* TABLE */
.fixed-table-footer, .fixed-table-header {
    overflow: hidden;
}

.fixed-table-body {
    overflow-x: auto;
    overflow-y: auto;
    height: 100%;
}

.bootstrap-table .table {
    margin-bottom: 0 !important;
    border-bottom: 1px solid #ddd;
    border-collapse: collapse !important;
    border-radius: 1px;
}

.table-header {
    text-align: center;
    vertical-align: middle;
}

/*.table-cell {
    text-align: center;
    vertical-align: middle;
    padding: 0.1rem;
    border: 1px solid darkgrey;
    font-weight: 400;
    margin: 5px auto 5px 0px;
    border-radius: 3px;
}*/

.fixed-table-body thead th .th-inner {
    box-sizing: border-box;
}

.fixed-table-container thead th .sortable {
    cursor: pointer;
    background-position: right;
    background-repeat: no-repeat;
    padding-right: 30px;
}

.fixed-table-container thead th .th-inner, .fixed-table-container tbody td .th-inner {
    padding: 8px;
    line-height: 24px;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

tr.bottomline {
    border-bottom: solid 0.1rem;
    border-color: black;
}

th.firstheader {
    min-width: 12em;
    max-width: 12em;
}

th.fixed-column {
    min-width: 10em;
    max-width: 10em;
}

.table-column {
    min-width: 6em;
    max-width: 6em;
    text-align: center;
}

.table-wide-column {
    min-width: 25em;
    max-width: 25em;
}

.table-cell-input {
    text-align: center;
    width: 75px;
}

.table-cell-input:disabled {
    font-weight: 700;
    border: 2px solid black;
    color:black;
}

.table-cell-90 {
    width: 90%; 
}

.table-cell-dropdown {
    width: 75px;
    text-align: left;
}

.table-textarea-input {

}

tbody th.sticky {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    left: 0;
    background-color: whitesmoke;
    z-index: 999;
}

.btn-submit {
    background-color: dodgerblue;
    color: white;
    border: 0;
    border-radius: 2px;

}

.th-non-header {
    font-weight:100 !important;
}

.th-big-header, .th-year-header {
    font-weight: bold;
    font-size: 1.2rem;
}

.th-middle-header {
    font-weight: bold;
}

.td-vertical-middle {
    text-align: center;
    vertical-align: middle;
}

.fifteen-padding-top {
    padding-top:15px;
}


.table-overflow-x {
    overflow-x: auto;
    display: block;
}

.empty-tr {
    height: 1rem;
}

.tfoot-borderless {
    border-color:transparent;
    border-style: none !important;
    border-width: 0;
}



/* BOXES */

.box {
    position: relative;
    border-radius: 6px;
    background: #fff;
    border-top: 3px solid #fff;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

.box-body {
    padding: 0.8rem;
    background-color: whitesmoke;
    border: 1px solid;
    border-top: none;
}

.box-footer {
    padding: 0.8rem;
    background-color: whitesmoke;
    border-top: none;
}

.box-header {
    padding: 0.8rem;
    background-color: whitesmoke;
    border: 1px solid;
    border-bottom: none;
}

.box-header-table, .box-footer-table {
    padding: 0rem !important;
}

/* SELF MADE CLASSES */

.checkbox-medium {
    height:20px;
    width:20px;
}

.enquete-readonly {
    background-color: #b9c7cc;
    border: 1px solid;
}

.enquete-readonly-placeholder {
    padding-left: 8px;
    padding-right: 43px;
    text-overflow: clip;
}

@media (max-width: 768px) {
    .enquete-readonly-placeholder {
        padding-right: 50px;
    }
}

.disabled-button {
    pointer-events: none;
    background-color:#ddd;
    color: #f1f2f2;
}

.save-button {
    background-color: #9b9b9b;
}

.override-bootstrap-col-buttons {
    margin-left:105%;
    float:right;
}

.button-on-right {
    margin-left: 5px;
}

.button-on-right-div {
    float: right;
}

.side-menu-button {
    width: 40%
}

.align-right {
    text-align: right;
    pointer-events: cursor;
}

.non-active-copy {
    pointer-events: none;
    color: lightgray;
}

.hidden-row {
    display: none;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    border: solid .5px #332e2e;
    display: inline-block;
    vertical-align: middle;
}

.dot.dot-green {
    background-color: #7ABD91;
}

.dot.dot-red {
    background-color: #FF8989;
}

.gray-border {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
} 

/* BOOTSTRAP ADJUSTMENTS */
.container {
    padding-left:0rem;
    padding-right:0rem;
    max-width:99%;
}

.form-control {
    height: 2rem;
    padding: 8px;
    font-size: inherit;
}

.form-control-1-padding {
    padding: 1rem;
}

.form-control-dropdown {
    @extend .form-control;
    width: 100%;
    padding: 0rem 0.75rem;
    color: #212529;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  
}

form-control-dropdown:disabled{
    background-color: darkgray;
    border-color: gray;
}


.row {
    margin-bottom:0.25em;
}

.spacer-row {
    margin-bottom: 1rem;
}

label {
    vertical-align: middle;
}

.form-control-text-area {
    height: 13rem;
}

.form-control-text-area-small {
    height: 4rem;
}

.navbar-right {
    margin-left: auto;
    margin-right: 10px !important;
}

.nav-link {
    color: dimgrey;
    cursor: pointer;
}

.nav-link.active {
    background-color: #73a3bb !important;
    color: white !important;
    font-weight:bolder;
}

.active {
background-color: #73a3bb !important;
    color: white !important;
    font-weight:bolder;

}

/*.btn {
    font-size: inherit;
}*/

.btn-primary {
    background-color: #73a3bb;
    border-color: #9b9b9b;
}

.btn-status-red {
    background-color: #ff8989;
    border-color: #9b9b9b;
}

.btn-status-green {
    background-color: #7ABD91;
    border-color: #9b9b9b;
}

.btn-status-gray {
    background-color: #aaaaaa;
    border-color: #9b9b9b;
}

.extra-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-0-5 {
    @extend .extra-col;
    flex: 0 0 4.16666665%;
    max-width: 4.16666667%;
}

.col-1-5 {
    @extend .extra-col;
    flex: 0 0 12.5%;
    max-width: 12.5%;
}

.col-2-5 {
    @extend .extra-col;
    flex: 0 0 20.833333325%;
    max-width: 20.833333325%;
}

.col-3-5 {
    @extend .extra-col;
    flex: 0 0 29.166666655%;
    max-width: 29.166666655%;
}

.col-4-5 {
    @extend .extra-col;
    flex: 0 0 37.499999985%;
    max-width: 37.499999985%;
}

.col-5-5 {
    @extend .extra-col;
    flex: 0 0 45.833333315%;
    max-width: 45.833333315%;
}

.col-6-5 {
    @extend .extra-col;
    flex: 0 0 54.166666645%;
    max-width: 54.166666645%;
}

.col-7-5 {
    @extend .extra-col;
    flex: 0 0 62.499999975%;
    max-width: 62.499999975%;
}

.col-8-5 {
    @extend .extra-col;
    flex: 0 0 70.833333305%;
    max-width: 70.833333305%;
}

.col-9-5 {
    @extend .extra-col;
    flex: 0 0 79.166666635%;
    max-width: 79.166666635%;
}

.col-10-5 {
    @extend .extra-col;
    flex: 0 0 87.499999965%;
    max-width: 87.499999965%;
}

.col-11-5 {
    @extend .extra-col;
    flex: 0 0 95.8333333%;
    max-width: 95.8333333%;
}

/* SELECT2 ADJUSTMENTS */

.select2-selection__rendered {
    line-height: 15px !important;
    margin-top: 4px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 20px !important;
}


/*Deze regel gebruikt de aangrenzende sibling-selector (+) 
    om de .select2-container te targeten die direct volgt op een select-element 
    met de klasse enquete-dropdown. Dit zorgt ervoor dat de stijlen alleen 
    worden toegepast op de select2-velden die geassocieerd zijn met de klasse enquete-dropdown.*/
select.enquete-dropdown + .select2-container .select2-selection--single .select2-selection__rendered {
    width: 44%;
    text-overflow: clip !important;
}

@media (max-width: 768px) {
    select.enquete-dropdown + .select2-container .select2-selection--single .select2-selection__rendered {
        width: 30%;
    }
}

.select2-container .select2-selection--single {
    height: 2rem !important;
}

.select2-selection__arrow {
    height: 1.5rem !important;
}

/* When a dropdown that is initiated with select2 has a value that's blank, add it to this css 
    to make sure the empty option is still visible in height and doesn't get hidden.
    This is a fix for the select2 dropdowns that are initiated with a blank value. */

#select2-addressAanduiding-results > .select2-results__option, #select2-addressAanduidingModal-results > .select2-results__option {
    height: 2rem !important;
}


/* Navigation buttons */
/* will add a red border when error is found on page */
.errorTab {
    border-color: red !important;
    border: 5px;
}




/* Backend layout */

.backend-menu {
    background: lightgray;
    color: #fff;
    height: 80vh;
    border: 3px solid white;
}

.backend-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: whitesmoke;
}

.backend-menu ul li {
    padding: 10px;
}

.backend-menu ul li a {
    display: block;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
}

.backend-menu li a:hover {
    background-color: #73a3bb;
    color: white;
}

.backend-content {
    padding: 20px;
    height:100%;
/*    height: 80vh;*/
    background-color: whitesmoke;
    border: 3px solid white;
}

/* Ensure all validation error messages are red */
label.error {
    color: red;
    font-size: 14px; /* You can adjust the size if needed */
    font-weight: normal; /* Optional: adjust font weight */
}

/*gives error*/
/*#ManagementMonitorTab, .row {
    overflow-x: hidden;
}*/


/* Ensure text in Naam & Straat columns is truncated */
#SearchResults td.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    position: relative;
}

/* Ensure text in Naam & Straat columns is truncated */
#SearchResultsCB td.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    position: relative;
}

/* Tooltip styling */
.tooltip-text {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: normal; 
    word-break: break-word; 
    position: absolute;
    z-index: 1000;
    display: none;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Add small triangle below tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 10%;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}


.vestiging_search_form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.panel-min {
    min-height: 300px; /* or calc(100vh - 180px) */
    display: flex;
    flex-direction: column;
}

.panel-min .panel-scroll {
    flex: 1 1 auto;
    min-height: 0; /* critical for flex children to allow scrolling */
    overflow: auto;
    padding-bottom: .75rem; /* avoid visual overlap with footer */
}

.panel-min .box-footer {
    margin-top: auto; /* push footer to bottom */
}

/* Single select: keep height but give text breathing room */
.select2-container--default .select2-selection--single {
    height: 38px; /* match your Bootstrap control height */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px; /* slightly less than container height */
    padding-bottom: 2px; /* extra room for descenders */
    /* optional: inherit font for consistent metrics */
    font-size: inherit;
    font-family: inherit;
}

/* If you use form-control-sm / -lg, tweak the numbers: */
.form-control-sm ~ .select2-container--default .select2-selection--single {
    height: 31px;
}

.form-control-sm ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 29px;
    padding-bottom: 2px;
}

.form-control-lg ~ .select2-container--default .select2-selection--single {
    height: 48px;
}

.form-control-lg ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-bottom: 2px;
}

/* Multi-select (chips) – prevent clipping as well */
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1.25; /* avoid tight clipping in tags */
}


.readonly-select {
    pointer-events: none; /* block mouse */
    background-color: #e9ecef;
}

.readonly-select:focus {
    outline: none;
}

.select2-container .select2-selection.s2-readonly,
.AdresWijkList-select.readonly-select + .select2 .select2-selection {
    background-color: #e9ecef;
}

.select2-container .select2-selection.s2-readonly,
.WerklocatieTypeList-select.readonly-select + .select2 .select2-selection {
    background-color: #e9ecef;
}



.tilePictogram {
    text-align: center;
    padding: 0px;
    background: #ffebcd;
    border-right: 0px solid #126cbf;
}


.tilePictogramLogo {
    position: relative;
    height: 82%;
    bottom: 0px;
    margin-top: 10%;
    max-height: 85%;
    margin-bottom: auto;
}




/* base look (adjust to your palette) */
.opm-field {
    transition: background-color .15s ease, border-color .15s ease;
    background-color: #f8f9fa; /* light gray */
}
    /* darker when it contains text */
    .opm-field.opm-filled {
        background-color: #e0e0e0; /* darker gray when filled */
        border-color: #bdbdbd;
    }
    /* keep readonly subtle, but still allow filled state to darken it */
    .opm-field[readonly] {
        background-color: #f1f3f5;
    }

        .opm-field[readonly].opm-filled {
            background-color: #dcdfe3;
        }
    /* optional focus */
    .opm-field:focus {
        outline: none;
        box-shadow: 0 0 0 .2rem rgba(13,110,253,.1);
    }

/* overlay editor */
.opm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opm-dialog {
    background: #fff;
    width: min(800px, 90vw);
    max-height: 80vh;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opm-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 55vh;
    resize: vertical;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font: inherit;
}

.opm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-opm {
    padding: .4rem .9rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f8f9fa;
}

    .btn-opm.primary {
        background: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }

/* CB Icon - Custom Icon Class */
.icon-cb {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('/CB-icoon-wit.ico');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.icon-cb-disabled {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('/CB-icoon-wit.ico');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    opacity: 0.5;
}

.fade-out {
    opacity:0;
    transition: opacity 500ms ease;
}


.backend-menu {
    background: #fff;
}

.backend-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.backend-ul li {
    margin-bottom: 2px;
}

.backend-menu a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease;
}

.backend-menu a:hover {
background-color: #f2f2f2;
}

.backend-menu a.active-tab {
background-color: #e6f0ff;
color: #003a8f;
font-weight: 600;
border-left: 4px solid #0d6efd;
}

.backend-menu a.active-tab i {
    color: #0d6efd;
}