.rotate-up {
    transform: rotate(0deg);
}

.accordion-arrow {
    float: right;
    transition: transform 0.3s ease;
    margin-left: 1em;
}

.collapsed .accordion-arrow {
    transform: rotate(-90deg);
}

.preloader{
    display: none;
}

#preloader{
    display: none;
}

.custom-yellowgreen-heading {
    background-color: #030859;
    color: #ffffff;
    margin-top: 15px;
    border-radius: 10px 10px 0 0;
    margin-inline: 0;
    font-size: x-large;
}

.clickable-row {
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.clickable-row:hover {
    background-color: #d3d3d3 !important; /* Change this to your desired hover color */
}

.highlight {
  box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.5);
}

/* TIMESHEET ENTRY TABLE */
/* Ensure consistent column widths */
.projectTable th, .projectTable td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word; /* Enable word wrapping */
}

/* Specific widths for columns */
.projectTable th, .projectTable td {
    width: auto; /* Default width for all columns */
    word-wrap: break-word; /* Ensure long content wraps */
}

/* Set specific widths for columns */
.projectTable th.col-date, .projectTable td.col-date {
    width: 20%;
}

.projectTable th.col-billable-hours, .projectTable td.col-billable-hours,
.projectTable th.col-nonbillable-hours, .projectTable td.col-nonbillable-hours,
.projectTable th.col-total, .projectTable td.col-total {
    width: 10%;
}

.projectTable th.col-tasks, .projectTable td.col-tasks {
    width: 25%;
}

.projectTable th.col-other-project, .projectTable td.col-other-project {
    width: 20%;
}

/* Adjust input and textarea sizes within cells */
.projectTable .form-control {
    width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
}

/* Ensure the footer columns match the header */
.projectTable tfoot th {
    width: auto; /* Ensure footer columns match header columns */
    text-align: center;
    vertical-align: middle;
}

.projectTable tfoot th.col-date {
    width: 15%;
}

.projectTable tfoot th.col-billable-hours {
    width: 10%;
}

.projectTable tfoot th.col-nonbillable-hours {
    width: 10%;
}

.projectTable tfoot th.col-total {
    width: 10%;
}

.projectTable tfoot th.col-tasks {
    width: 25%;
}

.projectTable tfoot th.col-other-project {
    width: 20%;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.legends {
    display: flex;
    flex-direction: column;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-item button {
    margin-right: 5px;
    padding: 0.25rem 0.5rem; /* Adjust button size */
}

.legend-item span {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .projectTable th,
    .projectTable td {
        min-width: 5em; /* Responsive min width */
    }

    .projectTable th.col-date,
    .projectTable td.col-date,
    .projectTable th.col-other-project,
    .projectTable td.col-other-project {
        min-width: 9em; /* Responsive min width */
    }

    .projectTable th.col-tasks,
    .projectTable td.col-tasks {
        min-width: 12em; /* Responsive min width */
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group {
        justify-content: center; /* Center buttons when stacked vertically */
    }
}

/*------------------------------------------- filter css for reports ---------------------------------------------*/
.filters-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px; /* Space between filter items */
}

.filter-item {
    flex: 1 1 20vw; /* Flex-grow, flex-shrink, and flex-basis */
    min-width: 250px;
    max-height: fit-content;
    padding: 16px;
    border-radius: 8px;
    background-color: #fff;
}

@media (max-width: 600px) {
    .filters-container {
        flex-direction: column; /* Stack filters vertically on small screens */
    }
}

.select2-results__option {
    white-space: normal !important;
    word-break: break-word !important;
}
.select2-selection__rendered {
    white-space: normal !important;
    word-break: break-word !important;
}

/* Optional: prevent select2 from collapsing */
.select2-container--default {
    width: 100% !important;
}

.select2-container--default .select2-selection--single.form-control {
    height: auto !important;
}

/* Main select box container */
.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;         /* Vertical center text and arrow */
    height: auto;
    min-height: 38px;
    padding: 6px 30px 6px 12px;  /* Padding for text + space for arrow */
    line-height: normal;
}

/* Text content */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    margin: 0;
    padding: 0;
    line-height: normal;
    white-space: normal;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    height: auto;
    display: flex;
    align-items: center;
}
