html {
  font-size: 14px;
}

@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%;
}

body {
  margin-bottom: 60px;
}

/* Prevent double scrollbar: body should not scroll when .main-content handles it via PerfectScrollbar */
body.g-sidenav-show {
  overflow: hidden;
}

.g-sidenav-show .main-content {
  overflow-y: auto;
}
.inline-block {
    display:inline-block!important;
}
.float-right {
    float:right++
}
.float-left {
    float:left
}
.white-text {
    color: #fff!important;
    border: 1px solid!important;
}
.text-dark {
    color:#000!important;
}
select {
    width: 100%;
    padding: 9px;
    border: none;
    border-bottom: 1px solid #dcdcdc;
}
.alert-success {
    --bs-alert-color: #cdffcf;
    --bs-alert-bg: #dbefdc;
    --bs-alert-border-color: #c9e7cb;
}
/* Add this to your site.css or a separate CSS file */
#nprogress .bar {
    background: #29d; /* Change to your desired color */
}

/* Optional: Change the shadow color */
#nprogress .peg {
    box-shadow: 0 0 10px #29d, 0 0 5px #29d;
}
.scroll-card {
    max-height: 350px;
    overflow: auto;
}
.scroll-card-lg {
    max-height: 600px;
    overflow: auto;
}

.avatar-group .avatar {
    background: rgb(29 29 29 / 85%) !important;
}
`
.multisteps-form__progress button {
    cursor: default;
}
.text-align-center {
    text-align:center
}

@keyframes fadeHighlight {
    0% {
        background-color: #89b0fb;
    }

    100% {
        background-color: transparent;
    }
}

.modal.fade .modal-dialog {
    transform: translateY(-30px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.highlight {
    animation: fadeHighlight 3s ease-in-out;
}

.assign-member-consent {
    border: 2px dashed #89b0fb;
    padding:12px;
    border-radius:12px;
}

.progressbar-container {

}

.progressbar-container ul {
    list-style: none;
}

/* Modern toggle-like button styles */
.btn-group-toggle .btn {
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0.5rem; /* Rounded corners for a sleek look */
}

.btn-group-toggle .btn-check:checked + .btn {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

.btn-group-toggle .btn:hover {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #1976d2;
}

/* Progress List Styles */
.list-group-item {
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

    .list-group-item:last-child {
        border-bottom: none;
    }

.badge i {
    vertical-align: middle;
}
textarea {
    border-bottom: 1px solid #333;
}
#hrefSetRepresentative, .assigned-to-wrapper a {
    text-decoration: underline;
}

.assigned-to-wrapper {
    margin: 10px 0;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
}
.font-size-small {
    font-size: 8px;
}

.pr-20 {
    padding-right:20px
}
.pl-20 {
    padding-left:20px
}
.dropdown-toggle::after {
    display: none!important;
}
.dropdown-menu {
    z-index: 9991;
}
.mask {
    text-align: center;
    padding: 91px 0;
}
.icon-btn-shortcut {
    cursor: pointer;
    z-index: 99;
    position: absolute;
    left: 44%;
}
.icon-btn-shortcut span {
    padding: 10px 0;
    border: none;
    color: #fff;
    line-height: 1;
    font-weight: 300;
    margin: 0px -8px 0;
}
.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

.welcome-greeting {
    opacity: 0.1;
    position: absolute;
    top: 10%;
}
.txt-not-required {
    font-size:10px;
    color:#fff;
    padding: 8px;
}

/********* Notifications ***************/

/* Notification Styles */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
    min-height: 120px; /* Ensure a minimum height even when empty */
}

.unread-notification {
    background-color: rgba(233, 236, 239, 0.5);
    position: relative;
}

    .unread-notification:before {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        background-color: #0d6efd;
        border-radius: 50%;
        top: 16px;
        left: 10px;
    }

#notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    font-size: 0.6rem;
    padding: 3px 6px;
}

.nav-item.dropdown.pe-2 {
    position: relative;
}

/* Empty state styling */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    padding: 10px 0;
}

    .empty-state-container .material-icons {
        color: #d1d1d1;
        margin-bottom: 5px;
    }

/* Notification bell animation */
@keyframes bell-ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70%, 100% {
        transform: rotate(0);
    }
}

.fa-bell.new-notification {
    animation: bell-ring 1s ease;
    color: #0d6efd !important;
}

/* Toast styling */
.toast.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9999 !important;
}

.table-responsive {
    max-height: none !important
}

.table-responsive {
    max-height: none !important;
    overflow-y: hidden!important;
    overflow-x: auto;
}

.brand-logo-menu {
    object-fit:contain;
    height:150px!important;
}
.mr-23 {
    margin-right:23px;
}
.modal-debug {
    border: 2px solid red !important;
}

.modal-debug .modal-content {
    border: 2px solid blue !important;
}

.modal-debug .modal-header,
.modal-debug .modal-body,
.modal-debug .modal-footer {
    border: 1px dashed green !important;
}

/* ========================================
   Persistent Scrollbars - Always Visible
   Requested: UX Review 01 Oct 2025
   
   Fixes:
   - Scrollbars always visible (no fade on idle)
   - High contrast colors for better visibility
   - Works across Chrome, Edge, Safari, Firefox
   ======================================== */

/* ===========================================
   WebKit Browsers (Chrome, Safari, Edge)
   Force classic scrollbar style - NO overlay
   =========================================== */

/* Global scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background-color: #e8e8e8;
}

::-webkit-scrollbar-track {
    background-color: #e8e8e8;
    border-radius: 0;
    border: 1px solid #d0d0d0;
}

::-webkit-scrollbar-thumb {
    background-color: #888888;
    border-radius: 6px;
    border: 2px solid #e8e8e8;
    min-height: 40px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #555555;
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: #333333;
    }

::-webkit-scrollbar-corner {
    background-color: #e8e8e8;
}

/* ===========================================
   Firefox
   =========================================== */
* {
    scrollbar-width: auto; /* 'auto' shows standard width, 'thin' is narrower */
    scrollbar-color: #888888 #e8e8e8;
}

/* ===========================================
   Force HTML/Body to always show scrollbar
   Prevents layout shift and ensures visibility
   =========================================== */
html {
    overflow-y: scroll !important;
    overflow-x: auto;
}

/* ===========================================
   Target all scrollable containers
   =========================================== */
.scroll-card,
.scroll-card-lg,
.notification-list,
.modal-body,
.main-content,
.sidenav,
.navbar-collapse,
.card-body[style*="overflow"],
.card-body[style*="max-height"],
div[style*="overflow: auto"],
div[style*="overflow-y: auto"],
div[style*="overflow-x: auto"],
div[style*="overflow-y: scroll"],
div[style*="overflow-x: scroll"] {
    /* Ensure scrollbar always shows when content overflows */
    overflow: auto !important;
}

/* table-responsive: horizontal scroll only, never vertical (prevents double scrollbar) */
.table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Force vertical scrollbar on specific scrollable elements */
.scroll-card,
.scroll-card-lg,
.notification-list {
    overflow-y: scroll !important;
}

/* ===========================================
   Override PerfectScrollbar if being used
   (seen in settings.min.js)
   =========================================== */
.ps {
    overflow: auto !important;
}

.ps__rail-x,
.ps__rail-y {
    opacity: 1 !important;
    background-color: #e8e8e8 !important;
}

.ps__thumb-x,
.ps__thumb-y {
    background-color: #888888 !important;
    opacity: 1 !important;
}

.ps__thumb-y {
    width: 8px !important;
    right: 2px !important;
}

.ps__thumb-x {
    height: 8px !important;
    bottom: 2px !important;
}

/* ===========================================
   Dark theme support (if applicable)
   =========================================== */
.dark-version ::-webkit-scrollbar-track {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
}

.dark-version ::-webkit-scrollbar-thumb {
    background-color: #6b6b6b;
    border-color: #2d2d2d;
}

    .dark-version ::-webkit-scrollbar-thumb:hover {
        background-color: #8b8b8b;
    }

.dark-version * {
    scrollbar-color: #6b6b6b #2d2d2d;
}

.dark-version .ps__rail-x,
.dark-version .ps__rail-y {
    background-color: #2d2d2d !important;
}

.dark-version .ps__thumb-x,
.dark-version .ps__thumb-y {
    background-color: #6b6b6b !important;
}

.bg-gradient-dark {
    background-image: linear-gradient(195deg, #1f4893 0%, #191919 100%)!important;
}