/* Tek sütun iş emri listesi: üstte yazma kutusu, altında günlere ayrılmış işler */
:root {
  --bg: #eef1f4; --panel: #fff; --fg: #18222d; --muted: #5b6876; --line: #d3dae1;
  --accent: #0f6f8c; --on-accent: #fff; --done: #1f8a5b; --done-bg: #e2f3ea; --err: #b3261e; --urgent: #b3261e; --urgent-bg: #fbe4e2; --warn: #8a5a00; --warn-bg: #fdf0d2;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12181f; --panel: #1b232c; --fg: #e8edf2; --muted: #9aa8b5; --line: #2e3945;
    --accent: #5cc0dd; --on-accent: #0c1a20; --done: #5fd09c; --done-bg: #17352a; --err: #ff8a80; --urgent: #ff8a80; --urgent-bg: #40201e; --warn: #f2c063; --warn-bg: #3a2c10; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.4; }
[hidden] { display: none !important; }
.wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 24px; }
.wrap > *, #app > * { min-width: 0; }
.top { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; align-items: flex-start; }
h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; }
h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 18px; }
#status { margin: 4px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
#menu { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; font-size: 15px; }
#me { color: var(--muted); }
#app { display: grid; gap: 20px; }
button { font: inherit; cursor: pointer; }
.primary { min-height: 44px; padding: 0 18px; font-family: var(--display); font-weight: 600; font-size: 17px;
  color: var(--on-accent); background: var(--accent); border: 0; border-radius: 6px; }
