﻿/* ================= GENERAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    align-items: flex-start; /* Start from top for better scroll */
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scrolling */
}
/* ================= PAGE BACKGROUND ================= */
.emp-login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=100&w=3840&auto=format&fit=crop") no-repeat center center/cover;
}

    .emp-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.2);
        backdrop-filter: blur(2px);
        z-index: 0;
    }

/* ================= MAIN WRAPPER ================= */
.emp-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    min-height: 90vh;
    display: flex;
    border-radius: 30px 0px 0px 30px;
    overflow: hidden;
    gap: 50px;
   /* background: rgba(255,255,255,0.05);*/
}

/* LEFT SIDE EMPTY */
.emp-left {
    flex: 1;
}

/* RIGHT SIDE GLASS EFFECT */
.emp-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px 0px 0px 30px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ================= LOGIN BOX ================= */
.emp-login-box {
    width: 100%;
    max-width: 420px;
    color: #222;
}

.emp-logo {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
    display: flex;
    align-items: center;
}

    .emp-logo img {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

.emp-subtitle {
    font-size: 14px;
    color: #ffeb60;
    margin-bottom: 30px;
}

/* ================= TABS ================= */
.emp-tabs {
    display: flex;
    margin-bottom: 25px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.2);
}

    .emp-tabs button {
        flex: 1;
        padding: 12px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 14px;
        transition: 0.3s;
    }

    .emp-tabs .active {
        background: #1e3c72;
        color: white;
    }

/* ================= FORMS ================= */
.emp-input-group {
    margin-bottom: 18px;
}

    .emp-input-group input {
        width: 100%;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.2);
        background: rgba(255,255,255,0.6);
        outline: none;
        font-size: 14px;
    }

        .emp-input-group input:focus {
            border-color: #4c7dff;
        }

    .emp-input-group select {
        width: 100%;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.2);
        background: rgba(255,255,255,0.6);
        font-size: 14px;
        outline: none;
    }

        .emp-input-group select:focus {
            border-color: #4c7dff;
        }

    /* ======== Responsive Scaling Added ======== */
    .emp-input-group input,
    .emp-input-group select {
        padding: clamp(10px, 2vw, 14px);
        font-size: clamp(13px, 1.5vw, 14px);
        border-radius: clamp(8px, 2vw, 12px);
    }

.emp-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

    .emp-options a {
        color: #e5e5e5;
        text-decoration: none;
    }

    .emp-options label {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #e3e3e3;
        font-weight: 600;
    }

.emp-login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #1e3c72;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .emp-login-btn:hover {
        background: #2f6fed;
    }

.emp-otp-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #212121;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

    .emp-otp-btn:hover {
        background: #5a6268;
    }

.emp-register-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #0e243a;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

    .emp-register-btn:hover {
        background: #157347;
    }
/* Logout button */
.emp-logout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    background: linear-gradient(135deg, #ff4d4d, #d63031);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    /* icon spacing */
    .emp-logout i {
        font-size: 14px;
    }

    /* hover effect */
    .emp-logout:hover {
        background: linear-gradient(135deg,#ff6b6b,#e03131);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* click effect */
    .emp-logout:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    }

/* mobile responsive */
@media (max-width:576px) {
    .emp-logout {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ======== Responsive Button Scaling Added ======== */
.emp-login-btn,
.emp-otp-btn,
.emp-register-btn {
    padding: clamp(10px, 2vw, 14px);
    font-size: clamp(13px, 1.5vw, 15px);
}

.form-section {
    display: none;
}

    .form-section.active {
        display: block;
    }


/* Sidebar */
.emp-sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg,#0B1C2D,#0F2740);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    padding: 22px 15px;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, transform 0.25s ease;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}

    /* Desktop collapse */
    .emp-sidebar.emp-collapsed {
        width: 80px;
    }

    /* Mobile hide */
    .emp-sidebar.emp-mobile-hide {
        transform: translateX(-100%);
    }

    .emp-sidebar.emp-collapsed .emp-menu a {
        flex-direction: column; /* Stack icon + text */
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 14px 5px;
    }
    /* Show text in collapsed mode */
    .emp-sidebar.emp-collapsed .emp-text {
        display: block !important;
        font-size: 11px;
        line-height: 1.2;
    }

    /* Adjust icon size */
    .emp-sidebar.emp-collapsed .emp-menu a i {
        font-size: 18px;
    }

    /* Remove submenu indentation */
    .emp-sidebar.emp-collapsed .emp-submenu {
        padding-left: 0;
    }
    /* Hide only logo text when collapsed */
    .emp-sidebar.emp-collapsed .emp-logo-text {
        display: none;
    }
/* Logo */
.emp-dashboardlogo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.emp-logo-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emp-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #318346;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    /*box-shadow: 0 2px 10px #276537;*/
}

.emp-logo-text {
    font-weight: 600;
    font-size: 16px;
}

/* Menu */
.emp-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.25s ease;
    margin-bottom: 8px;
}

    .emp-menu a:hover {
        background: #13293d;
        color: #fff;
    }

 

/* Submenu */
.emp-submenu {
    padding-left: 40px;
}

    .emp-submenu a {
        font-size: 13px;
    }


/* Overlay */
.emp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 998;
}

    .emp-overlay.emp-show {
        display: block;
    }



.content-box {
    padding: 25px;
    min-height: calc(100vh - 70px);
    background: #f4f6f9;
}
/* When sidebar collapsed */
.emp-sidebar.emp-collapsed ~ .content-box {
    margin-left: 80px;
}

.emp-main {
    margin-left: 260px;
    transition: margin-left 0.25s ease;
}
.emp-sidebar.emp-collapsed ~ .emp-main {
    margin-left: 80px;
}
.emp-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 500;
    background-color: #318346;
}
.emp-header-left,
.emp-header-center,
.emp-header-right {
    display: flex;
    align-items: center;
}

.emp-header-left i {
    font-size: 18px;
    cursor: pointer;
    color: #fff;
}

/* Center wrapper */
.emp-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Search Container */
.emp-search-box {
    display: flex;
    align-items: center;
    width: 420px;
    max-width: 100%;
    background: #f1f1f1;
    border-radius: 40px;
    padding: 2px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Search icon (left) */
.emp-search-icon {
    color: #8a8a8a;
    font-size: 14px;
    margin-left: 10px;
    margin-right: 8px;
}


/* Input */
.emp-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    padding: 4px;
    color: #101010;
}

/* Mic button (right circle) */
.emp-mic-btn {
    width: 25px;
    height: 25px;
    background: #318346;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .emp-mic-btn i {
        color: white;
        font-size: 13px;
    }

.emp-header-right i {
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}


/*Dashboard Design*/
.empdashboardheading {
    background: #ffffff;
    padding: 10px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #dbdbdb;
}

/* Top row layout */
.emp-heading-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Title */
.empdashboardheading h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #0e243b;
    margin-bottom: 5px;
}

    .empdashboardheading h4 i {
        color: #4c7dff;
    }
.emp-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    background: #318346;
}
/* Breadcrumb */
.emp-breadcrumb {
    font-size: 13px;
    color: #888;
}

.emp-breadcrumb-separator {
    margin: 0 6px;
}

.emp-breadcrumb-active {
    color: #0046ad;
    font-weight: 500;
}

/* Welcome message */
.emp-welcome {
    font-size: 14px;
    color: #555;
}

    .emp-welcome strong {
        color: #0046ad;
    }

/* Section spacing */
.emp-dashboard-section {
    margin-top: 20px;
}

