﻿:root {
  --bg: #fdf1f1;
  --panel: #ffffff;
  --text: #0c1a2e;
  --muted: #5e718d;
  --ok: #0f9f5f;
  --ok-soft: #e8f8ee;
  --err: #d92d2d;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(90, 8, 8, 0.1);
  --shadow-strong: 0 22px 52px rgba(104, 5, 5, 0.18);

  /* Tema renkleri (JS ile değiştirilebilir) */
  --accent-rgb: 220, 38, 38;
  --accent-bright-rgb: 248, 113, 113;
  --accent-25: #fff7f7;
  --accent-50: #fef2f2;
  --accent-75: #fff5f5;
  --accent-100: #fee2e2;
  --accent-200: #fecaca;
  --accent-300: #fca5a5;
  --accent-400: #f87171;
  --accent-500: #ef4444;
  --accent-600: #dc2626;
  --accent-700: #b91c1c;
  --accent-800: #991b1b;
  --accent-900: #7f1d1d;
  --accent-950: #5e0a0a;
  --accent-975: #2f0505;

  --border: var(--accent-200);
  --accent: var(--accent-600);
  --accent-dark: var(--accent-700);
  --accent-bright: var(--accent-400);
  --accent-soft: var(--accent-100);
  --accent-soft-2: var(--accent-200);
  --accent-ring: rgba(var(--accent-rgb), 0.18);
  --gradient-primary: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 45%, var(--accent-700) 100%);
  --gradient-primary-hover: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-500) 45%, var(--accent-600) 100%);
  --gradient-soft: linear-gradient(135deg, var(--accent-50) 0%, var(--accent-100) 100%);
  --gradient-panel: linear-gradient(180deg, #ffffff 0%, var(--accent-25) 100%);
  --topbar: linear-gradient(115deg, var(--accent-975) 0%, var(--accent-950) 52%, var(--accent-700) 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1050px 520px at 88% -12%, rgba(var(--accent-bright-rgb), 0.24), transparent 62%),
    radial-gradient(820px 480px at 0% 6%, rgba(var(--accent-rgb), 0.14), transparent 58%),
    linear-gradient(180deg, #f3f9ff 0%, var(--bg) 48%, #e2effd 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  display: flex;
  flex-direction: column;
}

/* ---------- Açılış ekranı ---------- */

body.giris-ekrani {
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(940px 560px at 10% -8%, rgba(var(--accent-bright-rgb), 0.34), transparent 60%),
    radial-gradient(840px 520px at 108% 108%, rgba(var(--accent-rgb), 0.42), transparent 58%),
    linear-gradient(150deg, #04101f 0%, #082647 52%, #041a33 100%);
}

.login-screen[hidden] {
  display: none;
}

.login-screen.kapaniyor {
  animation: loginKapan 0.2s ease-in forwards;
}

@keyframes loginKapan {
  to {
    opacity: 0;
    transform: scale(1.012);
  }
}

.login-panel {
  position: relative;
  width: min(430px, 100%);
  margin: auto;
  padding: 36px 32px 24px;
  overflow: hidden;
  text-align: center;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  box-shadow:
    0 36px 90px rgba(2, 12, 28, 0.55),
    0 0 0 1px rgba(var(--accent-bright-rgb), 0.16),
    inset 0 1px 0 #fff;
  animation: loginAc 0.28s ease-out;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-400) 0%, var(--accent-600) 55%, var(--accent-700) 100%);
}

@keyframes loginAc {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.login-logo {
  display: block;
  width: min(250px, 80%);
  height: auto;
  margin: 0 auto 14px;
}

.login-kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.login-panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.login-field {
  display: block;
  margin-bottom: 13px;
  text-align: left;
}

.login-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #33445f;
}

.login-field input,
.login-field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--accent-75);
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.login-field select {
  padding-right: 38px;
  cursor: pointer;
}

.login-field select:disabled {
  cursor: progress;
  color: #7d8ba1;
}

.login-field input::placeholder {
  color: #8fa3bd;
}

.login-field input:focus,
.login-field select:focus {
  background: #fff;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.login-hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.login-hint[hidden] {
  display: none;
}

.login-hint.err {
  color: var(--err);
}

.login-ip-hint {
  margin: -7px 0 12px;
}

.login-sdk {
  margin: 4px 0 14px;
  padding: 12px 14px 2px;
  text-align: left;
  background: #f2f8ff;
  border: 1px dashed #f5bcbc;
  border-radius: 12px;
}

.login-sdk[hidden] {
  display: none;
}

.login-sdk-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #3d5b7d;
}

.login-sdk .login-field:last-child {
  margin-bottom: 12px;
}

.login-error {
  margin: 2px 0 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #a61b1b;
  background: #fdecec;
  border: 1px solid #f6c4c4;
  border-radius: 10px;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: var(--gradient-primary);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 14px 28px rgba(var(--accent-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.login-submit:hover {
  background: var(--gradient-primary-hover);
  box-shadow:
    0 18px 34px rgba(var(--accent-rgb), 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: 2px;
}

.login-foot {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #9aa8bd;
}

/* ---------- Şirket seçimi ---------- */

.sirket-panel {
  width: min(600px, 100%);
  padding: 30px 30px 22px;
}

.sirket-panel h2 {
  margin-bottom: 8px;
}

.sirket-desc {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.sirket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(54vh, 420px);
  padding: 2px;
  overflow: auto;
  text-align: left;
}

.sirket-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, var(--accent-25) 0%, #f3f9ff 100%);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease,
    transform 120ms ease;
}

.sirket-card:hover {
  background: #fff;
  border-color: var(--accent-300);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.16);
  transform: translateY(-1px);
}

.sirket-card:active {
  transform: translateY(1px);
}

.sirket-card.secili {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring), 0 8px 20px rgba(var(--accent-rgb), 0.14);
}

.sirket-card:disabled {
  cursor: progress;
  opacity: 0.7;
}

.sirket-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sirket-info {
  flex: 1;
  min-width: 0;
}

.sirket-ad {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sirket-alt {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sirket-sec {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent-dark);
  white-space: nowrap;
}

.sirket-card.secili .sirket-sec::after {
  content: " ✓";
}

.sirket-status {
  margin: 14px 0 0;
  font-size: 12.5px;
  text-align: center;
  color: var(--muted);
}

.sirket-status.err {
  color: var(--err);
}

.sirket-empty {
  padding: 22px 16px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  background: var(--accent-75);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.login-back {
  display: block;
  margin: 16px auto 0;
  padding: 9px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #33445f;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.login-back:hover {
  background: var(--accent-75);
  border-color: #bed6ee;
}

/* ---------- Üst bar ---------- */

.topbar {
  background: var(--topbar);
  color: #eaf3ff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(var(--accent-bright-rgb), 0.22);
  box-shadow: 0 6px 26px rgba(3, 20, 45, 0.32);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 55%, var(--accent-700) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 22px rgba(var(--accent-rgb), 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: 12.5px;
  color: #a9bcd8;
}

.brand-tagline {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  font-size: 13.5px;
  color: #c6dcf7;
}

.session-part {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.session-part:first-child {
  flex: 0 1 auto;
}

.session-part:last-child {
  flex: 1 1 auto;
  overflow: hidden;
}

.session-part svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--accent-400);
  filter: drop-shadow(0 0 4px rgba(var(--accent-bright-rgb), 0.45));
}

#session-user {
  max-width: 150px;
  overflow: hidden;
  font-weight: 700;
  color: #eaf3ff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#session-company {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  color: #8ddcff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-sep {
  flex: 0 0 auto;
  color: rgba(var(--accent-bright-rgb), 0.55);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.company-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, 72vw);
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(var(--accent-bright-rgb), 0.26);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.company-pill:hover {
  background: rgba(var(--accent-bright-rgb), 0.18);
  border-color: rgba(var(--accent-bright-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-bright-rgb), 0.16);
}

.company-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(var(--accent-bright-rgb), 0.24), 0 0 10px rgba(var(--accent-bright-rgb), 0.7);
}

.company-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.company-switch {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-300);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-200);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(var(--accent-bright-rgb), 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.logout-btn:hover {
  color: #fff1f2;
  background: rgba(239, 68, 68, 0.26);
  border-color: rgba(var(--accent-bright-rgb), 0.65);
}

.logout-btn:active {
  transform: translateY(1px);
}

.logout-btn:disabled {
  cursor: progress;
  opacity: 0.65;
}

.logout-btn svg {
  flex: 0 0 auto;
}

.conn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 999px;
}

