﻿body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    body.page-loaded {
        opacity: 1;
    }



.vertical-menu {
    background: white !important;
    width: 232px;
    box-shadow: 1px 0 6px rgba(0, 0, 0, 0.04);
    /* UX */
    transition: all 0.25s ease-in-out;
    z-index: 1001;
}
#sidebar-menu {
    margin-left: -7px !important;
}
    .main-content {
    margin-left: 236px;
}
form {
    margin-bottom: 0px;
}
.form-control::placeholder {
    color: #aaa !important;
}
.custom-switch-status .form-check-input {
    width: 6.5em;
    height: 1.8em;
    background-color: #dc3545;
    border: none;
    border-radius: 2em;
    position: relative;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: inset 0 0 0 0.1em #fff;
    outline: none;
    vertical-align: middle;
    padding: 0;
}

    /* Corrected white thumb (dot) */
    .custom-switch-status .form-check-input::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0.3em;
        transform: translateY(-50%);
        width: 1.3em;
        height: 1.3em;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.2s ease;
        z-index: 2;
        box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.2);
    }

    /* Inactive text */
    .custom-switch-status .form-check-input::after {
        content: "✖ Inactive";
        position: absolute;
        top: 50%;
        right: 0.6em;
        transform: translateY(-50%);
        font-size: 0.7rem;
        font-weight: 600;
        color: #fff;
        transition: all 0.2s ease;
        z-index: 1;
        white-space: nowrap;
    }

    /* Checked (active) state background */
    .custom-switch-status .form-check-input:checked {
        background-color: #405189;
    }

        /* Corrected thumb movement */
        .custom-switch-status .form-check-input:checked::before {
            transform: translate(4.7em, -50%); /* X and Y transform together */
        }

        /* Active text */
        .custom-switch-status .form-check-input:checked::after {
            content: "✔ Active";
            left: 1.2em;
            right: auto;
            color: #d4ffd4;
        }

        /*yes-no*/
.custom-switch-yesno .form-check-input {
    width: 5.8em; /* reduced width to match text length */
    height: 1.9em;
    background-color: #dc3545;
    border: none;
    border-radius: 2em;
    position: relative;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: inset 0 0 0 0.1em #fff;
    outline: none;
    vertical-align: middle;
    padding: 0;
}

    /* Dot (thumb) */
    .custom-switch-yesno .form-check-input::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0.4em;
        transform: translateY(-50%);
        width: 1.2em;
        height: 1.2em;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.2s ease;
        z-index: 2;
        box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.2);
    }

    /* 👎 No text (adjusted spacing) */
    .custom-switch-yesno .form-check-input::after {
        content: "👎 No";
        position: absolute;
        top: 50%;
        right: 1.1em; /* pulled closer to the thumb */
        transform: translateY(-50%);
        font-size: 0.68rem;
        font-weight: 600;
        color: #fff;
        transition: all 0.2s ease;
        z-index: 1;
        white-space: nowrap;
    }

    /* YES state */
    .custom-switch-yesno .form-check-input:checked {
        background-color: #198754;
    }

        /* Move dot precisely */
        .custom-switch-yesno .form-check-input:checked::before {
            transform: translate(3.9em, -50%);
        }

        /* 👍 Yes text (adjusted tighter left) */
        .custom-switch-yesno .form-check-input:checked::after {
            content: "👍 Yes";
            left: 1.2em;
            right: auto;
            color: #d4ffd4;
        }

.btn {
border-radius:40px;
}


/*body[data-sidebar-size="sm"] {
        min-height: 1000px;
        overflow-x: hidden;
    }*/
/* ========== Topbar Themes ========== */
/* Light Theme */
body [data-topbar="light"] #page-topbar {
    background-color: #ffffff;
    color: #212529;
    border-bottom: 1px solid #e9e9ef;
}

/* Dark Theme */
body[data-topbar="dark"] #page-topbar {
    background-color: #2c302e;
    color: #e9ecef;
    border-bottom: 1px solid #3b403d;
    z-index: 1030;
}

/* Light Red Theme */
body[data-topbar="lightred"] #page-topbar {
    background-color: #ff6f61;
    color: #ffffff;
    border-bottom: 1px solid #e05252;
    z-index: 1030;
}

/* Soft Green Theme */
body[data-topbar="softgreen"] #page-topbar {
    background-color: #2ab57d;
    color: #ffffff;
    border-bottom: 1px solid #1f9c6a;
    z-index: 1030;
}

/* Brand Blue Theme */
body[data-topbar="brandblue"] #page-topbar {
    background-color: #0f1361;
    color: #ffffff;
    border-bottom: 1px solid #3899e0;
    z-index: 1030;
}

