/* ============================ Orders Page Shell Start ============================ */
.app-shell[data-page="orders"] .content-shell {
  overflow: hidden;
}

.orders-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}

/* ============================ Orders Page Shell End ============================ */


/* ============================ Orders Toolbar Start ============================ */
.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(320px, 420px) 158px auto;
  align-items: center;
  gap: 16px;
}

.orders-title {
  margin: 0;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.orders-title span {
  color: var(--grey4txt);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}

.orders-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 42px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.orders-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--grey4txt);
  background: transparent;
  font: inherit;
}

.orders-search img {
  width: 24px;
  height: 24px;
}

.orders-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  color: var(--grey4txt);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.orders-filter-toggle img {
  width: 16px;
  height: 16px;
}

.orders-filter-icon,
.orders-filter-close {
  display: none;
}

.orders-filter-chevron {
  transition: transform 0.18s ease;
}

.orders-page.is-filter-open .orders-filter-chevron {
  transform: rotate(180deg);
}

.orders-page-size {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--grey4txt);
  font-size: 14px;
  white-space: nowrap;
}

.orders-page-size>button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--dark4txt);
  background: transparent;
  cursor: pointer;
}

.orders-page-size strong {
  font-weight: 600;
}

.orders-page-size img {
  width: 16px;
  height: 16px;
}

.orders-page-size-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 76px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.orders-page-size-menu button {
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--dark4txt);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.orders-page-size-menu button:hover {
  background: rgba(123, 85, 203, 0.08);
}

/* ============================ Orders Toolbar End ============================ */


/* ============================ Orders Filter Panel Start ============================ */
.orders-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: center;
  border-radius: var(--radius-sm);
}

.orders-filter-panel[hidden] {
  display: none;
}

.orders-filter-date-row {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.orders-date-control {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  height: 52px;
  padding: 8px 46px 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(3, 5, 34, 0.04);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
  color-scheme: light;
  accent-color: var(--purple, #7b55cb);
}

.orders-date-control:hover {
  box-shadow: inset 0 0 0 1px rgba(123, 85, 203, 0.35);
}

.orders-date-control span {
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 15px;
}

.orders-date-display {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--dark4txt);
  background: transparent;
  font: inherit;
  font-weight: 500;
  line-height: 17px;
  cursor: pointer;
}

.orders-date-display::placeholder {
  color: var(--grey4txt);
  font-weight: 400;
}

.orders-date-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  color-scheme: light;
  accent-color: var(--purple, #7b55cb);
}

.orders-date-native::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0;
}

.orders-date-native::-webkit-datetime-edit,
.orders-date-native::-webkit-datetime-edit-fields-wrapper,
.orders-date-native::-webkit-datetime-edit-text,
.orders-date-native::-webkit-datetime-edit-day-field,
.orders-date-native::-webkit-datetime-edit-month-field,
.orders-date-native::-webkit-datetime-edit-year-field {
  color: var(--dark4txt);
}

.orders-filter-panel {
  color-scheme: light;
  accent-color: var(--purple, #7b55cb);
}

.orders-date-control::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(123, 85, 203, 0.12);
  transform: translateY(-50%);
  pointer-events: none;
}

.orders-date-control img {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  z-index: 1;
}

.orders-filter-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.orders-filter-row--amount {
  grid-template-columns: 80px minmax(126px, 1fr) minmax(144px, 1fr);
}

.orders-filter-label {
  color: var(--dark4txt);
  font-size: 14px;
  font-weight: 500;
}

.filter-dropdown {
  position: relative;
  display: block;
  min-width: 0;
}

.filter-dropdown .detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--dark4txt);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(3, 5, 34, 0.04);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.filter-dropdown .detail-button:hover,
.filter-dropdown.is-open .detail-button {
  box-shadow: inset 0 0 0 1px rgba(123, 85, 203, 0.35);
}

.filter-dropdown .detail-button-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-weight: 500;
}

.filter-dropdown .detail-button-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.filter-dropdown.is-open .detail-button-chevron {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.filter-dropdown.is-open .filter-dropdown-menu {
  display: block;
}

.filter-dropdown-menu li {
  margin: 0;
}

.filter-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--dark4txt);
  background: transparent;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.filter-dropdown-menu button:hover {
  background: rgba(123, 85, 203, 0.1);
}

