/* MODAL */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.close {
  margin: 0;
  color: #aaa;
  font-size: 50px !important;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #000;
}

.modal-body {
  padding: 20px;
  max-height: 600px;
}

.productos-lista {
  max-height: 400px;
  margin-bottom: 20px;
  overflow-y: auto;
}

.producto-item{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid #e0e0e0;
}

.producto-item-column{
    display: flex;
    flex-direction: column;
    font-family: var(--monserrat);
    font-size: .9rem;
}

.en-taller{
    background-color: #ceb8ff;
    padding: 2px 1px;
    font-weight: 600;
    color:#000000;
}

.producto-item-column > :nth-child(1){
    font-weight:600;
    color:#333;
}

.producto-item-column > :nth-child(2){
    color:#666;
}

.totales-section {
  border-top: 2px solid #e0e0e0;
  padding-top: 15px;
}

.total-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1rem;
}

.total-item:last-child {
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: bold;
  font-size: 1.1rem;
}

.total-item span:first-child {
  color: #666;
}

.total-item span:last-child {
  color: #333;
  font-weight: 600;
}

.modal_actions a {
    text-decoration: none;
    padding: 8px 15px;
    margin-right: 8px;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal_button_blue{
    background-color: #4589ff;
}

.modal_button_green{
    background-color: #4bb543;
}