:root {
  --navy: #001b4f;
  --navy-soft: #0a2d6e;
  --cyan: #10b7c9;
  --bg: #f4f8fb;
  --white: #ffffff;
  --text: #1a2b42;
  --muted: #5c6f85;
  --border: #dce6ef;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 27, 79, 0.08);
  --danger: #d32f2f;
  --success: #2e7d32;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.portal-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.portal-brand img { height: 36px; width: auto; }

.portal-user {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: right;
}

.portal-user strong { display: block; color: var(--text); }

.portal-main {
  width: min(100% - 32px, 960px);
  margin: 24px auto 48px;
}

.portal-main.portal-main-wide {
  width: min(100% - 32px, 1180px);
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.portal-card-narrow { max-width: 440px; margin-inline: auto; }

.portal-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: var(--navy);
}

.portal-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(16, 183, 201, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #fff;
  width: 100%;
}

.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2c0; }
.alert-info { background: #e8f7fa; color: #0a5f6b; border: 1px solid #b8e8ef; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #a5d6a7; }
.alert-warning { background: #fff8e1; color: #8a6d00; border: 1px solid #ffe082; }

/* Sabit ekran popup — kaydırma gerektirmez */
.firma-popup-host {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}
.firma-popup-host.is-open {
  display: flex;
  pointer-events: auto;
}
.firma-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.firma-popup {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  border-top: 5px solid #64748b;
  padding: 16px 18px 14px;
  animation: firma-popup-in 0.18s ease-out;
}
.firma-popup--success { border-top-color: #16a34a; }
.firma-popup--error { border-top-color: #dc2626; }
.firma-popup--info { border-top-color: #0284c7; }
.firma-popup--warning { border-top-color: #ca8a04; }
.firma-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.firma-popup-head strong {
  font-size: 1rem;
  color: #0f172a;
}
.firma-popup-x {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 4px;
}
.firma-popup-msg {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
}
.firma-popup-actions {
  display: flex;
  justify-content: flex-end;
}
@keyframes firma-popup-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.conflicts-box {
  margin: 16px 0;
  border: 1px solid #f0c36d;
  border-radius: 12px;
  background: #fffaf0;
  padding: 14px 16px;
}
.conflicts-box--preview {
  border-color: #90caf9;
  background: #f3f9ff;
}
.conflicts-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #8a4b00;
  margin-bottom: 8px;
}
.conflicts-box--preview .conflicts-box-head { color: #0d5c8c; }
.conflicts-count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f57c00;
  color: #fff;
  font-size: 0.78rem;
  padding: 0 8px;
}
.conflicts-box--preview .conflicts-count { background: #0288d1; }
.conflicts-hint {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #6b5a3e;
}
.conflicts-box--preview .conflicts-hint { color: #4f6b7d; }
.conflicts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.conflict-item {
  border-radius: 10px;
  padding: 0;
  background: transparent;
  border: none;
}
.conflict-item--rich .ex-conflict-card {
  margin: 0;
}
.conflict-item p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #4a4035;
}
.conflict-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #7a6a55;
}
.conflict-critical { border-left: 4px solid #c62828; }
.conflict-high { border-left: 4px solid #ef6c00; }
.conflict-medium { border-left: 4px solid #fbc02d; }

.hidden { display: none !important; }

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.step-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--muted);
}

.step-pill.active {
  background: var(--navy);
  color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .portal-header { flex-wrap: wrap; }
}

.section-bar {
  background: linear-gradient(90deg, var(--navy), #1565c0);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px;
  margin: 20px 0 12px;
  border-radius: 8px;
}

.vehicle-diagram-editor-panel {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.uc-boya-kaporta-panel {
  margin-top: 12px;
  margin-bottom: 16px;
  max-width: none;
}

.body-type-picker {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.body-type-picker-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}
.body-type-picker-head strong {
  font-size: 0.9rem;
  color: #1a2332;
}
.body-type-picker-hint {
  font-size: 0.75rem;
  color: #64748b;
}
.body-type-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.body-type-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: #1a2332;
  min-width: 110px;
}
.body-type-chip:hover {
  border-color: #1c7eb8;
}
.body-type-chip.is-active {
  border-color: #1c7eb8;
  box-shadow: 0 0 0 2px rgba(28, 126, 184, 0.2);
  background: #eff8ff;
}
.body-type-chip-label {
  font-size: 0.82rem;
  font-weight: 700;
}
.body-type-chip-tpl {
  font-size: 0.68rem;
  color: #64748b;
  letter-spacing: 0.02em;
}
.body-type-chip.is-active .body-type-chip-tpl {
  color: #1565c0;
  font-weight: 700;
}

.uc-ekspertiz-template-label {
  font-size: 0.78rem;
  color: #546e7a;
  margin: 0 0 8px;
}
.uc-ekspertiz-template-label strong { color: #1a2332; }

.uc-ekspertiz-app {
  width: 100%;
}

.uc-ekspertiz-layout {
  display: block;
}

@media (max-width: 980px) {
  .uc-ekspertiz-layout {
    grid-template-columns: 1fr;
  }
}

.uc-ekspertiz-viewer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.uc-ekspertiz-viewer svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.uc-ekspertiz-viewer .part-hit {
  fill: transparent !important;
  stroke: transparent;
  stroke-width: 2.5;
  cursor: pointer;
  transition: fill 0.15s, stroke 0.15s;
}

.uc-ekspertiz-viewer .part-hit:hover {
  fill: transparent !important;
  stroke: transparent !important;
}

.uc-ekspertiz-viewer .part-hit.selected {
  fill: transparent !important;
  stroke: transparent !important;
}

.uc-ekspertiz-viewer .part-hit.uc-local-painted-part {
  stroke: #eab308 !important;
  stroke-dasharray: 6 4;
}

.uc-ekspertiz-viewer .status-label {
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 11px;
  font-weight: 700;
  fill: #17212b;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.uc-ekspertiz-viewer .status-label--active {
  font-size: 17px !important;
  font-weight: 800 !important;
  stroke-width: 5px;
}

.uc-ekspertiz-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.uc-ekspertiz-side h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.uc-ekspertiz-help {
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  background: #f2f7fa;
  border-radius: 9px;
  padding: 10px;
}

.uc-ekspertiz-legend {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.uc-ekspertiz-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.uc-sw {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid #aab4bc;
  flex: 0 0 auto;
}

.uc-btn {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 11px;
  margin-top: 8px;
  font-weight: 700;
  cursor: pointer;
}

.uc-btn-reset {
  background: #e9eef2;
  color: #293640;
}

.uc-btn-apply {
  background: #176fa7;
  color: #fff;
}

.uc-btn-clear {
  background: #edf1f4;
  color: #2c3943;
}

.uc-ekspertiz-summary {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.uc-summary-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.uc-summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #dde3e7;
}

.uc-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  color: #111;
}

.uc-summary-empty {
  font-size: 12px;
  color: #75818b;
}

.uc-ekspertiz-menu {
  position: fixed;
  display: none;
  z-index: 1000;
  width: 260px;
  background: #fff;
  border: 1px solid #cbd4db;
  border-radius: 11px;
  padding: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.uc-ekspertiz-menu.open {
  display: block;
}

.uc-ekspertiz-menu strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.uc-ekspertiz-menu select {
  width: 100%;
  height: auto;
  min-height: 220px;
  padding: 6px;
  border: 1px solid #c9d2d9;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.uc-ekspertiz-menu .uc-status-checks {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #c9d2d9;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

.uc-ekspertiz-menu .uc-status-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.uc-ekspertiz-menu .uc-status-check-item input {
  margin: 0;
  flex-shrink: 0;
}

.uc-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.uc-menu-actions .uc-btn {
  margin-top: 0;
  padding: 9px;
}

.vehicle-diagram-editor-panel .vd-svg-shell {
  max-width: 520px;
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed .part-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2.5;
  cursor: pointer;
  transition: fill 0.15s, stroke 0.15s;
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed .part-hit:hover {
  fill: transparent;
  stroke: transparent;
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed .part-hit.selected {
  fill: transparent;
  stroke: transparent;
}

/* Lokal Boyalı çizim araç çubuğu */
.uc-local-paint-toolbar-host {
  margin: 8px 0 12px;
  max-width: 100%;
}

.uc-local-paint-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #f0d56a;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef9c3 100%);
  box-sizing: border-box;
}

.uc-local-paint-toolbar-title {
  font-size: 0.92rem;
  color: #713f12;
}

.uc-local-paint-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #854d0e;
  font-weight: 600;
}

.uc-local-paint-help {
  margin: 0;
  font-size: 0.78rem;
}

.uc-local-paint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uc-local-paint-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

.uc-local-paint-toast {
  font-size: 0.8rem;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 8px;
  padding: 6px 10px;
}

.uc-ekspertiz-viewer.uc-drawing-mode,
.uc-ekspertiz-viewer.uc-drawing-mode {
  cursor: crosshair;
}

.uc-ekspertiz-viewer.uc-drawing-mode .part-hit:not(.uc-local-painted-part) {
  pointer-events: none;
}

.uc-local-painted-part {
  /* stroke set inline; keep hit target */
}

@media (max-width: 720px) {
  .uc-local-paint-actions .btn {
    min-width: calc(50% - 8px);
  }
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed .status-label {
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 11px;
  font-weight: 700;
  fill: #17212b;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.vehicle-diagram-editor-panel .vd-wrap--sedan-embed .status-label--active {
  font-size: 17px !important;
  font-weight: 800 !important;
  stroke-width: 5px;
}

.vd-legend--sedan-embed {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #475569;
}

.vd-legend--sedan-embed .vd-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vd-legend--sedan-embed .vd-legend-item i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  display: inline-block;
}

.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.parts-table th,
.parts-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.parts-table th {
  background: #f1f5f9;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.parts-table select { padding: 8px; font-size: 0.85rem; }

.parts-tables-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  overflow: visible;
}

.parts-table--body {
  overflow: visible;
}

@media (max-width: 1100px) {
  .parts-tables-split { grid-template-columns: 1fr; }
}

.section-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.parts-table--body td:nth-child(2),
.parts-table--lift td:nth-child(2),
.parts-table--mech td:nth-child(2),
.parts-table--safety td:nth-child(2),
.parts-table td:nth-child(2) {
  min-width: 180px;
  width: 52%;
  position: relative;
}

.condition-ms {
  position: relative;
}

.condition-ms-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.condition-ms-toggle:hover,
.condition-ms.is-open .condition-ms-toggle {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.condition-ms-summary {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition-ms-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  flex-shrink: 0;
}

.condition-ms.is-open .condition-ms-caret {
  transform: rotate(180deg);
}

.condition-ms-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
}

.condition-ms-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.condition-ms-item:hover {
  background: #f1f5f9;
}

.condition-ms-item:has(input:checked) {
  background: #e8f1fb;
  color: #0d47a1;
}

.condition-ms-item input {
  margin: 0;
}

.critical-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--danger);
  margin-left: 6px;
}

.section-note-field {
  margin: 0 0 12px;
}

.section-note-field textarea {
  min-height: 56px;
  resize: vertical;
}

.parts-table input.part-note {
  width: 100%;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
}

.evidence-col { min-width: 160px; }

.evidence-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-warn {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e65100;
}

.evidence-ok {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

.evidence-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.evidence-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.78rem;
  min-width: 0;
}

.evidence-upload-btn {
  cursor: pointer;
  width: fit-content;
}

.evidence-upload-btn.is-uploading {
  opacity: 0.6;
  pointer-events: none;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.actions-row .btn { width: auto; flex: 1; min-width: 140px; }

.demo-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.demo-box code {
  background: #eef8fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.vehicle-summary {
  background: #f8fbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.vehicle-summary strong { color: var(--navy); }

/* —— Ekspertiz rapor işlemleri (bexpertise360 referans) —— */
.report-ops-page { display: flex; flex-direction: column; gap: 16px; }

.report-ops-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.report-ops-head h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
}

.report-ops-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.report-ops-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-ops-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #e8f4fc, #f4f9fd);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--navy);
}

.report-ops-card-head .badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}

.report-vehicle-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.report-vehicle-strip strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.report-vehicle-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.report-package-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  white-space: nowrap;
}

.report-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 18px;
}

@media (max-width: 768px) {
  .report-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .report-section-grid { grid-template-columns: 1fr; }
}

.report-section-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.report-section-item:hover:not(.is-disabled) {
  border-color: #90caf9;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.08);
}

.report-section-item.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.report-section-item input {
  width: 18px;
  height: 18px;
  accent-color: #1565c0;
  flex-shrink: 0;
}

.report-section-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

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

.report-toolbar .btn-report-action {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.report-toolbar .btn-report-action:hover:not(:disabled) {
  background: #f0f7ff;
  border-color: #90caf9;
}

.report-toolbar .btn-report-action.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.report-toolbar .btn-report-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.report-preview-panel {
  background: #e8ecf1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 420px;
  overflow: auto;
  padding: 12px;
}

.report-preview-panel.is-letterhead {
  background: linear-gradient(180deg, #dfe8f3 0%, #e8ecf1 120px);
}

.report-preview-panel.is-print-layout {
  background: #fff;
  border-color: #cfd8dc;
  padding: 12px;
}

.report-preview-panel.is-print-layout .ex-report-page {
  max-width: none;
  padding: 0;
}

.report-preview-panel.is-print-layout .ex-sheet {
  box-sizing: border-box;
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  margin: 0 auto 16px;
  box-shadow: none;
  overflow: hidden;
}

.report-preview-panel.is-print-layout .ex-wo-brand-mark,
.report-preview-panel.is-print-layout .ex-kapak-brand-mark {
  overflow: hidden;
  flex-shrink: 0;
}

.report-preview-panel.is-print-layout .ex-wo-brand-logo,
.report-preview-panel.is-print-layout .ex-kapak-logo-img,
.report-preview-panel.is-print-layout .ex-kapak-badge img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.report-preview-panel.is-print-layout .ex-wo-brand-logo {
  max-height: 72px;
}

.report-preview-panel.is-print-layout .ex-kapak-logo-img {
  max-height: 92px;
}

.report-preview-panel.is-print-layout .ex-kapak-badge img {
  max-width: 104px;
}

/* Kaporta: Düzenle menüsü ile aynı 3 yatay görünüş */
.report-preview-panel.is-print-layout .ex-sheet--body .ex-body-diagram-slot {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin: 10px 0 18px;
}

.report-preview-panel.is-print-layout .ex-sheet--body [class*="vd-wrap--"],
.report-preview-panel.is-print-layout .ex-sheet--body-diagram [class*="vd-wrap--"] {
  transform: none !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.report-preview-panel.is-print-layout .ex-sheet--body [class*="vd-wrap--"] svg,
.report-preview-panel.is-print-layout .ex-sheet--body-diagram [class*="vd-wrap--"] svg {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
}

.report-preview-panel.is-print-layout .ex-sheet--body .status-label,
.report-preview-panel.is-print-layout .ex-sheet--body .status-label--active,
.report-preview-panel.is-print-layout .ex-sheet--body-diagram .status-label,
.report-preview-panel.is-print-layout .ex-sheet--body-diagram .status-label--active {
  transform: none !important;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.report-preview-panel.is-print-layout .uc-local-paint-area polygon,
.report-preview-panel.is-print-layout .uc-local-paint-poly {
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.report-preview-panel.is-print-layout .ex-sheet--body .ex-checklist-split {
  gap: 20px;
  padding: 16px 12px 20px;
  margin-top: 8px;
}

.report-preview-panel.is-print-layout .ex-sheet--body-combined .ex-body-diagram-slot {
  margin: 4px 0 6px;
  max-height: 300px;
  overflow: hidden;
}

.report-preview-panel.is-print-layout .ex-sheet--body-combined .ex-checklist-split {
  gap: 6px;
  padding: 2px 4px 4px;
  margin-top: 0;
}

.report-preview-panel.is-print-layout .ex-sheet--body-combined .ex-checklist {
  font-size: 0.7rem;
}

.report-preview-panel.is-print-layout .ex-sheet--body-combined .ex-checklist th,
.report-preview-panel.is-print-layout .ex-sheet--body-combined .ex-checklist td {
  padding: 3px 6px;
}

.report-preview-panel.is-print-layout .ex-summary-bar {
  display: none !important;
}

.report-preview-hint {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  background: #f8fbfd;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.report-preview-hint strong {
  color: var(--navy);
}

@media print {
  /* Hide all portal chrome — only the isolated print iframe content is intended,
     but keep a hard fallback if body print is used. */
  body.is-report-printing * {
    visibility: hidden !important;
  }
  body.is-report-printing .ex-report,
  body.is-report-printing .ex-report *,
  body.is-report-printing .ex-sheet,
  body.is-report-printing .ex-sheet * {
    visibility: visible !important;
  }
  body.is-report-printing .portal-header,
  body.is-report-printing .report-ops-head,
  body.is-report-printing .report-ops-card,
  body.is-report-printing .report-status-row,
  body.is-report-printing .report-toolbar,
  body.is-report-printing #edit-alert,
  body.is-report-printing .report-edit-panel,
  body.is-report-printing #registration-edit-panel,
  body.is-report-printing #queries-edit-panel,
  body.is-report-printing #diagnostics-edit-panel,
  body.is-report-printing .report-preview-hint,
  body.is-report-printing .ex-footer,
  body.is-report-printing .ex-brand-watermark {
    display: none !important;
    visibility: hidden !important;
  }

  body.is-report-printing .portal-main,
  body.is-report-printing .report-preview-panel,
  body.is-report-printing .ex-report-page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    min-height: auto !important;
  }

  body.is-report-printing .ex-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
  }

  body.is-report-printing .ex-sheet {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    overflow: hidden;
    box-sizing: border-box;
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    break-inside: avoid;
  }

  body.is-report-printing .ex-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  body.is-report-printing .ex-wo-side-accent {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.btn-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--navy);
}

.report-preview-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  font-size: 0.92rem;
}

.report-preview-panel .ex-report-page {
  padding-top: 8px;
}

.report-edit-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

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

.report-edit-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.report-media-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.report-media-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border, #d8e0e6);
  border-radius: 10px;
  background: #f8fafc;
}
.report-media-slot-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-media-slot-head strong {
  font-size: 0.86rem;
  color: var(--navy);
}
.report-media-slot-head .muted {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}
.report-media-preview {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.report-media-empty {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.76rem;
  text-align: center;
  background: #fff;
}
.report-media-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 88px;
  align-content: flex-start;
}
.report-media-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}
.report-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  display: block;
}
.report-media-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.report-media-pdf {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.8rem;
}
.report-media-pdf span {
  color: #64748b;
  word-break: break-word;
}
.report-media-slot .evidence-upload-btn {
  margin-top: auto;
  text-align: center;
}
@media (max-width: 1100px) {
  .report-media-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .report-media-slots { grid-template-columns: 1fr; }
}

.vehicle-cover-photo-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border, #d8e0e6);
  border-radius: 10px;
  background: #f8fafc;
}
.vehicle-cover-photo-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}
.vehicle-cover-photo-head .muted {
  font-size: 0.78rem;
  color: #64748b;
}
.vehicle-cover-photo-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.vehicle-cover-photo-preview {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.vehicle-cover-photo-empty {
  width: 180px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.8rem;
}

.report-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-loading {
  text-align: center;
  color: var(--muted);
  padding: 48px;
}

/* ========== LOGIN (admin paneli ile aynı düzen) ========== */
body.login-body {
  background: #e8eef5;
  min-height: 100vh;
  min-height: 100dvh;
}

body.login-body #app {
  min-height: 100vh;
  min-height: 100dvh;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
}

.login-visual {
  background:
    linear-gradient(165deg, rgba(0, 27, 79, 0.94), rgba(16, 183, 201, 0.5)),
    #001b4f;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.login-visual-brand img {
  width: min(220px, 70%);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.login-visual-brand a {
  display: inline-block;
  line-height: 0;
}

.login-visual-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 700;
}

.login-visual-copy p {
  margin: 0;
  max-width: 28rem;
  opacity: 0.92;
  font-size: 1.02rem;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 40px);
  background: #e8eef5;
}

.login-card {
  width: min(100%, 420px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: grid;
  gap: 12px;
}

.login-card .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.login-card .brand a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.login-card .brand img {
  height: 40px;
  width: auto;
}

.login-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.login-card .lead {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-card label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.login-card input:focus {
  outline: 2px solid rgba(16, 183, 201, 0.35);
  border-color: var(--cyan);
}

.login-card .btn-primary {
  margin-top: 6px;
  width: 100%;
}

.login-card .alert {
  margin: 0;
}

.login-forgot {
  margin: -4px 0 0;
  font-size: 0.85rem;
  text-align: right;
}

.login-forgot a {
  color: var(--cyan);
  font-weight: 600;
}

.login-links,
.login-footer {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.login-links a,
.login-footer a {
  color: var(--muted);
}

.login-links a:hover,
.login-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 220px;
    justify-content: center;
    gap: 20px;
  }

  .login-visual-brand {
    text-align: center;
  }

  .login-visual-brand img {
    margin-inline: auto;
  }

  .login-visual-copy {
    text-align: center;
  }

  .login-visual-copy p {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 24px 18px;
  }
}

.flow-box {
  margin-top: 24px;
  padding: 16px;
  background: #f8fbfd;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.flow-box-title {
  color: var(--navy);
}

.flow-box-list {
  margin: 10px 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-divider-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.subsection-title {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 12px;
}

.back-link-mt {
  margin-top: 20px;
}

.input-uppercase {
  text-transform: uppercase;
}

.badge-inline {
  display: inline-block;
  margin: 0;
}

.report-meta-line {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-panel-link {
  width: auto;
  min-width: 0;
  padding: 10px 16px;
}

.report-ops-card-head-dot {
  color: var(--cyan);
  margin-right: 4px;
}

/* Dashboard module */
.module-page {
  max-width: 1100px;
  margin: 0 auto;
}

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

.module-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--navy);
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.module-card:hover,
.module-card.is-active {
  border-color: var(--cyan);
  box-shadow: 0 4px 16px rgba(0, 168, 196, 0.12);
}

.module-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f7fa, #d0eef5);
}

.module-card-icon--new::after,
.module-card-icon--archive::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px;
}

.module-card-icon--new::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300a8c4' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
}

