
:root {
  --font-family-sans: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --line-height-headers: 1.15;
  --line-height-body: 1.5;
  --font-size-xs: 0.75rem;
  --font-size-s: 0.8125rem;
  --font-size-m: 0.875rem;
  --font-size-l: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-xxl: 1.25rem;
  --font-size-xxxl: 1.5rem;
  --font-size-xxxxl: 2rem;
  --color-text-header: #1A1A1A;
  --color-text-body: #333333;
  --color-text-muted: #777777;
  --space-xxxs: 0.25rem;
  --space-xxs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.25rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 2.5rem;
  --space-xxxl: 3rem;
  --space-xxxxl: 4rem;
  --color-red: #DA3A3B;
  --color-red-hover: #C52829;
  --color-red-light: #FEF0F0;
  --color-black: #1A1A1A;
  --color-primary: var(--color-red);
  --color-primary-hover: var(--color-red-hover);
  --color-primary-bg: var(--color-red-light);
  --color-secondary: var(--color-black);
  --color-secondary-hover: #333333;
  --color-white: #FFFFFF;
  --color-background: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-border: #E0E0E0;
  --color-border-light: #EEEEEE;
  --border-radius: 0.25rem;
  --border-radius-sm: 0.1875rem;
  --border: solid 1px var(--color-border);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --color-dark: var(--color-black);
  --color-light: #F0F0F0;
  --color-grey: #F5F5F5;
  --shadow-large: var(--shadow-card);
  --shadow-small: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--color-background);
  color: var(--color-text-body);
  line-height: var(--line-height-body);
  font-family: var(--font-family-sans);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-header);
  line-height: var(--line-height-headers);
}

h1 {
  font-size: var(--font-size-xxxxl);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-l);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 200ms;
}
a:hover, a:focus, a:active {
  color: var(--color-primary-rotate);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xxxs);
  height: 2.25rem;
  padding: 0 var(--space-s);
  border-radius: var(--border-radius);
  border: solid 1px var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text-body);
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: var(--font-size-s);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, color 150ms, box-shadow 150ms;
}
.btn:hover, .btn:active {
  border-color: var(--color-text-muted);
  background-color: #F9F9F9;
}
.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary);
}
.btn--primary {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--primary:hover, .btn--primary:active {
  color: var(--color-white);
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn--secondary {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}
.btn--secondary:hover, .btn--secondary:active {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--dark {
  color: var(--color-white);
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn--dark:hover, .btn--dark:active {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
}
.btn--sm {
  height: 1.625rem;
  padding: 0 var(--space-xxs);
  font-size: var(--font-size-xs);
  border-radius: var(--border-radius-sm);
}
.btn--text {
  height: auto;
  padding: 0;
  color: var(--color-primary);
  background: none;
  border: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.btn--text:hover, .btn--text:active {
  color: var(--color-primary-hover);
  text-decoration: underline;
  background: none;
}
.btn--text-primary {
  height: auto;
  padding: 0;
  color: var(--color-text-body);
  background: none;
  border: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.btn--text-primary:hover, .btn--text-primary:active {
  color: var(--color-primary);
  text-decoration: underline;
  background: none;
}

a:not(.btn) {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 150ms;
}
a:not(.btn):hover, a:not(.btn):focus-visible {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.error-message {
  width: 100%;
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--border-radius);
  border-left: solid 3px var(--color-primary);
  font-size: var(--font-size-m);
  font-weight: 500;
}

.form {
  display: flex;
  flex-direction: column !important;
  justify-content: space-between;
  align-items: stretch !important;
  width: 100%;
  flex-wrap: wrap;
  gap: var(--space-s);
}
.form__group {
  flex: 1;
}
.form label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xxxs);
  padding-left: 0;
}
.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: var(--space-xxs) var(--space-xs);
  background-color: var(--color-surface);
  border: solid 1px var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-m);
  line-height: 1.5;
  color: var(--color-text-body);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.form input::placeholder,
.form select::placeholder,
.form textarea::placeholder {
  color: #BBBBBB;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218, 58, 59, 0.12);
}
.form input--invalid,
.form select--invalid,
.form textarea--invalid {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218, 58, 59, 0.1);
}
.form input[type=checkbox],
.form input[type=radio] {
  display: inline-block;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}
.form input[type=submit] {
  width: fit-content;
  align-self: flex-end;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}
.form input[readonly],
.form textarea[readonly] {
  background-color: var(--color-background);
  border-style: dashed;
  color: var(--color-text-muted);
  cursor: not-allowed;
}
.form__calculated small {
  display: block;
  margin-top: var(--space-xxxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}
.form .form__checkbox-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}
.form .form__checkbox-group label {
  margin-bottom: 0;
}
.form .form__checkbox-group--block {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xxs);
}
.form .form__checkbox-group .form__checkbox-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xxs) var(--space-xs);
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-body);
  cursor: pointer;
}
.form .form__checkbox-group .form__checkbox-option--disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.quote,
.business {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-surface);
  border: var(--border);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-xxs);
  padding: var(--space-xs) var(--space-s);
}
@media (min-width: 50rem) {
  .quote,
  .business {
    padding: var(--space-xs) var(--space-m);
  }
}
.quote__actions,
.business__actions {
  display: flex;
  flex: 0 0 auto;
  align-self: flex-start;
  gap: var(--space-xxs);
}

