body {
    font-size: 14px;
    font-family: Poppins, sans-serif;
    background-color: rgb(243, 244, 247);
}
.re-position {
    position: relative;
}

.ab-position {
    position: absolute;
}

.ctk-width-100 { width: 100% !important; }
.bold { font-weight: bold; }
.align-center { text-align: center; }

.ctk-flex-gap-10 {
    gap: 10px;
}
.ctk-flex-gap-5 {
    gap: 5px;
}
.ctk-flex {
    display:flex;
}

.ctk-flex-column {
    display: flex;
    flex-direction: column;
}

.flyout-close {
    background-color: transparent;
    border: none;
    font-size: 1.3em;
}

.display-none {
    display: none;
}

p.section-break {
    font-weight: 600;
    margin: 25px 0px 7px 0px;
}

.ctk-flex-1 { flex: 1; }
.ctk-flex-2 { flex: 2; }
.ctk-flex-3 { flex: 3; }

.ctk-pd-b-10 {
    padding-bottom: 10px;
}

i.fa-edit {
    cursor: pointer;
}

/* Start - Styles for Autocomplete */
.autocomplete-container {
    position: relative;
}

    .autocomplete-container input[type="text"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        box-sizing: border-box;
    }

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background-color: white;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
}

.suggestion {
    padding: 10px;
    cursor: pointer;
}

    .suggestion:hover {
        background-color: #f0f0f0;
    }

/* End - Styles for Autocomplete */

.flex {
    display: flex;
}

.ctk-p10 {
    padding: 10px;
}
.grid-action-icon {
    cursor: pointer;
}

.login-nav a.nav-link {
    gap: 15px;
    font-weight: bold;
    text-decoration: underline;
}

.primary-gray-button, .ctk-gray-button {
    border: solid 1px #999;
    font-size: 15px;
    padding: 5px 10px;
    color: #333;
    border-radius: 3px;
}

.ctk-gray-input-text {
    border: solid 1px #999;
    background: #e9e9e9;
    border-radius: 3px;
    height: 60px;
    padding:5px 10px 5px 10px;
    width: 80%;
}

header {
    height: 56px;
}

#mainContainer {
    height: calc(100vh - 56px);
}

main, .main-container {
    height: 100%;
}

.col-25 {
    float: left;
    width: 25%;
    margin-top: 6px;
}

.col-75 {
    float: left;
    width: 75%;
    margin-top: 6px;
}

.col-35 {
    float: left;
    width: 35%;
}

.col-65 {
    float: left;
    width: 65%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.container {
    max-width: 100%;
    margin: 0px;
    padding: 0px;
}

.primary-bg-color {
    background-color: #2c3e50;
}

.primary-bg-text-color {
    color: #FFF;
}

a.navbar-brand {
    color: #FFF;
    font-weight: 500;
}

.navbar-nav {
    flex-direction: row-reverse !important;
}

.nav-item.active {
    background: #F9F9F9;
    border-bottom: solid 1px #BBB;
    border-top: solid 1px #BBB;
}

#sidebar {
    height: 100vh;
    background-color: #D9D9D9;
    border-right: 1px solid rgb(210, 208, 206);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 2px 8px;
    z-index: 999;
}

#toggleSidebar {
    border: none;
    color: #FFF;
    background: none;
    margin-right: 20px;
}

.page-header {
    font-size: 1.8em;
    color: #125A97;
}

.breadcrumb {
    margin-bottom: 0px !important;
}

.breadcrumb-item a, .breadcrumb-item, .breadcrumb-item + .breadcrumb-item::before, .breadcrumb-item.active {
    color: #FFF;
}

/* Start - Command Bar Styling */
.grid-icon-view {
    color: #125A97
}

.list-group-item {
    border: none;
    background-color: #FFF;
    border-radius: 0;
    padding: 10px;
    border-bottom: solid 3px #AAA;
    border-radius: 0px !important;
    margin-left: 3px;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 8px;
    font-size: 1.2em;
    min-width: 150px;
}

    .list-group-item.active {
        border: none;
        background-color: #fff;
        font-weight: bold;
        color: #212529;
        border-bottom: solid 3px #125A97;
    }