.module-card-icon--archive::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300a8c4' viewBox='0 0 24 24'%3E%3Cpath d='M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z'/%3E%3C/svg%3E");
}

.module-card-label {
  font-weight: 700;
  font-size: 1rem;
}

.module-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.report-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.report-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fbfd;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy);
  flex-wrap: wrap;
}

.report-list-tabs {
  display: flex;
  gap: 6px;
}

.report-list-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}

.report-list-tab:hover {
  color: var(--navy);
}

.report-list-tab.is-active {
  background: var(--cyan);
  color: #fff;
}

.report-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.report-list-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafcfd;
}

.report-list-table tbody tr:hover {
  background: #f8fbfd;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill--draft {
  background: #e8f4fd;
  color: #1565c0;
}

.status-pill--completed {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Registration form */
.reg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reg-vin-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.reg-vin-row .field {
  flex: 1;
  min-width: 220px;
}

.reg-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.reg-parties-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.reg-parties-row .reg-party-col {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.reg-party-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 720px) {
  .reg-parties-row { grid-template-columns: 1fr; }
}

.reg-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 1rem;
}

.reg-section-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--cyan);
  border-radius: 2px;
}

.reg-copy-row {
  margin: 8px 0 4px;
}

#registration-edit-form {
  margin-top: 8px;
}

