.html {
    font-size: 14px !important;
}
select, input {
    font-size: 14px !important;
    height: 37px !important;
}
input[type="text"] {
    border-radius: 8px;
    border: 1px solid #cfcfcf;
    outline: none;
    box-shadow: none;
}
::placeholder {
    font-style: normal !important;
    color: #B3B3B3 !important;
    font-size: 14px !important;
}

.input-group-text {
    display: flex;
    align-items: center;
    height: 37px;
}

.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: var(--bs-body-font-family);
    background-Color: var(--brand-white) !important;
    color: #000 !important;
    min-width: 100% !important;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none !important;
    color: #000 !important;
    font-size: 14px !important;
    font-style: normal !important;
}

a:hover {
    text-decoration: none !important;
}

th {
    font-weight: normal !important;
}
::-webkit-scrollbar {
    width: 18px;
}
::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-green);
}

.center-aligned {
    display: flex;
    justify-content: center;
}

.menu {
    background-color: var(--brand-green);
    padding: 0;
}

.internal-left-menu {
    padding-bottom: 10px !important;
    border-radius: 10px;
}


.menu .nav-left-link {
    color: #000000 !important;
    margin: 0;
    padding: 15px;
    padding-left: 0px;
    display: block;
    margin-left: 1px !important;
    margin-right: 1px !important;
    font-style: normal !important;
    font-size: var(--brand-item-menu) !important;
}

.menu .nav-left-link.active {
    color: var(--brand-menu-selected) !important;
    background-color: var(--brand-green);
    height: 100%;
    margin: 0;
    padding: 15px;
    padding-left: 0px;
    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 {
    font-style: normal !important;
    color: #000;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background-color: var(--brand-green);
    color: #fff !important;
}
.dropdown-menu::-webkit-scrollbar-track {
    background-color: #fff;
}

.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;
    border-bottom: 0px;
    color: #000;
    font-size: var(--brand-list-header) !important;
    font-weight: bold !important;
}

.table-striped-custom tbody tr {
    background-color: #ffffff;
    font-size: var(--brand-list-item);
}

.table-hover-custom tbody tr:hover > * {
    background-color: var(--brand-green) !important;
    color: #ffffff !important;
}

.table-striped-custom tbody tr td {
    background-color: transparent !important;
}

.custom-hr {
    border-top: 2px solid #F0F0F0;
    border-bottom: 2px solid #F0F0F0;
}

/* 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: 150px !important;
    font-size: 14px !important;
}

.button-for-document-page {
    width: 215px !important;
    font-size: 18px !important;
}
.page-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.footer {
    flex-shrink: 0;
    width: 100%;
    line-height: 26px;
    text-align: center;
    margin-top: auto;
}
.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-leftmenu {
    margin-top: -25px;
    margin-bottom: -10px;
}

.page-card-dashboard,
.page-card-internal,
.page-card {
    margin: 8px 0;
    padding: 20px;
    display: block;
    max-width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - var(--pagecard-offset));
    display: flex;
    flex-direction: column;
}
.internal-page-card {
    min-height: 50% !important;
}
.internal-page-card-half {
    min-height: calc(61.8vh - var(--pagecard-offset)) !important;
}
.page-card .table-responsive {
    height: 100%;
    overflow: auto;
}

.page-card-main,
.page-card-aligningleft {
    padding: 20px;
    width: 100%;
    max-width: 98%;
    background-color: var(--brand-gray-card);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.page-card-centered {
    padding: 20px;
    width: 100%;
    max-width: 1165px;
    background-color: var(--brand-gray-card);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 10px auto 40px auto;
    overflow: hidden;
}

.page-card-aligningleft {
    margin: 10px 0 40px 10px; /* top, right, bottom, left */
}

.page-dashboard-menu,
.page-settings-menu {
    padding-top: 10px;
    float: left;
}
.page-settings-box-area {
    width: 86%;
}

.page-dashboard-menu {
    width: 14% !important;
}
.page-settings-menu {
    width: 14% !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;
}

.page-card-footer,
.modal-footer-no-border {
    display: flex !important;
    gap: 10px;
    padding-left: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    padding-top: 30px;
    position: relative;
    align-items: center;
    bottom: 0;
}

