.sections.active-delivery,
.sections.inactive-delivery {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sections.inactive-delivery > .section.delivery {
  opacity: .5;
}

.section.delivery > .container.header {
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 8px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  gap: 4px;
}
.section.delivery > .container.header > .title {
  display: grid;
  flex-shrink: 1;
  grid-template-columns: max-content 1fr;
  gap: 0 4px;
}
.section.delivery > .container.header > .title > .call {
  grid-column-start: 1;
  grid-column-end: -1;
}
.section.delivery > .container.header > .title > .call > span {
  font-size: 12px;
  flex-shrink: 1;
  padding: 0 8px;
  color: #555;
  border: 1px solid rgb(229, 229, 229);
  border-radius: 12px;
}
.section.delivery > .container.header > .title > .delivery {
  grid-column-start: 1;
  grid-column-end: 1;
}
.section.delivery > .container.header > .title > .store {
  grid-column-start: 2;
  grid-column-end: -1;
}
.section.delivery > .container.header > .store {
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  word-break: break-all;
}
.section.delivery > .container.header > .buttons {
  align-items: flex-start;
  flex-shrink: 0;
}
.section.delivery > .container.header > .buttons > .button {
  padding: 2px 8px;
}

.section.delivery > .container.data {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 8px;
  gap: 12px 4px;
}
.section.delivery > .container.data > .container {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
  min-width: 45px;
  padding: 4px 8px;
  border-radius: 10px;
  background-color: rgba(245, 245, 245, 1);
}
.section.delivery > .container.data > .container.destructive {
  color: rgb(231, 0, 11);
  background-color: rgba(231, 0, 11, 0.1);
}
.section.delivery > .container.data > .container.uncalculatable {
  color: rgb(231, 0, 11);
  background-color: rgba(231, 0, 11, 0.1);
}
.section.delivery > .container.data > .container.primary {
  color: rgb(0, 130, 54);
  background-color: rgba(0, 130, 54, 0.1);
}
.section.delivery > .container.data > .container.assumed {
  color: rgb(208, 135, 0);
  background-color: rgba(208, 135, 0, 0.1);
}
.section.delivery > .container.data > .container > .label {
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  top: -35%;
  white-space: nowrap;
  color: #555;
}
.section.delivery > .container.data > .container.destructive > .label {
  color: rgb(231, 0, 11);
}
.section.delivery > .container.data > .container.uncalculatable > .label {
  color: rgb(231, 0, 11);
}
.section.delivery > .container.data > .container.primary > .label {
  color: rgb(0, 130, 54);
}
.section.delivery > .container.data > .container.assumed > .label {
  color: rgb(208, 135, 0);
}
.section.delivery > .container.data > .container > .value {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}
.section.delivery > .container.data > .container > .value.center {
  justify-content: center;
}
.section.delivery > .container.data > .container > .value.right {
  justify-content: flex-end;
}
.section.delivery > .container.data > .container .unit {
  font-size: 12px;
  font-weight: 400;
  position: relative;
  bottom: 1px;
  align-self: flex-end;
}
.section.delivery > .container.data > .container.uncalculatable > .unit {
  display: none;
}

.section.delivery > .container.state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px;
  border-top: 1px solid rgb(229, 229, 229);
}
.section.delivery > .container.state > .badges {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}
.section.delivery > .container.state > .badges > .badge {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  color: rgb(229, 229, 229);
  border: 1px solid rgb(229, 229, 229);
  border-radius: 10px;
}
.section.delivery > .container.state > .badges > .badge.active {
  color: rgb(255 255 255);
  background-color: rgb(0 130 54);
}
.section.delivery > .container.state > .badges > .badge.active.REJECTED {
  color: rgb(231, 0, 11);
  background-color: rgba(231, 0, 11, 0.1);
}
.section.delivery > .container.state > .badges > .badge.active.CANCELLED {
  color: rgb(231, 0, 11);
  background-color: rgba(231, 0, 11, 0.1);
}

.section.delivery > .container.history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px;
  border-top: 1px solid rgb(229, 229, 229);
  gap: 4px;
}
.section.delivery > .container.history > .badges {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}
.section.delivery > .container.history > .badges > .badge {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 8px;
  color: rgb(0, 0, 0);
  border: 1px solid rgb(229, 229, 229);
  border-radius: 10px;
  background-color: transparent;
}
.section.delivery > .container.history > .badges > .badge.primary {
  color: rgb(255, 255, 255);
  background-color: rgb(0 130 54);
}
.section.delivery > .container.history > .badges > .badge.destructive {
  color: rgb(231, 0, 11);
  background-color: rgba(231, 0, 11, 0.1);
}
.section.delivery > .container.history > .badges > .elapsed-time::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  content: "";
  border-top: 1px dashed black;
}
.section.delivery > .container.history > .badges > .elapsed-time {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 0 10px;
}
.section.delivery > .container.history > .badges > .elapsed-time::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  width: 8px;
  height: 1px;
  content: "";
  border-top: 1px dashed black;
}
.section.delivery > .container.history > .badges > .elapsed-time > .value {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}
.section.delivery > .container.history > .badges > .elapsed-time > .unit {
  font-size: 10px;
  font-weight: 400;
  align-self: flex-end;
}
.section.delivery > .container.history > .badges > .elapsed-time > .unit + .value {
  margin-left: 3px;
}

.section.delivery > .container.footer {
  padding: 8px 8px;
  border-top: 1px solid rgb(229, 229, 229);
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
  background-color: rgba(245, 245, 245, 0.5);
}