.betrieb-view {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 20px #13251908;
}

.bo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 19px;
  background: #fcfdfa;
  border-bottom: 1px solid var(--line);
}

.bo-head h2 {
  margin-top: 7px;
  font-size: clamp(1.26rem, 2.5vw, 1.6rem);
  letter-spacing: -.035em;
}

.bo-head p, .bo-empty p, .bo-demo-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.bo-badge, .bo-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: .77rem;
  line-height: 1.45;
  font-weight: 675;
}

.bo-badge {
  color: #355e48;
  background: var(--green-tint);
}

.bo-main {
  display: grid;
  gap: 12px;
  padding: 15px 19px 17px;
}

.bo-tabs {
  display: inline-flex;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid #e0e8df;
  border-radius: 11px;
  background: #f1f5f0;
}

.bo-tabs .button {
  min-height: 34px;
  padding: 6px 10px;
}

.bo-tabs .button[aria-pressed="true"] {
  background: #fff;
  border-color: #d8e5d8;
  box-shadow: 0 2px 5px #31433910;
}

.bo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.bo-filters label {
  display: grid;
  gap: 4px;
  flex: 1 1 165px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  min-width: 0;
}

.bo-filters label:last-child {
  flex-grow: 2;
}

.bo-filters input, .bo-filters select {
  min-width: 0;
  width: 100%;
  min-height: 41px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1c2c24;
  font-size: .9rem;
  font-weight: 500;
}

.bo-filters input {
  padding: 8px 10px;
  background: #fff;
}

.bo-totals {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}

.bo-orders {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  padding: 0;
  list-style: none;
  margin: 0;
}

.bo-order-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 11px;
  padding: 12px;
  background: #fbfcfa;
  border: 1px solid #e0e8e0;
  border-radius: 12px;
}

.bo-order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.bo-order-top h3 {
  font-size: 1rem;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.bo-order-top p, .bo-return-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.bo-order-top .bo-company {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #345b44;
}

.bo-state {
  color: #315976;
  background: #e8f0f6;
}

.bo-state[data-tone="done"] {
  color: #335c45;
  background: #e9f3e9;
}

.bo-state[data-tone="late"] {
  color: #834d1e;
  background: #f9eedc;
}

.bo-return-note {
  display: grid;
  gap: 5px;
  margin: 0;
}

.bo-return-note dt {
  font-weight: 650;
}

.bo-return-note dd {
  margin: 0;
  color: #30483b;
  white-space: pre-line;
}

.bo-order-tools {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bo-order-tools .button {
  min-height: 37px;
}

.bo-empty {
  border: 1px dashed #dce5dc;
  border-radius: 10px;
  background: #f9fbf8;
  padding: 14px;
}

.bo-demo-note {
  margin-top: 1px;
  font-size: .79rem;
}

@media (max-width: 520px) {
  .bo-head, .bo-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bo-filters label:last-child {
    flex-basis: 100%;
  }
}
