body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
}

.catalogo-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

main {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #f4f4f4;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

footer {
    margin-top: 20px;
}

/* Ajustes para alinear verticalmente los campos */
.cliente-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Limitar el tamaño de las imágenes a 50x50 píxeles */
.producto-imagen {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

td img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
}

.nowrap {
    white-space: nowrap;
}

.mask {
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    width: 1000vw;
    height: 128px;
    z-index: 10;
    padding-left: 0;
    padding-right: 0;
}

header > div {
    width: 100vw;
    margin-bottom: 16px;
}

main {
    position: absolute;
    top: 184px;
    width: calc(100vw - 20px);
}

.block-search {
    position: absolute;
    top: 128px;
    background: #fff;
    width: 100%;
}

.block-search > div {
    padding: 20px 40px 0 20px;
    width: 100vw;
}

@media (max-width: 645px) {
    input.cantidad {
        width: 80px;
    }
    header {height: 158px;}
}

@media (max-width: 520px) {
    input.cantidad {
        width: 50px;
    }
    main {top: 182px;}
    /* .block-search{top: 158px;} */
    header {padding:0}
}

.tabla {
    overflow: auto;
}