.filter-dropdown-menu button.is-active {
  background: rgba(123, 85, 203, 0.18);
  font-weight: 600;
}

.orders-amount-stepper {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  height: 42px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(3, 5, 34, 0.04);
}

.orders-amount-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--dark4txt);
  background: rgba(123, 85, 203, 0.12);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.orders-amount-stepper button:hover {
  background: rgba(123, 85, 203, 0.24);
}

.orders-amount-stepper output {
  color: var(--dark4txt);
  font-weight: 600;
  text-align: center;
}

/* ============================ Orders Filter Panel End ============================ */


/* ============================ Orders Table Start ============================ */
.orders-table-shell {
  min-height: 0;
}

.orders-table {
  min-width: 1220px;
}

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

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

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

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

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

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
  width: 68px;
  text-align: center;
}

.orders-row {
  cursor: pointer;
}

.orders-table tbody td {
  height: 45px;
  white-space: nowrap;
}

.orders-client-id {
  display: inline-block;
  margin-right: 10px;
  color: var(--dark4txt);
}

.orders-status--done {
  color: var(--green-darker);
  font-weight: 500;
}

.orders-row time {
  margin-left: 8px;
  color: var(--dark4txt);
}

.orders-table .table-icon img {
  width: 19px;
  height: 22px;
}

/* ============================ Orders Table End ============================ */


/* ============================ Orders Detail Modal Start ============================ */
.orders-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.orders-modal.is-open {
  display: flex;
}

.orders-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.35);
}

.orders-modal.orders-modal-instance {
  background: transparent;
  pointer-events: none;
}

.orders-modal.orders-modal-instance .orders-modal-overlay {
  display: none;
}
.orders-modal-card{
  top: 110px !important;
}
.orders-modal.orders-modal-instance .orders-modal-card {
  pointer-events: auto;
}



.orders-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(768px, calc(100vw - 48px));
  max-height: calc(100vh - 150px);
  padding: 24px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--dark4txt);
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.orders-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--white);
  cursor: move;
  -webkit-user-select: none;
  user-select: none;
}

.orders-modal-close {
  cursor: pointer;
}

.confirm-modal-head {
  cursor: move;
  -webkit-user-select: none;
  user-select: none;
}

.orders-delete-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.orders-delete-info-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.orders-delete-info-row dt {
  flex: 0 0 130px;
  color: var(--grey4txt);
}

.orders-delete-info-row dd {
  margin: 0;
  color: var(--dark4txt);
  font-weight: 600;
  word-break: break-word;
}

.orders-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.orders-modal-title-block span {
  font-size: 13px;
  line-height: 16px;
}

.orders-modal-title-block strong {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 30px;
}

.orders-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.orders-modal-close img {
  width: 18px;
  height: 18px;
}

.orders-modal-panel {
  min-height: 0;
  padding: 20px 24px 24px;
  overflow: auto;
  border-radius: 14px;
  background: var(--panel-bg);
  scrollbar-width: none;
}

.orders-modal-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.orders-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.orders-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.orders-modal-field span,
.orders-modal-products>span,
.orders-modal-address>span {
  color: var(--grey4txt);
  font-size: 13px;
}

.orders-modal-field input,
.orders-modal-address .address_Card {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--dark4txt);
  background: var(--white);
  font: inherit;
  padding: 20px;
}

.address_Card span {
  display: block;
}

.orders-modal-field input {
  height: 42px;
  padding: 0 16px;
}

.orders-modal-field--muted input {
  background: rgba(255, 255, 255, 0.44);
}

.orders-modal-field--success input {
  color: var(--green-darker);
}

.orders-modal-field--wide,
.orders-modal-separator,
.orders-modal-products,
.orders-modal-totals,
.orders-modal-address,
.orders-modal-actions {
  grid-column: 1 / -1;
}

.orders-modal-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
}

.orders-modal-products {
  display: grid;
  gap: 6px;
}

.orders-modal-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.38);
}

