@use "colors" as *;
@use "sass:color";

.mass-actions {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 25rem;
}

.epakshfo-module {
  //max-width: 100rem;
  margin: 1.25rem auto 0;

  &_white {
    background-color: $white;
    box-shadow: none !important;
  }

  border-radius: 0.5rem;

  .btn {
    border-radius: 0.25rem;
    padding: 0.75rem 1.25rem !important;
    line-height: 1;
  }

  .form-group {
    position: relative;

    &::after {
      bottom: 2rem;
    }

    label {
      font-size: 0.75rem;
      font-weight: 700;
    }

    input {
      border-color: $lightGray;

      &:focus {
        outline: none !important;
      }

    }

    select,
    input[type="text"] {
      min-height: 2.5rem;
    }
  }

  .standard-form-group {
    .form-group {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;

      label {
        text-align: left !important;
      }
    }
  }

  .form-check-radio {
    padding: 0;
    cursor: pointer;

    >label {
      cursor: pointer;
    }
  }

  .card {
    margin-bottom: 0;
    //padding-bottom: 3.125rem;
  }

  .gap2_5 {
    gap: 2.5rem;
  }

  .gap1 {
    gap: 1rem;
  }

  .fs-regular {
    font-size: 1rem;
  }

  .block-title {
    width: 100%;
    display: block;
    max-width: 100%;
    text-align: right;
  }

  .radius {
    border-radius: 0.25rem !important;
  }

  .input-group-text {
    border-top-left-radius: 0rem !important;
    border-bottom-left-radius: 0rem !important;
  }

  #ordersTable_filter {
    display: none;
  }

  .table-templates {
    width: 100%;

    tbody {
      tr>td {
        vertical-align: middle;
      }
    }
  }

  .dataTableOrder {

    th:nth-child(3),
    td:nth-child(3) {
      width: 18.5rem;
      max-width: 100%;
      white-space: normal;
      overflow-wrap: break-word;
    }

    th:nth-child(5),
    td:nth-child(5) {
      width: 15rem;
      white-space: normal;
      overflow-wrap: break-word;
    }
  }

  .dataTable {
    width: 100%;

    tbody {
      tr.order-row>td {
        padding: 1.2rem 1rem;
        vertical-align: middle;
      }
    }

    .status-badge {
      padding: 0.15rem 0.5rem;
      color: $white;
      font-size: 0.75rem;
      border-radius: 0.35rem;

      &.waiting,
      &.warning {
        background-color: $yellow;
        color: $black;
      }

      &.danger {
        background-color: $red;
      }

      &.info {
        background-color: $cyan;
      }

      &.purple {
        background-color: $purple;
      }

      &.success {
        background-color: $green;
      }

      &.unknown {
        background-color: $lightGray;
        color: $black;
      }

      &.standard {
        background-color: transparent;
        color: $black;
      }

      &.primary {
        background-color: $blue;
        color: $white;
      }

      &.canceled {
        background-color: $lightGray;
        color: $black;
      }

      &.default {
        background-color: $lightGray;
        color: $white;
      }

      &.secondary {
        background-color: $red;
        color: $white;
      }

      &.outline-default {
        border: 1px solid $lightGray;
        color: $black;
      }
    }

    tr.order-row {
      &.active {
        background: rgba($blue, 0.1) !important;
      }

      td {
        font-size: 0.875rem;

        &.receiver-data {
          p {
            margin: 0;
          }
        }
      }

      &:hover {
        td {
          background: rgba($blue, 0.1) !important;
        }
      }
    }

    .arrow-button {
      width: 2rem;
      height: 2rem;
      background: $white;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid $blue;
      border-radius: 0.4rem;
      cursor: pointer;
      position: relative;
      overflow: hidden;

      //&::after {
      //  content: '';
      //  width: 100%;
      //  height: 100%;
      //  background-color: red;
      //  z-index: 999;
      //  position: absolute;
      //  left: 0;
      //  top: 0;
      //}
      &.disabled {}

      svg {
        transition: 0.3s;
        transform: rotate(180deg);
      }

      &.active {
        svg {
          transform: rotate(0deg);
        }
      }
    }

    .order-additional-block {
      position: relative;
      z-index: 10;
    }

    .order-buttons-block {
      position: relative;
      z-index: 11;
      top: -1rem;
      background: $white;
    }

    .order-additional-info-parent-block {
      background: rgba($blue, 0.1);
      border-bottom: none !important;
      border-top: none !important;
      padding-left: 0.9rem !important;
      padding-right: 0.9rem !important;

      .epakshfo-weight-warning {
        background-color: #EB5757;
        color: #ffffff;
        padding: 0.6rem 1rem;
        font-weight: 600;
        font-size: 0.875rem;
      }

      .order-additional-info-block {
        display: grid;
        grid-gap: 3rem;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        background-color: $white;
        //margin: 1rem 0.5rem 0;
        padding: 1.5rem 1rem;

        p {
          margin: 0 0 0.2rem 0;
        }

        .md-checkbox label {
          padding-left: 0;
        }

        .epakshfo-products-wrapper {
          grid-column: 1 / -1;
        }

        .epakshfo-products-table {
          width: 100%;
          border-collapse: collapse;
          font-size: 0.875rem;

          th,
          td {
            padding: 0.35rem 0.5rem !important;
          }

          th {
            padding-top: 0.4rem;
            padding-bottom: 0.4rem;
            border-bottom: 1px solid $lightGray;
            font-weight: 600;
          }

          th:nth-child(1),
          td:nth-child(1) {
            text-align: left;
          }

          th:nth-child(2),
          td:nth-child(2) {
            text-align: center;
            white-space: nowrap;
          }

          th:nth-child(3),
          td:nth-child(3) {
            text-align: right;
            white-space: nowrap;
          }

          .status-badge {
            text-decoration: none;
          }

          tbody tr:nth-child(even) td {
            background-color: rgba($blue, 0.05);
          }
        }

        h4 {
          margin-top: 0;
        }
      }
    }

    @keyframes rotate {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .preloader-icon {
      display: block;
      animation: rotate 1s linear infinite;
      transform-origin: center;
    }

    .preloader-path {
      stroke-dasharray: 50, 200;
      stroke-dashoffset: 0;
    }

    .order-action-buttons {
      padding-left: 1.4rem;
      padding-right: 1.4rem;
      border-top: 0 !important;
      background: rgba($blue, 0.1) !important;

      a,
      button {
        font-size: 0.75rem;
        font-weight: 500;
      }

      >div {
        padding: 1rem 1rem;
        margin: 0 0.9rem 1rem;
        background-color: $white;
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        position: relative;

        &::after {
          content: '';
          width: 100%;
          height: 1px;
          background-color: rgba($lightGray, 0.5);
          position: absolute;
          left: 0;
          top: 0;
        }

        button {
          &:first-child {
            margin-right: auto;
          }
        }
      }
    }

    .divider {
      grid-column: 1 / -1;
      height: 1px;
      background-color: $gray;
    }
  }

  .orders-table,
  .shipments-table {
    table-layout: fixed;
    width: 100%;
  }

  .orders-table,
  .shipments-table td {
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shipments-table td:nth-child(1),
  .shipments-table th:nth-child(1) {
    width: 6%;
  }

  .shipments-table td:nth-child(2),
  .shipments-table th:nth-child(2) {
    width: 5%;
  }

  .shipments-table td:nth-child(3),
  .shipments-table th:nth-child(3) {
    width: 10%;
  }

  .shipments-table td:nth-child(4),
  .shipments-table th:nth-child(4) {
    width: 10%;
  }

  .shipments-table td:nth-child(5),
  .shipments-table th:nth-child(5) {
    width: 10%;
  }

  .shipments-table td:nth-child(6),
  .shipments-table th:nth-child(6) {
    width: 10%;
  }

  .shipments-table td:nth-child(7),
  .shipments-table th:nth-child(7) {
    width: 16.5%;
  }

  .shipments-table td:nth-child(8),
  .shipments-table th:nth-child(8) {
    width: 16.5%;
  }

  .shipments-table td:nth-child(9),
  .shipments-table th:nth-child(9) {
    width: 11%;
  }

  .shipments-table td:nth-child(10),
  .shipments-table th:nth-child(10) {
    width: 5%;
  }

  .orders-table td:nth-child(1),
  .orders-table th:nth-child(1) {
    width: 5.0909%;
  }

  .orders-table td:nth-child(2),
  .orders-table th:nth-child(2) {
    width: 5.0909%;
  }

  .orders-table td:nth-child(3),
  .orders-table th:nth-child(3) {
    width: 13.0909%;
  }

  .orders-table td:nth-child(4),
  .orders-table th:nth-child(4) {
    width: 7.0909%;
  }

  .orders-table td:nth-child(5),
  .orders-table th:nth-child(5) {
    width: 16.0909%;
  }

  .orders-table td:nth-child(6),
  .orders-table th:nth-child(6) {
    width: 7.0909%;
  }

  .orders-table td:nth-child(7),
  .orders-table th:nth-child(7) {
    width: 19.0909%;
  }

  .orders-table td:nth-child(8),
  .orders-table th:nth-child(8) {
    width: 6.0909%;
  }

  .orders-table td:nth-child(9),
  .orders-table th:nth-child(9) {
    width: 8.0909%;
  }

  .orders-table td:nth-child(10),
  .orders-table th:nth-child(10) {
    width: 9.0909%;
  }

  .orders-table td:nth-child(10),
  .orders-table th:nth-child(11) {
    width: 4.0909%;
  }


  .pagination-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;

    .paginate_button,
    dt-paging-button {
      &.current {
        font-weight: bold;
      }
    }

    .dataTables_info {
      padding-top: 0;
    }

    a,
    button {
      padding: 0.3rem;
      cursor: pointer;
    }
  }
}

