.reports-content {
  padding-top: 28px;
}


/* =====================================================
   HEADER
===================================================== */

.reports-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}


.reports-badge {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 6px 10px;

  border: 1px solid #dbe5fb;

  border-radius: 999px;

  color: #5366cf;

  background: #f0f3ff;

  font-size: 11px;

  font-weight: 800;
}


.reports-heading h1 {
  margin-top: 10px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 29px;

  letter-spacing: -1px;
}


.reports-heading p {
  max-width: 720px;

  margin-top: 5px;

  color: #718095;

  font-size: 12.5px;

  line-height: 1.6;
}


.reports-heading-actions {
  display: flex;

  gap: 8px;
}


.reports-primary-btn,
.reports-secondary-btn {
  min-height: 40px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 0 13px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 11px;

  font-weight: 800;
}


.reports-primary-btn {
  color: white;

  background:
    linear-gradient(
      100deg,
      #5864d4,
      #737bef
    );

  box-shadow:
    0 10px 24px
    rgba(88,100,212,.18);
}


.reports-secondary-btn {
  color: #56677d;

  border: 1px solid #dbe4ef;

  background: white;
}


/* =====================================================
   STATS
===================================================== */

.reports-stats {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 11px;

  margin-bottom: 18px;
}


.reports-stats article {
  display: flex;

  align-items: center;

  gap: 11px;

  padding: 14px;

  border: 1px solid #dfe8ef;

  border-radius: 15px;

  background: white;

  box-shadow:
    0 10px 27px
    rgba(20,73,118,.035);
}


.report-stat-icon {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 11px;
}


.report-stat-icon.blue {
  color: #1688ff;
  background: #eaf5ff;
}


.report-stat-icon.green {
  color: #159768;
  background: #e7f8f1;
}


.report-stat-icon.purple {
  color: #705ed2;
  background: #f0edff;
}


.report-stat-icon.orange {
  color: #d99118;
  background: #fff4df;
}


.reports-stats strong {
  display: block;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 16px;
}


.reports-stats span {
  display: block;

  margin-top: 2px;

  color: #8390a3;

  font-size: 10px;
}


/* =====================================================
   REPORT BUILDER
===================================================== */

.report-builder {
  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    360px;

  gap: 16px;

  align-items: start;
}


.report-builder-main,
.report-preview-panel {
  border: 1px solid #dfe7ef;

  border-radius: 19px;

  background: white;

  box-shadow:
    0 12px 34px
    rgba(19,72,117,.04);
}


.report-builder-main {
  overflow: hidden;
}


.report-builder-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 19px;

  border-bottom: 1px solid #edf1f5;
}


.report-builder-heading span {
  color: #5964d4;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.report-builder-heading h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 17px;
}


.report-builder-heading p {
  margin-top: 3px;

  color: #8793a4;

  font-size: 10px;
}


.builder-step {
  padding: 7px 9px;

  border-radius: 10px;

  background: #f2f4ff;

  text-align: right;
}


.builder-step span {
  display: block;

  color: #8995a5;

  font-size: 6px;
}


.builder-step strong {
  display: block;

  margin-top: 2px;

  color: #5964d4;

  font-size: 11px;
}


/* =====================================================
   REPORT SECTION
===================================================== */

.report-section {
  padding: 18px 19px;

  border-bottom: 1px solid #edf1f5;
}


.report-section:last-of-type {
  border-bottom: 0;
}


.report-section-title {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 13px;
}


.report-section-number {
  width: 28px;
  height: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 9px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #5964d4,
      #727aeb
    );

  font-size: 10px;

  font-weight: 800;
}


.report-section-title strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.report-section-title div > span {
  display: block;

  margin-top: 2px;

  color: #8794a5;

  font-size: 6.5px;
}


/* =====================================================
   TYPE
===================================================== */

.report-type-grid {
  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 9px;
}


.report-type-option {
  position: relative;

  display: flex;

  align-items: flex-start;

  gap: 10px;

  min-height: 82px;

  padding: 11px;

  border: 1px solid #dfe7ef;

  border-radius: 12px;

  background: #fbfcfe;

  cursor: pointer;

  transition: .2s ease;
}


.report-type-option:hover {
  border-color: #cbd4ef;

  background: #f8f9ff;
}


.report-type-option.selected {
  border-color: #9ca7ee;

  background:
    linear-gradient(
      135deg,
      #f5f6ff,
      #ffffff
    );

  box-shadow:
    0 7px 20px
    rgba(91,101,213,.06);
}


.report-type-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.report-type-icon {
  width: 37px;
  height: 37px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 10px;

  font-size: 12.5px;
}


.report-type-icon.blue {
  color: #1688ff;
  background: #eaf5ff;
}


.report-type-icon.green {
  color: #159768;
  background: #e7f8f1;
}


