#search {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#results {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

#results.active {
    display: block;
}


.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.result-item:last-child {
    border-bottom: none;
}
.result-item:hover {
    background: #f3f3f3;
}

.show-all {
    padding: 10px;
    background: #eef7ff;
    cursor: pointer;
    border-top: 1px solid #ddd;
}

.col-mismatch {
    background-color: #ffe0e0 !important;
    color: #900 !important;
    font-weight: bold;
}

.col-mismatch-job-position {
    background-color: #e1ffb3 !important;
    color: #24ad49 !important;
    font-weight: bold;
}

.th-mismatch {
    background-color: #ffb3b3 !important;
    color: #600 !important;
}

.th-mismatch-job-position {
    background-color: #c8ff74 !important;
    color: #24ad49 !important;
}



.remark-result {
    font-size: 11px;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #61adff;
    min-width: 60px;
}

.result-item.selected,
.show-all.selected {
    background: #e9ecef;
}
#results {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

#results.active {
    opacity: 1;
    transform: translateY(0);
}
.table-scroll {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border: 1px solid #eee;
    border-radius: 0.5rem 0.5rem;
}

.table-scroll thead tr,
.table-scroll thead tr th {
    background-color: rgb(243, 243, 245) !important;
}

#table-list {
    width: 100%;
    table-layout: auto;
}

#table-list td,
#table-list th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#table-list thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: white;
    border-bottom: 2px solid #ddd;
}

#search-by-worker,
#search-by-position,
#search-by-project {
    display: none;
}
.datasheet-filter-button {
    position: relative;
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.datasheet-filter-dropdown {
    position: absolute;
    right: 0;
    top: 33px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px;
    min-width: 100%;
    display: none;
    flex-direction: column;
    z-index: 10;
}

.datasheet-filter-button.open .datasheet-filter-dropdown {
    display: flex;
}

.datasheet-menu-order-item {
    padding: 3px;
    cursor: pointer;
}

.datasheet-menu-order-item:hover {
    background: #f0f0f0;
}

.comic-bubble {
    position: absolute;
    top: 70px;
    right: -100px;
    background: #297db6;
    color: #ffffff;
    padding: 5px 8px;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bubblePop 5s infinite ease-in-out;
    opacity: 0.65;
}

.comic-bubble::after {
    content: "";
    position: absolute;
    left: 20px;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: none;
    border-bottom: 12px solid #297db6;
}

.bubble-close {
    background: transparent;
    border: none;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.bubble-close:hover {
    opacity: 0.6;
}

@keyframes bubblePop {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
.workforce-filter-button {
    position: relative;
    display: inline-block;
    border-radius: 21px;
    border:1px solid #e4e7e9;
    background-color: #f8f9fa;
    width: 120px;
}

.workforce-filter-dropdown {
    font-size: 12px;
    font-weight: bold;
    padding: 5px;
    border-radius: 10px;
    width: 120px;

}

.workforce-menu-order-item {
    font-weight: normal;
    cursor: pointer;
    padding: 6px 10px;
}

.workforce-menu-order-item:hover {
    background-color: #f8f9fa;
}

.workforce-filter-button .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    top: 0 !important;
    margin-top: 4px; /* separación opcional */
}
