/* ============================================================
   LENO — "rail + workspace" TASARIM STANDARDI
   Araç sayfalarının ortak kabuğu: 380px sol ray + geniş çalışma alanı.

   KULLANIM (sıra önemli — theme.css'ten SONRA gelmeli ki onun
   !important generic kurallarını ezebilsin):
     <link rel="stylesheet" href="/theme.css">
     <link rel="stylesheet" href="/shared/tokens.css">
     <link rel="stylesheet" href="/shared/components.css">
     <link rel="stylesheet" href="/leno-rail.css">
     <style> ...sayfaya özel...  </style>

   İskelet:
     <div class="nav">…</div>            ← theme.css gizler, nav-shim üst barı basar
     <div class="leno-uyg">
       <aside class="leno-rail"> … </aside>
       <main  class="leno-ana">  … </main>
     </div>

   Palet: zemin #F3ECE0 · ana #FBF6EA · ray #FCF8EE · kart #FFFDF8
          kenar #EFE6D5 · input #E3D7C1 · metin #3D3226 · primary #8A3B1A
          altın #C99A4A · koyu #2F2A24
   Kontrast: işlevsel metinler (form etiketi, bölüm başlığı, tablo başlığı)
   WCAG AA (≥4.5) sağlar — etiket #7A6C57, başlık #7A6838, th #6A5D4A.
   ============================================================ */

*{box-sizing:border-box;margin:0;padding:0}
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes lspin{to{transform:rotate(360deg)}}
@keyframes lpulse{0%,100%{opacity:1}50%{opacity:.45}}

