.order-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
}

.order-head small {
  display: block;
  color: #6c757d;
}

.order-body {
  display: none !important;
  padding: 18px;
  border-top: 1px solid #edf1f5;
  background: #fafbfc;
}

.order-body.show {
  display: block !important;
}

.chev {
  color: #6c757d;
  transition: transform 0.2s ease;
}

.chev.rot {
  transform: rotate(180deg);
}

/* Timeline */
.tl {
  display: flex;
  justify-content: space-between;
  min-width: 420px;
  overflow-x: auto;
}

.tl-step {
  flex: 1;
  text-align: center;
}

.tl-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 700;
}

.tl-step.done .tl-circle {
  background: #0da7ac;
  color: #fff;
}

.tl-step.cancel .tl-circle {
  background: #dc3545;
  color: #fff;
}

.tl-label {
  color: #6c757d;
  font-size: 0.68rem;
  font-weight: 600;
}

/* Pagination */
.pg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    width: 100%;
}

.pg > a:first-child {
    position: absolute;
    left: 0;
}

.pg > a:last-child {
    position: absolute;
    right: 0;
}

.pg a,
.pg span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #1f2d3d;
    text-decoration: none;
    font-size: .85rem;
}

.pg .active {
    background: #0da7ac;
    border-color: #0da7ac;
    color: #fff;
    font-weight: 600;
}
.pg > small {
    position: absolute;
    right: 0;
    color: #6c757d;
}
/* ── Review form ─────────────────────────────── */
.review-box {
    margin-top: 16px;
    background: #f9fffe;
    border: 1px solid #c9ecea;
    border-radius: 10px;
    padding: 18px 20px;
}
.review-box h6 {
    font-size: 14px;
    font-weight: 700;
    color: #0f766e;
    margin: 0 0 12px;
}
.star-picker {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    width: fit-content;
    margin-bottom: 12px;
}
.star-picker input {
    display: none;
}
.star-picker label {
    font-size: 26px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease;
    line-height: 1;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
    color: #f59e0b;
}
.review-box textarea {
    width: 100%;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13.5px;
    resize: vertical;
    min-height: 80px;
    background: #ffffff;
    color: #111;
    transition: border-color 0.2s ease;
}
.review-box textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.review-box .btn-review {
    margin-top: 10px;
    background: #0f766e;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.review-box .btn-review:hover {
    background: #0d9488;
    transform: translateY(-1px);
}
.review-done {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #166534;
    font-weight: 500;
}
.review-done i {
    font-size: 18px;
    color: #16a34a;
}
.review-stars-display {
    color: #f59e0b;
    font-size: 14px;
    margin-top: 2px;
}