/* ==========================================================================
   Design tokens and document defaults
   ========================================================================== */

:root {
  --bo-bg: #f1f4f6;
  --bo-ink: #1f323f;
  --bo-muted: #6b7280;
  --bo-teal: #008998;
  --bo-teal-dark: #006d79;
  --bo-orange: #d97732;
  --bo-red: #d94d4d;
  --bo-steel: #7c8796;
  --bo-line: #d4e0e7;
  --bo-field: #eef2f5;
  --bo-radius: 8px;
  --bo-motion-fast: 180ms;
  --bo-motion-standard: 280ms;
  --bo-motion-emphasis: 360ms;
  --bo-ease-standard: cubic-bezier(.4, 0, .2, 1);
  --bo-ease-enter: cubic-bezier(.16, 1, .3, 1);
  --bo-ease-exit: cubic-bezier(.7, 0, .84, 0);
  font-family: Inter, Arial, sans-serif;
  color: var(--bo-ink);
  background: var(--bo-bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.is-drawer-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

[hidden] {
  display: none !important;
}

.bo-app {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  font-synthesis: none;
  background:
    linear-gradient(180deg, #f8fbfd 0%, #f1f4f6 26%, #eaf3f8 48%, rgba(138, 224, 233, .78) 100%),
    var(--bo-bg);
}

/* ==========================================================================
   Header and session controls
   ========================================================================== */

.bo-header {
  width: min(1760px, calc(100vw - 112px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(31, 50, 63, .13);
}

.bo-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.bo-brand__full {
  width: 157px;
  height: auto;
}

.bo-header__actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.bo-language {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  transition: color var(--bo-motion-fast) var(--bo-ease-standard), opacity var(--bo-motion-fast) var(--bo-ease-standard);
}

.bo-language__line {
  opacity: .5;
}

.bo-language__muted {
  opacity: .3;
}

.bo-language span {
  display: inline-block;
  transition: color var(--bo-motion-fast) var(--bo-ease-standard), opacity var(--bo-motion-fast) var(--bo-ease-standard), transform var(--bo-motion-standard) var(--bo-ease-enter);
}

.bo-language:hover span:first-child,
.bo-language:focus-within span:first-child {
  color: var(--bo-teal);
  transform: translateY(-1px);
}

.bo-language:hover .bo-language__muted,
.bo-language:focus-within .bo-language__muted {
  opacity: .56;
}

.bo-outline,
.bo-small-primary,
.bo-icon-button,
.bo-primary,
.bo-secondary,
.bo-add-button,
.bo-tab,
.bo-link-button {
  border: 0;
}

.bo-outline,
.bo-small-primary,
.bo-primary,
.bo-secondary,
.bo-add-button,
.bo-tab,
.bo-link-button {
  font-family: "Inter Tight", Inter, Arial, sans-serif;
}

.bo-outline,
.bo-small-primary,
.bo-primary,
.bo-secondary,
.bo-add-button,
.bo-tab,
.bo-icon-button {
  transition: background-color var(--bo-motion-fast) var(--bo-ease-standard), border-color var(--bo-motion-fast) var(--bo-ease-standard), color var(--bo-motion-fast) var(--bo-ease-standard), box-shadow var(--bo-motion-fast) var(--bo-ease-standard), transform var(--bo-motion-standard) var(--bo-ease-enter);
}

.bo-outline {
  height: 36px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--bo-teal);
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  color: var(--bo-teal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.bo-outline img {
  width: 9px;
  height: 9px;
}

.bo-small-primary {
  height: 36px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--bo-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.bo-auth-only,
.bo-session-only {
  display: none;
}

.bo-app[data-view="login"] .bo-auth-only,
.bo-app[data-view="confirm"] .bo-auth-only,
.bo-app[data-view="forgot"] .bo-auth-only,
.bo-app[data-view="reset"] .bo-auth-only,
.bo-app[data-view="requests"] .bo-session-only,
.bo-app[data-view="form"] .bo-session-only {
  display: inline-flex;
}

.bo-view {
  display: none;
  will-change: opacity;
}

.bo-app[data-view="login"] [data-view-panel="login"],
.bo-app[data-view="confirm"] [data-view-panel="confirm"],
.bo-app[data-view="forgot"] [data-view-panel="forgot"],
.bo-app[data-view="reset"] [data-view-panel="reset"],
.bo-app[data-view="requests"] [data-view-panel="requests"],
.bo-app[data-view="form"] [data-view-panel="form"] {
  display: block;
  animation: bo-view-in var(--bo-motion-emphasis) var(--bo-ease-enter) backwards;
}

.bo-app.is-view-leaving[data-view="login"] [data-view-panel="login"],
.bo-app.is-view-leaving[data-view="confirm"] [data-view-panel="confirm"],
.bo-app.is-view-leaving[data-view="forgot"] [data-view-panel="forgot"],
.bo-app.is-view-leaving[data-view="reset"] [data-view-panel="reset"],
.bo-app.is-view-leaving[data-view="requests"] [data-view-panel="requests"],
.bo-app.is-view-leaving[data-view="form"] [data-view-panel="form"] {
  pointer-events: none;
  animation: bo-view-out 150ms var(--bo-ease-exit) both;
}

/* ==========================================================================
   Authentication views
   ========================================================================== */

.bo-auth-view {
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 56px 24px;
  background: transparent;
}

.bo-app[data-view="login"] [data-view-panel="login"],
.bo-app[data-view="confirm"] [data-view-panel="confirm"],
.bo-app[data-view="forgot"] [data-view-panel="forgot"],
.bo-app[data-view="reset"] [data-view-panel="reset"] {
  display: grid;
}

.bo-auth-card,
.bo-message-card {
  width: min(540px, 100%);
  padding: 32px;
  border-radius: var(--bo-radius);
  background: #fff;
  box-shadow: 0 10px 32px rgba(31, 50, 63, .08);
}

.bo-auth-card h1,
.bo-message-card h1,
.bo-page-title h1,
.bo-form-head h1 {
  margin: 0;
  font-family: Oswald, Arial, sans-serif;
  font-size: 41px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.bo-message-card p {
  margin: 22px 0 24px;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.bo-email-accent {
  color: var(--bo-teal);
  font-weight: 600;
}

.bo-message-card--wide {
  width: min(540px, 100%);
}

.bo-message-card--wide p {
  margin-bottom: 18px;
}

.bo-message-card > .bo-primary,
.bo-message-card .bo-auth-actions,
.bo-message-card .bo-auth-actions .bo-primary {
  width: 100%;
}

.bo-auth-card__head {
  display: grid;
  gap: 24px;
}

.bo-tabs {
  position: relative;
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #e2e5e9;
  border-radius: 4px;
  background: var(--bo-field);
}

.bo-tabs::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 50%;
  border-radius: 3px;
  background: var(--bo-ink);
  transform: translateX(0);
  transition: transform var(--bo-motion-emphasis) var(--bo-ease-enter);
}

.bo-auth-card[data-auth-mode="register"] .bo-tabs::before {
  transform: translateX(100%);
}

.bo-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  color: rgba(31, 50, 63, .45);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.bo-tab.is-active {
  color: #fff;
}

.bo-auth-stage {
  position: relative;
  min-height: 228px;
  margin-top: 10px;
  overflow: hidden;
  transition: height var(--bo-motion-emphasis) var(--bo-ease-enter);
  will-change: height;
}

.bo-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.bo-auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.bo-auth-pane {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.bo-auth-pane.is-active,
.bo-auth-pane.is-leaving {
  display: grid;
}

.bo-auth-pane.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: bo-auth-pane-in 220ms var(--bo-ease-enter) both;
}

.bo-auth-pane.is-leaving {
  pointer-events: none;
  animation: bo-auth-pane-out 140ms var(--bo-ease-standard) both;
}

.bo-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--bo-ink);
  font-size: 14px;
}

.bo-field > label:first-child,
.bo-field > span:first-child {
  line-height: 1.2;
  text-wrap: pretty;
}

.bo-field b {
  color: #ef4444;
}

.bo-field input,
.bo-field select,
.bo-field textarea,
.bo-input-shell,
.bo-filters input,
.bo-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(107, 142, 165, .18);
  border-radius: 5px;
  background-color: var(--bo-field);
  color: var(--bo-ink);
  outline: none;
  transition: background-color var(--bo-motion-fast) var(--bo-ease-standard), border-color var(--bo-motion-fast) var(--bo-ease-standard), box-shadow var(--bo-motion-fast) var(--bo-ease-standard);
}

.bo-field input,
.bo-field select {
  height: 50px;
  padding: 0 18px;
}

.bo-field select,
.bo-filters select {
  appearance: none;
  background-image: url("assets/images/icon-chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
}

.bo-field textarea {
  min-height: 115px;
  resize: vertical;
  padding: 16px;
}

.bo-field input::placeholder,
.bo-field textarea::placeholder,
.bo-filters input::placeholder {
  color: #72808b;
}

.bo-field__error {
  min-height: 17px;
  margin-top: -3px;
  font-size: 12px;
  line-height: 1.35;
  text-wrap: pretty;
}

.bo-field__error:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.bo-field__error {
  color: var(--bo-red);
  font-weight: 500;
}

.bo-field input:hover,
.bo-field select:hover,
.bo-field textarea:hover,
.bo-input-shell:hover,
.bo-filters input:hover,
.bo-filters select:hover {
  border-color: rgba(0, 137, 152, .4);
  background-color: #f7fafc;
}

.bo-field input:focus,
.bo-field select:focus,
.bo-field textarea:focus,
.bo-input-shell:focus-within,
.bo-filters input:focus,
.bo-filters select:focus {
  border-color: var(--bo-teal);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 137, 152, .12);
}

.bo-field.is-invalid input,
.bo-field.is-invalid select,
.bo-field.is-invalid textarea,
.bo-field.is-invalid .bo-input-shell {
  border-color: var(--bo-red);
  background-color: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217, 77, 77, .1);
}

.bo-field.is-invalid .bo-input-shell input {
  box-shadow: none;
}

.bo-input-shell {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 0;
}

.bo-input-shell input {
  width: auto;
  height: 48px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bo-input-shell input:hover,
.bo-input-shell input:focus,
.bo-field.is-invalid .bo-input-shell input {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.bo-input-shell img {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  opacity: .72;
}

.bo-date-field {
  position: relative;
  display: block;
}

.bo-date-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--bo-steel);
}

.bo-date-toggle:hover,
.bo-date-toggle:focus-visible {
  background: rgba(0, 137, 152, .08);
}

.bo-date-picker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  width: min(292px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(107, 142, 165, .24);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 50, 63, .14);
}

.bo-date-picker__head {
  margin-bottom: 12px;
  color: var(--bo-ink);
  font-size: 14px;
  font-weight: 600;
}

.bo-date-picker__week,
.bo-date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.bo-date-picker__week {
  margin-bottom: 5px;
  color: rgba(31, 50, 63, .42);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.bo-date-picker__grid button {
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--bo-ink);
  font-size: 12px;
  font-weight: 500;
}

.bo-date-picker__grid button:hover,
.bo-date-picker__grid button:focus-visible {
  background: rgba(0, 137, 152, .1);
  color: var(--bo-teal);
}

.bo-primary,
.bo-secondary,
.bo-add-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 23px;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
}

.bo-primary,
.bo-add-button {
  background: var(--bo-teal);
  color: #fff;
}

.bo-secondary {
  background: var(--bo-field);
  color: var(--bo-ink);
}

.bo-primary:hover,
.bo-add-button:hover,
.bo-small-primary:hover {
  background: var(--bo-teal-dark);
}

.bo-primary:active,
.bo-secondary:active,
.bo-add-button:active,
.bo-small-primary:active,
.bo-outline:active,
.bo-icon-button:active {
  transform: translateY(1px);
}

.bo-secondary:hover,
.bo-icon-button:hover {
  background: #e2e9ee;
}

.bo-outline:hover {
  background: rgba(0, 137, 152, .08);
}

.bo-link-button {
  width: fit-content;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0;
  background: transparent;
  color: var(--bo-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  transition: color var(--bo-motion-fast) var(--bo-ease-standard);
}

.bo-inline-link {
  color: var(--bo-teal);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--bo-motion-fast) var(--bo-ease-standard);
}

.bo-link-button:hover {
  color: var(--bo-ink);
}

.bo-link-button:hover .bo-inline-link {
  color: var(--bo-teal-dark);
}

.bo-auth-switch {
  justify-self: center;
}

/* ==========================================================================
   Requests listing and filters
   ========================================================================== */

.bo-requests-view {
  width: min(1760px, calc(100vw - 112px));
  margin: 0 auto;
  padding: 34px 0 82px;
}

.bo-form-view {
  width: min(1240px, calc(100vw - 112px));
  margin: 0 auto;
  padding: 34px 0 82px;
}

.bo-page-title,
.bo-form-head {
  min-height: 85px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.bo-page-title h1 {
  margin-top: 6px;
}

.bo-page-title p {
  max-width: 642px;
  margin: 18px 0 28px;
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.bo-add-button {
  gap: 16px;
  min-width: 202px;
}

.bo-add-button span:first-child {
  font-weight: 700;
}

.bo-filters {
  min-height: 105px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0;
  padding: 20px;
  border-radius: var(--bo-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(31, 50, 63, .045);
}

.bo-filters label {
  flex: 1 1 220px;
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 6px;
}

.bo-filters label:first-child,
.bo-filters label:last-child {
  flex-basis: 180px;
}

.bo-filters label > span {
  color: rgba(31, 50, 63, .45);
  font-size: 12px;
  font-weight: 500;
}

.bo-filters input,
.bo-filters select {
  height: 44px;
  padding: 0 14px;
}

.bo-filters label.is-active-filter > span {
  color: var(--bo-teal);
}

.bo-filters label.is-active-filter input,
.bo-filters label.is-active-filter select {
  border-color: rgba(0, 137, 152, .55);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 137, 152, .1);
}

.bo-filters input[type="search"] {
  padding-right: 36px;
  background-image: url("assets/images/icon-search.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

.bo-table-card {
  margin-top: 24px;
  border-radius: var(--bo-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 50, 63, .06);
}

.bo-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--bo-radius);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 137, 152, .45) transparent;
}

.bo-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.bo-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 999px;
  background: rgba(0, 137, 152, .45);
}

.bo-table {
  width: 100%;
  min-width: 1180px;
  display: table;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.bo-table thead,
.bo-table tbody {
  display: table-row-group;
}

.bo-table thead {
  display: table-header-group;
}

.bo-table tr {
  display: table-row;
}

.bo-col-date { width: 11.35%; }
.bo-col-type { width: 7.56%; }
.bo-col-participant { width: 11.35%; }
.bo-col-product { width: 11.72%; }
.bo-col-volume { width: 7.72%; }
.bo-col-price { width: 22.31%; }
.bo-col-delivery { width: 18.15%; }
.bo-col-status { width: 9.84%; }

.bo-table th {
  height: 48px;
  min-width: 0;
  position: relative;
  padding: 0;
  background: var(--bo-ink);
  border-right: 1px solid rgba(255, 255, 255, .025);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  vertical-align: middle;
}

.bo-table th:last-child {
  border-right: 0;
}

.bo-table th > span {
  padding: 0 12px;
}

.bo-table th > span,
.bo-th-control span {
  display: flex;
  align-items: center;
  min-height: 16px;
  white-space: nowrap;
}

.bo-th-control {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  outline: 0;
  text-align: left;
  font: inherit;
  font-family: Inter, Arial, sans-serif;
  line-height: inherit;
}

.bo-th-control:hover {
  background: rgba(255, 255, 255, .045);
}

.bo-th-control.is-filtered .bo-filter-icon {
  color: #65dce6;
}

.bo-table .bo-th-control:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .48);
}

.bo-sort-icon {
  width: 8px;
  height: 12px;
  flex: 0 0 auto;
  position: relative;
  color: rgba(255, 255, 255, .48);
}

.bo-sort-icon::before,
.bo-sort-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
}

