html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

html, body {
    height: 100%;
    margin: 0px 0px 0px 0px;
    padding: 0;
}

.bg-success {
    background-color: #007935 !important;
}

.bg-color-sync {
    background-color: darkseagreen;
    color: white;
}

.width-no {
    width: auto;
}

.width-no1 {
    width: 150px; /* Adjust this value as needed */
    max-width: 100%;
}

.btn-outline-warning {
    color: white;
    border-color: darkgreen;
    background-color: darkseagreen;
}
.text-color-label {
    color: darkgreen;
}

.text-colorbg-label {
    background-color: darkseagreen;
    color: white;
}

#footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #007935;
    color: white;
    text-align: center;
}

nav a, nav a:visited {
    color: whitesmoke !important;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .dropdown-menu {
    background-color: green !important;
    }

    .dropdown-menu .dropdown-item {
        color: white;
    }

    .dropdown-menu {
    background-color: darkgreen !important;
    color: white !important;
    }

    .dropdown-item:hover {
    background-color: lightgray;
    }

    .btn-light {
    color: white;
    background-color: darkgreen !important;
    border-color: darkgreen !important;
    box-shadow: none;
    }

nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin-bottom: 0;
}

.active-menu {
    background-color: green;
    color: black !important;
    font-weight: bold;
}

/* Keep dropdown button highlighted */
.active-dropdown {
    color: Blue;
    font-weight: bold;
}

/* Ensure dropdown stays open */
#adminMenu.show {
    display: block !important;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        position: absolute;
        left: 100%; /* Move submenu to the right */
        top: 0;
        margin-top: -5px; /* Adjust alignment */
        display: none;
        min-width: 180px;
        z-index: 1050;
        transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }

    /* Show submenu on hover */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Fix Bootstrap issue where submenu closes too quickly */
    .dropdown-submenu > .dropdown-menu:hover {
        display: block;
        opacity: 1;
        visibility: visible;
    }


    .dropdown-submenu:hover > .dropdown-toggle #adminIcon {
        transform: rotate(90deg);
        transition: transform 0.2s ease-in-out;
    }

         /* index page */
    
         #topBtn {
             display: none;
             position: fixed;
             bottom: 40px;
             right: 30px;
             z-index: 9999;
             font-size: 28px;
             border: none;
             outline: none;
             background-color: transparent;
             color: darkseagreen;
             cursor: pointer;
             padding: 0;
             box-shadow: none;
             transition: transform 0.2s ease-in-out;
         }
         
         #topBtn:hover {
             transform: scale(1.2);
             color: #2e8b57;
         }
         
          .flex-container {
             display: flex;
             align-items: center;
             gap: 445px;
             margin-bottom: 10px;
             margin-top: 10px;
         }
         
         .flex-container h3 {
             margin: 0;
         }
         
         #datepicker {
             display: inline-block;
             visibility: visible;
             top: 90px;
             padding: 10px 0;
             text-align: center;
             font-size: 16px;
             padding: 8px;
             /*opacity: 1;*/
         }


         .employee-name-header {
            width: 100px;
            text-align: center;
          }

         .emp.employee-name-header {
         width: 150px;
         height: 60px;
         background-color: darkseagreen;
         }

        .notification {
            background-color: #f4f4f4;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin: 15px 0;
            padding: 8px;
        }

        .notification-header {
            display: flex;
            justify-content: space-between;
            font-size: 16px;
            color: #333;
        }

        .notification-body {
            margin-top: 10px;
        }

        .notes {
            font-size: 12px;
            color: #555;
        }


        .employee-tbl-header {
            width: 100px;
        }

        .at.employee-tbl-header {
            width: 100px;
            background-color: darkseagreen;
        }

