/* Accent for primary actions only. AdminLTE supplies everything else. */
:root {
  --accent: #1f5f5b;
}

.btn.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #184b48;
  --bs-btn-hover-border-color: #184b48;
  --bs-btn-active-bg: #184b48;
  --bs-btn-active-border-color: #184b48;
}


/* A collapsed sidebar on phones sits off-screen; AdminLTE's shadow would show at the left edge. */
@media (max-width: 991.98px) {
  body:not(.sidebar-open) .app-sidebar {
    box-shadow: none !important;
  }
}

/* Interview progress uses the accent colour, like the primary button. */
.interview-progress .progress-bar {
  background-color: var(--accent);
}


/* Table footers (dashboard, applications): the page controls wrap onto a second line on phones.
   The flex row is .tabulator-footer-contents; .tabulator-footer itself is a block. */
#dashboard-table .tabulator-footer-contents,
#applications-table .tabulator-footer-contents {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* On phones the page buttons may wrap too; Tabulator sets nowrap on the footer. */
@media (max-width: 575.98px) {
  #dashboard-table .tabulator-paginator,
  #applications-table .tabulator-paginator {
    white-space: normal;
    text-align: left;
  }
}

/* Knowledge doc text keeps its line breaks. */
.knowledge-text,
.preserve-lines {
  white-space: pre-wrap;
}

/* A passed deadline is grayed out on the dashboard. */
#dashboard-table .tabulator-row.passed-deadline {
  color: var(--bs-secondary-color);
}

/* The deadline cell wraps, so the Deadline passed label is never cut off. */
#dashboard-table .deadline-cell {
  white-space: normal;
}
