*:not([class]):not([style]),
*[aria-selected="false"],
*[aria-selected="false"]:hover,
.is_focused:hover{
    color: #000000 !important;
}

.choices__list--dropdown .choices__item--selectable:hover,
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--selectable.is-highlighted:hover,
.choices__list--dropdown .choices__item--selectable.is-selected:hover {
    color: #000000; !important;
}

/* Nao tem elipsis pq eu assim decidi XD*/
.timesheet-page {
    padding: clamp(0.75rem, 1.6vw, 1.5rem) clamp(0.75rem, 1.6vw, 1.5rem) clamp(1.25rem, 2.2vw, 2.5rem);
}

.timesheet-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.timesheet-table {
    width: 100%;
    table-layout: fixed;
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
}

.timesheet-table th,
.timesheet-table td {
    min-width: 0;
}

/* Keep header text readable on narrow screens instead of overlapping. */
.timesheet-table th {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
    font-size: clamp(0.68rem, 0.85vw, 0.9rem);
    padding: clamp(0.28rem, 0.55vw, 0.5rem);
}

/* Body cells stay single-line and clipped to avoid crossing into next columns. */
.timesheet-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Week Total column styling - reduce padding */
.timesheet-table td[colspan="2"] {
    padding: 0 clamp(0.2rem, 0.4vw, 0.25rem) !important;  /* Reduced padding */
    font-size: clamp(0.65rem, 0.8vw, 0.8rem) !important;
}

.timesheet-table td[colspan="2"] div {
    padding: 0 !important;
    margin: 0 !important;
}

/* Make action column button smaller */
.timesheet-table td#actions button {
    padding: clamp(0.2rem, 0.4vw, 0.3rem) clamp(0.3rem, 0.5vw, 0.4rem) !important;
    font-size: clamp(0.6rem, 0.75vw, 0.75rem) !important;
    min-width: auto !important;
    min-height: auto !important;
}

.timesheet-table td#actions button i {
    font-size: clamp(0.65rem, 0.85vw, 0.8rem) !important;
}


.state-cell {
    max-width: 2.6rem;
}


