/* 2026 Bordro Rehberi. stil.css üzerine. Betik yok; görünüm ve dönem seçimi :has ile. */
.rehber { --lacivert: #14264d; --lacivert-ink: #fff; --altin: #e0a83c; }
body:has(.rehber) main .wrap, body:has(.rehber) header.site .wrap, body:has(.rehber) footer.site .wrap { max-width: 60rem; }
body:has(#y2:checked) .d1, body:has(#y1:checked) .d2 { display: none; }
body:has(#y2:checked) .aylik tr.y2 td, body:has(#y1:checked) .aylik tr.y1 td { background: var(--accent-soft); }
.gorunum, .g-alt { display: none; }
body:has(#gk:checked) .a-k, body:has(#gm:checked) .a-m, body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .a-c { display: block; }
body:has(#gk:checked) .g-k, body:has(#gm:checked) .g-m, body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .g-c { display: block; }

.kontrol { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec { border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 0; display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface); min-width: 0; }
.sec legend { position: absolute; left: -999px; }
.sec label { margin: 0; border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: .93rem; position: relative; }
.sec label:has(input:checked) { background: var(--lacivert); color: var(--lacivert-ink); }
.sec label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.sec input { position: absolute; opacity: 0; }
@media (max-width: 30rem) { .sec { border-radius: 12px; width: 100%; } .sec label { flex: 1 1 auto; text-align: center; padding: 7px 6px; font-size: .87rem; } }

.bant { background: var(--lacivert); color: var(--lacivert-ink); border-radius: 10px; border-bottom: 6px solid var(--altin); padding: 22px 20px 16px; margin-bottom: 16px; }
.bant .marka { letter-spacing: .02em; text-transform: uppercase; font-size: clamp(1.55rem, 7vw, 2.5rem); line-height: 1.2; font-weight: 800; color: var(--altin); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid rgba(224, 168, 60, .55); }
.bant h1 { margin: 0 0 6px; }
.bant p { margin: 0 0 4px; }
.bant .bant-donem { font-size: .85rem; opacity: .85; }
.rehber h2.serit { background: var(--lacivert); color: var(--lacivert-ink); border-radius: 8px; padding: 8px 14px; font-size: 1.1rem; }
.rehber thead th { background: var(--lacivert); color: var(--lacivert-ink); }
.son { margin-top: 28px; }

/* A */
.buyukler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.buyuk { background: var(--lacivert); color: var(--lacivert-ink); border-radius: 14px; padding: 14px; }
.buyuk .k { display: block; font-size: .85rem; opacity: .85; }
.buyuk .v { display: block; font-size: clamp(1.1rem, 4.6vw, 1.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.cipler { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.cipler a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; text-decoration: none; font-size: .9rem; }
.g-k section { scroll-margin-top: 64px; }
details.kalem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 0; }
details.kalem > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; list-style: none; font-weight: 400; }
details.kalem > summary::-webkit-details-marker { display: none; }
details.kalem > summary .v { font-weight: 700; text-align: right; max-width: 55%; font-variant-numeric: tabular-nums; }
details.kalem[open] { border-color: var(--accent); }
details.kalem .ic { border-top: 1px dashed var(--line); padding: 10px 14px; font-size: .9rem; color: var(--muted); }

@media (min-width: 52rem) { .buyukler { grid-template-columns: repeat(4, minmax(0, 1fr)); } .buyuk .v { font-size: 1.3rem; } }

.kalem.duz { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 0; padding: 16px 14px; }
.kalem.duz .v { padding-right: 22px; font-weight: 700; text-align: right; max-width: 55%; font-variant-numeric: tabular-nums; }
details.kalem > summary::after { content: "▾"; color: var(--muted); font-size: .8rem; }
details.kalem > summary .v { margin-left: auto; }

/* B */
table.matris th, table.matris td { white-space: normal; text-align: left; vertical-align: top; }
table.matris td { width: 36%; }
table.matris .v { font-size: 1.15rem; font-weight: 700; }
table.matris .alt { font-size: .83rem; color: var(--muted); margin-bottom: 4px; }
table.liste td { white-space: normal; text-align: left; vertical-align: top; }
table.liste td.sag { text-align: right; font-weight: 700; width: 38%; }
table.liste details { margin: 0; font-size: .85rem; color: var(--muted); }
table.liste summary { font-weight: 400; padding: 0; color: var(--accent); }
@media (max-width: 40rem) {
  table.matris thead { display: none; }
  table.matris tr, table.matris th, table.matris td { display: block; width: 100%; }
  table.matris th { background: var(--accent-soft); }
  table.matris td::before { content: attr(data-b); display: block; font-size: .75rem; text-transform: uppercase; color: var(--muted); }
}

/* C */
.g-c { font-family: Georgia, "Times New Roman", serif; }
body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant { padding: 48px 24px 32px; border-bottom-width: 10px; font-family: Georgia, "Times New Roman", serif; }
body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant h1 { font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.1; margin: 8px 0 16px; }
body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant .marka { font-size: clamp(1.4rem, 6.4vw, 3.1rem); }
.kosul { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.icindekiler { columns: 2 14rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0 12px 22px; }
.bolum h2 { border-bottom: 3px solid var(--lacivert); padding-bottom: 4px; display: flex; gap: 12px; align-items: baseline; }
.bolum h2 span { color: #b7791f; font-size: 1.7rem; }
.satir { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.satir .ad { flex: 0 1 auto; }
.satir .nokta { flex: 1 1 24px; border-bottom: 2px dotted var(--line); min-width: 16px; }
.satir .v { text-align: right; font-weight: 700; max-width: 50%; font-variant-numeric: tabular-nums; }
.dip { font-size: .72rem; text-decoration: none; }
.uyari { color: var(--bad); }
.yazdir { font-size: .9rem; color: var(--muted); }
@media (max-width: 30rem) { .satir { flex-wrap: wrap; } .satir .nokta { display: none; } .satir .v { margin-left: auto; max-width: 100%; } }

@media print {
  @page { size: A4; margin: 14mm; }
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --line: #bbb; --accent: #14264d; --accent-soft: #eef1f7; }
  body { font-size: 10.5pt; }
  header.site, footer.site, .skip, .kontrol, .cipler, .yazdir, .taslak { display: none !important; }
  main { padding: 0; }
  body:has(.rehber) main .wrap { max-width: none; padding: 0; }
  .bant, .rehber h2.serit, .rehber thead th, .buyuk { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant { padding: 28px 22px 20px; }
  .tablo-kap { overflow: visible; }
  .rehber thead th { position: static; }
  .satir, tr { break-inside: avoid; }
  .bolum h2 { break-after: avoid; }
}
/* Kitapçık sayfa düzeni (A4) */
@media print {
  /* 1: kapak, 01, 02 · 2: 03, 04 · 3: 05, 06, 07 · 4: 08, 09 ve bilgilendirme notu */
  @page { size: A4; margin: 12mm 14mm 14mm;
    @bottom-right { content: "Çalışma Hayatı Rehberi · " counter(page) " / " counter(pages); font: 8pt Georgia, serif; color: #555; } }
  .g-c .bolum { break-inside: avoid; }
  .g-c #c-ogrenci, .g-c #c-yan-haklar, .g-c #c-vergi { break-before: page; }
  .g-c h2, .g-c h3 { break-after: avoid; }
  .g-c .satir, .g-c tr, .g-c li { break-inside: avoid; }
  .g-c .satir:has(+ .kosul) { break-after: avoid; }
  .g-c .tablo-kap { break-inside: avoid; border: 0; border-radius: 0; background: none; }

  body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant { padding: 26px 24px 18px; border-bottom-width: 7px; margin-bottom: 12px; }
  body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant .marka { font-size: 28pt; margin-bottom: 6px; padding-bottom: 6px; }
  body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant h1 { font-size: 28pt; margin: 4px 0 6px; }
  body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant p.g-alt, body:is(:has(#gc:checked), :has(.rehber-kitapcik)) .bant .bant-donem { margin-bottom: 0; }
  .g-c .icindekiler { margin: 0; padding-top: 8px; padding-bottom: 8px; font-size: 11pt; line-height: 1.5; }

  .g-c .bolum h2 { margin: 22px 0 8px; font-size: 16pt; padding-bottom: 2px; }
  .g-c .bolum h2 span { font-size: 19pt; }
  .g-c .bolum h3 { margin: 12px 0 5px; font-size: 12.5pt; }
  .g-c #c-ogrenci h2, .g-c #c-yan-haklar h2, .g-c #c-vergi h2 { margin-top: 0; }
  .g-c .satir { padding: 4.5px 0; line-height: 1.4; font-size: 11.5pt; }
  .g-c .kosul { font-size: 9.8pt; line-height: 1.4; margin: 0 0 5px; }

  .g-c table { font-size: 11pt; border: 1px solid var(--line); }
  .g-c th, .g-c td { padding: 4.6px 9px; line-height: 1.3; }
  .son { margin-top: 16px; font-size: 9pt; }
}

@media print { .bant .marka .chr-logo-light { display:none!important; } .bant .marka .chr-logo-dark { display:block!important; } }

/* Single-period booklet on the first-release parameter page. */
.rehber-kitapcik .g-c, .rehber-kitapcik .a-c { display:block; }
.rehber-kitapcik .a-k, .rehber-kitapcik .a-m { display:none; }

/* Dar ekran: vergi tarifesi ve ay ay tablolar sığsın (yatay kaydırma gerekmesin) */
@media screen and (max-width: 36rem) {
  .tablo-kap table:not(.matris):not(.liste) { font-size: .82rem; }
  .tablo-kap table:not(.matris):not(.liste) th, .tablo-kap table:not(.matris):not(.liste) td { white-space: normal; padding: 8px 6px; vertical-align: top; }
  .tablo-kap table:not(.matris):not(.liste) td:first-child { white-space: nowrap; }
}

/* PDF görüntüle / indir alanı (yazdırmada ve PDF çıktısında gizli) */
.pdf-alan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pdf-alan strong { display: block; font-size: 1.05rem; }
.pdf-alan span { color: var(--muted); font-size: .9rem; }
.pdf-dugme { display: flex; gap: 10px; flex-wrap: wrap; }
.pdf-dugme .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; padding: 10px 18px; min-height: 44px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.pdf-dugme .btn:hover { filter: brightness(1.08); }
.pdf-dugme .btn.ikinci { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
@media print { .pdf-alan { display: none !important; } }
