@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 Title (Table styles removed to use global approval.css) --- */
.table-title {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    color: #000000;
    margin-bottom: 1rem;
}

/* Status Badges - Scoped to approval-table or generic */
.approval-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;
}

.approval-table .status .status-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

.approval-table .status i {
    display: none;
}
.approval-table .status-draft { background: #ECF2FF; color: #007AFF; }
.approval-table .status-pending { background: #FFF7E7; color: #FFA800; }
.approval-table .status-approve { background: #DEFFF6; color: #00B151; }
.approval-table .status-rejected { background: #FFE4E4; color: #FF2D55; }

/* Action Buttons */
.approval-table .action-cell {
    align-items: center;
    width: 90px;
    text-wrap-mode: nowrap;
}
.approval-table .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
}
.approval-table .action-btn:hover { opacity: 0.7; }
.approval-table .action-btn .fa-eye,
.approval-table .action-btn .fa-pen-to-square { color: #2F1C6A; }
.approval-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 - Modernized Design */

.modalWorkSummary {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-worksummary-content {
    background: #FFFFFF;
    margin: 40px auto;
    padding: 32px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 600px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Mulish', sans-serif;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.modal-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-family: 'Mulish', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}

.closeWorkSummaryModal {
    font-size: 24px;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.closeWorkSummaryModal:hover {
    color: #111827;
    background-color: #F3F4F6;
    transform: rotate(90deg);
}

/* Date Display */
.modal-date-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    background: #F3F4F6;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #E5E7EB;
}

.modal-date-row img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.modal-date-row .text1 {
    margin: 0 !important;
    line-height: 1;
}

/* Greeting Text */
.modal-worksummary-content .modal-second-row {
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(to bottom, #F9FAFB, #FFFFFF);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
}

.modal-worksummary-content .modal-second-row .text1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.modal-worksummary-content .modal-second-row .text2 {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Rejected Reason */
.rejected-reason-row {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rejected-reason-row .title {
    color: #991B1B;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
}

.rejected-reason-row .reason {
    color: #7F1D1D;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 !important;
}

/* Form Layout */
.modal-time-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.time-field-group, .modal-input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.modal-project-task-row {
    margin-bottom: 24px;
}

.modal-third-row {
    margin-bottom: 24px;
}

/* Labels */
label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* Inputs */
input[type="time"] {
    cursor: pointer;
}

input[type="time"],
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Mulish', sans-serif;
    color: #111827;
    background-color: #F9FAFB;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3F80FF;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(63, 128, 255, 0.15);
    transform: translateY(-1px);
}

input:hover, select:hover, textarea:hover {
    border-color: #D1D5DB;
    background-color: #FFFFFF;
}

input:disabled, select:disabled, textarea:disabled {
    background-color: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
    box-shadow: none;
    transform: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Type of Work - Pills */
.modal-type-of-work {
    margin-bottom: 32px;
}

.work-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.work-type-options input[type="radio"] {
    display: none;
}

.work-type-options label {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    user-select: none;
    flex: none;
}

.work-type-options label:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-1px);
}

.work-type-options input[type="radio"]:checked + label {
    background-color: #EFF6FF;
    border-color: #3F80FF;
    color: #3F80FF;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(63, 128, 255, 0.2);
    transform: translateY(-1px);
}

.work-type-options input[type="radio"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #F3F4F6;
    border-color: #E5E7EB;
    color: #9CA3AF;
    transform: none;
    box-shadow: none;
}

/* Footer Buttons */
.modal-fourth-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid #F3F4F6;
}

.btnWorkSummary {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Mulish', sans-serif;
}

/* Cancel Button */
.btnWorkSummary:nth-child(1) {
    background-color: transparent;
    color: #6B7280;
    border: 1px solid transparent;
}

.btnWorkSummary:nth-child(1):hover {
    background-color: #F3F4F6;
    color: #111827;
}

/* Save Button (Middle) */
.btnWorkSummary:nth-child(2) {
    background-color: #FFFFFF;
    color: #3F80FF;
    border: 1px solid #3F80FF;
}

.btnWorkSummary:nth-child(2):hover {
    background-color: #EFF6FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(63, 128, 255, 0.1);
}

/* Submit Button (Last) */
.btnWorkSummary:last-child {
    background-color: #3F80FF;
    color: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(63, 128, 255, 0.25);
}

.btnWorkSummary:last-child:hover {
    background-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(63, 128, 255, 0.4);
}

.btnWorkSummary:active {
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-worksummary-content {
        width: 90%;
        margin: 10px auto;
        padding: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-time-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .modal-fourth-row {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .btnWorkSummary {
        width: 100%;
    }
}