.card {
  background-color: var(--color-surface);
  border: var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-xs) var(--space-s);
}
@media (min-width: 50rem) {
  .card {
    padding: var(--space-xs) var(--space-m);
  }
}
.card--link {
  display: block;
  color: var(--color-text-body);
  transition: background-color 150ms, box-shadow 150ms;
}
.card--link:hover {
  color: var(--color-text-body);
  background: var(--color-background);
  text-decoration: none;
}
.card--link:focus-visible {
  color: var(--color-text-body);
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.star-item-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  gap: var(--space-l);
}

.star-item-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--color-surface);
}
.star-item-group .card,
.star-item-group .star-item {
  border-radius: 0;
  border: none;
  border-bottom: solid 1px var(--color-border-light);
}
.star-item-group .card:last-child,
.star-item-group .star-item:last-child {
  border-bottom: none;
}

.star-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  width: 100%;
  min-height: 50px;
  padding: var(--space-xs) var(--space-s);
  background-color: var(--color-surface);
}
.star-item div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
}
.star-item div span a {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  font-weight: 600;
}
.star-item div h3 a {
  color: var(--color-text-header);
  font-size: var(--font-size-l);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.star-item div a:hover {
  text-decoration: underline;
}

.star-keyvalue tr td {
  padding: 0 var(--space-s);
}

.card__btn-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xxs);
}

.add-card {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-xs) var(--space-s);
  transition: background-color 150ms;
}
.add-card:hover {
  background-color: var(--color-primary-hover);
}

.product-checkbox {
  display: flex;
  flex-direction: row;
  gap: var(--space-xxxs);
}

.product-checkbox-subcategory-container {
  border: solid 1px var(--color-border);
  border-radius: var(--border-radius);
  margin: var(--space-xxs);
  padding: var(--space-s);
}

/**
 * tom-select.css (v2.4.1) — overrides for MySRC flat aesthetic
 */
.ts-control {
  padding: var(--space-xxs) var(--space-xs);
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: none;
  border: solid 1px var(--color-border);
  border-radius: var(--border-radius);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--font-size-m);
  background-color: var(--color-surface);
  min-height: 2.5rem;
}

.ts-wrapper.multi.has-items .ts-control {
  padding: calc(var(--space-xxxs)) var(--space-xxs);
}

.full .ts-control {
  background-color: var(--color-surface);
}

.disabled .ts-control,
.disabled .ts-control * {
  cursor: default !important;
}

.focus .ts-control {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218, 58, 59, 0.12);
}

.ts-control > * {
  vertical-align: baseline;
  display: inline-block;
}

.ts-wrapper.multi .ts-control > div {
  cursor: pointer;
  margin: 2px 3px 2px 0;
  padding: 2px 8px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: solid 1px rgba(218, 58, 59, 0.2);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.ts-wrapper.multi .ts-control > div.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.ts-wrapper.multi.disabled .ts-control > div,
.ts-wrapper.multi.disabled .ts-control > div.active {
  color: var(--color-text-muted);
  background: var(--color-border-light);
  border-color: var(--color-border);
}

.ts-control > input {
  flex: 1 1 auto;
  min-width: 7rem;
  display: inline-block !important;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-indent: 0 !important;
  border: 0 none !important;
  background: none !important;
  line-height: inherit !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
  box-shadow: none !important;
}

.ts-control > input::-ms-clear {
  display: none;
}

.ts-control > input:focus {
  outline: none !important;
}

.has-items .ts-control > input {
  margin: 0 4px !important;
}

.ts-control.rtl {
  text-align: right;
}

.ts-control.rtl.single .ts-control:after {
  left: 15px;
  right: auto;
}

.ts-control.rtl .ts-control > input {
  margin: 0 4px 0 -2px !important;
}

.disabled .ts-control {
  opacity: 0.5;
  background-color: var(--color-background);
}

.input-hidden .ts-control > input {
  opacity: 0;
  position: absolute;
  left: -10000px;
}

.ts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  border: solid 1px var(--color-border);
  background: var(--color-surface);
  margin: 0.25rem 0 0;
  border-top: 0 none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.ts-dropdown [data-selectable] {
  cursor: pointer;
  overflow: hidden;
}

.ts-dropdown [data-selectable] .highlight {
  background: var(--color-primary-bg);
  border-radius: 1px;
}

.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
  padding: var(--space-xxs) var(--space-xs);
}

