:root{--bg:#f2f4f7;--card:#fff;--text:#1e293b;--muted:#64748b;--brand:#0ea5e9;--accent:#6366f1;--danger:#dc2626;--border:#e2e8f0;}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f2f4f7;color:#1e293b;line-height:1.5}
a{color:#0ea5e9;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:24px}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px;box-shadow:0 3px 12px rgba(0,0,0,.08)}
.nav{display:flex;flex-wrap:wrap;gap:12px}
.btn{padding:10px 16px;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc;color:#1e293b;display:inline-flex;align-items:center;gap:8px;transition:.15s;cursor:pointer}
.btn:hover{background:#0ea5e9;color:#fff;border-color:#0ea5e9}
.grid{display:grid;gap:16px}
.input,select,textarea{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;color:#1e293b;font-size:14px}
.label{font-size:12px;color:#64748b;margin-bottom:4px}
.table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden}
.table th,.table td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left}
.table th{background:#f8fafc;font-weight:600;color:#64748b}
.label-101x34{width:101mm;height:34mm;padding:3mm 4mm;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;font-size:10px;line-height:1.2;border:1px dashed #e2e8f0;background:#fff;color:#000}
.label-101x34 .ff{font-weight:700}
.label-101x34 .rojo-small{color:#d00;font-weight:700;font-size:8px}
.label-101x34 .azul{color:#004f9e;font-weight:600}
.footer-azul{grid-column:1 / -1;align-self:end;color:#004f9e;font-size:8px;line-height:1.2;margin-top:2px}
.comp{font-size:9px;line-height:1.2;white-space:pre}
.comp-name{display:inline-block;width:10ch;font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}
.qty{display:inline-block;width:3ch;text-align:right}
.autocomplete-list{position:absolute;background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:100%;z-index:20;box-shadow:0 8px 20px rgba(0,0,0,.08);max-height:220px;overflow:auto}
.autocomplete-item{padding:8px 10px;cursor:pointer}
.autocomplete-item:hover{background:#e0f2fe}
.autocomplete-wrap{position:relative}
.print-area{page-break-inside:avoid}
@media print{body{background:#fff;color:#000}.no-print{display:none}.label-101x34{border:none}}
/* --- Two-pane form layout --- */
.two-pane {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}
.pane {
  display: grid;
  gap: 12px;
}
.pane .section {
  display: grid;
  gap: 10px;
}
.pane .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pane .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* Que el panel derecho acompañe el scroll (si cabe) */
.pane-right {
  position: sticky;
  top: 12px;
}
@media (max-width: 960px) {
  .two-pane { grid-template-columns: 1fr; }
  .pane-right { position: static; }
}
/* Acento celeste para formularios */
.accent-celeste .pane-left,
.accent-celeste .pane-right {
  background: #f0f8ff;           /* celeste muy suave para panel */
  border: 1px solid #cfeaff;     /* borde celeste */
  border-radius: 12px;
  padding: 12px;
}

/* Campos con celeste claro y borde más notorio */
.accent-celeste .input,
.accent-celeste select,
.accent-celeste textarea {
  background: #eaf6ff;           /* celeste claro en inputs */
  border: 1px solid #9fd6ff;     /* borde celeste */
}

/* Placeholder un poco más suave */
.accent-celeste ::placeholder {
  color: #6b93ad;
}

/* Hover y foco (ring celeste visible) */
.accent-celeste .input:hover,
.accent-celeste select:hover,
.accent-celeste textarea:hover {
  background: #e3f2ff;
  border-color: #7fc8ff;
}

.accent-celeste .input:focus,
.accent-celeste select:focus,
.accent-celeste textarea:focus {
  outline: none;
  border-color: #38bdf8;         /* celeste vivo */
  box-shadow: 0 0 0 3px rgba(56,189,248,0.3);
  background: #ffffff;           /* en foco: fondo blanco para máxima legibilidad */
}

/* Títulos de sección más marcados */
.accent-celeste h3 {
  color: #0b71b8;
}

/* Etiquetas (labels) un pelín más intensas */
.accent-celeste .label {
  color: #3d6c88;
}
/* esto es nuevo */
/* Mantener cada componente en una sola línea */
.label-101x34 .comp{
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;   /* evita salto de línea */
  overflow: hidden;      /* si se pasa, recorta sin bajar de línea */
}

.label-101x34 .comp-name{
  display: inline-block;
  width: 10ch;           /* fijo a 10 caracteres como pediste */
  font-family: Consolas, Monaco, 'Courier New', monospace;
  flex: 0 0 10ch;
}

.label-101x34 .qty{
  display: inline-block;
  width: 3ch;            /* 3 caracteres para cantidad */
  text-align: right;
  flex: 0 0 3ch;
}

.label-101x34 .unit{
  flex: 0 0 auto;        /* la unidad no se parte */
}