/* Profile Card */
.emp-profile-card {
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    height: 100%;
    border: 1px solid #dbdbdb;
}

    .emp-profile-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    }

/* Profile Layout */
.emp-profile-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Image */
.emp-profile-image-wrapper {
    position: relative;
}

.emp-profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #046f1f;
}

/* Status Badge */
.emp-status-badge {
    position: absolute;
    bottom: -12px;
    right: 22px;
    padding: 4px 12px;
    font-size: 10px;
    border-radius: 18px;
    font-weight: 800;
    color: #318346;
}

    .emp-status-badge.active {
        background: #caf1d4;
    }

    .emp-status-badge.leave {
        background: #f59e0b;
    }

/* Text */
.emp-profile-name {
    margin: 0;
    font-weight: 600;
    color: #0046ad;
    font-size: 18px;
}

.emp-profile-designation {
    color: #0d2034;
    margin-top: 5px;
}

/* Details */
.emp-profile-details {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emp-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px;
    background: #e3e3e3;
    border-radius: 12px;
    font-size: 14px;
}

/* Graph Card */
.emp-graph-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    height: 100%;
    border: 1px solid #dbdbdb;
}

    .emp-graph-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    }

.emp-graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .emp-graph-header h5 {
        margin: 0;
        font-weight: 600;
        color: #0c1e30;
        text-decoration: underline;
    }

.emp-graph-subtitle {
    font-size: 13px;
    color: #003f51;
    font-weight: 500;
}

.emp-graph-body {
    position: relative;
    width: 100%;
    height: 320px;
}
    .emp-graph-body canvas {
        width: 100% !important;
        height: 100% !important;
    }

/* Leave Bar */
.emp-leave-bar {
    background: #ffffff;
    padding: 10px 25px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
    border: 1px solid #dbdbdb;
}

/* Wrapper */
.emp-leave-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Title */
.emp-leave-title {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    font-weight: 600;
    font-size: clamp(13px, 2vw, 16px);
    color: #1f4e79;
}

    .emp-leave-title i {
        color: #fff;
        padding: 8px;
        border-radius: 8px;
        font-size: 14px;
        background: #318346;
    }

/* Dropdown */
.emp-leave-dropdown {
    position: relative;
}

/* Button */
.emp-leave-btn {
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    background-color: #0e253c;
}

    .emp-leave-btn:hover {
        background-color: #318346;
        box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    }

/* Badge */
.emp-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 0px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 5px;
}

/* Dropdown Menu */
.emp-leave-menu {
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

    /* Active */
    .emp-leave-menu.emp-show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Links */
    .emp-leave-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 18px;
        font-size: 14px;
        text-decoration: none;
        color: #333;
        transition: 0.2s ease;
    }

        .emp-leave-menu a:hover {
            background: #f4f7f9;
            color: #1f4e79;
        }

/* ===== EMP MODAL DESIGN ===== */

.emp-leave-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    animation: empFadeIn 0.3s ease-in-out;
}

.emp-modal-dialog {
    max-width: 400px;
    width: 95%;
    margin: 1rem auto;
}
.emp-balance-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Header */

/* Centered input field */
#Fltr_date {
    width: 100%; /* Ensure the input takes full width of the container */
    max-width: 200px; /* You can set the max width for the input */
    margin: 0 auto;
    height: 35px;
    font-size: 14px;
}


/* Body */
.emp-modal-body {
    padding: 20px 25px;
    background: #f8f9fa;
}

/* Form Group */
.emp-form-group {
    margin-bottom: 15px;
    flex: 1;
}

    .emp-form-group label {
        font-weight: 500;
        margin-bottom: 5px;
        display: block;
        color: #333;
    }

/* Input Design */
.emp-form-control {
    width: 100%;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: 0.3s;
    font-size: 13px;
}

    .emp-form-control:focus {
        border-color: #2a5298;
        box-shadow: 0 0 0 2px rgba(42,82,152,0.2);
        outline: none;
    }

/* Submit Button */
.emp-submit-btn {
    width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    font-weight: 600;
    transition: 0.3s;
    font-size: 13px;
}

    .emp-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }



.emp-cl-badge {
    background: #318346;
    color: white;
}

.emp-el-badge {
    background: #ffc107;
    color: #000;
}

/* Animation */
@keyframes empFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/*Employee Attendance Css*/
.empattendancecheck-container {
    background: #ededed;
    border-radius: 8px;
    padding: 10px 10px 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
    border: 1px solid #9d9d9d;
}

/* ===== Label ===== */

.empattendancecheck-label {
    font-weight: 600;
    margin-right: 15px;
    color: #1c1c1c;
}

/* ===== View Type ===== */

.empattendancecheck-viewtype {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* ===== Checkbox Option ===== */

.empattendancecheck-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
}

    .empattendancecheck-option input {
        width: 16px;
        height: 16px;
        accent-color: #2f7d3d;
    }

/* ===== User Selection ===== */

.empattendancecheck-users {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* ===== User List ===== */

.empattendancecheck-userlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== User Item ===== */


.empattendancecheck-useritem input {
    accent-color: #2f7d3d;
}




/* ===== Status Colors ===== */

.empattendancecheck-status-present {
    color: #239b42;
    font-weight: 600;
}

.empattendancecheck-status-absent {
    color: #ff4f60;
    font-weight: 600;
}

.empattendancecheck-status-off {
    color: #3498db;
    font-weight: 600;
}
/* Dropdown Container */

.empattendancecheck-dropdown {
    position: relative;
    width: 260px;
}

/* Dropdown Button */

.empattendancecheck-dropdown-toggle {
    border: 1px solid #dcdcdc;
    padding: 2px 10px;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-size: 12px;
    width: 100%;
}

/* Dropdown Menu */

.empattendancecheck-dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

    /* Show dropdown */

    .empattendancecheck-dropdown-menu.active {
        display: block;
    }

/* User Item */

.empattendancecheck-useritem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    cursor: pointer;
}

    .empattendancecheck-useritem:hover {
        background: #f5f7fa;
    }

    .empattendancecheck-useritem input {
        accent-color: #2f7d3d;
    }

.empattendancecheck-container {
    display: none;
}

.emp-bar {
    background: #ffffff;
    padding: 6px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 6px 9px rgb(0 0 0 / 16%);
    border: 1px solid #d7d7d7;
}

.emp-main-title {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    font-weight: 600;
    font-size: clamp(13px, 2vw, 16px);
    color: #1f4e79;
}

    .emp-main-title i {
        color: #fff;
        padding: 6px;
        border-radius: 8px;
        font-size: 12px;
        background: #318346;
    }

