.logo-text {
  display: inline-flex;
  align-items: center;
  height: 70px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

[x-cloak] {
  display: none !important;
}

.logo-text-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #405189;
  font-weight: 800;
}

.navbar-menu .nav-link.menu-link {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.navbar-menu .nav-link.menu-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.auth-page-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(64, 81, 137, .16), transparent 34%),
    #f3f6f9;
}

.content-view .card,
.metric-card,
.customer-summary {
  border-radius: 6px;
}

.metric-card {
  display: block;
  height: 100%;
  padding: 18px;
  color: inherit;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(56, 65, 74, .15);
  text-align: left;
}

.metric-card:hover {
  transform: translateY(-1px);
}

.metric-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #405189;
  background: rgba(64, 81, 137, .12);
  font-size: 22px;
}

.metric-value {
  display: block;
  margin-top: 16px;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: #878a99;
  font-size: 13px;
}

.list-search-form {
  min-width: min(430px, 100%);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.row-actions .btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.empty-row {
  height: 150px;
  color: #878a99;
  text-align: center;
}

.customer-detail-link {
  color: #405189;
  font-weight: 600;
}

.customer-detail-link:hover {
  color: #2f3d6f;
  text-decoration: underline;
}

.customer-suggestion-box {
  padding: 10px;
  border: 1px solid #e9ebec;
  border-radius: 6px;
  background: #f8f9fa;
}

.customer-suggestion-title {
  margin-bottom: 8px;
  color: #878a99;
  font-size: 12px;
  font-weight: 700;
}

.customer-match-list {
  display: grid;
  gap: 6px;
}

.customer-match-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: inherit;
  background: #fff;
  border: 1px solid #e9ebec;
  border-radius: 6px;
  text-align: left;
}

.customer-match-item:hover {
  border-color: rgba(64, 81, 137, .38);
}

.customer-match-title,
.customer-match-meta {
  display: block;
}

.customer-match-title {
  color: #405189;
  font-weight: 700;
}

.customer-match-meta {
  margin-top: 2px;
  color: #878a99;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #0ab39c;
  background: rgba(10, 179, 156, .1);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.passive {
  color: #f06548;
  background: rgba(240, 101, 72, .1);
}

.status-pill.active {
  color: #0ab39c;
  background: rgba(10, 179, 156, .1);
}

.status-pill.opportunity {
  color: #f7b84b;
  background: rgba(247, 184, 75, .16);
}

.status-pill.danger {
  color: #f06548;
  background: rgba(240, 101, 72, .12);
}

.status-pill.test {
  color: #3577f1;
  background: rgba(53, 119, 241, .12);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  border: 1px solid #e9ebec;
  border-bottom: 0;
  border-radius: 6px;
  overflow: hidden;
}

.detail-key,
.detail-value {
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e9ebec;
}

.detail-key {
  color: #495057;
  background: #f8f9fa;
  font-weight: 600;
}

.detail-value pre {
  margin: 0;
  white-space: pre-wrap;
}

.customer-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e9ebec;
}

.customer-title {
  font-size: 20px;
  font-weight: 700;
}

.customer-subtitle {
  margin-top: 4px;
  color: #878a99;
}

.customer-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-stat {
  min-height: 66px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e9ebec;
  border-radius: 6px;
  text-align: left;
}

button.customer-stat {
  color: inherit;
}

button.customer-stat:hover {
  border-color: rgba(64, 81, 137, .38);
  box-shadow: 0 2px 6px rgba(56, 65, 74, .08);
}

.customer-stat span,
.related-head span {
  display: block;
  color: #878a99;
  font-size: 13px;
}

.customer-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

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

.customer-info-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e9ebec;
  border-radius: 6px;
  background: #fff;
}

.customer-info-item-wide {
  grid-column: span 2;
}

.customer-info-item span {
  display: block;
  margin-bottom: 7px;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
}

.customer-info-item strong {
  display: block;
  min-height: 24px;
  color: #212529;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.customer-tabs {
  gap: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}

.customer-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.tab-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #405189;
  background: rgba(64, 81, 137, .1);
  font-size: 12px;
  font-weight: 700;
}

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

.modal .form-label,
.customer-form-card .form-label {
  font-weight: 600;
}

.modal textarea.form-control,
.customer-form-card textarea.form-control {
  min-height: 92px;
}

.table td,
.table th {
  vertical-align: middle;
}

.table td {
  max-width: 420px;
  overflow-wrap: anywhere;
}

.empty-related {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: #878a99;
  border: 1px dashed #dfe2e5;
  border-radius: 6px;
  background: #fbfcfd;
}

