:root {
  --bg: #f3f4f6;
  --bg-elev: #ffffff;
  --ink: #14171c;
  --muted: #5c6570;
  --line: #e2e6eb;
  --accent: #e2001a;
  --accent-hover: #c40016;
  --accent-soft: #fde8eb;
  --accent-line: #f5b4bc;
  --nav-bg: #1a1d22;
  --nav-ink: #f4f5f6;
  --nav-muted: #9aa3ad;
  --nav-line: rgba(255, 255, 255, 0.08);
  --warn: #9a6b12;
  --danger: #b42318;
  --ok: #147a4a;
  --shadow: 0 8px 24px rgba(20, 23, 28, 0.07);
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(920px 420px at 100% -10%, rgba(226, 0, 26, 0.06) 0%, transparent 55%),
    radial-gradient(700px 380px at -5% 0%, rgba(26, 29, 34, 0.05) 0%, transparent 50%),
    var(--bg);
}
[hidden], .view-hidden { display: none !important; }

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}
.brand-logo-login { width: min(220px, 72%); margin: 0 auto 0.35rem; }
.brand-logo-nav { width: 168px; max-width: 100%; }

.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.025em;
}
.sub { color: var(--muted); margin: 0; line-height: 1.45; }
.page-head .sub:empty { display: none; }
.err { color: var(--danger); margin: 0.4rem 0 0; }

