.licensed-order-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.licensed-order-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.licensed-order-table tbody td {
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0, 10, 23, 0.06);
  border: 0;
  padding: 16px 12px;
  vertical-align: top;
  text-align: left;
}

.licensed-order-table tbody tr.licensed-order-table__row td:first-child {
  border-radius: 4px 0 0 4px;
}

.licensed-order-table tbody tr.licensed-order-table__row td:last-child {
  border-radius: 0 4px 4px 0;
}

.licensed-order-table__cell {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color);
}

.licensed-order-table__cell--inn {
  width: 9%;
  white-space: nowrap;
}

.licensed-order-table__cell--name {
  width: 24%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.licensed-order-table__cell--geuc {
  width: 8%;
  white-space: nowrap;
}

.licensed-order-table__cell--dates {
  width: 15%;
  white-space: nowrap;
}

.licensed-order-table__cell--code {
  width: 38%;
  white-space: nowrap;
}

.licensed-order-table__code-value,
.licensed-order-table__meta {
  display: block;
}

.licensed-order-table__meta {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: #6f7e8b;
}

.licensed-order-table__cell--action {
  width: 6%;
  text-align: right;
  white-space: nowrap;
}

.licensed-order-table__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  position: relative;
  border-radius: 4px;
  background-color: #d9ebff;
  border: 1px solid #2289da;
  text-decoration: none;
}

.licensed-order-table__action::before,
.licensed-order-table__action::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 2px;
  background-color: #24384f;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.licensed-order-table__action::before {
  left: 50%;
  transform: translate(-82%, -20%) rotate(45deg);
}

.licensed-order-table__action::after {
  left: 50%;
  transform: translate(-18%, -20%) rotate(-45deg);
}

.licensed-order-table__action.is-open::before {
  transform: translate(-82%, -80%) rotate(-45deg);
}

.licensed-order-table__action.is-open::after {
  transform: translate(-18%, -80%) rotate(45deg);
}

.licensed-order-table__action svg {
  display: none;
}

.licensed-order-table__details-row td {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.licensed-order-table__details:empty,
.licensed-order-table__details-row:has(.licensed-order-table__details:empty) {
  display: none;
}

.licensed-order-table__empty {
  align-items: center;
}

@media (max-width: 1100px) {
  .licensed-order-table,
  .licensed-order-table tbody,
  .licensed-order-table tr,
  .licensed-order-table td {
    display: block;
  }

  .licensed-order-table {
    border-spacing: 0;
  }

  .licensed-order-table tbody tr.licensed-order-table__row {
    margin-bottom: 12px;
  }

  .licensed-order-table tbody tr.licensed-order-table__row td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: auto;
    border-radius: 0;
    padding: 10px 12px;
    text-align: left;
    white-space: normal;
  }

  .licensed-order-table tbody tr.licensed-order-table__row td:first-child {
    border-radius: 4px 4px 0 0;
    padding-top: 14px;
  }

  .licensed-order-table tbody tr.licensed-order-table__row td:last-child {
    border-radius: 0 0 4px 4px;
    padding-bottom: 14px;
  }

  .licensed-order-table__cell--action {
    text-align: left;
  }

  .licensed-order-table__cell::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: #6f7e8b;
    font-size: 12px;
    line-height: 16px;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .licensed-order-table tbody tr.licensed-order-table__row td {
    flex-direction: column;
    gap: 6px;
  }

  .licensed-order-table__cell::before {
    flex-basis: auto;
  }
}
