/* ui-tokens.css önce yüklenir. Burada yalnız eski sınıf alias’ları + settings/SRS. */
:root {
  --bg: var(--surface-app);
  --surface: var(--surface-panel);
  --ink: var(--ink-primary);
  --muted: var(--ink-muted);
  --sidebar-w: var(--sidebar-width);
  --topbar-bg: var(--surface-panel);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-app);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Metis kabuk menüsü: global a/hover rengi ve eski koyu sidebar stilleri uygulanmaz */
.admin-sidebar a,
.admin-sidebar a:hover,
.brand-link,
.brand-link:hover {
  color: inherit;
  text-decoration: none;
}
.admin-sidebar .nav-link:hover {
  background: var(--surface-hover, #f4f4f5);
  color: var(--ink-primary, #18181b);
  text-decoration: none;
}

.app-shell { min-height: 100vh; display: block; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink-strong);
  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);
}
/* Eski koyu .sidebar — yalnız legacy sınıf; .admin-sidebar’a dokunma */
.sidebar .sidebar-close {
  display: inline-block;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}
.sidebar .sidebar-nav { padding: 0.75rem; flex: 1; overflow: auto; }
.sidebar .sidebar-nav details { margin-bottom: 0.5rem; }
.sidebar .sidebar-nav summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
}
.sidebar .sidebar-nav a {
  display: block;
  padding: 0.5rem 0.85rem 0.5rem 1.2rem;
  border-radius: 8px;
  color: #cfe0e3;
}
.sidebar .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;
}
.settings { position: relative; }
.settings-toggle.profile-toggle {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 0.55rem 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font: inherit;
}
.profile-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-sunken, #f4f4f5);
  color: var(--ink-secondary, #52525b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.profile-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}
.profile-avatar.has-photo .profile-avatar-fallback {
  visibility: hidden;
}
.profile-name {
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-chevron {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0.15rem 0.2rem 0.1rem;
  opacity: 0.7;
}
@media (max-width: 640px) {
  .profile-name { display: none; }
}
.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: 1050;
  max-height: min(80vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-float, 0 8px 24px rgba(9, 9, 11, 0.08));
}
.settings-prefs-block {
  margin: 0.15rem 0;
  padding: 0.55rem 0.15rem 0.35rem;
  border-top: 1px solid var(--line);
}
.settings-prefs-title {
  margin: 0 0 0.3rem 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-primary, #18181b);
}
.settings-footer-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-panel, #fff);
  overflow: visible;
}
.settings-footer-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem;
  display: grid;
  gap: 0.1rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.settings-footer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem;
  align-items: center;
  padding: 0.22rem 0.2rem;
  border-radius: 6px;
  background: transparent;
}
.settings-footer-row.is-off {
  opacity: 0.55;
}
.settings-footer-row.is-dragging { opacity: 0.45; }
.settings-footer-row.is-drop-target {
  background: color-mix(in srgb, var(--accent, #2563eb) 10%, transparent);
}
.settings-footer-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-muted, #71717a);
  cursor: grab;
}
.settings-footer-handle:active { cursor: grabbing; }
.settings-footer-format-wrap {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.settings-footer-format {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 1.55rem;
  margin: 0;
  padding: 0 0.25rem;
  border: 1px solid var(--input-line, #d4d4d8);
  border-radius: 5px;
  background: var(--surface-panel, #fff);
  color: var(--ink-primary, #18181b);
  font: inherit;
  font-size: 0.7rem;
  field-sizing: fixed;
}
.settings-footer-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: #d8e0ea;
  height: 1.85rem;
  max-height: 1.85rem;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 700;
  color: #1e3a5f;
  position: relative;
  z-index: 1;
}
.settings-footer-preview.is-empty::after {
  content: "—";
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}
html[data-bs-theme="dark"] .settings-footer-preview {
  background: #1f2937;
  color: #e2e8f0;
  border-top-color: #334155;
}
.settings-footer-preview-slot {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.settings-footer-preview-slot[data-preview-slot="left"] { justify-content: flex-start; }
.settings-footer-preview-slot[data-preview-slot="center"] { justify-content: center; }
.settings-footer-preview-slot[data-preview-slot="right"] { justify-content: flex-end; }
.settings-footer-preview-chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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;
  text-transform: none;
}
.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; }
a.settings-link.settings-logout,
.settings-panel .settings-logout,
a.settings-link.settings-logout:link,
a.settings-link.settings-logout:visited,
a.settings-link.settings-logout:focus,
a.settings-link.settings-logout:active {
  color: var(--danger) !important;
  font-weight: 600;
  background: transparent !important;
  background-color: transparent !important;
}
a.settings-link.settings-logout:hover,
.settings-panel .settings-logout:hover {
  color: var(--danger) !important;
  background: rgba(15, 110, 110, 0.1) !important;
  background-color: rgba(15, 110, 110, 0.1) !important;
  text-decoration: none;
}
.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-idle-block {
  padding: 0.45rem 0.55rem 0.35rem;
  border-top: 1px solid var(--line);
}
.settings-idle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.settings-idle-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin: 0;
}
.settings-idle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.settings-idle-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.settings-idle-switch-ui {
  display: block;
  width: 2.15rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line);
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.settings-idle-switch-ui::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--surface-panel, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.settings-idle-switch input:checked + .settings-idle-switch-ui {
  background: var(--accent);
  border-color: var(--accent);
}
.settings-idle-switch input:checked + .settings-idle-switch-ui::after {
  transform: translateX(0.9rem);
}
.settings-idle-switch input:focus-visible + .settings-idle-switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.settings-idle-hint {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
}
.idle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}
.idle-row.idle-row-2 {
  grid-template-columns: 1fr 1fr;
}
.idle-row.idle-row-2 .idle-btn {
  white-space: nowrap;
  padding: 0.4rem 0.35rem;
}
.idle-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.15rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.idle-btn.is-active,
.idle-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.idle-btn:disabled,
.idle-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.settings-idle-block.is-idle-off .idle-btn.is-active,
.settings-idle-block.is-idle-off .idle-btn[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
}
.settings-panel .settings-logout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding-top: 0.7rem;
  background: transparent !important;
  background-color: transparent !important;
}

