/**
 * Black Gold Farm - Global Design System Components
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('./variables.css');

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

h1, .h1 { font-size: 2.25rem; font-weight: 700; }
h2, .h2 { font-size: 1.85rem; font-weight: 700; }
h3, .h3 { font-size: 1.5rem; font-weight: 600; }
h4, .h4 { font-size: 1.25rem; font-weight: 600; }
h5, .h5 { font-size: 1.1rem; font-weight: 600; }
h6, .h6 { font-size: 0.95rem; font-weight: 600; }

.display-1 { font-size: 3.5rem; font-weight: 800; }
.display-4 { font-size: 2.5rem; font-weight: 800; }
.display-5 { font-size: 2rem; font-weight: 700; }
.display-6 { font-size: 1.65rem; font-weight: 700; }

p { margin-top: 0; margin-bottom: 1rem; }
a { color: var(--brand-gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-gold-hover); }

.text-gold { color: var(--brand-gold) !important; }
.text-dark-primary { color: var(--text-primary) !important; }
.text-secondary-muted { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-warm { background-color: var(--bg-main) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }

/* Global Card System */
.bg-card-custom, .card-custom, .card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    color: var(--text-primary);
}

.card-custom-elevated {
    box-shadow: var(--shadow-md);
}

.border-gold {
    border-color: var(--brand-gold) !important;
}