.bo-sort-icon::before {
  top: 0;
  border-bottom: 4px solid currentColor;
}

.bo-sort-icon::after {
  bottom: 0;
  border-top: 4px solid currentColor;
}

[data-sort-state="asc"] .bo-sort-icon::before,
[data-sort-state="desc"] .bo-sort-icon::after {
  opacity: 1;
}

[data-sort-state="asc"] .bo-sort-icon::after,
[data-sort-state="desc"] .bo-sort-icon::before {
  opacity: .22;
}

.bo-filter-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  position: relative;
  color: rgba(255, 255, 255, .58);
}

.bo-filter-icon::before {
  content: "";
  position: absolute;
  inset: 1px 0 0;
  clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%);
  background: currentColor;
}

.bo-column-menu {
  position: fixed;
  top: var(--menu-top, 0);
  left: var(--menu-left, 0);
  z-index: 60;
  min-width: 138px;
  max-height: min(260px, calc(100vh - var(--menu-top, 0px) - 16px));
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid #d4e0e7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(31, 50, 63, .14);
}

.bo-column-menu button {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--bo-ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.bo-column-menu button:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(0, 137, 152, .28);
}

.bo-column-menu button:hover,
.bo-column-menu button.is-active {
  background: var(--bo-field);
  color: var(--bo-teal);
}