.custom-md-checkbox {
  cursor: pointer;

  label {
    cursor: pointer;
  }

  ~.form-group {
    display: none !important;
  }
}

.custom-radio {
  .block-content {
    >div {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

%preload-base {
  pointer-events: none;
  overflow: hidden;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
  }

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid $thinGray;
    border-top: 3px solid $black;
    border-radius: 50%;
    z-index: 1001;
    animation: spin 1s linear infinite;
  }
}

%preload-base-without-spinner {
  pointer-events: none;
  overflow: hidden;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
  }
}

.order-preload {
  @extend %preload-base;
  height: 5rem;

  &+tr {
    @extend %preload-base-without-spinner;
  }
}

.shipping-preload {
  @extend %preload-base;
  height: 23rem;
}

label.checkbox {
  cursor: pointer;
}

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

  .content {
    max-width: 24.85rem;
    margin: 0 auto;

    .logo {
      margin: 0 auto 4.375rem auto;
      display: block;
    }

    .title {
      font-family: "Inter", sans-serif;
      margin-bottom: 3.43rem;
    }

    button.btn {
      margin-top: 2.5rem;
    }
  }

  .form-group {
    display: flex;
    flex-direction: column;

    .form-control-label {
      width: 100%;
      max-width: 100% !important;
      text-align: left !important;
    }
  }
}

