html {
    font-size: 14px !important;
}
input {
    font-size: 14px !important;
    height: 32px !important;
}
::placeholder {
    font-style: italic !important;
    color: #B3B3B3 !important;
    font-size: 14px !important;
}

.input-group-text {
    display: flex;
    align-items: center;
    height: 32px;
}

.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, body {
    height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: "Segoe UI", Roboto, Arial, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-Color: #f3f5f7 !important;
    color: #2a537d !important;
    min-width: 100% !important;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
    width: 100%;
    display: flex;
}

a {
    text-decoration: none !important;
    color: #2a537d !important;
    font-size: 14px !important;
    font-style: italic !important;
}

a:hover {
    text-decoration: none !important;
    color: #2a537d !important;
}

.center-aligned {
    display: flex;
    justify-content: center;
}

.body-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.header {
    background-color: #2a537d;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    background-color: #a9b8c5;
    padding: 0;
}

.menu .nav {
    justify-content: flex-start;
    padding-left: 0;
}

.menu .nav-link {
    color: #000;
    margin: 0;
    padding: 15px;
    display: block;
}

.menu .nav-link.active {
    color: #000;
    background-color: #d4dce2;
    height: 100%;
    margin: 0;
    padding: 15px;
    border-radius: 0px;
}

.menu .nav-left-link {
    color: #000;
    margin: 0;
    padding: 15px;
    display: block;
}

.menu .nav-left-link.active {
    color: #000;
    background-color: #d4dce2;
    height: 100%;
    margin: 0;
    padding: 15px;
    border-radius: 10px;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.0rem !important;
    color: white !important;
    margin-left: 10px;
    text-decoration: none;
}

.dropdown-menu {
    background-color: #ffffff !important;
}

.dropdown .btn,
.dropdown .btn:focus,
.dropdown .btn:focus:not(:focus-visible),
.dropdown .btn:active {
    background-color: transparent !important;
    border-color: transparent !important;
}

.dropdown-item-no-highlight {
    display: block;
    width: 100%;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
    clear: both;
    font-weight: 400;
    color: #183853;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: var(--bs-dropdown-item-border-radius, 0);
}

.dropdown-menu .dropdown-item {
    color: #000;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background-color: #a9b8c5;
    color: #000;
}

.dropdown-menu .dropdown-item-no-highlight:hover,
.dropdown-menu .dropdown-item-no-highlight.active {
    background-color: transparent;
    color: #000;
}

.cursor-pointer {
    cursor: pointer !important;
}

.table-striped-custom thead th {
    font-style: normal !important;
    font-weight: bold;
    border-bottom: 0px;
    color: #4a628a;
}

.table-striped-custom tbody tr:nth-child(odd) {
    background-color: #ffffff; /* White */
    font-size: 16px;
}

.table-striped-custom tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Light gray */
    font-size: 16px;
}

.table-hover-custom tbody tr:hover {
    background-color: #e6f7ff !important; /* Light blue on hover */
}

.table-striped-custom tbody tr td {
    background-color: transparent !important; /* Ensures child cells don’t override */
}

.custom-hr {
    border-top: 2px solid #F0F0F0;
    border-bottom: 2px solid #F0F0F0;
    font-size: 16px;
    font-style: italic;
}

/* Loading Overlay - Fullscreen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* High z-index to stay on top */
    color: red
}

/* Spinner Container */
.loading-spinner {
    text-align: center;
}

.custom-spinner {
    color: #408AD2;
}

/* Loading Text */
.loading-text {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #408AD2;
}

