/* MDB Replacement Styles for Bootstrap 5 */

/* Card shadows - z-depth-1 replacement */
.z-depth-1 {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
}

/* Wave effects - waves-effect replacement */
.btn.waves-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn.waves-effect:active {
    transform: scale(0.98);
}

.btn.waves-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn.waves-effect:active::after {
    width: 300px;
    height: 300px;
}

/* Floating action buttons - btn-floating replacement */
.btn-floating {
    box-shadow: 0 5px 11px 0 rgba(2, 53, 75, 0.18), 0 4px 15px 0 rgba(2, 53, 75, 0.15) !important;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    vertical-align: middle;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-floating i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    display: inline-block;
    width: inherit;
    text-align: center;
    color: #fff !important;
}

.btn-floating:hover {
    box-shadow: 0 8px 17px 0 rgba(2, 53, 75, 0.2), 0 6px 20px 0 rgba(2, 53, 75, 0.19) !important;
}

/* Rounded buttons - btn-rounded replacement */
.btn-rounded {
    border-radius: 2rem;
}

/* Material tooltip styling - material-tooltip-main replacement */
.material-tooltip-main {
    /* Bootstrap 5 tooltips will handle this */
}

/* MDB color utilities replacements */
.grey.lighten-4 {
    background-color: #f5f5f5 !important;
    color: #424242 !important;
}

.grey.lighten-3 {
    background-color: #eeeeee !important;
    color: #424242 !important;
}

.grey.lighten-2 {
    background-color: #e0e0e0 !important;
    color: #424242 !important;
}

.grey.lighten-1 {
    background-color: #bdbdbd !important;
    color: #424242 !important;
}

.grey {
    background-color: #9e9e9e !important;
    color: #fff !important;
}

/* Blue base color class - used for JavaScript toggling in FAQ/Service Message forms */
.blue {
    background-color: #2196f3 !important;
    color: #fff !important;
}

/* Border utilities */
.border-left-light {
    border-left: 1px solid #e0e0e0 !important;
}

.border-right-light {
    border-right: 1px solid #e0e0e0 !important;
}

.border-top-light {
    border-top: 1px solid #e0e0e0 !important;
}

.border-bottom-light {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Side navigation styling */
.side-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.side-nav.show {
    left: 0;
}

.side-nav-light {
    background-color: #fff;
    color: #333;
}

/* Custom side navigation styling to exactly match original MDB */
.offcanvas-start {
    width: 15rem !important;
    background-color: #fff !important;
    border: none !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1) !important;
    height: 100vh !important;
}