.load-btn {
    background-color: #0089ff;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .load-btn:hover {
        background-color: #45a049; /* Darker green on hover */
        transform: translateY(-2px); /* Lift button slightly */
        box-shadow: 0 6px 10px rgba(0,0,0,0.15); /* Bigger shadow */
    }

    .load-btn:active {
        transform: translateY(0); /* Reset on click */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

.timesheettasklist-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

    .timesheettasklist-table th {
        padding: 8px 14px;
        text-align: left;
        border-bottom: 1px solid #0e243a;
        font-size: 14px;
    }

    .timesheettasklist-table td {
        padding: 6px 10px;
        text-align: left;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

    .timesheettasklist-table th {
        background: #cfcfcf;
        color: #0e243a;
        font-weight: 600;
    }

    .timesheettasklist-table tr:hover {
        background: #f9fbff;
    }

.present-cell {
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
}

.absent-cell {
    background-color: #F44336;
    color: #fff;
    text-align: center;
}

.leave-cell {
    background-color: #FFEB3B;
    color: #000;
    text-align: center;
}

.default-cell {
    background-color: #E0E0E0;
    text-align: center;
}

.offday-cell {
    background-color: #9ccbff; /* same as calendar */
    color: #000;
    text-align: center;
}
/*Employee attendance css ends here*/


/*Employee Leave Approval List Start Here*/

/* ====================== Buttons ====================== */
.manageleave-back-btn {
    background-color: #0e243a;
    color: #cbd5e1;
    padding: 4px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

    .manageleave-back-btn:hover {
        background-color: #45a049;
        color: white;
    }

    .manageleave-back-btn i {
        margin-right: 10px;
    }

.manageleave-save-btn {
    background-color: #d2ffde;
    color: #318346;
    padding: 4px 6px;
    border: 1px solid #93c7a1;
    border-radius: 50px;
    font-size: 13px;
    margin-right: 5px;
}

    .manageleave-save-btn:hover {
        background-color: #318346;
        color: #fff;
        border: 1px solid #318346;
    }

.manageleave-delete-btn {
    background-color: #ffdee1;
    color: #dc3545;
    padding: 4px 8px;
    border: 1px solid #dc3545;
    border-radius: 50px;
    font-size: 13px;
}

    .manageleave-delete-btn:hover {
        background-color: #dc3545;
        color: #fff;
        border: 1px solid #dc3545;
    }

/* ====================== Wrapper ====================== */


.manageleave-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
}

/* ====================== Header ====================== */
.manageleave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.manageleave-title {
    font-size: 20px;
    font-weight: 600;
    color: #0e243a;
}

/* ====================== Search ====================== */
.manageleave-search {
    position: relative;
}

    .manageleave-search i {
        position: absolute;
        top: 50%;
        left: 8px;
        transform: translateY(-50%);
        color: #888;
        font-size: 14px;
    }

    .manageleave-search input {
        padding: 2px 10px 2px 28px;
        width: 250px;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 14px;
    }



/* ====================== Status Dropdown ====================== */
.manageleave-status-select {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ====================== Pagination ====================== */
.manageleave-pagination {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

    .manageleave-pagination button {
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid #ccc;
        cursor: pointer;
    }

        .manageleave-pagination button.active {
            background-color: #1f4e79;
            color: white;
            border: 1px solid #1f4e79;
        }

/*Employee Leave Approval List End Here*/

/*Employee Login Start Here*/

/* Modal Overlay */
.emp-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .emp-modal.d-none {
        display: none;
    }

.emp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 0;
}

/* Modal Content */
.modal {
    overflow-x: hidden;
    overflow-y: hidden;
}
.emp-modal-reset {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    right: 420px;
    padding: 0;
    z-index: 1;
    animation: empFadeIn 0.3s ease-in-out;
}

.emp-modal-content {
    position: relative;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    padding: 0;
    z-index: 1;
    animation: empFadeIn 0.3s ease-in-out;
    margin: auto;
}

/* Header */
.emp-modal-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.emp-modal-title {
    font-weight: 600;
    margin: 0;
}

.emp-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

    .emp-close-btn:hover {
        background: #fff;
        color: #2a5298;
    }

/* Body */
.emp-modal-body {
    padding: 18px;
}

/* Form */
.emp-form-group {
    margin-bottom: 15px;
}

.emp-form-control {
    width: 100%;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

    .emp-form-control:focus {
        border-color: #2a5298;
        box-shadow: 0 0 0 2px rgba(42,82,152,0.2);
    }

/* Button */
.emp-submit-btn {
    width: 100%;
    padding: 7px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .emp-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

/*Employee Login End Here*/


/*Employee Dashboard Start Here*/
/* Leave Approval Button */
.emp-approval-btn {
    background-color: #1E88E5;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    transition: background-color 0.3s ease;
}

    .emp-approval-btn:hover {
        background-color: #1565C0;
    }

    .emp-approval-btn i {
        margin-right: 5px; /* if you want to add an icon */
    }
/* Flex container for buttons */
.emp-leave-buttons {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between buttons */
}

/* Leave Type Badge */

.leave-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Leave Types */

.leavehistory-earned {
    background: #e6f7ee;
    color: #16a34a;
}

.leavehistory-casual {
    background: #e8f2ff;
    color: #2563eb;
}

.leavehistory-earn {
    background: #fff7e6;
    color: #d97706;
}

.leavehistory-lwp {
    background: #ffe8e8;
    color: #dc2626;
}


/* Status Badge */

.leave-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Status Colors */

.leavehistory-pending {
    background: #fff0c7;
    color: #ff7804;
    border: 1px solid #fbac67;
}

.leavehistory-approved {
    background: #e7f8ef;
    color: #15803d;
    border: 1px solid #56ad77;
}

.leavehistory-rejected {
    background: #ffe7e7;
    color: #dc2626;
    border: 1px solid #d98787;
}

.leavehistory-default {
    background: #fff0c7;
    color: #ff7804;
    border: 1px solid #fbac67;
}
/* Days Column */

.leave-days {
    text-align: center;
    font-weight: 600;
    color: #374151;
}

/* Action Icon */

.leave-edit-btn {
    font-size: 16px;
    color: #16a34a;
    cursor: pointer;
    transition: 0.25s;
}

    .leave-edit-btn:hover {
        transform: scale(1.15);
        color: #15803d;
    }

/* Table improvements */

.emp-history-table td {
    vertical-align: middle;
    padding: 10px 12px;
}

.emp-history-table tr:hover {
    background: #f8fafc;
    transition: 0.2s;
}

select.form-control {
    font-size: 12px;
    padding: 2px 5px;
    border: none !important;
    border-radius: 3px !important;
    height: 25px !important;
}

.editing-row {
    background-color: #fff3cd;
}
/*Employee dashboard end here*/

/*Timesheet Dashboard Start Here*/
/* ===== GLASS CONTAINER ===== */
.glass-activities {
    padding: 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    border: 1px solid #bcbcbc;
    background-color: #e9e9e9;
}

/* HEADER */
.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 🔥 allows wrapping */
}

    .recent-header h3 {
        font-weight: 600;
        font-size: 24px;
        margin-left: 6px;
        color: #006119;
        text-decoration: underline;
    }
/* FILTER BUTTONS */
.recent-filters {
    display: flex;
    gap: 10px;
    padding: 4px 10px;
    border: 1px solid #318346;
    border-radius: 30px;
}


    .filter-btn.active {
        background: linear-gradient(45deg, #0e243b, #318346);
        color: white;
    }

    .filter-btn:hover {
        transform: translateY(-2px);
    }

/* ===== TIMELINE ===== */
.recent-timeline {
    position: relative;
    padding-left: 20px;
}

    /* Animated gradient line */
    .recent-timeline::before {
        content: "";
        position: absolute;
        left: 5px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient( 180deg, #3b82f6, #9333ea, #10b981, #3b82f6 );
        background-size: 100% 300%;
        border-radius: 10px;
    }



/* ITEM */
.recent-item {
    margin-bottom: 25px;
}

/* CARD */
.recent-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    padding: 8px 14px;
    margin-left: 5px;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #d4d4d4;
}

    .recent-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(0,0,0,0.15);
    }

/* TOP SECTION */
.recent-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid white;
}

/* TEXT */
.recent-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.recent-user-name {
    font-size: 12px;
    color: #6b7280;
}

.recent-bottom {
    margin-top: 8px;
    font-size: 12px;
    color: #318346;
}

/* BADGES */
.recent-badge {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
}

.created-badge {
    background: linear-gradient(45deg, #3b82f6, #6366f1);
}

.completed-badge {
    background: linear-gradient(45deg, #10b981, #059669);
}

.task-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* 30% Left */
.task-id-section {
    width: 30%;
}

/* 70% Right */
.task-title-section {
    width: 70%;
}

.task-title-form {
    width: 50%;
}

/* Button Section */
.timesheet-buttons {
    display: flex;
    justify-content: end; /* IMPORTANT */
    align-items: center;
    margin-bottom: 30px;
    width: 100%; /* Ensures the container stretches across the entire width */
    gap: 15px; /* Spacing between buttons */
    flex-wrap: nowrap; /* ❌ stop wrapping */
    overflow-x: auto; /* ✅ allow horizontal scroll */
    -webkit-overflow-scrolling: touch;
}

    .timesheet-buttons > .timesheetbtn-icon {
        flex: 0 0 auto;
    }

    .timesheet-buttons::-webkit-scrollbar {
        height: 6px;
    }

    .timesheet-buttons::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }
/* Button with Icon + Text */
.timesheetbtn-icon {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #a1a1a1;
    border-radius: 25px; /* Rounded corners */
    padding: 5px 16px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    flex: 0 0 auto; /* 🔥 prevents shrinking */
    white-space: nowrap;
}

    .timesheetbtn-icon:hover {
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        color: #4caf50;
        border: 1px solid #4caf50;
    }

    .timesheetbtn-icon i {
        color: #4caf50;
        margin-right: 10px; /* Spacing between icon and text */
    }

    .timesheetbtn-icon span {
        font-weight: 600;
    }



/* Timesheet Dashboard Styles */
.timesheet-dashboard {
    background-color: #f4f7fa;
    font-family: 'Arial', sans-serif;
}

/* Card Section */
.timesheet-cards .tcard:hover {
    transform: translateY(-5px) scale(1.02);
}

.timesheet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 🔥 KEY FIX */
    gap: 20px;
    margin-bottom: 25px;
}

    .timesheet-cards .tcard {
        background: linear-gradient(135deg, #0c2034, #163a5c, #1f4e7a);
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: box-shadow 0.3s ease;
        position: relative;
        border: 1px solid #d2d2d2;
        cursor: pointer;
        min-height: 120px; /* keeps consistency */
    }

        .timesheet-cards .tcard:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

.theading {
    color: #ffffff;
    font-size: 18px;
    margin-top: 10px;
}

.tp1 {
    font-size: 22px;
    font-weight: bold;
    color: #64e5f3;
    margin-bottom: 0px;
}

.tp2 {
    font-size: 22px;
    font-weight: bold;
    color: #4caf50;
    margin-bottom: 0px;
}

.tp3 {
    font-size: 22px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 0px;
}

.tp4 {
    font-size: 22px;
    font-weight: bold;
    color: #ff9b00;
    margin-bottom: 0px;
}
/* Circle Icon Styling */
.timesheetcard-icon1,
.timesheetcard-icon2,
.timesheetcard-icon3,
.timesheetcard-icon4 {
    width: 38px;
    height: 38px;
    top: -18px;
}

.timesheetcard-icon1 {
    width: 35px;
    height: 35px;
    background-color: #64e5f3;
    border: 1px solid #00c4d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    box-shadow: 0px 4px 8px rgb(0 0 0 / 30%);
}

.timesheetcard-icon2 {
    width: 35px;
    height: 35px;
    background-color: #4caf50;
    border: 1px solid #009106;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    box-shadow: 0px 4px 8px rgb(0 0 0 / 30%);
}

.timesheetcard-icon3 {
    width: 35px;
    height: 35px;
    background-color: #dc3545;
    border: 1px solid #c90013;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    box-shadow: 0px 4px 8px rgb(0 0 0 / 30%);
}

.timesheetcard-icon4 {
    width: 35px;
    height: 35px;
    background-color: #ff9b00;
    border: 1px solid #c97c05;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    box-shadow: 0px 4px 8px rgb(0 0 0 / 30%);
}

/* Color Variations for Cards */
.tcard-1 {
    background-color: #4CAF50;
}
/* Green */
.tcard-2 {
    background-color: #FF9800;
}
/* Orange */
.tcard-3 {
    background-color: #2196F3;
}
/* Blue */
.tcard-4 {
    background-color: #F44336;
}
/* Red */

/* Icons inside circles */
.timesheetcard-icon1 i {
    font-size: 16px;
    color: #fff;
}

.timesheetcard-icon2 i {
    font-size: 16px;
    color: #fff;
}

.timesheetcard-icon3 i {
    font-size: 16px;
    color: #fff;
}

.timesheetcard-icon4 i {
    font-size: 16px;
    color: #fff;
}

/* Task Overview Section */
.task-overview {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #d9d9d9;
}

    .task-overview h3 {
        color: #333;
        font-size: 20px;
        margin-bottom: 20px;
        font-weight: 600;
    }



/* ================= MODAL ================= */
.task-modal {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.25);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ================= CARD ================= */
.task-card {
    width: 450px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    animation: slideUp 0.35s ease;
    backdrop-filter: blur(18px);
    max-height: 90vh;
    overflow-y: auto;
}

/* ================= HEADER ================= */
.task-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

    .task-header i {
        color: #2f6fed;
        font-size: 16px;
        cursor: pointer;
    }

    .task-header h3 {
        flex: 1;
        text-align: center;
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        color: #033e7d;
    }

/* ================= LABEL ================= */
.task-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #3e4b6d;
    margin-bottom: 6px;
    display: block;
}

/* ================= INPUTS ================= */
.task-input,
.task-select,
.task-textarea {
    width: 100%;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #dce3ef;
    background: #f8fafd;
    font-size: 13px;
    margin-bottom: 14px;
    outline: none;
    transition: 0.2s;
    color: #181818;
}

    .task-input:focus,
    .task-textarea:focus,
    .task-select:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 2px rgba(47,111,237,0.15);
    }

.task-textarea {
    resize: none;
    height: 65px;
}

/* ================= PRIORITY ================= */
.priority-group {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.priority-btn {
    flex: 1;
    padding: 7px;
    border-radius: 10px;
    border: 1px solid #dce3ef;
    background: #f8fafd;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s;
    gap: 6px; /* spacing between icon & text */
}

    .priority-btn.active {
        background: #E8F0FF;
        border-color: #2f6fed;
        color: #2f6fed;
        font-weight: 600;
    }

    .priority-btn:nth-child(1) i {
        color: #e74c3c;
    }
    /* High - Red */
    .priority-btn:nth-child(2) i {
        color: #f39c12;
    }
    /* Medium - Orange */
    .priority-btn:nth-child(3) i {
        color: #27ae60;
    }
/* Low - Green */
/* ================= DATE ================= */
.date-wrapper {
    position: relative;
    margin-bottom: 14px;
}

    .date-wrapper i {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #8da2c3;
        pointer-events: none;
    }

    .date-wrapper input {
        padding-right: 18px;
    }

/* ================= UPLOAD ================= */
.upload-box {
    border: 1px dashed #dce3ef;
    padding: 11px;
    border-radius: 10px;
    background: #f8fafd;
    font-size: 13px;
    color: #2f6fed;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* File List */
.file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-item {
    background: #f1f4fa;
    border: 1px solid #dce3ef;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .file-item i {
        color: #e74c3c;
        cursor: pointer;
        font-size: 12px;
    }

/* ================= FOOTER ================= */
.task-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.create-btn {
    flex: 1;
    background: #2f6fed;
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(47,111,237,0.35);
    cursor: pointer;
}

    .create-btn:hover {
        background: #1f5ae0; /* slightly darker */
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(47,111,237,0.45);
    }

.cancel-btn {
    flex: 1;
    background: #F1F3F7;
    border: 1px solid #ff2b2b;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    color: #ff2b2b;
    padding: 8px 12px;
}

    .cancel-btn:hover {
        background: #ff2b2b; /* soft red background */
        border-color: #ff2b2b;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255,43,43,0.15);
    }
/*Timesheet dashboard end here*/
.btn-reply {
    background: #318346;
    color: white;
    border: none;
    padding: 2px 14px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: 0 10px 25px rgb(49 131 70 / 37%);
}

    .btn-reply:hover {
        background: #fff;
        color: #318346;
        border: 1px solid #318346;
        padding: 2px 14px;
        border-radius: 12px;
        font-size: 13px;
        box-shadow: 0 10px 25px rgb(49 131 70 / 37%);
    }

.back-btn {
    background-color: #0e243a;
    color: #cbd5e1;
    padding: 4px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

    .back-btn:hover {
        background-color: #45a049;
        color: white;
    }

    .back-btn i {
        margin-right: 10px;
    }
/* Main container for the date filter */
.date-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0px;
}

    /* Label styling */
    .date-filter label {
        font-family: 'Arial', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }

/* Date input styling */
.date-input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    width: 150px;
    transition: border-color 0.3s ease;
}

    /* Hover effect for inputs */
    .date-input:hover {
        border-color: #007bff;
    }

/* Button styling */
.filter-btn {
    padding: 4px 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    /* Button hover effect */
    .filter-btn:hover {
        background-color: #0056b3;
    }

.reply-input {
    width: 100%;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #dce3ef;
    background: #f8fafd;
    font-size: 13px;
    margin-bottom: 14px;
    outline: none;
    transition: 0.2s;
}

.reply-history-table tr {
    background-color: #151515;
}

.reply-history-table th {
    width: 100px;
    font-size: 14px;
    padding: 6px 12px;
}

.reply-cancel {
    flex: 1;
    background: #F1F3F7;
    border: 1px solid #dce3ef;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 14px;
    color: #ff2b2b;
    padding: 8px;
}

.btn_task_View {
    color: #318346;
    background-color: #bdffce;
    border: 1px solid #318346;
    border-radius: 7px;
    padding: 2px 6px;
    font-size: 13px;
}

    .btn_task_View:hover {
        color: #fff;
        background-color: #318346;
        border: 1px solid #318346;
        border-radius: 7px;
        padding: 2px 6px;
        font-size: 13px;
    }

.btn_task_Delete {
    color: #dc3545;
    background-color: #ffe5e7;
    border: 1px solid #dc3545;
    border-radius: 7px;
    padding: 2px 6px;
    font-size: 13px;
}

    .btn_task_Delete:hover {
        color: #fff;
        background-color: #dc3545;
        border: 1px solid #dc3545;
        border-radius: 7px;
        padding: 2px 6px;
        font-size: 13px;
    }

     
/*Timesheet Reply Task List Start here*/



/*Timesheet Reply Task List end here*/
/* ===============================
   SECTION
================================= */
.emp-upcoming-section {
    margin-top: 25px;
}

.emp-upcoming-container {
    padding: 0 10px;
}

/* ===============================
   CARD
================================= */
.emp-upcoming-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

    .emp-upcoming-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    }

/* ===============================
   HEADER
================================= */
.emp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #fff;
}

.emp-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

/* Gradient Themes */
.emp-holiday-header {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.emp-anniversary-header {
    background: linear-gradient(135deg, #16a34a, #0f766e);
}

.emp-birthday-header {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.emp-card-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 10px;
}

.emp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.main {
    width: 100%;
    min-width: 650px; /* IMPORTANT */
    border-collapse: collapse;
}

    /* Prevent text breaking */
    .main th,
    .main td {
        white-space: nowrap;
        padding: 10px;
    }

/* Right align */
.col-right {
    text-align: right;
}

/* ===============================
   BODY
================================= */
.emp-card-body {
    padding: 20px;
    background: #f8fafc;
}

/* Scroll Area */
.emp-scroll-area {
    max-height: 100px;
    overflow-y: auto;
    padding-right: 5px;
}

    /* Custom Scrollbar */
    .emp-scroll-area::-webkit-scrollbar {
        width: 6px;
    }

    .emp-scroll-area::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }

/* ===============================
   FOOTER
================================= */
.emp-card-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.emp-view-btn {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #2a5298;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s;
}

    .emp-view-btn:hover {
        color: #1e3c72;
    }

    .emp-view-btn i {
        font-size: 12px;
        transition: 0.3s;
    }

    .emp-view-btn:hover i {
        transform: translateX(4px);
    }

/*Employee Attendance*/

.emp-att-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.emp-att-month-select {
    display: flex;
    flex-direction: column;
}

.emp-label {
    font-size: 13px;
    font-weight: 600;
    color: #292929;
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.emp-select {
    width: 200px;
    height: 35px;
    border-radius: 30px !important;
    padding: 0 18px;
    font-size: 13px;
    border: 1px solid #d1d5db !important;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

    /* Focus effect */
    .emp-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
        outline: none;
    }

/* Buttons */

.emp-att-actions {
    display: flex;
    gap: 10px;
}

.emp-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

    .emp-btn:hover {
        background: #e5e7eb;
    }
.badge {
    padding: .70em .65em;
    font-size: 1em;
}
/* ================= TABLE ================= */
.emp-att-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.emp-att-scroll {
    max-height: 500px;
    overflow: auto;
}

.emp-att-table {
    /*margin: 0;*/
    min-width: 600px;
}

    .emp-att-table thead th {
        position: sticky;
        top: 0;
        background: #d9d9d9;
        font-weight: 600;
        z-index: 5;
        color: #252424;
    }

    .emp-att-table td {
        padding: 8px;
        white-space: nowrap;
    }
    .emp-att-table th {
        padding: 10px;
        white-space: nowrap;
    }
        /* Status badge example */
        .emp-status {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

.emp-present {
    background: #d1fae5;
    color: #065f46;
}

.emp-absent {
    background: #fee2e2;
    color: #991b1b;
}

/* ================= PAGE HEADER ================= */

.emp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #f7f7f7;
    padding: 10px 25px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
    border: 1px solid #dbdbdb;
}

.emp-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    position: relative;
}

/* ================= FILTER CARD ================= */

.emp-filter-card {
    background: #ffffff;
    padding: 14px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 50%;
    border: 1px solid #b1b1b1;
}

/* Row Layout */
.emp-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Download Button */
.emp-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    border: none;
    background: #003771;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

    .emp-download-btn:hover {
        background: #1d4ed8;
    }

/* Group */
.emp-filter-group {
    display: flex;
    align-items: center;
    gap: 12px; /* space between label & select */
}

/* Label */
.emp-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 6px;
    letter-spacing: .3px;
    margin: 0;
}

/* Select */
.emp-filter-select {
    width: 200px;
    height: 30px;
    border-radius: 30px;
    padding: 0 18px;
    font-size: 13px;
    border: 1px solid #d1d5db !important;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

    /* Focus Effect */
    .emp-filter-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
        outline: none;
    }

       /* ================= PAGE HEADER ================= */

        .emp-page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            background: #f7f7f7;
            padding: 10px 25px;
            border-radius: 14px;
            margin-bottom: 20px;
            box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
            border: 1px solid #dbdbdb;
        }

        .emp-page-title {
            font-size: 20px;
            font-weight: 600;
            color: #111827;
            margin: 0;
            position: relative;
        }
 
.emp-tablehead {
    background-color: #0d2237;
    color: #fff;
}
.emp_tabledownrow {
    background-color: #bfbfbf;
    color: #0c0c0c;
}
/* ================= NET PAY SUMMARY ================= */

.emp-slip-net-summary {
    width: 300px;
    margin-left: auto;
    margin-top: 25px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37,99,235,0.25);
}

