/* =============================================================================
   Overdue Task Overlay
   Shown once per day when the logged-in user has tasks past their deadline.
   ============================================================================= */

/* Modal shell */
#overdueTasksOverlay .overdue-overlay-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Header — amber/danger stripe */
.overdue-overlay-header {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.overdue-overlay-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overdue-overlay-icon svg {
    color: #fff;
    opacity: 0.9;
    vertical-align: middle;
}

.overdue-overlay-header .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Close button inside header */
.overdue-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.15s;
}

.overdue-close-btn:hover {
    color: #fff;
}

/* Body */
.overdue-overlay-body {
    max-height: 400px;
    overflow-y: auto;
}

/* Task table */
.overdue-task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.overdue-task-table thead th {
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.overdue-task-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.overdue-task-table tbody tr:last-child {
    border-bottom: none;
}

.overdue-task-table tbody tr:hover {
    background: #fff8f8;
}

.overdue-task-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

/* Task title cell */
.overdue-task-title {
    max-width: 260px;
}

.overdue-task-name {
    color: #2c3e50;
    font-weight: 500;
}

/* Deadline badge */
.overdue-date-badge {
    color: #c0392b;
    font-weight: 600;
    font-size: 12px;
}

.overdue-days-ago {
    color: #999;
    font-size: 11px;
    margin-top: 1px;
}

/* Column widths */
.overdue-col-deadline {
    width: 110px;
    white-space: nowrap;
}

.overdue-col-project {
    width: 160px;
}

.overdue-col-assignee {
    width: 140px;
}

.overdue-col-collaborators {
    width: 180px;
    font-size: 12px;
}

/* Footer */
.overdue-overlay-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.overdue-view-all-btn {
    font-size: 13px;
    font-weight: 500;
}

.overdue-view-all-btn svg {
    vertical-align: middle;
}
