* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #222;
}

h1, h2 {
  text-align: center;
  margin-top: 1rem;
}

#login, #panel {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

input, select, textarea, button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

textarea {
  resize: vertical;
}

button {
  background: #1a73e8;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

button:hover {
  background: #0f59c7;
}

.menu-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.menu-buttons button {
  flex: 1 1 30%;
  font-size: 1.1rem;
  padding: 1rem;
}

.seccion {
  margin-top: 1.5rem;
}

#mensajeOperacion {
  text-align: center;
  padding: 1rem;
  font-weight: bold;
}

.success {
  color: green;
}

.error {
  color: red;
}

@media print {
  body {
    background: white;
    font-size: 11pt;
  }
  #login, #panel, .menu-buttons, .seccion, #logout-btn {
    display: none !important;
  }
}

.fila2, .fila3 {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fila2 > div, .fila3 > div {
  flex: 1;
  min-width: 30%;
}
.contenedor-panel {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.buscador-panel {
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.buscador-panel input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.buscador-panel button {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.buscador-panel button:hover {
  background-color: #1565c0;
}

.tabla-resultados table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid #ddd;
}

.tabla-resultados th, .tabla-resultados td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.tabla-resultados tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabla-resultados tr:hover {
  background-color: #f1f1f1;
}

.boton-editar {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
}

.boton-borrar {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.boton-cerrar-sesion {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.boton-cerrar-sesion:hover {
  background-color: #b71c1c;
}

#logout-btn {
  background-color: #d32f2f !important;   /* Rojo intenso */
  color: white !important;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  float: right;
  margin: 10px 0 10px 10px;
  transition: background-color 0.3s;
}

#logout-btn:hover {
  background-color: #b71c1c !important;   /* Rojo oscuro al pasar el mouse */
}

#btnNuevaOrden {
  background-color: #388e3c; /* Verde profesional */
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px 0;
}

#btnNuevaOrden:hover {
  background-color: #2e7d32; /* Verde más oscuro al pasar el mouse */
}

#btnConsultarOrden {
  background-color: #d219b3; /* Azul consulta */
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px 0;
}

#btnConsultarOrden:hover {
  background-color: #CB04A5; /* Hover más oscuro */
}

#btnDuplicadoTicket {
  background-color: #F5BB00; /* Azul consulta */
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px 0;
}

#btnDuplicadoTicket:hover {
  background-color: #CB04A5; /* Hover más oscuro */
}
