.app-sidebar .brand-text {
  font-size: 17px;
}

.login-page {
  min-height: 100vh;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar-custom .nav-header {
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8f9aaa;
  letter-spacing: 0.7px;
}

.sidebar-custom .nav-link {
  margin: 3px 10px;
  border-radius: 8px;
  padding: 10px 14px;
}

.sidebar-custom .nav-link p {
  margin-left: 6px;
}

.sidebar-custom .nav-link.active {
  background: #0d6efd;
  color: #fff;
}

.sidebar-custom .sidebar-brand {
  padding: 14px 20px;
}

/* =========================================================
   LOG İSTATİSTİK KARTLARI
   ========================================================= */

.tss-stat-card {
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
}

.tss-stat-card .inner {
  height: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tss-stat-card h3 {
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.tss-stat-card h5 {
  max-width: 100%;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tss-stat-card p {
  margin: 8px 0 0 0;
  font-size: 15px;
}

.text-bg-warning.tss-stat-card,
.text-bg-warning.tss-stat-card h3,
.text-bg-warning.tss-stat-card h5,
.text-bg-warning.tss-stat-card p,
.text-bg-warning.tss-stat-card i {
  color: #fff !important;
}

/* =========================================================
   TSS OLAY RAPORU YAZDIRMA SAYFASI
   ========================================================= */

@page {
  size: A4;
  margin: 14mm;
}

.tss-print-body {
  margin: 0;
  background: #e5e7eb;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.tss-print-body * {
  box-sizing: border-box;
}

.tss-print-actions {
  max-width: 210mm;
  margin: 16px auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tss-print-action-btn {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  text-decoration: none;
}

.tss-print-action-btn:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.92;
}

.tss-print-action-btn.primary {
  background: #0d6efd;
}

.tss-print-action-btn.secondary {
  background: #6c757d;
}

.tss-report-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px;
  padding: 16mm;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
}

.tss-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 3px solid #1f2937;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.tss-report-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tss-report-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tss-report-header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #111827;
}

.tss-report-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #4b5563;
}

.tss-report-head-right {
  text-align: right;
  min-width: 190px;
}

.tss-report-doc-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.6px;
}

.tss-report-no {
  margin-top: 5px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.tss-status-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.tss-status-badge.acik {
  background: #198754;
}

.tss-status-badge.kapali {
  background: #dc3545;
}

.tss-report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 16px;
}

.tss-report-summary div {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  padding: 9px 10px;
}