.offcanvas-start .offcanvas-body {
    padding: 0 !important;
    background-color: #fff !important;
    overflow-y: visible !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* Reset all Bootstrap 5 offcanvas styling */
.offcanvas-start * {
    box-sizing: border-box !important;
}

.luis-sidenav {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    height: 28px !important;
    line-height: 28px !important;
}

.luis-sidenav a {
    color: #02354B !important;
    text-decoration: none !important;
    display: block !important;
    padding: 0 20px !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    height: 28px !important;
    line-height: 28px !important;
    border-bottom: none !important;
    transition: background-color 0.3s ease !important;
    position: relative !important;
}

.luis-sidenav a:hover {
    color: #fff !important;
    background-color: #02354B !important;
    text-decoration: none !important;
}

.luis-sidenav a:focus {
    color: #fff !important;
    background-color: #02354B !important;
    text-decoration: none !important;
}

.luis-sidenav a i {
    margin-right: 8px !important;
    width: 20px !important;
    text-align: center !important;
    font-size: 16px !important;
    color: #02354B !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.luis-sidenav a:hover i {
    color: #fff !important;
}

.luis-sidenav a:focus i {
    color: #fff !important;
}

.luis-sidenav a:active,
.luis-sidenav a:focus:active {
    color: #fff !important;
    background-color: #02354B !important;
    text-decoration: none !important;
}

.luis-sidenav a:active i,
.luis-sidenav a:focus:active i {
    color: #fff !important;
}

.luis-divider {
    height: 1px !important;
    background-color: #e0e0e0 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Ensure dropdown-toggle with luis-sidenav class gets proper styling */
a.luis-sidenav,
a.dropdown-toggle.luis-sidenav {
    color: #02354B !important;
    text-decoration: none !important;
    display: block !important;
    padding: 0 20px !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    height: 28px !important;
    line-height: 28px !important;
    border-bottom: none !important;
    transition: background-color 0.3s ease !important;
    position: relative !important;
}

a.luis-sidenav:hover,
a.dropdown-toggle.luis-sidenav:hover {
    color: #fff !important;
    background-color: #02354B !important;
    text-decoration: none !important;
}

a.luis-sidenav i,
a.dropdown-toggle.luis-sidenav i {
    margin-right: 8px !important;
    width: 20px !important;
    text-align: center !important;
    font-size: 16px !important;
    color: #02354B !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

a.luis-sidenav:hover i,
a.dropdown-toggle.luis-sidenav:hover i {
    color: #fff !important;
}

a.luis-sidenav:focus,
a.dropdown-toggle.luis-sidenav:focus {
    color: #fff !important;
    background-color: #02354B !important;
    text-decoration: none !important;
}

a.luis-sidenav:focus i,
a.dropdown-toggle.luis-sidenav:focus i {
    color: #fff !important;
}

a.luis-sidenav:active,
a.luis-sidenav:focus:active,
a.dropdown-toggle.luis-sidenav:active,
a.dropdown-toggle.luis-sidenav:focus:active {
    color: #fff !important;
    background-color: #02354B !important;
    text-decoration: none !important;
}

a.luis-sidenav:active i,
a.luis-sidenav:focus:active i,
a.dropdown-toggle.luis-sidenav:active i,
a.dropdown-toggle.luis-sidenav:focus:active i {
    color: #fff !important;
}

/* Ensure parent li elements don't interfere with alignment */
li > a.luis-sidenav,
li > a.dropdown-toggle.luis-sidenav {
    margin: 0 !important;
}

/* Collapse dropdown styling to match original */
.luis-sidenav .dropdown-toggle,
a.dropdown-toggle.luis-sidenav {
    position: relative !important;
}

.luis-sidenav .dropdown-toggle::after,
a.dropdown-toggle.luis-sidenav::after {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-top: 5px solid #02354B !important;
    border-right: 5px solid transparent !important;
    border-left: 5px solid transparent !important;
    border-bottom: none !important;
    margin: 0 !important;
    vertical-align: middle !important;
    content: "" !important;
}

.luis-sidenav .dropdown-toggle:hover::after,
a.dropdown-toggle.luis-sidenav:hover::after {
    border-top-color: #fff !important;
}

.luis-sidenav .dropdown-toggle[aria-expanded="true"]::after,
a.dropdown-toggle.luis-sidenav[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

.luis-sidenav .collapse {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding-left: 0 !important;
}

.luis-sidenav .collapse .luis-sidenav {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.luis-sidenav .collapse .luis-sidenav {
    height: 28px !important;
    line-height: 28px !important;
}

/* Nested collapse items - must override .luis-sidenav a padding */
/* Apply to both collapsed and collapsing states to prevent alignment flash */
.collapse .luis-sidenav a,
.collapse.show .luis-sidenav a,
.collapsing .luis-sidenav a,
.luis-sidenav .collapse .luis-sidenav a,
.luis-sidenav .collapse.show .luis-sidenav a,
.luis-sidenav .collapsing .luis-sidenav a,
.offcanvas-start .collapse .luis-sidenav a,
.offcanvas-start .collapse.show .luis-sidenav a,
.offcanvas-start .collapsing .luis-sidenav a,
#searches .luis-sidenav a {
    padding-left: 40px !important;
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 1rem !important;
    color: #02354B !important;
    border-bottom: none !important;
    height: 28px !important;
    line-height: 28px !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    /* Ensure padding doesn't transition to prevent flash */
}

.luis-sidenav .collapse .luis-sidenav a:hover,
#searches .luis-sidenav a:hover,
.collapse .luis-sidenav a:hover,
.collapse.show .luis-sidenav a:hover,
.collapsing .luis-sidenav a:hover {
    color: #fff !important;
    background-color: #02354B !important;
}

.luis-sidenav .collapse .luis-sidenav a i,
#searches .luis-sidenav a i,
.collapse .luis-sidenav a i {
    font-size: 14px !important;
    color: #02354B !important;
    margin-right: 8px !important;
    width: 16px !important;
}

.luis-sidenav .collapse .luis-sidenav a:hover i,
#searches .luis-sidenav a:hover i,
.collapse .luis-sidenav a:hover i,
.collapse.show .luis-sidenav a:hover i,
.collapsing .luis-sidenav a:hover i {
    color: #fff !important;
}

.luis-sidenav .collapse .luis-sidenav a:active,
.luis-sidenav .collapse .luis-sidenav a:focus:active,
#searches .luis-sidenav a:active,
#searches .luis-sidenav a:focus:active,
.collapse .luis-sidenav a:active,
.collapse .luis-sidenav a:focus:active,
.collapse.show .luis-sidenav a:active,
.collapse.show .luis-sidenav a:focus:active,
.collapsing .luis-sidenav a:active,
.collapsing .luis-sidenav a:focus:active {
    color: #fff !important;
    background-color: #02354B !important;
}

.luis-sidenav .collapse .luis-sidenav a:active i,
.luis-sidenav .collapse .luis-sidenav a:focus:active i,
#searches .luis-sidenav a:active i,
#searches .luis-sidenav a:focus:active i,
.collapse .luis-sidenav a:active i,
.collapse .luis-sidenav a:focus:active i,
.collapse.show .luis-sidenav a:active i,
.collapse.show .luis-sidenav a:focus:active i,
.collapsing .luis-sidenav a:active i,
.collapsing .luis-sidenav a:focus:active i {
    color: #fff !important;
}

/* Remove any Bootstrap 5 list styling */
.offcanvas-start .list-unstyled {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.offcanvas-start .list-unstyled li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Button collapse styling */
.button-collapse {
    background: none;
    border: none;
    cursor: pointer;
}

/* Sidenav overlay */
#sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

/* Ensure proper spacing for Bootstrap 5 */
.btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Bootstrap 4 form-group spacing - maintain margin-bottom for backward compatibility */
.form-group {
    margin-bottom: 1rem;
}

/* Add spacing between labels and form controls when not wrapped in form-group */
label + .form-control,
label + .form-select,
label + input[type="text"],
label + input[type="date"],
label + input[type="email"],
label + input[type="number"],
label + textarea,
label + select {
    margin-top: 0.5rem;
}

/* Ensure labels have bottom margin for spacing */
label:not(.custom-control-label):not(.form-check-label) {
    margin-bottom: 0.25rem;
}

/* Maintain existing LUIS styling */
.luis-innav {
    background: none;
    border: none;
    color: inherit;
}

.luis-hidden-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Material Design Radio Button Styling - Hide native radio and use label pseudo-elements */
/* Remove default radio */
.form-check-input[type=radio]:not(:checked),
.form-check-input[type=radio]:checked {
    position: absolute !important;
    opacity: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 4px !important;
    cursor: pointer !important;
    z-index: 1 !important;
}

/* Disable Bootstrap 5 default radio appearance */
.form-check-input[type=radio] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

.form-check-input[type=radio] + label,
.form-check-input[type=radio] + .form-check-label,
label.btn input[type=radio] + label {
    position: relative !important;
    padding-left: 35px !important;
    cursor: pointer !important;
    display: inline-block !important;
    height: 1.5625rem !important;
    line-height: 1.5625rem !important;
    user-select: none !important;
    margin-bottom: 0 !important;
    transition: 0.28s ease !important;
}

/* Create radio button circles using ::before and ::after */
.form-check-input[type=radio] + label:before,
.form-check-input[type=radio] + label:after,
.form-check-input[type=radio] + .form-check-label:before,
.form-check-input[type=radio] + .form-check-label:after,
label.btn input[type=radio] + label:before,
label.btn input[type=radio] + label:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    margin: 4px !important;
    width: 16px !important;
    height: 16px !important;
    z-index: 0 !important;
    border-radius: 50% !important;
    transition: 0.28s ease !important;
}

/* Unchecked state - outer circle with grey border */
.form-check-input[type=radio]:not(:checked) + label:before,
.form-check-input[type=radio]:not(:checked) + label:after,
.form-check-input[type=radio]:not(:checked) + .form-check-label:before,
.form-check-input[type=radio]:not(:checked) + .form-check-label:after,
label.btn input[type=radio]:not(:checked) + label:before,
label.btn input[type=radio]:not(:checked) + label:after {
    border: 2px solid #5a5a5a !important;
}

/* Hide inner circle when unchecked */
.form-check-input[type=radio]:not(:checked) + label:after,
.form-check-input[type=radio]:not(:checked) + .form-check-label:after,
label.btn input[type=radio]:not(:checked) + label:after {
    transform: scale(0) !important;
}

/* Checked state - outer circle with dark blue border, inner white circle */
.form-check-input[type=radio]:checked + label:before,
.form-check-input[type=radio]:checked + .form-check-label:before,
label.btn input[type=radio]:checked + label:before {
    border: 2px solid #02354B !important;
    background-color: #02354B !important;
}

.form-check-input[type=radio]:checked + label:after,
.form-check-input[type=radio]:checked + .form-check-label:after,
label.btn input[type=radio]:checked + label:after {
    border: none !important;
    background-color: #fff !important;
    transform: scale(0.35) !important;
}

/* Disabled unchecked state */
.form-check-input[type=radio]:disabled:not(:checked) + label:before,
.form-check-input[type=radio]:disabled:not(:checked) + .form-check-label:before,
label.btn input[type=radio]:disabled:not(:checked) + label:before {
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.46) !important;
}

/* Disabled checked state */
.form-check-input[type=radio]:disabled:checked + label:before,
.form-check-input[type=radio]:disabled:checked + .form-check-label:before,
label.btn input[type=radio]:disabled:checked + label:before {
    border-color: rgba(0, 0, 0, 0.46) !important;
}

.form-check-input[type=radio]:disabled:checked + label:after,
.form-check-input[type=radio]:disabled:checked + .form-check-label:after,
label.btn input[type=radio]:disabled:checked + label:after {
    background-color: rgba(0, 0, 0, 0.46) !important;
    border-color: #BDBDBD !important;
}

/* Remove leading space from form-check containers */
.form-check {
    margin-bottom: 0;
    padding-left: 0;
}

.form-check-label {
    margin-bottom: 0;
    padding-left: 0;
    cursor: pointer;
}

/* Ensure proper spacing for inline radio buttons */
.d-flex .form-check {
    margin-right: 0;
}

/* Fix DataTables horizontal scrolling for Bootstrap 5 */
.dataTables_wrapper {
    width: 100%;
    /* Remove overflow-x: auto - only apply when viewport is narrow */
    overflow-x: hidden; /* Hide overflow by default */
}

.dataTables_scrollHead {
    overflow-x: hidden !important; /* Hide horizontal scroll on header scroll container */
    overflow-y: hidden !important;
    width: 100%;
}

.dataTables_scrollBody {
    overflow-x: hidden !important; /* Hide horizontal scroll on body scroll container */
    overflow-y: auto; /* Keep vertical scroll */
    width: 100%;
}

/* Ensure DataTables table maintains proper width */
.dataTables_scrollBody table,
.dataTables_scrollHead table {
    width: 100%;
    /* Remove min-width - only apply when viewport is narrow */
}

/* Fix Bootstrap 5 DataTables styling */
.table-responsive {
    overflow-x: auto; /* This is fine - only applies when .table-responsive class is used */
}

/* Ensure proper DataTables container styling */
.dataTables_wrapper .dataTables_scroll {
    overflow-x: hidden !important; /* Hide horizontal scroll on inner scroll containers */
    overflow-y: hidden;
    width: 100%;
}

.dataTables_wrapper .dataTables_scroll .dataTables_scrollBody {
    overflow-x: hidden !important; /* Hide horizontal scroll on nested scroll body */
    overflow-y: auto; /* Keep vertical scroll */
    width: 100%;
}

/* Responsive horizontal scrollbar - show when needed, hide when table fits */
#list_wrapper {
    /* Remove overflow-x: auto - only apply when viewport is narrow */
    overflow-x: hidden; /* Hide overflow by default */
    width: 100%;
    margin: 0;
    padding: 0;
    /* Ensure wrapper doesn't force scrollbar when content fits */
    max-width: 100%;
}

#list_wrapper .dataTables_scroll {
    overflow-x: hidden !important; /* Hide horizontal scroll on DataTables scroll wrapper */
    overflow-y: hidden; /* Vertical scroll handled by scrollBody */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure the scroll container inner elements allow overflow when needed */
#list_wrapper .dataTables_scroll .dataTables_scrollHeadInner,
#list_wrapper .dataTables_scroll .dataTables_scrollBodyInner {
    width: 100%;
    /* Only apply min-width when viewport is narrow - use media query */
    overflow-x: visible; /* Allow content to overflow for parent scrollbar */
}

/* Use media query to only apply min-width when viewport is narrow */
@media (max-width: 900px) {
    #list_wrapper .dataTables_scroll .dataTables_scrollHeadInner,
    #list_wrapper .dataTables_scroll .dataTables_scrollBodyInner {
        min-width: 900px; /* Only apply min-width when viewport is narrow */
    }
    
    .dataTables_scrollBody table,
    .dataTables_scrollHead table {
        min-width: 900px; /* Only apply min-width when viewport is narrow */
    }
}

