/*
╔════════════════════════════════════════════════════════════════════════════╗
║                          TRADEFLOW - STYLES.CSS                            ║
║                         WERSJA: PERMISSIONS-ONLY                           ║
║              (Menu visibility controlled by Django Admin)                  ║
╚════════════════════════════════════════════════════════════════════════════╝

📖 NAWIGACJA - Skróty do sekcji (Ctrl+F):
   [ZMIENNE]     - Zmienne CSS i reset
   [ANIMACJE]    - Animacje i transitions
   [TOPNAV]      - Górny navbar z statystykami
   [SIDEBAR]     - Boczne menu nawigacyjne
   [CONTENT]     - Główna zawartość strony
   [CARDS]       - Karty produktów/klientów
   [BUTTONS]     - Przyciski i akcje
   [FORMS]       - Formularze i inputy
   [TABLES]      - Tabele danych
   [MODALS]      - Okna modalne
   [BADGES]      - Statystyki i badges
   [SEARCH]      - Global search (Omnisearch)
   [RESPONSIVE]  - Media queries
   [INNE]        - Pozostałe style

✅ GWARANCJA: Każdy selektor występuje DOKŁADNIE RAZ!
📊 STATUS: Zredukowano z ~5500 do ~3000 linii
🔧 OSTATNIA EDYCJA: 24.10.2025
*/



/* ============================================================================
   [ZMIENNE] ZMIENNE CSS I RESET
   ============================================================================ */

