.report-document {
  direction: rtl;
  color: #162c20;
  font-family: "IBM Plex Sans Arabic", ReportArabic, Arial, sans-serif;
  line-height: 1.7;
}
.report-sheet {
  box-sizing: border-box;
  background: #faf6ec;
  color: #162c20;
  max-width: 960px;
  width: calc(100% - 32px);
  margin: 15px auto 26px;
  padding: 40px 48px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 15px 40px #0002;
  font-size: 12px;
}
.report-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 30px;
  border-bottom: 2px solid #274d34 !important;
  padding-bottom: 23px !important;
  margin-bottom: 25px !important;
}
.report-header > div {
  flex: 1;
}
.report-header small {
  color: #476047 !important;
  font-size: 10px !important;
}
.report-header h1 {
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin: 4px 0 !important;
  color: #162c20 !important;
}
.report-header p {
  font-size: 11px !important;
  color: #80694d !important;
  margin: 0 !important;
}
.report-header img {
  width: 70px !important;
  height: 62px !important;
  object-fit: contain !important;
  transform: none !important;
  background: transparent !important;
}
.report-section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #80694d;
  font-size: 11.2px;
  border-bottom: 1px solid #ddc7ad;
  padding: 5px 0;
  margin-bottom: 12px;
}
.report-section-title span {
  font-size: 9px;
}
.report-kpis {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  margin: 0 0 24px !important;
}
.report-kpis > div {
  border: 1px solid #ddc7ad !important;
  border-radius: 8px;
  padding: 11px 13px !important;
  text-align: right;
  min-height: 88px;
  background: none !important;
}
.report-kpis small {
  display: block;
  font-size: 10px !important;
  color: #80694d !important;
}
.report-kpis strong {
  display: block;
  font-size: 21px !important;
  color: #172119 !important;
  line-height: 1.5 !important;
  margin: 1px 0 !important;
  font-weight: 600 !important;
}
.report-kpis span {
  display: block;
  font-size: 9px !important;
  color: #80694d !important;
}
.report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.report-sheet h2 {
  font-size: 11.2px !important;
  color: #80694d !important;
  border-bottom: 1px solid #ddc7ad !important;
  padding-bottom: 7px !important;
  margin: 16px 0 13px !important;
  font-weight: 500 !important;
}
.report-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 170px;
  border: 1px solid #c8d2c1;
  border-radius: 9px;
}
.report-map text {
  font-family: inherit;
}
.report-note {
  font-size: 9px;
  color: #80694d;
}
.report-summary > div {
  display: flex;
  gap: 9px;
  padding: 6px 0;
}
.report-summary > div > b {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6deca;
  color: #80694d;
  font-size: 10px;
  margin-top: 4px;
}
.report-summary p {
  margin: 0;
  font-size: 10px;
}
.report-summary strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.report-summary span {
  display: block;
  color: #53604f;
  line-height: 1.8;
}
.report-callout {
  border-inline-start: 3px solid #a8742c;
  background: #f1eadb;
  padding: 12px 15px;
  margin-top: 18px;
  border-radius: 7px;
  font-size: 11px;
}
.report-callout p {
  margin: 5px 0 0;
  line-height: 1.8;
}
.report-callout.soft {
  background: #edf0e7;
  border-color: #547954;
}
.report-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid #ddc7ad !important;
  padding-top: 12px !important;
  margin-top: 30px !important;
  gap: 15px;
  color: #80694d;
}
.report-footer > span:first-child {
  display: grid;
  grid-template-columns: 25px 1fr;
  column-gap: 6px;
  direction: ltr;
  align-items: center;
}
.report-footer img {
  width: 22px !important;
  height: 24px !important;
  grid-row: span 2;
  object-fit: contain;
  transform: none !important;
}
.report-footer b {
  font:
    600 11px "Manrope Variable",
    Arial,
    sans-serif !important;
  color: #274d34 !important;
}
.report-footer small {
  font: 6px Arial;
}
.report-footer > span:nth-child(2) {
  font-size: 9px !important;
}
.report-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 12px !important;
  color: #253d2b;
}
.report-table th,
.report-table td {
  padding: 6px 9px !important;
  border-bottom: 1px solid #ddc7ad !important;
  text-align: right;
  font-weight: 400;
  background: none !important;
}
.report-table thead th {
  font-size: 10px !important;
  color: #80694d;
  background: #f1eadb !important;
  font-weight: 500;
}
.report-table tbody tr:nth-child(even) {
  background: #f5f0e4;
}
.report-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 15px;
}
.report-source-grid ul {
  padding-inline-start: 15px !important;
  margin: 0;
  font-size: 10px;
  line-height: 1.9;
}
.report-source-grid li {
  padding: 2px 0 !important;
}
.report-actions {
  padding: 12px;
  position: sticky;
  top: 75px;
  background: #121512ed;
  z-index: 1;
}
.report-actions .btn {
  font-size: 12px;
}
.analysis-board[data-kind="reports"] {
  background: #121512bd;
}
.report-header img[src^="data:"] {
  background: transparent;
}
@media (max-width: 900px) {
  .report-sheet {
    padding: 25px;
    width: calc(100% - 20px);
  }
  .report-header h1 {
    font-size: 24px !important;
  }
  .report-kpis {
    gap: 7px !important;
  }
  .report-kpis > div {
    padding: 7px !important;
  }
  .report-kpis strong {
    font-size: 18px !important;
  }
  .report-two-col {
    gap: 14px;
  }
  .report-source-grid {
    gap: 15px;
  }
  .report-footer > span:nth-child(2) {
    font-size: 8px !important;
  }
}
@media (max-width: 600px) {
  .report-sheet {
    padding: 20px 16px;
  }
  .report-header {
    gap: 12px;
  }
  .report-header h1 {
    font-size: 20px !important;
  }
  .report-header img {
    width: 50px !important;
    height: 50px !important;
  }
  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-two-col,
  .report-source-grid {
    grid-template-columns: 1fr;
  }
  .report-table th,
  .report-table td {
    padding: 6px 3px !important;
    font-size: 9px !important;
  }
  .report-section-title {
    display: block;
  }
  .report-section-title span {
    display: block;
  }
  .report-footer {
    gap: 8px;
  }
  .report-footer > span:nth-child(2) {
    max-width: 120px;
    font-size: 7px !important;
  }
  .report-actions {
    position: static;
  }
  .report-actions .btn {
    font-size: 10px;
    padding: 6px 9px;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  html,
  body {
    overflow: visible !important;
    height: auto !important;
    background: #fff !important;
  }
  body.printing-report > *:not(#analysisBoard) {
    display: none !important;
  }
  body.printing-report #analysisBoard {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  #analysisBoard > .panel-head,
  .report-actions {
    display: none !important;
  }
  .report-document {
    font-size: 10px;
  }
  .report-sheet {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 270mm !important;
    position: relative !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 8mm !important;
    break-after: page;
    page-break-after: always;
  }
  .report-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .report-header {
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
  }
  .report-header h1 {
    font-size: 24px !important;
  }
  .report-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .report-kpis > div {
    min-height: 74px;
    padding: 9px !important;
  }
  .report-kpis strong {
    font-size: 18px !important;
  }
  .report-two-col,
  .report-source-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .report-table {
    font-size: 10px !important;
  }
  .report-table th,
  .report-table td {
    padding: 5px 7px !important;
  }
  .report-footer {
    position: absolute !important;
    bottom: 8mm;
    left: 8mm;
    right: 8mm;
  }
  .report-summary p,
  .report-source-grid ul {
    font-size: 10px;
  }
  .report-map {
    min-height: 0;
  }
  .report-section-title,
  .report-two-col,
  .report-callout,
  tr {
    break-inside: avoid;
  }
  .report-footer > span:nth-child(2) {
    max-width: none;
    font-size: 8px !important;
  }
}
