/* -----------------------------------------
   SCROLLABLE TOP-LEVEL TABS (NAV-TABS)
----------------------------------------- */
.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.nav-tabs::-webkit-scrollbar {
    height: 6px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

/* Active top-level tab highlight */
.nav-tabs .nav-link.active {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-bottom-color: transparent !important;
    color: #0d6efd !important;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    border-color: #e2e6ea #e2e6ea #dee2e6 !important;
}


/* -----------------------------------------
   SCROLLABLE SECOND-LEVEL TABS (NAV-PILLS)
----------------------------------------- */
.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
}

.nav-pills::-webkit-scrollbar {
    height: 6px;
}

.nav-pills::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Active pill highlight */
.nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 600;
}


/* -----------------------------------------
   BOOTSTRAP BUTTON RESTORATION
----------------------------------------- */
.btn {
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.tabs {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ccc;
}

.tabs li {
    padding: 10px 20px;
    cursor: pointer;
    background: #f5f5f5;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-bottom: none;
}

.tabs li.active {
    background: white;
    border-top: 2px solid #007bff;
    border-left: 2px solid #007bff;
    border-right: 2px solid #007bff;
    font-weight: bold;
}