/* Kullanıcı yetkilendirme — üst kartlar */
.user-auth-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .user-auth-top { grid-template-columns: 1fr; }
}
.user-auth-card .card-body { padding: 1rem 1.1rem; }
.user-auth-card .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.user-auth-grid {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.55fr) minmax(0, 1.85fr);
  gap: 0.75rem 1rem;
}
.user-auth-grid .user-auth-span {
  grid-column: 1 / -1;
}
.audit-personel-picker {
  position: relative;
}
.audit-personel-picker .personel-picker-results[hidden] {
  display: none !important;
}
.audit-personel-picker .personel-picker-results:not([hidden]) {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem;
  max-height: 22rem;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--srs-menu-bg, var(--surface-panel, var(--bg)));
  box-shadow: 0 10px 28px rgba(18, 52, 59, 0.14);
}
.audit-personel-card[hidden] {
  display: none !important;
}
.audit-personel-card-line:empty,
.audit-personel-card-line[hidden] {
  display: none !important;
}
.audit-personel-result {
  margin: 0;
  list-style: none;
}
.audit-personel-card {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel, var(--bg));
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
button.audit-personel-card.is-pick {
  display: block;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.audit-personel-card.is-pick:hover,
button.audit-personel-card.is-pick:focus {
  border-color: var(--accent, #2563eb);
  background: rgba(15, 110, 110, 0.06);
  outline: none;
}
.audit-personel-card-name {
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audit-personel-card-line {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
}
.audit-personel-card-exit {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-auth-password-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.user-auth-temp-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  transition: opacity 0.6s ease;
}
.user-auth-temp-hint.is-hiding {
  opacity: 0;
}
.user-auth-password-box {
  display: flex;
  align-items: stretch;
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.user-auth-password-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ok-ink, #15803d);
}
.user-auth-password-box input:placeholder-shown {
  font-weight: 500;
  letter-spacing: normal;
  color: var(--muted);
}
.user-auth-password-box .copy-icon-btn {
  flex: 0 0 auto;
  width: 2.5rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-auth-password-box .copy-icon-btn:hover:not(:disabled) {
  background: rgba(15, 110, 110, 0.08);
  color: var(--ink);
}
.user-auth-password-box .copy-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.user-auth-password-box .copy-icon-btn.is-copied {
  color: var(--ok-ink, #15803d);
}
/* Kullanıcı yetkilendirme — ortak buton boyutu (yükseklik + font; genişlik metne göre) */
.user-auth-top .user-auth-btn,
.user-auth-card-footer .user-auth-btn,
.user-auth-password-row .user-auth-btn,
.user-auth-modal-actions .user-auth-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.user-auth-modal-actions {
  align-items: center;
}
.user-auth-password-row .btn-generate {
  background: #3f3f46;
  border: 1px solid #3f3f46;
  color: #fff;
}
.user-auth-password-row .btn-generate:hover:not(:disabled) {
  background: #27272a;
  border-color: #27272a;
  color: #fff;
}
.user-auth-password-row .btn-generate:disabled {
  opacity: 0.55;
  cursor: wait;
}
.user-auth-top.is-new-user {
  grid-template-columns: minmax(0, 1fr);
  max-width: 42rem;
}
.user-auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-sunken, #fafafa);
}
.user-auth-footer-aktif {
  margin: 0;
  flex: 1 1 auto;
  min-width: 10rem;
}
.user-auth-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.user-auth-footer-actions .btn-auth-delete {
  min-width: 0;
}
.user-auth-active {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.user-auth-active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.user-auth-clear-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}
/* Delete / Vazgeç — aynı boyut (sayfa + onay modalı) */
.btn-auth-delete {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.75rem;
  height: 2.25rem;
  padding: 0 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
}
.btn.btn-outline-danger.btn-auth-delete {
  border: 1px solid var(--danger) !important;
  color: var(--danger) !important;
  background: var(--surface-panel, #fff) !important;
}
.btn.btn-outline-secondary.btn-auth-delete {
  border: 1px solid var(--line) !important;
  color: var(--ink-primary) !important;
  background: var(--surface-panel, #fff) !important;
}
.alynx-confirm-actions .btn.btn-primary.btn-auth-delete {
  border: 1px solid var(--accent) !important;
  color: var(--accent-ink, #fff) !important;
  background: var(--accent) !important;
}
.share-modal-actions .btn-auth-delete {
  flex: 0 0 auto;
}

.user-auth-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.user-auth-accordions.is-passive .user-auth-acc {
  opacity: 0.55;
  filter: grayscale(0.35);
}
.user-auth-accordions.is-passive .user-auth-acc-sum {
  cursor: default;
}
.user-auth-accordions.is-passive .user-auth-acc-body {
  pointer-events: none;
}
.user-auth-acc {
  margin: 0;
  overflow: hidden;
}
.user-auth-acc-sum {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  cursor: pointer;
  padding: 0.75rem 1rem;
  user-select: none;
}
.user-auth-acc-sum::-webkit-details-marker { display: none; }
.user-auth-acc-sum::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted, #6b7280);
  border-bottom: 2px solid var(--muted, #6b7280);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.user-auth-acc[open] > .user-auth-acc-sum::before {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.user-auth-acc-title {
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}
.user-auth-acc-brief {
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  font-weight: 500;
  text-align: right;
  margin-left: auto;
}
.user-auth-acc:not([open]) .user-auth-acc-brief {
  color: var(--text, #111827);
}
.user-auth-acc-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line, #e5e7eb);
  padding-top: 0.85rem;
}
.user-auth-switch { margin-bottom: 0.75rem; }
.menu-acl-matrix-head,
.menu-acl-matrix-row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) 5.25rem 5.25rem 4.5rem;
  gap: 0.35rem;
  align-items: center;
}
.menu-acl-matrix-head {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.menu-acl-view-col { display: block; }
.menu-acl-col-h {
  text-align: center;
  line-height: 1.2;
}
.menu-acl-name {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-acl-matrix-row.is-level-1 .menu-acl-name { font-weight: 600; }
.menu-acl-matrix-row.is-level-2 .menu-acl-name { font-weight: 500; }
.menu-acl-matrix-row.is-level-3 .menu-acl-name { font-weight: 400; }
.menu-acl-matrix-row .form-check-input {
  margin: 0 auto;
  float: none;
  display: block;
}
.menu-acl-matrix-row .menu-acl-flag[data-flag="view"] {
  margin: 0;
  justify-self: start;
}
.menu-acl-matrix-row .menu-acl-flag[data-flag="insert"],
.menu-acl-matrix-row .menu-acl-flag[data-flag="update"],
.menu-acl-matrix-row .menu-acl-flag[data-flag="delete"] {
  justify-self: center;
}
.menu-acl-na {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--line, #e5e7eb);
  opacity: 0.45;
}
@media (max-width: 640px) {
  .menu-acl-matrix-head,
  .menu-acl-matrix-row {
    grid-template-columns: 1.5rem minmax(0, 1fr) 3.6rem 3.6rem 3.2rem;
  }
  .menu-acl-col-h { font-size: 0.65rem; }
}
.menu-acl-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.menu-acl-tree .menu-acl-children {
  list-style: none;
  margin: 0.2rem 0 0.45rem;
  padding: 0 0 0 0.85rem;
  border-left: 2px solid var(--line, #e5e7eb);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.project-acl-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.project-acl-children {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--line, #e5e7eb);
}
.wage-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.wage-group-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.wage-group-item .form-check-input {
  margin-top: 0.28rem;
  flex: 0 0 auto;
}
.wage-group-item .form-check-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  line-height: 1.35;
}
.wage-group-code {
  font-weight: 700;
  min-width: 1.1rem;
}
.wage-group-desc {
  color: var(--muted, #6b7280);
  font-size: 0.88rem;
  font-weight: 400;
}

/* Soft screen lock overlay */
.screen-lock {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(6px);
}
.screen-lock[hidden] { display: none !important; }
body.is-screen-locked { overflow: hidden; }
.screen-lock-card {
  width: min(100%, 22rem);
  padding: 1.75rem 1.35rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-panel);
  color: var(--ink-primary);
  text-align: center;
  box-shadow: var(--shadow-float);
}
.screen-lock-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
  color: var(--ink-secondary);
}
.screen-lock-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.screen-lock-meta {
  margin: 0 0 1.1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.screen-lock-form {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}
.screen-lock-error {
  margin: 0;
  min-height: 1.25rem;
  color: var(--danger, #dc2626);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.screen-lock-error[hidden]:not(.is-visible) {
  display: none !important;
}
.screen-lock-error.is-visible {
  display: block !important;
}
.screen-lock-reauth-msg {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-primary);
  text-align: center;
}
.screen-lock-switch {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.screen-lock-switch a {
  color: var(--accent);
  font-weight: 600;
}
.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 var(--srs-sep-soft);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: var(--surface-panel);
}
.settings-mini-form input:disabled,
.settings-mini-form input[readonly] {
  background: var(--surface-muted);
  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: var(--ok-ink);
}
.settings-form-msg.is-error { color: var(--danger-ink); }
tr.is-row-link { cursor: pointer; }
tr.is-row-link:hover td { background: var(--srs-list-hover-bg); }

.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;
  color: var(--ink-primary);
  background: var(--surface-panel);
}
.content { padding: 1.25rem; }
.panel {
  background: var(--surface);
  color: var(--ink-primary);
  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: var(--surface-muted);
  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: var(--surface-panel);
  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: var(--danger-soft); }
.messages .warning { border-color: #f0d9a8; color: var(--warn-ink); background: var(--warn-soft); }
.messages .success { border-color: #bfe0c8; color: var(--ok); background: var(--ok-soft); }
.messages .info { border-color: #c5d8e8; color: var(--info-ink); background: var(--info-soft); }
.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; color: var(--ink-primary); }
.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: var(--info-soft); color: var(--info-ink); }
.sev-warning { background: var(--warn-soft); color: var(--warn-ink); }
.sev-error { background: var(--danger-soft); color: var(--danger); }
.sev-critical { background: #3b0f0f; color: #fff; }
.sev-security_alert { background: #c62828; color: #fff; }
.audit-security-banner {
  justify-content: space-between;
  border-color: #c62828;
  background: #c62828;
  color: #fff;
}
.audit-security-banner a.btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.audit-security-banner a.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.table tr.is-security td,
.data-table tr.is-security td { background: var(--danger-soft); }
.audit-timeline { overflow: auto; max-height: min(70vh, 900px); }
.audit-timeline .table { margin: 0; }
.audit-timeline code {
  font-size: 0.8rem;
  color: var(--ink-primary);
}
.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; color: var(--ink-primary); background: transparent; }
.report-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-muted);
  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: var(--surface-panel);
  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: var(--report-thead-bg);
  color: var(--report-thead-ink);
}
/*
 * 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: var(--report-sticky-bg);
}
.budget-report .report-panel-sticky > .report-sticky-bar > h2 {
  margin: 0;
  padding: 0.15rem 0 0.2rem;
  background: var(--report-sticky-bg);
}
.budget-report .report-panel-sticky > .report-sticky-bar > .report-meta {
  margin: 0;
  padding: 0.1rem 0 0;
  background: var(--report-sticky-bg);
}
.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: var(--report-thead-bg);
  box-shadow: 0 1px 0 var(--report-thead-shadow);
}
/*
 * İcmal: 2 satır sticky + colspan. Chrome’da grup hücresinin alt kenarı
 * özellikle “Sayı” (çift kolonun solu) üzerinde kısa yatay çizgi bırakır.
 * Üst satırda gölge yok; ::after ile dikiş kapatılır; alt satır 2px üste biner.
 */
.budget-report .report-panel-sticky .budget-icmal thead tr:first-child th {
  box-shadow: none !important;
  border-bottom: 0 !important;
  overflow: visible;
}
.budget-report .report-panel-sticky .budget-icmal thead tr:first-child th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: inherit;
  pointer-events: none;
  z-index: 1;
}
.budget-report .report-panel-sticky .budget-icmal thead tr:nth-child(2) th {
  top: calc(var(--report-thead-row1, 0px) - 2px);
  z-index: 44;
  border-top: 0 !important;
  box-shadow: 0 1px 0 var(--report-thead-shadow);
}
.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: var(--report-group-bg);
}
.budget-report .budget-icmal thead tr:first-child th:not(.group) {
  background: var(--report-thead-bg);
}
/* 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;
}
/* Filtreler: 3 ayrı frame (dönem · checkbox · katsayı) */
[data-srs-workspace="maas-saat"] .budget-filter-frame {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0.45rem 0.55rem;
  padding: 0.55rem 0.6rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel, #fff);
  box-sizing: border-box;
}
[data-srs-workspace="maas-saat"] .budget-filter-frame .report-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}
[data-srs-workspace="maas-saat"] .budget-filter-frame .srs-check-row {
  margin: 0;
}
[data-srs-workspace="maas-saat"] .budget-filter-frame .srs-inline-field {
  margin: 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: var(--report-frozen-bg);
}
.budget-report .budget-matrix thead th:first-child {
  position: sticky;
  left: 0;
  top: 0;
  background: var(--report-thead-bg);
  color: var(--report-thead-ink);
  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: var(--report-total-bg);
  color: var(--report-total-ink);
}
.budget-report .budget-matrix tr.is-total th:first-child,
.budget-report .budget-matrix tr.is-total td:first-child {
  background: var(--report-total-bg);
  color: var(--report-total-ink);
}
.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: var(--report-total-bg);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--surface-panel);
  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: var(--ok-soft); }
.btn-danger {
  background: var(--surface-panel);
  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: var(--warn-soft); }
.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, var(--accent));
  text-decoration: underline;
}
.badge-warn {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--warn-soft);
  color: var(--warn-ink);
  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; }
/* Kullanıcı kartı — örnekteki card + form-row düzenine yakın (Bootstrap yok) */
.user-card { margin: 0; padding: 0; overflow: hidden; }
.user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}
.user-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--display);
}
.user-card-toolbar { display: flex; align-items: center; gap: 0.4rem; }
.user-card-toolbar .btn-sm {
  padding: 0.4rem 0.85rem;
  min-height: 2rem;
  font-size: 0.9rem;
}
.user-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding: 1rem 1.1rem 1.15rem;
}
.user-card-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.user-form-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.user-form-label {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.user-form-label .muted {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
}
.user-form-control { min-width: 0; }
.user-form-control input[type="text"],
.user-form-control input[type="password"],
.user-form-control input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  min-height: 2.4rem;
  font: inherit;
  background: var(--surface-panel);
  color: var(--ink);
}
.user-form-note {
  margin: 0 0 0 0;
  padding-left: calc(8.5rem + 0.75rem);
  font-size: 0.85rem;
}
.user-password-wrap,
.user-personel-id-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.user-password-wrap input,
.user-personel-id-wrap input {
  flex: 1 1 auto;
  min-width: 0;
}
.user-password-wrap .user-password-generate {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
}
.user-password-row {
  align-items: center;
}
.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  color: var(--accent, var(--accent));
  cursor: pointer;
}
.icon-btn:hover,
.icon-btn:focus {
  background: var(--srs-hover-bg);
  outline: none;
}
.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon-btn.is-copied {
  background: #e8f6ea;
  border-color: #2e7d32;
  color: #2e7d32;
}
.user-personel-meta {
  margin: 0;
  font-weight: 600;
  color: var(--accent, var(--accent));
  min-height: 1.35em;
}
.user-personel-meta-sep { margin: 0 0.35rem; opacity: 0.55; }
.user-personel-hint {
  margin: 0.15rem 0 0;
  min-height: 1.1em;
  font-weight: 500;
}
.user-personel-hint.is-warn { color: var(--danger, #b42318); }
.user-form-row-meta { align-items: start; }
.user-form-row-meta .user-form-label { padding-top: 0.35rem; }
.personel-search-modal .personel-search-card {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.personel-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.personel-search-head h2 { margin: 0; }
.personel-search-head .icon-btn {
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
}
.personel-search-card .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
}
.personel-search-card input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  min-height: 2.4rem;
  font: inherit;
}
.personel-picker-results {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
}
.personel-picker-results li { margin: 0; }
.personel-picker-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.personel-picker-item:hover,
.personel-picker-item:focus {
  background: var(--srs-hover-bg);
  outline: none;
}
.personel-picker-item strong { font-weight: 650; }
.personel-picker-empty { margin: 0.15rem 0 0; }
@media (max-width: 820px) {
  .user-card-body { grid-template-columns: 1fr; gap: 1rem; }
  .user-form-note { padding-left: 0; }
}
@media (max-width: 520px) {
  .user-form-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .user-form-row-meta .user-form-label { padding-top: 0; }
}

/* Kullanıcı Yetkilendirme — aksiyon hücresi satır hizası */
.user-auth-table td:first-child {
  white-space: nowrap;
  vertical-align: middle;
}
.user-auth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  min-width: 4.5rem;
  padding: 0.2rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
}
.user-auth-action.is-admin {
  background: #c53030;
  color: #fff;
  cursor: pointer;
}
.user-auth-action.is-active {
  background: #48bb78;
  color: #fff;
}
.user-auth-action.is-inactive {
  background: #4a5568;
  color: #fff;
}
.user-auth-action.is-primary {
  background: #2b6cb0;
  color: #fff;
}
.user-auth-action:hover {
  filter: brightness(0.95);
  text-decoration: none;
  color: #fff;
}
.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: var(--surface-panel);
  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 var(--srs-shell-border);
  border-radius: 8px;
  background: var(--surface-panel);
}
.property-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  color: var(--srs-tool-title-ink);
  background: var(--srs-tool-title-bg);
  border-bottom: 1px solid var(--srs-tool-title-border);
}
.property-titlebar .muted { color: #d9e4e8; }
.property-category {
  padding: 0.35rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--srs-props-summary-ink);
  background: var(--srs-props-summary);
  border-top: 1px solid var(--srs-props-border);
  border-bottom: 1px solid var(--srs-props-border);
}
.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 var(--line);
}
.property-row > label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--srs-props-dt);
  border-right: 1px solid var(--srs-props-dt-border);
}
.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: var(--surface-panel);
}
.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: var(--surface-muted);
  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: var(--info-ink);
  background: var(--info-soft);
  border: 1px solid #c5d8e8;
}
.property-status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
  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 var(--line);
  }
  .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; }
.login-card .login-submit {
  width: 100%;
  margin-top: 0.85rem;
}
.login-card .login-lang {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.login-lang-label {
  font-weight: 600;
  color: var(--ink);
}
.login-lang-row {
  padding: 0;
  grid-template-columns: 1fr 1fr 1fr;
}
.login-lang .lang-btn.is-active,
.login-lang .lang-btn[aria-pressed="true"] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}

