@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;600;700&display=swap');


.timesheet-header .page-title {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #2F1C6A;
    margin-bottom: 1.5rem;
}

.summary-section {
    width: 75%;
    background: #FFFFFF;
    border: 1px solid #CACACA;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.summary-info .summary-title {
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 18px;
    color: #2F1C6A;
    margin-bottom: 1rem;
}

.summary-info .summary-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #36344D;
}

.summary-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.summary-card {
    width: 319px;
    height: 130px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.summary-card.submitted {
    border: 1px solid #3F80FF;
}
.summary-card.approved {
    border: 1px solid #3F80FF;
}

.summary-card .card-top {
    height: 58px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 34px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-card .card-icon {
    font-size: 24px;
}
.summary-card.submitted .card-icon {
    color: #007AFF;
}
.summary-card.approved .card-icon {
    color: #00B151;
}

.summary-card .card-title {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #2F1C6A;
}

.summary-card .card-bottom {
    height: 72px;
    background: #F1F6FF;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 34px;
}

.summary-card .card-count {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
}
.summary-card.submitted .card-count {
    color: #007AFF;
}
.summary-card.approved .card-count {
    color: #34C759;
}

/* --- Page Actions (Create and Filter Buttons) --- */
.page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.page-actions .btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    height: 45px;
}

.page-actions .btn-primary {
    padding: 10px;
    gap: 4px;
    width: 119px;
    background: #3F80FF;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.0125em;
}

.page-actions .btn-secondary {
    padding: 8px;
    gap: 8px;
    width: 119px;
    background: #F2F6FF;
    border: 1px solid #3F80FF;
    border-radius: 4px;
    color: #3F80FF;
    font-weight: 400;
    font-size: 14px;
}

/* --- Table Styles --- */
.table-container {
    background: #FFFFFF;
    border: 1px solid #3F80FF;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.table-title {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    color: #000000;
    margin-bottom: 1rem;
}

.table-wrapper {
    overflow-x: auto;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
}

.timesheet-table thead th {
    background: #F0F5FF;
    padding: 1rem;
    text-align: left;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    color: #2F1C6A;
    white-space: nowrap;
}

.timesheet-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #F0F0F0;
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    color: #36344D;
    vertical-align: middle;
}

.timesheet-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.timesheet-table .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    gap: 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

.timesheet-table .status .status-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

