/* Hizmet Fiyat Listesi Oluşturucu — yalnız bu araca özel (araclar/hizmet-fiyat-listesi-olusturucu.php)
 * Ortak css/araclar.css'e dokunmaz; tüm kurallar .fl- önekli. Monokrom dil. */

/* overflow-x: hidden önizlemenin sticky'sini bozuyordu; .arac-wrap zaten clip ile taşmayı kesiyor */
.fl-arac { overflow-x: clip; }
.fl-arac [hidden] { display: none !important; }
.fl-arac *, .fl-arac *::before, .fl-arac *::after, #fl-baski * { box-sizing: border-box; } /* embed modunda ust.php'nin genel kuralı yok */
.fl-arac input.fl-gecersiz { border-color: #c0392b !important; }

/* Düzenleyici geniş: sayfa rayı 1320px (diğer araçlar 1080px) */
.fl-arac::before { width: min(1320px, 100%); }
.fl-arac .arac-breadcrumb, .fl-arac .arac-head, .fl-arac .fl-inner, .fl-arac .arac-faq, .fl-arac .arac-related { max-width: 1320px; }
.fl-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 28px; align-items: start; }
.fl-grid > * { min-width: 0; }
@media (max-width: 960px) { .fl-grid { grid-template-columns: minmax(0, 1fr); } }

