/* quick-nav.css — Clean White Quick Navigation Bar */
.quick-nav-bar {
    position: fixed;
    top: 0;
    left: 0; /* Let dashboard styles override this */
    right: 0;
    height: 34px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    color: #374151;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 12px;
    z-index: 10010;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

/* Sidebary startują dokładnie pod quick-nav-barem */
.panel-sidebar, .sub-sidebar {
    top: 34px !important;
    height: calc(100vh - 34px) !important;
    padding-top: 0 !important;
}

@media (max-width: 1024px) {
    .quick-nav-bar {
        left: 0 !important; /* Full width on mobile */
    }
}

/* Mobile hamburger — hidden on desktop */
.qn-mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .quick-nav-bar {
        padding: 0 8px;
        height: 32px;
    }
    .qn-mobile-only {
        display: flex !important;
        border-right: 1px solid #f3f4f6;
        margin-right: 6px;
    }
    .quick-nav-bar span:not(#qn-clock) {
        display: none !important;
    }
    .qn-item { 
        padding: 0 8px; 
    }
    .qn-highlight { 
        margin-left: 6px !important; 
        padding: 0 8px !important;
    }
    .qn-icon-small {
        font-size: 13px;
        opacity: 0.8;
    }
    #qn-clock {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .quick-nav-bar {
        justify-content: space-between;
    }
    .qn-item:not(.qn-mobile-only):not(.qn-highlight) {
        display: none !important; /* Hide other menus on very small screens to keep UI clean */
    }
}

/* Items */
.qn-item {
    position: relative;
    padding: 0 10px;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
    border-radius: 4px;
}
.qn-item:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Dropdown menu */
.qn-menu {
    position: absolute;
    top: 34px;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    padding: 6px 0;
    border-radius: 0 0 8px 8px;
}

/* Hover bridge */
.qn-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
}
.qn-item:hover .qn-menu {
    display: flex;
}

.qn-menu-header {
    padding: 8px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qn-menu-item {
    padding: 9px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.12s;
}
.qn-menu-item.no-hover:hover {
    background: transparent;
    cursor: default;
}
.qn-menu-item:hover:not(.no-hover) {
    background: #eff6ff;
    color: #2563eb;
}

.qn-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 0;
}

/* Badges */
.qn-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    background: #f9fafb;
}
.qn-badge-blue  { color: #2563eb; border: 1px solid #dbeafe; }
.qn-badge-green { color: #16a34a; border: 1px solid #dcfce7; }
.qn-badge-orange{ color: #ea580c; border: 1px solid #ffedd5; }

.qn-icon-small {
    font-size: 11px;
    opacity: 0.5;
}

/* Layout push — everything below bar needs margin-top */
.main-content, .calculator-wrapper {
    margin-top: 34px !important;
}

/* Highlight button (Nowe Zamówienie) */
.qn-highlight {
    margin-left: 16px;
    background: #eff6ff;
    border-radius: 6px;
    padding: 0 12px !important;
    height: 24px;
    display: flex;
    align-items: center;
}
.qn-highlight:hover {
    background: #dbeafe;
}
.qn-highlight a {
    color: #2563eb !important;
}
