/* For Chrome, Safari, Edge, and Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.btn-header-menu {
    padding: 5px 20px;
    color: #efefef;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-header-menu.active {
    color: #FFFFFF;
    font-weight: bold;
}

.timekeeping-content-body-right, .timekeeping-content-body-left {
    height: calc(100vh - 60px - 3rem - 2rem);
}

.btn-toggle-left {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-toggle-left:hover {
    background-color: #f3f4f6;
}

#left-panel.collapsed {
    overflow: hidden;
    border: none;
    padding: 0;
}

#left-panel.collapsed .sidebar-title {
    display: none;
}

#left-panel.collapsed #btn-toggle-left {
    position: absolute;
    right: 4px;
}

.left-header {
    height: 3rem;
}

.sidebar-icon {
    height: 20px;
}

.table-container {
    height: calc(100vh - 60px - 3rem - 9rem);
}

.time-sheet-cell:hover {
    background-color: #f3f4f6;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: calc(100vh - 60px - 3rem - 2rem - 3rem);
}

.project-list li {
    padding: 6px 12px;
}

.project-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    line-height: 1;
}

.project-list-item > div {
    flex: 1;
    min-width: 0;
}

.project-list-item > div > span:first-child {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #1A237E;
    line-height: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.project-list-item.project-selected {
    background-color: #E3F2FD;
}

.project-list-item:hover {
    background-color: #E3F2FD;
}

#tbl-timekeeping-task-data, #tbl-approval-task-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#tbl-timekeeping-task-data thead, #tbl-approval-task-data thead {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

#tbl-timekeeping-task-data th, #tbl-approval-task-data th {
    background-color: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1A237E;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

#tbl-timekeeping-task-data td, #tbl-approval-task-data td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

#tbl-timekeeping-task-data tbody tr:hover, #tbl-approval-task-data tbody tr:hover {
    background-color: #f8f9fa;
}

#projectTaskTimesheetModal-participants {
    max-height: 65vh;
}

#projectTaskTimesheetModal-participants-table th,
#projectTaskTimesheetModal-participants-table td {
    text-align: center;
    vertical-align: middle;
    /*white-space: nowrap;*/
}

#projectTaskTimesheetModal-participants-table th:first-child,
#projectTaskTimesheetModal-participants-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
}

#projectTaskTimesheetModal-participants-table input {
    max-width: 70px;
    margin: 0 auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.avatar-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #6c63ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.avatar-circle.more {
    background-color: #999;
}

.col-task-name, .col-project-name {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.date-input {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.col-task-approvedMonth:hover:has(.month-selector-wrap) {
    background-color: #f3f4f6;
    cursor: pointer;
}

.col-task-approvedMonth.active:has(.month-selector-wrap) {
    background-color: #f3f4f6;
}

.picker-popup {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translate(-50%, -10px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 100;
    width: 260px;
    opacity: 0;
    transition: all 0.3s ease;
}

.picker-popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.picker-header button {
    background: #e0e7ff;
    border: none;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #1D2B6C;
    transition: background 0.2s;
}

.picker-header button:hover {
    background: #c7d2fe;
}

.picker-header span {
    font-weight: 700;
    color: #1D2B6C;
    font-size: 16px;
}

.months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.month-item {
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    background-color: #f5f7ff;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s all;
    color: #1D2B6C;
}

.month-item:hover {
    background-color: #dbe3ff;
    transform: scale(1.05);
}

.month-item.active {
    background-color: #1D2B6C;
    color: white;
    font-weight: bold;
}

.month-item.disabled {
    background-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}