.ts-dropdown .option,
.ts-dropdown [data-disabled],
.ts-dropdown [data-disabled] [data-selectable].option {
  cursor: inherit;
  opacity: 0.5;
}

.ts-dropdown [data-selectable].option {
  opacity: 1;
  cursor: pointer;
}

.ts-dropdown .optgroup:first-child .optgroup-header {
  border-top: 0 none;
}

.ts-dropdown .optgroup-header {
  color: var(--color-text-header);
  background: var(--color-surface);
  cursor: default;
}

.ts-dropdown .active {
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
}

.ts-dropdown .active.create {
  color: var(--color-primary);
}

.ts-dropdown .create {
  color: var(--color-text-muted);
}

.ts-dropdown .spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 5px 8px;
}

.ts-dropdown .spinner::after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 50%;
  border: 5px solid var(--color-border);
  border-color: var(--color-border) transparent var(--color-border) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.ts-dropdown-content {
  overflow: hidden auto;
  max-height: 200px;
  scroll-behavior: smooth;
}

.ts-wrapper.plugin-drag_drop .ts-dragging {
  color: transparent !important;
}

.ts-wrapper.plugin-drag_drop .ts-dragging > * {
  visibility: hidden !important;
}

.plugin-checkbox_options:not(.rtl) .option input {
  margin-right: 0.5rem;
}

.plugin-checkbox_options.rtl .option input {
  margin-left: 0.5rem;
}

.plugin-clear_button {
  --ts-pr-clear-button: 1em;
}

.plugin-clear_button .clear-button {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2px;
  margin-right: 0 !important;
  background: transparent !important;
  transition: opacity 0.5s;
  cursor: pointer;
}

.plugin-clear_button.form-select .clear-button,
.plugin-clear_button.single .clear-button {
  right: max(var(--ts-pr-caret), 8px);
}

.plugin-clear_button.focus.has-items .clear-button,
.plugin-clear_button:not(.disabled):hover.has-items .clear-button {
  opacity: 1;
}

.ts-wrapper .dropdown-header {
  position: relative;
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: 3px 3px 0 0;
}

.ts-wrapper .dropdown-header-close {
  position: absolute;
  right: 8px;
  top: 50%;
  color: var(--color-text-body);
  opacity: 0.4;
  margin-top: -12px;
  line-height: 20px;
}

.ts-wrapper .dropdown-header-close:hover {
  color: var(--color-black);
}

.plugin-dropdown_input.focus.dropdown-active .ts-control {
  box-shadow: none;
  border-color: var(--color-border);
}

.plugin-dropdown_input .dropdown-input {
  border: 1px solid var(--color-border);
  border-width: 0 0 1px;
  display: block;
  padding: 8px;
  box-shadow: none;
  width: 100%;
  background: transparent;
}

.plugin-dropdown_input .items-placeholder {
  border: 0 none !important;
  box-shadow: none !important;
  width: 100%;
}

.plugin-dropdown_input.has-items .items-placeholder,
.plugin-dropdown_input.dropdown-active .items-placeholder {
  display: none !important;
}

.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
  min-width: 0;
}

.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
  flex: none;
  min-width: 4px;
}

.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {
  color: transparent;
}

.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
  color: transparent;
}

.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
  display: flex;
}

.ts-dropdown.plugin-optgroup_columns .optgroup {
  border-right: 1px solid var(--color-border-light);
  border-top: 0 none;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}

.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
  border-right: 0 none;
}

.ts-dropdown.plugin-optgroup_columns .optgroup::before {
  display: none;
}

.ts-dropdown.plugin-optgroup_columns .optgroup-header {
  border-top: 0 none;
}

.ts-wrapper.plugin-remove_button .item {
  display: inline-flex;
  align-items: center;
}

