        .manager-page {
            min-height: 100vh;
        }

        .manager-page .main-content {
            padding: 0;
        }

        /* ===== Header ===== */
        .manager-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px 32px 0;
        }

        .manager-header h1 {
            font-size: 24px;
            font-weight: 600;
        }

        /* ===== Tabs ===== */
        .manager-tabs {
            display: flex;
            gap: 0;
            padding: 0 32px;
            margin-top: 24px;
            border-bottom: 1px solid var(--border-color);
        }

        .manager-tab {
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-muted);
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s ease;
            position: relative;
            bottom: -1px;
        }

        .manager-tab:hover {
            color: var(--text-secondary);
        }

        .manager-tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

        .manager-tab .tab-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 8px;
            background: rgba(245, 158, 11, 0.25);
            color: #f59e0b;
        }

        /* ===== Tab Content ===== */
        .tab-content {
            display: none;
            padding: 28px 32px 40px;
        }

        .tab-content.active {
            display: block;
        }

        /* ===== Overview Stats ===== */
        .overview-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 32px;
        }

        .overview-stat-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 20px 24px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .overview-stat-card:hover {
            border-color: var(--card-hover-border);
            transform: translateY(-2px);
        }

        .overview-stat-label {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .overview-stat-label i {
            font-size: 14px;
        }

        .overview-stat-value {
            font-size: 36px;
            font-weight: 300;
            color: var(--text-primary);
        }

        .stat-warning .overview-stat-label i { color: #f59e0b; }
        .stat-info .overview-stat-label i { color: #818cf8; }
        .stat-danger .overview-stat-label i { color: #ef4444; }
        .stat-success .overview-stat-label i { color: #22c55e; }

        /* ===== Workers Section ===== */
        .workers-section {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 20px 24px;
            margin-bottom: 32px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .workers-section-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(42, 161, 141, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 16px;
            flex-shrink: 0;
        }

        .workers-section-label {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .workers-section-input {
            width: 80px;
            padding: 8px 12px;
            background: var(--btn-bg);
            border: 1px solid var(--btn-border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 16px;
            text-align: center;
            font-family: inherit;
        }

        .workers-section-input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .workers-save-btn {
            padding: 8px 16px;
            font-size: 13px;
        }


        /* ===== Orders Toolbar ===== */
        .orders-toolbar {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .orders-search {
            position: relative;
            flex: 0 1 320px;
        }

        .orders-search input {
            width: 100%;
            height: 40px;
            background: var(--btn-bg);
            border: 1px solid var(--btn-border);
            border-radius: 10px;
            padding: 0 14px 0 40px;
            color: var(--text-primary);
            font-size: 14px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s;
        }

        .orders-search input::placeholder {
            color: var(--text-placeholder);
        }

        .orders-search input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(42, 161, 141, 0.1);
        }

        .orders-search i,
        .orders-search .icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-placeholder);
            font-size: 14px;
            pointer-events: none;
        }

        .orders-toolbar .status-tabs {
            display: flex;
            gap: 4px;
            background: var(--surface, rgba(0,0,0,0.04));
            padding: 4px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .status-tab {
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 400;
            cursor: pointer;
            border: none;
            background: transparent;
            color: var(--text-muted);
            transition: all 0.2s ease;
            font-family: inherit;
            white-space: nowrap;
        }

        .status-tab:hover {
            background: rgba(0, 0, 0, 0.04);
            color: var(--text-secondary);
        }

        .status-tab.active {
            background: var(--primary-color);
            color: #fff;
        }

        .status-tab .count-badge {
            font-size: 11px;
            padding: 1px 6px;
            border-radius: 8px;
            margin-left: 4px;
            background: rgba(0, 0, 0, 0.08);
            color: inherit;
        }

        .status-tab.active .count-badge {
            background: rgba(255, 255, 255, 0.2);
        }

        .toolbar-spacer {
            flex: 1;
        }

        /* ===== Tables ===== */
        .orders-table-container {
            padding: 0;
            background: transparent;
        }

        .manager-table-wrap {
            background: var(--glass-bg);
            border-radius: 16px;
            border: 1px solid var(--glass-border);
            overflow: hidden;
        }

        .orders-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13.5px;
        }

        .orders-table th,
        .orders-table td {
            padding: 12px 14px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .orders-table th {
            color: var(--text-muted);
            font-weight: 500;
            white-space: nowrap;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: rgba(0, 0, 0, 0.03);
        }

        .orders-table tbody tr {
            cursor: pointer;
            transition: background 0.13s;
        }

        .orders-table tbody tr:hover {
            background: rgba(0, 0, 0, 0.02);
        }

        .orders-table tbody tr:last-child td {
            border-bottom: none;
        }

        .orders-table td .action-buttons {
            margin: 0 auto;
            width: fit-content;
        }

        /* ===== Status Badges ===== */
        .order-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .order-status-stopped-badge {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .order-status-in-progress {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
        }

        .order-status-new {
            background: rgba(0, 0, 0, 0.06);
            color: var(--text-muted);
        }

        .order-status-completed {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
        }

        .order-status-ready-ship {
            background: rgba(20, 184, 166, 0.2);
            color: #14b8a6;
        }

        .order-status-partial-ship {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
        }

        .order-status-subcontract {
            background: rgba(113, 119, 248, 0.15);
            color: rgba(113, 119, 248, 1);
        }

        .order-row-stopped {
            animation: blink-red 2s infinite;
        }

        @keyframes blink-red {
            0%, 100% { background-color: rgba(239, 68, 68, 0.05); }
            50% { background-color: rgba(239, 68, 68, 0.12); }
        }

        /* ===== Action Buttons ===== */
        .action-buttons {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        .btn-small {
            padding: 5px 10px;
            font-size: 12px;
            border-radius: 8px;
        }

        /* ===== Modals ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

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

        .modal-content {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 32px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
        }

        .close-btn {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.15s;
        }

        .close-btn:hover {
            background: rgba(0, 0, 0, 0.06);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .form-input, .form-textarea {
            width: 100%;
            padding: 10px 14px;
            background: var(--btn-bg);
            border: 1px solid var(--btn-border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 14px;
            font-family: inherit;
        }

        .form-input:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        .models-edit-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 8px;
            font-size: 13px;
        }

        .models-edit-table th,
        .models-edit-table td {
            padding: 8px;
            border-bottom: 1px solid var(--border-color);
            text-align: center;
        }

        .models-edit-table input {
            width: 100%;
            padding: 6px 8px;
            background: var(--btn-bg);
            border-radius: 6px;
            border: 1px solid var(--btn-border);
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
        }

        .models-edit-table input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        /* ===== Toast Notifications ===== */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }

        .toast {
            pointer-events: auto;
            padding: 12px 20px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            box-shadow: var(--shadow-hover);
            display: flex;
            align-items: center;
            gap: 10px;
            animation: toast-in 0.3s ease-out;
            max-width: 400px;
        }

        .toast.toast-out {
            animation: toast-out 0.25s ease-in forwards;
        }

        .toast-success { border-left: 3px solid #22c55e; }
        .toast-success i { color: #22c55e; }

        .toast-error { border-left: 3px solid #ef4444; }
        .toast-error i { color: #ef4444; }

        .toast-warning { border-left: 3px solid #f59e0b; }
        .toast-warning i { color: #f59e0b; }

        @keyframes toast-in {
            from { opacity: 0; transform: translateX(40px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes toast-out {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(40px); }
        }

        /* ===== Tech Cards ===== */
        .tech-cards-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .tech-cards-header h2 {
            font-size: 18px;
            font-weight: 600;
        }

        /* ===== Responsive ===== */
        @media (max-width: 1024px) {
            .overview-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .manager-header {
                padding: 16px 20px 0;
            }

            .manager-tabs {
                padding: 0 20px;
                overflow-x: auto;
            }

            .tab-content {
                padding: 20px;
            }

            .overview-stats {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .overview-stat-value {
                font-size: 28px;
            }

            .orders-toolbar {
                flex-direction: column;
                align-items: stretch;
            }

            .orders-search {
                flex: 1 1 auto;
            }

            .orders-toolbar .status-tabs {
                overflow-x: auto;
                width: 100%;
            }

            .manager-table-wrap {
                overflow-x: auto;
            }

            .manager-table-wrap .orders-table {
                min-width: 700px;
            }

            .workers-section {
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .overview-stats {
                grid-template-columns: 1fr;
            }

            .manager-header h1 {
                font-size: 20px;
            }

            .tab-content {
                padding: 16px 12px;
            }
        }