/* Ensure table maintains proper width - allow responsive shrinking */
/* When viewport is wide, table uses 100% width with fixed column percentages */
/* When viewport is narrow, table maintains minimum width and shows scrollbar */
#list {
    width: 100%;
    /* Remove min-width - let table shrink naturally */
    table-layout: fixed;
    box-sizing: border-box;
}

/* Only apply min-width when viewport is narrow */
@media (max-width: 600px) {
    #list {
        min-width: 600px; /* Minimum width to ensure columns don't get too cramped */
    }
}

/* Ensure table cells wrap content properly to prevent column overflow */
#list td,
#list th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}

/* Ensure DataTables wrapper doesn't add extra width */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 0;
    padding: 0;
}

/* DataTables filter styling - label inline with input, vertically aligned with buttons */
.dataTables_filter {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 2.5rem !important;
}

.dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.dataTables_filter label > * {
    vertical-align: middle !important;
}

.dataTables_filter input[type="search"] {
    display: inline-block !important;
    border-radius: 0.375rem !important;
    margin-left: 0.5rem !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Prevent any DataTables internal elements from causing overflow */
.dataTables_wrapper * {
    box-sizing: border-box;
}

/* Fix Bootstrap 5 form-select visibility */
.form-select {
    display: block !important;
    width: 100%; /* Allow width utilities like w-50 to override */
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    appearance: none !important;
}

.form-select:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Allow luis-tag-* classes to override form-select background color */
.form-select[class*="luis-tag-"] {
    background-color: inherit !important;
}

/* Apply luis-tag-* background colors to form-select */
.form-select.luis-tag-White {
    background-color: #fff !important;
    color: #343a40 !important;
}

.form-select.luis-tag-Red {
    background-color: #f00 !important;
    color: #fff !important;
}

.form-select.luis-tag-Pink {
    background-color: #FF8080 !important;
    color: #343a40 !important;
}

.form-select.luis-tag-Orange {
    background-color: #ffa500 !important;
    color: #343a40 !important;
}

.form-select.luis-tag-Yellow {
    background-color: #FFFF00 !important;
    color: #343a40 !important;
}

.form-select.luis-tag-Brown {
    background-color: #964B00 !important;
    color: #fff !important;
}

.form-select.luis-tag-Blue {
    background-color: #88f !important;
    color: #fff !important;
}

.form-select.luis-tag-Green {
    background-color: #8f8 !important;
    color: #fff !important;
}

.form-select.luis-tag-Purple {
    background-color: #808 !important;
    color: #fff !important;
}

.form-select.luis-tag-Black {
    background-color: #000 !important;
    color: #fff !important;
}

.form-select.luis-tag-Spearmint {
    background-color: #73c1b1 !important;
    color: #343a40 !important;
}

.form-select.luis-tag-Grey {
    background-color: #404040 !important;
    color: #e0e0e0 !important;
}

.form-select.luis-tag-LightPink {
    background-color: #ffddf4 !important;
    color: #343a40 !important;
}

.form-select.luis-tag-LightPurple {
    background-color: #d0bdf0 !important;
    color: #343a40 !important;
}

.form-select.luis-tag-LightBlue {
    background-color: #bbf !important;
    color: #343a40 !important;
}

.form-select.luis-tag-DarkBlue {
    background-color: #00f !important;
    color: #fff !important;
}

.form-select.luis-tag-LightGreen {
    background-color: #bfb !important;
    color: #343a40 !important;
}

.form-select.luis-tag-DarkGreen {
    background-color: #006400 !important;
    color: #fff !important;
}

.form-select.luis-tag-MintGreen {
    background-color: #98ff98 !important;
    color: #000 !important;
}

.form-select.luis-tag-Lilac {
    background-color: #c8a2c8 !important;
    color: #000 !important;
}

.form-select.luis-tag-Shrimp {
    background-color: #f7c7a9 !important;
    color: #000 !important;
}

.form-select.luis-tag-Violet {
    background-color: #260451 !important;
    color: #fff !important;
}

.form-select.luis-tag-Mauve {
    background-color: #cc99ff !important;
    color: #000 !important;
}

/* Material Design Checkbox Styling - Hide native checkbox and use label pseudo-elements */
/* Remove default checkbox - keep it clickable but invisible */
.form-check-input[type=checkbox]:not(:checked),
.form-check-input[type=checkbox]:checked {
    position: absolute !important;
    opacity: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    margin-left: 0 !important;
    cursor: pointer !important;
    z-index: 1 !important;
}

/* Also hide checkbox inputs without form-check-input or custom-control-input class */
[type=checkbox]:not(.form-check-input):not(.custom-control-input):not(:checked),
[type=checkbox]:not(.form-check-input):not(.custom-control-input):checked {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Disable Bootstrap 5 default checkbox appearance */
.form-check-input[type=checkbox] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

.form-check-input[type=checkbox] + label,
.form-check-input[type=checkbox] + .form-check-label,
label.btn input[type=checkbox] + label {
    position: relative !important;
    padding-left: 35px !important;
    cursor: pointer !important;
    display: inline-block !important;
    height: 1.5625rem !important;
    line-height: 1.5625rem !important;
    user-select: none !important;
    margin-bottom: 0 !important;
}

/* Create checkbox box using ::after for background (unchecked = transparent, checked = dark blue) */
.form-check-input[type=checkbox] + label:after,
.form-check-input[type=checkbox] + .form-check-label:after,
label.btn input[type=checkbox] + label:after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    background-color: transparent !important;
    border: 2px solid #02354B !important;
    border-radius: 0.25rem !important;
    z-index: 0 !important;
    transition: 0.2s !important;
    box-sizing: border-box !important;
}

/* Unchecked state - empty box with border only */
.form-check-input[type=checkbox]:not(:checked) + label:after,
.form-check-input[type=checkbox]:not(:checked) + .form-check-label:after,
label.btn input[type=checkbox]:not(:checked) + label:after {
    background-color: transparent !important;
    border: 2px solid #02354B !important;
    width: 18px !important;
    height: 18px !important;
}

/* Checked state - filled dark blue background */
.form-check-input[type=checkbox]:checked + label:after,
.form-check-input[type=checkbox]:checked + .form-check-label:after,
label.btn input[type=checkbox]:checked + label:after {
    background-color: #02354B !important;
    border: 2px solid #02354B !important;
}

/* Hide ::before for unchecked state */
.form-check-input[type=checkbox]:not(:checked) + label:before,
.form-check-input[type=checkbox]:not(:checked) + .form-check-label:before,
label.btn input[type=checkbox]:not(:checked) + label:before {
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    transform: scale(0) !important;
    opacity: 0 !important;
}

/* Disabled unchecked state */
.form-check-input[type=checkbox]:not(:checked):disabled + label:before,
.form-check-input[type=checkbox]:not(:checked):disabled + .form-check-label:before,
label.btn input[type=checkbox]:not(:checked):disabled + label:before {
    border: none !important;
    background-color: #BDBDBD !important;
}

/* Checked state - dark blue background with white checkmark */
/* Use ::after for the background box */
.form-check-input[type=checkbox]:checked + label:after,
.form-check-input[type=checkbox]:checked + .form-check-label:after,
label.btn input[type=checkbox]:checked + label:after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    background-color: #02354B !important;
    border: 2px solid #02354B !important;
    border-radius: 0.25rem !important;
    z-index: 0 !important;
    transform: scale(1) !important;
}