.conn .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.conn.ok .dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.conn.err .dot {
  background: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

/* ---------- Yerleşim ---------- */

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.panel {
  background: var(--gradient-panel);
  border: 1px solid #d3e6fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  padding: 22px 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
}

.panel-head h2::before {
  content: "";
  width: 4px;
  height: 17px;
  flex: 0 0 4px;
  border-radius: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(var(--accent-bright-rgb), 0.5);
}

.badge {
  background: var(--gradient-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent-200);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff;
}

/* ---------- Arama ---------- */

.search-row {
  display: flex;
  gap: 10px;
}

#q {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  font-size: 15px;
  color: var(--text);
  background: #f4f9ff;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

#q::placeholder {
  color: #8296b3;
}

#q:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
  background: #fff;
}

#search-btn {
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(var(--accent-rgb), 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

#search-btn:hover {
  background: var(--gradient-primary-hover);
  box-shadow:
    0 14px 30px rgba(var(--accent-rgb), 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

#search-btn:active {
  transform: translateY(0);
}

#search-btn:disabled {
  background: #e5b4b4;
  color: var(--accent-25);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.field-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.field-tag {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #33445f;
  background: var(--accent-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.field-tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent-300);
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.12);
}

.field-tag:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
}

.field-tag.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 6px 16px rgba(var(--accent-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hint {
  margin: 12px 2px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Sonuç ---------- */

.result {
  min-height: 260px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.result-state {
  width: 100%;
  border-radius: 14px;
  border: 1px dashed #c8e0f7;
  background: linear-gradient(180deg, var(--accent-25) 0%, var(--accent-75) 100%);
  padding: 34px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-state[hidden] {
  display: none;
}

.state-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  background: #e8f1fb;
  color: #5e718d;
  margin-bottom: 6px;
}

.state-icon.ok {
  background: var(--accent-100);
  color: var(--accent-dark);
  font-size: 32px;
}

.state-icon.no {
  background: #fdeaea;
  color: var(--err);
}

.state-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #33445f;
}

.state-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
}

.state-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8296b3;
}

/* Bulundu */

.result-state.found {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid #d3e6fa;
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-25) 0%, #f2f9ff 100%);
}

.result-state.found .state-text {
  color: #1b2c44;
  max-width: none;
  font-size: 14px;
}

.result-state.found .state-text strong {
  color: var(--accent-dark);
}

.result-state.found .state-note {
  margin-top: 2px;
}

.group-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 2px;
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--accent-200);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.08);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.group-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent-300);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.16);
}

.group-chip:active {
  transform: translateY(1px);
}

.group-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.24);
}

.group-chip.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 6px 16px rgba(var(--accent-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chip-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.group-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Bulunamadı */

.result-state.notfound {
  border: 1px solid #f3d5d5;
  background: linear-gradient(180deg, var(--accent-25) 0%, #fdf0f0 100%);
}

.result-state.notfound .state-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--err);
}

/* Hata */

.result-state.error {
  border: 1px solid #f3d5d5;
  background: var(--accent-25);
}

.result-state.error .state-title {
  color: var(--err);
}

/* Yükleniyor */

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid var(--accent-200);
  border-top-color: var(--accent);
  animation: don 0.8s linear infinite;
  margin-bottom: 6px;
}

@keyframes don {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Ekstre kartları ---------- */

.report-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.report-list-title {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #5e718d;
}

.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-25) 100%);
  box-shadow: 0 3px 12px rgba(8, 40, 90, 0.04);
}

.report-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}

.report-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #d8efff, #b4e2ff);
  color: var(--accent-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(var(--accent-rgb), 0.14);
}

.report-card-info {
  flex: 1 1 auto;
  min-width: 0;
}

.report-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.report-name-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kisaltilmis {
  cursor: help;
}

.report-code {
  font-size: 11px;
  font-weight: 600;
  color: #33445f;
  background: var(--accent-100);
  border: 1px solid var(--accent-200);
  border-radius: 999px;
  padding: 1px 7px;
}

.report-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.report-unvan {
  margin: 1px 0 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: #5e718d;
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.report-btn.cari {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 7px 18px rgba(var(--accent-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.report-btn.cari:hover {
  background: var(--gradient-primary-hover);
  box-shadow:
    0 10px 22px rgba(var(--accent-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.report-btn.servis {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--accent-200);
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.08);
}

.report-btn.servis:hover {
  background: var(--accent-soft);
  border-color: var(--accent-300);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.16);
  transform: translateY(-1px);
}

.report-btn:active {
  transform: translateY(1px);
}

.report-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
}

.report-btn:disabled {
  background: #eef1f6;
  color: #9aa7b8;
  border-color: #e2e8f2;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- Ekstre penceresi ---------- */

body.modal-acik {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 34, 0.58);
  backdrop-filter: blur(3px);
}

.modal-window {
  position: relative;
  width: min(1040px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(var(--accent-bright-rgb), 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: modalAc 0.2s ease-out;
}

@keyframes modalAc {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid #fbd5d5;
  background: linear-gradient(180deg, var(--accent-25) 0%, #edf6ff 100%);
}

.modal-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.modal-kicker {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #6b7f9c;
}

.modal-head h2 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
}

.modal-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.report-cari-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.report-cari-actions[hidden] {
  display: none !important;
}

.report-mini-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.22);
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}

.report-mini-btn:hover {
  background: var(--gradient-primary-hover);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-1px);
}

.report-mini-btn-alt {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--accent-200);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.08);
}

.report-mini-btn-alt:hover {
  background: var(--accent-soft);
  border-color: var(--accent-300);
}

.report-mini-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.print-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 12px;
  min-height: 39px;
  background: #f4f9ff;
  border: 1px solid var(--accent-200);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #4f6683;
}

.print-format-label {
  white-space: nowrap;
}

.print-format select {
  font: inherit;
  font-weight: 700;
  padding: 8px 8px;
  color: var(--accent-800);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.print-format select:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.5);
  outline-offset: 1px;
}

