* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: #222;
  background: #f5f5f5;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.containing {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header – same as story extraction / original theme */
.intro-area.background-header {
  background: linear-gradient(180deg, #52bac9 0%, #2aa4b6 100%);
  position: relative;
}

.header-overlay {
  background: rgba(35, 165, 182, 0.7);
  position: relative;
}

.big-slider {
  padding: 68px 0 80px;
  position: relative;
}

.big-slider-content {
  max-width: 53%;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.big-slider-content h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
}

.big-slider-content p {
  margin: 0;
  font-size: 18px;
  opacity: 0.95;
}

.curse-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background: radial-gradient(120% 90px at 50% -30px, transparent 58%, #fff 60%);
}

.area-padding {
  padding: 32px 0 60px;
}

/* Resources wrapper – matches practitioner library */
.resources-wrapper {
  padding: 20px 10px;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.05);
  margin: 0 0 30px;
}

@media (min-width: 768px) {
  .resources-wrapper {
    margin: 0 0 50px;
    padding: 40px 25px;
  }
}

@media (min-width: 1200px) {
  .resources-wrapper {
    margin: 0 0 100px;
  }
}

/* Search */
.resources-wrapper .custom-filters .form-field__search {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding-right: 38px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

.resources-wrapper .custom-filters .form-field__search .form-control {
  height: 38px;
  width: 100%;
  border-radius: 0;
  border: 0;
  outline: 0;
  font-size: 14px;
  line-height: 18px;
  color: #575756;
  padding: 5px 38px 5px 15px;
}

.resources-wrapper .custom-filters .form-field__search .form-control::placeholder {
  opacity: 1;
  font-style: italic;
}

.resources-wrapper .custom-filters .form-field__search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: #FFC72C;
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resources-wrapper .custom-filters .form-field__search button .icon-search {
  font-size: 14px;
}

/* Category filters */
.member-category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.filter-btn {
  border: 1px solid #d8ecef;
  background: #fff;
  color: #1f8ca0;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 2px;
  cursor: pointer;
}

.filter-btn.active {
  background: #23a5b6;
  color: #fff;
  border-color: #23a5b6;
}

/* Result row + sort */
.post-result.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(151, 151, 151, 0.15);
  color: #444;
  font-weight: 600;
}

.post-result .col-result {
  flex: 1 1 auto;
}

.post-result .col-sort {
  flex: 0 0 auto;
}

.sorting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal;
}

.sorting .form-control {
  padding: 6px 10px;
  border: 1px solid #d5d5d5;
  background: #fff;
  font-size: 13px;
  min-width: 100px;
}

/* Table – matches #library-resources */
.download-content {
  min-height: 120px;
}

#report-table {
  width: 100%;
  border-collapse: collapse;
}

#report-table thead th {
  border: 0;
  padding: 10px 0;
  color: #575756;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  border-bottom: 2px solid #00AEC7;
  text-align: left;
}

#report-table thead .th-date {
  width: 100px;
}

#report-table thead .th-actions {
  width: 180px;
  text-align: right;
}

#report-table tbody td {
  padding: 20px 0;
  border-left: 0;
  border-right: 0;
  vertical-align: middle;
}

#report-table tbody tr + tr td {
  border-top: 1px solid rgba(87, 87, 86, 0.2);
}

#report-table .cell-date {
  color: #575756;
  font-size: 14px;
}

#report-table .cell-title {
  font-weight: 600;
  color: #222;
}

#report-table .cell-actions {
  text-align: right;
}

/* In-page report viewer modal */
.report-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.report-viewer-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.report-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.report-viewer-panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.report-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.report-viewer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.report-viewer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: #e0e0e0;
  color: #444;
  font-size: 24px;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.report-viewer-close:hover {
  background: #d0d0d0;
}

.report-viewer-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #525659;
}

.report-viewer-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #525659;
  color: #fff;
  font-size: 16px;
}

.report-viewer-loading.is-visible {
  display: flex;
}

#reportViewerFrame {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: 0;
}

#reportViewerFrame.is-visible {
  display: block;
}

.report-viewer-rendered {
  position: absolute;
  inset: 0;
  display: none;
  overflow: auto;
  background: #fff;
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.report-viewer-rendered.is-visible {
  display: block;
}

.report-viewer-rendered .report-viewer-error {
  margin: 0;
  padding: 24px;
  color: #c00;
}

/* DOCX preview (docx-preview library output) */
.report-viewer-rendered .docx-wrapper {
  background: #fff;
  padding: 2em;
}

/* Excel sheets */
.report-viewer-sheets {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.report-viewer-sheet-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.report-viewer-rendered table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.report-viewer-rendered table td,
.report-viewer-rendered table th {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.report-viewer-rendered table th {
  background: #f0f0f0;
  font-weight: 600;
}

.cell-actions-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-view {
  display: inline-block;
  padding: 8px 16px;
  background: #23a5b6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-view:hover {
  background: #1f8ca0;
  color: #fff;
}

.btn-download {
  display: inline-block;
  padding: 8px 16px;
  background: #FFC72C;
  color: #222;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-download:hover {
  background: #e6b328;
  color: #222;
}

.no-results {
  padding: 40px 0;
  text-align: center;
  color: #575756;
}