/* Button System */
.btn {
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

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

/* Primary Brand Button (Gold) */
.btn-gold, .btn-primary-gold {
    background: var(--brand-gold);
    color: #151515 !important;
    border-color: var(--brand-gold);
}
.btn-gold:hover, .btn-primary-gold:hover {
    background: var(--brand-gold-hover);
    border-color: var(--brand-gold-hover);
    color: #151515 !important;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.25);
}

/* Black Primary CTA Button */
.btn-dark-cta, .btn-black {
    background: var(--brand-black);
    color: #FFFFFF !important;
    border-color: var(--brand-black);
}
.btn-dark-cta:hover, .btn-black:hover {
    background: #2A2A2A;
    border-color: #2A2A2A;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Outline Secondary Button */
.btn-dark-outline, .btn-outline-custom {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-dark-outline:hover, .btn-outline-custom:hover {
    background: var(--bg-muted);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-outline-warning, .btn-outline-gold {
    background: transparent;
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}
.btn-outline-warning:hover, .btn-outline-gold:hover {
    background: var(--brand-gold-light);
    color: var(--brand-gold-hover);
    border-color: var(--brand-gold-hover);
}

/* Status Action Buttons */
.btn-success-farm {
    background: var(--green);
    color: #FFFFFF !important;
    border-color: var(--green);
}
.btn-success-farm:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #FFFFFF !important;
}

.btn-danger-custom {
    background: var(--red);
    color: #FFFFFF !important;
    border-color: var(--red);
}
.btn-danger-custom:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #FFFFFF !important;
}

.btn-sm {
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    font-size: 0.825rem;
}

.btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.rounded-pill {
    border-radius: var(--radius-pill) !important;
}

/* Status Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.75em;
    font-size: 0.775rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.01em;
}

.badge-success, .badge-healthy, .badge-active, .badge.bg-success {
    background-color: var(--green-soft) !important;
    color: var(--green) !important;
    border: 1px solid rgba(47, 107, 69, 0.2);
}

.badge-danger, .badge-critical, .badge-error, .badge.bg-danger {
    background-color: var(--red-soft) !important;
    color: var(--red) !important;
    border: 1px solid rgba(200, 59, 59, 0.2);
}

.badge-warning, .badge-pending, .badge.bg-warning {
    background-color: var(--amber-soft) !important;
    color: var(--amber-dark) !important;
    border: 1px solid rgba(217, 154, 0, 0.2);
}

.badge-info, .badge.bg-info {
    background-color: var(--blue-soft) !important;
    color: var(--blue) !important;
    border: 1px solid rgba(53, 105, 168, 0.2);
}

.badge-gold, .badge-gold-custom, .badge.bg-gold {
    background-color: var(--brand-gold-light) !important;
    color: var(--brand-gold-hover) !important;
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.badge-neutral, .badge.bg-secondary, .badge.bg-dark {
    background-color: var(--bg-muted) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

/* KPI Card Component */
.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.kpi-card .kpi-label {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}
.kpi-card .kpi-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.kpi-card .kpi-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.kpi-card .kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Forms & Inputs */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    font-family: var(--font-main);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    font-size: 0.925rem;
    min-height: 44px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--brand-gold);
    outline: 0;
    box-shadow: var(--gold-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group-text {
    background-color: var(--bg-muted);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    margin-bottom: 0;
}

.table > thead {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.table > thead th {
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
}

.table > tbody > tr > td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(201, 162, 39, 0.03) !important;
}

/* Responsive Nav Tabs: Horizontal Scroll with smooth touch on mobile */
.nav-tabs, .nav-pills {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.nav-tabs::-webkit-scrollbar, .nav-pills::-webkit-scrollbar {
    display: none;
}
.nav-tabs .nav-link, .nav-pills .nav-link {
    white-space: nowrap !important;
    flex-shrink: 0;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

/* Filter Pill Bar */
.filter-btn-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.filter-btn-pill:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold-hover);
}
.filter-btn-pill.active {
    background: var(--brand-black);
    color: #FFFFFF !important;
    border-color: var(--brand-black);
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}
.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--brand-gold);
}
.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Page Header Component */
.page-header-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .page-header-block {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.page-header-block .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.page-header-block .page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Modals & Dialogs */
.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}
.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #ECECE8 25%, #F7F7F5 50%, #ECECE8 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Offline & Toast Alerts */
.alert-custom {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================================================
   MOBILE-FIRST & PWA PRODUCTION ENHANCEMENTS (320px -> 1920px)
   ========================================================================= */

/* Prevent accidental horizontal overflow */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body.has-mobile-nav {
    padding-bottom: 75px !important;
}

/* Minimum 44px Touch Targets */
button, 
.btn, 
.nav-link, 
.form-control, 
.form-select, 
.pagination .page-link,
.dropdown-item {
    min-height: 44px;
    touch-action: manipulation;
}

.btn-sm {
    min-height: 36px;
}

/* PWA Real-Time Network Bar */
.pwa-network-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.pwa-network-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.pwa-network-bar.offline {
    background-color: #EF4444;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.pwa-network-bar.online {
    background-color: #10B981;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* PWA Floating Install Prompt Card */
.pwa-install-card {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 460px;
    background: #18181B;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    z-index: 9990;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 576px) {
    .pwa-install-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.pwa-install-card.pwa-hiding {
    animation: pwaSlideDown 0.3s ease forwards;
}

@keyframes pwaSlideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pwaSlideDown {
    from { transform: translate(-50%, 0); opacity: 1; }
    to { transform: translate(-50%, 100%); opacity: 0; }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
}

.pwa-banner-title {
    color: #F59E0B;
    font-size: 0.95rem;
    font-weight: 700;
}

.pwa-banner-desc {
    color: #A1A1AA;
    font-size: 0.8rem;
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Role-Specific Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 18, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    z-index: 1040;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
    padding: 0 6px env(safe-area-inset-bottom, 0px) 6px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.25s;
}

/* Mobile Virtual Keyboard Active Auto-Hide (Prevents overlay on input forms) */
body.keyboard-open .mobile-bottom-nav,
html.keyboard-open .mobile-bottom-nav,
.keyboard-open .mobile-bottom-nav,
.mobile-bottom-nav.keyboard-hidden {
    transform: translateY(150%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease, visibility 0.2s !important;
}

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    .erp-main {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 12px)) !important;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #9CA3AF;
    text-decoration: none !important;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.15s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: transform 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    color: #F59E0B;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item.active {
    color: #F59E0B !important;
    font-weight: 700;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: #F59E0B !important;
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    width: 18px;
    height: 3px;
    background: #F59E0B;
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* Worker Special Highlight Center Action (e.g. SCAN QR) */
.mobile-nav-item.highlight-scan {
    position: relative;
    top: -14px;
}

.mobile-nav-item.highlight-scan .scan-btn-circle {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
    border: 3.5px solid #121214;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.mobile-nav-item.highlight-scan .scan-btn-circle i {
    font-size: 1.55rem;
    margin-bottom: 0;
    color: #000 !important;
}

.mobile-nav-item.highlight-scan:active .scan-btn-circle {
    transform: scale(0.90);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.mobile-nav-item.highlight-scan .scan-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #F59E0B;
    margin-top: 2px;
}

/* Floating Cart Badge */
.cart-floating-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121214;
}

/* Worker Quick Action Tiles */
.worker-action-tile {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.worker-action-tile:active {
    transform: scale(0.95);
    background-color: rgba(245, 158, 11, 0.08) !important;
}

/* Mobile Screen Layout Tightening */
@media (max-width: 767.98px) {
    .kpi-card {
        padding: 0.85rem 0.75rem !important;
        border-radius: 14px !important;
    }
    .kpi-card .kpi-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem !important;
        border-radius: 8px !important;
    }
    .kpi-card .kpi-label {
        font-size: 0.68rem !important;
        margin-bottom: 0.2rem !important;
        letter-spacing: 0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kpi-card .kpi-value {
        font-size: clamp(1.1rem, 4vw, 1.45rem) !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        margin-bottom: 0.25rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        letter-spacing: -0.02em !important;
    }
    .kpi-card .kpi-subtext {
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .erp-content-container {
        padding: 0.85rem 0.75rem 6rem !important;
    }
}

@media (max-width: 575.98px) {
    .erp-topbar {
        padding: 0.4rem 0.75rem;
        height: 54px;
    }
    .erp-content-container {
        padding: 0.75rem 0.65rem 6rem !important;
    }
    .card-custom {
        border-radius: 14px !important;
    }
    .btn {
        min-height: 40px;
    }
}

/* Universal Smooth Mobile Responsive Table Engine */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

.table-responsive > .table {
    margin-bottom: 0;
    white-space: nowrap;
}

.table-responsive > .table th,
.table-responsive > .table td {
    vertical-align: middle;
    padding: 0.75rem 0.85rem;
}

@media (max-width: 767.98px) {
    .table-responsive > .table {
        min-width: 650px;
    }
    .table-responsive {
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/* Universal Mobile-First Inner Page Tabs & Sub-Navigation Engine */
.nav-tabs,
.nav-pills,
.sub-nav-tabs,
.tab-scroll-strip,
.quick-jump-strip,
.filter-pills-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 0.4rem 0.25rem 0.6rem !important;
    gap: 0.45rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.nav-tabs::-webkit-scrollbar,
.nav-pills::-webkit-scrollbar,
.sub-nav-tabs::-webkit-scrollbar,
.tab-scroll-strip::-webkit-scrollbar,
.quick-jump-strip::-webkit-scrollbar,
.filter-pills-strip::-webkit-scrollbar {
    display: none !important;
}

.nav-tabs .nav-item,
.nav-pills .nav-item {
    flex: 0 0 auto !important;
}

.nav-tabs .nav-link,
.nav-pills .nav-link,
.quick-jump-strip .btn,
.filter-pills-strip .btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
    background: #F9FAFB !important;
    transition: all 0.15s ease !important;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.quick-jump-strip .btn.active,
.filter-pills-strip .btn.active {
    color: #111317 !important;
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    border-color: #D97706 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

.nav-tabs-dark {
    background: #0C1220 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.nav-tabs-dark .nav-link {
    color: #9CA3AF !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.nav-tabs-dark .nav-link.active {
    color: #111317 !important;
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    border-color: #F59E0B !important;
}