body{font-family:'Figtree','Albert Sans',system-ui,-apple-system,"Segoe UI",sans-serif;background:#F3ECE0;color:#3D3226;min-height:100vh}

/* ── üst bar (fallback; theme.css .nav'ı gizler, nav-shim gerçek barı basar) ── */
.nav{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;background:#FFFDF8;border-bottom:1px solid #EFE6D5}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;color:#8A3B1A;cursor:pointer}
.logo-box{width:30px;height:30px;background:#8A3B1A;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}
.nav-btn{padding:8px 15px;border:1px solid #EFE6D5;border-radius:10px;background:transparent;color:#7A6A55;font-size:13px;cursor:pointer;font-family:inherit}

/* ── iki panel ── */
.leno-uyg{display:grid;grid-template-columns:380px 1fr;align-items:start;min-height:calc(100vh - 60px)}
.leno-rail{background:#FCF8EE;border-right:1px solid #EFE6D5;padding:22px 24px;position:sticky;top:60px;max-height:calc(100vh - 60px);overflow:auto}
.leno-ana{background:#FBF6EA;padding:20px 26px 34px;min-width:0;min-height:calc(100vh - 60px)}

/* ── ray öğeleri ── */
.rail-back{display:inline-flex;align-items:center;gap:6px;border:1px solid #E3D7C1;background:#fff;border-radius:10px;padding:7px 12px;font-size:13px;font-weight:600;color:#8A3B1A;margin-bottom:16px;cursor:pointer;text-decoration:none}
.rail-title{font-size:19px;font-weight:800;color:#3D3226;display:flex;align-items:center;gap:9px}
.rail-sub{font-size:13px;color:#7A6C57;line-height:1.5;margin:6px 0 20px}
.rail-lbl{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7A6838;margin:22px 0 10px}
.lbl-min{font-size:11px;font-weight:700;color:#7A6C57;text-transform:uppercase;letter-spacing:.04em;display:block;margin-bottom:5px}
.alan{margin-bottom:14px}

/* ── form ── */
.ltext{width:100%;padding:10px 12px;border:1px solid #E3D7C1;border-radius:10px;background:#fff;color:#3D3226;font-size:14px;font-family:inherit;outline:none}
.ltext:focus{border-color:#8A3B1A}
.seg{display:flex;background:#F2E9D8;border-radius:12px;padding:4px;gap:2px}
.seg button{flex:1;text-align:center;background:none;border:none;color:#6A5D4A;font-weight:600;font-size:13px;padding:9px;border-radius:9px;cursor:pointer;font-family:inherit}
.seg button.on{background:#fff;color:#8A3B1A;font-weight:700;box-shadow:0 2px 6px rgba(80,50,20,.08)}

/* ── butonlar ── */
.btn-primary{width:100%;background:#8A3B1A;color:#fff;border:none;border-radius:12px;padding:14px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:background .2s}
.btn-primary:hover:not(:disabled){background:#75300F}
.btn-primary:disabled{background:#E8DCC8;color:#A99E88;cursor:not-allowed}
.btn-ghost{width:100%;background:#fff;border:1px solid #E3D7C1;border-radius:11px;padding:11px;font-size:13px;font-weight:700;color:#A23B22;cursor:pointer;font-family:inherit}
.btn-ghost:hover{background:#F9E6E0}
.mini-btn{padding:8px 13px;border:1px solid #E3D7C1;border-radius:9px;background:#fff;color:#6A5D4A;font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.mini-btn:hover{border-color:#8A3B1A;color:#8A3B1A}

/* ── ana alan ── */
.ana-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.ana-title{font-size:20px;font-weight:800;color:#3D3226}
.blok-lbl{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7A6C57;margin-bottom:10px}
.lcard{background:#FFFDF8;border:1px solid #EFE6D5;border-radius:14px;padding:18px 20px;margin-bottom:16px;animation:fadeInUp .4s ease}
.lcard__title{font-size:14px;font-weight:800;color:#3D3226;margin-bottom:14px}

/* ── öne çıkan sonuç ── */
.highlight-box{background:#2F2A24;border-radius:16px;padding:22px 24px;margin-bottom:16px;animation:fadeInUp .4s ease}
.highlight-lbl{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#C99A4A}
.highlight-val{font-size:32px;font-weight:800;color:#FBF6EA;margin-top:4px}

/* ── boş durum / yükleniyor ── */
.empty-state{text-align:center;padding:52px 20px;color:#8B7F6C}
.empty-icon{font-size:42px;margin-bottom:12px}
.lspinner{width:42px;height:42px;border:3px solid #EFE6D5;border-top-color:#8A3B1A;border-radius:50%;animation:lspin 1s linear infinite;margin:0 auto 14px}

/* ── yükleme alanı ── */
.upload-zone{border:2px dashed #D9CBB2;border-radius:14px;padding:22px 16px;text-align:center;background:#FFFEF9;cursor:pointer;transition:all .2s}
.upload-zone:hover,.upload-zone.drag{border-color:#8A3B1A;background:#FBF6EA}
.upload-zone.has-file{border-style:solid;border-color:#8A3B1A;background:#FFF6EE}

/* ── tablo ── */
.table-wrap{overflow:auto;border:1px solid #EFE6D5;border-radius:12px}
.ltable{width:100%;border-collapse:collapse;font-size:12.5px}
.ltable th{padding:10px 12px;text-align:left;font-size:11px;font-weight:700;color:#6A5D4A;text-transform:uppercase;letter-spacing:.04em;background:#F7F0E2;border-bottom:1px solid #ECE1CC;white-space:nowrap}
.ltable td{padding:9px 12px;border-bottom:1px solid #F1E9D9;color:#3D3226}
.ltable tr:last-child td{border-bottom:none}
.ltable tr:hover td{background:#FBF6EA}
.num{font-family:'JetBrains Mono',ui-monospace,monospace;text-align:right}

/* ══ SABİT TASARIM — referans: tool-kdvbeyan.html (KDV-1) ══
   Aşağıdaki bileşenler o sayfada kanıtlandı; sayfa-içi kopyalanmasın diye
   buraya alındı. Yeni sınıf adları — mevcut sayfaları etkilemez. */

/* ── adım göstergesi ── */
.lsteps{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 auto 18px}
.lstep{display:inline-flex;align-items:center;gap:8px;background:#FFFDF8;border:1px solid #EFE6D5;border-radius:999px;padding:8px 15px 8px 8px;font-size:13px;font-weight:600;color:#6A5D4A;cursor:default}
.lstep .num{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#F2E9D8;color:#8A3B1A;font-size:11.5px;font-weight:800}
.lstep.on{background:#8A3B1A;border-color:#8A3B1A;color:#fff}
.lstep.on .num{background:#FFF6EE;color:#8A3B1A}
.lstep-ok{color:#C4B49A;font-size:13px}

/* ── hap sekmeler ── */
.ltabs{display:flex;gap:7px;flex-wrap:wrap;padding:14px 22px;background:#FCF8EE;border-bottom:1px solid #EFE6D5}
.ltab{background:#FFFDF8;border:1px solid #EFE6D5;border-radius:999px;padding:8px 15px;font-size:12.5px;font-weight:600;color:#6A5D4A;cursor:pointer;font-family:inherit;transition:all .2s}
.ltab:hover{border-color:#D9CBB2}
.ltab.on{background:#8A3B1A;border-color:#8A3B1A;color:#fff;font-weight:700}

/* ── belge kartı (form/beyanname gövdesi) ── */
.ldoc{background:#FFFDF8;border:1px solid #EFE6D5;border-radius:16px;overflow:hidden;max-width:1160px;margin:0 auto}
.ldoc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 22px;border-bottom:1px solid #EFE6D5}
.ldoc-head .ttl{flex:1;min-width:220px;text-align:center}
.ldoc-head .ttl b{display:block;font-size:16px;font-weight:800;color:#3D3226}
.ldoc-head .ttl span{font-size:13px;font-weight:600;color:#7A6C57}
.ldoc-head .kod{font-size:20px;font-weight:800;color:#8A3B1A}
.ldoc-body{padding:22px}

/* ── bölüm bandı + form ızgarası ── */
.lpanel{border:1px solid #EFE6D5;border-radius:12px;overflow:hidden;margin-bottom:16px}
.lpanel__title{background:#F7F0E2;color:#7A6838;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:10px 14px;display:flex;justify-content:space-between;align-items:center}
.lform{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;background:#FFFDF8}
.lform .genis{grid-column:1/-1}
.lfield label{display:block;font-size:11px;font-weight:700;color:#7A6C57;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
@media(max-width:700px){.lform{grid-template-columns:1fr}}

/* ── uyarı şeridi ── */
.lnote{background:#FBEEE0;border:1px solid #F0DCC4;border-radius:12px;padding:14px 16px;font-size:12.5px;line-height:1.6;color:#7A5A2E;max-width:1160px;margin:0 auto 16px}
.lnote b{color:#8A3B1A}

/* ── rozet ── */
.pill{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:12px;padding:5px 12px;border-radius:999px}
.pill-ok{background:#EEF4EC;color:#3F6B3A}
.pill-bad{background:#F9E6E0;color:#A23B22}
.pill-warn{background:#FBF1DD;color:#8A6320}

/* ── toast ── */
.toast{position:fixed;bottom:24px;right:24px;background:#2F2A24;color:#FBF6EA;padding:12px 18px;border-radius:11px;font-size:13px;z-index:500;opacity:0;transition:opacity .3s;pointer-events:none}
.toast.show{opacity:1}

/* ── responsive ── */
@media(max-width:1100px){
  .leno-uyg{grid-template-columns:1fr}
  .leno-rail{position:static;max-height:none;border-right:0;border-bottom:1px solid #EFE6D5}
}
@media(max-width:600px){
  .leno-ana{padding:16px 14px 28px}
  .leno-rail{padding:18px 16px}
  .highlight-val{font-size:26px}
}

/* ============================================================
   theme.css'in generic !important kurallarını geri al.
   (theme.css body/input/select/button/.card/th/td'yi !important ile eziyor;
   bu dosya ondan SONRA yüklendiği için aynı özgüllükte kazanır, ama
   !important'a !important gerekiyor.)
   ============================================================ */
body{background:#F3ECE0!important;color:#3D3226!important;font-family:'Figtree','Albert Sans',system-ui,-apple-system,"Segoe UI",sans-serif!important}
.ltext,input.ltext,select.ltext,textarea.ltext{border:1px solid #E3D7C1!important;border-radius:10px!important;background:#fff!important;color:#3D3226!important;font-family:inherit!important}
.btn-primary,.btn-ghost,.mini-btn,.seg button{font-family:inherit!important}
/* theme.css:579 seçiciyi `button.btn-primary` ile yazıyor (özgüllük 0,1,1) —
   sade `.btn-primary` (0,1,0) onu yenemiyordu, bu yüzden belgelenen 12px yerine
   theme'in 8px'i + gölgesi çiziliyordu. Öğe adıyla eşitlendi. */
.btn-primary,button.btn-primary{background:#8A3B1A!important;color:#fff!important;border:none!important;border-radius:12px!important;box-shadow:none!important;font-weight:700!important}
.btn-primary:disabled,button.btn-primary:disabled{background:#E8DCC8!important;color:#A99E88!important;box-shadow:none!important}
.btn-ghost,button.btn-ghost{background:#fff!important;color:#A23B22!important;border:1px solid #E3D7C1!important;border-radius:11px!important;box-shadow:none!important}
.mini-btn,button.mini-btn{background:#fff!important;color:#6A5D4A!important;border:1px solid #E3D7C1!important;border-radius:9px!important;box-shadow:none!important}
/* theme.css:551 .kart'ı 12px + gölgeye zorluyordu; standart kart .lcard ile aynı. */
.kart{background:#FFFDF8!important;border:1px solid #EFE6D5!important;border-radius:14px!important;box-shadow:none!important}
.seg button{background:none!important;border:none!important;border-radius:9px!important;color:#6A5D4A!important}
.seg button.on{background:#fff!important;color:#8A3B1A!important}
.lcard{background:#FFFDF8!important;border:1px solid #EFE6D5!important;border-radius:14px!important}
.highlight-box{background:#2F2A24!important;border-radius:16px!important}
.highlight-val{color:#FBF6EA!important}
.highlight-lbl{color:#C99A4A!important}
.ltable th{color:#6A5D4A!important;background:#F7F0E2!important;border-bottom-color:#ECE1CC!important}
.ltable td{color:#3D3226!important;border-bottom-color:#F1E9D9!important}