.queries-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.query-block {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.query-block-head {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* —— Dashboard & yönetim —— */
.portal-header {
  flex-wrap: wrap;
}

.portal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.portal-nav-dropdown {
  position: relative;
  display: inline-flex;
}
.portal-nav-dropdown-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.portal-nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: min(92vw, 360px);
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  z-index: 80;
  padding: 6px;
}
.portal-nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.portal-nav-menu-item:hover {
  background: #f1f5f9;
}
.portal-nav-menu-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-nav-menu-loading,
.portal-nav-menu-empty {
  padding: 12px;
  color: #64748b;
  font-size: 0.86rem;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 27, 79, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.portal-nav-link:hover {
  color: var(--navy);
  border-color: #b9cce0;
  background: #f0f7fc;
  box-shadow: 0 4px 12px rgba(0, 27, 79, 0.08);
}

.portal-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 27, 79, 0.18);
}

.portal-nav-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.portal-nav-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-nav-text {
  line-height: 1;
}

.portal-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.portal-logout-btn .portal-nav-ico {
  width: 16px;
  height: 16px;
}

/* Personel satır aksiyonları */
.staff-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-action-ico {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.btn-action-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-action--edit:hover {
  background: #eef6ff;
  border-color: #9fc0e4;
  color: #0d47a1;
  box-shadow: 0 4px 10px rgba(13, 71, 161, 0.12);
}

.btn-action--danger {
  color: #b71c1c;
  border-color: #f0c2c2;
  background: #fff8f8;
}

.btn-action--danger:hover {
  background: #ffeaea;
  border-color: #e59a9a;
  color: #8e0000;
  box-shadow: 0 4px 10px rgba(183, 28, 28, 0.12);
}

.pkg-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}

