* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  background: #f4f7fb;
  color: #1f2937;
}

.main-content {
  padding: 24px;
  min-height: 100vh;
}

.topbar {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.topbar h1 {
  font-size: 26px;
  color: #991b1b;
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar p {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.section-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 20px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-badge {
  background: #fee2e2;
  color: #991b1b;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

thead {
  background: #f8fafc;
}

th {
  padding: 14px 12px;
  font-size: 13px;
  color: #475569;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

td {
  padding: 14px 12px;
  font-size: 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

tr:hover {
  background: #f9fafb;
}

.empty-cell {
  text-align: center;
  padding: 28px;
  color: #64748b;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.badge.confirmed {
  background: #dcfce7;
  color: #166534;
}

.reason-text {
  max-width: 280px;
  color: #7f1d1d;
  font-weight: 600;
  line-height: 1.4;
}

.btn {
  border: none;
  outline: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
}

.btn.primary {
  background: #108082;
  color: #ffffff;
}

.btn.primary:hover {
  background: #0d6f71;
}

.btn.secondary {
  background: #f1f5f9;
  color: #334155;
}

.btn.secondary:hover {
  background: #e2e8f0;
}

.footer {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  margin-top: 24px;
}
 


@keyframes scaleIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
} 
/* =========================
POPUP OVERLAY
========================= */

.order-modal {

  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.55);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 9999;

  padding: 24px;

  backdrop-filter: blur(2px);

}

.order-modal.show {

  display: flex;

}

/* =========================
POPUP BOX
========================= */

.order-modal-box {

  background: #ffffff;

  width: 920px;

  max-width: 96%;

  max-height: 90vh;

  overflow-y: auto;

  border-radius: 18px;

  box-shadow:

    0 25px 60px rgba(0, 0, 0, 0.25);

  animation:

    popupScale 0.25s ease;

}

/* =========================
HEADER
========================= */

.modal-head {

  padding: 22px 26px;

  border-bottom: 1px solid #e5e7eb;

  display: flex;

  justify-content: space-between;

  align-items: center;

}

.modal-head h2 {

  font-size: 22px;

  font-weight: 700;

  color: #111827;

  display: flex;

  align-items: center;

  gap: 10px;

}

.modal-head p {

  font-size: 14px;

  color: #64748b;

  margin-top: 4px;

}

/* CLOSE BUTTON */

.modal-close {

  width: 40px;

  height: 40px;

  border-radius: 50%;

  border: none;

  background: #f1f5f9;

  cursor: pointer;

  font-size: 16px;

  transition: 0.2s;

}

.modal-close:hover {

  background: #fee2e2;

  color: #991b1b;

}

/* =========================
BODY GRID
========================= */

.modal-grid {

  padding: 24px 26px;

  display: grid;

  grid-template-columns:

    repeat(3, 1fr);

  gap: 16px;

}

/* =========================
DETAIL CARD
========================= */

.detail-card {

  background: #f8fafc;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  padding: 16px;

  transition: 0.2s;

}

.detail-card:hover {

  background: #f1f5f9;

}

.detail-card.wide {

  grid-column: 1 / -1;

}

/* LABEL */

.detail-label {

  font-size: 12px;

  font-weight: 700;

  color: #64748b;

  margin-bottom: 6px;

  letter-spacing: 0.4px;

  text-transform: uppercase;

}

/* VALUE */

.detail-value {

  font-size: 15px;

  font-weight: 700;

  color: #111827;

  word-break: break-word;

}

/* =========================
REJECT REASON HIGHLIGHT
========================= */

.reject-highlight {

  grid-column: 1 / -1;

  background: linear-gradient(
    135deg,
    #fee2e2,
    #fecaca
  );

  border: 1px solid #fca5a5;

  border-radius: 14px;

  padding: 20px 24px;

  margin-bottom: 18px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 6px;

  text-align: center;

  box-shadow:

    0 6px 14px rgba(220, 38, 38, 0.15);

  position: relative;

}

/* ICON ALIGNMENT */

.reject-highlight::before {

  content: "⚠";

  position: absolute;

  top: 50%;

  left: 16px;

  transform: translateY(-50%);

  font-size: 18px;

  opacity: 0.85;

}

/* TITLE */

.reject-highlight .detail-label {

  font-size: 12px;

  font-weight: 700;

  color: #b91c1c;

  letter-spacing: 0.5px;

}

/* REASON TEXT */

.reject-highlight .detail-value {

  font-size: 17px;

  font-weight: 700;

  color: #7f1d1d;

}

/* =========================
SCROLLBAR
========================= */

.order-modal-box::-webkit-scrollbar {

  width: 8px;

}

.order-modal-box::-webkit-scrollbar-thumb {

  background: #cbd5f5;

  border-radius: 6px;

}

/* =========================
ANIMATION
========================= */

@keyframes popupScale {

  from {

    transform: scale(0.94);

    opacity: 0;

  }

  to {

    transform: scale(1);

    opacity: 1;

  }

}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 768px) {

  .modal-grid {

    grid-template-columns: 1fr;

  }

  .order-modal-box {

    width: 100%;

    border-radius: 14px;

  }

}