/* Caixa de relatórios organizada por pastas e páginas. */
.reports-view {
  max-width: 1180px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.reports-view .view-title {
  flex: 0 0 auto;
}

.report-folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 0 0 auto;
  margin: 0 0 12px;
}

.report-folder-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid #5b4a2a;
  border-radius: 10px;
  color: #f4e8c3;
  background: linear-gradient(180deg,#2f2b22,#171b1f);
  box-shadow: inset 0 1px #ffffff14, 0 6px 16px #0005;
  text-align: left;
  cursor: pointer;
}

.report-folder-card:hover,
.report-folder-card.active {
  border-color: #d8b45e;
  background: linear-gradient(180deg,#5b4321,#252016);
  box-shadow: inset 0 1px #fff4, 0 8px 20px #0007;
}

.report-folder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #8d6b34;
  border-radius: 9px;
  background: radial-gradient(circle,#61401f,#1d1712);
  font-size: 22px;
}

.report-folder-main b,
.report-folder-main small {
  display: block;
}

.report-folder-main b {
  color: #ffe3a2;
  font-size: 14px;
}

.report-folder-main small {
  margin-top: 2px;
  color: #c7b88b;
  font-size: 11px;
  line-height: 1.2;
}

.report-folder-card > strong {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #2b1706;
  background: linear-gradient(#f7db8f,#bd7d25);
  font-size: 13px;
  text-align: center;
}

.report-folder-section {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  border: 1px solid #5a4b31;
  border-radius: 12px;
  background: #12161bd9;
  box-shadow: 0 10px 24px #0006;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.report-folder-section-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #5a4b31;
  background: linear-gradient(180deg,#3f3320,#201a13);
}

.report-folder-section-head h3 {
  margin: 0;
  color: #ffe0a0;
  font-family: Georgia, serif;
}

.report-folder-section-head small {
  display: block;
  margin-top: 2px;
  color: #c7b88b;
}

.report-folder-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #171c22;
}

.report-folder-table {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #171c22;
  table-layout: fixed;
}

.report-folder-table th,
.report-folder-table td {
  padding: 7px 9px;
  vertical-align: middle;
}

.report-folder-table th:first-child,
.report-folder-table td:first-child {
  width: 150px;
  white-space: nowrap;
}

.report-folder-table th:nth-child(2),
.report-folder-table td:nth-child(2) {
  width: 210px;
}

.report-folder-table th:nth-child(3),
.report-folder-table td:nth-child(3) {
  width: 120px;
}

.report-folder-details-cell {
  max-height: 46px;
  overflow: hidden;
  line-height: 1.25;
}

.report-folder-details-cell .report-open-btn,
.report-folder-details-cell button {
  margin-left: 8px;
  white-space: nowrap;
}

.report-pagination {
  flex: 0 0 auto;
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #5a4b31;
  background: linear-gradient(180deg,#211a12,#15191e);
  color: #d9c28a;
}

.report-pagination.single {
  min-height: 38px;
}

.report-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 460px;
}

.report-page-btn,
.report-page-step {
  border: 1px solid #6f552a;
  border-radius: 8px;
  color: #f7e3b0;
  background: linear-gradient(#3a2c18,#1c1710);
  box-shadow: inset 0 1px #ffffff18;
  cursor: pointer;
}

.report-page-btn {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  font-weight: 800;
}

.report-page-step {
  min-height: 30px;
  padding: 0 10px;
  font-weight: 700;
}

.report-page-btn:hover:not(:disabled),
.report-page-step:hover:not(:disabled),
.report-page-btn.active {
  border-color: #e0bb64;
  color: #2b1706;
  background: linear-gradient(#ffe6a4,#bf7e25);
}

.report-page-btn:disabled,
.report-page-step:disabled {
  opacity: .55;
  cursor: default;
}

.report-folder-summary {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #5a4b31;
  border-radius: 12px;
  background: radial-gradient(circle at center,#2b2418,#12161bd9 70%);
  box-shadow: 0 10px 24px #0006;
  overflow: hidden;
}

.report-folder-summary-head {
  text-align: center;
}

.report-folder-summary-head h3 {
  margin: 0;
  color: #ffe0a0;
  font-family: Georgia, serif;
  font-size: 24px;
}

.report-folder-summary-head small {
  display: block;
  margin-top: 6px;
  color: #c7b88b;
}

.report-folder-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-folder-summary-card {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid #69512a;
  border-radius: 14px;
  color: #f5dfaa;
  background: linear-gradient(180deg,#332819,#15191e);
  box-shadow: inset 0 1px #ffffff18, 0 12px 24px #0006;
  cursor: pointer;
}

.report-folder-summary-card:hover {
  border-color: #d8b45e;
  background: linear-gradient(180deg,#5b4321,#211910);
}

.report-folder-summary-card span {
  font-size: 34px;
}

.report-folder-summary-card b {
  font-size: 16px;
}

.report-folder-summary-card small {
  color: #c7b88b;
}

.report-folder-empty,
.report-folder-empty-row {
  padding: 18px;
  color: #c9b887;
  text-align: center;
}

@media (max-width: 1180px) {
  .report-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .reports-view {
    overflow: auto;
  }

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

  .report-folder-table {
    table-layout: auto;
  }

  .report-folder-table th:first-child,
  .report-folder-table td:first-child,
  .report-folder-table th:nth-child(2),
  .report-folder-table td:nth-child(2),
  .report-folder-table th:nth-child(3),
  .report-folder-table td:nth-child(3) {
    width: auto;
    white-space: normal;
  }
}

.gge-layout-active .report-folder-grid,
.gge-layout-active .report-folder-section,
.gge-layout-active .report-folder-summary,
.gge-layout-active .report-folder-empty {
  position: relative;
  z-index: 1;
}
