:root {
  --navy: #0f6e78;
  --navy-2: #0c5962;
  --accent: #14a3b0;
  --accent-dark: #0e8894;
  --bg: #f4f8f9;
  --card: #ffffff;
  --text: #1e2e33;
  --muted: #6c7e86;
  --line: #e2ecef;
  --ok: #0f8a7e;
  --off: #b5473d;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body { margin: 0; }

.app-body { background: var(--bg); }

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 236px;
  background: #fff;
  color: var(--text);
  flex-direction: column;
  padding: .9rem .7rem .8rem;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  transition: width .18s ease;
  flex-shrink: 0;
}

.sidebar-daralt {
  position: absolute;
  top: 1.15rem;
  right: -.7rem;
  z-index: 6;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.app-shell.menu-dar .app-sidebar {
  width: 72px;
  padding-left: .4rem;
  padding-right: .4rem;
}

.app-shell.menu-dar .brand > span:not(.brand-icon),
.app-shell.menu-dar .user-meta,
.app-shell.menu-dar .menu-grup summary {
  display: none;
}

.app-shell.menu-dar .brand,
.app-shell.menu-dar .sidebar-user,
.app-shell.menu-dar .nav-link {
  justify-content: center;
}

.app-shell.menu-dar .nav-link {
  font-size: 0;
  gap: 0;
  padding-left: .35rem;
  padding-right: .35rem;
}

.app-shell.menu-dar .nav-link i { font-size: 1.05rem; }

.app-shell.menu-dar .menu-grup + .menu-grup {
  border-top: 1px solid var(--line);
  margin-top: .35rem;
  padding-top: .35rem;
}

.brand {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: .2rem .45rem .85rem;
  font-size: .92rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e6f6f8;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  overflow-y: auto;
  padding-right: .15rem;
}

.menu-grup { margin: 0 0 .15rem; }
.menu-grup summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .7rem .2rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}
.menu-grup summary::-webkit-details-marker { display: none; }
.menu-grup summary::after {
  content: "";
  width: .38rem;
  height: .38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: .15rem;
}
.menu-grup[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.menu-grup .nav-link { margin-left: .15rem; }

.uyari-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid #6b7c8d;
  border-radius: 12px;
  padding: .85rem 1rem;
}