/*th.employee-tbl-header {
    background-color: darkseagreen;
}*/


        .atten.chbox-height-width
        {
            height: 19px;
            width: 20px;
        }

        .atten.chk-props {
            text-align-last: left;
        }

        /*Default.cshtml*/
        .menu-container {
            position: relative;
            display: inline-block;
        }        
        .menu-button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 18px;
        }        
        .menu-dropdown {
            display: none;
            position: absolute;
            right: 0;
            background: white;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            min-width: 100px;
            z-index: 100;
        }        
        .menu-dropdown button {
            background: none;
            border: none;
            width: 100%;
            padding: 8px;
            text-align: left;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }        
        .menu-dropdown button:hover {
            background: #f0f0f0;
        }

        .modalD-popupOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }


        .modalD-content {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            width: 350px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            z-index: 1001;
        }

        .modalD-labelRT {
            display: block;
            text-align: left;
            font-weight: bold;
        }

        .modalD-labelTT {
            display: block;
            text-align: left;
            font-weight: bold;
        }

        .modalD-labelN {
            display: block;
            text-align: left;
            font-weight: bold;
        }

        .modalD-footerp {
            display: flex;
            justify-content: flex-end;
        }

        .modalD-commonRTN {
            width: 100%;
            padding: 5px;
        }
         /*  AttendanceTable.cshtml*/
        .smart-button {
            background: none;
            border: none;
            font-size: 20px; 
            cursor: pointer;
            padding: 5px; 
            transition: transform 0.2s ease-in-out;
        }
        
        .smart-button:hover {
                transform: scale(1.2); 
        }
        
        .smart-button:focus {
                outline: none;
        }

        /*AttendanceExceptionalModel.cshtml */

        .modal-footeraem {
            display: flex;
            justify-content: flex-end;
            border-top: none !important;
            margin-top: 10px;
        }

        .btn-save {
            background-color: #28a745;
            color: white;
        }

            .btn-save:hover {
                background-color: #218838;
                color: white;
            }


        .btn-cancel {
            background-color: lightslategray;
            color: white;
        }

            .btn-cancel:hover {
                background-color: black;
                color: white;
            }


        .modal-aem {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #fff;
            padding: 1.25rem; 
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            z-index: 1001;
        }

        .modalaem-title {
            display: flex;
            justify-content: space-between;
            align-items: center;    
        }

        .modalaem-footer {
            display: flex;
            justify-content: flex-end;
        }


        /*_AttendanceTable*/
        .table1 th {
            position: sticky;
            top: 40px;
            background-color: white;
            z-index: 1;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            color: white;
            vertical-align: middle;
            text-align: center;
        }

        .table1 td {
            text-align: center;
             border-width: 0 1px; 
        }


        /* mmmm */

        .modal-overlayfilt {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
        }
        
        .modal-content1 {
            background: white;
            padding: 20px;
            border-radius: 8px;
            width: 300px;
            margin: 10% auto;
            position: relative;
        }



        /*Filteration Design */

        .filter-bar-att {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .filter-bar-att input[type="text"] {
            padding: 0.4rem 0.6rem;
            font-size: 1rem;
        }

        .filter-bar-att button {
            padding: 0.4rem 1rem;
            font-size: 0.9rem;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
            
        .btn-success-att {
        background-color: #28a745;
        color: white;
        }
        .btn-success-att:hover {
            background-color: #218838;
        }

        .btn-secondary-att {
            background-color: #6c757d;
            color: white;
        }

        .btn-secondary-att:hover {
            background-color: #5a6268;
        }

        .filter-tag {
            background-color: #d1ecf1;
            color: #0c5460;
            padding: 2px 8px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            font-size: 0.85rem;
        }
        
        .filter-tag i {
            margin-left: 6px;
            cursor: pointer;
        }

input[name="day"]:disabled + label {
    color: #aaa;
    pointer-events: none;
}
        
/*For printing*/

@media print {

        @page {
        size: 8.5in 11in; /* US Letter */
        margin: 0.5in;
    }
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .no-print, .report-header, nav, #footer {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    button {
        display: none !important;
    }

    table {
        page-break-inside: avoid;
    }

    tr, td, th {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }

    .notes-cell {
        max-width: 100%;
    }
}

table.print-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    border-radius: 4px;
    overflow: hidden; 
}

    table.print-table th{
        border: 1px solid #000;
        padding: 6px 8px;
        text-align: center;
        vertical-align: top;
        color:white;
    }

    table.print-table td {
        border: 1px solid #000;
        padding: 6px 8px;
        text-align: center;
        vertical-align: top;        
    }

    /*  Alternate row shading */
    table.print-table tbody tr:nth-child(even) {
        background-color: #f2f2f2; /* light grey */
    }

    table.print-table tbody tr:nth-child(odd) {
        background-color: #ffffff; /* white */
    }

    table.print-table th {
        background-color: darkseagreen;
    }

.small-text {
    font-size: 12px;
    line-height: 1.4;
}

.notes-cell {
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;   
    color: #444;
    text-align: left;
    line-height: 1.4;
    margin-bottom: 5px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.print-btn {
    background-color: darkseagreen;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.holiday-scrollable-table {
    overflow-y: auto;
    max-height: 800px;
}

.holiday-thead {
    background-color: darkseagreen;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}


.user-scrollable-table {
    max-height: 800px;
    overflow-y: auto;
}

.user-scrollable-table thead th {
    background-color: darkseagreen; 
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}


.landing-wrapper {
    min-height: calc(100vh - 120px); /* adjust based on your navbar/footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* background: linear-gradient(to right, #eefaf4, #ffffff); */
    background: white;
}

.landing-title {
    font-size: 2.5rem;
    color: #004d26;
    margin-bottom: 140px;
    font-weight: 400;
}

.landing-button {
    background-color: darkseagreen;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    border: none;
}

    .landing-button:hover {
        background-color: #005c25;
    }

.table1 tbody tr:last-child td {
    padding-bottom: 50px; 
}

.ui-autocomplete {
    position: absolute;
    z-index: 9999 !important; /* Much higher to ensure it renders above modal */
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Optional: To fix width alignment */
.ui-menu-item-wrapper {
    padding: 8px 12px;
    font-size: 14px;
}