/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html[data-theme="light"] {
  color-scheme: light;
  filter: invert(1) hue-rotate(180deg);
}

html[data-theme="light"] img,
html[data-theme="light"] video,
html[data-theme="light"] canvas,
html[data-theme="light"] svg {
  filter: invert(1) hue-rotate(180deg);
}

.brand-logo {
  display: block;
  height: 4.5rem;
  width: auto;
}

.brand-logo--for-dark-theme {
  display: block;
}

.brand-logo--for-light-theme {
  display: none;
}

html[data-theme="light"] .brand-logo {
  filter: none !important;
}

html[data-theme="light"] .brand-logo--for-dark-theme {
  display: none;
}

html[data-theme="light"] .brand-logo--for-light-theme {
  display: block;
}

.pdf-mapper-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 280px minmax(0, 1fr);
}

.pdf-mapper-panel {
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.45);
  max-height: 34rem;
  overflow: auto;
}

.pdf-mapper-lobbie-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pdf-mapper-lobbie-item {
  border: 1px solid rgba(100, 116, 139, 0.6);
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
  background: rgba(15, 23, 42, 0.8);
  cursor: grab;
}

.pdf-mapper-preview-wrap {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.pdf-mapper-canvas-wrap {
  position: relative;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.35);
  overflow: auto;
  min-height: 24rem;
  padding: 0.5rem;
}

.pdf-mapper-overlay {
  position: absolute;
  pointer-events: auto;
  z-index: 10;
}

.pdf-map-drop-zone {
  position: absolute;
  border: 1px solid rgba(45, 212, 191, 0.75);
  background: rgba(45, 212, 191, 0.1);
  border-radius: 0.3rem;
}

.pdf-map-drop-zone.dragover {
  border-color: rgba(16, 185, 129, 1);
  background: rgba(16, 185, 129, 0.28);
}

.pdf-map-drop-zone.mapped {
  border-color: rgba(168, 85, 247, 1);
  background: rgba(168, 85, 247, 0.24);
}

.pdf-mapper-fields {
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.45);
  padding: 0.75rem;
  max-height: 34rem;
  overflow: auto;
}

.pdf-review-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 24rem;
}

@media (max-width: 1024px) {
  .pdf-mapper-grid {
    grid-template-columns: 1fr;
  }

  .pdf-mapper-preview-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .pdf-review-grid {
    grid-template-columns: 1fr;
  }
}

.csv-export-toolbar {
  position: sticky;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-width: max-content;
  justify-content: flex-end;
  padding: 0.5rem 0.5rem 0.4rem;
  pointer-events: none;
}

.csv-export-button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.4rem 0.7rem;
  color: rgb(204 251 241);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.24);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.csv-export-button:hover,
.csv-export-button:focus-visible {
  border-color: rgba(94, 234, 212, 0.85);
  background: rgba(19, 78, 74, 0.55);
  color: white;
  outline: none;
}

.csv-export-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.csv-export-button--complete {
  border-color: rgba(52, 211, 153, 0.7);
  background: rgba(6, 78, 59, 0.65);
  color: rgb(209 250 229);
}

.csv-export-button svg {
  height: 1rem;
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  overflow: visible;
}

@media print {
  .csv-export-toolbar {
    display: none;
  }
}
