* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", system-ui, sans-serif; background: #e9ebef; color: #111; }
.bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #11141b; color: #eef1f6; }
.bar span { color: #9099ab; margin-left: 8px; font-size: .9rem; }
.bar-actions { display: flex; gap: 12px; align-items: center; }
.bar label { font-size: .85rem; color: #9099ab; }
.bar input { width: 56px; padding: 6px; border-radius: 6px; border: 1px solid #333; background: #0b0d12; color: #fff; }
.bar button { padding: 9px 16px; border: 0; border-radius: 8px; background: #ff8a3d; color: #1a0d03; font-weight: 700; cursor: pointer; }
.hint { padding: 10px 16px; font-size: .85rem; color: #444; }
.denied { padding: 60px 16px; text-align: center; }

.sayfa { width: 210mm; height: 297mm; margin: 12px auto; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: grid; grid-template-columns: repeat(3, 70mm); grid-template-rows: repeat(8, 37mm); align-content: start; overflow: hidden; }
.etiket { padding: 3mm 4mm; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 0 2mm; overflow: hidden; outline: 1px dashed #ddd; }
.etiket.bos { outline-color: #f3f3f3; }
.e-marka { font-weight: 800; font-size: 8.5pt; letter-spacing: .02em; }
.e-kod { font-size: 7pt; color: #555; text-align: right; }
.e-metre { font-size: 22pt; font-weight: 800; line-height: 1; align-self: center; }
.e-metre small { font-size: 10pt; font-weight: 600; }
.e-test { align-self: center; text-align: center; border: 1.5px solid #111; border-radius: 2mm; padding: 1mm 2mm; font-size: 7pt; font-weight: 700; line-height: 1.2; }
.e-test b { display: block; font-size: 11pt; }
.e-alt { grid-column: 1 / -1; font-size: 7pt; color: #333; display: flex; justify-content: space-between; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .sayfa { margin: 0; box-shadow: none; page-break-after: always; }
  .etiket, .etiket.bos { outline: none; }
}
