:root {
  --bg: #eef2f4;
  --surface: #ffffff;
  --ink: #1c2a32;
  --muted: #5b6b75;
  --line: #d5dee4;
  --accent: #0f6e6e;
  --accent-ink: #ffffff;
  --danger: #9b2c2c;
  --ok: #1f6b3a;
  --sidebar-w: 280px;
  --topbar-bg: rgba(255,255,255,0.86);
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "IBM Plex Sans Condensed", "Segoe 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(circle at top left, rgba(15, 110, 110, 0.08), transparent 40%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 100%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { min-height: 100vh; display: block; }
.sidebar {
  width: var(--sidebar-w);
  background: #12343b;
  color: #e7f1f2;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  /* Rapor sticky hücrelerinden (z≈45–46) üstte; “Görev grupları” menüye taşmasın */
  z-index: 100;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
}
.sidebar.is-open { transform: translateX(0); }
.sidebar a { color: inherit; }
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-close {
  display: inline-block;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}
.sidebar-nav { padding: 0.75rem; flex: 1; overflow: auto; }
.sidebar-nav details { margin-bottom: 0.5rem; }
.sidebar-nav summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
}
.sidebar-nav a {
  display: block;
  padding: 0.5rem 0.85rem 0.5rem 1.2rem;
  border-radius: 8px;
  color: #cfe0e3;
}
.sidebar-nav a.nav-link,
.sidebar-nav .nav-label.nav-link,
.sidebar-nav span.nav-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-nav a.nav-child { padding-left: 1.6rem; opacity: 0.92; }
/* Admin-only §8: open = not wired; closed = constitution applied */
.nav-auth-lock {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  opacity: 0.9;
}
.nav-auth-lock.is-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237eb8c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.5-1.5'/%3E%3C/svg%3E");
}
.nav-auth-lock.is-closed {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fd4a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.sidebar-nav .nav-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem 0.5rem 1.2rem;
  color: #9bb4b8;
}
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 0.4rem;
}
.profile-link { font-weight: 600; }

