/*
 * This is a manifest file that'll be compiled into application.css.
 * With Propshaft, assets are served efficiently without preprocessing steps.
 */

/*  Layout components */

/* Fixed footer at the bottom of the page */
#main_footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #FAFAFA;
}

#main_footer table {
  width: 100%;
}

.epfl-footer-logo-link {
  display: inline-block;
  margin: 0 10px 0 20px;
}

.footer-meta-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #4b5563;
}

.footer-meta-text a {
  color: #374151;
  text-decoration: none;
}

.footer-meta-text a:hover {
  text-decoration: underline;
}

.footer-note-text {
  display: inline-block;
  margin-right: 10px;
  font-style: italic;
  color: grey;
  font-size: 10px;
  line-height: 1.3;
}

#footer {
  margin-bottom: 50px;
  text-align: center;
}

.tuto-image {
  display: block;
  margin-bottom:2em;
  margin-top:2em;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

.sm {margin-top:1em;margin-bottom:1em}

#tuto-menu {
  position:fixed;
  z-index:10;
  background-color:white
}

@media (min-width: 768px) {
  header .menu-item,
  header .nav-top-dropdown-button {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  header .menu-item.menu-item-default:hover,
  header .menu-item.menu-item-default:focus {
    color: #374151 !important;
  }
}

.info-menu-guided-tours-disclosure summary {
  list-style: none;
}

.info-menu-guided-tours-disclosure summary::-webkit-details-marker {
  display: none;
}

.info-menu-guided-tours-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -0.15rem;
  opacity: 0.65;
}

.info-menu-guided-tours-disclosure[open] .info-menu-guided-tours-chevron {
  transform: rotate(45deg);
  margin-top: 0.1rem;
}

/* Global typography baseline across views (except summary panels). */
body {
  font-size: 13px;
  line-height: 1.35rem;
  color: #111827;
}

h1 { font-size: 1.25rem; line-height: 1.75rem; }
h2 { font-size: 1.125rem; line-height: 1.6rem; }
h3 { font-size: 1rem; line-height: 1.5rem; }
h4 { font-size: 0.9375rem; line-height: 1.4rem; }
h5, h6 { font-size: 0.875rem; line-height: 1.35rem; }

p, label, li, td, th, input, select, textarea, button {
  font-size: 0.8125rem;
  line-height: 1.35rem;
}

/* Keep summary views untouched by the global baseline. */
#result_summary p,
#result_summary label,
#result_summary li,
#result_summary td,
#result_summary th,
#result_summary input,
#result_summary select,
#result_summary textarea,
#result_summary button,
#run_result_summary_panel p,
#run_result_summary_panel label,
#run_result_summary_panel li,
#run_result_summary_panel td,
#run_result_summary_panel th,
#run_result_summary_panel input,
#run_result_summary_panel select,
#run_result_summary_panel textarea,
#run_result_summary_panel button {
  font-size: inherit;
  line-height: inherit;
}

/* Tour chrome (panel, overlay root, try bar) sits above page UI including header dropdowns
   (nav/project use up to z-[10000]). Highlighted page nodes use a low z-index so they do not
   stack above the fixed header; only the popup is lifted. */
.guided-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10090;
  pointer-events: none;
}

.guided-tour-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.guided-tour-panel {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10100;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px 20px 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.guided-tour-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -16px -20px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #334155;
  border-radius: 12px 12px 0 0;
  cursor: grab;
  user-select: none;
}

.guided-tour-panel-header:active {
  cursor: grabbing;
}

.guided-tour-panel-drag-handle {
  flex-shrink: 0;
  color: #64748b;
  line-height: 1;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.guided-tour-panel-title-in-header {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.guided-tour-picker {
  max-height: none;
}

.guided-tour-picker-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}

.guided-tour-picker-list li {
  margin-bottom: 8px;
}

.guided-tour-picker-list button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 14px;
}

.guided-tour-picker-list button:hover {
  background: #334155;
}

.guided-tour-panel-title {
  font-size: 18px;
  font-weight: 700;
}

.guided-tour-panel-title:not(.guided-tour-panel-title-in-header) {
  margin: 0 0 8px;
}

.guided-tour-panel-body {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.guided-tour-panel-body a {
  color: #38bdf8;
  text-decoration: underline;
}

.guided-tour-panel-body a:hover {
  color: #7dd3fc;
}

.guided-tour-panel-body strong {
  color: #f8fafc;
}

.guided-tour-panel-body .trix-content {
  max-height: 40vh;
  overflow: auto;
  color: #cbd5e1;
}

.guided-tour-panel-warn {
  margin: 0 0 10px;
  font-size: 13px;
  color: #fbbf24;
}

.guided-tour-panel-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.guided-tour-complete-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.guided-tour-panel-meta-complete {
  font-weight: 600;
  color: #34d399;
}

.guided-tour-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.guided-tour-panel-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 2.5rem;
}

.guided-tour-countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  flex-shrink: 0;
}

.guided-tour-countdown-ring-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.guided-tour-countdown-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.guided-tour-countdown-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #38bdf8;
  line-height: 1;
  pointer-events: none;
}

.guided-tour-countdown-track {
  fill: none;
  stroke: rgba(56, 189, 248, 0.22);
  stroke-width: 3;
}

.guided-tour-countdown-bar {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}