/* sidebar-backdrop görünümü ui-tokens.css’te (#admin-sidebar.show) */

/* SRS: IDE-style dockable report workspace */
.srs-shell {
  min-width: 0;
  border: 1px solid var(--srs-shell-border);
  background: var(--srs-shell-bg);
  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 var(--srs-shell-border);
  background: var(--srs-commandbar-bg);
}
.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: var(--srs-hover-border);
  background: var(--srs-hover-bg);
  text-decoration: none;
}
.srs-command:disabled { opacity: 0.45; cursor: default; }
.srs-command-separator { height: 24px; width: 1px; background: var(--srs-sep); 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 var(--srs-menu-border);
  background: var(--srs-menu-bg);
  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: var(--srs-dock-bg);
  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 var(--srs-shell-border);
  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: var(--accent);
}
body.is-dock-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
.srs-dock-right { grid-area: right; border-left: 1px solid var(--srs-shell-border); resize: horizontal; }
.srs-dock-bottom {
  grid-area: bottom;
  max-height: 42vh;
  flex-direction: row;
  border-top: 1px solid var(--srs-shell-border);
  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 var(--srs-shell-border);
  background: var(--srs-drop-bg);
}
.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: var(--srs-drop-target);
}
.srs-document {
  grid-area: document;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--srs-document-bg);
}
.srs-document-tabs {
  min-height: 34px;
  display: flex;
  align-items: end;
  padding: 4px 4px 0;
  border-bottom: 1px solid var(--srs-tab-border);
  background: var(--srs-shell-bg);
}
.srs-document-tabs button {
  align-self: stretch;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--srs-tab-border);
  border-bottom: 0;
  background: var(--srs-tab-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}
.srs-document-tabs button.is-active,
.srs-document-tabs a.is-active { background: var(--srs-tab-active-bg); font-weight: 600; }
.srs-document-tabs a {
  align-self: stretch;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--srs-tab-border);
  border-bottom: 0;
  background: var(--srs-tab-bg);
  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 var(--srs-tool-border);
  border-radius: 2px;
  background: var(--srs-rail-bg);
  color: var(--srs-rail-ink);
  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 var(--srs-tool-border);
  border-radius: 2px;
  background: var(--srs-rail-bg);
  color: var(--srs-rail-ink);
  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; }