@media (max-width: 768px) {
  .list-search-form {
    min-width: 100%;
  }

  .row-actions {
    flex-wrap: wrap;
  }

  .detail-grid,
  .customer-info-grid,
  .customer-summary {
    grid-template-columns: 1fr;
  }

  .customer-info-item-wide {
    grid-column: auto;
  }

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

/* ── Bootstrap Modal Kurumsal Tema ──
   Not: Sağa/sola taşımayı önlemek için modal-dialog
   pozisyonu sabitlenir, transform garantisi verilir. */
.modal {
  --vz-modal-bg: #fff;
}

.modal-backdrop.show {
  opacity: .55;
}

.telilet-modal .modal-dialog {
  margin: 1.75rem auto;
  transform: none !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.telilet-modal.fade .modal-dialog {
  transform: scale(.96) !important;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
  opacity: 0;
}

.telilet-modal.show .modal-dialog {
  transform: scale(1) !important;
  opacity: 1;
}

.telilet-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(34, 48, 73, .28), 0 8px 24px rgba(0, 0, 0, .08);
}

.telilet-modal .modal-content::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #405189 0%, #5163a8 50%, #405189 100%);
  z-index: 5;
}

.telilet-modal .modal-header {
  align-items: center;
  gap: 12px;
  padding: 1.15rem 1.4rem .9rem;
  border-bottom: 1px solid #eef0f4;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.telilet-modal .modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.telilet-modal .modal-title-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #405189, #5163a8);
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(64, 81, 137, .25);
}

.telilet-modal .modal-title {
  margin: 0;
  color: #2c3e50;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telilet-modal .modal-header .btn-close {
  position: relative;
  margin: 0;
  padding: .5rem;
  border-radius: 8px;
  transition: background .2s, transform .2s;
}

.telilet-modal .modal-header .btn-close:hover {
  background: rgba(240, 101, 72, .12);
  transform: rotate(90deg);
}

.telilet-modal .modal-body {
  padding: 1.35rem 1.4rem;
  color: #495057;
}

.telilet-modal .modal-footer {
  gap: .55rem;
  padding: .9rem 1.4rem 1.1rem;
  border-top: 1px solid #eef0f4;
  background: #fbfcfe;
}

.telilet-modal .modal-footer .btn {
  min-width: 110px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.25rem;
  transition: all .2s ease;
}

.telilet-modal .modal-footer .btn-primary {
  background: linear-gradient(135deg, #405189, #5163a8);
  border: 0;
  box-shadow: 0 3px 8px rgba(64, 81, 137, .25);
}

.telilet-modal .modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #364578, #4658a0);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(64, 81, 137, .35);
}

.telilet-modal .modal-footer .btn-light {
  border: 1px solid #dee2e6;
  color: #495057;
}

.telilet-modal .modal-footer .btn-light:hover {
  background: #f4f5f7;
  border-color: #ced4da;
  color: #343a40;
}

.telilet-modal .form-control:focus,
.telilet-modal .form-select:focus {
  border-color: rgba(64, 81, 137, .55);
  box-shadow: 0 0 0 .2rem rgba(64, 81, 137, .15);
}

/* Dark mode uyumu */
[data-layout-mode="dark"] .telilet-modal .modal-content {
  background: #2a2d3a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .35);
}

[data-layout-mode="dark"] .telilet-modal .modal-header {
  background: linear-gradient(180deg, #2f3342 0%, #2a2d3a 100%);
  border-bottom-color: rgba(255, 255, 255, .08);
}

[data-layout-mode="dark"] .telilet-modal .modal-title {
  color: #f3f5f8;
}

[data-layout-mode="dark"] .telilet-modal .modal-body,
[data-layout-mode="dark"] .telilet-modal .modal-footer {
  color: #c7ccd6;
  background: #2a2d3a;
}

[data-layout-mode="dark"] .telilet-modal .modal-footer {
  border-top-color: rgba(255, 255, 255, .08);
}

[data-layout-mode="dark"] .telilet-modal .modal-footer .btn-light {
  background: #353846;
  border-color: rgba(255, 255, 255, .12);
  color: #e9ecef;
}

[data-layout-mode="dark"] .telilet-modal .detail-key {
  background: #323645;
  color: #c7ccd6;
}

@media (max-width: 575.98px) {
  .telilet-modal .modal-dialog {
    margin: .5rem;
  }
  .telilet-modal .modal-header,
  .telilet-modal .modal-body,
  .telilet-modal .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .telilet-modal .modal-footer .btn {
    min-width: 0;
    flex: 1;
  }
}

/* ── SweetAlert2 Kurumsal Tema ── */
.swal2-popup.telilet-swal {
  border-radius: 16px;
  border: 1px solid rgba(64, 81, 137, .08);
  box-shadow: 0 24px 70px rgba(34, 48, 73, .18), 0 6px 20px rgba(0, 0, 0, .06);
  padding: 2.4rem 2rem 1.8rem;
  font-family: inherit;
  overflow: hidden;
}

.swal2-popup.telilet-swal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #405189 0%, #5163a8 50%, #405189 100%);
}

