﻿:root {
    --menu-background-color: black;
    --menu-hover-color: grey;
    --base-bs-body-bg: grey;
    --content-bs-body-bg: white;
    --editControl-bg: antiquewhite;
    --btn-border-color: black;
    --datepicker-background-color: #c3d7ee;
}

/* Dark mode override */
html[data-bs-theme="dark"] {
    --base-bs-body-bg: grey;
    --content-bs-body-bg: #1E1E1E;
    --editControl-bg: #524C44;
    --btn-border-color: grey;
    --datepicker-background-color: var(--base-bs-body-bg);
}

html[data-bs-theme="light"] {
    --bs-body-bg: var(--base-bs-body-bg)
}

/* Override body text color for dark theme */
html[data-bs-theme="dark"] {
    --bs-body-bg: var(--base-bs-body-bg)
}

html[data-bs-theme="light"] .body-content {
    --bs-body-bg: var(--content-bs-body-bg);
    background-color: var(--content-bs-body-bg);
}

html[data-bs-theme="dark"] .body-content {
    --bs-body-bg: var(--content-bs-body-bg);
    background-color: var(--content-bs-body-bg);
}

.editControl:not([disabled]):not([readonly]),
.searchText:not([disabled]):not([readonly]) {
    background-color: var(--editControl-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

.editControl:disabled,
.editControl[readonly] {
    background-color: var(--bs-secondary-bg) !important;
    color: var(--bs-secondary-color) !important;
    border-color: var(--bs-border-color) !important;
}

/*Possible Gradient Bar form the search bar but looks out of place without doing upgrades on whole site.*/
/*html[data-bs-theme="light"] .gradientBar {
    border-radius: .5rem;
    border: 1px solid #4a4a4a;*/ /* dark grey border */
/*background: radial-gradient( 120% 100% at 50% 0%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.14) 30%, rgba(255,255,255,0.06) 55%, rgba(255,255,255,0.00) 56% ), linear-gradient( 180deg, #d9d9de 0%, #bfc2c8 40%, #8e939b 100% );
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.25);
}

html[data-bs-theme="dark"] .gradientBar {
    border-radius: .5rem;
    border: 1px solid #3a3a3a;
    background: radial-gradient( 120% 100% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0) 56% ), linear-gradient( 180deg, #4a4a4a 0%, #383838 40%, #252525 100% );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.45);
}*/

body {
    font-family: Aptos, "Segoe UI", Arial, Times, Times New Roman, sans-serif;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 95% !important;
    min-height:500px;
    padding-bottom:10px;
}

.searchRow {
    padding: 14px;
}

.pagerRow {
    margin-top: 25px;
}

/* Entire datepicker container */
.datepicker {
    background-color: var(--datepicker-background-color) !important; /* your .site-background-color */
    /*   border: none !important;
    box-shadow: none !important;*/
}

    /* Header and navigation buttons */
    .datepicker .datepicker-switch,
    .datepicker .prev,
    .datepicker .next {
        background-color: var(--datepicker-background-color) !important;
    }

    /* Calendar cells and headers */
    .datepicker table {
        background-color: var(--datepicker-background-color) !important;
    }

        .datepicker table tr th,
        .datepicker table tr td {
            background-color: var(--datepicker-background-color) !important;
        }

    /* Today / clear footer */
    .datepicker tfoot tr th {
        background-color: var(--datepicker-background-color) !important;
    }

    /* Selected day */
    .datepicker table tr td span.active,
    .datepicker table tr td.active
    /*,.datepicker table tr td.active:hover*/ {
        background-color: var(--bs-secondary-bg) !important;
        color: var(--bs-danger) !important;
    }

    /*Day*/
    .datepicker table tr td.day {
        color: var(--bs-dropdown-color);
    }

    .datepicker table tr td.old, .datepicker table tr td.new {
        color: var(--editControl-bg);
    }

    /* Hover effect */
    .datepicker table tr td span.year:hover,
    .datepicker table tr td span.month:hover,
    .datepicker table tr td.day:hover {
        background-color: var(--content-bs-body-bg) !important; /* #a4c8ec !important;*/
    }

.layoutTitleRow {
    margin-bottom: 0px;
    margin-right: 0;
}

.footerRow {
    margin-right: 0;
}

.logo-styl {
    margin-bottom: 12px !important;
}

.header-bg {
    background-image: var(--brand-header-background);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.headerLogoLeft {
    flex: 0 0 auto; /* do not grow or shrink */
}

.header-logo {
    height: 96px;
}

.layoutLogoImage {
    margin-bottom: 12px !important;
    height: 60px;
}

.layoutApplicationTitleBackground-gradient {
    background: linear-gradient( to right, #000000 0%, #2B2B2B 25%, #7A7A7A 55%, #D0D0D0 80%, #FFFFFF 100% );
    /*background-image: url('/images/HeaderTitleBackground.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;*/
}

.layoutApplicationTitle {
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    flex: 1;
    text-align: center;
}

.layoutTitleDiv {
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    /*width: 800px;*/
    padding-top: 12px !important;
}

.layoutServerLocation {
    color: #fff;
    font-size: 24px;
}

.contactUsLayoutImage {
    height: 60px;
    width: 60px;
    border-width: 0px;
}

.contactUsLayoutDiv {
    padding-top: 12px !important;
}

.site-banner {
    height: 75px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    width: 55%;
    padding-top: 12px !important;
}

.site-title {
    padding-left: 100px;
    color: #fff;
    font-size: 36px;
}

#loading-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-spinner {
    display: block; /* Make the image a block-level element */
    margin: 0 auto; /* Center horizontally by setting left and right margins to auto */
    position: absolute; /* Position absolutely within the parent container */
    top: 50%; /* Move 50% down from the top of the parent container */
    left: 50%; /* Move 50% from the left of the parent container */
    transform: translate(-50%, -50%); /* Translate the image back by 50% of its own width and height */
    width: 200px;
}

.navbar {
    padding: 0px;
}

.li-nav {
    list-style: none !important;
}

    .li-nav:hover {
        list-style: none !important;
        background-color: var(--base-bs-body-bg) !important;
    }

.li-nav-parent {
    list-style: none !important;
}

    .li-nav-parent:hover, .li-inner1:hover {
        list-style: none !important;
        background-color: var(--base-bs-body-bg) !important;
    }

.li-nav:hover + .li-nav-parent {
    background-color: var(--base-bs-body-bg) !important;
}

.dropdown-submenu {
    list-style: none !important;
    position: relative;
    background-color: transparent;
    color: #fff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 16px;
    text-align: left;
    list-style: none;
}

.dropdown-submenu > .dropdown-menu {
    top: 30px !important;
    left: 0px !important;
    margin-top: -6px;
    margin-left: -1px !important;
    border: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    padding-left: 0px !important;
    padding-right: 25px !important;
    padding-top: 0px;
    color: #fff;
}
/*****************************************************/

.dropdown-submenu2 {
    position: relative;
    color: #fff;
}

.dropdown-menu2 {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 16px;
    text-align: left;
    list-style: none;
}

.dropdown-submenu2 > .dropdown-menu2 {
    top: 0px !important;
    left: 0px !important;
    background-color: green;
    margin-top: -6px;
    margin-left: -1px !important;
    border: none;
}

.dropdown-submenu2:hover > .dropdown-menu2 {
    display: block;
    padding-left: 0px !important;
    padding-right: 2px !important;
    padding-top: 5px;
    margin-left: 235px !important;
}

/*****************************************************/

.lnkClass {
    color: #fff;
    text-decoration-line: none;
    text-decoration-line: none;
    font-size: 18px;
    white-space: nowrap !important;
}

    .lnkClass:hover {
        color: inherit;
        text-decoration: none;
        text-decoration-line: none;
        white-space: nowrap !important;
    }

.lnkClassDark {
    color: #000;
    text-decoration-line: none;
    text-decoration-line: none;
    font-size: 18px;
    white-space: nowrap !important;
    padding-top: 4px !important;
}

    .lnkClassDark:hover {
        color: inherit;
        text-decoration: none;
        text-decoration-line: none;
        white-space: nowrap !important;
        cursor: pointer;
    }

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

.container {
    max-width: 100%;
}

input[type=text]:read-only, textarea:read-only {
    background-color: #e9ecef;
    opacity: 1;
}

.form-group {
    margin-top: 15px;
    margin-bottom: 15px;
}

.rowGroup {
    margin-top: 20px;
}

.smallRowGroup {
    margin-top: 10px;
}

.xSmallRowGroup {
    margin-top: 5px;
}

.tableRow {
    overflow-x: scroll !important;
}

th {
    white-space: nowrap;
}

.btn-paging {
    width: 42px;
}

.btn-w-auto {
    width: auto !important;
}

.btn-w-100 {
    width: 100px;
}

.btn-w-150 {
    width: 150px;
}

.btn-w-200 {
    width: 200px;
}

.btn-w-250 {
    width: 250px;
}

.btn-w-500 {
    width: 500px;
}

.btn {
    border-width: 1px;
    border-style: solid;
    border-color: var(--btn-border-color);
}

    .btn i.bi-filetype-csv,
    i.bi-filetype-xls,
    i.bi-filetype-xlsx {
        font-size: 1.4em;
        line-height: 1em;
    }

.searchText {
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
}

.selectSearchType {
    margin-left: 0px;
    margin-right: auto;
    border: solid 1px grey;
    font-size: 13px !important;
    padding-left: 5px;
    padding-right: 5px;
}

.largeCheckbox {
    transform: scale(2);
}

.mediumCheckbox {
    transform: scale(1.5);
}


/*TypeAhead*/
.tt-menu {
    background-color: var(--editControl-bg); /* Adjust the alpha value to control opacity */
    border: 1px solid #ccc; /* Add a border for separation */
    padding: 8px; /* Add padding for spacing */
}

.tt-suggestion:hover {
    color: blue;
    cursor: pointer;
}

.twitter-typeahead {
    display: block !important;
}

.validationError {
    color: red;
}
/*TypeAhead*/

/*SortHeader*/
div[id*="_grid"] th.sortHeader {
    color: var(--bs-link-color);
    cursor: pointer;
}

div[id*="_grid"] th.sortActive {
    color: red !important;
}

div[name*="_grid"] th.sortHeader {
    color: var(--bs-link-color);
    cursor: pointer;
}

div[name*="_grid"] th.sortActive {
    color: red !important;
}

.asc:before {
    content: "▲";
    padding-left: 5px;
}

.desc:before {
    content: "▼";
    padding-left: 5px;
}
/*SortHeader*/

/*Wizard Step Flow*/
.wizard-steps {
    display: flex;
    justify-content: space-between;
    font-size: x-large;
}

.wizard-step {
    padding: 10px;
}

.current-step {
    font-weight: bold;
    color: red;
}

.wizard-step-link {
    color: blue;
    cursor: default;
}

    .wizard-step-link:hover {
        color: green;
        cursor: pointer;
    }
/*Wizard Step Flow*/

.checkbox-inline {
    margin: 10px;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: var(--base-bs-body-bg);
}

.nav-tabs .nav-item .nav-link {
    border: 1px solid #8e8585;
    border-bottom: none;
}

.nav-tabs .nav-item .nav-link {
    border: 1px solid #8e8585;
    margin-right: 2px;
    border-bottom: none;
}

.tab-content {
    border-style: ridge;
}

.log-message-max-width {
    max-width: 800px; /* Set the maximum width as required */
    overflow: hidden; /* Hide any content that exceeds the max-width */
    white-space: nowrap; /* Prevent text from wrapping */
    text-overflow: ellipsis; /* Show ellipsis (...) for truncated text */
    padding: 8px; /* Optional: Add padding for spacing */
}

.flex-nowrap {
    white-space: nowrap;
}

.width-95percent {
    width: 95%;
}

/*Modal CSS*/
.applicationModal .modal-header {
    background-color: var(--base-bs-body-bg);
}

#deleteConfirmModal .modal-dialog {
    max-width: 75%;
    width: auto;
}

#deleteConfirmData {
    width: auto; /* Let it grow naturally */
    max-width: 100%; /* Cap the width to 100% of the modal */
    overflow-x: auto; /* Horizontal scroll if content exceeds modal width */
    padding: 15px;
}

.download-dropdown {
    background-color: white !important; /* Ensures background is white */
    border: 1px solid #ddd; /* Light border for visibility */
    padding: 5px; /* Small padding */
    min-width: auto; /* Prevents Bootstrap default width */
    width: fit-content; /* Matches button width */
}

.download-dropdown li {
    list-style: none; /* Removes default bullet points */
    padding: 2px 0; /* Small vertical spacing */
}

.download-dropdown li:not(:last-child) {
    margin-bottom: 5px; /* Adds spacing between buttons */
}


/*Allow Email Modal to Work even when opening inside another modal */
.modal.second-modal {
    z-index: 1070 !important; /* above the first modal */
}

.modal-backdrop.second-backdrop {
    z-index: 1065 !important; /* between the first and second modal */
}

.btn-all {
    min-width: 65px;
}

.json-document {
    border: 1px solid #aaa;
}

.img-w-100 { 
    width: 100px;
}

.img-w-150 {
    width: 150px;
}

.img-w-200 {
    width: 200px;
}