body.accepted-orders-open {
  overflow: hidden;
}

.accepted-orders-target {
  position: relative;
}

.accepted-orders-shortcut {
  display: block;
  margin-top: 5px;
  color: #08745f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.accepted-orders-shortcut:focus-visible,
.accepted-orders-kpi:focus-visible {
  outline: 3px solid rgba(20, 151, 127, 0.28);
  outline-offset: 3px;
}

.accepted-orders-kpi {
  cursor: pointer;
  border-color: #8fd6c7 !important;
  background: #f1fbf8 !important;
}

.accepted-orders-kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 116, 95, 0.12);
}

.accepted-orders-kpi-hint {
  display: block;
  margin-top: 5px;
  color: #08745f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.modal tbody td:last-child {
  min-width: 125px;
}

.accepted-orders-modal-button {
  display: block;
  width: 100%;
  margin-top: 6px;
  border-color: #8fd6c7 !important;
  color: #08745f !important;
  background: #f1fbf8 !important;
}

.accepted-orders-modal-button:disabled {
  opacity: 0.52;
  cursor: default;
}

.accepted-orders-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 39, 67, 0.64);
  backdrop-filter: blur(5px);
}

.accepted-orders-modal {
  display: flex;
  flex-direction: column;
  width: min(1320px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid #c7ddef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 37, 68, 0.32);
}

.accepted-orders-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 18px;
  color: #fff;
  background: linear-gradient(115deg, #075d9e 0%, #08745f 100%);
}

.accepted-orders-header small {
  display: block;
  margin-bottom: 5px;
  color: #cbe9e2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.accepted-orders-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.accepted-orders-header p {
  margin: 7px 0 0;
  color: #e6f5f2;
  font-size: 13px;
}

.accepted-orders-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.accepted-orders-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 26px;
  border-bottom: 1px solid #d9e6f0;
  background: #f4f9fc;
}

.accepted-orders-summary > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #cfe2ee;
  border-radius: 12px;
  background: #fff;
}

.accepted-orders-summary b {
  overflow-wrap: anywhere;
  color: #075d9e;
  font-size: 20px;
}

.accepted-orders-summary small {
  margin-top: 2px;
  color: #597188;
  font-size: 11px;
}

.accepted-orders-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
}

.accepted-orders-search {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 9px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #bdd5e7;
  border-radius: 10px;
  color: #587087;
  background: #fff;
}

.accepted-orders-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  color: #123b61;
  background: transparent;
  font: inherit;
}

.accepted-orders-visible {
  flex: 0 0 auto;
  color: #597188;
  font-size: 12px;
  font-weight: 800;
}

.accepted-orders-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 26px 24px;
  border: 1px solid #d5e3ee;
  border-radius: 12px;
}

.accepted-orders-table {
  width: 100%;
  border-collapse: collapse;
  color: #294d6d;
  font-size: 12px;
}

.accepted-orders-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf5fa;
}

.accepted-orders-table th,
.accepted-orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #dbe7ef;
  text-align: left;
  vertical-align: top;
}

.accepted-orders-table th {
  color: #385d7c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.accepted-orders-table tbody tr:hover {
  background: #f6fbfd;
}

.accepted-orders-sgp,
.accepted-orders-oc {
  color: #0063a9;
  font-weight: 900;
  white-space: nowrap;
}

.accepted-orders-process {
  min-width: 250px;
}

.accepted-orders-money {
  color: #08745f;
  font-weight: 900;
  white-space: nowrap;
}

.accepted-orders-empty td {
  padding: 48px 20px;
  color: #6f8598;
  text-align: center;
}

@media (max-width: 820px) {
  .accepted-orders-overlay {
    padding: 0;
  }

  .accepted-orders-modal {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .accepted-orders-summary {
    grid-template-columns: 1fr;
  }

  .accepted-orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .accepted-orders-visible {
    align-self: flex-end;
  }

  .accepted-orders-table thead {
    display: none;
  }

  .accepted-orders-table,
  .accepted-orders-table tbody,
  .accepted-orders-table tr,
  .accepted-orders-table td {
    display: block;
    width: 100%;
  }

  .accepted-orders-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid #dbe7ef;
  }

  .accepted-orders-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border: 0;
    white-space: normal;
  }

  .accepted-orders-table td::before {
    content: attr(data-label);
    color: #6b8296;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }
}
