/*
 * TUNA — prototipin görsel dili (kobizeka.com/tasarimlar/tms). Renkler,
 * yazı tipleri ve ölçüler prototipteki beyoglu-tms.html ile bire bir.
 * Yazı tipleri yerelden (teknik tasarım 4: dış bağımlılık yok), lisansları
 * fonts/LISANS.txt. Satır içi stil yok: CSP style-src 'self'.
 */

/* ---- Yazı tipleri: latin + latin-ext (Türkçe harfler latin-ext'te) ---- */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-condensed-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-condensed-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/ibm-plex-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Renkler (prototip :root) ---- */
:root {
  --ink: #12263A; --ink-2: #1B3550; --ink-3: #2C4A6B;
  --paper: #F4F3EF; --surface: #FFFFFF; --line: #E1DFD8; --line-2: #CFCCC2;
  --text: #1E2A33; --text-2: #5D6B76; --text-3: #8B96A0;
  --signal: #1F5FA8; --signal-bg: #E8F0F9;
  --amber: #9A6408; --amber-bg: #FBF0DC;
  --green: #2A6344; --green-bg: #E4F0E8;
  --red: #9E322C; --red-bg: #FBEAE8;
  --violet: #5A4A93; --violet-bg: #EDEAF7;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --disp: 'Barlow Condensed', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: light;
}

