
html,
body,
button,
input,
textarea,
select {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef1f5;
  color: #17202a;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

.page {
  width: min(950px, calc(100% - 24px));
  margin: 24px auto;
}

.header {
  background: #fff;
  border-radius: 14px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #17202a;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 19px;
}

.brand span {
  color: #697586;
  font-size: 11px;
}

.back {
  color: #17202a;
  text-decoration: none;
  font-size: 13px;
}

main {
  margin-top: 20px;
}

.intro,
.box,
.status-card,
.message {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.intro {
  padding: 28px;
}

.intro h1 {
  margin: 0 0 5px;
  font-size: 26px;
}

.intro p {
  margin: 0 0 22px;
  color: #697586;
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: bold;
}

.search-row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7dce2;
  border-radius: 9px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  direction: ltr;
  text-align: left;
  outline: none;
}

input:focus {
  border-color: #17202a;
}

button,
.actions a {
  border: 0;
  border-radius: 9px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

button,
.primary {
  background: #17202a;
  color: #fff;
}

.secondary {
  background: #e9edf2;
  color: #17202a;
}

.message {
  margin-top: 18px;
  padding: 17px 20px;
  text-align: center;
}

.error {
  background: #fff0f0;
  color: #a00000;
}

.status-card {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.status-card span,
.status-card strong {
  display: block;
}

.status-card span,
.info-grid span {
  color: #697586;
  font-size: 12px;
}

.status-card strong {
  margin-top: 3px;
}

#status {
  color: #17202a;
}

.ltr {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

.box {
  margin-top: 18px;
  padding: 22px;
}

.box h2 {
  margin: 0 0 18px;
  font-size: 17px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-grid span,
.info-grid strong {
  display: block;
}

.info-grid strong {
  margin-top: 3px;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
}

th {
  background: #f5f6f8;
  font-size: 12px;
}

td {
  font-size: 13px;
}

.number {
  direction: ltr;
  white-space: nowrap;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

footer {
  text-align: center;
  color: #697586;
  font-size: 11px;
  padding: 20px;
}

@media (max-width: 700px) {
  .page {
    width: calc(100% - 12px);
    margin: 6px auto;
  }

  .header {
    border-radius: 10px;
  }

  .back {
    display: none;
  }

  .intro {
    padding: 20px;
  }

  .search-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .status-card,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions a {
    text-align: center;
  }
}

/* Order status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid transparent;
}

.status-pending {
  color: #9a5b00;
  background: #fff4d6;
  border-color: #f1d28a;
}

.status-paid {
  color: #1769aa;
  background: #e8f3ff;
  border-color: #a9d2f5;
}

.status-processing {
  color: #6546a3;
  background: #f1ebff;
  border-color: #cbb9f2;
}

.status-completed {
  color: #18794e;
  background: #e8f7ef;
  border-color: #a9ddc1;
}

.status-cancelled {
  color: #b42318;
  background: #fff0ee;
  border-color: #f1b8b2;
}

.status-default {
  color: #555;
  background: #f2f2f2;
  border-color: #d5d5d5;
}