.bo-table td {
  min-height: 60px;
  min-width: 0;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f3f6;
  color: var(--bo-ink);
  font-size: 14px;
  line-height: 1.4;
  vertical-align: top;
}

.bo-table tbody tr {
  cursor: pointer;
  animation: bo-row-in .22s ease both;
  animation-delay: calc(var(--row-index, 0) * 28ms);
  transition: background-color .16s ease, box-shadow .16s ease;
}

.bo-table tbody tr:hover td,
.bo-table tbody tr:focus-visible td {
  background: #f6fbfc;
}

.bo-table tbody tr:focus-visible {
  outline: 2px solid var(--bo-teal);
  outline-offset: -2px;
}

.bo-empty-row td {
  grid-column: 1 / -1;
  padding: 0;
}

.bo-empty-state {
  min-height: 156px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 18px;
  color: var(--bo-ink);
  text-align: center;
}

.bo-empty-state strong {
  font-size: 16px;
  font-weight: 600;
}

.bo-empty-state span {
  color: var(--bo-muted);
  font-size: 14px;
}

.bo-empty-state .bo-secondary {
  min-height: 40px;
  margin-top: 8px;
  padding: 0 18px;
  font-size: 14px;
}

.bo-cell-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.bo-cell-clamp--price {
  max-height: 4.2em;
  -webkit-line-clamp: 3;
}

