* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(110, 214, 226, 0.18), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 149, 116, 0.16), transparent 24%),
    linear-gradient(180deg, #fcf8f2 0%, #f5fbfc 100%);
  color: #16303a;
}
.container { width: min(1200px, calc(100% - 2rem)); margin: 2rem auto; }
.container.narrow { width: min(720px, calc(100% - 2rem)); }
.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(90, 176, 190, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 14px 34px rgba(19, 49, 58, 0.08);
  margin-bottom: 1.5rem;
}
.hero, .scan-header, .actions, .report-header { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.playful-hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.28;
}
.orb-a {
  top: -50px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: rgba(111, 216, 229, 0.42);
}
.orb-b {
  bottom: -60px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255, 147, 119, 0.24);
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: #1e9fbc;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-lockup {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 150px;
}
.brand-lockup.centered { text-align: center; }
.brand-lockup img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.hero h1,
.report-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.scan-card h2,
.card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.1;
}
.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.button {
  display: inline-block;
  background: linear-gradient(135deg, #17313a 0%, #1b7895 100%);
  color: #fff;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  font-weight: 600;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(23, 49, 58, 0.14); }
.button.secondary { background: #eef7f9; color: #17313a; }
.muted { color: #5e737a; line-height: 1.7; }
.error { color: #b71c1c; }
.stack { display: grid; gap: 1rem; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-panels .card { min-height: 100%; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #c9d8de;
  border-radius: 12px;
}
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #c9d8de;
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  background: #fbfdfe;
}
.scan-grid, .frame-grid { display: grid; gap: 1rem; }
.scan-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.frame-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bounce-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.bounce-card:hover { transform: translateY(-4px); }
.mini-scan {
  display: grid;
  gap: 0.5rem;
  border: 1px solid #dbe5ea;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6fdff 100%);
}
.mini-scan strong { font-size: 1rem; }
.foot-side-card {
  min-height: 100%;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.foot-side-card strong,
.foot-side-card .muted {
  text-align: center;
}
.sample-maps, .curve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feet-compare-section {
  padding-bottom: 1.2rem;
}
.compare-header {
  margin-bottom: 1rem;
}
.feet-pair-stage {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1rem 0.7rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  border: 1px solid rgba(128, 182, 194, 0.16);
}
.feet-pair-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem;
  align-items: start;
  padding: 1.1rem 1rem 0.4rem;
}
.feet-pair-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 90%;
  border-top: 16px solid #050505;
  border-left: 16px solid #050505;
  pointer-events: none;
}
.foot-pair-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}
.foot-pair-title {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}
.foot-pair-title strong {
  font-size: 1rem;
  color: #17313a;
}
.foot-pair-title span {
  font-size: 0.8rem;
  color: #688089;
}
.foot-canvas-wrap {
  width: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.pair-heatmap {
  width: min(100%, 170px);
  margin: 0 auto;
  filter: none;
}
.empty-foot-note {
  min-height: 220px;
  width: min(100%, 160px);
  display: grid;
  place-items: center;
  color: #6c8790;
  border: 1px dashed #cfe1e6;
  border-radius: 20px;
  background: #fbfdfe;
}
.sensor-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.scan-grid.compare-two-columns {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 1.1rem;
  padding: 1.15rem 1rem 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  border: 1px solid rgba(128, 182, 194, 0.16);
  overflow: hidden;
  align-items: start;
  box-shadow: none;
}
.scan-grid.compare-two-columns::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 42%;
    height: 86%;
    border-top: 16px solid #ffffff;
    border-left: 16px solid #ffffff;
    pointer-events: none;
}
.compare-column {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 0;
  padding: 0.35rem;
  min-width: 0;
  width: 50%;
}
.compare-column-card {
  margin-bottom: 0;
}
.compare-column-head {
  display: grid;
  gap: 0.2rem;
  text-align: center;
  margin-bottom: 0.7rem;
}
.compare-column-head strong {
  font-size: 1rem;
  color: #17313a;
}
.compare-column-head span {
  font-size: 0.8rem;
  color: #688089;
}
.compare-column-body {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  align-content: start;
}
.compare-sensor-table {
  width: 100%;
  max-width: 340px;
}
.compare-sensor-table th,
.compare-sensor-table td {
  padding-inline: 0.75rem;
}
.compare-sensor-table .sensor-name {
  white-space: nowrap;
}
.sensor-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(128, 182, 194, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%);
}
.sensor-card h4 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #17313a;
}
.bilateral-grid,
.paired-feet-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.compare-stage {
  position: relative;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
}
.compare-stage::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  width: clamp(180px, 42%, 360px);
  height: clamp(180px, 58%, 340px);
  border-top: 18px solid #050505;
  border-left: 18px solid #050505;
  pointer-events: none;
}
.paired-feet-row {
  align-items: start;
  position: relative;
  z-index: 1;
  gap: 1.4rem;
}
.heatmap-panel {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(88px, 120px);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(247, 251, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(128, 182, 194, 0.18);
}
.heatmap-panel.compact {
  grid-template-columns: 1fr;
  padding: 0.65rem;
}
.heatmap-panel.dual {
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 0.55rem 0.35rem 0.35rem;
  background: transparent;
  border: 0;
}
.sensor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
}
.sensor-name {
  color: #3f6670;
  font-weight: 700;
  text-align: left;
}
.sensor-reading {
  color: #16303a;
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  text-align: right;
}
.sensor-table th {
  color: #62808a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0.8rem 0.15rem;
}
.sensor-table th:first-child,
.sensor-table td:first-child {
  text-align: left;
}
.sensor-table th:last-child,
.sensor-table td:last-child {
  text-align: right;
}
.sensor-table td {
  padding: 0.65rem 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f1f9fb 100%);
  border-top: 1px solid #d7e7eb;
  border-bottom: 1px solid #d7e7eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.sensor-table td:first-child {
  border-left: 1px solid #d7e7eb;
  border-radius: 14px 0 0 14px;
}
.sensor-table td:last-child {
  border-right: 1px solid #d7e7eb;
  border-radius: 0 14px 14px 0;
}
.sensor-table.compact {
  border-spacing: 0 0.35rem;
}
.sensor-table.compact th,
.sensor-table.compact td {
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}
.meta-list { padding-left: 1rem; color: #60747a; }
.heatmap { display: block; max-width: 100%; height: auto; margin: 0.5rem auto; filter: drop-shadow(0 10px 20px rgba(18, 84, 110, 0.10)); }
.heatmap.small { width: 100px; }
.paired-heatmap {
  width: min(100%, 170px);
  margin-inline: auto;
  filter: none;
}
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { border: 1px solid #dbe5ea; padding: 0.65rem; text-align: center; }
.report-info p { margin: 0 0 0.65rem; }
.curve-card { padding: 1rem; border: 1px solid #dbe5ea; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%); }
code {
  display: inline-block;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: #eff5f7;
  color: #17313a;
  overflow-wrap: anywhere;
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.draw-stage {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid #dbe5ea;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}
#footCanvas {
  max-width: 100%;
  height: auto;
  border: 1px solid #dbe5ea;
  border-radius: 18px;
  touch-action: none;
  background: #f4f7f8;
}
@media (max-width: 768px) {
  .grid-two, .sample-maps, .curve-grid, .tool-layout, .heatmap-panel, .bilateral-grid, .paired-feet-row, .sensor-compare-grid, .feet-pair-frame { grid-template-columns: 1fr; }
  .feet-pair-frame {
    gap: 1.1rem;
    padding-top: 1.25rem;
  }
  .feet-pair-frame::before {
    width: 120px;
    height: 150px;
    border-top-width: 12px;
    border-left-width: 12px;
  }
  .scan-grid.compare-two-columns::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 42%;
    height: 86%;
    border-top: 16px solid #ffffff;
    border-left: 16px solid #ffffff;
    pointer-events: none;
}
  .scan-grid.compare-two-columns { gap: 0.6rem; }
  .compare-column { padding: 0.45rem; }
  .hero, .scan-header, .actions, .report-header { flex-direction: column; align-items: flex-start; }
  .brand-lockup { max-width: 130px; }
  .hero h1, .report-header h1 { max-width: none; }
}
@media print {
  .actions { display: none !important; }
  body { background: #fff; }
  .container { width: 100%; margin: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
/* =========================================================
   Temiz düzeltmeler
   ========================================================= */
.demo-line { display: none !important; }

/* Dosya assets/style.css üzerinden yüklenir */
body { overflow-x: hidden; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sensor-reading {
  font-variant-numeric: tabular-nums;
}

.scan-grid {
  align-items: stretch;
}

.report-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}

.report-foot-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfd 100%);
  border: 1px solid rgba(90, 176, 190, 0.16);
  border-radius: 22px;
  padding: 1.15rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(22, 48, 58, 0.06);
}

.report-foot-card h3 {
  margin: 0 0 0.3rem;
}

.report-foot-meta {
  color: #69818a;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.report-foot-canvas-wrap {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0.5rem 0 0.75rem;
}

.report-foot-canvas {
  width: 170px;
  height: 340px;
  display: block;
  margin: 0 auto;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}

.summary-card {
  background: #fff;
  border: 1px solid rgba(90, 176, 190, 0.14);
  border-radius: 18px;
  padding: 1rem;
}

.summary-card h3 {
  margin: 0 0 0.8rem;
}

.metric-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.65rem;
  align-items: start;
  background: #f6fbfc;
  border: 1px solid rgba(90,176,190,0.10);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.metric-key {
  color: #688089;
  font-weight: 700;
}

.metric-value {
  color: #17313a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.symbol-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.8rem;
}

.symbol-item {
  background: #fff;
  border: 1px solid rgba(90, 176, 190, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.symbol-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #17313a;
}

.metrics-note {
  margin-top: 1rem;
  background: #f5fbfc;
  border: 1px solid rgba(90,176,190,0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #536b74;
  line-height: 1.7;
}

.report-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed #d4e4e8;
  background: #fbfdfe;
  color: #688089;
}

@media (max-width: 860px) {
  .report-pair-grid,
  .report-summary-grid,
  .symbol-help {
    grid-template-columns: 1fr;
  }

  .metric-list li {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; }
  .actions { display: none !important; }
  .report-pair-grid,
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }
  .card, .summary-card, .report-foot-card, .symbol-item {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-foot-canvas {
    width: 145px !important;
    height: 290px !important;
  }
}
/* =========================================================
   İstenen beyaz referans çizgisi
   ========================================================= */
.scan-grid.compare-two-columns::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 42%;
    height: 86%;
    border-top: 16px solid #ffffff;
    border-left: 16px solid #ffffff;
    pointer-events: none;
}

/* Sağ / Sol rapor detay tabloları */
.frame-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}

.frame-detail-card {
  background: #fff;
  border: 1px solid rgba(90, 176, 190, 0.14);
  border-radius: 18px;
  padding: 1rem;
  overflow-x: auto;
}

.frame-detail-card h3 {
  margin: 0 0 0.8rem;
  color: #17313a;
}

.report-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 620px;
}

.report-data-table th,
.report-data-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e4eff2;
  text-align: right;
  white-space: nowrap;
}

.report-data-table th:first-child,
.report-data-table td:first-child,
.report-data-table th:nth-child(2),
.report-data-table td:nth-child(2) {
  text-align: left;
}

.report-data-table th {
  color: #5f7d87;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-data-table td {
  color: #17313a;
  font-variant-numeric: tabular-nums;
}

.sensor-pa-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sensor-pa-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #f6fbfc;
  border: 1px solid rgba(90,176,190,0.10);
}