.emp-slip-net-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.emp-slip-net-amount {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
    text-align: right;
}


/* ================= SLIP ROW ================= */

.emp-slip-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* ================= SLIP CARD ================= */

.emp-slip-card {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    border: 0.5px solid #b3b3b3;
}

/* ================= SLIP ITEM ================= */

.emp-slip-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

    .emp-slip-item:last-child {
        margin-bottom: 0;
    }

/* ================= LABEL ================= */

.emp-slip-label {
    font-weight: 600;
    color: #0e2338;
}

/* ================= TABLE ================= */

.emp-slip-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
}

    .emp-slip-table th,
    .emp-slip-table td {
        padding: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

    .emp-slip-table th {
        background: #f9fafb;
        font-weight: 600;
    }

/* ================= NET BOX ================= */

.emp-slip-netbox {
    width: 260px;
    margin-left: auto;
    margin-top: 20px;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* ================= SMALL TEXT ================= */

.emp-slip-small {
    font-size: 12px;
    margin-top: 20px;
    color: #6b7280;
}

/* ===== LEAVE HISTORY TABLE ===== */

.emp-history-body {
    padding: 0;
}

.emp-history-table-wrapper {
    max-height: 350px;
    overflow-y: auto;
}

.emp-history-table {
    width: 100%;
    border-collapse: collapse;
}

    .emp-history-table thead {
        background: #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .emp-history-table th {
        padding: 6px 12px;
        font-size: 13px;
        text-align: left;
        font-weight: 600;
        color: #1e293b;
        background-color: #e5e5e5;
    }

    .emp-history-table td {
        padding: 8px 12px;
        font-size: 13px;
        border-top: 1px solid #e2e8f0;
    }

    .emp-history-table tbody tr:hover {
        background: #f8fafc;
    }

/* Status Badges */
.emp-history-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Approved */
.emp-approved {
    background: #d1fae5;
    color: #065f46;
}

/* Pending */
.emp-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Rejected */
.emp-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/*New code end*/

/* Responsive */

/* Large Desktop */
@media(max-width:1200px) {

    .emp-wrapper {
        flex-direction: row;
        gap: 40px;
    }
    .content-box {
        padding: 20px;
    }
    .emp-header {
        padding: 10px 20px;
        height: 58px;
    }
    .emp-search-box {
        width: 380px;
    }
    .emp-graph-body {
        height: 360px;
    }
}
/* Laptop */
@media(max-width:992px) {
    .timesheettasklist-table th,
    .timesheettasklist-table td {
        padding: 10px;
        font-size: 13px;
    }
    .emp-leave-btn {
        padding: 7px 16px;
        font-size: 13px;
        border-radius: 25px;
    }
    .emp-profile-top {
        flex-direction: column;
        text-align: center;
    }

    .emp-detail-item {
        flex-direction: column;
        gap: 5px;
    }
    .emp-wrapper {
        flex-direction: column;
    }

    .emp-right {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.4);
        border-radius: 20px;
        padding: 40px;
    }
    .emp-scroll-area {
        max-height: 200px;
    }
    .emp-search-box {
        width: 320px;
    }

    .emp-header {
        padding: 0 20px;
    }
    .emp-modal-dialog {
        max-width: 520px;
    }
    .emp-filter-group {
        flex-direction: row;
    }

    .emp-filter-select {
        width: 200px;
    }

    .emp-filter-action {
        width: auto;
    }
    .timesheet-buttons {
        flex-wrap: wrap;
    }


    .timesheetlist-title {
        flex: 1 1 100%;
        text-align: center;
    }

    .timesheetlist-search {
        
        min-width: 200px;
    }

    .back-btn {
        white-space: nowrap;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {

    .emp-profile-image {
        width: 90px;
        height: 90px;
    }

    .emp-graph-body {
        height: 280px;
    }
    .emp-modal-dialog {
        max-width: 480px;
    }
    .emp-filter-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .emp-filter-group {
        width: 60%;
    }

    

    .emp-filter-action {
        width: 35%;
        justify-content: flex-end;
    }
}
/* Tablet */
@media(max-width:768px) {
    .empattendancecheck-container {
        padding: 10px;
    }

    .empattendancecheck-viewtype {
        flex-wrap: wrap;
        gap: 10px;
    }

    .empattendancecheck-users {
        flex-direction: column;
        align-items: stretch;
    }

    .empattendancecheck-dropdown {
        width: 100%;
    }

    .load-btn {
        width: 100%;
        text-align: center;
    }

    .emp-filter-group {
        width: 100%;
    }
    .timesheetlist-title {
        text-align: center;
        font-size: 20px;
    }

    .timesheetlist-search {
        width: 100%;
    }

    .timesheetlist-search input {
            width: 100%;
        }

    .back-btn {
        width: 50%;
        text-align: center;
        padding: 10px;
    }

    .timesheet-buttons {
        flex-wrap: wrap; /* Allow buttons to wrap */
        gap: 10px;
        justify-content: flex-start; /* Adjusts layout on smaller screens */
    }

    .timesheetbtn-icon {
        padding: 12px;
    }

  

    .timesheet-cards {
        grid-template-columns: 1fr 1fr;
    }

    .timesheet-cards .card {
            padding: 15px;
        }

    .task-overview, .recent-activities {
        margin-bottom: 20px;
    }

    .timesheet-cards {
        grid-template-columns: 1fr 1fr; /* 2 columns on smaller screens */
    }

    .timesheet-cards .tcard {
            padding: 15px;
        }
    .emp-content {
        margin-left: 0;
    }
    
        .timesheettasklist-table tr {
            margin-bottom: 15px;
            background: #fff;
            padding: 12px;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        }

        .timesheettasklist-table td {
            border: none;
            padding-left: 45%;
            position: relative;
            margin-bottom: 10px;
            font-size: 13px;
        }

            .timesheettasklist-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 12px;
                top: 0;
                font-weight: 600;
                font-size: 12px;
                color: #3b4b6b;
            }
    .recent-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recent-filters {
        width: 70%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }
    .emp-filter-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

   
    .emp-filter-select {
        width: auto;
    }

    .emp-filter-action {
        width: 35%;
        justify-content: flex-end;
    }
    .emp-search-box {
        width: 260px;
    }

    .emp-header {
        padding: 0 15px;
        height: 55px;
    }

    .emp-search-box input {
        font-size: 11px;
    }
    .emp-badge {
        font-size: 10px;
        min-width: 15px;
        height: 16px;
    }
    .emp-leave-btn {
        padding: 6px 14px;
        font-size: 12px;
        gap: 6px;
        border-radius: 20px;
        width: auto;
        justify-content: center;
    }
    .emp-sidebar {
        transform: translateX(-100%);
    }

        .emp-sidebar.emp-mobile-show {
            transform: translateX(0);
        }

    .content-box {
        margin-left: 0;
        padding: 15px;
    }
    .emp-main {
        margin-left: 0;
    }

    .emp-sidebar {
        transform: translateX(-100%);
    }

        .emp-sidebar.emp-mobile-show {
            transform: translateX(0);
        }
    .emp-graph-body {
        height: 250px;
    }
    .emp-right {
        padding: 35px;
    }

    .emp-tabs button {
        padding: 10px;
        font-size: 13px;
    }
    .emp-slip-row {
        flex-direction: column;
    }

    .emp-slip-card {
        width: 100%;
    }
    .emp-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .emp-filter-select {
        width: 100%;
    }

    .emp-slip-net-summary {
        width: 100%;
    }

    .emp-filter-action {
        width: 100%;
    }

    .emp-download-btn {
        width: 100%;
        justify-content: center;
    }
    .emp-att-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .emp-select {
        width: 100%;
    }

    .emp-att-actions {
        align-self: flex-end;
    }
    .emp-leave-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }


    .emp-leave-menu {
        width: 100%;
        right: auto;
        left: 0;
    }
    .emp-profile-top {
        flex-direction: column;
        text-align: center;
    }

    .emp-profile-image {
        width: 85px;
        height: 85px;
    }

    .emp-status-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -10px;
    }

    .emp-detail-item {
        font-size: 13px;
        padding: 8px 14px;
    }

    .emp-graph-body {
        height: 250px;
    }
    .emp-modal-dialog {
        max-width: 420px;
    }

    .emp-modal-body {
        padding: 22px;
    }
}
/* ================= MOBILE ================= */