.report-type-icon.purple {
  color: #725fd4;
  background: #f0edff;
}


.report-type-icon.orange {
  color: #d99017;
  background: #fff4df;
}


.report-type-option strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.report-type-option span {
  display: block;

  margin-top: 3px;

  color: #8390a2;

  font-size: 6.5px;

  line-height: 1.45;
}


/* =====================================================
   PERIOD
===================================================== */

.report-period-grid {
  display: grid;

  grid-template-columns:
    1.1fr
    1fr
    1fr;

  gap: 9px;
}


.report-field label {
  display: block;

  margin-bottom: 5px;

  color: #63758a;

  font-size: 10px;

  font-weight: 700;
}


.report-field select,
.report-field input {
  width: 100%;
  height: 39px;

  padding: 0 9px;

  border: 1px solid #dce5ed;

  border-radius: 9px;

  outline: none;

  color: #55677c;

  background: #fafcfd;

  font-family: inherit;

  font-size: 11px;
}


.report-field select:focus,
.report-field input:focus {
  border-color: #aeb7ec;

  box-shadow:
    0 0 0 3px
    rgba(89,100,212,.06);
}


/* =====================================================
   MODULES
===================================================== */

.report-module-grid {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 8px;
}


.report-module {
  position: relative;

  min-height: 86px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 7px;

  padding: 10px;

  border: 1px solid #e0e7ef;

  border-radius: 11px;

  background: #fbfcfe;

  cursor: pointer;

  transition: .2s ease;
}


.report-module:hover {
  border-color: #cbd5e1;
}


.report-module.selected {
  border-color: #a9b2ee;

  background: #f5f6ff;
}


.report-module input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.report-module > i {
  color: #606ad6;

  font-size: 13px;
}


.report-module strong {
  display: block;

  color: #061326;

  font-size: 10px;
}


.report-module small {
  display: block;

  margin-top: 2px;

  color: #8a97a7;

  font-size: 6px;
}


/* =====================================================
   FORMAT
===================================================== */

.report-format-grid {
  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 9px;
}


.report-format {
  position: relative;

  display: flex;

  align-items: center;

  gap: 9px;

  padding: 10px;

  border: 1px solid #e0e7ef;

  border-radius: 11px;

  background: #fbfcfe;

  cursor: pointer;

  transition: .2s ease;
}


.report-format:hover {
  border-color: #cbd5e1;
}


.report-format.selected {
  border-color: #aab4ef;

  background: #f6f7ff;
}


.report-format input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.format-icon {
  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  font-size: 13px;
}


.format-icon.pdf {
  color: #d34c5a;
  background: #ffedf0;
}


.format-icon.excel {
  color: #159768;
  background: #e8f8f0;
}


.format-icon.csv {
  color: #1688ff;
  background: #eaf5ff;
}


.report-format strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.report-format span {
  display: block;

  margin-top: 2px;

  color: #8794a5;

  font-size: 6.5px;
}


/* =====================================================
   BUILDER ACTIONS
===================================================== */

.report-builder-actions {
  display: flex;

  justify-content: flex-end;

  gap: 8px;

  padding: 16px 19px;

  background: #fafbfd;
}


.preview-report-btn,
.generate-report-btn {
  min-height: 38px;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 0 12px;

  border-radius: 9px;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


.preview-report-btn {
  color: #596b81;

  border: 1px solid #dbe5ed;

  background: white;
}


.generate-report-btn {
  color: white;

  background:
    linear-gradient(
      100deg,
      #5964d4,
      #737bef
    );
}


/* =====================================================
   PREVIEW PANEL
===================================================== */

.report-preview-panel {
  position: sticky;

  top: 18px;

  padding: 15px;
}


.report-preview-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 12px;
}


.report-preview-heading span {
  color: #5964d4;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.report-preview-heading h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.report-preview-heading button {
  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid #dce5ed;

  border-radius: 9px;

  color: #66778c;

  background: white;

  cursor: pointer;
}


/* =====================================================
   DOCUMENT PREVIEW
===================================================== */

.report-document {
  min-height: 480px;

  padding: 18px;

  border: 1px solid #d9e1ea;

  border-radius: 11px;

  background: white;

  box-shadow:
    0 12px 35px
    rgba(17,49,83,.08);
}


.report-document-header {
  display: flex;

  align-items: center;

  gap: 8px;

  padding-bottom: 12px;

  border-bottom: 1px solid #edf1f5;
}


.report-document-logo {
  width: 30px;
  height: 30px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 8px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #5663d1,
      #16a6b0
    );

  font-size: 11.5px;
}


.report-document-header strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.report-document-header span {
  display: block;

  margin-top: 1px;

  color: #8a96a5;

  font-size: 5.5px;
}


.report-document-title {
  padding: 19px 0 13px;
}