.button-for-pages,
.button-for-lists,
.button-for-pages-to-add {
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-for-document-page {
    height: 32px;
    justify-content: center;
    align-items: center;
}

.button-for-document-page-induction {
    padding: 0rem 0.8rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 250px !important;
    width: auto !important;
    vertical-align: middle !important;
}

.button-for-pages {
    width: 100px !important;
    font-size: 14px !important;
}

.button-for-lists {
    width: 60px !important;
    font-size: 12px !important;
}

.button-for-pages-to-add {
    width: 120px !important;
    font-size: 14px !important;
}

.button-for-document-page {
    width: 215px !important;
    font-size: 18px !important;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    text-align: center;
    margin-top: 20px;
}

.icon-style {
    -webkit-text-stroke: 0.5px #606060;
    color: #606060;
}

.icon-normal   { font-size: 1.2rem !important; }
.icon-large    { font-size: 1.5rem !important; }
.icon-large-X  { font-size: 2.5rem !important; }
.icon-large-XX { font-size: 4.5rem !important; }

.mb-3.position-relative {
    display: flex;
    flex-direction: column;
    position: relative;
}

.validation-container {
    margin-top: 2px;
}

.page-card {
    margin: 8px auto;
    padding: 20px;
    width: 100%;
    min-height: auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    float: left;
}

.page-card-main,
.page-card-centering,
.page-card-aligningleft {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    min-height: 400px !important;
    background-color: #eaecf0;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.page-card-centering {
    margin: 40px auto;
}

.page-card-aligningleft {
    margin: 10px 0 40px 10px; /* top, right, bottom, left */
}

.page-dashboard-menu,
.page-settings-menu {
    padding-top: 10px;
    width: 139px !important;
    float: left;
}

.page-dashboard-menu {
    width: 148px !important;
}

.left-menu-row {
    height: 42px !important;
    font-size: 14px !important;
}

.modal-card {
    margin: 8px auto;
    padding: 20px;
    width: 100%;
    min-height: auto;
    max-height: 90vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content {
    flex-grow: 1;
} 


.div-filter {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    background-color: #EBEBEB;
    min-width: 520px;
    display: none;
    position: absolute;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.div-filter > * {
    display: inline-block;
    margin-right: 10px;
}

.div-filter > *:last-child {
    margin-right: 0;
}

.a-no-border:hover,
.a-no-border:focus {
    border: none;
    text-decoration: none;
    outline: none;
}

.modal-footer-no-border {
    display: flex !important;
    gap: 10px;
    padding-left: 0px;
    padding-bottom: 0px;
    margin-bottom: -20px;
    padding-top: 30px;
    position: relative;
    align-items: center;
    bottom: 0;
}

.modal-footer-no-border button {
    display: inline-block;
}

.blocking-element {
    display: none;
}

.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1999 !important;
}

.form-label-bold,
.form-label {
    color: #183247 !important;
    font-size: 14px !important;
}

.form-label {
    font-weight: normal !important;
    font-style: italic !important;
}

.form-label-bold {
    font-weight: bold !important;
}

.form-control-checkbox {
    display: block;
    width: 20px !important;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.action-result-message-success,
.action-result-message-error {
    padding-top: 20px;
    padding-bottom: 5px;
    font-size: 14px;
    text-align: left !important;
    font-style: italic !important;
}

.action-result-message-success {
    color: #183247 !important;
}



.action-result-message-error {
    color: #d9544a !important;
}

.page-heading {
    font-size: 20px;
    color: #000;
    font-weight: bold
}

.disabled, .btn.disabled, .btn:disabled {
    background-color: #929292 !important;
    color: #ffffff !important;
    opacity: 10 !important;
    pointer-events: none; /* Keep it unclickable */
}

.disabled[data-bs-toggle="tooltip"] {
    pointer-events: auto !important; /* Enable hover for tooltip */
    cursor: not-allowed !important; /* Keep cursor in disabled style */
}

.tooltip {
    --bs-tooltip-bg: #333 !important;
    /* --bs-tooltip-color: #000 !important; */
}

.field-validation-valid {
    font-style: italic !important; /* Change to green */
}

.pointer {
    cursor: pointer;
}

.enabled-obj {
    color: black !important;
}

.disabled-obj {
    background-color: transparent !important;
    color: gray !important;
}

.scrollable-div {
    position: relative;
    width: 345px;
    height: 190px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: transparent;
    scrollbar-color: #607589 white;
}

.move-icon {
    color: #408ad2;
    cursor: pointer;
    transition: transform 0.2s;
}

.move-icon:hover {
    transform: scale(1.2);
}

/* Mobile Styles */
.mobile-header {
    display: none;
}

.logo img {
    height: 40px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -250px; /* Start hidden */
    width: 250px;
    height: 100vh;
    background-color: #d1d9e0;
    transition: left 0.3s ease-in-out;
    padding-top: 50px;
    z-index: 1000; /* Ensure it appears above everything */
}

.sign-out-mobile {
    color: white !important;
    text-decoration: none;
    font-size: 20px !important;
    font-weight: normal;
    padding: 5px 10px;
}

.mobile-menu a {
    display: block;
    padding: 15px;
    color: #2c5375;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu a:hover {
    background-color: #b3bbc6;
}

.menu-toggle {
    color: white;
    font-size: 24px;
    cursor: pointer;
    color: white;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.list-unstyled {
    padding-left: 0px;
}
.mark-required {
    font-weight: bolder;
    color: red;
    font-size: 14px
}
.field-row {
    background-color: white !important;
    padding-top: 10px !important;
    margin-bottom: 0 !important;
}
.field-col-label {
    padding-top: 3px !important;
}

.field-row-checkbox div {
    display: inline-block !important;
}
.page-heading-document {
    font-size: 18px;
    color: #000;
    font-weight: normal;
    border-bottom: 1px solid #000;
}
.business-row {
    padding-left: 15px;
    padding-top: 5px;
    gap: 5px;
}
.ui-datepicker .ui-state-active {
    background-color: #2a537d !important;
    color: white !important;
}


@media (max-width: 768px) {
    html {
        font-size: 14px !important;
    }

    input {
        font-size: 14px !important;
    }

    ::placeholder {
        font-style: italic !important;
        color: #B3B3B3 !important;
        font-size: 14px !important;
    }

    .desktop-info,
    .desktop-header,
    .menu {
        display: none !important;
    }
    .menu-toggle,
    .mobile-header {
        display: flex !important;
    }
    .mobile-header {
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .mobile-menu {
        display: block !important;
    }
    .page-card-centering,
    .page-card-aligningleft {
        margin: 0px !important;
        margin-left: -10px !important;
        padding: 0px !important;
    }
    .page-card {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
}
.image-container {
    max-height: 550px !important;
    overflow-y: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.image-container::-webkit-scrollbar {
    width: 18px;
}
.image-container::-webkit-scrollbar-thumb {
    background-color: #607589;
    border-radius: 5px;
}
.image-container::-webkit-scrollbar-track {
    background-color: #FFFFFF;
}
input[readonly],
input[readonly]:focus {
    background-color: #e9ecef;
    color: black;
    opacity: 1;
    border-color: #ced4da !important;
    box-shadow: none !important;
}