/* Styling for the active menu item */
.active-menu {
    background-color: #558ac2; /* Primary blue background color */
    color: #ffffff !important; /* White text color */
    border-radius: 4px; /* Slightly rounded corners */
    padding: 8px 12px; /* Padding to give some spacing */
    font-weight: bold; /* Bold font weight for emphasis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a 3D effect */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/* Optional: Add hover effect for better interaction */
.top-menu:hover {
    background-color: #819ebd; 
    color: #ffffff !important; /* Maintain white text color */
}

/* Ensuring the default nav-link style does not conflict */
.nav-link {
    color: #000000; /* Default color for non-active links */
    padding: 8px 12px; /* Consistent padding */
    text-decoration: none; /* Remove underline */
    border-radius: 4px; /* Matching rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/*Få tabellen til at fylde 100% af content*/
#table_wrapper {
    width: 100%;
}


/* Initially hide the drop zone */
.dropzone {
    display: none;
  }
  
img.thumbnail {
    max-width: 100%; /* This ensures images don't exceed their container width */
    width: 150px; /* Set a fixed width for larger screens if needed */
    height: auto; /* Maintain aspect ratio */
}

.table {
    width: 100%;
}

#table tr:hover {
    /*background-color: rgb(179, 183, 189);*/ /* Change to your desired background color */
    cursor: pointer;
}

.hide {
    display: none;
}

.center {
    text-align: center;
}

.sailor-blue thead th {
    background-color: #6c869d;
    color: white;
}

.dark-grey th {
    background-color: #9d9d9d;
    color: white;
}

#operation_copy_warning_modal tbody {
    background-color: #ffc689;
}

.icheck-custom > input:first-child:checked + input[type="hidden"] + label::before, .icheck-custom > input:first-child:checked + label::before {

    background-color: #2ea67f;
    border-color: #2ea67f;
}

.icheck-custom > input:first-child + input[type="hidden"] + label::before, .icheck-custom > input:first-child + label::before {
    background-color: #fff;
}
/*Fjern margin på checkbox */
.m-0[class*="icheck-"] {
    margin-top: 0px !important; /* higher specificity and !important */
    margin-bottom: 0px !important; /* higher specificity and !important */
}

.mb-0[class*="icheck-"] {
    margin-bottom: 0px !important; /* higher specificity and !important */
}


.change-color {
    font-size: 17px;
}

.hover {
    cursor: pointer;
}

.no-hover {
    cursor: auto !important; /* Use !important to override the style */
}

#materials_compare_table.table.dataTable > tbody > tr.row-color1 {
    background-color: lightblue;
}

#materials_compare_table.table.dataTable > tbody > tr.row-color2 {
    background-color: #7fd3af;
}

table.dataTable > tbody > tr.status-master {
    background-color: #58a869;
    color: white;
}

table.dataTable > tbody > tr.status-kopi {
    background-color:   #eeec85;
}

table.dataTable > tbody > tr.status-ufuldstændig {
    background-color:   #6293e1;
    color: white;
}

table.dataTable > tbody > tr.status-udgået {
    background-color:   #db4f4f;
    color: white;
}

table.dataTable > tbody > tr.status-tom-udgået {
    background-color:   #787777;
    color: white;
}


table.dataTable > tbody > tr.status-kopi-udgået {
    background-color:   #e97ed2;
    color: white;
}

table.dataTable > tbody > tr.status-markeret-til-sletning {
    background-color:   #000000;
    color: white;
}

table.dataTable > tbody > tr.table-orange {
    background-color:   #fbd5ac;
    border-color: #ffc383;
}

.table-orange td {
    border-color:#ffc383;
}


/* CSS to apply the hover effect to the cells in the specified column */
#materials_compare_table tbody tr:hover td.hover-column:hover {
    background-color: #f9f4de;; /* Change this to your desired hover background color */
}

/*Sæt process kortet forrest så den ikke forsvinder bag tabellen*/
.dataTables_processing {
    z-index: 10000; /* Use a high z-index value */
}

/*Luk modal kryds*/
.modal-close {
    color: white;
}

/* Hover state */
.modal-close:hover {
    color: white; /* Adjust color as needed */
}

.search-button {
    max-height: 40px; 
    margin-top: 23px;
}


.column-fit-content {
    width: 1%;
    white-space: nowrap;
}
/*Menu fold ud pil*/
.nav-sidebar .nav-link > p > .right {
    position: absolute;
    right: 0rem;
    top: .7rem;
}

.nav-sidebar > .nav-item .nav-icon {
    margin-right: 0rem;
}

input.flatpickr-input.form-control {
    background-color: white;
}

.highlight-column-warning {
    background-color: yellow;
    font-weight: bold;
}

tr.highlight-row {
    background-color: #b5dfb5 !important;
    font-weight: bold;
}

/* For at modal boksen altid er foran loading boksen fra datatable */
.dataTables_processing {
    z-index: 1049;
}

/*Mindst 250px bredde på kolonne så længe skærmen er større end 500px*/
@media (min-width: 500px) {
    .col-min-width {
        min-width: 250px;
    }
}
.col-small-width {
    max-width: 120px;
}


/* select2 validation errror */
.select2-selection--single.is-invalid {
    border: 1px solid #dc3545 !important;
}


table.dataTable > tbody > tr.group-color-1 {
    background-color: #b0d3a9;
}

table.dataTable > tbody > tr.group-color-2 {
    background-color: #bcdee1;
}


.button-padding {
    padding: 8px !important;
}

.custom-link {
    color: #645c5c;
}

.flatpickr-wrapper {
    width: 100%; /* Ensure the wrapper takes up the full width */
}


.study-info-container h5 {
    margin-bottom: 5px; /* Adds spacing between lines */
}

.study-info-container p {
    margin-bottom: 3px; /* Adds spacing between paragraphs */
    line-height: 1.6;
}

.study-info-container p span {
    font-weight: bold; /* To emphasize the date and description */
}


/*Tidsregistrering tabel*/
.timing-table td {
    border: 1px solid #ccd7e1;
}

.timing-table th {
    background-color: #8898b3;
    color: white;
}

.timing-table tr.completed {
    background-color: #d5ece4;
}


/*Table spinner loader*/
.table-container {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*Table spinner loader END*/


table.dataTable > tbody > tr.tidsregistrering-afsluttet {
    background-color:   #fb985ccf;
    color: white;
}

.dropdown-container + .select2-container {
    width: 100%;
    /* Brug clamp() for at gøre bredden responsiv:
       - minimum 250px (så den ikke bliver for lille på små skærme)
       - fortrækker 40% af skærmbredden
       - maksimum 500px (så den ikke bliver for bred på store skærme) */
    max-width: clamp(250px, 40vw, 500px);
}