.report-document-title > span {
  color: #5964d4;

  font-size: 5.5px;

  font-weight: 800;

  letter-spacing: .8px;
}


.report-document-title h3 {
  margin-top: 4px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 17px;
}


.report-document-title p {
  margin-top: 3px;

  color: #8a96a6;

  font-size: 6px;
}


.report-document-summary {
  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 6px;
}


.report-document-summary div {
  padding: 9px 6px;

  border-radius: 8px;

  background: #f6f8fb;

  text-align: center;
}


.report-document-summary strong {
  display: block;

  color: #061326;

  font-size: 13px;
}


.report-document-summary span {
  color: #8a96a5;

  font-size: 5.5px;
}


/* FAKE CHART */

.report-fake-chart {
  margin-top: 16px;

  padding: 10px;

  border: 1px solid #edf1f5;

  border-radius: 9px;
}


.fake-chart-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  color: #7d8998;

  font-size: 5.5px;
}


.fake-chart-heading strong {
  color: #56667a;

  font-size: 5.5px;
}


.fake-bars {
  height: 90px;

  display: flex;

  align-items: flex-end;

  gap: 8px;

  margin-top: 10px;

  padding-top: 10px;

  border-bottom: 1px solid #e7edf2;
}


.fake-bars span {
  flex: 1;

  border-radius: 4px 4px 1px 1px;

  background:
    linear-gradient(
      180deg,
      #6471dc,
      #1fb1b3
    );
}


/* FINDINGS */

.report-document-findings {
  margin-top: 15px;
}


.report-document-findings > span {
  color: #68778b;

  font-size: 5.5px;

  font-weight: 800;
}


.report-document-findings div {
  display: flex;

  align-items: flex-start;

  gap: 5px;

  margin-top: 7px;

  color: #65758a;

  font-size: 5.5px;

  line-height: 1.5;
}


.report-document-findings i {
  margin-top: 1px;

  color: #159768;
}


.report-document-footer {
  display: flex;

  justify-content: space-between;

  margin-top: 18px;

  padding-top: 9px;

  border-top: 1px solid #edf1f5;

  color: #96a1ad;

  font-size: 5px;
}


/* =====================================================
   PREVIEW INFO
===================================================== */

.preview-info {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7px;

  margin-top: 10px;
}


.preview-info > div {
  display: flex;

  align-items: center;

  gap: 7px;

  padding: 9px;

  border-radius: 9px;

  background: #f7f9fb;
}


.preview-info i {
  color: #5964d4;
}


.preview-info strong {
  display: block;

  color: #061326;

  font-size: 6.5px;
}


.preview-info small {
  display: block;

  margin-top: 2px;

  color: #8995a5;

  font-size: 5.5px;
}


/* =====================================================
   SECTIONS
===================================================== */

.reports-section {
  margin-top: 27px;
}


.reports-section-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 13px;
}


.reports-section-heading span {
  color: #5964d4;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.reports-section-heading h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 20px;
}


.reports-section-heading p {
  margin-top: 3px;

  color: #8794a5;

  font-size: 11px;
}


/* =====================================================
   TEMPLATES
===================================================== */

.report-template-grid {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 12px;
}


.report-template-card {
  padding: 15px;

  border: 1px solid #dfe7ef;

  border-radius: 16px;

  background: white;

  transition: .2s ease;
}


.report-template-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 13px 30px
    rgba(20,73,118,.06);
}


.template-icon {
  width: 39px;
  height: 39px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  font-size: 13px;
}


.template-icon.blue {
  color: #1688ff;
  background: #eaf5ff;
}


.template-icon.green {
  color: #159768;
  background: #e7f8f1;
}


.template-icon.purple {
  color: #715fd4;
  background: #f0edff;
}


.template-icon.orange {
  color: #d99017;
  background: #fff4df;
}


.report-template-card > span {
  display: block;

  margin-top: 11px;

  color: #5964d4;

  font-size: 6px;

  font-weight: 800;

  letter-spacing: .7px;
}


.report-template-card h3 {
  margin-top: 5px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 13px;
}


.report-template-card p {
  min-height: 44px;

  margin-top: 5px;

  color: #7d899a;

  font-size: 10px;

  line-height: 1.5;
}


.template-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 10px;
}


.template-meta span {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  padding: 4px 6px;

  border-radius: 999px;

  color: #697b90;

  background: #f3f6f9;

  font-size: 6px;
}