.view-container {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.command-bar {
    display: flex;
    background-color: #fff;
    padding: 5px 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.command-button {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: none;
    padding: 5px 6px;
    margin-right: 10px;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .command-button:hover {
        background-color: rgb(210, 208, 206);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    }

    .command-button i {
        margin-right: 8px;
        font-size: 16px;
    }

    .command-button:active {
        background-color: #dcdcdc;
    }

    .command-button:last-child {
        margin-right: 0;
    }

/* End - Command Bar Styling */

/* Start - Form Styling */

.form-section-container {
    flex: auto;
    background-color: #fff;
    padding: 5px 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

    .form-section-container:last-child {
        margin-right: 0px;
    }

.form-title-container {
    padding: 5px;
    border-bottom: solid 1px #ccc;
    margin-bottom: 10px;
}

.form-title {
    font-size: 1.2em;
    font-weight: bold;
}

/* End - Form Styling */

/* Start - styles for loader Icon*/
/* Overlay for background */
.loader-overlay {
    display: none; /* Hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 99999; /* Ensures it appears on top */
    justify-content: center;
    align-items: center;
}

/* Spinner style */
.loader {
    border: 8px solid #f3f3f3; /* Light gray background */
    border-top: 8px solid #125A97; /* Blue color for the spinning effect */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Animation for spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* End - Styles for loader icon*/

/* Start - Success Notification Styling */

body {
    position: relative;
}

.notification {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    padding: 10px 15px;
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: top 0.5s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
}

    .notification i {
        margin-right: 10px;
        font-size: 1.5em;
    }

    .notification.visible {
        top: 40px;
    }

#notificationMessage {
    margin-bottom: 0px !important;
}

.hidden {
    display: none;
}

/* End - Success Notification Styling */

/* Start - Tag Styling */

.tag-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.tag-input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

/* Dropdown */
.tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    margin: 0px 10px;
}

.tag-dropdown-item {
    padding: 10px;
    cursor: pointer;
}

    .tag-dropdown-item:hover {
        background-color: #f0f0f0;
    }

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag {
    background-color: #0f6cbd;
    color: white;
    padding: 5px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

    .tag .remove {
        margin-left: 5px;
        cursor: pointer;
        font-weight: bold;
    }

/* End - Tag Styling */

#sidebar.collapsed .jpsIdText {
    display: none;
}

.jpsIdText {
    color: #FFF;
    text-align: center;
    display: block;
}

.timeline-block {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 3px;
    border-radius: 0px;
    margin-top: 2px;
    border: solid 1px #ccc;
}

.timeline-header {
    padding: 2px 2px;
    border-bottom: solid 1px #ccc;
}

    .timeline-header small {
        color: midnightblue;
        font-weight: bold;
    }

.timeline-content {
    padding: 10px 2px;
    min-height: 42px;
    border-bottom: solid 1px #ccc;
}

.timeline-footer {

}

/* Start - Home Page Tile */

.home-tile {
    flex: 1;
    min-height: 400px;
    margin: 10px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
/* End - Start Home Page Tile */

.collapsibleTr {
    cursor: pointer;
    background-color: #f9f9f9;
}

.contentTr {
    display: none;
    background-color: #f1f1f1;
}

/* Add hover effect on the entire row */
tr.clickable-row:hover {
    background-color: #f1f1f1; /* Light background color on hover */
    cursor: pointer; /* Change cursor to pointer */
}

/* Add hover effect on the anchor link */
tr.clickable-row .edit-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the color from parent */
}

    tr.clickable-row .edit-link:hover {
        color: #007bff; /* Change color on hover to blue (or any color you prefer) */
    }

.main-searchbar {
    display: flex;
}

.main-search-input {
    width: 70%;
    display: flex;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    align-items: center;
    padding: 0px 12px 0px 0px;
}

    .main-search-input input {
        border: none !important;
    }

.main-search-columnfilter {
    padding-right: 5px;
    height: 35px;
    margin-bottom: 10px;
    margin-left: 5px;
}

    .main-search-columnfilter select {
        width: 100%;
        height: 100%;
        margin-left: 5px;
        border-radius: 5px;
        border-color: #FFFF;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

.secondary-search-pills {
    padding: 5px 0px;
    margin-bottom: 5px;
}

.badge-pill {
    background: #f0f2f5;
    font-size: 12px;
    border-radius: 10px;
    padding: 7px 17px;
    color: #54656f;
    border: solid 1px;
    cursor: pointer;
}

    .badge-pill.active {
        background: #008069;
        color: #FFF;
        border-color: #999;
    }

.table-wrapper {
    max-height: 400px; /* Set a max height for the table container */
    overflow-y: auto; /* Enable vertical scrolling */
    display: block; /* Ensure the wrapper is a block element */
    width: 100%; /* Make sure it takes up the full width of the parent */
}

table {
    width: 100%; /* Ensure the table takes up the full width of the wrapper */
    border-collapse: collapse; /* Optional: to collapse borders between cells */
}

th, td {
    width: 10%;
    padding: 8px;
    text-align: left; /* Align text to the left */
}

.lbl_paginatorStatus {
    line-height: 40px;
}

.main-searchbar .add-new-link {
    margin-left: 5px;
    font-size: 16px;
    line-height: 36px;
    padding: 0 10px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.command-bar-secondary {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

    .command-bar-secondary button {
        background-color: #0078d4;
        color: white;
        border: none;
        padding: 5px 10px;
        margin-right: 5px;
        border-radius: 2px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.2s;
    }

        .command-bar-secondary button:hover {
            background-color: #005a9e;
        }

        .command-bar-secondary button i {
            margin-right: 5px;
        }

.cmd-dropdown {
    position: relative;
    display: inline-block;
}

    .cmd-dropdown button, .cmd-dropdown a {
        background-color: #0078d4;
        color: white;
        border: none;
        padding: 5px 10px;
        margin-right: 5px;
        border-radius: 2px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.2s;
        text-decoration: none;
    }

        .cmd-dropdown button:hover {
            background-color: #005a9e;
        }

.cmd-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .cmd-dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .cmd-dropdown-content a:hover {
            background-color: #f1f1f1;
        }

.cmd-dropdown:hover .cmd-dropdown-content {
    display: block;
}