#tc-calendarContainer {
    height: calc(100vh - 60px - 2rem - 2.5rem - 3rem);
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
}

#tc-calendar {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.tc-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tc-calendar-header div {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 35, 126, 0.3);
    border-right: 1px solid rgba(26, 35, 126, 0.3);
    box-sizing: border-box;
}

.tc-calendar-header div:first-child {
    border-left: 1px solid rgba(26, 35, 126, 0.3);
}

.tc-calendar-body {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    min-height: 0;
}

.tc-day {
    position: relative;
    padding: 2px 4px;
    box-sizing: border-box;
    display: flex;
    cursor: pointer;
    flex-direction: column;
    border-bottom: 1px solid rgba(26, 35, 126, 0.3);
    border-right: 1px solid rgba(26, 35, 126, 0.3);
    overflow: hidden;
    will-change: left, top, width;
}

.tc-day:hover {
    background-color: rgba(26, 35, 126, 0.1);
}

.tc-day:nth-child(7n+1) {
    border-left: 1px solid rgba(26, 35, 126, 0.3);
}

.tc-day-number {
    font-size: 16px;
    font-weight: bold;
}

.tc-day.tc-sunday .tc-day-number {
    color: red;
}

.tc-day:not(.tc-sunday) .tc-day-number {
    color: #1A237E;
}

.tc-task {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    overflow: hidden;
}

.tc-task-name {
    font-size: 13px;
    cursor: pointer;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-task-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tc-more-task {
    margin-top: 4px;
    font-size: 11px;
    color: #555;
    font-style: italic;
    cursor: pointer;
}

.tc-today {
    background-color: rgba(252, 192, 11, 0.2);
}

/**/

.tc-task-bar-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.tc-task-bar {
    position: absolute;
    border-radius: 3px;
    padding: 2px 4px;
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 16px;
    pointer-events: auto;
    cursor: pointer;
    transition: left 0.28s ease, top 0.28s ease, width 0.28s ease;
    will-change: left, top, width;
}

.tc-task-bar:hover {
    opacity: 0.8;
}

.tc-task-bar-more-btn {
    position: absolute;
    font-size: 11px;
    color: #007aff;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
    transition: left 0.28s ease, top 0.28s ease, width 0.28s ease;
    will-change: left, top, width;
}


#taskCalendarDetailModal-content .task-row {
    margin-bottom: 8px;
    border-left: 4px solid transparent;
    padding-left: 6px;
}

#taskCalendarDetailModal-content .task-row:hover {
    background-color: #f5f5f5;
}

#taskCalendarDetailModal-content .task-row.due {
    border-color: #0b8043;
}

#taskCalendarDetailModal-content .chip.due {
    color: #0b8043;
}

#taskCalendarDetailModal-content .task-row.overdue {
    border-color: #D50000;
}

#taskCalendarDetailModal-content .chip.overdue {
    color: #D50000;
}

#taskCalendarDetailModal-content .task-row.upcoming {
    border-color: #039be5;
}

#taskCalendarDetailModal-content .chip.upcoming {
    color: #039be5;
}

#taskCalendarDetailModal-content .task-row.not_due {
    border-color: #616161;
}

#taskCalendarDetailModal-content .chip.not_due {
    color: #616161;
}

.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;
}

/**/

.dropdown-wrapper {
    position: relative;
    width: 260px;
}

#projectSearch {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    background: rgb(227 242 253);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
    display: none;
    z-index: 99;
}

.dropdown-item {
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap; /* không xuống dòng */
    overflow: hidden; /* ẩn phần vượt quá */
    text-overflow: ellipsis; /* hiển thị ... */
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

/**/

.month-selector {
    position: relative;
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 7px 35px 7px 15px;
    cursor: pointer;
    color: #1D2B6C;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.month-selector:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.month-selector .dropdown-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.month-selector.active .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.picker-popup {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    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;
}

.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;
    font-size: 16px;
    color: #1D2B6C;
    transition: background 0.2s;
}

.picker-header button:hover {
    background: #c7d2fe;
}

.picker-header span {
    font-weight: 700;
    color: #1D2B6C;
    font-size: 16px;
    cursor: pointer;
}

.months, .years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.month-item, .year-option {
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    background-color: #f5f7ff;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s all;
}

.month-item:hover {
    background-color: #dbe3ff;
    transform: scale(1.05);
}

.year-option:hover {
    background-color: #dbe3ff;
}

.month-item.active, .year-option.active {
    background-color: #1D2B6C;
    color: white;
    font-weight: bold;
}

.month-item.disabled, .year-option.disabled {
    background-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}

.years {
    display: none;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
}