.sensor-pa-name {
  font-weight: 700;
  color: #536b74;
}

.sensor-pa-value {
  font-weight: 800;
  color: #17313a;
  font-variant-numeric: tabular-nums;
}

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

@media print {
  .frame-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }

  .frame-detail-card {
    overflow: visible !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-data-table {
    min-width: 0 !important;
    font-size: 0.78rem !important;
  }

  .report-data-table th,
  .report-data-table td {
    padding: 0.35rem 0.4rem !important;
  }

  .sensor-pa-row {
    padding: 0.35rem 0.45rem !important;
  }
}
/* =========================================================
   Beyaz referans çizgisi ve gelişmiş rapor tasarımı
   ========================================================= */

.scan-grid.compare-two-columns::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 42%;
    height: 86%;
    border-top: 16px solid #ffffff;
    border-left: 16px solid #ffffff;
    pointer-events: none;
}

/* Rapor genel */
.report-pair-page .card,
.pdf-report-page .card {
  overflow: hidden;
}

.report-pair-grid,
.report-summary-grid,
.frame-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}

.report-foot-card,
.summary-card,
.frame-detail-card,
.pressure-frame-card {
  background: #fff;
  border: 1px solid rgba(90, 176, 190, 0.14);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(22, 48, 58, 0.06);
}

