  :root {
            --primary-blue: #0078d4;
            --primary-blue-hover: #106ebe;
            --primary-blue-light: #e1f5fe;
            --accent-teal: #018574;
            --accent-purple: #8764b8;
            --accent-orange: #ca5010;
            --neutral-grey: #f3f2f1;
            --neutral-grey-dark: #e1dfdd;
            --neutral-grey-darker: #d2d0ce;
            --text-primary: #201f1e;
            --text-secondary: #605e5c;
            --text-tertiary: #8a8886;
            --white: #ffffff;
            --border: #edebe9;
            --shadow-sm: 0 1.6px 3.6px rgba(0,0,0,.13), 0 0.3px 0.9px rgba(0,0,0,.11);
            --shadow-md: 0 3.2px 7.2px rgba(0,0,0,.13), 0 0.6px 1.8px rgba(0,0,0,.11);
            --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11);
            --success: #107c10;
            --warning: #ffb900;
            --danger: #d13438;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

 

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
            opacity: 0;
            animation: fadeInDown 0.4s ease forwards;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .header-title {
            display: flex;
            align-items: center;
            gap: 16px;
        }

       
        .stats-badge {
            background: var(--primary-blue-light);
            color: var(--primary-blue);
            padding: 6px 16px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-new {
            background: var(--primary-blue);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            transition: background 0.15s ease;
            box-shadow: var(--shadow-sm);
        }

        .btn-new:hover {
            background: var(--primary-blue-hover);
        }

        .btn-new:active {
            transform: scale(0.98);
        }

        .btn-new i {
            font-size: 16px;
        }

        .alert {
            padding: 12px 16px;
            border-radius: 4px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideInRight 0.3s ease;
            border-left: 4px solid;
            font-size: 14px;
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .alert-success {
            background: #dff6dd;
            color: var(--success);
            border-left-color: var(--success);
        }

        .alert-danger {
            background: #fde7e9;
            color: var(--danger);
            border-left-color: var(--danger);
        }

        .search-filter-bar {
            background: var(--white);
            padding: 20px 24px;
            border-radius: 4px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            opacity: 0;
            animation: fadeInUp 0.4s ease 0.1s forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .search-container {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .search-input-wrapper {
            flex: 1;
            position: relative;
        }

        .search-input-wrapper i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 16px;
        }

        .search-input {
            width: 100%;
            padding: 8px 12px 8px 38px;
            border: 1px solid var(--neutral-grey-darker);
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.15s ease;
            font-family: 'Segoe UI', sans-serif;
            background: var(--white);
        }

        .search-input:hover {
            border-color: var(--text-tertiary);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 1px var(--primary-blue);
        }

        .sort-select {
            padding: 8px 32px 8px 12px;
            border: 1px solid var(--neutral-grey-darker);
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.15s ease;
            background: var(--white);
            font-family: 'Segoe UI', sans-serif;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23605e5c' d='M2.5 4.5l3.5 3.5 3.5-3.5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
        }

        .sort-select:hover {
            border-color: var(--text-tertiary);
        }

        .sort-select:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 1px var(--primary-blue);
        }

        .table-card {
            background: var(--white);
            border-radius: 4px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            overflow: hidden;
            opacity: 0;
            animation: fadeInUp 0.4s ease 0.2s forwards;
        }

        .table-wrapper {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: var(--neutral-grey);
            border-bottom: 2px solid var(--border);
        }

        thead th {
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-primary);
            text-transform: none;
            letter-spacing: 0;
        }

        tbody tr {
            border-bottom: 1px solid var(--border);
            transition: background 0.1s ease;
            animation: fadeIn 0.3s ease;
            animation-fill-mode: both;
        }

        tbody tr:hover {
            background: var(--neutral-grey);
        }

        tbody td {
            padding: 12px 16px;
            color: var(--text-primary);
            font-size: 14px;
        }

        .os-badge {
            background: var(--primary-blue);
            color: white;
            padding: 4px 12px;
            border-radius: 4px;
            font-weight: 600;
            display: inline-block;
            font-size: 13px;
        }

        .date-cell {
            color: var(--text-secondary);
            font-weight: 400;
        }

        .quantity-badge {
            background: var(--neutral-grey);
            color: var(--text-primary);
            padding: 4px 10px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 13px;
            border: 1px solid var(--border);
        }

        .actions {
            display: flex;
            gap: 6px;
        }

        .btn-action {
            width: 32px;
            height: 32px;
            border-radius: 4px;
            border: 1px solid var(--neutral-grey-darker);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .btn-view:hover {
            background: var(--primary-blue-light);
            border-color: var(--primary-blue);
            color: var(--primary-blue);
        }

        .btn-edit:hover {
            background: #fff4ce;
            border-color: var(--warning);
            color: var(--accent-orange);
        }

        .btn-delete:hover {
            background: #fde7e9;
            border-color: var(--danger);
            color: var(--danger);
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 24px;
            margin-top: 20px;
        }

        .pagination-btn {
            padding: 8px 16px;
            border: 1px solid var(--neutral-grey-darker);
            background: var(--white);
            color: var(--text-primary);
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.15s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pagination-btn:hover:not(.disabled) {
            background: var(--neutral-grey);
            border-color: var(--text-tertiary);
        }

        .pagination-btn.active {
            background: var(--primary-blue);
            border-color: var(--primary-blue);
            color: white;
        }

        .pagination-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .pagination-info {
            color: var(--text-secondary);
            font-weight: 400;
            padding: 0 16px;
            font-size: 14px;
        }

        .empty-state {
            text-align: center;
            padding: 64px 32px;
        }

        .empty-state i {
            font-size: 64px;
            color: var(--text-tertiary);
            margin-bottom: 24px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .empty-state p {
            color: var(--text-secondary);
            margin-bottom: 24px;
            font-size: 14px;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            animation: fadeIn 0.2s ease;
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: var(--white);
            border-radius: 4px;
            padding: 24px;
            max-width: 480px;
            width: 90%;
            animation: scaleIn 0.2s ease;
            box-shadow: var(--shadow-lg);
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.95);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h2 {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .btn-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 4px;
            border-radius: 4px;
            transition: background 0.15s ease;
        }

        .btn-close:hover {
            background: var(--neutral-grey);
        }

        .modal-body {
            margin-bottom: 24px;
            color: var(--text-primary);
            line-height: 1.6;
            font-size: 14px;
        }

        .modal-footer {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .btn-secondary {
            padding: 8px 20px;
            border: 1px solid var(--neutral-grey-darker);
            background: var(--white);
            color: var(--text-primary);
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.15s ease;
        }

        .btn-secondary:hover {
            background: var(--neutral-grey);
            border-color: var(--text-tertiary);
        }

        .btn-danger {
            padding: 8px 20px;
            border: none;
            background: var(--danger);
            color: white;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.15s ease;
            box-shadow: var(--shadow-sm);
        }

        .btn-danger:hover {
            background: #a80000;
        }

        .btn-danger:active {
            transform: scale(0.98);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @media (max-width: 768px) {
            .container {
                padding: 20px;
            }

            .header {
                flex-direction: column;
                gap: 16px;
                align-items: stretch;
            }

            .header-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .header-title h1 {
                font-size: 24px;
            }

            .search-container {
                flex-direction: column;
            }

            table {
                font-size: 13px;
            }

            thead th,
            tbody td {
                padding: 10px 12px;
            }
        }

        /* Animação de entrada escalonada para as linhas da tabela */
        tbody tr:nth-child(1) { animation-delay: 0.05s; }
        tbody tr:nth-child(2) { animation-delay: 0.1s; }
        tbody tr:nth-child(3) { animation-delay: 0.15s; }
        tbody tr:nth-child(4) { animation-delay: 0.2s; }
        tbody tr:nth-child(5) { animation-delay: 0.25s; }
        tbody tr:nth-child(6) { animation-delay: 0.3s; }
        tbody tr:nth-child(7) { animation-delay: 0.35s; }
        tbody tr:nth-child(8) { animation-delay: 0.4s; }
        tbody tr:nth-child(9) { animation-delay: 0.45s; }
        tbody tr:nth-child(10) { animation-delay: 0.5s; }