.shipping-content-wrapper {
  margin: 0 auto;
  position: relative;

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

  .form-group {
    label {
      display: flex;
      justify-content: flex-end;
      font-weight: 400;
      font-size: 0.875rem;
      margin-bottom: 0;
      max-width: 100% !important;
    }
  }

  .form-group,
  .form-group-wrapper {
    display: grid;
    grid-template-columns: 3fr 4fr;
    grid-gap: 2rem;
    padding: 0 3.125rem;

  }

  .form-group-wrapper {
    >label {
      text-align: right;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      padding-left: 1rem;
      grid-gap: 0;
    }
  }

  .inputs-separator {
    margin-bottom: 0.625rem;
  }

  .courier-block {
    .block-content {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      grid-gap: 1.875rem;

      input {
        border-top-right-radius: 0.25rem !important;
        border-bottom-right-radius: 0.25rem !important;
      }
    }

    .courier-card {
      border-radius: 0.25rem;
      border: 1px solid $lightGray;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0.625rem 0.625rem 1.5rem 0.625rem;
      position: relative;
      cursor: pointer;

      &.active {
        border: 2px solid $blue;

        &::after {
          content: '';
          background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuNjI1IDUuNUw2LjEyNSAxMEwxNC4xMjUgMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==');
          background-repeat: no-repeat;
          background-size: 50%;
          background-position: center center;
          background-color: $blue;
          border-color: $blue;
        }
      }

      .form-check-radio {
        height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
      }

      &::after {
        content: '';
        display: block;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        border: 1px solid $lightGray;
        position: absolute;
        bottom: -1.25rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: $white;
      }

      &__logo {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: $thinGray;
        height: 3.375rem;
        margin-bottom: 1rem;

        img {
          width: 100%;
          height: auto;
          max-width: 5.3125rem;
        }
      }

      &__title {
        font-size: 0.875rem;
        text-align: center;
      }

      &__price {
        font-size: 0.875rem;
        font-weight: normal;
        margin-bottom: 1rem;
      }
    }
  }

  .additional-parcel-settings-block {
    .service-option {
      &:not(:last-child) {
        margin-bottom: 1rem;
      }

      &.child {
        display: none;
      }

      .amount-field {
        margin-left: 5%;
        margin-top: 1rem;
        width: 95%;

        .helper-text,
        .currency {
          font-size: 0.75rem !important;
        }
      }
    }
  }

  .shipping-submit {
    &.no-active {
      opacity: 0.4;
    }
  }
}