.use-template-btn {
  width: 100%;

  min-height: 33px;

  margin-top: 11px;

  border: 1px solid #dbe4ed;

  border-radius: 8px;

  color: #596a80;

  background: white;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


/* =====================================================
   RECENT REPORTS
===================================================== */

.recent-reports-card {
  margin-top: 27px;

  padding: 18px;

  border: 1px solid #dfe7ef;

  border-radius: 18px;

  background: white;
}


.recent-heading {
  margin-bottom: 7px;
}


.recent-heading button {
  min-height: 33px;

  padding: 0 10px;

  border: 1px solid #dce5ed;

  border-radius: 8px;

  color: #617288;

  background: white;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


.recent-reports-list {
  margin-top: 7px;
}


.recent-report-row {
  display: grid;

  grid-template-columns:
    38px
    minmax(0,1fr)
    90px
    75px
    34px;

  align-items: center;

  gap: 10px;

  padding: 11px 0;

  border-bottom: 1px solid #edf1f5;
}


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


.recent-report-file {
  width: 35px;
  height: 35px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 9px;

  font-size: 12.5px;
}


.recent-report-file.pdf {
  color: #d34c5a;
  background: #ffedf0;
}


.recent-report-file.excel {
  color: #159768;
  background: #e8f8f0;
}


.recent-report-file.csv {
  color: #1688ff;
  background: #eaf5ff;
}


.recent-report-info strong {
  display: block;

  color: #061326;

  font-size: 10.5px;
}


.recent-report-info span {
  display: block;

  margin-top: 3px;

  color: #8a97a7;

  font-size: 6px;
}


.recent-report-type {
  width: fit-content;

  padding: 4px 6px;

  border-radius: 999px;

  color: #61728a;

  background: #f1f4f7;

  font-size: 6px;
}


.recent-report-status {
  display: inline-flex;

  align-items: center;

  gap: 4px;

  color: #168c63;

  font-size: 6px;

  font-weight: 700;
}


.download-report-btn {
  width: 31px;
  height: 31px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid #dce5ed;

  border-radius: 8px;

  color: #617288;

  background: white;

  cursor: pointer;
}


/* =====================================================
   SECURITY
===================================================== */

.report-security-note {
  display: grid;

  grid-template-columns:
    42px
    1fr
    auto;

  align-items: center;

  gap: 12px;

  margin-top: 27px;

  padding: 16px;

  border: 1px solid #dbe6f1;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #f7faff,
      #fbfcff
    );
}


.report-security-icon {
  width: 41px;
  height: 41px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: #1688ff;

  background: #eaf5ff;

  font-size: 14px;
}


.report-security-note span {
  color: #5964d4;

  font-size: 6px;

  font-weight: 800;

  letter-spacing: .8px;
}


.report-security-note h3 {
  margin-top: 3px;

  color: #061326;

  font-size: 11.5px;
}


.report-security-note p {
  margin-top: 3px;

  color: #7c899a;

  font-size: 10px;

  line-height: 1.5;
}


.report-security-note a {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  min-height: 34px;

  padding: 0 10px;

  border-radius: 8px;

  color: #5964d4;

  background: #eef0ff;

  text-decoration: none;

  font-size: 10px;

  font-weight: 800;
}


/* =====================================================
   FULL PREVIEW
===================================================== */

.report-preview-panel.expanded {
  position: fixed;

  z-index: 9998;

  inset: 20px;

  overflow-y: auto;

  max-width: 800px;

  margin: auto;

  background: white;

  box-shadow:
    0 30px 100px
    rgba(0,0,0,.3);
}


.report-preview-panel.expanded .report-document {
  max-width: 620px;

  margin: auto;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

  .report-builder {
    grid-template-columns:
      1fr;
  }


  .report-preview-panel {
    position: static;
  }


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

}


@media (max-width: 900px) {

  .reports-stats {
    grid-template-columns:
      repeat(2,1fr);
  }


  .report-module-grid {
    grid-template-columns:
      repeat(2,1fr);
  }


  .report-period-grid {
    grid-template-columns:
      1fr;
  }


  .recent-report-row {
    grid-template-columns:
      38px
      1fr
      auto;
  }


  .recent-report-type,
  .recent-report-status {
    display: none;
  }

}


@media (max-width: 650px) {

  .reports-heading {
    align-items: flex-start;

    flex-direction: column;
  }


  .reports-heading-actions {
    width: 100%;

    flex-direction: column;
  }


  .reports-primary-btn,
  .reports-secondary-btn {
    justify-content: center;
  }


  .reports-stats,
  .report-type-grid,
  .report-format-grid,
  .report-template-grid,
  .report-module-grid {
    grid-template-columns:
      1fr;
  }


  .report-builder-actions {
    flex-direction: column;
  }


  .preview-report-btn,
  .generate-report-btn {
    justify-content: center;
  }


  .report-document-summary {
    grid-template-columns:
      1fr;
  }


  .preview-info {
    grid-template-columns:
      1fr;
  }


  .report-security-note {
    grid-template-columns:
      1fr;
  }


  .report-security-note a {
    justify-content: center;
  }

}