.modal-actions button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow:
    0 8px 18px rgba(var(--accent-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.modal-actions button:hover {
  background: var(--gradient-primary-hover);
  box-shadow:
    0 12px 24px rgba(var(--accent-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.modal-actions button:active {
  transform: translateY(0);
}

.modal-actions .modal-close {
  background: #faeded;
  color: #33445f;
  box-shadow: inset 0 0 0 1px #dbe8f6;
}

.modal-actions .modal-close:hover {
  background: #f3d9d9;
  box-shadow: inset 0 0 0 1px #f1caca;
  transform: none;
}

.modal-body {
  padding: 20px 24px 26px;
  overflow: auto;
}

/* ---------- Ekstre içeriği ---------- */

.report-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-info-item {
  padding: 9px 12px;
  border: 1px solid #d8eafa;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-25) 0%, #f2f9ff 100%);
}

.report-info-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6b7f9c;
}

.report-info-value {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #1b2c44;
  word-break: break-word;
}

.report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.report-summary-item {
  flex: 1;
  min-width: 160px;
  padding: 11px 14px;
  border: 1px solid #dbe9f8;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-25) 0%, #f3f9ff 100%);
}

.report-summary-item.ok {
  border-color: #bfe9cf;
  background: #f2fdf6;
}

.report-summary-item.warn {
  border-color: #f3d5d5;
  background: var(--accent-75);
}

.report-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #5e718d;
}

.report-summary-value {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.report-summary-item.ok .report-summary-value {
  color: var(--ok);
}

.report-summary-item.warn .report-summary-value {
  color: var(--err);
}

/* Servis ekstresi: fiş listesi ve açılan detaylar */

.report-hint {
  margin: 10px 2px 8px;
  font-size: 11.5px;
  color: #5e718d;
}

.report-table tbody tr.report-fis-row {
  cursor: pointer;
}

.report-fis-row td {
  transition: background 120ms ease;
}

.report-fis-row:hover td,
.report-fis-row:focus-visible td {
  background: var(--accent-50);
}

.report-fis-row:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: -2px;
}

.report-fis-row.acik td {
  background: var(--accent-100);
}

.report-fis-row.acik td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.report-fis-caret {
  display: inline-block;
  width: 12px;
  margin-right: 2px;
  color: #0a5bb5;
  font-size: 10px;
}

.report-fis-detail > td {
  padding: 4px 12px 16px;
  background: var(--accent-25);
  border-bottom: 1px solid var(--border);
}

.report-fis-detail-body {
  padding: 8px 2px 2px;
}

.report-fis-detail-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #33445f;
}

.report-fis-detail .report-scroll {
  background: #fff;
}

.report-service-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
  background: #f7fbff;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.report-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.report-table th,
.report-table td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.report-table thead th {
  background: linear-gradient(180deg, var(--accent-75) 0%, #e9f4ff 100%);
  color: #2b4060;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-table tbody tr:nth-child(even) {
  background: var(--accent-25);
}

.report-table tbody tr:hover {
  background: var(--accent-50);
}

.report-table td.aciklama {
  white-space: normal;
  min-width: 220px;
}

.report-table td.hesap {
  white-space: normal;
  min-width: 170px;
  font-size: 12px;
  color: #40536e;
}

.report-table td.tur {
  white-space: nowrap;
  font-weight: 700;
  font-size: 12px;
}

.report-table td.tur.tahsilat {
  color: #0f5c33;
}

.report-table td.tur.tediye {
  color: #a13a2f;
}

.report-table td.tur.belge {
  color: #0a5bb5;
}

.report-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-table .strong {
  font-weight: 800;
}

.report-table tfoot td {
  background: linear-gradient(180deg, var(--accent-75) 0%, #e9f4ff 100%);
  font-weight: 700;
  border-top: 2px solid var(--accent-200);
  border-bottom: none;
}

.report-table td.empty {
  color: #b4bfd0;
}

.report-note {
  margin: 12px 2px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7f9c;
}

.report-empty {
  max-width: 440px;
  margin: 24px auto;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #f7fbff;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  color: var(--muted);
}

.report-loading .spinner {
  margin-bottom: 0;
}

/* ---------- Detay ---------- */

.detail-panel {
  animation: detayAc 0.22s ease-out;
}

@keyframes detayAc {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.badge-soft {
  background: linear-gradient(180deg, #f6faff 0%, #edf5ff 100%);
  border-color: #dbe8f6;
  color: #33445f;
}

.detail-scroll {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.detail-table th,
.detail-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.detail-table th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--accent-75) 0%, #e9f4ff 100%);
  color: #2b4060;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-table tbody tr:last-child td {
  border-bottom: none;
}

.detail-table tbody tr:nth-child(even) {
  background: var(--accent-25);
}

.detail-table tbody tr:hover {
  background: var(--accent-50);
}

.detail-table td {
  color: #1b2c44;
  white-space: nowrap;
}

.detail-table td.wide {
  white-space: normal;
  min-width: 260px;
  line-height: 1.5;
}

.detail-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.detail-table td.vurgu {
  font-weight: 700;
  color: #0f5c33;
}

.detail-table td.empty {
  color: #b4bfd0;
}

.detail-note {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Alt bilgi ---------- */

.footer {
  padding: 14px 24px 20px;
  text-align: center;
  font-size: 12px;
  color: #6b7f9c;
  word-break: break-all;
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  .login-screen {
    padding: 14px;
  }

  .login-panel {
    padding: 26px 20px 20px;
  }

  .sirket-panel {
    width: 100%;
  }

  .sirket-list {
    max-height: 52vh;
  }

  .company-pill {
    max-width: 100%;
  }

  .company-switch {
    display: none;
  }

  .logout-btn {
    gap: 0;
    padding: 8px;
  }

  .logout-label {
    display: none;
  }

  .topbar {
    padding: 14px 16px;
  }

  .container {
    padding: 18px 14px 30px;
  }

  .panel {
    padding: 18px 16px;
  }

  .search-row {
    flex-direction: column;
  }

  #search-btn {
    padding: 14px 20px;
  }

  .result-state.found {
    padding: 18px 16px;
  }

  .report-card {
    align-items: flex-start;
  }

  .report-actions {
    width: 100%;
  }

  .report-btn {
    flex: 1;
  }

  .modal {
    padding: 10px;
  }

  .modal-window {
    max-height: 94vh;
  }

  .modal-head,
  .modal-body {
    padding: 16px;
  }

  .report-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Cari ekstre: işlem detayı ---------- */

.islem-modal {
  z-index: 90;
}

.islem-window {
  width: min(940px, 100%);
}

.tur-btn {
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(65, 80, 106, 0.55);
  text-underline-offset: 3px;
}

.tur-btn:hover,
.tur-btn:focus-visible {
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}

.tur-btn:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: 2px;
  border-radius: 3px;
}

.islem-bolum {
  margin: 18px 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #33445f;
}

.islem-not {
  margin: 14px 2px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7f9c;
}

.islem-bos {
  margin: 14px 0;
}

/* ---------- Ana menü ---------- */

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fbdada;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(var(--accent-bright-rgb), 0.26);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.menu-btn:hover {
  color: #fff;
  background: rgba(var(--accent-bright-rgb), 0.18);
  border-color: rgba(var(--accent-bright-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-bright-rgb), 0.16);
}

.menu-btn svg {
  flex: 0 0 auto;
}

.mode-panel {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
}

.vx-menu {
  width: 100%;
  /* Geniş ekranda 760px ile sınırlı; pencere kısaldıkça menü küçülerek ekrana sığar. */
  max-width: min(760px, max(520px, calc((100vh - 360px) * 1.33)));
  margin: 0 auto;
}

.vx-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  text-align: center;
  background:
    radial-gradient(120% 170% at 50% -50%, rgba(52, 112, 175, 0.13), transparent 62%),
    linear-gradient(180deg, #f9fcff 0%, #faeded 100%);
  border: 1px solid #dbe7f4;
  border-radius: 22px;
}

.vx-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 74, 118, 0.28), transparent);
}

.vx-title {
  margin: 11px 0 5px;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #142c46;
}

.vx-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #8298ae;
}

.vx-meta[hidden] {
  display: none;
}

.vx-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  margin: 10px 2px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #6d859d;
  text-align: right;
}

.vx-alt span:empty {
  display: none;
}

.vx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vx-grid .vx-tile[hidden],
.vx-dock button[hidden] {
  display: none;
}

