.ke-marka-pick{display:flex;align-items:center;gap:8px;margin-right:12px;}
.ke-marka-pick label{font-size:11px;color:var(--ink3);white-space:nowrap;}
.ke-marka-pick select{min-width:110px;padding:6px 8px;font-size:12px;}

/* Kutu etiketi — Goby / Calceo şablon · A4 × 10 */
.ke-tur-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.ke-tur-row select{flex:1;min-width:140px;}
.ke-chk-lbl{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:600;color:var(--ink2);
  cursor:pointer;white-space:nowrap;user-select:none;
}
.ke-chk-lbl input{width:15px;height:15px;cursor:pointer;}
.ke-chk-print{margin-right:8px;}
.ke-tur-ozet{font-size:12px;color:var(--ink2);margin:10px 0 0;line-height:1.6;}
.ke-tur-chip{
  display:inline-block;margin:2px 6px 2px 0;padding:3px 8px;
  background:var(--bg);border:1px solid var(--border);border-radius:4px;
  font-family:var(--mono);font-size:11px;
}
.ke-tur-chip-all{background:var(--green-bg, #e8f5e9);border-color:var(--green, #2e7d32);}

.ke-excel-hint{font-size:12px;color:var(--ink2);margin:0 0 12px;line-height:1.5;}
.ke-excel-actions{align-items:flex-end;gap:10px;flex-wrap:wrap;}
.ke-excel-meta{font-size:12px;color:var(--ink3);margin:10px 0 0;}
.ke-excel-preview{
  margin-top:10px;padding:10px 12px;
  background:#fafafa;border:1px solid var(--border);border-radius:var(--radius);
  max-height:240px;overflow:auto;
}
.ke-excel-more{font-size:11px;color:var(--ink3);margin:8px 0 0;}

.ke-koli-hint{font-size:12px;color:var(--ink2);margin:0 0 12px;line-height:1.5;}
.ke-koli-range-fg{min-width:180px;}
.ke-koli-range{display:flex;align-items:center;gap:6px;}
.ke-koli-range input{
  width:72px;padding:6px 8px;font-family:var(--mono);font-size:13px;
  border:1px solid var(--border);border-radius:var(--radius-sm);text-align:center;
}
.ke-koli-range-sep{color:var(--ink3);font-weight:700;}

.ke-koli-label{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:100%;padding:1.5mm 1mm;box-sizing:border-box;
  background:#fff;font-family:'Helvetica Neue',Arial,sans-serif;overflow:hidden;
}
.ke-koli-siparis{
  flex:0 0 auto;width:100%;text-align:center;
  font-size:18px;font-weight:700;color:#333;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  line-height:1.15;margin-bottom:1mm;padding:0 0.5mm;
}
.ke-koli-no{
  flex:0 0 auto;font-size:22px;font-weight:800;letter-spacing:.02em;
  color:#111;line-height:1;margin-bottom:1.5mm;
}
.ke-koli-barcode-wrap{
  flex:1 1 auto;display:flex;align-items:center;justify-content:center;
  width:100%;min-height:0;overflow:hidden;
}
.ke-koli-barcode-wrap svg.ke-bc{width:96%;max-width:100%;height:auto;max-height:16mm;}
.ke-label-cell--koli .ke-koli-no{font-size:15px;margin-bottom:0.8mm;}
.ke-label-cell--koli .ke-koli-siparis{font-size:15px;margin-bottom:0.6mm;}
.ke-label-cell--koli .ke-koli-label{padding:1mm 0.8mm;}

/* Koli sayfası — sabit 3×7, sayfa no çubukları düşülür */
.ke-a4-sheet.ke-koli-sheet .ke-a4-grid{
  flex:1 1 0;min-height:0;
  height:calc(297mm - 8mm);
  max-height:calc(297mm - 8mm);
}
.ke-koli-sheet .ke-label-cell--koli{overflow:hidden;}
.ke-koli-sheet .ke-koli-barcode-wrap{flex:1 1 0;min-height:0;max-height:16mm;}
.ke-koli-sheet .ke-koli-barcode-wrap svg.ke-bc{max-height:16mm;}

.ke-layout-card{padding:10px 14px;}
.ke-layout-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.ke-layout-presets{display:flex;gap:8px;}
.ke-preset-opt{
  display:inline-flex;align-items:center;gap:6px;padding:6px 12px;
  border:2px solid var(--border);border-radius:var(--radius-sm);
  font-size:12px;font-weight:700;cursor:pointer;background:#fff;
  transition:border-color .15s,background .15s;
}
.ke-preset-opt:has(input:checked){
  border-color:var(--accent);background:var(--accent-soft);color:var(--accent);
}
.ke-preset-opt input{width:14px;height:14px;margin:0;accent-color:var(--accent);}
.ke-preset-opt em{font-size:10px;font-weight:500;color:var(--ink3);font-style:normal;}
.ke-preset-opt:has(input:checked) em{color:inherit;opacity:.75;}
.ke-layout-bar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:1;
}
.ke-layout-group{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  padding:4px 8px;background:var(--bg);border:1px solid var(--border);
  border-radius:var(--radius-sm);
}
.ke-layout-grp-lbl{
  font-size:9px;font-weight:700;text-transform:uppercase;
  letter-spacing:.05em;color:var(--ink3);margin-right:2px;
}
.ke-layout-mini{
  display:inline-flex;align-items:center;gap:4px;
  font-size:10px;font-weight:600;color:var(--ink3);cursor:default;
}
.ke-layout-mini span{white-space:nowrap;}
.ke-layout-mini input{
  width:44px;padding:4px 6px;font-family:var(--mono);font-size:12px;
  border:1px solid var(--border);border-radius:4px;background:#fff;
  text-align:center;
}
.ke-layout-mini input:focus{border-color:var(--blue);outline:none;}
.ke-layout-acts{display:flex;gap:6px;margin-left:auto;}
.ke-layout-btn{font-size:11px;padding:5px 12px;}
.ke-layout-status{font-size:11px;color:var(--green);white-space:nowrap;}
.ke-layout-preview{
  margin:6px 0 0;font-size:10px;font-family:var(--mono);
  color:var(--ink3);line-height:1.4;
}
.ke-layout-preview:empty{display:none;}

.ke-sec-tabs{margin-bottom:14px;}
.ke-page-stab{display:none;}
.ke-page-stab.active{display:block;animation:fadeIn .25s ease;}

/* —— 21'li OGOBONGO etiket —— */
.ke-ogo-label{
  display:flex;flex-direction:column;width:100%;height:100%;
  background:#fff;font-family:'Helvetica Neue',Arial,sans-serif;
  box-sizing:border-box;overflow:hidden;
}
.ke-ogo-top{
  flex:1 1 auto;display:flex;min-height:0;overflow:hidden;
  border-bottom:1px solid #ccc;
}
.ke-ogo-photo-wrap{
  flex:0 0 42%;position:relative;display:flex;align-items:center;
  justify-content:center;padding:1.5mm;border-right:1px solid #ddd;
  background:#fff;
}
.ke-ogo-corner{
  position:absolute;top:0;left:0;width:8mm;height:8mm;
  border-top:2.5px solid #e85d04;border-left:2.5px solid #e85d04;
  pointer-events:none;z-index:1;
}
.ke-ogo-photo{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.ke-ogo-photo img{max-width:100%;max-height:100%;object-fit:contain;}
.ke-label-cell--ogobongo .ke-ogo-photo-wrap,
.ke-label-sheet--ogobongo .ke-ogo-photo-wrap{
  flex:0 0 48%;overflow:visible;padding:1mm;
}
.ke-label-cell--ogobongo .ke-ogo-photo,
.ke-label-sheet--ogobongo .ke-ogo-photo{overflow:visible;}
.ke-label-cell--ogobongo .ke-ogo-photo img,
.ke-label-sheet--ogobongo .ke-ogo-photo img{
  transform:scale(1.5);transform-origin:center center;
}
.ke-ogo-ph{font-size:6px;color:#aaa;}
.ke-ogo-info{
  flex:1;display:flex;flex-direction:column;
  align-items:center;padding:0.5mm 1.5mm;min-width:0;
}
.ke-ogo-code-block{
  display:flex;flex-direction:column;align-items:center;width:100%;gap:0.15mm;
  margin-top:auto;margin-bottom:2mm;
}
.ke-ogo-divider{
  width:72%;border-top:1px solid #222;margin:0.15mm 0;
}
.ke-ogo-code{
  font-size:18.7px;font-weight:800;letter-spacing:.04em;color:#111;
  text-align:center;line-height:1.05;
}
.ke-ogo-size{
  font-size:37.4px;font-weight:800;color:#111;line-height:1;
  margin:0.1mm 0;
}
.ke-ogo-band{
  width:100%;background:#b91c1c;color:#fff;text-align:center;
  font-size:8px;font-weight:800;letter-spacing:.18em;
  padding:1mm 2mm;margin-top:0;flex-shrink:0;
}
.ke-brand-calceo .ke-ogo-band{background:#1e3a5f;}
.ke-ogo-barcode-wrap{
  flex:0 0 auto;padding:0.3mm 1.5mm 0.2mm;
  display:flex;align-items:center;justify-content:center;
  max-height:7.7mm;overflow:hidden;
}
.ke-ogo-barcode-wrap svg.ke-bc{
  width:55%;max-width:55%;height:auto;display:block;
}
.ke-ogo-siparis-bar{
  flex:0 0 auto;width:100%;box-sizing:border-box;
  padding:0.35mm 0.6mm;text-align:center;
  font-size:11pt;font-weight:800;text-transform:uppercase;
  letter-spacing:.03em;color:#fff;line-height:1.1;
  background:#b91c1c;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}

.ke-label-cell--ogobongo .ke-ogo-code{font-size:17px;}
.ke-label-cell--ogobongo .ke-ogo-size{font-size:30.6px;}
.ke-label-cell--ogobongo .ke-ogo-divider{width:68%;margin:0.1mm 0;}
.ke-label-cell--ogobongo .ke-ogo-band{font-size:5.5px;padding:0.35mm 0.8mm;letter-spacing:.12em;}
.ke-label-cell--ogobongo .ke-ogo-corner{width:4mm;height:4mm;border-width:2px;}
.ke-label-cell--ogobongo .ke-ogo-info{padding:0.4mm 1mm;}
.ke-label-cell--ogobongo .ke-ogo-code-block{margin-bottom:2mm;}
.ke-label-cell--ogobongo .ke-ogo-barcode-wrap{padding:0.25mm 0.8mm 0.15mm;max-height:6.6mm;}
.ke-label-cell--ogobongo .ke-ogo-barcode-wrap svg.ke-bc{width:55%;max-width:55%;}
.ke-label-cell--ogobongo .ke-ogo-siparis-bar{
  font-size:9pt;padding:0.3mm 0.5mm;flex-shrink:0;
}

.ke-label-sheet--ogobongo .ke-ogo-siparis-bar{font-size:11pt;}

.ke-label-sheet--ogobongo .ke-ogo-code{font-size:20.4px;}
.ke-label-sheet--ogobongo .ke-ogo-size{font-size:37.4px;}
.ke-label-sheet--ogobongo .ke-ogo-band{font-size:6px;}

.ke-no-image-box{
  margin-top:12px;padding:12px 14px;
  background:#fff8e6;border:1px solid #e6c200;border-radius:6px;
}
.ke-no-image-head{
  font-size:13px;font-weight:600;color:#7a5f00;margin-bottom:8px;line-height:1.45;
}
.ke-no-image-head strong{color:#5c4700;}
.ke-no-image-list-wrap{max-height:220px;overflow:auto;margin-top:4px;}
.ke-no-image-table{
  width:100%;font-size:12px;border-collapse:collapse;font-family:var(--mono);
}
.ke-no-image-table th{
  text-align:left;padding:6px 8px;font-size:10px;text-transform:uppercase;
  letter-spacing:.06em;color:#7a5f00;border-bottom:1px solid #e6d48a;
  position:sticky;top:0;background:#fff8e6;
}
.ke-no-image-table td{padding:5px 8px;border-bottom:1px solid #f5ecd0;color:var(--ink);}
.ke-no-image-table tr:last-child td{border-bottom:none;}
.ke-no-image-table .r{text-align:right;}

/* —— Goby etiket gövdesi —— */
.ke-goby-label{
  display:flex;width:100%;height:100%;min-height:52mm;
  background:#fff;font-family:'Helvetica Neue',Arial,sans-serif;
  box-sizing:border-box;overflow:hidden;
}
.ke-goby-left{
  flex:0 0 58%;display:flex;flex-direction:column;
  border-right:1px solid #bbb;min-width:0;min-height:0;overflow:hidden;
}
.ke-goby-top{
  flex:1 1 auto;display:grid;
  grid-template-columns:1fr 12px 1fr;
  grid-template-areas:"brand sep sizes";
  align-items:stretch;
  border-bottom:1px solid #bbb;min-height:0;
}
.ke-goby-brand-col{
  grid-area:brand;display:flex;flex-direction:column;
  align-items:stretch;justify-content:flex-start;
  padding:1.5mm 0 1mm;min-width:0;height:100%;
}
.ke-goby-block-logo{
  flex:0 0 auto;display:flex;align-items:flex-start;justify-content:center;
  padding:0 2mm 1.2mm;width:100%;box-sizing:border-box;
}
.ke-goby-brand-divider{
  flex:0 0 auto;height:0;border:none;border-top:1px solid #bbb;
  margin:0 2mm;
}
.ke-goby-block-code{
  flex:1 1 auto;width:100%;display:flex;align-items:center;justify-content:center;
  padding:0 2mm;min-height:0;
}
.ke-goby-made{
  flex:0 0 4.2mm;display:flex;align-items:center;justify-content:center;
  text-align:center;padding:0 2mm;
  border-top:1px solid #bbb;
  background:#e3f6f8;
  overflow:hidden;
}
.ke-goby-made-text{
  font-size:13px;font-weight:800;letter-spacing:.08em;
  color:#111;line-height:1;white-space:nowrap;
}
.ke-goby-block-sizes{
  grid-area:sizes;display:flex;flex-direction:column;
  border-left:1px solid #bbb;text-align:center;min-height:0;
}
.ke-goby-size-eur{padding:1.5mm 2mm 1mm;flex:1;display:flex;flex-direction:column;justify-content:center;}
.ke-goby-size-us{padding:1mm 2mm 1.5mm;flex:1;display:flex;flex-direction:column;justify-content:center;}
.ke-goby-size-divider{
  flex:0 0 auto;height:0;border:none;border-top:1px solid #bbb;
  margin:0 3mm;
}
.ke-goby-sep{
  grid-area:sep;display:flex;align-items:center;justify-content:center;
  writing-mode:vertical-rl;transform:rotate(180deg);
  font-size:7px;color:#666;letter-spacing:.04em;
  border-left:1px solid #bbb;border-right:1px solid #bbb;
  background:#fafafa;
}

.ke-goby-logo{
  font-family:Georgia,'Times New Roman',serif;
  font-size:17px;font-weight:600;font-style:italic;
  color:#b91c1c;line-height:1;letter-spacing:-.02em;
}
.ke-goby-logo-img{max-height:9mm;max-width:22mm;object-fit:contain;display:block;}
.ke-goby-code{
  font-size:17px;font-weight:700;letter-spacing:.05em;
  color:#111;text-align:center;line-height:1.1;
}
.ke-goby-lbl{font-size:7px;color:#666;margin-bottom:1mm;text-transform:none;}
.ke-goby-num{font-size:22px;font-weight:800;color:#111;line-height:1;}

.ke-goby-barcode-wrap{
  flex:0 0 auto;padding:1mm 2mm 0.8mm;
  display:flex;align-items:flex-end;justify-content:center;
  min-height:12mm;
}
.ke-goby-barcode-wrap svg.ke-bc{width:100%;max-width:100%;height:auto;}

.ke-goby-right{
  flex:1;display:flex;flex-direction:column;min-width:0;background:#fff;
}
.ke-goby-photo{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:2mm;overflow:hidden;min-height:0;
}
.ke-goby-photo img{
  max-width:100%;max-height:100%;object-fit:contain;
  transform:scale(1.05);transform-origin:center center;
}
.ke-goby-ph{font-size:7px;color:#aaa;}
.ke-goby-band{
  flex:0 0 8mm;background:#b91c1c;color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;letter-spacing:.25em;
}
.ke-brand-calceo .ke-goby-band{background:#1e3a5f;}
.ke-brand-calceo .ke-goby-logo{color:#1e3a5f;}

/* —— A4 batch grid (ayarlanabilir kenar + aralık) —— */
.ke-batch-wrap{padding:0;}
.ke-a4-sheet{
  width:210mm;height:297mm;box-sizing:border-box;
  background:#fff;margin:0 auto 16px;
  border:1px dashed var(--border);box-shadow:var(--shadow-md);
  page-break-after:always;page-break-inside:avoid;
  overflow:hidden;
  display:flex;flex-direction:column;
}
.ke-sheet-pgnum{
  flex:0 0 4mm;height:4mm;
  display:flex;align-items:center;justify-content:center;
  font-size:7px;color:rgba(0,0,0,.38);
  font-family:Arial,sans-serif;letter-spacing:.04em;line-height:1;
  background:#fff;
}
.ke-sheet-pgnum-top{border-bottom:0.3mm solid #e0e0e0;}
.ke-sheet-pgnum-bot{border-top:0.3mm solid #e0e0e0;}
.ke-a4-grid{
  flex:1 1 0;min-height:0;
  width:100%;box-sizing:border-box;
  padding:var(--ke-pad-top,0mm) var(--ke-pad-right,0mm) var(--ke-pad-bottom,0mm) var(--ke-pad-left,0mm);
  display:grid;
  grid-template-columns:repeat(var(--ke-cols,2),1fr);
  grid-template-rows:repeat(var(--ke-rows,5),1fr);
  gap:var(--ke-gap,0.5mm);
}
.ke-label-cell{
  box-sizing:border-box;border:1px solid #bbb;
  padding:0;overflow:hidden;
  min-width:0;min-height:0;
  position:relative;
}
.ke-label-cell .ke-goby-label{min-height:0;height:100%;}
.ke-label-cell .ke-goby-barcode-wrap{
  min-height:0;max-height:18mm;overflow:hidden;
  padding:0.5mm 1.5mm 0.3mm;flex:0 0 auto;
}
.ke-label-cell .ke-goby-barcode-wrap svg.ke-bc{
  display:block;width:100%;max-width:100%;
  max-height:17mm;height:auto;
}
.ke-label-cell .ke-goby-logo{font-size:13px;}
.ke-label-cell .ke-goby-code{font-size:17.5px;}
.ke-label-cell .ke-goby-made-text{font-size:11px;letter-spacing:.06em;}
.ke-label-cell .ke-goby-made{flex:0 0 3.6mm;}
.ke-label-cell .ke-goby-num{font-size:16px;}
.ke-label-cell .ke-goby-size-eur .ke-goby-num,
.ke-label-cell .ke-goby-size-us .ke-goby-num{font-size:30px;}
.ke-label-cell .ke-goby-lbl{font-size:6.5px;}
.ke-label-cell .ke-goby-sep{font-size:6px;}
.ke-label-cell .ke-goby-band{font-size:9px;flex:0 0 6mm;}
.ke-label-cell .ke-goby-logo-img{max-height:8mm;}
/* Üst bilgi alanı sıkıştır — barkod için yer aç */
.ke-label-cell .ke-goby-brand-col{padding:0.7mm 0 0.5mm;}
.ke-label-cell .ke-goby-block-logo{padding:0 2mm 0.6mm;}
.ke-label-cell .ke-goby-size-eur{padding:0.7mm 2mm 0.4mm;}
.ke-label-cell .ke-goby-size-us{padding:0.4mm 2mm 0.7mm;}
.ke-no-image-box{margin-top:10px;}
.ke-ean-verify-box{
  margin:12px 16px 0;padding:12px 14px;
  border:1px solid var(--border);border-radius:8px;
  background:var(--surface2, #f8f9fb);
}
.ke-ean-verify-head{font-size:13px;margin-bottom:6px;line-height:1.45;}
.ke-ean-verify-note{font-size:12px;color:var(--ink3);margin:0 0 10px;line-height:1.4;}
.ke-ean-verify-table .ke-ean-mono{font-family:var(--mono, monospace);font-size:11px;}
.ke-ean-verify-table tr.ke-ean-ok td:last-child{color:var(--green);}
.ke-ean-verify-table tr.ke-ean-warn td{background:rgba(255,180,0,.06);}
.ke-ean-verify-table tr.ke-ean-err td{background:rgba(220,50,50,.08);}
.ke-label-empty{background:#fafafa;}
.ke-label-spacer{
  display:flex;align-items:center;justify-content:center;
  background:#f4f4f4;
}
.ke-kategori-spacer-title{
  font-size:22px;font-weight:800;text-align:center;
  color:#111;line-height:1.15;padding:3mm 4mm;
  word-break:break-word;hyphens:auto;
}
.ke-label-cell .ke-kategori-spacer-title{font-size:20px;}

/* —— Tekil önizleme —— */
.ke-print-area{display:flex;justify-content:center;padding:24px 0;}
.ke-label-sheet{
  width:105mm;height:59.4mm;
  background:#fff;border:1px dashed var(--border);
  box-shadow:var(--shadow-md);overflow:hidden;
}
.ke-label-sheet .ke-goby-label{min-height:59.4mm;}
.ke-label-sheet--ogobongo .ke-ogo-label{min-height:100%;}

@media print{
  @page{size:A4 portrait;margin:0;}
  .no-print{display:none!important;}
  body *{visibility:hidden;}
  body.ke-batch-printing #ke-batch-print,
  body.ke-batch-printing #ke-batch-print *{visibility:visible;}
  body.ke-batch-printing #ke-batch-print{
    position:absolute;left:0;top:0;width:100%;padding:0;margin:0;
  }
  body:not(.ke-batch-printing) #ke-single-print,
  body:not(.ke-batch-printing) #ke-single-print *{visibility:visible;}
  body:not(.ke-batch-printing) #ke-single-print{
    position:absolute;left:0;top:0;width:100%;padding:0;
  }
  body.ke-batch-printing #ke-single-print{display:none!important;}
  .ke-a4-sheet{
    border:none;box-shadow:none;margin:0;
    page-break-after:always;width:210mm;height:297mm;
    overflow:hidden;
    display:flex;flex-direction:column;
  }
  .ke-sheet-pgnum{
    flex:0 0 4mm;height:4mm;
    display:flex;align-items:center;justify-content:center;
    font-size:7pt;color:rgba(0,0,0,.35);
    font-family:Arial,sans-serif;letter-spacing:.04em;line-height:1;
    background:#fff;
  }
  .ke-sheet-pgnum-top{border-bottom:0.3mm solid #ddd;}
  .ke-sheet-pgnum-bot{border-top:0.3mm solid #ddd;}
  .ke-a4-grid{
    flex:1 1 0;min-height:0;
    padding:var(--ke-pad-top,0mm) var(--ke-pad-right,0mm) var(--ke-pad-bottom,0mm) var(--ke-pad-left,0mm);
    gap:var(--ke-gap,0.5mm);
    grid-template-columns:repeat(var(--ke-cols,2),1fr);
    grid-template-rows:repeat(var(--ke-rows,5),1fr);
    width:100%;box-sizing:border-box;
  }
  .ke-a4-sheet.ke-koli-sheet .ke-a4-grid{
    height:calc(297mm - 8mm);
    max-height:calc(297mm - 8mm);
  }
  .ke-a4-sheet.ke-kategori-start{
    page-break-before:always;
  }
  .ke-batch-wrap > .ke-a4-sheet:first-child.ke-kategori-start{
    page-break-before:auto;
  }
  .ke-label-cell{border-color:#999;}
  .ke-label-sheet{border:none;box-shadow:none;}
}