.ts-wrapper.plugin-remove_button .item .remove {
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
  display: inline-block;
  padding: 0 6px;
  border-radius: 0 2px 2px 0;
  box-sizing: border-box;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {
  background: none;
}

.ts-wrapper.plugin-remove_button .remove-single {
  position: absolute;
  right: 0;
  top: 0;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item {
  padding-right: 0 !important;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
  border-left: 1px solid var(--color-border);
  margin-left: 6px;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {
  border-left-color: var(--color-border);
}

.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {
  border-left-color: transparent;
}

.ts-wrapper.plugin-remove_button.rtl .item {
  padding-left: 0 !important;
}

.ts-wrapper.plugin-remove_button.rtl .item .remove {
  border-right: 1px solid var(--color-border);
  margin-right: 6px;
}

.ts-wrapper.plugin-remove_button.rtl .item.active .remove {
  border-right-color: var(--color-border);
}

.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {
  border-right-color: transparent;
}

:root {
  --ts-pr-clear-button: 0;
  --ts-pr-caret: 0;
  --ts-pr-min: .75rem;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.single .ts-control input {
  cursor: pointer;
}

.ts-control:not(.rtl) {
  padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
}

.ts-control.rtl {
  padding-left: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
}

.ts-wrapper {
  position: relative;
}

.ts-dropdown,
.ts-control,
.ts-control input {
  color: var(--color-text-body);
  font-family: inherit;
  line-height: 1.5;
}

.ts-control,
.ts-wrapper.single.input-active .ts-control {
  background: var(--color-surface);
  cursor: text;
}

.ts-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.offer-dialog {
  width: min(24rem, 100% - 2rem);
  padding: var(--space-l);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  color: var(--color-text-body);
}
.offer-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.offer-dialog h2 {
  margin-top: 0;
}
.offer-dialog p {
  color: var(--color-text-muted);
}
.offer-dialog .form {
  gap: var(--space-l);
}
.offer-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xxs);
}

.offer-form {
  max-width: 70rem;
}
.offer-form__section {
  width: 100%;
  margin: 0;
  padding: var(--space-l);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--border-radius);
}
.offer-form__section legend {
  padding: 0 var(--space-xxs) 0 0;
  font-size: var(--font-size-l);
  font-weight: 700;
  color: var(--color-text-header);
}
.offer-form__section legend span {
  color: var(--color-text-muted);
  font-weight: 400;
}
.offer-form__section--lines {
  padding-bottom: var(--space-s);
}
.offer-form__section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-s);
}
.offer-form__section-heading legend {
  margin: 0;
}
.offer-form__hint {
  margin: var(--space-xxxs) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
}
.offer-form__grid {
  display: grid;
  gap: var(--space-s);
}
.offer-form__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.offer-form__actions {
  display: flex;
  justify-content: flex-end;
}

.offer-containers {
  display: grid;
  gap: var(--space-s);
}

.offer-container {
  padding: var(--space-s);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  background: var(--color-background);
}
.offer-container__header {
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}
.offer-container__header h3 {
  margin: 0 auto 0 0;
}
.offer-container__materials {
  display: grid;
  gap: var(--space-xxs);
  margin: var(--space-s) 0 var(--space-xxs);
}
.offer-container [data-container-warning] {
  display: block;
  color: var(--color-danger, #b42318);
}
.offer-container__material {
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}
.offer-container__material select {
  flex: 1;
}
.offer-container__material input[type=number] {
  width: 8rem;
}

.offer-equipment-lines {
  display: grid;
  gap: var(--space-s);
}

.offer-equipment-line {
  padding: var(--space-s);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  background: var(--color-background);
}
.offer-equipment-line h3 {
  margin-top: 0;
}
.offer-equipment-line .offer-line__equipment-assignments {
  display: grid;
  gap: var(--space-xxs);
  margin-bottom: var(--space-xxs);
}

.offer-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
}

.offer-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: var(--space-s);
  padding: var(--space-s);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  background: var(--color-background);
}
.offer-line:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218, 58, 59, 0.08);
}
.offer-line__number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--font-size-s);
  font-weight: 700;
}
.offer-line__field {
  min-width: 0;
}
.offer-line__field input, .offer-line__field select {
  width: 100%;
  box-sizing: border-box;
}
.offer-line [data-line-allocation-warning] {
  grid-column: 1/-1;
  color: var(--color-danger, #b42318);
}
.offer-line__equipment {
  grid-column: 2/-1;
  display: grid;
  gap: var(--space-xxs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border-light);
}
.offer-line__equipment-assignments {
  display: grid;
  gap: var(--space-xxs);
}
.offer-line__equipment-assignment {
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}
.offer-line__equipment-assignment input,
.offer-line__equipment-assignment select {
  min-width: 0;
}
.offer-line__equipment-assignment input[type=number] {
  width: 8rem;
}
.offer-line__equipment [data-equipment-total][data-invalid=true] {
  color: var(--color-primary);
}
.offer-line__remove {
  height: 2.25rem;
  padding: 0 var(--space-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
  font-size: var(--font-size-s);
  font-weight: 700;
}
.offer-line__remove:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
}

@media (max-width: 700px) {
  .offer-form__grid--three {
    grid-template-columns: 1fr;
  }
  .offer-form__section-heading {
    flex-direction: column;
  }
  .offer-form__section-heading .btn {
    width: 100%;
  }
  .offer-line {
    grid-template-columns: 1fr auto;
    gap: var(--space-xxs);
  }
  .offer-line__field--grade {
    grid-column: 1/-1;
  }
  .offer-line__field--price {
    grid-column: 1/2;
  }
  .offer-line__field--weight {
    grid-column: 1/2;
  }
  .offer-line__equipment {
    grid-column: 2/-1;
  }
  .offer-line__remove {
    grid-column: 2;
  }
}
@media (min-width: 50rem) {
  main.main--operations {
    max-width: 76rem;
  }
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--color-border);
}
.page-header__eyebrow, .page-header__label {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-header__title {
  margin-top: var(--space-xxxs);
}
.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxs) var(--space-s);
  margin-top: var(--space-xxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
}
.page-header__actions, .page-header__actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xxs);
}

