* { box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background-color: #f4f7f6; padding: 20px; }
.container { max-width: 850px; margin: 0 auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
h2 { text-align: center; color: #333; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.row { display: flex; flex-direction: row; gap: 10px; }
.row select { width: 30%; } .row input { width: 70%; }
label { font-weight: bold; margin-bottom: 5px; font-size: 14px; }
input, select, textarea { padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; }

/* Interfaz de Ítems */
.items-section { background: #f9f9f9; padding: 15px; border-radius: 8px; border: 1px solid #ddd; }
.item-inputs { display: flex; gap: 10px; margin-bottom: 15px; }
#itemCant { width: 80px; }
#itemDesc { flex: 1; }
#itemPrecio { width: 150px; }
.btn-add { background: #34495e; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; }
.btn-add:hover { background: #2c3e50; }
.ui-table { width: 100%; border-collapse: collapse; background: white; font-size: 14px; }
.ui-table th, .ui-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.btn-delete { background: #e74c3c; color: white; border: none; padding: 5px 8px; border-radius: 3px; cursor: pointer; font-weight: bold;}
.total-ui { text-align: right; margin-top: 10px; font-size: 16px; color: #27ae60; }

.buttons { display: flex; justify-content: space-between; gap: 10px; }
.btn { flex: 1; padding: 15px; border: none; border-radius: 5px; color: white; font-weight: bold; cursor: pointer; font-size: 16px; transition: 0.3s; }
.btn.quote { background-color: #f39c12; }
.btn.quote:hover { background-color: #e67e22; }
.btn.paid { background-color: #27ae60; }
.btn.paid:hover { background-color: #2ecc71; }

/* ------------------------------------------- */
/* ESTILOS DEL PDF (Diseño Minimalista Factura)*/
/* ------------------------------------------- */
#pdf-template { width: 800px; background: white; padding: 50px; color: #000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.mt-20 { margin-top: 20px; }

.pdf-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.titulo-doc { font-family: 'Courier New', Courier, monospace; font-size: 38px; letter-spacing: 4px; margin: 0; text-transform: lowercase; font-weight: normal;}
.logo { width: 120px; height: 120px; object-fit: contain; background: #999; border-radius: 50%; /* Puedes quitar background y border-radius si tu logo no es circular */ }

.pdf-info-grid { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.4; }
.info-column h4 { font-family: 'Courier New', Courier