.primary:disabled { opacity: .55; cursor: default; }
.link { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 500; text-decoration: underline; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
input, textarea, select { width: 100%; min-width: 0; padding: 10px 12px; font: inherit; color: var(--fg);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
textarea { flex: 1; resize: vertical; min-height: 88px; }
textarea::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form { display: grid; gap: 12px; padding: 16px; }
.form .form { padding: 0; }
.form label { display: grid; gap: 4px; font-weight: 500; }
#auth { width: 100%; max-width: 380px; }
.err { margin: 0; color: var(--err); }
.row { display: flex; gap: 16px; align-items: center; }
#composer { display: grid; gap: 8px; }
#composer > label { font-family: var(--display); font-weight: 600; font-size: 18px; }
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row .primary { flex: none; }
#hint { margin: 0; color: var(--muted); font-size: 14px; }
#reply { display: flex; gap: 8px 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; }
#reply-text { min-width: 0; overflow-wrap: anywhere; }
#days { display: grid; gap: 24px; }
.day { display: grid; gap: 8px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
ul { list-style: none; margin: 0; padding: 0; }
.tasks { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.tasks li + li { border-top: 1px solid var(--line); }
.tasks li.urgent:not(.is-done) { box-shadow: inset 4px 0 0 var(--urgent); }
.row-main { display: flex; align-items: flex-start; }
.task { position: relative; flex: none; padding: 12px 6px 12px 14px; cursor: pointer; }
.open-btn { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 6px;
  border: 0; background: none; color: inherit; text-align: left; }
.chev { flex: none; color: var(--muted); font-size: 14px; transition: transform .15s; }
.open-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.badge { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 13px; font-weight: 500; vertical-align: 1px; }
.badge.acil { color: var(--urgent); background: var(--urgent-bg); }
.badge.dusuk { color: var(--muted); border: 1px solid var(--line); }
.detail { display: grid; gap: 12px; padding: 4px 14px 14px 50px; }
.detail-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.detail label, #filters label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; min-width: 0; }
.notes { display: grid; gap: 8px; }
.notes li { display: grid; gap: 2px; padding: 8px 10px; background: var(--bg); border-radius: 6px; }
.notes .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.notes .body { overflow-wrap: anywhere; white-space: pre-wrap; }
.note-row { display: flex; gap: 8px; }
.note-row .primary { flex: none; min-height: 42px; }
.detail .del { justify-self: start; margin: 0; }
#filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#filters .wide { grid-column: 1 / -1; }
#f-temizle { justify-self: start; font-size: 14px; }
@media (max-width: 480px) {
  .detail { padding-left: 14px; }
  .detail-row { grid-template-columns: 1fr 1fr; }
}
.task input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.box { flex: none; width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 4px;
  display: grid; place-items: center; color: transparent; font-weight: 700; font-size: 16px; line-height: 1; }
.task input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.text { min-width: 0; overflow-wrap: anywhere; }
.area { display: block; color: var(--muted); font-size: 14px; }
.is-done .box { background: var(--done-bg); border-color: var(--done); color: var(--done); }
.is-done .title { text-decoration: line-through; color: var(--muted); }
.del { font-size: 14px; color: var(--muted); }
.del.sure { color: var(--err); }
.empty { margin: 0; padding: 16px; color: var(--muted); }
dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; color: var(--fg);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.users li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.users .off { color: var(--muted); text-decoration: line-through; }
.users .acts { display: flex; gap: 12px; font-size: 14px; }

.users .who { display: grid; min-width: 0; }
.users .who select { padding: 4px 8px; font-size: 14px; }
.users li { align-items: center; }
.scroll-x { overflow-x: auto; }
.roles { width: 100%; border-collapse: collapse; font-size: 13px; }
.roles th, .roles td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.roles th:first-child, .roles td:first-child { text-align: left; }

#update-bar { display: flex; justify-content: center; gap: 12px; padding: 10px 16px; background: var(--accent); color: var(--on-accent); }
#update-bar .link { color: inherit; }
.as-btn { display: inline-flex; align-items: center; text-decoration: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photo { position: relative; display: grid; gap: 2px; }
.photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.photo .del { justify-self: start; }
.photo-add { justify-self: start; display: inline-block; font-size: 14px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.detail .photo-add { display: inline-block; font-weight: 500; }

#casino-sec { width: auto; padding: 4px 8px; font-size: 15px; font-weight: 500; }
#menu select { width: auto; }
.casino-secim { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.casino-secim legend { padding: 0 0 4px; font-weight: 500; }
.check-row { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.form .check-row label, .users .check-row label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; font-size: 14px; }
.check-row input { width: auto; }

.badge.yapiliyor { color: var(--accent); border: 1px solid var(--accent); }
.badge.parca { color: var(--warn); background: var(--warn-bg); }
.badge.gecikti { color: var(--on-accent); background: var(--urgent); }

.muted { margin: 0; color: var(--muted); font-size: 14px; }
.hint-row { display: flex; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; align-items: baseline; }
.hint-row #hint { flex: 1; min-width: 200px; }
#btn-ozet { font-size: 14px; }
#reply-text { white-space: pre-wrap; }
.badge.tekrar { color: var(--warn); border: 1px solid var(--warn); }
.detail > label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }

.foto-ac { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
#foto-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #000; }
#foto-dlg[open] { display: flex; align-items: center; justify-content: center; }
#foto-buyuk { max-width: 100%; max-height: 100%; object-fit: contain; }
#foto-kapat { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 1; min-height: 44px; padding: 0 16px;
  color: #fff; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; font-size: 16px; }


/* Yeni mobil tasarım */
:root { --bg: #f1f4f8; --panel: #fff; --line: #dfe5ec; --shadow: 0 2px 10px rgba(24, 40, 60, .07); --dot-blue: #3b82f6; --dot-orange: #f97316; --dot-red: #ef4444; --dot-gray: #a3aeba; --soft: #e4e9ef; --s1: #0079a8; --s2: #c96209; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #12181f; --panel: #1b232c; --line: #2e3945; --shadow: none; --soft: #26303a; --s1: #2f95bb; --s2: #cf7a24; }
}
body { font-family: var(--body); }
.wrap { padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); gap: 20px; }
.ikon { display: inline-flex; flex: none; }
.ikon svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top { align-items: flex-start; flex-wrap: nowrap; }
.baslik { min-width: 0; }
h1 { font-family: var(--display); font-size: 30px; }
#status { font-size: 15px; }
#menu { display: grid; justify-items: end; gap: 8px; flex: none; font-size: 14px; }
#menu[hidden] { display: none; }
.kim { display: flex; align-items: center; gap: 8px; }
#avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-accent); background: var(--accent); font-family: var(--display); font-weight: 700; font-size: 17px; }
.kim-yazi { display: grid; justify-items: end; gap: 2px; }
#me-ad { font-weight: 500; font-size: 14px; }
#me-rol { padding: 1px 8px; border-radius: 999px; color: var(--on-accent); background: var(--accent); font-size: 12px; font-weight: 500; }
.hizli { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ikonlu { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--fg); font-size: 13px; }
#pills { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#pills[hidden] { display: none; }
.pill-sag { display: flex; gap: 8px; flex-wrap: wrap; }
.pill, .casino-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 500; }
.casino-pill { box-shadow: var(--shadow); }
#casino-sec, #menu select { width: auto; padding: 0 2px; border: 0; background: transparent; color: var(--fg); font-size: 15px; font-weight: 500; }
.ai-baslik { display: inline-flex; align-items: center; gap: 6px; font-size: 19px !important; }
.ai-baslik .ikon { color: var(--accent); }
.yazi-kutu { position: relative; flex: 1; min-width: 0; display: flex; }
.yazi-kutu textarea { min-height: 96px; padding-right: 50px; border-radius: 12px; }
#mic { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--accent); background: var(--soft); }
#mic[hidden] { display: none; }
#mic.dinliyor { color: #fff; background: var(--dot-red); }
.gonder { display: grid; justify-items: center; align-content: center; gap: 4px; width: 84px; min-height: 96px; padding: 0 8px; border-radius: 12px; font-size: 16px; }
.gonder .ikon { font-size: 22px; }
#hint { font-size: 13px; }
#filters { gap: 10px; }
#filters label { font-size: 14px; }
.sel { position: relative; display: flex; align-items: center; }
.sel > .ikon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.sel select, .sel input { padding-left: 34px; border-color: transparent; border-radius: 10px; box-shadow: var(--shadow); }
.sel.ara input { background: var(--soft); box-shadow: none; }
.tasks { display: grid; gap: 10px; background: none; border: 0; border-radius: 0; }
.tasks li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tasks li + li { border-top: 1px solid var(--line); }
.tasks li.urgent:not(.is-done) { box-shadow: var(--shadow); }
.box { width: 28px; height: 28px; border-radius: 7px; }
.task { padding: 14px 6px 14px 14px; }
.open-btn { align-items: center; padding: 14px 12px 14px 6px; }
.title { font-weight: 500; }
.area { display: flex; align-items: center; gap: 4px; }
.alt-yazi { min-width: 0; overflow-wrap: anywhere; }
.durumlar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badge { margin-right: 0; }
.sag { display: flex; align-items: center; gap: 5px; flex: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.acil { background: var(--dot-red); }
.dot.uyari { background: var(--dot-orange); }
.dot.normal { background: var(--dot-blue); }
.dot.dusuk { background: var(--dot-gray); }
.dot.bitti { background: var(--done); }
.chev { margin-left: 4px; font-size: 22px; line-height: 1; }
.halka { display: inline-flex; align-items: center; gap: 8px; }
.halka svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.halka circle { fill: none; stroke-width: 3.5; }
.halka .zemin { stroke: var(--soft); }
.halka .dolu { stroke: var(--accent); stroke-linecap: round; }
.day h2 { font-size: 19px; }
#reply { border-radius: 12px; }
#auth { border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 480px) {
  h1 { font-size: 26px; }
  #avatar { width: 40px; height: 40px; font-size: 15px; }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .baslik { flex: 1; }
  .day-head { flex-wrap: nowrap; }
  .day h2 { font-size: 17px; white-space: nowrap; }
  .count { font-size: 13px; white-space: nowrap; }
  .sel select { padding-left: 30px; padding-right: 2px; font-size: 15px; }
}

#sekmeler { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.sekme { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.sekme.secili { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
.geri-btn { flex: none; padding: 4px 10px; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 8px; font-size: 13px; font-weight: 500; }
.row-main { align-items: center; }
#filters.iki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#geri-form textarea { min-height: 84px; }

#atanan-uyari { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--on-accent); background: var(--accent); border-radius: 12px; font-weight: 500; }
#atanan-uyari[hidden] { display: none; }
#atanan-uyari .ikon { font-size: 18px; }
#atanan-metin { flex: 1; min-width: 0; }
#atanan-goster { flex: none; min-height: 34px; padding: 0 12px; color: var(--accent); background: var(--panel); border: 0; border-radius: 8px; font-weight: 500; }
.benim-baslik { color: var(--accent); }
.tasks li.benim { border-color: var(--accent); }

#avatar { padding: 0; border: 0; overflow: hidden; cursor: pointer; }
#avatar img, #avatar-onizle img { display: block; width: 100%; height: 100%; object-fit: cover; }
#avatar-onizle { display: grid; place-items: center; justify-self: center; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; color: var(--on-accent); background: var(--accent); font-family: var(--display); font-weight: 700; font-size: 40px; }

#qr-konum { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--soft); border-radius: 10px; font-weight: 500; }
#qr-konum[hidden] { display: none; }
#qr-konum-ad { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.konum-btn { display: flex; gap: 12px; flex: none; }
.users li span:first-child { min-width: 0; overflow-wrap: anywhere; }
#dlg-yedek { width: min(560px, calc(100% - 24px)); }
#qr-dlg { width: min(760px, calc(100% - 16px)); }
#panel { display: grid; gap: 20px; }
#panel[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tile { display: grid; gap: 2px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tile b { font-family: var(--display); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 13px; }
.kart { display: grid; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.kart h3 { font-size: 17px; }
.gosterge { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.gosterge i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; }
.s1 { background: var(--s1); }
.s2 { background: var(--s2); }
.hafta-grafik { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; border-bottom: 1px solid var(--line); }
.hafta { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.hafta span { width: min(40%, 14px); min-height: 0; border-radius: 4px 4px 0 0; }
.hafta-etiket { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; color: var(--muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.yatay { display: grid; gap: 8px; }
.yatay-satir { display: grid; gap: 3px; font-size: 14px; }
.yatay-ust { display: flex; justify-content: space-between; gap: 10px; }
.yatay-ust span:first-child { min-width: 0; overflow-wrap: anywhere; }
.yatay-ust b { font-variant-numeric: tabular-nums; font-weight: 500; }
.yatay-cubuk { height: 8px; border-radius: 0 4px 4px 0; background: var(--s1); }
.tablo-kap { overflow-x: auto; }
.tablo { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tablo th, .tablo td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.tablo th:first-child, .tablo td:first-child { text-align: left; }

#dlg-bakim { width: min(560px, calc(100% - 24px)); }
#dlg-bakim .detail-row { grid-template-columns: 1fr 1fr; }
.bakim-alt { display: block; color: var(--muted); font-size: 13px; }
.gecmis-btn { justify-self: start; font-size: 14px; }
.gecmis-liste { display: grid; gap: 6px; font-size: 13px; }
.gecmis-liste li { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.gecmis-liste .meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.gecmis-liste .yazi { overflow-wrap: anywhere; }
.badge.bakim { color: var(--accent); background: var(--soft); }

.cozum { display: block; margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
.cozum b { font-weight: 500; }
.foto-not { color: var(--muted); font-size: 12px; }
#bitir-form textarea { min-height: 84px; }

#zorunlu { width: 100%; max-width: 380px; border-radius: 14px; box-shadow: var(--shadow); }
.badge.geri { color: var(--urgent); background: var(--urgent-bg); }
#cron-adres { font-size: 13px; }

/* TW-2022: A4, 4 sütun, 13 satır, 50 x 22 mm */
.etk-ayar { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.etk-ayar label { font-size: 14px; }
#qr-etiketler { display: grid; gap: 12px; overflow: hidden; }
.sayfa-kap { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.sayfa { position: relative; width: 210mm; height: 297mm; overflow: hidden; background: #fff; color: #000; transform-origin: 0 0; font-family: Arial, Helvetica, sans-serif; }
.etk { position: absolute; width: 50mm; height: 22mm; overflow: hidden; }
.onizleme .etk { outline: 1px dashed #b9c2cc; outline-offset: -1px; cursor: pointer; }
.onizleme .etk.bos { background: #f1f4f8; }
.onizleme .etk.baslangic { outline: 2px solid #0f6f8c; outline-offset: -2px; }
.etk-qr { position: absolute; touch-action: none; }
.onizleme .etk-qr { cursor: grab; }
.etk-qr svg { display: block; width: 100%; height: 100%; }
.etk-yazi { position: absolute; top: 1mm; bottom: 1mm; display: flex; flex-direction: column; justify-content: center; gap: .5mm; overflow: hidden; line-height: 1.15; }
.etk-yazi strong { font-size: 9pt; overflow-wrap: anywhere; max-height: 3.5em; overflow: hidden; }
.etk-yazi small { font-size: 6.5pt; }
#baski { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body > *:not(#baski) { display: none !important; }
  #baski { display: block !important; }
  #baski .sayfa { transform: none !important; page-break-after: always; break-after: page; }
  #baski .sayfa:last-child { page-break-after: auto; break-after: auto; }
  #baski .etk { outline: none !important; background: none !important; }
}

/* Yeni bildirimler */
#yeni-bolum { padding: 12px 14px; background: var(--panel); border: 2px solid var(--accent); border-radius: 12px; }
#yeni-bolum[hidden] { display: none; }
.yeni-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.yeni-bas h2 { margin: 0; font-size: 16px; }
#yeni-sayi { display: inline-block; min-width: 22px; padding: 0 6px; color: var(--on-accent); background: var(--accent); border-radius: 11px; font-size: 13px; line-height: 22px; text-align: center; }
#yeni-liste { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#yeni-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
#yeni-liste li div { min-width: 0; }
#yeni-liste strong { display: block; overflow-wrap: anywhere; }
#yeni-liste small { color: var(--muted); }
#yeni-liste li.urgent strong { color: var(--urgent); }
#yeni-liste button { flex: none; min-height: 40px; padding: 0 14px; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 8px; font-weight: 500; cursor: pointer; }
.badge.goruldu { color: var(--done); background: var(--done-bg); }
.badge.gorulmedi { color: var(--urgent); background: var(--urgent-bg); }

/* Ayrıntılı arıza raporu */
.rapor h4 { margin: 6px 0 0; font-size: 15px; }
.rapor-hizli { display: flex; flex-wrap: wrap; gap: 6px; }
.rapor-filtre { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rapor-filtre .genis { grid-column: 1 / -1; }
.rapor-sonuc { display: grid; gap: 10px; min-width: 0; }
.rapor-liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rapor-liste > li { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.rapor-liste > li.urgent { border-left: 4px solid var(--urgent); }
.rapor-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rapor-bas strong { overflow-wrap: anywhere; }
.rapor-adim { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; font-size: 14px; }
.rapor-adim dt { color: var(--muted); }
.rapor-adim dd { margin: 0; overflow-wrap: anywhere; }

.hedef-asti { color: var(--urgent); font-weight: 600; font-size: 12px; }
.rapor-hedef { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.rapor-hedef[hidden] { display: none; }
.rapor-hedef input { width: 100%; min-width: 60px; }
.foto-serit { display: flex; flex-wrap: wrap; gap: 12px; }
.foto-grup { display: grid; gap: 4px; }
.foto-kucuk { display: flex; flex-wrap: wrap; gap: 6px; }
.foto-kucuk img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.detay-sayfa { padding: 14mm; color: #000; background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 11pt; }
.detay-sayfa h1 { margin: 2mm 0 5mm; font-size: 18pt; }
.detay-sayfa h2 { margin: 6mm 0 2mm; font-size: 13pt; }
.detay-sayfa .muted, .detay-sayfa dt { color: #555; }
.detay-sayfa .foto-kucuk img { width: 55mm; height: 55mm; }
.detay-sayfa .gecmis-liste { list-style: none; margin: 0; padding: 0; }
.detay-sayfa .gecmis-liste li { padding: 1.5mm 0; border-bottom: 1px solid #ddd; break-inside: avoid; }
.detay-sayfa .gecmis-liste .meta { display: block; color: #555; font-size: 9pt; }
.rapor-alt { display: flex; flex-wrap: wrap; gap: 16px; }
.rapor-alt .link { margin: 0; }
