/* ALTINAY — Hesaplama araçları */
.tool-page{max-width:1120px;margin:30px auto 0}
.tool-page h1{font-family:var(--display);font-size:clamp(28px,4vw,40px);line-height:1.15;color:var(--ink);margin:6px 0 10px;letter-spacing:-.02em}
.tool-page .reading-lead{max-width:760px;font-size:17px;line-height:1.7;color:#527c85;margin:0 0 26px}
.tool-preview{background:#fff7ec;border:1px solid #f3dcb6;color:#7a4a0c;border-radius:10px;padding:10px 14px;font-size:13px;margin:12px 0}
.tool-loading{color:#6e858d;font-size:14px}
.tool-disclaimer{font-size:12.5px;color:#6e858d;margin-top:26px;line-height:1.6}
.tool-disclaimer a{color:var(--green)}
.tool-others{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:18px;font-size:13px;color:#527c85}
.tool-others a{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;color:var(--green);text-decoration:none;font-weight:600}
.tool-others a:hover{border-color:var(--green);background:#f0f8f7}
.tool-params{grid-column:1/-1;font-size:11.5px;color:#7d949a;margin-top:10px;text-align:right}

/* Araçlar ana sayfası */
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tool-card{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s,transform .15s}
.tool-card:hover{border-color:var(--green);box-shadow:0 10px 26px rgba(7,93,102,.10);transform:translateY(-1px)}
.tool-card__icon{flex:0 0 46px;height:46px;border-radius:12px;background:linear-gradient(135deg,#075d66,#0d7f86);color:#fff;display:grid;place-items:center;font-size:21px;font-weight:700}
.tool-card__body{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.tool-card__body strong{font-family:var(--display);font-size:17px}
.tool-card__body span{font-size:13.5px;line-height:1.55;color:#527c85}
.tool-card__go{color:var(--green);font-size:20px;align-self:center}

/* Hesaplayıcı düzeni */
.tool-app{display:grid;gap:18px}
.tool-grid2{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:18px;align-items:start}
.tool-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;min-width:0}
.tool-panel--result{background:linear-gradient(180deg,#f6fbfa,#fff 140px);position:sticky;top:96px}
.tool-panel--wide{grid-column:1/-1}
.tool-h2{font-family:var(--display);font-size:19px;color:var(--ink);margin:0 0 14px}
.tool-h3{font-family:var(--display);font-size:15.5px;color:var(--ink);margin:20px 0 8px}
.tool-form{display:flex;flex-direction:column;gap:14px}
.tf{display:flex;flex-direction:column;gap:6px}
.tf[hidden]{display:none}
.tf__label{font-size:13px;font-weight:650;color:#2b5560}
.tf__hint{font-size:11.5px;color:#7d949a;line-height:1.5}
.tf__box{display:flex;align-items:center;border:1px solid #c8dde2;border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.tf__box:focus-within,.tf select:focus,.tf input[type=date]:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(7,93,102,.12);outline:none}
.tf__box input{flex:1;min-width:0;border:0;padding:11px 12px;font:inherit;font-size:16px;font-variant-numeric:tabular-nums;color:var(--ink);background:transparent;outline:none;text-align:right}
.tf__unit{padding:0 12px;color:#6e858d;font-size:13px;font-weight:600;background:#f4f9f8;align-self:stretch;display:flex;align-items:center;border-left:1px solid #e2eeef}
.tf select,.tf input[type=date]{font:inherit;font-size:15px;padding:10px 11px;border:1px solid #c8dde2;border-radius:10px;background:#fff;color:var(--ink);width:100%}
.tf-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tc{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:#2b5560;cursor:pointer;line-height:1.45}
.tc input{margin-top:3px;width:17px;height:17px;accent-color:var(--green);flex:0 0 auto}
.tc small{display:block;font-size:11.5px;color:#7d949a;margin-top:2px}
.seg{display:flex;background:#eef6f5;border-radius:12px;padding:4px;gap:4px}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label{flex:1;text-align:center;padding:9px 10px;border-radius:9px;font-size:14px;font-weight:650;color:#527c85;cursor:pointer;transition:background .15s,color .15s}
.seg input:checked+label{background:#fff;color:var(--green);box-shadow:0 1px 4px rgba(20,63,73,.12)}
.seg input:focus-visible+label{outline:2px solid var(--green);outline-offset:2px}
.tq{display:flex;gap:8px;flex-wrap:wrap;margin-top:-6px}
.tq__btn{border:1px dashed #a9cfd2;background:#fff;color:var(--green);font:inherit;font-size:12.5px;font-weight:650;border-radius:999px;padding:5px 12px;cursor:pointer}
.tq__btn:hover{background:#f0f8f7;border-style:solid}

/* Sonuç */
.tr-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px}
.tr-stat{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;display:flex;flex-direction:column;gap:4px;min-width:0}
.tr-stat span{font-size:12px;color:#6e858d;font-weight:600}
.tr-stat strong{font-family:var(--display);font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tr-stat.is-main{background:var(--green);border-color:var(--green)}
.tr-stat.is-main span{color:#cfe9e8}
.tr-stat.is-main strong{color:#fff;font-size:24px}
.tr-rows{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:0;border-top:1px solid #e6f0f1}
.tr-rows dt,.tr-rows dd{margin:0;padding:8px 0;border-bottom:1px solid #e6f0f1;font-size:14px}
.tr-rows dt{color:#3f6670;padding-right:12px}
.tr-rows dd{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600;white-space:nowrap}
.tr-rows .is-plus{color:#2f7d4f}
.tr-rows .is-total{font-weight:750;color:var(--ink);background:#f4f9f8}
.tr-rows dt.is-total{padding-left:8px}
.tr-rows dd.is-total{padding-right:8px}
.tr-note{font-size:12.5px;line-height:1.6;color:#6e858d;margin:14px 0 0}
.tr-note.is-warn{color:#8a5a12;background:#fff7ec;border:1px solid #f3dcb6;border-radius:10px;padding:10px 12px}
.tr-verdict{border-radius:14px;padding:14px 16px;font-size:15px;line-height:1.6;margin-bottom:14px;border:1px solid}
.tr-verdict.is-good{background:#eef8f2;border-color:#bfe1cc;color:#21583a}
.tr-verdict.is-warn{background:#fff7ec;border-color:#f3dcb6;color:#7a4a0c}
.tr-verdict.is-bad{background:#fff3f5;border-color:#f0c6cd;color:#8f2335}

/* Tablolar */
.tt-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:12px}
.tt{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;min-width:640px}
.tt caption{text-align:left;font-size:12.5px;color:#6e858d;padding:10px 12px;caption-side:top}
.tt th,.tt td{padding:8px 10px;border-bottom:1px solid #e6f0f1;text-align:right;white-space:nowrap}
.tt thead th{background:#f4f9f8;color:#2b5560;font-size:12px;font-weight:700;position:sticky;top:0}
.tt th[scope=row]{text-align:left;color:var(--ink);font-weight:650}
.tt tbody tr:hover{background:#fafdfd}
.tt tr.is-cur{background:#e9f5f4}
.tt tfoot th,.tt tfoot td{font-weight:750;background:#f4f9f8;border-bottom:0}
.tt--hadler{min-width:620px}

@media(max-width:900px){
  .tool-grid2{grid-template-columns:1fr}
  .tool-panel--result{position:static}
  .tool-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .tool-panel{padding:16px;border-radius:14px}
  .tf-row{grid-template-columns:1fr}
  .tr-stat strong{font-size:18px}
  .tr-stat.is-main strong{font-size:21px}
  .tool-card{padding:14px}
}

/* Oranlar ve tutarlar sayfası */
.ref-nav{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:84px;z-index:3;background:var(--paper,#f4f9f8);padding:8px 0}
.ref-nav a{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:650;color:var(--green);text-decoration:none}
.ref-nav a:hover{border-color:var(--green)}
.ref-sec{scroll-margin-top:140px}
.ref-sec .tf{max-width:180px;margin-bottom:12px}
.ref-gv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tt--small{min-width:0}
.tt--small th,.tt--small td{white-space:normal}
@media(max-width:700px){.ref-gv{grid-template-columns:1fr}.ref-nav{position:static}}
.tt thead th:first-child{text-align:left}
.tf-sub{font-size:12.5px;font-weight:700;color:#527c85;margin:6px 0 -4px;border-top:1px dashed #d5e4e5;padding-top:12px}
/* Defter türü değişiyor: mor ve belirgin */
.tr-verdict.is-change{background:linear-gradient(135deg,#f4eeff,#ebe2ff);border:2px solid #6b46c1;color:#3d2378;box-shadow:0 8px 22px rgba(107,70,193,.18)}
.tr-verdict.is-change b{color:#5a37a8}
.tr-change{display:flex;flex-direction:column;gap:2px;background:#6b46c1;color:#fff;border-radius:10px;padding:10px 14px;margin:-2px -2px 10px;font-family:var(--display,inherit);font-size:18px;font-weight:800;letter-spacing:-.01em}
.tr-change small{font-size:12.5px;font-weight:600;color:#e4d9ff}
.tf-year{display:flex;flex-direction:column;gap:8px}
.tf-year[hidden]{display:none}
.tf-year .tf-sub{margin:4px 0 0}
.tf-year:first-of-type .tf-sub{border-top:0;padding-top:0}
.tf-row--year{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tf-row--year .tf__label{font-size:12px}
.tool-app{grid-template-columns:minmax(0,1fr)}
@media(max-width:700px){.tr-rows{grid-template-columns:minmax(0,1fr) minmax(0,auto)}.tr-rows dd{white-space:normal;overflow-wrap:anywhere;max-width:62vw}}
.tt-paged{display:flex;flex-direction:column;gap:8px}
.tt-pager{display:flex;align-items:center;justify-content:center;gap:10px}
.tt-pager__btn{border:1px solid var(--line);background:#fff;color:var(--green);font:inherit;font-size:13px;font-weight:650;border-radius:8px;padding:6px 12px;cursor:pointer}
.tt-pager__btn:disabled{opacity:.4;cursor:default}
.tt-pager__info{font-size:12.5px;color:#6e858d}
.kira-list .tf{max-width:180px;margin-bottom:12px}
.tt--kira td.kl-oran{font-weight:700;color:var(--ink)}
.tt--kira td.kl-yok{color:#9aaeb3;font-style:italic}