.main-area { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.topbar-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; flex: 1; }
.settings { position: relative; margin-left: auto; }
.settings-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.logout-toggle {
  width: auto;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.logout-toggle:hover { text-decoration: none; background: rgba(15,110,110,0.08); }
.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: min(320px, 90vw);
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  display: block;
  z-index: 50;
  max-height: min(80vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
}
.settings-panel[hidden] {
  display: none !important;
}
.settings-toggle.is-open {
  border-color: var(--accent);
  background: rgba(15,110,110,0.12);
}
.settings-view {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}
.settings-view[hidden] {
  display: none !important;
}
.settings-view-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.1rem 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}
.settings-back {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.settings-back:hover { background: rgba(15,110,110,0.1); }
.settings-view-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.settings-user {
  padding: 0.35rem 0.4rem 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}
.settings-user-name {
  font-weight: 700;
  line-height: 1.25;
}
.settings-user-meta {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.settings-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.4rem 0;
}
.settings-link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.settings-link:hover { background: rgba(15,110,110,0.1); text-decoration: none; }
.settings-logout { color: var(--danger); }
.lang-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem 0.2rem 0.25rem;
}
.lang-row form { margin: 0; }
.lang-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 0.45rem 0.2rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.settings-panel .settings-logout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding-top: 0.7rem;
}
.settings-mini-form {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
}
.settings-mini-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}
.settings-mini-form input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #c5d0d6;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: #fff;
}
.settings-mini-form input:disabled,
.settings-mini-form input[readonly] {
  background: #f0f4f5;
  color: var(--muted);
  cursor: not-allowed;
}
.settings-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.settings-form-actions .btn-primary,
.settings-form-actions .btn-secondary {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  padding: 0.55rem 0.5rem;
  font-size: 0.88rem;
}
.settings-form-msg {
  margin: 0;
  font-size: 0.8rem;
  color: #1f7a4d;
}
.settings-form-msg.is-error { color: #8d2f2f; }
tr.is-row-link { cursor: pointer; }
tr.is-row-link:hover td { background: #eef6f8; }

.hamburger {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 9px;
  cursor: pointer;
}
.hamburger[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(15,110,110,0.12);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}
.lang-form select, .input, select.input, input.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}
.content { padding: 1.25rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.panel h2, .panel h3 { margin: 0 0 0.6rem; font-family: var(--display); }
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  background: rgba(15,110,110,0.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.9rem;
}
.chip-list, .perm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-list li, .perm-list li {
  background: #f3f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.92rem;
}
.perm-list { flex-direction: column; }
.perm-list li { border-radius: 10px; }
.stack-form { display: grid; gap: 0.75rem; max-width: 420px; }
.stack-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.btn-primary {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a.btn-primary:hover { text-decoration: none; filter: brightness(0.97); }
.messages { list-style: none; margin: 0.75rem 1rem 0; padding: 0; }
.messages li {
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}
.messages .error, .messages .errorlist { border-color: #efc2c2; color: var(--danger); background: #fff5f5; }
.messages .warning { border-color: #f0d9a8; color: #8a5a00; background: #fffaf0; }
.messages .success { border-color: #bfe0c8; color: var(--ok); background: #f2fbf5; }
.messages .info { border-color: #c5d8e8; color: #1a4a6b; background: #f4f9fc; }
.report-inline { margin: 0; flex-shrink: 0; }
.report-btn {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.filter-row label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.filter-row .check { display: flex; align-items: center; gap: 0.35rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table tr.is-unseen td { font-weight: 600; }
.sev {
  display: inline-block;
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sev-info { background: #e8f2f8; color: #1a4a6b; }
.sev-warning { background: #fff3d6; color: #8a5a00; }
.sev-error { background: #fde8e8; color: var(--danger); }
.sev-critical { background: #3b0f0f; color: #fff; }
.detail-grid {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0;
}
.detail-grid dt { color: var(--muted, #667); font-weight: 600; }
.detail-grid dd { margin: 0; }
.traceback {
  overflow: auto;
  max-height: 28rem;
  font-size: 0.8rem;
  background: #0f1c1e;
  color: #d7ece8;
  padding: 0.9rem;
  border-radius: 10px;
}
.report-hint { margin: 0.75rem 0 0; }
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.table-scroll {
  overflow: auto;
  max-height: min(70vh, 900px);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.report-table { margin: 0; font-size: 0.85rem; }
.report-table thead th {
  position: sticky;
  top: 0;
  background: #f3f7f8;
  z-index: 1;
  white-space: nowrap;
}
.report-table td { white-space: nowrap; }
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.report-tabs a {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.report-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.budget-report .table-scroll {
  overflow: visible;
  max-height: none;
  width: max-content;
  border: 0;
}
.budget-report .report-table {
  width: max-content;
  min-width: max-content;
}
.budget-report .report-table th,
.budget-report .report-table td {
  white-space: nowrap;
}
.budget-report .report-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #d7e8f7;
  color: #0e3a5d;
}
/*
 * Scrollport padding satırları sticky üstünde gösterir.
 * Tüm üst boşluk opak sticky şeridin içinde (1 satır başlık üstü + 1 satır tablo üstü).
 */
[data-srs-workspace="maas-saat"] .srs-document-surface {
  padding: 0;
}
[data-srs-workspace="maas-saat"] .budget-report {
  padding: 0;
}
.budget-report .report-panel.report-panel-sticky {
  --report-thead-row1: 0px;
  padding-top: 0;
  overflow: visible;
}
/* Dönem başlığı (Ekim/Eylül…) kaydırınca gider; yapışmaz */
.budget-report .report-panel-sticky > .report-sticky-bar {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0.65rem 0 0.35rem;
  min-width: 100%;
  background: #f7fafb;
}
.budget-report .report-panel-sticky > .report-sticky-bar > h2 {
  margin: 0;
  padding: 0.15rem 0 0.2rem;
  background: #f7fafb;
}
.budget-report .report-panel-sticky > .report-sticky-bar > .report-meta {
  margin: 0;
  padding: 0.1rem 0 0;
  background: #f7fafb;
}
.budget-report .report-panel-sticky > .report-sticky-bar > .report-sticky-gap {
  height: 0.45rem;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
/* Yalnız kolon başlıkları üstte kalır */
.budget-report .report-panel-sticky .report-table-sticky thead th {
  top: 0;
  z-index: 45;
  background: #d7e8f7;
  box-shadow: 0 1px 0 #c5d6e4;
}
.budget-report .report-panel-sticky .budget-icmal thead tr:nth-child(2) th {
  top: var(--report-thead-row1, 0px);
  z-index: 44;
}
.budget-report .report-panel-sticky .budget-matrix thead th:first-child {
  top: 0;
  z-index: 46;
}
.budget-report .budget-icmal thead tr:first-child th.group {
  text-align: center;
  background: #c5ddf2;
}
/* Proje kolonu içerik kadar; fazla boşluk sayfa zemininde kalsın */
.budget-report .budget-icmal th:first-child,
.budget-report .budget-icmal td:first-child {
  width: 1%;
  max-width: max-content;
}
[data-srs-workspace="maas-saat"] .srs-filter-form,
[data-srs-workspace="maas-saat"] .srs-filter-form label,
[data-srs-workspace="maas-saat"] .srs-filter-form input,
[data-srs-workspace="maas-saat"] .srs-filter-form select,
[data-srs-workspace="maas-saat"] .report-table,
[data-srs-workspace="maas-saat"] .report-hint,
[data-srs-workspace="maas-saat"] .report-meta {
  font-size: 0.92rem;
}
[data-srs-workspace="maas-saat"] .srs-filter-form label.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
[data-srs-workspace="maas-saat"] .srs-filter-form label.check input {
  width: auto;
  margin: 0;
}
[data-srs-workspace="maas-saat"] .srs-filter-form .srs-inline-field {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
}
[data-srs-workspace="maas-saat"] .srs-filter-form .srs-inline-field > span {
  font-weight: 600;
}
[data-srs-workspace="maas-saat"] .srs-filter-form .srs-inline-field > input {
  width: 100%;
  min-width: 0;
}
.budget-report .budget-matrix td,
.budget-report td.num,
.budget-report th.num {
  text-align: right;
}
.budget-layout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.budget-filter-panel {
  width: 280px;
  flex: 0 0 280px;
  position: sticky;
  top: 4.5rem;
}
.budget-filter-panel .check { display: flex; align-items: center; gap: 0.4rem; }
.budget-main { flex: 1; min-width: 0; }
.project-list { width: 100%; min-height: 16rem; }
.sql-panel { max-width: calc(100vw - 2.5rem); }
.sql-panel .srs-sql-preview { max-width: 100%; max-height: 28rem; }
.budget-report .budget-matrix th:first-child,
.budget-report .budget-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 15.5rem;
  min-width: 15.5rem;
  max-width: 15.5rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #f4f9fd;
}
.budget-report .budget-matrix thead th:first-child {
  position: sticky;
  left: 0;
  top: 0;
  background: #d7e8f7;
  color: #0e3a5d;
  z-index: 5;
}
.budget-report .budget-matrix th:not(:first-child),
.budget-report .budget-matrix td:not(:first-child) {
  min-width: 8.5rem;
}
.budget-report .report-table tr.is-total th,
.budget-report .report-table tr.is-total td {
  font-weight: 700;
  background: #1f6aa5;
  color: #fff;
}
.budget-report .budget-matrix tr.is-total th:first-child,
.budget-report .budget-matrix tr.is-total td:first-child {
  background: #1f6aa5;
  color: #fff;
}
.budget-report .report-table tr.is-end-band th,
.budget-report .report-table tr.is-end-band td {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  line-height: 0.35;
  font-size: 0;
  color: transparent;
  border-color: #1f6aa5;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { text-decoration: none; background: #f3fafa; }
.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sql-editor-form { display: grid; gap: 1rem; }
.sql-label { display: grid; gap: 0.4rem; font-weight: 600; }
.sql-editor {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: #0f1c1e;
  color: #d7ece8;
  tab-size: 2;
  resize: vertical;
  min-height: 22rem;
}
.editor-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.catalog-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.catalog-table td { white-space: normal; }
.catalog-table tr.is-muted { opacity: 0.55; }
.catalog-table tr.is-incomplete td { background: #fffaf0; }
.catalog-table th .sort-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.catalog-table th .sort-link:hover,
.catalog-table th .sort-link.is-active {
  color: var(--accent, #0d6e7a);
  text-decoration: underline;
}
.badge-warn {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #fff3d6;
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 600;
}
.catalog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.catalog-actions form { margin: 0; }
.link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
.catalog-form { display: grid; gap: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: start;
}
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid label,
.form-grid .form-field,
.catalog-form > .panel > label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  min-width: 0;
}
.form-grid .form-span-2 {
  grid-column: 1 / -1;
}
.form-grid .form-field-check {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding-top: 1.55rem;
}
.form-grid .form-field-check .check,
.form-grid label.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  width: auto;
}
.form-grid .form-field-check .check input,
.form-grid label.check input {
  width: auto;
  min-width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.form-grid .form-field-check .check span,
.form-grid label.check span {
  font-weight: 600;
  line-height: 1.25;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.catalog-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  min-height: 2.6rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.form-grid select {
  appearance: auto;
}
.editor-actions .btn-secondary {
  padding: 0.75rem 1rem;
}
.sql-fragment {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.84rem !important;
}
.errorlist {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  color: var(--danger);
  font-weight: 400;
}
.property-inspector {
  padding: 0;
  overflow: hidden;
  border: 1px solid #aebbc3;
  border-radius: 8px;
  background: #fff;
}
.property-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  color: #fff;
  background: #324b57;
  border-bottom: 1px solid #263b44;
}
.property-titlebar .muted { color: #d9e4e8; }
.property-category {
  padding: 0.35rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #29414c;
  background: #dce6ea;
  border-top: 1px solid #bdcbd1;
  border-bottom: 1px solid #bdcbd1;
}
.property-category:first-of-type { border-top: 0; }
.property-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  min-height: 38px;
  border-bottom: 1px solid #dbe3e7;
}
.property-row > label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  background: #f3f6f7;
  border-right: 1px solid #d2dde1;
}
.property-row.property-required > label::after {
  content: " *";
  color: var(--danger);
  margin-left: 0.2rem;
}
.property-required > label {
  /* The literal asterisk is already present in template; avoid double visual. */
}
.property-value {
  min-width: 0;
  padding: 0.3rem 0.45rem;
}
.property-value input:not([type="checkbox"]),
.property-value select,
.property-value textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.42rem 0.5rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.property-value input:focus,
.property-value select:focus,
.property-value textarea:focus {
  outline: 2px solid rgba(15, 110, 110, 0.25);
  border-color: var(--accent);
}
.property-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.35rem;
}
.property-with-action .errorlist { grid-column: 1 / -1; }
.property-translate {
  min-height: 34px;
  max-width: 12rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: #f5fbfb;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.property-translate:disabled { opacity: 0.55; cursor: wait; }
.property-help {
  display: block;
  padding: 0.1rem 0.5rem 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.property-check { display: flex; align-items: center; }
.property-row-tall > label { align-items: flex-start; }
.property-status {
  margin: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 5px;
  color: #1a4a6b;
  background: #edf6fb;
  border: 1px solid #c5d8e8;
}
.property-status.is-error {
  color: var(--danger);
  background: #fff5f5;
  border-color: #efc2c2;
}
@media (max-width: 760px) {
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .property-row { grid-template-columns: 1fr; }
  .property-row > label {
    border-right: 0;
    border-bottom: 1px solid #e2e8eb;
  }
  .property-with-action { grid-template-columns: 1fr; }
  .property-translate { max-width: none; width: 100%; }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(18,52,59,0.92), rgba(15,110,110,0.75)),
    url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80h160M80 0v160' stroke='%23ffffff22' stroke-width='1'/%3E%3C/svg%3E");
}
.login-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,0.4);
}
.login-card h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.06em;
}
.login-sub { color: var(--muted); margin: 0.35rem 0 1.2rem; }
.login-card form { display: grid; gap: 0.85rem; }
.login-card label { display: grid; gap: 0.35rem; font-weight: 600; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 24, 0.45);
  z-index: 95;
}
.sidebar-backdrop.is-visible,
.sidebar-backdrop:not([hidden]) {
  display: block;
}

/* drawer layout: content always full width */

/* SRS: IDE-style dockable report workspace */
.srs-shell {
  min-width: 0;
  border: 1px solid #aebbc3;
  background: #dfe6e9;
  box-shadow: 0 8px 24px rgba(28, 42, 50, 0.08);
}
.srs-commandbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid #aebbc3;
  background: #f5f7f8;
}
.srs-command-group { position: relative; }
.srs-command {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}
.srs-command:hover:not(:disabled) {
  border-color: #a9c7d2;
  background: #e6f2f6;
  text-decoration: none;
}
.srs-command:disabled { opacity: 0.45; cursor: default; }
.srs-command-separator { height: 24px; width: 1px; background: #cbd5da; margin: 0 0.15rem; }
.srs-command-spacer { flex: 1; }
.srs-view-menu {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 12;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid #9dacb4;
  background: #fff;
  box-shadow: 0 5px 16px rgba(28, 42, 50, 0.18);
}
.srs-view-menu[hidden] { display: none; }
.srs-view-menu strong,
.srs-view-menu label {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.84rem;
}
.srs-view-menu .link-button { margin: 0.45rem; }
.srs-workspace {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(430px, calc(100vh - 185px)) auto;
  grid-template-areas:
    "left document right"
    "bottom bottom bottom";
  min-height: 540px;
}
.srs-dock {
  min-width: 0;
  min-height: 0;
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #cbd4d8;
  overflow: auto;
}
.srs-dock-left,
.srs-dock-right {
  width: clamp(220px, 20vw, 340px);
  flex-direction: column;
}
.srs-dock-left {
  grid-area: left;
  border-right: 1px solid #aebbc3;
  resize: horizontal;
  max-width: min(560px, 48vw);
  overflow: auto;
}
/* Stack dock: native corner-resize kapalı; sağ kenar tutamacı tüm sütunu (iki pencere) büyütür. */
.srs-shell .srs-dock-left[data-stack-dock] {
  position: relative;
  resize: none;
  overflow: hidden;
}
.srs-shell .srs-dock-left[data-stack-dock] > .srs-tool-window {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.srs-shell .srs-dock-width-splitter {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  z-index: 6;
  cursor: col-resize;
  background: transparent;
}
.srs-shell .srs-dock-width-splitter:hover,
body.is-dock-resizing .srs-shell .srs-dock-width-splitter {
  background: #0f6e6e;
}
body.is-dock-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
.srs-dock-right { grid-area: right; border-left: 1px solid #aebbc3; resize: horizontal; }
.srs-dock-bottom {
  grid-area: bottom;
  max-height: 42vh;
  flex-direction: row;
  border-top: 1px solid #aebbc3;
  resize: vertical;
}
.srs-dock.is-empty {
  display: none;
  width: 0;
  padding: 0;
  border: 0;
}
.srs-dock.is-empty.is-drop-available {
  display: flex;
  width: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 3px;
  border: 1px dashed #6f8b96;
  background: #e7edef;
}
.srs-dock-bottom.is-empty.is-drop-available {
  width: auto;
  min-height: 54px;
}
.srs-dock.is-drop-target {
  display: flex;
  min-width: 70px;
  min-height: 48px;
  outline: 3px solid rgba(15, 110, 110, 0.55);
  outline-offset: -3px;
  background: #d8eeee;
}
.srs-document {
  grid-area: document;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.srs-document-tabs {
  min-height: 34px;
  display: flex;
  align-items: end;
  padding: 4px 4px 0;
  border-bottom: 1px solid #9eacb3;
  background: #dfe6e9;
}
.srs-document-tabs button {
  align-self: stretch;
  padding: 0.35rem 0.75rem;
  border: 1px solid #9eacb3;
  border-bottom: 0;
  background: #edf1f3;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}
.srs-document-tabs button.is-active,
.srs-document-tabs a.is-active { background: #fff; font-weight: 600; }
.srs-document-tabs a {
  align-self: stretch;
  padding: 0.35rem 0.75rem;
  border: 1px solid #9eacb3;
  border-bottom: 0;
  background: #edf1f3;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}
.srs-document-tabs a:hover { text-decoration: none; }
.srs-shell .srs-commandbar { gap: 0.35rem; padding: 0.35rem 0.5rem; }
.srs-shell .filter-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.1rem;
  border: 1px solid #8798a1;
  border-radius: 2px;
  background: #324b57;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .filter-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
}
.srs-shell .filter-rail[hidden] { display: none !important; }
.srs-shell .srs-dock-left.is-filters-closed {
  width: 42px;
  min-width: 42px;
  resize: none;
  overflow: hidden;
}
.srs-shell .srs-dock-left.is-filters-closed .srs-tool-window { display: none; }
.srs-shell .fields-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.1rem;
  border: 1px solid #8798a1;
  border-radius: 2px;
  background: #324b57;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .fields-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
}
.srs-shell .fields-rail[hidden] { display: none !important; }
.srs-shell .srs-dock-right.is-fields-closed {
  width: 42px;
  min-width: 42px;
  resize: none;
  overflow: hidden;
}
.srs-shell .srs-dock-right.is-fields-closed .srs-tool-window { display: none; }
.puantaj-girisi-timing {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
}
.puantaj-girisi-scroll {
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.puantaj-girisi-table .puantaj-girisi-group td {
  background: #f3d6d6;
  color: #7a1f1f;
  font-weight: 700;
  font-size: 0.82rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.srs-field-checks {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.2rem;
}
.srs-field-check {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 0.35rem;
  padding: 0.28rem 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
}
.srs-field-check input { margin-top: 0.15rem; cursor: pointer; }
.srs-shell .srs-dock-left > .srs-tool-window[data-panel-id="filters"],
.srs-shell .srs-dock-left > .srs-tool-window[data-panel-id="fields"] {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}
.srs-shell .srs-dock-left > .srs-tool-window[data-panel-id="fields"].is-collapsed {
  flex: 0 0 auto;
  min-height: 0;
}
.srs-shell .srs-stack-splitter {
  flex: 0 0 6px;
  margin: 0 2px;
  border-radius: 2px;
  background: #9aadb7;
  cursor: row-resize;
  align-self: stretch;
}
.srs-shell .srs-stack-splitter:hover,
.srs-shell .srs-stack-splitter:active {
  background: #0f6e6e;
}
.srs-shell .srs-stack-splitter[hidden] {
  display: none !important;
}
body.is-stack-resizing {
  cursor: row-resize !important;
  user-select: none !important;
}
.srs-shell .srs-tool-window[data-panel-stack] .srs-tool-title {
  cursor: grab;
}
.srs-shell .srs-tool-window[data-panel-stack].is-dragging .srs-tool-title {
  cursor: grabbing;
}
.srs-shell .srs-exit-opt span {
  line-height: 1.25;
}
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-tool-body,
.srs-shell .srs-tool-window[data-panel-id="fields"] .srs-tool-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  gap: 0;
  overflow: hidden;
}
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > :not(.srs-panel-apply-row) {
  margin-left: 0.45rem;
  margin-right: 0.45rem;
}
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > .srs-check-row:first-of-type,
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > label:not(.srs-check-row):first-of-type {
  margin-top: 0.2rem;
}
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > label:last-child,
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > .srs-check-row:last-child,
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > .srs-inline-field:last-child,
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form > .report-hint:last-child {
  margin-bottom: 0.45rem;
}
.srs-shell .srs-panel-apply-row {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.35rem 0.45rem;
  background: #fff;
  border-bottom: 0;
}
.srs-shell .srs-tool-window[data-panel-id="fields"] .srs-field-checks {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0.45rem 0.45rem;
  /* Az satırda bile satırları kutuya yayma; sabit aralık */
  justify-content: flex-start;
  align-content: flex-start;
}
.srs-shell .srs-tool-window[data-panel-id="filters"] .srs-filter-form {
  overflow: auto;
}
.srs-shell .srs-tool-window.is-collapsed .srs-tool-body,
.srs-shell .srs-tool-window[data-panel-id="fields"].is-collapsed .srs-tool-body {
  display: none;
}
/* Filtreler + Rapor Alanları: ilk satırda sağa yanaşık Uygula */
.srs-shell .srs-panel-apply,
.srs-shell .srs-fields-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  margin: 0;
  padding: 0.28rem 0.7rem;
  min-height: 26px;
  height: auto;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
/* Uygula: değişiklik yoksa pasif; bekleyen uygulama kırmızı */
.srs-shell .srs-panel-apply:disabled {
  background: #b7c0cc;
  color: #ffffff;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}
.srs-shell .srs-panel-apply.is-pending:not(:disabled) {
  background: #c62828;
  color: #ffffff;
}
.srs-shell .srs-panel-apply.is-pending:not(:disabled):hover {
  background: #c62828;
  filter: brightness(0.95);
}
.srs-shell .srs-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.srs-shell .srs-check-row input {
  width: auto;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
}
.srs-shell .srs-check-row span {
  min-width: 0;
  flex: 1 1 auto;
}
.srs-shell .srs-filter-fieldset {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
  min-width: 0;
}
.srs-shell .srs-filter-fieldset legend {
  padding: 0;
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #12343b;
}
.srs-shell .srs-filter-list-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #12343b;
}
.srs-shell .srs-check-listview {
  width: 100%;
  max-height: 11.5rem;
  overflow: auto;
  border: 1px solid #b7c4cc;
  background: #fff;
  padding-bottom: 0.55rem;
}
.srs-shell .srs-check-listview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
  font-weight: 600;
  color: #12343b;
}
.srs-shell .srs-check-listview-table th,
.srs-shell .srs-check-listview-table td {
  border-bottom: 1px solid #d5dee4;
  border-right: 1px solid #d5dee4;
  padding: 0.22rem 0.35rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srs-shell .srs-check-listview-table th:last-child,
.srs-shell .srs-check-listview-table td:last-child {
  border-right: 0;
}
.srs-shell .srs-check-listview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f6;
  font-weight: 700;
}
.srs-shell .srs-check-listview-check {
  width: 1.6rem;
  text-align: center;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
.srs-shell .srs-check-listview-check input {
  width: auto;
  margin: 0;
  vertical-align: middle;
}
.srs-shell .srs-check-listview-table label {
  display: block;
  margin: 0;
  cursor: pointer;
  font-weight: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srs-shell .srs-check-listview-row {
  cursor: pointer;
}
.srs-shell .srs-check-listview-row:hover td {
  background: #f3f8fb;
}
.srs-shell .srs-check-listview-row.is-checked td {
  background: #e7f1f8;
}
.budget-report .num-pos {
  color: #1f7a4d;
  font-weight: 700;
}
.budget-report .num-neg {
  color: #8d2f2f;
  font-weight: 700;
}
.budget-report .report-table tr.is-total .num-pos,
.budget-report .report-table tr.is-total .num-neg {
  color: #fff;
}
.budget-report .report-table tr.is-group td {
  background: #d7e8f7;
  color: #0e3a5d;
  font-weight: 700;
}
.budget-report .report-table th.is-col-hidden,
.budget-report .report-table td.is-col-hidden {
  display: none !important;
}
.srs-shell .srs-filter-form,
.srs-shell .srs-filter-form label,
.srs-shell .report-table,
.srs-shell .report-hint,
.srs-shell .report-meta {
  font-size: 0.92rem;
}
.srs-shell .srs-view-menu { z-index: 50; }
.srs-shell [data-chrome-id][hidden] { display: none !important; }
.srs-shell .srs-tab-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
}
.srs-shell .srs-commandbar .srs-zoom {
  align-self: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #12343b;
  border-radius: 8px;
  background: #fff;
  color: #12343b;
  cursor: pointer;
}
.srs-shell .srs-zoom:hover { background: #eef3f5; }
.srs-shell .srs-excel {
  margin-left: 0;
  margin-right: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #1f7a4d;
  border-radius: 8px;
  background: #fff;
  color: #1f7a4d;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-excel:hover { background: #eef7f2; }
.srs-shell .srs-export {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-export-excel {
  border: 1px solid #1f7a4d;
  color: #1f7a4d;
}
.srs-shell .srs-export-excel:hover { background: #eef7f2; }
.srs-shell .srs-export-pdf {
  border: 1px solid #8d2f2f;
  color: #8d2f2f;
}
.srs-shell .srs-export-pdf:hover { background: #fdf4f4; }
.srs-shell .srs-export-html {
  border: 1px solid #1a4a6b;
  color: #1a4a6b;
}
.srs-shell .srs-export-html:hover { background: #f4f9fc; }
.budget-report .report-table thead th {
  padding-left: 1.85rem;
  padding-right: 0.55rem;
}
.budget-report .budget-matrix thead th:first-child {
  padding-left: 1.85rem;
  padding-right: 0.55rem;
}
.budget-report .report-table thead th.col-draggable {
  cursor: grab;
}
.budget-report .report-table thead th.col-draggable:active {
  cursor: grabbing;
}
.budget-report .report-table thead th.is-col-dragging {
  opacity: 0.45;
}
.budget-report .report-table thead th.is-col-drop {
  box-shadow: inset 0 -3px 0 #0f6e6e;
}
.col-filter-btn {
  position: absolute;
  top: 50%;
  left: 2px;
  right: auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.col-filter-btn:hover {
  border-color: #7f97a8;
  background: #fff;
}
.budget-report .report-table thead th.is-filtered {
  background: #f8d0d0;
  color: #8d2f2f;
}
.col-filter-btn.is-active {
  border-color: #8d2f2f;
  background: #fff;
}
.col-filter-btn.is-active svg path {
  fill: #f8d0d0;
  stroke: #8d2f2f;
}
.col-filter-pop {
  position: fixed;
  z-index: 40;
  width: 280px;
  height: 380px;
  min-width: 240px;
  min-height: 220px;
  max-width: min(92vw, 640px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem;
  border: 1px solid #9aa8b1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 52, 59, 0.16);
  resize: both;
  overflow: hidden;
}
.col-filter-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.col-filter-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0.3rem 0.5rem;
  border: 1px solid #b7c3ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.92rem;
}
.col-filter-paste {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #12343b;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.col-filter-paste:hover { background: #eef3f5; }
.col-filter-manual {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #b7c3ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}
.col-filter-status {
  margin: 0;
  color: #8d2f2f;
  font-size: 0.82rem;
  font-weight: 700;
}
.col-filter-status[hidden] { display: none; }
.col-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.col-filter-bar[hidden] { display: none; }
.col-filter-count {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.2rem 0.45rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f7a4d;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.col-filter-count:hover { background: #f2fbf5; }
.col-filter-chevron { color: #1f7a4d; font-size: 0.8rem; }
.col-filter-clear {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8d2f2f;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.col-filter-clear:hover { background: #fdf4f4; }
.col-filter-picked {
  margin: 0;
  padding: 0.3rem 0.55rem 0.35rem 1.15rem;
  max-height: 140px;
  overflow: auto;
  border: 1px solid #cfe3d6;
  border-radius: 4px;
  background: #f4fbf6;
  color: #12343b;
  font-size: 0.86rem;
}
.col-filter-picked[hidden] { display: none; }
.col-filter-list {
  flex: 1 1 auto;
  min-height: 80px;
  max-height: none;
  overflow: auto;
  border: 1px solid #e1e8ec;
  border-radius: 4px;
}
.col-filter-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.45rem;
  font-size: 0.88rem;
  line-height: 1.3;
  cursor: pointer;
}
.col-filter-item[hidden] { display: none; }
.col-filter-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.col-filter-all {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e1e8ec;
  font-weight: 700;
}
.col-filter-item input { margin-top: 0.15rem; }
.col-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.col-filter-ok,
.col-filter-cancel {
  min-width: 4.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: #f4f6f7;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.col-filter-ok {
  border: 2px solid #2f6fdb;
  color: #12343b;
  font-weight: 700;
}
.col-filter-cancel { border: 1px solid #c5ced4; color: #12343b; }
.col-filter-year-line {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-right: 0.2rem;
}
.col-filter-year-line[hidden] { display: none; }
.col-filter-year-line .col-filter-item { flex: 1 1 auto; }
.col-filter-expand {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 0.35rem;
  padding: 0;
  border: 1px solid #9aa8b1;
  border-radius: 2px;
  background: #fff;
  color: #12343b;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.col-filter-dates { padding-left: 1.5rem; }
.col-filter-dates[hidden] { display: none; }
.srs-shell .srs-lang {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.srs-shell .srs-lang-label { margin: 0; }
.srs-shell .srs-lang-select {
  height: 30px;
  min-width: 4.6rem;
  padding: 0 0.45rem;
  border: 1px solid #12343b;
  border-radius: 8px;
  background: #fff;
  color: #12343b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-export-menu { position: relative; align-self: center; }
.srs-shell .srs-export-toggle {
  height: 30px;
  padding: 0 0.75rem;
  border: 1px solid #12343b;
  border-radius: 8px;
  background: #fff;
  color: #12343b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-export-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 16rem;
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
  border: 1px solid #12343b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 52, 59, 0.16);
}
.srs-shell .srs-export-list[hidden] { display: none; }
.srs-shell .srs-export-list button {
  align-self: stretch;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #12343b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.srs-shell .srs-export-list button:hover { background: #eef3f5; }
.srs-shell .srs-export-sep {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: #c5d0d6;
}
.format-settings-stack {
  flex-direction: column;
  gap: 0.75rem;
}
.format-settings-stack > label { width: 100%; }
.format-sep-row {
  display: flex;
  gap: 0.75rem;
}
.format-sep-row > label { flex: 1 1 0; min-width: 0; }
.format-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 600;
}
.format-check input { margin-top: 0.2rem; }
#report-format-modal .format-modal-actions {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
#report-format-modal .format-modal-actions > button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
#report-format-modal .format-modal-actions .btn-primary {
  padding: 0 0.85rem;
}
#report-format-modal .format-modal-actions .share-modal-cancel {
  height: 40px;
}
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 52, 59, 0.35);
}
.share-modal[hidden] { display: none; }
.share-modal-card {
  width: min(440px, 100%);
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(18, 52, 59, 0.2);
}
.share-modal-card h2 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.share-modal-row { display: flex; gap: 0.75rem; }
.share-modal-row label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; }
.share-modal-row select,
.share-modal-url input {
  height: 36px;
  min-width: 7rem;
  padding: 0 0.45rem;
  border: 1px solid #9aa8b1;
  border-radius: 8px;
  font: inherit;
}
.share-modal-row label[hidden] { display: none; }
.share-modal-note { min-height: 2.8rem; margin: 0.85rem 0; }
.share-modal-actions { display: flex; gap: 0.5rem; }
.share-modal-cancel {
  height: 36px;
  padding: 0 0.8rem;
  border: 1px solid #c5ced4;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.share-modal-url { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.9rem; font-weight: 600; }
.share-url-box {
  display: flex;
  align-items: center;
  border: 1px solid #9aa8b1;
  border-radius: 8px;
  background: #fff;
}
.share-url-box input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
}
.share-url-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 1px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #12343b;
  cursor: pointer;
}
.share-url-copy[hidden] { display: none; }
.share-url-copy:hover { background: #eef3f5; }
.share-modal-url [data-share-status] { font-weight: 500; color: #1f7a4d; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.srs-shell .srs-sql-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #1a4a6b;
  border-radius: 8px;
  background: #fff;
  color: #1a4a6b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-sql-copy:hover { background: #f4f9fc; }
.srs-shell .srs-copy-note {
  padding: 0.3rem 0.55rem;
  border: 1px solid #bfe0c8;
  border-radius: 8px;
  background: #f2fbf5;
  color: var(--ok);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}
.srs-shell .srs-copy-note[hidden] { display: none; }
.srs-shell[data-srs-workspace] {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 8.25rem);
  min-height: 480px;
}
.srs-shell[data-srs-workspace] .srs-workspace {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}
.srs-document-surface {
  min-height: 0;
  flex: 1;
  padding: 0.65rem;
  overflow: auto;
}
.srs-tool-window {
  min-width: 210px;
  min-height: 0;
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  border: 1px solid #8798a1;
  background: #fff;
  overflow: hidden;
}
.srs-tool-window[hidden] { display: none; }
.srs-tool-window.is-dragging { opacity: 0.45; }
.srs-tool-title {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.35rem;
  color: #fff;
  background: #324b57;
  border-bottom: 1px solid #263b44;
  cursor: grab;
  user-select: none;
}
.srs-tool-title:active { cursor: grabbing; }
.srs-drag-grip { color: #b8c9d0; }
.srs-tool-title strong { flex: 1; font-size: 0.8rem; font-weight: 600; }
.srs-tool-actions { display: inline-flex; align-items: center; gap: 0.15rem; }
.srs-tool-actions button,
.srs-tool-actions a {
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.srs-tool-actions button:hover,
.srs-tool-actions a:hover {
  border-color: #b8c9d0;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}
.srs-tool-body {
  min-height: 0;
  flex: 1;
  padding: 0.45rem;
  overflow: auto;
}
.srs-tool-window.is-collapsed { flex: 0 0 auto; }
.srs-tool-window.is-collapsed .srs-tool-body { display: none; }
.srs-filter-form { display: grid; gap: 0.55rem; }
.srs-filter-form label { display: grid; gap: 0.2rem; font-size: 0.78rem; font-weight: 600; }
.srs-filter-form input,
.srs-filter-form select {
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid #b8c5cb;
  border-radius: 2px;
  background: #fff;
  font: inherit;
}
.srs-field-list { padding: 0.2rem; }
.srs-field-list > button {
  width: 100%;
  display: flex;
  gap: 0.4rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.srs-field-list > button:hover,
.srs-field-list > button.is-selected {
  border-color: #9fc0cc;
  background: #dcecf2;
}
.srs-properties { padding: 0; }
.srs-properties details { border-bottom: 1px solid #bdcbd1; }
.srs-properties summary {
  padding: 0.35rem 0.55rem;
  background: #dce6ea;
  color: #29414c;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-properties dl { display: grid; grid-template-columns: minmax(92px, 42%) 1fr; margin: 0; }
.srs-properties dt,
.srs-properties dd {
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid #e1e7ea;
  font-size: 0.77rem;
  overflow-wrap: anywhere;
}
.srs-properties dt { background: #f3f6f7; border-right: 1px solid #d2dde1; font-weight: 600; }
.srs-property-empty { padding: 0.4rem; font-size: 0.8rem; }
.srs-sql-preview {
  min-width: 520px;
  min-height: 130px;
  max-height: 250px;
  margin: 0;
  padding: 0.65rem;
  overflow: auto;
  background: #17252b;
  color: #d7ece8;
  font: 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}
.srs-empty-document {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  color: var(--muted);
  text-align: center;
}
.srs-empty-document strong { color: var(--ink); font-family: var(--display); font-size: 1.2rem; }
.srs-grid-scroll { max-height: none; height: calc(100% - 2.2rem); }
.report-table th[data-report-column] { cursor: pointer; }
.report-table th[data-report-column]:hover,
.report-table th[data-report-column].is-selected { background: #dcecf2; }

/* Orta genişlik: Filtreler/Rapor Alanları solda kalsın (alta düşmesin). */
@media (max-width: 1100px) and (min-width: 761px) {
  .srs-dock-left {
    width: clamp(200px, 28vw, 280px);
    max-width: 320px;
  }
  .srs-dock-right {
    width: clamp(180px, 22vw, 240px);
  }
}

/* Dar ekran: dikey yığ; paneller önce (görünür), tablo altta — ezilmesin. */
@media (max-width: 760px) {
  .srs-shell .srs-dock-left.is-filters-closed {
    width: 100%;
    min-width: 0;
  }
  .srs-shell .srs-dock-left.is-filters-closed .filter-rail {
    flex-direction: row;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
  }
  .srs-shell .srs-dock-left.is-filters-closed .filter-rail span {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .srs-shell .srs-dock-right.is-fields-closed {
    width: 100%;
    min-width: 0;
  }
  .srs-shell .srs-dock-right.is-fields-closed .fields-rail {
    flex-direction: row;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
  }
  .srs-shell .srs-dock-right.is-fields-closed .fields-rail span {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .content { padding: 0.5rem; }
  .srs-workspace {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .srs-dock-left {
    order: -2;
    width: 100%;
    max-width: none;
    min-height: 200px;
    max-height: 42vh;
    flex: 0 0 auto;
    border: 0;
    border-bottom: 1px solid #aebbc3;
    resize: none;
  }
  .srs-document {
    order: 0;
    min-height: 280px;
    flex: 1 1 auto;
  }
  .srs-dock-right,
  .srs-dock-bottom {
    width: 100%;
    max-height: none;
    flex-direction: column;
    border: 0;
    border-top: 1px solid #aebbc3;
    resize: none;
  }
  .srs-tool-window { flex-basis: auto; }
  .srs-command-spacer { display: none; }
  .srs-commandbar { flex-wrap: wrap; }
}

.alynx-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  background: rgba(245, 247, 248, 0.45);
  color: #12343b;
  text-align: center;
  pointer-events: all;
}
.alynx-loading[hidden] { display: none !important; }
html.is-report-loading,
html.is-report-loading body {
  cursor: progress;
}
.alynx-loading-text {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 16px rgba(18, 52, 59, 0.12);
}
.alynx-loading-elapsed {
  margin: 0;
  min-height: 1.2em;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  font-weight: 600;
  color: #5a6f78;
}
.alynx-loading-elapsed:empty {
  display: none;
}
/* SRS ortak rapor yüzeyi: frame scroll + sticky thead + header/footer */
.srs-shell .srs-document-surface {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0.55rem;
}
.srs-shell .budget-report.report-sheet {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.srs-shell .report-frame {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.srs-shell .report-sheet-header {
  position: relative;
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: #f3f7f8;
  color: #0e3a5d;
  font-size: 0.92rem;
}
.srs-shell .report-sheet-meta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
}
.report-sheet-header-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.report-edit-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5a7384;
  cursor: pointer;
  padding: 0;
}
.report-edit-icon:hover { background: #e4eef4; color: #0e3a5d; }
.report-title-editor {
  position: absolute;
  top: calc(100% + 4px);
  left: 0.5rem;
  z-index: 30;
  min-width: min(420px, calc(100vw - 2rem));
  box-shadow: 0 10px 24px rgba(20, 40, 50, 0.14);
}
.report-title-editor[hidden],
.report-footer-menu[hidden],
.report-footer-rows-source[hidden] {
  display: none !important;
}
.report-title-editor .property-row {
  grid-template-columns: 3rem minmax(0, 1fr);
}
.report-title-editor .property-value input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c5d0d6;
  border-radius: 4px;
  padding: 0.35rem 0.45rem;
  font: inherit;
}
.report-title-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem 0.65rem;
  margin: 0;
  border-top: 1px solid #dbe3e7;
  background: #f7fafb;
}
.report-title-editor-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  margin: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.report-footer-btn.is-none {
  color: #8a9aa6;
  font-weight: 500;
}
.srs-shell .report-grid-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  width: 100%;
  border: 0;
  max-height: none;
}
.srs-shell .report-sheet .table-scroll {
  overflow: visible;
  max-height: none;
  width: 100%;
  border: 0;
}
.srs-shell .report-grid-scroll .report-table {
  /* İçerik kadar genişle; %100 tablo Proje gibi metin kolonunu şişirir */
  width: max-content;
  min-width: max-content;
  margin: 0;
}
.srs-shell .report-grid-scroll > .report-table thead th,
.srs-shell .report-grid-scroll .report-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #d7e8f7;
  color: #0e3a5d;
  box-shadow: 0 1px 0 #c5d6e4;
}
.srs-shell .report-sheet-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid var(--line);
  background: #f7fafb;
  font-size: 0.82rem;
  color: #345;
  min-width: 0;
}
.report-footer-left { justify-self: start; min-width: 0; }
.report-footer-center { justify-self: center; }
.report-footer-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.report-footer-rows { white-space: nowrap; color: var(--muted); }
.report-footer-btn {
  border: 0;
  background: transparent;
  color: #1a4a6b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
.report-footer-btn:hover { background: #e7f0f6; }
.report-footer-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.report-footer-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  max-width: min(360px, calc(100vw - 1.5rem));
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 40, 50, 0.12);
  z-index: 20;
}
.report-footer-left .report-footer-menu {
  left: 0;
  transform: none;
  min-width: 220px;
}
.report-footer-menu[hidden] { display: none !important; }
.report-footer-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.report-footer-menu button:hover { background: #eef5f8; }
.srs-gear-icon { flex: 0 0 auto; opacity: 0.9; }

@media print {
  .alynx-loading { display: none !important; }
  .topbar, .sidebar, .messages, .srs-commandbar, .srs-dock, .srs-document-tabs { display: none !important; }
  .content { padding: 0; }
  .srs-shell { border: 0; box-shadow: none; }
  .srs-workspace { display: block; min-height: 0; }
  .srs-document-surface, .srs-grid-scroll, .table-scroll, .report-grid-scroll { overflow: visible; height: auto; max-height: none; }
  .report-sheet-footer { break-inside: avoid; }
}