.pkg-section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pkg-section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f7fafc;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.pkg-section-chip input {
  margin: 0;
}

.pkg-card textarea,
#pkg-add-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 720px) {
  .portal-nav {
    justify-content: flex-start;
    width: 100%;
    order: 3;
  }

  .portal-nav-link {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 10px;
  }
}

.portal-user-role {
  display: block;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
}

.dashboard-page { display: grid; gap: 20px; }

.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  box-shadow: var(--shadow);
}

.dashboard-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.dashboard-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.dashboard-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

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

.dashboard-hero-actions .btn { width: auto; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-card--warn .stat-value { color: #e65100; }
.stat-card--ok .stat-value { color: var(--success); }

.dashboard-quick { margin-top: 0; }

.dashboard-select,
.report-list-head-tools select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  min-width: 160px;
}

.report-list-head-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-form-card {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.field-span-2 { grid-column: 1 / -1; }

.module-card-icon--staff {
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
}

.report-staff-meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .portal-header { gap: 10px; }
  .portal-user { text-align: left; width: 100%; order: 3; }
  .portal-nav { order: 2; width: 100%; }
}

/* ===== Vizyon Garage ana menü kartları ===== */
.vg-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.vg-menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 200px;
  padding: 22px 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.vg-menu-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: transparent;
  transition: background 0.15s;
}
.vg-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}
.vg-menu-card:hover::after,
.vg-menu-card.is-active::after {
  background: linear-gradient(90deg, #e11d48, #f97316);
}
.vg-menu-label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vg-menu-illu {
  width: 110px;
  height: 90px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.vg-menu-illu--yonetim {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Ccircle cx='60' cy='58' r='28' fill='%23e2e8f0'/%3E%3Ccircle cx='40' cy='42' r='12' fill='%2394a3b8'/%3E%3Ccircle cx='60' cy='36' r='12' fill='%2364748b'/%3E%3Ccircle cx='80' cy='42' r='12' fill='%2394a3b8'/%3E%3Crect x='28' y='58' width='64' height='8' rx='2' fill='%23cbd5e1'/%3E%3C/svg%3E");
}
.vg-menu-illu--bayilik {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Ccircle cx='48' cy='52' r='28' fill='none' stroke='%231e293b' stroke-width='6'/%3E%3Ccircle cx='78' cy='62' r='18' fill='%23f59e0b' stroke='%231e293b' stroke-width='4'/%3E%3C/svg%3E");
}
.vg-menu-illu--sosyal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Crect x='30' y='22' width='60' height='48' rx='4' fill='%23e2e8f0' stroke='%2364748b'/%3E%3Ccircle cx='48' cy='40' r='6' fill='%233b82f6'/%3E%3Ccircle cx='66' cy='40' r='6' fill='%23ec4899'/%3E%3Cpath d='M38 58h44M38 64h28' stroke='%2394a3b8' stroke-width='3'/%3E%3Ccircle cx='86' cy='70' r='10' fill='%23f97316'/%3E%3C/svg%3E");
}
.vg-menu-illu--ekspertiz {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Crect x='20' y='55' width='80' height='8' fill='%2394a3b8'/%3E%3Cpath d='M28 55c8-18 56-18 64 0' fill='none' stroke='%231e293b' stroke-width='4'/%3E%3Ccircle cx='40' cy='55' r='8' fill='%23e2e8f0' stroke='%231e293b'/%3E%3Ccircle cx='80' cy='55' r='8' fill='%23e2e8f0' stroke='%231e293b'/%3E%3Crect x='52' y='28' width='16' height='20' fill='%23f59e0b'/%3E%3C/svg%3E");
}
.vg-menu-hint { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.vg-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.vg-sub-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vg-sub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vg-sub-card:hover { border-color: var(--cyan); box-shadow: 0 6px 18px rgba(0,168,196,0.12); }
.vg-sub-card strong { font-size: 0.95rem; letter-spacing: 0.03em; }
.vg-sub-card span { font-size: 0.82rem; color: var(--muted); }

.vg-income-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
}

.sosyal-banner-preview { margin-top: 8px; }
.sosyal-banner-frame {
  min-height: 220px;
  border-radius: 16px;
  padding: 36px 28px;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.72), rgba(30,58,138,0.55)),
    linear-gradient(120deg, #0f172a, #1d4ed8 55%, #f97316);
  color: #fff;
  display: grid;
  align-content: center;
  gap: 10px;
}
.sosyal-banner-tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sosyal-banner-frame h2 { margin: 0; font-size: 1.6rem; }
.sosyal-banner-frame p { margin: 0; opacity: 0.9; max-width: 520px; }