@media (max-width: 576px) {

    .theading {
        font-size: 16px;
    }

    .tp1, .tp2, .tp3, .tp4 {
        font-size: 20px;
    }

    .timesheetcard-icon1,
    .timesheetcard-icon2,
    .timesheetcard-icon3,
    .timesheetcard-icon4 {
        width: 34px;
        height: 34px;
        top: -15px;
    }
    .timesheet-buttons {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    /* Buttons full width */
    .timesheetbtn-icon {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }

  
}

   

/* Small Mobile */
@media (max-width:360px) {
    .emp-header {
        padding: 6px 10px;
        height: 48px;
    }

}

/* Ultra Small */
    @media (max-width:320px) {
        .emp-header {
            padding: 5px 8px;
            height: 45px;
        }

        .emp-logo img {
            width: 24px;
            height: 24px;
        }

        .emp-logo {
            font-size: 18px;
        }

        .emp-tabs button {
            font-size: 10px;
            padding: 5px;
        }

        .emp-leave-wrapper {
            align-items: center;
            gap: 6px;
            display: grid;
        }

        .emp-leave-btn {
            padding: 4px 8px;
            font-size: 10px;
            white-space: nowrap;
        }

        .emp-badge {
            font-size: 9px;
            min-width: 12px;
            height: 12px;
        }

        .emp-leave-title {
            font-size: 14px;
            gap: 8px;
            white-space: nowrap;
        }
    }


@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}
/*Timesheet Task datalist Page */

