.orders-header {
    background-color: #2c2c2c;
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0;
    cursor: pointer;
}

    .back-btn:hover {
        color: #ccc;
    }

.page-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
}

    .toggle-btn.active {
        color: white;
        background-color: #444;
    }

.header-center {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-orders {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 40px 8px 40px;
    flex: 1;
    color: #333;
}

    .search-input-orders::placeholder {
        color: #999;
    }

.search-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.filter-dropdown {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

    .filter-dropdown:hover {
        color: white;
    }

.bulk-actions {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .bulk-actions:hover {
        color: white;
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.more-options {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}

    .more-options:hover {
        color: white;
    }

.new-order-btn {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

    .new-order-btn:hover {
        background-color: #0056b3;
        color: white;
        text-decoration: none;
    }

.orders-count {
    color: #888;
    font-size: 0.9rem;
}

/* Filters Section */
.filters-section {
    background-color: #2c2c2c;
    padding: 1rem 2rem;
    margin: -1rem -2rem 2rem -2rem;
    border-top: 1px solid #444;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    background-color: #444;
    border: 1px solid #555;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .filter-select:focus {
        outline: none;
        border-color: #007bff;
    }

.clients-table {
    background-color: #2a2a3d; /* Fondo contenedor gris */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Tabla */
.table {
    margin: 0;
    color: #f1f1f1; /* Texto claro */
    background-color: transparent; /* Deja que el contenedor dé el fondo */
}

    /* Encabezado */
    .table thead th {
        background-color: #3a3a4d; /* Gris más oscuro */
        border: none; /* Limpio */
        padding: 1rem;
        font-weight: 600;
        color: #f1f1f1;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Celdas */
    .table tbody td {
        background-color: #2a2a3d; /* Gris uniforme */
        padding: 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #3a3a4d; /* Línea divisoria sutil */
        color: #d1d1d1;
    }

    /* Hover */
    .table tbody tr:hover td {
        background-color: #3b3b55; /* Hover gris azulado */
        color: #fff; /* Texto más legible en hover */
    }

.order-number {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

    .order-number:hover {
        text-decoration: underline;
        color: #0056b3;
    }

.client-name {
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.text-muted {
    color: #888 !important;
}

.price-text {
    color: #333;
    font-weight: 600;
}

.status-badge {
    background-color: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

    .status-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        background-color: currentColor;
        border-radius: 50%;
    }

    .status-badge.pendiente {
        background-color: #dc3545;
        border-color: #dc3545;
    }

    .status-badge.proceso {
        background-color: #ffc107;
        color: #000;
        border-color: #ffc107;
    }

    .status-badge.completado {
        background-color: #28a745;
        border-color: #28a745;
    }

    .status-badge.cancelado {
        background-color: #6c757d;
        border-color: #6c757d;
    }

@@media (max-width: 768px) {
    .orders-header {
        padding: 1rem;
        margin: -1rem -1rem 1rem -1rem;
    }

    .filters-section {
        padding: 1rem;
        margin: -0.5rem -1rem 1rem -1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .header-center {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .new-order-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .table {
        font-size: 0.9rem;
    }

        .table thead th,
        .table tbody td {
            padding: 0.75rem 0.5rem;
        }

    .bulk-actions {
        display: none;
    }
}

@@media (max-width: 576px) {
    .orders-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-left,
    .header-right {
        justify-content: space-between;
    }

    .header-center {
        flex-direction: column;
        gap: 0.5rem;
    }

    .table-responsive {
        border-radius: 0;
    }

    .orders-table {
        border-radius: 8px;
    }
}