.vx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  aspect-ratio: 1 / 0.94;
  min-height: 0;
  padding: 12px 8px;
  overflow: hidden;
  font: inherit;
  color: #fff;
  text-align: center;
  background: linear-gradient(158deg, var(--accent-500) 0%, var(--accent-600) 48%, var(--accent-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow:
    0 10px 22px rgba(127, 29, 29, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.vx-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(254, 202, 202, 0.28), transparent 55%);
  pointer-events: none;
}

.vx-tile:hover {
  filter: brightness(1.06);
  box-shadow:
    0 16px 30px rgba(127, 29, 29, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.vx-tile:active {
  transform: translateY(-1px);
}

.vx-tile:focus-visible {
  outline: 3px solid rgba(56, 140, 225, 0.45);
  outline-offset: 3px;
}

.vx-grid .vx-tile[draggable="true"] {
  cursor: grab;
}

.vx-grid .vx-tile.surukleniyor,
.vx-grid .vx-tile.surukleniyor:hover {
  opacity: 0.45;
  cursor: grabbing;
  transform: scale(0.97);
  box-shadow: none;
}

.vx-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.vx-icon svg {
  width: 100%;
  height: 100%;
  color: var(--accent-100);
  filter: drop-shadow(0 2px 6px rgba(2, 16, 32, 0.35));
}

.vx-label {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1px;
  color: #f4f9ff;
}

/* Sağ alttaki açık renkli bilgi kartı (referanstaki hava durumu kutusu) */
.vx-weather {
  color: #17395f;
  background: linear-gradient(160deg, #eaf2ff 0%, #c8dbf7 52%, #a9c4ea 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 22px rgba(9, 33, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  cursor: default;
}

.vx-weather::before {
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, 0.8), transparent 60%);
}

.vx-weather-icon {
  width: 24px;
  height: 24px;
}

.vx-weather-icon svg {
  color: #2a527d;
  filter: none;
}

.vx-time {
  position: relative;
  font-size: clamp(21px, 2.9vw, 27px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: #16375c;
  font-variant-numeric: tabular-nums;
}

.vx-weather .vx-label {
  font-size: 10.5px;
  color: #2f547d;
}

.vx-sub {
  position: relative;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4b6c92;
}

/* Kilitli yetkilendirme kutucuğu */
.vx-tile-yetki {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  aspect-ratio: auto;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(135deg, var(--accent-900) 0%, var(--accent-700) 100%);
}

.vx-tile-yetki .vx-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.vx-tile-yetki .vx-label {
  font-size: 13px;
}

.vx-tile-yetki .vx-sub {
  margin-left: auto;
  color: var(--accent-200);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.vx-tile-yetki.acik {
  background: linear-gradient(135deg, #0b3b2f 0%, #147553 100%);
}

.vx-tile-yetki.acik .vx-sub {
  color: #b9f4dc;
}

.vx-dock {
  position: sticky;
  bottom: 12px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 6px;
  background: linear-gradient(135deg, #2a0a0a 0%, #4a1212 100%);
  border: 1px solid rgba(var(--accent-bright-rgb), 0.28);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(38, 3, 3, 0.38);
}

.vx-dock button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-200);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.vx-dock button:first-child {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 10px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--accent-100);
}

.vx-dock button:hover {
  color: #fff;
  background: rgba(var(--accent-bright-rgb), 0.22);
}

.vx-dock button:focus-visible {
  outline: 2px solid rgba(252, 165, 165, 0.7);
  outline-offset: 1px;
}

.vx-dock svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

@media (max-width: 720px) {
  .vx-dock button {
    padding: 9px 11px;
  }

  .vx-dock button:not(:first-child) span {
    display: none;
  }
}

/* Menü bilgi penceresi */
.menu-window {
  width: min(640px, 100%);
}

.menu-window .modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Yetkilendirme penceresi */
.yetki-form,
.yetki-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yetki-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2f4d6b;
}

.yetki-field input,
.yetki-toolbar input,
.yetki-toolbar select {
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  color: #14314f;
  background: #fff;
  border: 1px solid var(--accent-200);
  border-radius: 10px;
}

.yetki-toolbar select {
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.yetki-field input:focus,
.yetki-toolbar input:focus,
.yetki-toolbar select:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 0;
  border-color: var(--accent);
}

.yetki-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5d738b;
}

.yetki-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #5d738b;
}

.yetki-status.hata {
  font-weight: 700;
  color: var(--err);
}

.yetki-status.ok {
  font-weight: 700;
  color: #15803d;
}

.yetki-primary,
.yetki-secondary {
  align-self: flex-start;
  padding: 9px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.yetki-primary {
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.26);
}

.yetki-primary:hover {
  background: var(--gradient-primary-hover);
}

.yetki-primary:disabled {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}

.yetki-secondary {
  color: #31557d;
  background: #fff;
  border: 1px solid var(--accent-200);
}

.yetki-secondary:hover {
  background: #f5fbff;
  border-color: var(--accent-300);
}

.yetki-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: #f4f9ff;
  border: 1px solid #f8dcdc;
  border-radius: 12px;
}

.yetki-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 180px;
  font-size: 11.5px;
  font-weight: 700;
  color: #355274;
}

.yetki-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yetki-kullanici {
  padding: 12px;
  background: var(--accent-25);
  border: 1px solid #f8dcdc;
  border-radius: 12px;
}

.yetki-kullanici[hidden] {
  display: none;
}

.yetki-kullanici-baslik {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.yetki-kullanici-baslik strong {
  font-size: 13px;
  color: #123a63;
}

.yetki-kullanici-baslik span {
  font-size: 10.5px;
  color: #6d859d;
}

.yetki-tum {
  padding: 4px 8px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  color: #31557d;
  background: #fff;
  border: 1px solid var(--accent-200);
  border-radius: 7px;
  cursor: pointer;
}

.yetki-tum:hover {
  border-color: var(--accent-300);
  background: #f5fbff;
}

.yetki-secimler {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 10px;
  margin-top: 10px;
}

.yetki-secim {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: #355274;
  cursor: pointer;
}

.yetki-secim input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--accent-600);
}

.yetki-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.yetki-actions .yetki-status {
  margin-left: auto;
}

.yetki-giris-degistir {
  padding: 10px 12px;
  background: var(--accent-25);
  border: 1px solid #f8dcdc;
  border-radius: 12px;
}

.yetki-giris-degistir > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #2f4d6b;
}

.yetki-giris-degistir > summary:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 2px;
}

.yetki-giris-degistir .yetki-form {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .yetki-secimler {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yetki-actions .yetki-status {
    margin-left: 0;
    flex-basis: 100%;
  }
}

.menu-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #40566e;
}

.menu-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-info-item {
  padding: 11px 13px;
  background: #f4f9ff;
  border: 1px solid #f8dcdc;
  border-radius: 12px;
}

.menu-info-etiket {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7a90a8;
}

.menu-info-deger {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #16324f;
  overflow-wrap: anywhere;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f6faff;
  border: 1px solid #f8dcdc;
  border-radius: 12px;
}

.menu-list-q {
  font-weight: 700;
  color: #17395f;
}

.menu-list-t {
  font-size: 11px;
  color: #7e93aa;
}

.menu-list-empty {
  padding: 18px;
  font-size: 13px;
  text-align: center;
  color: #6d8299;
  background: #f7fbff;
  border: 1px dashed var(--accent-200);
  border-radius: 12px;
}

.menu-chip-btn {
  padding: 6px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-800);
  background: #fff;
  border: 1px solid var(--accent-200);
  border-radius: 999px;
  cursor: pointer;
}

.menu-chip-btn:hover {
  background: var(--accent-100);
}

@media (max-width: 620px) {
  .mode-panel {
    padding: 12px;
  }

  .vx-hero {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .vx-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .vx-tile {
    gap: 6px;
    min-height: 0;
    padding: 10px 5px;
    border-radius: 14px;
  }

  .vx-icon {
    width: 24px;
    height: 24px;
  }

  .vx-label {
    font-size: 10px;
  }

  .vx-weather-icon {
    width: 20px;
    height: 20px;
  }

  .vx-time {
    font-size: 19px;
  }

  .vx-sub {
    font-size: 8.5px;
  }

  .menu-info {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Bakım dosyaları ---------- */

.bakim-panel {
  padding: 28px;
}

.bakim-panel:focus {
  outline: none;
}

.bakim-head {
  align-items: flex-start;
}

.bakim-sub {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.bakim-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.bakim-list-wrap {
  min-width: 0;
  padding: 14px;
  background: linear-gradient(180deg, var(--accent-25) 0%, var(--accent-50) 100%);
  border: 1px solid #fbd5d5;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff;
}

.bakim-list-title {
  margin: 0 0 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.bakim-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(52vh, 460px);
  padding-right: 4px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-300) transparent;
}

.bakim-file {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 12.5px;
  color: #16324f;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease, box-shadow 130ms ease,
    color 130ms ease;
}

.bakim-file:hover {
  background: #f5fbff;
  border-color: var(--accent-300);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.12);
}

.bakim-file.secili {
  font-weight: 700;
  color: var(--accent-900);
  background: var(--gradient-soft);
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--accent-ring),
    inset 0 1px 0 #fff;
}

.bakim-file:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.3);
  outline-offset: 1px;
}

.bakim-file-icon {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-200);
  border-radius: 8px;
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}