/* ================= WRAPPER ================= */
.timesheetlist-wrapper {
    /*padding: 30px;*/
    background: #f4f6fb;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.timesheetlist-card {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 7px;
    padding: 22px 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #318346;
}

/* ================= HEADER ================= */
.timesheetlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.timesheetlist-title {
    font-size: 24px;
    font-weight: 600;
    color: #122f4d;
    text-decoration: underline;
}

/* ================= SEARCH ================= */
.timesheetlist-search {
    position: relative;
    width: 250px;
}

    .timesheetlist-search i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #7a8aa0;
        font-size: 13px;
    }

    .timesheetlist-search input {
        width: 80%;
        padding: 5px 10px 5px 30px;
        border-radius: 8px;
        border: 1px solid #d6dbe6;
        font-size: 13px;
        background: #f9fbff;
        outline: none;
    }

        .timesheetlist-search input:focus {
            border-color: #2f6fed;
            box-shadow: 0 0 0 2px rgba(47,111,237,0.15);
        }

/* ================= TABLE ================= */
.timesheettasklist-table {
    width: 100%;
    border-collapse: collapse;
}
    .timesheettasklist-table thead tr {
        color: #1c1c1c;
    }
    .timesheettasklist-table thead {
        background: #d2e5ff;
    }

    .timesheettasklist-table th {
        padding: 6px 12px;
        text-align: left;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

        .timesheettasklist-table th i {
            margin-left: 6px;
            font-size: 11px;
            color: #9aa7bd;
        }

    .timesheettasklist-table td {
        padding: 12px;
        font-size: 13px;
        border-top: 1px solid #eef1f6;
    }

    .timesheettasklist-table tbody tr:hover {
        background: #f8faff;
    }

/* ================= BADGES ================= */
.timesheetlist-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.timesheetlist-low {
    background: #e6f7ec;
    color: #2e9f59;
}

.timesheetlist-medium {
    background: #fff3e0;
    color: #f39c12;
}

.timesheetlist-high {
    background: #efdada;
    color: #e74c3c;
}

.timesheetlist-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.timesheetlist-pending {
    background: #e6f0ff;
    color: #dc3545;
    
}

.timesheetlist-close {
    background: #d1e8ff;
    color: #0e243b;
}

.timesheetlist-complete {
    background: #ceffdb;
    color: #198754;
}

/* ================= ACTION DROPDOWN ================= */
.timesheetlist-action {
    position: relative;
}

.timesheetlist-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.timesheetlist-dropdown {
    position: absolute;
    right: 0;
    top: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid #e6e9f0;
    display: none;
    min-width: 120px;
    z-index: 10;
}

    .timesheetlist-dropdown div {
        padding: 8px 12px;
        cursor: pointer;
        font-size: 13px;
    }

        .timesheetlist-dropdown div:hover {
            background: #f4f6fb;
        }

.timesheetlist-delete {
    color: #e74c3c;
}

/* ================= PAGINATION ================= */
.timesheetlist-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}

    .timesheetlist-pagination button {
        border: 1px solid #d6dbe6;
        background: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
    }

        .timesheetlist-pagination button.active {
            background: #2f6fed;
            color: white;
        }

