/* ================================
   Company orders / sales
   ================================ */

.site-company-orders {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: #2d2520;
}

.site-company-orders > .title {
  max-width: 760px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.site-company-orders > .title h1 {
  margin: 0 0 24px 0;
  color: #2d2520;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.site-company-orders > .data {
  width: 100%;
  margin: 0 auto;
}

.site-company-orders .alert-warning {
  max-width: 560px;
  margin: 0 auto !important;
  padding: 28px 24px !important;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 45px rgba(72, 48, 31, 0.08);
  color: #7f7068;
  text-align: center;
}

.site-company-orders .alert-warning::before {
  content: "\f0f4";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;

  width: 54px;
  height: 54px;
  margin: 0 auto 14px auto;
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(96, 61, 28, 0.08);
  color: #603d1c;
  font-size: 21px;
}

.site-company-orders .alert-warning small {
  font-size: 14px;
  line-height: 1.45;
}

.site-company-orders .sales-filters {
  margin: 0 0 18px 0;
  padding: 18px;
  border-radius: 28px;

  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 14px;
  align-items: end;

  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(96, 61, 28, 0.08);
  box-shadow: 0 16px 38px rgba(72, 48, 31, 0.07);
}

.site-company-orders .filter-group {
  min-width: 0;
}

.site-company-orders .filter-label {
  display: block;
  margin: 0 0 7px 0;
  color: #5f544d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.site-company-orders .filter-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(96, 61, 28, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #2d2520;
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-company-orders .filter-control:focus {
  border-color: rgba(96, 61, 28, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(96, 61, 28, 0.08);
  outline: none;
}

.site-company-orders .filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-company-orders .btn {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transition: all 0.18s ease;
}

.site-company-orders .btn-primary {
  border: 0;
  background: linear-gradient(135deg, #7a4a24 0%, #4f3018 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(96, 61, 28, 0.2);
}

.site-company-orders .btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(96, 61, 28, 0.25);
}

.site-company-orders .btn-ghost {
  border: 1px solid rgba(96, 61, 28, 0.08);
  background: rgba(96, 61, 28, 0.045);
  color: #603d1c;
}

.site-company-orders .btn-ghost:hover {
  background: rgba(96, 61, 28, 0.08);
  color: #603d1c;
}

.site-company-orders .sales-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(96, 61, 28, 0.08);
  box-shadow: 0 18px 45px rgba(72, 48, 31, 0.08);
  margin-bottom: 22px;
}

.site-company-orders .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.site-company-orders .table-wrapper table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #2d2520;
}

.site-company-orders .table-wrapper thead th {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid rgba(96, 61, 28, 0.08);
  background: rgba(96, 61, 28, 0.035);
  color: #7f7068;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.site-company-orders .table-wrapper tbody td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid rgba(96, 61, 28, 0.065);
  color: #4f4038;
  font-size: 14px;
  line-height: 1.35;
  vertical-align: middle;
}

.site-company-orders .table-wrapper tbody tr:last-child td {
  border-bottom: 0;
}

.site-company-orders .table-wrapper tbody tr {
  transition: background 0.16s ease;
}

.site-company-orders .table-wrapper tbody tr:hover {
  background: rgba(96, 61, 28, 0.03);
}

.site-company-orders .table-wrapper a {
  color: #603d1c;
  font-weight: 700;
  text-decoration: none;
}

.site-company-orders .table-wrapper a:hover {
  color: #4f3018;
  text-decoration: underline;
}

.site-company-orders .sales-table .badge-success {
  background: rgba(73, 128, 86, 0.11);
  color: #3f7a50;
}

.site-company-orders .sales-table .badge-cancel {
  background: rgba(190, 69, 58, 0.09);
  color: #9f3c34;
}

/* ================================
   Sales table
   ================================ */

.site-company-orders .sales-table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.site-company-orders .sales-table thead th {
  padding: 16px 16px;
  border: 0;
  border-bottom: 1px solid rgba(96, 61, 28, 0.08);
  background: rgba(96, 61, 28, 0.035);
  color: #7f7068;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.site-company-orders .sales-table tbody td {
  padding: 16px 16px;
  border: 0;
  border-bottom: 1px solid rgba(96, 61, 28, 0.065);
  color: #4f4038;
  font-size: 14px;
  line-height: 1.35;
  vertical-align: middle;
}

.site-company-orders .sales-table th,
.site-company-orders .sales-table td {
  white-space: nowrap;
}

.site-company-orders .sales-table tbody tr:last-child td {
  border-bottom: 0;
}

.site-company-orders .sales-table tbody tr {
  transition: background 0.16s ease;
}

.site-company-orders .sales-table tbody tr:hover {
  background: rgba(96, 61, 28, 0.03);
}

.site-company-orders .sales-table tbody td:first-child {
  color: #2d2520;
  font-weight: 800;
}

.site-company-orders .sales-table tbody td:first-child::before {
  content: "#";
  color: #b09a8b;
  font-weight: 700;
}

.site-company-orders .sales-table .price {
  color: #2d2520;
  font-weight: 850;
  white-space: nowrap;
}

.site-company-orders .sales-table .commission {
  color: #8a7b72;
  font-weight: 700;
  white-space: nowrap;
}

.site-company-orders .sales-table .badge {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: rgba(96, 61, 28, 0.06);
  color: #603d1c;

  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.site-company-orders .sales-table .badge-success {
  background: rgba(73, 128, 86, 0.11);
  color: #3f7a50;
}

.site-company-orders .sales-table .badge-cancel {
  background: rgba(190, 69, 58, 0.09);
  color: #9f3c34;
}

.site-company-orders .sales-table tr.status-success {
  background: rgba(73, 128, 86, 0.025);
}

.site-company-orders .sales-table tr.status-cancel {
  background: rgba(190, 69, 58, 0.018);
}


@media (max-width: 768px) {
  .site-company-orders {
    max-width: none;
  }

  .site-company-orders > .title {
    max-width: none;
    margin-bottom: 24px;
  }

  .site-company-orders > .title h1 {
    font-size: 24px;
  }

  .site-company-orders .sales-filters {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 26px;
  }

  .site-company-orders .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-company-orders .filter-actions .btn {
    width: 100%;
  }

  .site-company-orders .sales-card {
    border-radius: 26px;
  }

  .site-company-orders .table-wrapper thead th,
  .site-company-orders .table-wrapper tbody td {
    padding: 13px 12px;
    font-size: 13px;
  }
}
