.panel-header-bg-card {
  background-image: url("../img/icons/spot-illustrations/corner-4.e9bba510874b.png");
}

div.dt-buttons {
  float: right;
}

.errorlist {
  color: red;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* .col-form-label::after {
    content: "*";
    color: red;
    padding-right: 4px;
  } */

#table-profiling-questions td:nth-child(1) {
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* #table-profiling-questions td:nth-child(2) {
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} */

#id_new_qualification_modal_window_answers_container {
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  border: 1px solid #d8e2ef;
  position: relative;
}
/* #survey-qualification-answers li {
  list-style-type: none;
}
.age-ranges li > div {
  display: inline-block;
}

.age-ranges-fixed-bottom-button {
  position: absolute;
  bottom: 0;
  right: 0;
} */

#id_new_qualification_modal_window_answers_container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#id_new_qualification_modal_window_answers_container label {
  margin-left: 5px;
}

#id_table_surveys tbody tr.no-sampling {
  background-color: rgba(245, 122, 110, 0.3) !important;
}

#id_survey_qualifications_table tbody td.panel-qualification-ellipsis {
  width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-w-10 {
  width: 10% !important;
}
.panel-w-30 {
  width: 30% !important;
}
.panel-w-60 {
  width: 60% !important;
}

.panel-white-space-normal {
  white-space: normal !important;
}

.select2-container
  .select2-results__option.select2-results__option--highlighted:not(
    .select2-results__option--selected
  ) {
  background-color: #0d6efd !important;
  color: #fff !important;
}

/* Keep the selected report filter distinct from the option currently hovered. */
.panel-report-filter-dropdown
  .select2-results__option--selected:not(
    .select2-results__option--highlighted
  ) {
  background-color: transparent !important;
  color: var(--falcon-body-color, #5e6e82) !important;
  font-weight: 600;
}

.panel-report-filter-dropdown
  .select2-results__option--selected:not(
    .select2-results__option--highlighted
  )::after {
  color: var(--falcon-success, #00d27a);
  content: "\2713";
  float: right;
  margin-left: 0.75rem;
}

#id_survey_issue_report_issue_type_filter_select_element + .select2-container,
#id_reward_redemption_issue_report_issue_type_filter_select_element
  + .select2-container {
  max-width: calc(100vw - 3rem);
  width: 30rem !important;
}

.panel-report-issue-type-dropdown {
  max-width: calc(100vw - 2rem);
  min-width: 30rem;
}

.panel-report-issue-type-dropdown .select2-results__option {
  white-space: nowrap;
}

label[for="id_current_panelists_profile_category_counts_report_country_language_filter_select_element"] {
  white-space: nowrap;
}

#id_current_panelists_profile_category_counts_report_country_language_filter_select_element
  + .select2-container {
  max-width: calc(100vw - 3rem);
  width: 20rem !important;
}

.panel-report-country-language-dropdown {
  max-width: calc(100vw - 2rem);
  min-width: min(20rem, calc(100vw - 2rem));
}

.panel-report-country-language-dropdown .select2-results__option {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  #id_survey_issue_report_issue_type_filter_select_element + .select2-container,
  #id_reward_redemption_issue_report_issue_type_filter_select_element
    + .select2-container {
    max-width: 100%;
    width: 100% !important;
  }

  .panel-report-issue-type-dropdown {
    min-width: 0;
  }

  .panel-report-issue-type-dropdown .select2-results__option {
    white-space: normal;
  }
}

.download-report-icon {
  color: rgb(180, 177, 177);
}

/* Center all td elements in the table with the ID "id_table_surveys" */
#id_table_surveys td {
  text-align: center;
}

/* Align the contents of the second, third, and fourteenth column of the table with the ID "id_table_surveys" to the left */
#id_table_surveys td:nth-child(2),
#id_table_surveys td:nth-child(3),
#id_table_surveys td:nth-child(14) {
  text-align: left;
}

.dataTable {
  width: 100% !important;
}

.pagination {
  --falcon-pagination-padding-x: 0.5rem;
  --falcon-pagination-padding-y: 0.25rem;
  --falcon-pagination-font-size: 0.875rem;
  --falcon-pagination-border-radius: 0.25rem;
}

.panel_combobox_default_option {
  color: rgb(180, 177, 177);
}

.panel_reports_options_spacing {
  margin-right: 30px;
}

.panel_reports_label_from_option_spacing {
  margin-right: 2px;
}

.panel-filters-horizontal-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.select2-selection.select2-selection--single {
  padding-right: 56px !important;
}

.panel-reports-legend {
  font-size: calc(1rem + 0.3vw);
}

.tnr_panel_font_size_09 {
  font-size: 0.9rem !important;
}

.tnr_panel_font_size_08 {
  font-size: 0.8rem !important;
}

#survey_exclusion_div_container_element {
  width: 100%;
  /* border: 1px solid #ccc; */
  padding: 10px;
}

#survey_exclusion_list_element {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
  justify-content: flex-start;
}

#survey_exclusion_list_element li {
  flex: 1 1 300px;
  margin: 5px;
  /* background: #f8f8f8; */
  /* background: #f3d1c920; */
  background: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  /* color: #2c7be5; */
  color: #cf3925;
  /* border: 1px solid #ddd; */
  border: 1px solid #e0bbb660;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1); */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.survey-exclusions-remove-btn {
  margin-left: 10px;
  /* color: #999698; */
  /* color: #e08787; */
  color: #dfa3a3;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
}

.panel-download-report-icon-email-template {
  color: #f5803e;
  font-size: 1.2em;
  margin-right: 8px;
}

.panel-btn-xs {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 0.2rem;
}

.panel-fs--2 {
  font-size: 0.75rem !important;
}

/*New login (captcha, OTP) page styles*/
/* ==========================================================================
   AUTHENTICATION MODULE STYLING
   ISO 27001 Control A.8.5 (Secure Authentication)
   ISO 27001 Control A.8.9 (Configuration Management)
   ========================================================================== */
/**

* @section Authentication Isolation
* ENFORCE ISOLATION: 
* Using high-specificity selectors to ensure these styles only trigger within 
* the 'flex-center' auth context. This prevents UI cross-contamination with 
* internal dashboard components or data tables.
*/

main#top .container-fluid .row.min-vh-100.flex-center {
  background-color: #f1f4f9 !important;
  font-family: "Poppins", "Open Sans", sans-serif !important;
}

/**
* @section Card Architecture
* SECURITY BY DESIGN: 
* Enforcing specific card geometry to maintain a consistent administrative 
* focal point. Integrity of the authentication viewport is maintained by 
* limiting the max-width and centering the asset.
*/

