/* Rehber paneli ve yönetici paneli ortak stilleri */
body { background: #f5f2ee; }
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* Yönetici taklidi bandı — sayfanın en üstünde sabit durur */
.taklit-bar {
  position: sticky; top: 0; z-index: 200;
  display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: #14232e; color: #fff; padding: 9px 16px; font-size: .88rem;
  border-bottom: 2px solid var(--brand);
}
.taklit-bar span { display: inline-flex; align-items: center; gap: 8px; }
.taklit-bar svg { width: 16px; height: 16px; color: var(--gold); }
.taklit-bar b { font-weight: 800; }
.taklit-bar i { color: #ffb4a6; font-style: normal; font-weight: 700; }
.taklit-bar .btn { background: var(--brand); color: #fff; padding: 6px 14px; }
.taklit-bar .btn:hover { background: var(--brand-deep); }
/* Bant yüksekliği JS'ten --taklit-h olarak gelir; yapışkan öğeler bandın altından başlar */
body.taklit .side { top: var(--taklit-h, 0px); height: calc(100vh - var(--taklit-h, 0px)); }
body.taklit .mobbar { top: var(--taklit-h, 0px); }

@media (max-width: 640px) {
  .taklit-bar { font-size: .78rem; padding: 7px 10px; gap: 8px; justify-content: space-between; }
  .taklit-bar span { flex: 1; min-width: 0; }
  .taklit-bar .uzun { display: none; }          /* dar ekranda yönetici adını gizle */
  .taklit-bar .btn { padding: 5px 11px; font-size: .78rem; white-space: nowrap; flex: none; }
}

/* Sidebar */
.side { background: var(--sea-deep); color: #cfe0e4; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.side.admin { background: #14232e; }
.side .logo { color: #fff; margin: 4px 8px 22px; }
.side .brand { margin: 4px 8px 22px; }
.side .brand img { height: 38px; }
.side a.snav {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px;
  font-weight: 600; font-size: .93rem; cursor: pointer; transition: background .18s, color .18s;
}
.side a.snav svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.side a.snav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.snav.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(226,85,58,.9); }
.side a.snav .pill { margin-left: auto; background: rgba(255,255,255,.22); border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 800; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.13); padding-top: 14px; }
.side-me { display: flex; gap: 10px; align-items: center; padding: 8px; }
.side-me img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.side-me b { font-size: .88rem; color: #fff; display: block; }
.side-me small { font-size: .75rem; color: #9fb9bf; }

/* İçerik */
.content { padding: 26px 30px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.7rem; }
.page-head p { color: var(--ink-2); font-size: .94rem; margin-top: 4px; }
.page-head p svg { width: 15px; height: 15px; vertical-align: -.16em; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.stat .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); margin-bottom: 12px; }
.stat .ic svg { width: 18px; height: 18px; }
.stat b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1.1; }
.stat span { font-size: .84rem; color: var(--ink-3); }
.stat.accent .ic { background: var(--brand-soft); color: var(--brand-deep); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; min-width: 0; }
.card > h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card > .sub { font-size: .86rem; color: var(--ink-3); margin-bottom: 16px; }

/* Tur listesi satırı */
/* Aksiyon düğmeleri sığmazsa kendi satırına iner, metni ezmez */
.trow { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.trow:last-child { border-bottom: 0; }
.trow > img, .trow > .noimg { width: 108px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: var(--sea-soft); display: grid; place-items: center; color: var(--ink-3); }
.trow-main { flex: 1 1 270px; min-width: 0; }
.trow-main h4 { font-size: 1rem; margin-bottom: 5px; }
.trow-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); align-items: center; }
.trow-meta span { display: inline-flex; gap: 5px; align-items: center; }
.trow-meta svg { width: 13px; height: 13px; }
.trow-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }

/* Editör */
.ed-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }

/* Stok fotoğraf (Unsplash) seçici */
.stock-open { width: 100%; margin-top: 10px; justify-content: center; }

