/* =====================================================================
   travelAI UETDS - Tasarim sistemi
   Renkler logodan: komur (#2E2E2E) + turuncu gradyan (#F7A01B -> #EB5E14)
   Firma bazli tema ozellestirmesi ileride bu degiskenler uzerinden yapilacak.
   ===================================================================== */
:root {
  --c-primary: #F07818;
  --c-primary-600: #DD6410;
  --c-primary-700: #BF520A;
  --c-primary-50: #FFF4EB;
  --c-primary-100: #FFE4CC;
  --g-primary: linear-gradient(135deg, #F7A01B 0%, #EB5E14 100%);

  --c-charcoal: #2E2E2E;
  --c-charcoal-2: #383838;
  --c-charcoal-3: #474747;

  --c-bg: #F5F5F3;
  --c-surface: #FFFFFF;
  --c-ink: #1E1E1E;
  --c-ink-2: #3D3D3D;
  --c-muted: #6E6E6B;
  --c-border: #E4E3DF;
  --c-border-2: #D3D2CD;

  --c-success: #16865A;
  --c-success-50: #E8F6EF;
  --c-danger: #C93A3A;
  --c-danger-50: #FCECEC;
  --c-warning: #B97800;
  --c-warning-50: #FFF6E0;
  --c-info: #2769B8;
  --c-info-50: #EAF2FC;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .06);
  --shadow: 0 1px 3px rgba(20, 20, 20, .06), 0 6px 20px rgba(20, 20, 20, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar-w: 252px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
}
a { color: var(--c-primary-600); text-decoration: none; }
a:hover { color: var(--c-primary-700); text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--c-ink); }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 1.25rem 0; }
mark { background: var(--c-warning-50); color: var(--c-warning); padding: 0 .2em; border-radius: 3px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--c-primary-100); outline-offset: 1px; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-lg { width: 22px; height: 22px; }
.muted { color: var(--c-muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 40px; padding: .5rem 1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .94rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-600); color: #fff; }
.btn-dark { background: var(--c-charcoal); color: #fff; }
.btn-dark:hover { background: var(--c-charcoal-3); color: #fff; }
.btn-light { background: var(--c-surface); color: var(--c-ink-2); border-color: var(--c-border-2); }
.btn-light:hover { background: var(--c-bg); color: var(--c-ink); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #AE2F2F; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink-2); }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); color: var(--c-ink); }
.btn-sm { min-height: 32px; padding: .3rem .7rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- Formlar ---------- */
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
@media (max-width: 760px) {
  .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
}
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--c-ink-2); }
.field .req { color: var(--c-primary-600); }
.hint { font-size: .82rem; color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: .55rem .75rem;
  font: inherit; color: var(--c-ink);
  background: var(--c-surface); border: 1px solid var(--c-border-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236E6E6B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-100); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--c-danger); }
.field-error { font-size: .82rem; color: var(--c-danger); }
.input-group { position: relative; }
.input-group .input { padding-right: 2.75rem; }
.input-group .btn-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--c-muted); cursor: pointer; }
.btn-icon:hover { background: var(--c-bg); color: var(--c-ink); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--c-ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .12rem 0 0; accent-color: var(--c-primary); flex: none; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: inline-flex; padding: 3px; gap: 3px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); width: 100%; }
.segmented button, .segmented label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 38px; padding: .4rem .75rem; border: 0; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--c-muted); background: transparent; cursor: pointer;
}
.segmented button[aria-selected="true"], .segmented label:has(input:checked) { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-sm); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Uyarilar ---------- */
.alert { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .93rem; margin-bottom: 1rem; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--c-success-50); color: #0F5E3F; border-color: #BFE5D2; }
.alert-error { background: var(--c-danger-50); color: #8E2626; border-color: #F2C7C7; }
.alert-warning { background: var(--c-warning-50); color: #7A5000; border-color: #F2DDA6; }
.alert-info { background: var(--c-info-50); color: #1C4E8A; border-color: #C8DCF5; }
.alert > div { flex: 1; min-width: 0; }
.alert-close { margin: -4px -6px -4px 0; color: inherit; opacity: .7; }

/* ---------- Kart / tablo ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-border); }
.card-header h2, .card-header h3 { margin: 0; }
.card-body { padding: 1.25rem; }
.card + .card { margin-top: 1.25rem; }
.grid > .card, .grid > div > .card:first-child { margin-top: 0; }
.card-narrow { max-width: 600px; }
.grid + .card, .card + .grid, .grid + .grid { margin-top: 1.25rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat { padding: 1.1rem 1.25rem; display: flex; gap: .9rem; align-items: center; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--c-primary-50); color: var(--c-primary-600); flex: none; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .85rem; color: var(--c-muted); }
a.stat:hover { text-decoration: none; background: #FCFCFB; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--c-muted); padding: .7rem 1rem; border-bottom: 1px solid var(--c-border); background: #FAFAF8; white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFCFA; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: .35rem; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--c-muted); }

.dl { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: .55rem 1rem; margin: 0; font-size: .93rem; }
.dl dt { color: var(--c-muted); }
.dl dd { margin: 0; word-break: break-word; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--c-bg); color: var(--c-ink-2); border: 1px solid var(--c-border); }
.badge-success { background: var(--c-success-50); color: var(--c-success); border-color: #BFE5D2; }
.badge-danger { background: var(--c-danger-50); color: var(--c-danger); border-color: #F2C7C7; }
.badge-warning { background: var(--c-warning-50); color: var(--c-warning); border-color: #F2DDA6; }
.badge-info { background: var(--c-info-50); color: var(--c-info); border-color: #C8DCF5; }
.badge-primary { background: var(--c-primary-50); color: var(--c-primary-700); border-color: var(--c-primary-100); }

.tabs { display: flex; gap: .25rem; box-shadow: inset 0 -1px 0 var(--c-border); margin-bottom: 1.25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .9rem; color: var(--c-muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--c-ink); text-decoration: none; }
.tabs a.active { color: var(--c-primary-700); border-bottom-color: var(--c-primary); }
.tabs .count { font-size: .75rem; background: var(--c-bg); border-radius: 999px; padding: 0 .45rem; }

.pagination { display: flex; gap: .35rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--c-border); }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--c-border); font-size: .88rem; color: var(--c-ink-2); }
.pagination .current { background: var(--c-charcoal); color: #fff; border-color: var(--c-charcoal); }

/* ---------- Uygulama iskeleti (admin + firma) ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--c-charcoal); color: #D8D8D5;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem 1rem; }
.sidebar-brand img { height: 34px; width: auto; }
.sidebar-brand .tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c-charcoal-3); padding: .15rem .45rem; border-radius: 4px; }
.sidebar-firma { margin: 0 1rem .75rem; padding: .7rem .85rem; background: var(--c-charcoal-2); border-radius: var(--radius-sm); font-size: .85rem; }
.sidebar-firma strong { display: block; color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-firma span { color: #A9A9A5; }
.nav { list-style: none; margin: 0; padding: .25rem .75rem; display: flex; flex-direction: column; gap: 2px; }
.nav-title { padding: 1rem .75rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8C8C88; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: var(--radius-sm); color: #D8D8D5; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: var(--c-charcoal-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--g-primary); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(235, 94, 20, .28); }
.nav a .badge { margin-left: auto; background: var(--c-primary); color: #fff; border: 0; }
.nav a.active .badge { background: rgba(255, 255, 255, .25); }
.sidebar-footer { margin-top: auto; padding: 1rem 1.25rem; font-size: .78rem; color: #8C8C88; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
  background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 20;
}
.topbar-title { flex: 1; min-width: 0; font-size: 1.1rem; font-weight: 650; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex: none; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c-primary-50); color: var(--c-primary-700); font-weight: 700; font-size: .85rem; flex: none; }
.user-chip .who { line-height: 1.2; }
.user-chip .who strong { display: block; font-size: .88rem; }
.user-chip .who span { font-size: .76rem; color: var(--c-muted); }
.menu-toggle { display: none; }
.content { padding: 1.5rem 2rem; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--c-muted); }

.impersonation-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .5rem 1rem; background: var(--c-warning-50); color: #7A5000; border-bottom: 1px solid #F2DDA6; font-size: .88rem; font-weight: 600; }
.env-bar { padding: .45rem 1.5rem; background: var(--c-info-50); color: var(--c-info); border-bottom: 1px solid #C8DCF5; font-size: .86rem; font-weight: 600; }

.lang-select { min-height: 36px; padding: .3rem 2rem .3rem .65rem; font-size: .86rem; width: auto; }

@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 1rem; }
  .content { padding: 1rem; }
  .user-chip .who { display: none; }
  .topbar .lang-select { max-width: 96px; }
  .page-head .btn { width: 100%; }
}

/* ---------- Giris / basvuru sayfalari ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-brand {
  position: relative; overflow: hidden; background: var(--c-charcoal); color: #E9E9E6;
  display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem;
}
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 36px; background: var(--g-primary); opacity: .9; }
.auth-brand::before { width: 280px; height: 280px; right: -90px; bottom: -90px; transform: rotate(12deg); }
.auth-brand::after { width: 120px; height: 120px; right: 150px; bottom: 170px; opacity: .35; transform: rotate(-8deg); }
.auth-brand img { height: 46px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.auth-brand .pitch { position: relative; z-index: 1; max-width: 440px; }
.auth-brand h2 { color: #fff; font-size: 1.9rem; font-weight: 700; margin-bottom: .75rem; }
.auth-brand p { color: #BEBEBA; font-size: 1.02rem; }
.auth-brand ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.auth-brand li { display: flex; gap: .6rem; align-items: center; color: #D8D8D5; }
.auth-brand li .icon { color: #F7A01B; }
.auth-brand .foot { position: relative; z-index: 1; font-size: .8rem; color: #8C8C88; }
.auth-panel { display: flex; flex-direction: column; padding: 1.5rem 2rem; background: var(--c-surface); }
.auth-top { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.auth-top .logo-mobile { display: none; margin-right: auto; height: 30px; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: 2rem 0; }
.auth-box h1 { font-size: 1.55rem; margin-bottom: .35rem; }
.auth-box .lead { color: var(--c-muted); margin-bottom: 1.5rem; }
.auth-box form { display: grid; gap: 1rem; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }
.auth-alt { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); text-align: center; font-size: .92rem; color: var(--c-muted); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-top .logo-mobile { display: block; }
  .auth-panel { padding: 1rem 1.25rem; }
}

.site-header { background: var(--c-charcoal); }
.site-header .inner { max-width: 1080px; margin: 0 auto; padding: .9rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.site-header img { height: 34px; width: auto; }
.site-header .right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.site-header .lang-select { background-color: var(--c-charcoal-2); color: #fff; border-color: var(--c-charcoal-3); }
.site-header a.btn-ghost { color: #E9E9E6; }
.site-header a.btn-ghost:hover { background: var(--c-charcoal-2); color: #fff; }
.page-narrow { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.page-narrow .card-body { padding: 1.75rem; }
@media (max-width: 760px) { .page-narrow .card-body { padding: 1.1rem; } }
.form-section { margin-top: 1.75rem; }
.form-section:first-child { margin-top: 0; }
.form-section-title { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .9rem; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.callout { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--c-primary-50); border: 1px solid var(--c-primary-100); color: var(--c-ink-2); font-size: .92rem; }
.callout .icon { color: var(--c-primary-600); margin-top: 1px; }
.ip-code { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; background: #fff; border: 1px dashed var(--c-primary); color: var(--c-primary-700); padding: .05rem .45rem; border-radius: 5px; }

.prose { max-width: 760px; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.error-page .code { font-size: 4.5rem; font-weight: 800; line-height: 1; background: var(--g-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page img { height: 36px; margin-bottom: 2rem; }

/* ---------- E-posta onizleme vb. ---------- */
.json-box { background: #FAFAF8; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .75rem; font-size: .82rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

/* =====================================================================
   Firma paneli bilesenleri
   ===================================================================== */
.inline { display: inline-flex; }
.text-danger { color: var(--c-danger) !important; }
.align-end { display: flex; align-items: flex-end; }
.row-muted td { opacity: .55; }
.badge-muted { background: #F0F0EE; color: var(--c-muted); text-decoration: line-through; }
.stat-icon-danger { background: var(--c-danger-50); color: var(--c-danger); }
.site-header-btn { color: #E9E9E6; }
.site-header-btn:hover { background: var(--c-charcoal-2); color: #fff; }
.card-body-border { border-top: 1px solid var(--c-border); }
.card-danger { border-color: #F2C7C7; }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Kurulum adimlari */
.stepper { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.25rem; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 150px; }
.stepper li > a, .stepper li > span { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-muted); font-weight: 600; font-size: .9rem; }
.stepper li > a:hover { text-decoration: none; border-color: var(--c-border-2); color: var(--c-ink); }
.step-no { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-bg); font-size: .82rem; flex: none; }
.step-no .icon { width: 14px; height: 14px; }
.stepper li.done > a { color: var(--c-ink-2); }
.stepper li.done .step-no { background: var(--c-success-50); color: var(--c-success); }
.stepper li.current > a { border-color: var(--c-primary); color: var(--c-ink); box-shadow: 0 0 0 3px var(--c-primary-50); }
.stepper li.current .step-no { background: var(--g-primary); color: #fff; }
.steps-list { margin: .4rem 0 0; padding-left: 1.2rem; }
.steps-list li { margin-bottom: .25rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--c-border); border-radius: 999px; background: #FAFAF8; font-size: .9rem; }

/* Onay kutusu izgarasi */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.check-card { padding: .65rem .8rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); }
.check-card:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-50); }

/* Guzergah */
.route-box { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem; margin: 0; min-width: 0; }
.route-box legend { padding: 0 .4rem; font-weight: 650; font-size: .92rem; display: flex; align-items: center; gap: .4rem; }
.route-summary + .route-summary { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--c-border); }
.route-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; padding: .9rem 1rem; background: #FAFAF8; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.route-arrow { color: var(--c-primary); }

/* Yolcu tablosu */
.table-form th { padding: .5rem .5rem; font-size: .72rem; }
.table-form td { padding: .35rem .4rem; vertical-align: top; }
.table-form tbody tr:hover { background: transparent; }
.input-sm, .select-sm { min-height: 36px; padding: .35rem .55rem; font-size: .9rem; }
.select-sm { padding-right: 1.8rem; background-position: right .55rem center; }
.input-uyruk { width: 64px; text-transform: uppercase; }
.table-form td:nth-child(3) { min-width: 140px; }
.table-form td:nth-child(4), .table-form td:nth-child(5) { min-width: 130px; }
.table-form td:nth-child(7) { width: 80px; }
.table-form td:nth-child(8) { min-width: 120px; }
.row-no { width: 32px; color: var(--c-muted); font-size: .82rem; text-align: center; padding-top: .7rem !important; }
tbody[data-yolcu-body] { counter-reset: yolcu; }
tbody[data-yolcu-body] tr { counter-increment: yolcu; }
tbody[data-yolcu-body] .row-no::before { content: counter(yolcu); }
.paste-box { margin-top: .75rem; padding: 1rem; border: 1px dashed var(--c-border-2); border-radius: var(--radius-sm); background: #FAFAF8; }
.table-form .field-error { font-size: .75rem; }

.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: .9rem 1rem; margin: 1.25rem -1rem 0; background: rgba(245, 245, 243, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--c-border); }

/* Filtre cubugu */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; padding: .9rem 1rem; margin-bottom: 1.25rem; align-items: center; }
.filter-bar .field { flex: 1 1 200px; }
.filter-bar .select, .filter-bar input[type="date"] { width: auto; flex: 0 1 150px; }

/* Satir ici acilan formlar */
details.inline-form { margin-top: 1rem; }
details.inline-form > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--c-ink-2); list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
details.inline-form > summary::-webkit-details-marker { display: none; }
details.inline-form > summary:hover { color: var(--c-primary-700); }
details.inline-form[open] > summary { margin-bottom: .9rem; }

/* Ilerleme cubugu */
.progress { height: 8px; border-radius: 999px; background: var(--c-bg); overflow: hidden; max-width: 260px; }
.progress-bar { display: block; height: 100%; border-radius: 999px; }
.progress-ok { background: var(--c-success); } .progress-warning { background: var(--c-warning); } .progress-danger { background: var(--c-danger); }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }

/* Admin: editorler */
.code-editor { font-size: .85rem; line-height: 1.55; tab-size: 2; }
.textarea-sm { min-height: 36px; padding: .4rem .55rem; font-size: .88rem; resize: vertical; }
.textarea.is-empty { border-color: #F2DDA6; background: #FFFDF6; }
.ceviri-tablo td:first-child { min-width: 200px; max-width: 280px; word-break: break-all; }
.ceviri-tablo td:not(:first-child) { min-width: 240px; }
.row-selected td { background: var(--c-primary-50); }
.dil-duzenle { display: inline-block; margin: 0 0 0 .35rem; text-align: left; }
.dil-duzenle[open] { display: block; margin-top: .75rem; }
pre.json-box { margin: 0; max-height: 520px; overflow: auto; }

.kural-tablo td:first-child { min-width: 170px; }
.kural-tablo td:first-child strong { white-space: nowrap; }