/* ---- Temel ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--paper); color: var(--text); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
a { color: var(--signal); }
code, pre { font-family: var(--mono); }
strong { font-weight: 600; }

/* ---- Ortak parçalar ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.card > header { padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card > header h3 { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.card-govde { padding: 14px; }
.card-govde > :last-child { margin-bottom: 0; }
.card-alt { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; background: #FAF9F6; border-radius: 0 0 8px 8px; }
.eyebrow { font-family: var(--disp); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 12px; }
.btn { border: 1px solid var(--line-2); background: var(--surface); padding: 6px 11px; border-radius: 6px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; color: var(--text); }
.btn:hover { border-color: var(--ink-3); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.pri:hover { background: var(--ink-2); }
.btn.sm { padding: 3px 8px; font-size: 11px; }
.note { font-size: 11.5px; color: var(--text-2); line-height: 1.6; padding: 10px 14px; background: var(--signal-bg); border: 1px solid #C9DDF2; border-radius: 7px; margin-bottom: 14px; }
.note b { color: var(--signal); }
.kutu-tamam { font-size: 12px; line-height: 1.55; padding: 9px 12px; background: var(--green-bg); border: 1px solid #BFD9C8; color: var(--green); border-radius: 7px; margin-bottom: 14px; }
.kutu-hata { font-size: 12px; line-height: 1.55; padding: 9px 12px; background: var(--red-bg); border: 1px solid #E7BEBB; color: var(--red); border-radius: 7px; margin-bottom: 14px; }
/* Karar sorusu (araç ata: dorsenin mevcut seferi): her seçenek kendi formu. */
.kutu-soru { font-size: 12px; line-height: 1.55; padding: 10px 12px 4px; background: var(--amber-bg); border: 1px solid #E6CF9F; color: var(--text); border-radius: 7px; margin: 14px 0; }
.kutu-soru > p { margin: 0 0 6px; }
.soru-secenek { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; padding: 8px 0; border-top: 1px solid #E6CF9F; }
.soru-secenek .grow { min-width: 180px; overflow-wrap: anywhere; }
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.fld label { font-size: 11px; color: var(--text-2); font-weight: 500; }
.fld input, .fld select, .fld textarea { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px; background: var(--surface); width: 100%; }
.fld small { font-size: 10.5px; color: var(--text-3); }

/* ---- Liste, sekmeler, tablo (prototip .toolbar / .seg / table) ---- */
.toolbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.grow { flex: 1; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg a { padding: 5px 11px; font-size: 12px; border-right: 1px solid var(--line-2); color: var(--text); text-decoration: none; white-space: nowrap; }
.seg a:last-child { border-right: none; }
.seg a:hover { background: var(--paper); }
.seg a.on { background: var(--ink); color: #fff; font-weight: 500; }
.sekmeler { width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 12px; }
.ara { display: flex; gap: 6px; align-items: center; }
.ara input { border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; background: var(--surface); width: 240px; }
.wrap-tbl { border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead th { font-family: var(--disp); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); background: #FAF9F6; white-space: nowrap; }
tbody td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.row { position: relative; }
tbody tr.row:hover { background: #FAFBFC; }
td.tight { width: 1%; white-space: nowrap; }
.satir-bag { color: inherit; text-decoration: none; font-weight: 500; }
/* Kod biçimli bağlantı (sefer, pozisyon numarası) geniş tabloda satıra kırılmasın. */
.satir-bag.mono { white-space: nowrap; }
.satir-bag::after { content: ""; position: absolute; inset: 0; }
.satir-islem { position: relative; z-index: 1; }
.satir-form { display: inline-block; margin: 0 2px 0 0; }
.onay-satir { display: inline-flex; align-items: center; cursor: pointer; padding: 2px; }
.onay-satir input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); cursor: pointer; }
.tek-satir { white-space: nowrap; }
/* Konum takibi: satır içi düzeltme ve olay çubuğu (prototip .cell-ed, .eventbar) */
.hucre-form { margin: 0; }
.hucre-girdi { border: 1px dashed transparent; border-radius: 4px; padding: 1px 4px; margin: -1px -4px; background: transparent; font-size: 12px; min-width: 70px; width: 100%; max-width: 150px; color: inherit; }
tr.row:hover .hucre-girdi { border-color: var(--line-2); background: var(--surface); }
.hucre-girdi:hover, .hucre-girdi:focus { border-color: var(--signal); background: var(--surface); outline: none; }
.hucre-girdi::placeholder { color: var(--text-3); }
.gec { color: var(--red); }
.olay-hata { margin-top: 12px; }
.olay-cubugu { position: sticky; bottom: 0; background: var(--ink); color: #fff; border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; margin-top: 12px; flex-wrap: wrap; z-index: 5; }
.olay-cubugu p { font-family: var(--disp); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #8FADC8; font-weight: 600; }
.olay-cubugu select, .olay-cubugu input { background: var(--ink-2); border: 1px solid var(--ink-3); color: #fff; padding: 5px 8px; border-radius: 5px; font-size: 12px; max-width: 220px; }
.olay-cubugu input::placeholder { color: #7E96AE; }
.olay-cubugu input[type="date"] { color-scheme: dark; }
.olay-cubugu input.olay-adet { width: 118px; }
.olay-cubugu [hidden] { display: none; }
/* Konum takibi: yöne göre renk (ilk hücrenin solunda şerit; yön çipiyle aynı renk). */
tr.yon-ihracat > td:first-child { box-shadow: inset 3px 0 var(--signal); }
tr.yon-ithalat > td:first-child { box-shadow: inset 3px 0 var(--amber); }
.olay-cubugu .btn { background: #fff; border-color: #fff; color: var(--ink); font-weight: 600; }
/* Panel (prototip .kpis, .kpi, .two, .lst) */
.hosgeldin { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; color: inherit; text-decoration: none; display: block; }
.kpi:hover { border-color: var(--ink-3); }
.kpi b { font-family: var(--disp); font-size: 30px; font-weight: 600; line-height: 1; display: block; }
.kpi span { display: block; font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.35; }
.kpi b.kpi-tutar { font-size: 20px; overflow-wrap: anywhere; }
.kpi.warn b { color: var(--amber); }
.kpi.bad b { color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.lst { list-style: none; margin: 0; padding: 0; }
.lst li { border-bottom: 1px solid var(--line); }
.lst li:last-child { border-bottom: none; }
.lst li.kucuk { padding: 9px 14px; }
/* Bağlantısız satır (etiket · boşluk · değer): kârlılık ve rapor dağılımları. */
.lst-duz li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.lst-bag { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: inherit; text-decoration: none; }
.lst-bag:hover { background: #FAFBFC; }
.lst-bag .chip { margin-left: 0; }
.plate { font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--paper); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; margin-left: 6px; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.c-sig { background: var(--signal-bg); color: var(--signal); }
.c-amb { background: var(--amber-bg); color: var(--amber); }
.c-grn { background: var(--green-bg); color: var(--green); }
.c-red { background: var(--red-bg); color: var(--red); }
.c-gry { background: #EDEBE5; color: var(--text-2); }
.btn.dgr { color: var(--red); border-color: #E7BEBB; }
.bos { color: var(--text-3); }
.empty { padding: 34px 16px; text-align: center; color: var(--text-2); background: var(--surface); }
.empty b { display: block; font-family: var(--disp); font-size: 17px; color: var(--text); margin-bottom: 4px; }

/* ---- Tanım listesi DataTables (tablo.js). Betik çalışınca süzgeçler görünür, betiksiz arama gizlenir. ---- */
.dt-suzgecler { display: none; gap: 6px; align-items: center; flex-wrap: wrap; }
.dt-var .dt-suzgecler { display: flex; }
.dt-var .dt-yok { display: none; }
.dt-suzgecler input, .dt-suzgecler select { border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; background: var(--surface); font: inherit; font-size: 12px; color: var(--text); }
.dt-suzgecler input { width: 220px; }
.dt-suzgecler select { max-width: 220px; }
.dt-suzgecler select.secili { border-color: var(--signal); background: var(--signal-bg); color: var(--signal); font-weight: 500; }
.dt-suzgecler .dt-sirala { display: none; }
.bag-etiket { white-space: nowrap; }
.bag-etiket .plate { margin-right: 4px; }
/* ---- Kayıt izi (K2): sunucuda süzgeç ve sayfa ---- */
.iz-suzgec { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.iz-suzgec select, .iz-suzgec input[type="date"] { border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; background: var(--surface); font: inherit; font-size: 12px; color: var(--text); max-width: 220px; }
.iz-suzgec label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.iz-ozet { color: var(--text-2); }
.iz-tur { display: block; color: var(--text-2); font-size: 11px; }
.iz-sayfa { display: flex; align-items: center; gap: 10px; padding: 10px 2px; }
.iz-alanlar { margin-top: 14px; }
.iz-alanlar .wrap-tbl { border: none; border-radius: 0 0 8px 8px; }
.iz-sorunlar { margin: 0 0 10px 18px; font-size: 12px; line-height: 1.6; }
/* Belge özeti (muayene, sigorta): sayılar betiksiz de okunur; betikle düğme o durumu süzer, yeniden basınca kaldırır. */
.belge-ozet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.belge-ozet .eyebrow { margin-right: 2px; }
.belge-ozet .chip { margin-left: 0; font-size: 12px; padding: 4px 10px; }
.belge-ozet button.chip { border: 1px solid transparent; font-family: inherit; cursor: default; }
.dt-var .belge-ozet button.chip { cursor: pointer; }
.belge-ozet button.chip[aria-pressed="true"] { border-color: currentColor; font-weight: 600; }
.dt-alan .dt-container { font-size: 12px; color: var(--text-2); }
.dt-alan .dt-layout-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; padding: 8px 2px; }
.dt-alan .dt-layout-row.dt-layout-table { padding: 0; display: block; }
.dt-alan .dt-layout-cell { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0; }
.dt-alan .dt-length select { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; background: var(--surface); font: inherit; margin: 0 4px; }
.dt-alan .dt-paging .dt-paging-button { border: 1px solid var(--line-2) !important; border-radius: 6px !important; background: var(--surface) !important; color: var(--text) !important; padding: 4px 9px !important; margin-left: 4px !important; font: inherit; font-size: 12px; cursor: pointer; }
.dt-alan .dt-paging .dt-paging-button.current { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.dt-alan .dt-paging .dt-paging-button.disabled { color: var(--text-3) !important; cursor: default; opacity: .6; }
.dt-alan table.dataTable { margin: 0; border-collapse: collapse; }
.dt-alan table.dataTable thead th { padding: 8px 10px; }
.dt-alan table.dataTable > tbody > tr > td { padding: 7px 10px; }
.dt-alan table.dataTable > tbody > tr:hover { background: #FAFBFC; }
.dt-alan table.dataTable td.dt-empty { text-align: center; padding: 26px 12px; color: var(--text-2); }

/* ---- Kayıt formu (prototip .mbody / .fld) ---- */
.geri { margin-bottom: 10px; font-size: 12px; }
.geri a { color: var(--text-2); }
.tanim-form { max-width: 760px; }
.card > header .sag, .card-alt .sag { margin-left: auto; }
.mbody { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mbody .fld { margin-bottom: 0; }
.fld.full { grid-column: 1 / -1; }
.fld input:disabled, .fld select:disabled { background: var(--paper); color: var(--text-2); }
.fld [aria-invalid="true"] { border-color: var(--red); background: #FFFBFA; }
.fld .fld-hata { color: var(--red); }
.zorunlu { color: var(--red); }
.mono-girdi { font-family: var(--mono); }
.geri-al { margin: 6px 0; color: var(--text); }
.fld textarea { resize: vertical; line-height: 1.5; }

/* ---- Personel kartı, kullanıcılar, roller ---- */
.c-vio { background: var(--violet-bg); color: var(--violet); }
td > .chip:first-child, dd > .chip:first-child { margin-left: 0; }
.sub { color: var(--text-2); font-size: 11px; display: block; margin-top: 1px; font-weight: 400; }
.blok { margin-bottom: 18px; }
.kart-izgara { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 340px); gap: 14px; align-items: start; }
.yan { display: flex; flex-direction: column; gap: 14px; }
.bolum { font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding: 14px 18px 0; }
.bolum span { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); margin-left: 6px; }
.bolum-not { padding: 4px 18px 0; font-size: 11px; color: var(--text-3); }
.bolum + .mbody, .bolum-not + .mbody { padding-top: 10px; }
.bilgi { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 14px; font-size: 12px; line-height: 1.55; }
.bilgi dt { color: var(--text-2); }
.bilgi dd { color: var(--text); overflow-wrap: anywhere; }
.goster { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.fld .onay { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); font-weight: 400; cursor: pointer; }
.fld .onay input { width: 16px; height: 16px; padding: 0; accent-color: var(--red); flex: none; }
.card-govde p + p { margin-top: 8px; }
.kurallar { padding: 14px; margin-top: 6px; max-width: 900px; }
.kurallar .bilgi { grid-template-columns: 150px 1fr; }
.kurallar .kucuk { margin-top: 12px; }
.tek-parola { font-family: var(--mono); font-size: 20px; letter-spacing: .08em; background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; margin: 6px 0 14px; user-select: all; overflow-wrap: anywhere; }
.islemler { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.islemler li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.matris { width: 100%; border-collapse: collapse; background: var(--surface); }
.matris thead th { text-align: center; letter-spacing: .08em; padding: 9px 8px; vertical-align: bottom; white-space: normal; min-width: 92px; }
.matris thead th:first-child { text-align: left; min-width: 230px; }
.matris .rol-ad { display: block; font-size: 13px; letter-spacing: .04em; color: var(--text); }
.matris thead .sub { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 10.5px; }
.matris .rol-sil { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; color: var(--red); }
.matris tbody th { text-align: left; font-weight: 400; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.matris tbody th .sub { color: var(--text-3); font-size: 10.5px; }
.matris td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.matris tbody tr:hover { background: #FAFBFC; }
.matris input { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
.matris input:disabled { cursor: not-allowed; opacity: .55; }
.matris-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.matris-alt .kucuk { flex: 1 1 280px; }

/* ---- Giriş (prototip #giris) ---- */
body.giris-sayfasi { background: var(--ink); }
.gwrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 420px; }
.gsol { padding: 56px 54px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.gsol .mark { font-family: var(--disp); font-size: 46px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: .95; }
.gsol .mark span { display: block; font-size: 12px; letter-spacing: .10em; color: #7E96AE; font-weight: 500; margin-top: 6px; }
.gsol h1 { font-family: var(--disp); font-size: 32px; font-weight: 500; line-height: 1.15; margin: 36px 0 12px; max-width: 15em; color: #E8EFF6; }
.gsol p { color: #9FB6CB; font-size: 13px; line-height: 1.75; max-width: 34em; }
.gsol .ozet { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; list-style: none; }
.gsol .ozet b { font-family: var(--disp); font-size: 26px; font-weight: 600; display: block; line-height: 1; }
.gsol .ozet span { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #7E96AE; font-family: var(--disp); font-weight: 500; }
.gsag { background: var(--surface); padding: 44px 38px; display: flex; flex-direction: column; justify-content: center; }
.gsag h2 { font-family: var(--disp); font-size: 24px; font-weight: 600; margin-bottom: 3px; line-height: 1.2; }
.gsag > p { font-size: 12px; color: var(--text-2); margin-bottom: 22px; line-height: 1.6; }
.gf { margin-bottom: 13px; }
.gf label { display: block; font-size: 11px; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.gf input { width: 100%; border: 1px solid var(--line-2); border-radius: 7px; padding: 10px 11px; font-size: 13.5px; background: var(--paper); }
.gf input:focus { background: var(--surface); }
.gf input.kod { font-family: var(--mono); letter-spacing: .18em; }
.gf small { font-size: 10.5px; color: var(--text-3); display: block; margin-top: 3px; }
.gbtn { display: block; width: 100%; background: var(--ink); color: #fff; border-radius: 7px; padding: 11px; font-weight: 500; font-size: 13.5px; margin-top: 6px; text-align: center; text-decoration: none; }
.gbtn:hover { background: var(--ink-2); }
.ghata { background: var(--red-bg); border: 1px solid #E7BEBB; color: var(--red); border-radius: 7px; padding: 9px 12px; font-size: 12px; line-height: 1.55; margin-bottom: 13px; }
.ghata span { color: var(--text-2); }
.gtamam { background: var(--green-bg); border: 1px solid #BFD9C8; color: var(--green); border-radius: 7px; padding: 9px 12px; font-size: 12px; line-height: 1.55; margin-bottom: 13px; }
.gip { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-2); line-height: 1.7; }
.gip b { font-family: var(--mono); color: var(--text); font-weight: 500; }
.gbag { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 12px; }
.gbag a, .gbag button { color: var(--signal); text-decoration: underline; font-size: 12px; text-align: left; }
.gbag a:hover, .gbag button:hover { color: var(--ink); }
.adimlar { margin: 0 0 16px 18px; font-size: 12.5px; line-height: 1.6; }
.adimlar li { margin: 2px 0; }
.karekod { align-self: flex-start; background: #fff; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; line-height: 0; margin-bottom: 12px; }
.karekod svg { width: 200px; height: 200px; max-width: 100%; }
.kucuk { font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.gizli-anahtar { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; word-spacing: .3em; background: var(--paper); border: 1px solid var(--line-2); border-radius: 7px; padding: 9px 11px; margin: 6px 0 16px; overflow-wrap: anywhere; }
.kod-listesi { list-style: none; columns: 2; column-gap: 14px; font-family: var(--mono); font-size: 14px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; margin: 4px 0 16px; }
.kod-listesi li { padding: 3px 0; }

/* Belgeler */
.belgeler { list-style: none; margin: 0; padding: 0; }
.belgeler li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.belgeler li:first-child { padding-top: 0; }
.belgeler li:last-child { border-bottom: 0; padding-bottom: 0; }
.belgeler li > span { color: var(--text-2); font-size: 12.5px; }

/* ---- Uygulama kabuğu (prototip .app / .rail / .topbar) ---- */
.app { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
/* Çubuk üç parça: marka (üstte), menü grupları (yalnız bu kısım kayar), YZ asistanı + alt bilgi (altta sabit). */
.rail { background: var(--ink); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.railnav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.railnav::-webkit-scrollbar { width: 6px; }
.railnav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 3px; }
.railalt { flex: none; padding: 10px 10px 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.railalt .nav { border: 1px solid rgba(111, 168, 232, .45); border-radius: 6px; padding: 8px 12px; color: #fff; background: rgba(111, 168, 232, .1); font-weight: 500; }
.railalt .nav:hover { background: rgba(111, 168, 232, .2); }
.railalt .nav.on { background: var(--ink-2); border-color: #6FA8E8; }
.brand { display: block; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.brand b { font-family: var(--disp); font-size: 19px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: block; line-height: 1; }
.brand span { font-size: 10px; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: #7E96AE; font-family: var(--disp); font-weight: 500; display: block; margin-top: 5px; }
.navgrp { padding: 11px 0 2px; }
.navgrp > p { font-family: var(--disp); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #63809B; padding: 0 16px 4px; }
.nav { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 16px; color: #C6D3DE; border-left: 2px solid transparent; line-height: 1.3; text-decoration: none; }
.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav.on { background: var(--ink-2); color: #fff; border-left-color: #6FA8E8; font-weight: 500; }
.nav i { width: 14px; flex: none; opacity: .85; font-style: normal; }
.railfoot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 4px 16px 10px; font-size: 11px; color: #7E96AE; line-height: 1.6; }
.railnav + .railfoot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }
.railfoot a, .railfoot button { color: #9FB6CB; text-decoration: underline; font-size: 11px; display: block; padding: 2px 0; }
.railfoot a:hover, .railfoot button:hover { color: #fff; }
.railfoot .surum { opacity: .55; display: block; flex-basis: 100%; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 52px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.vtitle { font-family: var(--disp); font-size: 20px; font-weight: 600; white-space: nowrap; line-height: 1.05; }
.vtitle small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--text-2); margin-top: 1px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.kchip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: .04em; flex: none; }
.kchip .ad { line-height: 1.15; }
.kchip .ad b { display: block; font-size: 12px; font-weight: 500; color: var(--text); }
.kchip .ad span { font-size: 10.5px; color: var(--text-2); }
.cikis { margin: 0; }
.scroll { padding: 18px; flex: 1; }
.dar { max-width: 460px; }
.hamb { display: none; flex-direction: column; gap: 4px; padding: 9px 8px; margin-left: -6px; border-radius: 7px; flex: none; }
.hamb span { display: block; width: 19px; height: 2px; background: var(--text); border-radius: 2px; }
.hamb:active { background: var(--paper); }
.perde { display: none; position: fixed; inset: 0; background: rgba(18, 38, 58, .5); z-index: 39; }
.perde.on { display: block; }

/* ---- Hata sayfası (sade düzen) ---- */
body.sade { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.kart { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 8px; padding: 26px 24px; }
.kart .marka { font-family: var(--disp); font-size: 24px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.kart h1 { font-family: var(--disp); font-size: 22px; font-weight: 600; margin: 4px 0 8px; }
.kart p { margin: 8px 0; line-height: 1.6; }
.durum-kodu { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 12px; }
.ayrinti { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 12px; font-size: 11.5px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

/* ---- Planlama takvimi (prototip; hafta yedi gün) ---- */
.plan { display: grid; grid-template-columns: 235px minmax(0, 1fr) 235px; gap: 12px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: 120px; }
.col > p { margin: 0; padding: 9px 12px; background: #FAF9F6; border-bottom: 1px solid var(--line); font-family: var(--disp); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--text-2); }
.col > .empty { padding: 20px 12px; }
.pcard { margin: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }
.pcard[data-siparis] { cursor: grab; }
.pcard[data-dorse] { cursor: pointer; }
.pcard[data-siparis]:hover, .pcard[data-dorse]:hover { border-color: var(--ink-3); }
.pcard.dragging { opacity: .45; }
.pcard b, .pcard-ad { display: block; font-size: 12px; font-weight: 600; }
.pcard-ad { width: 100%; padding: 0; text-align: left; color: var(--text); font-family: inherit; cursor: inherit; }
.pcard > span { display: block; font-size: 11px; color: var(--text-2); line-height: 1.45; }
.pcard > .chip { display: inline-flex; margin-top: 4px; max-width: 100%; white-space: normal; }
.pcard .pcard-bag { margin-top: 3px; }
.pcard.free { border-left: 3px solid var(--green); }
.pcard.wait { border-left: 3px solid var(--amber); }
.pcard.secili, .pcard.drop-ok { border-color: var(--signal); background: var(--signal-bg); border-style: dashed; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.day { background: var(--surface); min-height: 200px; padding: 7px; }
.day[data-gun] { cursor: pointer; }
.day.bugun > p b { color: var(--signal); }
.day.drop-ok { background: var(--signal-bg); }
.day > p { margin: 0 0 6px; font-family: var(--disp); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.day > p b { color: var(--text); font-size: 13px; }
.slot { display: block; border: 1px solid var(--line); border-radius: 5px; padding: 6px 7px; margin-bottom: 5px; font-size: 11px; line-height: 1.4; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.slot > span { display: block; }
.slot > b.mono { font-size: 10.5px; white-space: nowrap; }
.slot > .chip { display: inline-flex; margin-top: 3px; }
.slot.mat { border-color: #A9C7E8; background: var(--signal-bg); }
.drop { display: block; width: 100%; border: 1px dashed var(--line-2); border-radius: 5px; padding: 9px 4px; text-align: center; color: var(--text-3); font-size: 11px; font-family: inherit; background: transparent; }
button.drop { cursor: pointer; }
.plan-onay { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--ink); color: #fff; border-radius: 8px; }
.plan-onay[hidden], .plan-onay form[hidden] { display: none; }
.plan-onay-metin { margin: 0; flex: 1 1 260px; font-size: 13px; }
.plan-onay form { margin: 0; }
/* ---- Faturalama: talep fişi (prototip) ---- */
.fis-kart { max-width: 640px; }
.fis-imza { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.fis-imza div { border-top: 1px solid var(--line-2); padding-top: 6px; min-height: 64px; font-size: 12px; color: var(--text-2); }
.fis { padding: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.fis .fl { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line-2); }
.fis .fl span:first-child { color: var(--text-2); flex: none; }
.fis .fl span:last-child { text-align: right; overflow-wrap: anywhere; }
.fis-ara { margin-top: 12px; font-family: var(--disp); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.fis-alt { margin-top: 12px; padding-top: 6px; border-top: 2px solid var(--ink); }
.fis .fis-elle { font-style: normal; font-family: var(--disp); font-size: 10px; letter-spacing: .04em; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--amber-bg); color: var(--amber); }
.fis .fis-oneri { font-style: normal; font-family: var(--disp); font-size: 10px; letter-spacing: .04em; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--signal-bg); color: var(--signal); }
.fis-not { margin: 0; padding: 10px 16px 0; }
.aktarim-formu select { padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); font: inherit; font-size: 12px; }
/* ---- Filo haritası (OpenStreetMap karoları; harita.js) ---- */
.harita { position: relative; height: 62vh; min-height: 320px; margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #E8E5DC; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.harita.surukle { cursor: grabbing; }
.harita:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.harita-karolar, .harita-isaretler { position: absolute; inset: 0; }
.harita-karolar { z-index: 1; }
.harita-isaretler { z-index: 2; pointer-events: none; }
.harita-karo { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.harita-nokta { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 1px rgba(18, 38, 58, .45); pointer-events: auto; }
/* Seferdeki araç sefer statüsünün rengiyle (SeferServisi::RENKLER, st- öneki); boştaki eşli araç içi boş; eşlenmemiş küçük gri; eski konum sarı halka. */
.harita-nokta.st-gry, .harita-renk.st-gry::before { background: var(--text-3); }
.harita-nokta.st-sig, .harita-renk.st-sig::before { background: var(--signal); }
.harita-nokta.st-vio, .harita-renk.st-vio::before { background: var(--violet); }
.harita-nokta.st-amb, .harita-renk.st-amb::before { background: var(--amber); }
.harita-nokta.st-grn, .harita-renk.st-grn::before { background: var(--green); }
.harita-nokta.st-red, .harita-renk.st-red::before { background: var(--red); }
.harita-nokta.esli { background: var(--surface); border-color: var(--ink); }
.harita-renk.esli::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.harita-nokta.eslenmemis { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 1px; }
.harita-renk.eslenmemis::before { width: 8px; height: 8px; }
.harita-nokta.eski { box-shadow: 0 0 0 3px #E8B931, 0 0 0 4px rgba(18, 38, 58, .45); }
.harita-renk.eski::before { background: var(--surface); box-shadow: inset 0 0 0 3px #E8B931; }
.harita-nokta.secili { z-index: 1; width: 20px; height: 20px; margin: -10px 0 0 -10px; box-shadow: 0 0 0 3px var(--ink); }
.harita-nokta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.harita-renk { font-weight: 500; white-space: nowrap; }
.harita-renk::before { content: ''; display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 6px; border-radius: 50%; background: var(--text-3); vertical-align: -1px; }
.harita-kutu { position: absolute; left: 0; top: 0; z-index: 3; width: 280px; max-width: calc(100% - 64px); padding: 10px 30px 8px 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 6px 20px rgba(18, 38, 58, .2); font-size: 13px; cursor: auto; user-select: text; -webkit-user-select: text; }
.harita-kutu h4 { margin: 0 0 6px; font-size: 14px; }
.harita-kutu p { margin: 0 0 4px; }
.harita-kapat { position: absolute; top: 4px; right: 6px; width: 24px; height: 24px; font-size: 18px; line-height: 1; color: var(--text-2); }
.harita-kontrol { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; flex-direction: column; gap: 4px; }
.harita-kontrol .btn { min-width: 34px; justify-content: center; background: var(--surface); font-size: 16px; line-height: 1; }
.harita-atif { position: absolute; right: 0; bottom: 0; z-index: 4; margin: 0; padding: 1px 6px; background: rgba(255, 255, 255, .85); font-size: 11px; }
.harita-uyari { position: absolute; inset: 0; z-index: 5; margin: 0; padding: 24px; background: var(--surface); }
.harita-secim { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.harita-liste tr.secili td { background: var(--signal-bg); }
.harita-git { padding: 0; text-align: left; }

@media print {
  .rail, .topbar, .perde, .no-print, .kutu-tamam, .note { display: none !important; }
  body, .scroll, .main { background: #fff; padding: 0; }
  .app { display: block; }
  .fis-kart { max-width: none; border: none; box-shadow: none; }
}

/* Dar ekranda yükten sonra araçlar (dokun-dokun), takvim en altta. */
@media (max-width: 1100px) { .plan { grid-template-columns: 1fr; } .plan > .col-takvim { order: 1; } }

/* ---- Telefon ve tablet (prototip ≤900 px) ---- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .hamb { display: flex; }
  .rail { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: 250px; max-width: 82vw; z-index: 40; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 32px rgba(0, 0, 0, .28); }
  .rail.on { transform: none; }
  .nav { padding: 12px 16px; font-size: 14px; }
  .railalt .nav { padding: 12px; }
  .railfoot a, .railfoot button { padding: 7px 0; font-size: 12px; }
  .topbar { height: auto; min-height: 54px; padding: 0 12px; gap: 9px; }
  .vtitle { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
  .vtitle small { display: none; }
  .kchip .ad { display: none; }
  .scroll { padding: 12px; }
  .btn { padding: 9px 13px; }
  .btn.sm { padding: 6px 10px; }
  .fld input, .fld select, .fld textarea { padding: 11px; font-size: 16px; }
  .mbody { grid-template-columns: 1fr; padding: 14px; }
  .ara { width: 100%; }
  .ara input { flex: 1; width: auto; min-width: 0; padding: 9px 10px; font-size: 16px; }
  /* Olay çubuğu telefonda alt alta, satır içi kutular dokunmaya uygun (prototip ≤900 px) */
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi b { font-size: 25px; }
  .two { grid-template-columns: 1fr; }
  .olay-cubugu { position: static; flex-direction: column; align-items: stretch; gap: 7px; padding: 11px; }
  .olay-cubugu select, .olay-cubugu input { max-width: none; width: 100%; padding: 10px; font-size: 16px; }
  .olay-cubugu input.olay-adet { width: 100%; }
  .olay-cubugu .btn { justify-content: center; padding: 11px; }
  .hucre-girdi { max-width: none; padding: 6px 8px; margin: 0; border-color: var(--line-2); font-size: 16px; }
  /* Tanım listesi telefonda kart: başlık satırı yerine her hücrede etiket */
  .tanim-tablo thead { display: none; }
  .tanim-tablo, .tanim-tablo tbody, .tanim-tablo tr, .tanim-tablo td { display: block; width: 100%; }
  .tanim-tablo tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tanim-tablo tbody tr:last-child { border-bottom: none; }
  .tanim-tablo td { border: none !important; padding: 3px 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .tanim-tablo td::before { content: attr(data-etiket); flex: 0 0 34%; color: var(--text-3); font-size: 11.5px; }
  .tanim-tablo td.tight { width: auto; padding-top: 8px; }
  .tanim-tablo td.tight::before { content: none; }
  .tanim-tablo td .sub { flex-basis: 100%; padding-left: calc(34% + 10px); }
  .dt-alan .tanim-tablo td.dt-empty { display: block; }
  .dt-alan .tanim-tablo td.dt-empty::before { content: none; }
  .dt-suzgecler { width: 100%; }
  .dt-suzgecler input, .dt-suzgecler select { flex: 1 1 140px; max-width: none; width: auto; padding: 9px 10px; font-size: 16px; }
  .dt-suzgecler input { flex-basis: 100%; }
  .dt-suzgecler .dt-sirala { display: block; flex-basis: 100%; }
  .belge-ozet .chip { padding: 7px 12px; font-size: 13px; }
  .iz-suzgec { width: 100%; }
  .iz-suzgec select, .iz-suzgec input[type="date"] { flex: 1 1 140px; max-width: none; padding: 9px 10px; font-size: 16px; }
  .dt-alan .dt-layout-row { justify-content: center; }
  .dt-alan .dt-paging .dt-paging-button { padding: 8px 12px !important; }
  .kart-izgara { grid-template-columns: 1fr; }
  .bolum { padding: 14px 14px 0; }
  .bolum-not { padding: 4px 14px 0; }
  .bilgi, .kurallar .bilgi { grid-template-columns: 1fr; gap: 1px; }
  .bilgi dd { margin-bottom: 8px; }
  /* Yetki tablosu telefonda: ilk sütun yapışık, kutular parmakla basılacak boyda */
  .matris thead th:first-child, .matris tbody th { position: sticky; left: 0; z-index: 1; min-width: 170px; }
  .matris thead th:first-child { background: #FAF9F6; }
  .matris tbody th { background: var(--surface); }
  .matris input { width: 22px; height: 22px; }
  .fld .onay { font-size: 14px; padding: 4px 0; }
  .fld .onay input { width: 22px; height: 22px; }
  .onay-satir input { width: 24px; height: 24px; }
  .tek-parola { font-size: 18px; }

  .gwrap { grid-template-columns: 1fr; min-height: 100dvh; }
  .gsol { padding: 32px 22px 16px; }
  .gsol .mark { font-size: 36px; }
  .gsol h1 { font-size: 22px; margin: 22px 0 10px; }
  .gsol p { font-size: 12.5px; }
  .gsol .ozet { gap: 20px; margin-top: 22px; }
  .gsag { padding: 24px 22px calc(28px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; margin-top: 14px; justify-content: flex-start; }
  .gf input { padding: 12px; font-size: 16px; }
  .gbtn { padding: 14px; }

  .week { grid-template-columns: 1fr; gap: 0; }
  .day { min-height: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .day > p { margin-bottom: 5px; }
  .pcard { padding: 11px 12px; }
  .plan-onay { margin-inline: -4px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .aktarim-formu select { font-size: 16px; }
  .harita { height: 55vh; }
  .harita-nokta { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .harita-kontrol .btn { min-width: 40px; min-height: 40px; }
}
@media (max-width: 420px) {
  .vtitle { font-size: 16px; }
  .gsol .mark { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* ---- YZ asistanı ---- */
.asistan { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.asistan-mesajlar { display: flex; flex-direction: column; gap: 10px; }
.asistan-baslangic { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.asistan-baslangic p { margin: 0 0 8px; }
.asistan-baslangic p:last-child { margin-bottom: 0; }
.asistan-soru { align-self: flex-end; max-width: 85%; background: var(--ink); color: #fff; border-radius: 12px 12px 2px 12px; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.asistan-cevap { align-self: flex-start; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 12px 2px; padding: 10px 14px; overflow-wrap: anywhere; scroll-margin-top: 70px; }
.asistan-cevap p { margin: 0 0 8px; }
.asistan-cevap p:last-child, .asistan-cevap ul:last-child, .asistan-cevap ol:last-child { margin-bottom: 0; }
.asistan-cevap ul, .asistan-cevap ol { margin: 0 0 8px; padding-left: 20px; }
.asistan-cevap .wrap-tbl { margin: 6px 0; }
.asistan-form { position: sticky; bottom: 0; background: var(--paper); padding: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.asistan-form textarea { width: 100%; resize: vertical; min-height: 56px; font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.asistan-alt { display: flex; align-items: center; gap: 10px; }
.asistan-hazir { display: flex; flex-wrap: wrap; gap: 6px; }
.hazir-soru { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; line-height: 1.35; text-align: left; }
.hazir-soru:hover { border-color: var(--signal); color: var(--signal); }
.hazir-soru.kilitli { opacity: .5; pointer-events: none; }