main#top .row.min-vh-100.flex-center .card.overflow-hidden {
  border-radius: 1rem !important;
  border: none !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  max-width: 850px;
  margin: auto;}

/**
* @section Brand Identity
* BRAND INTEGRITY: 
* Standardizing the branding header to comply with corporate visual identity 
* requirements while maintaining a compact vertical footprint for high
* visibility on mobile administrative devices.
*/

main#top .row.min-vh-100.flex-center .bg-card-gradient {
  background-image: linear-gradient(
    135deg,
    #4285f4 0%,
    #2a69d4 100%
  ) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  min-height: 60px !important;
}

main#top .row.min-vh-100.flex-center .bg-card-gradient .link-light {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  margin: 0 !important;
  color: #ffffff !important;
}

/* UI DE-CLUTTERING: 
 Removing decorative background shapes that impact the critical 
 authentication path on low-resolution mobile viewports. 
*/

main#top .row.min-vh-100.flex-center .bg-auth-card-shape,
main#top .row.min-vh-100.flex-center .bg-auth-circle-shape,
main#top .row.min-vh-100.flex-center .bg-auth-circle-shape-2 {
  display: none !important;
}

/**
* @section UI Elements & Visual Hierarchy
* USER EXPERIENCE (UX) HARDENING: 
* Softening the title typography and standardizing input heights to provide 
* a professional, low-friction entry point for authorized users.
*/

main#top .row.min-vh-100.flex-center .p-4.p-md-5 {
  padding: 1.5rem !important;
}

/* Semi-bold Slate Gray header to distinguish authentication level */

main#top .row.min-vh-100.flex-center .h3 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #4a5568 !important;
  margin-bottom: 0.75rem !important;
  text-align: left;
}

/* Form field standardization */

main#top .row.min-vh-100.flex-center .mb-3 {
  margin-bottom: 0.6rem !important;
}

main#top .row.min-vh-100.flex-center .form-label {
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  margin-bottom: 0.2rem !important;
  color: #475467 !important;
}

main#top .row.min-vh-100.flex-center .form-control {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
}

/**
* @section MFA / Bot Mitigation
* THIRD-PARTY INTEGRATION: 
* Scaling Cloudflare Turnstile to ensure the security challenge is 
* fully visible and interactive without viewport truncation on small devices.
*/

main#top .row.min-vh-100.flex-center .cf-turnstile {
  display: flex !important;
  justify-content: center !important;
  margin: 0.5rem 0 !important;
  transform: scale(0.8);
}

/* Primary Authentication Action Button */

main#top .row.min-vh-100.flex-center .btn-primary {
  background-color: #2f7cf6 !important;
  border: none !important;
  padding: 0.6rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  margin-top: 0.5rem !important;
  width: 100% !important;
}

/**

* @section Mobile-Specific Adaptation & Traceability
* RESPONSIVE UI CONTROLS: 
* Optimizing vertical space to ensure 'Sign In' button visibility 
* above the fold on mobile administrative interfaces.
*/

@media (max-width: 768px) {
  main#top .row.min-vh-100.flex-center .bg-card-gradient {
    min-height: 50px !important;
    padding: 0.75rem !important;
  }

  main#top .row.min-vh-100.flex-center .card.overflow-hidden {
    margin-top: 10px !important;
  }

  /**
   * TRACEABILITY: 
   * Styling for system version identifier to support software asset 
   * inventory and security update tracking within the footer.
   */

  #id_panel_version {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
    display: block !important;
    text-align: center !important;
    opacity: 0.8;
    font-size: 0.7rem !important;
  }
}

@media (min-width: 1200px) {
  .panel-reports-legend {
    font-size: 1rem;
  }
}