/* Use ::before for the white checkmark - smaller and centered */
.form-check-input[type=checkbox]:checked + label:before,
.form-check-input[type=checkbox]:checked + .form-check-label:before,
label.btn input[type=checkbox]:checked + label:before {
    content: "" !important;
    position: absolute !important;
    top: 6px !important;
    left: 4px !important;
    width: 5px !important;
    height: 9px !important;
    border-top: 2px solid transparent !important;
    border-left: 2px solid transparent !important;
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
    transform: rotateZ(37deg) !important;
    backface-visibility: hidden !important;
    transform-origin: 100% 100% !important;
    z-index: 1 !important;
}

/* Disabled checked state */
.form-check-input[type=checkbox]:checked:disabled + label:after,
.form-check-input[type=checkbox]:checked:disabled + .form-check-label:after,
label.btn input[type=checkbox]:checked:disabled + label:after {
    background-color: #BDBDBD !important;
    border-color: #BDBDBD !important;
}

.form-check-input[type=checkbox]:checked:disabled + label:before,
.form-check-input[type=checkbox]:checked:disabled + .form-check-label:before,
label.btn input[type=checkbox]:checked:disabled + label:before {
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
}

/* Indeterminate state */
.form-check-input[type=checkbox]:indeterminate + label:before,
.form-check-input[type=checkbox]:indeterminate + .form-check-label:before,
label.btn input[type=checkbox]:indeterminate + label:before {
    top: -11px !important;
    left: -12px !important;
    width: 10px !important;
    height: 1.375rem !important;
    border-top: none !important;
    border-left: none !important;
    border-right: 2px solid #02354B !important;
    border-bottom: none !important;
    transform: rotate(90deg) !important;
    backface-visibility: hidden !important;
    transform-origin: 100% 100% !important;
}

/* Disabled indeterminate state */
.form-check-input[type=checkbox]:indeterminate:disabled + label:before,
.form-check-input[type=checkbox]:indeterminate:disabled + .form-check-label:before,
label.btn input[type=checkbox]:indeterminate:disabled + label:before {
    border-right: 2px solid #BDBDBD !important;
}

/* Fix color swatches in Approved Tags table to display in blocks of 3 with wrapping */
/* Bootstrap 4 displays them horizontally in groups of 3, Bootstrap 5 needs proper float behavior */
/* Target only color swatches in table cells */
td .clearfix > .float-left.px16-px16 {
    margin-right: 2px !important; /* Add small spacing between swatches (override m-0) */
    margin-bottom: 2px !important; /* Add spacing for wrapping (override m-0) */
    display: block !important; /* Required for float to work properly */
    float: left !important; /* Ensure float is applied */
}









.grey.lighten-4 {
    background-color: #f5f5f5 !important;
    color: #424242 !important;
}

.blue.lighten-4 {
    background-color: #bbdefb !important;
    color: #424242 !important;
}

.chip {
    display: inline-block;
    height: 32px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    line-height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    background-color: #eceff1;
    margin-bottom: 1rem;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s linear;
}

    .chip:hover {
        transition: all 0.3s linear;
        background-color: #e0e0e0;
    }

    .chip:focus {
        transition: all 0.3s linear;
        background-color: #bdbdbd;
    }

    .chip:active {
        transition: all 0.3s linear;
    }

    .chip img {
        float: left;
        margin: 0 8px 0 -12px;
        height: 32px;
        width: 32px;
        border-radius: 50%;
    }

    .chip .close {
        cursor: pointer;
        float: right;
        font-size: 16px;
        line-height: 32px;
        padding-left: 8px;
        transition: all 0.1s linear;
    }

.chips {
    outline: none;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #ced4da;
    margin-bottom: 30px;
    min-height: 45px;
    padding-bottom: 1rem;
    transition: all 0.3s;
}

    .chips.focus {
        border-bottom: 1px solid #02354B;
        box-shadow: 0 1px 0 0 #02354B;
    }

    .chips:hover {
        cursor: text;
    }

    .chips .tag.selected {
        border-bottom: 1px solid #02354B;
        color: #fff;
    }

    .chips .input {
        display: inline-block;
        background: none;
        border: 0;
        outline: 0;
        padding: 0 !important;
        width: 120px !important;
        color: rgba(0, 0, 0, 0.6);
        font-size: 13px;
        font-weight: 500;
        height: 32px;
        margin-right: 20px;
        line-height: 32px;
    }

        .chips .input:focus {
            border: 0 !important;
            box-shadow: none !important;
        }

/* MDB Pagination styles */
.pagination {
    flex-wrap: wrap !important;
}

.pagination .page-item.active .page-link {
    box-shadow: 0 2px 5px 0 rgba(2, 53, 75, 0.16), 0 2px 10px 0 rgba(2, 53, 75, 0.12);
    transition: all 0.2s linear;
    border-radius: 0.125rem;
    background-color: #02354B;
    color: #fff;
}

.pagination .page-item.active .page-link:hover {
    background-color: #02354B;
}

.pagination .page-item.disabled .page-link {
    color: #868e96;
}

.pagination .page-item .page-link {
    transition: all 0.3s linear;
    outline: 0;
    border: 0;
    background-color: transparent;
    font-size: 0.9rem;
    color: #212529;
}

.pagination .page-item .page-link:hover {
    transition: all 0.3s linear;
    border-radius: 0.125rem;
    background-color: #eee;
}

.pagination .page-item .page-link:focus {
    background-color: transparent;
}

.pagination.pagination-lg .page-item .page-link {
    font-size: 1rem;
}

.pagination.pagination-sm .page-item .page-link {
    font-size: 0.8rem;
}

.pagination.pagination-circle .page-item .page-link {
    margin-left: 2px;
    margin-right: 2px;
    border-radius: 50%;
}

.pagination.pagination-circle .page-item .page-link:hover {
    border-radius: 50%;
}

.pagination.pagination-circle .page-item.active .page-link {
    border-radius: 50%;
}

/* MDB Pagination - pg-blue variant */
.pagination.pg-blue .page-item.active .page-link {
    background-color: #02354B;
}

.pagination.pg-blue .page-item.active .page-link:hover {
    background-color: #02354B;
}

/* Badge styles */
.badge {
    box-shadow: 0 2px 5px 0 rgba(2, 53, 75, 0.16), 0 2px 10px 0 rgba(2, 53, 75, 0.12);
    border-radius: 0.125rem;
    color: #fff !important;
}