.orders-modal-product-row strong,
.orders-modal-product-row span {
  color: var(--dark4txt);
  font-size: 13px;
  font-weight: 400;
}

.orders-modal-product-row span {
  text-align: center;
}

.orders-modal-totals {
  display: grid;
  justify-content: end;
  gap: 8px;
}

.orders-modal-total-row {
  display: grid;
  grid-template-columns: 150px 90px;
  align-items: center;
  color: var(--grey4txt);
  font-size: 14px;
}

.orders-modal-total-row strong {
  color: var(--dark4txt);
  font-weight: 500;
  text-align: left;
}

.orders-modal-total-row--grand {
  margin-top: 2px;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 24px;
}

.orders-modal-total-row--grand strong {
  font-size: 20px;
}

.orders-modal-address {
  display: grid;
  gap: 6px;
}

.orders-modal-address textarea {
  min-height: 78px;
  padding: 10px 16px;
  resize: none;
}

.orders-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.orders-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 116px;
  height: 40px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  color: var(--grey4txt);
  background: #FFFFFF59;
  ;
  cursor: pointer;
}

.orders-modal-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  line-height: 1;
}

.orders-modal-action--reject span {
  background: #e95f9d;
}

.orders-modal-action--confirm span {
  background: var(--green-darker);
}

.orders-modal-card.is-complete .orders-modal-actions,
.orders-modal-card.is-complete .orders-modal-address,
.orders-modal-card.is-complete [data-orders-shipping-row] {
  display: none;
}

.orders-modal-card.is-complete .orders-modal-panel {
  padding-bottom: 18px;
}

/* ============================ Orders Detail Modal End ============================ */

/* ============================================================================
   Date picker calendar — themed popup attached to a .orders-date-control
   ============================================================================ */
.orders-calendar {
  position: fixed;
  z-index: 80;
  width: 280px;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: var(--dark4txt);
  font-family: var(--font-body);
  font-size: 13px;
}

.orders-calendar[hidden] {
  display: none;
}

.orders-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.orders-calendar-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark4txt);
}

.orders-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.orders-calendar-nav:hover {
  background: rgba(0, 0, 0, 0.06);
}

.orders-calendar-weekdays,
.orders-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.orders-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  color: var(--grey4txt);
  padding: 4px 0;
}

.orders-calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dark4txt);
  font: inherit;
  cursor: pointer;
}

.orders-calendar-day:hover {
  background: rgba(123, 85, 203, 0.08);
}

.orders-calendar-day.is-today {
  font-weight: 700;
  color: #7b55cb;
}

.orders-calendar-day.is-selected {
  background: #7b55cb;
  color: var(--white);
  font-weight: 600;
}

/* Greyed-out leading/trailing days from adjacent months */
.orders-calendar-day.is-outside {
  color: var(--grey4txt);
  opacity: 0.45;
}

/* ============================ Orders Mobile Responsive Start ============================ */
@media (max-width: 1520px) {
  .orders-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1160px) {
  .orders-toolbar {
    grid-template-columns: none;
  }

  .Apmokėjimo {
    width: 90%;
    margin-left: auto;
  }

}