:root {
  --primary-blue:   #1e3a5f;
  --secondary-blue: #253045;
  --dark-blue:      #191e2b;
  --accent-blue:    #2d5a8c;
  --light-blue:     #e0f2fe;
  --silver:         #bfc0d1;
  --light-silver:   #d9d9d9;
  --success: #28c76f;
  --warning: #ff9f43;
  --danger:  #ea5455;
  --info:    #00c6e6;
  --gradient-primary:   radial-gradient(circle at 30% 30%, #2b3c55 0%, #141b26 70%);
  --gradient-secondary: linear-gradient(180deg, #2c3a52 0%, #3c4a5e 50%, #4c5a6a 100%);
  --gradient-accent:    linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
  --gradient-success:   linear-gradient(135deg, #28c76f 0%, #20a85b 100%);
  --gradient-warning:   linear-gradient(135deg, #ff9f43 0%, #f17300 100%);
  --gradient-danger:    linear-gradient(135deg, #ea5455 0%, #b63a3b 100%);
  --gradient-info:      linear-gradient(135deg, #00c6e6 0%, #253045 100%);
  --background: linear-gradient(145deg, #fafafa 0%, #ebebeb 60%, #dcdcdc 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    overflow-x: hidden;
    padding-top: 0;
    margin: 0;
    transition: all 0.3s ease;
}

/* Scrollbar styling for body */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(43, 60, 85, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(43, 60, 85, 0.5);
}

* {
    margin-top: 0;
}

/* Bootstrap Modal Backdrop Blur - wszystkie modale */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;  /* Taki sam jak omnisearch */
    backdrop-filter: blur(4px) !important;  /* Taki sam blur jak omnisearch */
    -webkit-backdrop-filter: blur(4px) !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}


/* ============================================================================
   [ANIMACJE] ANIMACJE I TRANSITIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}


/* ============================================================================
   [TOPNAV] GÓRNY NAVBAR Z SZYBKIMI STATYSTYKAMI
   ============================================================================ */

.top-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 1030 !important;
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px);
    margin: 0 !important;
}

.top-navbar .container-fluid {
    height: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Left Section - Logo & Brand */
.navbar-brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: start;
}

.navbar-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-right: 0.5rem;
}
/* Search Icon Button */
.btn-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

/* Quick stat sections */
.quick-stat-section {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.6rem 0.75rem !important;
    flex: 1 1 calc((100% - 2rem) / 3) !important;
    width: calc((100% - 2rem) / 3) !important;
    min-width: calc((100% - 2rem) / 3) !important;
    max-width: calc((100% - 2rem) / 3) !important;
    height: auto !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 15px 0 !important;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    line-height: 1.2;
}

.stat-header i {
    font-size: 0.8rem;
}

.stat-items {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    max-height: calc(100% - 35px);
    overflow: visible;
    padding: 0.2rem 0;
}

.stat-item-inline {
    padding: 0.25rem 0.4rem;
    font-size: 0.47rem;
    background: rgba(255,255,255,0.08);
    border-radius: 5px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.stat-item-inline:hover {
    background: rgba(255,255,255,0.15);
    border-left-color: #00c6e6;
}

.stat-rfq {
    font-size: 0.7rem;
    min-width: 80px;
    font-weight: 600;
}

.stat-client {
    font-size: 0.68rem;
    text-align: left;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-date {
    font-size: 0.68rem;
    min-width: 60px;
    text-align: right;
}

.stat-loading {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}

/* Right Section - User Panel */
.navbar-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

.user-info-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.user-name-display {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
}

.user-role-display {
    display: flex;
    align-items: center;
}

.role-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    line-height: 1;
}

.btn-logout-main {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout-main:hover {
    background: rgba(220, 38, 38, 0.4);
    border-color: rgba(220, 38, 38, 0.6);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.user-card-header {
    padding: 0.5rem 0.75rem !important;
    min-width: 150px !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.user-info-header {
    margin-bottom: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-info-header .user-name {
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
}

.user-info-header .user-role {
    line-height: 1.2;
}

.user-actions-header {
    gap: 0.15rem !important;
    display: flex;
    flex-direction: column;
}

.btn-user-action-header {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-start;
}

.btn-user-action-header:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.btn-logout-header {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.3);
}

.btn-logout-header:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.4);
}


/* ============================================================================
   [SIDEBAR] BOCZNE MENU NAWIGACYJNE
   ============================================================================ */

.sidebar {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    width: 280px !important;
    height: calc(100vh - 70px) !important;
    z-index: 100 !important;
    background: var(--gradient-secondary);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar.collapsed {
    width: 70px;
}
.sidebar-toggle {
    background: none;
    border: none;
    color: #A8B4C6;
    font-size: 1.8rem;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.sidebar-menu {
    padding: 20px 0;
    min-height: 100%;
}

/* New Category Structure */
.menu-category-new {
    margin-bottom: 1rem;
}

.category-header-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.category-header-new i {
    font-size: 0.8rem;
}

.category-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 20px 0.4rem 20px;
}

.menu-item-new {
    display: block !important;
    padding: 0.45rem 20px;
    padding-left: 48px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.menu-item-new:hover {
    color: #e69a47;
}

.menu-item-new.active {
    color: #e69a47;
    font-weight: 500;
}
.sidebar.collapsed .menu-category-header {
    justify-content: center;
    padding: 15px;
}
.sidebar.collapsed .category-arrow {
    display: none;
}
.sidebar.collapsed .category-icon {
    margin-right: 0;
    font-size: 1.1rem;
}
.sidebar.collapsed .menu-category-items {
    display: none;
}
.sidebar.collapsed .menu-item span {
    display: none;
}
.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 15px;
}
.sidebar.collapsed .menu-item i {
    margin-right: 0;
}
.sidebar-user-info {
    margin-top: auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user-info .user-card {
    background: linear-gradient(135deg, #2a3d52 0%, #1f2937 100%);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.sidebar-user-info .user-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sidebar-user-info .user-name {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.2;
}
.sidebar-user-info .user-role {
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.sidebar-user-info .user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sidebar-user-info .btn-user-action {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sidebar-user-info .btn-user-action:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}
.sidebar-user-info .btn-user-action i {
    width: 14px;
    font-size: 0.7rem;
}
.sidebar-user-info .btn-logout-action {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}
.sidebar-user-info .btn-logout-action:hover {
    background: rgba(220, 38, 38, 0.25);
    color: #fecaca;
}
.sidebar-user-info .user-avatar-large {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.sidebar-user-info .user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}
.sidebar-user-info .user-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b4f66 0%, #2d3d4f 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 2rem;
    border: 2px solid rgba(255,255,255,0.15);
}
.sidebar-user-info .user-notifications {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 0.25rem;
    flex-direction: column;
}
.sidebar-user-info .notification-dot {
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.sidebar-user-info .notification-dot:hover {
    transform: scale(1.1);
}
.sidebar-user-info .notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid #1f2937;
}
.sidebar-toggle-new {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.sidebar-toggle-new:hover {
    background: rgba(255,255,255,0.2);
}


/* ============================================================================
   [CONTENT] GŁÓWNA ZAWARTOŚĆ STRONY
   ============================================================================ */

.main-content {
    margin-top: 70px;
    margin-left: 280px;
    min-height: calc(100vh - 70px);
    background: #f8fafc;
    padding: 2rem;
}
.main-content.expanded {
    margin-left: 70px;
}


/* ============================================================================
   [CARDS] KARTY (PRODUKTY, KLIENCI, ETC)
   ============================================================================ */

.client-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border-left: 4px solid var(--dark-blue);
}
.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.client-card.business-info:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
.task-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}
.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.supplier-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--dark-blue);
}
.supplier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.supplier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}
.supplier-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.search-result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-border-primary {
    border-left: 4px solid var(--dark-blue) !important;
}
.card-border-success {
    border-left: 4px solid #28a745 !important;
}
.card-border-warning {
    border-left: 4px solid var(--warning) !important;
}
.card-border-info {
    border-left: 4px solid var(--info) !important;
}
.card-border-secondary {
    border-left: 4px solid var(--secondary) !important;
}
.card-border-dark {
    border-left: 4px solid var(--dark) !important;
}
.card-border-accent {
    border-left: 4px solid var(--accent-blue) !important;
}


/* ============================================================================
   [BUTTONS] PRZYCISKI I AKCJE
   ============================================================================ */

.btn-client {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-client:hover {
    transform: translateY(-1px);
    color: white;
}
.btn-warning {
    background: linear-gradient(135deg, #4e3a10 0%, #7a5a1a 100%) !important;
    color: #facc15 !important;
}
.btn-success {
    background: linear-gradient(135deg, #0e3b24 0%, #1f6b3b 100%) !important;
    color: #e7f8ee !important;
}
.btn-info {
    background: linear-gradient(135deg, #0f3a4a 0%, #156d7c 100%) !important;
    color: #e0f7ff !important;
}
.btn-secondary {
    background: linear-gradient(135deg, #2a2d32 0%, #44484f 100%) !important;
    color: #f1f5f9 !important;
}
.btn-primary-alt {
    background: linear-gradient(135deg, #1e2a3a 0%, #2f4a5e 100%) !important;
    color: #f1f5f9 !important;
}
.btn-excel-template {
    background: linear-gradient(135deg, #054b57, #0b6a79);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-excel-template:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 75, 87, 0.4);
    color: white;
}
.btn-excel-import {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-excel-import:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    color: white;
}
.search-clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.search-clear-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}
.actions-cell .action-btn {
    padding: 8px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}
.actions-cell .edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.actions-cell .edit-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.actions-cell .delete-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}
.actions-cell .delete-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}
.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}
.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}
.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}
.btn-logout:hover {
    background: rgba(220, 38, 38, 0.3) !important;
    border-color: rgba(220, 38, 38, 0.5) !important;
    color: #ff5722 !important;
}
.btn-action {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-action.btn-primary {
    background: var(--gradient-primary);
    color: white;
}
.btn-action.btn-primary:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.btn-action.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
.btn-action.btn-success:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-action.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.btn-action.btn-warning:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.btn-action.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.btn-action.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--dark-blue);
}
.view-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}
.view-btn.active {
    border-color: var(--dark-blue);
    background: linear-gradient(135deg, #1e2a3a, #2f4a5e);
    color: white;
}
.view-btn:hover:not(.active) {
    border-color: var(--dark-blue);
    background: #f8fafc;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #1e2a3a, #2f4a5e);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 42, 58, 0.3);
}
.btn-reset {
    background: linear-gradient(135deg, #2a2d32, #44484f) !important;
}
.btn-rounded {
    border-radius: 20px;
}
.btn-delete-row {
    display: inline-flex;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.5rem;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-delete-row:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}
.btn-delete-rounded {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3436;
    transition: all 0.3s ease;
}
.btn-delete-rounded:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-gradient-primary {
    background: var(--gradient-primary);
    border: none;
}
.btn-rounded-8 {
    border-radius: 8px;
}
.btn-user-dropdown {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.btn-user-dropdown:hover {
    background: rgba(255,255,255,0.2);
}


/* ============================================================================
   [FORMS] FORMULARZE I POLA WEJŚCIOWE
   ============================================================================ */

/* Niestandardowe checkboxy w kolorze systemu */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 8px;
}

input[type="checkbox"]:hover {
    border-color: #2f4a5e;
}

input[type="checkbox"]:checked {
    background-color: #2f4a5e;
    border-color: #2f4a5e;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 74, 94, 0.1);
}

input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-select, .form-control {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.form-select:focus, .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.search-input-compact {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}
.search-input-compact:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.search-input-group {
    position: relative;
    width: 100%;
    max-width: 600px;
}
.search-input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-input-wrapper input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--dark-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(25, 30, 43, 0.1);
}
.search-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2rem;
}
.form-hint {
    color: #6b7280;
    display: block;
    margin-top: 8px;
}
.form-control-product {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
}


/* ============================================================================
   [TABLES] TABELE DANYCH
   ============================================================================ */

.table th {
    border-top: none !important;
    font-weight: 600 !important;
    color: var(--dark-blue) !important;
    font-size: 0.9rem !important;
}
.table td {
    vertical-align: middle !important;
    font-size: 0.9rem !important;
}
.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05) !important;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table th {
    background: var(--dark-blue);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid var(--dark-blue);
}
.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.comparison-table tr:hover {
    background: #f9fafb;
}
.comparison-table tr.best-price {
    background: #ecfdf5;
}
.offers-table-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.offers-table {
    width: 100%;
    border-collapse: collapse;
}
.offers-table th {
    background: var(--dark-blue);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid var(--dark-blue);
}
.offers-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.ean-code {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 3px;
}

.product-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.3;
    max-width: 300px;
}

.offers-table tr:hover {
    background: #f9fafb;
}
.offer-row-highlight {
    background: #fef3c7 !important;
    animation: highlightPulse 2s ease-in-out;
}
@keyframes highlightPulse {
    0%, 100% { background: #fef3c7; }
    50% { background: #fde68a; }
}
.table-container-rounded {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.table-white {
    background: white;
}
.table-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}
.table-th-product {
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}
.table-th-center {
    text-align: center;
}
.table-body-white {
    background: white;
}
.product-table-cell {
    border: none;
    padding: 0.75rem;
    vertical-align: middle;
}
.product-table-cell-center {
    text-align: center;
}
.table-thead-light {
    background: #f8fafc;
}


/* ============================================================================
   [MODALS] OKNA MODALNE
   ============================================================================ */

/* Scrollbar w modalach - primary gradient */
.modal-body::-webkit-scrollbar,
.modal-body-scrollable::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track,
.modal-body-scrollable::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb,
.modal-body-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-body-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2d5a8c 0%, #1e3a5f 100%);
}

/* Scrollbar w tabelach wewnątrz modali (np. produkty) */
.modal-body .table-responsive::-webkit-scrollbar,
.modal-body table::-webkit-scrollbar,
#inquiryDetailModal .table-responsive::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.modal-body .table-responsive::-webkit-scrollbar-track,
.modal-body table::-webkit-scrollbar-track,
#inquiryDetailModal .table-responsive::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-body .table-responsive::-webkit-scrollbar-thumb,
.modal-body table::-webkit-scrollbar-thumb,
#inquiryDetailModal .table-responsive::-webkit-scrollbar-thumb {
    background: #1f6179;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.modal-body .table-responsive::-webkit-scrollbar-thumb:hover,
.modal-body table::-webkit-scrollbar-thumb:hover,
#inquiryDetailModal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #154a5e;
}

.modal-xl .modal-content {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Global modal scaling - zmniejszone rozmiary dla wszystkich modali */
.modal-content {
    font-size: 0.85rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content .modal-header {
    padding: 0.8rem 1rem;
    flex-shrink: 0;
}

.modal-content .modal-header h5,
.modal-content .modal-header .modal-title {
    font-size: 1.1rem;
}

.modal-content .modal-body {
    padding: 1rem 1.2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-content .modal-footer {
    padding: 0.7rem 1rem;
    flex-shrink: 0;
}

.modal-content .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.modal-content .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.modal-content .form-control,
.modal-content .form-select {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
}

.modal-content table {
    font-size: 0.8rem;
}

.modal-content table th {
    padding: 0.5rem 0.6rem;
}

.modal-content table td {
    padding: 0.4rem 0.6rem;
}

.modal-content .alert {
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
}

.modal-header-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}
.modal-body-light {
    background: #f8fafc;
}
.modal-footer-light {
    background: #f1f5f9;
    border: none;
}
.modal-body-scrollable {
    background: #f8fafc;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}
.section-title-modal {
    color: var(--dark-blue);
    font-weight: 700;
}
.modal-footer-white {
    background: white;
    border: none;
}
.modal-footer-white-extended {
    background: white;
    border: none;
    padding: 30px;
    justify-content: space-between;
}
.modal-z-index-high {
    z-index: 9999;
}
.modal-content-detail {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}
.modal-header-detail {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 30px;
}
.modal-title-detail {
    font-weight: 700;
}
.modal-body-detail {
    padding: 40px;
    background: #f8fafc;
}

/* Modal szczegółów zapytania - zmniejszony o 15% (BEZPOŚREDNIE ZMNIEJSZENIE) */
/* Modal inquiry detail - szeroki modal na 98% ekranu i wycentrowany */
.modal-inquiry-fullscreen {
    max-width: 98%;
    width: 98%;
    margin: 1rem auto; /* Wycentrowanie */
}

#inquiryDetailModal .modal-content {
    width: 100%;
}

/* Zmniejszenie fontów o 15% */
#inquiryDetailModal h3 {
    font-size: 1.7rem; /* zamiast 2rem */
}

#inquiryDetailModal h4 {
    font-size: 1.36rem; /* zamiast 1.6rem */
}

#inquiryDetailModal h5 {
    font-size: 1.19rem; /* zamiast 1.4rem */
}

#inquiryDetailModal h6 {
    font-size: 1.02rem; /* zamiast 1.2rem */
}