.notice {
  padding: var(--space-xs) var(--space-s);
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-bg);
  color: var(--color-text-body);
  font-size: var(--font-size-s);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-xs);
}
.section-heading p {
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
}

.data-list {
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  overflow: hidden;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) repeat(3, minmax(6rem, 1fr)) auto;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
  border-bottom: 1px solid var(--color-border-light);
}
.data-row:last-child {
  border-bottom: 0;
}
.data-row__primary {
  min-width: 0;
  font-weight: 700;
}
.data-row__detail {
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
}
.data-row__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.data-row__action {
  justify-self: end;
}
.data-row--link {
  color: var(--color-text-body);
  text-decoration: none;
  transition: background-color 150ms, box-shadow 150ms;
}
.data-row--link:hover {
  color: var(--color-text-body);
  background: var(--color-background);
  text-decoration: none;
}
.data-row--link:focus-visible {
  color: var(--color-text-body);
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  overflow: hidden;
}

.summary-item {
  min-width: 0;
  padding: var(--space-s);
  border-right: 1px solid var(--color-border-light);
}
.summary-item:last-child {
  border-right: 0;
}
.summary-item__label {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.summary-item__value {
  display: block;
  margin-top: var(--space-xxxs);
  color: var(--color-text-header);
  font-size: var(--font-size-l);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.summary-item__hint {
  display: block;
  margin-top: var(--space-xxxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.offer-list {
  display: grid;
  gap: var(--space-s);
}

.offer-card {
  display: grid;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
}

.offer-subcard, .rfq-subcard {
  min-width: 0;
  padding: var(--space-xs) var(--space-s);
  background: transparent;
}

.offer-subcard {
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 150ms;
}

.offer-subcard:hover {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

a.offer-subcard__customer, a.offer-subcard__customer:hover, a.offer-subcard__customer:focus-visible, a.offer-subcard__content, a.offer-subcard__content:hover, a.offer-subcard__content:focus-visible {
  color: var(--color-text-body);
  text-decoration: none !important;
}

a.offer-subcard__customer:focus-visible, a.offer-subcard__content:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.offer-subcard__content {
  display: block;
}

.offer-subcard__header, .rfq-subcard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
}

.offer-subcard__customer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  min-width: 0;
}

.offer-subcard__actions, .offer-subcard__actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xxs);
}

.offer-subcard__actions {
  flex: none;
}

.offer-subcard__customer h2, .rfq-subcard__header h2 {
  margin: 0;
  color: var(--color-text-header);
  font-size: var(--font-size-l);
  line-height: 1.25;
}

.offer-subcard__references {
  margin: var(--space-xxxs) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.offer-subcard__flag {
  flex: none;
  width: 1.75rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 0 1px var(--color-border-light);
}

.offer-details, .rfq-entry-card__details {
  margin: var(--space-xs) 0 0;
  border-top: 1px solid var(--color-border-light);
}

.offer-details__row, .rfq-entry-card__details > div, .rfq-entry-card__profits dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-xxs) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.offer-details dt, .rfq-entry-card__details dt, .rfq-entry-card__profits dt, .rfq-entry-card__profits h3 {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-details dd, .rfq-entry-card__details dd, .rfq-entry-card__profits dd {
  min-width: 0;
  margin: 0;
  color: var(--color-text-header);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.offer-details__rate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xxs);
}

.offer-details__rate-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
}

.offer-details__rate-lock svg {
  width: 0.85rem;
  height: 0.85rem;
}

.offer-material {
  margin-top: var(--space-xs);
}

.offer-material__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
}

.offer-material__heading h3 {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-material__heading span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.offer-material__list {
  margin: var(--space-xxs) 0 0;
  padding: 0;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  list-style: none;
}

.offer-material__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xxs) var(--space-s);
  padding: var(--space-xxs) var(--space-xs);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-s);
}

.offer-material__list li:last-child {
  border-bottom: 0;
}

.offer-material__list strong {
  color: var(--color-text-header);
}

