        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #F6F7F9; min-height: 100vh; color: #1f2937; }
        .login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
        .login-box { background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 40px; max-width: 400px; width: 100%; }
        .login-box h1 { text-align: center; font-size: 64px; margin-bottom: 16px; }
        .login-box h2 { text-align: center; font-size: 32px; font-weight: bold; color: #1f2937; margin-bottom: 8px; }
        .login-box p { text-align: center; color: #6b7280; margin-bottom: 30px; }
        .form-group { margin-bottom: 16px; }
        .form-group label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 4px; }
        .form-group input { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 16px; }
        .btn { width: 100%; background: #059669; color: white; padding: 12px; border-radius: 8px; border: none; font-size: 16px; font-weight: 600; cursor: pointer; }
        .btn:hover { background: #047857; }
        .btn:disabled { opacity: 0.6; cursor: not-allowed; }
        .error { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
        .header { background: white; color: #1f2937; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 16px 24px; border-bottom: 1px solid #e5e7eb; }
        .header-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
        .header-left { display: flex; align-items: center; gap: 12px; }
        .header-logo { font-size: 28px; }
        .header-center { display: flex; align-items: center; justify-content: center; flex: 1; margin: 0 20px; }
        .company-logo { height: 60px; width: auto; object-fit: contain; transition: all 0.3s ease; }
        .company-logo:hover { transform: scale(1.05); }
        .header-title h1 { font-size: 18px; font-weight: 700; margin-bottom: 2px; color: #047857; }
        .header-title p { font-size: 12px; color: #6b7280; }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .header-user { text-align: right; }
        .header-user-name { font-size: 13px; font-weight: 600; color: #1f2937; }
        .header-user-role { font-size: 11px; color: #6b7280; }
        .user-menu { position: relative; }
        .user-menu-button { background: #f3f4f6; color: #374151; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
        .user-menu-button:hover { background: #e5e7eb; }
        .user-menu-dropdown { display: none; position: absolute; right: 0; top: 100%; margin-top: 8px; background: white; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); min-width: 200px; z-index: 1000; }
        .user-menu-dropdown.show { display: block; }
        .user-menu-item { padding: 12px 16px; cursor: pointer; font-size: 14px; color: #374151; border-bottom: 1px solid #f3f4f6; }
        .user-menu-item:hover { background: #f9fafb; }
        .user-menu-item:last-child { border-bottom: none; }
        .user-menu-item.danger { color: #dc2626; }
        .user-menu-item.danger:hover { background: #fee2e2; }
        .btn-logout { background: #dc2626; color: white; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; }
        .btn-logout:hover { background: #b91c1c; }
        .container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
        .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
        .card { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 24px; border: 1px solid #f3f4f6; transition: all 0.2s; }
        .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e5e7eb; }
        .card-label { font-size: 13px; color: #6b7280; margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
        .card-value { font-size: 32px; font-weight: 700; }
        .card-value.green { color: #059669; }
        .card-value.blue { color: #2563eb; }
        .card-value.red { color: #dc2626; }
        .section { background: white; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 32px; margin-bottom: 24px; }
        .section h2 { font-size: 20px; font-weight: bold; margin-bottom: 8px; color: #1f2937; }
        .section p { font-size: 14px; color: #6b7280; margin-bottom: 24px; }

        /* Page Header */
        .page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
        .page-header-left h1 { font-size: 24px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
        .page-header-left p { font-size: 14px; color: #6b7280; }
        .page-header-right { display: flex; gap: 8px; align-items: center; }
        .badge { display: inline-block; padding: 6px 12px; background: #e0e7ff; color: #3730a3; border-radius: 12px; font-size: 12px; font-weight: 600; }
        .notification-badge { position: relative; display: inline-block; }
        .notification-badge .badge-count { position: absolute; top: -8px; right: -8px; background: #dc2626; color: white; border-radius: 10px; padding: 2px 6px; font-size: 11px; font-weight: 700; min-width: 18px; text-align: center; display: none; }
        .notification-badge .badge-count.show { display: block; }
        .badge.success { background: #d1fae5; color: #047857; }
        .badge.warning { background: #fef3c7; color: #92400e; }

        /* Cache Status Indicator */
        .cache-status { background: #f3f4f6; color: #6b7280; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: help; transition: all 0.2s; }
        .cache-status:hover { background: #e5e7eb; }
        .cache-status.cache-fresh { background: #d1fae5; color: #047857; }
        .cache-status.cache-loading { background: #fef3c7; color: #92400e; }
        .cache-status.cache-stale { background: #fee2e2; color: #dc2626; }
        .cache-status-icon { font-size: 12px; }
        .cache-status-text { white-space: nowrap; }

        /* Tables */
        table { width: 100%; border-collapse: collapse; }
        thead { background: #f9fafb; position: sticky; top: 0; z-index: 10; }
        thead::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #e5e7eb; }
        th { padding: 14px 12px; text-align: left; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
        th.right { text-align: right; }
        td { padding: 14px 12px; font-size: 14px; border-bottom: 1px solid #f3f4f6; color: #374151; }
        td.right { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
        tbody tr:nth-child(even) { background: #f9fafb; }
        tbody tr:hover { background: #f0f9ff; }
        td.green { color: #059669; }
        td.blue { color: #2563eb; }
        td.red { color: #dc2626; }
        .loading { text-align: center; padding: 60px 20px; }
        .loading-icon { font-size: 48px; margin-bottom: 16px; }
        .loading-text { font-size: 18px; color: #374151; font-weight: 600; }
        .loading-sub { font-size: 14px; color: #6b7280; margin-top: 8px; }
        .hidden { display: none; }
        .chart-container { margin-top: 20px; }
        .bar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
        .bar-label { width: 100px; font-size: 13px; color: #374151; font-weight: 500; }
        .bar-group { flex: 1; display: flex; gap: 4px; }
        .bar-item { height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; color: white; font-size: 12px; font-weight: 600; }
        .bar-item.green { background: #059669; }
        .bar-item.blue { background: #2563eb; }
        .chart-svg { width: 100%; height: 300px; margin-top: 20px; }
        .monthly-table { margin-top: 20px; min-width: 800px; width: auto; }
        .monthly-table th, .monthly-table td { white-space: nowrap; }
        .monthly-table tbody tr:hover { background: #f9fafb; }
        .progress-bar-container { background: #e5e7eb; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 4px; }
        .progress-bar-fill { background: #059669; height: 100%; border-radius: 4px; transition: width 0.3s ease; }
        .odjel-detail { font-size: 12px; color: #6b7280; margin-top: 4px; }
        .line-legend { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; font-size: 14px; }
        .line-legend-item { display: flex; align-items: center; gap: 8px; }
        .line-legend-color { width: 30px; height: 3px; border-radius: 2px; }
        .line-legend-color.green { background: #059669; }
        .line-legend-color.blue { background: #2563eb; }

        /* Tabs navigation */
        .tabs-container { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-bottom: 1px solid #e5e7eb; }
        .tabs { max-width: 1200px; margin: 0 auto; display: flex; gap: 4px; padding: 0 24px; overflow-x: auto; }
        .tab { background: transparent; border: none; padding: 14px 20px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
        .tab:hover { color: #374151; background: #f9fafb; }
        .tab.active { color: #047857; border-bottom-color: #047857; background: #f0fdf4; }

        /* Tabs submenu for Ostalo */
        .tabs-submenu { display: flex; gap: 8px; flex-wrap: wrap; }
        .tab-sub { background: white; border: 2px solid #e5e7eb; padding: 12px 20px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; border-radius: 8px; transition: all 0.2s; }
        .tab-sub:hover { color: #047857; background: #f0fdf4; border-color: #059669; }
        .tab-sub.active { color: white; background: #047857; border-color: #047857; }

        /* Odjel row styles (for expand/collapse) */
        .odjel-row { transition: background-color 0.2s; }
        .odjel-row:hover { background-color: #f0fdf4 !important; }
        .sortimenti-row { animation: slideDown 0.2s ease-out; }
        @keyframes slideDown { from { opacity: 0; } to { opacity: 1; } }

        /* Submenu styles */
        .submenu { display: flex; gap: 8px; margin-bottom: 24px; padding: 12px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; }
        .submenu-tab { background: white; border: 1px solid #d1d5db; padding: 10px 18px; font-size: 13px; font-weight: 600; color: #6b7280; cursor: pointer; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
        .submenu-tab:hover { color: #047857; background: #f0fdf4; border-color: #059669; }
        .submenu-tab.active { color: white; background: #047857; border-color: #047857; box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2); }
        .submenu-content { animation: fadeIn 0.3s ease-in; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

        /* Sub-tabs for IZVJEŠTAJI */
        .sub-tabs { display: flex; gap: 12px; padding: 16px; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-wrap: wrap; }
        .sub-tab { background: white; border: 2px solid #e5e7eb; padding: 12px 24px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
        .sub-tab:hover { color: #047857; background: #f0fdf4; border-color: #10b981; }
        .sub-tab.active { color: white; background: #047857; border-color: #047857; box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3); }
        .sub-content { animation: fadeIn 0.3s ease-in; }
        .sub-content.hidden { display: none; }

        /* Month selector */
        .month-selector { margin-bottom: 16px; padding: 12px; background: #f0fdf4; border-radius: 8px; border: 1px solid #bbf7d0; display: flex; align-items: center; gap: 12px; }
        .month-selector label { font-weight: 600; color: #047857; font-size: 14px; }
        .month-select { padding: 8px 12px; border: 1px solid #059669; border-radius: 6px; font-size: 14px; font-weight: 600; color: #047857; background: white; cursor: pointer; min-width: 150px; }
        .month-select:hover { background: #f0fdf4; }
        .month-select:focus { outline: none; border-color: #047857; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); }

        /* Summary cards */
        .summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
        .summary-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #f3f4f6; transition: all 0.2s; }
        .summary-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e5e7eb; }
        .summary-card-title { font-size: 12px; color: #6b7280; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
        .summary-card-value { font-size: 28px; font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; }
        .summary-card-subtitle { font-size: 12px; color: #9ca3af; margin-top: 6px; }
        .summary-card.green .summary-card-value { color: #059669; }
        .summary-card.blue .summary-card-value { color: #2563eb; }
        .summary-card.red .summary-card-value { color: #dc2626; }

        /* Chart container */
        .chart-container { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 24px; height: 400px; }

        /* Search and controls */
        .controls-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
        .search-input { padding: 10px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; flex: 1; min-width: 200px; }
        .btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .btn-primary { background: #047857; color: white; }
        .btn-primary:hover { background: #059669; }
        .btn-secondary { background: #6b7280; color: white; }
        .btn-secondary:hover { background: #4b5563; }

        /* Filter Bar - Advanced */
        .filter-bar { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
        .filter-bar-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
        .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
        .filter-group { display: flex; flex-direction: column; gap: 6px; }
        .filter-label { font-size: 12px; font-weight: 600; color: #6b7280; }
        .filter-input, .filter-select { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: white; color: #1f2937; }
        .filter-input:focus, .filter-select:focus { outline: none; border-color: #047857; box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1); }
        .filter-actions { display: flex; gap: 8px; align-items: flex-end; }
        .filter-actions .btn { padding: 10px 16px; font-size: 13px; }
        .btn-clear { background: #f3f4f6; color: #374151; }
        .btn-clear:hover { background: #e5e7eb; }

        /* Row Actions Dropdown */
        .row-actions { position: relative; }
        .row-actions-btn { background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: 6px; color: #6b7280; font-size: 18px; line-height: 1; }
        .row-actions-btn:hover { background: #f3f4f6; color: #374151; }
        .row-actions-dropdown { display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; background: white; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); min-width: 160px; z-index: 100; border: 1px solid #e5e7eb; }
        .row-actions-dropdown.show { display: block; }
        .row-actions-item { padding: 10px 14px; cursor: pointer; font-size: 13px; color: #374151; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px; }
        .row-actions-item:hover { background: #f9fafb; }
        .row-actions-item:last-child { border-bottom: none; }
        .row-actions-item.danger { color: #dc2626; }
        .row-actions-item.danger:hover { background: #fee2e2; }

        /* Confirm Modal */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; }
        .modal-overlay.show { display: flex; }
        .modal { background: white; border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
        .modal-header { margin-bottom: 16px; }
        .modal-title { font-size: 18px; font-weight: 700; color: #1f2937; }
        .modal-body { margin-bottom: 24px; font-size: 14px; color: #6b7280; line-height: 1.6; }
        .modal-footer { display: flex; gap: 12px; justify-content: flex-end; }
        .modal-footer .btn { padding: 10px 20px; }
        .btn-danger { background: #dc2626; color: white; }
        .btn-danger:hover { background: #b91c1c; }

        /* Column Grouping */
        .col-group-cetinari { background: linear-gradient(to bottom, #f0fdf4 0%, #dcfce7 100%); border-left: 2px solid #10b981; border-right: 2px solid #10b981; }
        .col-group-liscari { background: linear-gradient(to bottom, #fef3c7 0%, #fde68a 100%); border-left: 2px solid #f59e0b; border-right: 2px solid #f59e0b; }
        body.dark-mode .col-group-cetinari { background: linear-gradient(to bottom, #064e3b 0%, #065f46 100%); }
        body.dark-mode .col-group-liscari { background: linear-gradient(to bottom, #78350f 0%, #92400e 100%); }

        /* Dark mode */
        body.dark-mode { background: #1f2937; color: #f3f4f6; }
        body.dark-mode .container, body.dark-mode .section, body.dark-mode table,
        body.dark-mode .summary-card, body.dark-mode .chart-container,
        body.dark-mode .tabs-container { background: #374151; color: #f3f4f6; border-color: #4b5563; }
        body.dark-mode table thead { background: #1f2937; }
        body.dark-mode .search-input { background: #4b5563; color: #f3f4f6; border-color: #6b7280; }

        /* Progress bar in table */
        .table-progress-bar { background: #e5e7eb; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 4px; }
        .table-progress-fill { background: #059669; height: 100%; border-radius: 2px; }

        /* Kupci tables optimization */
        .kupci-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px; }
        .kupci-table { font-size: 15px; white-space: nowrap; width: 100%; border-collapse: separate; border-spacing: 0; }
        .kupci-table th, .kupci-table td { padding: 12px 10px; border-bottom: 1px solid #e5e7eb; }

        /* Sticky columns for Kupci tables - R.br. (col 1) and Kupac (col 2) */
        #kupci-godisnji-table th:first-child,
        #kupci-godisnji-table td:first-child,
        #kupci-mjesecni-table th:first-child,
        #kupci-mjesecni-table td:first-child {
            position: sticky !important;
            left: 0 !important;
            z-index: 11 !important;
            min-width: 50px;
        }
        #kupci-godisnji-table th:nth-child(2),
        #kupci-godisnji-table td:nth-child(2),
        #kupci-mjesecni-table th:nth-child(2),
        #kupci-mjesecni-table td:nth-child(2) {
            position: sticky !important;
            left: 50px !important;
            z-index: 10 !important;
            min-width: 150px;
            box-shadow: 2px 0 4px rgba(0,0,0,0.1);
        }

        /* Dark mode support for sticky columns */
        body.dark-mode #kupci-godisnji-table th:first-child,
        body.dark-mode #kupci-godisnji-table td:first-child,
        body.dark-mode #kupci-godisnji-table th:nth-child(2),
        body.dark-mode #kupci-godisnji-table td:nth-child(2),
        body.dark-mode #kupci-mjesecni-table th:first-child,
        body.dark-mode #kupci-mjesecni-table td:first-child,
        body.dark-mode #kupci-mjesecni-table th:nth-child(2),
        body.dark-mode #kupci-mjesecni-table td:nth-child(2) {
            background: #374151 !important;
        }

        .kupci-table thead th {
            background: linear-gradient(to bottom, #f9fafb 0%, #f3f4f6 100%);
            position: sticky !important; top: 0; z-index: 15 !important; font-weight: 700;
            border-top: 2px solid #10b981; border-bottom: 2px solid #10b981;
            padding: 12px 6px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px;
        }
        /* Enhanced sticky for kupci godisnji and mjesecni tables - header row */
        #kupci-godisnji-table thead th,
        #kupci-mjesecni-table thead th {
            position: sticky !important;
            top: 0;
            z-index: 15 !important;
        }
        /* First two header columns need higher z-index to stay above other headers */
        #kupci-godisnji-table thead th:first-child,
        #kupci-mjesecni-table thead th:first-child {
            z-index: 20 !important;
        }
        #kupci-godisnji-table thead th:nth-child(2),
        #kupci-mjesecni-table thead th:nth-child(2) {
            z-index: 19 !important;
        }
        #kupci-godisnji-table td:first-child,
        #kupci-mjesecni-table td:first-child {
            position: sticky !important;
            left: 0 !important;
            z-index: 10 !important;
        }
        #kupci-godisnji-table th:first-child,
        #kupci-mjesecni-table th:first-child {
            z-index: 20 !important;
        }
        body.dark-mode .kupci-table thead th { background: linear-gradient(to bottom, #1f2937 0%, #111827 100%); }
        .kupci-table tbody tr:nth-child(even) { background: #f9fafb; }
        body.dark-mode .kupci-table tbody tr:nth-child(even) { background: #2d3748; }
        .kupci-table tbody tr:hover { background: #f0fdf4; }
        body.dark-mode .kupci-table tbody tr:hover { background: #064e3b; }
        .kupci-table tbody tr:nth-child(even):hover { background: #ecfdf5; }
        body.dark-mode .kupci-table tbody tr:nth-child(even):hover { background: #065f46; }
        .kupci-table .sortiment-col {
            min-width: 85px;
            max-width: 110px;
            text-align: right;
            font-family: 'Courier New', monospace;
        }
        .kupci-table thead .sortiment-col {
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            padding: 10px 5px;
            white-space: normal;
            word-wrap: break-word;
            line-height: 1.3;
        }
        .kupci-table .ukupno-col {
            font-weight: bold; background: linear-gradient(to right, #f0fdf4 0%, #dcfce7 100%);
            min-width: 95px; border-left: 3px solid #10b981; text-align: right;
            font-size: 12px; font-family: 'Courier New', monospace;
        }
        body.dark-mode .kupci-table .ukupno-col { background: linear-gradient(to right, #064e3b 0%, #065f46 100%); }
        .kupci-table .totals-row {
            background: linear-gradient(to bottom, #dcfce7 0%, #bbf7d0 100%);
            font-weight: 700; font-size: 12px; border-top: 3px solid #10b981;
        }
        body.dark-mode .kupci-table .totals-row { background: linear-gradient(to bottom, #065f46 0%, #047857 100%); }
        .kupci-table .totals-row td { border-bottom: 3px solid #10b981; padding: 12px 6px; }

        /* ============================================
           EXPERT TABLE STYLES - Premium Design
           ============================================ */
        .expert-table {
            width: auto;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 16px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border-radius: 8px;
            min-width: 800px;
        }
        .expert-table thead th {
            background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
            color: white;
            padding: 18px 16px;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 3px solid #06b6d4;
            position: sticky;
            top: 0;
            z-index: 10;
            text-align: left;
            white-space: nowrap;
        }
        .expert-table thead th:first-child {
            border-top-left-radius: 8px;
            position: sticky;
            left: 0;
            z-index: 20;
            background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
        }
        .expert-table thead th:last-child {
            border-top-right-radius: 8px;
            background: linear-gradient(135deg, #047857 0%, #065f46 100%);
            border-bottom-color: #10b981;
        }
        .expert-table tbody tr {
            transition: all 0.2s ease;
        }
        .expert-table tbody tr:nth-child(odd) {
            background: #f0f9ff;
        }
        .expert-table tbody tr:nth-child(even) {
            background: white;
        }
        .expert-table tbody tr:hover {
            background: #e0f2fe;
            transform: scale(1.005);
            box-shadow: 0 2px 8px rgba(8, 145, 178, 0.15);
        }
        .expert-table tbody td {
            padding: 14px 16px;
            border-bottom: 1px solid #e0e7ff;
            font-size: 15px;
            white-space: nowrap;
        }
        .expert-table tbody td:first-child {
            font-weight: 600;
            color: #0c4a6e;
            position: sticky;
            left: 0;
            background: inherit;
            z-index: 5;
        }
        .expert-table tbody tr:nth-child(odd) td:first-child {
            background: #f0f9ff;
        }
        .expert-table tbody tr:nth-child(even) td:first-child {
            background: white;
        }
        .expert-table tbody tr:hover td:first-child {
            background: #e0f2fe;
        }
        .expert-table tbody td:last-child {
            font-weight: 700;
            color: #047857;
            background: #f0fdf4;
            text-align: right;
        }
        .expert-table tbody td.sortiment-value {
            text-align: right;
            font-family: 'Courier New', monospace;
            color: #0e7490;
        }
        .expert-table tfoot tr {
            background: linear-gradient(135deg, #047857 0%, #065f46 100%);
            font-weight: 700;
            font-size: 16px;
        }
        .expert-table tfoot td {
            padding: 18px 16px;
            color: white;
            border-top: 3px solid #10b981;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .expert-table tfoot td:first-child {
            font-size: 15px;
            position: sticky;
            left: 0;
            background: linear-gradient(135deg, #047857 0%, #065f46 100%);
            z-index: 15;
        }
        .expert-table tfoot td:last-child {
            text-align: right;
            font-size: 18px;
            background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
        }

        /* ============================================
           MONTHLY SORTIMENTI TABLE STYLES
           ============================================ */
        .mjesecni-table-wrapper table {
            font-size: 11px !important;
            border-collapse: collapse;
            width: 100%;
        }
        .mjesecni-table-wrapper th {
            background: #1e40af !important;
            color: white !important;
            padding: 12px 8px !important;
            font-size: 12px !important;
            font-weight: 700;
            text-align: center;
            border: 1px solid #1e3a8a;
            position: sticky !important;
            top: 0;
            z-index: 10;
            white-space: normal !important;
            word-wrap: break-word;
            overflow-wrap: break-word;
            line-height: 1.3;
            min-width: 85px;
            max-width: 110px;
            height: auto !important;
            overflow: visible !important;
            vertical-align: middle;
        }
        .mjesecni-table-wrapper td {
            padding: 8px 10px !important;
            font-size: 12px !important;
            text-align: right;
            border: 1px solid #e5e7eb;
            white-space: nowrap;
            min-width: 85px;
            max-width: 110px;
        }
        .mjesecni-table-wrapper tbody tr:hover {
            background: #dbeafe !important;
        }
        /* Bold columns styling - only for body cells */
        .mjesecni-table-wrapper tbody .col-cetinari {
            background: #d1fae5;
            font-weight: 700;
        }
        .mjesecni-table-wrapper tbody .col-liscari {
            background: #fed7aa;
            font-weight: 700;
        }
        .mjesecni-table-wrapper tbody .col-sveukupno {
            background: #fecaca;
            font-weight: 700;
        }
        /* Group separators - thicker for better visibility */
        .mjesecni-table-wrapper .group-cetvrti th,
        .mjesecni-table-wrapper .group-cetvrti td {
            border-left: 3px solid #2563eb !important;
        }
        .mjesecni-table-wrapper .group-ogrevno th,
        .mjesecni-table-wrapper .group-ogrevno td {
            border-left: 3px solid #059669 !important;
        }
        /* Mobile optimization */
        @media (max-width: 768px) {
            .mjesecni-table-wrapper th,
            .mjesecni-table-wrapper td {
                font-size: 9px !important;
                padding: 4px 2px !important;
            }
            .mjesecni-table-wrapper th {
                max-width: 55px;
            }
        }

        /* ============================================
           PRIMACI & OTPREMACI TABLE STYLES
           ============================================ */
        #primaci-table, #otpremaci-table {
            border-collapse: collapse;
            width: 100%;
        }
        #primaci-table thead th, #otpremaci-table thead th {
            position: sticky !important;
            top: 0;
            z-index: 15 !important;
        }
        #primaci-table tbody tr, #otpremaci-table tbody tr {
            border-bottom: 1px solid #e5e7eb;
        }
        /* Ensure sticky columns work properly */
        #primaci-table td:first-child, #otpremaci-table td:first-child {
            position: sticky !important;
            left: 0 !important;
        }
        #primaci-table th:first-child, #otpremaci-table th:first-child {
            position: sticky !important;
            left: 0 !important;
        }
        /* Add box shadow for sticky elements */
        #primaci-table td:first-child::after, #otpremaci-table td:first-child::after {
            content: '';
            position: absolute;
            right: -1px;
            top: 0;
            bottom: 0;
            width: 1px;
            box-shadow: 2px 0 4px rgba(0,0,0,0.1);
        }

        /* ============================================
           MOBILE OPTIMIZATIONS (< 768px)
           ============================================ */
        @media (max-width: 768px) {
            /* Container & spacing */
            .container { padding: 12px; max-width: 100%; }
            .section { padding: 16px; margin-bottom: 16px; }
            .section h2 { font-size: 18px; margin-bottom: 12px; }

            /* Header */
            .header { flex-direction: column; gap: 12px; padding: 16px 12px; }
            .header-logo h1 { font-size: 20px; }
            .header-logo p { font-size: 13px; }
            .header-user { font-size: 12px; }
            .btn-logout { padding: 8px 16px; font-size: 13px; }

            /* Tabs - scrollable horizontal */
            .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 2px; padding: 0 12px; white-space: nowrap; }
            .tab { padding: 12px 16px; font-size: 13px; flex-shrink: 0; }

            /* Summary cards - stack vertically */
            .summary-cards { grid-template-columns: 1fr; gap: 12px; }
            .summary-card { padding: 16px; }
            .summary-card-title { font-size: 12px; }
            .summary-card-value { font-size: 24px; }

            /* Chart */
            .chart-container { height: 280px; padding: 16px; }

            /* Controls bar - stack vertically */
            .controls-bar { flex-direction: column; gap: 8px; }
            .search-input { width: 100%; min-width: auto; }
            .btn { width: 100%; padding: 12px; }

            /* Tables */
            table { font-size: 11px; }
            table th, table td { padding: 6px 4px; }
            .monthly-table th, .monthly-table td { font-size: 10px; padding: 6px 3px; }

            /* Kupci tables - optimized for mobile */
            .kupci-table-wrapper { margin: 0 -12px; padding: 0 12px; }
            .kupci-table { font-size: 10px; }
            .kupci-table th, .kupci-table td { padding: 6px 3px; }
            .kupci-table th:first-child, .kupci-table td:first-child {
                min-width: 100px; max-width: 140px; font-size: 10px;
            }
            .kupci-table th:nth-child(2), .kupci-table td:nth-child(2) {
                left: 100px; min-width: 70px; font-size: 10px;
            }
            .kupci-table thead th { font-size: 9px; padding: 8px 3px; }
            .kupci-table .sortiment-col { min-width: 50px; max-width: 60px; font-size: 10px; }
            .kupci-table .ukupno-col { min-width: 75px; font-size: 10px; }
            .kupci-table .totals-row { font-size: 10px; }

            /* Login */
            .login-box { padding: 30px 24px; }
            .login-box h1 { font-size: 48px; }
            .login-box h2 { font-size: 24px; }

            /* Loading */
            .loading-icon { font-size: 48px; }
            .loading-text { font-size: 16px; }

            /* Hide dark mode button text on mobile */
            .btn[onclick="toggleDarkMode()"] { font-size: 20px; padding: 8px 12px; }
        }

        /* Extra small devices (< 480px) */
        @media (max-width: 480px) {
            .section h2 { font-size: 16px; }
            .header-logo h1 { font-size: 18px; }
            .tab { padding: 10px 12px; font-size: 12px; }
            .summary-card-value { font-size: 20px; }
            .chart-container { height: 240px; padding: 12px; }

            .kupci-table { font-size: 9px; }
            .kupci-table th:first-child, .kupci-table td:first-child {
                min-width: 90px; max-width: 120px; font-size: 9px;
            }
            .kupci-table th:nth-child(2), .kupci-table td:nth-child(2) {
                left: 90px; min-width: 60px; font-size: 9px;
            }
            .kupci-table .sortiment-col { min-width: 45px; font-size: 9px; }
            .kupci-table .ukupno-col { min-width: 70px; font-size: 9px; }
        }

        /* Cache indicator */
        .cache-indicator {
            position: fixed;
            top: 10px;
            right: 10px;
            padding: 4px 8px;
            font-size: 10px;
            font-weight: 500;
            border-radius: 4px;
            z-index: 9999;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            max-width: 200px;
            transition: all 0.3s ease;
        }
        .btn-clear-cache {
            background: #f59e0b;
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
        }
        .btn-clear-cache:hover {
            background: #d97706;
        }
        /* ============================================ */
        /* MOBILE RESPONSIVE DESIGN */
        /* ============================================ */

        @media (max-width: 768px) {
            /* Container and layout */
            .container { max-width: 100%; padding: 12px; }
            .section { padding: 16px; margin-bottom: 16px; border-radius: 12px; }

            /* Header */
            .header { padding: 12px 16px; flex-direction: column; }
            .header-content { flex-direction: column; gap: 12px; width: 100%; }
            .header-left { width: 100%; }
            .header-center { margin: 10px 0; }
            .company-logo { height: 50px; }
            .header-right { width: 100%; justify-content: space-between; }
            .header-logo { font-size: 24px; }
            .header-title h1 { font-size: 16px; }
            .header-title p { font-size: 11px; }
            .header-user-name { font-size: 13px; }
            .header-user-role { font-size: 11px; }

            /* Tabs */
            .tabs-container { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 12px; }
            .tab { font-size: 12px; padding: 8px 12px; white-space: nowrap; }

            /* Summary cards */
            .summary-cards { grid-template-columns: 1fr; gap: 12px; }
            .summary-card { padding: 16px; }
            .summary-card-title { font-size: 11px; }
            .summary-card-value { font-size: 24px; }
            .summary-card-subtitle { font-size: 11px; }

            /* Cards */
            .cards { grid-template-columns: 1fr; gap: 12px; }
            .card { padding: 16px; }
            .card-label { font-size: 11px; }
            .card-value { font-size: 24px; }

            /* Tables */
            table { font-size: 11px; min-width: max-content; }
            th, td { padding: 8px 6px; white-space: nowrap; }
            th { font-size: 10px; }

            /* Table wrappers - enable horizontal scroll */
            .kupci-table-wrapper {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                margin: 0 -16px;
                padding: 0 16px;
            }

            /* Month table - make scrollable */
            .mjesecni-table-wrapper {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                margin: 0 -16px;
                padding: 0 16px;
            }

            /* Make sortiment columns narrower on mobile */
            .sortiment-col {
                min-width: 50px !important;
                font-size: 10px;
            }

            /* Page header */
            .page-header { flex-direction: column; gap: 12px; }
            .page-header-left h1 { font-size: 18px; }
            .page-header-left p { font-size: 12px; }

            /* Buttons */
            .btn { padding: 10px 16px; font-size: 13px; }

            /* Forms */
            .form-group label { font-size: 12px; }
            .form-group input, .form-group select, .form-group textarea {
                font-size: 14px;
                padding: 8px;
            }

            /* Filter bar */
            .filter-bar { padding: 12px; }
            .filter-grid { grid-template-columns: 1fr; gap: 8px; }
            .filter-label { font-size: 11px; }
            .filter-input, .filter-select { font-size: 13px; padding: 8px; }

            /* Modal */
            .modal { width: 95%; padding: 16px; }
            .modal-title { font-size: 16px; }
            .modal-body { font-size: 13px; }

            /* User menu */
            .user-menu-button { padding: 6px 12px; font-size: 12px; }
            .user-menu-dropdown { min-width: 180px; }

            /* Hide or adjust specific elements on mobile */
            .badge { padding: 4px 8px; font-size: 10px; }

            /* Export button */
            .export-btn { width: 100%; margin-bottom: 12px; }

            /* Search input */
            .search-container { margin-bottom: 12px; }
            .search-input { font-size: 14px; }
        }

        /* Extra small devices (phones in portrait, less than 576px) */
        @media (max-width: 576px) {
            .container { padding: 8px; }
            .section { padding: 12px; }
            .header { padding: 8px 12px; }
            .header-title h1 { font-size: 14px; }

            /* Make tables more readable on mobile */
            table {
                font-size: 13px;
                min-width: max-content;
            }
            th, td {
                padding: 10px 8px;
                white-space: nowrap;
            }
            th {
                font-size: 11px;
                font-weight: 700;
            }
            td {
                color: #111827;
                font-weight: 600;
            }

            /* Scroll wrapper for wide tables */
            .section > div:has(table) {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                margin: 0 -8px;
            }

            /* Sticky first column for all tables */
            table th:first-child,
            table td:first-child {
                position: sticky;
                left: 0;
                z-index: 5;
                background: white;
                box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
            }

            table thead th:first-child {
                z-index: 15;
                background: linear-gradient(to bottom, #047857 0%, #059669 100%);
            }

            /* Summary cards */
            .summary-card-value { font-size: 20px; }

            /* Buttons */
            .btn { padding: 8px 12px; font-size: 12px; }
        }

        /* ============================================ */
        /* TOAST NOTIFICATIONS */
        /* ============================================ */

        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            padding: 16px 20px;
            min-width: 300px;
            max-width: 400px;
            display: flex;
            align-items: center;
            gap: 12px;
            pointer-events: auto;
            opacity: 0;
            transform: translateX(400px);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .toast.hide {
            opacity: 0;
            transform: translateX(400px);
        }

        .toast-icon {
            font-size: 24px;
            flex-shrink: 0;
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .toast-message {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.4;
        }

        .toast-close {
            background: none;
            border: none;
            font-size: 20px;
            color: #9ca3af;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .toast-close:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .toast.success {
            border-left: 4px solid #10b981;
        }

        .toast.success .toast-icon {
            color: #10b981;
        }

        .toast.error {
            border-left: 4px solid #ef4444;
        }

        .toast.error .toast-icon {
            color: #ef4444;
        }

        .toast.info {
            border-left: 4px solid #3b82f6;
        }

        .toast.info .toast-icon {
            color: #3b82f6;
        }

        .toast.warning {
            border-left: 4px solid #f59e0b;
        }

        .toast.warning .toast-icon {
            color: #f59e0b;
        }

        /* Mobile adjustments for toasts */
        @media (max-width: 576px) {
            .toast-container {
                top: 10px;
                right: 10px;
                left: 10px;
            }

            .toast {
                min-width: auto;
                max-width: none;
                padding: 12px 16px;
            }

            .toast-title {
                font-size: 13px;
            }

            .toast-message {
                font-size: 12px;
            }
        }

        /* ========================================
           PROFESIONALNI UI ZA PRIMAČE I OTPREMAČE
           ======================================== */

        /* Gradient Headers for Worker Views */
        .worker-header {
            background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
            padding: 20px 24px;
            border-radius: 12px 12px 0 0;
            margin: -24px -24px 20px -24px;
            box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
        }

        .worker-header.primac {
            background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
        }

        .worker-header.otpremac {
            background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
        }

        .worker-header-title {
            color: white;
            font-size: 22px;
            font-weight: 800;
            margin: 0 0 6px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .worker-header-subtitle {
            color: #ffffff;
            font-size: 15px;
            margin: 0;
            font-weight: 700;
            text-shadow:
                /* Crni outline za jasnoću */
                -1px -1px 0 rgba(0, 0, 0, 0.9),
                1px -1px 0 rgba(0, 0, 0, 0.9),
                -1px 1px 0 rgba(0, 0, 0, 0.9),
                1px 1px 0 rgba(0, 0, 0, 0.9),
                /* Dodatni crni shadow za dubinu */
                0 2px 8px rgba(0, 0, 0, 0.7),
                0 1px 4px rgba(0, 0, 0, 0.8);
        }

        .worker-header-icon {
            font-size: 28px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        /* Modern Card-Based Tables */
        .worker-table-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            margin-bottom: 24px;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
        }

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

        .worker-table-card-header {
            background: linear-gradient(to right, #f9fafb 0%, #f3f4f6 100%);
            padding: 16px 24px;
            border-bottom: 2px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .worker-table-card-title {
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .worker-table-card-badge {
            background: #047857;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 700;
        }

        .worker-table-card-badge.blue {
            background: #2563eb;
        }

        /* Enhanced Table Styling for Workers */
        .worker-table {
            width: auto;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 13px;
            min-width: 800px;
        }

        .worker-table thead {
            background: linear-gradient(to bottom, #047857 0%, #059669 100%);
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .worker-table.otpremac thead {
            background: linear-gradient(to bottom, #1e40af 0%, #2563eb 100%);
        }

        .worker-table th {
            padding: 14px 12px;
            text-align: left;
            font-weight: 700;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 3px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            user-select: none;
            transition: background 0.2s;
            color: #ffffff;
            white-space: nowrap;
            text-shadow:
                /* Crni outline za jasnoću */
                -1px -1px 0 rgba(0, 0, 0, 0.9),
                1px -1px 0 rgba(0, 0, 0, 0.9),
                -1px 1px 0 rgba(0, 0, 0, 0.9),
                1px 1px 0 rgba(0, 0, 0, 0.9),
                /* Dodatni crni shadow za dubinu */
                0 2px 8px rgba(0, 0, 0, 0.7),
                0 1px 4px rgba(0, 0, 0, 0.8);
        }

        .worker-table th:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .worker-table td {
            padding: 12px;
            border-bottom: 1px solid #f3f4f6;
            color: #111827;
            font-weight: 600;
            font-size: 14px;
            white-space: nowrap;
        }

        .worker-table tbody tr {
            transition: all 0.2s ease;
        }

        .worker-table tbody tr:hover {
            background: linear-gradient(to right, #f0fdf4 0%, #d1fae5 100%);
            box-shadow: inset 4px 0 0 #047857;
        }

        .worker-table.otpremac tbody tr:hover {
            background: linear-gradient(to right, #eff6ff 0%, #dbeafe 100%);
            box-shadow: inset 4px 0 0 #2563eb;
        }

        .worker-table .totals-row {
            background: linear-gradient(to right, #f0fdf4 0%, #dcfce7 100%);
            border-top: 3px solid #047857;
            font-weight: 700;
            font-size: 14px;
        }

        .worker-table.otpremac .totals-row {
            background: linear-gradient(to right, #eff6ff 0%, #dbeafe 100%);
            border-top: 3px solid #2563eb;
        }

        .worker-table .totals-row td {
            padding: 16px 12px;
            color: #047857;
        }

        .worker-table.otpremac .totals-row td {
            color: #1e40af;
        }

        /* Value Highlighting */
        .value-highlight {
            background: #fef3c7;
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 700;
            color: #92400e;
        }

        .value-highlight.large {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: white;
            box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
        }

        /* Mjesečne boje za tabele - 12 različitih svijetlih nijansi */
        .worker-table tbody tr.mjesec-1 { background: linear-gradient(to right, #fce7f3 0%, #fbcfe8 100%); } /* Januar - Розова */
        .worker-table tbody tr.mjesec-2 { background: linear-gradient(to right, #f3e8ff 0%, #e9d5ff 100%); } /* Februar - Ljubičasta */
        .worker-table tbody tr.mjesec-3 { background: linear-gradient(to right, #e0e7ff 0%, #c7d2fe 100%); } /* Mart - Indigo */
        .worker-table tbody tr.mjesec-4 { background: linear-gradient(to right, #dbeafe 0%, #bfdbfe 100%); } /* April - Plava */
        .worker-table tbody tr.mjesec-5 { background: linear-gradient(to right, #cffafe 0%, #a5f3fc 100%); } /* Maj - Cyan */
        .worker-table tbody tr.mjesec-6 { background: linear-gradient(to right, #ccfbf1 0%, #99f6e4 100%); } /* Juni - Teal */
        .worker-table tbody tr.mjesec-7 { background: linear-gradient(to right, #d1fae5 0%, #a7f3d0 100%); } /* Juli - Zelena */
        .worker-table tbody tr.mjesec-8 { background: linear-gradient(to right, #d9f99d 0%, #bef264 100%); } /* August - Lime */
        .worker-table tbody tr.mjesec-9 { background: linear-gradient(to right, #fef9c3 0%, #fef08a 100%); } /* Septembar - Žuta */
        .worker-table tbody tr.mjesec-10 { background: linear-gradient(to right, #fed7aa 0%, #fdba74 100%); } /* Oktobar - Narandžasta */
        .worker-table tbody tr.mjesec-11 { background: linear-gradient(to right, #fecaca 0%, #fca5a5 100%); } /* Novembar - Crvena */
        .worker-table tbody tr.mjesec-12 { background: linear-gradient(to right, #e5e7eb 0%, #d1d5db 100%); } /* Decembar - Siva */

        /* Hover efekat za mjesečne boje */
        .worker-table tbody tr.mjesec-1:hover { background: linear-gradient(to right, #fbcfe8 0%, #f9a8d4 100%); box-shadow: inset 4px 0 0 #ec4899; }
        .worker-table tbody tr.mjesec-2:hover { background: linear-gradient(to right, #e9d5ff 0%, #d8b4fe 100%); box-shadow: inset 4px 0 0 #a855f7; }
        .worker-table tbody tr.mjesec-3:hover { background: linear-gradient(to right, #c7d2fe 0%, #a5b4fc 100%); box-shadow: inset 4px 0 0 #6366f1; }
        .worker-table tbody tr.mjesec-4:hover { background: linear-gradient(to right, #bfdbfe 0%, #93c5fd 100%); box-shadow: inset 4px 0 0 #3b82f6; }
        .worker-table tbody tr.mjesec-5:hover { background: linear-gradient(to right, #a5f3fc 0%, #67e8f9 100%); box-shadow: inset 4px 0 0 #06b6d4; }
        .worker-table tbody tr.mjesec-6:hover { background: linear-gradient(to right, #99f6e4 0%, #5eead4 100%); box-shadow: inset 4px 0 0 #14b8a6; }
        .worker-table tbody tr.mjesec-7:hover { background: linear-gradient(to right, #a7f3d0 0%, #6ee7b7 100%); box-shadow: inset 4px 0 0 #10b981; }
        .worker-table tbody tr.mjesec-8:hover { background: linear-gradient(to right, #bef264 0%, #a3e635 100%); box-shadow: inset 4px 0 0 #84cc16; }
        .worker-table tbody tr.mjesec-9:hover { background: linear-gradient(to right, #fef08a 0%, #fde047 100%); box-shadow: inset 4px 0 0 #eab308; }
        .worker-table tbody tr.mjesec-10:hover { background: linear-gradient(to right, #fdba74 0%, #fb923c 100%); box-shadow: inset 4px 0 0 #f97316; }
        .worker-table tbody tr.mjesec-11:hover { background: linear-gradient(to right, #fca5a5 0%, #f87171 100%); box-shadow: inset 4px 0 0 #ef4444; }
        .worker-table tbody tr.mjesec-12:hover { background: linear-gradient(to right, #d1d5db 0%, #9ca3af 100%); box-shadow: inset 4px 0 0 #6b7280; }

        /* Otpremači tabele također koriste mjesečne boje */
        .worker-table.otpremac tbody tr.mjesec-1:hover { box-shadow: inset 4px 0 0 #ec4899; }
        .worker-table.otpremac tbody tr.mjesec-2:hover { box-shadow: inset 4px 0 0 #a855f7; }
        .worker-table.otpremac tbody tr.mjesec-3:hover { box-shadow: inset 4px 0 0 #6366f1; }
        .worker-table.otpremac tbody tr.mjesec-4:hover { box-shadow: inset 4px 0 0 #3b82f6; }
        .worker-table.otpremac tbody tr.mjesec-5:hover { box-shadow: inset 4px 0 0 #06b6d4; }
        .worker-table.otpremac tbody tr.mjesec-6:hover { box-shadow: inset 4px 0 0 #14b8a6; }
        .worker-table.otpremac tbody tr.mjesec-7:hover { box-shadow: inset 4px 0 0 #10b981; }
        .worker-table.otpremac tbody tr.mjesec-8:hover { box-shadow: inset 4px 0 0 #84cc16; }
        .worker-table.otpremac tbody tr.mjesec-9:hover { box-shadow: inset 4px 0 0 #eab308; }
        .worker-table.otpremac tbody tr.mjesec-10:hover { box-shadow: inset 4px 0 0 #f97316; }
        .worker-table.otpremac tbody tr.mjesec-11:hover { box-shadow: inset 4px 0 0 #ef4444; }
        .worker-table.otpremac tbody tr.mjesec-12:hover { box-shadow: inset 4px 0 0 #6b7280; }

        /* Modern Form Styling */
        .worker-form {
            background: white;
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            border: 1px solid #e5e7eb;
        }

        .worker-form-header {
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 2px solid #e5e7eb;
        }

        .worker-form-title {
            font-size: 24px;
            font-weight: 800;
            color: #1f2937;
            margin: 0 0 8px 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .worker-form-subtitle {
            font-size: 14px;
            color: #6b7280;
            margin: 0;
        }

        .worker-form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }

        .worker-form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .worker-form-label {
            font-size: 13px;
            font-weight: 700;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .worker-form-input,
        .worker-form-select {
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 15px;
            color: #1f2937;
            transition: all 0.2s;
            background: white;
        }

        .worker-form-input:focus,
        .worker-form-select:focus {
            outline: none;
            border-color: #047857;
            box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
        }

        .worker-form.otpremac .worker-form-input:focus,
        .worker-form.otpremac .worker-form-select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        }

        .worker-form-section-title {
            font-size: 18px;
            font-weight: 700;
            color: #047857;
            margin: 28px 0 16px 0;
            padding-bottom: 12px;
            border-bottom: 2px solid #d1fae5;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .worker-form.otpremac .worker-form-section-title {
            color: #2563eb;
            border-bottom-color: #dbeafe;
        }

        .worker-form-total-box {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 3px solid #f59e0b;
            border-radius: 12px;
            padding: 24px;
            margin-top: 28px;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
        }

        .worker-form-total-label {
            font-size: 16px;
            font-weight: 800;
            color: #92400e;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .worker-form-total-value {
            font-size: 36px;
            font-weight: 900;
            color: #92400e;
            text-align: center;
            font-family: 'Courier New', monospace;
            text-shadow: 0 2px 4px rgba(146, 64, 14, 0.1);
        }

        .worker-form-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 2px solid #e5e7eb;
        }

        .worker-form-btn {
            padding: 14px 32px;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .worker-form-btn-primary {
            background: linear-gradient(135deg, #047857 0%, #059669 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
        }

        .worker-form-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
        }

        .worker-form-btn-primary.otpremac {
            background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .worker-form-btn-primary.otpremac:hover {
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        }

        .worker-form-btn-secondary {
            background: #f3f4f6;
            color: #374151;
            border: 2px solid #e5e7eb;
        }

        .worker-form-btn-secondary:hover {
            background: #e5e7eb;
            transform: translateY(-2px);
        }

        /* Action Buttons in Tables */
        .worker-action-btn {
            padding: 6px 14px;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-right: 6px;
        }

        .worker-action-btn-edit {
            background: #dbeafe;
            color: #1e40af;
        }

        .worker-action-btn-edit:hover {
            background: #3b82f6;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
        }

        .worker-action-btn-delete {
            background: #fee2e2;
            color: #dc2626;
        }

        .worker-action-btn-delete:hover {
            background: #dc2626;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
        }

        /* Stats Cards for Workers */
        .worker-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 28px;
        }

        .worker-stat-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
        }

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

        .worker-stat-card.green {
            border-top: 4px solid #047857;
        }

        .worker-stat-card.blue {
            border-top: 4px solid #2563eb;
        }

        .worker-stat-card.yellow {
            border-top: 4px solid #f59e0b;
        }

        .worker-stat-card-label {
            font-size: 12px;
            color: #6b7280;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .worker-stat-card-value {
            font-size: 32px;
            font-weight: 800;
            color: #1f2937;
            font-family: 'Courier New', monospace;
        }

        .worker-stat-card.green .worker-stat-card-value {
            color: #047857;
        }

        .worker-stat-card.blue .worker-stat-card-value {
            color: #2563eb;
        }

        .worker-stat-card.yellow .worker-stat-card-value {
            color: #f59e0b;
        }

        .worker-stat-card-unit {
            font-size: 14px;
            color: #9ca3af;
            font-weight: 600;
            margin-left: 4px;
        }

        /* Worker Chart Container */
        .worker-chart-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            border: 1px solid #e5e7eb;
        }

        .worker-chart-card.primac {
            border-top: 3px solid #047857;
        }

        .worker-chart-card.otpremac {
            border-top: 3px solid #2563eb;
        }

        .worker-chart-title {
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
            margin: 0 0 16px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .worker-chart-canvas {
            max-height: 300px;
        }

        /* Responsive Design for Workers */
        @media (max-width: 768px) {
            .worker-header {
                padding: 24px 16px;
                margin: -16px -16px 16px -16px;
            }

            .worker-header-title {
                font-size: 22px;
            }

            .worker-header-subtitle {
                font-size: 13px;
            }

            .worker-form {
                padding: 20px;
            }

            .worker-form-grid {
                grid-template-columns: 1fr;
            }

            .worker-stats-grid {
                grid-template-columns: 1fr;
            }

            /* MOBILNI PREGLED TABELA - Poboljšan */
            .worker-table-card {
                margin-left: -16px;
                margin-right: -16px;
                border-radius: 0;
            }

            .worker-table {
                font-size: 13px;
                min-width: max-content;
            }

            .worker-table th {
                padding: 12px 10px;
                font-size: 11px;
                white-space: nowrap;
            }

            .worker-table td {
                padding: 12px 10px;
                white-space: nowrap;
                color: #111827;
                font-weight: 600;
            }

            /* Sticky prva kolona na mobilnom */
            .worker-table th:first-child,
            .worker-table td:first-child {
                position: sticky;
                left: 0;
                z-index: 5;
                background: inherit;
                box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
            }

            .worker-table thead th:first-child {
                z-index: 15;
            }

            /* Pojačan kontrast brojeva na mobilnom */
            .worker-table .sortiment-col,
            .worker-table .ukupno-col {
                font-weight: 700;
                color: #000000;
                font-size: 14px;
            }

            /* Wrapper sa scroll indikatorom */
            .worker-table-card > div {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                position: relative;
            }

            .worker-table-card > div::after {
                content: '← Scroll →';
                position: sticky;
                right: 0;
                bottom: 0;
                background: linear-gradient(90deg, transparent 0%, #047857 20%, #047857 80%, transparent 100%);
                color: white;
                padding: 8px 16px;
                font-size: 11px;
                font-weight: 700;
                text-align: center;
                display: block;
                opacity: 0.8;
                pointer-events: none;
                border-radius: 4px;
                margin: 8px;
            }

            .worker-table.otpremac + div::after {
                background: linear-gradient(90deg, transparent 0%, #2563eb 20%, #2563eb 80%, transparent 100%);
            }

            /* Veći touch targets za sortiranje */
            .worker-table th {
                min-width: 80px;
            }

            /* Totals row čitljiviji */
            .worker-table .totals-row td {
                font-size: 15px;
                font-weight: 800;
                color: #000000;
            }

            /* Chart responsive */
            .worker-chart-card {
                padding: 16px;
            }

            .worker-chart-title {
                font-size: 14px;
            }

            .worker-chart-canvas {
                max-height: 250px;
            }
        }

        /* ============================================
           OPERATIVA & ANALYTICS STYLES
           ============================================ */

        /* Analytics Grid - 2 column responsive layout */
        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 24px;
            margin-bottom: 24px;
        }

        /* Ranking Items for Top 5 Odjela */
        .ranking-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 0;
            border-bottom: 1px solid #e5e7eb;
        }
        .ranking-item:last-child { border-bottom: none; }

        .ranking-number {
            font-size: 24px;
            font-weight: 700;
            color: #d1d5db;
            min-width: 40px;
        }
        .ranking-number.top { color: #fbbf24; } /* Gold for top 3 */

        .ranking-info { flex: 1; }
        .ranking-name {
            font-weight: 600;
            color: #1f2937;
            font-size: 15px;
        }
        .ranking-value {
            font-size: 20px;
            font-weight: 700;
            color: #059669;
        }

        /* KPI Cards Grid - 4 columns responsive */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        /* KPI Card Small - Gradient backgrounds */
        .kpi-card-small {
            background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #059669;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: all 0.2s;
        }
        .kpi-card-small:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        .kpi-card-small.blue {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-left-color: #2563eb;
        }
        .kpi-card-small.yellow {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border-left-color: #f59e0b;
        }
        .kpi-card-small.purple {
            background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
            border-left-color: #9333ea;
        }

        .kpi-label-small {
            font-size: 12px;
            color: #6b7280;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 8px;
            letter-spacing: 0.05em;
        }
        .kpi-value-small {
            font-size: 28px;
            font-weight: 700;
            color: #1f2937;
            font-variant-numeric: tabular-nums;
        }

        /* Professional Monthly Table */
        .professional-monthly-table {
            width: auto;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 15px;
            min-width: 800px;
        }
        .professional-monthly-table thead th {
            background: linear-gradient(to bottom, #047857 0%, #059669 100%);
            color: white;
            padding: 16px 14px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 3px solid #10b981;
            position: sticky;
            top: 0;
            z-index: 10;
            white-space: nowrap;
        }
        .professional-monthly-table tbody tr {
            transition: all 0.2s;
        }
        .professional-monthly-table tbody tr:nth-child(even) {
            background: #f9fafb;
        }
        .professional-monthly-table tbody tr:hover {
            background: #f0fdf4;
            box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
        }
        .professional-monthly-table tbody td {
            padding: 16px 14px;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
        }
        .professional-monthly-table tbody td:first-child {
            font-weight: 700;
            color: #1f2937;
            font-size: 15px;
        }
        .professional-monthly-table tbody td.number {
            text-align: right;
            font-variant-numeric: tabular-nums;
            font-weight: 600;
            font-size: 16px;
        }
        .professional-monthly-table .month-total {
            background: linear-gradient(to bottom, #d1fae5 0%, #a7f3d0 100%);
            font-weight: 700;
            border-top: 2px solid #10b981;
        }
        .professional-monthly-table .month-total td {
            font-size: 17px;
            color: #047857;
        }

        /* Dark mode for OPERATIVA */
        body.dark-mode .kpi-card-small {
            background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
            border-left-color: #10b981;
        }
        body.dark-mode .kpi-card-small.blue {
            background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
            border-left-color: #3b82f6;
        }
        body.dark-mode .kpi-card-small.yellow {
            background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
            border-left-color: #f59e0b;
        }
        body.dark-mode .kpi-value-small,
        body.dark-mode .ranking-name,
        body.dark-mode .ranking-value {
            color: #f3f4f6;
        }
        body.dark-mode .professional-monthly-table thead th {
            background: linear-gradient(to bottom, #064e3b 0%, #065f46 100%);
        }
        body.dark-mode .professional-monthly-table tbody tr:nth-child(even) {
            background: #1f2937;
        }
        body.dark-mode .professional-monthly-table tbody tr:hover {
            background: #065f46;
        }

        /* Performance Alerts */
        .alert-banner {
            padding: 16px 20px;
            border-radius: 12px;
            margin-bottom: 24px;
            border-left: 4px solid;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
        }
        .alert-banner.danger {
            background: #fee2e2;
            border-left-color: #dc2626;
            color: #991b1b;
        }
        .alert-banner.warning {
            background: #fef3c7;
            border-left-color: #f59e0b;
            color: #92400e;
        }
        .alert-banner.success {
            background: #d1fae5;
            border-left-color: #059669;
            color: #065f46;
        }
        .alert-icon {
            font-size: 24px;
        }
        .alert-content {
            flex: 1;
        }
        .alert-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .alert-message {
            font-size: 14px;
            opacity: 0.9;
        }

        /* Timeline Item */
        .timeline-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 0;
            border-bottom: 1px solid #e5e7eb;
        }
        .timeline-item:last-child {
            border-bottom: none;
        }
        .timeline-date {
            min-width: 120px;
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
        }
        .timeline-odjel {
            flex: 1;
            font-size: 15px;
            font-weight: 600;
            color: #1f2937;
        }
        .timeline-status {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }
        .timeline-status.fresh {
            background: #d1fae5;
            color: #065f46;
        }
        .timeline-status.warning {
            background: #fef3c7;
            color: #92400e;
        }
        .timeline-status.old {
            background: #fee2e2;
            color: #991b1b;
        }

        /* Sortimenti Bar */
        .sortimenti-bar-container {
            margin-bottom: 20px;
        }
        .sortimenti-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }
        .sortimenti-label-name {
            font-weight: 600;
            color: #1f2937;
        }
        .sortimenti-label-value {
            font-weight: 700;
            color: #059669;
        }
        .sortimenti-bar {
            height: 40px;
            background: #e5e7eb;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
        }
        .sortimenti-bar-cetinari {
            background: linear-gradient(90deg, #059669, #10b981);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 700;
        }
        .sortimenti-bar-liscari {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 700;
        }

        /* ============================================ */
        /* PERFORMANCE OPTIMIZATIONS */
        /* ============================================ */

        /* GPU acceleration for animations */
        .tab, .btn, .card, .toast {
            will-change: transform;
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        /* Optimize table rendering */
        table {
            contain: layout style paint;
        }

        /* Reduce repaints during scroll */
        .container {
            contain: layout style;
        }

        /* Optimize transitions */
        * {
            transition-duration: 0.15s !important; /* Faster transitions */
        }

        /* Disable animations during heavy operations */
        .loading * {
            animation: none !important;
            transition: none !important;
        }

        /* Optimize font rendering */
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        /* Hardware accelerate scrolling */
        * {
            -webkit-overflow-scrolling: touch;
        }

        /* ========================================
           TEXT OUTLINE EFFECTS - DIZAJNERSKA PRAVILA
           ======================================== */

        /* Bijela boja sa crnim outline - za tamnje podloge */
        .text-outline-light {
            color: white !important;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000,
                         -1px 1px 0 #000, 1px 1px 0 #000,
                         -2px 0 0 #000, 2px 0 0 #000,
                         0 -2px 0 #000, 0 2px 0 #000;
            font-weight: 700;
        }

        /* Crna boja sa bijelim outline - za svijetle podloge */
        .text-outline-dark {
            color: black !important;
            text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff,
                         -1px 1px 0 #fff, 1px 1px 0 #fff,
                         -2px 0 0 #fff, 2px 0 0 #fff,
                         0 -2px 0 #fff, 0 2px 0 #fff;
            font-weight: 700;
        }

        /* Zelena boja sa žutim outline - za naziv firme (legacy) */
        .text-outline-firma {
            color: #059669 !important;
            text-shadow: -1px -1px 0 #fbbf24, 1px -1px 0 #fbbf24,
                         -1px 1px 0 #fbbf24, 1px 1px 0 #fbbf24,
                         -2px 0 0 #fbbf24, 2px 0 0 #fbbf24,
                         0 -2px 0 #fbbf24, 0 2px 0 #fbbf24;
            font-weight: 700;
        }

        /* ============================================ */
        /* 🏢 COMPANY NAME HEADER - Modern Clean Design */
        /* ============================================ */
        .company-name-header {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 18px;
            font-weight: 800;
            color: #047857;
            margin-bottom: 6px;
            letter-spacing: 0.3px;
            line-height: 1.3;
            background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Fallback for browsers that don't support gradient text */
        @supports not (-webkit-background-clip: text) {
            .company-name-header {
                color: #047857;
                background: none;
            }
        }

        /* Dark mode support */
        body.dark-mode .company-name-header {
            background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .company-name-header {
                font-size: 15px;
                font-weight: 700;
            }
        }

        @media (max-width: 480px) {
            .company-name-header {
                font-size: 13px;
            }
        }

        /* Primjena na specifične elemente */
        .table-number-dark {
            color: white !important;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000,
                         -1px 1px 0 #000, 1px 1px 0 #000;
            font-weight: 600;
        }

        .table-number-light {
            color: black !important;
            text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff,
                         -1px 1px 0 #fff, 1px 1px 0 #fff;
            font-weight: 600;
        }

        /* KPI brojevi - dinamičko */
        .kpi-value-light {
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000,
                         -1px 1px 0 #000, 1px 1px 0 #000;
        }

        .kpi-value-dark {
            text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff,
                         -1px 1px 0 #fff, 1px 1px 0 #fff;
        }
