﻿/*

body {
    background-color: #f8f9fa;
}*/

.toast.custom-toast {
    width: fit-content !important;
    max-width: 90vw;
    min-width: 250px;
}

    .toast.custom-toast .toast-message {
        white-space: nowrap;
        overflow-wrap: normal;
        padding-right: 20px;
    }

    .toast.custom-toast .toast-close-button {
        right: 1px !important;
        left: auto !important;
    }

.form-grouping-border {
    border-radius: 5px;
}

.section-heading {
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #3a42cb;
}

hr {
    margin: 1rem 0;
    color: #869ac0;
    border: 0;
    border-top: 1px solid;
    opacity: .4;
}

.form-container {
    background-color: #ffffff;
    /*padding: 22px;*/
    padding-left: 15px;
    padding-right: 35px !important;
    padding-top: 5px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /*margin: 30px auto;  */
    /* max-width: 500px;*/
}

.form-container label {
    margin-top: 2px; /* Optional: Reduce space between label and input */
    margin-bottom: 0px; /* Reduce the space below the label */
    display: block; /* Ensures consistent layout */
    font-size: 12px;
}

.form-row {
    margin-bottom: 0px; /* Adjust the spacing between rows */
}

.row > * {
    padding-right: 1px !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

.negative10_margin_left{
    margin-left: -10px;
}

.form-row:last-child {
    margin-bottom: 0px; /* Ensure the last row does not have extra spacing */
}

.form-2nd-level-row {
    margin-bottom: 0px; /* Adjust the spacing between rows */
    margin-left: 0px;
    margin-right: 0px;
}

.form-2nd-level-row:last-child {
    padding-bottom: 5px; /* Ensure the last row does have extra spacing */
}

.form-select {
    margin-top: 0px; /* Optional: Reduce space between label and input */
    font-size: 14px;
    /*height: 100%; */ /* Reduce the height of the input fields */
    /*max-width: 300px;*/ /* Optional: Set a maximum width */
}

.form-control {
    /* form-control is for text input */
    margin-top:0px;
    font-size: 14px;
    align-items: center;

    /*gap: 50px; */ /* Space between checkbox and label */
}


.form-btn {
    /*min-width: 200px; */
}

.form-check {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between checkbox and label */
    /*    height: 100%; */ /* Ensure full-height alignment */
}

.form-check-input {
    margin-top: 0; /* Align checkbox with label */
    gap: 50px; /* Space between checkbox and label */
    /*height: 50%; *//* Ensure full-height alignment */
}


.container-fluid {
    margin-top: 0px; /* Optional: Reduce space between label and input */
    margin-bottom: 0px; /* Adjust the spacing between rows */
}

.container {
    margin-top: 0px; /* Optional: Reduce space between label and input */
    margin-bottom: 0px; /* Adjust the spacing between rows */
}

.form-group.d-flex {
    display: flex;
    align-items: center;
    /*justify-content: start;*/ /* Align checkbox and label to the left */
    /*height: 50%;*/
}
.container-fluid-tab {
    margin-top: 0px; /* Optional: Reduce space between label and input */
    margin-bottom: 0px; /* Adjust the spacing between rows */
    margin-left: 0px;
    margin-right: 0px;
}




.btn-check {
    margin-top: 0px;
}

.groupbox {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.navbar.box-shadow {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    font-size: 12px; /* Change this to your desired size */
    font: #0c0c0b; /* Replace with any color (hex, rgb, or named) */
}


.nav-tabs .nav-link {
color: #0c0c0b;
}

    .nav-tabs .nav-link.active {
        color: #122c50 !important; /* Replace with your desired color */
        font-weight: bold; /* Optional: make the font bold for emphasis */
    }

/*Sidebar starts*/
#topNavBar {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 1040;
}

#sidebar .nav-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 10px;
}

#sidebar .nav-text {
    display: inline-block;
    transition: opacity 0.3s ease, margin-left 0.3s ease;
    opacity: 1;
    margin-left: 0;
}



.restricted-width {
    /*   position: relative;
                    width: 100%;
                    max-width: calc(100% - 300px); */
}