.stock-back {
  position: fixed; inset: 0; z-index: 300; background: rgba(12,24,31,.55);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
}
.stock-modal {
  background: var(--surface); border-radius: var(--r); width: min(920px, 100%);
  max-height: min(760px, 92vh); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(12,24,31,.5);
}
.stock-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.stock-head h3 { font-size: 1.08rem; }
.stock-head p { font-size: .86rem; color: var(--ink-3); margin-top: 3px; }
.stock-head .x-btn { margin-left: auto; flex: none; }
.stock-search { display: flex; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.stock-search .input { flex: 1; min-width: 0; }
.stock-search .btn { flex: none; }
.stock-body { flex: 1; overflow-y: auto; padding: 16px 22px; min-height: 220px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stock-item {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; background: var(--sea-soft); aspect-ratio: 4/3; display: block;
}
.stock-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.stock-item:hover img { transform: scale(1.05); }
.stock-item .tick {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center; opacity: 0; transform: scale(.7);
  transition: all .18s; color: var(--brand-deep);
}
.stock-item .tick svg { width: 14px; height: 14px; }
.stock-item .by {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: .7rem; color: #fff;
  background: linear-gradient(0deg, rgba(10,25,33,.8), transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.stock-item.on { border-color: var(--brand); }
.stock-item.on .tick { opacity: 1; transform: none; background: var(--brand); color: #fff; }
.stock-empty { text-align: center; color: var(--ink-3); padding: 46px 20px; display: grid; gap: 12px; justify-items: center; }
.stock-empty svg { width: 32px; height: 32px; }
.stock-empty p { font-size: .9rem; max-width: 34ch; }
.stock-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.stock-foot > span { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.stock-foot > div { margin-left: auto; }
.stock-note { padding: 0 22px 16px; font-size: .76rem; color: var(--ink-3); }
.stock-note a { color: var(--brand-deep); text-decoration: underline; }
@media (max-width: 560px) {
  .stock-back { padding: 0; }
  .stock-modal { max-height: 100vh; height: 100vh; border-radius: 0; width: 100%; }
  .stock-head, .stock-search, .stock-body, .stock-foot, .stock-note { padding-left: 16px; padding-right: 16px; }
  .stock-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .stock-foot { flex-wrap: wrap; }
  .stock-foot > div { margin-left: 0; width: 100%; }
  .stock-foot .btn { flex: 1; }
}

/* Yapay zeka ile metin üretme butonu — etiketin sağ ucunda */
.lbl-ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  padding: 5px 12px; min-height: 32px; font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--brand-deep); cursor: pointer; transition: all .18s; text-transform: none; letter-spacing: 0;
}
.ai-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.ai-btn:disabled { opacity: .65; cursor: default; }
.ai-btn svg { width: 14px; height: 14px; flex: none; }
.ai-spin {
  width: 13px; height: 13px; flex: none; border-radius: 50%;
  border: 2px solid var(--brand-soft); border-top-color: var(--brand);
  animation: ai-turn .7s linear infinite;
}
@keyframes ai-turn { to { transform: rotate(360deg); } }
.textarea.ai-busy { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .ai-spin { animation-duration: 2s; }
  .ai-btn:hover:not(:disabled) { transform: none; }
}
@media (max-width: 560px) {
  .ai-btn { margin-left: 0; }         /* dar ekranda etiketin altına iner */
  .ai-btn span { font-size: .76rem; }
}
.rows { display: grid; gap: 10px; }
.row-item { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfaf8; }
.row-head { display: flex; gap: 8px; align-items: center; }
.row-head b { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.row-head .x-btn { margin-left: auto; }
/* Tarih satırı: dar kolona sığması için 2×2 + silme sütunu */
.date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 8px; align-items: end;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfaf8; }
.date-row .field:nth-child(1) { grid-area: 1 / 1; }
.date-row .field:nth-child(2) { grid-area: 1 / 2; }
.date-row .field:nth-child(3) { grid-area: 2 / 1; }
.date-row .field:nth-child(4) { grid-area: 2 / 2; }
.date-row .x-btn { grid-area: 1 / 3 / span 2; align-self: center; }
.date-row .input, .dep-row .input { padding: 9px 11px; font-size: .9rem; }

.dep-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 110px 34px; gap: 8px; align-items: end;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfaf8; }
.dep-row .x-btn { align-self: center; }

.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.imgbox { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.imgbox.cover { border-color: var(--brand); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; }
.imgbox .tools { position: absolute; inset: auto 0 0 0; display: flex; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.imgbox .tools button { flex: 1; border: 0; border-radius: 7px; background: rgba(255,255,255,.9); font-size: .72rem; font-weight: 700; padding: 5px; cursor: pointer; }
.imgbox .tag { position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
/* Stok rozeti sağ üstte — aynı kutuda "Kapak" ile çakışmasın */
.imgbox .tag-stock { left: auto; right: 6px; background: rgba(20,35,46,.82); }
/* label olarak kullanıldığı için display şart: inline kalırsa kutu parçalanır */
.drop { display: block; border: 2px dashed var(--line); border-radius: var(--r); padding: 26px; text-align: center; cursor: pointer; transition: all .18s; color: var(--ink-3); }
.drop:hover, .drop.over { border-color: var(--sea); background: var(--sea-soft); color: var(--sea); }
.drop svg { display: block; width: 28px; height: 28px; margin: 0 auto 8px; }

/* Onay kutulu satır (öne çıkarma, mavi tik vb.) */
.switch { display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfaf8; }
.switch:hover { border-color: var(--sea); }
.switch input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.switch b { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.switch b svg { width: 15px; height: 15px; color: var(--gold); }
.switch small { display: block; margin-top: 3px; font-size: .8rem; color: var(--ink-3); line-height: 1.45; }
.switch.tickrow b svg { color: var(--tick); }

/* ---------- Otobüs yerleşim planı ---------- */
.bus-wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.bus { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex: 0 0 auto; }
.bus-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bus-head b { display: block; font-size: .95rem; }
.bus-head small { display: block; font-size: .78rem; color: var(--ink-3); }
.bus-body { padding: 14px; background: #f7f5f1; }
.bus-front { text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px dashed var(--line); display: flex; gap: 6px; justify-content: center; align-items: center; }
.bus-front svg { width: 15px; height: 15px; }
.bus-row { display: flex; align-items: center; gap: 0; margin-bottom: 7px; }
.bus-row .bus-side { display: flex; gap: 6px; }
.bus-row .aisle { width: 26px; flex: none; }

.seat {
  width: 52px; height: 46px; border-radius: 9px 9px 5px 5px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; font-size: .66rem; line-height: 1.15; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 2px; overflow: hidden; position: relative; transition: transform .12s, box-shadow .15s, border-color .15s;
}
.seat-gap { visibility: hidden; cursor: default; }
.seat-free { color: var(--ink-3); font-weight: 600; background: #fbfaf8; border-style: dashed; }
.seat-full { font-weight: 700; cursor: grab; }
.seat-full b { font-size: .6rem; opacity: .6; font-weight: 700; }
.seat-full span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-full:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.seat-full.dragging { opacity: .35; cursor: grabbing; }
.seat-full { touch-action: none; }
.seat-ghost { position: fixed; z-index: 200; pointer-events: none; transform: translate(-50%, -50%);
  box-shadow: var(--shadow); opacity: .95; }
.seat.over { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); transform: scale(1.06); }
.seat .grp { position: absolute; top: 2px; right: 2px; display: grid; }
.seat .grp svg { width: 9px; height: 9px; opacity: .75; }
.seat .tkt { position: absolute; top: 2px; left: 2px; display: grid; color: var(--ok); }
.seat .tkt svg { width: 9px; height: 9px; }
.seat .tkt.eski { color: var(--danger); }
.seat.bilet-eski { box-shadow: inset 0 0 0 2px var(--danger); }

/* Bilet */
.uyari-kutu { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--warn-soft); color: #7a3c05; font-size: .86rem; line-height: 1.5; }
.uyari-kutu svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--warn); }
.bilet-onizleme { background: #efeae3; border-radius: var(--r-sm); padding: 16px; display: flex; justify-content: center; }
.bilet-onizleme canvas { max-width: 300px; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }

/* Cinsiyet renkleri */
.seat.g-k { background: #fde7f1; border-color: #f4b8d4; color: #99245c; }
.seat.g-e { background: #e2eefb; border-color: #a9c9ec; color: #1c4d80; }
.seat.g-x { background: #f1eee8; border-color: #d8d2c7; color: #6b6357; }

.seat-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: .82rem; color: var(--ink-2); }
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.seat-legend .sw { width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.seat-legend .sw.g-k { background: #fde7f1; border-color: #f4b8d4; }
.seat-legend .sw.g-e { background: #e2eefb; border-color: #a9c9ec; }
.seat-legend .sw.g-x { background: #f1eee8; border-color: #d8d2c7; }
.seat-legend .sw.free { background: #fbfaf8; border-style: dashed; }

.badge-k { background: #fde7f1; color: #99245c; }
.badge-e { background: #e2eefb; color: #1c4d80; }

/* Yolcu kartı satırları */
.pax-rows { display: grid; gap: 9px; font-size: .9rem; }
.pax-rows > div { display: flex; gap: 10px; align-items: baseline; }
.pax-rows span { flex: none; width: 78px; font-size: .78rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pax-rows a { color: var(--sea); font-weight: 600; }
.pax-rows i { color: var(--ink-2); }

/* Cinsiyet düzeltme listesi */
.gender-fix { display: grid; gap: 8px; margin-top: 12px; }
.gfix { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfaf8; }
.gfix > div { display: flex; gap: 6px; }

@media (max-width: 560px) {
  .bus-wrap { gap: 14px; }
  .seat { width: 44px; height: 42px; font-size: .6rem; }
  .bus-row .aisle { width: 16px; }
  .bus-body { padding: 10px; }
}

/* ---------- Ödeme ---------- */
.odeme-kutu { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 10px; }
.odeme-kutu.borclu { border-color: #f0c9a0; background: #fdf8f1; }
.odeme-kutu.tamam { border-color: #bfe3d3; background: #f4fbf8; }
.odeme-satir { display: flex; gap: 14px; flex-wrap: wrap; }
.odeme-satir > div { flex: 1; min-width: 84px; }
.odeme-satir span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); }
.odeme-satir b { font-size: 1.02rem; font-weight: 800; }
.odeme-kutu.borclu .kalan { color: var(--danger); }
.odeme-kutu.tamam .kalan { color: var(--ok); }
.odeme-kutu small { font-size: .82rem; color: var(--ink-2); font-style: italic; }
.odeme-ozet { padding: 10px 12px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 700; text-align: center; }
.odeme-ozet.borclu { background: var(--warn-soft); color: #7a3c05; }
.odeme-ozet.tamam { background: var(--ok-soft); color: var(--ok); }
.odeme-ozet.hata { background: var(--danger-soft); color: var(--danger); }

/* ---------- Finans ---------- */
.fin-bar { height: 10px; border-radius: 999px; background: #efece7; overflow: hidden; }
.fin-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ok), #2fa37c); }
.fin-bar-lbl { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 700; margin-top: 8px; color: var(--ink-2); }
.fin-bar-lbl .borc { color: var(--danger); }

.fin-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.fin-tot { display: flex; gap: 20px; flex-wrap: wrap; }
.fin-tot span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); }
.fin-tot b { font-size: 1.06rem; font-weight: 800; }
.fin-tot .odendi { color: var(--ok); }
.fin-tot .borc { color: var(--danger); }
.fin-tot .tamam { color: var(--ok); }

.fin-date { margin-bottom: 14px; }
.fin-date-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: #f7f5f1; border-radius: var(--r-sm); padding: 9px 12px; font-size: .88rem; }
.fin-date-head b { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 160px; }
.fin-date-head b svg { width: 14px; height: 14px; color: var(--ink-3); }

.fin-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fin-row:last-child { border-bottom: 0; }
.fin-who { flex: 1; min-width: 180px; }
.fin-who b { font-size: .94rem; display: block; }
.fin-who small { display: block; font-size: .8rem; color: var(--ink-3); }
.fin-who small.not { color: var(--ink-2); font-style: italic; }
.fin-num { font-size: .9rem; font-weight: 700; min-width: 78px; text-align: right; }
.fin-num.odendi { color: var(--ok); }
.fin-num.borc { color: var(--danger); }
.fin-num.tamam { color: var(--ink-3); }

@media (max-width: 720px) {
  .fin-num { min-width: 62px; font-size: .84rem; }
  .fin-date-head { font-size: .82rem; }
}

/* Rezervasyon satırı */
.brow { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.brow:last-child { border-bottom: 0; }
.brow .who { flex: 1; min-width: 190px; }
.brow .who b { font-size: .96rem; }
.brow .who small { display: block; color: var(--ink-3); font-size: .82rem; }

/* Tablo (yönetici) */
.tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
table.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 0 12px 10px; white-space: nowrap; }
table.tbl th.num, table.tbl td.num { text-align: right; }
table.tbl td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:hover { background: #fbf9f6; }
table.tbl .who { display: flex; gap: 10px; align-items: center; min-width: 190px; }
table.tbl .who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
table.tbl .who b { display: block; font-size: .92rem; }
table.tbl .who small { color: var(--ink-3); font-size: .78rem; }
table.tbl td.acts { white-space: nowrap; text-align: right; }
table.tbl td.acts .btn { margin-left: 4px; }

/* Basit yatay bar */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; font-size: .86rem; }
.bar-track { background: #efece7; border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sea), #1d7a8c); }
.bar-row .num { text-align: right; font-weight: 700; color: var(--ink-2); }
.bar-row.alt .bar-fill { background: linear-gradient(90deg, var(--brand), #f0873f); }

.mobbar { display: none; }
.scrim { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .25s; z-index: 90; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .content { padding: 18px 16px 90px; }
  .mobbar { display: flex; align-items: center; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px; position: sticky; top: 0; z-index: 80; }
  .mobbar .burger { display: block; margin: 0; }
  .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .brow .who { min-width: 100%; }
  .brow > div:last-child { margin-left: auto; }
  .dep-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .dep-row .field:nth-child(1) { grid-area: 1 / 1; }
  .dep-row .field:nth-child(3) { grid-area: 1 / 2; }
  .dep-row .field:nth-child(2) { grid-area: 2 / 1 / auto / span 2; }
  .dep-row .x-btn { grid-area: 1 / 3 / span 2; }
  .trow > img, .trow > .noimg { width: 74px; height: 56px; }
  .trow-act { width: 100%; justify-content: flex-start; }
  .tbl-wrap { margin: 0 -18px; padding: 0 18px; }
  .bar-row { grid-template-columns: 100px 1fr 46px; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15,28,38,.5); z-index: 85; }
}
