:root {
  --font-sans: "FuturaFuturisC", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --surface: #fafafa;
  --line: #e2e8f0;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-accent: #4caf50;

  --radius-sm: 4px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;

  --container: 980px;
}

@font-face {
  font-family: "FuturaFuturisC";
  src: url("/fonts/futura_futuris/FuturaFuturisC.woff") format("woff"),
    url("/fonts/futura_futuris/FuturaFuturisC.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaFuturisC";
  src: url("/fonts/futura_futuris/FuturaFuturisLightC.woff") format("woff"),
    url("/fonts/futura_futuris/FuturaFuturisLightC.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaFuturisC";
  src: url("/fonts/futura_futuris/FuturaFuturisC-Bold.woff") format("woff"),
    url("/fonts/futura_futuris/FuturaFuturisC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaFuturisC";
  src: url("/fonts/futura_futuris/FuturaFuturisBlackC.woff") format("woff"),
    url("/fonts/futura_futuris/FuturaFuturisBlackC.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  font-weight: 400;
}

.container {
  width: min(var(--container), calc(100% - 20px));
  margin: 14px auto 24px;
}

.report-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}
/* 
.report-header::after {
  content: "";
  display: block;
  margin-top: var(--space-4);
  border-bottom: 1px solid var(--line);
} */

.report-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: bold;
}

.report-meta-line {
  margin: 4px 0 0;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-primary);
  text-wrap: balance;
}

.report-content {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.section-block {
  border: 0;
}

.section-title {
  text-wrap: balance;
  margin: 0 var(--space-3) var(--space-4) 0;
  /* padding: 10px 0 14px; */
  /* padding-inline-start: var(--space-3); */
  font-size: clamp(16px, 1.4vw, 22px);
  border-bottom: 0;
  line-height: 0.9;
  font-weight: 400;
  background: #fff;
}

.table-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0 12px 0;
}
.table-title {
  padding: var(--space-1);
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 0;
}

.table-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.table-head .cell {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 0.8;
  color: var(--text-primary);
  font-size: 13px;
}

.table-row {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease-in-out;
}
.table-row:hover {
  background-color: var(--surface);
}

.table-row:last-child {
  border-bottom: 0;
}

.cell {
  padding: var(--space-2) var(--space-1) 6px var(--space-1);
  border-right: 1px solid var(--line);
  min-width: 0;
}

.table-head .cell:last-child,
.table-row .cell:last-child {
  border-right: 0;
}

.cell-value {
  margin: 0;
  color: var(--text-primary);
  /* font-size: 14px; */
  font-weight: 300;

  word-break: break-word;

  & > b {
    font-weight: 400;
  }
  & > img {
    height: 12px;
    margin-right: 4px;
  }
}
/* .cell-value > b {
  font-weight: 400;
} */

.cell-label-mobile {
  display: none;
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  line-height: 0.8;
  text-transform: uppercase;
}

.rich-card {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.rich-title {
  text-wrap: balance;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);

  font-size: 18px;
  font-weight: 400;
  /* font-size: clamp(24px, 2.2vw, 36px); */
}

.rich-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 300;
}

.rich-text p {
  margin: 0 0 10px;
}

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

.image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 8px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 204px;
  object-fit: contain;
  max-height: 300px;
}

.lkp-diagram {
  border: 0;
  background: #fff;
  margin: 0px 0 32px 0;
}

.lkp-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.signature-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signature-card {
  border: 0;
  padding: 0;
}

.signature-line {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 900px) {
  .signature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --space-4: 4px;
  }
  .hidden {
    display: none !important;
  }
  .container {
    width: calc(100% - 10px);
    margin-top: 8px;
  }

  .section-title {
    text-align: center;
  }
  .report-header,
  .report-content {
    padding: 12px;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--line);
    padding: var(--space-2);
    display: grid;
    gap: 4px;
  }

  .cell {
    border: 0;
    padding: 0;
    /* border-right: 0; */
    /* border-bottom: 1px solid var(--line); */
  }
  .cell-lkp {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    .cell-label-mobile {
      font-size: 12px;
      font-weight: 300;
      color: var(--text-muted);
      margin-bottom: 0px;
    }
  }
  .table-lkp .table-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 0;
  }
  .table-lkp .table-row .cell:first-child {
    width: 80%;
  }
  .table-lkp .table-row .cell:nth-child(2) {
    display: flex;
    justify-content: flex-end;
    width: 20%;
  }
  .table-lkp .table-row .cell:last-child {
    width: 100%;
  }

  .table-row .cell:last-child {
    border-bottom: 0;
  }

  .cell-label-mobile {
    display: block;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

.floating-panel {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 10px rgba(17, 24, 39, 0.08);
}

.floating-panel__views {
  font-size: 16px;
  /* color: var(--text-secondary); */
  white-space: nowrap;
}

.floating-panel__pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .floating-panel {
    right: 10px;
    left: auto;
    top: auto;
    left: 10px;
    bottom: 10px;
    justify-content: space-between;
  }

  body.auth {
    padding-bottom: 60px;
  }
}