/* Adjust for mobile view */
@media (max-width: 1399px) {
    #sidebar.collapsed {
        z-index: 1050;
        display: none !important;
    }

    #sidebar.open {
        width: 270px;
        left: 0;
        transition: left 0.3s ease;
        z-index: 1050;
        height: 100vh;
        display: block !important;
    }

    #sidebarLogo {
        width: 230px;
        height: 52px;
        transition: width 0.3s;
        padding-left: 10px;
    }


    #page-content-wrapper {
        margin-left: 0;
        transition: margin-left 0.3s ease;
        margin-top: 60px; /* Ensure space for top navbar */
        height: calc(100vh - 60px);
        position: relative;
        overflow-y: auto;
        overflow-x: auto;
    }

    /* Show the toggle button only for small screens */
    #sidebarToggle {
        display: block;
    }

    #sidebarFooterDiv {
        margin-top: 20px;
    }

    #sidebar #sidebarLogoSmall {
        display: none !important;
    }

    #sidebar #sidebarLogo {
        display: block !important;
    }
}

    /* Adjust for desktop view */
    @media (min-width: 1400px) {
        #sidebar.collapsed {
            width: 55px !important;
            z-index: 1050;
        }

        #closeSidebar {
            display: none;
        }

        #sidebarLogo {
            width: 230px;
            height: 52px;
            transition: width 0.3s;
            padding-left: 10px;
        }

        /*#sidebar.collapsed #sidebarLogo {
        width: 47px;
        height: 26px;*/ /* smaller when collapsed */
        /*padding-left: 1px;
    }*/

        #sidebar #sidebarLogo {
            display: block !important;
        }

        #sidebar #sidebarLogoSmall {
            display: none !important;
        }

        #sidebar.collapsed #sidebarLogo {
            display: none !important;
        }

        #sidebar.collapsed #sidebarLogoSmall {
            display: block !important;
            height: 40px;
            width: 45px;
            padding-left: 1px;
        }

        #sidebar.collapsed hr {
            width: 30px;
            margin-left: 5px;
        }

        #page-content-wrapper {
            margin-left: 250px;
            margin-top: 60px; /* Ensure space for top navbar */
            height: calc(100vh - 60px); /* Remaining height after subtracting navbar */
            overflow-y: auto;
            transition: margin-left 0.3s ease, margin-top 0.3s ease;
            position: relative;
            overflow-x: auto;
        }

        #sidebar.collapsed .nav-text {
            opacity: 0;
            margin-left: -100%;
            pointer-events: none;
        }

        #page-content-wrapper.collapsed {
            margin-left: 50px;
            width: calc(100% - 250px);
        }

        #sidebar.hover-expanded {
            width: 250px;
            z-index: 1060;
        }

        #sidebarFooterDiv {
            margin-top: auto;
        }
    }
    /*Sidebar ends*/

    /*Main Menu Index starts*/
    #lblResource {
        font-size: 22px;
        font-weight: bold;
    }

    #nav-item-0 {
        padding-right: 100px;
    }

    #main-menu-nav .nav-item {
        margin-right: 0px; /* Add spacing between tabs */
    }

    #main-menu-nav .nav-item {
        white-space: nowrap; /* Prevent text from breaking into multiple lines */
    }

    #main-content {
        background: rgba(255, 255, 255, 0.8); /* Keep content background slightly transparent */
        border-radius: 0 0 5px 5px; /* Match the rounded corners of the tabs */
    }
    /*Main Menu Index ends*/

    /*_layout.cshtml starts*/
    /* Custom Alert Container */
    #customAlertYesNo,
    #customAlertOk,
    #customResult, 
    #customLongResult{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

    /* Custom Alert Box */
    #customAlertBoxYesNo,
    #customAlertBoxOk,
    #customResultBox, 
    #customLongResultBox{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 2px solid #666; /* Dark grey border */
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3), /* 3D effect */
    inset 0 0 5px rgba(0, 0, 0, 0.2); /* Inner shadow */
    border-radius: 5px;
    text-align: left; /* Align text to the left */
    width: 450px;
}


/* Custom Alert Box */
#customLongResultBox {
    width: 700px;
}

    /* Button container */
    #customAlertButtons {
        display: flex;
        justify-content: flex-end; /* Align buttons to the right */
        gap: 10px; /* Add space between buttons */
    }

    /* Custom Alert Message */
#customAlertMessageYesNo,
#customAlertMessageOk,
#customResultMessage,
#customLongResultMessage{
    margin: 0 0 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

    /* Custom Alert Button */
