/* RoomScribe Property Reports Library Tabs - UI/routing-only
   Scope: open-property workspace Reports module only. */

#rsPropertyPdfReportHistoryPanel.rs-property-reports-library-host {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#rsPropertyPdfReportHistoryPanel[hidden] {
  display: none !important;
}

#rsPropertyPdfReportHistoryPanel .rs-property-reports-library-shell {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(8, 24, 29, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(5, 16, 20, .06);
  box-sizing: border-box;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(8, 24, 29, .68);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-tab:hover {
  background: rgba(66, 215, 159, .10);
  color: var(--rs-ink, #08181d);
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-tab.is-active {
  background: linear-gradient(135deg, var(--rs-accent, #42d79f), var(--rs-accent-soft, #c8ffe8));
  color: #041f17;
  box-shadow: 0 10px 24px rgba(66, 215, 159, .24);
}

#rsPropertyPdfReportHistoryPanel .rs-property-reports-library-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(8, 24, 29, .10);
  border-radius: 24px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 18px 46px rgba(5, 16, 20, .08);
  padding: 14px;
  box-sizing: border-box;
}

#rsPropertyPdfReportHistoryPanel .rs-property-reports-library-panel[hidden] {
  display: none !important;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-head > div {
  min-width: 0;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-head strong {
  display: block;
  color: var(--rs-ink, #08181d);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.03em;
  line-height: 1.12;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-head span {
  display: block;
  margin-top: 3px;
  color: var(--rs-muted, #617277);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

#rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-body,
#rsPropertyPdfReportHistoryPanel .rs-online-report-list,
#rsPropertyPdfReportHistoryPanel .rs-report-history-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#rsPropertyPdfReportHistoryPanel .rs-online-report-row,
#rsPropertyPdfReportHistoryPanel .rs-report-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(8, 24, 29, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

#rsPropertyPdfReportHistoryPanel .rs-online-report-row strong,
#rsPropertyPdfReportHistoryPanel .rs-report-history-card h3 {
  display: block;
  margin: 0 0 4px;
  color: var(--rs-ink, #08181d);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rsPropertyPdfReportHistoryPanel .rs-online-report-row span,
#rsPropertyPdfReportHistoryPanel .rs-report-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--rs-muted, #617277);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

#rsPropertyPdfReportHistoryPanel .rs-report-history-pill {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

#rsPropertyPdfReportHistoryPanel .rs-online-report-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

#rsPropertyPdfReportHistoryPanel .rs-online-report-row-actions .rs-btn,
#rsPropertyPdfReportHistoryPanel .rs-report-history-refresh,
#rsPropertyPdfReportHistoryPanel .rs-report-history-download {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

#rsPropertyPdfReportHistoryPanel .rs-report-history-status,
#rsPropertyPdfReportHistoryPanel .rs-report-history-empty,
#rsPropertyPdfReportHistoryPanel .rs-online-report-muted {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(8, 24, 29, .08);
  border-radius: 16px;
  background: rgba(245, 247, 247, .82);
  color: var(--rs-muted, #617277);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

#rsPropertyPdfReportHistoryPanel .rs-report-history-status:empty {
  display: none;
}

#rsPropertyPdfReportHistoryPanel .rs-report-history-status.is-error {
  color: #8a1f1f;
  background: rgba(255, 236, 236, .92);
  border-color: rgba(138, 31, 31, .18);
}

@media (max-width: 720px) {
  #rsPropertyPdfReportHistoryPanel .rs-reports-library-tabs {
    border-radius: 20px;
    grid-template-columns: 1fr;
  }

  #rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-head,
  #rsPropertyPdfReportHistoryPanel .rs-online-report-row,
  #rsPropertyPdfReportHistoryPanel .rs-report-history-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #rsPropertyPdfReportHistoryPanel .rs-reports-library-panel-head {
    display: grid;
  }

  #rsPropertyPdfReportHistoryPanel .rs-online-report-row-actions,
  #rsPropertyPdfReportHistoryPanel .rs-report-history-download,
  #rsPropertyPdfReportHistoryPanel .rs-report-history-refresh {
    width: 100%;
    justify-content: stretch;
  }

  #rsPropertyPdfReportHistoryPanel .rs-online-report-row-actions .rs-btn,
  #rsPropertyPdfReportHistoryPanel .rs-report-history-download,
  #rsPropertyPdfReportHistoryPanel .rs-report-history-refresh {
    width: 100%;
  }
}