#inquiryDetailModal p,
#inquiryDetailModal .form-label,
#inquiryDetailModal .form-control,
#inquiryDetailModal .btn,
#inquiryDetailModal td,
#inquiryDetailModal th {
    font-size: 0.85rem; /* zamiast 1rem */
}

#inquiryDetailModal .small,
#inquiryDetailModal small {
    font-size: 0.765rem; /* zamiast 0.9rem */
}

/* Zmniejszenie paddingów i marginesów o 15% */
#inquiryDetailModal .modal-body {
    padding: 1.7rem; /* zamiast 2rem */
}

#inquiryDetailModal .modal-header {
    padding: 1.275rem 1.7rem; /* zamiast 1.5rem 2rem */
}

#inquiryDetailModal .card,
#inquiryDetailModal .alert {
    padding: 1.275rem; /* zamiast 1.5rem */
    margin-bottom: 1.275rem; /* zamiast 1.5rem */
}

#inquiryDetailModal .btn {
    padding: 0.4675rem 0.85rem; /* zamiast 0.55rem 1rem */
}

#inquiryDetailModal .form-control,
#inquiryDetailModal .form-select {
    padding: 0.4675rem 0.85rem; /* zamiast 0.55rem 1rem */
}

#inquiryDetailModal .table td,
#inquiryDetailModal .table th {
    padding: 0.6375rem; /* zamiast 0.75rem */
}