.badge-pill {
    border-radius: 10rem;
    padding-right: 0.6em;
    padding-left: 0.6em;
}

.badge-primary {
    background-color: #02354B !important;
    color: #fff !important;
}

.badge-danger {
    background-color: #E30613 !important;
    color: #fff !important;
}

.badge-warning {
    background-color: #FDC300 !important;
    color: #fff !important;
}

.badge-success {
    background-color: #009E4D !important;
    color: #fff !important;
}

.badge-info {
    background-color: #53ADDB !important;
    color: #fff !important;
}

.badge-default {
    background-color: #BCCF21 !important;
    color: #fff !important;
}

.badge-secondary {
    background-color: #BCCF21 !important;
    color: #fff !important;
}

.badge-dark {
    background-color: #212121 !important;
    color: #fff !important;
}

/* ============================================
   LUIS Branding Styles (from LIS.css)
   ============================================ */

/* Typography */
body {
    font-family: Arial !important;
    font-size: 1em;
    color: #02354B;
}

h1 {
    font-size: 1.75rem !important;
}

h2 {
    font-size: 1.5rem !important;
}

b {
    font-weight: 600 !important;
}

legend {
    font-size: 1em !important;
}

/* Make strong tags inside fieldset match legend font-weight */
fieldset strong {
    font-weight: normal !important;
}

/* Checkbox and Radio styling */
[type=checkbox] + label:before {
    border: 2px solid #02354B;
}

[type=radio] + label:before {
    border: 2px solid #02354B;
}

/* Navbar styling */
.luis-innav {
    background-color: #02354B;
    border: 0;
    cursor: pointer;
}

.luis-innav:focus {
    outline: 3px dashed #fff !important;
    outline-offset: 2px;
}

.luis .navbar {
    background: #02354B;
    color: #fff;
    border-left: 0;
    border-bottom: 8px solid #BCCF21;
    box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0);
    padding-left: 1rem !important;
}

.luis .navbar .luis-innav.button-collapse {
    padding-left: 0rem !important;
    margin-left: 0 !important;
}

/* Ensure navbar brand and ViewTitle are white */
.luis .navbar .navbar-brand,
.luis .navbar .navbar-brand h1,
.luis .navbar #ViewTitle {
    color: #fff !important;
}