.bo-table small {
  display: block;
  color: var(--bo-muted);
  font-size: 12px;
}

.bo-type {
  font-weight: 600;
}

.bo-type--sell {
  color: var(--bo-teal);
}

.bo-type--buy {
  color: var(--bo-orange);
}

.bo-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bo-status--active {
  background: var(--bo-teal);
}

.bo-status--done {
  background: var(--bo-steel);
}

.bo-status--canceled {
  background: var(--bo-red);
}

/* ==========================================================================
   Request details drawer
   ========================================================================== */

.bo-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border: 0;
  background: rgba(31, 50, 63, .1);
  opacity: 0;
  transition: opacity .22s ease;
}

.bo-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1010;
  width: min(620px, 100vw);
  display: flex;
  flex-direction: column;
  padding: 38px 40px 28px;
  transform: translateX(28px);
  opacity: 0;
  border-left: 1px solid #eaeef2;
  background: #fff;
  box-shadow: -18px 0 42px rgba(31, 50, 63, .11);
  transition: transform .22s ease, opacity .22s ease;
}

body.is-drawer-open .bo-drawer {
  transform: translateX(0);
  opacity: 1;
}

body.is-drawer-open .bo-drawer-backdrop {
  opacity: 1;
}

.bo-drawer__head,
.bo-drawer__meta,
.bo-drawer__participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bo-drawer__head p,
.bo-drawer__meta p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.bo-drawer__head b,
.bo-drawer__participant b {
  font-weight: 600;
}