.guided-tour-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.guided-tour-btn {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.guided-tour-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.guided-tour-btn-primary {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
}

.guided-tour-btn-primary:hover:not(:disabled) {
  background: #7dd3fc;
}

.guided-tour-btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

.guided-tour-btn-secondary:hover:not(:disabled) {
  background: #334155;
}

.guided-tour-target {
  position: relative;
  z-index: 40;
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

.guided-tour-try-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10100;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.guided-tour-try-bar-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.guided-tour-try-bar-btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.guided-tour-try-bar-btn-primary:hover {
  background: #7dd3fc;
}

.guided-tour-try-bar-btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

.guided-tour-try-bar-btn-secondary:hover {
  background: #334155;
}

.guided-tour-admin-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-width: 100%;
  max-height: min(90vh, 900px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.guided-tour-admin-dialog::backdrop {
  background: rgba(17, 24, 39, 0.5);
}

.guided-tour-admin-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 900px);
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
}

.guided-tour-admin-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.guided-tour-admin-dialog-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.guided-tour-admin-dialog-close {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.guided-tour-admin-dialog-close:hover {
  color: #111827;
  background: #f3f4f6;
}

/* Font Awesome spinners need inline-block for transform animations (Chrome). */
.fa-spin,
.fa-pulse,
.fas.fa-spin,
.far.fa-spin,
.fab.fa-spin {
  display: inline-block;
}

@keyframes asap-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fa-spin {
  animation-name: asap-spin;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cell-filtering-layout-host {
  container-type: inline-size;
  container-name: cell-filtering;
  width: 100%;
  min-width: 0;
}

.cell-filtering-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.cell-filtering-form-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex: none;
}

.cell-filtering-plot-col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cell-filtering-plot-area {
  min-height: 400px;
  height: 400px;
  width: 100%;
  box-sizing: border-box;
}

@container cell-filtering (min-width: 40rem) {
  .cell-filtering-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .cell-filtering-form-col {
    flex: 0 0 38%;
    width: 38%;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 220px);
  }

  .cell-filtering-plot-col {
    flex: 1 1 0;
    width: auto;
    display: flex;
    flex-direction: column;
  }
}

.cell-filtering-toolbar {
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.cell-filtering-toolbar h4 {
  font-size: 0.75rem;
}

.cell-filtering-toolbar .cell-filtering-stat {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
}

.cell-filtering-toolbar .cell-filtering-action-btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.cell-filtering-form-compact {
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.cell-filtering-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.cell-filtering-form-compact h4:not(.cell-filtering-card-title) {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.cell-filtering-form-compact .cell-filtering-info-box {
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.cell-filtering-form-compact .cell-filtering-param-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cell-filtering-form-compact .cell-filtering-param-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.cell-filtering-form-compact .cell-filtering-param-row:last-child {
  border-bottom: 0;
}

.cell-filtering-form-compact .cell-filtering-param-and {
  width: 1.5rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #6b7280;
}

.cell-filtering-form-compact .cell-filtering-param-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.cell-filtering-form-compact .cell-filtering-param-op {
  width: 3.25rem;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #374151;
}

.cell-filtering-form-compact .cell-filtering-param-input {
  width: 3rem;
  flex-shrink: 0;
  padding: 0.125rem 0.25rem;
  font-size: 0.6875rem;
  text-align: center;
}

.cell-filtering-form-compact .cell-filtering-param-label {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-filtering-form-compact .cell-filtering-param-toggle {
  flex-shrink: 0;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.cell-filtering-form-compact .cell-filtering-section {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.cell-filtering-form-compact .cell-filtering-field {
  margin-bottom: 0.375rem;
}

.cell-filtering-form-compact .cell-filtering-field:last-child {
  margin-bottom: 0;
}

.cell-filtering-form-compact .cell-filtering-field label {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #374151;
}

.cell-filtering-form-compact .cell-filtering-field select,
.cell-filtering-form-compact .cell-filtering-field input[type="text"] {
  width: 100%;
  padding: 0.25rem 0.375rem;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.cell-filtering-form-compact .cell-filtering-hint {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  line-height: 1.3;
  color: #6b7280;
}

.cell-filtering-form-compact .cell-filtering-metadata-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.cell-filtering-form-compact .cell-filtering-metadata-actions button {
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  line-height: 1.2;
}

.cell-filtering-form-compact #list_of_cats {
  gap: 0.25rem;
}

.cell-filtering-form-compact #list_of_cats label {
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.doublet-calling-layout-host {
  container-type: inline-size;
  container-name: doublet-calling;
  width: 100%;
  min-width: 0;
}

.doublet-calling-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.doublet-calling-controls-col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doublet-calling-plots-col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.doublet-calling-plot-area {
  min-height: 280px;
  width: 100%;
  box-sizing: border-box;
}

.doublet-calling-plot-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@container doublet-calling (min-width: 40rem) {
  .doublet-calling-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .doublet-calling-controls-col {
    flex: 0 0 38%;
    width: 38%;
    max-width: 24rem;
    overflow-y: auto;
    max-height: calc(100vh - 220px);
  }

  .doublet-calling-plots-col {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

@container doublet-calling (min-width: 56rem) {
  .doublet-calling-plot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.attr-layout-host {
  container-type: inline-size;
  container-name: attr-layout;
  width: 100%;
  min-width: 0;
}

.attr-layout-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.attr-layout-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.attr-layout-col-full {
  flex: none;
}

@container attr-layout (min-width: 36rem) {
  .attr-layout-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .attr-layout-col {
    width: auto;
  }

  .attr-layout-col-full {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .attr-layout-col-half {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    min-width: 12rem;
  }

  .attr-layout-col-third {
    flex: 1 1 calc(33.333% - 0.667rem);
    max-width: calc(33.333% - 0.667rem);
    min-width: 10rem;
  }

  .attr-layout-col-two-thirds {
    flex: 1 1 calc(66.667% - 0.667rem);
    max-width: calc(66.667% - 0.667rem);
    min-width: 14rem;
  }

  .attr-layout-col-quarter {
    flex: 1 1 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
    min-width: 8rem;
  }
}