/* Remove focus outline from button-collapse */
.luis-innav.button-collapse:focus,
.button-collapse.luis-innav:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Skip to content link */
a.luis-skip-to-content {
    left: -999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

a.luis-skip-to-content:focus, 
a.luis-skip-to-content:active {
    background: white;
    color: blue;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: auto;
    margin: 10px;
    padding: 5px;
    font-size: 1.4em;
    z-index: 999;
}

/* Button styling */
.btn {
    border-radius: 8px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 0.81rem !important;
    padding: 0.84rem 2.14rem !important;
    margin: 0.375rem !important;
    box-shadow: 0 2px 5px 0 rgba(2, 53, 75, 0.16), 0 2px 10px 0 rgba(2, 53, 75, 0.12) !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    border: 0 !important;
    cursor: pointer !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.btn:hover, 
.btn:active, 
.btn:focus {
    box-shadow: 0 5px 11px 0 rgba(2, 53, 75, 0.18), 0 4px 15px 0 rgba(2, 53, 75, 0.15) !important;
    outline: 0 !important;
}

.btn:not([disabled]):not(.disabled):active, 
.btn:not([disabled]):not(.disabled).active {
    box-shadow: 0 5px 11px 0 rgba(2, 53, 75, 0.18), 0 4px 15px 0 rgba(2, 53, 75, 0.15) !important;
}

.btn.btn-lg {
    font-size: 0.94rem !important;
    padding: 1rem 2.4rem !important;
}

.btn.btn-md {
    font-size: 0.7rem !important;
    padding: 0.7rem 1.6rem !important;
}

.btn.btn-sm {
    font-size: 0.64rem !important;
    padding: 0.5rem 1.6rem !important;
}

.btn.disabled {
    background-color: #9D9694 !important;
}

.btn.btn-flat {
    font-weight: 500 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    text-transform: none !important;
}

.btn.btn-flat:hover,
.btn.btn-flat:active,
.btn.btn-flat:focus {
    box-shadow: none !important;
    background-color: transparent !important;
}

.btn.btn-flat:not([disabled]):not(.disabled):active {
    box-shadow: none !important;
}

.btn:focus, 
.btn:active, 
.luis-help.btn-floating:focus, 
.luis-help.btn-floating:active {
    outline: 3px dashed #dd5500 !important;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #02354B !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #BCCF21 !important;
    color: #02354B !important;
}

.btn-primary:focus, 
.btn-primary:active, 
.btn-primary.active {
    background-color: #BCCF21 !important;
    color: #02354B !important;
}

.btn-warning {
    background-color: #F39200 !important;
    color: #02354B !important;
}

.btn-warning:focus, 
.btn-warning:active, 
.btn-warning.active {
    background-color: #C4B6AB !important;
    color: #02354B !important;
}

.btn-danger:focus, 
.btn-danger:active, 
.btn-danger.active {
    background-color: #626267 !important;
    color: #ffffff !important;
}

.btn-info {
    background-color: #53ADDB !important;
    color: #02354B !important;
}

.btn-info:focus, 
.btn-info:active, 
.btn-info.active {
    background-color: #02354B !important;
    color: #BCCF21 !important;
}

.btn-default {
    color: #02354B !important;
}

.btn-secondary {
    color: #02354B !important;
}

/* Help button floating */
.luis-help.btn-floating {
    border: 0 !important;
    width: 22px;
    height: 22px;
    box-shadow: 0 5px 11px 0 rgba(2, 53, 75, 0.18), 0 4px 15px 0 rgba(2, 53, 75, 0.15) !important;
}

.luis-help.btn-floating:hover,
.luis-help.btn-primary.btn-floating:hover {
    box-shadow: 0 8px 17px 0 rgba(2, 53, 75, 0.2), 0 6px 20px 0 rgba(2, 53, 75, 0.19) !important;
    background-color: #BCCF21 !important;
}

.luis-help.btn-floating:hover *,
.luis-help.btn-primary.btn-floating:hover * {
    color: #02354B !important;
}

.luis-help.btn-floating i,
.luis-help.btn-floating span,
.luis-help.btn-floating * {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 22px !important;
}

/* Ensure button background is primary color */
.luis-help.btn-primary.btn-floating {
    background-color: #02354B !important;
}

.luis-help {
    color: #53ADDB !important;
}

/* Override luis-help color for floating button text */
.luis-help.btn-floating,
.luis-help.btn-floating * {
    color: #fff !important;
}

/* Label styling */
label {
    color: #02354B !important;
    font-weight: 600 !important;
}

/* Add spacing above labels in column sections (like ReplicaOrder view) */
.col-3 > label:first-child,
.col-4 > label:first-child,
.col-5 > label:first-child,
.col-6 > label:first-child,
.col-7 > label:first-child,
.col-12 > label:first-child,
[class*="col-"] > label:first-child {
    margin-top: 0.5rem;
}

/* Add spacing above labels when they follow other elements */
* + label:not(.custom-control-label):not(.form-check-label) {
    margin-top: 0.5rem;
}

/* Form input styling */
.luis input, 
.luis select, 
.luis textarea {
    color: #02354B !important;
    border-width: 1px !important;
    border-color: #02354B !important;
    border-radius: 8px;
}

.luis input.luis-error, 
.luis select.luis-error, 
.luis textarea.luis-error {
    border-color: #F39200 !important;
}

.luis select:focus, 
.luis input:focus, 
.luis textarea:focus {
    -webkit-box-shadow: 0 0 0.5em #02354B !important;
    box-shadow: 0 0 0.5em #02354B !important;
}

.luis-form-group {
    border: 2px solid black;
}

.luis-form-group.luis-error {
    border-color: #F39200 !important;
}

/* Bootstrap 4 form-inline support for Bootstrap 5 */
.form-inline {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
}

.form-inline .row {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.form-inline .row > * {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

.form-inline .form-control {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
    max-width: none !important;
}

.form-inline .btn {
    display: inline-block !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
    margin-left: 0.5rem !important;
}

.form-inline label.luis-hidden-text {
    display: none !important;
}

.form-inline .luis-validate {
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* Card styling */
.card {
    box-shadow: 0 2px 5px 0 rgba(2, 53, 75, 0.16), 0 2px 10px 0 rgba(2, 53, 75, 0.12);
    border: 0;
    font-weight: 400;
}

.card[class*=border] {
    box-shadow: none;
}

.card .card-body h1, 
.card .card-body h2, 
.card .card-body h3, 
.card .card-body h4, 
.card .card-body h5, 
.card .card-body h6 {
    font-weight: 400;
}

.card .card-body .card-title a {
    transition: 0.2s ease-in-out;
}

.card .card-body .card-title a:hover {
    transition: 0.2s ease-in-out;
}

.card .card-body .card-text {
    color: #747373;
    font-size: 0.9rem;
    font-weight: 400;
}

/* MDB Accordion styling - remove shadows and backgrounds */
.md-accordion .card {
    box-shadow: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.md-accordion .card:first-of-type,
.md-accordion .card:not(:first-of-type):not(:last-of-type) {
    border-bottom: 1px solid #e0e0e0 !important;
}

.md-accordion .card .card-header {
    border-bottom: 0 !important;
    padding: 1rem 1.5rem !important;
    background: transparent !important;
}

.md-accordion .card .card-header .card-title {
    font-weight: 400 !important;
}

.md-accordion .card .card-header a {
    transition: ease-in-out 0.3s !important;
}

.md-accordion .card .card-header a:not(.collapsed) .rotate-icon {
    transform: rotate(180deg) !important;
}

.md-accordion .card .fa-angle-down {
    float: right !important;
    pointer-events: none !important;
    cursor: pointer !important;
}

.md-accordion .card .card-header a {
    cursor: pointer !important;
}

.md-accordion .card .card-header a * {
    pointer-events: none !important;
}

.md-accordion .card .card-body,
.md-accordion .card .card-block {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
    color: #626262 !important;
    background-color: transparent !important;
    padding: 1rem 0rem !important;
}

/* Override pl-0 on accordion headers to ensure proper alignment */
.md-accordion .card .card-header.pl-0 {
    padding-left: 0rem !important;
}

/* Links */
a {
    color: #02354B;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
    text-decoration: none;
}

a.luis-order-link {
    text-decoration: underline;
}

/* Links containing cards should not show underline */
a .card,
a .card-body,
a .card-title {
    text-decoration: none;
}

a:hover .card,
a:hover .card-body,
a:hover .card-title {
    text-decoration: none;
}

/* Dropdown styling */
.luis .dropdown-menu {
    border-color: #02354B !important;
    min-width: 16rem !important;
    padding: 0.5rem 0 !important;
}

/*.dropdown-menu.dropdown-menu-right {
    right: 0 !important;
    left: auto !important;
}*/

.dropdown-menu .dropdown-item {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    white-space: nowrap !important;
}

.dropdown-menu p {
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
}

.luis-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem !important;
    color: #02354B !important;
    background-color: #fff !important;
    border-radius: 5px;
    font-size: 0.9rem !important;
    text-decoration: none;
}

.luis-dropdown-item:hover {
    width: 100%;
    color: #fff !important;
    background-color: #02354B !important;
    border-radius: 5px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Tooltip styling */
.tooltip-inner {
    background-color: #02354B !important;
    color: #fff !important;
}

.bs-tooltip-auto[x-placement^=bottom] .arrow::before,
.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #02354B !important;
}

.bs-tooltip-auto[x-placement^=top] .arrow::before,
.bs-tooltip-top .arrow::before {
    border-top-color: #02354B !important;
}

.bs-tooltip-auto[x-placement^=left] .arrow::before,
.bs-tooltip-left .arrow::before {
    border-left-color: #02354B !important;
}

.bs-tooltip-auto[x-placement^=right] .arrow::before,
.bs-tooltip-right .arrow::before {
    border-right-color: #02354B !important;
}

/* Modal styling */
.modal {
    color: #02354B !important;
}

.modal .close,
.modal button.close,
.modal .btn.close,
.modal .btn.btn-flat.close {
    color: #fff !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1060 !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    padding: 1rem !important;
    margin: 0 !important;
    opacity: 1 !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    border: none !important;
}

.modal .close span,
.modal button.close span,
.modal .btn.close span,
.modal .btn.btn-flat.close span {
    pointer-events: none !important;
    display: inline-block !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Override btn-flat styles for modal close buttons */
.modal .btn.btn-flat.close {
    padding: 1rem !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Bootstrap 5 btn-close styling */
.modal .btn-close {
    color: #02354B !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1060 !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    opacity: 0.8 !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2302354B'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    background-size: 1em !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.modal .btn-close:hover {
    opacity: 1 !important;
}

.modal-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.modal-header .modal-title {
    flex: 1 1 auto !important;
    margin-right: 2rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Modal header heading styling - vertical center and left spacing */
.modal-header .heading {
    margin: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Override modal-notify heading font size with higher specificity */
.modal-dialog.modal-notify .modal-header .heading {
    font-size: 1.25rem !important;
    padding: 0.3rem 0.5rem !important;
    color: #fff !important;
    margin-right: 2rem !important;
}

.modal-header .modal-title.w-100 {
    width: auto !important;
    flex: 1 1 auto !important;
}

.modal-header .close,
.modal-header button.close,
.modal-header .btn.close,
.modal-header .btn.btn-flat.close,
.modal-header .btn-close {
    flex-shrink: 0 !important;
    order: 2 !important;
}

.modal-info .modal-header {
    background: #53ADDB !important;
    color: #fff !important;
}

.modal-success .modal-header {
    background: #009E4D !important;
    color: #fff !important;
}

.modal-danger .modal-header {
    background: #E30613 !important;
    color: #fff !important;
}

.close,
button.close,
.btn-close {
    border: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Modal close buttons need padding - override general rule */
.modal .close,
.modal button.close {
    padding: 1rem !important;
    margin: 0 !important;
}

.modal .btn-close {
    padding: 0.5rem !important;
    margin: 0 !important;
}

/* Ensure modal backdrop is clickable */
.modal-backdrop {
    pointer-events: auto !important;
}

.close:focus {
    outline: 3px dashed #fff !important;
    outline-offset: 2px;
    border: none !important;
}

/* Alert close button styling - match BS4 + MDB */
.alert .close,
.alert .btn-close,
.alert button.close,
.alert-dismissible .close,
.alert-dismissible .btn-close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    padding: 0.75rem 1.25rem !important;
    color: inherit !important;
    opacity: 0.5 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 0 #fff !important;
}

.alert .close span,
.alert .btn-close span {
    font-size: 1.25rem !important;
}

.alert .close:hover,
.alert .btn-close:hover,
.alert button.close:hover,
.alert-dismissible .close:hover,
.alert-dismissible .btn-close:hover {
    opacity: 0.75 !important;
    color: inherit !important;
}

.alert-danger .close,
.alert-danger .btn-close,
.alert-danger button.close {
    color: #721C24 !important;
    font-size: 0.75rem !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.alert-danger .close span {
    color: #721C24 !important;
}

.alert-danger .close:hover,
.alert-danger .btn-close:hover,
.alert-danger button.close:hover {
    color: #721C24 !important;
    opacity: 1 !important;
}

.alert-danger .close:hover span {
    color: #721C24 !important;
}

/* FAQ Modal Edit Icon - Vertical alignment to bottom */
.faq-edit-icon {
    vertical-align: text-bottom !important;
    display: inline-flex !important;
    align-items: flex-end !important;
}

.faq-edit-icon i {
    vertical-align: text-bottom !important;
}

/* Tabs */
.classic-tabs .nav {
    background-color: #BCCF21;
    border-radius: 0.3rem 0.3rem 0 0; /* Rounded top corners */
    white-space: nowrap;
    overflow-x: auto;
    position: relative;
}

@media (min-width: 62rem) {
    .classic-tabs .nav {
        overflow-x: hidden;
    }
    
    .classic-tabs .nav li:first-child {
        margin-left: 56px; /* Push tabs further from left on larger screens */
    }
}

.classic-tabs .nav li a {
    padding: 10px 20px;
    color: #02354B;
    background-color: #BCCF21;
    text-align: center;
    border-radius: 0;
    text-transform: none;
    display: block;
}

.classic-tabs .nav li a:not(.active) {
    color: #02354B;
    margin-bottom: #BCCF21;
}

.classic-tabs .nav li a.active {
    color: #02354B;
    border-bottom: 4px #02354B solid;
}

/* Tab content card styling */
.classic-tabs .tab-content.card {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.classic-tabs .tab-content.card .tab-pane {
    padding: 1.5rem !important; /* More padding in body */
}

.classic-tabs .tab-content.card .tab-pane .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Side nav (additional styling) */
.luis-sidenav {
    height: 28px !important;
    line-height: 28px !important;
    background-color: #fff;
    border-bottom: 4px solid #fff;
    color: #02354B;
}

.luis-sidenav:hover {
    background-color: #02354B;
}

.luis-sidenav a {
    color: #02354B;
    height: 28px;
    line-height: 28px;
    font-weight: 300;
}

.luis-sidenav a:hover {
    color: #fff;
}

.luis-divider {
    height: 1px;
    background-color: #9D9694;
}

/* Error styling */
.luis-error-element {
    color: #E30613;
}

.luis-error-list,
.luis-error-list li,
.luis-error-list li.error-colour,
.error-colour {
    color: #721C24 !important;
}

.luis-error-list a {
    color: #721C24 !important;
    font-weight: normal;
}

.luis-error-text {
    color: #E30613;
}

/* Custom controls */
.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff !important;
    border-color: #02354B !important;
    background-color: #02354B !important;
}

.custom-select option:hover {
    background-color: #02354B !important;
    color: #fff !important;
}

.luis-valid {
    background-color: #02354B;
}



.luis-replica {
    background-color: #ffffff !important;
    color: grey !important;
    border-color: grey !important;
    margin-top: -0.4em;
}

/* Accessibility */
.luis-hidden-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    border: 0;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Table styling */
table th {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

table td {
    font-size: 0.9rem !important;
    font-weight: 300 !important;
}

table.table thead th {
    border-top: none;
    border-bottom: 1px solid #dee2e6 !important;
    padding-bottom: 0.5rem !important;
}

table.table th,
table.table td {
    padding-top: 1.1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: none !important;
}

table.table tbody td {
    padding-top: 0.5rem !important;
}

/* Reduce padding for table rows in modal body */
.modal-body table tbody td {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
}

/* Also target tables without .table class */
table tbody td {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

table.table tbody tr {
    border-bottom: none !important;
}

/* Table striped - alternate row background */
table.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

table.table a {
    margin: 0;
    color: #212529;
}

table.table-hover tbody tr:hover {
    transition: 0.5s;
    background-color: rgba(0, 0, 0, 0.075);
}

/* DataTables header/body alignment fix */
.dataTables_scrollHead table,
.dataTables_scrollBody table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.dataTables_scrollHead thead th,
.dataTables_scrollBody tbody td {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
}

/* Ensure scrollbar doesn't affect alignment */
.dataTables_scrollBody {
    margin-right: 0 !important;
}

/* Fix for tables without scroll containers */
table.table thead th,
table.table tbody td {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
}

/* Inline form controls for SelectKeeper page */
.luis-inline-form-control {
    width: 200px !important;
    flex-shrink: 0 !important;
}

.luis-inline-button {
    flex-shrink: 0 !important;
}

/* Search form input styling - prevent input from taking full width in flex container */
form.d-flex input.form-control,
form.d-flex .form-control,
div.d-flex input.form-control,
div.d-flex .form-control {
    width: 300px !important;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

form.d-flex .btn,
div.d-flex .btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

/* MDB Modal Notify Styles */
.modal-dialog.modal-notify .modal-body {
    color: #616161 !important;
}

/* Modal Success Icon Colors */
.modal-dialog.modal-notify.modal-success .fas,
.modal-dialog.modal-notify.modal-success .fab,
.modal-dialog.modal-notify.modal-success .far {
    color: #009E4D !important;
}

/* Modal Primary Icon Colors */
.modal-dialog.modal-notify.modal-primary .fas,
.modal-dialog.modal-notify.modal-primary .fab,
.modal-dialog.modal-notify.modal-primary .far {
    color: #02354B !important;
}

/* Modal Danger Icon Colors */
.modal-dialog.modal-notify.modal-danger .fas,
.modal-dialog.modal-notify.modal-danger .fab,
.modal-dialog.modal-notify.modal-danger .far {
    color: #E30613 !important;
}

/* Modal Warning Icon Colors */
.modal-dialog.modal-notify.modal-warning .fas,
.modal-dialog.modal-notify.modal-warning .fab,
.modal-dialog.modal-notify.modal-warning .far {
    color: #FDC300 !important;
}

/* Modal Info Icon Colors */
.modal-dialog.modal-notify.modal-info .fas,
.modal-dialog.modal-notify.modal-info .fab,
.modal-dialog.modal-notify.modal-info .far {
    color: #53ADDB !important;
}

/* Bootstrap 4 custom-control-inline support for Bootstrap 5 */
.custom-control-inline {
    display: inline-block !important;
    margin-right: 1rem !important;
}

.custom-control-inline:last-child {
    margin-right: 0 !important;
}

/* Custom Control Radio Button Styling - Apply same styling as form-check-input */
/* Hide native radio for custom-control-input */
.custom-control-input[type=radio]:not(:checked),
.custom-control-input[type=radio]:checked {
    position: absolute !important;
    opacity: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 4px !important;
    cursor: pointer !important;
    z-index: 1 !important;
}

/* Disable Bootstrap 5 default radio appearance for custom-control */
.custom-control-input[type=radio] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

/* Style custom-control-label for radio buttons */
.custom-control-input[type=radio] + .custom-control-label {
    position: relative !important;
    padding-left: 35px !important;
    cursor: pointer !important;
    display: inline-block !important;
    height: 1.5625rem !important;
    line-height: 1.5625rem !important;
    user-select: none !important;
    margin-bottom: 0 !important;
    transition: 0.28s ease !important;
}

/* Create radio button circles using ::before and ::after for custom-control */
.custom-control-input[type=radio] + .custom-control-label:before,
.custom-control-input[type=radio] + .custom-control-label:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    margin: 4px !important;
    width: 16px !important;
    height: 16px !important;
    z-index: 0 !important;
    border-radius: 50% !important;
    transition: 0.28s ease !important;
}

/* Unchecked state - outer circle with grey border for custom-control */
.custom-control-input[type=radio]:not(:checked) + .custom-control-label:before,
.custom-control-input[type=radio]:not(:checked) + .custom-control-label:after {
    border: 2px solid #5a5a5a !important;
}

/* Hide inner circle when unchecked for custom-control */
.custom-control-input[type=radio]:not(:checked) + .custom-control-label:after {
    transform: scale(0) !important;
}

/* Checked state - outer circle with dark blue border, inner white circle for custom-control */
.custom-control-input[type=radio]:checked + .custom-control-label:before {
    border: 2px solid #02354B !important;
    background-color: #02354B !important;
}

.custom-control-input[type=radio]:checked + .custom-control-label:after {
    border: none !important;
    background-color: #fff !important;
    transform: scale(0.35) !important;
}

/* Disabled unchecked state for custom-control */
.custom-control-input[type=radio]:disabled:not(:checked) + .custom-control-label:before {
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.46) !important;
}

/* Disabled checked state for custom-control */
.custom-control-input[type=radio]:disabled:checked + .custom-control-label:before {
    border-color: rgba(0, 0, 0, 0.46) !important;
}

.custom-control-input[type=radio]:disabled:checked + .custom-control-label:after {
    background-color: rgba(0, 0, 0, 0.46) !important;
    border-color: #BDBDBD !important;
}

/* Custom Control Checkbox Styling - Apply same styling as form-check-input */
/* Hide native checkbox for custom-control-input */
.custom-control-input[type=checkbox]:not(:checked),
.custom-control-input[type=checkbox]:checked {
    position: absolute !important;
    opacity: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    margin-left: 0 !important;
    cursor: pointer !important;
    z-index: 1 !important;
}

/* Disable Bootstrap 5 default checkbox appearance for custom-control */
.custom-control-input[type=checkbox] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

/* Style custom-control-label for checkboxes */
.custom-control-input[type=checkbox] + .custom-control-label {
    position: relative !important;
    padding-left: 35px !important;
    cursor: pointer !important;
    display: inline-block !important;
    min-height: 1.5625rem !important;
    line-height: 1.5625rem !important;
    user-select: none !important;
    margin-bottom: 0 !important;
}

/* Allow checkbox labels in modal body to expand properly */
.modal-body .custom-control-input[type=checkbox] + .custom-control-label {
    display: block !important;
    height: auto !important;
    min-height: 1.5625rem !important;
    line-height: 1.5 !important;
}

/* Create checkbox box using ::after for background (unchecked = transparent, checked = dark blue) */
.custom-control-input[type=checkbox] + .custom-control-label:after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    background-color: transparent !important;
    border: 2px solid #02354B !important;
    border-radius: 0.25rem !important;
    z-index: 0 !important;
    transition: 0.2s !important;
    box-sizing: border-box !important;
}

/* Unchecked state - empty box with border only */
.custom-control-input[type=checkbox]:not(:checked) + .custom-control-label:after {
    background-color: transparent !important;
    border: 2px solid #02354B !important;
    width: 18px !important;
    height: 18px !important;
}

/* Hide ::before for unchecked state */
.custom-control-input[type=checkbox]:not(:checked) + .custom-control-label:before {
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    transform: scale(0) !important;
    opacity: 0 !important;
}

/* Disabled unchecked state */
.custom-control-input[type=checkbox]:not(:checked):disabled + .custom-control-label:before {
    border: none !important;
    background-color: #BDBDBD !important;
}

/* Checked state - dark blue background with white checkmark */
/* Use ::after for the background box */
.custom-control-input[type=checkbox]:checked + .custom-control-label:after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    background-color: #02354B !important;
    border: 2px solid #02354B !important;
    border-radius: 0.25rem !important;
    z-index: 0 !important;
    transform: scale(1) !important;
}

/* Use ::before for the white checkmark - smaller and centered */
.custom-control-input[type=checkbox]:checked + .custom-control-label:before {
    content: "" !important;
    position: absolute !important;
    top: 6px !important;
    left: 4px !important;
    width: 5px !important;
    height: 9px !important;
    border-top: 2px solid transparent !important;
    border-left: 2px solid transparent !important;
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
    transform: rotateZ(37deg) !important;
    backface-visibility: hidden !important;
    transform-origin: 100% 100% !important;
    z-index: 1 !important;
}

/* Disabled checked state */
.custom-control-input[type=checkbox]:checked:disabled + .custom-control-label:after {
    background-color: #BDBDBD !important;
    border-color: #BDBDBD !important;
}

.custom-control-input[type=checkbox]:checked:disabled + .custom-control-label:before {
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
}

/* Indeterminate state */
.custom-control-input[type=checkbox]:indeterminate + .custom-control-label:before {
    top: -11px !important;
    left: -12px !important;
    width: 10px !important;
    height: 1.375rem !important;
    border-top: none !important;
    border-left: none !important;
    border-right: 2px solid #02354B !important;
    border-bottom: none !important;
    transform: rotate(90deg) !important;
    backface-visibility: hidden !important;
    transform-origin: 100% 100% !important;
}

/* Disabled indeterminate state */
.custom-control-input[type=checkbox]:indeterminate:disabled + .custom-control-label:before {
    border-right: 2px solid #BDBDBD !important;
}

/* Ensure custom-control works with custom-control-input and custom-control-label */
.custom-control {
    position: relative !important;
    display: block !important;
    min-height: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.custom-control-inline.custom-control {
    display: block !important;
    margin-right: 0 !important;
    margin-bottom: 1rem !important;
}

/* For truly inline custom-controls (not in modal body) */
.custom-control-inline.custom-control:not(.modal-body .custom-control-inline) {
    display: inline-block !important;
    margin-right: 1rem !important;
    margin-bottom: 0 !important;
}

.custom-control-input {
    position: absolute !important;
    left: 0 !important;
    z-index: -1 !important;
    width: 1rem !important;
    height: 1.25rem !important;
    opacity: 0 !important;
}

.custom-control-label {
    position: relative !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
}

/* Ensure custom-control-label in modal body doesn't overlap content */
.modal-body .custom-control-label {
    display: block !important;
    width: 100% !important;
}

.modal-body .custom-control-label p {
    margin-bottom: 0 !important;
}

/* Support for custom-control-label with radio buttons */
.custom-control-input[type="radio"] + .custom-control-label {
    padding-left: 1.5rem !important;
}

/* Ensure d-none overrides custom-control-inline display */
.custom-control-inline.d-none,
.custom-control-inline.custom-control.d-none {
    display: none !important;
}

/* Reduce spacing between floated legend and first visible custom-control-inline */
fieldset legend.float-start ~ .custom-control-inline:not(.d-none):first-of-type,
fieldset legend.float-left ~ .custom-control-inline:not(.d-none):first-of-type {
    margin-left: 0.5rem !important;
}

/* Allow p-1 utility class to override btn-sm padding */
.btn.btn-sm.p-1 {
    padding: 0.25rem !important;
}

/* Allow py-1 and px-2 utility classes to override btn-md padding */
.btn.btn-md.py-1.px-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Tag button styling - smaller size for py-0 px-2 buttons */
.btn.btn-md.py-0.px-2 {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    min-height: auto !important;
}

.btn.btn-md.py-0.px-2 i {
    font-size: 0.875rem !important;
    line-height: 1 !important;
}

/* Override stylish-color to use LUIS primary blue */
.stylish-color {
    background-color: #02354B !important;
}

.left-px-28 {
    left: -28px;
}

/* Make Orders List rows more compact without affecting other tables */
table#list[aria-describedby="Orders List"] th,
table#list[aria-describedby="Orders List"] td {
    padding-top: 0.05rem !important;
    padding-bottom: 0.05rem !important;
    line-height: 1.0;
}

/* Ensure tag icons can overlap using left offsets and z-index */
.luis-tags {
    background-color: #fff;
    color: #f8f9fa;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.luis-tags.btn.btn-sm {
    padding: 0.4rem 0.6em !important;
}

.z-index-1 {
    z-index: 1;
}

.combinations-row-header {
    text-align: right !important;
}

/* File input styling - Hide "Choose File" text in Bootstrap 5 */
.file-field input[type=file]::file-selector-button {
    display: none !important;
}

.file-field input[type=file] {
    color: transparent !important;
    font-size: 0 !important;
}

.file-field .btn {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0.75rem !important;
    min-width: auto !important;
    width: auto !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .file-field .btn input[type=file] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 1;
    }

/* Left-align buttons to match form controls */
.luis-btn-left-align {
    margin-left: 0 !important;
}