.offer-material__list span {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.rfq-subcard {
  border-top: 1px solid var(--color-border-light);
}

.rfq-list {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.rfq-empty {
  margin: var(--space-xs) 0 0;
  padding: var(--space-s) var(--space-xs);
  border: 1px dashed var(--color-border-light);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
  text-align: center;
}

a.rfq-entry-card, a.rfq-entry-card:hover, a.rfq-entry-card:focus-visible {
  color: var(--color-text-body);
  text-decoration: none !important;
}

.rfq-entry-card {
  display: block;
  padding: var(--space-xs);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  transition: border-color 150ms, box-shadow 150ms;
}

.rfq-entry-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.rfq-entry-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.rfq-entry-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
}

.rfq-entry-card__header strong {
  display: block;
  color: var(--color-text-header);
}

.rfq-entry-card__references {
  margin: var(--space-xxxs) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.rfq-entry-card__status {
  flex: none;
  padding: 0.15rem var(--space-xxs);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.rfq-entry-card__status--cancelled {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
}

.rfq-entry-card__status--pending {
  border-color: #f2d38a;
  background: #fff8e6;
  color: #8a5200;
}

.rfq-entry-card__status--completed {
  border-color: #a9cbed;
  background: #eff7ff;
  color: #175a96;
}

.rfq-entry-card__status--accepted {
  border-color: #a7d8b8;
  background: #f0faf3;
  color: #17663a;
}

.rfq-entry-card__pending {
  color: var(--color-text-muted);
  font-weight: 400;
}

.rfq-entry-card__profits {
  margin-top: var(--space-xs);
}

.rfq-entry-card__profits h3 {
  margin: 0;
}

.rfq-entry-card__profits dl {
  margin: var(--space-xxs) 0 0;
}

.rfq-entry-card__profits dl > div {
  padding: var(--space-xxxs) 0;
}

.rfq-entry-card__profits dd span {
  margin-left: 0.1rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 400;
}

.rfq-entry-card__profits dd.net-sale-value--negative {
  color: var(--color-danger, #b42318);
}

@media (min-width: 64rem) {
  .offer-card {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
  }
  .rfq-subcard {
    border-top: 0;
    border-left: 1px solid var(--color-border-light);
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 1fr);
  gap: var(--space-l);
  align-items: start;
}

.detail-card {
  padding: var(--space-s);
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
}

.detail-card + .detail-card {
  margin-top: var(--space-s);
}

.detail-card h2, .detail-card h3 {
  margin-bottom: var(--space-xs);
}

.key-value-list {
  display: grid;
  gap: var(--space-xs);
}

.key-value {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  font-size: var(--font-size-s);
}

.key-value dt {
  color: var(--color-text-muted);
}

.key-value dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 0.15rem var(--space-xxs);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-body);
  background: var(--color-background);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status--accepted, .status--sent {
  color: #17663a;
  border-color: #a7d8b8;
  background: #f0faf3;
}

.status--review, .status--draft {
  color: #8a5200;
  border-color: #e5c690;
  background: #fff9ed;
}

.net-sale-value--negative {
  color: var(--color-danger, #b42318);
}

.source-document__filename {
  display: block;
  max-width: 100%;
  margin: var(--space-xs) 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status--expired {
  color: #9b2929;
  border-color: #e7aaaa;
  background: var(--color-primary-bg);
}

.permit-overview {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  overflow: hidden;
}

.permit-overview__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xxs);
  min-width: 0;
  padding: var(--space-s);
  border-right: 1px solid var(--color-border-light);
}

.permit-detail-grid {
  margin-top: var(--space-l);
}

.permit-details {
  gap: 0;
}

.permit-details .key-value {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.permit-details .key-value:last-child {
  border-bottom: 0;
}

.permit-details .key-value--stacked {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr);
}

.permit-details .key-value--stacked dd {
  text-align: left;
}

.permit-details .key-value--stacked p {
  margin: 0;
}

.permit-details small {
  display: block;
  margin-top: var(--space-xxxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 400;
}

.permit-conditions {
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: var(--border);
}

.permit-conditions h3 {
  margin-bottom: var(--space-xxs);
}

.permit-conditions p {
  margin: 0;
  white-space: pre-line;
}

.permit-usage-list, .permit-document-list {
  display: grid;
  border-top: 1px solid var(--color-border-light);
}

.permit-usage-list__item, .permit-document-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-body);
  text-decoration: none;
  transition: background-color 150ms;
}

.permit-usage-list__item:hover, .permit-document-list__item:hover {
  color: var(--color-text-body);
  background: var(--color-background);
  text-decoration: none;
}

.permit-usage-list__item:focus-visible, .permit-document-list__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.permit-usage-list__item small, .permit-document-list__item small {
  display: block;
  margin-top: var(--space-xxxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.permit-document-list__item > small {
  flex: none;
  margin-top: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-s);
}

.data-table th {
  padding: var(--space-xs) var(--space-s);
  background: var(--color-background);
  border-bottom: var(--border);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: var(--space-xs) var(--space-s);
  border-bottom: 1px solid var(--color-border-light);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table td small.freight-quote__source {
  display: block;
  margin-top: var(--space-xxxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.quote-notes {
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: var(--border);
}

.quote-notes h2 {
  margin-bottom: var(--space-xxs);
}

.quote-notes p {
  margin: 0;
  white-space: pre-line;
}

.freight-form {
  max-width: 76rem;
}

.freight-form h2 {
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-border);
}

.freight-form h2:first-of-type {
  margin-top: 0;
}

.freight-form > .card {
  padding: var(--space-s);
}

.freight-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-s);
}

.freight-form__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.freight-form fieldset {
  padding: var(--space-l);
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
}

.freight-form legend {
  padding-right: var(--space-xxs);
  color: var(--color-text-header);
  font-weight: 700;
}

.freight-form__hint {
  margin-top: var(--space-xxxs);
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
}

.freight-form__advanced {
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-border-light);
}

.freight-form__advanced summary {
  color: var(--color-text-muted);
  font-size: var(--font-size-s);
  font-weight: 700;
  cursor: pointer;
}

.freight-form__advanced[open] summary {
  margin-bottom: var(--space-s);
  color: var(--color-text-header);
}

.freight-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xxs);
}