/* Arşiv */
.arsiv-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.arsiv-filters {
  display: grid;
  gap: 12px;
}
.arsiv-filter-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.arsiv-filter-label {
  background: #facc15;
  color: #1e293b;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 4px;
}
.arsiv-filter-block input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
.btn-arsiv-filter {
  background: #6d28d9;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.arsiv-count-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.arsiv-count-box span { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.arsiv-count-box strong { display: block; margin-top: 6px; font-size: 1.8rem; color: var(--navy); }
.arsiv-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.arsiv-table-head {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 16px;
}
.arsiv-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.arsiv-table th, .arsiv-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.arsiv-table tbody tr:nth-child(even) { background: #f8fafc; }
.btn-arsiv-view {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  text-decoration: none;
}

/* İş analiz */
.analiz-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
}
.analiz-head h2 { margin: 0; font-size: 1.1rem; letter-spacing: 0.04em; }
.analiz-filters { display: grid; gap: 12px; }
.analiz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-success {
  background: #16a34a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.analiz-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.analiz-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.analiz-charts h3 { margin: 0 0 12px; font-size: 0.95rem; color: var(--navy); }
.analiz-pie-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.analiz-pie-list li { display: grid; gap: 4px; font-size: 0.85rem; }
.analiz-pie-list li strong { justify-self: end; }
.analiz-bar-track { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.analiz-bar-fill { height: 100%; background: #2563eb; }
.analiz-bars-row { display: flex; align-items: flex-end; gap: 10px; min-height: 140px; padding-top: 8px; }
.analiz-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.analiz-bar { width: 100%; max-width: 36px; background: #2563eb; border-radius: 6px 6px 0 0; }
.analiz-bar-col span { font-size: 0.7rem; color: var(--muted); }
.analiz-table-head {
  padding: 12px 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px 8px 0 0;
}

/* Müşteri */
.musteri-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.musteri-head-actions { display: flex; gap: 10px; align-items: center; }
.musteri-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.field-grow { flex: 1 1 280px; }
.musteri-name { color: #1d4ed8; }
.musteri-actions { white-space: nowrap; }

/* Finansal hareketler */
.finans-title { margin: 0; color: #1d4ed8; font-size: 1.5rem; }
.finans-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.finans-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}
.finans-card span { font-size: 0.8rem; color: var(--muted); }
.finans-card strong { font-size: 1.25rem; color: var(--navy); }
.finans-card small { font-size: 0.72rem; color: var(--muted); }
.finans-card--blue { border-top-color: #2563eb; }
.finans-card--green { border-top-color: #16a34a; }
.finans-card--orange { border-top-color: #ea580c; }
.finans-card--dark { border-top-color: #0f172a; }
.finans-filters { padding: 14px; }
.finans-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.finans-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.finans-period {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 14px 16px;
}
.finans-period-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 10px;
  font-size: 0.85rem;
}
.finans-period-metrics b { display: block; margin-top: 2px; }
.finans-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.finans-list-tabs { margin-left: auto; display: flex; gap: 6px; }
.finans-list-tabs .is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.finans-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
}
.finans-tip--out::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
}
.finans-amt { color: #dc2626; font-weight: 700; }

/* Düzenleme bölüm sihirbazı (paket adımları) */
.edit-wizard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.edit-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.edit-wizard-step:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.edit-wizard-step.is-pending {
  border-color: #fca5a5;
  background: #fef2f2;
}
.edit-wizard-step.is-pending.is-active {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18);
  background: #fff1f2;
}
.edit-wizard-step.is-done {
  border-color: #86efac;
  background: #f0fdf4;
}
.edit-wizard-step.is-done.is-active {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}
.edit-wizard-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #cbd5e1;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
}
.edit-wizard-step.is-pending .edit-wizard-step-icon {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
}
.edit-wizard-step.is-done .edit-wizard-step-icon {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.edit-wizard-step-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.25;
}
.edit-wizard-step.is-pending .edit-wizard-step-title {
  color: #991b1b;
}
.edit-wizard-step-status {
  font-size: 0.78rem;
  color: var(--muted);
}
.edit-wizard-step.is-pending .edit-wizard-step-status {
  color: #dc2626;
  font-weight: 600;
}
.edit-wizard-step.is-done .edit-wizard-step-status {
  color: #15803d;
  font-weight: 600;
}
.edit-wizard-panes {
  margin-bottom: 8px;
}
.edit-wizard-pane[hidden] {
  display: none !important;
}
.edit-wizard-actions {
  margin-top: 16px;
}
.edit-wizard-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .vg-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-sub-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arsiv-layout { grid-template-columns: 1fr; }
  .analiz-charts, .finans-cards, .analiz-stats { grid-template-columns: 1fr; }
  .edit-wizard-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vg-menu-grid { grid-template-columns: 1fr; }
  .edit-wizard-steps { grid-template-columns: 1fr 1fr; }
}