.page-card-footer,
.modal-footer-no-border button {
    display: inline-block;
}

.page-card-footer {
    position: absolute !important;
    white-space: nowrap;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 35px;
    justify-content: flex-start !important;
}

.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: var(--brand-fontsize-form) !important;
}

.form-label {
    font-weight: normal !important;
    font-style: normal !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: normal !important;
}

.action-result-message-success {
    color: #183247 !important;
}

.action-result-message-error {
    color: #d9544a !important;
}

.page-heading {
    font-size: var(--brand-page-header) !important;
    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: normal !important;
    font-size: var(--brand-fontsize-form);
}

.pointer {
    cursor: pointer;
}

.enabled-obj {
    color: black !important;
}

.disabled-obj {
    background-color: transparent !important;
    color: gray !important;
}

.scrollable-div {
    position: relative;
    width: 100%;
    height: 190px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: transparent;
    scrollbar-color: var(--brand-green) white;
}

.move-icon::before {
    font-size: 18px;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor, 0 0.5px 0 currentColor, 0 -0.5px 0 currentColor;
}
.move-icon {
    color: #D4D4D4;
    cursor: pointer;
    transition: transform 0.2s;
}
.move-icon:hover {
    transform: scale(1.2);
}
.logo img {
    height: 30px;
    margin-left: 17px;
}
.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 td a:hover,
.ui-datepicker .ui-state-active {
    background-color: var(--brand-green) !important;
    color: #fff !important;
    border-color: var(--brand-green) !important;
}

/* Mobile Styles */
.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;
}
.sign-out-mobile {
    color: #000 !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;
}
.dashboard-container {
    display: flex;
    gap: 15px;
}
.page-card-dashboard {
    display: inline-block;
    min-height: 0px !important;
    width: 500px !important;
    height: 300px !important;
    flex-direction: column;
    padding: 20px;
}
.btn-custom-dashboard {
    width: 385px !important;
    height: 90px !important;
    font-size: 30px;
}
.card-dashboard-title {
    text-align: center;
    font-size: 25px;
    font-weight: normal;
    margin-top: 10px;
}
.card-dashboard-body {
    height: 120px;
    display: flex;
    font-size: 80px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
}
.card-dashboard-bottom {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-top: 10px;
}
.button-for-dashboard {
    width: 385px !important;
    height: 70px !important;
    font-size: 25px !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;
    }
    .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-centered,
    .page-card-aligningleft {
        margin: 0px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
        padding: 0px !important;
    }
    .page-card {
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
    .page-content {
        margin-bottom: 20px !important;
    }
    .user-icon {
        color: #000 !important;
    }
    .page-settings-box-area {
        width: 99%;
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
    .logo img {
        height: 25px;
    }
    .dashboard-container {
        flex-direction: column;
        align-items: center;
    }
    .page-card-dashboard {
        width: 100% !important;
        max-width: 100%;
        height: 230px !important;
    }
    .button-for-dashboard {
        width: 70% !important;
        height: 50px !important;
        font-size: 18px !important;
    }
    .card-dashboard-title {
        font-size: 18px;
    }
    .card-dashboard-body {
        font-size: 60px;
        height: 80px;
    }
}
.image-container {
    max-height: 550px !important;
    overflow-y: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
input[readonly],
input[readonly]:focus {
    background-color: #e9ecef;
    color: black;
    opacity: 1;
    border-color: #ced4da !important;
    box-shadow: none !important;
}
.td-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-content {
    display: flex;
    justify-content: flex-start;
}
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.toggle-switch input {
    display: none;
}
.slider {
    position: relative;
    width: 46px;
    height: 24px;
    background-color: #b6b6b6;
    border-radius: 24px;
    transition: background-color 0.2s ease;
}
.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.toggle-switch input:checked + .slider {
    background-color: var(--brand-green);
}
.toggle-switch input:checked + .slider::before {
    transform: translateX(22px);
}
.list-table-row {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
.form-row-space {
    margin-top: 15px !important;
}
.page-popup-header {
    font-size: var(--brand-page-header);
    color: #000;
    padding-bottom: 10px;
    font-weight: bold;
}
.disabled-link {
    color: #adb5bd;
    pointer-events: none;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.65;
}