.report-foot-card {
  text-align: center;
}

.report-foot-meta {
  color: #69818a;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.report-foot-canvas-wrap {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0.5rem 0 0.75rem;
}

.report-foot-canvas {
  width: 170px;
  height: 340px;
  display: block;
  margin: 0 auto;
}

.report-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed #d4e4e8;
  background: #fbfdfe;
  color: #688089;
}

.metric-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.65rem;
  align-items: start;
  background: #f6fbfc;
  border: 1px solid rgba(90,176,190,0.10);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.metric-key {
  color: #688089;
  font-weight: 700;
}

.metric-value {
  color: #17313a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sensor-pa-grid {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sensor-pa-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #f6fbfc;
  border: 1px solid rgba(90,176,190,0.10);
}

.sensor-pa-name {
  font-weight: 700;
  color: #536b74;
}

.sensor-pa-value {
  font-weight: 800;
  color: #17313a;
  font-variant-numeric: tabular-nums;
}

.pressure-frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.pressure-frame-card {
  padding: 0.9rem;
}

.pressure-frame-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.pressure-frame-head strong {
  color: #17313a;
}

.pressure-frame-head span {
  color: #69818a;
  font-size: 0.86rem;
}

.pressure-frame-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.pressure-frame-canvas {
  width: 118px;
  height: 236px;
  display: block;
  margin: 0 auto;
}

.pressure-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.35rem;
}

.pressure-mini-table th,
.pressure-mini-table td {
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
  text-align: right;
  white-space: nowrap;
}