.bo-drawer__head span,
.bo-drawer__meta p span,
.bo-drawer__participant span,
.bo-drawer__details dt {
  color: rgba(31, 50, 63, .45);
  font-weight: 600;
  text-transform: uppercase;
}

.bo-icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--bo-field);
}

.bo-icon-button img {
  width: 13px;
  height: 13px;
}

.bo-drawer h2 {
  max-width: 496px;
  margin: 7px 0 19px;
  font-family: Oswald, Arial, sans-serif;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.bo-drawer__meta,
.bo-drawer__participant,
.bo-drawer__details > div {
  border-bottom: 1px solid #d9e2e7;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.bo-drawer__participant {
  align-items: flex-end;
}

.bo-drawer__participant p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.bo-drawer__participant p img {
  width: 23px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(0, 0, 0, .25);
}

.bo-drawer__exchange {
  width: 141px;
  height: auto;
}

.bo-drawer__details {
  margin: 0;
  overflow-y: auto;
}

.bo-drawer__details dt,
.bo-drawer__details dd {
  font-size: 14px;
  line-height: 1.4;
}

.bo-drawer__details dd {
  margin: 1px 0 0;
  font-weight: 500;
}

.bo-drawer__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
}

/* ==========================================================================
   New request form
   ========================================================================== */