/* ================= MOBILE STACK ================= */
@media(max-width:768px) {
   
    .timesheetlist-title {
        text-align: center;
        font-size: 20px;
        margin-bottom: 10px; /* Ensure some space below title */
    }

    .timesheetlist-search {
        width: 100%;
        margin-bottom: 10px; /* Ensure space after the search box */
    }

    
    .btn_task_View,
    .btn_task_Delete {
        padding: 6px 10px;
        font-size: 12px;
    }

    .timesheettasklist-btn {
        width: 100%;
        margin-top: 5px;
    }
    

        .timesheettasklist-table tr {
            margin-bottom: 14px;
            background: #fff;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.05);
        }

        .timesheettasklist-table td {
            border: none;
            padding-left: 50%;
            position: relative;
            margin-bottom: 6px;
        }

            .timesheettasklist-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 12px;
                font-weight: 600;
                font-size: 12px;
                color: #3b4b6b;
            }

    .timesheetlist-pagination {
        justify-content: center;
    }
}


/*Reply Popup Form*/
/* =============================
   REPLY MODAL EXACT UI
============================= */

.reply-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Background Blur */
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .reply-overlay * {
        box-sizing: border-box;
    }

/* Card */
.reply-card {
    width: 450px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.35s ease;
    backdrop-filter: blur(18px);
    max-height: 90vh;
    overflow-y: auto;
}

