/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --main-bg-color: #ed702d;
  --main-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  --button-bg-color: #4CAF50;
  --button-hover-color: #45a049;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
}

header {
  background: white;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--main-bg-color);
  margin-bottom: 2rem;
  position: relative;
  z-index: 100;
}

.application-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .application-heading {
    padding: 1rem 2rem;
  }
}

.left-elements {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link img {
  height: 50px;
  width: auto;
}

.left-elements a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-weight: 500;
}

.left-elements a:hover {
  background-color: #f5f5f5;
  color: var(--main-bg-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  background: none;
  border: none;
  font: inherit;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.nav-trigger:hover,
.nav-item:focus-within .nav-trigger {
  background-color: #f5f5f5;
  color: var(--main-bg-color);
}

.nav-caret {
  font-size: 0.7em;
  line-height: 1;
  opacity: 0.7;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.nav-dropdown a:hover {
  background-color: #f5f5f5;
  color: var(--main-bg-color);
}

.right-elements {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.right-elements a {
  text-decoration: none;
  color: white;
  background-color: var(--main-bg-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.right-elements a:hover {
  background-color: #d86325;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.application-heading > *,
.application-heading > * > * {
  margin: 0;
}

body {
  font-family: var(--main-font-family);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f8f9fa;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 98%;
  max-width: 2000px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* A card that grows to fit wide tables; the page scrolls sideways instead of the table spilling out. */
.container.wild-container {
  width: max-content;
  min-width: 98%;
  max-width: none;
}

.page-heading {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 0 0 1.5rem 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  color: #333;
  margin: 0;
  font-weight: 700;
}

/* Force a subtitle onto its own line beneath the heading instead of beside it. */
.page-heading > .subtext {
  flex-basis: 100%;
  margin: 0.4rem 0 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  line-height: 1.45;
}

.page-heading > .subtext a {
  color: inherit;
}

.page-heading-right-wrapper {
  padding-right: 4em;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 1em;
}

.requote-button button,
button.requote-button,
a.requote-button {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  font: inherit;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.requote-button button:hover,
button.requote-button:hover,
a.requote-button:hover {
  background-color: #1d4ed8;
  color: white;
}

button.requote-button.secondary,
a.requote-button.secondary {
  background-color: #e5e7eb;
  color: #111827;
}

button.requote-button.secondary:hover,
a.requote-button.secondary:hover {
  background-color: #d1d5db;
  color: #111827;
}

/* A row of page actions; button_to's form shouldn't break the row. */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5em;
}

.action-bar form {
  margin: 0;
}

.flash {
  margin: 0.75em 2em;
  padding: 0.75em 1em;
  border-radius: 4px;
  font-weight: 500;
}

.flash-notice {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.flash-alert {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.horizontal-float {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0%;
  min-width: max-content;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.horizontal-float .table-container {
  width: auto;
  flex: 1 0 auto;
  margin: 10px 2px;
}

.horizontal-float table td {
  padding: 4px;
  height: 100px;
  max-width: max-content;
}

.horizontal-float table th {
  max-width: max-content;
}

.hide {
  margin: 0% !important;
  padding: 0% !important;
  width: 0;
  overflow: hidden;
  color: white;
}

table, th, td {
  border: 1px solid #e0e0e0;
  text-align: center;
  padding: 12px 15px;
}

th {
  background-color: var(--main-bg-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

tbody tr:hover {
  background-color: #fff3e0;
}

.quote-form {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}

.quote-form textarea,
.quote-form select,
.quote-form input,
.quote-form input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: var(--main-font-family);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.quote-form textarea:focus,
.quote-form select:focus,
.quote-form input:focus {
  outline: none;
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(237, 112, 45, 0.1);
}

.quote-form button {
  padding: 12px 24px;
  background-color: var(--button-bg-color);
  color: white;
  border: none;
  cursor: pointer;
  display: block;
  width: 100%;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.quote-form button:hover {
  background-color: var(--button-hover-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quote-form button:active {
  transform: translateY(0);
}

.form-heading {
  max-width: 600px;
}

.hidden-quote-form-wrapper {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hidden-quote-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.hidden-quote-form input,
.hidden-quote-form select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: var(--main-font-family);
  font-size: 0.9rem;
  background-color: white;
  transition: all 0.2s ease;
  height: auto;
  min-width: 150px;
  width: auto !important;
  margin-bottom: 0 !important;
}

.hidden-quote-form input:focus,
.hidden-quote-form select:focus {
  outline: none;
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(237, 112, 45, 0.1);
}

.hidden-quote-form button {
  padding: 8px 20px;
  background-color: var(--button-bg-color);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  height: auto;
  white-space: nowrap;
  width: auto !important;
}

.hidden-quote-form button:hover {
  background-color: var(--button-hover-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hidden-quote-form button:active,
.hidden-quote-form button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: translateY(0);
}

.quote-form button:active,
.quote-form button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: translateY(0);
}

@media screen and (max-width: 1400px) {
  .quote-meta-data {
    display: none;
  }
}

.copy-table-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.copyTableButton {
  cursor: pointer;
  padding: 8px 16px;
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: var(--main-font-family);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.copyTableButton:hover {
  border-color: var(--main-bg-color);
  color: var(--main-bg-color);
  background-color: #fff3e0;
}

/* Controls styling for dropdowns outside of forms */
.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
}

.controls label {
  font-weight: 600;
  color: #333;
}

.controls select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: var(--main-font-family);
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.controls select:hover {
  border-color: #ccc;
}

.controls select:focus {
  outline: none;
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(237, 112, 45, 0.1);
}

.hint {
  color: #666;
  font-size: 0.9em;
  margin-top: 2.5em;
  border-top: 2px solid #e0e0e0;
  padding: 1.5em;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
}

.hint h3 {
  margin-top: 0;
  color: #333;
}

.hint code {
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  display: block;
  margin: 1em 0;
  overflow-x: auto;
}

.subtext {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
}

h1 .subtext {
  display: block;
  font-size: medium;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Home page styles */
.home-container {
  max-width: 1200px;
}

.hero-section {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  padding: 2rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  border-color: var(--main-bg-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--main-bg-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 4.5em;
}

.feature-link {
  display: inline-block;
  color: var(--main-bg-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.feature-link:hover {
  background-color: var(--main-bg-color);
  color: white;
}

.quick-start {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.quick-start h2 {
  color: #333;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.quick-start-steps {
  margin: 0;
  padding-left: 1.5rem;
}

.quick-start-steps li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #666;
}

.quick-start-steps strong {
  color: var(--main-bg-color);
}

/* P2 label print form */
.label-form {
  max-width: 900px;
  width: 100%;
}

.label-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.label-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label-form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.label-form-field-wide {
  grid-column: span 2;
}

.label-form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.label-form-checkbox label {
  margin-bottom: 0;
}

.label-instructions {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-left: 3px solid #2563eb;
  border-radius: 4px;
  width: 100%;
  max-width: 900px;
}

.label-instructions h3 {
  margin-top: 0;
  color: #333;
}

.label-instructions ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
  line-height: 1.7;
  color: #555;
}

/* ---- BOM format picker & template wizard ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wizard [hidden],
.format-picker-links [hidden] {
  display: none !important;
}

.format-picker-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.format-picker-links a {
  color: #666;
}

.format-picker-links a:last-child {
  margin-left: auto;
}

.wizard {
  --field-item_number: #dbeafe;
  --field-quantity: #dcfce7;
  --field-manufacturer_part_number: #ffedd5;
  --field-manufacturer: #fef9c3;
  --field-description: #f3e8ff;
  --field-location: #e0f2fe;
  --field-customer_part_number: #fce7f3;
  --field-alternate: #ede9fe;
  align-items: stretch;
}

.wizard-step {
  width: 100%;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.wizard-step:last-child {
  border-bottom: none;
}

.wizard-step h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #333;
}

.wizard-step-number {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--main-bg-color);
  color: white;
  font-size: 0.9rem;
}

.wizard-muted {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wizard-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 800px;
}

.wizard-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #444;
}

.wizard .form-input {
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font: inherit;
  font-weight: 400;
}

.wizard .form-input:focus {
  outline: none;
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(237, 112, 45, 0.1);
}

.wizard-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 800px;
  margin-top: 1rem;
  padding: 1.75rem 1rem;
  border: 2px dashed #d0d0d0;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wizard-dropzone:hover,
.wizard-dropzone:focus-within,
.wizard-dropzone.is-dragging {
  border-color: var(--main-bg-color);
  background: #fff7f2;
}

.wizard-dropzone.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.wizard-error,
.wizard-issues {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem 0.75rem 2rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 4px;
}

.wizard-error {
  padding-left: 1rem;
}

.wizard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.wizard-tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.wizard-tab[aria-selected="true"] {
  background: var(--main-bg-color);
  border-color: var(--main-bg-color);
  color: white;
}

.wizard-grid-scroll {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  -webkit-overflow-scrolling: touch;
}

.wizard-grid-scroll .wizard-grid {
  margin: 0;
  width: max-content;
  min-width: 100%;
  font-size: 0.8rem;
}

.wizard-grid th,
.wizard-grid td {
  padding: 4px 8px;
  text-align: left;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px;
  background: #fafafa;
  text-transform: none;
  letter-spacing: 0;
}

.wizard-grid tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 0;
  background: #fafafa;
}

.wizard-grid thead .wizard-corner {
  left: 0;
  z-index: 3;
  color: #666;
  font-size: 0.75rem;
}

.wizard-column-select {
  width: 100%;
  min-width: 8rem;
  padding: 4px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: white;
  font: inherit;
}

.wizard-column-select:disabled {
  color: #999;
  background: #f3f3f3;
}

.wizard-row-pick {
  width: 100%;
  min-width: 2.75rem;
  min-height: 2rem;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  font: inherit;
}

.wizard-row-pick:hover,
.wizard-row-pick:focus-visible {
  background: #fff3e0;
  color: #333;
}

.wizard-grid tbody tr:nth-child(even) {
  background: transparent;
}

.wizard-grid tr.is-above-header td {
  color: #aaa;
}

.wizard-grid tr.is-header td,
.wizard-grid tr.is-header th {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--main-bg-color);
}

.wizard-grid tr.is-header .wizard-row-pick {
  background: var(--main-bg-color);
  color: white;
}

.wizard-grid [data-field="item_number"] { background: var(--field-item_number); }
.wizard-grid [data-field="quantity"] { background: var(--field-quantity); }
.wizard-grid [data-field="manufacturer_part_number"] { background: var(--field-manufacturer_part_number); }
.wizard-grid [data-field="manufacturer"] { background: var(--field-manufacturer); }
.wizard-grid [data-field="description"] { background: var(--field-description); }
.wizard-grid [data-field="location"] { background: var(--field-location); }
.wizard-grid [data-field="customer_part_number"] { background: var(--field-customer_part_number); }
.wizard-grid [data-field="alternate"] { background: var(--field-alternate); }

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
}

.wizard-options legend {
  padding: 0 0.35rem;
  font-weight: 600;
  color: #444;
}

.wizard-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.wizard-options input[type="checkbox"] {
  flex: none;
  margin-top: 0.2rem;
}

.wizard-options .wizard-inline {
  flex-wrap: wrap;
  align-items: center;
}

.wizard-options .form-input {
  flex: 1 1 14rem;
  max-width: 22rem;
}

.wizard-status {
  font-weight: 600;
  color: #333;
}

[aria-busy="true"] .wizard-preview {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.wizard-preview {
  max-height: 60vh;
  overflow: auto;
}

.wizard-preview table {
  margin: 0;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.wizard-save {
  padding: 12px 28px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--button-bg-color);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.wizard-save:hover:not(:disabled) {
  background: var(--button-hover-color);
}

.wizard-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .wizard.container {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .wizard-actions .wizard-save {
    width: 100%;
  }
}

.run-settings {
  margin: 0 0 1rem;
}
/* Attrition page: a spreadsheet-like grid where every cell edits in place. */
.attrition .page-heading {
  align-items: center;
}

.attrition-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.attrition-picker select {
  min-width: 14rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: var(--border-radius);
  font: inherit;
  background: #fff;
}

.attrition-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.attrition-settings label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #666;
}

.attrition-settings input,
.attrition-settings select,
.attrition-toolbar input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  color: #222;
  background: #fff;
}

.attrition-cap {
  display: flex;
  gap: 0.4rem;
}

.attrition-cap input {
  width: 6.5rem;
}

.attrition-settings select {
  width: auto;
  min-width: 8rem;
}

.attrition-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.attrition-toolbar input {
  width: 16rem;
}

.attrition-status {
  font-size: 0.9rem;
  color: #2e7d32;
}

.attrition-status.is-error {
  color: #c62828;
}

table.attrition-grid {
  width: auto;
  min-width: 28rem;
  margin: 0.75rem 0 1.5rem;
}

.attrition-grid th,
.attrition-grid td {
  padding: 0.2rem 0.5rem;
}

.attrition-grid td.attrition-size {
  text-align: left;
  min-width: 10rem;
}

.attrition-cell {
  width: 5.5rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  text-align: center;
  color: inherit;
}

.attrition-cell.attrition-name {
  width: 12rem;
  text-align: left;
}

.attrition-cell:hover:not(:disabled) {
  border-color: #d8d8d8;
}

.attrition-cell:focus {
  outline: none;
  border-color: var(--main-bg-color);
  background: #fff;
}

.attrition-cell:disabled {
  color: inherit;
}

.attrition-cell.is-invalid {
  border-color: #c62828;
}

.attrition-grid tr.is-inherited .attrition-cell[type="number"] {
  color: #9a9a9a;
}

.attrition-grid tr.is-inherited .attrition-cell[type="number"]:focus {
  color: #222;
}

.attrition-grid tr:not(.is-inherited) .attrition-cell[type="number"]:not(:disabled) {
  font-weight: 600;
}

.attrition-grid tr.is-saved {
  background-color: #e8f5e9;
}

.attrition-actions {
  width: 2.5rem;
}

.attrition-icon {
  border: none;
  background: none;
  padding: 0 0.3rem;
  font-size: 1.1rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.attrition-icon:hover {
  color: var(--main-bg-color);
}

.attrition-grid tbody tr:not(:hover) .attrition-actions .attrition-icon:not(:focus) {
  visibility: hidden;
}

.attrition-new td {
  background: transparent;
}

.attrition-new .attrition-cell {
  border-color: #e0e0e0;
}

.attrition-delete {
  border: none;
  background: none;
  padding: 0;
  color: #c62828;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.attrition-delete:hover {
  text-decoration: underline;
}

@media screen {
  [data-theme="dark"] .attrition-settings label {
    color: var(--dm-muted);
  }

  [data-theme="dark"] .attrition-picker select,
  [data-theme="dark"] .attrition-settings input,
  [data-theme="dark"] .attrition-settings select,
  [data-theme="dark"] .attrition-toolbar input {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text);
  }

  [data-theme="dark"] .attrition-grid .attrition-cell {
    background-color: transparent;
    border-color: transparent;
    color: var(--dm-text);
  }

  [data-theme="dark"] .attrition-grid .attrition-cell:focus {
    background: var(--dm-surface-2);
    border-color: var(--main-bg-color);
  }

  [data-theme="dark"] .attrition-grid .attrition-cell:hover:not(:disabled, :focus),
  [data-theme="dark"] .attrition-grid .attrition-new .attrition-cell:not(:focus) {
    border-color: var(--dm-border);
  }

  [data-theme="dark"] .attrition-grid .attrition-cell.is-invalid {
    border-color: #ef9a9a;
  }

  [data-theme="dark"] .attrition-grid tr.is-inherited .attrition-cell[type="number"] {
    color: var(--dm-muted);
  }

  [data-theme="dark"] .attrition-grid tr.is-inherited .attrition-cell[type="number"]:focus {
    color: var(--dm-text);
  }

  [data-theme="dark"] .attrition-grid tr.is-saved {
    background-color: #1f3324;
  }

  [data-theme="dark"] .attrition-status {
    color: #81c784;
  }

  [data-theme="dark"] .attrition-status.is-error,
  [data-theme="dark"] .attrition-delete {
    color: #ef9a9a;
  }
}
.bucket-summary {
  display: inline-block;
  margin-bottom: 1rem;
}

.bucket-summary table {
  width: auto;
}

.bucket-summary th,
.bucket-summary td {
  padding: 0.3rem 0.9rem;
  text-align: right;
}

.bucket-summary th:first-child,
.bucket-summary td:first-child {
  text-align: left;
}

.bucket-summary-total td {
  font-weight: 600;
}

.line-bucket {
  margin: 0;
}

.line-bucket select {
  padding: 0.3rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.line-bucket select:hover {
  border-color: #aaa;
}

.line-bucket select:focus {
  border-color: var(--main-bg-color);
  outline: 2px solid var(--main-bg-color);
  outline-offset: 1px;
}

.charges {
  margin: 0 0 1.5rem;
}

.charges h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.charges-table {
  width: auto;
}

.charges-table td {
  padding: 0.25rem 0.4rem;
  vertical-align: middle;
}

.charges-table input,
.charges-table select {
  padding: 0.3rem 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font: inherit;
  max-width: 16rem;
}

.charges-actions {
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.charges-actions form {
  margin: 0;
}

.charges-defaults {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.charges-defaults form {
  margin: 0;
}

.report-heading {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.project-type-report {
  width: auto;
}

.project-type-report th,
.project-type-report td {
  padding: 0.35rem 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.project-type-report th:first-child,
.project-type-report td:first-child {
  text-align: left;
}

.project-type-report .subtext {
  display: block;
}

.project-type-report-total td {
  font-weight: 600;
}
.purchase-quantity {
  margin: 0;
  min-width: 7rem;
}

.purchase-quantity input[type="number"] {
  width: 7rem;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.purchase-quantity input[type="number"]:hover {
  border-color: #aaa;
}

.purchase-quantity input[type="number"]:focus {
  border-color: var(--main-bg-color);
  outline: 2px solid var(--main-bg-color);
  outline-offset: 1px;
}

.purchase-quantity input[aria-invalid="true"] {
  border-color: #c0392b;
}

.purchase-quantity-reset {
  padding: 0.2rem 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.purchase-quantity-reset[hidden] {
  display: none;
}

.purchase-quantity-status {
  display: block;
  max-width: 15rem;
  font-size: 0.75rem;
  white-space: normal;
}

.purchase-quantity-status.is-error {
  color: #c0392b;
}
.quote-request-page .quote-form h2 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.request-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  max-width: 600px;
  width: 100%;
  color: #666;
}

.request-steps a {
  color: inherit;
  text-decoration: none;
}

.request-steps .current {
  color: #333;
  font-weight: 700;
  border-bottom: 3px solid var(--main-bg-color);
}

.request-files {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.request-files li {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
}

.request-files .request-file-name {
  font-weight: 600;
  color: #333;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.request-files a.request-file-name:hover {
  text-decoration: underline;
}

.request-files .subtext {
  flex: 1;
  color: #666;
}

.request-files form.button_to {
  margin: 0;
}

.request-error {
  color: #b42318;
}

.parts-breakdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem 0;
  font-size: 0.9rem;
}

.parts-breakdown th,
.parts-breakdown td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.drawing-found {
  color: #1f6f3a;
  white-space: nowrap;
}

.drawing-missing {
  color: #b54708;
}

.drawing-listed {
  color: #6b6b6b;
}

.request-busy .quote-request-page button,
.request-busy .quote-request-page a {
  pointer-events: none;
  opacity: 0.5;
}

.bom-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bom-scroll {
  overflow-x: auto;
  width: 100%;
}

.ledger-page table.bom-table {
  margin: 0;
  font-size: 0.9rem;
}

.ledger-page .bom-table th,
.ledger-page .bom-table td {
  padding: 6px 8px;
  vertical-align: middle;
}

.bom-table th {
  white-space: nowrap;
}

/* A compact version of the app's form inputs (.quote-form input). */
.bom-input {
  box-sizing: border-box;
  width: 9rem;
  height: 2.1rem;
  padding: 0.3rem 0.55rem;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bom-input:hover {
  border-color: #9ca3af;
}

.bom-input:focus {
  outline: none;
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(237, 112, 45, 0.15);
}

.bom-input::placeholder {
  color: #9a9a9a;
}

.bom-input.bom-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

select.bom-input {
  padding-right: 1.5rem;
}

.bom-check {
  text-align: center;
}

.bom-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--main-bg-color);
}

.bom-percent {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bom-status {
  font-size: 0.85rem;
  color: #166534;
}

/* Plain form submit only if the live-save controller didn't load. */
.bom-live-connected .bom-save-fallback {
  display: none;
}

.bom-status.bom-status-error {
  color: #dc2626;
}

.bom-kit-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.bom-table .bom-description {
  min-width: 14rem;
}

.bom-table .bom-part-number {
  white-space: nowrap;
}

.bom-input.bom-short {
  width: 6.5rem;
}

.bom-input.bom-supplier {
  width: 12rem;
}

.bom-input.bom-num {
  width: 4.75rem;
}

.bom-input.bom-money {
  width: 7rem;
  text-align: right;
}

.bom-table tr.bom-supplied td {
  background: #e6f4d7;
}

.bom-table tr.bom-needs-price td {
  background: #fff4e0;
}

.bom-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bom-add input[type="text"] {
  width: 11rem;
}

.request-link {
  width: 100%;
  max-width: 900px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85em;
  padding: 8px;
}

/* Beats application.css's .quote-form button (full-width green) and its :hover, which load after this file. */
.quote-form button.request-link-button,
.quote-form button.request-link-button:hover,
.quote-form button.request-link-button:active,
button.request-link-button,
button.request-link-button:hover {
  display: inline;
  width: auto;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--main-bg-color);
  font-size: inherit;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
  transform: none;
}

.quote-form button.request-link-button:hover {
  color: #c4541a;
}

.window-questions {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin: 0 0 0.75rem 0;
}

.window-questions legend {
  font-weight: 600;
  padding: 0 0.25rem;
}

.window-question {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0.25rem 0;
}

.window-question > span {
  min-width: 12rem;
}

.quote-form .window-question label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  font-weight: 400;
}

/* Staff quote page: header, attention strip, tabs, cards. application.css loads later, hence .container. */
.container.quote-page {
  align-items: stretch;
}

/* Let the wide BOM scroll inside the page instead of stretching it. */
.container.quote-page > * {
  min-width: 0;
}

.quote-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
}

.quote-title h1 {
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quote-title .subtext {
  margin: 0;
}

.quote-facts {
  margin: 0;
  color: #555;
}

.quote-stage {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.quote-stage-waiting { background: #f3f4f6; color: #374151; }
.quote-stage-new { background: #dbeafe; color: #1e40af; }
.quote-stage-working { background: #fef3c7; color: #92400e; }
.quote-stage-sent { background: #ede9fe; color: #5b21b6; }
.quote-stage-won { background: #dcfce7; color: #166534; }
.quote-stage-closed { background: #e5e7eb; color: #4b5563; }

.quote-totals {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  background: #fafafa;
}

.quote-totals > div {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem;
}

.quote-totals > div + div {
  border-left: 1px solid #e5e7eb;
}

.quote-totals span {
  font-size: 0.8rem;
  color: #666;
}

.quote-totals strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.quote-attention {
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 0.6rem 1rem;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  background: #fffbeb;
}

.quote-attention li + li {
  margin-top: 0.25rem;
}

.quote-attention a {
  color: #92400e;
}

.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1.25rem 0 0 0;
  border-bottom: 1px solid #e5e7eb;
}

.quote-tab {
  padding: 0.55rem 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #555;
  font-weight: 600;
  text-decoration: none;
}

.quote-tab:hover {
  color: #111;
  border-bottom-color: #d1d5db;
}

.quote-tab.quote-tab-current {
  color: var(--main-bg-color);
  border-bottom-color: var(--main-bg-color);
}

.quote-tab-body {
  padding-top: 1.25rem;
}

.quote-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1000px) {
  .quote-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
}

.quote-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
}

.quote-card h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem 0;
}

.quote-card .request-link {
  max-width: none;
  box-sizing: border-box;
}

.quote-card-form {
  max-width: none;
  margin: 0;
}

.quote-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}

.quote-pre {
  white-space: pre-line;
}

.quote-unanswered {
  color: #b54708;
}

.bom-table tfoot td {
  border-top: 2px solid #e5e7eb;
  font-weight: 600;
}

.bom-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.bom-footer h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

/* Workflow tab: a condensed flow chart (lead-in, parallel lanes, merge), then one-click next steps. */
.flow-chart {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0.25rem 0 1rem 0;
  margin-bottom: 0.5rem;
}

.flow-chain {
  display: flex;
  align-items: center;
  flex: none;
}

.flow-lanes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: none;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid #9ca3af;
  border-right: 2px solid #9ca3af;
  border-radius: 12px;
}

.flow-lane-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  min-width: 6.5rem;
  padding: 0.35rem 0.6rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
}

.flow-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  margin-bottom: 0.2rem;
}

.flow-label { font-weight: 600; }
.flow-detail { font-size: 0.75rem; }
.flow-date { font-size: 0.75rem; font-weight: 600; }

.flow-done { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.flow-done .flow-dot { background: #16a34a; border-color: #16a34a; }
.flow-active { background: #fff7ed; border-color: var(--main-bg-color); color: #7c2d12; }
.flow-active .flow-dot { border-color: var(--main-bg-color); background: linear-gradient(90deg, var(--main-bg-color) 50%, transparent 50%); }
.flow-skipped { border-style: dashed; opacity: 0.6; }

.flow-arrow {
  position: relative;
  flex: none;
  width: 1.1rem;
  height: 2px;
  margin-right: 5px;
  background: #9ca3af;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  border: 5px solid transparent;
  border-right: 0;
  border-left-color: #9ca3af;
}

.flow-ended {
  font-weight: 600;
  color: #991b1b;
}

.flow-next h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}

.flow-actions {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-actions li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.flow-action-form {
  display: inline;
  margin: 0;
}

.flow-actions .ledger-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.flow-for {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #555;
}

.flow-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0 0;
}

.flow-activity {
  margin-top: 1.5rem;
}

.flow-activity summary {
  cursor: pointer;
  font-weight: 600;
}

.flow-activity td {
  padding: 0.25rem 1rem 0.25rem 0;
}

.workflow-undone td {
  color: #9ca3af;
  text-decoration: line-through;
}

.lead-time p {
  margin: 0 0 0.35rem 0;
}

.lead-time-lanes {
  margin: 0 0 0.75rem 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.vendor-po-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.vendor-po-intro p {
  margin: 0;
  max-width: 48rem;
}

.vendor-po {
  margin-bottom: 1rem;
}

.vendor-po h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vendor-po-lines {
  width: 100%;
  margin-bottom: 0.5rem;
}

.vendor-po-lines td,
.vendor-po-lines th {
  padding: 0.25rem 0.75rem 0.25rem 0;
}

.vendor-po-send {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.vendor-po-send label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.vendor-po-vendor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.vendor-po-vendor dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.7;
}

.vendor-po-vendor dd {
  margin: 0;
}

/* Vendors page (Settings > Vendors). */
.vendor-import,
.vendor-add,
.vendor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.vendor-toolbar {
  justify-content: space-between;
  margin: 1rem 0 0.5rem;
}

.vendor-search {
  width: 24rem;
  max-width: 100%;
}

.vendor-table td {
  white-space: nowrap;
}

.vendor-pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.vendors-page .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.vendor-edit-link {
  font-weight: 600;
  text-align: left;
}

.vendor-edit-link:hover {
  text-decoration: underline;
}

.vendor-dialog {
  width: min(52rem, 94vw);
  max-height: 90vh;
  padding: 1.25rem 1.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: inherit;
}

.vendor-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] .vendor-dialog {
  background: var(--dm-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

.vendor-form-header,
.vendor-form-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vendor-form-header {
  justify-content: space-between;
}

.vendor-form-header h2 {
  margin: 0;
}

.vendor-form-header .link-button {
  font-size: 1.5rem;
  line-height: 1;
}

.vendor-form fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.6rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

[data-theme="dark"] .vendor-form fieldset {
  border-color: var(--dm-border);
}

.vendor-form legend {
  padding: 0 0.25rem;
  font-weight: 600;
}

.vendor-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.vendor-form .bom-input {
  width: 100%;
}

.vendor-form-notes {
  margin-top: 0.75rem;
}

.vendor-form-notes textarea.bom-input {
  height: auto;
}

.vendor-form-footer {
  margin-top: 1rem;
}

.vendor-form-footer .vendor-remove {
  margin-left: auto;
  color: #dc2626;
}

/* Quote package bar at the top of the BOM tab. */
.quote-package {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #16a34a;
  border-radius: 6px;
}

.quote-package-stale {
  border-left-color: var(--main-bg-color);
}

.quote-package-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.quote-package-main h3 {
  font-size: 1rem;
  margin: 0;
}

.quote-package-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.quote-package-eta {
  flex-basis: 100%;
  font-size: 0.9rem;
}

.quote-package-eta summary {
  cursor: pointer;
}

.quote-package-eta .lead-time {
  margin-top: 0.5rem;
}
.flash-problems {
  margin: 0.5em 0 0 0;
  padding-left: 1.25em;
  font-weight: 400;
}

.ledger-page {
  align-items: stretch;
}

.ledger-page table {
  margin: 0.5rem 0 1rem 0;
}

.ledger-page th,
.ledger-page td {
  text-align: left;
  padding: 8px 12px;
}

.ledger-page .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-section {
  margin: 1.5rem 0 0 0;
}

.ledger-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
}

.ledger-status {
  display: inline-block;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: middle;
}

.ledger-status-draft {
  background: #fef3c7;
  color: #92400e;
}

.ledger-status-posted {
  background: #dcfce7;
  color: #166534;
}

.ledger-status-reversed {
  background: #e5e7eb;
  color: #374151;
}

.ledger-negative {
  color: #b91c1c;
  font-weight: 600;
}

.ledger-positive {
  color: #166534;
}

.ledger-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.ledger-inline-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #555;
  gap: 0.2rem;
}

.ledger-inline-form input,
.ledger-inline-form select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font: inherit;
}

.ledger-inline-form input[name="reason"],
.ledger-inline-form input[name="stock_document[memo]"],
.ledger-inline-form input[name="stock_document[reason]"] {
  min-width: 18rem;
}

.ledger-button {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ledger-button:hover {
  background-color: #1d4ed8;
}

.ledger-button-secondary {
  background-color: #e5e7eb;
  color: #111827;
}

.ledger-button-secondary:hover {
  background-color: #d1d5db;
}

.ledger-button-danger {
  background-color: #b91c1c;
}

.ledger-button-danger:hover {
  background-color: #991b1b;
}

.ledger-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
}

.ledger-kinds a {
  padding: 0.45em 0.9em;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.ledger-kinds a:hover {
  border-color: var(--main-bg-color);
  color: var(--main-bg-color);
}

.ledger-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0;
}

.ledger-meta dt {
  color: #666;
}

.ledger-meta dd {
  margin: 0;
}

.print-only {
  display: none;
}

@media print {
  header,
  .flash,
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  body,
  .container {
    background: white;
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .ledger-page th {
    background: white;
    color: black;
  }
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--main-bg-color);
  color: var(--main-bg-color);
}

.theme-toggle-light { display: none; }
[data-theme="dark"] .theme-toggle-dark { display: none; }
[data-theme="dark"] .theme-toggle-light { display: inline; }

/* Screen only so printed pages (packing slips, ledgers) stay black on white. */
@media screen {
  [data-theme="dark"] {
    --dm-bg: #121417;
    --dm-surface: #1c1f24;
    --dm-surface-2: #252a31;
    --dm-border: #3a4049;
    --dm-text: #e3e6ea;
    --dm-muted: #9aa3ad;
    --dm-hover: #33291f;
    --dm-link: #8ab4f8;
    color-scheme: dark;
  }

  [data-theme="dark"] body {
    background-color: var(--dm-bg);
    color: var(--dm-text);
  }

  [data-theme="dark"] a:where(:not([class])) {
    color: var(--dm-link);
  }

  /* Header & nav */
  [data-theme="dark"] header,
  [data-theme="dark"] .nav-dropdown {
    background: var(--dm-surface);
  }

  [data-theme="dark"] .logo-link img {
    filter: invert(1) hue-rotate(180deg);
    /* PNG has an opaque white background; screen drops the inverted black into the header */
    mix-blend-mode: screen;
  }

  [data-theme="dark"] .left-elements a,
  [data-theme="dark"] .nav-trigger,
  [data-theme="dark"] .nav-dropdown a {
    color: var(--dm-text);
  }

  [data-theme="dark"] .left-elements a:hover,
  [data-theme="dark"] .nav-trigger:hover,
  [data-theme="dark"] .nav-item:focus-within .nav-trigger,
  [data-theme="dark"] .nav-dropdown a:hover {
    background-color: var(--dm-surface-2);
    color: var(--main-bg-color);
  }

  [data-theme="dark"] .theme-toggle {
    border-color: var(--dm-border);
    color: var(--dm-text);
  }

  [data-theme="dark"] .theme-toggle:hover {
    border-color: var(--main-bg-color);
    color: var(--main-bg-color);
  }

  /* Surfaces */
  [data-theme="dark"] .container {
    background: var(--dm-surface);
  }

  [data-theme="dark"] .controls,
  [data-theme="dark"] .hint,
  [data-theme="dark"] .quick-start,
  [data-theme="dark"] .label-instructions {
    background-color: var(--dm-surface-2);
  }

  [data-theme="dark"] .hint code {
    background-color: var(--dm-bg);
    border-color: var(--dm-border);
  }

  [data-theme="dark"] .page-heading,
  [data-theme="dark"] .hero-section,
  [data-theme="dark"] .hint,
  [data-theme="dark"] .feature-card,
  [data-theme="dark"] .wizard-step,
  [data-theme="dark"] .wizard-options,
  [data-theme="dark"] .wizard-grid-scroll,
  [data-theme="dark"] .wizard-dropzone {
    border-color: var(--dm-border);
  }

  [data-theme="dark"] .feature-card:hover,
  [data-theme="dark"] .wizard-dropzone:hover,
  [data-theme="dark"] .wizard-dropzone:focus-within,
  [data-theme="dark"] .wizard-dropzone.is-dragging {
    border-color: var(--main-bg-color);
  }

  [data-theme="dark"] .wizard-dropzone:hover,
  [data-theme="dark"] .wizard-dropzone:focus-within,
  [data-theme="dark"] .wizard-dropzone.is-dragging {
    background: var(--dm-hover);
  }

  /* Text */
  [data-theme="dark"] .page-heading h1,
  [data-theme="dark"] .hero-section h1,
  [data-theme="dark"] .hint h3,
  [data-theme="dark"] .quick-start h2,
  [data-theme="dark"] .label-instructions h3,
  [data-theme="dark"] .wizard-step h2,
  [data-theme="dark"] .controls label,
  [data-theme="dark"] .wizard-status,
  [data-theme="dark"] .ledger-kinds a {
    color: var(--dm-text);
  }

  [data-theme="dark"] .subtext,
  [data-theme="dark"] .page-heading > .subtext,
  [data-theme="dark"] .hint,
  [data-theme="dark"] .hero-subtitle,
  [data-theme="dark"] .feature-card p,
  [data-theme="dark"] .quick-start-steps li,
  [data-theme="dark"] .label-form-field label,
  [data-theme="dark"] .label-instructions ol,
  [data-theme="dark"] .format-picker-links a,
  [data-theme="dark"] .wizard-muted,
  [data-theme="dark"] .wizard-field,
  [data-theme="dark"] .wizard-options legend,
  [data-theme="dark"] .wizard-grid thead .wizard-corner,
  [data-theme="dark"] .ledger-inline-form label,
  [data-theme="dark"] .ledger-meta dt {
    color: var(--dm-muted);
  }

  [data-theme="dark"] .ledger-kinds a:hover {
    color: var(--main-bg-color);
  }

  [data-theme="dark"] .tooltip {
    border-bottom-color: var(--dm-muted);
  }

  [data-theme="dark"] .hide {
    color: transparent;
  }

  /* Tables */
  [data-theme="dark"] table,
  [data-theme="dark"] th,
  [data-theme="dark"] td,
  [data-theme="dark"] .ledger-kinds a {
    border-color: var(--dm-border);
  }

  [data-theme="dark"] tbody tr:nth-child(even) {
    background-color: var(--dm-surface-2);
  }

  [data-theme="dark"] tbody tr:hover {
    background-color: var(--dm-hover);
  }

  [data-theme="dark"] .wizard-grid thead th,
  [data-theme="dark"] .wizard-grid tbody th {
    background: var(--dm-surface-2);
  }

  [data-theme="dark"] .wizard-grid tr.is-above-header td {
    color: #6b7280;
  }

  [data-theme="dark"] .wizard {
    --field-item_number: #1e3a5f;
    --field-quantity: #14432a;
    --field-manufacturer_part_number: #5a3312;
    --field-manufacturer: #4d4412;
    --field-description: #3f2a5c;
    --field-location: #0f3d52;
    --field-customer_part_number: #5a1e3d;
    --field-alternate: #33295c;
  }

  /* Form controls */
  [data-theme="dark"] input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]),
  [data-theme="dark"] select,
  [data-theme="dark"] textarea {
    background-color: var(--dm-surface-2);
    color: var(--dm-text);
  }

  [data-theme="dark"] input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], :focus),
  [data-theme="dark"] select:not(:focus),
  [data-theme="dark"] textarea:not(:focus) {
    border-color: var(--dm-border);
  }

  [data-theme="dark"] .wizard-column-select:disabled {
    color: #6b7280;
    background: var(--dm-bg);
  }

  [data-theme="dark"] .copyTableButton,
  [data-theme="dark"] .wizard-tab:not([aria-selected="true"]) {
    background-color: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text);
  }

  [data-theme="dark"] .copyTableButton:hover {
    background-color: var(--dm-hover);
    border-color: var(--main-bg-color);
    color: var(--main-bg-color);
  }

  [data-theme="dark"] .wizard-row-pick {
    color: var(--dm-muted);
  }

  [data-theme="dark"] .wizard-row-pick:hover,
  [data-theme="dark"] .wizard-row-pick:focus-visible {
    background: var(--dm-hover);
    color: var(--dm-text);
  }

  [data-theme="dark"] .ledger-button-secondary,
  [data-theme="dark"] .requote-button.secondary {
    background-color: #374151;
    color: var(--dm-text);
  }

  [data-theme="dark"] .ledger-button-secondary:hover,
  [data-theme="dark"] .requote-button.secondary:hover {
    background-color: #4b5563;
    color: var(--dm-text);
  }

  /* Status colors */
  [data-theme="dark"] .flash-notice,
  [data-theme="dark"] .ledger-status-posted {
    background-color: #12301f;
    color: #86efac;
    border-color: #166534;
  }

  [data-theme="dark"] .flash-alert,
  [data-theme="dark"] .wizard-error,
  [data-theme="dark"] .wizard-issues {
    background-color: #3b1414;
    color: #fca5a5;
    border-color: #991b1b;
  }

  [data-theme="dark"] .ledger-status-draft {
    background: #3d2e0a;
    color: #fcd34d;
  }

  [data-theme="dark"] .ledger-status-reversed {
    background: #374151;
    color: #d1d5db;
  }

  [data-theme="dark"] .ledger-negative {
    color: #f87171;
  }

  [data-theme="dark"] .ledger-positive {
    color: #4ade80;
  }

  /* Staff quote page */
  [data-theme="dark"] .quote-card,
  [data-theme="dark"] .quote-totals,
  [data-theme="dark"] .quote-totals > div + div,
  [data-theme="dark"] .quote-tabs,
  [data-theme="dark"] .bom-footer,
  [data-theme="dark"] .bom-table tfoot td {
    border-color: var(--dm-border);
  }

  [data-theme="dark"] .quote-totals {
    background: var(--dm-surface-2);
  }

  [data-theme="dark"] .quote-facts,
  [data-theme="dark"] .quote-totals span,
  [data-theme="dark"] .quote-tab {
    color: var(--dm-muted);
  }

  [data-theme="dark"] .quote-tab:hover {
    color: var(--dm-text);
    border-bottom-color: var(--dm-border);
  }

  [data-theme="dark"] .quote-attention {
    background: #3d2e0a;
  }

  [data-theme="dark"] .quote-attention a,
  [data-theme="dark"] .quote-unanswered {
    color: #fcd34d;
  }

  [data-theme="dark"] .quote-stage-waiting,
  [data-theme="dark"] .quote-stage-closed { background: #374151; color: #d1d5db; }
  [data-theme="dark"] .quote-stage-new { background: #1e3a5f; color: #93c5fd; }
  [data-theme="dark"] .quote-stage-working { background: #3d2e0a; color: #fcd34d; }
  [data-theme="dark"] .quote-stage-sent { background: #2e1f5e; color: #c4b5fd; }
  [data-theme="dark"] .quote-stage-won { background: #12301f; color: #86efac; }

  [data-theme="dark"] .bom-table tr.bom-supplied td { background: #16301a; }
  [data-theme="dark"] .bom-table tr.bom-needs-price td { background: #3d2e0a; }

  [data-theme="dark"] .bom-input {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text);
  }

  [data-theme="dark"] .bom-input::placeholder {
    color: var(--dm-muted);
  }

  [data-theme="dark"] .bom-status {
    color: #86efac;
  }

  [data-theme="dark"] .flow-node { background: transparent; border-color: var(--dm-border); color: var(--dm-muted); }
  [data-theme="dark"] .flow-done { background: #12301f; border-color: #16a34a; color: #86efac; }
  [data-theme="dark"] .flow-active { background: #33291f; border-color: var(--main-bg-color); color: #fdba74; }
  [data-theme="dark"] .flow-lanes { border-color: var(--dm-border); }
  [data-theme="dark"] .flow-arrow { background: var(--dm-muted); }
  [data-theme="dark"] .flow-arrow::after { border-left-color: var(--dm-muted); }
  [data-theme="dark"] .flow-lane-name,
  [data-theme="dark"] .flow-for { color: var(--dm-muted); }
  [data-theme="dark"] .flow-ended { color: #fca5a5; }
  [data-theme="dark"] .quote-package { border-color: var(--dm-border); border-left-color: #16a34a; }
  [data-theme="dark"] .quote-package-stale { border-left-color: var(--main-bg-color); }

  [data-theme="dark"] .bom-status.bom-status-error {
    color: #fca5a5;
  }

  [data-theme="dark"] .spp-spinner {
    border-color: var(--dm-border);
    border-top-color: var(--dm-text);
  }

  /* Inline status colors in import / upload / report-channel views */
  [data-theme="dark"] [style*="color: #b00"] { color: #f87171 !important; }
  [data-theme="dark"] [style*="color: #060"] { color: #4ade80 !important; }
  [data-theme="dark"] [style*="color: #b60"] { color: #fbbf24 !important; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --main-bg-color: #ed702d;
  --main-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  --button-bg-color: #4CAF50;
  --button-hover-color: #45a049;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
}

.application-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 2rem;
}

.left-elements {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.left-elements a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-weight: 500;
}

.left-elements a:hover {
  background-color: #f5f5f5;
  color: var(--main-bg-color);
}

.right-elements {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.right-elements a {
  text-decoration: none;
  color: white;
  background-color: var(--main-bg-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-weight: 500;
}

.right-elements a:hover {
  background-color: #d86325;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.application-heading > *,
.application-heading > * > * {
  margin: 0;
}

body {
  font-family: var(--main-font-family);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f8f9fa;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 98%;
  max-width: 2000px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.wild-container {
  max-width: unset;
}

.page-heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 1.5rem 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  color: #333;
  margin: 0;
  font-weight: 700;
}

.page-heading-right-wrapper {
  padding-right: 4em;
  align-self: flex-end;
}

.horizontal-float {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0%;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.horizontal-float .table-container {
  width: auto;
  flex: 1 0 auto;
  margin: 10px 2px;
}

.horizontal-float table td {
  padding: 4px;
  height: 100px;
  max-width: max-content;
}

.horizontal-float table th {
  max-width: max-content;
}

.hide {
  margin: 0% !important;
  padding: 0% !important;
  width: 0;
  overflow: hidden;
  color: white;
}

table, th, td {
  border: 1px solid #e0e0e0;
  text-align: center;
  padding: 12px 15px;
}

th {
  background-color: var(--main-bg-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

tbody tr:hover {
  background-color: #fff3e0;
}

.quote-form {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}

.quote-form textarea,
.quote-form select,
.quote-form input,
.quote-form input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: var(--main-font-family);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.quote-form textarea:focus,
.quote-form select:focus,
.quote-form input:focus {
  outline: none;
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(237, 112, 45, 0.1);
}

.quote-form button {
  padding: 12px 24px;
  background-color: var(--button-bg-color);
  color: white;
  border: none;
  cursor: pointer;
  display: block;
  width: 100%;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.quote-form button:hover {
  background-color: var(--button-hover-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quote-form button:active {
  transform: translateY(0);
}

.form-heading {
  max-width: 600px;
}

.hidden-quote-form-wrapper {
  align-self: flex-end; /* Aligns the form to the right */
}

.hidden-quote-form {
  margin: 20px auto;
  display: flex;
  width: 300px;
  flex-direction: row;
}

.hidden-quote-form > * {
  height: 40px;
  width: unset;
}

@media screen and (max-width: 1400px) {
  .quote-meta-data {
    display: none;
  }
}

.copy-table-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Aligns h1 to the left and form to the right */
  width: 100%;
  height: 30px;
}

.copyTableButton {
  cursor: pointer;
}

.hint {
  color: #666;
  font-size: 0.9em;
  margin-top: 2.5em;
  border-top: 2px solid #e0e0e0;
  padding: 1.5em;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
}

.hint h3 {
  margin-top: 0;
  color: #333;
}

.hint code {
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  display: block;
  margin: 1em 0;
  overflow-x: auto;
}

h1 .subtext {
  display: block;
  font-size: medium;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}



/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