[data-srs-workspace="puantaj-girisi"] .srs-document-surface {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
[data-srs-workspace="puantaj-girisi"] .srs-document-surface > .budget-report {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* Grup satırı uzun metin kolonları şişirmesin (colspan min-width tuzağı) */
.puantaj-girisi-table {
  width: max-content;
  min-width: max-content;
}
.puantaj-girisi-table th,
.puantaj-girisi-table td {
  width: auto;
  white-space: nowrap;
}
/* Personel listesine yakın satır yüksekliği — yalnız padding / kontrol boyu */
.puantaj-girisi-table thead th {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.puantaj-girisi-table .puantaj-row td {
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
  vertical-align: middle;
}
.puantaj-girisi-table .puantaj-girisi-group td {
  background: var(--report-thead-bg, var(--danger-soft));
  color: var(--ink-primary, var(--danger-ink));
  font-weight: 700;
  font-size: 0.82rem;
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
  max-width: 0;
  overflow: visible;
}
.puantaj-girisi-table .puantaj-group-label {
  display: block;
  position: sticky;
  left: 0;
  width: max-content;
  max-width: min(70vw, 52rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  padding-right: 0.5rem;
}
.puantaj-girisi-table .puantaj-row.is-locked {
  opacity: 0.92;
}
.puantaj-girisi-table .puantaj-value-col {
  width: 3.4rem;
  min-width: 3.2rem;
  max-width: 3.6rem;
  text-align: center;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
.puantaj-girisi-table .puantaj-fiili-col {
  width: 7.5rem;
  min-width: 5.5rem;
  max-width: 10rem;
  text-align: center;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}
.puantaj-fiili-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0 0.3rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-primary, #18181b);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.puantaj-fiili-btn.is-dis-gorev {
  color: var(--danger-ink, #c62828);
  font-weight: 800;
}
.puantaj-fiili-btn:hover,
.puantaj-fiili-btn:focus-visible {
  border-color: var(--line, #d1d5db);
  background: var(--surface-soft, #f3f4f6);
  outline: none;
}
.puantaj-fiili-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.puantaj-fiili-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  color: var(--ink-muted, #6b7280);
  font-size: 0.82rem;
}
.puantaj-fiili-search-label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted, #6b7280);
}
.report-table thead th.is-dis-gorev-col {
  color: var(--danger-ink, #c62828);
}
.puantaj-girisi-table .puantaj-value-col.is-locked {
  font-weight: 700;
  color: var(--ink-muted, #6b7280);
}
.puantaj-value-field {
  display: inline-block;
  box-sizing: border-box;
  width: 2.9rem;
  min-width: 2.9rem;
  max-width: 2.9rem;
  min-height: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0 0.15rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  background: var(--surface-panel, #fff);
  color: var(--ink-primary, #18181b);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.puantaj-value-col.num .puantaj-value-field {
  text-align: center;
}
.puantaj-value-field:hover {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 45%, var(--line, #d1d5db));
}
.puantaj-value-field:focus,
.puantaj-value-field:focus-visible {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2563eb) 28%, transparent);
  outline: none;
}
.puantaj-value-field.is-durum {
  letter-spacing: 0.02em;
}
.puantaj-value-field.is-ok {
  color: var(--ok-ink, #1f7a4d);
  font-weight: 700;
}
.puantaj-value-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.9rem;
  min-width: 2.9rem;
  min-height: 1.55rem;
  height: 1.55rem;
  padding: 0 0.15rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  font-weight: 700;
  color: var(--ink-muted, #6b7280);
  background: var(--surface-soft, #f3f4f6);
}
.puantaj-value-input-label {
  display: block;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary, #52525b);
}
.puantaj-value-input {
  width: 100%;
  box-sizing: border-box;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--input-line, #d4d4d8);
  border-radius: 6px;
  background: var(--surface-panel, #fff);
  color: var(--ink-primary, #18181b);
  font: inherit;
  font-weight: 600;
}
.puantaj-value-input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #2563eb) 35%, transparent);
  outline-offset: 1px;
}
.puantaj-value-modal-card {
  max-width: 26rem;
}
.puantaj-alt-ekip-btn:disabled,
.puantaj-gece-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.puantaj-alt-ekip-col {
  width: 7.5rem;
  min-width: 4.5rem;
  max-width: 9rem;
  text-align: center;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.2rem;
}
.puantaj-alt-ekip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0 0.3rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-muted, #6b7280);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.puantaj-alt-ekip-btn.is-inherited {
  font-style: italic;
}
.puantaj-alt-ekip-btn.is-empty {
  color: var(--danger-ink, #c62828);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.puantaj-alt-ekip-btn:hover,
.puantaj-alt-ekip-btn:focus-visible {
  border-color: var(--line, #d1d5db);
  background: var(--surface-soft, #f3f4f6);
  color: var(--ink-primary, #111827);
  outline: none;
}
.puantaj-alt-ekip-btn.is-empty:hover,
.puantaj-alt-ekip-btn.is-empty:focus-visible {
  color: var(--danger-ink, #b71c1c);
  border-color: color-mix(in srgb, var(--danger-ink, #c62828) 35%, var(--line, #d1d5db));
  background: color-mix(in srgb, var(--danger-ink, #c62828) 8%, transparent);
}
.puantaj-move-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 24, 38, 0.28);
}
.puantaj-move-modal[hidden] { display: none; }
.puantaj-move-modal-card {
  width: min(380px, 94vw);
  padding: 0.9rem 1rem 0.85rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: var(--surface-panel, #fff);
  box-shadow: 0 12px 32px rgba(18, 52, 59, 0.18);
}
.puantaj-move-modal-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}
.puantaj-move-person {
  margin: 0 0 0.15rem;
  font-size: 0.86rem;
}
.puantaj-move-taseron {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-primary, #18181b);
  letter-spacing: 0.01em;
}
.puantaj-move-taseron[hidden] { display: none; }
.puantaj-move-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
}
.puantaj-move-meta > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
}
.puantaj-move-meta dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted, #6b7280);
}
.puantaj-move-meta dd {
  margin: 0;
  font-size: 0.92rem;
}
.puantaj-move-divider {
  height: 1px;
  margin: 0 0 0.65rem;
  background: var(--line, #e5e7eb);
}
.puantaj-move-target-label {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.puantaj-move-note {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
}
.puantaj-move-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 12rem;
  overflow: auto;
  margin: 0 0 0.85rem;
  padding: 0.15rem 0;
}
.puantaj-durum-btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 14rem;
  overflow: auto;
  margin: 0 0 0.85rem;
  padding: 0.1rem 0;
}
.puantaj-durum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: var(--btn-surface, #fff);
  color: var(--ink-primary, #18181b);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.puantaj-durum-btn:hover,
.puantaj-durum-btn:focus-visible {
  border-color: var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent, #2563eb) 10%, #fff);
  outline: none;
}
.col-menu-item.is-fill-work-hours,
.col-menu-item.is-fill-work-hours-undo {
  font-weight: 600;
}
.puantaj-move-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}
.puantaj-move-option:hover {
  background: var(--surface-soft, #f3f4f6);
}
.puantaj-move-option.is-demo {
  opacity: 0.72;
  cursor: default;
}
.puantaj-move-option input {
  margin: 0;
}
.puantaj-move-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}
.puantaj-move-actions .share-modal-cancel,
.puantaj-move-actions .btn-primary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.puantaj-move-actions .share-modal-cancel {
  border-color: var(--srs-sep-soft, #d1d5db);
  background: var(--surface-panel, #fff);
  color: var(--ink-primary, #111827);
}
.puantaj-move-actions .btn-primary {
  border-color: var(--accent, #2563eb);
  background: var(--accent, #2563eb);
  color: var(--accent-ink, #fff);
}
.puantaj-move-actions .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.puantaj-gece-col {
  text-align: center;
  width: 6.5rem;
  min-width: 6.2rem;
  white-space: nowrap;
  padding: 0.15rem 0.25rem;
}
.puantaj-gece-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 5.6rem;
  min-height: 1.55rem;
  height: 1.55rem;
  width: 100%;
  max-width: 6.5rem;
  margin: 0;
  padding: 0 0.35rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  background: var(--surface-panel, #fff);
  color: var(--ink-muted, #6b7280);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}
.puantaj-gece-text {
  white-space: nowrap;
}
.puantaj-gece-btn:hover,
.puantaj-gece-btn:focus-visible {
  border-color: var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent, #2563eb) 8%, #fff);
  outline: none;
}
.puantaj-gece-btn:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2563eb) 28%, transparent);
}
.puantaj-gece-btn.is-gece {
  color: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  font-weight: 800;
}
.puantaj-gece-btn.is-gece .puantaj-gece-text {
  font-weight: 800;
}
.puantaj-gece-btn.is-gunduz {
  font-weight: 500;
  color: #c4c4c8;
  border-color: #e4e4e7;
}
.puantaj-gece-btn.is-gunduz .puantaj-gece-text {
  font-weight: 500;
  color: #c4c4c8;
}
html[data-bs-theme="dark"] .puantaj-gece-btn.is-gunduz,
html[data-bs-theme="dark"] .puantaj-gece-btn.is-gunduz .puantaj-gece-text {
  color: #71717a;
  border-color: #3f3f46;
}
.puantaj-gece-btn.is-inherited {
  font-style: italic;
}
.puantaj-gece-btn.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.puantaj-gece-btn.is-error {
  color: var(--danger, #b91c1c);
  border-color: var(--danger, #b91c1c);
}
.puantaj-ek-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.puantaj-ek-modal-card {
  max-width: 28rem;
}
.puantaj-ek-day {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
}
.puantaj-ek-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
}
.puantaj-ek-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.puantaj-ek-item:last-child {
  border-bottom: 0;
}
.puantaj-ek-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent, #2563eb);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}
.puantaj-ek-name:hover {
  text-decoration: underline;
}
.puantaj-ek-size {
  font-size: 0.75rem;
  white-space: nowrap;
}
.puantaj-ek-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--danger, #b91c1c);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.puantaj-ek-remove:hover,
.puantaj-ek-remove:focus-visible {
  background: color-mix(in srgb, var(--danger, #b91c1c) 12%, transparent);
  outline: none;
}
.puantaj-ek-confirm-text {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: var(--surface-soft, #f8fafc);
  color: var(--ink-primary, #18181b);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}
.puantaj-filter-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
}
.srs-shell .srs-filter-form label.puantaj-filter-date,
.puantaj-filter-date {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  width: 100%;
  grid-template-columns: none;
}
.puantaj-filter-date > span {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.puantaj-filter-date input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 12rem;
  width: auto;
}
.puantaj-pt-head {
  font-weight: 600;
  font-size: 0.82rem;
  margin: 0.35rem 0 0.35rem;
}
.puantaj-pt-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
  background: var(--surface-panel, #fff);
}
.puantaj-pt-row {
  display: grid;
  grid-template-columns: 1.1rem 1.1rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  min-height: 1.55rem;
}
.puantaj-pt-row.is-level-2 {
  grid-template-columns: 1.1rem 1.1rem minmax(0, 1fr);
  padding-left: 0.15rem;
}
.puantaj-pt-toggle {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted, #6b7280);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}
.puantaj-pt-spacer { display: block; width: 1.1rem; }
.puantaj-pt-row label {
  margin: 0;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.puantaj-pt-children {
  list-style: none;
  margin: 0.1rem 0 0.35rem;
  padding: 0 0 0 0.55rem;
  border-left: 2px solid var(--line, #e5e7eb);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
/* display:flex, [hidden]’ı ezer — kapanış için zorunlu */
.puantaj-pt-children[hidden] {
  display: none !important;
}
.puantaj-pt-project.is-open > .puantaj-pt-row .puantaj-pt-toggle {
  color: var(--accent, #2563eb);
}
.puantaj-move-btn {
  min-height: 1.55rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: var(--radius-sm, 4px);
  background: var(--surface-panel, #fff);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.45;
}
.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.is-required {
  opacity: 0.62;
}
.srs-field-check.is-required input {
  cursor: not-allowed;
}
.srs-field-check.is-required span {
  color: var(--ink-muted, #6b7280);
}
.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: var(--srs-splitter);
  cursor: row-resize;
  align-self: stretch;
}
.srs-shell .srs-stack-splitter:hover,
.srs-shell .srs-stack-splitter:active {
  background: var(--accent);
}
.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):not(.budget-filter-frame) {
  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-tool-window[data-panel-id="filters"] .srs-filter-form > .budget-filter-frame:last-child {
  margin-bottom: 0.55rem;
}
.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: var(--srs-tool-bg);
  border-bottom: 0;
}
.srs-shell .srs-panel-apply-row--fields {
  justify-content: space-between;
  gap: 0.5rem;
}
.srs-shell .srs-fields-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary, #1f2937);
  cursor: pointer;
  user-select: none;
}
.srs-shell .srs-fields-reset input {
  margin: 0;
  cursor: pointer;
}
.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: var(--srs-disabled);
  color: var(--accent-ink);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}
.srs-shell .srs-panel-apply.is-pending:not(:disabled) {
  background: #c62828;
  color: var(--accent-ink);
}
.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: var(--ink-strong);
}
.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: var(--ink-strong);
}
/* Kullanıcı Yetkilendirme: iki ayrı filtre kutusu */
.srs-shell .srs-filter-frame {
  margin: 0.35rem 0.45rem 0;
}
.srs-shell .srs-filter-frame-gap {
  margin-top: 1rem;
  margin-bottom: 0.55rem;
}
.srs-shell .srs-check-listview.is-compact {
  max-height: none;
}
.srs-shell .srs-check-listview {
  width: 100%;
  max-height: 11.5rem;
  overflow: auto;
  border: 1px solid var(--srs-list-border);
  background: var(--srs-list-bg);
  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: var(--ink-strong);
}
.srs-shell .srs-check-listview-table th,
.srs-shell .srs-check-listview-table td {
  border-bottom: 1px solid var(--srs-list-cell-border);
  border-right: 1px solid var(--srs-list-cell-border);
  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: var(--srs-list-head-bg);
  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: var(--srs-list-hover-bg);
}
.srs-shell .srs-check-listview-row.is-checked td {
  background: var(--srs-list-checked-bg);
}
.budget-report .num-pos {
  color: var(--ok-ink);
  font-weight: 700;
}
.budget-report .num-neg {
  color: var(--danger-ink);
  font-weight: 700;
}
.budget-report .report-table tr.is-total .num-pos,
.budget-report .report-table tr.is-total .num-neg {
  color: var(--report-total-ink);
}
.budget-report .report-table tr.is-group td {
  background: var(--report-thead-bg);
  color: var(--report-thead-ink);
  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 var(--ink-strong);
  border-radius: 8px;
  background: var(--btn-surface);
  color: var(--ink-strong);
  cursor: pointer;
}
.srs-shell .srs-zoom:hover { background: var(--btn-surface-hover); }
.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 var(--ok-ink);
  border-radius: 8px;
  background: var(--btn-surface);
  color: var(--ok-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-excel:hover { background: var(--ok-soft); }
.srs-shell .srs-export {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-panel);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-export-excel {
  border: 1px solid var(--ok-ink);
  color: var(--ok-ink);
}
.srs-shell .srs-export-excel:hover { background: var(--ok-soft); }
.srs-shell .srs-export-pdf {
  border: 1px solid var(--danger-ink);
  color: var(--danger-ink);
}
.srs-shell .srs-export-pdf:hover { background: var(--danger-soft); }
.srs-shell .srs-export-html {
  border: 1px solid var(--info-ink);
  color: var(--info-ink);
}
.srs-shell .srs-export-html:hover { background: var(--info-soft); }
.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;
}
/* Kolon tut-bırak — tüm SRS rapor gridleri (şablon: report-grid.js) */
.report-table thead th.col-draggable {
  cursor: grab;
}
.report-table thead th.col-draggable.is-col-pinned,
.report-table thead th.col-draggable[data-col-pinned-start="1"] {
  cursor: default;
}
.report-table thead th.col-draggable:active {
  cursor: grabbing;
}
.report-table thead th.col-draggable.is-col-pinned:active,
.report-table thead th.col-draggable[data-col-pinned-start="1"]:active {
  cursor: default;
}
.report-table thead th.is-col-dragging {
  opacity: 0.45;
}
.report-table thead th.is-col-drop {
  box-shadow: inset 0 -3px 0 var(--accent);
}
.col-menu-th.col-draggable {
  cursor: grab;
}
.col-menu-th.col-draggable.is-col-dragging {
  cursor: grabbing;
}
.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.is-ghost-anchor {
  display: none !important;
}
.col-menu-th {
  cursor: pointer;
  position: relative;
  padding-left: 0.45rem !important;
  padding-right: 0.85rem;
}
[data-col-menu="1"] .budget-report .report-table thead th,
[data-col-menu="1"] .report-table thead th {
  padding-left: 0.45rem;
}
.col-menu-th.has-hidden-after {
  box-shadow: inset -3px 0 0 transparent;
}
.col-hide-gap {
  position: absolute;
  top: 15%;
  right: -3px;
  z-index: 2;
  width: 5px;
  height: 70%;
  pointer-events: none;
  border-left: 2px solid var(--ink-muted, #6b7280);
  border-right: 2px solid var(--ink-muted, #6b7280);
  box-sizing: border-box;
}
.srs-field-checks--reorder .srs-field-check {
  align-items: center;
  gap: 0.3rem;
  cursor: default;
}
.srs-field-drag {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-muted, #888);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  cursor: grab;
}
.srs-field-drag:hover {
  color: var(--ink-primary, #222);
  background: var(--surface-hover, #f4f4f5);
}
.srs-field-drag:active { cursor: grabbing; }
.srs-field-drag span {
  display: block;
  width: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.srs-field-checks--reorder .srs-field-check.is-dragging {
  opacity: 0.55;
}
.srs-field-checks--reorder .srs-field-check.is-drag-over {
  box-shadow: inset 0 2px 0 0 var(--accent, #2563eb);
}
.srs-field-name {
  min-width: 0;
  flex: 1 1 auto;
}
.col-filter-pop.is-col-menu {
  width: 300px;
  height: auto;
  max-height: min(85vh, 560px);
  min-height: 320px;
}
.col-menu-chrome {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 0 0 auto;
}
.col-menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 1.7rem;
  padding: 0.2rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.col-menu-item:hover:not(:disabled) {
  background: var(--surface-hover, #f4f4f5);
}
.col-menu-item.is-eksik-puantaj {
  color: var(--danger-ink, #8d2f2f);
  font-weight: 700;
}
.col-menu-item.is-dis-gorev {
  color: var(--danger-ink, #c62828);
  font-weight: 800;
}
.col-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.col-menu-ico {
  flex: 0 0 1.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent, #2563eb);
}
.col-menu-sep {
  height: 1px;
  margin: 0.35rem 0;
  background: var(--line, #e5e7eb);
}
.col-menu-hide {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 1.7rem;
  margin: 0;
  padding: 0.2rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.col-menu-hide:hover:not(:disabled) {
  background: var(--surface-hover, #f4f4f5);
}
.col-menu-hide:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.col-menu-hide-name {
  color: var(--accent, #2563eb);
  font-weight: 700;
}
.col-menu-width {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.1rem 0.35rem 0.35rem;
}
.col-menu-width-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.2;
  padding: 0.05rem 0;
}
.col-menu-width-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --col-width-pct: 100;
}
.col-menu-width-range:focus {
  outline: none;
}
.col-menu-width-range:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #2563eb) 45%, transparent);
  outline-offset: 2px;
  border-radius: 999px;
}
.col-menu-width-range::-webkit-slider-runnable-track {
  height: 4px;
  border: 1px solid var(--accent, #2563eb);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent, #2563eb) 0%,
    var(--accent, #2563eb) calc(var(--col-width-pct) * 1%),
    #fff calc(var(--col-width-pct) * 1%),
    #fff 100%
  );
}
.col-menu-width-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.col-menu-width-range::-moz-range-track {
  height: 4px;
  border: 1px solid var(--accent, #2563eb);
  border-radius: 999px;
  background: #fff;
}
.col-menu-width-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent, #2563eb);
}
.col-menu-width-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  cursor: pointer;
}
/* Column width rules are injected on [data-alynx-grid] th/td[data-col-origin] */
.col-sort-dialog {
  position: fixed;
  inset: 0;
  z-index: 1065;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 24, 38, 0.28);
}
.col-sort-dialog-card {
  width: min(420px, 94vw);
  padding: 0.85rem 0.9rem 0.75rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: var(--surface-panel, #fff);
  box-shadow: 0 12px 32px rgba(18, 52, 59, 0.18);
}
.col-sort-dialog-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.col-sort-levels {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.col-sort-level {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.35rem;
  align-items: center;
}
.col-sort-level select {
  min-height: 2rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--input-line, #d1d5db);
  border-radius: 4px;
  font: inherit;
  font-size: 0.82rem;
}
.col-sort-remove {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.col-sort-add {
  margin-bottom: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--accent, #2563eb);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.col-sort-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.col-filter-btn:hover {
  border-color: var(--srs-hover-border);
  background: var(--btn-surface);
}
.budget-report .report-table thead th.is-filtered,
.report-table thead th.is-filtered,
.srs-shell .report-table thead th.is-filtered,
.srs-shell .budget-report .report-table thead th.is-filtered,
.srs-shell .report-grid-scroll > .report-table thead th.is-filtered,
.srs-shell .report-grid-scroll .report-table.data-table thead th.is-filtered {
  background: var(--report-filtered-bg) !important;
  color: var(--report-filtered-ink) !important;
}
.col-filter-clear-head {
  position: absolute;
  top: 50%;
  right: 3px;
  left: auto;
  z-index: 3;
  width: 20px;
  height: 20px;
  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;
  color: var(--report-filtered-ink, #b91c1c);
  cursor: pointer;
}
.col-filter-clear-head:hover {
  border-color: var(--report-filtered-ink, #b91c1c);
  background: var(--btn-surface, #fff);
}
.col-filter-clear-head svg path.col-filter-clear-x {
  stroke: #e67e22;
}
.report-table thead th.is-filtered,
.col-menu-th.is-filtered {
  padding-right: 1.55rem !important;
}
.budget-report .report-table thead th.is-menu-open,
.report-table thead th.is-menu-open,
.srs-shell .report-table thead th.is-menu-open,
.srs-shell .budget-report .report-table thead th.is-menu-open,
.srs-shell .report-grid-scroll > .report-table thead th.is-menu-open,
.srs-shell .report-grid-scroll .report-table.data-table thead th.is-menu-open {
  background: var(--report-menu-open-bg) !important;
  color: var(--report-menu-open-ink) !important;
  font-weight: 700;
}
.srs-shell .report-grid-scroll .report-table.data-table thead th.is-eksik-puantaj {
  color: var(--danger-ink, #8d2f2f) !important;
}
.col-filter-btn.is-active {
  border-color: var(--danger-ink);
  background: var(--btn-surface);
}
.col-filter-btn.is-active svg path {
  fill: var(--report-filtered-bg);
  stroke: var(--danger-ink);
}
.col-filter-pop {
  position: fixed;
  /* admin-header 1030 · sidebar ~1035–1041 — menü her zaman üstte */
  z-index: 1060;
  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 var(--srs-menu-border);
  border-radius: 6px;
  background: var(--srs-menu-bg);
  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 var(--input-line);
  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 var(--ink-strong);
  border-radius: 4px;
  background: var(--surface-panel);
  cursor: pointer;
}
.col-filter-paste:hover { background: var(--btn-surface-hover); }
.col-filter-manual {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--input-line);
  border-radius: 4px;
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}
.col-filter-status {
  margin: 0;
  color: var(--danger-ink);
  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: var(--ok-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.col-filter-count:hover { background: var(--ok-soft); }
.col-filter-chevron { color: var(--ok-ink); 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 var(--danger-ink);
  border-radius: 4px;
  background: var(--surface-panel);
  cursor: pointer;
}
.col-filter-clear:hover { background: var(--danger-soft); }
.col-filter-picked {
  margin: 0;
  padding: 0.3rem 0.55rem 0.35rem 1.15rem;
  max-height: 140px;
  overflow: auto;
  border: 1px solid var(--ok-soft);
  border-radius: 4px;
  background: var(--ok-soft);
  color: var(--ink-strong);
  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 var(--line);
  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: var(--surface-panel);
  border-bottom: 1px solid var(--line);
  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: var(--surface-muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.col-filter-ok {
  border: 2px solid #2f6fdb;
  color: var(--ink-strong);
  font-weight: 700;
}
.col-filter-cancel { border: 1px solid var(--srs-sep-soft); color: var(--ink-strong); }
.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 var(--srs-menu-border);
  border-radius: 2px;
  background: var(--btn-surface);
  color: var(--ink-strong);
  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 var(--ink-strong);
  border-radius: 8px;
  background: var(--btn-surface);
  color: var(--ink-strong);
  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 var(--ink-strong);
  border-radius: 8px;
  background: var(--btn-surface);
  color: var(--ink-strong);
  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 var(--ink-strong);
  border-radius: 8px;
  background: var(--surface-panel);
  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: var(--btn-surface);
  color: var(--ink-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.srs-shell .srs-export-list button:hover { background: var(--btn-surface-hover); }
.srs-shell .srs-export-ico {
  flex: 0 0 auto;
  display: block;
}
.srs-shell .srs-export-ico-excel { color: var(--ok-ink); }
.srs-shell .srs-export-ico-pdf { color: var(--danger-ink); }
.srs-shell .srs-export-ico-html { color: var(--info-ink); }
.srs-shell .srs-export-ico-sql { color: var(--ink-muted); }
.srs-shell .srs-export-ico-settings { color: var(--ink-muted); }
.srs-shell .srs-export-sep {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: var(--srs-sep-soft);
}
.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: var(--srs-menu-bg);
  color: var(--ink-primary);
  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 var(--srs-menu-border);
  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 var(--srs-sep-soft);
  border-radius: 8px;
  background: var(--surface-panel);
  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 var(--srs-menu-border);
  border-radius: 8px;
  background: var(--surface-panel);
}
.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: var(--ink-strong);
  cursor: pointer;
}
.share-url-copy[hidden] { display: none; }
.share-url-copy:hover { background: var(--btn-surface-hover); }
.share-modal-url [data-share-status] { font-weight: 500; color: var(--ok-ink); }
.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 var(--info-ink);
  border-radius: 8px;
  background: var(--surface-panel);
  color: var(--info-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.srs-shell .srs-sql-copy:hover { background: var(--info-soft); }
.srs-shell .srs-copy-note {
  padding: 0.3rem 0.55rem;
  border: 1px solid #bfe0c8;
  border-radius: 8px;
  background: var(--ok-soft);
  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;
  /* Üst nav + status bar + main padding — footer ile status arası boşluk kalmasın */
  height: calc(100vh - var(--header-height) - var(--status-bar-height) - 1.1rem);
  min-height: 420px;
}
.srs-shell[data-srs-workspace] .srs-document {
  min-height: 0;
  flex: 1 1 auto;
}
.srs-shell[data-srs-workspace] .srs-document {
  overflow: hidden;
}
.srs-shell[data-srs-workspace] .srs-document-surface {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.35rem 0.45rem 0;
  /* Kaydırma yalnız report-grid-scroll’ta — thead sticky için şart */
  overflow: hidden;
}
.srs-shell[data-srs-workspace] .report-sheet,
.srs-shell[data-srs-workspace] .report-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.srs-shell[data-srs-workspace] .report-sheet-footer {
  margin-top: auto;
  flex: 0 0 auto;
}
.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 var(--srs-tool-border);
  background: var(--srs-tool-bg);
  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: var(--srs-tool-title-ink);
  background: var(--srs-tool-title-bg);
  border-bottom: 1px solid var(--srs-tool-title-border);
  cursor: grab;
  user-select: none;
}
.srs-tool-title:active { cursor: grabbing; }
.srs-drag-grip { color: var(--ink-muted); }
.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: var(--srs-tool-title-ink);
  font: inherit;
  cursor: pointer;
}
.srs-tool-actions button:hover,
.srs-tool-actions a:hover {
  border-color: var(--ink-muted);
  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 var(--input-line);
  border-radius: 2px;
  background: var(--srs-list-bg);
  color: var(--ink-primary);
  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: var(--srs-hover-border);
  background: var(--report-col-hover);
}
.srs-properties { padding: 0; }
.srs-properties details { border-bottom: 1px solid var(--srs-props-border); }
.srs-properties summary {
  padding: 0.35rem 0.55rem;
  background: var(--srs-props-summary);
  color: var(--srs-props-summary-ink);
  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 var(--srs-props-row-border);
  font-size: 0.77rem;
  overflow-wrap: anywhere;
}
.srs-properties dt { background: var(--srs-props-dt); border-right: 1px solid var(--srs-props-dt-border); 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: var(--report-col-hover); }

/* 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 var(--srs-shell-border);
    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 var(--srs-shell-border);
    resize: none;
  }
  .srs-tool-window { flex-basis: auto; }
  .srs-command-spacer { display: none; }
  .srs-commandbar { flex-wrap: wrap; }
}

/* Rapor yükleme → status bar sol (§14 işlem mesajı); sayfa örtüsü yok */
html.is-report-loading,
html.is-report-loading body {
  cursor: progress;
}
.alynx-status.is-loading .alynx-status-msg,
.alynx-status.is-loading .srs-copy-note {
  display: none !important;
}
.alynx-status-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--ink-primary, #222);
  font-weight: 600;
  white-space: nowrap;
}
.alynx-status-loading[hidden] { display: none !important; }
.alynx-status-loading-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}
.alynx-status-loading-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  background: var(--accent, #2563eb);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  animation: alynx-load-bob 0.9s ease-in-out infinite;
}
.alynx-status-loading-dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.7rem;
}
.alynx-status-loading-dots i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  animation: alynx-load-dot 0.7s ease-in-out infinite alternate;
}
.alynx-status-loading-dots i:nth-child(2) { animation-delay: 0.12s; }
.alynx-status-loading-dots i:nth-child(3) { animation-delay: 0.24s; }
.alynx-status-loading-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.alynx-status-loading-elapsed {
  color: var(--ink-muted, #6b7280);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.alynx-status-loading-elapsed:empty { display: none; }
@keyframes alynx-load-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes alynx-load-dot {
  from { transform: translateY(0); opacity: 0.45; }
  to { transform: translateY(-4px); opacity: 1; }
}
/* 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: var(--surface-panel);
  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: var(--surface-muted);
  color: var(--report-thead-ink);
  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: var(--ink-muted);
  cursor: pointer;
  padding: 0;
}
.report-edit-icon:hover { background: var(--surface-hover); color: var(--report-thead-ink); }
.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-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 var(--srs-sep-soft);
  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 var(--line);
  background: var(--report-sticky-bg);
}
.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;
}
.srs-shell .report-grid-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  width: 100%;
  border: 0;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}
.srs-shell .report-sheet .table-scroll {
  overflow: visible;
  max-height: none;
  width: 100%;
  border: 0;
}
.srs-shell .report-grid-scroll .report-table,
.srs-shell .report-grid-scroll .report-table.data-table {
  /* İçerik kadar genişle; %100 tablo Proje gibi metin kolonunu şişirir */
  width: max-content;
  min-width: max-content;
  margin: 0;
  /* collapse sticky thead’i kırar */
  border-collapse: separate;
  border-spacing: 0;
}
/* Kodlama listeleri: başlık şeridi + satır çizgileri satır sonuna */
[data-srs-workspace="ulke-kodlari"] .report-grid-scroll .report-table,
[data-srs-workspace="ulke-kodlari"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="uretim-tipi"] .report-grid-scroll .report-table,
[data-srs-workspace="uretim-tipi"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="meslek-grubu"] .report-grid-scroll .report-table,
[data-srs-workspace="meslek-grubu"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="meslek-kodlari"] .report-grid-scroll .report-table,
[data-srs-workspace="meslek-kodlari"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="taseron-kodlari"] .report-grid-scroll .report-table,
[data-srs-workspace="taseron-kodlari"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="proje-grubu"] .report-grid-scroll .report-table,
[data-srs-workspace="proje-grubu"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="proje-kodlari"] .report-grid-scroll .report-table,
[data-srs-workspace="proje-kodlari"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="proje-taseron"] .report-grid-scroll .report-table,
[data-srs-workspace="proje-taseron"] .report-grid-scroll .report-table.data-table,
[data-srs-workspace="proje-ekip"] .report-grid-scroll .report-table,
[data-srs-workspace="proje-ekip"] .report-grid-scroll .report-table.data-table {
  width: 100%;
  min-width: 100%;
}
[data-srs-workspace="ulke-kodlari"] .report-table th:last-child,
[data-srs-workspace="ulke-kodlari"] .report-table td:last-child,
[data-srs-workspace="uretim-tipi"] .report-table th:last-child,
[data-srs-workspace="uretim-tipi"] .report-table td:last-child,
[data-srs-workspace="meslek-grubu"] .report-table th:last-child,
[data-srs-workspace="meslek-grubu"] .report-table td:last-child,
[data-srs-workspace="meslek-kodlari"] .report-table th:last-child,
[data-srs-workspace="meslek-kodlari"] .report-table td:last-child,
[data-srs-workspace="taseron-kodlari"] .report-table th:last-child,
[data-srs-workspace="taseron-kodlari"] .report-table td:last-child,
[data-srs-workspace="proje-grubu"] .report-table th:last-child,
[data-srs-workspace="proje-grubu"] .report-table td:last-child,
[data-srs-workspace="proje-kodlari"] .report-table th:last-child,
[data-srs-workspace="proje-kodlari"] .report-table td:last-child,
[data-srs-workspace="proje-taseron"] .report-table th:last-child,
[data-srs-workspace="proje-taseron"] .report-table td:last-child,
[data-srs-workspace="proje-ekip"] .report-table th:last-child,
[data-srs-workspace="proje-ekip"] .report-table td:last-child {
  width: 100%;
}
.srs-shell .report-grid-scroll > .report-table thead th,
.srs-shell .report-grid-scroll .report-table-sticky thead th,
.srs-shell .report-grid-scroll .report-table.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--report-thead-bg);
  color: var(--report-thead-ink);
  box-shadow: 0 1px 0 var(--report-thead-shadow);
}
.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: var(--report-sticky-bg);
  font-size: 0.82rem;
  color: var(--ink-secondary);
  min-width: 0;
}
.report-footer-left,
.report-footer-center,
.report-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}
.report-footer-left { justify-self: start; justify-content: flex-start; }
.report-footer-center { justify-self: center; justify-content: center; }
.report-footer-right { justify-self: end; justify-content: flex-end; }
.report-footer-items-source[hidden] { display: none !important; }
.report-footer-rows { white-space: nowrap; color: var(--muted); }
.report-footer-item-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.report-footer-text {
  color: var(--info-ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.report-footer-text.is-none { color: var(--muted); font-weight: 500; }
.srs-gear-icon { flex: 0 0 auto; opacity: 0.9; }

@media print {
  .alynx-status-loading { display: none !important; }
  .topbar, .sidebar, .messages, .srs-commandbar, .srs-dock, .srs-document-tabs, .alynx-status { 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; }
}


/* === theme: dark/light safety === */
.srs-shell,
.srs-shell .srs-filter-form,
.srs-shell .srs-filter-form label,
.srs-shell .srs-check-row,
.srs-shell .srs-field-check,
.srs-shell .report-hint,
.srs-shell .report-meta,
.srs-shell .srs-check-listview-table {
  color: var(--ink-primary);
}
.srs-shell .srs-commandbar {
  background: var(--srs-commandbar-bg);
  border-bottom-color: var(--srs-shell-border);
  color: var(--ink-primary);
}
.srs-shell .srs-dock {
  background: var(--srs-dock-bg);
}
.srs-document-tabs {
  background: var(--srs-shell-bg);
  border-bottom-color: var(--srs-tab-border);
}
.srs-shell .report-frame,
.srs-shell .report-sheet-header,
.srs-shell .report-sheet-footer {
  color: var(--ink-primary);
}
.srs-shell .report-sheet-header {
  color: var(--report-thead-ink);
}
.col-filter-pop,
.share-modal-row select,
.share-modal-url input,
.report-title-editor .property-value input,
.srs-shell .srs-lang-select,
.srs-shell .srs-export-list button,
.srs-shell .srs-export-toggle,
.srs-shell .srs-zoom {
  color: var(--ink-primary);
  background: var(--btn-surface);
}
.col-filter-pop input,
.col-filter-search input,
.share-modal-row select,
.share-modal-url input,
.report-title-editor .property-value input {
  color: var(--ink-primary);
  background: var(--srs-list-bg);
  border-color: var(--input-line);
}
.srs-shell .srs-excel,
.srs-shell .srs-export {
  background: var(--btn-surface);
}
.btn-secondary,
.btn-danger,
.share-modal-cancel {
  background: var(--btn-surface);
}
.btn-secondary:hover { background: var(--btn-surface-hover); }
.property-row > label,
.property-value,
.catalog-form,
.user-form-label,
.settings-panel,
.settings-link,
.login-card {
  color: var(--ink-primary);
}
html[data-bs-theme="dark"] .badge {
  background: rgba(37, 99, 235, 0.2);
}
html[data-bs-theme="dark"] .report-title-editor {
  background: var(--srs-menu-bg);
  border: 1px solid var(--srs-menu-border);
}

/* === Metis SRS trial (geri alınabilir) ===
   Yerleşim aynı; çizgi/tipografi soft + kabukla uyumlu. */
.srs-shell {
  border-radius: var(--radius, 8px);
  box-shadow: none;
  overflow: hidden;
}
.srs-shell .srs-commandbar {
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  font-weight: 500;
}
.srs-shell .srs-command,
.srs-shell .srs-zoom,
.srs-shell .srs-sql-copy,
.srs-shell .srs-export-toggle,
.srs-shell .srs-lang-select {
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm, 6px);
}
.srs-shell .srs-dock {
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--srs-dock-bg);
}
.srs-shell .srs-tool-window {
  border-radius: var(--radius-sm, 6px);
  border-color: var(--srs-tool-border);
  box-shadow: none;
  overflow: hidden;
}
.srs-shell .srs-tool-title {
  min-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--srs-tool-title-bg);
  color: var(--srs-tool-title-ink);
  border-bottom: 1px solid var(--srs-tool-title-border);
  border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
}
.srs-shell .srs-tool-title strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--srs-tool-title-ink);
}
.srs-shell .srs-tool-actions button,
.srs-shell .srs-tool-actions a {
  color: var(--srs-tool-title-ink);
}
.srs-shell .filter-rail,
.srs-shell .fields-rail {
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
}
.srs-shell .srs-document-tabs {
  background: var(--srs-shell-bg);
  border-bottom: 1px solid var(--srs-tab-border);
  gap: 2px;
  padding: 0.35rem 0.35rem 0;
}
.srs-shell .srs-document-tabs button,
.srs-shell .srs-document-tabs a {
  border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}
.srs-shell .srs-document-tabs button.is-active,
.srs-shell .srs-document-tabs a.is-active {
  background: var(--srs-tab-active-bg);
  border-color: var(--srs-tab-border);
  color: var(--ink-primary);
  font-weight: 600;
}
.srs-shell .report-frame {
  border-radius: var(--radius, 8px);
  border: 1px solid var(--line);
  box-shadow: none;
}
.srs-shell .report-sheet-header {
  background: var(--report-thead-bg);
  color: var(--report-thead-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem 0.7rem;
}
.srs-shell .report-sheet-header-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.srs-shell .report-sheet-header strong,
.srs-shell .report-sheet-header [data-report-sheet-header-text] {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.35;
}
.srs-shell .report-sheet-meta {
  display: block;
  margin: 0;
  padding-top: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #64748b;
}
.srs-shell .report-sticky-bar {
  background: #f8fafc;
  padding: 0.55rem 0.85rem 0.45rem;
}
.srs-shell .report-sticky-bar h2,
.srs-shell .report-sheet-header h2,
.srs-shell .report-sheet-header .h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 0.3rem;
  line-height: 1.35;
}
.srs-shell .report-meta,
.srs-shell .report-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}
.srs-shell .report-table,
.srs-shell .budget-report .report-table {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-primary);
}
.srs-shell .report-table th,
.srs-shell .report-table td,
.srs-shell .budget-report .report-table th,
.srs-shell .budget-report .report-table td {
  border-bottom: 1px solid var(--line);
  border-right: 0;
  padding: 0.4rem 0.65rem;
  font-weight: 400;
}
/* Filtre ikonu için sol boşluk — ezilmesin; sticky korunur (position:relative ezilmesin) */
.srs-shell .report-table thead th,
.srs-shell .budget-report .report-table thead th,
.srs-shell .report-grid-scroll > .report-table thead th,
.srs-shell .report-grid-scroll .report-table-sticky thead th,
.srs-shell .report-grid-scroll .report-table.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--report-thead-bg);
  color: var(--report-thead-ink);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: inset 0 -1px 0 var(--report-thead-shadow);
  padding: 0.45rem 0.65rem 0.45rem 1.9rem;
}
/* İcmal üst grup satırı: inset/outer gölge dikiş çizgisi yapmasın */
.srs-shell .budget-report .budget-icmal thead tr:first-child th {
  box-shadow: none !important;
}
.srs-shell .budget-report .budget-icmal thead tr:nth-child(2) th {
  box-shadow: 0 1px 0 var(--report-thead-shadow) !important;
  border-top: 0 !important;
}
.srs-shell .col-filter-btn {
  color: var(--report-thead-ink);
}
.srs-shell .col-filter-btn svg path {
  stroke: currentColor;
}
.srs-shell .report-table tbody tr:hover td {
  background: var(--surface-hover);
}
.srs-shell .report-table tr.is-total th,
.srs-shell .report-table tr.is-total td {
  font-weight: 700;
  background: var(--report-total-bg);
  color: var(--report-total-ink);
}
.srs-shell .report-table tbody tr.is-total:hover td {
  background: var(--report-total-bg);
  color: var(--report-total-ink);
}
.srs-shell .report-sheet-footer {
  background: var(--report-footer-bg);
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  border-top: 1px solid var(--report-thead-shadow);
}
.srs-shell .srs-filter-form label,
.srs-shell .srs-check-row,
.srs-shell .srs-field-check,
.srs-shell .srs-filter-list-label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-primary);
}
.srs-shell .srs-check-listview {
  border: 1px solid var(--srs-list-border);
  border-radius: var(--radius-sm, 6px);
  background: var(--srs-list-bg);
}
.srs-shell .srs-check-listview-table {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-primary);
}
.srs-shell .srs-check-listview-table th,
.srs-shell .srs-check-listview-table td {
  border-bottom: 1px solid var(--srs-list-cell-border);
  border-right: 0;
  padding: 0.35rem 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Radio/checkbox hücresi: ellipsis ".." üretmesin */
.srs-shell .srs-check-listview-check {
  width: 2rem;
  min-width: 2rem;
  max-width: 2rem;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  text-align: center;
  padding-left: 0.35rem;
  padding-right: 0.2rem;
}
.srs-shell .srs-check-listview-check::before,
.srs-shell .srs-check-listview-check::after,
.srs-shell .srs-check-listview-table label::before {
  content: none !important;
}
.srs-shell .srs-check-listview-check input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  vertical-align: middle;
}
.srs-shell .srs-check-listview-table thead th {
  background: var(--srs-list-head-bg);
  font-weight: 600;
  font-size: 0.75rem;
}
.srs-shell .srs-panel-apply,
.srs-shell .srs-fields-apply {
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: var(--radius-sm, 6px);
  min-height: 28px;
}
.srs-shell .srs-stack-splitter {
  background: var(--srs-splitter);
}
.srs-shell .budget-report .report-table tr.is-group td {
  background: var(--report-group-bg);
  color: var(--report-thead-ink);
  font-weight: 600;
}
.srs-shell .budget-report .num-pos,
.srs-shell .budget-report .num-neg {
  font-weight: 600;
}

/* Kod formu — yalnız frame full; alan ölçüleri sabit */
.code-form-shell { max-width: none; width: 100%; }
.code-form-frame { width: 100%; box-sizing: border-box; }
.code-field-row--section {
  align-items: baseline !important;
  margin-top: 0.35rem;
}
.code-field-hint {
  font-size: 0.78rem;
  font-weight: 500;
}
.code-field-row {
  grid-template-columns: 7.75rem 24rem !important;
  border: 0 !important;
}
.code-field-row input:not([type="radio"]):not([type="checkbox"]) {
  width: 24rem !important;
  max-width: 100%;
  font-size: 0.82rem !important;
}
.code-field-row input.hesap-num {
  width: 3.4rem !important;
  min-width: 3.4rem !important;
  max-width: 3.4rem !important;
}
.code-field-row input.hesap-num--dec {
  width: 4.25rem !important;
  min-width: 4.25rem !important;
  max-width: 4.25rem !important;
}
.code-field-row input.is-readonly,
.code-field-row input[readonly],
.code-field-row input[disabled] {
  background: var(--surface-muted, #f1f5f9) !important;
  color: var(--ink-secondary) !important;
  cursor: default !important;
  pointer-events: none;
}
.code-field-row .code-radio input[type="radio"] {
  width: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
}
.code-field-row select {
  width: 24rem !important;
  max-width: 100%;
  font-size: 0.82rem !important;
}

/* Durum Kodları — uzun etiket + Yüzde aynı satırda */
.durum-kodu-form .code-field-row {
  grid-template-columns: 14.5rem 24rem !important;
}
.durum-kodu-form .code-field-row--durum-yuzde {
  grid-template-columns: 14.5rem minmax(16rem, max-content) !important;
  align-items: center !important;
}
.durum-yuzde-controls {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.durum-yuzde-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-primary, #0f172a);
}
.durum-yuzde-box {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 2rem;
  padding: 0 0.35rem 0 0.4rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 6px;
  background: var(--surface-panel, #fff);
  box-sizing: border-box;
}
.durum-yuzde-affix {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted, #6b7280);
  line-height: 1;
}
/* TR locale 100,00 → number input boş kalıyordu; değer artık tamsayı.
   Genel .code-field-row input { width:24rem } kuralını burada ez. */
.durum-kodu-form .code-field-row .durum-yuzde-box input[type="number"] {
  width: 3.6rem !important;
  min-width: 3.6rem !important;
  max-width: 3.6rem !important;
  margin: 0 !important;
  padding: 0.25rem 0.2rem !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-align: left;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.durum-kodu-form .code-field-row .durum-yuzde-box input[type="number"]::-webkit-outer-spin-button,
.durum-kodu-form .code-field-row .durum-yuzde-box input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.durum-kodu-form .durum-yuzde-inline.is-disabled {
  opacity: 0.55;
}
.durum-kodu-form .durum-yuzde-inline.is-disabled .durum-yuzde-box {
  background: var(--surface-muted, #f1f5f9) !important;
}
.durum-kodu-form .durum-yuzde-inline.is-disabled input[type="number"] {
  color: var(--ink-secondary, #64748b) !important;
  cursor: default !important;
}
.durum-inactive-heading td {
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted, #6b7280);
  background: var(--surface-soft, #f3f4f6);
  border-top: 1px solid var(--line, #e5e7eb);
}
.report-table tr.is-inactive-code td {
  color: var(--ink-muted, #6b7280);
}

/* Hesap Grubu liste — para kolonları */
.report-table td.is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Tutarsız veri kriterleri — sol alanlar + sağ kullanıcı paneli */
.kriter-form-meta {
  display: grid;
  grid-template-columns: minmax(0, 32.5rem) minmax(16rem, 1fr);
  grid-template-rows: repeat(4, auto) auto minmax(7.5rem, auto);
  column-gap: 1.5rem;
  row-gap: 0.55rem;
  align-items: start;
  margin: 0 0 0.75rem;
}
.kriter-meta-kod { grid-column: 1; grid-row: 1; }
.kriter-meta-tr { grid-column: 1; grid-row: 2; }
.kriter-meta-en { grid-column: 1; grid-row: 3; }
.kriter-meta-ru { grid-column: 1; grid-row: 4; }
.kriter-meta-aktif { grid-column: 1; grid-row: 5; }
.kriter-users-panel {
  grid-column: 2;
  grid-row: 5 / -1;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.7rem 0.65rem;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: var(--surface-subtle, rgba(15, 23, 42, 0.02));
  box-sizing: border-box;
  max-height: 13.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kriter-users-legend {
  padding: 0;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary, #0f172a);
}
.kriter-users-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}
.kriter-users-pick {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  flex: 1 1 auto;
}
.kriter-users-search {
  position: relative;
}
.kriter-users-q {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--input-line, var(--line, #cbd5e1));
  border-radius: 6px;
  background: var(--surface-panel, #fff);
  color: var(--ink-primary, #0f172a);
}
.kriter-users-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  max-height: 9rem;
  overflow: auto;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 6px;
  background: var(--surface-panel, #fff);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.kriter-users-suggest li {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink-primary, #0f172a);
}
.kriter-users-suggest li:hover,
.kriter-users-suggest li:focus {
  background: var(--surface-hover, rgba(37, 99, 235, 0.08));
}
.kriter-users-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 6.5rem;
  min-height: 0;
  flex: 1 1 auto;
}
.kriter-users-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.15rem;
  border-bottom: 1px solid var(--line, #eef2f7);
  font-size: 0.8rem;
}
.kriter-users-list li:last-child {
  border-bottom: 0;
}
.kriter-users-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-primary, #0f172a);
}
.kriter-users-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--danger, #b91c1c);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.kriter-users-remove:hover {
  background: rgba(185, 28, 28, 0.08);
}
.kriter-users-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .kriter-form-meta {
    grid-template-columns: 1fr;
  }
  .kriter-users-panel {
    grid-column: 1;
    grid-row: auto;
    max-height: none;
  }
}

/* Tutarsız veri kriterleri — SQL alanı */
.code-field-row--sql {
  align-items: flex-start;
}
.code-field-row--sql .code-field-label {
  padding-top: 0.45rem;
}
.kriter-sql {
  width: 24rem;
  max-width: min(42rem, 100%);
  min-height: 12rem;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  border: 1px solid var(--input-line, var(--line, #cbd5e1));
  border-radius: 6px;
  background: var(--surface-panel, #fff);
  color: var(--ink-primary, #0f172a);
  resize: vertical;
}
.kriter-sql-hint {
  margin: -0.15rem 0 0.55rem calc(7.75rem + 0.65rem);
  max-width: 42rem;
  font-size: 0.78rem;
  color: var(--ink-muted, #64748b);
  line-height: 1.35;
}
.code-field-static {
  font-size: 0.86rem;
  color: var(--ink-secondary, #64748b);
  padding: 0.35rem 0;
}

/* Hesap Grubu — 3 kolon × 4 satır; nazik frame */
.hesap-triple {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  grid-template-rows: repeat(4, minmax(1.85rem, auto));
  align-items: center;
  justify-content: start;
  column-gap: 1.75rem;
  row-gap: 0.45rem;
  margin: 0.45rem 0 0.75rem;
  padding: 0.85rem 1.05rem;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 8px;
  background: var(--surface-sunken, #f4f4f5);
}
.hesap-cell.hesap-c1.r1 { grid-column: 1; grid-row: 1; }
.hesap-cell.hesap-c1.r2 { grid-column: 1; grid-row: 2; }
.hesap-cell.hesap-c1.r3 { grid-column: 1; grid-row: 3; }
.hesap-cell.hesap-c1.r4 { grid-column: 1; grid-row: 4; }
.hesap-cell.hesap-c2.r1 { grid-column: 2; grid-row: 1; }
.hesap-cell.hesap-c2.r2 { grid-column: 2; grid-row: 2; }
.hesap-cell.hesap-c2.r3 { grid-column: 2; grid-row: 3; }
.hesap-cell.hesap-c2.r4 { grid-column: 2; grid-row: 4; }
.hesap-cell.hesap-c3.r1 { grid-column: 3; grid-row: 1; }
.hesap-cell.hesap-c3.r2 { grid-column: 3; grid-row: 2; }
.hesap-cell.hesap-c3.r3 { grid-column: 3; grid-row: 3; }
.hesap-cell.hesap-c3.r4 { grid-column: 3; grid-row: 4; }
.hesap-cell--indent {
  padding-left: 1.4rem;
  box-sizing: border-box;
}
.hesap-flag-check,
.hesap-flag-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-primary, #0f172a);
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
}
.hesap-flag-check input[type="checkbox"],
.hesap-flag-radio input[type="radio"] {
  width: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  height: 1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #2563eb;
  cursor: pointer;
}
.hesap-flag-line,
.hesap-grid-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.8rem;
}
.hesap-flag-caption,
.hesap-side-label {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-primary, #0f172a);
  white-space: nowrap;
}
.hesap-flag-caption {
  width: 5.1rem;
  flex: 0 0 5.1rem;
  text-align: right;
}
.hesap-side-label {
  width: 6.6rem;
  flex: 0 0 6.6rem;
  text-align: left;
}
.hesap-triple .code-radio-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}
.hesap-triple .code-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.hesap-triple .code-radio input[type="radio"] {
  width: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  height: 1rem;
  margin: 0;
  accent-color: #2563eb;
}
.hesap-num {
  width: 3.4rem !important;
  min-width: 3.4rem !important;
  max-width: 3.4rem !important;
  height: 1.8rem;
  box-sizing: border-box;
  padding: 0.15rem 0.3rem !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  text-align: right;
  border: 1px solid var(--input-line, var(--line, #cbd5e1));
  border-radius: 5px;
  background: #fff;
  color: var(--ink-primary, #0f172a);
}
.hesap-money {
  width: 6.5rem !important;
  min-width: 6.5rem !important;
  max-width: 6.5rem !important;
  height: 1.8rem;
  box-sizing: border-box;
  padding: 0.15rem 0.4rem !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  text-align: right;
  border: 1px solid var(--input-line, var(--line, #cbd5e1));
  border-radius: 5px;
  background: #fff;
  color: var(--ink-primary, #0f172a);
}
.hesap-num--dec {
  width: 4.25rem !important;
  min-width: 4.25rem !important;
  max-width: 4.25rem !important;
}
.hesap-select {
  width: 8.5rem !important;
  min-width: 8.5rem !important;
  max-width: 8.5rem !important;
  height: 1.8rem;
  box-sizing: border-box;
  padding: 0.1rem 0.3rem !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  border: 1px solid var(--input-line, var(--line, #cbd5e1));
  border-radius: 5px;
  background: #fff;
  color: var(--ink-primary, #0f172a);
}
.hesap-unit {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-primary, #0f172a);
  white-space: nowrap;
}
.hesap-unit.is-muted {
  color: var(--ink-secondary, #94a3b8);
}
.hesap-triple input:disabled,
.hesap-triple select:disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: default !important;
  opacity: 1;
}
.hesap-flag-radio input:disabled + span,
.hesap-flag-check input:disabled + span {
  color: #94a3b8;
}
@media (max-width: 1100px) {
  .hesap-triple {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    width: 100%;
    max-width: none;
  }
  .hesap-triple .hesap-cell {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .hesap-cell--indent {
    padding-left: 1.4rem;
  }
}
.code-form-actions {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: calc(7.75rem + 0.65rem + 24rem);
  max-width: 100%;
}
.code-form-actions-right { margin-left: auto; }
.code-form-shell .code-form-btn {
  width: 5.75rem !important;
  min-width: 5.75rem !important;
  max-width: 5.75rem !important;
  height: 2rem !important;
  padding: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  box-sizing: border-box;
}
.code-form-shell .code-form-btn.code-form-btn--wide {
  width: auto !important;
  min-width: 9.5rem !important;
  max-width: none !important;
  padding: 0 0.75rem !important;
}
.code-form-actions-left {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.code-rekey-card.share-modal-card {
  width: min(640px, 96vw) !important;
  max-width: 96vw !important;
  min-width: min(560px, 96vw);
}
.code-rekey-form .code-field-row {
  display: grid;
  grid-template-columns: 11.5rem minmax(16rem, 1fr);
  gap: 0.65rem;
  align-items: center;
  margin: 0.5rem 0;
}
.code-rekey-form .code-field-label {
  white-space: normal;
  line-height: 1.25;
}
.code-rekey-form .code-field-row input,
.code-rekey-form .code-field-row select {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.82rem;
}
.code-rekey-sep {
  border: 0;
  border-top: 1px solid var(--border, #d0d7de);
  margin: 0.85rem 0;
}
.code-rekey-hint {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-secondary, #64748b);
  min-height: 2.4em;
}
.code-rekey-hint--warn {
  color: #b91c1c !important;
  font-weight: 600;
}

/* —— Admin impersonate banner (kaçınılmaz üst şerit) —— */
.impersonate-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  background: #b45309;
  color: #fffbeb;
  border-bottom: 3px solid #78350f;
  box-shadow: 0 4px 14px rgba(120, 53, 15, 0.35);
}
.impersonate-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  text-align: center;
}
.impersonate-banner-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.impersonate-banner-text strong {
  font-weight: 800;
  color: #ffffff;
}
.impersonate-banner-form {
  margin: 0;
  display: inline-flex;
}
.impersonate-banner-btn {
  appearance: none;
  border: 2px solid #fffbeb;
  background: #78350f;
  color: #fffbeb;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 0.35rem;
  cursor: pointer;
  line-height: 1.2;
}
.impersonate-banner-btn:hover,
.impersonate-banner-btn:focus-visible {
  background: #451a03;
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}
.btn-impersonate {
  border-color: #b45309;
  color: #92400e;
  background: #fffbeb;
}
.btn-impersonate:hover:not(:disabled) {
  background: #fef3c7;
  border-color: #92400e;
  color: #78350f;
  text-decoration: none;
}
@media print {
  .impersonate-banner {
    display: none !important;
  }
}

/* —— Personel arama (liste + kart ortak boyut/yer) —— */
.srs-toolbar-search {
  position: relative;
  flex: 1 1 22rem;
  max-width: 28rem;
  min-width: 12rem;
  margin-left: 0.35rem;
  margin-right: auto;
  z-index: 35;
}
.srs-toolbar-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 32px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 0.35rem;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
}
.srs-toolbar-search-results {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 0.35rem;
  background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.srs-toolbar-search-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  font-size: 0.85rem;
}
.srs-toolbar-search-item:hover,
.srs-toolbar-search-item:focus-visible,
.srs-toolbar-search-item.is-active {
  background: var(--accent-soft, #e0f2fe);
  outline: none;
}
/* —— Personel listesi tutarlılık bayrağı —— */
.personel-integrity-col {
  width: 1.75rem;
  min-width: 1.75rem;
  max-width: 2rem;
  text-align: center;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}
.personel-integrity-th {
  display: inline-block;
  width: 0.55rem;
  color: transparent;
  user-select: none;
}
.personel-integrity-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  vertical-align: middle;
  box-sizing: border-box;
}
.personel-integrity-dot.is-ok {
  background: transparent;
  border: 1.5px solid var(--line, #cbd5e1);
  opacity: 0.55;
}
.personel-integrity-dot.is-issue {
  background: #b91c1c;
  border: 1.5px solid #991b1b;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}
tr.is-integrity-issue td.personel-integrity-col {
  background: rgba(185, 28, 28, 0.04);
}
.code-field-row.is-integrity-warn .code-field-label {
  color: #b91c1c;
}
.code-field-row input.is-integrity-warn,
.personel-kart-vardiya.is-integrity-warn {
  border-color: #b91c1c !important;
  background: #fef2f2 !important;
  color: #7f1d1d !important;
}

/* —— Personel İşlemleri kart (code-form) —— */
.personel-kart-column {
  width: 100%;
  max-width: 56rem;
  margin: 0;
  box-sizing: border-box;
  overflow: visible;
}
.personel-kart-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 20;
}
.personel-kart-nav-left {
  flex: 0 0 auto;
}
.personel-kart-nav-right {
  flex: 0 0 auto;
  margin-left: auto;
}
/* Kartta da aynı .srs-toolbar-search boyutu (max 28rem) */
.personel-kart-nav .srs-toolbar-search {
  margin-left: 0;
}
.personel-kart-frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.personel-kart-frame--identity {
  margin-bottom: 0;
}
.personel-kart-frame--tab {
  margin-top: 0;
}
.personel-kart-frame--identity .code-form-frame-title {
  margin-bottom: 0.85rem;
}
.personel-kart-identity {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.85rem 1.75rem;
  margin: 0;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
.personel-kart-identity-left,
.personel-kart-identity-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
/* Genel .code-field-row { 7.75rem 24rem } ve input { width:24rem } ezilir */
.personel-kart-identity .code-field-row {
  grid-template-columns: 7.5rem minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.personel-kart-identity .code-field-label {
  white-space: normal;
  line-height: 1.2;
}
.personel-kart-identity .code-field-row input:not([type="radio"]):not([type="checkbox"]),
.personel-kart-identity .code-field-row select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.personel-kart-name-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.personel-kart-name-pair input:not([type="radio"]):not([type="checkbox"]) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.personel-kart-identity .personel-kart-pid {
  width: 7rem !important;
  max-width: 7rem !important;
}
.personel-kart-split-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .personel-kart-identity {
    grid-template-columns: 1fr;
  }
}
.personel-kart-kod {
  /* 015PLM001 / 15.02.2023 sığsın; satırlar aynı hizada */
  width: 7.35rem !important;
  min-width: 7.35rem !important;
  max-width: 7.35rem !important;
  flex: 0 0 auto !important;
  text-align: left !important;
  padding-left: 0.4rem !important;
  padding-right: 0.35rem !important;
  box-sizing: border-box !important;
}
.personel-kart-flex {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
.personel-kart-calisma .code-field-row {
  /* etiket ↔ kod arası boşluğu sıkılaştır → sola yanaş */
  grid-template-columns: 7.85rem minmax(0, 1fr) !important;
  gap: 0.35rem !important;
}
.personel-kart-calisma .personel-kart-split-fields {
  gap: 0.35rem;
}
.personel-kart-hire-row {
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}
.personel-kart-hire-row .personel-kart-kod {
  width: 7.35rem !important;
  min-width: 7.35rem !important;
  max-width: 7.35rem !important;
}
.personel-kart-status {
  width: 6.25rem !important;
  min-width: 5.5rem !important;
  max-width: 7rem !important;
  flex: 0 0 auto !important;
  text-align: left !important;
  padding-left: 0.4rem !important;
}
.personel-kart-exit-reason {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
.code-form-shell .personel-kart-form-btn.code-form-btn {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 0.55rem !important;
  flex: 0 0 auto !important;
  white-space: nowrap;
  font-size: 0.74rem !important;
}
@media (max-width: 720px) {
  .personel-kart-hire-row {
    flex-wrap: wrap;
  }
}
.personel-kart-gender {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 2rem;
}
.personel-kart-gender .code-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.personel-kart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0;
  padding: 0;
  border: 0;
}
.personel-kart-tab {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.95rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: var(--btn-surface, #fff);
  color: var(--ink-secondary, #475569);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.personel-kart-tab:hover {
  text-decoration: none;
  background: var(--btn-surface-hover, #eef3f5);
}
.personel-kart-tab.is-active {
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: #fff;
}
.personel-kart-vardiya {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--line, #cbd5e1);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  background: #fff;
  color: inherit;
}
.personel-kart-vardiya.is-clickable {
  cursor: pointer;
}
.personel-kart-vardiya:disabled {
  opacity: 1;
  cursor: default;
}
.personel-kart-vardiya.is-gece {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.personel-kart-vardiya.is-gunduz {
  background: #fff;
  color: #0f172a;
}
.personel-kart-edit-panel {
  margin: -0.25rem 0 0.65rem 8.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: var(--surface-muted, #f8fafc);
}
.atama-panel-modal .atama-panel-card {
  width: min(560px, 96vw);
  max-height: min(88vh, 720px);
  overflow: auto;
}
.atama-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}
.atama-panel-head h2 {
  margin: 0;
}
.atama-panel-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-muted, #64748b);
  padding: 0.1rem 0.35rem;
}
.atama-panel-note {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}
.atama-panel-note.is-error {
  color: #b91c1c;
}
.atama-acc {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  margin: 0 0 0.55rem;
  background: var(--surface-muted, #f8fafc);
  overflow: hidden;
}
.atama-acc.is-focus {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.atama-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.atama-acc-chevron {
  color: var(--ink-muted, #64748b);
  transition: transform 0.15s ease;
}
.atama-acc:not(.is-open) .atama-acc-chevron {
  transform: rotate(-90deg);
}
.atama-acc:not(.is-open) .atama-acc-body {
  display: none;
}
.atama-acc-body {
  padding: 0 0.65rem 0.65rem;
}
.atama-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 6px;
  overflow: hidden;
}
.atama-hist-table th,
.atama-hist-table td {
  padding: 0.28rem 0.4rem;
  border-bottom: 1px solid var(--line, #eef2f7);
  text-align: left;
  vertical-align: middle;
}
.atama-hist-table th {
  font-weight: 650;
  background: var(--surface-muted, #f1f5f9);
  color: var(--ink-muted, #475569);
}
.atama-hist-table tr.is-last td {
  font-weight: 600;
}
.atama-hist-actions {
  width: 2rem;
  text-align: right;
}
.atama-hist-del {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}
.atama-hist-del:hover {
  background: #fee2e2;
}
.atama-acc-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.atama-acc-form input[type="date"],
.atama-acc-form input[type="text"] {
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
  background: #fff;
}
.atama-acc-form input[type="text"] {
  min-width: 8rem;
  flex: 1 1 8rem;
}
.atama-acc-form .personel-kart-vardiya {
  min-width: 4.5rem;
  cursor: pointer;
}
.atama-panel-footer {
  margin-top: 0.35rem;
}
.puantaj-atama-open {
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.2;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 4px;
  background: #fff;
  color: var(--accent, #2563eb);
  cursor: pointer;
  vertical-align: middle;
}
.puantaj-atama-open:hover {
  border-color: var(--accent, #2563eb);
  background: #eff6ff;
}
.code-form-btn--outline {
  background: #fff !important;
  border: 1.5px solid var(--accent, #2563eb) !important;
  color: var(--accent, #2563eb) !important;
}
.code-form-btn--outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.personel-kart-footer {
  margin-top: 1.25rem;
}
.personel-kart-timeline {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pk-tl-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border-left: 3px solid var(--accent, #2563eb);
  background: var(--surface-muted, #f8fafc);
  border-radius: 0 0.3rem 0.3rem 0;
}
.pk-tl-date { font-weight: 600; font-size: 0.85rem; }
.pk-tl-title { font-weight: 600; }
.pk-tl-detail {
  grid-column: 2;
  color: var(--ink-muted, #64748b);
  font-size: 0.85rem;
}
.personel-kart-month { margin: 0.5rem 0; }
.personel-kart-puantaj-wrap { margin-top: 0.5rem; max-height: 28rem; }
.personel-kart-puantaj .pk-puantaj-val {
  width: 4.5rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 0.25rem;
  font: inherit;
}
.personel-kart-puantaj tr.is-readonly { opacity: 0.75; }
.personel-kart-limited { margin: 0.5rem 0 0 8.5rem; font-size: 0.82rem; }
.srs-toolbar-search-input::placeholder {
  color: var(--ink-muted, #94a3b8);
  opacity: 1;
}
a.puantaj-personel-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.puantaj-personel-link:hover {
  color: var(--accent, #2563eb);
}

/* Konaklama — kamp oda satırları (kodlama formu) */
.konaklama-oda-block {
  margin: 0.35rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 34rem;
}
.konaklama-oda-head,
.konaklama-oda-row,
.konaklama-oda-foot {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) 6.5rem 6.5rem 2.25rem;
  gap: 0.45rem;
  align-items: center;
}
.konaklama-oda-head .code-field-label {
  margin: 0;
}
.konaklama-oda-row input[type="hidden"] {
  display: none;
}
.konaklama-oda-row input:not([type="hidden"]) {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--input-line, var(--line, #cbd5e1));
  border-radius: 6px;
}
.konaklama-oda-foot {
  margin-top: 0.35rem;
  align-items: start;
}
.konaklama-total {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
}
.konaklama-total .code-field-label {
  margin: 0;
}
.konaklama-total strong {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary, #0f172a);
  line-height: 1.2;
}
.konaklama-oda-foot .code-form-btn--add {
  justify-self: start;
}

/* —— Konaklama İşlemleri modal —— */
.konak-ops-modal-card {
  width: min(28rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
.konak-ops-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.konak-ops-field {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  margin: 0;
}
.konak-ops-label {
  padding-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}
.konak-ops-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--input-line, var(--line));
  border-radius: 6px;
  background: var(--surface-panel, #fff);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.82rem;
}
.konak-ops-input.is-readonly {
  background: var(--surface-sunken, #f4f4f5);
  color: var(--ink-secondary);
}
.konak-ops-search {
  position: relative;
  min-width: 0;
}
.konak-ops-search-results {
  left: 0;
  right: 0;
  z-index: 90;
}
.konak-ops-actions {
  width: 100% !important;
  max-width: 100%;
}
.konak-ops-modal-card .code-form-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 5.75rem !important;
  min-width: 5.75rem !important;
  max-width: 5.75rem !important;
  height: 2rem !important;
  padding: 0 !important;
  border-radius: 7px;
  border: 1px solid transparent;
  font: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.konak-ops-modal-card .code-form-btn--primary {
  background: var(--accent) !important;
  color: var(--accent-ink, #fff) !important;
  border-color: var(--accent) !important;
  width: auto !important;
  min-width: 5.75rem !important;
  max-width: none !important;
  padding: 0 0.85rem !important;
}
.konak-ops-modal-card .code-form-btn--ghost {
  background: var(--btn-surface, #fff) !important;
  color: var(--ink-primary) !important;
  border-color: var(--line) !important;
}
.konak-ops-modal-card .code-form-btn--danger {
  background: var(--danger-soft, #fef2f2) !important;
  color: var(--danger, #b91c1c) !important;
  border-color: var(--danger, #b91c1c) !important;
}

/* —— Kamp oda çerçeveleri —— */
.konak-kamp-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 0.85rem 1rem;
  box-sizing: border-box;
}
.konak-oda-frame {
  border: 1px solid var(--line, #d4d4d8);
  border-radius: 8px;
  background: var(--surface-panel, #fff);
  overflow: hidden;
}
.konak-oda-frame-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1.1rem;
  padding: 0.55rem 0.75rem;
  background: var(--srs-tool-title-bg, var(--report-thead-bg, #eef2f7));
  border-bottom: 1px solid var(--line, #d4d4d8);
  font-size: 0.82rem;
}
.konak-oda-frame-head strong {
  font-weight: 700;
  color: var(--ink-primary, #0f172a);
}
.konak-oda-table {
  margin: 0;
}
.konak-oda-table thead th {
  position: sticky;
  top: 0;
}
.konak-bed-empty td {
  cursor: pointer;
  font-style: italic;
}
.konak-bed-empty:hover td {
  background: var(--accent-soft, rgba(37, 99, 235, 0.06));
}
.konak-move-btn {
  white-space: nowrap;
}