/* Surveys list */
.surveys-list-page {
  --surveys-table-border: var(--falcon-border-color, #d8e2ef);
  --surveys-table-muted: var(--falcon-gray-600, #748194);
}

.surveys-list-title {
  font-size: 1.45rem;
  margin: 0;
}

.surveys-list-heading {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.surveys-help-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--falcon-gray-500, #9da9bb);
  display: inline-flex;
  font-size: 0.9rem;
  height: 30px;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
  width: 30px;
}

.surveys-help-button:hover,
.surveys-help-button:focus-visible {
  background: var(--falcon-gray-200, #edf2f9);
  color: var(--falcon-primary, #2c7be5);
}

.surveys-help-button:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.2);
  outline: 0;
}

.surveys-columns-help {
  border-left: 1px solid var(--falcon-border-color, #d8e2ef);
  max-width: 100vw;
  width: 460px !important;
}

.surveys-columns-help-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1rem 1.15rem;
}

.surveys-columns-help-header .offcanvas-title {
  color: var(--falcon-gray-900, #0b1727);
  font-size: 1rem;
  margin-top: 0.1rem;
}

.surveys-columns-help-eyebrow {
  color: var(--falcon-gray-600, #748194);
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.surveys-columns-help-body {
  padding: 1rem 1.15rem 1.5rem;
}

.surveys-columns-help-intro {
  background: var(--falcon-gray-100, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.4rem;
  color: var(--falcon-gray-700, #5e6e82);
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.75rem;
}

.surveys-help-section {
  padding: 0;
}

.surveys-help-section + .surveys-help-section {
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  margin-top: 1rem;
  padding-top: 1rem;
}

.surveys-help-section h3 {
  color: var(--falcon-gray-800, #344050);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.surveys-help-list {
  margin: 0;
}

.surveys-help-item {
  display: grid;
  gap: 0.15rem 0.75rem;
  grid-template-columns: 125px minmax(0, 1fr);
  padding: 0.55rem 0;
}

.surveys-help-item + .surveys-help-item {
  border-top: 1px solid rgba(216, 226, 239, 0.65);
}

.surveys-help-item dt {
  color: var(--falcon-gray-800, #344050);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.45;
}

.surveys-help-item dd {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 0;
}

.surveys-help-formula,
.surveys-help-note {
  grid-column: 2;
}

.surveys-help-formula {
  background: var(--falcon-gray-100, #f9fafd);
  border-radius: 0.25rem;
  color: var(--falcon-gray-700, #5e6e82);
  display: inline-block;
  font-family: var(--falcon-font-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.64rem;
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.24rem 0.4rem;
}

.surveys-help-note {
  color: var(--falcon-gray-500, #9da9bb);
  font-size: 0.63rem;
  line-height: 1.45;
  margin-top: 0.12rem;
}

.surveys-list-card .card-body {
  padding-top: 1rem !important;
}

.surveys-filters {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
  min-height: 61px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

.surveys-filters.is-ready {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 100ms ease-out;
  visibility: visible;
}

.surveys-filters:not(.is-ready) select[multiple] {
  height: 38px;
}

.surveys-filters-grid {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(290px, 1.15fr) minmax(210px, 0.78fr) minmax(490px, 1.55fr) auto;
}

.surveys-filter-field {
  min-width: 0;
}

.surveys-filter-field .form-label {
  color: var(--falcon-gray-700, #5e6e82);
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.surveys-filter-date-range {
  border: 0;
  margin: 0;
  padding: 0;
}

.surveys-date-range-fields {
  align-items: end;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 145px minmax(130px, 1fr) 18px minmax(130px, 1fr);
}

.surveys-date-range-separator {
  align-items: center;
  color: var(--falcon-gray-500, #9da9bb);
  display: flex;
  font-size: 0.62rem;
  height: 38px;
  justify-content: center;
}

.surveys-filter-label-row {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.surveys-filter-field .form-control {
  background-color: var(--falcon-card-bg, #fff);
  border-color: var(--surveys-table-border);
  min-height: 38px;
}

.surveys-filter-field .form-control:focus {
  border-color: rgba(44, 123, 229, 0.65);
  box-shadow: 0 0 0 0.15rem rgba(44, 123, 229, 0.12);
}

.surveys-filter-field .choices {
  font-size: 0.72rem;
  margin-bottom: 0;
}

.surveys-filter-field .choices__inner {
  background-color: var(--falcon-card-bg, #fff);
  border-color: var(--surveys-table-border);
  border-radius: 0.3rem;
  min-height: 38px;
  padding: 0.3rem 0.5rem;
}

.surveys-filter-field .is-focused .choices__inner,
.surveys-filter-field .is-open .choices__inner {
  border-color: rgba(44, 123, 229, 0.65);
  box-shadow: 0 0 0 0.15rem rgba(44, 123, 229, 0.12);
}

.surveys-filter-field .choices__input {
  background-color: transparent;
  font-size: 0.72rem;
  margin-bottom: 0;
}

.surveys-filter-field .choices__list--multiple .choices__item {
  background: var(--falcon-soft-primary, #e6effc);
  border-color: transparent;
  color: var(--falcon-primary, #2c7be5);
  font-size: 0.65rem;
  margin-bottom: 0;
}

.surveys-filter-field .choices__list--dropdown {
  z-index: 1080;
}

.surveys-filter-actions {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  min-height: 38px;
}

.surveys-filter-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
}

.surveys-filter-actions .btn-primary {
  box-shadow: 0 0.15rem 0.35rem rgba(44, 123, 229, 0.18);
}

.surveys-filter-actions .btn-link {
  color: var(--falcon-gray-600, #748194);
  text-decoration: none;
}

.surveys-filter-actions .btn-link:hover,
.surveys-filter-actions .btn-link:focus-visible {
  color: var(--falcon-primary, #2c7be5);
  text-decoration: underline;
}

.surveys-filter-error {
  margin-top: 0.6rem;
}

.surveys-filter-error.is-visible {
  display: block;
}

.surveys-date-preset-field {
  min-width: 0;
}

.surveys-date-preset-field .form-select {
  border-color: var(--surveys-table-border);
  font-size: 0.68rem;
  min-height: 38px;
  width: 100%;
}

.surveys-list-page .dataTables_wrapper > .row {
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

.surveys-table-toolbar {
  align-items: flex-end;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1rem 0 0.75rem;
}

.surveys-table-toolbar-actions {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.surveys-list-page #table_buttons {
  align-items: center;
  display: flex;
  margin: 0 !important;
  position: relative;
  z-index: 20;
}

.surveys-list-page .dt-buttons {
  display: inline-flex;
  float: none !important;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
  max-width: 100%;
  width: auto;
}

.surveys-list-page .dt-buttons .btn {
  align-items: center;
  border-radius: 0.3rem;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  justify-content: center;
  line-height: 1.4;
  margin: 0;
  min-height: 34px;
  white-space: nowrap;
  width: auto;
}

.surveys-list-page .surveys-export-button {
  color: var(--falcon-primary, #2c7be5);
}

.surveys-list-page .surveys-export-button:hover,
.surveys-list-page .surveys-export-button:focus {
  background-color: rgba(44, 123, 229, 0.08) !important;
  border-color: var(--falcon-primary, #2c7be5) !important;
  color: var(--falcon-primary, #2c7be5) !important;
}

.surveys-list-page .surveys-export-button[aria-expanded="true"] {
  background-color: var(--falcon-primary, #2c7be5) !important;
  border-color: var(--falcon-primary, #2c7be5) !important;
  color: #fff !important;
}

.surveys-list-page .surveys-export-button svg {
  color: inherit !important;
}

.surveys-list-page .dt-button-collection {
  left: auto !important;
  right: 0 !important;
}

.surveys-list-page .dt-button-collection .dropdown-menu {
  min-width: 11rem;
}

.surveys-list-page .dt-button-collection .dropdown-item {
  white-space: nowrap;
}

.surveys-list-page .dataTables_length,
.surveys-list-page .dataTables_filter {
  color: var(--surveys-table-muted);
  font-size: 0.72rem;
  margin: 0;
}

.surveys-list-page .dataTables_length label,
.surveys-list-page .dataTables_filter label {
  align-items: center;
  display: flex;
  margin: 0;
}

.surveys-list-page .dataTables_length label {
  gap: 0.45rem;
}

.surveys-list-page .dataTables_length select {
  margin: 0 !important;
}

.surveys-list-page .dataTables_filter {
  text-align: right;
}

.surveys-list-page .dataTables_length select,
.surveys-list-page .dataTables_filter input {
  font-size: 0.75rem;
  min-height: 34px;
}

.surveys-list-page .dataTables_filter input {
  margin-left: 0.45rem;
  max-width: 220px;
}

.surveys-list-table {
  border-collapse: separate;
  border-spacing: 0;
  color: var(--falcon-gray-700, #5e6e82);
  font-size: 0.72rem;
  width: 100% !important;
}

.surveys-list-table td.dataTables_empty {
  padding: 0 !important;
}

.surveys-empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 1.5rem;
  text-align: center;
}

.surveys-empty-state-icon {
  align-items: center;
  background: var(--falcon-gray-100, #f9fafd);
  border-radius: 50%;
  color: var(--falcon-gray-500, #9da9bb);
  display: inline-flex;
  font-size: 0.9rem;
  height: 2.25rem;
  justify-content: center;
  margin-bottom: 0.65rem;
  width: 2.25rem;
}

.surveys-empty-state-title {
  color: var(--falcon-gray-800, #344050);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.surveys-empty-state-message {
  color: var(--surveys-table-muted);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 0;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.surveys-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.surveys-empty-state-actions .btn {
  font-size: 0.68rem;
}

.surveys-table-is-empty .dataTables_info,
.surveys-table-is-empty .dataTables_paginate {
  display: none;
}

.surveys-list-table thead th {
  background: var(--falcon-gray-200, #edf2f9);
  border-bottom: 1px solid var(--surveys-table-border) !important;
  color: var(--falcon-gray-800, #344050);
  font-size: 0.68rem;
  font-weight: 600;
  height: 36px;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.35rem !important;
  position: sticky;
  text-transform: none;
  top: 0;
  vertical-align: middle;
  z-index: 3;
}

.surveys-list-table thead abbr {
  cursor: help;
  text-decoration: none;
}

.surveys-list-table tbody td {
  border-bottom: 1px solid var(--surveys-table-border);
  height: 38px;
  padding: 0.35rem !important;
  transition: background-color 0.15s ease;
}

.surveys-list-table tbody tr:hover td {
  background: rgba(44, 123, 229, 0.045);
}

.surveys-list-table .survey-sticky-column {
  left: 0;
  max-width: 200px;
  min-width: 175px;
  position: sticky;
  width: 200px;
}

.surveys-list-table thead .survey-sticky-column {
  background: var(--falcon-gray-200, #edf2f9);
  z-index: 5;
}

.surveys-list-table tbody .survey-sticky-column {
  background: var(--falcon-card-bg, #fff);
  z-index: 2;
}

.surveys-list-table tbody tr:hover .survey-sticky-column {
  background: #f7faff;
}

.survey-identity {
  line-height: 1.25;
  min-width: 0;
}

.survey-identity-name,
.survey-identity-meta,
.survey-table-truncate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-identity-name {
  font-size: 0.74rem;
  font-weight: 600;
}

.survey-identity-meta {
  color: var(--surveys-table-muted);
  font-size: 0.64rem;
  margin-top: 0.14rem;
}

.survey-project-manager {
  display: block;
  min-width: max-content;
  white-space: nowrap;
}

.survey-market {
  max-width: 145px;
}

.survey-table-number {
  font-variant-numeric: tabular-nums;
}

.survey-progress-value {
  color: var(--falcon-gray-800, #344050);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.survey-progress-percentage {
  color: var(--surveys-table-muted);
  font-size: 0.66rem;
}

.survey-table-badge {
  display: inline-flex;
  font-size: 0.65rem;
  justify-content: center;
  min-width: 0;
  padding: 0.3em 0.65em;
  white-space: nowrap;
  width: auto;
}

.survey-classification-empty {
  color: var(--surveys-table-muted);
  font-size: 0.67rem;
  font-style: italic;
  white-space: nowrap;
}

.survey-sampling-warning {
  align-items: center;
  background: var(--falcon-soft-danger, #fde6e8);
  border-radius: 999px;
  color: var(--falcon-danger, #e63757);
  display: inline-flex;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  gap: 0.3rem;
  padding: 0.22rem 0.48rem;
}

.survey-report-link {
  align-items: center;
  color: var(--falcon-gray-500, #9da9bb);
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-height: 28px;
  min-width: 28px;
}

.survey-report-link:hover,
.survey-report-link:focus {
  color: var(--falcon-primary, #2c7be5);
}

.survey-columns-menu {
  background: var(--falcon-card-bg, #fff);
  border: 1px solid var(--surveys-table-border);
  border-radius: 0.45rem;
  box-shadow: 0 0.5rem 1.5rem rgba(43, 45, 80, 0.16);
  left: auto;
  max-height: 430px;
  overflow-y: auto;
  padding: 0.75rem;
  position: absolute;
  right: 0;
  top: calc(100% - 0.35rem);
  width: 360px;
  z-index: 1060;
}

.survey-columns-menu[hidden] {
  display: none;
}

.survey-columns-menu-header {
  align-items: center;
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.survey-columns-options {
  display: grid;
  gap: 0.2rem 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.survey-columns-option {
  align-items: center;
  border-radius: 0.25rem;
  cursor: pointer;
  display: grid;
  font-size: 0.7rem;
  gap: 0.45rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 30px;
  padding: 0.25rem 0.35rem;
}

.survey-columns-option:hover {
  background: var(--falcon-gray-100, #f9fafd);
}

.survey-columns-option .form-check-input {
  margin: 0;
}

.survey-columns-required {
  color: var(--surveys-table-muted);
  font-size: 0.58rem;
  grid-column: 2;
  margin-top: -0.35rem;
}

.survey-columns-reset {
  font-size: 0.68rem;
  margin-top: 0.55rem;
  padding: 0.2rem 0;
}

@media (max-width: 991.98px) {
  .surveys-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surveys-filter-date-range,
  .surveys-filter-actions {
    grid-column: 1 / -1;
  }

  .surveys-filter-actions {
    justify-content: flex-end;
  }

  .surveys-list-page .dataTables_filter {
    text-align: left;
  }

  .surveys-list-page .dataTables_filter input {
    max-width: none;
    width: calc(100% - 4rem);
  }

  .surveys-list-table .survey-sticky-column {
    min-width: 175px;
    width: 190px;
  }
}

@media (max-width: 575.98px) {
  .surveys-filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .surveys-filter-date-range,
  .surveys-filter-actions {
    grid-column: auto;
  }

  .surveys-date-range-fields {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  }

  .surveys-date-preset-field {
    grid-column: 1 / -1;
  }

  .surveys-filter-actions {
    justify-content: stretch;
  }

  .surveys-filter-actions .btn-primary {
    flex: 1;
  }

  .surveys-date-preset-field .form-select {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .surveys-list-header .card-body {
    padding: 1rem;
  }

  .surveys-list-header .btn {
    width: 100%;
  }

  .surveys-list-card .card-body {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
  }

  .surveys-table-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .surveys-table-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .surveys-list-page .dataTables_filter {
    text-align: left;
    width: 100%;
  }

  .surveys-list-page .dataTables_filter label {
    align-items: center;
    display: flex;
  }

  .surveys-list-page .dataTables_filter input {
    flex: 1;
    max-width: none;
    min-width: 0;
  }

  .surveys-list-page #table_buttons {
    align-self: flex-end;
  }

  .survey-columns-menu {
    left: auto;
    max-width: calc(100vw - 3rem);
    right: 0;
    width: 320px;
  }

  .survey-columns-options {
    grid-template-columns: 1fr;
  }

  .surveys-columns-help {
    width: 100vw !important;
  }

  .surveys-help-item {
    gap: 0.15rem;
    grid-template-columns: 1fr;
  }

  .surveys-help-formula,
  .surveys-help-note {
    grid-column: 1;
  }
}

/* Survey detail */
.survey-detail-page {
  overflow: visible;
}

.survey-page-header {
  align-items: center;
  background: var(--falcon-bg-light, #f9fafd);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.survey-page-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.survey-back-link {
  align-items: center;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.survey-page-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.survey-page-meta {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.survey-copy-id-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--falcon-gray-600, #748194);
  display: inline-flex;
  font-size: 0.7rem;
  justify-content: center;
  line-height: 1;
  opacity: 0.8;
  padding: 0.15rem;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.survey-copy-id-button:hover,
.survey-copy-id-button:focus {
  color: var(--falcon-gray-800, #344050);
  opacity: 1;
}

.survey-copy-id-button:focus-visible {
  border-radius: 0.2rem;
  box-shadow: 0 0 0 0.15rem rgba(116, 129, 148, 0.25);
  outline: 0;
}

.survey-copy-id-button-success {
  color: var(--falcon-success, #00d27a);
}

.survey-detail-navigation {
  background: #fff;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.65rem 1.25rem;
}

.survey-detail-tabs {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.survey-detail-tabs .nav {
  gap: 0.25rem;
  min-width: max-content;
}

.survey-detail-tabs .nav-link {
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}

.survey-detail-body {
  background: #fff;
}

.survey-detail-form {
  margin: 0;
}

.survey-form-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-form-section {
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1.25rem 0;
}

.survey-form-section:last-child {
  border-bottom: 0;
}

.survey-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.survey-section-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.15rem;
}

.survey-section-description {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.78rem;
  margin: 0;
}

.survey-detail-page .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-label-with-help {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  width: fit-content;
}

.survey-label-with-help .form-label {
  margin-bottom: 0.35rem;
}

.survey-help-popover {
  background: transparent;
  border: 0;
  color: var(--falcon-primary, #2c7be5);
  line-height: 1;
  margin-bottom: 0.35rem;
  padding: 0.1rem;
}

.survey-help-popover:hover,
.survey-help-popover:focus {
  color: var(--falcon-primary, #2c7be5);
}

.survey-help-popover:focus-visible {
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25);
  outline: 0;
}

.survey-classification-popover {
  max-width: 240px;
}

.survey-classification-popover .popover-header {
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
}

.survey-classification-popover .popover-body {
  font-size: 0.7rem;
  line-height: 1.35;
  padding: 0.5rem 0.6rem;
}

.survey-detail-page .form-control,
.survey-detail-page .form-select {
  min-height: 40px;
}

.survey-detail-page .form-control:disabled,
.survey-detail-page .form-select:disabled {
  background-color: var(--falcon-gray-100, #f9fafd);
  color: var(--falcon-gray-700, #5e6e82);
  opacity: 1;
}

.survey-detail-page .choices {
  margin-bottom: 0;
}

.survey-detail-page .choices__inner {
  min-height: 40px;
}

.survey-dependent-option,
.survey-special-task {
  margin-top: 0.65rem;
}

.survey-classification-result {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
}

.survey-classification-label {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.survey-classification-result .badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.survey-entry-link {
  min-height: 76px !important;
  resize: vertical;
}

.survey-device-selection {
  border: 0;
  margin: 0;
  padding: 0;
}

.survey-field-errors:empty {
  display: none;
}

.survey-field-errors .errorlist {
  color: var(--falcon-danger, #e63757);
  font-size: 0.75rem;
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.survey-error-summary {
  font-size: 0.75rem;
  line-height: 1.35;
  margin: 1rem auto 0;
  max-width: 1400px;
  padding: 0.65rem 0.8rem;
}

.survey-error-summary-title {
  font-size: 0.82rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.survey-error-summary ul {
  margin-top: 0;
}

.survey-error-summary a {
  color: inherit;
  text-decoration: underline;
}

.survey-error-summary:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 55, 87, 0.25);
  outline: 0;
}

.survey-form-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  bottom: 0;
  box-shadow: 0 -0.35rem 0.8rem rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  position: sticky;
  z-index: 5;
}

/* Panelist detail */
.panelist-detail-page {
  scroll-behavior: smooth;
}

.panelist-detail-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.panelist-detail-page .survey-form-section {
  padding: 0.9rem 0;
}

.panelist-detail-page .survey-section-heading {
  margin-bottom: 0.7rem;
}

.panelist-page-header {
  flex-wrap: wrap;
}

.panelist-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panelist-block-summary {
  align-items: center;
  color: var(--falcon-danger, #e63757);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.panelist-profile-card,
.panelist-stat-summary,
.panelist-performance-panel {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
}

.panelist-profile-card {
  padding: 0.8rem;
}

.panelist-profile-identity {
  align-items: center;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.panelist-profile-avatar {
  background: #fff;
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.65rem;
  object-fit: cover;
  padding: 0.35rem;
}

.panelist-profile-kicker,
.panelist-profile-location,
.panelist-stat-label,
.panelist-stat-note {
  color: var(--falcon-gray-600, #748194);
  display: block;
  font-size: 0.72rem;
}

.panelist-profile-kicker,
.panelist-stat-label {
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.panelist-profile-name {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.15rem 0;
}

.panelist-detail-sections {
  display: block;
}

.panelist-detail-section {
  padding: 0;
}

.panelist-detail-section + .panelist-detail-section {
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  margin-top: 0.55rem;
  padding-top: 0.5rem;
}

.panelist-detail-section-title {
  color: var(--falcon-gray-700, #5e6e82);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.panelist-details-grid {
  display: grid;
  gap: 0.55rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.panelist-detail-item {
  min-width: 0;
}

.panelist-detail-item-wide {
  grid-column: 1 / -1;
}

.panelist-detail-item dt {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.panelist-detail-item dd {
  color: var(--falcon-gray-800, #344050);
  font-size: 0.8rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.panelist-detail-item dd .badge,
.panelist-detail-item dd .btn-link {
  margin-left: 0.35rem;
}

.panelist-language-preferences {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.panelist-detail-item dd .panelist-language-preferences .badge {
  margin-left: 0;
}

.panelist-phone-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.panelist-phone-summary,
.panelist-phone-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.panelist-phone-summary .badge,
.panelist-phone-actions .btn {
  margin-left: 0 !important;
}

.panelist-phone-history-modal .modal-header {
  align-items: flex-start;
  background: var(--falcon-bg-light, #f9fafd);
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1rem 1.25rem 0.85rem;
}

.panelist-phone-history-modal .modal-body {
  min-height: 12rem;
  padding: 1rem 1.25rem;
}

.panelist-phone-history-modal .modal-footer {
  background: var(--falcon-bg-light, #f9fafd);
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.65rem 1.25rem;
}

.panelist-phone-history-subtitle {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.panelist-phone-history-state {
  align-items: center;
  color: var(--falcon-gray-600, #748194);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  gap: 0.4rem;
  justify-content: center;
  min-height: 10rem;
  text-align: center;
}

.panelist-phone-history-state strong {
  color: var(--falcon-gray-800, #344050);
  font-size: 0.9rem;
}

.panelist-phone-history-state-icon {
  color: var(--falcon-gray-500, #9da9bb);
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.panelist-phone-history-table {
  font-size: 0.8rem;
}

.panelist-phone-history-table thead th {
  background: var(--falcon-bg-light, #f9fafd);
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  color: var(--falcon-gray-600, #748194);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.65rem 0.75rem;
  text-transform: uppercase;
}

.panelist-phone-history-table tbody td {
  border-color: var(--falcon-border-color, #d8e2ef);
  padding: 0.7rem 0.75rem;
  vertical-align: middle;
}

.panelist-phone-history-table .badge {
  white-space: normal;
}

.panelist-phone-summary .spinner-border {
  border-width: 0.1em;
  height: 0.65rem;
  vertical-align: -0.05rem;
  width: 0.65rem;
}

.panelist-phone-actions {
  color: var(--falcon-gray-500, #9da9bb);
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-left: auto;
  margin-top: 0;
}

.panelist-phone-actions .btn {
  font-size: 0.68rem;
  padding: 0.25rem 0.5rem;
}

.panelist-stat-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.panelist-stat-item {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.65rem;
}

.panelist-stat-item + .panelist-stat-item {
  border-left: 1px solid var(--falcon-border-color, #d8e2ef);
}

.panelist-stat-content {
  min-width: 0;
}

.panelist-stat-icon {
  align-items: center;
  border-radius: 0.5rem;
  display: inline-flex;
  flex: 0 0 2rem;
  font-size: 0.8rem;
  height: 2rem;
  justify-content: center;
}

.panelist-stat-value {
  color: var(--falcon-gray-900, #0b1727);
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0.05rem 0;
}

.panelist-performance-panel {
  overflow: hidden;
}

.panelist-performance-heading {
  align-items: center;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
}

.panelist-performance-heading h3 {
  font-size: 0.82rem;
  margin: 0;
}

.panelist-performance-heading p {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.68rem;
  margin: 0.1rem 0 0;
}

.panelist-performance-body {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
}

.panelist-outcome-grid {
  align-content: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.6rem;
}

.panelist-outcome {
  background: #fff;
  border-left: 0.2rem solid var(--falcon-gray-400, #9da9bb);
  border-radius: 0.35rem;
  box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.04);
  padding: 0.45rem 0.55rem;
}

.panelist-outcome-success { border-left-color: var(--falcon-success, #00d27a); }
.panelist-outcome-warning { border-left-color: var(--falcon-warning, #f5803e); }
.panelist-outcome-danger { border-left-color: var(--falcon-danger, #e63757); }
.panelist-outcome-info { border-left-color: var(--falcon-info, #27bcfd); }

.panelist-outcome-label {
  color: var(--falcon-gray-700, #5e6e82);
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
}

.panelist-outcome strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.panelist-performance-chart {
  align-items: center;
  background: #fff;
  border-right: 1px solid var(--falcon-border-color, #d8e2ef);
  display: flex;
  justify-content: center;
  min-height: 178px;
  padding: 0.35rem;
}

.panelist-performance-chart .echart-survey-status {
  min-height: 168px;
  width: 100%;
}

.panelist-history-navigation {
  background: var(--falcon-bg-light, #f9fafd);
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  overflow-x: auto;
  padding: 0.5rem 0.65rem;
}

.panelist-history-navigation .nav {
  flex-wrap: nowrap;
  gap: 0.25rem;
  min-width: max-content;
}

.panelist-history-navigation .nav-link {
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}

.panelist-history-content {
  padding: 0.5rem 0 0;
}

@media (max-width: 767.98px) {
  .panelist-details-grid,
  .panelist-performance-body {
    grid-template-columns: 1fr;
  }

  .panelist-performance-chart {
    border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
    border-right: 0;
  }

  .panelist-header-actions {
    width: 100%;
  }

  .panelist-header-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .panelist-detail-content {
    padding: 0 0.75rem;
  }

  .panelist-profile-identity {
    align-items: flex-start;
  }

  .panelist-stat-summary {
    grid-template-columns: 1fr;
  }

  .panelist-stat-item + .panelist-stat-item {
    border-left: 0;
    border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  }
}

.survey-action-buttons {
  gap: 0.5rem;
}

/* Survey qualifications */
.survey-qualifications-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-qualifications-section {
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1.25rem 0;
}

.survey-qualifications-section:last-child {
  border-bottom: 0;
}

.survey-qualifications-heading {
  align-items: center;
}

.survey-new-qualification-button,
.survey-recalculate-button {
  white-space: nowrap;
}

.survey-sampling-panel {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
}

.survey-sampling-label {
  color: var(--falcon-gray-600, #748194);
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.survey-sampling-value {
  color: var(--falcon-gray-900, #0b1727);
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}

.survey-qualifications-page .select2-container {
  max-width: 100%;
  width: 100% !important;
}

.survey-qualifications-page
  .select2-container--bootstrap-5
  .select2-selection--multiple {
  min-height: 40px;
  padding-bottom: 0.2rem;
  padding-top: 0.2rem;
}

.survey-qualification-count {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
}

.survey-qualifications-table-wrapper {
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.survey-qualifications-table {
  table-layout: fixed;
}

.survey-qualifications-table thead {
  background: var(--falcon-gray-200, #edf2f9);
  color: var(--falcon-gray-900, #0b1727);
}

.survey-qualifications-table th {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.75rem;
  text-transform: uppercase;
}

.survey-qualifications-table td {
  font-size: 0.75rem;
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.survey-qualifications-table th:first-child,
.survey-qualifications-table td:first-child {
  width: 30%;
}

.survey-qualifications-table th:last-child,
.survey-qualifications-table td:last-child {
  width: 3rem;
}

.survey-qualifications-table .edit-qualification-link {
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.survey-condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.survey-condition-chip {
  background: var(--falcon-gray-100, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.3rem;
  color: var(--falcon-gray-700, #5e6e82);
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.2rem 0.4rem;
}

.survey-qualifications-page .dataTables_wrapper > .row {
  margin-left: 0;
  margin-right: 0;
}

.survey-qualifications-page .dataTables_wrapper > .row:first-child {
  align-items: center;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.4rem 0.6rem;
}

.survey-qualifications-page .dataTables_wrapper > .row:last-child {
  align-items: center;
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.65rem 0.75rem;
}

.survey-qualifications-page .dataTables_length,
.survey-qualifications-page .dataTables_filter,
.survey-qualifications-page .dataTables_info,
.survey-qualifications-page .dataTables_paginate {
  font-size: 0.75rem;
}

.survey-qualifications-page .dataTables_length label,
.survey-qualifications-page .dataTables_filter label {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  margin: 0;
}

.survey-qualifications-page .dataTables_length select,
.survey-qualifications-page .dataTables_filter input {
  font-size: 0.75rem;
  min-height: 32px;
}

.survey-qualifications-page .dataTables_length select {
  margin: 0;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
  width: 4.5rem;
}

.survey-qualifications-page .dataTables_filter input {
  margin: 0;
  max-width: 11rem;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.survey-qualification-modal .modal-header,
.survey-qualification-modal .modal-body,
.survey-qualification-modal .modal-footer {
  padding: 1rem 1.25rem;
}

.survey-qualification-modal .modal-title {
  font-size: 1rem;
}

.survey-qualification-modal .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-qualification-modal .select2-container {
  width: 100% !important;
}

/* Survey quotas */
.survey-quotas-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-quotas-section {
  padding: 1.25rem 0;
}

.survey-quotas-heading {
  align-items: center;
}

.survey-quotas-table-wrapper {
  contain: inline-size paint;
  max-width: 100%;
  overflow-x: auto;
}

.survey-quotas-table {
  min-width: 880px;
  table-layout: fixed;
}

.survey-quotas-table thead {
  background: var(--falcon-gray-200, #edf2f9);
  color: var(--falcon-gray-900, #0b1727);
}

.survey-quotas-table th {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.75rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.survey-quotas-table td {
  font-size: 0.75rem;
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.survey-quotas-table th:first-child,
.survey-quotas-table td:first-child {
  width: 18%;
}

.survey-quotas-table th:last-child,
.survey-quotas-table td:last-child {
  width: 3rem;
}

.survey-quota-total-row {
  background: var(--falcon-bg-light, #f9fafd);
}

.survey-quota-number-input {
  font-size: 0.75rem;
  min-height: 32px !important;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
  width: 6rem;
}

.survey-quota-metric {
  color: var(--falcon-gray-700, #5e6e82);
  font-weight: 600;
}

.survey-quota-modal .modal-header,
.survey-quota-modal .modal-body,
.survey-quota-modal .modal-footer {
  padding: 1rem 1.25rem;
}

.survey-quota-modal .modal-title {
  font-size: 1rem;
}

.survey-quota-modal .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-quota-modal .form-control {
  min-height: 40px;
}

/* Survey security */
.survey-security-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-security-section {
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1.25rem 0;
}

.survey-security-section:last-child {
  border-bottom: 0;
}

.survey-security-heading,
.survey-security-summary-heading {
  align-items: center;
}

.survey-security-instructions-button {
  white-space: nowrap;
}

.survey-security-upload-panel {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
}

.survey-security-page .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-security-page .form-control {
  min-height: 40px;
}

.survey-security-page .form-text {
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

.survey-security-upload-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.survey-security-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(180px, 0.35fr) minmax(240px, 0.65fr);
  margin-bottom: 1rem;
}

.survey-security-metric {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
}

.survey-security-metric-label {
  color: var(--falcon-gray-600, #748194);
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.survey-security-metric-value {
  color: var(--falcon-gray-900, #0b1727);
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.survey-security-metric-date {
  color: var(--falcon-gray-800, #344050);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.survey-security-table-wrapper {
  overflow: hidden;
}

.survey-security-table {
  table-layout: fixed;
}

.survey-security-table thead {
  background: var(--falcon-gray-200, #edf2f9);
  color: var(--falcon-gray-900, #0b1727);
}

.survey-security-table th {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.75rem;
  text-transform: uppercase;
}

.survey-security-table td {
  font-size: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.survey-security-survey-id {
  overflow-wrap: anywhere;
}

.survey-security-page .dataTables_wrapper > .row {
  margin-left: 0;
  margin-right: 0;
}

.survey-security-page .dataTables_wrapper > .row:first-child {
  align-items: center;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.4rem 0.6rem;
}

.survey-security-page .dataTables_wrapper > .row:last-child {
  align-items: center;
  border-top: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.65rem 0.75rem;
}

.survey-security-page .dataTables_length,
.survey-security-page .dataTables_filter,
.survey-security-page .dataTables_info,
.survey-security-page .dataTables_paginate {
  font-size: 0.75rem;
}

.survey-security-page .dataTables_length label,
.survey-security-page .dataTables_filter label {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  margin: 0;
}

.survey-security-page .dataTables_length select,
.survey-security-page .dataTables_filter input {
  font-size: 0.75rem;
  min-height: 32px;
}

.survey-security-page .dataTables_length select {
  margin: 0;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
  width: 4.5rem;
}

.survey-security-page .dataTables_filter input {
  margin: 0;
  max-width: 11rem;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.survey-security-danger-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.survey-security-offcanvas {
  max-width: min(360px, 90vw);
}

.survey-security-offcanvas .offcanvas-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1rem 1.25rem;
}

.survey-security-offcanvas .offcanvas-body {
  padding: 1rem 1.25rem;
}

.survey-security-instructions-list {
  color: var(--falcon-gray-700, #5e6e82);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 1.25rem;
}

.survey-security-instructions-list li + li {
  margin-top: 0.65rem;
}

/* Survey reconciliation */
.survey-reconciliation-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-reconciliation-section {
  padding: 1.25rem 0;
}

.survey-reconciliation-heading {
  align-items: center;
}

.survey-reconciliation-instructions-button {
  white-space: nowrap;
}

.survey-reconciliation-panel {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  padding: 1rem;
}

.survey-reconciliation-page .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-reconciliation-page .form-control,
.survey-reconciliation-page .form-select {
  min-height: 40px;
}

.survey-reconciliation-page .form-text {
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

.survey-reconciliation-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.survey-reconciliation-offcanvas {
  max-width: min(420px, 92vw);
}

.survey-reconciliation-offcanvas .offcanvas-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1rem 1.25rem;
}

.survey-reconciliation-offcanvas .offcanvas-body {
  padding: 1rem 1.25rem;
}

.survey-reconciliation-instruction {
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 0.75rem 0;
}

.survey-reconciliation-instruction:first-child {
  padding-top: 0;
}

.survey-reconciliation-instruction h3,
.survey-reconciliation-file-rules h3 {
  font-size: 0.78rem;
  margin: 0 0 0.2rem;
}

.survey-reconciliation-instruction p,
.survey-reconciliation-file-rules ul {
  color: var(--falcon-gray-700, #5e6e82);
  font-size: 0.75rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.survey-reconciliation-file-rules {
  padding-top: 0.9rem;
}

.survey-reconciliation-file-rules ul {
  padding-left: 1.1rem;
}

.survey-reconciliation-file-rules li + li {
  margin-top: 0.3rem;
}

/* Survey communication */
.survey-communication-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-communication-section {
  border-bottom: 1px solid var(--falcon-border-color, #d8e2ef);
  padding: 1.25rem 0;
}

.survey-communication-section:last-child {
  border-bottom: 0;
}

.survey-communication-heading {
  align-items: center;
}

.survey-communication-heading .btn {
  white-space: nowrap;
}

.survey-communication-table-wrapper {
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  overflow: hidden;
}

.survey-communication-table thead {
  background: var(--falcon-gray-200, #edf2f9);
  color: var(--falcon-gray-900, #0b1727);
}

.survey-communication-table th {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
}

.survey-communication-table td {
  font-size: 0.75rem;
  padding: 0.45rem 0.7rem;
}

.survey-communication-table th:last-child,
.survey-communication-table td:last-child {
  font-weight: 600;
  width: 6rem;
}

.survey-communication-action-panel {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  height: 100%;
  padding: 0.85rem;
}

.survey-communication-page .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-communication-page .form-control {
  min-height: 40px;
}

.survey-communication-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.survey-communication-action-buttons .btn {
  flex: 1 1 8rem;
}

.survey-communication-empty-message {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0;
}

/* Survey sample data */
.survey-sample-data-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-sample-data-section {
  padding: 1.25rem 0;
}

.survey-sample-data-panel {
  align-items: center;
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem;
}

.survey-sample-data-summary {
  min-width: 0;
}

.survey-sample-data-label {
  color: var(--falcon-gray-600, #748194);
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.survey-sample-data-value {
  color: var(--falcon-gray-900, #0b1727);
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.survey-sample-data-help {
  color: var(--falcon-gray-600, #748194);
  font-size: 0.72rem;
  margin: 0.35rem 0 0;
}

.survey-sample-data-download-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Survey clone */
.survey-clone-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1.25rem;
}

.survey-clone-section {
  padding: 1.25rem 0;
}

.survey-clone-panel {
  background: var(--falcon-bg-light, #f9fafd);
  border: 1px solid var(--falcon-border-color, #d8e2ef);
  border-radius: 0.5rem;
  padding: 1rem;
}

.survey-clone-form-row {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.survey-clone-field {
  flex: 1 1 auto;
  min-width: 0;
}

.survey-clone-page .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.survey-clone-page .form-control {
  min-height: 40px;
}

.survey-clone-page .form-text {
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

.survey-clone-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

@media (max-width: 767.98px) {
  .survey-page-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 1rem;
  }

  .survey-detail-navigation {
    padding: 0.55rem 0.75rem;
  }

  .survey-detail-tabs .nav-link {
    padding: 0.4rem 0.7rem;
  }

  .survey-form-content {
    padding: 0 1rem;
  }

  .survey-form-section {
    padding: 1rem 0;
  }

  .survey-section-heading-with-result {
    flex-direction: column;
  }

  .survey-classification-result {
    align-items: flex-start;
    text-align: left;
  }

  .survey-form-actions {
    padding: 0.65rem 1rem;
  }

  .survey-cancel-link {
    display: none;
  }

  .survey-action-buttons {
    width: 100%;
  }

  .survey-action-buttons .btn {
    flex: 1 1 0;
  }

  .survey-qualifications-content {
    padding: 0 1rem;
  }

  .survey-qualifications-section {
    padding: 1rem 0;
  }

  .survey-qualifications-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-new-qualification-button {
    align-self: flex-start;
  }

  .survey-recalculate-button {
    width: 100%;
  }

  .survey-qualifications-table {
    min-width: 620px;
  }

  .survey-quotas-content {
    padding: 0 1rem;
  }

  .survey-quotas-section {
    padding: 1rem 0;
  }

  .survey-quotas-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-security-content {
    padding: 0 1rem;
  }

  .survey-security-section {
    padding: 1rem 0;
  }

  .survey-security-heading,
  .survey-security-summary-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-security-instructions-button {
    align-self: flex-start;
  }

  .survey-security-upload-actions {
    width: 100%;
  }

  .survey-security-upload-actions .btn {
    flex: 1 1 0;
  }

  .survey-security-metrics {
    grid-template-columns: 1fr;
  }

  .survey-security-summary-heading .btn {
    align-self: flex-start;
  }

  .survey-reconciliation-content {
    padding: 0 1rem;
  }

  .survey-reconciliation-section {
    padding: 1rem 0;
  }

  .survey-reconciliation-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-reconciliation-instructions-button {
    align-self: flex-start;
  }

  .survey-reconciliation-actions {
    width: 100%;
  }

  .survey-reconciliation-actions .btn {
    flex: 1 1 0;
  }

  .survey-communication-content {
    padding: 0 1rem;
  }

  .survey-communication-section {
    padding: 1rem 0;
  }

  .survey-communication-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-communication-heading .btn {
    align-self: flex-start;
  }

  .survey-sample-data-content {
    padding: 0 1rem;
  }

  .survey-sample-data-section {
    padding: 1rem 0;
  }

  .survey-sample-data-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .survey-sample-data-download-button {
    width: 100%;
  }

  .survey-clone-content {
    padding: 0 1rem;
  }

  .survey-clone-section {
    padding: 1rem 0;
  }

  .survey-clone-actions {
    width: 100%;
  }

  .survey-clone-actions .btn {
    flex: 1 1 0;
  }

  .survey-clone-form-row {
    flex-direction: column;
  }

}
