body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 15px;
}

.container {
    max-width: 1100px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.grid, .form-grid {
    display: grid;
    gap: 15px;
}

.grid {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 25px;
}

.card {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.card span {
    display: block;
    font-size: 15px;
    color: #555;
}

.card strong {
    font-size: 34px;
}

label {
    font-weight: bold;
}

input {
    width: 100%;
    padding: 13px;
    font-size: 17px;
    box-sizing: border-box;
}

button {
    padding: 14px 24px;
    font-size: 18px;
    cursor: pointer;
    border: 0;
    border-radius: 9px;
    background: #0b7a35;
    color: white;
}

button.secondary {
    background: #444;
}

button.warning {
    background: #b36b00;
}

.actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#mensaje, #resultado_comparativa {
    margin-top: 20px;
    font-weight: bold;
    font-size: 20px;
}

hr {
    margin: 30px 0;
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 18px;
    }

    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card strong {
        font-size: 40px;
    }

    button {
        width: 100%;
        font-size: 20px;
        padding: 16px;
    }

    .actions {
        flex-direction: column;
    }

    h1 {
        font-size: 24px;
    }
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.sidebar {
    background: #f1f1f1;
    padding: 18px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.pesaje-item {
    background: white;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 5px solid #0b7a35;
    cursor: pointer;
}

.pesaje-item.diferencia {
    border-left-color: #b36b00;
}

.pesaje-item strong {
    display: block;
    font-size: 16px;
}

.pesaje-item small {
    color: #666;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-height: none;
    }
}
/*** DISEÑO DE LISTADO POR ORDENES ***/

.tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.tabla th,
.tabla td {
    border: 1px solid #ddd;
    padding: 8px;
}

.tabla th {
    background: #0b7a35;
    color: white;
}

.fila-alerta {
    background: #fff3cd;
}

.contenido {
    overflow-x: auto;
}