/* Estilo general */
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
  margin: 0;
  padding: 2rem;
}

/* Encabezado */
h1 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Formulario */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input, select, textarea {
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 4px rgba(52,152,219,0.4);
  outline: none;
}

/* Botones */
button, .actions a {
  background: #3498db;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

button:hover, .actions a:hover {
  background: #2980b9;
}

.btn-yellow {
  background: #f7dc6f;
  color: #333;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-yellow:hover {
  background: #f7dc6f;   /* un poco más intenso al pasar el ratón */
}
.g-ticket {
  background: #f9e79f;
  color: #333;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.g-ticket:hover {
  background: #f7dc6f;   /* un poco más intenso al pasar el ratón */
}

/* Acciones */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Mensajes */
.msg-ok {
  color: #27ae60;
  font-weight: bold;
  text-align: center;
}

.msg-err {
  color: #c0392b;
  font-weight: bold;
  margin: 1rem auto;
  max-width: 500px;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  form {
    padding: 1rem;
  }
}

/* Estilos solo para impresión */
@media print {
  body {
    margin: 0;
    padding: 0;
    font-family: monospace; /* estilo de recibo */
    font-size: 12px;
    color: #000;
  }

  table {
    width: 80mm;   /* ancho típico de rollo de ticket */
    border-collapse: collapse;
  }

  th, td {
    border: none;          /* sin bordes gruesos */
    padding: 2px 4px;      /* espacio reducido */
    text-align: left;
  }

  th {
    font-weight: bold;
    border-bottom: 1px dashed #000; /* línea separadora tipo recibo */
  }

  tr:nth-child(even) {
    background: none; /* sin colores de fondo */
  }

  /* Ocultar elementos que no deben imprimirse */
  form, .actions, button, a {
    display: none !important;
  }

  h1 {
    font-size: 14px;
    text-align: center;
    margin-bottom: 8px;
  }
}