@media (max-width: 1024px) {
  .Apmokėjimo {
    width: 100%;
    margin-right: auto;
  }

  .app-shell[data-page="orders"] .content-shell {
    padding: 16px;
    overflow: auto;
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
  }

  .orders-page {
    display: block;
    height: auto;
    min-height: 100%;
  }

  .orders-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .orders-title {
    grid-column: 1 / -1;
    font-size: 20px;
    line-height: 26px;
  }

  .orders-search {
    grid-column: 1 / 2;
    height: 41px;
  }

  .orders-filter-toggle {
    grid-column: 2 / 3;
    width: 44px;
    height: 41px;
    padding: 0;
    justify-content: center;
  }

  .orders-filter-text,
  .orders-filter-chevron {
    display: none;
  }

  .orders-filter-icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .orders-page.is-filter-open .orders-filter-icon {
    display: none;
  }

  .orders-page.is-filter-open .orders-filter-close {
    display: block;
    color: var(--grey4txt);
    font-size: 30px;
    line-height: 1;
  }

  .orders-page-size {
    display: none;
  }

  .orders-filter-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  }

  .orders-filter-date-row {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .orders-filter-row,
  .orders-filter-row--amount {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
  }

  .orders-filter-row--amount {
    grid-template-columns: 50px 126px minmax(0, 1fr);
  }

  .orders-table-shell {
    overflow: visible;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table th,
  .orders-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    border: 0;
    text-align: left;
  }

  .orders-table {
    margin: 0;
    border-spacing: 0;
    table-layout: auto;
  }

  .orders-table thead,
  .orders-table-head {
    display: none;
  }

  .orders-table tbody {
    display: grid;
    gap: 8px;
  }

  .orders-table tbody::before {
    display: none;
  }

  .orders-row {
    display: grid !important;
    grid-template-columns: 75px 153px minmax(0, 1fr) 77px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: transparent;
  }

  .orders-row>td {
    display: flex !important;
    min-height: 52px;
    height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 7px 16px;
    overflow: hidden;
    border-left: 2px solid rgba(3, 5, 34, 0.1);
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.6);
    color: var(--dark4txt);
    font-size: 14px;
    line-height: 17px;
    white-space: normal;
  }

  .orders-row.is-alt>td {
    background: rgba(255, 255, 255, 0.3);
  }

  .orders-row>td::before {
    display: block;
    color: var(--grey4txt);
    font-size: 13px;
    line-height: 16px;
  }

  .orders-row>td:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1;
    align-items: center;
    border-left: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
  }

  .orders-row>td:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .orders-row>td:nth-child(2)::before {
    content: "Užsakymo laikas";
  }

  .orders-row>td:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 1;
  }

  .orders-row>td:nth-child(4)::before {
    content: "Suma";
  }

  .orders-row>td:nth-child(3) {
    display: block !important;
    grid-column: 1 / 5;
    grid-row: 2;
    min-height: 50px;
    border-top: 2px solid rgba(3, 5, 34, 0.1);
    border-left: 0;
  }

  .orders-row>td:nth-child(3)::before {
    content: "Klientas";
  }

  .orders-row>td:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3;
    border-top: 2px solid rgba(3, 5, 34, 0.1);
    border-left: 0;
    text-transform: uppercase;
  }

  .orders-row>td:nth-child(5)::before {
    content: "Tipas";
    text-transform: none;
  }

  .orders-row>td:nth-child(6) {
    grid-column: 2 / 4;
    grid-row: 3;
    border-top: 2px solid rgba(3, 5, 34, 0.1);
  }

  .orders-row>td:nth-child(6)::before {
    content: "Statusas";
  }

  .orders-row>td:nth-child(7) {
    grid-column: 4 / 5;
    grid-row: 3;
    align-items: center;
    padding: 0;
    border-top: 2px solid rgba(3, 5, 34, 0.1);
  }

  .orders-client-id {
    margin-right: 4px;
    font-weight: 600;
  }

  .orders-row time {
    margin-left: 8px;
  }

  .orders-modal {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }

  .orders-modal-card {
    width: min(428px, 100% - 24px);
    max-height: calc(100vh - 160px);
    padding: 20px 24px 28px;
  }

  .orders-modal-head {
    margin-bottom: 18px;
  }

  .orders-modal-panel {
    padding: 18px 24px 22px;
  }

  .orders-modal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .orders-modal-separator,
  .orders-modal-products,
  .orders-modal-totals,
  .orders-modal-address,
  .orders-modal-actions,
  .orders-modal-field--wide {
    grid-column: auto;
  }

  .orders-modal-product-row {
    grid-template-columns: minmax(0, 1fr) 62px 72px;
  }

  .orders-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .orders-filter-date-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .orders-modal.orders-modal-instance .orders-modal-card {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh;
    border-radius: 0;
  }
  .orders-modal-card{
  top: 0px !important;
}
}

@media (max-width: 400px) {
  .orders-filter-row--amount {
    grid-template-columns: 50px 111px minmax(0, 1fr);
  }
}

/* ============================ Orders Mobile Responsive End ============================ */