/* Nöbet — güvenlik operasyon arayüzü
   Lacivert üniforma, çelik gri zemin, reflektif sarı yalnızca "dikkat" anlamında. */
:root {
  --navy: #1d3557;
  --navy-2: #274872;
  --navy-ink: #0f1f35;
  --steel: #e9eef3;
  --steel-2: #d6dee7;
  --line: #c9d3de;
  --paper: #ffffff;
  --ink: #17212b;
  --ink-2: #4a5a6b;
  --ink-3: #6b7a8b;
  --signal: #f2b600;
  --signal-soft: #fff4cc;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --ok: #1f7a4d;
  --ok-soft: #e1f3e9;
  --info: #2f6db5;
  --info-soft: #e3eefb;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(242, 182, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--steel); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--info); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.05rem; font-weight: 700; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- Kabuk ---- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #dbe4ef; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand strong { display: block; color: #fff; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand small { display: block; color: #9fb2c8; font-size: 0.8rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; background:
  linear-gradient(var(--signal), var(--signal)) 0 0 / 9px 9px no-repeat,
  linear-gradient(#cfd9e5, #cfd9e5) 10.5px 0 / 9px 9px no-repeat,
  linear-gradient(#cfd9e5, #cfd9e5) 21px 0 / 9px 9px no-repeat,
  linear-gradient(#cfd9e5, #cfd9e5) 0 10.5px / 9px 9px no-repeat,
  linear-gradient(var(--signal), var(--signal)) 10.5px 10.5px / 9px 9px no-repeat,
  linear-gradient(#cfd9e5, #cfd9e5) 21px 10.5px / 9px 9px no-repeat,
  linear-gradient(#cfd9e5, #cfd9e5) 0 21px / 30px 3px no-repeat; }
.nav-group { padding: 14px 10px 4px; }
.nav-title { display: block; padding: 0 10px 6px; font-size: 0.78rem; color: #8ea3bb; }
.nav-link { display: block; padding: 7px 10px; border-radius: var(--radius); color: #dbe4ef; text-decoration: none; border-left: 3px solid transparent; }
.nav-link:hover { background: var(--navy-2); color: #fff; }
.nav-link.active { background: var(--navy-ink); color: #fff; border-left-color: var(--signal); font-weight: 600; }
.side-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; }
.side-foot .btn-link { color: #fff; }
.main-col { min-width: 0; }
.topbar { display: none; }
main { outline: none; }
.page { padding: 28px 32px 48px; max-width: 1240px; }
.page-wide { max-width: none; }

/* ---- Sayfa başlığı ---- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.page-sub { margin: 4px 0 0; color: var(--ink-2); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-actions { display: flex; justify-content: flex-end; margin: 4px 0 10px; gap: 8px; }

/* ---- Düğmeler ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); }
.btn-danger-quiet { color: var(--bad); }
.btn-danger-quiet:hover { border-color: var(--bad); color: var(--bad); }
.btn-quiet { background: transparent; border-color: transparent; }
.btn-block { width: 100%; justify-content: center; padding: 10px; }
.btn-link { background: none; border: none; padding: 0; color: var(--info); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-link.danger { color: var(--bad); }
.btn-icon { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; padding: 4px 8px; border-radius: var(--radius); }
.row-actions { display: inline-flex; gap: 12px; }

/* ---- Durum şeridi (özet) ---- */
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; padding: 14px 16px; border-right: 1px solid var(--steel-2); text-decoration: none; color: inherit; min-width: 0; }
.stat:last-child { border-right: none; }
a.stat:hover { background: #f6f8fb; }
.stat-value { font-size: 1.6rem; font-weight: 750; line-height: 1.1; color: var(--navy); overflow-wrap: anywhere; }
.status-strip.compact .stat-value { font-size: 1.15rem; }
.stat-label { color: var(--ink-2); font-size: 0.88rem; margin-top: 2px; }
.stat-note { color: var(--ink-3); font-size: 0.8rem; }
.stat-bad { box-shadow: inset 0 -3px 0 var(--bad); }
.stat-bad .stat-value { color: var(--bad); }
.stat-warn { box-shadow: inset 0 -3px 0 var(--signal); }

/* ---- Paneller ---- */
.dash-grid, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--steel-2); }
.todo li:first-child { border-top: none; }
.todo-main { display: flex; flex-direction: column; min-width: 0; }
.todo-main span { color: var(--ink-2); font-size: 0.88rem; }
.due { flex: none; min-width: 96px; font-weight: 700; font-size: 0.85rem; padding: 2px 8px; border-radius: 3px; background: var(--steel); color: var(--ink-2); text-align: center; }
.due-warn { background: var(--signal); color: var(--ink); }
.due-bad { background: var(--bad); color: #fff; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 10px; background: var(--steel); border-radius: 2px; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--navy); border-radius: 2px; }
.bar-target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--signal); }
.bar-num { font-size: 0.88rem; white-space: nowrap; }

/* ---- Rozet, uyarı, boş durum ---- */
.badge { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 0.8rem; font-weight: 600; background: var(--steel); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--signal-soft); color: #7a5b00; }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.alert { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 14px; border-left: 4px solid; }
.alert-bad { background: var(--bad-soft); border-color: var(--bad); color: #7a1a12; }
.alert-warn { background: var(--signal-soft); border-color: var(--signal); }
.alert-ok { background: var(--ok-soft); border-color: var(--ok); }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.loading { padding: 32px; color: var(--ink-3); }

/* ---- Sekmeler ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 9px 14px; font: inherit; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 650; }
.tab-count { margin-left: 6px; font-size: 0.78rem; background: var(--steel-2); border-radius: 8px; padding: 0 6px; }

/* ---- Tablo ---- */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.table-tools { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--steel-2); }
.table-tools input { max-width: 280px; }
.table-count { color: var(--ink-3); font-size: 0.85rem; }
.table-scroll { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; background: #f3f6f9; border-bottom: 1px solid var(--line); padding: 0; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.th-sort { background: none; border: none; font: inherit; color: inherit; padding: 9px 12px; cursor: pointer; width: 100%; text-align: inherit; }
.table td { padding: 8px 12px; border-bottom: 1px solid var(--steel); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table.compact td, .table.compact th { padding: 5px 8px; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #f6f8fb; }
.td-empty { text-align: center; color: var(--ink-3); padding: 28px 12px !important; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--steel-2); }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter-track { display: block; width: 80px; height: 8px; background: var(--steel); border-radius: 2px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--navy); }
.meter-fill.done { background: var(--ok); }

/* ---- Formlar ---- */
.form { max-width: 1000px; }
fieldset { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 14px 18px 18px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 6px; color: var(--navy); }
fieldset:disabled { opacity: 0.75; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 9px; width: 100%; min-width: 0; }
input[type="checkbox"] { width: auto; accent-color: var(--navy); }
input[type="color"] { padding: 2px; height: 36px; }
input:disabled { background: var(--steel); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); background: #fffafa; }
.field-error { color: var(--bad); font-size: 0.83rem; }
.field-hint { color: var(--ink-3); font-size: 0.83rem; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; align-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; cursor: pointer; background: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:focus-within { box-shadow: var(--focus); }
.chip-on { border-color: var(--navy); background: var(--info-soft); color: var(--navy); font-weight: 600; }
.chip small { color: var(--ink-3); font-weight: 400; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.inline-form .field { min-width: 150px; }
.calc { background: var(--steel); border-radius: var(--radius); padding: 8px 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 20px; }
.fact { padding: 10px 14px; border-bottom: 1px solid var(--steel); }
.fact dt { font-size: 0.82rem; color: var(--ink-3); }
.fact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { padding: 3px 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, 0.15); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.perm-group { margin: 0; padding: 8px 12px 10px; }
.perm-group .check { display: flex; font-size: 0.9rem; }
.perm-group legend .check { font-weight: 700; }

/* ---- Modal ---- */
.modal { border: none; border-radius: 6px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 18px 48px rgba(15, 31, 53, 0.35); }
.modal-wide { width: min(980px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(15, 31, 53, 0.55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--navy); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-body { padding: 16px 18px 20px; }
.modal fieldset { background: transparent; }

/* ---- Toast ---- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 11px 16px; border-radius: var(--radius); color: #fff; background: var(--navy); box-shadow: 0 6px 18px rgba(15, 31, 53, 0.25); }
.toast-ok { background: var(--ok); }
.toast-error { background: var(--bad); }
.toast-info { background: var(--navy); border-left: 4px solid var(--signal); }

/* ---- Giriş ---- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 420px); background: var(--navy); }
.login-roster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 10vh 8vw; align-content: center; }
.lr { aspect-ratio: 1.6; border-radius: 2px; background: #2a4670; }
.lr-0 { background: #33557f; }
.lr-1 { background: var(--signal); }
.lr-2 { background: #6f8fb5; }
.lr-3 { background: #2a4670; }
.lr-4 { background: #d6dee7; }
.login-card { background: var(--paper); padding: 48px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.login-card h1 { font-size: 2.2rem; color: var(--navy); }
.login-lead { margin: -6px 0 10px; color: var(--ink-2); }

/* ---- Vardiya çizelgesi ---- */
.month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 4px; }
.month-nav strong { min-width: 120px; text-align: center; }
.roster-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; position: sticky; top: 0; z-index: 5; }
.brushes, .roster-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.brush { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 5px 10px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.brush[aria-checked="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); font-weight: 650; }
.brush-swatch { width: 14px; height: 14px; border-radius: 2px; }
.brush-leave { width: auto; font-size: 0.9rem; padding: 5px 8px; }
.roster-scroll { overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - 230px); user-select: none; }
.roster { border-collapse: separate; border-spacing: 0; font-size: 0.82rem; }
.roster th, .roster td { border-right: 1px solid var(--steel-2); border-bottom: 1px solid var(--steel-2); }
.roster thead th { position: sticky; top: 0; background: #f3f6f9; z-index: 2; font-weight: 650; }
.r-name { position: sticky; left: 0; background: var(--paper); z-index: 1; text-align: left; padding: 6px 10px; min-width: 190px; max-width: 220px; font-weight: 600; }
thead .r-name { z-index: 3; background: #f3f6f9; }
.r-name small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.76rem; }
.r-day { width: 38px; min-width: 38px; padding: 4px 0; text-align: center; line-height: 1.1; }
.r-day span { display: block; font-size: 0.9rem; }
.r-day small { color: var(--ink-3); font-weight: 400; font-size: 0.7rem; }
.r-day.wk { background: #e6ecf3; }
.r-day.hol { background: var(--signal-soft); box-shadow: inset 0 3px 0 var(--signal); }
.r-day.locked { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(29, 53, 87, 0.12) 4px 6px); }
.r-cell { padding: 0; height: 34px; }
.r-cell.wk { background: #f5f7fa; }
.r-cell.hol { background: #fffbea; }
.r-cell button { display: block; width: 100%; height: 33px; border: none; background: transparent; font: inherit; font-size: 0.74rem; font-weight: 650; cursor: crosshair; padding: 0; color: var(--ink); letter-spacing: -0.02em; }
.r-cell button:hover:not(:disabled) { outline: 2px solid var(--navy); outline-offset: -2px; }
.r-cell button:disabled { cursor: not-allowed; }
.r-cell.ro button { opacity: 0.55; background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(29, 53, 87, 0.12) 4px 6px); }
.r-cell.out { background: repeating-linear-gradient(135deg, #f3f6f9 0 4px, #e9eef3 4px 6px); }
.r-cell.changed button { box-shadow: inset 0 0 0 2px var(--signal); }
.r-sum { padding: 4px 8px; text-align: right; font-weight: 650; background: #f3f6f9; white-space: nowrap; }
.legend { color: var(--ink-3); font-size: 0.85rem; margin-top: 10px; }
.lg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; border: 1px solid var(--line); }
.lg-locked { background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(29, 53, 87, 0.3) 3px 4px); }
.lg-hol { background: var(--signal-soft); border-top: 3px solid var(--signal); }
.lg-changed { box-shadow: inset 0 0 0 2px var(--signal); }

/* ---- Duyarlı ---- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform 0.2s ease; z-index: 40; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 31, 53, 0.45); }
  .topbar { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 8px 12px; position: sticky; top: 0; z-index: 30; }
  .topbar-title { font-weight: 650; }
  .page { padding: 20px 16px 40px; }
  .dash-grid, .two-col { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-roster { display: none; }
  .login-card { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .stat { border-right: none; border-bottom: 1px solid var(--steel-2); }
}

/* ---- Faz 2: muhasebe ---- */
.ym { display: inline-flex; gap: 6px; }
.ym select { width: auto; }
.num, input.num { text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: 0.85rem; }
.totals { text-align: right; font-size: 1.05rem; }
.neg { color: var(--bad); }
.expense-grid td { padding: 4px 6px; }
.expense-grid input, .expense-grid select { padding: 5px 7px; min-width: 110px; }
.expense-grid tfoot td { border-top: 2px solid var(--line); padding: 8px 6px; }
.row-error td { background: var(--bad-soft); }
.row-error-msg td { color: var(--bad); font-size: 0.85rem; padding-top: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { padding: 10px 14px; border-right: 1px solid var(--steel-2); display: flex; flex-direction: column; color: var(--ink-3); box-shadow: inset 0 3px 0 var(--steel-2); }
.steps li:last-child { border-right: none; }
.steps li.done { color: var(--ink); box-shadow: inset 0 3px 0 var(--navy); }
.steps li span { font-size: 0.82rem; }
.check-list { list-style: none; padding: 0; }
.comp-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.payslip { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; position: sticky; top: 12px; }
.payslip h3 { font-size: 1rem; margin-bottom: 8px; }
.payslip h3 small { font-weight: 400; color: var(--ink-3); }
.payslip table { width: 100%; border-collapse: collapse; }
.payslip th { text-align: left; font-weight: 400; padding: 4px 0; color: var(--ink-2); }
.payslip th small { color: var(--ink-3); font-size: 0.78rem; }
.payslip td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; }
.payslip tr.strong th, .payslip tr.strong td { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 7px; }
.receipts { list-style: none; padding: 0; margin: 0; }
.receipts li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--steel); flex-wrap: wrap; }
.cost-grid th[scope="row"] { text-align: left; white-space: nowrap; font-weight: 600; position: sticky; left: 0; background: var(--paper); z-index: 1; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.cost-grid thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 2; }
.cost-grid th[scope="row"] small { display: block; color: var(--ink-3); font-weight: 400; }
.cost-grid { font-size: 0.85rem; }
.cost-grid th, .cost-grid td { padding: 4px 4px; }
.cost-grid thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; padding: 6px 4px; font-size: 0.8rem; }
.cost-grid input { width: 92px; min-width: 0; padding: 4px 5px; font-size: 0.85rem; }
.cost-grid td.num { white-space: nowrap; font-weight: 600; padding: 4px 8px; }
.cost-grid .grp-in { background: var(--ok-soft); text-align: center; }
.cost-grid .grp-out { background: var(--bad-soft); text-align: center; }
.cost-grid tr.dirty td { background: var(--signal-soft); }
.legend-inline { font-size: 0.85rem; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.sw { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }
.sw-in, .yb-in { background: var(--ok); }
.sw-out, .yb-out { background: var(--navy); }
.year-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 180px; align-items: end; }
.yb { display: flex; flex-direction: column; align-items: center; height: 100%; }
.yb-bars { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; }
.yb-bars span { width: 40%; max-width: 18px; border-radius: 2px 2px 0 0; min-height: 1px; }
.yb small { color: var(--ink-3); margin-top: 4px; }
.prov { max-width: 620px; }
.prov td { text-align: center; }
.print-page { max-width: 900px; margin: 0 auto; padding: 32px; background: #fff; min-height: 100vh; }
.print-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 16px; }
.print-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.92rem; }
.print-table th, .print-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.print-table .num { text-align: right; }
.print-table tr.struck td { text-decoration: line-through; color: var(--ink-3); }
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.signatures div { border-top: 1px solid var(--ink); padding-top: 6px; display: flex; flex-direction: column; }
.signatures span { color: var(--ink-3); font-size: 0.85rem; }
@media print {
  .side, .topbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .print-page { padding: 0; }
}
@media (max-width: 960px) {
  .comp-layout { grid-template-columns: 1fr; }
  .payslip { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- Faz 3: dosyalar ve dokümanlar ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 6px; padding: 8px 10px; background: var(--paper); min-height: 42px; }
.has-error .file-box { border-color: var(--bad); }
.file-actions { display: inline-flex; align-items: center; gap: 10px; }
.btn-sm { padding: 4px 10px; font-size: 0.85rem; cursor: pointer; }
.btn.disabled { opacity: 0.5; pointer-events: none; }
.btn:focus-within { box-shadow: var(--focus); }
.file-link { overflow-wrap: anywhere; }
.small { font-size: 0.83rem; }
.doc-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.expense-grid .file-box { min-height: 34px; padding: 4px 6px; border-style: dotted; }
.expense-grid .file-field .field-hint, .expense-grid .file-field > label { display: none; }
.receipt-cell { min-width: 180px; }
.form > .file-field + .file-field, .form > .file-field { margin-bottom: 6px; }
.expense-grid .file-box { flex-wrap: nowrap; min-height: 0; border: 0; padding: 0; background: transparent; }
.expense-grid .file-box > .muted, .expense-grid .file-link > .muted { display: none; }
.expense-grid .file-field { margin: 0; }

/* ---------- Faz 4: eğitim, demirbaş, kıyafet ---------- */
.pos { color: var(--ok, #1f7a3d); }
.section-title { font-size: 1rem; margin: 22px 0 8px; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.radios legend { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
fieldset.chips { border: 0; padding: 0; }
.section-actions .check { margin-right: auto; }
.page-actions select, .table-tools select { width: auto; min-width: 140px; }
.size-table select { width: auto; min-width: 140px; }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }

/* ---------- Faz 5: saha (mobil, PWA) ---------- */
.field-app { min-height: 100vh; background: var(--bg, #f4f6f9); display: flex; flex-direction: column; }
.field-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; }
.field-top h1 { font-size: 1.1rem; margin: 0; flex: 1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-back { color: #fff; font-size: 1.8rem; line-height: 1; text-decoration: none; padding: 0 6px; }
.field-link { color: #fff; background: none; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); padding: 5px 10px; font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.field-offline { background: var(--bad); color: #fff; padding: 8px 16px; font-size: .9rem; }
.field-main { padding: 16px; max-width: 640px; width: 100%; margin: 0 auto; }
.field-hello { margin: 0 0 4px; }
.field-project { margin: 0 0 14px; font-weight: 600; color: var(--navy); }
.field-select { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin-bottom: 14px; }
.field-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.field-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 88px; }
.field-tile strong { font-size: 1.05rem; }
.field-tile span { font-size: .85rem; color: var(--ink-3); }
.field-tile-alert { background: var(--bad); border-color: var(--bad); color: #fff; }
.field-tile-alert span { color: rgba(255,255,255,.85); }
.field-h2 { font-size: 1rem; margin: 18px 0 8px; }
.field-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.field-row span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.field-row small { color: var(--ink-3); }
.field-list.compact .field-row { padding: 10px 12px; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--info-soft, #e7eef7); color: var(--navy); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill-bad { background: #fde8e8; color: var(--bad); }
.field-form { display: flex; flex-direction: column; gap: 14px; }
.field-q { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 12px 14px; margin: 0; }
.field-q legend { padding: 0 4px; font-weight: 600; line-height: 1.35; }
.field-q.has-error { border-color: var(--bad); }
.field-q input, .field-q textarea, .field-label input, .field-label textarea, .field-label select, .field-select select { width: 100%; font-size: 16px; padding: 10px; }
.field-qn { color: var(--ink-3); }
.field-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.field-choice button, .field-score button { font: inherit; font-weight: 600; padding: 14px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.field-choice button.on.yes { background: #1f7a3d; border-color: #1f7a3d; color: #fff; }
.field-choice button.on.no { background: var(--bad); border-color: var(--bad); color: #fff; }
.field-score { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.field-score button { padding: 10px 0; }
.field-score button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.field-error { color: var(--bad); font-size: .85rem; display: block; margin-top: 6px; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.field-submit { width: 100%; padding: 14px; font-size: 1.05rem; justify-content: center; }
.field-btn { justify-content: center; cursor: pointer; }
.field-photos { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.field-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.field-thumbs figure { position: relative; margin: 0; }
.field-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.field-thumbs button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 1rem; cursor: pointer; }
.field-sheet { position: fixed; inset: auto 0 0 0; max-height: 80vh; overflow: auto; background: var(--paper); border-top: 2px solid var(--navy); padding: 14px 16px 24px; box-shadow: 0 -8px 24px rgba(0,0,0,.15); z-index: 10; }
.field-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.field-sheet-head button { border: 0; background: none; font-size: 1.6rem; cursor: pointer; }
.field-answers dt { font-weight: 600; margin-top: 10px; }
.field-answers dd { margin: 2px 0 0; }
.field-answers img { max-width: 100%; border-radius: 8px; }
/* Yönetim ekranları */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-width: 160px; }
.question-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.question-row { display: grid; grid-template-columns: 28px 1fr 170px auto auto; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.question-row .qn { font-weight: 700; color: var(--ink-3); text-align: right; }
@media (max-width: 760px) { .question-row { grid-template-columns: 1fr; } .question-row .qn { text-align: left; } }
.num-sm { width: 90px; }
.thumb { max-width: 160px; max-height: 120px; border-radius: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.pre { white-space: pre-wrap; }
/* Uzun soru başlıkları çerçeveyi kesmesin: legend kutunun içinde */
.field-q > legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.field-q > legend + * { clear: both; }

/* ---- Faz 5b: devriye ve karekod giriş-çıkış ---- */
.qr svg { width: 100%; height: 100%; display: block; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.qr-label { margin: 0; border: 1px dashed var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; break-inside: avoid; text-align: center; }
.qr-label figcaption { display: flex; flex-direction: column; gap: 2px; }
.qr-label code { font-size: .95rem; letter-spacing: .04em; }
.gate-codes { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.gate-dir { font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; color: var(--navy); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-info { background: #e7eef7; color: var(--navy); }
.scanner { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 16px; }
.scanner-video { width: 100%; max-height: 52vh; object-fit: cover; border-radius: 12px; background: #000; }
.scanner-actions { display: flex; flex-direction: column; gap: 8px; }
.scanner-manual { display: flex; gap: 8px; align-items: flex-end; }
.scanner-manual .field-label { flex: 1; margin: 0; }
.scanner-manual input { font-family: ui-monospace, monospace; letter-spacing: .06em; }
.field-result { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; border-radius: 12px; margin: 12px 0 18px; text-align: center; }
.field-result strong { font-size: 1.35rem; }
.field-result.ok { background: var(--ok-soft); border: 1px solid var(--ok); }
.field-result.info { background: #e7eef7; border: 1px solid var(--navy); }
.field-result.bad { background: #fde8e8; border: 1px solid var(--bad); }
@media print {
  .gate-codes.printing { gap: 0; }
  .gate-codes.printing .qr-label { width: 48%; border: 1px solid #000; padding: 24px; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Faz 6: gönderimler, şablonlar, hesap güvenliği ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.card h2 { font-size: 1.1rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.page.narrow { max-width: 860px; }
.mail-frame { width: 100%; min-height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sms-bubble { background: #e9f0f8; border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 420px; white-space: pre-wrap; margin: 6px 0; }
.sms-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .sms-layout { grid-template-columns: 1fr; } }
.pick-list { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: var(--paper); display: flex; flex-direction: column; gap: 4px; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.preview { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.preview h3 { font-size: 1rem; margin: 0 0 8px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-size: .92rem; }
.twofa-setup { display: flex; flex-direction: column; gap: 10px; }
.twofa-qr { width: 200px; height: 200px; align-self: center; }
.steps-list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.secret { word-break: break-all; font-size: .9rem; letter-spacing: .04em; }
.codes { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; font-size: 1.05rem; }
.side-user { color: #fff; text-decoration: none; }
.side-user:hover { text-decoration: underline; }
.banner { margin: 12px 24px 0; }

/* ---- Faz 7a: İK ve satış ---- */
.candidate-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.candidate-head h2 { margin: 0 0 4px; font-size: 1.2rem; display: flex; gap: 8px; align-items: center; }
.candidate-photo { width: 84px; height: 104px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #eef2f7; flex: none; }
.candidate-photo.empty { display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--ink-3); }
.exp-row { align-items: end; }
.sales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(540px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 560px) { .sales-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { border-left: 3px solid var(--line); padding-left: 10px; }
select.multi { min-width: 180px; }

/* ---- Faz 7b: portal, mesajlar, anket ---- */
.portal { min-height: 100vh; background: var(--bg, #eef2f6); }
.portal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: var(--navy); color: #fff; flex-wrap: wrap; }
.portal-top div:first-child { display: flex; flex-direction: column; }
.portal-top span { font-size: .82rem; opacity: .8; }
.portal-user { display: flex; gap: 14px; align-items: center; font-size: .92rem; }
.portal-user a, .portal-user .btn-link { color: #fff; }
.portal-main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 40px; }
.portal-project { font-size: 1.4rem; margin: 0; color: var(--navy); }
.news h3 { margin: 0 0 4px; font-size: 1rem; }
.news + .news { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.news p { margin: 0 0 4px; white-space: pre-wrap; }
.scroll-x { overflow-x: auto; }
table.shift-view th[scope=row] { white-space: nowrap; text-align: left; position: sticky; left: 0; background: var(--paper); }
table.shift-view td { text-align: center; font-size: .78rem; padding: 4px 2px; min-width: 38px; border-left: 1px solid var(--line); }
.answer-photo { max-width: 220px; border-radius: 6px; }
strong.bad { color: var(--bad); }
.incident-list .card h3 { margin: 0 0 6px; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.thread-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-height: 160px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: #eef2f7; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: #dbe7f6; border-bottom-right-radius: 4px; }
.bubble.theirs { border-bottom-left-radius: 4px; }
.bubble p { margin: 0 0 2px; white-space: pre-wrap; }
.bubble small { color: var(--ink-3); font-size: .75rem; }
.thread-compose { display: flex; gap: 8px; align-items: flex-end; }
.thread-compose textarea { flex: 1; }
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } }
.chat-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.chat-item { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.chat-item.active { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.chat-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main h2 { margin: 0 0 8px; font-size: 1.1rem; }
.score5 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.score5 button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-weight: 700; cursor: pointer; }
.score5 button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.survey-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.survey-q legend { font-weight: 600; padding: 0 4px; }
.question-row { display: flex; gap: 8px; align-items: flex-end; }
.question-row .field { flex: 1; }
.public-page { min-height: 100vh; display: grid; place-items: start center; padding: 40px 16px; background: var(--bg, #eef2f6); }
.public-card { width: min(720px, 100%); background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.public-card h1 { margin: 4px 0 8px; color: var(--navy); }
.field-news { background: var(--paper); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); }
.field-news p { margin: 4px 0; white-space: pre-wrap; }

/* Faz 8: dışa aktarma bağlantıları */
.export-links { display: inline-flex; gap: 0; }
.export-links .btn { border-radius: 0; margin-left: -1px; }
.export-links .btn:first-child { border-radius: var(--radius, 6px) 0 0 var(--radius, 6px); margin-left: 0; }
.export-links .btn:last-child { border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0; }
.card-list { display: grid; gap: 10px; max-width: 900px; }
.card-list .card { margin-bottom: 0; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Faz 8: proje haritası */
.map-box { height: calc(100vh - 260px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: #e8edf2; }
.map-box-picker { height: 420px; min-height: 0; margin-bottom: 12px; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-2, #444); margin: 0 0 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.map-pin { background: none; border: none; }
.map-pin span { display: block; width: 20px; height: 20px; margin: 0 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.map-pin-ok span, i.map-pin-ok { background: var(--ok); }
.map-pin-bad span, i.map-pin-bad { background: var(--bad); }
.map-pin-warn span, i.map-pin-warn { background: #c27a00; }
.map-pin-muted span, i.map-pin-muted { background: #8a96a3; }
.map-popup { min-width: 220px; font: 13px/1.4 system-ui, sans-serif; }
.map-popup strong { display: block; font-size: 14px; margin-bottom: 6px; }
.map-popup dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 8px; }
.map-popup dt { color: #66707a; }
.map-popup dd { margin: 0; }
.map-missing { margin-top: 14px; }
.map-missing ul { columns: 2; margin: 8px 0 0; padding-left: 18px; }
.field-action { justify-content: flex-end; }

/* Faz 8: veri aktarımı */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.choice { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--paper); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--info-soft); }
.choice.disabled { cursor: not-allowed; opacity: .55; }
.choice:focus-within { box-shadow: var(--focus); }
.stat-ok { box-shadow: inset 0 -3px 0 var(--ok); }
.table-compact th, .table-compact td { padding: 4px 8px; }
.import-mapping { margin: 10px 0; }
.import-mapping .table { max-width: 640px; margin-top: 8px; }
.row-notes { margin: 0; padding-left: 16px; font-size: .88rem; }
.row-notes .note-bad { color: var(--bad); }
.row-notes .note-warn { color: #8a5a00; }
.import-errors { font-size: .9rem; max-height: 260px; overflow: auto; }

/* ---- Faz 8: dil seçimi (docs/18) ---- */
.lang-select select { font: inherit; font-size: .82rem; padding: 3px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-width: 9.5rem; }
.side-foot .lang-select select, .field-top .lang-select select, .portal-user .lang-select select { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.side-foot .lang-select option, .field-top .lang-select option, .portal-user .lang-select option { color: var(--ink); }
.side-foot { flex-wrap: wrap; align-items: center; }
.login { position: relative; }
.login-lang { position: absolute; top: 12px; right: 12px; z-index: 2; }
.public-lang { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.field-lang select { max-width: 4.5rem; }
.sub-h { font-size: .95rem; margin: 18px 0 4px; color: var(--navy); }

/* ---- Faz 9: risk analizi (docs/19) ---- */
.crumbs { margin: 0 0 6px; font-size: .88rem; color: var(--ink-3); }
.input-num { width: 5.5rem; text-align: right; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.risk-finding { position: relative; }
.risk-finding legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.risk-remove { position: absolute; top: 10px; right: 16px; }
.with-mic { display: flex; gap: 6px; align-items: flex-start; }
.with-mic textarea { flex: 1; }
.btn-icon.mic { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); width: 40px; height: 40px; font-size: 1.1rem; }
.btn-icon.mic.recording { background: var(--bad-soft); border-color: var(--bad); animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 4px rgba(180, 35, 24, .2); } }
@media (prefers-reduced-motion: reduce) { .btn-icon.mic.recording { animation: none; } }
.risk-photo { display: flex; gap: 12px; align-items: flex-end; }
.risk-photo img { width: 160px; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.risk-view h2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 1.05rem; }
.risk-view h3 { font-size: .85rem; color: var(--ink-3); margin: 10px 0 2px; }
.risk-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.risk-cols { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.risk-img { width: 240px; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 640px) { .risk-cols { grid-template-columns: 1fr; } }

/* ---- Kullanılabilirlik düzeltmeleri (telefonda taşma, sayfa yolu) ---- */
.sales-grid > *, .grid > *, .risk-cols > * { min-width: 0; }
.choice { position: relative; }
.choice input { width: 1px; height: 1px; }
.form-actions { flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--navy); }
/* Ana panel: yapılacaklar */
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--paper); }
.todo-item:hover { background: var(--steel); }
.todo-item:focus-visible { box-shadow: var(--focus); outline: none; }
.todo-bad { border-left-color: var(--bad); }
.todo-warn { border-left-color: var(--signal); }
.todo-info { border-left-color: var(--info); }
.todo-count { font-weight: 700; font-size: 1.15rem; min-width: 2ch; text-align: right; }
.todo-bad .todo-count { color: var(--bad); }
.todo-label { flex: 1; }
.todo-go { color: var(--ink-3); font-size: 1.2rem; }
/* Kayıt eksikleri / sonraki adımlar */
.next-steps { background: var(--signal-soft); border: 1px solid #ecd98a; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 18px; }
.next-steps h2 { font-size: .95rem; margin: 0 0 8px; }
.next-steps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.next-steps li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-left: 12px; border-left: 3px solid var(--signal); }
.next-steps li.step-bad { border-left-color: var(--bad); }
.next-steps li.step-info { border-left-color: var(--info); }
.next-steps .btn-link, .next-steps a { white-space: nowrap; font-weight: 600; }
.nav-search { padding: 10px 14px 4px; }
.nav-search input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; font-size: .9rem; padding: 6px 9px; }
.nav-search input::placeholder { color: rgba(255, 255, 255, .55); }