.tss-report-summary span {
  display: block;
  margin-bottom: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.tss-report-summary strong {
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.tss-report-section {
  margin-top: 13px;
  page-break-inside: avoid;
}

.tss-report-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f2937;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tss-report-section-title span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.tss-report-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  border-top: 0;
}

.tss-report-table th,
.tss-report-table td {
  border: 1px solid #d1d5db;
  padding: 8px 9px;
  vertical-align: top;
}

.tss-report-table th {
  width: 17%;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.tss-report-table td {
  width: 33%;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.tss-report-table.compact th {
  width: 18%;
}

.tss-report-table.compact td {
  width: 32%;
}

.tss-report-description {
  min-height: 120px;
  border: 1px solid #d1d5db;
  border-top: 0;
  padding: 12px;
  color: #111827;
  font-size: 12px;
  white-space: pre-wrap;
}

/* =========================================================
   TSS RAPOR İMZA ALANI
   ========================================================= */

.tss-report-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  margin-top: 48px;
  align-items: end;
}

.tss-report-signatures div {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.tss-report-signatures span {
  display: block;
  width: 210px;
  max-width: 100%;
  border-top: 1px solid #111827;
  padding-top: 8px;
  text-align: center;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.tss-report-signatures strong {
  display: block;
  width: 210px;
  max-width: 100%;
  margin-top: 4px;
  text-align: center;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

.tss-report-footer {
  margin-top: 26px;
  border-top: 1px solid #d1d5db;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 10px;
}

/* =========================================================
   TSS YAZDIRMA ÖNCESİ BİLGİ FORMU
   ========================================================= */

.tss-print-form-page {
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tss-print-form-card {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 26px;
}

.tss-print-form-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.tss-print-form-header h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
}

.tss-print-form-header p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.tss-print-form-header span {
  height: 32px;
  min-width: 70px;
  border-radius: 999px;
  background: #198754;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.tss-print-form-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 18px;
}

.tss-print-form-info div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.tss-print-form-info small {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tss-print-form-info strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.tss-print-form-group {
  margin-bottom: 16px;
}

.tss-print-form-group label {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.tss-print-form-group input {
  width: 100%;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: #111827;
  font-size: 14px;
  padding: 0 13px;
  outline: none;
}

.tss-print-form-group input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.tss-print-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  .no-print {
    display: none !important;
  }

  .tss-print-body {
    background: #ffffff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .tss-report-page {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .tss-report-header {
    margin-top: 0;
  }

  .tss-report-section {
    page-break-inside: avoid;
  }

  .tss-report-signatures {
    gap: 60px;
    margin-top: 48px;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 900px) {
  .tss-print-actions {
    max-width: calc(100% - 24px);
    margin: 12px;
  }

  .tss-report-page {
    width: calc(100% - 24px);
    min-height: auto;
    margin: 0 12px 20px;
    padding: 18px;
  }

  .tss-report-header {
    flex-direction: column;
  }

  .tss-report-head-right {
    text-align: left;
  }

  .tss-report-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 700px) {
  .tss-print-form-card {
    padding: 20px;
  }

  .tss-print-form-header {
    flex-direction: column;
  }

  .tss-print-form-info {
    grid-template-columns: 1fr;
  }

  .tss-print-form-actions {
    flex-direction: column;
  }

  .tss-print-form-actions .tss-print-action-btn {
    width: 100%;
    text-align: center;
  }

  .tss-report-signatures {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* =========================================================
   TSS Olay Detay Upload Alanı
   ========================================================= */

.tss-upload-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tss-upload-input {
  flex: 1;
}

.tss-upload-btn {
  width: 220px;
  margin-top: 31px;
  height: 38px;
}

.tss-upload-settings-info {
  border-radius: 10px;
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  padding: 10px 12px;
  font-size: 13px;
  color: #6c757d;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .tss-upload-row {
    flex-direction: column;
  }

  .tss-upload-btn {
    width: 100%;
    margin-top: 0;
  }
}
/* =========================================================
   TSS Bakım Modu Sayfası
   ========================================================= */

.tss-maintenance-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

.tss-maintenance-body * {
  box-sizing: border-box;
}

.tss-maintenance-card {
  width: min(520px, calc(100% - 32px));
  background: #ffffff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  text-align: center;
}

.tss-maintenance-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3cd;
  color: #b58100;
  font-size: 36px;
}

.tss-maintenance-title {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 10px;
}

.tss-maintenance-message {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tss-maintenance-footer {
  font-size: 13px;
  color: #9ca3af;
}

.tss-maintenance-logout {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  color: #0d6efd;
  font-size: 14px;
}

.tss-maintenance-logout:hover {
  text-decoration: underline;
}
/* =========================================================
   TSS Kullanıcı Yönetimi
   ========================================================= */

.tss-kullanici-table .tss-col-id {
  width: 70px;
}

.tss-kullanici-table .tss-col-actions {
  min-width: 430px;
}

.tss-user-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tss-user-action-group form {
  display: inline-flex;
  margin: 0;
}
/* =========================================================
   TSS Birim Yönetimi
   ========================================================= */

.tss-birim-table .tss-col-id {
  width: 70px;
}

.tss-birim-table .tss-col-actions {
  min-width: 250px;
}

.tss-birim-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.tss-birim-action-group form {
  display: inline-flex;
  margin: 0;
}
/* =========================================================
   TSS Olay Türleri Yönetimi
   ========================================================= */

.tss-olay-turu-table .tss-col-id {
  width: 70px;
}

.tss-olay-turu-table .tss-col-actions {
  min-width: 270px;
}

.tss-olay-turu-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.tss-olay-turu-action-group form {
  display: inline-flex;
  margin: 0;
}
/* =========================================================
   TSS Raporlama Merkezi
   ========================================================= */

.tss-raporlama-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.tss-raporlama-card .card-header {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  font-weight: 700;
  border-radius: 16px 16px 0 0;
}

.tss-chart-box {
  position: relative;
  height: 320px;
}

.tss-chart-box-lg {
  position: relative;
  height: 360px;
}

.tss-empty-chart {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  background: #f8f9fa;
  border-radius: 12px;
}

/* =========================================================
   TSS Görsel Rapor - Final Stabil CSS Grafik Tasarımı
   Not: Bu bölüm Chart.js kullanmaz; grafikler HTML/CSS ile çizilir.
   ========================================================= */

.tss-reportx-wrap {
  background: #eef3f9;
  padding: 18px 14px 30px;
}

.tss-reportx-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tss-reportx-actions .btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.tss-reportx-panel {
  background: #f8fafc;
  border: 1px solid #dfe6f0;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  padding: 12px;
  overflow: hidden;
}

.tss-reportx-print-page {
  background: #f8fafc;
}

.tss-reportx-hero {
  min-height: 78px;
  background:
    radial-gradient(
      circle at right top,
      rgba(13, 110, 253, 0.38),
      transparent 34%
    ),
    linear-gradient(135deg, #071827 0%, #0b2d57 55%, #0d6efd 100%);
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.tss-reportx-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.1px;
  line-height: 1.18;
}

.tss-reportx-hero p {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
}

.tss-reportx-hero p span {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.65;
}

.tss-reportx-hero-graphic {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 54px;
  opacity: 0.35;
  flex: 0 0 auto;
}

.tss-reportx-hero-graphic span {
  width: 16px;
  border-radius: 4px 4px 0 0;
  background: #38bdf8;
}

.tss-reportx-hero-graphic span:nth-child(1) {
  height: 18px;
}
.tss-reportx-hero-graphic span:nth-child(2) {
  height: 28px;
}
.tss-reportx-hero-graphic span:nth-child(3) {
  height: 36px;
}
.tss-reportx-hero-graphic span:nth-child(4) {
  height: 44px;
}
.tss-reportx-hero-graphic span:nth-child(5) {
  height: 50px;
}
.tss-reportx-hero-graphic span:nth-child(6) {
  height: 58px;
}

.tss-reportx-card {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.045);
  padding: 14px;
  overflow: hidden;
}

.tss-reportx-card-wide {
  min-height: 520px;
}

.tss-reportx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tss-reportx-card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-reportx-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #dbe5f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Dikey aylık grafik */
.tss-css-vchart {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  height: 430px;
  padding: 8px 8px 0 0;
}

.tss-css-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #64748b;
  font-size: 11px;
  padding: 3px 0 34px;
}

.tss-css-vplot {
  position: relative;
  min-width: 0;
  height: 100%;
  border-bottom: 1px solid #cbd5e1;
}

.tss-css-grid-lines {
  position: absolute;
  inset: 0 0 34px 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(20% - 1px),
    rgba(148, 163, 184, 0.28) calc(20% - 1px),
    rgba(148, 163, 184, 0.28) 20%
  );
  pointer-events: none;
}

.tss-css-months {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 54px;
  padding: 0 20px;
}

.tss-css-month-group {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.tss-css-bars {
  height: calc(100% - 34px);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

.tss-css-vbar-wrap {
  height: 100%;
  width: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tss-css-vbar {
  width: 28px;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.tss-css-vbar strong {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tss-css-month-label {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tss-css-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: #334155;
  font-size: 11px;
}

.tss-css-legend-center {
  justify-content: center;
}

.tss-css-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tss-css-legend i,
.tss-css-donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 auto;
}

/* Yatay bar grafik */
.tss-css-hbars {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  padding: 10px 10px 8px 0;
}

.tss-css-hbar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.tss-css-hbar-label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-css-hbar-track {
  position: relative;
  height: 18px;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.2) 1px,
    transparent 1px
  );
  background-size: 20% 100%;
}

.tss-css-hbar {
  height: 18px;
  min-width: 8px;
  border-radius: 0 7px 7px 0;
}

.tss-css-hbar-track strong {
  position: absolute;
  left: calc(var(--value-x, 0) + 8px);
  top: 50%;
  transform: translateY(-50%);
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.tss-css-hbar + strong {
  position: absolute;
  left: auto;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.tss-css-empty {
  color: #64748b;
  font-size: 13px;
  text-align: center;
  padding: 30px;
}

/* Donut grafik */
.tss-css-donut-layout {
  height: 300px;
  display: grid;
  grid-template-columns: 42% minmax(0, 58%);
  gap: 18px;
  align-items: center;
}

.tss-css-donut {
  width: 205px;
  height: 205px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
}

.tss-css-donut::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: #ffffff;
}

.tss-css-donut > div {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tss-css-donut strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.tss-css-donut span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.tss-css-donut-legend {
  min-width: 0;
  overflow: hidden;
}

.tss-css-donut-legend > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
}

.tss-css-donut-legend > div:last-child {
  border-bottom: 0;
}

.tss-css-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-css-donut-legend strong {
  white-space: nowrap;
  color: #111827;
  font-weight: 800;
}

/* Durum kartları */
.tss-reportx-status-grid-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 300px;
  align-content: center;
}

.tss-reportx-status-grid .status-box {
  min-height: 96px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.tss-reportx-status-grid .status-box > i {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  flex: 0 0 auto;
}

.tss-reportx-status-grid .status-box span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.tss-reportx-status-grid .status-box strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
}

.tss-reportx-status-grid .status-box small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #475569;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-green {
  background: #f0fdf4;
  border-color: #bbf7d0 !important;
}
.status-green > i {
  background: #22c55e;
}
.status-orange {
  background: #fff7ed;
  border-color: #fed7aa !important;
}
.status-orange > i {
  background: #f59e0b;
}
.status-blue {
  background: #eff6ff;
  border-color: #bfdbfe !important;
}
.status-blue > i {
  background: #0d6efd;
}
.status-red {
  background: #fff1f2;
  border-color: #fecdd3 !important;
}
.status-red > i {
  background: #dc3545;
}

.tss-reportx-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 11px;
  padding: 0 2px;
}

.tss-reportx-modal .modal-title {
  font-weight: 800;
}

.tss-reportx-section-checks {
  display: grid;
  gap: 8px;
}

.tss-reportx-section-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.tss-reportx-output-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.tss-reportx-export-hidden {
  display: none !important;
}
body.tss-reportx-capturing .tss-reportx-actions,
body.tss-reportx-capturing .no-print {
  display: none !important;
}

@media screen and (min-width: 1500px) {
  .tss-reportx-wrap .container-fluid {
    max-width: 1740px;
  }
}

@media screen and (max-width: 1200px) {
  .tss-css-donut-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .tss-css-hbars {
    height: auto;
    min-height: 260px;
  }
}

@media screen and (max-width: 768px) {
  .tss-reportx-actions {
    justify-content: flex-start;
  }
  .tss-reportx-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .tss-reportx-hero-graphic {
    display: none;
  }
  .tss-css-vchart {
    height: 330px;
  }
  .tss-reportx-status-grid-wide {
    grid-template-columns: 1fr;
  }
}

/* Yazdırma: 2 sayfa, net ve boş sayfasız */
@media print {
  @page {
    size: A4 landscape;
    margin: 7mm;
  }

  html,
  body {
    width: 297mm;
    min-height: 210mm;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print,
  .app-header,
  .app-sidebar,
  .app-footer,
  .main-footer,
  .tss-reportx-actions,
  .modal,
  .modal-backdrop,
  .btn,
  button {
    display: none !important;
  }

  .app-wrapper,
  .app-main,
  .app-content,
  .content-wrapper,
  .content,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tss-reportx-wrap {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tss-reportx-panel {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .tss-reportx-print-page {
    width: 283mm !important;
    height: 196mm !important;
    page-break-after: always !important;
    break-after: page !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
  }

  .tss-reportx-print-page:last-of-type {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .tss-reportx-print-page-1 {
    display: flex !important;
    flex-direction: column !important;
  }

  .tss-reportx-print-page-2 .row {
    --bs-gutter-x: 0.42rem !important;
    --bs-gutter-y: 0.42rem !important;
    height: 100% !important;
  }

  .tss-reportx-print-page-2 .col-xl-6,
  .tss-reportx-print-page-2 .col-lg-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
    height: 50% !important;
  }

  .tss-reportx-hero {
    min-height: 58px !important;
    height: 58px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
  }

  .tss-reportx-hero h1 {
    font-size: 17px !important;
    line-height: 1.1 !important;
  }

  .tss-reportx-hero p {
    font-size: 9px !important;
    margin-top: 4px !important;
  }

  .tss-reportx-hero-graphic {
    height: 38px !important;
    gap: 5px !important;
  }
  .tss-reportx-hero-graphic span {
    width: 10px !important;
  }

  .tss-reportx-card {
    border-radius: 7px !important;
    box-shadow: none !important;
    padding: 7px !important;
    border: 1px solid #d8e0ec !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .tss-reportx-card-wide {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .tss-reportx-card-head {
    margin-bottom: 5px !important;
  }

  .tss-reportx-card-head h3 {
    font-size: 10px !important;
  }

  .tss-reportx-card-head span {
    min-height: 17px !important;
    padding: 2px 5px !important;
    font-size: 8px !important;
  }

  .tss-css-vchart {
    height: 142mm !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .tss-css-yaxis {
    font-size: 8px !important;
    padding-bottom: 24px !important;
  }

  .tss-css-grid-lines {
    inset: 0 0 24px 0 !important;
  }

  .tss-css-months {
    gap: 30px !important;
    padding: 0 12px !important;
  }

  .tss-css-month-group {
    min-width: 120px !important;
  }

  .tss-css-bars {
    height: calc(100% - 24px) !important;
    gap: 6px !important;
  }

  .tss-css-vbar-wrap,
  .tss-css-vbar {
    width: 20px !important;
  }

  .tss-css-vbar strong {
    font-size: 8px !important;
    top: -13px !important;
  }

  .tss-css-month-label {
    height: 24px !important;
    font-size: 8px !important;
  }

  .tss-css-legend {
    font-size: 8px !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .tss-css-hbars,
  .tss-css-donut-layout,
  .tss-reportx-status-grid-wide {
    height: calc(100% - 26px) !important;
    min-height: 0 !important;
  }

  .tss-css-hbars {
    gap: 8px !important;
    padding: 4px 6px 2px 0 !important;
  }

  .tss-css-hbar-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .tss-css-hbar-label,
  .tss-css-hbar-track strong,
  .tss-css-hbar + strong {
    font-size: 8px !important;
  }

  .tss-css-hbar-track,
  .tss-css-hbar {
    height: 11px !important;
  }

  .tss-css-donut-layout {
    grid-template-columns: 38% 62% !important;
    gap: 7px !important;
  }

  .tss-css-donut {
    width: 96px !important;
    height: 96px !important;
  }

  .tss-css-donut::after {
    inset: 26px !important;
  }

  .tss-css-donut strong {
    font-size: 12px !important;
  }

  .tss-css-donut span {
    font-size: 7px !important;
  }

  .tss-css-donut-legend > div {
    padding: 3px 0 !important;
    gap: 5px !important;
    font-size: 7px !important;
  }

  .tss-css-donut-legend i {
    width: 7px !important;
    height: 7px !important;
  }

  .tss-reportx-status-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .tss-reportx-status-grid .status-box {
    min-height: 0 !important;
    padding: 6px !important;
    border-radius: 6px !important;
    gap: 7px !important;
  }

  .tss-reportx-status-grid .status-box > i {
    width: 25px !important;
    height: 25px !important;
    font-size: 11px !important;
  }

  .tss-reportx-status-grid .status-box span {
    font-size: 7px !important;
  }
  .tss-reportx-status-grid .status-box strong {
    font-size: 14px !important;
  }
  .tss-reportx-status-grid .status-box small {
    font-size: 7px !important;
    margin-top: 2px !important;
  }

  .tss-reportx-footer {
    margin-top: 4px !important;
    font-size: 7px !important;
  }
}

/* =========================================================
   TSS Görsel Rapor - Export/PDF Boşluk ve Bar Değer Düzeltmesi
   ========================================================= */

/* Yatay barlarda değer artık çubuğun içinde değil, ayrı sağ sütunda görünür */
.tss-css-hbar-row {
  grid-template-columns: 110px minmax(0, 1fr) 34px;
}

.tss-css-hbar-track {
  overflow: visible;
}

.tss-css-hbar-value {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  line-height: 18px;
  white-space: nowrap;
}

.tss-css-hbar-track strong,
.tss-css-hbar + strong {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
}

/* PDF/PNG çıktıda sağ tarafta boşluk kalmaması için sabit A4-yatay oranlı yakalama alanı */
body.tss-reportx-capturing {
  background: #ffffff !important;
  overflow: hidden !important;
}

body.tss-reportx-capturing .app-wrapper,
body.tss-reportx-capturing .app-main,
body.tss-reportx-capturing .app-content,
body.tss-reportx-capturing .content-wrapper,
body.tss-reportx-capturing .content,
body.tss-reportx-capturing .container-fluid {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tss-reportx-capturing .tss-reportx-wrap {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

body.tss-reportx-capturing .tss-reportx-panel {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body.tss-reportx-capturing .tss-reportx-print-page {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  height: 1131px !important;
  min-height: 1131px !important;
  max-height: 1131px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-1 {
  display: flex !important;
  flex-direction: column !important;
}

body.tss-reportx-capturing .tss-reportx-hero {
  min-height: 92px !important;
  height: 92px !important;
  margin: 0 0 14px 0 !important;
  border-radius: 0 0 14px 14px !important;
}

body.tss-reportx-capturing .tss-reportx-card {
  box-shadow: none !important;
}

body.tss-reportx-capturing .tss-reportx-card-wide {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.tss-reportx-capturing .tss-css-vchart {
  height: 880px !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-2 .row {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  --bs-gutter-x: 12px !important;
  --bs-gutter-y: 12px !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-2 .col-xl-6,
body.tss-reportx-capturing .tss-reportx-print-page-2 .col-lg-6 {
  width: 50% !important;
  flex: 0 0 50% !important;
  height: 50% !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-2 .tss-reportx-card {
  height: 100% !important;
}

body.tss-reportx-capturing .tss-css-hbars,
body.tss-reportx-capturing .tss-css-donut-layout,
body.tss-reportx-capturing .tss-reportx-status-grid-wide {
  height: calc(100% - 38px) !important;
  min-height: 0 !important;
}

body.tss-reportx-capturing .tss-css-hbar-row {
  grid-template-columns: 120px minmax(0, 1fr) 38px !important;
}

body.tss-reportx-capturing .tss-css-hbar-value {
  font-size: 13px !important;
}

@media print {
  .tss-css-hbar-row {
    grid-template-columns: 72px minmax(0, 1fr) 20px !important;
    gap: 6px !important;
  }

  .tss-css-hbar-value {
    font-size: 8px !important;
    line-height: 11px !important;
    text-align: right !important;
  }

  .tss-css-hbar-track strong,
  .tss-css-hbar + strong {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
}

/* =========================================================
   TSS Görsel Rapor - Final Kenar / Donut / Çıktı Düzeltmesi
   ========================================================= */

.tss-reportx-wrap {
  background: #f3f6fb;
  padding: 18px 16px 32px;
}

.tss-reportx-panel {
  background: #f8fafc;
  border: 1px solid #d7e1ee;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  padding: 16px;
  overflow: visible;
}

.tss-reportx-print-page {
  background: #f8fafc;
  box-sizing: border-box;
}

.tss-reportx-card {
  border: 2px solid #d7e1ee !important;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.tss-reportx-card-head span {
  border-color: #cfd9e7;
  background: #f8fafc;
}

/* Donut grafik artık SVG ile çizilir; conic-gradient desteğine bağlı kalmaz. */
.tss-css-donut-layout {
  height: 300px;
  display: grid;
  grid-template-columns: 42% minmax(0, 58%);
  gap: 18px;
  align-items: center;
}

.tss-css-donut-svg-wrap {
  width: 210px;
  height: 210px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tss-css-donut-svg {
  width: 210px;
  height: 210px;
  display: block;
  overflow: visible;
}

.tss-css-donut-svg .donut-bg {
  fill: none;
  stroke: #e8eef6;
  stroke-width: 42;
}

.tss-css-donut-svg .donut-seg {
  fill: none;
  stroke-width: 42;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  stroke-linecap: butt;
}

.tss-css-donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.tss-css-donut-center strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.tss-css-donut-center span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

/* Eski conic donut kutusu kullanılırsa gizli kalmasın ama yeni SVG önceliklidir. */
.tss-css-donut {
  display: none;
}

.tss-css-donut-legend {
  min-width: 0;
  overflow: hidden;
}

.tss-css-donut-legend > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #dfe6f0;
  font-size: 12px;
}

.tss-css-donut-legend > div:last-child {
  border-bottom: 0;
}

.tss-css-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-css-donut-legend strong {
  white-space: nowrap;
  font-weight: 800;
  color: #111827;
}

/* Yatay barlarda değer çubuğa binmez; ayrı sağ sütunda kalır. */
.tss-css-hbar-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 44px !important;
  align-items: center;
  gap: 12px;
}

.tss-css-hbar-track {
  overflow: hidden;
  min-width: 0;
}

.tss-css-hbar-value {
  position: static !important;
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  line-height: 18px;
  white-space: nowrap;
}

.tss-css-hbar-track strong,
.tss-css-hbar + strong {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Ekranda ve çıktı yakalamada kart çizgileri daha belirgin görünür. */
.tss-reportx-print-page-2 .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

/* =========================================================
   TSS Görsel Rapor - Yazdırma Düzeltmesi
   ========================================================= */

@media print {
  @page {
    size: A4 landscape;
    margin: 7mm;
  }

  html,
  body {
    width: 297mm;
    min-height: 210mm;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print,
  .app-header,
  .app-sidebar,
  .app-footer,
  .main-footer,
  .tss-reportx-actions,
  .modal,
  .modal-backdrop,
  .btn,
  button {
    display: none !important;
  }

  .app-wrapper,
  .app-main,
  .app-content,
  .content-wrapper,
  .content,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tss-reportx-wrap {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tss-reportx-panel {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .tss-reportx-print-page {
    width: 100% !important;
    min-height: 196mm !important;
    padding: 7mm !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    page-break-after: always;
    break-after: page;
    overflow: hidden !important;
  }

  .tss-reportx-print-page:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }

  .tss-reportx-print-page-1 {
    display: flex !important;
    flex-direction: column !important;
  }

  .tss-reportx-hero {
    min-height: 58px !important;
    height: 58px !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    margin: 0 0 7mm 0 !important;
  }

  .tss-reportx-hero h1 {
    font-size: 17px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  .tss-reportx-hero p {
    font-size: 9px !important;
    margin-top: 4px !important;
  }

  .tss-reportx-hero-graphic {
    height: 40px !important;
    gap: 5px !important;
  }

  .tss-reportx-hero-graphic span {
    width: 10px !important;
  }

  .tss-reportx-card {
    border: 2px solid #d0dbe9 !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    padding: 8px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .tss-reportx-card-wide {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .tss-reportx-card-head {
    margin-bottom: 5px !important;
  }

  .tss-reportx-card-head h3 {
    font-size: 10px !important;
  }

  .tss-reportx-card-head span {
    min-height: 17px !important;
    padding: 2px 6px !important;
    font-size: 8px !important;
    border-color: #c9d5e4 !important;
  }

  .tss-reportx-print-page-2 .row {
    height: 100% !important;
    --bs-gutter-x: 0.45rem !important;
    --bs-gutter-y: 0.45rem !important;
  }

  .tss-reportx-print-page-2 .col-xl-6,
  .tss-reportx-print-page-2 .col-lg-6 {
    height: calc(50% - 0.25rem) !important;
  }

  .tss-css-vchart {
    height: calc(100% - 42px) !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .tss-css-yaxis {
    font-size: 8px !important;
    padding-bottom: 24px !important;
  }

  .tss-css-grid-lines {
    inset: 0 0 24px 0 !important;
  }

  .tss-css-months {
    gap: 30px !important;
    padding: 0 12px !important;
  }

  .tss-css-month-group {
    min-width: 120px !important;
  }

  .tss-css-bars {
    height: calc(100% - 24px) !important;
    gap: 6px !important;
  }

  .tss-css-vbar-wrap,
  .tss-css-vbar {
    width: 20px !important;
  }

  .tss-css-vbar strong {
    font-size: 8px !important;
    top: -13px !important;
  }

  .tss-css-month-label {
    height: 24px !important;
    font-size: 8px !important;
  }

  .tss-css-legend {
    font-size: 8px !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .tss-css-hbars,
  .tss-css-donut-layout,
  .tss-reportx-status-grid-wide {
    height: calc(100% - 28px) !important;
    min-height: 0 !important;
  }

  .tss-css-hbars {
    gap: 8px !important;
    padding: 4px 4px 2px 0 !important;
  }

  .tss-css-hbar-row {
    grid-template-columns: 72px minmax(0, 1fr) 22px !important;
    gap: 6px !important;
  }

  .tss-css-hbar-label,
  .tss-css-hbar-value {
    font-size: 8px !important;
  }

  .tss-css-hbar-track,
  .tss-css-hbar {
    height: 11px !important;
  }

  .tss-css-donut-layout {
    grid-template-columns: 38% minmax(0, 62%) !important;
    gap: 7px !important;
  }

  .tss-css-donut-svg-wrap,
  .tss-css-donut-svg {
    width: 100px !important;
    height: 100px !important;
  }

  .tss-css-donut-svg .donut-bg,
  .tss-css-donut-svg .donut-seg {
    stroke-width: 40 !important;
  }

  .tss-css-donut-center strong {
    font-size: 12px !important;
  }

  .tss-css-donut-center span {
    font-size: 7px !important;
  }

  .tss-css-donut-legend > div {
    padding: 3px 0 !important;
    gap: 5px !important;
    font-size: 7px !important;
    border-bottom-color: #dfe6f0 !important;
  }

  .tss-css-donut-legend i {
    width: 7px !important;
    height: 7px !important;
  }

  .tss-reportx-status-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .tss-reportx-status-grid .status-box {
    min-height: 0 !important;
    padding: 6px !important;
    border-radius: 7px !important;
    gap: 7px !important;
    border-width: 1.5px !important;
  }

  .tss-reportx-status-grid .status-box > i {
    width: 25px !important;
    height: 25px !important;
    font-size: 11px !important;
  }

  .tss-reportx-status-grid .status-box span {
    font-size: 7px !important;
  }
  .tss-reportx-status-grid .status-box strong {
    font-size: 14px !important;
  }
  .tss-reportx-status-grid .status-box small {
    font-size: 7px !important;
    margin-top: 2px !important;
  }

  .tss-reportx-footer {
    margin-top: 4px !important;
    font-size: 7px !important;
  }
}

/* =========================================================
   TSS Görsel Rapor - PDF/PNG Yakalama Düzeltmesi
   ========================================================= */

body.tss-reportx-capturing {
  background: #ffffff !important;
  overflow: hidden !important;
}

body.tss-reportx-capturing .app-wrapper,
body.tss-reportx-capturing .app-main,
body.tss-reportx-capturing .app-content,
body.tss-reportx-capturing .content-wrapper,
body.tss-reportx-capturing .content,
body.tss-reportx-capturing .container-fluid {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tss-reportx-capturing .tss-reportx-wrap {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

body.tss-reportx-capturing .tss-reportx-panel {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body.tss-reportx-capturing .tss-reportx-print-page {
  width: 1600px !important;
  max-width: 1600px !important;
  min-width: 1600px !important;
  height: 1131px !important;
  min-height: 1131px !important;
  max-height: 1131px !important;
  padding: 28px !important;
  margin: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-1 {
  display: flex !important;
  flex-direction: column !important;
}

body.tss-reportx-capturing .tss-reportx-hero {
  min-height: 92px !important;
  height: 92px !important;
  margin: 0 0 22px 0 !important;
  border-radius: 16px !important;
}

body.tss-reportx-capturing .tss-reportx-card {
  border: 2px solid #d0dbe9 !important;
  box-shadow: none !important;
}

body.tss-reportx-capturing .tss-reportx-card-wide {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.tss-reportx-capturing .tss-css-vchart {
  height: calc(100% - 46px) !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-2 .row {
  width: 100% !important;
  height: 100% !important;
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: 1rem !important;
}

body.tss-reportx-capturing .tss-reportx-print-page-2 .col-xl-6,
body.tss-reportx-capturing .tss-reportx-print-page-2 .col-lg-6 {
  height: calc(50% - 0.5rem) !important;
}

body.tss-reportx-capturing .tss-css-hbars,
body.tss-reportx-capturing .tss-css-donut-layout,
body.tss-reportx-capturing .tss-reportx-status-grid-wide {
  height: calc(100% - 34px) !important;
}

body.tss-reportx-capturing .tss-css-hbar-row {
  grid-template-columns: 110px minmax(0, 1fr) 42px !important;
}

body.tss-reportx-capturing .tss-css-donut-svg-wrap,
body.tss-reportx-capturing .tss-css-donut-svg {
  width: 190px !important;
  height: 190px !important;
}

body.tss-reportx-capturing .tss-css-donut-legend > div {
  border-bottom-color: #dfe6f0 !important;
}

/* =========================================================
   TSS Görsel Rapor - Temiz Yazdırma Penceresi Desteği
   ========================================================= */

.tss-reportx-print-window {
  background: #ffffff !important;
}

.tss-reportx-print-window .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.tss-reportx-print-window .row > * {
  box-sizing: border-box;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.tss-reportx-print-window .col-xl-6,
.tss-reportx-print-window .col-lg-6 {
  flex: 0 0 auto;
  width: 50%;
}

.tss-reportx-print-window .g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.tss-reportx-print-window .g-3 > * {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.tss-reportx-print-window .h-100 {
  height: 100% !important;
}

@media print {
  .tss-reportx-print-window,
  .tss-reportx-print-window html,
  .tss-reportx-print-window body {
    background: #ffffff !important;
  }

  .tss-reportx-print-window .tss-reportx-print-page {
    margin: 0 !important;
  }
}
/* =========================================================
   Görsel Rapor Yazdırma - 3. Sayfa Footer Temizleme
   ========================================================= */

@media print {
  .tss-reportx-footer {
    display: none !important;
  }

  .tss-reportx-print-page:last-of-type {
    page-break-after: auto !important;
    break-after: auto !important;
    margin-bottom: 0 !important;
  }

  .tss-reportx-panel,
  .tss-reportx-wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  html,
  body {
    width: 210mm !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .app-wrapper,
  .app-main,
  .app-content,
  .container,
  .container-fluid {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .tss-print-page,
  .tss-olay-print-page,
  .tss-olay-rapor,
  .olay-rapor-page,
  .print-page,
  .report-page {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-after: auto !important;
    break-after: auto !important;
    box-shadow: none !important;
  }

  .tss-print-section,
  .tss-print-panel,
  .tss-rapor-section,
  .olay-rapor-section {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .tss-signature-area,
  .tss-print-signature,
  .signature-area,
  .imza-alani {
    margin-top: 18mm !important;
    padding-top: 4mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .tss-print-footer,
  .report-footer,
  .olay-rapor-footer {
    margin-top: 6mm !important;
    padding-top: 2mm !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 5mm;
  }

  html,
  body {
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .tss-print-body {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tss-print-actions,
  .no-print {
    display: none !important;
  }

  .tss-report-page-single {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    page-break-after: auto !important;
    break-after: auto !important;
    overflow: visible !important;
  }

  .tss-report-header {
    margin-bottom: 5mm !important;
    padding-bottom: 4mm !important;
  }

  .tss-report-summary {
    margin-bottom: 4mm !important;
  }

  .tss-report-section {
    margin-bottom: 4mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .tss-report-section-title {
    padding: 2mm 3mm !important;
  }

  .tss-report-table th,
  .tss-report-table td {
    padding: 2mm 2.5mm !important;
    line-height: 1.25 !important;
  }

  .tss-report-description {
    min-height: 22mm !important;
    padding: 5mm !important;
    line-height: 1.35 !important;
  }

  .tss-report-signatures {
    margin-top: 12mm !important;
    padding-top: 5mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .tss-report-footer {
    margin-top: 6mm !important;
    padding-top: 2mm !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }
}
/* =========================================================
   TSS Dashboard - Havacılık Kurumsal Tema
   ========================================================= */

.tss-dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(227, 6, 19, 0.22), transparent 28%),
    linear-gradient(135deg, #071426 0%, #0e2541 52%, #132f52 100%);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(7, 20, 38, 0.18);
}

.tss-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 34px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.tss-dashboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tss-dashboard-hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tss-dashboard-hero-text {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.tss-dashboard-hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.tss-dashboard-hero-meta div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tss-dashboard-hero-meta span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tss-dashboard-hero-meta strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.tss-kpi-card {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
}

.tss-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    transparent 48%
  );
  pointer-events: none;
}

.tss-kpi-content {
  position: relative;
  z-index: 2;
}

.tss-kpi-content span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.92;
}

.tss-kpi-content strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tss-kpi-content small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.tss-kpi-icon {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 62px;
}

.tss-kpi-total {
  background: linear-gradient(135deg, #071426, #173b66);
}

.tss-kpi-open {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.tss-kpi-closed {
  background: linear-gradient(135deg, #047857, #10b981);
}

.tss-kpi-today {
  background: linear-gradient(135deg, #991b1b, #e30613);
}

.tss-dashboard-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.tss-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf1f6;
  border-radius: 20px 20px 0 0 !important;
  background: #ffffff;
  padding: 18px 20px;
}

.tss-dashboard-card-header h5 {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.tss-dashboard-card-header small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.tss-trend-chart {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 250px;
  padding-top: 14px;
}

.tss-trend-item {
  display: flex;
  flex: 1;
  min-width: 42px;
  height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tss-trend-value {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.tss-trend-bar {
  position: relative;
  width: 100%;
  max-width: 54px;
  height: 150px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.tss-trend-bar-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e30613, #0e2541);
}

.tss-trend-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tss-summary-list {
  display: grid;
  gap: 12px;
}

.tss-summary-item {
  border: 1px solid #edf1f6;
  border-radius: 16px;
  padding: 15px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.tss-summary-item span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tss-summary-item strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.tss-summary-item small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.tss-progress-list {
  display: grid;
  gap: 16px;
}

.tss-progress-row {
  display: grid;
  gap: 8px;
}

.tss-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.tss-progress-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-progress-info strong {
  flex: 0 0 auto;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.tss-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.tss-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e30613, #0e2541);
}

.tss-progress-fill-alt {
  background: linear-gradient(90deg, #0e2541, #2563eb);
}

.tss-dashboard-table thead th {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tss-dashboard-table tbody td {
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}

.tss-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tss-status-open {
  background: #fef3c7;
  color: #92400e;
}

.tss-status-closed {
  background: #dcfce7;
  color: #166534;
}

.tss-empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}

.tss-w-0 {
  width: 0%;
}
.tss-w-5 {
  width: 5%;
}
.tss-w-10 {
  width: 10%;
}
.tss-w-15 {
  width: 15%;
}
.tss-w-20 {
  width: 20%;
}
.tss-w-25 {
  width: 25%;
}
.tss-w-30 {
  width: 30%;
}
.tss-w-35 {
  width: 35%;
}
.tss-w-40 {
  width: 40%;
}
.tss-w-45 {
  width: 45%;
}
.tss-w-50 {
  width: 50%;
}
.tss-w-55 {
  width: 55%;
}
.tss-w-60 {
  width: 60%;
}
.tss-w-65 {
  width: 65%;
}
.tss-w-70 {
  width: 70%;
}
.tss-w-75 {
  width: 75%;
}
.tss-w-80 {
  width: 80%;
}
.tss-w-85 {
  width: 85%;
}
.tss-w-90 {
  width: 90%;
}
.tss-w-95 {
  width: 95%;
}
.tss-w-100 {
  width: 100%;
}

.tss-h-0 {
  height: 0%;
}
.tss-h-5 {
  height: 5%;
}
.tss-h-10 {
  height: 10%;
}
.tss-h-15 {
  height: 15%;
}
.tss-h-20 {
  height: 20%;
}
.tss-h-25 {
  height: 25%;
}
.tss-h-30 {
  height: 30%;
}
.tss-h-35 {
  height: 35%;
}
.tss-h-40 {
  height: 40%;
}
.tss-h-45 {
  height: 45%;
}
.tss-h-50 {
  height: 50%;
}
.tss-h-55 {
  height: 55%;
}
.tss-h-60 {
  height: 60%;
}
.tss-h-65 {
  height: 65%;
}
.tss-h-70 {
  height: 70%;
}
.tss-h-75 {
  height: 75%;
}
.tss-h-80 {
  height: 80%;
}
.tss-h-85 {
  height: 85%;
}
.tss-h-90 {
  height: 90%;
}
.tss-h-95 {
  height: 95%;
}
.tss-h-100 {
  height: 100%;
}

@media (max-width: 767.98px) {
  .tss-dashboard-hero {
    padding: 22px;
  }

  .tss-dashboard-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tss-trend-chart {
    gap: 8px;
    min-height: 220px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tss-trend-item {
    flex: 0 0 48px;
  }
}
/* =========================================================
   TSS Dashboard - Turkish Security Services Kurumsal Tema
   Bu bloğu assets/css/custom.css dosyasının en altına ekleyin.
   ========================================================= */

:root {
  --tss-red: #d40013;
  --tss-red-dark: #a9000f;
  --tss-black: #171717;
  --tss-ink: #101828;
  --tss-muted: #667085;
  --tss-border: #e7eaf0;
  --tss-soft: #f6f7f9;
  --tss-white: #ffffff;
}

.tss-dashboard-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at 92% 20%, rgba(212, 0, 19, 0.15), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #f1f4f8 100%);
  color: var(--tss-ink);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.tss-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--tss-red), var(--tss-black));
}

.tss-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(212, 0, 19, 0.08);
  border-radius: 50%;
}

.tss-dashboard-brandline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.tss-dashboard-logo {
  display: block;
  width: auto;
  max-width: 285px;
  max-height: 62px;
  object-fit: contain;
}

.tss-dashboard-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tss-dashboard-logo-fallback span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tss-black);
  color: var(--tss-white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tss-dashboard-logo-fallback strong {
  color: var(--tss-black);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tss-dashboard-hero-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(212, 0, 19, 0.16);
  border-radius: 999px;
  background: rgba(212, 0, 19, 0.08);
  color: var(--tss-red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tss-dashboard-hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--tss-black);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.tss-dashboard-hero-text {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--tss-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.tss-dashboard-hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.tss-dashboard-hero-meta div {
  padding: 15px 16px;
  border: 1px solid var(--tss-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
}

.tss-dashboard-hero-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--tss-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tss-dashboard-hero-meta strong {
  display: block;
  color: var(--tss-black);
  font-size: 15px;
  font-weight: 900;
}

.tss-kpi-card {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 15px 34px rgba(16, 24, 40, 0.1);
}

.tss-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    transparent 48%
  );
  pointer-events: none;
}

.tss-kpi-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 108px;
  height: 108px;
  border: 18px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.tss-kpi-content {
  position: relative;
  z-index: 2;
}

.tss-kpi-content span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.94;
}

.tss-kpi-content strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.tss-kpi-content small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.tss-kpi-icon {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 62px;
}

.tss-kpi-total {
  background: linear-gradient(135deg, #171717, #343434);
}

.tss-kpi-open {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.tss-kpi-closed {
  background: linear-gradient(135deg, #047857, #10b981);
}

.tss-kpi-today {
  background: linear-gradient(135deg, var(--tss-red-dark), var(--tss-red));
}

.tss-dashboard-card {
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.07);
}

.tss-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--tss-border);
  border-radius: 22px 22px 0 0 !important;
  background: #ffffff;
  padding: 18px 20px;
}

.tss-dashboard-card-header h5 {
  font-size: 16px;
  font-weight: 950;
  color: var(--tss-black);
}

.tss-dashboard-card-header small {
  display: block;
  margin-top: 2px;
  color: var(--tss-muted);
  font-size: 12px;
  font-weight: 700;
}

.tss-trend-chart {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 250px;
  padding-top: 14px;
}

.tss-trend-item {
  display: flex;
  flex: 1;
  min-width: 42px;
  height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tss-trend-value {
  color: var(--tss-black);
  font-size: 13px;
  font-weight: 950;
}

.tss-trend-bar {
  position: relative;
  width: 100%;
  max-width: 54px;
  height: 150px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.tss-trend-bar-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tss-red), var(--tss-black));
}

.tss-trend-label {
  color: var(--tss-muted);
  font-size: 12px;
  font-weight: 900;
}

.tss-summary-list {
  display: grid;
  gap: 12px;
}

.tss-summary-item {
  border: 1px solid var(--tss-border);
  border-left: 5px solid var(--tss-red);
  border-radius: 17px;
  padding: 15px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
}

.tss-summary-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--tss-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tss-summary-item strong {
  display: block;
  color: var(--tss-black);
  font-size: 16px;
  font-weight: 950;
}

.tss-summary-item small {
  display: block;
  margin-top: 4px;
  color: var(--tss-muted);
  font-size: 12px;
  font-weight: 700;
}

.tss-progress-list {
  display: grid;
  gap: 16px;
}

.tss-progress-row {
  display: grid;
  gap: 8px;
}

.tss-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tss-black);
  font-size: 13px;
  font-weight: 900;
}

.tss-progress-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-progress-info strong {
  flex: 0 0 auto;
  color: #344054;
  font-size: 13px;
  font-weight: 950;
}

.tss-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.tss-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tss-red), var(--tss-black));
}

.tss-progress-fill-alt {
  background: linear-gradient(90deg, var(--tss-black), var(--tss-red));
}

.tss-dashboard-table thead th {
  border-bottom: 1px solid var(--tss-border);
  background: #171717;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tss-dashboard-table tbody td {
  color: var(--tss-ink);
  font-size: 13px;
  font-weight: 650;
  vertical-align: middle;
}

.tss-dashboard-table tbody tr:hover td {
  background: #fff5f6;
}

.tss-dashboard-table a {
  color: var(--tss-red-dark);
  font-weight: 950;
}

.tss-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.tss-status-open {
  background: #fef3c7;
  color: #92400e;
}

.tss-status-closed {
  background: #dcfce7;
  color: #166534;
}

.tss-empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  color: var(--tss-muted);
  text-align: center;
  font-weight: 800;
}

.tss-w-0 {
  width: 0%;
}
.tss-w-5 {
  width: 5%;
}
.tss-w-10 {
  width: 10%;
}
.tss-w-15 {
  width: 15%;
}
.tss-w-20 {
  width: 20%;
}
.tss-w-25 {
  width: 25%;
}
.tss-w-30 {
  width: 30%;
}
.tss-w-35 {
  width: 35%;
}
.tss-w-40 {
  width: 40%;
}
.tss-w-45 {
  width: 45%;
}
.tss-w-50 {
  width: 50%;
}
.tss-w-55 {
  width: 55%;
}
.tss-w-60 {
  width: 60%;
}
.tss-w-65 {
  width: 65%;
}
.tss-w-70 {
  width: 70%;
}
.tss-w-75 {
  width: 75%;
}
.tss-w-80 {
  width: 80%;
}
.tss-w-85 {
  width: 85%;
}
.tss-w-90 {
  width: 90%;
}
.tss-w-95 {
  width: 95%;
}
.tss-w-100 {
  width: 100%;
}

.tss-h-0 {
  height: 0%;
}
.tss-h-5 {
  height: 5%;
}
.tss-h-10 {
  height: 10%;
}
.tss-h-15 {
  height: 15%;
}
.tss-h-20 {
  height: 20%;
}
.tss-h-25 {
  height: 25%;
}
.tss-h-30 {
  height: 30%;
}
.tss-h-35 {
  height: 35%;
}
.tss-h-40 {
  height: 40%;
}
.tss-h-45 {
  height: 45%;
}
.tss-h-50 {
  height: 50%;
}
.tss-h-55 {
  height: 55%;
}
.tss-h-60 {
  height: 60%;
}
.tss-h-65 {
  height: 65%;
}
.tss-h-70 {
  height: 70%;
}
.tss-h-75 {
  height: 75%;
}
.tss-h-80 {
  height: 80%;
}
.tss-h-85 {
  height: 85%;
}
.tss-h-90 {
  height: 90%;
}
.tss-h-95 {
  height: 95%;
}
.tss-h-100 {
  height: 100%;
}

@media (max-width: 767.98px) {
  .tss-dashboard-hero {
    padding: 22px;
  }

  .tss-dashboard-logo {
    max-width: 230px;
    max-height: 54px;
  }

  .tss-dashboard-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tss-trend-chart {
    gap: 8px;
    min-height: 220px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tss-trend-item {
    flex: 0 0 48px;
  }
}
/* =========================================================
   TSS Layout Genel Stilleri
   Kaynak: includes/header.php içinden taşındı
   ========================================================= */
.sidebar-custom .nav-header {
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8f9aaa;
  letter-spacing: 0.7px;
}

.sidebar-custom .nav-link {
  margin: 3px 10px;
  border-radius: 8px;
  padding: 10px 14px;
}

.sidebar-custom .nav-link p {
  margin-left: 6px;
}

.sidebar-custom .nav-link.active {
  background: #0d6efd;
  color: #fff;
}

.sidebar-custom .sidebar-brand {
  padding: 14px 18px;
  min-height: 64px;
}

.sidebar-custom .brand-link {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-custom .brand-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: rgba(13, 110, 253, 0.22);
  color: #7db5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-custom .brand-text-group {
  min-width: 0;
  line-height: 1.15;
}

.sidebar-custom .brand-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.sidebar-custom .brand-subtext {
  display: block;
  font-size: 11px;
  color: #aab4c0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
  margin-top: 2px;
}

.navbar-user-info {
  font-size: 14px;
}

.navbar-user-role {
  font-size: 12px;
  color: #6c757d;
}

.small-box {
  height: 112px;
  overflow: hidden;
}

.small-box .inner {
  padding: 16px 18px;
}

.small-box h3 {
  margin-bottom: 8px;
}

.small-box h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.small-box p {
  margin-bottom: 0;
}

.small-box h3,
.small-box h5 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-card {
  border-radius: 14px;
}

.dashboard-card .card-header {
  font-weight: 600;
}

.dashboard-stat {
  border-radius: 14px;
  overflow: hidden;
}

.dashboard-stat h3 {
  font-size: 32px;
  font-weight: 700;
}

.dashboard-stat p {
  margin-bottom: 0;
  opacity: 0.9;
}
/* =========================================================
   TSS Login Page
   ========================================================= */
.tss-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(227, 6, 19, 0.16), transparent 30%),
    linear-gradient(135deg, #151515 0%, #222 45%, #f5f6f8 45%, #ffffff 100%);
  color: #202124;
}

.tss-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.tss-login-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 64px;
  overflow: hidden;
  color: #fff;
}

.tss-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055) 0 1px,
      transparent 1px 16px
    );
  pointer-events: none;
}

.tss-login-hero::after {
  content: "TSS";
  position: absolute;
  right: -24px;
  bottom: -50px;
  font-size: 210px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -12px;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.tss-login-hero-inner {
  position: relative;
  max-width: 620px;
  z-index: 1;
}

.tss-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.tss-login-hero h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -1.7px;
}

.tss-login-hero p {
  max-width: 540px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.tss-login-hero-list {
  display: grid;
  gap: 12px;
}

.tss-login-hero-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.tss-login-hero-list i {
  color: #e30613;
  font-size: 18px;
}

.tss-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.tss-login-card {
  width: 100%;
  max-width: 470px;
  padding: 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.tss-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tss-login-brand img {
  max-width: 172px;
  max-height: 58px;
  object-fit: contain;
}

.tss-login-brand-fallback {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #e30613;
  color: #fff;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.25);
}

.tss-login-brand-title {
  color: #111;
  font-weight: 800;
  line-height: 1.15;
}

.tss-login-brand-subtitle {
  margin-top: 2px;
  color: #6c757d;
  font-size: 13px;
}

.tss-login-card-title h2 {
  margin: 0 0 5px;
  color: #151515;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.tss-login-card-title p {
  margin: 0 0 22px;
  color: #6c757d;
}

.tss-login-form .form-label {
  color: #343a40;
  font-size: 13px;
  font-weight: 800;
}

.tss-login-form .input-group-text {
  min-width: 48px;
  justify-content: center;
  border-color: #dfe3e8;
  background: #f6f7f9;
  color: #e30613;
}

.tss-login-form .form-control {
  border-color: #dfe3e8;
  font-size: 15px;
}

.tss-login-form .form-control:focus {
  border-color: rgba(227, 6, 19, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.12);
}

.tss-login-submit {
  border: 0;
  background: #e30613;
  box-shadow: 0 12px 26px rgba(227, 6, 19, 0.28);
  font-weight: 800;
}

.tss-login-submit:hover,
.tss-login-submit:focus {
  background: #c90010;
}

.tss-login-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  color: #6c757d;
  font-size: 12px;
}

.tss-login-footer-note i {
  color: #e30613;
}

@media (max-width: 991.98px) {
  .tss-login-shell {
    grid-template-columns: 1fr;
    background:
      linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45)),
      linear-gradient(135deg, #151515, #2a2a2a);
  }

  .tss-login-hero {
    min-height: auto;
    padding: 36px 24px 10px;
  }

  .tss-login-hero h1 {
    font-size: 34px;
  }

  .tss-login-hero p,
  .tss-login-hero-list {
    display: none;
  }

  .tss-login-panel {
    padding: 24px;
  }

  .tss-login-card {
    max-width: 520px;
  }
}

@media (max-width: 575.98px) {
  .tss-login-hero {
    padding: 28px 18px 6px;
  }

  .tss-login-panel {
    padding: 18px;
  }

  .tss-login-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .tss-login-brand {
    align-items: flex-start;
  }

  .tss-login-brand img {
    max-width: 135px;
  }
}

/* Raporlama Merkezi - HTML/CSS grafikler */
.tss-raporlama-card {
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.tss-raporlama-card .card-header {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px 18px;
  font-weight: 700;
}

.tss-empty-chart {
  min-height: 180px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  background: #f8fafc;
}

.tss-report-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tss-report-bar-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tss-report-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #334155;
}

.tss-report-bar-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tss-report-bar-label strong {
  font-size: 13px;
  color: #111827;
}

.tss-report-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.tss-report-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827, #dc2626);
}

.tss-report-bar-fill-alt {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.tss-report-month-bars {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 2px;
}

.tss-report-month-item {
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.tss-report-month-value {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.tss-report-month-track {
  width: 28px;
  height: 150px;
  border-radius: 999px;
  background: #eef2f7;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.tss-report-month-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dc2626, #111827);
}

.tss-report-month-label {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}
.tss-rapor-actions {
  margin-top: 14px;
}

.tss-rapor-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tss-rapor-actions-group .btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tss-rapor-actions-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tss-rapor-actions-group .btn {
    width: 100%;
  }
}
.tss-rapor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tss-rapor-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tss-rapor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tss-rapor-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   TSS Görsel Rapor - Etkileşimli Grafik Animasyonları
   Chart.js kullanmadan açılış animasyonu + hover tooltip
   ========================================================= */

.tss-reportx-panel .tss-reportx-card {
  animation: tssReportxCardSoftIn 0.45s ease both;
}

.tss-reportx-panel .tss-reportx-card:nth-of-type(1) {
  animation-delay: 0.04s;
}

.tss-css-vbar-wrap,
.tss-css-hbar-row,
.tss-reportx-status-grid .status-box,
.tss-css-donut-svg .donut-seg {
  cursor: pointer;
}

.tss-css-vbar {
  transform-origin: bottom center;
  animation: tssReportxVerticalGrow 0.95s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    opacity 0.22s ease;
}

.tss-css-vbar-wrap:hover .tss-css-vbar,
.tss-css-vbar-wrap:focus-within .tss-css-vbar {
  transform: scaleY(1.04);
  filter: brightness(1.08);
}

.tss-css-vbar-wrap:nth-child(1) .tss-css-vbar {
  animation-delay: 0.06s;
}
.tss-css-vbar-wrap:nth-child(2) .tss-css-vbar {
  animation-delay: 0.1s;
}
.tss-css-vbar-wrap:nth-child(3) .tss-css-vbar {
  animation-delay: 0.14s;
}
.tss-css-vbar-wrap:nth-child(4) .tss-css-vbar {
  animation-delay: 0.18s;
}
.tss-css-vbar-wrap:nth-child(5) .tss-css-vbar {
  animation-delay: 0.22s;
}
.tss-css-vbar-wrap:nth-child(6) .tss-css-vbar {
  animation-delay: 0.26s;
}

.tss-css-hbar {
  transform-origin: left center;
  animation: tssReportxHorizontalGrow 0.85s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    opacity 0.22s ease;
}

.tss-css-hbar-row:hover .tss-css-hbar {
  transform: scaleX(1.025);
  filter: brightness(1.08);
}

.tss-css-hbar-row:hover .tss-css-hbar-label,
.tss-css-hbar-row:hover .tss-css-hbar-value {
  color: #b91c1c;
}

.tss-css-hbar-row:nth-child(1) .tss-css-hbar {
  animation-delay: 0.06s;
}
.tss-css-hbar-row:nth-child(2) .tss-css-hbar {
  animation-delay: 0.12s;
}
.tss-css-hbar-row:nth-child(3) .tss-css-hbar {
  animation-delay: 0.18s;
}
.tss-css-hbar-row:nth-child(4) .tss-css-hbar {
  animation-delay: 0.24s;
}
.tss-css-hbar-row:nth-child(5) .tss-css-hbar {
  animation-delay: 0.3s;
}
.tss-css-hbar-row:nth-child(6) .tss-css-hbar {
  animation-delay: 0.36s;
}
.tss-css-hbar-row:nth-child(7) .tss-css-hbar {
  animation-delay: 0.42s;
}
.tss-css-hbar-row:nth-child(8) .tss-css-hbar {
  animation-delay: 0.48s;
}

.tss-css-donut-svg {
  overflow: visible;
  transform-origin: center;
  animation: tssReportxDonutRotateIn 1.05s cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

.tss-css-donut-svg .donut-seg {
  transition:
    stroke-width 0.22s ease,
    filter 0.22s ease,
    opacity 0.22s ease;
  outline: none;
}

.tss-css-donut-svg:hover .donut-seg {
  opacity: 0.72;
}

.tss-css-donut-svg .donut-seg:hover,
.tss-css-donut-svg .donut-seg:focus {
  opacity: 1;
  stroke-width: 25px;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.22));
}

.tss-css-donut-center {
  animation: tssReportxDonutCenterIn 0.75s ease both;
  animation-delay: 0.28s;
}

.tss-css-donut-legend > div {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tss-css-donut-legend > div:hover {
  transform: translateX(4px);
  background-color: rgba(185, 28, 28, 0.06);
}

.tss-reportx-status-grid .status-box {
  animation: tssReportxStatusIn 0.45s ease both;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.tss-reportx-status-grid .status-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  filter: brightness(1.03);
}

.tss-reportx-status-grid .status-box:nth-child(1) {
  animation-delay: 0.08s;
}
.tss-reportx-status-grid .status-box:nth-child(2) {
  animation-delay: 0.15s;
}
.tss-reportx-status-grid .status-box:nth-child(3) {
  animation-delay: 0.22s;
}
.tss-reportx-status-grid .status-box:nth-child(4) {
  animation-delay: 0.29s;
}

.tss-chart-tooltip {
  position: fixed;
  z-index: 99999;
  max-width: 280px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.tss-chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tss-chart-tooltip::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: rgba(17, 24, 39, 0.96);
  transform: rotate(45deg);
}

@keyframes tssReportxCardSoftIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tssReportxVerticalGrow {
  from {
    transform: scaleY(0);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes tssReportxHorizontalGrow {
  from {
    transform: scaleX(0);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes tssReportxDonutRotateIn {
  from {
    opacity: 0;
    transform: rotate(-140deg) scale(0.82);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes tssReportxDonutCenterIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes tssReportxStatusIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media print {
  .tss-chart-tooltip {
    display: none !important;
  }

  .tss-reportx-panel *,
  .tss-reportx-print-window * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.tss-reportx-capturing *,
.tss-reportx-printing * {
  animation: none !important;
  transition: none !important;
}

.tss-reportx-capturing .tss-chart-tooltip,
.tss-reportx-printing .tss-chart-tooltip {
  display: none !important;
}

/* =========================================================
   TSS Sidebar Logo - Çerçevesiz / Şeffaf Yerleşim
   ========================================================= */

.sidebar-custom .tss-sidebar-brand {
  min-height: 86px;
  padding: 16px 15px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-custom .tss-sidebar-brand-link {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 8px !important;
  color: #ffffff;
  text-decoration: none;
}

.sidebar-custom .tss-sidebar-logo-card {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sidebar-custom .tss-sidebar-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.sidebar-custom .tss-sidebar-brand.has-logo .tss-sidebar-title-group {
  display: none;
}

.sidebar-custom .tss-sidebar-logo-fallback {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.22);
  color: #7db5ff;
  font-size: 20px;
}

.sidebar-custom .tss-sidebar-title-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar-custom .tss-sidebar-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-custom .tss-sidebar-subtitle {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #aab4c0;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .sidebar-custom .tss-sidebar-brand {
    min-height: 78px;
  }

  .sidebar-custom .tss-sidebar-logo-card {
    height: 56px;
  }
}

/* =========================================================
   TSS Ayarlar - Logo Kırpma Modalı
   ========================================================= */

.tss-logo-crop-stage {
  border-radius: 16px;
  background:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-color: #f8fafc;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
  padding: 18px;
}

.tss-logo-crop-box {
  position: relative;
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.92);
  touch-action: none;
  cursor: grab;
}

.tss-logo-crop-box:active {
  cursor: grabbing;
}

.tss-logo-crop-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  pointer-events: none;
}

.tss-logo-crop-box img {
  position: absolute;
  max-width: none !important;
  max-height: none !important;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.tss-logo-crop-box img.is-dragging {
  cursor: grabbing;
}

.tss-logo-crop-modal .modal-title {
  font-weight: 800;
}