.timesheet-table .status i {
    display: none;
}
.timesheet-table .status-draft { background: #ECF2FF; color: #007AFF; }
.timesheet-table .status-pending { background: #FFF7E7; color: #FFA800; }
.timesheet-table .status-approve { background: #DEFFF6; color: #00B151; }
.timesheet-table .status-rejected { background: #FFE4E4; color: #FF2D55; }

/* Action Buttons */
.timesheet-table .action-cell {
    align-items: center;
    width: 90px;
    text-wrap-mode: nowrap;
}
.timesheet-table .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
}
.timesheet-table .action-btn:hover { opacity: 0.7; }
.timesheet-table .action-btn .fa-eye,
.timesheet-table .action-btn .fa-pen-to-square { color: #2F1C6A; }
.timesheet-table .action-btn .fa-trash-can { color: #E80A0A; }
.no-data {
    text-align: center;
    padding: 3rem;
    color: #828282;
}

@media (max-width: 992px) {
    .summary-section {
        flex-direction: column;
        align-items: stretch;
    }
    .summary-cards {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .timesheet-container {
        padding: 1rem;
    }
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Work summary modal */

.modalWorkSummary {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.20), 0px 30px 70px -10px rgba(17, 24, 38, 0.25), 0px 0px 0px 1px rgba(152, 161, 178, 0.10);
}

.modal-worksummary-content {
    background: white;
    margin: auto;
    margin-top: 5%;
    padding: 20px;
    border-radius: 12px;
    border: 6px solid #E3E3E3;
    width: 40%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.20), 0px 30px 70px -10px rgba(17, 24, 38, 0.25), 0px 0px 0px 1px rgba(152, 161, 178, 0.10);
}

.modal-worksummary-content .modal-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #E9E9E9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-worksummary-content .modal-date-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

#ModalEditWorkSummary .modal-date-status-row,
#ModalViewWorkSummary .modal-date-status-row {
    margin-bottom: 20px;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 0 8px;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box-draft {
    background-color: #ECF2FF;
    color: #007AFF;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box-pending {
    background-color: #FFF7E7;
    color: #FFA800;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box-rejected {
    background-color: #FFE4E4;
    color: #FF2D55;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box-approved {
    background-color: #DEFFF6;
    color: #00B151;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box img {
    width: 20px;
    height: 20px;
}

.modal-worksummary-content .modal-date-status-row .modal-status-box p {
    font-family: Mulish;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.modal-worksummary-content .rejected-reason-row {
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #FF3B30;
    overflow: hidden;
    margin: 10px auto;
}

.modal-worksummary-content .rejected-reason-row .title {
    padding: 8px 16px;
    font-size: 16px;
    margin-bottom: 0 !important;
}

.modal-worksummary-content .rejected-reason-row .reason {
    background-color: #FFE4E4;
    padding: 16px;
    font-size: 12px;
    margin-bottom: 0 !important;
}

.modal-worksummary-content .modal-date-row {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.modal-worksummary-content .modal-date-row .text1 {
    font-family: Mulish;
    font-size: 16px;
    font-weight: 600;
    color: #2F1C6A;
    margin-bottom: 0 !important;
}

.modal-worksummary-content .modal-second-row {
    margin-bottom: 20px;
}

.modal-worksummary-content .modal-second-row .text1 {
    font-family: Mulish;
    font-size: 18px;
    font-weight: 600;
    color: #2F1C6A;
    margin-bottom: 10px;
    text-align: center;
}

.modal-worksummary-content .modal-second-row .text2 {
    font-family: Mulish;
    font-size: 14px;
    font-weight: 400;
    color: #36344D;
    text-align: center;
    margin-bottom: 15px;
}

.modal-worksummary-content .modal-third-row {
    margin-bottom: 10px;
}

.modal-worksummary-content .modal-third-row textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-family: Mulish;
    font-size: 14px;
    resize: vertical;
}

.modal-worksummary-content .modal-fourth-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btnWorkSummary {
    justify-content: center;
    align-items: center;
    display: flex;
    width: 120px;
    height: 40px;
    border-radius: 6px;
    background: #356BD4;
    border: none;
    box-shadow: none;
    padding: 5px;
    transition: box-shadow 0.3s ease;
    color: white;
    font-family: Mulish;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btnWorkSummary:hover {
    box-shadow: 0px 0px 10px 2px #D9D9D9;
}

.closeWorkSummaryModal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-left: auto;
    cursor: pointer;
}

.closeWorkSummaryModal:hover,
.closeWorkSummaryModal:focus {
    color: black;
    text-decoration: none;
}

.modal-reason-content.with-worksummary {
    width: 40%;
    height: auto;
}

.modal-reason-content .work-summary-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.modal-reason-content .work-summary-section label {
    font-family: Mulish;
    font-size: 14px;
    font-weight: 600;
    color: #2F1C6A;
    margin-bottom: 8px;
    display: block;
}

.modal-reason-content .work-summary-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: Mulish;
    font-size: 13px;
    resize: vertical;
}

.modal-worksummary-content .modal-time-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#ModalEditWorkSummary .modal-time-row,
#ModalViewWorkSummary .modal-time-row {
    margin-top: 10px;
}

.modal-worksummary-content .time-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-worksummary-content .time-field-group label {
    font-family: Mulish;
    font-size: 14px;
    font-weight: 600;
    color: #2F1C6A;
    margin-bottom: 5px;
}

.modal-worksummary-content .time-field-group input[type="time"] {
    padding: 10px;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: Mulish;
    font-size: 14px;
    color: #36344D;
    background-color: white;
}

.modal-worksummary-content .time-field-group input[type="time"]:focus {
    outline: none;
    border-color: #356BD4;
    box-shadow: 0 0 0 2px rgba(53, 107, 212, 0.1);
}

.modal-project-task-row {
    margin-bottom: 10px;
}

.modal-project-task-row .modal-input-group {
    display: flex;
    flex-direction: column;
}

.modal-project-task-row .modal-input-group label {
    font-family: Mulish;
    font-size: 14px;
    font-weight: 600;
    color: #2F1C6A;
    margin-bottom: 5px;
}

.modal-project-task-row .modal-input-group select {
    padding: 10px;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: Mulish;
    font-size: 14px;
    color: #36344D;
    background-color: white;
}

.modal-project-task-row .modal-input-group input[type='text']:disabled {
    padding: 10px;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: Mulish;
    font-size: 14px;
    color: #36344D;
    background-color: white;
}

.modal-type-of-work {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-type-of-work label {
    font-family: Mulish;
    font-size: 14px;
    font-weight: 600;
    color: #2F1C6A;
    margin-bottom: 5px;
    flex: 1 1 70%;
}

.modal-type-of-work .work-type-options {
    flex: 1 1 20%;
    text-wrap: nowrap;
}

@media (max-width: 768px) {
    .modal-worksummary-content {
        width: 90%;
        margin-top: 10%;
        padding: 15px;
    }

    .modal-worksummary-content .modal-second-row .text1 {
        font-size: 16px;
    }

    .modal-worksummary-content .modal-second-row .text2 {
        font-size: 13px;
    }

    .modal-worksummary-content .modal-time-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .modal-worksummary-content {
        width: 95%;
        margin-top: 15%;
        border: 3px solid #E3E3E3;
    }

    .btnWorkSummary {
        width: 100px;
        height: 35px;
        font-size: 12px;
    }

    .modal-reason-content.with-worksummary {
        width: 95%;
    }
}