.default-sender-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;

  .input-group {
    margin-bottom: 0 !important;
  }

  .input-group:nth-child(1),
  .input-group:nth-child(2),
  .input-group:nth-child(3),
  {
  grid-column: span 4;
}

.input-group:nth-child(4),
.input-group:nth-child(5) {
  grid-column: span 6;
}

.input-group:nth-child(6),
.input-group:nth-child(7),
.input-group:nth-child(8) {
  grid-column: span 4;
}

.input-group:nth-child(9),
.input-group:nth-child(10) {
  grid-column: span 6;
}

// Hidden token field
.form-group.type-hidden {
  grid-column: span 12;
}

.input-group {
  width: 100%;

  .d-flex.w-100 {
    width: 100%;
  }

  input.form-control {
    width: 100%;
  }
}
}

// Responsive layout for mobile devices
@media (max-width: 768px) {
  .default-sender-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;

    // Make all input groups full width on mobile
    .input-group,
    .form-group.type-hidden {
      grid-column: 1 / -1;
    }
  }
}

.card-body {
  >.form-group {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    grid-gap: 4rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  label {
    font-size: 0.875rem !important;
  }

  .md-checkbox {
    cursor: pointer;
    line-height: 1.3;

    label {
      cursor: pointer;
      padding-left: 2rem;
    }
  }

  &.delivery {}
}

.epakshfo-module * {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.epakshfo-module input:-webkit-autofill,
.epakshfo-module input:-webkit-autofill:hover,
.epakshfo-module input:-webkit-autofill:focus,
.epakshfo-module input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}

.epakshfo-module input[type="text"],
.epakshfo-module input[type="email"],
.epakshfo-module input[type="password"],
.epakshfo-module textarea {
  background-color: $white;
  border: 1px solid $wpBorderColor;
  outline: none !important;
  box-shadow: none !important;
}

.epakshfo-module input[type="text"]:focus,
.epakshfo-module input[type="email"]:focus,
.epakshfo-module input[type="password"]:focus,
.epakshfo-module textarea:focus {
  background-color: $white !important;
  border-color: #ced4da;
  box-shadow: none !important;
  outline: none !important;
}

.epakshfo-module {
  h2 {
    font-size: 1rem;
  }

  input {
    margin: 0;

    &:focus {
      outline: none;
      box-shadow: none;
    }
  }

  input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    padding: 0.3rem 0.5375rem !important;
    font-size: 0.875rem;
    border-radius: 0;
  }

  .radio label {
    cursor: pointer;
  }

  input[type="radio"] {
    cursor: pointer;
  }

  select {
    width: 100%;
    max-width: 100%;

    &:focus {
      outline: none;
      border: none;
    }
  }

  a {
    text-decoration: none;

    &:hover {
      text-decoration: none;
    }

    &:focus {
      outline: none;
      border: none;
      box-shadow: none;
    }
  }

  a.btn {
    text-decoration: none;
    text-align: center;
  }

  .fake-list-button {
    color: $blue !important;
    font-size: 0.875rem;
    display: inline-block !important;
    position: relative;
    left: 100%;
    transform: translateX(-100%);
    padding: 0 2rem;
  }

  .custom-select {
    margin-right: 0;
    border-radius: 0 !important;
    padding: 0.3rem 0.5375rem !important;
    border-color: $wpBorderColor !important;
  }

  .btn {
    border-radius: 0;
    border: none;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600;
    font-size: .875rem;
  }

  .btn-primary {
    background-color: $blue;
    color: $white;

    &:hover {
      background-color: color.adjust($blue, $lightness: -5%) !important;
    }
  }

  .btn-danger {
    background-color: $red;
    color: $white;

    &:hover {
      background-color: color.adjust($red, $lightness: -5%) !important;
    }
  }

  .btn-success {
    background-color: $green;
    color: $white;

    &:hover {
      background-color: color.adjust($green, $lightness: -5%) !important;
    }
  }

  .btn-outline-secondary {
    background-color: transparent;
    border: 1px solid $wpBorderColor;
    display: inline-block;
    color: $black;

    &:focus {
      border: 1px solid $wpBorderColor;
    }

    &:hover {
      background-color: color.adjust($black, $lightness: 70%) !important;
    }
  }

  .status-badge {
    padding: 0.15rem 0.5rem;
    color: $white;
    font-size: 0.75rem;
    border-radius: 0.35rem;

    &.waiting,
    &.warning {
      background-color: $yellow;
      color: $black;
    }

    &.danger {
      background-color: $red;
    }

    &.info {
      background-color: $cyan;
    }

    &.purple {
      background-color: $purple;
    }

    &.success {
      background-color: $green;
    }

    &.unknown {
      background-color: $lightGray;
      color: $black;
    }

    &.standard {
      background-color: transparent;
      color: $black;
    }

    &.primary {
      background-color: $blue;
      color: $white;
    }

    &.canceled {
      background-color: $lightGray;
      color: $black;
    }

    &.default {
      background-color: $lightGray;
      color: $white;
    }

    &.secondary {
      background-color: $red;
      color: $white;
    }

    &.outline-default {
      border: 1px solid $lightGray;
      color: $black;
    }

    &.completed {
      background: $green;
      color: $white;
    }

    &.pending {
      background-color: $yellow;
      color: $white;
    }

    &.on-hold {
      background: $yellow;
      color: $white;
    }

    &.failed {
      background: $red;
      color: $white;
    }

    &.cancelled {
      background: $red;
      color: $white;
    }

    &.processing {
      background: $blue;
      color: $white;
    }

    &.trash {
      background: #eba3a3;
      color: $white;
    }

    &.refunded {
      background: $cyan;
      color: $white;
    }

    &.checkout-draft {
      background-color: $lightGray;
      color: $white;
    }
  }

  .input-group {
    &.money-type {
      display: flex;
    }
  }

  .font-weight-bold {
    font-weight: 700 !important;
  }

  #shipmentsTable_wrapper {
    #shipmentsTable_filter {
      display: none;
    }
  }
}