#customAlertButtonOk,
#customNotDonAlertButtonOk,
#customResultButtonOk,
#customLongResultButtonOk,
#customLongResultButtonCopy{
    background: #007bff; /* Blue background */
    border: 1px solid #0056b3; /* Darker blue border */
    padding: 5px 15px;
    font-family: Arial, sans-serif;
    width: 50px;
    height: 30px;
    font-size: 12px;
    padding: 2px;
    color: white; /* White text */
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 3D effect */
    float: right; /* Align button to the right */
}

    #customAlertConfirmButton,
    #customAlertCancelButton{
        background: #007bff;
        border: 1px solid #0056b3;
        padding: 5px 15px;
        font-family: Arial, sans-serif;
        width: 50px;
        height: 30px;
        font-size: 12px;
        padding: 2px;
        color: white;
        cursor: pointer;
        border-radius: 3px;
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 3D effect */
    }

        #customAlertConfirmButton:hover,
        #customAlertCancelButton:hover,
        #customAlertButtonOk:hover,
        #customResultButtonOk:hover,
        #customLongResultButtonOk:hover,
        #customLongResultButtonCopy:hover {
            background: #0056b3; /* Darker blue on hover */
        }

        #customAlertConfirmButton:active,
        #customAlertCancelButton:active
        #customAlertButtonOk:active,
        #customResultButtonOk:active,
        #customLongResultButtonOk:active
        #customLongResultButtonCopy:active {
            background: #004080; /* Even darker blue on click */
            box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2); /* Pressed effect */
        }
    /*_layout.cshtml ends*/

    .btn-sdsplus-navy {
        background-color: #122c50; /* Default navy */
        border: none;
        color: white;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border-radius: 0.375rem;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }

        .btn-sdsplus-navy:hover {
            background-color: #0c1a33; /* Slightly darker on hover */
            color: white;
        }

        .btn-sdsplus-navy:active {
            background-color: #0c1a33;
            color: white;
        }

        .btn-sdsplus-navy:focus {
            background-color: #0c1a33 !important;
            color: white !important;
        }

        .btn-sdsplus-navy:disabled {
            background-color: #122c50;
            opacity: 0.6;
            cursor: not-allowed;
            color: white;
        }

.btn-sdsplus-orange {
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

        .btn-sdsplus-orange:hover {
            background-color: #d76f1c; /* Slightly darker on hover */
            color: white;
        }

        .btn-sdsplus-orange:active {
            background-color: #d76f1c;
            color: white;
        }

        .btn-sdsplus-orange:focus {
            background-color: #d76f1c !important;
            color: white !important;
        }

        .btn-sdsplus-orange:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            color: white;
        }

    .btn-sdsplus-gray {
        background-color: #6c757d; /* Default gray */
        border: none;
        color: white;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border-radius: 0.375rem;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }

        .btn-sdsplus-gray:hover {
            background-color: #5a6268; /* Slightly darker on hover */
            color: white;
        }

        .btn-sdsplus-gray:active {
            background-color: #5a6268;
            color: white;
        }

        .btn-sdsplus-gray:focus {
            background-color: #5a6268 !important;
            color: white !important;
        }

        .btn-sdsplus-gray:disabled {
            background-color: #6c757d;
            opacity: 0.6;
            cursor: not-allowed;
            color: white;
        }

    .module_header_label {
        color: #122c50;
        align-items: center;
        justify-content: center !important;
    }

    .header-container {
        display: flex;
        align-items: center; /* Vertical center */
    }

    .custom-search-btn-size {
        width: 100px;
        height: 30px;
        font-size: 13px !important;
        padding: 2px 2px;
        display: flex;
        align-items: center; /* Vertical centering */
        justify-content: center; /* Horizontal centering */
    }

    .custom-btn-size {
        width: 70px;
        height: 30px;
        font-size: 14px;
        padding: 4px 2px;
    }

.custom-btn-height-only {
    height: 30px;
    font-size: 14px;
    padding: 4px 2px;
}
    .custom-other-btn-size {
        width: 100px;
        height: 30px;
        font-size: 14px;
        padding: 4px 2px;
    }
.small-lock {
    width: 16px;
    height: 16px;
    vertical-align: top;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-lock-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}

.input-eye-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}


.input-wrapper input {
    padding-left: 36px; /* Enough padding to prevent text overlap */
}

.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 35px; /* space for the eye icon */
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    background-color: #d1fae5; /* light green background */
    color: #065f46; /* dark green text */
    font-weight: 500;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 9999px; /* fully rounded */
    margin: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981; /* green dot */
    margin-right: 6px;
}

:root {
    --care-navbar-height: 49px;
}

/* Slide-out panel starts below navbar */
#resSearchPanel {
    position: fixed !important;
    top: var(--care-navbar-height) !important;
    height: calc(100dvh - var(--care-navbar-height)) !important;
    max-height: calc(100dvh - var(--care-navbar-height)) !important;
    z-index: 1057 !important;
    overflow-y: auto !important;
}

/* Dark overlay starts below navbar */
#resSearchPanelOverlay {
    position: fixed !important;
    top: var(--care-navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    z-index: 1056 !important;
}

#pd_panel {
    position: fixed !important;
    top: var(--care-navbar-height) !important;
    height: calc(100dvh - var(--care-navbar-height)) !important;
    max-height: calc(100dvh - var(--care-navbar-height)) !important;
    z-index: 1057 !important;
    overflow-y: auto !important;
}

/* Navbar stays above search overlay and panel */
#topNavBar {
    position: fixed !important;
    top: 0 !important;
    z-index: 1060 !important;
}