/* Fade Animation */
@keyframes replyFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
    .reply-header i {
        color: #2f6fed;
        font-size: 16px;
        cursor: pointer;
    }
.reply-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #033e7d;
}

.reply-back {
    font-size: 18px;
    color: #213a63;
    cursor: pointer;
}



.reply-group {
    margin-bottom: 20px;
}

.reply-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #3e4b6d;
    margin-bottom: 6px;
    display: block;
}

.reply-task-name {
    font-weight: 600;
    margin-left: 4px;
    color: #0d6efd;
    font-size: 17px;
}

/* all */
.reply-textarea, .reply-select {
    width: 100%;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #dce3ef;
    background: #f8fafd;
    font-size: 13px;
    margin-bottom: 0px;
    outline: none;
    transition: 0.2s;
}

    .reply-textarea:focus,
    .reply-select:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 2px rgba(47,111,237,0.15);
    }

/* Attachment Box */
.reply-attach-box {
    width: 100%;
    height: 48px;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 6px;
}

.reply-attach-inner {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.reply-plus {
    width: 24px;
    height: 26px;
    border: 1px solid #a8a8a8;
    background: #eef1f4;
    border-radius: 4px;
    font-size: 18px;
    color: #198754;
}

.reply-upload {
    height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #2f6fb3;
    color: white;
    font-size: 14px;
}

/* Divider */
.reply-dash {
    border-top: 1px dashed #d9dee4;
    margin: 24px 0;
}

/* Footer */
.reply-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.reply-submit {
    flex: 1;
    background: #2f6fed;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(47, 111, 237, 0.35);
    cursor: pointer;
    margin-top: 14px;
}
    .reply-submit:hover {
        background: #1f5ae0;
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(47, 111, 237, 0.45);
    }
.reply-cancel {
    flex: 1;
    background: #F1F3F7;
    border: 1px solid #dce3ef;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    color: #ff2b2b;
}
.reply-cancel:hover {
    background: #ffecec;
    border-color: #ff2b2b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 43, 43, 0.15);
}
/* Upload Box Layout */
.reply-upload-box {
    border: 1px solid #dde2e7;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

/* Controls Row */
.reply-upload-controls {
    display: flex;
    gap: 10px;
    /*margin-bottom: 10px;*/
}

/* File List */
.reply-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual File Item */
.reply-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f3f6;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
}

/* Remove Button */
.reply-file-remove {
    background: none;
    border: none;
    color: #d11a2a;
    font-size: 14px;
    cursor: pointer;
}

/* =============================
   MOBILE RESPONSIVE
============================= */

@media (max-width:768px) {

    .reply-overlay {
        align-items: flex-end;
    }

    .reply-card {
        width: 100%;
        border-radius: 18px 18px 0 0;
        animation: replySlideUp .35s ease;
    }

    @keyframes replySlideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .reply-footer {
        flex-direction: column;
    }

    .reply-submit,
    .reply-cancel {
        width: 100%;
        padding: 12px;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-cell, .empty-cell {
        height: 70px;
        font-size: 11px;
    }

    .calendar-table thead th {
        font-size: 11px;
        padding: 4px 0;
    }
}

    @media (max-width: 480px) {
        
        
        .timesheetlist-title {
            font-size: 18px;
        }

        .timesheetlist-search input {
            font-size: 12px;
            padding: 10px 10px 10px 32px;
            width: 100%;
        }

        .back-btn {
            font-size: 13px;
            padding: 12px;
            width:100%;
        }
        .task-modal {
            align-items: flex-end;
        }

        .task-card {
            width: 100%;
            border-radius: 25px 25px 0 0;
        }

        .timesheet-cards {
            grid-template-columns: 1fr; /* 1 column on very small screens */
        }


        .calendar-cell, .empty-cell {
            height: auto;
            font-size: 10px;
            padding: 3px;
        }

        .calendar-cell {
            min-height: 60px;
        }

        .time-text {
            font-size: 9px;
        }

        .date-number {
            font-size: 12px;
        }

        .timesheettasklist-table td {
            padding-left: 50%;
            font-size: 12px;
        }

            .timesheettasklist-table td::before {
                font-size: 11px;
            }

        .recent-header h3 {
            font-size: 18px;
        }

        .recent-filters {
            width: 100%;
            overflow-x: auto; /* 🔥 horizontal scroll */
            flex-wrap: nowrap; /* keep in one row */
            gap: 8px;
            padding: 5px;
        }

        .filter-btn {
            flex: 0 0 auto; /* prevent shrinking */
            font-size: 11px;
            padding: 6px 10px;
            white-space: nowrap;
        }

        /* optional scrollbar styling */
        .recent-filters::-webkit-scrollbar {
            height: 4px;
        }

        .recent-filters::-webkit-scrollbar-thumb {
            background: #aaa;
            border-radius: 10px;
        }

        .emp-search-box {
            width: 200px;
            padding: 2px 8px;
        }

        .emp-search-icon {
            font-size: 12px;
            margin-left: 6px;
        }

        .emp-mic-btn {
            width: 22px;
            height: 22px;
        }

        .emp-header {
            height: 52px;
        }

        .emp-badge {
            font-size: 10px;
            min-width: 13px;
            height: 16px;
        }

        .emp-logo img {
            width: 28px;
            height: 28px;
        }

        .emp-logo {
            font-size: 20px;
        }

        .emp-tabs button {
            font-size: 11px;
            padding: 6px;
        }

        .emp-leave-wrapper {
            flex-direction: row; /* keep horizontal */
            flex-wrap: nowrap; /* prevent next line */
            align-items: center;
            gap: 8px; /* reduce gap */
        }

        .emp-leave-btn {
            padding: 5px 10px;
            font-size: 11px;
            white-space: nowrap; /* prevent text break */
        }

        .emp-badge {
            font-size: 9px;
            min-width: 14px;
            height: 14px;
        }

        .emp-modal-dialog {
            max-width: 100%;
            width: 95%;
            margin: 0.5rem auto;
        }

        .emp-modal-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .emp-close-btn {
            position: absolute;
            right: 15px;
            top: 15px;
        }

        .emp-modal-body {
            padding: 18px;
        }

        .emp-modal-title {
            font-size: 16px;
        }

        .emp-balance-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .emp-filter-row {
            flex-direction: column;
            align-items: stretch;
        }

        .emp-filter-group {
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
        }

        .emp-filter-label {
            font-size: 12px;
        }

        .emp-filter-select {
            width: 100%;
            height: 38px;
        }

        .emp-filter-action {
            width: 100%;
        }

        .emp-download-btn {
            width: 100%;
            justify-content: center;
            padding: 10px;
        }


        .timesheetbtn-icon {
            padding: 10px;
            border-radius: 50%;
        }
        .timesheetlist-card {
            padding: 15px;
        }

        .timesheetlist-title {
            font-size: 18px;
        }

        .timesheettasklist-table td {
            padding-left: 45%;
            font-size: 12px;
        }
        .emp-main-title {
            font-size: 13px;
        }

        .empattendancecheck-label {
            font-size: 12px;
        }

        .empattendancecheck-dropdown-toggle {
            font-size: 12px;
            padding: 6px;
        }

        .load-btn {
            padding: 6px;
            font-size: 12px;
            width:50%;
        }
    }