.bo-form-head {
  align-items: center;
}

.bo-form-card {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding: 32px 40px;
  border: 1px solid #e2e5e9;
  border-radius: var(--bo-radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 50, 63, .06);
}

.bo-form-section {
  display: grid;
  gap: 14px;
}

.bo-form-feedback {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 137, 152, .2);
  border-radius: 5px;
  background: rgba(0, 137, 152, .08);
  color: var(--bo-teal);
  font-size: 13px;
  font-weight: 500;
}

.bo-success-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bo-motion-standard) var(--bo-ease-standard);
}

.bo-app.is-success-open .bo-success-modal {
  opacity: 1;
  pointer-events: auto;
}

.bo-success-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 50, 63, .18);
}

.bo-success-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  padding: 36px 32px 32px;
  border-radius: var(--bo-radius);
  background: #fff;
  box-shadow: 0 22px 52px rgba(31, 50, 63, .16);
  transform: translateY(12px);
  transition: transform var(--bo-motion-emphasis) var(--bo-ease-enter);
}

.bo-app.is-success-open .bo-success-card {
  transform: translateY(0);
}

.bo-success-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bo-success-card__close {
  flex: 0 0 auto;
  margin: -4px -4px 0 0;
}

.bo-success-card h2 {
  margin: 0;
  font-family: Oswald, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.bo-success-card p {
  max-width: 390px;
  margin: -4px 0 2px;
  color: var(--bo-ink);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.bo-form-section h2 {
  margin: 0;
  color: var(--bo-teal);
  font-family: Oswald, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.bo-form-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
}

.bo-form-grid > .bo-field {
  flex: 1 1 calc(50% - 10px);
  min-width: min(100%, 360px);
}

.bo-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.bo-form-actions > button {
  flex: 1 1 260px;
  max-width: 304px;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--bo-teal);
  outline-offset: 3px;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes bo-view-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bo-view-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes bo-row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bo-auth-pane-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bo-auth-pane-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ==========================================================================
   Responsive layout
   ========================================================================== */

@media (min-width: 981px) {
  .bo-app {
    padding-top: 76px;
  }

  .bo-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 55;
    width: 100%;
    max-width: none;
    padding-right: max(56px, calc((100vw - 1760px) / 2));
    padding-left: max(56px, calc((100vw - 1760px) / 2));
    background: rgba(248, 251, 253, .88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (min-width: 1280px) {
  .bo-table-wrap {
    overflow-x: visible;
  }

  .bo-table {
    min-width: 100%;
  }

  .bo-table th:first-child {
    border-top-left-radius: var(--bo-radius);
  }

  .bo-table th:last-child {
    border-top-right-radius: var(--bo-radius);
  }
}

@media (max-width: 980px) {
  .bo-header,
  .bo-requests-view,
  .bo-form-view {
    width: min(100% - 32px, 720px);
  }

  .bo-header {
    height: auto;
    min-height: 76px;
    padding: 16px 0;
    align-items: flex-start;
  }

  .bo-brand__full {
    width: 150px;
  }

  .bo-header__actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .bo-page-title,
  .bo-form-head {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .bo-add-button {
    width: 100%;
  }

  .bo-form-head .bo-secondary {
    display: none;
  }

  .bo-filters,
  .bo-form-grid {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .bo-filters {
    min-height: 0;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
  }

  .bo-filters label,
  .bo-filters label:first-child,
  .bo-filters label:last-child {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
  }

  .bo-filters input,
  .bo-filters select {
    width: 100%;
    font-size: 16px;
  }

  .bo-field input,
  .bo-field select,
  .bo-field textarea,
  .bo-input-shell input {
    font-size: 16px;
  }

  .bo-table-card {
    background: transparent;
    box-shadow: none;
  }

  .bo-table-wrap {
    overflow: visible;
    border-radius: 0;
  }

  .bo-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .bo-table colgroup {
    display: none;
  }

  .bo-table thead {
    display: none;
  }

  .bo-table tbody {
    display: grid;
    gap: 12px;
  }

  .bo-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
    padding: 16px;
    border-radius: var(--bo-radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(31, 50, 63, .055);
  }

  .bo-table td {
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
  }

  .bo-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: rgba(31, 50, 63, .45);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
  }

  .bo-table tbody tr:hover td,
  .bo-table tbody tr:focus-visible td {
    background: transparent;
  }

  .bo-table tbody tr:hover,
  .bo-table tbody tr:focus-visible {
    background: #f6fbfc;
  }

  .bo-table td:nth-child(4),
  .bo-table td:nth-child(6),
  .bo-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .bo-table td:nth-child(4) {
    order: -3;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.32;
  }

  .bo-table td:nth-child(1) {
    order: -2;
  }

  .bo-table td:nth-child(8) {
    order: -2;
    justify-self: end;
    text-align: right;
  }

  .bo-table td:nth-child(2) {
    order: -1;
  }

  .bo-table td:nth-child(3) {
    order: -1;
  }

  .bo-cell-clamp--price {
    max-height: 4.2em;
  }

  .bo-empty-row {
    display: block !important;
  }

  .bo-empty-row td {
    display: block;
  }

  .bo-empty-row td::before {
    content: none;
  }

  .bo-form-grid > .bo-field {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
  }

  .bo-drawer {
    padding: 28px 24px;
  }

  .bo-drawer__actions,
  .bo-form-actions,
  .bo-auth-actions {
    grid-template-columns: 1fr;
    display: grid;
    gap: 12px;
  }

  .bo-form-actions > button {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .bo-header {
    width: min(100% - 24px, 720px);
  }

  .bo-auth-card,
  .bo-message-card,
  .bo-form-card {
    padding: 24px 16px;
  }

  .bo-auth-card h1,
  .bo-message-card h1,
  .bo-page-title h1,
  .bo-form-head h1 {
    font-size: 32px;
  }

  .bo-header {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px 0;
  }

  .bo-brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .bo-header__actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .bo-outline {
    height: 32px;
    min-height: 0;
    gap: 6px;
    padding: 0 8px;
  }

  .bo-outline span,
  .bo-small-primary {
    font-size: 13px;
  }

  .bo-brand__full {
    width: clamp(112px, 34vw, 150px);
  }

  .bo-app[data-view="requests"] .bo-brand__full,
  .bo-app[data-view="form"] .bo-brand__full {
    width: clamp(84px, 27vw, 112px);
  }

  .bo-small-primary {
    height: 32px;
    min-height: 0;
    padding: 0 10px;
  }

  .bo-requests-view,
  .bo-form-view {
    width: min(100% - 24px, 720px);
    padding-bottom: 56px;
  }

  .bo-page-title {
    gap: 24px;
  }

  .bo-page-title p {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .bo-filters {
    padding: 14px;
  }

  .bo-table tbody tr {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 16px 14px 14px;
  }

  .bo-table td:nth-child(1) {
    order: -6;
    padding-right: 104px;
  }

  .bo-table td:nth-child(2) {
    order: -5;
  }

  .bo-table td:nth-child(3) {
    order: -4;
  }

  .bo-table td:nth-child(4) {
    order: -3;
    font-size: 17px;
  }

  .bo-table td:nth-child(8) {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
    justify-self: auto;
    text-align: right;
  }

  .bo-table td:nth-child(8)::before {
    display: none;
  }

  .bo-language {
    padding: 0 4px;
  }

  .bo-drawer__head,
  .bo-drawer__meta,
  .bo-drawer__participant {
    align-items: flex-start;
  }

  .bo-drawer__participant,
  .bo-drawer__actions {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .bo-header {
    gap: 6px;
  }

  .bo-brand__full {
    width: 112px;
  }

  .bo-app[data-view="requests"] .bo-brand__full,
  .bo-app[data-view="form"] .bo-brand__full {
    width: 78px;
  }

  .bo-outline {
    gap: 4px;
    padding: 0 6px;
  }

  .bo-language {
    gap: 4px;
    padding: 0 2px;
    font-size: 12px;
  }

  .bo-outline span,
  .bo-small-primary {
    font-size: 11px;
  }

  .bo-small-primary {
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