@media (max-width: 50rem) {
  .page-header {
    flex-direction: column;
  }
  .page-header__actions {
    width: 100%;
  }
  .page-header__actions .btn {
    flex: 1;
  }
  .data-row {
    grid-template-columns: 1fr auto;
    gap: var(--space-xxs) var(--space-s);
  }
  .data-row__detail, .data-row__value {
    grid-column: 1;
  }
  .data-row__action {
    grid-column: 2;
    grid-row: 1;
  }
  .summary-grid, .permit-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .summary-item:nth-child(2), .permit-overview__identity {
    border-right: 0;
  }
  .summary-item:nth-child(n+3), .permit-overview .summary-item:nth-child(n+3) {
    border-top: 1px solid var(--color-border-light);
  }
  .permit-overview__identity {
    border-bottom: 1px solid var(--color-border-light);
  }
  .detail-grid, .freight-form__grid, .freight-form__grid--two {
    grid-template-columns: 1fr;
  }
  .permit-details .key-value--stacked {
    grid-template-columns: 1fr;
  }
  .data-table {
    min-width: 0;
  }
  .profitability-table {
    table-layout: fixed;
    font-size: var(--font-size-xs);
  }
  .profitability-table th, .profitability-table td {
    padding: var(--space-xxs) 0.25rem;
    overflow-wrap: anywhere;
  }
  .profitability-table th:first-child, .profitability-table td:first-child {
    width: 24%;
  }
  .table-scroll {
    overflow-x: auto;
  }
}
.container {
  width: 100%;
  padding-right: var(--space-s);
  padding-left: var(--space-s);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
@media (min-width: 50rem) {
  .container {
    padding-right: var(--space-m);
    padding-left: var(--space-m);
    max-width: 42rem;
  }
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  align-items: center;
}
.header h1 {
  font-size: var(--font-size-xxxl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-header);
}

body {
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-family-sans);
  background-color: var(--color-background);
  color: var(--color-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  height: 48px;
  padding: 0 var(--space-s);
  background-color: var(--color-black);
  z-index: 10;
}
header .header-title h3 {
  display: flex;
  align-items: center;
  gap: var(--space-xxxs);
  font-size: var(--font-size-l);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin: 0;
}
header .header-title h3 .header-logo {
  height: 22px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
header .header-title a {
  color: var(--color-white) !important;
  text-decoration: none !important;
}
header nav.header-nav ul {
  display: flex;
  flex-direction: row;
  gap: var(--space-xxs);
  list-style: none;
}
header nav.header-nav a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--space-xxs);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  border-radius: var(--border-radius-sm);
  transition: color 150ms, background-color 150ms;
}
header nav.header-nav a:hover, header nav.header-nav a:active {
  color: var(--color-white) !important;
  background-color: rgba(255, 255, 255, 0.1);
}
header .nav-group {
  position: relative;
}
header .nav-group .nav-subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  padding: var(--space-xxs);
  background-color: var(--color-black);
  border: solid 1px rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
header .nav-group .nav-subnav li {
  display: block;
}
header .nav-group .nav-subnav a {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}
header .nav-group:hover .nav-subnav, header .nav-group:focus-within .nav-subnav {
  display: flex;
  flex-direction: column;
}
header .header-center {
  flex-grow: 1;
}
header .header-session {
  display: flex;
  align-items: center;
}
header .header-session .btn--text {
  color: rgba(255, 255, 255, 0.7) !important;
}
header .header-session .btn--text:hover {
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 150ms;
}
.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: transform 200ms, opacity 200ms;
}