.pressure-mini-table th:first-child,
.pressure-mini-table td:first-child {
  text-align: left;
}

.pressure-mini-table td {
  background: #f6fbfc;
  border-top: 1px solid rgba(90,176,190,0.12);
  border-bottom: 1px solid rgba(90,176,190,0.12);
}

.pressure-mini-table td:first-child {
  border-left: 1px solid rgba(90,176,190,0.12);
  border-radius: 10px 0 0 10px;
}

.pressure-mini-table td:last-child {
  border-right: 1px solid rgba(90,176,190,0.12);
  border-radius: 0 10px 10px 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.report-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.report-data-table th,
.report-data-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #e4eff2;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.report-data-table th:first-child,
.report-data-table td:first-child,
.report-data-table th:nth-child(2),
.report-data-table td:nth-child(2) {
  text-align: left;
}

.report-data-table th {
  color: #5f7d87;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.frame-detail-card {
  overflow-x: auto;
}

.symbol-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.8rem;
}

.symbol-item {
  background: #fff;
  border: 1px solid rgba(90, 176, 190, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.symbol-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #17313a;
}

.metrics-note {
  margin-top: 1rem;
  background: #f5fbfc;
  border: 1px solid rgba(90,176,190,0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #536b74;
  line-height: 1.7;
}

.pdf-report-page {
  background: #eef5f7;
}

.pdf-cover {
  text-align: center;
  padding: 2rem 1rem;
}

.pdf-cover .brand-lockup {
  margin-inline: auto;
}

.pdf-section-title {
  border-bottom: 2px solid #d7e7eb;
  padding-bottom: 0.45rem;
  margin-bottom: 1rem;
}

.pdf-only-note {
  color: #69818a;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .report-pair-grid,
  .report-summary-grid,
  .frame-detail-grid,
  .symbol-help {
    grid-template-columns: 1fr;
  }

  .metric-list li {
    grid-template-columns: 1fr;
  }

  .pressure-frame-body {
    grid-template-columns: 1fr;
  }

  .report-data-table {
    min-width: 720px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  body,
  .pdf-report-page {
    background: #fff !important;
    color: #111 !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .actions,
  .button {
    display: none !important;
  }

  .card,
  .report-foot-card,
  .summary-card,
  .frame-detail-card,
  .pressure-frame-card,
  .symbol-item {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-pair-grid,
  .report-summary-grid,
  .frame-detail-grid,
  .symbol-help {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .pressure-frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .pressure-frame-body {
    grid-template-columns: 92px 1fr !important;
    gap: 0.45rem !important;
  }

  .report-foot-canvas {
    width: 135px !important;
    height: 270px !important;
  }

  .pressure-frame-canvas {
    width: 88px !important;
    height: 176px !important;
  }

  .report-data-table {
    min-width: 0 !important;
    font-size: 0.68rem !important;
  }

  .report-data-table th,
  .report-data-table td {
    padding: 0.28rem 0.28rem !important;
  }

  .pressure-mini-table th,
  .pressure-mini-table td {
    font-size: 0.66rem !important;
    padding: 0.24rem 0.25rem !important;
  }

  .metric-list li,
  .sensor-pa-row {
    padding: 0.35rem 0.45rem !important;
  }
}

/* =========================================================
   Alan tablosu, sağ ayak veri aynalama ve gelişmiş PDF raporu
   ========================================================= */

.scan-grid.compare-two-columns::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 42%;
    height: 86%;
    border-top: 16px solid #ffffff;
    border-left: 16px solid #ffffff;
    pointer-events: none;
}

.report-pair-grid,.report-summary-grid,.frame-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:1rem}
.report-foot-card,.summary-card,.frame-detail-card,.pressure-frame-card{background:#fff;border:1px solid rgba(90,176,190,.14);border-radius:20px;padding:1rem;box-shadow:0 10px 28px rgba(22,48,58,.06)}
.report-foot-card{text-align:center}.report-foot-meta{color:#69818a;font-size:.9rem;margin-bottom:.55rem}
.report-foot-canvas-wrap{display:grid;place-items:center;min-height:320px;margin:.5rem 0 .75rem}
.report-foot-canvas{width:170px;height:340px;display:block;margin:0 auto}
.report-empty{min-height:220px;display:grid;place-items:center;border-radius:18px;border:1px dashed #d4e4e8;background:#fbfdfe;color:#688089}
.metric-list{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}
.metric-list li{display:grid;grid-template-columns:170px 1fr;gap:.65rem;align-items:start;background:#f6fbfc;border:1px solid rgba(90,176,190,.10);border-radius:12px;padding:.65rem .75rem}
.metric-key{color:#688089;font-weight:700}.metric-value{color:#17313a;font-weight:800;font-variant-numeric:tabular-nums}
.sensor-pa-grid{display:grid;gap:.45rem;margin-top:.75rem}.sensor-pa-row{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:center;padding:.55rem .65rem;border-radius:12px;background:#f6fbfc;border:1px solid rgba(90,176,190,.10)}
.sensor-pa-name{font-weight:700;color:#536b74}.sensor-pa-value{font-weight:800;color:#17313a;font-variant-numeric:tabular-nums}
.pressure-frame-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:.85rem}.pressure-frame-card{padding:.9rem}
.pressure-frame-head{display:grid;gap:.25rem;margin-bottom:.65rem}.pressure-frame-head strong{color:#17313a}.pressure-frame-head span{color:#69818a;font-size:.86rem}
.pressure-frame-body{display:grid;grid-template-columns:118px 1fr;gap:.75rem;align-items:center}.pressure-frame-canvas{width:118px;height:236px;display:block;margin:0 auto}
.pressure-mini-table{width:100%;border-collapse:separate;border-spacing:0 .35rem}.pressure-mini-table th,.pressure-mini-table td{font-size:.78rem;padding:.35rem .45rem;text-align:right;white-space:nowrap}.pressure-mini-table th:first-child,.pressure-mini-table td:first-child{text-align:left}.pressure-mini-table td{background:#f6fbfc;border-top:1px solid rgba(90,176,190,.12);border-bottom:1px solid rgba(90,176,190,.12)}.pressure-mini-table td:first-child{border-left:1px solid rgba(90,176,190,.12);border-radius:10px 0 0 10px}.pressure-mini-table td:last-child{border-right:1px solid rgba(90,176,190,.12);border-radius:0 10px 10px 0;font-weight:800;font-variant-numeric:tabular-nums}
.report-data-table{width:100%;border-collapse:separate;border-spacing:0;min-width:820px}.report-data-table th,.report-data-table td{padding:.65rem .7rem;border-bottom:1px solid #e4eff2;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.report-data-table th:first-child,.report-data-table td:first-child,.report-data-table th:nth-child(2),.report-data-table td:nth-child(2){text-align:left}.report-data-table th{color:#5f7d87;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase}.frame-detail-card{overflow-x:auto}
.symbol-help{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:.8rem}.symbol-item{background:#fff;border:1px solid rgba(90,176,190,.12);border-radius:16px;padding:.9rem 1rem}.symbol-item strong{display:block;margin-bottom:.25rem;color:#17313a}.metrics-note{margin-top:1rem;background:#f5fbfc;border:1px solid rgba(90,176,190,.12);border-radius:14px;padding:.9rem 1rem;color:#536b74;line-height:1.7}
.pdf-report-page{background:#eef5f7}.pdf-cover{text-align:center;padding:2rem 1rem}.pdf-cover .brand-lockup{margin-inline:auto}.pdf-section-title{border-bottom:2px solid #d7e7eb;padding-bottom:.45rem;margin-bottom:1rem}.pdf-only-note{color:#69818a;font-size:.9rem}
@media(max-width:900px){.report-pair-grid,.report-summary-grid,.frame-detail-grid,.symbol-help{grid-template-columns:1fr}.metric-list li,.pressure-frame-body{grid-template-columns:1fr}.report-data-table{min-width:780px}}
@media print{@page{size:A4;margin:9mm}body,.pdf-report-page{background:#fff!important;color:#111!important}.container{width:100%!important;max-width:none!important;margin:0!important}.actions,.button{display:none!important}.card,.report-foot-card,.summary-card,.frame-detail-card,.pressure-frame-card,.symbol-item{box-shadow:none!important;break-inside:avoid;page-break-inside:avoid}.report-pair-grid,.report-summary-grid,.frame-detail-grid,.symbol-help{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.65rem!important}.pressure-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.55rem!important}.pressure-frame-body{grid-template-columns:90px 1fr!important;gap:.45rem!important}.report-foot-canvas{width:135px!important;height:270px!important}.pressure-frame-canvas{width:88px!important;height:176px!important}.report-data-table{min-width:0!important;font-size:.66rem!important}.report-data-table th,.report-data-table td{padding:.25rem .24rem!important}.pressure-mini-table th,.pressure-mini-table td{font-size:.66rem!important;padding:.24rem .25rem!important}.metric-list li,.sensor-pa-row{padding:.35rem .45rem!important}}
/* =========================================================
   Admin paneli ve 5 analiz yan yana düzeni
   ========================================================= */
.pressure-frame-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
}

.pressure-frame-card {
  min-width: 0;
  padding: 0.7rem !important;
}

.pressure-frame-body {
  grid-template-columns: 1fr !important;
  gap: 0.45rem !important;
}

.pressure-frame-canvas {
  width: 90px !important;
  height: 180px !important;
}

.pressure-frame-head strong {
  font-size: 0.9rem;
}

.pressure-frame-head span {
  font-size: 0.72rem;
}

.pressure-mini-table th,
.pressure-mini-table td {
  font-size: 0.68rem !important;
  padding: 0.22rem 0.26rem !important;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.admin-table th {
  color: #66818a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  background: #f6fbfc;
  border-top: 1px solid rgba(90,176,190,.14);
  border-bottom: 1px solid rgba(90,176,190,.14);
}

.admin-table td:first-child {
  border-left: 1px solid rgba(90,176,190,.14);
  border-radius: 12px 0 0 12px;
  font-weight: 800;
}

.admin-table td:last-child {
  border-right: 1px solid rgba(90,176,190,.14);
  border-radius: 0 12px 12px 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-return-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-report-user {
  page-break-before: always;
}

.admin-report-user:first-of-type {
  page-break-before: auto;
}

@media (max-width: 1100px) {
  .pressure-frame-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .pressure-frame-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-return-card {
    display: block;
  }

  .admin-table {
    min-width: 720px;
  }
}

@media print {
  .pressure-frame-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
  }

  .pressure-frame-card {
    padding: 0.38rem !important;
  }

  .pressure-frame-canvas {
    width: 62px !important;
    height: 124px !important;
  }

  .pressure-mini-table th,
  .pressure-mini-table td {
    font-size: 0.52rem !important;
    padding: 0.12rem 0.14rem !important;
  }

  .pressure-frame-head strong {
    font-size: 0.66rem !important;
  }

  .pressure-frame-head span {
    font-size: 0.52rem !important;
  }
}
/* =========================================================
   6 frame yan yana düzeni + admin rapor görselleri
   ========================================================= */
.pressure-frame-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
}

.pressure-frame-card {
  min-width: 0;
  padding: 0.55rem !important;
}

.pressure-frame-body {
  grid-template-columns: 1fr !important;
  gap: 0.35rem !important;
}

.pressure-frame-canvas {
  width: 78px !important;
  height: 156px !important;
}

.pressure-frame-head strong {
  font-size: 0.78rem !important;
  line-height: 1.2;
}

.pressure-frame-head span {
  font-size: 0.58rem !important;
  line-height: 1.35;
}

.pressure-mini-table th,
.pressure-mini-table td {
  font-size: 0.56rem !important;
  padding: 0.14rem 0.16rem !important;
}

@media (max-width: 1300px) {
  .pressure-frame-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .pressure-frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .pressure-frame-grid {
    grid-template-columns: 1fr !important;
  }
}

@media print {
  .pressure-frame-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
  }

  .pressure-frame-card {
    padding: 0.22rem !important;
  }

  .pressure-frame-canvas {
    width: 46px !important;
    height: 92px !important;
  }

  .pressure-frame-head strong {
    font-size: 0.48rem !important;
  }

  .pressure-frame-head span {
    font-size: 0.38rem !important;
  }

  .pressure-mini-table th,
  .pressure-mini-table td {
    font-size: 0.38rem !important;
    padding: 0.06rem 0.07rem !important;
  }
}
/* =========================================================
   Sol ayak aynalama + A4 rapor sayfası
   ========================================================= */
.pdf-report-page .container {
  width: min(210mm, calc(100% - 16px));
  max-width: 210mm;
  margin: 8mm auto;
}

.pdf-report-page .card {
  border-radius: 16px;
}

.pressure-frame-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
  }

  .pdf-report-page .container,
  .container {
    width: 194mm !important;
    max-width: 194mm !important;
    margin: 0 auto !important;
  }

  .card {
    margin-bottom: 6mm !important;
  }

  .pdf-cover {
    min-height: auto !important;
    padding: 10mm 5mm !important;
  }

  .pressure-frame-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.22rem !important;
  }

  .pressure-frame-card {
    padding: 0.18rem !important;
  }

  .pressure-frame-canvas {
    width: 43px !important;
    height: 86px !important;
  }
}

/* Sol ayak değer aynalama kesinleştirme: PHP tarafında S6-S5-S4-S3-S2-S1 olarak yapılır. */

/* Zorunlu sayfa içi değer aynalama: dashboard/report/admin sayfalarında hf_values_for_display ile yapılır. */

/* kPa format v410: basınç değerleri PHP tarafında kPa ve 2 ondalık olarak gösterilir. */

/* v420 sol ayak yazı ve değer aynalama: sol ayakta değer ters çevrilir, yazılar Sol/Sağ olarak düzeltilir. */
/* =========================================================
   v430 PDF tablo tam görünüm düzeltmesi
   ========================================================= */

/* PDF sayfasında sağ/sol sayısal tabloları yan yana değil, alt alta tam genişlik göster */
.pdf-report-page .frame-detail-grid {
  grid-template-columns: 1fr !important;
  gap: 0.8rem !important;
}

.pdf-report-page .frame-detail-card {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0.7rem !important;
}

.pdf-report-page .report-data-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 0.58rem !important;
}

.pdf-report-page .report-data-table th,
.pdf-report-page .report-data-table td {
  padding: 0.18rem 0.16rem !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.15 !important;
}

.pdf-report-page .report-data-table th:first-child,
.pdf-report-page .report-data-table td:first-child {
  width: 8% !important;
}

.pdf-report-page .report-data-table th:nth-child(2),
.pdf-report-page .report-data-table td:nth-child(2) {
  width: 18% !important;
}

.pdf-report-page .report-data-table th:nth-child(n+3),
.pdf-report-page .report-data-table td:nth-child(n+3) {
  width: 7.4% !important;
}

@media print {
  /* آخر تعريف مقصود حتى لا تقسم صفحة PDF الجدول إلى عمودين */
  .pdf-report-page .frame-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 4mm !important;
  }

  .pdf-report-page .frame-detail-card {
    overflow: visible !important;
    padding: 3mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdf-report-page .report-data-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    font-size: 5.6pt !important;
  }

  .pdf-report-page .report-data-table th,
  .pdf-report-page .report-data-table td {
    padding: 1.1pt 1pt !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.12 !important;
  }

  .pdf-report-page .report-data-table th:first-child,
  .pdf-report-page .report-data-table td:first-child {
    width: 8% !important;
  }

  .pdf-report-page .report-data-table th:nth-child(2),
  .pdf-report-page .report-data-table td:nth-child(2) {
    width: 18% !important;
  }

  .pdf-report-page .report-data-table th:nth-child(n+3),
  .pdf-report-page .report-data-table td:nth-child(n+3) {
    width: 7.4% !important;
  }
}
/* =========================================================
   v440 Karşılıklı sağ / sol ayak raporu
   ========================================================= */
.report-foot-body {
  display: grid;
  align-items: center;
  gap: 0.85rem;
}

.report-foot-body.data-left {
  grid-template-columns: minmax(170px, 1fr) auto;
}

.report-foot-body.data-right {
  grid-template-columns: auto minmax(170px, 1fr);
}

.report-side-data {
  margin-top: 0 !important;
}

.opposite-frame-grid {
  display: grid;
  gap: 0.85rem;
}

.opposite-frame-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(90,176,190,0.14);
  border-radius: 20px;
  padding: 0.85rem;
  box-shadow: 0 8px 22px rgba(22,48,58,0.05);
}

.opposite-frame-title {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #17313a;
  border-bottom: 1px solid #e2eef1;
  padding-bottom: 0.45rem;
}

.opposite-frame-title span {
  color: #688089;
  font-weight: 800;
}

.opposite-foot-panel {
  min-width: 0;
  border-radius: 16px;
  background: #f8fcfd;
  border: 1px solid rgba(90,176,190,0.10);
  padding: 0.65rem;
}

.opposite-foot-panel h4 {
  margin: 0 0 0.45rem;
  color: #17313a;
  text-align: center;
}

.opposite-foot-content {
  display: grid;
  gap: 0.55rem;
  align-items: center;
}

.opposite-foot-content.data-left {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.opposite-foot-content.data-right {
  grid-template-columns: auto minmax(160px, 1fr);
}

.opposite-foot-canvas {
  width: 86px;
  height: 172px;
  display: block;
  margin: 0 auto;
}

.opposite-data-table {
  width: 100%;
  min-width: 0 !important;
}

.opposite-data-table td {
  font-size: 0.7rem !important;
  padding: 0.22rem 0.25rem !important;
}

.opposite-total-line {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: #536b74;
  text-align: center;
  font-weight: 700;
}

.opposite-vs {
  display: grid;
  place-items: center;
  color: #5ab0be;
  font-size: 1.5rem;
  font-weight: 900;
}

.compact-empty {
  min-height: 120px !important;
}

@media (max-width: 980px) {
  .report-foot-body.data-left,
  .report-foot-body.data-right,
  .opposite-foot-content.data-left,
  .opposite-foot-content.data-right {
    grid-template-columns: 1fr;
  }

  .opposite-frame-card {
    grid-template-columns: 1fr;
  }

  .opposite-vs {
    transform: rotate(90deg);
  }
}

@media print {
  .report-foot-body.data-left,
  .report-foot-body.data-right {
    gap: 2mm !important;
  }

  .opposite-frame-card {
    grid-template-columns: minmax(0, 1fr) 8mm minmax(0, 1fr) !important;
    gap: 2mm !important;
    padding: 2.5mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .opposite-foot-content.data-left,
  .opposite-foot-content.data-right {
    grid-template-columns: minmax(0, 1fr) 14mm !important;
    gap: 1.5mm !important;
  }

  .opposite-foot-content.data-right {
    grid-template-columns: 14mm minmax(0, 1fr) !important;
  }

  .opposite-foot-canvas {
    width: 12mm !important;
    height: 24mm !important;
  }

  .opposite-data-table td {
    font-size: 5pt !important;
    padding: 0.7pt 0.8pt !important;
  }

  .opposite-total-line {
    font-size: 5pt !important;
  }

  .opposite-frame-title {
    padding-bottom: 1.2mm !important;
  }

  .opposite-frame-title strong,
  .opposite-frame-title span,
  .opposite-foot-panel h4 {
    font-size: 6pt !important;
  }
}
/* =========================================================
   v450 Sayısal tablo sütun genişliği düzeltmesi
   Bölüm sütunu küçültüldü, Toplam/Ortalama/Maksimum genişletildi.
   ========================================================= */

.report-data-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}

.report-data-table th,
.report-data-table td {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.report-data-table th {
  white-space: nowrap !important;
  line-height: 1.05 !important;
  font-size: 0.62rem !important;
}

.report-data-table td {
  line-height: 1.12 !important;
}

.report-data-table th:first-child,
.report-data-table td:first-child {
  width: 6% !important;
}

.report-data-table th:nth-child(2),
.report-data-table td:nth-child(2) {
  width: 12% !important;
  max-width: 12% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.report-data-table th:nth-child(3),
.report-data-table td:nth-child(3),
.report-data-table th:nth-child(4),
.report-data-table td:nth-child(4),
.report-data-table th:nth-child(5),
.report-data-table td:nth-child(5),
.report-data-table th:nth-child(6),
.report-data-table td:nth-child(6),
.report-data-table th:nth-child(7),
.report-data-table td:nth-child(7),
.report-data-table th:nth-child(8),
.report-data-table td:nth-child(8) {
  width: 6.2% !important;
}

.report-data-table th:nth-child(9),
.report-data-table td:nth-child(9) {
  width: 10% !important;
}

.report-data-table th:nth-child(10),
.report-data-table td:nth-child(10) {
  width: 11% !important;
}

.report-data-table th:nth-child(11),
.report-data-table td:nth-child(11) {
  width: 11% !important;
}

/* PDF özel: başlıkların kırılmadan tam görünmesi */
.pdf-report-page .report-data-table th {
  white-space: nowrap !important;
  font-size: 5.2pt !important;
  letter-spacing: 0 !important;
}

.pdf-report-page .report-data-table td {
  font-size: 5.2pt !important;
}

.pdf-report-page .report-data-table th:nth-child(2),
.pdf-report-page .report-data-table td:nth-child(2) {
  width: 12% !important;
}

.pdf-report-page .report-data-table th:nth-child(9),
.pdf-report-page .report-data-table td:nth-child(9) {
  width: 10% !important;
}

.pdf-report-page .report-data-table th:nth-child(10),
.pdf-report-page .report-data-table td:nth-child(10) {
  width: 11% !important;
}

.pdf-report-page .report-data-table th:nth-child(11),
.pdf-report-page .report-data-table td:nth-child(11) {
  width: 11% !important;
}

@media print {
  .report-data-table th {
    white-space: nowrap !important;
    font-size: 5pt !important;
    letter-spacing: 0 !important;
  }

  .report-data-table td {
    font-size: 5pt !important;
  }

  .report-data-table th:first-child,
  .report-data-table td:first-child {
    width: 6% !important;
  }

  .report-data-table th:nth-child(2),
  .report-data-table td:nth-child(2) {
    width: 12% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .report-data-table th:nth-child(9),
  .report-data-table td:nth-child(9) {
    width: 10% !important;
  }

  .report-data-table th:nth-child(10),
  .report-data-table td:nth-child(10) {
    width: 11% !important;
  }

  .report-data-table th:nth-child(11),
  .report-data-table td:nth-child(11) {
    width: 11% !important;
  }
}
/* =========================================================
   v461 Birim seçimi ve KVKK rapor notu
   ========================================================= */
.unit-settings-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.unit-settings-form select {
  min-width: 160px;
  border: 1px solid #d7e7eb;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: #fff;
  color: #17313a;
  font-weight: 800;
}

.kvva-card {
  border-left: 6px solid #5ab0be;
}

.kvva-card p {
  line-height: 1.7;
}

/* v461 KVKK düzeltmesi: veri saklama kanunu ifadesi KVKK olarak düzeltildi. */

/* v462 KVKK metin sadeleştirme: istenen açıklama cümleleri rapordan kaldırıldı. */
/* =========================================================
   v463 Ayak Basınç Haritası düzeni
   Görsel üstte, yazılar altta
   ========================================================= */
.report-foot-body,
.report-foot-body.data-left,
.report-foot-body.data-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.85rem !important;
}

.report-foot-canvas-wrap {
  order: 1 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.report-side-data {
  order: 2 !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.report-foot-canvas {
  display: block !important;
  margin: 0 auto !important;
}

@media print {
  .report-foot-body,
  .report-foot-body.data-left,
  .report-foot-body.data-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2mm !important;
  }

  .report-foot-canvas-wrap {
    width: 100% !important;
    justify-content: center !important;
  }

  .report-side-data {
    width: 100% !important;
  }
}
