/* tabla-pedidos.css */
.tabla-pedidos-container {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.tabla-pedidos {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tabla-pedidos th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tabla-pedidos td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.tabla-pedidos tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tabla-pedidos tr.selected-row {
    background-color: #e3f2fd !important;
    box-shadow: inset 3px 0 0 #2196f3;
}

.tabla-pedidos tr:not(.selected-row):hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.tabla-pedidos .row-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: 2px solid #757575;
    border-radius: 4px;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin: 0;
}

.tabla-pedidos .row-checkbox:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}

.tabla-pedidos .row-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tabla-pedidos th:first-child {
    width: 40px;
    text-align: center;
}

.tabla-pedidos td:first-child {
    text-align: center;
}

.tabla-pedidos .currency {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2e7d32;
}

.tabla-pedidos .number {
    text-align: right;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .tabla-pedidos td, 
    .tabla-pedidos th {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}