﻿
/* =========================================================
   Global Styles
=========================================================== */
body {
    background-color: #F4F6FA !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* ==============================
   Login Container
================================ */
.login-container-box {
    width: 100%;
    max-width: 650px;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0px 20px 45px rgba(15, 23, 42, 0.08);
}

/* ==============================
   Login Content
================================ */
.login-wrapper {
    padding: 36px 42px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 22px;
}

/* ==============================
   Logo
================================ */
.login-logo {
    width: 13.1rem;
    margin-left: -4px;
}

/* =========================================================
   Form Labels & Inputs
=========================================================== */
.form-label {
    font-size: 14px !important;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.form-control {
    border-radius: 8px !important;
    border: 1px solid #CBD5E1 !important;
    padding: 12px !important;
    font-size: 14px;
    background-color: #FFFFFF;
    transition: all 0.2s ease-in-out;
}

    .form-control::placeholder {
        color: #94A3B8;
    }

    .form-control:focus {
        outline: none !important;
        box-shadow: none !important;
        border-color: #80c2b5 !important;
    }

.form-select {
    border-radius: 8px !important;
    border: 1px solid #CBD5E1 !important;
    padding: 12px ;
    font-size: 14px;
    background-color: #FFFFFF;
    transition: all 0.2s ease-in-out;
}

    .form-select::placeholder {
        color: #94A3B8;
    }
    .form-select:focus {
        outline: none !important;
        box-shadow: none !important;
        border-color: #80c2b5 !important;
    }

/* ==============================
   Validation Messages
================================ */
.validation-message {
    font-size: 12px;
    color: #DC2626;
    margin-top: 4px;
}

/* ==============================
   Buttons
================================ */
.btn-primary-modern {
    background: linear-gradient(135deg, #1ABC9C, #1E40AF);
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none !important;
    color: #FFFFFF;
    box-shadow: 0px 10px 25px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

    .btn-primary-modern:hover {
        background: linear-gradient(135deg, #16A085, #1E3A8A);
        transform: translateY(-2px);
    }




/* ==============================
   Links
================================ */
.forgot-link {
    font-size: 13px;
    color: #2563EB;
    font-weight: 500;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* ==============================
   App Footer (Store Buttons)
================================ */
.app-footer {
    background: #020617;
    width: 100%;
    padding: 14px 0;
    display: flex;
    justify-content: center;
}

.store-buttons {
    display: flex;
    gap: 20px;
}

.store-img {
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .store-img:hover {
        transform: scale(1.05);
    }

/* ==============================
   Bottom Text
================================ */
.bottom-text {
    margin-top: 18px;
    font-size: 14px;
    color: #475569;
}

    .bottom-text a {
        color: #2563EB;
        font-weight: 600;
        text-decoration: none;
    }

        .bottom-text a:hover {
            text-decoration: underline;
        }





/* =========================================================
   Typography Utility
=========================================================== */
.body-medium {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
}


/* ======================================================
       # Custom Table Styles
 ====================================================== */

/* Wrapper controls height & scrolling */
.custom-table-wrapper {
    max-height: 380px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Table width */
.custom-table {
    width: 100%;
    margin-bottom: 0;
    font-weight: 300 !important;
    font-size: 14px;
}

    /* Sticky header */
    .custom-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #f8f9fa;
        box-shadow: inset 0 -1px 0 #E5E7EB;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.03em;
        color: #374151;
    }

    .custom-table tbody td {
        color: #495057d9;
        font-weight: 400;
    }


    .custom-table tbody tr {
        cursor: pointer;
        transition: background-color 0.15s ease-in-out;
    }

    .custom-table th:first-child,
    .custom-table td:first-child {
        text-align: center;
    }

    .custom-table input[type="checkbox"] {
        width: 13px;
        height: 13px;
    }

    /*  row height */
    .custom-table tbody tr td {
        padding: 0.65rem;
        vertical-align: middle;
    }



    .custom-table th,
    .custom-table td {
        border-left: none !important;
        border-right: none !important;
    }

    /* Hover highlight */
    .custom-table tbody tr:hover {
        background-color: #F9FAFB;
    }

    /* Checkbox alignment */
    .custom-table input[type="checkbox"] {
        cursor: pointer;
    }

@@media (max-width: 768px) {
    .custom-table-wrapper {
        max-height: 300px;
    }
}

/* =====================================
       # Top Bar
===================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 10px;
    margin-right: -14px;
    margin-left: -5px;
}

.page-title {
    font-size: 24px !important;
    margin-left: -9px;
}

.clockNest-bg-secondary {
    background-color: #8e949e !important;
    color: #FFFFFF !important;
    transition: background-color 0.2s ease-in-out !important;
}

    .clockNest-bg-secondary:hover {
        background-color: #717a87 !important;
        color: #FFFFFF !important;
    }

.actions .btn {
    height: 40px;
}

/* =====================================
       # Selected Bar
 ===================================== */
.selectedBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #215770;
    border-radius: 8px;
    height: 50px;
    margin-left: -10px;
    margin-right: -2px;
}

.selectedBar_container {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
}

.selectedBar_deleteButton {
    color: #FFF;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .selectedBar_deleteButton:hover {
        text-decoration: underline;
    }

.selectedCount {
    font-weight: 700;
}

.selectedText {
    margin-right: 16px;
}

/* =====================================
       # Search Input
===================================== */

.search-group {
    position: relative;
    height: 40px;
    width: 300px;
    display: flex;
    align-items: inherit;
}

.search-input {
    height: 40px;
    padding-left: -8px !important;
    border-radius: 8px;
}

.search-group i {
    position: absolute;
    left: 271px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0A6B0;
    font-size: 14px;
}

.bg-brand-100 {
    background: linear-gradient(135deg, #071A2E, #0D2A45) !important;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-weight: 500;
}
    .bg-brand-100:disabled,
    .bg-brand-100[disabled] {
        background: linear-gradient(135deg, #071A2E, #0D2A45) !important;
        color: #FFFFFF !important;
    }

button:disabled {
    cursor: not-allowed !important;
}
        .bg-brand-100:hover, .bg-brand-100:focus, .bg-brand-100:active, .bg-brand-100:focus-visible {
        background-color: #24416f !important;
        color: #FFFFFF !important;
        box-shadow: none !important;
        outline: none !important;
    }

.form-control:focus,
.btn:focus,
.btn:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: #008d94 !important;
    border-color: #008d94 !important;
}

    .form-check-input:focus,
    .form-check-input:active,
    .form-check-input:checked:focus {
        outline: none !important;
        box-shadow: none !important;
        border-color: #CED4DA !important;
    }



/* =============================================
       # Table Footer
============================================= */
.table-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 16px;
    margin-top: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
}

/* Left text */
.footer-info {
    font-size: 13px;
    color: #6B7280;
}

/* Center page size */
.footer-pagesize {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

    .footer-pagesize select {
        width: 70px;
    }

.pagination {
    gap: 6px;
}

    .pagination .page-link {
        border-radius: 6px;
        padding: 6px 12px;
        font-size: 13px;
        border: 1px solid #E5E7EB;
        background-color: #FFFFFF;
        color: #374151;
    }

        .pagination .page-link:hover {
            background-color: #F3F4F6;
        }

.page-status {
    background-color: #F9FAFB;
    font-weight: 500;
}

/*.custom-pagination .page-item.active .page-link {
    background-color: #dbdfe7 !important;
    border-color: #adafb2 !important;
    color: black
}*/

/*.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #F3F4F6;
    border-color: #CBD5E1;
    color: #1F2937;
}*/

.custom-pagination .page-link:focus,
.custom-pagination .page-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


.custom-pagination .page-item.disabled .page-link {
    background-color: #F9FAFB;
    border-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}



/* ====================================
       # Table scrollbar
   ==================================== */
.custom-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}

.custom-table-wrapper::-webkit-scrollbar-track {
    background: #F1F3F5; /* track color */
    border-radius: 6px;
}

.custom-table-wrapper::-webkit-scrollbar-thumb {
    background-color: #9AA0A6;
    border-radius: 5px;
    width: 8px;
}

/* ====================================
       # Button group
   ==================================== */
.icon-btn {
    width: 60px;
    height: 40px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

    .icon-btn i {
        line-height: 1;
    }

.btn-group .btn.icon-btn {
    margin: 0;
    border-radius: 0;
}

    /* Round left button's left corners */
    .btn-group .btn.icon-btn:first-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    /* Round right button's right corners */
    .btn-group .btn.icon-btn:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }









/* ======================================================
               CREATE EDIT PAGE STYLE
   ====================================================== */


/* ===========================
            Modal: Slide from Right
           =========================== */
.modal.right .modal-dialog {
    width: 75vw;
    height: 100vh;
    max-width: none;
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease-out;
}

.modal.right.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}

.modal.right .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.modal.right .modal-header,
.modal.right .modal-footer {
    flex-shrink: 0;
    padding: 1rem;
    background: #fff;
}

.modal.right .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}

.modal-footer.sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid #dee2e6;
}


/* ===========================
       # Save and close Button
   =========================== */
.btn_modal-success_save {
    width: 127.5px;
    height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    background:#0A2036 !important;
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn_modal-success_save:hover {
    background: #12304F !important;
}
    .btn_modal-close {
        width: 127.5px;
        height: 40px;
        border-radius: 8px;
        padding: 8px 16px;
        background: #FFFFFF;
        border: 1px solid #D9DBDE !important;
        color: black;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 24px !important;
        text-align: center !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        .btn_modal-close:hover {
            color: #0A2036;
            border-color: #c9d4e0;
            background: #c9d4e0;
        }

    /* ===========================
       # Switch Button
   =========================== */
    .form-switch .form-check-input {
        width: 3.2rem;
        height: 1.3rem;
        cursor: pointer;
    }

        .form-switch .form-check-input:checked {
            background-position: right center;
        }

        .form-switch .form-check-input:checked {
            background-color: #008d94 !important;
            border-color: #008d94 !important;
        }
    /*  Dropdown */
    .form-select option:checked {
        background-color: #008d94 !important;
        color: #fff !important;
    }

    .form-select:focus {
        border-color: #008d94 !important;
        box-shadow: 0 0 0 0.2rem rgba(0, 141, 148, 0.25);
    }
.modal-header h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0A2036;
}

.disabled-span {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}