.bakim-file.secili .bakim-file-icon {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow:
    0 4px 10px rgba(var(--accent-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bakim-file-name {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bakim-empty {
  margin: 0;
  padding: 18px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.bakim-status {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--err);
  background: #fdecec;
  border: 1px solid #f6c9c9;
  border-radius: 8px;
}

.bakim-detail {
  display: flex;
  min-width: 0;
}

.bakim-detail-empty,
.bakim-detail-secili {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 240px;
  padding: 26px 22px;
  text-align: center;
  background:
    radial-gradient(340px 190px at 50% -18%, rgba(var(--accent-bright-rgb), 0.2), transparent 70%),
    linear-gradient(180deg, var(--accent-25) 0%, var(--accent-50) 100%);
  border: 1px solid #fbd5d5;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff;
}

.bakim-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 2px;
  font-size: 24px;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 15px;
  box-shadow:
    0 10px 22px rgba(var(--accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.bakim-detail-label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.bakim-detail-name {
  max-width: 100%;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
}

.bakim-detail-note {
  max-width: 320px;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.bakim-detail-secili {
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 300px;
  padding: 16px;
  text-align: left;
}

.bakim-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
}

.bakim-detail-titles {
  min-width: 0;
  text-align: left;
}

.bakim-data-meta {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #31557d;
  white-space: nowrap;
  background: #e8f3ff;
  border: 1px solid var(--accent-200);
  border-radius: 999px;
}

.bakim-data-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.bakim-data-state .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  margin-bottom: 0;
}

.bakim-data-message {
  max-width: 340px;
  margin: 0;
  line-height: 1.5;
}

.bakim-data-state.hata .bakim-data-message {
  color: var(--err);
}

.bakim-icerik {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: min(64vh, 640px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-300) transparent;
  -webkit-overflow-scrolling: touch;
}

.bakim-kartlar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bakim-kart {
  background: #fff;
  border: 1px solid #d7e5f5;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(13, 42, 84, 0.06);
  overflow: hidden;
}

.bakim-kart-baslik {
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid #dceafb;
}

.bakim-kart-baslik-metin {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #0d2f57;
  letter-spacing: 0.01em;
}

.bakim-kart-alt {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #4f6786;
}

.bakim-kart-govde {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bakim-kart-tablo-kapsayici {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dfeaf7;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.bakim-kart-tablo {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  color: #17314f;
  font-variant-numeric: tabular-nums;
}

.bakim-kart-tablo th,
.bakim-kart-tablo td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3edf8;
  border-right: 1px solid #e8f0fa;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}

.bakim-kart-tablo th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f8ff;
  color: #355274;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.bakim-kart-tablo tbody tr:last-child td {
  border-bottom: 0;
}

.bakim-kart-tablo th:last-child,
.bakim-kart-tablo td:last-child {
  border-right: 0;
}

.bakim-kart-tablo .bakim-rol-aciklama {
  white-space: normal;
  min-width: 180px;
  max-width: 360px;
}

.bakim-kart-tablo .bakim-rol-parcaNo,
.bakim-kart-tablo .bakim-rol-kod {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.bakim-kart-tablo .bakim-rol-adet,
.bakim-kart-tablo .bakim-rol-fiyat,
.bakim-kart-tablo .bakim-rol-kk,
.bakim-kart-tablo .bakim-rol-birimFiyat {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bakim-toplamlar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bakim-toplam-satir {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bakim-toplam-kalem {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #edf6ff;
  border: 1px solid var(--accent-200);
  color: #123a63;
}

.bakim-toplam-etiket {
  font-size: 12px;
  font-weight: 600;
  color: #36587d;
}

.bakim-toplam-deger {
  font-size: 14px;
  font-weight: 700;
  color: #0a3b70;
}

.bakim-kart-notlar {
  margin: 0;
  padding: 10px 12px 10px 28px;
  background: #fffaf0;
  border: 1px solid #f1ddb8;
  border-radius: 10px;
  color: #5b4a1e;
  font-size: 12.5px;
  line-height: 1.45;
}

.bakim-kart-notlar li + li {
  margin-top: 4px;
}

.bakim-kart-bos {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.bakim-liste-tablosu .bakim-rol-aciklama {
  min-width: 240px;
  max-width: 520px;
}

/* ---------- Bakım düzenleme ---------- */

.bakim-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #dbe9f8;
}

.bakim-edit-durum {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.bakim-edit-durum.bilgi {
  color: #31557d;
}

.bakim-edit-durum.ok {
  font-weight: 700;
  color: #15803d;
}

.bakim-edit-durum.hata {
  font-weight: 700;
  color: var(--err);
}

.bakim-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.bakim-edit-actions button {
  padding: 8px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.bakim-edit-toggle,
.bakim-save {
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  box-shadow:
    0 8px 18px rgba(var(--accent-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bakim-edit-toggle:hover,
.bakim-save:hover {
  background: var(--gradient-primary-hover);
  box-shadow:
    0 12px 24px rgba(var(--accent-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bakim-cancel {
  color: #31557d;
  background: #fff;
  border: 1px solid var(--accent-200);
}

.bakim-cancel:hover {
  background: #f5fbff;
  border-color: var(--accent-300);
}

.bakim-edit-actions button:disabled {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}

.bakim-edit-actions button:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.3);
  outline-offset: 1px;
}

.bakim-girdi {
  width: 100%;
  min-width: 84px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12.5px;
  color: #17314f;
  background: #fff;
  border: 1px solid var(--accent-200);
  border-radius: 7px;
}

.bakim-girdi:hover {
  border-color: var(--accent-300);
}

.bakim-girdi:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 0;
  background: var(--accent-25);
  border-color: var(--accent);
}

.bakim-girdi-sayi {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Başlık, sütun ve toplam etiketi düzenleme alanları */
.bakim-kart-baslik-metin .bakim-girdi-blok-baslik {
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0d2f57;
}

.bakim-kart-alt .bakim-girdi-blok-alt {
  padding: 4px 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #4f6786;
}

.bakim-kart-tablo th .bakim-girdi-blok-kolon,
.bakim-kart-tablo th .bakim-girdi-liste-kolon {
  min-width: 110px;
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #355274;
}

.bakim-toplamlar-duzenleme .bakim-girdi-blok-toplam-etiket {
  width: 130px;
  min-width: 90px;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #36587d;
}

.bakim-kart-tablo .bakim-hucre-duzenleme {
  padding: 4px 5px;
  white-space: normal;
}

.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-aciklama {
  min-width: 220px;
}

.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-parcaNo,
.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-kod {
  min-width: 150px;
}

.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-adet {
  min-width: 70px;
}

.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-fiyat,
.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-kk,
.bakim-kart-tablo .bakim-hucre-duzenleme.bakim-rol-birimFiyat {
  min-width: 100px;
}

.bakim-toplamlar-duzenleme .bakim-toplam-kalem {
  align-items: center;
  padding: 4px 6px 4px 12px;
}

.bakim-toplamlar-duzenleme .bakim-girdi {
  width: 110px;
  min-width: 90px;
}

.bakim-notlar-duzenleme {
  padding: 8px;
  list-style: none;
}

.bakim-notlar-duzenleme li + li {
  margin-top: 6px;
}

.bakim-notlar-duzenleme .bakim-girdi {
  width: 100%;
}

@media (max-width: 640px) {
  .bakim-edit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bakim-edit-actions {
    margin-left: 0;
  }

  .bakim-edit-actions button {
    flex: 1;
  }
}

/* ---------- Servis analizleri ---------- */

.analysis-head {
  align-items: flex-start;
}

.analysis-sub {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.analysis-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.analysis-refresh {
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-200);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.analysis-refresh:hover {
  background: var(--accent-100);
  border-color: var(--accent-300);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.14);
}

.analysis-refresh:disabled {
  opacity: 0.45;
  cursor: default;
  background: var(--accent-soft);
  border-color: var(--accent-200);
  box-shadow: none;
}

.analysis-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--accent-25) 0%, var(--accent-50) 100%);
  border: 1px solid #fbd5d5;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #fff;
}

.analysis-filter-field {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.analysis-filter-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6b7f9c;
}

.analysis-filter-field input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.analysis-filter-field input::placeholder {
  color: #a6b2c4;
}

.analysis-filter-field input:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.analysis-filter-btn {
  padding: 10px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: var(--gradient-primary);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(var(--accent-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.analysis-filter-btn:hover {
  background: var(--gradient-primary-hover);
  box-shadow:
    0 12px 24px rgba(var(--accent-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.analysis-filter-btn:active {
  transform: none;
}

#search-btn:focus-visible,
.login-submit:focus-visible,
.analysis-filter-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(var(--accent-bright-rgb), 0.4),
    0 12px 26px rgba(var(--accent-rgb), 0.34);
}

.analysis-filter-clear {
  padding: 10px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--accent-200);
  border-radius: 9px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.analysis-filter-clear:hover {
  background: var(--accent-soft);
  border-color: var(--accent-300);
}

.analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.analysis-tab {
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #33445f;
  background: var(--accent-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease,
    box-shadow 120ms ease;
}

.analysis-tab:hover {
  background: var(--accent-soft);
  border-color: var(--accent-200);
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.1);
}

.analysis-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.24);
}

.analysis-tab.aktif {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow:
    0 7px 18px rgba(var(--accent-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.analysis-desc {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7f9c;
}

.analysis-table {
  min-width: 680px;
}

.analysis-table th.num,
.analysis-table td.num {
  text-align: right;
}

.analysis-rank {
  width: 38px;
  font-weight: 700;
  color: #98a6ba;
  font-variant-numeric: tabular-nums;
}

.analysis-table .strong {
  font-weight: 800;
}

.analysis-cari {
  min-width: 190px;
  max-width: 300px;
}

.analysis-name-text {
  display: block;
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.analysis-unvan {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.analysis-table tbody tr.analysis-link-row {
  cursor: pointer;
}

.analysis-link-row td {
  transition: background 120ms ease;
}

.analysis-link-row:hover td,
.analysis-link-row:focus-visible td {
  background: var(--accent-50);
}

.analysis-link-row:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: -2px;
}

.analysis-link-row:hover .analysis-name-text,
.analysis-link-row:hover .analysis-plaka {
  text-decoration: underline;
}

.analysis-link-row .analysis-cari,
.analysis-link-row .analysis-plaka {
  position: relative;
  padding-right: 22px;
}

.analysis-link-row .analysis-cari::after,
.analysis-link-row .analysis-plaka::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: #4aa3ff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.analysis-note {
  margin: 10px 2px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7f9c;
}

.analysis-code {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.analysis-arac {
  min-width: 120px;
  max-width: 190px;
  color: #40536e;
}

.analysis-date {
  color: #40536e;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .bakim-layout {
    grid-template-columns: 1fr;
  }

  .bakim-list {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .menu-btn {
    gap: 0;
    padding: 8px;
  }

  .menu-label {
    display: none;
  }

  .mode-panel {
    padding: 22px 16px;
  }

  .bakim-panel {
    padding: 22px 16px;
  }

  .bakim-head {
    flex-direction: column;
  }

  .bakim-actions {
    width: 100%;
    justify-content: space-between;
  }

  .bakim-detail-empty,
  .bakim-detail-secili {
    min-height: 200px;
    padding: 22px 16px;
  }

  .bakim-detail-secili {
    min-height: 260px;
    padding: 12px;
  }

  .bakim-icerik {
    max-height: 60vh;
    padding-right: 0;
  }

  .bakim-kart-tablo {
    font-size: 11.5px;
  }

  .bakim-kart-tablo th,
  .bakim-kart-tablo td {
    padding: 6px 8px;
  }

  .bakim-kart-tablo .bakim-rol-aciklama {
    min-width: 140px;
    max-width: 240px;
  }

  .bakim-toplamlar,
  .bakim-toplam-satir {
    justify-content: flex-start;
  }

  .analysis-head {
    flex-direction: column;
  }

  .analysis-actions {
    width: 100%;
    justify-content: space-between;
  }

  .analysis-tab {
    flex: 1 1 100%;
    text-align: center;
  }

  .analysis-filter-field {
    flex: 1 1 100%;
  }

  .analysis-filter-btn,
  .analysis-filter-clear {
    flex: 1;
  }
}


/* ---------- Tahsilat kayıt formu ---------- */

.tahsilat-kayit-bolumu {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--accent-25);
}

.tahsilat-kayit-baslik {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.tahsilat-kayit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-top: 10px;
}

.tahsilat-kayit-form .analysis-filter-field {
  flex: 1 1 160px;
  min-width: 140px;
}

.tahsilat-kayit-form .analysis-filter-field select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tahsilat-kayit-form .analysis-filter-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tahsilat-kayit-form .tahsilat-aciklama-alan {
  flex: 2 1 240px;
}

.tahsilat-kayit-actions {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
}

.tahsilat-kayit-durum-satir {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tahsilat-kayit-durum-satir .tahsilat-kayit-durum {
  margin: 0;
}

.tahsilat-geri-don {
  white-space: nowrap;
}

.tahsilat-kayit-durum {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.tahsilat-kayit-durum.ok {
  color: #15803d;
  font-weight: 600;
}

.tahsilat-kayit-durum.err {
  color: var(--accent-700);
  font-weight: 600;
}

/* ---------- Stok kartı sorgulama ---------- */

.stok-sonuc-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.stok-kart {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stok-resim {
  width: 100%;
  height: 108px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.stok-resim img {
  max-width: 120px;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Stok resmi büyüteci: imleci izleyen dairesel önizleme. */
.stok-buyutec {
  position: fixed;
  width: 144px;
  height: 144px;
  margin-left: -72px;
  margin-top: -72px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.38),
    0 0 0 1px rgba(var(--accent-rgb), 0.6);
}

.stok-buyutec[hidden] {
  display: none;
}

.stok-buyutec img {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (hover: none) {
  .stok-resim {
    cursor: default;
  }

  .stok-buyutec {
    display: none !important;
  }
}

.stok-govde {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stok-baslik {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stok-adi {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.stok-kod {
  font-size: 0.78rem;
}

.stok-bilgiler {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.stok-bilgi-satir {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: start;
}

.stok-bilgi-etiket {
  color: var(--muted);
  font-size: 0.82rem;
}

.stok-bilgi-deger {
  color: var(--text);
  word-break: break-word;
}

.stok-pasif {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .stok-bilgi-satir {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}



/* ---------- Cari tanımlama ---------- */

.cari-tanim-form {
  margin-top: 6px;
}

.cari-tanim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 14px;
  align-items: end;
}

.cari-tanim-grid .analysis-filter-field {
  min-width: 0;
}

.cari-tanim-grid .cari-tanim-genis {
  grid-column: span 2;
}

.cari-tanim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.cari-tanim-kontrol {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--accent-25);
}

.cari-tanim-kontrol .islem-bolum {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cari-tanim-eslesen-liste {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.cari-tanim-eslesen-item {
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  color: #92400e;
  font-size: 0.9rem;
}

.cari-tanim-eslesen-item.cari-tanim-eslesen-ayni {
  border-color: var(--accent-300);
  background: var(--accent-50);
  color: var(--accent-800);
  font-weight: 600;
}

/* Cari işlemler alt menüsü ve listeleme */
.cari-islemler-panel .vx-grid {
  max-width: 720px;
}

.cari-islemler-panel .vx-tile {
  aspect-ratio: 1 / 0.85;
}

.analysis-desc.err {
  color: var(--err);
  font-weight: 600;
}

.cari-liste {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cari-liste-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--accent-25);
  border: 1px solid #f8dcdc;
  border-radius: var(--radius-sm);
}

.cari-liste-govde {
  flex: 1 1 auto;
  min-width: 0;
}

.cari-liste-aksiyonlar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cari-liste-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--accent-200);
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.08);
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.cari-liste-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent-300);
  transform: translateY(-1px);
}

.cari-liste-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.cari-liste-ad {
  font-size: 0.94rem;
  font-weight: 600;
  color: #123a63;
}

.cari-liste-detay {
  margin-top: 3px;
  font-size: 0.82rem;
  color: #5d738b;
}

.cari-liste-bos {
  margin: 12px 0 0;
  padding: 18px;
  text-align: center;
  color: #6d859d;
  background: var(--accent-25);
  border: 1px dashed var(--accent-200);
  border-radius: var(--radius-sm);
}

.tediye-secili-cari {
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #123a63;
  background: var(--accent-100);
  border: 1px solid var(--accent-200);
  border-radius: 8px;
}

.tediye-secili-cari[hidden] {
  display: none;
}

.cari-tanim-kontrol.cari-tanim-kontrol-uyari {
  border-color: var(--accent-300);
  background: var(--accent-75);
}

.badge-uyari {
  background: var(--accent-50);
  border-color: var(--accent-300);
  color: var(--accent-700);
}

@media (max-width: 720px) {
  .cari-tanim-grid .cari-tanim-genis {
    grid-column: span 1;
  }
}


/* ---------- Yazdırma ---------- */

@media print {
  body > *:not(#report-modal) {
    display: none !important;
  }

  body.modal-acik {
    overflow: visible;
  }

  .modal {
    position: static;
    display: block;
    padding: 0;
  }

  .modal-backdrop,
  .report-cari-actions,
  .modal-actions {
    display: none !important;
  }

  .modal-window {
    width: 100%;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .modal-head {
    padding: 0 0 12px;
    background: #fff;
    border-bottom: 1px solid #e8d5d5;
  }

  .modal-body {
    padding: 12px 0 0;
    overflow: visible;
  }

  .report-info {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-scroll {
    overflow: visible;
    border: none;
  }

  .report-table {
    min-width: 0;
    font-size: 10px;
  }

  .report-table th,
  .report-table td {
    padding: 5px 6px;
  }

  /* Yazdırırken tüm fiş hareketleri açık basılır. */
  .report-hint {
    display: none;
  }

  .report-fis-detail[hidden] {
    display: table-row !important;
  }

  .report-fis-caret {
    display: none;
  }

  .report-fis-row td,
  .report-fis-row.acik td {
    background: transparent;
  }

  .report-fis-detail > td {
    background: transparent;
    padding: 4px 6px 10px;
  }

  .report-fis-detail-title {
    font-size: 9.5px;
  }

  .tur-btn {
    color: inherit;
    text-decoration: none;
  }

  /* ---------- 80 mm termal yazıcı formu ---------- */

  body.yazdirma-termal {
    color: #000;
    background: #fff;
  }

  body.yazdirma-termal .modal-window {
    width: 74mm;
    max-width: 74mm;
    margin: 0 auto;
    color: #000;
  }

  body.yazdirma-termal .modal-head {
    padding: 0 0 2mm;
    text-align: center;
    border-bottom: 1px dashed #000;
  }

  body.yazdirma-termal .modal-brand {
    display: block;
  }

  body.yazdirma-termal .brand-mark {
    display: none !important;
  }

  body.yazdirma-termal .modal-kicker {
    font-size: 8.5px;
    letter-spacing: 1.4px;
    color: #000;
  }

  body.yazdirma-termal .modal-head h2 {
    margin: 1mm 0 0;
    font-size: 13px;
  }

  body.yazdirma-termal .modal-sub {
    margin-top: 1mm;
    font-size: 8.5px;
    line-height: 1.35;
    color: #000;
  }

  body.yazdirma-termal .modal-body {
    padding: 2mm 0 0;
  }

  body.yazdirma-termal .report-info {
    display: block;
    margin: 0 0 2mm;
  }

  body.yazdirma-termal .report-info-item {
    display: flex;
    justify-content: space-between;
    gap: 2mm;
    padding: 0.6mm 0;
    background: none;
    border: 0;
    border-bottom: 1px dotted #777;
    border-radius: 0;
  }

  body.yazdirma-termal .report-info-label {
    flex: 0 0 28mm;
    font-size: 8px;
    color: #000;
  }

  body.yazdirma-termal .report-info-value {
    margin: 0;
    font-size: 9px;
    text-align: right;
    color: #000;
  }

  body.yazdirma-termal .report-summary {
    display: block;
    margin: 0 0 2mm;
  }

  body.yazdirma-termal .report-summary-item,
  body.yazdirma-termal .report-summary-item.ok,
  body.yazdirma-termal .report-summary-item.warn {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2mm;
    min-width: 0;
    padding: 0.7mm 0;
    background: none;
    border: 0;
    border-bottom: 1px dotted #777;
    border-radius: 0;
  }

  body.yazdirma-termal .report-summary-label {
    font-size: 8.5px;
    color: #000;
  }

  body.yazdirma-termal .report-summary-value,
  body.yazdirma-termal .report-summary-item.ok .report-summary-value,
  body.yazdirma-termal .report-summary-item.warn .report-summary-value {
    margin: 0;
    font-size: 10px;
    color: #000;
  }

  body.yazdirma-termal .report-scroll,
  body.yazdirma-termal .report-fis-detail .report-scroll {
    overflow: visible;
    background: #fff;
    border: 0;
    border-radius: 0;
  }

  body.yazdirma-termal .report-table {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 9px;
  }

  body.yazdirma-termal .report-table thead {
    display: none;
  }

  body.yazdirma-termal .report-table tbody,
  body.yazdirma-termal .report-table tfoot {
    display: block;
  }

  body.yazdirma-termal .report-table tbody tr,
  body.yazdirma-termal .report-table tbody tr:nth-child(even) {
    display: block;
    padding: 1.4mm 0;
    background: none;
    border-bottom: 1px dashed #777;
    break-inside: avoid;
  }

  body.yazdirma-termal .report-table tbody tr:last-child {
    border-bottom: 0;
  }

  body.yazdirma-termal .report-table tbody tr.report-fis-row {
    border-bottom: 0;
  }

  body.yazdirma-termal .report-table td {
    padding: 0;
    color: #000;
    background: none;
    border: 0;
  }

  body.yazdirma-termal .report-table td[data-label] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2mm;
    padding: 0.35mm 0;
    font-size: 9px;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    word-break: break-word;
  }

  body.yazdirma-termal .report-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 28mm;
    font-weight: 700;
    text-align: left;
    color: #000;
  }

  body.yazdirma-termal .report-table td[data-label].empty {
    display: none;
  }

  body.yazdirma-termal .report-table td.tur.tahsilat,
  body.yazdirma-termal .report-table td.tur.tediye,
  body.yazdirma-termal .report-table td.tur.belge {
    color: #000;
  }

  body.yazdirma-termal .report-table tfoot tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1mm 3mm;
    padding: 1.5mm 0;
    border-top: 1px solid #000;
    break-inside: avoid;
  }

  body.yazdirma-termal .report-table tfoot td {
    padding: 0;
    font-size: 9.5px;
    font-weight: 800;
    text-align: right;
    background: none;
    border: 0;
  }

  body.yazdirma-termal .report-table tfoot td:first-child {
    flex: 1 1 auto;
    font-weight: 700;
    text-align: left;
  }

  body.yazdirma-termal .report-fis-detail,
  body.yazdirma-termal .report-fis-detail[hidden] {
    display: block !important;
    padding: 0 0 1.5mm;
    border-bottom: 1px dashed #777 !important;
  }

  body.yazdirma-termal .report-fis-detail > td {
    display: block;
    padding: 0;
    background: none;
  }

  body.yazdirma-termal .report-fis-detail-body {
    padding: 0 0 0 3mm;
    border-left: 1px dotted #777;
  }

  body.yazdirma-termal .report-fis-detail-title {
    margin: 0 0 1mm;
    font-size: 8.5px;
    color: #000;
  }

  body.yazdirma-termal .report-service-empty {
    padding: 1mm 0;
    font-size: 8.5px;
    color: #000;
    background: none;
    border: 0;
  }

  body.yazdirma-termal .report-hint,
  body.yazdirma-termal .report-note {
    display: none;
  }

  body.yazdirma-termal .report-empty {
    margin: 2mm 0;
    padding: 2mm 0;
    font-size: 9px;
    color: #000;
    background: none;
    border: 0;
  }
}

/* ---------- Tema se�ici ---------- */
.tema-wrap {
  position: relative;
}

.tema-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff7f7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.tema-btn:hover,
.tema-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.tema-btn svg {
  flex: 0 0 auto;
}

.tema-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 240px;
  padding: 12px 13px 13px;
  color: var(--text);
  background: var(--gradient-panel);
  border: 1px solid var(--accent-200);
  border-radius: 14px;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.tema-panel[hidden] {
  display: none;
}

.tema-baslik {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-800);
}

.tema-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.tema-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 4px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 46, 0.08);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.tema-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.tema-swatch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(12, 26, 46, 0.12);
}

.tema-swatch.aktif {
  border-color: var(--text);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-400);
}

.tema-swatch[data-tema="kirmizi"] span { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.tema-swatch[data-tema="mavi"] span { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tema-swatch[data-tema="yesil"] span { background: linear-gradient(135deg, #22c55e, #15803d); }
.tema-swatch[data-tema="mor"] span { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.tema-swatch[data-tema="turuncu"] span { background: linear-gradient(135deg, #f97316, #c2410c); }
.tema-swatch[data-tema="lacivert"] span { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.tema-swatch[data-tema="pembe"] span { background: linear-gradient(135deg, #ec4899, #be185d); }
.tema-swatch[data-tema="grafit"] span { background: linear-gradient(135deg, #64748b, #334155); }

.tema-ozel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #33445f;
  border-top: 1px solid var(--accent-100);
}

.tema-ozel input[type="color"] {
  width: 42px;
  height: 30px;
  padding: 0;
  background: none;
  border: 1px solid var(--accent-200);
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .tema-label {
    display: none;
  }

  .tema-btn {
    gap: 0;
    padding: 8px;
  }

  .tema-panel {
    right: -8px;
    width: 220px;
  }
}

/* ---------- Servis fi� raporu ---------- */
.servis-fis-form {
  align-items: flex-end;
}

.servis-fis-durum-alan {
  min-width: 280px;
  flex: 2 1 320px;
}

.servis-fis-durumlar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 10px;
  background: #f4f9ff;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.servis-fis-durum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #33445f;
  cursor: pointer;
  user-select: none;
}

.servis-fis-durum input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.servis-fis-durum:hover span {
  color: var(--accent-dark);
}

.servis-fis-ozet {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.servis-fis-ozet .report-summary-item {
  min-width: 140px;
}

/* Servis İşlemleri - başlangıç menüsü */
.servis-fis-ana-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 20px;
}

.servis-fis-ana-btn {
  flex: 1 1 220px;
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Servis fiş raporu sayfalama */
.servis-fis-sayfalama {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  flex-wrap: wrap;
}

.servis-fis-sayfa-btn {
  min-width: 110px;
}

.servis-fis-sayfa-bilgi {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}

/* Servis fişi durumuna göre satır renklendirme */
.report-table tbody tr.servis-durum-beklemede td,
.detail-table tbody tr.servis-durum-beklemede td {
  background-color: #c3e6cb; /* Beklemede: yeşil */
}
.report-table tbody tr.servis-durum-islemde td,
.detail-table tbody tr.servis-durum-islemde td {
  background-color: #fff3b0; /* İşleme Girdi: sarı */
}
.report-table tbody tr.servis-durum-tamam td,
.detail-table tbody tr.servis-durum-tamam td {
  background-color: #ffd8a8; /* İşlem Tamam: turuncu */
}
.report-table tbody tr.servis-durum-teslim td,
.detail-table tbody tr.servis-durum-teslim td {
  background-color: #f5c6cb; /* Teslim Edildi: açık kırmızı */
}
.report-table tbody tr.servis-durum-iptal td,
.detail-table tbody tr.servis-durum-iptal td {
  background-color: #e2e3e5; /* İptal (belirtilmedi): nötr gri */
  color: #495057;
}
.report-table tbody tr.servis-durum-beklemede:hover td,
.report-table tbody tr.servis-durum-islemde:hover td,
.report-table tbody tr.servis-durum-tamam:hover td,
.report-table tbody tr.servis-durum-teslim:hover td,
.report-table tbody tr.servis-durum-iptal:hover td,
.detail-table tbody tr.servis-durum-beklemede:hover td,
.detail-table tbody tr.servis-durum-islemde:hover td,
.detail-table tbody tr.servis-durum-tamam:hover td,
.detail-table tbody tr.servis-durum-teslim:hover td,
.detail-table tbody tr.servis-durum-iptal:hover td {
  filter: brightness(0.985);
}

/* Servis fişi tıklanabilir satırlar */
.report-table tbody tr.servis-fis-satir,
.detail-table tbody tr.servis-fis-satir {
  cursor: pointer;
}
.report-table tbody tr.servis-fis-satir:focus-visible td,
.detail-table tbody tr.servis-fis-satir:focus-visible td {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: -2px;
}

/* Tıklanabilir tablo hücreleri */
.hucre-link-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--accent, #2563eb);
  font: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-align: inherit;
}
.hucre-link-btn:hover {
  color: #1d4ed8;
}
.hucre-link-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Cari raporları - Excel örneği görünümü */
.cari-excel-rapor.report-scroll {
  border-radius: 4px;
}
.cari-excel-rapor .report-table,
.detail-table.cari-excel-tablo {
  font-size: 11px;
  border-collapse: collapse;
}
.cari-excel-rapor .report-table thead th,
.detail-table.cari-excel-tablo thead th {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  background: #f2f2f2;
  color: #111;
  border: 1px solid #d0d7de;
  white-space: nowrap;
}
.cari-excel-rapor .report-table td,
.detail-table.cari-excel-tablo td {
  padding: 3px 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  white-space: nowrap;
}
.cari-excel-rapor .report-table tbody tr:nth-child(odd) td,
.detail-table.cari-excel-tablo tbody tr:nth-child(odd) td {
  background: #D2E9FF;
}
.cari-excel-rapor .report-table tbody tr:nth-child(even) td,
.detail-table.cari-excel-tablo tbody tr:nth-child(even) td {
  background: #ffffff;
}
.cari-excel-rapor .report-table tbody tr:hover td,
.detail-table.cari-excel-tablo tbody tr:hover td {
  filter: brightness(0.985);
}
.cari-excel-rapor .report-table td.empty,
.detail-table.cari-excel-tablo td.empty {
  color: #9aa7b8;
}

/* ------------------------------------------------------------------ */
/* İlk kurulum ekranı                                                  */
/* ------------------------------------------------------------------ */
.kurulum-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.kurulum-bolum {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.kurulum-bolum-baslik {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #e8eef8;
}
.kurulum-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.kurulum-test-sonuc {
  margin-top: 8px;
}
.kurulum-test-sonuc.hata {
  color: #ffb4b4;
}
.kurulum-sistem-list {
  margin: 0;
  padding-left: 18px;
  color: #c9d6e8;
  font-size: 13px;
  line-height: 1.45;
}
.kurulum-sistem-list li {
  margin: 4px 0;
}
.kurulum-screen .login-field span {
  text-align: left;
}
.kurulum-screen .login-error.hata {
  color: #ffb4b4;
}

/* Analiz - grup/ara toplam satırları */
.analysis-group-row td {
  background: rgba(255,255,255,0.08) !important;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.analysis-group-count { font-weight: 400; opacity: .8; font-size: 12px; }
.analysis-subtotal-row td {
  background: rgba(255, 213, 79, 0.12) !important;
  font-weight: 600;
  border-top: 1px solid rgba(255,213,79,0.25);
}
.analysis-grandtotal-row td {
  background: rgba(76, 175, 80, 0.16) !important;
  font-weight: 700;
  border-top: 2px solid rgba(76,175,80,0.35);
}

/* Sube secimi */
.sube-secim { margin-top: 14px; }
.sube-secim-baslik { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.sube-secim-desc { margin-bottom: 10px; }
.sube-list .sirket-card { width: 100%; }
.sube-vazgec { margin-top: 10px; }
.sube-card .sirket-avatar { background: rgba(255,255,255,0.12); }