.swal2-popup.telilet-swal .swal2-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  padding: .2rem .4rem .4rem;
  letter-spacing: -.01em;
}

.swal2-popup.telilet-swal .swal2-html-container {
  font-size: .93rem;
  color: #6c757d;
  margin: .2rem 0 0;
  line-height: 1.6;
}

.swal2-popup.telilet-swal .swal2-icon {
  margin: 0 auto .6rem;
  width: 68px;
  height: 68px;
  border-width: 3px;
}

.swal2-popup.telilet-swal .swal2-icon .swal2-icon-content {
  font-size: 2.3rem;
  font-weight: 700;
}

.swal2-popup.telilet-swal .swal2-actions {
  margin-top: 1.6rem;
  gap: .65rem;
}

.swal2-popup.telilet-swal .swal2-styled {
  border-radius: 9px;
  font-weight: 600;
  font-size: .88rem;
  padding: .62rem 1.9rem;
  letter-spacing: .01em;
  transition: all .2s ease;
  box-shadow: none;
  min-width: 120px;
}

.swal2-popup.telilet-swal .swal2-styled:hover {
  transform: translateY(-1px);
}

.swal2-popup.telilet-swal .swal2-confirm {
  background: linear-gradient(135deg, #405189, #5163a8);
  border: none;
  color: #fff;
}

.swal2-popup.telilet-swal .swal2-confirm:hover {
  background: linear-gradient(135deg, #364578, #4658a0);
  box-shadow: 0 6px 16px rgba(64, 81, 137, .32);
}

.swal2-popup.telilet-swal .swal2-cancel {
  background: #fff;
  color: #495057;
  border: 1px solid #dee2e6;
}

.swal2-popup.telilet-swal .swal2-cancel:hover {
  background: #f4f5f7;
  border-color: #ced4da;
  color: #343a40;
}

.swal2-popup.telilet-swal .swal2-close {
  color: #adb5bd;
  font-size: 1.6rem;
  font-weight: 400;
  transition: color .2s;
}

.swal2-popup.telilet-swal .swal2-close:hover {
  color: #495057;
}

.swal2-popup.telilet-swal .swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(64, 81, 137, .28);
}

.swal2-popup.telilet-swal .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #405189, #6c7ce0);
  height: 3px;
}

/* İkon temaları (tip bazlı) */
.swal2-popup.telilet-swal.telilet-swal-success .swal2-icon {
  border-color: #2ecc71;
  color: #2ecc71;
}

.swal2-popup.telilet-swal.telilet-swal-error .swal2-icon {
  border-color: #e74c3c;
  color: #e74c3c;
}

.swal2-popup.telilet-swal.telilet-swal-warning .swal2-icon {
  border-color: #f39c12;
  color: #f39c12;
}

.swal2-popup.telilet-swal.telilet-swal-info .swal2-icon {
  border-color: #405189;
  color: #405189;
}

/* Question (confirmDialog varsayılan) — marka rengine uydur */
.swal2-popup.telilet-swal .swal2-icon.swal2-question {
  border-color: #405189;
  color: #405189;
}

/* Yıkıcı onaylar (sil / pasifleştir / iptal) */
.swal2-popup.telilet-swal.telilet-swal-danger::before {
  background: linear-gradient(90deg, #e74c3c 0%, #f06548 50%, #e74c3c 100%);
}

.swal2-popup.telilet-swal.telilet-swal-danger .swal2-icon.swal2-question {
  border-color: #f06548;
  color: #f06548;
}

.swal2-popup.telilet-swal.telilet-swal-danger .swal2-confirm {
  background: linear-gradient(135deg, #e74c3c, #f06548);
}

.swal2-popup.telilet-swal.telilet-swal-danger .swal2-confirm:hover {
  background: linear-gradient(135deg, #d63f30, #e8553d);
  box-shadow: 0 6px 16px rgba(240, 101, 72, .35);
}

.swal2-popup.telilet-swal.telilet-swal-danger .swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(240, 101, 72, .28);
}