.fl-kutu { background: #ffffff; border: 1px solid #ebebea; border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.fl-kutu-baslik { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 0 0 12px; color: #141414; }
.fl-kutu-baslik span { width: 24px; height: 24px; border-radius: 50%; background: #141414; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; flex: 0 0 auto; }
.fl-ipucu { font-size: .8rem; color: #6b6b6b; margin: 0 0 12px; line-height: 1.5; }
.fl-uyari { font-size: .8rem; color: #1f1f1f; background: #f6f6f5; border: 1px solid #dcdcdb; border-left: 3px solid #141414; border-radius: 8px; padding: 9px 12px; margin: 10px 0 0; line-height: 1.5; }
.fl-hata { font-size: .8rem; color: #b42318; margin: 8px 0 0; }

.fl-arac textarea { width: 100%; box-sizing: border-box; background: #ffffff; border: 1px solid #dcdcdb; color: #141414; border-radius: 10px; padding: 11px 13px; font-family: inherit; font-size: .95rem; resize: vertical; outline: none; }
.fl-arac .arac-field input[type="tel"], .fl-arac .arac-field input[type="url"] { width: 100%; box-sizing: border-box; background: #ffffff; border: 1px solid #dcdcdb; color: #141414; border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: .95rem; outline: none; }
.fl-arac input, .fl-arac textarea { font-size: 16px; } /* iOS zoom önleme */

.fl-sablonlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fl-sablonlar button { background: #ffffff; border: 1px solid #dcdcdb; color: #3d3d3d; border-radius: 10px; padding: 10px; font-family: inherit; font-size: .84rem; text-align: left; cursor: pointer; display: flex; gap: 8px; align-items: center; min-width: 0; }
.fl-sablonlar button i { width: 16px; text-align: center; color: #141414; }
.fl-sablonlar button:hover, .fl-sablonlar button.active { border-color: #141414; color: #141414; }

.fl-logo-satir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fl-logo-satir input[type=file] { flex: 1 1 180px; min-width: 0; font-size: .8rem; color: #6b6b6b; }
.fl-mini-btn { background: #ffffff; border: 1px solid #dcdcdb; color: #474747; border-radius: 8px; padding: 7px 10px; font-size: .8rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.fl-mini-btn:hover { border-color: #141414; color: #141414; }
.fl-tam { width: 100%; justify-content: center; margin-top: 6px; }

.fl-segment { display: flex; flex-wrap: wrap; }
.fl-segment button { flex: 1 1 auto; }

.fl-onay { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #3d3d3d; margin: 0 0 12px; cursor: pointer; line-height: 1.45; }
.fl-onay input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #141414; }
.fl-onay .hint { color: #8c8c8c; font-size: .78rem; }

/* Kategori + satır editörü */
.fl-kat { border: 1px solid #dcdcdb; border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fafaf9; }
.fl-kat-ust { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.fl-kat-ust input { flex: 1 1 auto; min-width: 0; background: #ffffff; border: 1px solid #dcdcdb; color: #141414; border-radius: 8px; padding: 9px 11px; font-weight: 700; font-family: inherit; outline: none; }
.fl-ikon-btn { flex: 0 0 auto; width: 34px; height: 34px; background: #ffffff; border: 1px solid #dcdcdb; color: #6b6b6b; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.fl-ikon-btn:hover { color: #141414; border-color: #141414; }
.fl-ikon-btn:disabled { opacity: .35; cursor: default; }
.fl-satir { border-top: 1px dashed #dcdcdb; padding: 10px 0 2px; }
.fl-satir-izgara { display: grid; grid-template-columns: minmax(0, 1fr) 92px 104px; gap: 6px; }
.fl-satir input { min-width: 0; width: 100%; box-sizing: border-box; background: #ffffff; border: 1px solid #dcdcdb; color: #141414; border-radius: 8px; padding: 9px 10px; font-family: inherit; outline: none; }
.fl-satir input:focus, .fl-kat-ust input:focus { border-color: #141414; }
.fl-satir .fl-aciklama { margin-top: 6px; font-size: 14px; color: #474747; }
.fl-satir-alt { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.fl-satir-ekle { width: 100%; margin-top: 8px; background: transparent; border: 1px dashed #cfcfcf; color: #474747; border-radius: 8px; padding: 9px; cursor: pointer; font-family: inherit; font-size: .85rem; }
.fl-satir-ekle:hover { border-color: #141414; color: #141414; }
@media (max-width: 420px) {
  .fl-satir-izgara { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fl-satir-izgara .fl-hizmet-ad { grid-column: 1 / -1; }
  .fl-kutu { padding: 16px 14px; }
}

.fl-taslak-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.fl-taslak-satir .fl-ipucu { margin: 0; }

/* Önizleme */
/* Masaüstünde önizleme kaydırmayı takip eder; ekrandan uzun kâğıt kendi içinde kayar, eylem düğmeleri hep görünür */
.fl-onizleme {
  position: sticky; top: 124px; max-height: calc(100vh - 140px); display: flex; flex-direction: column;
  background: #ffffff; border: 1px solid #ebebea; border-radius: 16px; padding: 16px;
}
.fl-onizleme .fl-kagit-cerceve { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.fl-onizleme .fl-onizleme-ust, .fl-onizleme .fl-eylemler, .fl-onizleme .fl-pdf-ipucu { flex: 0 0 auto; }
@media (max-width: 960px) {
  .fl-onizleme { position: static; max-height: none; display: block; }
  .fl-onizleme .fl-kagit-cerceve { overflow: hidden; }
}
.fl-onizleme-ust { display: flex; justify-content: center; margin-bottom: 12px; }
.fl-kagit-cerceve { background: #ededec; border-radius: 10px; padding: 14px; overflow: hidden; }
.fl-eylemler { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fl-eylemler .arac-btn { flex: 1 1 220px; justify-content: center; }
.fl-pdf-ipucu { margin: 10px 0 0; }
@media (max-width: 480px) { .fl-onizleme { padding: 12px 10px; } .fl-kagit-cerceve { padding: 8px; } }

/* ===== Kâğıt: fiyat listesi (önizleme + baskı ortak) ===== */
.fl-sayfa { background: #fff; color: #111; max-width: 794px; margin: 0 auto; padding: 44px 46px; border-radius: 4px; font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 13.5px; line-height: 1.45; box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; overflow-wrap: anywhere; }
@media (max-width: 480px) { .fl-sayfa { padding: 24px 18px; font-size: 12.5px; } }
.fl-s-ust { text-align: center; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid #111; }
.fl-s-logo { display: block; max-height: 74px; max-width: 220px; margin: 0 auto 10px; object-fit: contain; }
.fl-s-ad { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: .2px; color: #111; line-height: 1.2; }
.fl-s-slogan { font-size: 13px; color: #555; margin-top: 4px; letter-spacing: 1.5px; text-transform: uppercase; }
.fl-s-govde.iki { column-count: 2; column-gap: 34px; }
.fl-s-kat { margin: 0 0 20px; break-inside: avoid-column; }
.fl-s-govde:not(.iki) .fl-s-kat { break-inside: auto; }
.fl-s-kat-ad { font-size: 15px; font-weight: 800; margin: 0 0 8px; letter-spacing: 1px; text-transform: uppercase; break-after: avoid; color: #111; }
.fl-s-satir { padding: 6px 0; break-inside: avoid; }
.fl-s-satir-ust { display: flex; align-items: baseline; gap: 8px; }
.fl-s-h-ad { font-weight: 600; min-width: 0; }
.fl-s-lider { flex: 1 1 auto; min-width: 14px; border-bottom: 1.5px dotted #9a9a9a; transform: translateY(-3px); }
.fl-s-sure { color: #666; font-size: .9em; white-space: nowrap; }
.fl-s-fiyat { font-weight: 800; white-space: nowrap; }
.fl-s-fiyat.bos { color: #b5b5b5; font-weight: 600; }
.fl-s-acik { color: #555; font-size: .88em; margin-top: 1px; padding-right: 70px; }
.fl-s-alt { margin-top: 24px; padding-top: 14px; border-top: 1px solid #ccc; text-align: center; font-size: 12px; color: #333; break-inside: avoid; }
.fl-s-iletisim { white-space: pre-line; margin-bottom: 6px; }
.fl-s-not { font-weight: 600; margin-bottom: 6px; }
.fl-s-yasal { color: #444; }
.fl-s-imza { margin-top: 10px; font-size: 9.5px; color: #9a9a9a; }
.fl-s-bos { text-align: center; color: #999; padding: 40px 0; }

/* Tasarım: Klasik (serif başlıklar) */
.fl-g-klasik .fl-s-ad, .fl-g-klasik .fl-s-kat-ad { font-family: Georgia, "Times New Roman", serif; }
.fl-g-klasik .fl-s-ad { font-weight: 700; font-size: 30px; }
.fl-g-klasik .fl-s-kat-ad { font-weight: 700; text-transform: none; letter-spacing: .3px; font-size: 18px; text-align: center; }
.fl-g-klasik .fl-s-kat-ad::before, .fl-g-klasik .fl-s-kat-ad::after { content: "—"; color: #999; margin: 0 8px; }
.fl-g-klasik .fl-s-ust { border-bottom: 1px solid #111; box-shadow: 0 3px 0 -1px #fff, 0 4px 0 -1px #111; }

/* Tasarım: Modern (siyah kategori şeridi) */
.fl-g-modern .fl-s-ust { text-align: left; display: flex; align-items: center; gap: 18px; border-bottom: 6px solid #111; }
.fl-g-modern .fl-s-logo { margin: 0; max-height: 64px; max-width: 160px; }
.fl-g-modern .fl-s-ad { font-size: 28px; text-transform: uppercase; letter-spacing: .5px; }
.fl-g-modern .fl-s-kat-ad { background: #111; color: #fff; padding: 6px 10px; font-size: 12.5px; letter-spacing: 2px; }
.fl-g-modern .fl-s-lider { border-bottom: 1px solid #ddd; }
.fl-g-modern .fl-s-satir { border-bottom: 1px solid #eee; }
.fl-g-modern .fl-s-alt { text-align: left; border-top: 3px solid #111; }

/* Tasarım: Sade (ince, ferah, lidersiz) */
.fl-g-sade .fl-s-ust { border-bottom: 1px solid #ddd; }
.fl-g-sade .fl-s-ad { font-weight: 600; font-size: 24px; letter-spacing: 3px; text-transform: uppercase; }
.fl-g-sade .fl-s-kat-ad { font-weight: 600; font-size: 11.5px; letter-spacing: 3px; color: #777; border-bottom: 1px solid #e5e5e5; padding-bottom: 6px; }
.fl-g-sade .fl-s-lider { border-bottom-color: transparent; }
.fl-g-sade .fl-s-h-ad { font-weight: 500; }
.fl-g-sade .fl-s-fiyat { font-weight: 600; }
.fl-g-sade .fl-s-alt { border-top-color: #e5e5e5; }

/* ===== Kâğıt: QR kart ===== */
.fl-qr-kart { background: #fff; color: #111; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 4px; padding: 26px 24px 20px; box-sizing: border-box; text-align: center; font-family: Inter, "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fl-q-logo { display: block; max-height: 56px; max-width: 170px; margin: 0 auto 8px; object-fit: contain; }
.fl-q-ad { font-size: 20px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.fl-q-baslik { font-size: 13px; color: #333; margin: 0 0 14px; font-weight: 600; letter-spacing: .3px; }
.fl-q-kod { width: 74%; max-width: 230px; margin: 0 auto; }
.fl-q-kod svg { display: block; width: 100%; height: auto; }
.fl-q-bos { aspect-ratio: 1; border: 2px dashed #ccc; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; padding: 12px; box-sizing: border-box; }
.fl-q-hedef { margin-top: 12px; font-size: 12px; color: #333; font-weight: 600; }
.fl-q-hedef i { margin-right: 4px; }
.fl-q-imza { margin-top: 10px; font-size: 9px; color: #9a9a9a; }

/* ===== Baskı ===== */
#fl-baski { display: none; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { background: #fff !important; }
  body.fl-yazdiriliyor > *:not(#fl-baski) { display: none !important; }
  body.fl-yazdiriliyor #fl-baski { display: block !important; }
  #fl-baski .fl-sayfa { max-width: none; width: auto; padding: 0; margin: 0; border-radius: 0; font-size: 10.5pt; box-shadow: none; }
  #fl-baski .fl-s-ad { font-size: 22pt; }
  #fl-baski .fl-qr-sayfa { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 0; }
  #fl-baski .fl-qr-sayfa.tek { padding-top: 20mm; }
  #fl-baski .fl-qr-sayfa .fl-qr-kart { width: 92mm; max-width: none; height: 128mm; margin: 0; padding: 9mm 7mm 6mm; border: 0.3mm dashed #999; border-radius: 0; display: flex; flex-direction: column; justify-content: center; break-inside: avoid; }
  #fl-baski .fl-qr-sayfa.tek .fl-qr-kart { width: 105mm; height: 148mm; }
  #fl-baski .fl-q-kod { width: 62mm; max-width: none; }
  #fl-baski .fl-qr-sayfa.tek .fl-q-kod { width: 72mm; }
}

/* CTA */
.fl-cta .fl-cta-linkler { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.fl-cta-sektor { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: 22px; line-height: 1.7; }
.fl-cta-sektor a { color: #fff; text-underline-offset: 3px; }
