/* Genya Kesim — bağımsız temel stiller (tema ne olursa olsun çalışır) */
.genya-kesim{--paper:#f7f5f1;--ink:#191713;--muted:#7a746b;--line:#e9e5de;--line-dark:#d9d3c9;--accent:#171717;--disp:"Bricolage Grotesque",system-ui,sans-serif;--body:"Figtree",system-ui,sans-serif;--r:14px;--pad:clamp(20px,3.4vw,48px);font-family:var(--body);color:var(--ink)}
.genya-kesim .wrap{max-width:none;margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.genya-kesim .field label{display:block;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.genya-kesim .field select,.genya-kesim .field input,.genya-kesim .field textarea{width:100%;background:#fff;border:1.5px solid var(--line-dark);border-radius:11px;padding:12px 13px;font-size:15px;font-weight:600;font-family:inherit;color:inherit}
.genya-kesim .field select:hover,.genya-kesim .field input:hover{border-color:var(--accent)}
.genya-kesim .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--ink);color:#fff;border:none;border-radius:9999px;padding:13px 24px;font-size:14.5px;font-weight:700;cursor:pointer;font-family:inherit}
.genya-kesim .btn-line{background:transparent;color:var(--ink);border:1.5px solid var(--line-dark)}
.genya-kesim .btn-wa{background:var(--ink)}
.genya-kesim .count-line{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:18px}
.genya-kesim button{font:inherit;background:none;border:none;cursor:pointer;color:inherit}

/* ============ KESİM OPTİMİZASYONU ============ */
.cut-wrap{display:grid;grid-template-columns:minmax(340px,430px) minmax(0,1fr);gap:clamp(20px,2.5vw,36px);align-items:start}
.cut-form{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.cut-sec{padding:20px 22px;border-top:1px solid var(--line)}
.cut-sec:first-child{border-top:none}
.cut-sec > h3{
  font-family:var(--disp);font-weight:700;font-size:16px;margin-bottom:14px;
  display:flex;align-items:center;gap:10px;
}
.cut-sec > h3 .no{
  width:24px;height:24px;border-radius:50%;background:var(--ink);color:#fff;flex:none;
  display:grid;place-items:center;font-size:12px;font-weight:700;font-family:var(--body);
}
.cut-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cut-grid2 .field,.cut-sec .field{margin-bottom:10px}
.cut-adv{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cut-custom{display:none}
.cut-custom.show{display:grid}
/* parça satırları */
.cut-cols{
  display:grid;grid-template-columns:1fr 1fr 58px 64px 34px 26px;gap:7px;align-items:center;
  font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
  padding:0 2px 7px;
}
.cut-row{
  display:grid;grid-template-columns:1fr 1fr 58px 64px 34px 26px;gap:7px;align-items:center;
  padding:6px 2px 6px 8px;border-radius:9px;margin-bottom:5px;
  border-left:4px solid var(--line);background:var(--paper);
}
.cut-row input{
  width:100%;background:#fff;border:1.5px solid var(--line-dark);border-radius:8px;
  padding:8px 8px;font-size:14px;font-weight:600;min-width:0;
}
.cut-row input:focus{border-color:var(--accent);outline:none}
.cut-row input:hover{border-color:var(--accent)}
.cut-row input::-webkit-outer-spin-button,.cut-row input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cut-row input[type=number]{-moz-appearance:textfield;appearance:textfield}
.cut-del{
  width:26px;height:26px;border-radius:7px;color:var(--muted);display:grid;place-items:center;
  font-size:15px;line-height:1;transition:background .15s,color .15s;
}
.cut-del:hover{background:#eee3dd;color:#8c3b25}
/* kenar bandı seçici — mini plaka */
.edgepick{
  position:relative;width:58px;height:40px;margin:0 auto;border-radius:6px;
  background:#fff;border:1.5px solid var(--line-dark);
}
.edgepick .eg{position:absolute;padding:0;border-radius:3px;background:var(--line-dark);transition:background .15s,box-shadow .15s}
.edgepick .eg:hover{background:var(--muted)}
.edgepick .eg[aria-pressed="true"]{background:var(--ink);box-shadow:0 0 0 1.5px rgba(23,23,23,.18)}
.edgepick .eg.t{top:3px;left:11px;right:11px;height:5px}
.edgepick .eg.b{bottom:3px;left:11px;right:11px;height:5px}
.edgepick .eg.l{left:3px;top:9px;bottom:9px;width:5px}
.edgepick .eg.r{right:3px;top:9px;bottom:9px;width:5px}
/* damar kilidi */
.rotbtn{
  width:34px;height:34px;border-radius:8px;border:1.5px solid var(--line-dark);background:#fff;
  display:grid;place-items:center;color:var(--muted);transition:all .15s;margin:0 auto;
}
.rotbtn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rotbtn .i-lock{display:none}
.rotbtn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.rotbtn[aria-pressed="true"] .i-lock{display:block}
.rotbtn[aria-pressed="true"] .i-rot{display:none}
.cut-rowbtns{display:flex;gap:8px;margin-top:8px;align-items:stretch}
.cut-addrow{
  flex:1;padding:11px;border-radius:10px;border:1.5px dashed var(--line-dark);
  font-weight:700;font-size:13.5px;color:#4d473f;transition:all .15s;
}
.cut-clear{
  padding:11px 14px;border-radius:10px;font-weight:600;font-size:12.5px;color:var(--muted);
  transition:all .15s;
}
.cut-clear:hover{background:#eee3dd;color:#8c3b25}
.cut-addrow:hover{border-color:var(--accent);color:var(--ink);background:var(--paper)}
.cut-mini{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.5}
.cut-actions{display:grid;gap:9px;margin-top:4px}
.cut-actions .btn{width:100%;justify-content:center}
/* sonuç paneli */
.cut-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
.cut-stat{
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px 13px;
}
.cut-stat b{font-family:var(--disp);font-weight:800;font-size:clamp(21px,1.9vw,27px);display:block;letter-spacing:-.02em}
.cut-stat b small{font-size:.55em;font-weight:700;color:var(--muted);letter-spacing:0}
.cut-stat span{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.cut-warn{
  display:none;background:#f6ece5;border:1px solid #e4cdbc;border-radius:12px;
  padding:13px 16px;font-size:13.5px;font-weight:600;color:#7c452c;margin-bottom:16px;
}
.cut-warn.show{display:block}
.cut-sheets{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:14px}
@media(max-width:700px){.cut-sheets{grid-template-columns:1fr}}
.cut-sheet{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0}
/* parça lejantı */
.cut-legend ul{display:flex;flex-direction:column;gap:2px}
.cut-legend li{
  display:grid;grid-template-columns:14px 1fr auto;gap:10px;align-items:center;
  padding:8px 6px;border-bottom:1px solid var(--line);font-size:13.5px;
}
.cut-legend li:last-child{border-bottom:none}
.cut-legend .lg-dot{width:14px;height:14px;border-radius:4px;border:1px solid rgba(25,23,19,.3)}
.cut-legend .lg-dim{font-weight:700}
.cut-legend .lg-dim small{font-weight:600;color:var(--muted);margin-left:6px;font-size:11.5px}
.cut-legend .lg-qty{font-weight:700;font-size:12.5px;color:var(--muted);white-space:nowrap}
.cut-legend .lg-meta{
  margin-top:10px;padding-top:10px;border-top:1.5px solid var(--line);
  font-size:12px;color:var(--muted);line-height:1.7;
}
.cut-legend .lg-meta b{color:var(--ink);font-weight:700}
.cut-sheet h4{
  display:flex;justify-content:space-between;align-items:baseline;gap:8px;
  font-family:var(--disp);font-weight:700;font-size:14.5px;margin-bottom:10px;
}
.cut-sheet h4 i{font-style:normal;font-size:11.5px;font-weight:600;color:var(--muted)}
.cut-sheet svg{width:100%;height:auto;display:block;border-radius:6px}
.cut-empty{
  background:#fff;border:1.5px dashed var(--line-dark);border-radius:var(--r);
  padding:52px 26px;text-align:center;color:var(--muted);font-weight:600;font-size:14.5px;
}
.cut-note{font-size:12.5px;color:var(--muted);margin-top:16px;max-width:70ch}
/* sağ kolon form kartıyla aynı boya yayılır: plan ortalanır, not alta oturur */
.cut-wrap > div:last-child{align-self:stretch;display:flex;flex-direction:column}
#k-emptybox{flex:1;display:grid;place-items:center}
#k-emptybox[hidden]{display:none}
#k-out{flex:1;display:flex;flex-direction:column}
#k-out .cut-sheets{margin-top:auto;padding-top:14px}
#k-out .cut-note{margin-top:auto;padding-top:16px}
@media(max-width:1060px){
  #k-out .cut-sheets,#k-out .cut-note{margin-top:0}
  #k-out .cut-sheets{padding-top:0}
}
/* gönderim şeridi — tam genişlik, form kartının altında */
.cut-send{
  background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:18px 22px;margin-top:14px;
  display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(220px,1.35fr) auto auto;
  gap:14px;align-items:end;
}
.cut-send .cs-head{align-self:center}
.cut-send .cs-head h3{
  font-family:var(--disp);font-weight:700;font-size:16px;margin-bottom:4px;
  display:flex;align-items:center;gap:10px;
}
.cut-send .cs-head h3 .no{
  width:24px;height:24px;border-radius:50%;background:var(--ink);color:#fff;flex:none;
  display:grid;place-items:center;font-size:12px;font-weight:700;font-family:var(--body);
}
.cut-send .cs-head small{display:block;font-size:11.5px;color:var(--muted);line-height:1.45;max-width:30ch}
.cut-send .field{margin-bottom:0}
.cut-send .btn{white-space:nowrap;margin-bottom:2px}
@media(max-width:1200px){
  .cut-send{grid-template-columns:1fr 1fr}
  .cut-send .cs-head{grid-column:1/-1}
  .cut-send .cs-head small{max-width:none}
}
@media(max-width:640px){
  .cut-send{grid-template-columns:1fr}
  .cut-send .btn{width:100%;justify-content:center}
}
/* nasıl çalışır bandı */
.cut-how{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:clamp(30px,4vw,48px)}
.cut-how div{
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;
  font-size:13.5px;color:#57514a;display:flex;gap:12px;align-items:flex-start;
}
.cut-how b{font-family:var(--disp);color:var(--ink);display:block;font-size:14.5px;margin-bottom:2px}
.cut-how .no{
  width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--ink);
  display:grid;place-items:center;font-size:12px;font-weight:800;flex:none;margin-top:2px;
}
@media(max-width:1060px){
  .cut-wrap{grid-template-columns:1fr}
  .cut-how{grid-template-columns:1fr;gap:8px}
}
@media(max-width:560px){
  .cut-stats{grid-template-columns:repeat(2,1fr)}
  .cut-cols{grid-template-columns:1fr 1fr 42px 54px 32px 26px;font-size:9.5px;letter-spacing:.04em}
  .cut-row{grid-template-columns:1fr 1fr 42px 54px 32px 26px;gap:4px;padding-left:6px}
  .cut-row input{padding:8px 6px;font-size:13.5px}
  .edgepick{width:54px;height:38px}
  .rotbtn{width:32px;height:32px}
  .rotbtn svg{width:14px;height:14px}
  .cut-grid2,.cut-adv{grid-template-columns:1fr 1fr}
}
/* ---- A4 PDF raporu (yalnız yazdırmada görünür) ---- */
#print-rep{display:none}
@media print{
  @page{size:A4;margin:11mm}
  body > *:not(#print-rep){display:none!important}
  #print-rep{display:block;font-family:var(--body);color:#191713}
  #print-rep .pr-head{
    display:flex;justify-content:space-between;align-items:center;gap:16px;
    border-bottom:2.5px solid #171717;padding-bottom:10px;margin-bottom:14px;
  }
  #print-rep .pr-head img{height:34px;width:auto}
  #print-rep .pr-head .ttl{text-align:right}
  #print-rep .pr-head .ttl b{font-family:var(--disp);font-size:19px;display:block;letter-spacing:-.01em}
  #print-rep .pr-head .ttl span{font-size:11px;color:#7a746b}
  #print-rep .pr-meta{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:11.5px;margin-bottom:12px}
  #print-rep .pr-meta b{font-weight:700}
  #print-rep .pr-stats{display:flex;gap:10px;margin-bottom:14px}
  #print-rep .pr-stats div{flex:1;border:1px solid #d9d3c9;border-radius:8px;padding:8px 10px;text-align:center}
  #print-rep .pr-stats b{font-family:var(--disp);font-size:17px;display:block}
  #print-rep .pr-stats span{font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:#7a746b;font-weight:700}
  #print-rep table{width:100%;border-collapse:collapse;font-size:11px;margin-bottom:16px}
  #print-rep th{
    text-align:left;font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;color:#7a746b;
    border-bottom:1.5px solid #171717;padding:5px 7px;
  }
  #print-rep td{border-bottom:1px solid #e9e5de;padding:5px 7px;font-weight:500}
  #print-rep td .dot{display:inline-block;width:9px;height:9px;border-radius:2.5px;margin-right:6px;vertical-align:-1px;border:1px solid rgba(25,23,19,.3)}
  #print-rep h3{font-family:var(--disp);font-size:14px;margin:14px 0 8px;page-break-after:avoid}
  #print-rep .pr-sheet{page-break-inside:avoid;margin-bottom:12px;max-width:150mm}
  #print-rep .pr-sheet h4{font-size:11.5px;font-weight:700;margin-bottom:5px;display:flex;justify-content:space-between}
  #print-rep .pr-sheet h4 i{font-style:normal;color:#7a746b;font-weight:600}
  #print-rep .pr-sheet svg{width:100%;height:auto;border:1px solid #d9d3c9;border-radius:4px}
  #print-rep .pr-foot{
    margin-top:14px;border-top:1px solid #d9d3c9;padding-top:8px;
    font-size:10px;color:#7a746b;display:flex;justify-content:space-between;gap:14px;
  }
}