/* Elipsis para Area - direção RTL para cortar à esquerda */
.area-cell {
    max-width: clamp(7rem, 12vw, 10rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

/* Elipsis para Iteration - direção RTL para cortar à esquerda */
.iteration-cell {
    max-width: clamp(8rem, 14vw, 11rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: left;
}

/* Title com elipsis normal (já está correto no HTML) */
.title-cell {
    max-width: clamp(6.8rem, 11vw, 9.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Day (hrs) cell*/
.day-cell {
    width: 100%;
    min-width: 0;
    text-align: center;
    border: 1px solid #ccc;
    padding: clamp(0.15rem, 0.45vw, 0.3rem);
    border-radius: 0.2rem;
    box-sizing: border-box;
}

.hour-input {
    font-size: clamp(0.75rem, 0.95vw, 0.95rem);
}

.total-hours {
    width: 100% !important;
    min-width: 0;
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    box-sizing: border-box;
}

.hours-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hours-modal-content {
    background: #fff;
    width: min(980px, 95vw);
    max-height: 86vh;
    overflow: auto;
    border-radius: 6px;
    padding: 14px;
}

.consult-month-label {
    font-size: clamp(1.1rem, 2.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.consult-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.consult-calendar th,
.consult-calendar td {
    border: 1px solid #d9d9d9;
}

.consult-calendar th {
    background: #f5f5f5;
    text-align: center;
    padding: 0.5rem;
    font-size: clamp(0.8rem, 1.3vw, 1.35rem);
    font-weight: 700;
}

.consult-day-cell {
    height: clamp(4.5rem, 9vw, 6rem);
    vertical-align: top;
    background: #fff;
    padding: clamp(0.25rem, 0.65vw, 0.4rem);
}

.consult-day-muted {
    background: #fbfbfb;
    color: #a6a6a6;
}

.consult-day-number {
    display: block;
    text-align: right;
    font-size: clamp(1rem, 2vw, 1.75rem);
    line-height: 1;
    font-weight: 400;
    margin-bottom: 0.45rem;
}

.consult-hour-chip {
    display: inline-block;
    max-width: 100%;
    background: #2a7fa5;
    color: #fff;
    font-size: clamp(0.7rem, 0.95vw, 0.95rem);
    font-weight: 600;
    border-radius: 3px;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}

.consult-no-hours {
    color: #b4b4b4;
    font-size: 13px;
}

.saving-row {
    background-color: #fff9e6;
}

.dirty-field {
    border-color: #f0ad4e !important;
    border-width: 2px !important;
}

/* Hour input focus state - volta a preto ao blur */
.hour-input:focus {
    border-color: #f0ad4e !important;
    border-width: 2px !important;
    outline: none;
}

/* Chrome, Safari, Edge, Opera */
/* Chrome, Safari, Edge, Opera */
input[type=number]:not(:is(:focus, :hover))::-webkit-outer-spin-button,
input[type=number]:not(:is(:focus, :hover))::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number]:not(:is(:focus, :hover)) {
    -moz-appearance: textfield;
}


.week-nav-wrap {
    display: inline-flex;
    align-items: center;
    zoom: 75%;
    gap: clamp(0.35rem, 1vw, 0.9rem);
}

.week-nav-btn {
    border: none;
    background: transparent;
    color: #5f6368;
    font-size: clamp(1rem, 1.7vw, 1.4rem);
    line-height: 1;
    padding: clamp(0.2rem, 0.5vw, 0.4rem) clamp(0.3rem, 0.7vw, 0.5rem);
    cursor: pointer;
}

.week-nav-btn:hover {
    color: #2f3237;
}

.week-range-pill {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.35rem, 0.9vw, 0.75rem);
    padding: clamp(0.35rem, 0.9vw, 0.7rem) clamp(0.6rem, 1.4vw, 1.25rem);
    background: #ecf1f8;
    border: 1px solid #cdd9ea;
    border-radius: 0.75rem;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 600;
    color: #2f4a7d;
}

.total-hours-week {
    font-size: clamp(1rem, 1.7vw, 1.5rem);
    font-weight: 700;
    color: #2a7fa5;
}

.week-text {
    min-width: clamp(2.5rem, 6vw, 4.4rem);
    text-align: center;
    font-size: clamp(1rem, 2.1vw, 1.75rem);
    color: #2f4a7d;
    font-weight: 700;
}

.validade-features {
    display: inline-flex;
    align-items: center;
}

.is-hidden {
    display: none !important;
}

.approval-hour-chip {
    display: inline-block;
    max-width: 100%;
    font-size: clamp(0.65rem, 0.85vw, 0.82rem);
    font-weight: 600;
    border-radius: 0.2rem;
    padding: 0.2rem 0.35rem;
    white-space: nowrap;
    margin-bottom: 2px;
}

.approval-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.approval-calendar th,
.approval-calendar td {
    border: 1px solid #d9d9d9;
}

.approval-calendar th {
    background: #f5f5f5;
    text-align: center;
    padding: 0.5rem;
    font-size: clamp(0.8rem, 1.3vw, 1.35rem);
    font-weight: 700;
}

/* Pending approval warning icon */
.pending-approval-warning {
    position: absolute;
    top: 2px;
    right: 2px;
    color: #f0ad4e;
    font-size: 12px;
    cursor: help;
    z-index: 10;
}

/* Rejected warning icon */
.rejected-approval-warning {
    position: absolute;
    top: 2px;
    right: 2px;
    color: #dc3545;
    font-size: 12px;
    cursor: help;
    z-index: 10;
}

/* Make day cells position relative for absolute positioning of warning icon */
td[data-day] {
    position: relative;
}

/* Make top-right logged user text adapt instead of colliding with Save button. */
#user {
    font-size: clamp(0.9rem, 1.2vw, 1.25rem) !important;
    max-width: min(34vw, 26rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.timesheet-filters-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    align-content: start;
    zoom: 85%;
}

.timesheet-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timesheet-filter-label {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.timesheet-filter-select {
    min-width: 130px;
    height: 31px;
    padding: 0 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    color: #212529;
}

#refreshTasksBtn {
    width: 31px;
    height: 31px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.title-area {
    padding: 4px 0;
}

.content-area {
    margin-top: 6px;
}


.group-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.group-data-table th,
.group-data-table td {
    border: 1px solid #e3e3e3;
    padding: 6px;
    font-size: 12px;
}

.group-data-table th {
    background: #f5f5f5;
    font-weight: 700;
}

.week-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.week-label {
    min-width: 180px;
    text-align: center;
}

.week-total-wrap {
    margin: 8px;
    align-items: center;
    align-self: center;
    align-content: center;

}


.group-action-bar {
    display: flex;
    gap: 8px;
}

#weeklySaveBtn {
    margin-left: auto;
}

.week-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.week-hours-input {
    padding-right: 1rem;
}

.week-input-status {
    position: absolute;
    right: 49.5%;
    font-size: 12px;
    cursor: help;
    z-index: 30;
    transform: translateY(-260%)
}


.week-input-status.status-pending {
    color: #f0ad4e;
}

.week-input-status.status-rejected {
    color: #dc3545;
}

#weeklySaveBtn:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
}

#weeklySaveBtn:not(:disabled) {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
}

#weeklySaveBtn:not(:disabled):hover {
    background-color: #0056b3;
    border-color: #0056b3;
}


/* Testing */

body > div[class=""] > .container {
    max-width: 95vw !important;
    width: 95vw !important;
    padding-left: 2.5vw !important;
    padding-right: 2.5vw !important;
    margin-top: 2vh !important;
}

body > div[class=""] > .container > .row {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-2.5vw - 1.5rem) !important;
    margin-right: calc(-2.5vw - 1.5rem) !important;
}




/* Scroll para a tabela de logs */
/* Scrollable log table wrapper */
.log-table-wrapper {
    max-height: clamp(300px, 50vh, 600px);
    overflow-y: auto;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    margin-bottom: 8px;
}

.log-table-wrapper .group-data-table {
    margin-bottom: 0;
}

/* Scrollbar styling for Chrome, Safari, Edge, Opera */
.log-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.log-table-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.log-table-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.log-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox */
.log-table-wrapper {
    scrollbar-color: #ccc #f5f5f5;
    scrollbar-width: thin;
}


/* Highligt The today column (Boards)*/
.highlight-today-header {
    background-color: #e3f2fd !important;
    border-left: 2px solid #1976d2 !important;
    border-right: 2px solid #1976d2 !important;
    border-top: 2px solid #1976d2 !important;
    font-weight: bold;
    color: #1976d2;
}

.highlight-today-cell {
    background-color: #e3f2fd !important;
    border-right: 2px solid #1976d2 !important;
    border-left: 2px solid #1976d2 !important;

}

.highlight-today-input {
    background-color: #f1f9ff !important;
}

.highlight-today-cell-last {
    background-color: #e3f2fd !important;
    border-right: 2px solid #1976d2 !important;
    border-left: 2px solid #1976d2 !important;
    border-bottom: 2px solid #1976d2 !important;

}

/* Highligt The today column (WI)*/
.highlight-today-header-WI {
    background-color: #e3f2fd !important;
    border-bottom: 2px solid #1976d2 !important;
    border-top: 2px solid #1976d2 !important;
    border-left: 2px solid #1976d2 !important;
    font-weight: bold;
    color: #1976d2;
}

.highlight-today-cell-WI {
    background-color: #e3f2fd !important;
    border-top: 2px solid #1976d2 !important;
    border-bottom: 2px solid #1976d2 !important;
}

.highlight-today-cell-right-WI {
    background-color: #e3f2fd !important;
    border-top: 2px solid #1976d2 !important;
    border-bottom: 2px solid #1976d2 !important;
    border-right: 2px solid #1976d2 !important;
}

.highlight-today-input-WI {
    background-color: #f1f9ff !important;
}

/* Title cell link styling */
.title-cell a {
    color: inherit;  /* Herda a cor do texto normal */
    text-decoration: none;  /* Remove o underline padrão */
}

.title-cell a:hover {
    color: #0067b5;  /* Azul ao hover */
    cursor: pointer;
}

.title-cell a:visited {
    color: inherit;  /* Herda a cor do texto normal */
    text-decoration: none;  /* Remove o underline padrão */
}

.title-cell a:visited:hover {
    color: #0067b5;  /* Azul ao hover */
    cursor: pointer;
}






.border-hour-color {
    border-left-color: white;
    border-right-color: white;
    border-top-color: white;
    color: white; !important;
}

.border-hour-color-left {
    border-left-color: white;
    border-top-color: white !important;
    color: white; !important;
}

/* Hide top borders on all elements in test-row */
.test-row{
    border-top: none !important;
    border-top-color: transparent !important;
}














.test-div {
    background-color: white; /* Match your table background */
    height: 4%;
    width: 54.6%;
    padding: 0 0 0 0;
    margin: -3% 0 0 -1.2%;
    display: block;
    position: absolute;
    z-index: 20; /* Ensure it's on top of the border */
}

.test-div-right {
    background-color: white; /* Match your table background */
    height: 4%;
    width: 10%;
    padding: 0 0 0 0;
    margin: -3% 0 0 -0.5%;
    display: block;
    position: absolute;
    z-index: 20; /* Ensure it's on top of the border */
}

/* Remove the top border from the row itself */
.test-row {
    border-top: none !important;
}

/* Re‑apply the top‑border to the cells in this row.
   Adjust the color/thickness to match the rest of your table. */
.test-row th {
    border-top: 1px solid #dee2e6;   /* same as Bootstrap’s table border color */

}

.text-center-vertical  {
    vertical-align: center !important;
}

.choices__inner {
    min-width: 190px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* Disable input styling for workitem-timesheet-group */
.disabled-input {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}
.disabled-input {
    background-color: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

.disabled-input:disabled {
    border-color: #ccc !important;
    background-color: #f0f0f0 !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

.disabled-input:disabled:hover {
    background-color: #e8e8e8 !important;
}

/* Loading Spinner*/
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #c5c5c5;
    border-bottom-color: #1976d2;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 3px solid #c5c5c5;
    border-bottom-color: #1976d2;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: bottom;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Collapsable configs and styling*/

.tooltip-custom {
    cursor: pointer;
}

.tooltiptext {
    background-color: white;
    color: #fff;
    border-radius: 5px;

    display: inline-block;
    height: 41px;

    justify-content: center;

    top: 5%;
    min-width: 300px;

    position: relative;
    border: none;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: right;

    box-sizing: border-box;
}

.tooltiptextsuccess {
    border-right: 5px solid #28a745;
    background-color: #dbffdb;
    color: black;
    height: 41px;
}

.tooltiptextdanger {
    border-right: 5px solid #dc2845;
    background-color: #ffdede;
    color: black;
    height: 41px;
}


#btns {
    display: flex;              /* Already implied by Bootstrap col, but be explicit */
    justify-content: flex-end;  /* Align all children to the RIGHT */
    align-items: center;        /* Vertically center them */
    gap: 8px;                   /* Space between buttons */
}




.state-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.35rem, 0.9vw, 0.75rem);
    padding: clamp(0.35rem, 0.9vw, 0.7rem) clamp(0.6rem, 1.4vw, 1.25rem);
    background: #ecf1f8;
    border: 1px solid #cdd9ea;
    border-radius: 0.75rem;
    font-size: clamp(0.75rem, 1vw, 1rem);
    font-weight: 600;
    color: #2f4a7d;
    zoom: 90%;
}

.state-label-wrap-approved {
    border: 2px solid #28a745;
    background-color: #dbffdb;
    color: #28a745;
}

.state-label-wrap-rejected {
    border: 2px solid #dc2845;
    background-color: #ffdede;
    color: #dc2845;
}





.flatpickr-weekwrapper .flatpickr-weeks .week-rejected{
    border: 2px solid #dc2845 !important;
    background-color: #ffdede !important;
    color: #dc2845 !important;

    font-weight: 600 !important;
    border-radius: 20px !important;
    width: 39px !important;
    height: 39px !important;
}

.flatpickr-weekwrapper .flatpickr-weeks .week-success{
    border: 2px solid #28a745 !important;
    background-color: #dbffdb !important;
    color: #28a745 !important;

    font-weight: 600 !important;
    border-radius: 20px !important;
    width: 39px !important;
    height: 39px !important;
}

.flatpickr-weekwrapper .flatpickr-weeks .week-pending{
    border: 2px solid #f0ad4e !important;
    background-color: #fff0d0 !important;
    color: #f0ad4e !important;

    font-weight: 600 !important;
    border-radius: 20px !important;
    width: 39px !important;
    height: 39px !important;
}

.flatpickr-weekwrapper .flatpickr-weeks .flatpickr-day {
    border: 2px solid #cfcfcf;
    background-color: #f2f2f2;
    color: #b6b6b6;

    font-weight: 600;
    border-radius: 20px;
    width: 39px;
    height: 39px;
}

.flatpickr-weekwrapper .flatpickr-weeks .flatpickr-day:hover {
    border: 2px solid #cfcfcf;
    background-color: #f2f2f2;
    color: #b6b6b6;

    font-weight: 600;
    border-radius: 20px;
    width: 39px;
    height: 39px;
}



#approveWeekBtn,
#rejectWeekBtn,
#submitWeekBtn,
#recoverWeekBtn {
    min-width: 110px;
    height: 41px;
    padding: 0 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
}

#saveAllBtn{
    min-width: 60px;
    height: 41px;
    padding: 0 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
}