/* Updated CSS for inline menus and overflow handling */
/* CSS Reset */
 /* * {
    margin: 0;
    padding: 0;
}

body {
    font-family: Montserrat, sans-serif; 
    line-height: 1.5;
} */

/* Container */
.container {
    max-width: 115rem;
    margin: 0 auto;
    padding: 1rem;
    background-color: white;
    border: 1px solid red;
}

/* Navigation */
.main-navigation {
    margin-bottom: 1rem;
}

.flex-layout {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 992px) {
    .flex-layout {
        flex-direction: row;
    }

     .flex-layout > div:first-child {
        flex: 1; 
        min-width: 0;
    }
    
    .flex-layout > .controls-container {
        flex: 1;  
        min-width: 0; 
        justify-content: flex-end;
    }
    
    .flex-layout > div:first-child .custom-list {
        width: 100%;
    }
}

/* Custom List  */
.custom-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.custom-list::-webkit-scrollbar {
    height: 6px;
}

.custom-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.custom-list::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 6px;
}

.custom-list li {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.custom-list a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #6c757d;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.custom-list a.active {
    color: #0d6efd;
    font-weight: 700;
}

.custom-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0d6efd;
}

.custom-list a:hover:not(.active) {
    color: #0d6efd;
}

/* Switch Toggle */
.switch-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-right: 0.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0d6efd;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.switch-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Search Form */
.search-form {
    display: flex;
    width: 100%;
    max-width: 300px;
}

.search-input {
    flex: 1;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.search-button {
    padding: 0.375rem 0.75rem;
    background-color: transparent;
    border: none;
    color: #198754;
    cursor: pointer;
}

/* Submenu */
.submenu {
    padding: 0.5rem 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.submenu::-webkit-scrollbar {
    height: 6px;
}

.submenu::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.submenu::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 6px;
}

/* Collapsible Content */
.collapsible-content {
    padding: 1rem 0;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    padding: 0.75rem 1.25rem;
    color: white;
    font-weight: 500;
}

.card-body {
    padding: 1.25rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card-text {
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.25rem;
}

.card-image {
    margin-top: auto;
    width: 100%;
    height: 5rem;
    object-fit: cover;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0,0,0,.03);
    border-top: 1px solid rgba(0,0,0,.125);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-link {
    color: #0d6efd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Star Icon */
.star-icon {
    cursor: pointer !important;
    color: #6c757d;
    transition: color 0.2s ease;
}

.star-icon.favorite {
    color: #ffc107;
    fill: #ffc107;
}

.star-container {
    display: none;
}

.star-container.visible {
    display: block;
}

/* Search Results Table */
.search-results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.search-results th, 
.search-results td {
    padding: 0.75rem;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

.search-results th {
    background-color: #f8f9fa;
}

.search-results tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.app-icon {
    width: 40px;
    height: 40px;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #6c757d;
    padding: 2rem 0;
}

/* Utils */
.text-muted {
    color: #6c757d;
}

/* Controls container */
.controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap; 
    margin-bottom: 1rem;
}

@media (min-width: 444px) {
    .controls-container {
        margin-bottom: 0;
        justify-content: flex-end;
    }
}


/* Test */
.wms-public-container *{
    font-family: Montserrat, sans-serif;
    box-sizing: border-box;
}

.wms-overflow-hidden {
    overflow: hidden !important;
}

.wms-border-round-md {
    border-radius: .375rem !important;
}
.wms-public-container{
    font-family: Montserrat, sans-serif;
    max-width: 115rem;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
}

.wms-public-controls{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 72px;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.wms-switch-container{
    display: flex;
    align-items: center;
}

.wms-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-right: 0.5rem;
}

.wms-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wms-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.wms-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .wms-slider {
    background-color: #0d6efd;
}

input:checked + .wms-slider:before {
    transform: translateX(16px);
}

/* Search Form */
.wms-search-form {
    display: flex;
    width: 100%;
    max-width: 300px;
    height: 40px;
}

.wms-component{
    font-size: 1rem;
    font-weight: 400;
}

.wms-tabview-nav-content{
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior: content auto;
    position: relative;
}

.wms-tabview,
.wms-tabview-nav{
background: #fff;

}

.wms-tabview-nav{
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
    flex: 1 1 auto;
}

.wms_custom_tab_header.wms-tabview .wms-tabview-nav li{
    display: flex;
    max-width: 450px;
    flex-shrink: 0;
}

.wms-tabview .wms-tabview-nav li{
    margin-right: 0;
}

.wms-unselectable-text{
    user-select: none;
}

.wms-tabview .wms-tabview-nav li .wms-tabview-nav-link:hover {
    border-bottom: 1px solid #9ca3af;
}

a{
    text-decoration: none;
}

.wms-tabview .wms-tabview-nav li.wms-highlight .wms-tabview-nav-link {
    background: #fff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.wms-tabview .wms-tabview-nav li .wms-tabview-nav-link{
    transition: background-color .2s, border-color .2s, box-shadow .2s; ;
}

.wms-tabview .wms-tabview-nav li .wms-tabview-nav-link {
    border: 0 solid transparent;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    padding: 1.25rem;
    font-weight: 700;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    transition: box-shadow .2s;
    margin: 0;
}

.wms-tabview-nav-link {
    cursor: pointer;
    user-select: none;
    display: flex
;
    align-items: center;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.wms_custom_tab_header.wms-tabview .wms-tabview-nav li .wms-tabview-title {
    white-space: normal !important;
}

.wms-tabview-title{
    line-height: 1;
}

.wms-tabview .wms-tabview-panels{
    background: #fff;
    padding: 1.25rem;
    border: 0;
    color: #4b5563;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.wms-tabview-scrollable .wms-tabview-nav-container{
    overflow: hidden;
}

.wms-tabview-nav-container{
    position: relative;
    
}

/* Applications Container */
.wms_apps_container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

/* Application Container */
.wms_app_container{
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wms_app_container .wms_app_title:first-child{
    margin-top: 0;
}

.wms-border-round-top-md{
    border-top-left-radius: .375rem ;
    border-top-right-radius: .375rem ;
}

.wms-py-2{
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
}

.wms-px-3{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.wms-text-xl{
    font-size: 1.25rem !important;
}

.wms-text-white{
    color: #fff !important;
}

.wms_app_container .wms_app_title{
    margin: 1.5rem 0 1rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
}

.wms_app_container p{
    margin: 0 0 1rem;
    line-height: 1.5;
}

.wms_app_container p:last-child{
    margin-bottom: 0;
}

.wms_app_container .wms_app_image_container{
    width: 150px;
    height: 70px;
    margin: 1rem 0;
}

.wms_app_container .wms_app_image_container .wms_app_image{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wms_app_container .wms_app_link{
    width: max-content !important;
    margin-bottom: 1rem !important;
    gap: .5rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    color: #326fd1;
}

.wms-external-icon{
    height: 1rem;
    width: 1rem;
}

.wms-accordion .wms-accordion-tab-active{
    margin-bottom: 4px;
}

.wms-accordion .wms-accordion-header .wms-accordion-header-link{
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background: #f9fafb;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.wms-accordion .wms-accordion-header.wms-highlight .wms-accordion-header-link{
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.wms-accordion-header-link{
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    position: relative;
    text-decoration: none;
}

.wms-accordion-header-link:focus{
    z-index: 1;
}

.wms-accordion .wms-accordion-content {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.wms-link-and-star-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hidden{
    display: none;
}

.wms-toggle-favorite-star{
    cursor: pointer;
}