.uyari-card.kritik { border-left-color: var(--off); background: #fff8f7; }
.uyari-card.uyari { border-left-color: #c78a0d; background: #fffaf0; }
.uyari-card.bilgi { border-left-color: #1d4f91; }

.status-badge.kritik { background: #fde8e6; color: var(--off); }
.status-badge.uyari { background: #fff4d6; color: #8a6408; }
.status-badge.bilgi { background: #e8f1fb; color: #1d4f91; }

.score-bar {
  height: 8px;
  background: #e8edf2;
  border-radius: 99px;
  overflow: hidden;
}
.score-bar span {
  display: block;
  height: 100%;
  background: var(--ok);
}
.score-bar.dusuk span { background: var(--off); }
.score-bar.orta span { background: var(--accent); }

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}

.report-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 46, 74, .04);
}
.report-tile:hover { border-color: var(--accent); }
.report-tile i { font-size: 1.4rem; color: var(--accent); }
.report-tile strong { display: block; margin: .4rem 0 .15rem; }
.report-tile span { color: var(--muted); font-size: .88rem; }

.try-hint {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .35rem;
}

.app-sidebar .nav-link,
.app-offcanvas .nav-link {
  color: #3c5156;
  border-radius: 9px;
  padding: .42rem .7rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 500;
}

.app-sidebar .nav-link:hover,
.app-offcanvas .nav-link:hover {
  background: #f2f8f9;
  color: var(--text);
}

.app-sidebar .nav-link.active,
.app-offcanvas .nav-link.active {
  background: #e6f6f8;
  color: var(--navy);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .4rem 0;
  border-top: 1px solid var(--line);
}

.user-meta { flex: 1; min-width: 0; }
.user-name { display: block; font-weight: 600; font-size: .86rem; }
.user-role { display: block; font-size: .74rem; color: var(--muted); }

.btn-logout {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.app-main { flex: 1; min-width: 0; }

.app-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-title {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 650;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.app-content {
  padding: 1.25rem;
}

.btn-ghost {
  border: 0;
  background: transparent;
  color: var(--navy);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline-navy {
  border: 1px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

.pano-ust {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: .7rem;
}

.pano-kart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.pano-kart span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 650;
}

.pano-kart strong {
  display: block;
  margin: .2rem 0 .15rem;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.pano-kart small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}

.pano-kart.vurgu {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pano-kart.vurgu span,
.pano-kart.vurgu small { color: #d5eef2; }

.pano-serit {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
}

.pano-serit a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .7rem;
  color: var(--text);
  text-decoration: none;
  font-size: .76rem;
}

.pano-serit b { font-weight: 750; }

.pano-iki {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: .75rem;
  margin-bottom: .75rem;
  align-items: start;
}

.pano-tablo { max-height: 22rem; }

.pano-evrak { display: flex; flex-direction: column; gap: .45rem; }

.pano-evrak a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .65rem;
}

.pano-evrak strong { display: block; font-size: .82rem; }
.pano-evrak small { display: block; color: var(--muted); font-size: .7rem; }

@media (max-width: 980px) {
  .pano-ust,
  .pano-iki { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .pano-ust,
  .pano-iki { grid-template-columns: 1fr; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(11, 46, 74, .04);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  display: block;
}

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 650;
  margin: .25rem 0;
}

.stat-card.accent {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.stat-card.accent span,
.stat-card.accent small { color: #d5eef2; }

.kalem-ozet {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.kalem-widget { border-width: 1px; border-style: solid; }
.kalem-widget span { font-weight: 650; }
.kalem-widget strong { color: inherit; }
.kalem-mazot { background: #e7f6ec; color: #0f6b3c; border-color: #b7e0c6; }
.kalem-adblue { background: #e5f7fb; color: #0b6e86; border-color: #b5e3ee; }
.kalem-otoyol { background: #e8f0ff; color: #1d4ed8; border-color: #c5d7fb; }
.kalem-park { background: #fff6e5; color: #9a5b00; border-color: #f3ddb0; }
.kalem-tamir { background: #fff1e8; color: #c2410c; border-color: #f8d0bc; }
.kalem-kantar { background: #f3f0ff; color: #5b21b6; border-color: #ddd6fe; }
.kalem-dezenfektan { background: #eefbf3; color: #047857; border-color: #c6f0d8; }
.kalem-ceza { background: #fdecec; color: #b42318; border-color: #f6c9c6; }
.kalem-dozvolo { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.kalem-isletme { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }
.kalem-maas { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.kalem-yemek { background: #fff7ed; color: #b45309; border-color: #fed7aa; }
.kalem-konaklama { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.kalem-diger { background: #f4f6f8; color: #334155; border-color: #e2e8f0; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(11, 46, 74, .04);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
}

.panel-head h2 {
  font-size: .95rem;
  margin: 0;
  font-weight: 650;
}

.table-responsive {
  overflow-x: scroll;
  overflow-y: auto;
  max-height: calc(100vh - 13rem);
  scrollbar-gutter: stable;
  scrollbar-color: #8aa0a6 #e7eef0;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 12px;
  width: 10px;
}

.table-responsive::-webkit-scrollbar-track { background: #e7eef0; }

.table-responsive::-webkit-scrollbar-thumb {
  background: #8aa0a6;
  border-radius: 8px;
  border: 2px solid #e7eef0;
}

.table-responsive > .table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-responsive th,
.table-responsive td {
  white-space: nowrap;
}

.table {
  --bs-table-bg: transparent;
  font-size: .75rem;
}

.konum-harita {
  height: 28rem;
  border-bottom: 1px solid var(--line);
  background: #e7eef2;
}

.takip-sayfa {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.takip-hata {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.takip-sayac {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 5;
  min-width: 5.5rem;
  padding: .35rem .65rem;
  text-align: right;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .6rem;
}

.takip-sayac span {
  display: block;
  font-size: .68rem;
  color: var(--muted);
}

.takip-sayac strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

.takip-ust {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 7rem .8rem 1rem;
}

.takip-ust strong {
  font-size: 1.15rem;
}

.takip-ust span,
.takip-alt,
.takip-bos {
  color: var(--muted);
}

.takip-bos {
  padding: 0 1rem 1rem;
}

.takip-harita {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 22rem;
  border: 0;
  background: #e7eef2;
}

.takip-alt {
  padding: .8rem 1rem 1.2rem;
  line-height: 1.5;
}

#sefer-qr {
  width: 196px;
  height: 196px;
  background: #fff;
}

.konum-harita .leaflet-popup-content {
  margin: .6rem .8rem;
  font-size: .8rem;
  line-height: 1.45;
}

.masraf-tablo .sabit-hucre {
  position: sticky;
  background: var(--card);
  z-index: 1;
  min-width: 7.5rem;
}

.masraf-tablo .sabit-son {
  min-width: 12rem;
  box-shadow: 1px 0 0 var(--line);
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  text-align: center !important;
  border-bottom-color: var(--line);
  box-shadow: inset 0 -1px 0 var(--line);
}

.masraf-tablo thead .sabit-hucre {
  z-index: 4;
  background: var(--card);
}

.ozet-serit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin: 0 0 .9rem;
}
.ozet-serit div {
  background: #f4fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .7rem;
}
.ozet-serit span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}
.ozet-serit strong {
  display: block;
  margin-top: .15rem;
  font-size: .92rem;
  font-weight: 650;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .78rem;
  font-weight: 700;
}

.status-badge.ongoing { background: #fff4d6; color: #8a6408; }
.status-badge.done { background: #e5f7ef; color: var(--ok); }
.status-badge.acik { background: #e7f1fb; color: #1d4f91; }
.status-badge.kapali { background: #fde8e6; color: #b42318; }
.status-badge.off { background: #fde8e6; color: var(--off); }
.status-badge.kasayaiade { background: #e8f1fb; color: #1d4f91; }
.status-badge.soforalacakli { background: #fde8e6; color: var(--off); }
.status-badge.denk { background: #e5f7ef; color: var(--ok); }

.mutabakat {
  border-left: 6px solid var(--navy);
}
.mutabakat h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .35rem;
}
.mutabakat.kasayaiade { border-left-color: #1d4f91; }
.mutabakat.soforalacakli { border-left-color: var(--off); }
.mutabakat.denk { border-left-color: var(--ok); }

.card-list { display: grid; gap: .75rem; }

.info-card {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  color: inherit;
  text-decoration: none;
}

.info-card .muted,
.muted { color: var(--muted); font-size: .9rem; }

.kasa-izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .4rem;
}
.kasa-kisi {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  font-size: .88rem;
}
.kasa-kisi i { color: var(--navy); }
.kasa-kisi:hover { background: #f2f8f9; }
.vade-gec, .ozet-serit .vade-gec { color: var(--off); font-weight: 650; }

.form-section {
  font-size: .95rem;
  font-weight: 700;
  margin: .25rem 0 .75rem;
}

.form-panel {
  max-width: 880px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.filter-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-pills a {
  border-radius: 999px;
  padding: .4rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.filter-pills a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .85rem;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.chip {
  background: #eef3f8;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .85rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  border: 1px solid var(--line);
}

.empty-state i {
  font-size: 2.4rem;
  color: var(--accent);
}

.empty-state h2 { margin-top: 1rem; font-weight: 800; }

.app-offcanvas { background: #fff; color: var(--text); }
.app-offcanvas .offcanvas-body { overflow-y: auto; }

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
}

.mobile-tabbar a,
.mobile-tabbar button {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  font-size: .72rem;
  font-weight: 700;
}

.mobile-tabbar i { font-size: 1.15rem; }
.mobile-tabbar a.active { color: var(--navy); }

@media (max-width: 991.98px) {
  .app-content { padding-bottom: 5.5rem; }
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(232,163,23,.25), transparent 32%),
    linear-gradient(160deg, #071e31, #0b2e4a 55%, #134468);
  padding: 1.25rem;
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand .brand-icon {
  margin: 0 auto 1rem;
}

.auth-brand h1 {
  font-weight: 800;
  margin-bottom: .25rem;
}

.auth-brand p { color: var(--muted); }

.sefer-sekme-satir {
  display: flex;
  align-items: flex-end;
  gap: .35rem;
  margin: 0 0 1rem;
}

.sefer-sekme {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.sefer-genis-kapat {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 .2rem .25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  place-items: center;
  font-size: 1.05rem;
}

body.sefer-genis .app-sidebar,
body.sefer-genis .app-topbar,
body.sefer-genis .sefer-ust,
body.sefer-genis .mobile-tabbar,
body.sefer-genis .sefer-genislet {
  display: none !important;
}

body.sefer-genis .sefer-genis-kapat {
  display: grid;
  position: fixed;
  top: .55rem;
  right: .75rem;
  z-index: 40;
  margin: 0;
  background: var(--bg);
}

html:has(body.sefer-genis),
body.sefer-genis {
  height: 100%;
  overflow: hidden;
}

body.sefer-genis .app-shell,
body.sefer-genis .app-main,
body.sefer-genis .app-content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.sefer-genis .app-content {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: .75rem;
}

body.sefer-genis .sefer-sekme-satir {
  flex: 0 0 auto;
  position: static;
  background: var(--bg);
  margin: 0 -1.25rem .75rem;
  padding: .45rem 3.2rem 0 1rem;
}

body.sefer-genis .sekme-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body.sefer-genis .sekme-panel.active > .panel:has(> .table-responsive),
body.sefer-genis .sekme-panel.active > section.panel:has(> .table-responsive) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

body.sefer-genis .sekme-panel.active > .panel > .table-responsive,
body.sefer-genis .sekme-panel.active > section.panel > .table-responsive {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

body.sefer-genis .sekme-panel.active:not(:has(> .panel > .table-responsive)):not(:has(> section.panel > .table-responsive)) {
  overflow: auto;
}

.sefer-sekme button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: .75rem 1.05rem;
  font-weight: 650;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.sefer-sekme button.active {
  background: transparent;
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.kalem-sec,
.odeme-sec,
.ulke-sec {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.kalem-sec > i,
.odeme-sec > .odeme {
  flex: 0 0 auto;
}

.kalem-sec > select,
.odeme-sec > select,
.ulke-sec > input {
  flex: 1 1 auto;
  min-width: 0;
}

.ulke-oneriler {
  position: absolute;
  z-index: 6;
  top: calc(100% + .2rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 13rem;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(15, 46, 51, .08);
}

.ulke-oneriler button {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: .45rem .7rem;
}

.ulke-oneriler button:hover {
  background: #f2f8f9;
}

.odeme {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  border-radius: 999px;
  padding: .12rem .5rem;
  font-weight: 650;
  font-size: .78rem;
  white-space: nowrap;
}

.odeme-nakit { background: #e5f6ef; color: #0d7a4f; }
.odeme-kasa { background: #fff4e5; color: #9a5b00; }
.odeme-kart { background: #e7f1fb; color: #1d4f91; }
.odeme-kredi { background: #f3e8fb; color: #6b2d8b; }
.odeme-eurowag { background: #e6f6f8; color: #0f6e78; }

.ulke-hucre { white-space: nowrap; }

.sekme-ozet { max-width: 16rem; margin-bottom: .75rem; }
.ulke-ozet {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: .4rem;
}
.ulke-ozet .stat-card {
  min-width: 0;
  padding: .55rem .3rem;
  text-align: center;
}
.ulke-ozet .stat-card span,
.ulke-ozet .stat-card strong {
  overflow-wrap: anywhere;
}
.ulke-ozet .stat-card span { font-size: clamp(.62rem, 1.4vw, .85rem); }
.ulke-ozet .stat-card strong { font-size: clamp(.72rem, 1.7vw, 1.05rem); margin: .15rem 0; }
.sekme-panel { display: none; }
.sekme-panel.active { display: block; }

.kayit-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}

.kayit-satir details summary,
.ekle-kutu summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}

.kayit-satir details summary::-webkit-details-marker,
.ekle-kutu summary::-webkit-details-marker { display: none; }

.ekle-kutu { margin-top: .75rem; }

.ekle-dugmeler {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.sekme-panel .table { font-size: .72rem; }

.satir-tik { cursor: pointer; }
.satir-tik.acik { background: #f4f7fb; }

.satir-detay td {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.aciklama-metin {
  margin: 0 0 .75rem;
  color: var(--text);
}

dialog.ekle-pencere {
  border: none;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(11, 46, 74, .28);
}

dialog.ekle-pencere.genis { width: min(46rem, calc(100vw - 1.25rem)); }

.excel-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 .4rem;
}
.excel-bar .btn {
  min-height: 1.7rem;
  padding: .16rem .55rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .72rem;
}

.tarih-sec { display: grid; gap: .45rem; }
.tarih-sec label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin: 0;
}
.tarih-sec input[type="date"] { flex: 1 1 9rem; min-width: 0; }

td.kisa { white-space: nowrap; }
td.log-detay { min-width: 18rem; white-space: nowrap; }

.islem-hucre { white-space: nowrap; width: 1%; text-align: left; }
.table thead th.islem-hucre { text-align: left !important; z-index: 3; }
.islem-hucre form { display: inline-flex; margin: 0; }
.btn-islem,
.islem-hucre .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  min-height: 1.7rem;
  min-width: 0;
  padding: .16rem .5rem;
  border-radius: 999px;
  border: 1px solid #e4ebf3;
  background: #f6f8fb;
  color: #5c7084;
  font-weight: 500;
  font-size: .72rem;
  line-height: 1.2;
  box-shadow: none;
}
.btn-islem:hover,
.islem-hucre .btn:hover { background: #eef3f8; border-color: #d3deea; color: #1d4f91; }
.btn-islem.tehlike,
.islem-hucre .btn-outline-danger {
  color: #8d5a62;
  border-color: #f0e0e3;
  background: #fdf8f8;
}
.btn-islem.tehlike:hover,
.islem-hucre .btn-outline-danger:hover { background: #fbeeee; color: #8d5a62; }
.islem-hucre .btn-outline-success {
  color: #3d6b52;
  background: #f5faf7;
  border-color: #d7eadf;
}
.islem-hucre .btn-accent,
.islem-hucre .btn-accent:hover {
  color: #1d4f91;
  background: #f3f7fc;
  border-color: #d5e4f3;
}
.islem-hucre .btn-islem + form,
.islem-hucre form + .btn-islem,
.islem-hucre .btn-islem + .btn-islem { margin-left: .35rem; }

.kasa-satir { cursor: pointer; }
.kasa-satir:hover { background: #f4f7fb; }

dialog.ekle-pencere::backdrop {
  background: rgba(7, 16, 24, .45);
}

@media (max-width: 720px) {
  .ozet-serit { grid-template-columns: 1fr 1fr; }
  .panel-head { flex-wrap: wrap; gap: .5rem; }
  dialog.ekle-pencere { padding: .9rem; }
  .sekme-panel .table { font-size: .72rem; }
  .islem-hucre {
    position: sticky;
    left: 0;
    min-width: 3.1rem;
    background: #fff;
    box-shadow: 8px 0 10px #fff;
    z-index: 1;
  }
  .table thead th.islem-hucre { z-index: 4; }
  .btn-islem span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btn-islem { min-height: 2.1rem; min-width: 2.1rem; padding: .35rem; }
}
