/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
  color: #1f2937;
}

.app-header {
  margin-bottom: 0;
}

.app-nav__user {
  margin-left: auto;
}

.app-nav__setup {
  display: block;
}

.app-nav__setup-summary {
  cursor: pointer;
  list-style: none;
}

.app-nav__setup-summary::-webkit-details-marker {
  display: none;
}

.app-nav__setup-summary::after {
  content: "v";
  display: inline-block;
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.app-nav__setup[open] .app-nav__setup-summary::after {
  transform: rotate(180deg);
}

.app-nav__setup-menu {
  min-width: 15rem;
  padding: 0.35rem 0;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1020;
}

.app-nav__sign-out-form {
  margin: 0;
}

.app-page-header {
  margin-bottom: 1.5rem;
}

.app-page-eyebrow {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-description {
  color: #4b5563;
  max-width: 68rem;
}

.app-table-actions {
  min-width: 11rem;
}

.app-interventions-table {
  min-width: 58rem;
}

.app-interventions-table__page {
  min-width: 22rem;
  width: 34%;
}

.app-interventions-table__work {
  min-width: 16rem;
  width: 26%;
}

.app-interventions-table__dates {
  min-width: 8rem;
}

.app-outcome-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: none;
}

.app-interventions-table__page-outcomes {
  margin-top: 0.5rem;
}

.app-outcome-chip {
  border: 1px solid #dee2e6;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  gap: 0.25rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  text-decoration: none;
  white-space: nowrap;
}

.app-outcome-chip__market {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.app-outcome-chip__market:hover {
  text-decoration: underline;
}

.app-sticky-table {
  max-height: min(70vh, 52rem);
  overflow: auto;
}

.app-sticky-table thead th {
  background: #f8f9fa;
  box-shadow: inset 0 -1px 0 #dee2e6;
  position: sticky;
  top: 0;
  z-index: 2;
}

.app-json {
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
}

.app-intervention-form {
  border-left: 0.35rem solid #9ca3af !important;
}

.app-intervention-form--new {
  border-left-color: #0d6efd !important;
}

.app-intervention-form--edit {
  border-left-color: #9ca3af !important;
}

.app-intervention-form--implemented {
  border-left-color: #198754 !important;
}

.app-report-body {
  max-width: 70rem;
}

.app-report-body h1,
.app-report-body h2,
.app-report-body h3 {
  margin-top: 1.25rem;
}

.app-report-body h1:first-child,
.app-report-body h2:first-child,
.app-report-body h3:first-child {
  margin-top: 0;
}

.app-recommendation-card__summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
}

.app-recommendation-card__summary::-webkit-details-marker {
  display: none;
}

.app-recommendation-card__collapse-label {
  display: none;
}

.app-recommendation-card__details[open] .app-recommendation-card__expand-label {
  display: none;
}

.app-recommendation-card__details[open] .app-recommendation-card__collapse-label {
  display: inline-block;
}

.app-recommendation-card--planned {
  border-left: 0.35rem solid #0d6efd !important;
}

.app-recommendation-card--planned .app-recommendation-card__summary {
  background: #eef5ff;
}

.app-recommendation-card--implemented {
  border-left: 0.35rem solid #198754 !important;
}

.app-recommendation-card--implemented .app-recommendation-card__summary {
  background: #edf8f1;
}

.app-recommendation-card--deferred {
  border-left: 0.35rem solid #ffc107 !important;
}

.app-recommendation-card--deferred .app-recommendation-card__summary {
  background: #fff8e1;
}

.app-recommendation-card--rejected {
  border-left: 0.35rem solid #6c757d !important;
}

.app-recommendation-card--rejected .app-recommendation-card__summary {
  background: #f3f4f6;
}

.app-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.app-serp-copy-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  height: 100%;
  padding: 1rem;
}

.app-serp-copy-panel--after {
  background: #f8fbf8;
  border-color: #d7ead7;
}

.app-serp-copy-field + .app-serp-copy-field {
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
  padding-top: 1rem;
}

.app-serp-copy-label {
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.app-dialog {
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4rem rgb(15 23 42 / 0.24);
  max-width: min(44rem, calc(100vw - 2rem));
  padding: 0;
  width: 100%;
}

.app-dialog--wide {
  max-width: min(64rem, calc(100vw - 2rem));
}

.app-dialog::backdrop {
  background: rgb(15 23 42 / 0.55);
}

.app-page-trend-chart {
  height: calc(20rem + var(--intervention-band-height, 0px));
  position: relative;
}

@media (max-width: 575.98px) {
  .app-page-trend-chart {
    height: calc(14rem + var(--intervention-band-height, 0px));
  }
}

@media (max-width: 991.98px) {
  .app-nav__user {
    margin-left: 0;
    width: 100%;
  }

  .app-nav__setup-menu {
    left: 0;
    right: auto;
  }
}

.app-pms-cluster {
  max-width: 16rem;
  min-width: 10rem;
}
