:root {
  --navy: #14284b;
  --navy-2: #1d3661;
  --navy-3: #2a4a7f;
  --red: #c8102e;
  --red-d: #a50d26;
  --bg: #f4f5f7;
  --card: #fff;
  --line: #dfe1e6;
  --line-2: #ebecf0;
  --text: #172b4d;
  --muted: #5e6c84;
  --muted-2: #8993a4;
  --blue: #0c66e4;
  --blue-l: #e9f2ff;
  --green: #1f845a;
  --green-l: #dcfff1;
  --amber: #a54800;
  --amber-l: #fff7d6;
  --purple: #6e5dc6;
  --purple-l: #f3f0ff;
  --danger: #c9372c;
  --danger-l: #ffeceb;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(9, 30, 66, .12), 0 0 1px rgba(9, 30, 66, .2);
  --shadow-lg: 0 8px 24px rgba(9, 30, 66, .18), 0 0 1px rgba(9, 30, 66, .3);
  --side: 232px;
  --top: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
.boot-loading { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid transparent; background: #f1f2f4; color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: #e4e6ea; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #0055cc; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-d); }
.btn.green { background: var(--green); color: #fff; }
.btn.green:hover { background: #216e4e; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(9, 30, 66, .07); }
.btn.outline { background: #fff; border-color: var(--line); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12.5px; }
.btn.lg { height: 40px; padding: 0 18px; font-size: 15px; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 50%; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.field .req { color: var(--danger); }
.field .hint { font-size: 12px; color: var(--muted-2); }
.input, select.input, textarea.input { width: 100%; height: 34px; border: 1px solid #c1c7d0; border-radius: 6px; padding: 0 10px; background: #fff; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.input.err { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; max-height: 150px; overflow: auto; }
fieldset.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; margin: 0; }
fieldset.group legend { font-size: 12px; font-weight: 650; color: var(--muted); padding: 0 6px; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; background: #dfe1e6; color: #44546f; }
.st-open { background: #dfe1e6; color: #44546f; }
.st-analysis { background: #e9f2ff; color: #0055cc; }
.st-implementation { background: #cce0ff; color: #09326c; }
.st-uat { background: var(--purple-l); color: #5e4db2; }
.st-on_hold { background: #fff7d6; color: #a54800; }
.st-accepted { background: #dcfff1; color: #216e4e; }
.st-closed { background: #c3f0d9; color: #164b35; }
.pr { font-weight: 650; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.pr::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.pr-critical { color: #c9372c; }
.pr-high { color: #e56910; }
.pr-medium { color: #0c66e4; }
.pr-low { color: #8590a2; }
.tag-sample { background: #fff0b3; color: #7f5f01; }
.tag-internal { background: #ffeceb; color: #ae2e24; }
.tag-type { background: #f1f2f4; color: #44546f; font-weight: 600; }
.tag-env { background: #e3fafc; color: #206b74; }
.side-ours { color: var(--green); }
.side-theirs { color: var(--amber); }
.team-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.team-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.team-chip.aydin::before { background: var(--red); }
.team-chip.sap::before { background: var(--blue); }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--navy-3); flex: none; }
.avatar.aydin { background: var(--red); }
.avatar.sap { background: var(--blue); }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.person { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key { font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.overdue { color: var(--danger); font-weight: 650; }
.due-soon { color: var(--amber); font-weight: 600; }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; grid-template-rows: var(--top) 1fr; height: 100vh; }
.sidebar { grid-row: 1 / 3; background: var(--navy); color: #c7d1e5; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; height: var(--top); color: #fff; }
.brand-logo { height: 32px; width: auto; display: block; flex: none; }
.brand-logo-lg { height: 52px; }
.brand-name { font-weight: 700; font-size: 14px; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: #94a6c6; }
.proj-select { margin: 6px 12px 10px; }
.proj-select select { width: 100%; height: 32px; border-radius: 6px; border: 1px solid #2f4a78; background: var(--navy-2); color: #fff; padding: 0 8px; }
.nav { display: flex; flex-direction: column; padding: 4px 8px; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #c7d1e5; font-weight: 550; text-decoration: none; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: #fff; color: var(--navy); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding: 12px 16px; font-size: 11.5px; color: #8aa0c5; border-top: 1px solid #22396a; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; height: 36px; border-radius: 6px; border: 1px solid #c1c7d0; padding: 0 12px 0 34px; background: #fafbfc; outline: none; }
.search input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.search svg { position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; color: var(--muted-2); }
.search-pop { position: absolute; top: 40px; left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 420px; overflow-y: auto; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.search-pop a:hover, .search-pop a.sel { background: var(--blue-l); }
.search-pop .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; }
.bell .count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.user-btn { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 20px; cursor: pointer; border: 0; background: transparent; }
.user-btn:hover { background: #f1f2f4; }
.user-btn .nm { font-weight: 600; font-size: 13px; line-height: 1.1; text-align: left; }
.user-btn .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.popover { position: absolute; top: 50px; right: 12px; width: 380px; max-width: calc(100vw - 24px); background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
.popover-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 460px; overflow-y: auto; }
.notif { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; color: var(--text); text-decoration: none !important; }
.notif:hover { background: #f7f8f9; }
.notif.unread { background: #f0f6ff; }
.notif.unread::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.notif .ic { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; color: var(--text); text-decoration: none; }
.menu a:hover, .menu button:hover { background: #f1f2f4; }
.main { overflow-y: auto; overflow-x: hidden; min-width: 0; }
.page { padding: 20px 24px 40px; max-width: 1500px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.mob-menu { display: none; }
.mobile-nav { display: none; }

/* ---------- Özet ---------- */
.boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.box { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; border-top: 3px solid var(--blue); transition: transform .08s, box-shadow .08s; }
.box:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.box .n { font-size: 30px; font-weight: 700; line-height: 1; }
.box .l { font-weight: 650; }
.box .d { font-size: 12px; color: var(--muted); }
.box.b-ours { border-top-color: var(--green); }
.box.b-theirs { border-top-color: #e56910; }
.box.b-uat { border-top-color: var(--purple); }
.box.b-overdue { border-top-color: var(--danger); }
.box.b-overdue .n { color: var(--danger); }
.box.b-thisweek { border-top-color: #22a06b; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.mini-list a:hover { background: #f7f8f9; }
.mini-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matrix th, .matrix td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; font-weight: 650; }
.matrix th { font-size: 11px; color: var(--muted); font-weight: 650; }
.matrix td a { display: inline-block; min-width: 22px; border-radius: 4px; padding: 1px 4px; }
.matrix td a:hover { background: var(--blue-l); text-decoration: none; }
.activity { padding: 4px 0; }
.activity div { padding: 8px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.welcome { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; background: #fffbe6; border: 1px solid #f5e08a; border-radius: var(--radius); }

/* ---------- Liste ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px; margin-bottom: 12px; }
.filters .field { width: 150px; }
.filters .field.q { width: 240px; }
.filters .field.dt { width: 140px; }
.filters .input { height: 32px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 13px; background: var(--blue-l); color: #0055cc; font-size: 12.5px; font-weight: 600; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 2px; }
.table-wrap { overflow-x: auto; }
table.issues { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.issues th { position: sticky; top: 0; background: #fafbfc; text-align: left; font-size: 11.5px; font-weight: 650; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; z-index: 1; }
table.issues th.sorted::after { content: " ▾"; }
table.issues th.sorted.asc::after { content: " ▴"; }
table.issues td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.issues tbody tr { cursor: pointer; }
table.issues tbody tr:hover td { background: #f7f8f9; }
table.issues .title-cell { min-width: 260px; max-width: 420px; }
table.issues .title-cell a { color: var(--text); font-weight: 550; }
table.issues .title-cell .sub { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.act-cell { line-height: 1.25; min-width: 150px; }
.act-cell .p { font-weight: 600; }
.list-foot { padding: 10px 14px; color: var(--muted); font-size: 12.5px; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 12px; min-height: calc(100vh - 220px); }
.col { background: #ebecf0; border-radius: 10px; display: flex; flex-direction: column; min-height: 200px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.col-head .n { background: #dfe1e6; border-radius: 9px; padding: 0 7px; font-size: 11px; }
.col-body { flex: 1; padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; border-radius: 0 0 10px 10px; transition: background .1s; }
.col.drop-ok .col-body { background: #dbe8ff; outline: 2px dashed var(--blue); outline-offset: -4px; }
.col.drop-no .col-body { background: #ffe9e7; }
.kcard { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 10px 11px; cursor: grab; display: flex; flex-direction: column; gap: 7px; color: var(--text); text-decoration: none !important; border-left: 3px solid transparent; }
.kcard:hover { background: #fafbfc; }
.kcard.dragging { opacity: .45; }
.kcard.internal { border-left-color: var(--red); }
.kcard .kt { font-weight: 550; line-height: 1.3; }
.kcard .kmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.kcard .kact { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 6px; background: #f7f8f9; font-size: 12px; }
.kcard .kact .p { font-weight: 650; }
.kcard .khold { font-size: 12px; color: var(--amber); background: var(--amber-l); border-radius: 6px; padding: 5px 8px; }

/* ---------- Detay ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; }
.d-title { font-size: 22px; font-weight: 650; margin: 0 0 10px; word-break: break-word; }
.next-action { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); border-left: 5px solid var(--blue); margin-bottom: 16px; flex-wrap: wrap; }
.next-action.ours { border-left-color: var(--green); }
.next-action.theirs { border-left-color: #e56910; }
.next-action.hold { border-left-color: #f5cd47; background: #fffdf2; }
.next-action.done { border-left-color: #22a06b; }
.next-action .na-main { flex: 1; min-width: 220px; }
.next-action .na-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.next-action .na-what { font-size: 15px; font-weight: 650; margin: 2px 0 4px; }
.next-action .na-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.next-action .na-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.section { margin-bottom: 16px; }
.section .card-pad { padding: 14px 16px; }
.section h3 { margin-bottom: 8px; }
.rich { white-space: pre-wrap; word-break: break-word; }
.rich .mention { background: var(--blue-l); color: #0055cc; border-radius: 3px; padding: 0 3px; font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.comment:last-child { border-bottom: 0; }
.comment .cb { flex: 1; min-width: 0; }
.comment.internal .cbody { background: #fff4f3; border: 1px dashed #f3b5af; border-radius: 6px; padding: 8px 10px; }
.comment .ch { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.composer { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; position: relative; }
.composer .row { flex-wrap: wrap; }
.mention-pop { position: absolute; z-index: 40; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); width: 260px; max-height: 220px; overflow-y: auto; }
.mention-pop div { padding: 7px 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.mention-pop div.sel, .mention-pop div:hover { background: var(--blue-l); }
.files { display: flex; flex-direction: column; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; }
.file .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.file-ic { width: 30px; height: 30px; border-radius: 5px; background: #e9f2ff; color: #0055cc; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.links .lk { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.links .lk:last-child { border-bottom: 0; }
.links .lk .t { flex: 1; min-width: 160px; }
.links .grp { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin: 10px 0 2px; }
.hist { position: relative; }
.hist .h { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.hist .h:last-child { border-bottom: 0; }
.hist .chg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hist .old { text-decoration: line-through; color: var(--muted); }
.hist .new { font-weight: 600; }
.hist .note { margin-top: 4px; padding: 6px 9px; background: #f7f8f9; border-radius: 6px; white-space: pre-wrap; }
.hist .long { max-height: 3.2em; overflow: hidden; display: inline-block; max-width: 420px; vertical-align: bottom; }
.props { padding: 4px 0; }
.prop { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 7px 16px; align-items: center; font-size: 13px; }
.prop > span:first-child { color: var(--muted); font-size: 12.5px; }
.prop-sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.uat-round { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.uat-round .hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.uat-round .kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: 13px; }
.uat-round .kv > span:nth-child(odd) { color: var(--muted); }
.dec-ok { color: var(--green); font-weight: 650; }
.dec-no { color: var(--danger); font-weight: 650; }
.hold-box { padding: 10px 12px; background: var(--amber-l); border-radius: 8px; color: #7f3f00; margin-bottom: 12px; }

/* ---------- Modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(9, 30, 66, .54); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; display: flex; flex-direction: column; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 8px; }
.modal-body { padding: 10px 20px 16px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.modal .err-box { background: var(--danger-l); color: #ae2e24; padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; }
.info-box { background: var(--blue-l); color: #09326c; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; width: min(520px, calc(100vw - 24px)); }
.toast { background: var(--navy); color: #fff; padding: 11px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); animation: tin .18s ease-out; }
.toast.err { background: #ae2e24; }
.toast.ok { background: #216e4e; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Giriş ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(150deg, var(--navy) 0%, #1f3d70 60%, #6d1020 140%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-side h1 { font-size: 30px; }
.auth-side ul { padding-left: 18px; color: #c7d1e5; line-height: 1.8; }
.auth-main { display: grid; place-items: center; padding: 32px 18px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card { padding: 24px; }
.demo { margin-top: 16px; font-size: 12.5px; }
.demo table { width: 100%; border-collapse: collapse; }
.demo td { padding: 5px 4px; border-bottom: 1px solid var(--line-2); }
.demo button { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 0; font: inherit; text-align: left; }

/* ---------- Yönetim ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-size: 11.5px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tr.off td { opacity: .5; }
.auth-link { text-align: center; font-size: 13px; }
#mailForm .err-box, .card-pad > .err-box, #backupForm .err-box { background: var(--danger-l); color: #ae2e24; padding: 8px 12px; border-radius: 6px; }
.badge.mail-on { background: #e3fcef; color: #006644; }
.mail-st.ok { color: #006644; font-weight: 600; }
.mail-st.bad { color: #ae2e24; font-weight: 600; }
.copy-box { display: flex; gap: 6px; }
.copy-box input { flex: 1; font-family: Consolas, monospace; font-size: 12px; }

/* ---------- Mobil ---------- */
@media (max-width: 1180px) {
  .boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: var(--top) 1fr auto; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 90; transform: translateX(-100%); transition: transform .18s; }
  .shell.side-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .shell.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(9, 30, 66, .4); z-index: 80; }
  .mob-menu { display: inline-flex; }
  .topbar { padding: 0 8px; gap: 6px; }
  .topbar .new-label, .user-btn .nm { display: none; }
  .page { padding: 14px 12px 90px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 8px; font-size: 11px; color: var(--muted); text-decoration: none; }
  .mobile-nav a.active { color: var(--blue); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .box { padding: 12px; }
  .box .n { font-size: 24px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .filters .field, .filters .field.q, .filters .field.dt { width: calc(50% - 4px); }
  .filters .field.q { width: 100%; }
  table.issues thead { display: none; }
  table.issues, table.issues tbody, table.issues tr, table.issues td { display: block; width: 100%; }
  table.issues tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.issues td { border: 0; padding: 2px 0; }
  table.issues td.hide-m { display: none; }
  table.issues .title-cell { min-width: 0; max-width: none; }
  .modal-bg { padding: 0; align-items: stretch; }
  .modal { max-width: none !important; border-radius: 0; min-height: 100%; }
  .modal-foot { position: sticky; bottom: 0; background: #fff; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .next-action .na-btns { width: 100%; }
  .next-action .na-btns .btn { flex: 1; height: 40px; }
  .prop { grid-template-columns: 120px 1fr; }
  .popover { position: fixed; top: 56px; right: 6px; left: 6px; width: auto; }
}
