        :root {
            --primary: #4f46e5;
            --primary-dark: #4338ca;
            --primary-light: #eef2ff;
            --background: #f1f5f9;
            --outline: #e2e8f0;
            --border-color: #e2e8f0;
            --on-surface-variant: #64748b;
            --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        body {
            font-family: var(--font-sans);
            background: var(--background);
            min-height: 100vh;
        }

        .container {
            display: flex;
            height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            width: 260px;
            background: white;
            box-shadow: 1px 0 3px rgba(0,0,0,0.05);
            border-right: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
        }

        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid #e2e8f0;
        }

        .sidebar-header h2 {
            color: #4f46e5;
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .sidebar-header .user-info {
            font-size: 12px;
            color: #64748b;
        }

        /* Working Company Selector */
        .working-company-selector {
            margin-top: 10px;
            padding: 10px 12px;
            background: #4f46e5;
            border-radius: 8px;
            color: white;
        }

        .working-company-label {
            font-size: 10px;
            opacity: 0.9;
            margin-bottom: 4px;
        }

        .working-company-value {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 0;
        }

        .working-company-value:hover {
            opacity: 0.9;
        }

        .working-company-value .change-icon {
            font-size: 10px;
            opacity: 0.8;
        }

        /* Company Selection Modal */
        .company-selection-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .company-selection-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .company-selection-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .company-selection-header h2 {
            color: #333;
            margin-bottom: 8px;
            font-size: 22px;
        }

        .company-selection-header p {
            color: #666;
            font-size: 14px;
        }

        .company-select-dropdown {
            width: 100%;
            padding: 14px 16px;
            font-size: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: border-color 0.2s;
        }

        .company-select-dropdown:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .company-default-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            font-size: 14px;
            color: #555;
        }

        .company-default-checkbox input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .company-selection-buttons {
            display: flex;
            gap: 10px;
        }

        .company-selection-buttons button {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .company-btn-cancel {
            background: #f5f5f5;
            color: #666;
        }

        .company-btn-cancel:hover {
            background: #e0e0e0;
        }

        .company-btn-confirm {
            background: #4f46e5;
            color: white;
        }

        .company-btn-confirm:hover {
            background: #4338ca;
            transform: translateY(-1px);
        }

        /* Working Company Modal - Additional Styles */
        .company-selection-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        .company-selection-header h3 {
            margin: 0;
            color: #333;
            font-size: 20px;
        }

        .company-selection-header .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #666;
            padding: 0;
            line-height: 1;
        }

        .company-selection-header .close-btn:hover {
            color: #333;
        }

        .company-selection-body .modal-description {
            color: #666;
            font-size: 14px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .company-search {
            margin-bottom: 15px;
        }

        .company-search input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        .company-search input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .companies-list {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .company-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }

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

        .company-item:hover {
            background: #f5f5f5;
        }

        .company-item.selected {
            background: #e8f5e9;
            border-left: 3px solid #4caf50;
        }

        .company-item-info {
            flex: 1;
        }

        .company-item-name {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .company-item-cui {
            font-size: 12px;
            color: #888;
            margin-top: 2px;
        }

        .company-item-badges {
            display: flex;
            gap: 6px;
        }

        .badge-default, .badge-current {
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 12px;
            font-weight: 600;
        }

        .badge-default {
            background: #fff3e0;
            color: #f57c00;
        }

        .badge-current {
            background: #e8f5e9;
            color: #388e3c;
        }

        .default-company-option {
            margin-bottom: 15px;
        }

        .default-company-option label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #555;
            cursor: pointer;
        }

        .default-company-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .company-selection-footer {
            border-top: 1px solid #eee;
            padding-top: 15px;
            display: flex;
            justify-content: flex-end;
        }

        .company-selection-footer .btn-secondary {
            background: #f5f5f5;
            color: #666;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
        }

        .company-selection-footer .btn-secondary:hover {
            background: #e0e0e0;
        }

        .db-status {
            margin-top: 10px;
            padding: 8px 12px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s;
        }

        .db-status.online {
            background: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #4caf50;
        }

        .db-status.offline {
            background: #ffebee;
            color: #c62828;
            border: 1px solid #ff5252;
        }

        .db-status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .db-status.online .db-status-indicator {
            background: #4caf50;
        }

        .db-status.offline .db-status-indicator {
            background: #ff5252;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .sidebar-menu {
            flex: 1;
            padding: 20px 0;
            overflow-y: auto;
        }

        .menu-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #333;
        }

        .menu-item:hover {
            background: #f5f5f5;
        }

        .menu-item.active {
            background: #4f46e5;
            color: white;
            border-left: 4px solid #4f46e5;
        }

        .menu-item-icon {
            font-size: 18px;
        }

        .menu-item.has-submenu {
            position: relative;
        }

        .menu-item.has-submenu::after {
            content: '▼';
            position: absolute;
            right: 20px;
            font-size: 12px;
            transition: transform 0.3s;
        }

        .menu-item.has-submenu.expanded::after {
            transform: rotate(180deg);
        }

        .submenu {
            display: none;
            background: #f8f9fa;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .submenu.open {
            display: block;
        }

        .submenu-item {
            padding: 10px 20px 10px 50px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #555;
            font-size: 14px;
        }

        .submenu-item:hover {
            background: #e9ecef;
            color: #4f46e5;
        }

        .submenu-item.active {
            background: #4f46e5;
            color: white;
            border-left: 3px solid #4f46e5;
        }

        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid #e0e0e0;
        }

        .btn-logout {
            width: 100%;
            padding: 10px 14px;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .btn-logout:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

        /* Module Hub Cards */
        .module-hub {
            padding: 32px 24px;
        }

        .module-hub-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .module-hub-header h1 {
            font-size: 26px;
            color: #1e293b;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .module-hub-header p {
            font-size: 14px;
            color: #64748b;
        }

        .module-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .module-card {
            background: white;
            border-radius: 12px;
            padding: 28px 22px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            border: 1px solid #e2e8f0;
            position: relative;
            overflow: hidden;
        }

        .module-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: #4f46e5;
            opacity: 0;
            transition: opacity 0.3s;
            border-radius: 12px 12px 0 0;
        }

        .module-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
            border-color: #4f46e5;
        }

        .module-card:hover::before {
            opacity: 1;
        }

        .module-card-icon {
            width: 72px;
            height: 72px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 32px;
        }

        .module-card-icon.blue {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            color: #1565c0;
        }

        .module-card-icon.green {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            color: #2e7d32;
        }

        .module-card-icon.purple {
            background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
            color: #7b1fa2;
        }

        .module-card-icon.orange {
            background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
            color: #ef6c00;
        }

        .module-card-icon.disabled {
            background: #f5f5f5;
            color: #bdbdbd;
        }

        .module-card h3 {
            font-size: 18px;
            color: #333;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .module-card p {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 16px;
        }

        .module-card .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .module-card .badge.active {
            background: #ecfdf5;
            color: #059669;
        }

        .module-card .badge.coming-soon {
            background: #fef3c7;
            color: #b45309;
        }

        .module-card.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .module-card.disabled:hover {
            transform: none;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            border-color: #e2e8f0;
        }

        .module-card.disabled:hover::before {
            opacity: 0;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
        }

        .content-header {
            background: white;
            padding: 16px 20px;
            border-radius: 12px;
            margin-bottom: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
            border: 1px solid #e2e8f0;
        }

        .content-header h1 {
            color: #1e293b;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .content-header p {
            color: #64748b;
            font-size: 13px;
        }

        .content-body {
            background: white;
            padding: 16px;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
            border: 1px solid #e2e8f0;
        }

        .section {
            display: none;
        }

        .section.active {
            display: block;
        }

        /* Table Styles */
        .table-container {
            overflow: auto;
            max-height: 70vh;
        }

        /* Override common.css .loading (designed for inline spinners) on content containers */
        .section .loading, .content-body .loading, #csvDatasetsContainer.loading {
            display: block;
            width: auto;
            height: auto;
            border: none;
            animation: none;
            border-radius: 0;
            margin-left: 0;
            vertical-align: baseline;
            text-align: center;
            padding: 40px;
            color: #666;
        }

        table { margin-top: 20px; }
        th, td { padding: 12px; border-bottom: 1px solid #e0e0e0; }
        th { background: #f5f5f5; }
        tr:hover { background: #f9f9f9; }

        /* Buttons */
        .btn {
            padding: 10px 18px;
            font-weight: 500;
            transition: all 0.2s ease;
            margin-right: 8px;
        }

        .btn-primary {
            background: var(--primary);
            box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
        }

        .btn-success {
            background: #10b981;
            box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
        }

        .btn-success:hover {
            background: #059669;
            transform: translateY(-1px);
        }

        .btn-danger {
            background: #ef4444;
            box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
        }

        .btn-danger:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

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

        /* Loading */
        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
            width: auto;
            height: auto;
            border: none;
            display: block;
            margin-left: 0;
            vertical-align: baseline;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--primary);
            margin: 0 auto 20px;
        }

        /* Stats Cards - COMPACT VERSION */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }

        .stat-card {
            background: white;
            padding: 10px 12px;
            border-radius: 6px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            border-left: 3px solid #4f46e5;
        }

        .stat-card h3 {
            font-size: 11px;
            color: #666;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .stat-card .value {
            font-size: 20px;
            font-weight: bold;
            color: #4f46e5;
            line-height: 1;
        }

        /* Actions Bar */
        .actions-bar {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .actions-bar input,
        .actions-bar select {
            padding: 10px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .actions-bar input:focus,
        .actions-bar select:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .actions-bar input {
            flex: 1;
            min-width: 200px;
        }

        /* Badge - overrides */
        .badge {
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .badge-success { background: #ecfdf5; color: #059669; }
        .badge-danger { background: #fef2f2; color: #dc2626; }
        .badge-warning { background: #fffbeb; color: #d97706; }

        /* Login Screen */
        .login-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-box {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            width: 100%;
            max-width: 400px;
        }

        .login-box h2 {
            color: #4f46e5;
            margin-bottom: 30px;
            text-align: center;
        }

        /* Form overrides for admin-dashboard theme */
        .form-group label { font-weight: 500; }
        .form-group input { border-radius: 5px; }
        .form-group input:focus { box-shadow: none; }

        .error-message {
            color: #ff5252;
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
        }

        /* Password show/hide toggle */
        .password-wrapper {
            position: relative;
        }

        .password-wrapper input {
            padding-right: 45px; /* Make space for toggle button */
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 18px;
            color: #666;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
        }

        .password-toggle:hover {
            color: #4f46e5;
        }

        .password-toggle:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
            border-radius: 4px;
        }

        /* Remember me checkbox */
        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            color: #666;
        }

        .remember-me input[type="checkbox"] {
            width: auto;
            cursor: pointer;
        }

        .remember-me label {
            cursor: pointer;
            user-select: none;
        }

        /* Zebra striping - hover override */
        table tbody tr:nth-child(even):hover { background: #f1f5f9; }

        /* Sef Ocol tabs */
        .so-tab { padding:8px 18px; border:none; background:transparent; font-size:13px; font-weight:600; color:#64748b; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; }
        .so-tab:hover { color:#334155; }
        .so-tab.active { color:#2563eb; border-bottom-color:#2563eb; }
        .so-tab-content table { width:100%; border-collapse:collapse; font-size:13px; }
        .so-tab-content th { background:#f1f5f9; padding:8px 10px; text-align:left; font-weight:600; color:#475569; border-bottom:1px solid #e2e8f0; font-size:12px; }
        .so-tab-content td { padding:7px 10px; border-bottom:1px solid #f1f5f9; color:#334155; }
        .so-tab-content tr:hover td { background:#f8fafc; }
        .so-actions button { padding:3px 8px; font-size:11px; border:1px solid #e2e8f0; border-radius:4px; cursor:pointer; background:white; color:#475569; }
        .so-actions button:hover { background:#f1f5f9; }
        .so-actions button.danger { color:#dc2626; border-color:#fecaca; }
        .so-actions button.danger:hover { background:#fef2f2; }
        .badge-active { display:inline-block; padding:1px 8px; border-radius:10px; font-size:11px; font-weight:600; }
        .badge-active.yes { background:#dcfce7; color:#166534; }
        .badge-active.no { background:#fee2e2; color:#991b1b; }

        /* Sef Ocol modals */
        .so-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:9999; display:flex; align-items:center; justify-content:center; }
        .so-modal { background:white; border-radius:12px; padding:24px; min-width:380px; max-width:520px; box-shadow:0 10px 30px rgba(0,0,0,0.2); }
        .so-modal h3 { margin:0 0 16px 0; font-size:16px; color:#1e293b; }
        .so-modal label { display:block; font-size:12px; font-weight:600; color:#475569; margin-bottom:4px; margin-top:10px; }
        .so-modal input, .so-modal select, .so-modal textarea { width:100%; padding:7px 10px; border:1px solid #d1d5db; border-radius:6px; font-size:13px; box-sizing:border-box; }
        .so-modal textarea { resize:vertical; }
        .so-modal-btns { display:flex; gap:8px; justify-content:flex-end; margin-top:18px; }
        .so-modal-btns button { padding:7px 16px; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; border:none; }
        .so-modal-btns .so-cancel { background:#f1f5f9; color:#475569; }
        .so-modal-btns .so-save { background:#2563eb; color:white; }
        .so-modal-btns .so-save:hover { background:#1d4ed8; }
        /* Borderou Expandable List Styling - ULTRA COMPACT */
        .borderou-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-bottom: 8px;
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .borderou-item:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            border-color: #4f46e5;
        }

        .borderou-header {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            cursor: pointer;
            background: white;
            transition: background 0.15s ease;
            gap: 12px;
        }

        .borderou-header:hover {
            background: #f8fafc;
        }

        .expand-icon {
            width: 16px;
            font-size: 10px;
            transition: transform 0.2s ease;
            color: #4f46e5;
            font-weight: bold;
            flex-shrink: 0;
        }

        .borderou-header.expanded .expand-icon {
            transform: rotate(90deg);
        }

        .borderou-info {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 11px;
        }

        .borderou-info-item {
            display: inline-flex;
            flex-direction: column;
            gap: 3px;
        }

        /* Lățimi fixe pentru coloane aliniate */
        .borderou-info-item.col-utilizator { min-width: 130px; max-width: 130px; }
        .borderou-info-item.col-apv { min-width: 160px; max-width: 160px; }
        .borderou-info-item.col-borderou { min-width: 90px; max-width: 90px; }
        .borderou-info-item.col-data { min-width: 90px; max-width: 90px; }
        .borderou-info-item.col-volum { min-width: 90px; max-width: 90px; }
        .borderou-info-item.col-valoare { min-width: 100px; max-width: 100px; }
        .borderou-info-item.col-zdepus { min-width: 200px; max-width: 220px; }

        .borderou-info-label {
            font-size: 10px;
            color: #64748b;
            text-transform: uppercase;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .borderou-info-value {
            font-size: 12px;
            font-weight: 600;
            color: #1e293b;
        }

        /* Font monospace pentru cifre */
        .borderou-info-value.numeric {
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
        }

        .borderou-info-value code {
            background: #f1f5f9;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            color: #4f46e5;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
        }

        /* Butoane Outline - Design Premium */
        .export-btn-inline {
            padding: 5px 12px;
            background: transparent;
            color: #166534;
            border: 1px solid #bbf7d0;
            border-radius: 5px;
            cursor: pointer;
            font-size: 10px;
            font-weight: 600;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .export-btn-inline:hover {
            background: #dcfce7;
            border-color: #166534;
        }

        .delete-btn-inline {
            padding: 5px 12px;
            background: transparent;
            color: #dc2626;
            border: 1px solid #fecaca;
            border-radius: 5px;
            cursor: pointer;
            font-size: 10px;
            font-weight: 600;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .delete-btn-inline:hover {
            background: #fee2e2;
            border-color: #dc2626;
        }

        .reassign-btn-inline {
            padding: 5px 12px;
            background: transparent;
            color: #9333ea;
            border: 1px solid #e9d5ff;
            border-radius: 5px;
            cursor: pointer;
            font-size: 10px;
            font-weight: 600;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .reassign-btn-inline:hover {
            background: #f3e8ff;
            border-color: #9333ea;
        }

        .borderou-details {
            display: none;
            padding: 16px 20px;
            background: white;
            border-top: 1px solid #e2e8f0;
        }

        .borderou-details.expanded {
            display: block;
        }

        .borderou-details table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            font-size: 12px;
            border-radius: 8px;
            overflow: hidden;
        }

        .borderou-details table th {
            background: #f8fafc;
            color: #475569;
            padding: 10px 12px;
            text-align: left;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            border-bottom: 1px solid #e2e8f0;
        }

        .borderou-details table td {
            padding: 10px 12px;
            border-bottom: 1px solid #f1f5f9;
            font-size: 12px;
            color: #1e293b;
        }

        /* Cifre cu font monospace în tabel */
        .borderou-details table td:nth-child(3),
        .borderou-details table td:nth-child(4) {
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-weight: 500;
        }

        .borderou-details table tr:last-child td {
            border-bottom: none;
        }

        .borderou-details table tr:hover {
            background: #f8fafc;
        }

        /* APV Expandable List Styling */
        .apv-expandable-list {
            margin-top: 20px;
        }

        .apv-item {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 10px;
            overflow: hidden;
            transition: all 0.3s;
        }

        .apv-item:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .apv-header {
            display: flex;
            align-items: center;
            padding: 16px;
            cursor: pointer;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            transition: background 0.3s;
        }

        .apv-item.has-children .apv-header:hover {
            background: linear-gradient(135deg, #e8eaf0 0%, #b8c6db 100%);
        }

        .expand-icon {
            width: 30px;
            font-size: 14px;
            color: #4f46e5;
            font-weight: bold;
            transition: transform 0.3s;
        }

        .apv-info {
            display: grid;
            grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1.5fr;
            gap: 15px;
            flex: 1;
            align-items: center;
        }

        .apv-col {
            font-size: 14px;
            color: #333;
        }

        .apv-col.utilizator {
            color: #4f46e5;
            font-size: 15px;
        }

        .apv-col.nr-apv code {
            background: #4f46e5;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 13px;
        }

        .apv-col.volum-apv,
        .apv-col.inventar-total,
        .apv-col.vanzari-total {
            text-align: right;
            font-weight: 600;
            color: #2e7d32;
        }

        .apv-col.valoare-totala {
            text-align: right;
            font-weight: 700;
            color: #1976d2;
            font-size: 15px;
        }

        .apv-details {
            padding: 15px;
            background: #fafafa;
            border-top: 2px solid #e0e0e0;
        }

        .borderouri-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 4px;
            overflow: hidden;
        }

        .borderouri-table thead {
            background: #4f46e5;
            color: white;
        }

        .borderouri-table th {
            padding: 12px;
            text-align: left;
            font-size: 13px;
            font-weight: 600;
        }

        .borderouri-table td {
            padding: 10px 12px;
            border-bottom: 1px solid #e0e0e0;
            font-size: 13px;
        }

        .borderouri-table tbody tr:hover {
            background: #f5f7fa;
        }

        .borderouri-table td:nth-child(2),
        .borderouri-table td:nth-child(3) {
            text-align: right;
            font-weight: 600;
        }

        .borderouri-table th:nth-child(2),
        .borderouri-table th:nth-child(3) {
            text-align: right;
        }

        /* Responsive pentru liste APV */
        @media (max-width: 1200px) {
            .apv-info {
                grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
                gap: 10px;
            }

            .apv-col {
                font-size: 13px;
            }
        }

        @media (max-width: 768px) {
            .apv-info {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .expand-icon {
                width: 25px;
            }
        }


/* Responsive: sidebar colapsata la icoane sub 768px */
@media (max-width: 768px) {
    .sidebar { width: 60px; overflow: hidden; }
    .sidebar .logo span:not(.menu-item-icon), .sidebar .menu-item span:not(.menu-item-icon) { display: none; }
    .sidebar .menu-item { justify-content: center; padding: 12px 8px; }
    .main-content { margin-left: 60px; padding: 12px; }
}
