.editor-label > label {
    float: left;
    width: 150px;
}

html {
  font-size: 14px;
}

.mobiletextbox {
    height: 40px;
}
.mobilelabel {
    height: 40px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.customCombobox {
    width: 120px;
    height: 22px;
    border: 1px solid black;
    background-image: url('../../Images/down.png');
    background-repeat: no-repeat;
    background-position: right;
    margin: 0;
    padding: 0;
    cursor: pointer;
    align-content: center;
}

.ulcustomCombobox {
    display: none; /*hide dropdown by default*/
    width: 120px;
    background-color: white;
    border: 1px solid black;
    border-top: none;
    margin: 0;
    padding: 0;
    position: absolute;
}
.ulcustomCombobox li {
border-top: 1px solid gray;
height: 22px;
}
.ulcustomCombobox li:hover {
background-color: lightblue;
cursor: pointer;
}
.imgDisplay {
    display: inline;
    vertical-align: middle;
}

.imageText {
    display: inline;
    vertical-align: middle;
    padding-left: 5px;
}
.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;
    /* Removed transform scale to fix zoomed appearance */
}

.table-sm {
    font-size: 0.8rem; /* Adjust font size as needed */
}


.CodesTable table {
    width: 100%
}

.CodesTable thead {
    width: calc(100%-1em);
}

.CodesTable tbody {
    display: block;
    height: 130px;
    overflow-y: scroll;
    overflow-x: hidden;
}

    .CodesTable thead, .CodesTable tbody tr {
        display: table;
        width: 98%;
        table-layout: fixed;
    }

.CodesTable thead, .CodesTable tbody, .CodesTable td {
    border: none !important;
}

.bootstrap-select .dropdown-menu > li > a small.muted {
    display: none;
}

.bootstrap-select .dropdown-toggle .filter-option {
    position: relative;
    padding-left: 38px;
}

    .bootstrap-select .dropdown-toggle .filter-option:before {
        content: "Size:";
        font-size: 14px;
        font-weight: 700;
        position: absolute;
        left: 0;
        top: 0;
    }

/* Mega Menu Styles */
.mega-menu-wrapper {
    position: static;
}

@media (min-width: 993px) {
    .mega-menu-wrapper {
        position: relative;
    }
    
    /* Ensure menu appears below the nav item */
    .mega-menu-wrapper .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
    }
}

header {
    position: relative;
    z-index: 1040;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 85%;
    max-width: 1400px;
    min-width: 1000px;
    background: rgba(255, 255, 255, 0.8);
    /* Edge fallback - backdrop-filter not well supported */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-top: 2px solid rgba(13, 110, 253, 0.3);
    border-radius: 0 0 12px 12px;
    padding: 30px 40px;
    display: none;
    visibility: hidden;
    z-index: 1050;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    /* Edge compatibility */
    -ms-overflow-style: -ms-autohiding-scrollbar;
    will-change: opacity, transform;
}

.mega-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s !important;
}

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    .mega-menu {
        background: rgba(255, 255, 255, 0.8);
        -ms-overflow-style: auto;
    }
    
    .mega-menu.show {
        display: block !important;
        visibility: visible !important;
    }
}

/* Edge Legacy and Chromium Edge fixes */
_:-ms-lang(x), .mega-menu {
    background: rgba(255, 255, 255, 0.8);
}

_:-ms-lang(x), .mega-menu.show {
    display: block !important;
    visibility: visible !important;
}

.mega-menu-content {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    margin: 0 auto;
    gap: 30px;
    align-items: flex-start;
}

.mega-menu-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 12px;
    border-left: 3px solid rgba(13, 110, 253, 0.3);
}

.mega-menu-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    min-height: 150px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
    visibility: visible;
}

.mega-menu-proverb {
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
    text-align: center;
    line-height: 1.6;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border-left: 4px solid rgba(13, 110, 253, 0.5);
    font-weight: 500;
}

.mega-menu-proverb-author {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: right;
    font-style: normal;
}

.mega-menu-group {
    margin-bottom: 15px;
}

.mega-menu-group:last-child {
    margin-bottom: 0;
}

.mega-menu-group-header {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0d6efd;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(13, 110, 253, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 0;
}

.mega-menu-group-header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, rgba(13, 110, 253, 0.3));
}

.mega-menu-group-header i {
    font-size: 1.8rem;
    color: #0d6efd;
    opacity: 0.9;
}

.mega-menu-group-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mega-menu-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.4), rgba(13, 110, 253, 0.2), transparent);
    margin: 15px 0;
    border: none;
    border-radius: 2px;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mega-menu-item:hover {
    background: rgba(13, 110, 253, 0.1);
    border-left-color: #0d6efd;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #0d6efd;
}

.mega-menu-item-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.mega-menu-item-content {
    flex: 1;
}

.mega-menu-item-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #212529;
}

.mega-menu-item:hover .mega-menu-item-title {
    color: #0d6efd;
}

.mega-menu-item-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

.nav-item.mega-menu-wrapper > .nav-link {
    position: relative;
}

/* Disable CSS-only hover for Edge compatibility - JavaScript handles it */

/* Edge compatibility fixes */
@supports not (backdrop-filter: blur(10px)) {
    .mega-menu {
        background: rgba(255, 255, 255, 0.99);
    }
}

/* Ensure proper display in Edge */
.mega-menu.show {
    display: block !important;
    visibility: visible;
}

/* Close button for mobile */
.mega-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.mega-menu-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .mega-menu {
        width: 95%;
        padding: 25px 20px;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: translateY(-10px);
    }
    
    .mega-menu.show {
        transform: translateY(0) !important;
    }
    
    .mega-menu-content {
        flex-direction: column;
    }
    
    .mega-menu-sidebar {
        width: 100%;
        margin-top: 20px;
        order: -1;
    }
    
    .mega-menu-image {
        max-width: 100%;
    }
    
    .mega-menu-content {
        flex-direction: column;
    }
    
    .mega-menu-group-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mega-menu {
        min-width: auto;
        width: 95%;
    }
    
    .mega-menu-group-header {
        font-size: 2rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .mega-menu-group-header i {
        font-size: 1.5rem;
    }
    
    .mega-menu-divider {
        margin: 30px 0;
    }
    
    .mega-menu-item {
        padding: 15px;
    }
    
    .mega-menu-item-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .mega-menu-item-title {
        font-size: 1.2rem;
    }
    
    .mega-menu-close {
        display: block;
    }
    
    .nav-item.mega-menu-wrapper:hover .mega-menu {
        display: none;
    }
}

/* Prevent body scroll when mega menu is open on mobile */
body.mega-menu-open {
    overflow: hidden;
}