#inquiryDetailModal .mb-1 { margin-bottom: 0.2125rem !important; } /* zamiast 0.25rem */
#inquiryDetailModal .mb-2 { margin-bottom: 0.425rem !important; } /* zamiast 0.5rem */
#inquiryDetailModal .mb-3 { margin-bottom: 0.85rem !important; } /* zamiast 1rem */
#inquiryDetailModal .mb-4 { margin-bottom: 1.275rem !important; } /* zamiast 1.5rem */

#inquiryDetailModal .mt-1 { margin-top: 0.2125rem !important; }
#inquiryDetailModal .mt-2 { margin-top: 0.425rem !important; }
#inquiryDetailModal .mt-3 { margin-top: 0.85rem !important; }
#inquiryDetailModal .mt-4 { margin-top: 1.275rem !important; }

#inquiryDetailModal .gap-2 { gap: 0.425rem !important; } /* zamiast 0.5rem */
#inquiryDetailModal .gap-3 { gap: 0.85rem !important; } /* zamiast 1rem */


/* ============================================================================
   [BADGES] STATYSTYKI I BADGES
   ============================================================================ */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Customer Order Status Styles - unified with zamowienia-klienta.html */
.customer-order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending { background: linear-gradient(135deg, #64748b, #475569); color: white; }
.status-confirmed { background: linear-gradient(135deg, #0f2f24, #1a4f3b); color: white; }
.status-in-production { background: linear-gradient(135deg, #4e3a10, #7a5a1a); color: #facc15; }
.status-shipped { background: linear-gradient(135deg, #1e40af, #3730a3); color: white; }
.status-partially-delivered { background: linear-gradient(135deg, #ea580c, #c2410c); color: white; }
.status-delivered { background: linear-gradient(135deg, #0e3b24, #1f6b3b); color: #e7f8ee; }
.status-cancelled { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: white; }

/* Legacy status styles - keep for backward compatibility */
.status-active { background: linear-gradient(135deg, #1e4620, #2d6b32); color: white; }
.status-inactive { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: white; }
.status-premium { background: #e5e7eb; color: #1e293b; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-box {
    background: white;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}
.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1;
}
.stat-label {
    color: var(--dark-blue);
    font-weight: 500;
    margin-top: 3px;
}
.badge {
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* Bootstrap badge colors - ensure they work */
.bg-primary {
    background-color: #0d6efd !important;
}
.bg-secondary {
    background-color: #6c757d !important;
}
.bg-success {
    background-color: #198754 !important;
}
.bg-danger {
    background-color: #dc3545 !important;
}
.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}
.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}
.bg-light {
    background-color: #f8f9fa !important;
    color: #000 !important;
}
.bg-dark {
    background-color: #212529 !important;
}
.vat-status-valid { color: #10b981; font-weight: 600; }
.vat-status-invalid { color: #ef4444; font-weight: 600; }
.vat-status-error { color: #6b7280; font-weight: 600; }
.vat-status-unknown { color: #6b7280; font-weight: 600; }
.task-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.task-status.new {
    background: #44484f;
    box-shadow: 0 0 0 3px rgba(68, 72, 79, 0.2);
}
.task-status.in-progress {
    background: #1f6179;
    box-shadow: 0 0 0 3px rgba(31, 97, 121, 0.2);
}
.task-status.completed {
    background: #1f6b3b;
    box-shadow: 0 0 0 3px rgba(31, 107, 59, 0.2);
}
.task-status.cancelled {
    background: #5c2c2c;
    box-shadow: 0 0 0 3px rgba(92, 44, 44, 0.2);
}
.task-status.overdue {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.supplier-badges {
    display: flex;
    gap: 8px;
}
.badge-preferred {
    background: linear-gradient(135deg, #2d3e50, #4a5f7a);
    color: white;
}
.badge-verified {
    background: linear-gradient(135deg, #1e3a5f, #2d5a8c);
    color: white;
}
.supplier-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}
.stat-item {
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
}
.result-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}
.stat-badge {
    padding: 6px 16px;
    background: #f1f5f9;
    color: var(--dark-blue);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
.best-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}
.availability-text {
    color: #64748b;
    font-size: 0.85rem;
}
.status-in_stock {
    background: #e5e7eb;
    color: #1e293b;
}
.status-on_order {
    background: #e5e7eb;
    color: #1e293b;
}
.status-discontinued {
    background: #e5e7eb;
    color: #1e293b;
}
.status-unknown {
    background: #e5e7eb;
    color: #4b5563;
}
.detail-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.detail-stat .stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.detail-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
}
.detail-stats-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Additional navbar styles */
.stat-item:hover {
    background: rgba(255,255,255,0.15);
}
.stat-item-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-item-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

/* Scrollbar styles for stat items */
.stat-items::-webkit-scrollbar {
    width: 3px;
}
.stat-items::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}
.stat-items::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.stat-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Additional navbar stat styles */
.quick-stat-section:first-child {
    min-width: 280px;
    max-width: 350px;
}
.stat-header span {
    color: white !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}


/* ============================================================================
   [RESPONSIVE] MEDIA QUERIES - RESPONSYWNOŚĆ
   ============================================================================ */

@media (max-width: 768px) {
    .task-details {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .main-content {
        margin-left: 0;
        margin-top: 70px;
        padding: 15px;
    }
    .logo-icon {
        display: none;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
}


/* ============================================================================
   [DASHBOARD] DASHBOARD-SPECIFIC STYLES
   ============================================================================ */

/* KPI Cards Grid */
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-kpi-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-kpi-card .kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-kpi-card .kpi-icon i {
    font-size: 26px;
    color: white;
}

.dashboard-kpi-card .kpi-content {
    flex: 1;
}

.dashboard-kpi-card .kpi-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 5px;
}

.dashboard-kpi-card .kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.dashboard-kpi-card .kpi-trend {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dashboard-kpi-card .kpi-trend i {
    font-size: 10px;
}

.dashboard-kpi-card .kpi-trend.neutral {
    color: #6b7280;
}

.dashboard-kpi-card .kpi-trend.negative {
    color: var(--danger);
}

/* Workflow Funnel */
.workflow-funnel {
    padding: 20px 0;
}

.funnel-step {
    margin-bottom: 12px;
}

.funnel-bar {
    background: var(--gradient-primary);
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.funnel-bar:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.funnel-bar.funnel-bar-info {
    background: var(--gradient-info);
}

.funnel-bar.funnel-bar-success {
    background: var(--gradient-success);
}

.funnel-bar.funnel-bar-warning {
    background: var(--gradient-warning);
}

.funnel-bar.funnel-bar-danger {
    background: var(--gradient-danger);
}

.funnel-bar.funnel-bar-purple {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}

.funnel-bar.funnel-bar-dark {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

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

.funnel-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnel-label i {
    font-size: 18px;
}

.funnel-value {
    font-size: 24px;
    font-weight: 700;
}

.funnel-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Workflow Metrics */
.workflow-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.metric-item .metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-item .metric-icon i {
    font-size: 22px;
    color: white;
}

.metric-item .metric-details {
    flex: 1;
}

.metric-item .metric-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 3px;
}

.metric-item .metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.metric-item .metric-subtitle {
    font-size: 11px;
    color: #9ca3af;
}

/* Activity Timeline */
.activity-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: white;
    font-size: 16px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.activity-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #9ca3af;
}

.activity-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Top Entities List */
.top-entities-list {
    max-height: 400px;
    overflow-y: auto;
}

.entity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.entity-item:last-child {
    border-bottom: none;
}

.entity-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entity-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.entity-details .entity-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.entity-details .entity-meta {
    font-size: 12px;
    color: #6b7280;
}

.entity-value {
    font-weight: 700;
    color: var(--success);
    font-size: 16px;
}

/* Tasks List */
.tasks-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.task-priority.high {
    background: var(--danger);
}

.task-priority.medium {
    background: var(--warning);
}

.task-priority.low {
    background: var(--success);
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.task-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.task-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* Alerts List */
.alerts-list {
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-left: 4px solid var(--warning);
    background: #fffbeb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert-item.critical {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.alert-item.info {
    border-left-color: var(--info);
    background: #eff6ff;
}

.alert-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: var(--warning);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item.critical .alert-icon {
    background: var(--danger);
}

.alert-item.info .alert-icon {
    background: var(--info);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.alert-message {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.alert-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Card Header Custom */
.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.card-header-custom h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-custom h2 i {
    font-size: 20px;
}

.card-header-custom p {
    font-size: 13px;
    color: #6b7280;
    margin: 5px 0 0 0;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* Loading Skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
    width: 60px;
    height: 20px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dashboard-kpi-card {
        flex-direction: column;
        text-align: center;
    }

    .workflow-metrics {
        gap: 10px;
    }

    .metric-item {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   [INNE] POZOSTAŁE STYLE
   ============================================================================ */

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 5px;
    padding: 8px 15px !important;
    font-size: 1.3rem;
}
.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}
.menu-category {
    margin-bottom: 5px;
}
.menu-category-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #A8B4C6;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.menu-category-header:hover {
    color: #60a5fa;
}
.category-icon {
    fill: white;
    width: 16px;
    margin-right: 10px;
    font-size: 0.9rem;
}
.category-title {
    flex: 1;
}
.category-arrow {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.menu-category-header.active .category-arrow {
    transform: rotate(90deg);
}
.menu-category-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}
.menu-category-items.expanded {
    max-height: 500px;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #A8B4C6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
    font-size: 0.9rem;
}
.menu-item:hover {
    color: #60a5fa;
    border-left-color: #60a5fa;
}
.menu-item.active {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96,165,250,0.3);
}
.menu-item i {
    width: 20px;
    margin-right: 15px;
    font-size: 1rem;
}
.business-info .detail-row:hover {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin: 0 !important;
    transform: none !important;
}
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}
.client-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
}
.client-details {
    color: #64748b;
    margin-bottom: 15px;
}
.client-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}
.client-meta i {
    color: var(--dark-blue);
    margin-right: 6px;
    font-size: 0.85rem;
}
.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.5);
}
.filter-row, .filters-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}
.filter-group {
    flex: 1;
    min-width: 200px;
}
.filter-group label {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
    display: block;
}
.filter-action, .filter-actions {
    margin-left: 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.search-section {
    margin: 30px 0 20px 0;
}
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.search-box {
    margin-top: 25px;
}
.search-box-integrated {
    position: relative;
    width: 100%;
}
.clear-search-compact {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.clear-search-compact:hover {
    background: #f3f4f6;
    color: #374151;
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}
.client-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.actions-cell {
    text-align: center;
    white-space: nowrap;
}
.detail-row {
    transition: all 0.2s ease;
}
.detail-row:hover {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
    padding: 8px !important;
    margin: -8px;
}
.icon-box {
    transition: all 0.3s ease;
}
.icon-box:hover {
    transform: scale(1.1);
}
.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.client-tag {
    display: inline-block;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
}
.client-tags-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    align-content: flex-start;
}
.client-tag-detail {
    display: inline-block;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    vertical-align: top;
}
.client-tag-header {
    display: inline-block;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: none;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vat-indicator {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
.nav-tabs {
    border-bottom: 2px solid #e2e8f0 !important;
}
.nav-tabs .nav-link {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 12px 20px !important;
    margin-right: 5px !important;
    color: var(--dark-blue) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}
.nav-tabs .nav-link:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px) !important;
}
.nav-tabs .nav-link.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-bottom: 3px solid var(--primary-blue) !important;
}
.nav-tabs .nav-link.active:hover {
    transform: none !important;
}
.tab-content {
    border: none !important;
}
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

.pagination .page-link {
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    background: white;
    min-width: 38px;
    text-align: center;
}

.pagination .page-link:hover {
    background: var(--gradient-primary);
    border-color: #2b3c55;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 60, 85, 0.3);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: #2b3c55;
    color: white;
    box-shadow: 0 2px 8px rgba(43, 60, 85, 0.35);
}

.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #cbd5e1;
    transform: none;
    box-shadow: none;
}

.pagination .page-item {
    margin: 0;
}
#pagination-container {
    padding: 20px 0;
}
#pagination-container .text-muted {
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    margin-left: 20px;
}
.task-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
}
.task-workflow-stage {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #ff0077;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.stage-kwotacja { background: linear-gradient(135deg, #2f2a1f 0%, #5a4b2b 100%); color: #facc15; }
.stage-oferta { background: linear-gradient(135deg, #1e2a3a 0%, #2f4a5e 100%); color: #93c5fd; }
.stage-zamowienie { background: linear-gradient(135deg, #332533 0%, #4a314a 100%); color: #f9a8d4; }
.stage-nadzor { background: linear-gradient(135deg, #0f2f24 0%, #1a4f3b 100%); color: #86efac; }
.stage-followup { background: linear-gradient(135deg, #2e2642 0%, #45346b 100%); color: #c4b5fd; }
.stage-draft { background: linear-gradient(135deg, #2a2d32 0%, #44484f 100%); color: #e2e8f0; }
.stage-sent { background: linear-gradient(135deg, #163545 0%, #1f6179 100%); color: #7dd3fc; }
.stage-responded { background: linear-gradient(135deg, #1e2a3a 0%, #2f4a5e 100%); color: #93c5fd; }
.stage-completed { background: linear-gradient(135deg, #0e3b24 0%, #1f6b3b 100%); color: #86efac; }
.stage-cancelled { background: linear-gradient(135deg, #3a1f1f 0%, #5c2c2c 100%); color: #fca5a5; }
.task-priority {
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}
.priority-high {
    background: #fef2f2;
    color: #dc2626;
}
.priority-medium {
    background: #fffbeb;
    color: #d97706;
}
.priority-low {
    background: #f0f9ff;
    color: #0284c7;
}
.priority-urgent {
    background: #fef2f2;
    color: #dc2626;
}
.priority-normal {
    background: #f0f9ff;
    color: #0284c7;
}
.task-content h5 {
    margin: 0;
    color: var(--dark-blue);
    font-weight: 600;
}
.task-content p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
}
.task-meta {
    margin-left: auto;
    text-align: right;
    font-size: 0.8rem;
    color: #94a3b8;
}
.task-body {
    padding: 15px 20px;
}
.task-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.detail-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}
.detail-value {
    font-weight: 600;
    color: var(--dark-blue);
}
.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.task-history {
    padding-top: 0;
    margin-top: 0;
}
.history-item {
    display: flex;
    gap: 8px;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}
.history-icon {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    margin-top: 6px;
}
.history-content {
    flex: 1;
}
.history-time {
    color: #94a3b8;
    font-size: 0.7rem;
}
.info-section {
    margin-bottom: 1.5rem;
}
.section-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-content {
    padding: 1rem 0;
    line-height: 1.6;
}
.info-content p {
    margin-bottom: 0.5rem;
    color: #4b5563;
}
.info-content strong {
    color: #1f2937;
    font-weight: 600;
}
.modern-link {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-weight: 500;
}
.modern-link:hover {
    color: var(--secondary-blue) !important;
}
.supplier-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-blue);
}
.supplier-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
}
.info-item i {
    color: var(--dark-blue);
    width: 16px;
}
.search-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}
.result-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}
.price-range {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
}
.price-cell {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}
.detail-header {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 1.1rem;
}
.view-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.file-preview-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.file-preview-item i {
    color: var(--dark-blue);
}
.file-preview-item .remove-file {
    cursor: pointer;
    color: #ef4444;
    margin-left: 4px;
    font-weight: bold;
}
.file-preview-item .remove-file:hover {
    color: #dc2626;
}
.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-right: 6px;
    margin-bottom: 6px;
}
.attachment-link:hover {
    background: #e2e8f0;
    border-color: var(--dark-blue);
    color: var(--dark-blue);
}
.attachment-link i {
    font-size: 0.9rem;
}
.date-cell {
    font-size: 0.85rem;
    color: #64748b;
}
.date-cell .date {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
}
.date-cell .time {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}
.navbar-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
}
.page-title {
    color: var(--dark-blue);
    font-weight: 700;
}
.hidden {
    display: none !important;
}
.view-hidden {
    display: none;
}
.search-title-centered {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-blue);
}
.detail-title {
    margin: 0;
    color: var(--dark-blue);
    text-align: center;
}
.offers-title {
    margin-bottom: 20px;
    color: var(--dark-blue);
}
.dropdown-scrollable {
    max-height: 200px;
    overflow-y: auto;
}
.trash-icon {
    font-size: 0.75rem;
}
.new-inquiry-cell {
    padding: 0.75rem;
    border-top: 1px solid #e9ecef;
}
.new-inquiry-cell-center {
    text-align: center;
}
.trash-icon-small {
    font-size: 0.75rem;
}
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
}

/* Custom styled notifications/toasts */
.notification-alert {
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    max-width: 450px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem 1.2rem;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success notification - green */
.notification-alert.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-left: 5px solid #047857;
}

.notification-alert.alert-success .btn-close {
    filter: brightness(0) invert(1);
}

/* Error/Danger notification - red */
.notification-alert.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-left: 5px solid #b91c1c;
}

.notification-alert.alert-danger .btn-close {
    filter: brightness(0) invert(1);
}

/* Warning notification - orange/yellow */
.notification-alert.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-left: 5px solid #b45309;
}

.notification-alert.alert-warning .btn-close {
    filter: brightness(0) invert(1);
}

/* Info notification - primary blue */
.notification-alert.alert-info {
    background: linear-gradient(135deg, #1f6179 0%, #154a5e 100%);
    color: white;
    border-left: 5px solid #0f3849;
}

.notification-alert.alert-info .btn-close {
    filter: brightness(0) invert(1);
}

/* Close button styling */
.notification-alert .btn-close {
    opacity: 0.8;
    font-size: 0.8rem;
}

.notification-alert .btn-close:hover {
    opacity: 1;
}
.icon-box-primary {
    background: var(--gradient-primary);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.icon-box-success {
    background: var(--gradient-success);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.icon-box-warning {
    background: var(--gradient-warning);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.icon-box-info {
    background: var(--gradient-info);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.icon-box-secondary {
    background: var(--gradient-secondary);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.icon-box-dark {
    background: var(--gradient-dark);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.text-success {
    color: #28a745;
}
.icon-box-accent {
    background: var(--gradient-accent);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.detail-row-border {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}
.detail-row-business-info {
    text-align: center;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 10px;
}
.collaboration-warning-box {
    margin-top: 12px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}
.tab-border-bottom {
    border-bottom: 2px solid #e2e8f0;
}
.tab-nav-link {
    border: none;
    font-weight: 600;
    color: var(--dark-blue);
}
.tab-content-padding {
    padding: 20px 0;
}
.client-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.client-tags-header-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    max-width: 300px;
    position: absolute;
    left: calc(50% + 250px);
    transform: translateX(-50%);
}
#paginationContainer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.pagination-info {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-top: 5px;
}
.age-warning {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff9f43 0%, #f17300 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: help;
}
.supplier-detail-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.detail-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-blue);
}
.detail-info-item i {
    color: var(--dark-blue);
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.brand-content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.navbar-logo-new {
    height: 30px;
    width: auto;
}
.brand-name {
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.2;
}
.navbar-user-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.user-panel-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
}
.user-info-compact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.user-name-compact {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}
.user-role-compact {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
}
.user-avatar-compact {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}
.user-avatar-img-compact {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}
.user-avatar-placeholder-compact {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b4f66 0%, #2d3d4f 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
}
.user-actions-dropdown {
    position: relative;
}
.dropdown-menu-user {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 1000;
}

/* Additional user panel styles */
.user-avatar-header {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}
.user-avatar-img-header {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}
.user-avatar-placeholder-header {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b4f66 0%, #2d3d4f 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.8rem;
    border: 2px solid rgba(255,255,255,0.15);
}
.user-notifications-header {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    gap: 0.2rem;
    flex-direction: column;
}
.notification-dot-header {
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.notification-dot-header:hover {
    transform: scale(1.1);
}
.notification-count-header {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    border: 2px solid #1f2937;
}
html {
    margin: 0 !important;
    padding: 0 !important;
}
#pageHeader {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.inquiry-grid {
    margin-top: 1rem !important;
}
/* ============================================================================
   UZUPEŁNIENIE - BRAKUJĄCE KLASY Z BACKUPU
   ============================================================================ */


/* User panel compact variant */
.user-info-header .user-name {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    margin: 0;
}

/* ============================================================================
   PAGINATION CONTROLS - Jednolite style dla paginacji
   ============================================================================ */

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.pagination-btn {
    background: linear-gradient(135deg, var(--dark-blue), #2f4a5e);
    color: white;
    border: none;
    padding: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 36px;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

.pagination-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #1e3a5f, #2f4a5e) !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(30, 58, 95, 0.4);
}

.pagination-info {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* Hide Import 1 column when no data */
.hide-import1-column .import1-column {
    display: none;
}

/* 🏪 Warehouse Styles */
.warehouse-row {
    margin-bottom: 2rem;
}

.warehouse-container {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.warehouse-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Kontakt tab styling */
.contact-info {
    background: #f8fafc;
}

.contact-info h5 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.contact-info h5:first-of-type {
    margin-top: 0;
}

.contact-info .info-row {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-info .info-row:last-child {
    border-bottom: none;
}

.contact-info .info-row strong {
    color: #475569;
    display: inline-block;
    min-width: 120px;
}

.contact-info .info-row span {
    color: #1e293b;
}

.notes-box {
    min-height: 100px;
    border: 1px solid #e2e8f0;
}

/* Warehouse buttons */
.warehouse-edit-btn,
.warehouse-save-btn,
.warehouse-cancel-btn,
.warehouse-export-btn {
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.warehouse-edit-btn {
    background: linear-gradient(135deg, #1e3a5f, #2f5a7e);
    color: white;
}

.warehouse-edit-btn:hover {
    background: linear-gradient(135deg, #152d4a, #234564);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 95, 0.3);
}

.warehouse-export-btn {
    background: linear-gradient(135deg, #1d6f42 0%, #0f4c2c 100%);
    color: white;
    margin-top: 0.75rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(29, 111, 66, 0.3);
}

.warehouse-export-btn:hover {
    background: linear-gradient(135deg, #0f4c2c 0%, #1d6f42 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 111, 66, 0.4);
}

.warehouse-export-btn i {
    font-size: 1rem;
}

.warehouse-save-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.warehouse-save-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.warehouse-cancel-btn {
    background: #e2e8f0;
    color: #475569;
}

.warehouse-cancel-btn:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

.notes-actions {
    display: flex;
    gap: 0.5rem;
}

/* Warehouse badge cursor */
.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    opacity: 0.85;
}

/* ============================================================================
   [SEARCH] GLOBAL SEARCH (OMNISEARCH)
   ============================================================================ */

/* Search overlay backdrop */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1045;  /* Pomiędzy navbar (1050) a Bootstrap modal-backdrop (1040) */
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    animation: fadeIn 0.2s ease-out;
}

.search-overlay.active {
    display: flex;
}

/* Search modal container */
.search-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 95%;
    max-width: 900px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.25s ease-out;
}

/* Search input section */
.search-input-wrapper {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    width: 100%;  /* Upewnij się że wrapper jest pełnej szerokości */
}

.search-input-wrapper input {
    width: 100% !important;  /* Wymuś pełną szerokość */
    max-width: none !important;  /* Usuń limity */
    font-size: 0.85rem;  /* Jeszcze mniejsza czcionka */
    padding: 0.3rem 0.75rem 0.3rem 2.75rem;  /* Zwiększony lewy padding: 2.75rem zamiast 2.25rem */
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;  /* Uwzględnij padding w width */
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.search-input-wrapper::before {
    content: "🔍";
    position: absolute;
    left: 1.75rem;  /* Przesunięte bliżej lewej krawędzi: 1.75rem zamiast 2rem */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;  /* Mniejsza lupa: 1rem zamiast 1.1rem */
    opacity: 0.5;
}

/* Search results container */
.search-results {
    overflow-y: auto;
    padding: 0.5rem;
    max-height: calc(70vh - 100px);
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Search category section */
.search-category {
    margin-bottom: 1.5rem;
}

.search-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

/* Search result item */
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
}

.search-result-item:hover {
    background: #f1f5f9;
}

.search-result-item.selected {
    background: #e0f2fe;
    border-left: 3px solid var(--primary-blue);
}

.search-result-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Empty state */
.search-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #94a3b8;
    font-size: 0.9375rem;
}

/* Keyboard hint */
.search-hint {
    display: none; /* Hidden - not needed */
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.875rem;
    color: #475569;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
}

.search-hint kbd {
    background: white;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.813rem;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #334155;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status badges in search results */
.search-result-item .status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    white-space: nowrap;
}


/* ============================================================================
   [DASHBOARD] DASHBOARD ANALYTICS
   ============================================================================ */

/* Dashboard Main Container */
.dashboard-container {
    padding: 2rem;
    background: var(--background);
    min-height: 100vh;
}

/* KPI Cards Grid */
.kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.kpi-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 30%, rgba(0,0,0,0.02) 100%);
    border-radius: 0 12px 0 100%;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kpi-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.813rem;
    color: #64748b;
}

.kpi-trend.positive { color: #10b981; }
.kpi-trend.negative { color: #ef4444; }

.kpi-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.813rem;
    color: #64748b;
}

.kpi-breakdown-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Workflow Funnel */
.workflow-funnel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--accent-blue);
}

.funnel-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.funnel-compact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    flex-wrap: nowrap;
    padding: 0;
    background: transparent;
    border-radius: 0;
    width: auto;
}

.funnel-lose-row {
    margin-left: 365px;
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-start;
}

.funnel-split-inline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.funnel-box.tiny {
    padding: 0.6rem 1rem;
    min-width: 85px;
    border-radius: 6px;
}

.funnel-box.tiny .funnel-count {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.funnel-box.tiny .funnel-label {
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.funnel-step {
    flex: 0 0 auto;
}

.funnel-box {
    background: var(--gradient-accent);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 8px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
    transition: all 0.3s ease;
}

.funnel-box.small {
    padding: 0.5rem 0.85rem;
    min-width: 70px;
}

.funnel-box.win {
    background: var(--gradient-success);
    box-shadow: 0 4px 12px rgba(40, 199, 111, 0.3);
}

.funnel-box.lose {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.funnel-box.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.funnel-box.yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.funnel-box.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.funnel-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
}

.funnel-box.win:hover {
    box-shadow: 0 8px 20px rgba(40, 199, 111, 0.4);
}

.funnel-box.lose:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.funnel-box.green:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.funnel-box.yellow:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.funnel-box.purple:hover {
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.funnel-count {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.funnel-box.small .funnel-count {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.funnel-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funnel-box.small .funnel-label {
    font-size: 0.6rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.funnel-arrow {
    font-size: 1rem;
    color: var(--accent-blue);
    font-weight: 700;
    opacity: 0.6;
}

.funnel-metrics-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
}

.funnel-metric-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel-metrics {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: flex-start;
}

.funnel-metric {
    text-align: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    min-width: 100px;
    border-left: 3px solid var(--primary-blue);
}

.funnel-metric.win {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.funnel-metric.lose {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.funnel-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.funnel-metric.win .funnel-metric-value {
    color: #10b981;
}

.funnel-metric.lose .funnel-metric-value {
    color: #ef4444;
}

.funnel-metric-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Cycle Metrics */
.cycle-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.metric-benchmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 500;
}

.metric-benchmark.excellent {
    background: #d1fae5;
    color: #065f46;
}

.metric-benchmark.good {
    background: #dbeafe;
    color: #1e40af;
}

.metric-benchmark.warning {
    background: #fef3c7;
    color: #92400e;
}

.metric-benchmark i {
    font-size: 0.875rem;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Recent Activity */
.activity-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.activity-item:hover {
    background: #f1f5f9;
    border-left-color: var(--accent-blue);
    transform: translateX(4px);
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-item-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    font-size: 0.938rem;
}

.activity-item-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-timestamp {
    color: #94a3b8;
    font-size: 0.813rem;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .kpi-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .kpi-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cycle-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .funnel-container {
        flex-direction: column;
    }
    
    .funnel-arrow {
        transform: rotate(90deg);
    }
}

/* ============================================================================
   [PERMISSIONS] PERMISSION-BASED MENU VISIBILITY
   ============================================================================
   Menu items are hidden based on individual permissions from Django Admin.
   Auth.js adds "hide-*" classes to body based on user's role permissions.
   
   No hardcoded role logic - everything controlled via Django Admin!
   ========================================================================= */

/* Hide menu items based on permissions (classes added by auth.js) */
body.hide-klienci #menu-klienci {
    display: none !important;
}

body.hide-rfqs a[href="/zapytania.html"] {
    display: none !important;
}

body.hide-orders #menu-zamowienia-klienta {
    display: none !important;
}

body.hide-purchase-orders #menu-zamowienia-dostawcy {
    display: none !important;
}

body.hide-warehouse #menu-magazyny {
    display: none !important;
}

body.hide-suppliers #menu-dostawcy {
    display: none !important;
}

body.hide-supplier-offers #menu-oferty {
    display: none !important;
}

body.hide-dashboard a[href="/dashboard.html"],
body.hide-dashboard a[href="/"] {
    display: none !important;
}

body.hide-settings .menu-item[href="/ustawienia.html"],
body.hide-settings #menu-ustawienia {
    display: none !important;
}

body.hide-checklist .menu-item[href="/checklist.html"],
body.hide-checklist #menu-checklist {
    display: none !important;
}



