/*
 * Admin panel styles (private_html).
 *
 * One stylesheet for every admin page. Page specific rules are scoped with the
 * body id that _header.php derives from the current script, so nothing here can
 * leak into another page:
 *
 *     add.php                 ->  #page-add
 *     job_edits.php           ->  #page-job_edits
 *     ad_reports.php          ->  #page-ad_reports
 *     generate_newsletter.php ->  #page-generate_newsletter
 *     user_deletion.php       ->  #page-user_deletion
 *     top_companies_overview.php -> #page-top_companies_overview
 *     index.php               ->  #page-index
 *
 * Loaded by _header.php AFTER Bootstrap, FontAwesome and the page vendor CSS,
 * so these rules always win.
 *
 * Saved via the IDE "Less" watcher (see llm_docs/development.md#styling-less);
 * never hand-run lessc and never commit a source map.
 */
.admin-menu {
  background-color: #1f2937;
}
.admin-menu .navbar-brand {
  color: #fff;
  font-weight: 700;
}
.admin-menu .nav-link {
  color: #cbd5e1;
}
.admin-menu .nav-link:hover,
.admin-menu .nav-link.active {
  color: #fff;
}
.admin-menu .nav-link.active {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #38bdf8;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-heading__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.admin-heading__icon {
  margin-right: 0.25rem;
}
.admin-heading__subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}
#page-index .stat-card {
  text-decoration: none;
}
#page-add .queue-meta {
  margin-bottom: 1.5rem;
}
#page-add .section-panel {
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
}
#page-add .section-panel > h6.text-uppercase {
  margin-top: 0;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3b4144;
  padding-left: 0.5rem;
  border-left: 0.1875rem solid #38bdf8;
}
#page-add .source-url {
  margin-bottom: 0;
}
#page-add .source-url .form-control[readonly] {
  cursor: text;
}
#page-add .select2-container {
  width: 100% !important;
}
#page-add .select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
#page-add .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding-left: 0;
  padding-right: 0;
}
#page-add .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(1.5em + 0.75rem);
}
#page-add .select2-container--default .select2-selection--multiple {
  min-height: calc(1.5em + 0.75rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
#page-add .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0 0.1875rem;
}
#page-add .select2-container--default .select2-selection--multiple .select2-selection__choice {
  line-height: 1.4;
  margin: 0.1875rem 0.1875rem 0 0;
}
#page-add .company_last_notified,
#page-add .company_last_accessed {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  color: #6c757d;
  background-color: #fff;
  border: 0.05rem solid #eee;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  margin-top: 0.375rem;
  margin-right: 0.25rem;
}
#page-add .suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}
#page-add .suggestion-label {
  font-size: 0.75rem;
  color: #6c757d;
}
#page-add .suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  color: #3b4144;
  background-color: #fff;
  border: 0.05rem solid #ccc;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
#page-add .suggestion-chip:hover {
  background-color: #f5f5f5;
  border-color: #38bdf8;
}
#page-add .suggestion-chip__match {
  font-size: 0.75rem;
  color: #6c757d;
  background-color: #f5f5f5;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}
#page-add .suggestion-chip__score {
  font-size: 0.75rem;
  font-weight: 600;
  color: #777;
  background-color: #f5f5f5;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}
#page-add .suggestion-chip__score--exact {
  color: #1f2937;
  background-color: rgba(199, 123, 22, 0.15);
}
#page-add .case-btn {
  margin: 0;
  line-height: 1.5;
}
#page-add .form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
#page-add .editor {
  height: 200px;
}
#page-add .ql-toolbar.ql-snow,
#page-add .ql-container.ql-snow {
  background-color: #fff;
}
#page-add .ql-snow .ql-magic {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#page-add .ql-snow .ql-magic::before {
  content: "\f0d0";
}
.badge-populate {
  cursor: pointer;
  position: relative;
  overflow: visible;
  padding-right: 1.5rem;
}
.badge-populate:hover {
  background-color: #09acf4;
  border-color: #0789c3;
}
.badge-populate::after {
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  content: "\f0c7";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: #fff;
}
#page-job_edits .pane {
  height: 300px;
  overflow: auto;
  background-color: #fff;
}
#page-job_edits .pane iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#page-generate_newsletter .panel-preview,
#page-user_deletion .panel-preview,
#page-generate_newsletter .panel-code,
#page-user_deletion .panel-code {
  height: 80vh;
}
#page-generate_newsletter .panel-preview iframe,
#page-user_deletion .panel-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#page-generate_newsletter .panel-code,
#page-user_deletion .panel-code {
  font-family: monospace;
  font-size: 0.75rem;
}
#page-top_companies_overview .table td,
#page-top_companies_overview .table th {
  vertical-align: middle;
}
.ui-toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ui-toast-container .toast {
  flex-basis: auto;
  width: 100%;
  max-width: inherit;
}
.ui-toast-container .ui-toast-body {
  display: flex;
  align-items: center;
}
.ui-toast-container .ui-toast-danger {
  border-left: 4px solid rgb(220, 53, 69);
}
.ui-toast-container .ui-toast-warning {
  border-left: 4px solid rgb(255, 193, 7);
}
.ui-toast-container .ui-toast-success {
  border-left: 4px solid rgb(47, 123, 21);
}
.ui-toast-container .ui-toast-info {
  border-left: 4px solid rgb(23, 162, 184);
}