.menu-title {
    color: #5156be !important;
    font-size: 16px;
    font-weight: 600;
}


.footer {
    padding: 9px calc(1.5rem / 2);
    height: 40px;
}
.page-content {
    padding: calc(64px + 1.0rem) calc(1.0rem * .10) 60px calc(1.0rem * .10);
}
.card {
    margin-bottom: 1.0rem;
    box-shadow: 0 0 8px rgb(64 81 137) !important;
}
.card-header {
    font-size: small;
}
.logo-custom {
    background: white;
    padding: 8px 16px;
    border-radius: 31px;
    height: 52px;
}
.logo-dark .logo-txt {
    background: -webkit-linear-gradient(#eb0606, #070000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-light .logo-txt {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.container-fluid {
    padding-left: 5px;
    padding-right: 5px;
}

th.col-index,
td.col-index {
    width: 10px;    
    text-align: center;
    white-space: nowrap;
}
th.col-action,
td.col-action {
    /*width: 10px;*/    
    text-align: center;
    white-space: nowrap;
}
th.col-check,
td.col-check {
    width: 8px;
    text-align: center;
    white-space: nowrap;
}

/* Reduce modal header height */
.modal-header {
    padding: 0.7rem 1.2rem; /* default is 1rem 1.5rem */
    min-height: unset; /* remove any enforced min height */

}

/* Reduce modal footer height */
.modal-footer {
    padding: 0.3rem 1.5rem; /* default is 1rem 1.5rem */
}

/* Apply zoom-in effect to all Bootstrap modals */
.modal.fade .modal-dialog {
    transform: scale(0.85);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}
@keyframes shake {
    0% {
        transform: scale(1) translateX(0);
    }

    25% {
        transform: scale(1) translateX(-10px);
    }

    50% {
        transform: scale(1) translateX(10px);
    }

    75% {
        transform: scale(1) translateX(-10px);
    }

    100% {
        transform: scale(1) translateX(0);
    }
}

.modal-dialog.shake {
    animation: shake 0.4s;
}


.dataTables_length select {
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
   
}

/* Prevent horizontal scroll on the table */
/*.dataTables_wrapper {
    overflow-x: hidden;*/ /* Hide horizontal scroll */
/*}*/

/* Ensure the search box, buttons, and other elements stack on smaller screens */
@media (max-width: 768px) {
    .dataTables_wrapper .top.d-flex {
        flex-direction: column;
    }

    .dataTables_wrapper .bottom.d-flex {
        flex-direction: column;
    }

    /* Optionally, you can also tweak margins for better alignment */
    .dataTables_wrapper .top, .dataTables_wrapper .bottom {
        margin-bottom: 10px;
    }
}


table.dataTable tbody tr {
    font-size: 0.85rem; /* smaller font */
    height: 45px; /* optional fixed height */
}
tbody, td, tfoot, th, thead, tr {   
    border-width: 2px;
}

table.dataTable td,
table.dataTable th {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    vertical-align: middle;
}
/*table.dataTable.table-hover > tbody > tr:hover,
table.dataTable.table-hover > tbody > tr:hover > td {
    background-color: #fef9c3 !important;*/
    /*color: #92400e !important;*/
/*}*/



table.dataTable tr.dtrg-group.dtrg-start th {
    background-color: #fdfdfd !important;
    border-radius: 4px;
    box-shadow: inset 0 -1px 0 #dbeafe;
}



div.dt-button-collection {
    right: 0 !important;
    left: auto !important;
    margin-right: 10px;  
    transform: translateY(-8px);  
}


@media screen and (max-width: 767px) {
    div.dt-buttons {
        float: none;
        width: 60%;
        text-align: center;
        margin-bottom: .5em;
    }
}


.table-responsive {
     overflow-x: visible;
        }

.ht-Not-Required {
border-bottom-width:1px;
border-style:solid;
}


/* ✅ Apply smaller font but keep default spacing and height */
    .select2-container--bootstrap-5 .select2-selection {
    display: block;
    width: 100% !important;
    padding: 0.47rem 2.25rem 0.47rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-tertiary-bg) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232c302e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    min-height: calc(1.5em + 0.94rem + 2px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ✅ Also apply smaller font in dropdown list */
.select2-container--bootstrap-5 .select2-results__option {
    font-size: 0.875rem !important;
    line-height: 1.5rem !important;
}


/* Make the intl-tel-input container full width */
.iti {
    width: 100% !important;
}

    /* Make the actual input take the full width too */
    .iti input {
        width: 100% !important;
    }

.profile-card {
    background: #484851;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hover-overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.position-relative:hover .hover-overlay {
    opacity: 1;
}


@media (max-width: 768px) {
    .text-end-on-mobile {
        text-align: end !important;
    }
}



.hover-bg:hover {
    background-color: #baccd0 !important;
    transition: background-color 0.3s ease;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #f0f2f5;
    border-radius: 50%;
}


.offcanvas-custom {
    width: 350px !important; /* Set your desired width */
}

@media (max-width: 576px) {
    .offcanvas-custom {
        width: 70% !important; /* Full width on very small screens */
    }
}

.export-btn-style {
    background: linear-gradient(135deg, #5156be 0%, #74788d 100%);
    padding: 3px 11px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: white !important;
}

    .export-btn-style i {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }
.badge-sm {
    font-size: 0.7rem;
    padding: 0.4em 0.7em;
    font-weight: 500;
    border-radius: 0.35rem;
}

.flatpickr-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

    .flatpickr-wrapper > input {
        flex: 1 1 auto;
        width: 100%;
        padding-right: 2.5rem !important; /* make room for icon */
    }

.calendar-icon {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: .375rem;
    color: #6c757d;
    z-index: 1;
}

    .calendar-icon:hover {
        color: #0d6efd;
        background: rgba(13,110,253,.08);
    }

    .calendar-icon:focus-visible {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
    }




.wrap-cell {
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}


.hanging-name-box {
    position: relative;
    display: inline-block;
    background: #405189;
    color: white;
    /*font-weight: 500;*/
    font-size: 1.0rem;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: bounce-in 1s ease;
    transition: transform 0.3s ease;
}

    .hanging-name-box::before {
        content: "";
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 25px;
        background-color: black;
        border-radius: 2px;
    }

    .hanging-name-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

.no_hanging-name-box {
    position: relative;
    display: inline-block;    
    animation: bounce-in 1s ease;
    transition: transform 0.3s ease;
}

.no_hanging-name-box::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 25px;
    background-color: black;
    border-radius: 2px;
}

    .no_hanging-name-box:hover {
        transform: translateY(-3px);        
    }

@keyframes bounce-in {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    60% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
    }
}
.fancy-header {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0;
}

    .fancy-header::before,
    .fancy-header::after {
        content: "";
        flex: 1;
        border-top: 2px solid #ccc;
        height: 1px;
        position: relative;
        top: 0.6em;
    }

    .fancy-header::before {
        margin-right: 20px;
        background: linear-gradient(to left, #6dd5fa, #2980b9);
    }

    .fancy-header::after {
        margin-left: 20px;
        background: linear-gradient(to right, #6dd5fa, #2980b9);
    }

    .fancy-header span {
        font-size: 1.0rem;
        font-weight: 600;
        color: #ff1471;
        background-color: #fff;
        padding: 0 15px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }


    /*dashboard*/
.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding: 20px;
}

    .dashboard-headers {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        margin-bottom: 15px;
    }

.dashboard-date-section {
    font-size: 15px;
    font-weight: bold;
}

.dashboard-shift-time {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.dashboard-divider {
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

.dashboard-time-info {
    display: flex;
    justify-content: space-between;
    text-align: center;
    font-size: 14px;
}

    .dashboard-time-info div {
        flex: 1;
    }

    .dashboard-time-info span {
        display: block;
        margin-top: 5px;
        font-weight: bold;
    }

.dashboard-data-box {
    background-color: #d7ecec;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
}
.employee_img {
    height: 37px;
    width: 37px;
    object-fit: cover;
    border: 3px solid #5156be;
}

.card_dashboard_header
{
    background: #5156be;
    color: #fff !important;
    font-weight: 400;
    border-radius: 5px;
    padding: 3px;
}

/* nav css*/

.nav-tabs .nav-link.active {
    background: #405189;
    color: #fff !important;
    font-weight: 400;
    /* transform: scale(1.06); */
    border-radius: 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 1.5rem; /* default is 2rem */
    height: 1.5rem; /* default is 2rem */
    background-size: 100% 100%; /* keep SVG scaled properly */
}


.schedule-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

    .schedule-pill i {
        font-size: 14px;
    }

.schedule-sub {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.85;
}

/* Colors */
.schedule-pill.daily {
    background: #e0f2fe;
    color: #0369a1;
}

.schedule-pill.weekly {
    background: #ecfeff;
    color: #155e75;
}

.schedule-pill.monthly {
    background: #fef3c7;
    color: #92400e;
}

.schedule-pill.yearly {
    background: #ede9fe;
    color: #5b21b6;
}

.schedule-pill.unknown {
    background: #f3f4f6;
    color: #374151;
}


.avatar-fallback {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #767b8c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