.carrier-extra-content {
  position: relative;
}

.epakshfo-module {
  .card-header h1 {
    font-size: 1.3rem;
    margin: 0;
  }

  &_white {
    background-color: $white;
    border: 1px solid $wpBorderColor;
  }

  margin-top: 1.25rem;
  font-family: 'Inter',
  sans-serif;
  border-radius: 0.3rem;
  margin: 1rem;

  .btn {
    cursor: pointer;
    transition: 0.3s;
  }

  .form-group {
    width: 100%;

    label {
      margin-bottom: 0.5rem;
      display: block;
    }
  }

  .card {
    width: 100%;
    max-width: 100%;
    border: 1px solid $wpBorderColor;
    padding: 0;

    .form-group {
      display: grid;
      grid-template-columns: 3fr 4fr;
      grid-gap: 2rem;
      padding: 0 3.125rem;

      .block-title {
        display: flex;
        justify-content: flex-end;
        font-weight: 400;
        font-size: 0.875rem;
        margin-bottom: 0;
        padding: 0;
        max-width: 100%;
      }

      .block-content {
        font-size: 0.875rem;
      }
    }

    .card-header {
      border-bottom: 2px solid $blue;
      padding: 1rem;
      margin: 0 0 3rem 0;
      background-color: $thinGray;
    }

    .card-footer {
      background-color: $thinGray;
      display: flex;
      justify-content: flex-end;
      margin-top: 3rem;
      padding: 0.625rem 1rem;

      button {
        width: auto;
      }
    }
  }

  .input-group-prepend,
  .input-group-append {
    border: 1px solid $wpBorderColor;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: $thinGray;
    padding: .375rem .625rem;

    span {
      font-size: .875rem;
    }
  }

  .shipping-content-wrapper {
    .block-title {
      width: 100%;
      display: block;
      max-width: 100%;
      text-align: right;
    }

    .form-group,
    .form-group-wrapper {
      display: grid;
      grid-template-columns: 3fr 4fr;
      grid-gap: 2rem;
      padding: 0 3.125rem;

    }

    .form-group-wrapper {
      >label {
        text-align: right;
      }

      .form-group {
        display: flex;
        flex-direction: column;
        padding-left: 1rem;
        grid-gap: 0;

        .input-group {
          width: 100%;
        }
      }
    }
  }

  .shipping-empty-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .content {
      display: flex;
      flex-direction: column;
      align-items: center;

      p {
        font-size: 0.875rem;
      }
    }
  }

  .auth-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    .content {
      max-width: 24.85rem;
      margin: 0 auto;
      padding: 3rem 0 5rem 0;

      .logo {
        margin: 0 auto 4.375rem auto;
        display: block;
      }

      .title {
        font-family: "Inter", sans-serif;
        margin-bottom: 3.43rem;
      }

      button.btn {
        margin-top: 2.5rem;
      }
    }

    .form-group {
      display: flex;
      flex-direction: column;

      .form-control-label {
        width: 100%;
        max-width: 100% !important;
        text-align: left !important;
        font-weight: 700;
      }
    }

    .btn {
      width: 100%;
    }
  }

  .dt-search {
    display: none;
  }

  .table {
    width: 100%;
    border-collapse: collapse;

    thead th {
      background-color: $white;
      border-bottom: 0.0625rem solid $borderGray;
      padding: 0.9375rem 0.625rem;
      text-align: left;
      font-weight: 600;
      color: $black;
      font-size: 0.875rem;

      &:first-child {
        padding-left: 1.5rem !important;
      }

      &:last-child {
        padding-right: 1.5rem !important;
      }
    }

    tbody td {
      padding: 0.9375rem 0.625rem;
      border-bottom: 0.0625rem solid $borderGray;
      color: #333;
      font-size: 0.875rem;
      vertical-align: middle;

      &:first-child {
        padding-left: 1.5rem;
      }

      &:last-child {
        padding-right: 1.5rem;
      }

      &.dataTables_empty,
      &.dt-empty {
        text-align: center;
      }
    }

    .text-danger {
      color: $red !important;
    }

    td.text-primary a {
      text-decoration: none;
      margin-right: 0.625rem;
      color: $cyan;
    }

    td.text-primary a.text-danger {
      color: $red;
    }
  }

  .paging_simple_numbers {
    text-align: center;
    display: flex;
    justify-content: flex-end;

    nav[aria-label="pagination"] {
      display: flex;
      margin-top: 1rem;
      margin-bottom: 1rem;

      button {
        margin: 0 0.3125rem;
      }

      >button:first-child {
        margin-left: 0;
      }

      >button:last-child {
        margin-right: 0;
      }
    }

    .previous,
    .next {
      border: none !important;
    }

    .paginate_button,
    .dt-paging-button {
      padding: 0.3rem;
      margin: 0 0.3125rem;
      border: 0.0625rem solid $borderGray;
      cursor: pointer;
      color: $black;
      text-decoration: none;
      background-color: transparent;
      transition: 0.3s;
      color: $cyan;

      &:not(.previous),
      &:not(.next) {
        padding: 0.3rem 0.6rem;
      }

      &:hover {
        background-color: $thinGray;
      }

      &.current {
        color: $blue;
        border-color: $blue;
        padding: 0.3rem 0.6rem;
      }
    }

    .paginate_button:hover:not(.current) {
      background-color: $thinGray;
    }
  }

  h1,
  .h1-like {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
  }

  .alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid $borderGray;
    padding: 1rem;
    position: relative;

    &.d-print-none {
      @media print {
        display: none;
      }
    }

    .close {
      background: none;
      border: none;
      cursor: pointer;
      transition: opacity 0.2s ease;
      padding: 0 1rem !important;
      padding-right: 0 !important;

      &:hover {
        opacity: 1;
      }

      svg {
        width: 18px;
        height: 18px;
      }
    }

    .alert-text {
      color: $white;
      font-size: 14px;
      line-height: 1.5;

      p {
        margin: 0;
      }
    }

    &.alert-danger {
      background-color: $red;
    }

    &.alert-success {
      background-color: $green;
    }

    &.alert-warning {
      background-color: $yellow;
    }
  }

  .thead-default {
    background-color: $thinGray;
    border-bottom: 0.0625rem solid $wpBorderColor;

    .column-headers {
      th {
        padding: 0.5rem;
        text-align: left;
        font-weight: bold;
        border-bottom: 0.0625rem solid $wpBorderColor;

        &.text-right {
          text-align: right;
        }
      }
    }

    .column-filters {
      td {
        padding: 1rem 0.5rem;
        background-color: $regularGray;
        vertical-align: middle;
        position: relative;
        overflow: visible;
        text-overflow: clip;

        &.sorting_disabled {
          padding: 0;
        }

        .md-checkbox {
          margin: 0;
        }

        .form-control {
          height: 2.125rem;
          padding: 0.375rem 0.75rem;
          font-size: 0.875rem;
          line-height: 1.42857143;
          color: $black;
          background-color: $white;
          border: 0.0625rem solid $borderGray;
          border-radius: 0.25rem;
          box-shadow: inset 0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.075);
          transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;

          &.column-filter {
            width: 100%;

            placeholder {
              color: $lightGray;
            }
          }

          &.date-filter {
            &:last-child {
              margin-right: 0;
              margin-top: 0.5rem;
            }
          }
        }

        select.form-control {
          height: 2.125rem;
          padding: 0.375rem 0.75rem;
          font-size: 0.875rem;
          line-height: 1.42857143;
          color: $black;
          background-color: $white;
          border: 0.0625rem solid $borderGray;
          border-radius: 0.25rem;
          appearance: none;
          background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23363a41' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
          background-repeat: no-repeat;
          background-position: right 0.5rem center;
          width: 100%;
        }

        .sort-arrow {
          position: absolute;
          display: block;
          opacity: .125;
          right: 12px;
          line-height: 9px;
          font-size: .8em;
          cursor: pointer;
          z-index: 99;

          &.before {
            top: 40%;
          }

          &.after {
            top: 51%;
          }
        }

        &.sorting_desc {
          .sort-arrow {
            &.before {
              color: #363a41;
              opacity: 1;
            }
          }
        }

        &.sorting_asc {
          .sort-arrow {
            &.after {
              color: #363a41;
              opacity: 1;
            }
          }
        }
      }
    }
  }

  #order-mass-form {
    :focus {
      outline: none;
      box-shadow: 0 0 0 1px $wpBorderColor !important;
      max-height: 2.25rem;
    }

    select {
      height: 2.125rem;
      padding: 0.375rem 0.75rem;
      font-size: 0.875rem;
      line-height: 1.42857143;
      color: $black;
      background-color: $white;
      border: 0.0625rem solid $borderGray;
      border-radius: 0.25rem;
      appearance: none;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23363a41' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 0.5rem center;
      width: 60rem;
      margin-right: 1rem;

      :focus {
        box-shadow: none;
      }
    }
  }

  #shipping-table_filter {
    display: none;
  }

  .wc-block-components-address-form__phone label:after,
  label[for*="phone"]:after,
  label[for*="billing_phone"]:after,
  label[for*="shipping_phone"]:after {
    content: none !important;
  }

  .wc-block-components-address-form__phone label,
  label[for*="phone"],
  label[for*="billing_phone"],
  label[for*="shipping_phone"] {
    content: "Telefon" !important;
  }

  .optional,
  span.optional,
  abbr.optional {
    display: none !important;
  }
}

.badge-group {
  background-color: #17a2b8;
  color: $white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.default-sender-block {
  .additional-mandatory-info {
    color: $black;

    >span {
      position: relative;
      top: 0.2rem;
      color: $red;
      font-weight: 700;
      margin-right: 0.2rem;
      font-size: 1rem;
    }
  }
}

.courier-block {
  .additional-mandatory-info {
    color: $black;
    display: block !important;
    color: $red;

    >span {
      position: relative;
      top: 0.2rem;
      font-size: 1rem;
      font-weight: 700;
      margin-right: 0.2rem;
      font-size: 1rem;
    }
  }
}

.epakshfo-group-toggle {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  transition: transform 0.15s ease;
  flex-shrink: 0;

  &:not(.open) {
    transform: rotate(-90deg);
  }
}

.epakshfo-module .card .card-header.epakshfo-group-header {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  border-bottom: none;

  &.is-open {
    border-bottom: 2px solid #25b9d7;
  }

  &:hover:not(:has(.btn:hover)) {
    filter: brightness(0.97);
  }
}

[data-group-id] {
  overflow: hidden;
}

.epakshfo-metabox-link {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}