/* Login */
.login-screen:not([hidden]):not(.view-hidden) {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(226, 0, 26, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, #1a1d22 0%, #2a2f38 48%, #1a1d22 100%);
}
.login-card {
  width: min(420px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.login-card h1 { font-size: 1.65rem; margin-top: 0.55rem; }
.login-card form { display: grid; gap: 0.85rem; margin-top: 1.35rem; }

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
input, select, textarea, button {
  font: inherit;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
}
textarea { min-height: 120px; resize: vertical; }
button {
  cursor: pointer;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost, .btn-sec {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}
.btn-ghost:hover, .btn-sec:hover {
  background: #f7f8fa;
  border-color: #cfd5dc;
}
.btn-danger {
  background: #fff;
  color: var(--danger);
  border-color: #efc2bd;
}
.btn-danger:hover { background: #fff1ef; }

/* Shell */
.shell:not([hidden]):not(.view-hidden) {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.nav {
  background: var(--nav-bg);
  color: var(--nav-ink);
  border-right: 1px solid var(--nav-line);
  padding: 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-brand {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.55rem;
  border-bottom: 1px solid var(--nav-line);
}
.nav-brand strong {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-muted);
}
.city-box label { gap: 0.4rem; color: var(--nav-muted); }
.city-box select {
  background: #242830;
  border-color: var(--nav-line);
  color: var(--nav-ink);
}
#nav { display: grid; gap: 0.28rem; }
#nav button {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--nav-muted);
  font-weight: 500;
}
#nav button.active, #nav button:hover {
  background: rgba(226, 0, 26, 0.14);
  color: #fff;
  border-color: rgba(226, 0, 26, 0.35);
}
#nav button.active {
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-foot { margin-top: auto; display: grid; gap: 0.55rem; }
#user-chip { font-size: 0.84rem; color: var(--nav-muted); padding: 0.35rem; }
.nav .btn-ghost {
  color: var(--nav-ink);
  border-color: var(--nav-line);
  background: transparent;
}
.nav .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.content { padding: 1.45rem 1.65rem 2.4rem; }
.page-head { margin-bottom: 1.15rem; }
.page-head h2 { font-size: 1.7rem; }

.panel { display: grid; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.grid { display: grid; gap: 1rem; }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.split { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 980px) {
  .shell:not([hidden]):not(.view-hidden) { grid-template-columns: 1fr; }
  .nav { border-right: 0; border-bottom: 1px solid var(--nav-line); }
  .split { grid-template-columns: 1fr; }
}

.home-page { display: grid; gap: 1rem; }
.home-done-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.home-period {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  gap: 0.15rem;
}
.home-period:hover:not(:disabled) { border-color: var(--accent-line); }
.home-period:disabled { opacity: 0.65; cursor: default; }
.home-period-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.home-period strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.home-period em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}
@media (max-width: 980px) {
  .home-done-periods { grid-template-columns: 1fr; }
}
.jobs-done-hint {
  margin: -0.15rem 0 0.55rem;
  font-size: 0.82rem;
}
.jobs-done-hint.warn {
  color: #9a6700;
}
.home-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.home-kpi {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  gap: 0.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.home-kpi:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
}
.home-kpi strong {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.home-kpi-wa { font-size: 1rem !important; }
.home-kpi span {
  font-weight: 600;
  font-size: 0.92rem;
}
.home-kpi em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}
.home-kpi.is-alert {
  border-color: #efc2bd;
  background: #fff8f7;
}
.home-kpi.is-alert strong { color: var(--danger); }
.home-kpi.is-warn {
  border-color: #ecd7a5;
  background: #fffbf1;
}
.home-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
  align-items: start;
}
.home-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.home-sec-head h3 { margin: 0; }
.home-mod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.home-mod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.home-mod:hover { border-color: var(--accent-line); background: #fff; }
.home-mod strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.home-mod-label { font-weight: 600; font-size: 0.9rem; }
.home-mod.is-paused { opacity: 0.72; }
.home-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
}
.home-dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #eef0f3;
}
.home-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.home-dl dd { margin: 0; font-size: 0.92rem; }
.home-dl dd.bad { color: var(--danger); }
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.home-pauses summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.home-pause-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
@media (max-width: 980px) {
  .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-kpis { grid-template-columns: 1fr; }
  .home-mod-grid { grid-template-columns: 1fr; }
}

.box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow);
}
.box h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.metric {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.metric-label { color: var(--muted); font-size: 0.86rem; margin-top: 0.25rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
}
.pill.ok { color: var(--ok); border-color: #b9e2cb; background: #eef9f2; }
.pill.warn { color: var(--warn); border-color: #ecd7a5; background: #fff8e8; }
.pill.bad { color: var(--danger); border-color: #efc2bd; background: #fff1ef; }

.hint {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: #6b121c;
  line-height: 1.5;
}
.hint strong { color: var(--accent); }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td {
  text-align: left;
  padding: 0.58rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.switch:last-child { border-bottom: 0; }
.switch input { width: 1.15rem; height: 1.15rem; }

.qr {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  width: fit-content;
}
.qr img { display: block; width: 210px; height: 210px; }

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--nav-bg);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 40;
  max-width: min(360px, 90vw);
  border-left: 3px solid var(--accent);
}

.stack { display: grid; gap: 0.75rem; }
.muted { color: var(--muted); }

/* Personel */
.people-page { display: grid; gap: 0.9rem; align-content: start; }
.people-toolbar { display: grid; gap: 0.85rem; }
.people-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: end;
  justify-content: space-between;
}
.people-search { min-width: min(360px, 100%); flex: 1; }
.people-meta { display: flex; gap: 0.5rem; align-items: center; }
.people-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.people-form-actions { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .people-form { grid-template-columns: 1fr; }
}
.people-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.people-list-head h3 { margin: 0; }
.people-table-wrap { max-height: min(62vh, 720px); }
.people-table th:last-child,
.people-table td:last-child { text-align: right; white-space: nowrap; }
.people-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }
.people-inline-form {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr auto auto;
  gap: 0.45rem;
  padding: 0.35rem 0 0.55rem;
}
@media (max-width: 820px) {
  .people-inline-form { grid-template-columns: 1fr; }
}
.sob-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  background: #f3f5f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.12rem 0.4rem;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.file-pick { cursor: pointer; margin: 0; }
.file-pick input { display: none; }

/* İş Emirleri */
.jobs-page { display: grid; gap: 0.9rem; align-content: start; }
.jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: end;
  justify-content: space-between;
}
.jobs-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jobs-sync {
  margin: 0;
  flex: 1;
  min-width: min(240px, 100%);
  align-self: center;
  font-size: 0.9rem;
  line-height: 1.4;
}
.jobs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  flex: 1;
  justify-content: flex-end;
}
.jobs-search { min-width: min(280px, 100%); flex: 1; max-width: 360px; }
.jobs-mods { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.jobs-hint { margin: -0.25rem 0 0; font-size: 0.9rem; line-height: 1.45; }
.jobs-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}
.jobs-zones { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.jobs-durum-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-left: 0.85rem;
  margin-left: 0.15rem;
  border-left: 2px solid var(--accent-line);
}
.jobs-durum-row .ladder-hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.zone-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
}
.zone-chip em {
  font-style: normal;
  margin-left: 0.35rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.zone-chip.is-active {
  background: #eef4ff;
  border-color: #9dbbdd;
  color: #0a58ca;
  font-weight: 600;
}
.zone-chip.is-parent {
  background: #f3f6fb;
  border-color: #b7c9e2;
  color: #1e4e8c;
  font-weight: 600;
}
.zone-chip.zone-durum.is-active {
  background: #fff4e5;
  border-color: #e0a96d;
  color: #9a5b00;
}
.zone-chip.zone-ihbar.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: #9b1c1c;
}
.jobs-zone-legend {
  margin: -0.15rem 0 0.35rem;
  font-size: 0.82rem;
}
/* Sticky bırakma: kaydırınca thead ile arasında boşluk oluşuyor */
.jobs-table tr.zone-head td {
  position: relative !important;
  top: auto !important;
  z-index: 1;
  background: #e9edf2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--line);
  color: #3a4350;
}
.jobs-table tr.zone-head .muted {
  font-weight: 500;
  font-family: var(--font);
  font-size: 0.82rem;
}
.jobs-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 1100px) {
  .jobs-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .jobs-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.jobs-ov {
  display: grid;
  gap: 0.1rem;
  text-align: left;
  padding: 0.62rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.jobs-ov strong {
  font-family: var(--display);
  font-size: 1.22rem;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.jobs-ov span { color: var(--muted); font-size: 0.78rem; }
.jobs-ov:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.jobs-ov.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.mod-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
}
.mod-chip em {
  font-style: normal;
  margin-left: 0.35rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mod-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 600;
}
.mod-chip.mod-ihbar.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: #9b1c1c;
}
.jobs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
}
.jobs-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.jobs-list-head h3 { margin: 0; font-size: 1.05rem; }
.jobs-table-wrap {
  max-height: min(68vh, 780px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  scrollbar-gutter: stable;
}
.jobs-date-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  width: 100%;
}
.date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.date-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.date-chip:hover { border-color: var(--accent-line); }
.date-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 600;
}
.date-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
}
.date-custom.is-hidden { display: none; }
.date-custom label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.date-custom input[type="date"] {
  min-width: 10.5rem;
}
.jobs-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.8rem;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}
.jobs-table th,
.jobs-table td {
  padding: 0.4rem 0.42rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef0f3;
  min-width: 0;
  overflow: hidden;
}
.jobs-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(#f4f6f8, #eef1f4);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(20, 23, 28, 0.06);
  vertical-align: middle;
}
.jobs-table th.th-sort {
  cursor: pointer;
  user-select: none;
}
.jobs-table th.th-sort:hover {
  color: var(--ink);
  background: linear-gradient(#eef1f4, #e6eaef);
}
.jobs-table th.th-sort.is-sorted {
  color: var(--accent);
}
.jobs-table th.th-sort .th-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.jobs-table th.th-sort .sort-ind {
  font-size: 0.62rem;
  opacity: 0.45;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  flex: 0 0 auto;
}
.jobs-table th.th-sort.is-sorted .sort-ind {
  opacity: 0.95;
}
/* Tumu (mod var): yuzdeler toplam = 100 */
.jobs-table .col-mod { width: 9%; }
.jobs-table .col-tes { width: 7%; font-variant-numeric: tabular-nums; }
.jobs-table .col-soz { width: 9%; }
.jobs-table .col-abone { width: 11%; }
.jobs-table .col-adres { width: 22%; }
.jobs-table .col-sob { width: 6%; font-variant-numeric: tabular-nums; }
.jobs-table .col-tarih { width: 7%; }
.jobs-table .col-kod { width: 12%; text-align: left; }
.jobs-table .col-person { width: 9%; }
.jobs-table .col-durum { width: 8%; text-align: center; }
.jobs-table .col-yapan { width: 9%; }
.jobs-table .col-sla { width: 7%; }
.jobs-table .col-mesafe { width: 6%; }
/* Modul filtresi (mod yok) */
.jobs-table.no-mod .col-tes { width: 8%; }
.jobs-table.no-mod .col-soz { width: 10%; }
.jobs-table.no-mod .col-abone { width: 13%; }
.jobs-table.no-mod .col-adres { width: 24%; }
.jobs-table.no-mod .col-sob { width: 6%; }
.jobs-table.no-mod .col-tarih { width: 7%; }
.jobs-table.no-mod .col-kod { width: 13%; }
.jobs-table.no-mod .col-person { width: 10%; }
.jobs-table.no-mod .col-durum { width: 9%; }
/* Gaz Acma + SLA */
.jobs-table.no-mod.has-sla .col-tes { width: 7%; }
.jobs-table.no-mod.has-sla .col-soz { width: 9%; }
.jobs-table.no-mod.has-sla .col-abone { width: 12%; }
.jobs-table.no-mod.has-sla .col-adres { width: 20%; }
.jobs-table.no-mod.has-sla .col-sob { width: 6%; }
.jobs-table.no-mod.has-sla .col-tarih { width: 7%; }
.jobs-table.no-mod.has-sla .col-kod { width: 11%; }
.jobs-table.no-mod.has-sla .col-person { width: 9%; }
.jobs-table.no-mod.has-sla .col-sla { width: 8%; }
.jobs-table.no-mod.has-sla .col-durum { width: 11%; }
.jobs-table .td-kod {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.jobs-table .td-kod .kod-nxx {
  display: inline;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-right: 0.3rem;
}
.jobs-table .td-kod .kod-ack {
  display: inline;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.25;
}
.jobs-table .td-tarih {
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: #2d3440;
  white-space: nowrap;
}
.jobs-table td.nowrap,
.jobs-table .nowrap { white-space: nowrap; }
.jobs-table .td-name,
.jobs-table .td-soz,
.jobs-table .col-tes,
.jobs-table .col-sob {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jobs-table .td-adres {
  overflow: hidden;
  white-space: normal;
  vertical-align: middle;
  line-height: 1.25;
}
.jobs-table .td-adres .adres-l1,
.jobs-table .td-adres .adres-l2 {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jobs-table .td-adres .adres-l1 {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.78rem;
}
.jobs-table .td-adres .adres-l2 {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.06rem;
}
.jobs-table .td-adres .adres-empty {
  color: #a0a7b0;
  font-style: italic;
  font-size: 0.74rem;
}
.jobs-table tbody tr.job-row { cursor: pointer; transition: background 0.1s ease; }
.jobs-table tbody tr.job-row:nth-child(even) { background: #fbfcfd; }
.jobs-table tbody tr.job-row:hover { background: #f3f6f9; }
.jobs-table tbody tr.job-row.is-active { background: var(--accent-soft); }
.jobs-table tbody tr.job-row.is-active td { box-shadow: inset 3px 0 0 var(--accent); }
.jobs-table tbody tr.job-row.is-uzak td.uzak-sla,
.jobs-table tbody tr.job-row.is-uzak .sla-cell.uzak-sla {
  color: var(--danger);
  font-weight: 600;
}
.jobs-table .sla-cell { font-variant-numeric: tabular-nums; font-size: 0.76rem; }
.sla-live {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.sla-detail {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.sla-live.warn { color: #b45309; }
.sla-live.bad { color: var(--danger); }
.jobs-table .mod-tag {
  font-size: 0.68rem;
  padding: 0.14rem 0.4rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jobs-table .pill {
  font-size: 0.68rem;
  padding: 0.14rem 0.42rem;
  font-weight: 600;
}
.job-sec-title {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.job-sec-title:first-of-type { margin-top: 0.35rem; }
.mod-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: #eef2f4;
  white-space: nowrap;
}
.mod-tag.mod-saha_gaz_acma,
.mod-tag.mod-gaz_acma { background: var(--accent-soft); color: var(--accent); }
.mod-tag.mod-kesme_bildirimi { background: #fff3e6; color: #9a4d00; }
.mod-tag.mod-gaz_kesme,
.mod-tag.mod-durum_kodu { background: #fdecea; color: var(--danger); }
.mod-tag.mod-abonelik_fesih,
.mod-tag.mod-fesih { background: #f0e9fa; color: #5b2c9a; }
.mod-tag.mod-gazi_kesik_fesih { background: #fde8ef; color: #9b1b4a; }
.jobs-pager { display: flex; gap: 0.5rem; margin-top: 0.65rem; }

/* Detay: satıra tıklanınca yan panel */
.jobs-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
}
.jobs-detail-layer.is-open,
.jobs-detail-layer:not([hidden]) {
  display: flex;
}
.jobs-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 28, 0.38);
  backdrop-filter: blur(2px);
}
.jobs-detail {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: 100vh;
  overflow: auto;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(20, 23, 28, 0.18);
  animation: slide-detail 0.2s ease;
}
@keyframes slide-detail {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
.job-detail-empty { padding: 1.5rem 0.25rem; }
.job-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}
.job-detail-head h3 { margin: 0; }
.job-flags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.job-dl { display: grid; gap: 0.55rem; margin: 0; }
.job-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #eef2f4;
}
.job-dl dt { margin: 0; color: var(--muted); font-size: 0.82rem; }
.job-dl dd { margin: 0; font-size: 0.92rem; word-break: break-word; }
.job-detail-actions { margin-top: 1rem; }
.jobs-logs summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.jobs-table td.bad, .jobs-detail .bad { color: var(--danger); font-weight: 600; }
.jobs-table td.warn, .jobs-detail .warn { color: var(--warn); font-weight: 600; }

@media (max-width: 900px) {
  .jobs-table { font-size: 0.74rem; }
  .jobs-table .col-soz { display: none; }
  .jobs-table thead th { font-size: 0.68rem; }
}