header.nav--open .nav-toggle .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
header.nav--open .nav-toggle .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
header.nav--open .nav-toggle .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 799px) {
  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }
  header nav.header-nav {
    position: fixed;
    top: 48px;
    right: 0;
    bottom: 0;
    width: 260px;
    max-width: 80vw;
    background-color: var(--color-black);
    padding: var(--space-s);
    transform: translateX(100%);
    transition: transform 200ms ease-out;
    z-index: 20;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }
  header nav.header-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  header nav.header-nav li {
    display: block;
    width: 100%;
    border-bottom: solid 1px rgba(255, 255, 255, 0.08);
  }
  header nav.header-nav .nav-group .nav-subnav {
    position: static;
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 0 0 0 var(--space-s);
    border: none;
    box-shadow: none;
  }
  header nav.header-nav a {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 var(--space-xs);
    font-size: var(--font-size-s);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    border-radius: var(--border-radius);
    box-sizing: border-box;
  }
  header nav.header-nav a:hover, header nav.header-nav a:active {
    color: var(--color-white) !important;
    background-color: rgba(255, 255, 255, 0.08);
  }
  header.nav--open nav.header-nav {
    transform: translateX(0);
  }
  header.nav--open nav.header-nav::before {
    content: "";
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
  }
  .header-session {
    order: 2;
  }
  .star-item > span,
  .card > span {
    flex-wrap: wrap;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
}
main {
  padding-top: calc(48px + var(--space-l));
  padding-bottom: var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  width: 100%;
  padding-right: var(--space-s);
  padding-left: var(--space-s);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 50rem) {
  main {
    padding-right: var(--space-m);
    padding-left: var(--space-m);
    max-width: 42rem;
  }
}

main.main--session {
  box-sizing: border-box;
  max-width: none;
  min-height: calc(100vh - 48px);
  padding: 48px 0 0;
  gap: 0;
}

.session-page {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100vw;
  min-height: calc(100vh - 48px);
  margin-left: calc(50% - 50vw);
  padding: var(--space-xl) var(--space-s);
  background: linear-gradient(110deg, var(--color-red) 0%, #8f252d 45%, var(--color-black) 100%);
}

.session-page__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
  width: 30em;
  max-width: min(30em, 80vw);
  padding: 2em;
  gap: 1em;
  background-color: #f2f3f5;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.color-white {
  color: var(--color-white);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 50rem) {
  header {
    padding: 0 var(--space-xl);
  }
  header nav.header-nav ul {
    gap: var(--space-xs);
  }
}
.logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: transparent;
  border: solid 1px transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
  transition: color 150ms, background-color 150ms;
}
.logout-icon svg, .logout-icon img {
  display: block;
  margin: 0 auto;
}
.logout-icon:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.card--clickable {
  position: relative;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}
.card--clickable:hover {
  background-color: var(--color-primary-bg);
  border-color: var(--color-primary);
}
.card--clickable a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card--clickable a:hover,
.card--clickable a:focus-visible {
  text-decoration: none !important;
}
.card--clickable .btn,
.card--clickable .btn--icon-delete,
.card--clickable button,
.card--clickable [data-action],
.card--clickable .business__actions,
.card--clickable .item-actions {
  position: relative;
  z-index: 2;
}

.btn--icon-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: solid 1px transparent;
  border-radius: var(--border-radius);
  color: var(--color-text-muted);
  font-size: var(--font-size-m);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}
.btn--icon-delete:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  border-color: rgba(218, 58, 59, 0.2);
}
.btn--icon-delete:active {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-l);
  padding: var(--space-xs) var(--space-s);
  border-bottom: solid 1px var(--color-border-light);
}
.detail-list > div:last-child {
  border-bottom: none;
}
.detail-list dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-list dd {
  margin: 0;
  text-align: right;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxs);
}

.header-actions,
.report-downloader {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xxs);
}

.report-popover {
  display: block !important;
  position: fixed;
  top: calc(100% + var(--space-xxs));
  right: 0;
  z-index: 5;
  width: min(18rem, 100vw - 2rem);
  padding: var(--space-s);
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}
.report-popover[hidden],
.report-popover [hidden] {
  display: none !important;
}
.report-popover form > div {
  display: block !important;
}
.report-popover h3 {
  margin: 0 0 var(--space-s);
  font-size: var(--font-size-l);
}
.report-popover .form {
  gap: var(--space-xs);
}

.pricing-summary {
  border: var(--border);
  border-left: solid 3px var(--color-primary);
  border-radius: var(--border-radius);
  background-color: var(--color-surface);
  overflow: hidden;
}
.pricing-summary .pricing-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-s);
  border-bottom: solid 1px var(--color-border-light);
  font-size: var(--font-size-m);
  color: var(--color-text-body);
}
.pricing-summary .pricing-summary__row:last-child {
  border-bottom: none;
}
.pricing-summary .pricing-summary__row b {
  color: var(--color-text-header);
  font-weight: 700;
}

trix-toolbar [data-trix-attribute=code],
trix-toolbar [data-trix-action=increaseNestingLevel],
trix-toolbar [data-trix-action=decreaseNestingLevel],
trix-toolbar [data-trix-action=undo],
trix-toolbar [data-trix-action=redo] {
  display: none !important;
}
