.pending-page {
  max-width: 1100px;
  margin: 120px auto 60px; 
  padding: 0 20px;
}

.role-chip {
  display:inline-flex; 
  align-items:center; 
  gap:8px;
  background:#fff; 
  color:#333; 
  border-radius:9999px;
  padding:6px 12px; 
  font-weight:700; 
  font-size:0.9rem;
  border:1px solid #f0e6dc;
}

.badge {
  display:inline-block;
  font-weight:800;
  padding:4px 10px;
  border-radius:9999px;
  font-size:0.8rem;
  border:1px solid #f0e6dc;
  background:#fff8f3;
  color:#d9480f;
}

.muted { 
  color:#666; font-size:0.9rem; 
}

.right { 
  text-align:right; 
}

.mono { 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
}

.empty {
  text-align:center; 
  padding:40px; 
  opacity:.85;
}

.items-list { margin:0; padding-left:18px; }
.items-list li { margin:2px 0; }

.modal {
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background:rgba(0,0,0,.35); z-index:100000;
}

.modal-content {
  width:min(420px,90vw); 
  background:#fff; 
  border-radius:14px;
  padding:20px 18px 18px; 
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.modal .close {
  position:absolute; 
  top:10px; 
  right:12px; 
  border:0; 
  background:transparent;
  font-size:22px; 
  cursor:pointer; 
  line-height:1;
}

#authFormContainer label { 
  display:block; 
  margin-top:10px; 
  font-weight:700; 
}

#authFormContainer input { 
  width:100%; 
  padding:10px; 
  border-radius:8px; 
  border:1px solid #e7e0db; 
}

.pending-table {
  width: 100%;
  border-collapse: collapse;
}

.pending-table thead th {
  background: #fff8f3;
  text-align: left;
  font-weight: 800;
  padding: 14px 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid #f4e3d8;
  white-space: nowrap;
}

.pending-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f7eee7;
  vertical-align: top;
  font-size: 0.95rem;
}

.pending-table tbody tr:last-child td {
  border-bottom: 0;
}

.pending-table thead th.right {
  text-align: right;
}

.pending-title{
  background:#FFBD2B;
  color:#fff;
  border-radius:22px;
  padding:14px 24px;
  font-weight:900;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  margin:0;               
}

.role-chip{
  display:inline-flex;
  align-items:center; 
  gap:8px;
  background:#fff; 
  color:#333; 
  border-radius:9999px;
  padding:6px 12px; 
  font-weight:700; 
  font-size:0.9rem;
  border:1px solid #f0e6dc;
}

.pum-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:9999px;
  font-weight:800;
  font-size:.8rem;
  background:#fff8f3;
  color:#d9480f;
  border:1px solid #f0e6dc;
  white-space:nowrap;
}

.pending-title {
  display: inline-block; 
  background: #FFD43B;  
  padding: 6px 14px;
  border-radius: 6px;
  margin: 0;
}

.od-meta{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 16px;
  padding: 14px 16px 4px;
}

.od-field { 
  display:flex; 
  gap:8px; 
  flex-wrap:wrap; 
}

.od-label { 
  font-weight:800; 
  color:#333; 
}

.od-value { 
  font-weight:600; 
  color:#222; 
}

.pending-card {
  overflow-x: auto;
}

.pending-table th, .pending-table td { 
  vertical-align: top; }

.pending-table tfoot td { 
  font-size: 0.98rem; 
}

.order-detail-container {
  background: #fff;      
  border-radius: 12px;      
  padding: 20px;
  max-width: 1000px;        
  margin: 20px auto;        
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pending-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.order-detail-body {
  padding: 15px;
}

.pending-table tfoot td {
  padding: 14px 16px;      
  border-top: 1px solid #f4e3d8;
}

.pending-table tfoot td.right {
  text-align: right;
}

.pending-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 1100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.pending-title {
  background: #f9c623;
  padding: 6px 14px;
  border-radius: 6px;
}

.od-actions {
  display: flex;
  gap: 30px;          
  margin-top: 20px;
}

.btn-process {
  background-color: #00D54B;  
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-process:hover {
  background-color: #218838;
}

.btn-delete {
  background-color: #dc3545; 
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-delete:hover {
  background-color: #c82333; 
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 320px;
}

.step-dots {
  display: flex;
  flex-direction: column; 
  gap: 12px;           
  margin: 20px 0;
}

.step-dots .dot {
  display: block;
  text-align: center;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.step-dots .dot.active {
  background: #FF6B00; 
  color: #fff;
  border-color: #FF6B00;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-cancel {
  background: #ccc;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.pending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.icon-btn img {
  width: 40px;
  height: 40px;
  position: relative;
  top: 2px; 
}

.tracker-btn {
  background: none;
  border: none;
  padding: 0 4px 0 0;
  cursor: pointer;
  vertical-align: middle;
}

.tracker-btn img {
  width: 30px;
  height: 30px;
  position: relative;
  top: 2px;
}
.btn-notify {
  background: #fbbf24;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-left: 8px;
}

.btn-notify:hover {
  background: #f59e0b;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-green { background-color: #28a745; color: #fff; }
.btn-yellow { background-color: #ffc107; color: #000; }
.btn-red { background-color: #dc3545; color: #fff; }
.btn-light { background-color: #f1f1f1; color: #333; border: 1px solid #ccc; }

.order-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
}

.notify-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

#notifyMessage {
  width: 100%;
  min-height: 80px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 900px) {

  .pending-page{
    max-width: 100% !important;
    margin: 92px auto 40px !important; 
    padding: 0 14px !important;
  }

  /* .pending-wrapper,
  .order-detail-container,
  .pending-card{
    max-width: 100% !important;
    margin: 14px auto !important;
    padding: 14px !important;
    border-radius: 14px !important;
  } */

  .pending-header{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .title-with-icon{
    width: 100%;
    gap: 10px !important;
    flex-wrap: wrap;
  }

  .pending-title{
    font-size: 16px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center;
    line-height: 1.1;
  }

  .role-chip,
  .badge,
  .pum-badge{
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  .od-meta{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px 0 0 !important;
  }

  .od-field{
    gap: 6px !important;
  }

  /* .pending-card{
    overflow: hidden;
  } */

  .pending-table{
    display: block;       
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: separate;   
    border-spacing: 0;
  }

  .pending-table thead,
  .pending-table tbody,
  .pending-table tfoot{
    display: table;
    width: 100%;
    table-layout: auto;
    min-width: 720px;           
  }

  .pending-table thead th,
  .pending-table tbody td,
  .pending-table tfoot td{
    padding: 12px 12px !important;
    font-size: 13px !important;
  }

  .pending-table thead th{
    position: sticky;           
    top: 0;
    z-index: 1;
  }

  .od-actions,
  .order-actions{
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .od-actions .btn,
  .od-actions .btn-process,
  .od-actions .btn-delete,
  .order-actions .btn,
  .btn-notify{
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  .icon-btn img{ width: 32px !important; height: 32px !important; }
  .tracker-btn img{ width: 26px !important; height: 26px !important; }

  .empty{
    padding: 24px !important;
    font-size: 14px !important;
  }

  .modal,
  .modal-overlay{
    padding: 72px 12px 18px !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content{
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto 18px !important;
    padding: 16px !important;
    border-radius: 14px !important;
    max-height: calc(100vh - 110px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #authFormContainer input,
  #notifyMessage{
    font-size: 16px !important;
  }
}

@media (max-width: 430px){
  .pending-page{ margin-top: 84px !important; }
  .pending-title{ font-size: 15px !important; }
}

html,
body {
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  display: flex;
  flex-direction: column;
}

.pending-page {
  flex: 1;
}

.modern-footer {
  margin-bottom: 0 !important;
}

.footer-bottom {
  padding-bottom: 0 !important;
}

.pending-wrapper,
.pending-card,
.pending-table,
.pending-table th,
.pending-table td,
.pending-table a {
  color: #2b1206 !important;
}

.pending-table tbody td {
  font-weight: 700;
}

.pending-table thead th {
  color: #7c2d12 !important;
}

/* PROCESS PAYMENT MODAL FIX */
#paymentMethodModal {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.62) !important;
  z-index: 100000 !important;
}

#paymentMethodModal.show {
  display: flex !important;
}

#paymentMethodModal .modal-content {
  width: min(380px, 92vw) !important;
  background: #ffffff !important;
  color: #2b1206 !important;
  border-radius: 14px !important;
  padding: 28px 26px 24px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.35) !important;
  text-align: center !important;
}

#paymentMethodModal h3 {
  color: #2b1206 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  margin: 0 0 22px !important;
}

#paymentMethodModal .step-dots {
  display: grid !important;
  gap: 12px !important;
  margin: 0 0 24px !important;
}

#paymentMethodModal .dot {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: #fff8f3 !important;
  border: 2px solid #f4d5c2 !important;
  color: #2b1206 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

#paymentMethodModal .dot.active {
  background: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #fff !important;
}

#paymentMethodModal .modal-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

#paymentMethodModal .btn-cancel,
#paymentMethodModal .btn-process {
  min-width: 96px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

#paymentMethodModal .btn-cancel {
  background: #d1d5db !important;
  color: #111827 !important;
}

#paymentMethodModal .btn-process {
  background: #00d54b !important;
  color: #fff !important;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-800);
  min-height: 100vh;

  background:
    radial-gradient(circle at 15% 20%, rgba(255,107,53,.18), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(255,209,102,.15), transparent 40%),
    radial-gradient(circle at 75% 80%, rgba(217,72,15,.10), transparent 45%),
    linear-gradient(
      135deg,
      #f99c4a 0%,
      #ffa046 25%,
      #ffa54b 50%,
      #fea14b 75%,
      #ff983e 100%
    );

  background-attachment: fixed;
}

#orderActions[hidden],
#orderActions button[hidden] {
  display: none !important;
}

.more-indicator {
  display: inline-block;
  background: linear-gradient(135deg, #ffbd2b, #ff9a3d); 
  color: #2b1206; 
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-left: 12px;  
  margin-right: 4px;  
  white-space: nowrap;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.more-indicator:hover {
  background: linear-gradient(135deg, #ffa62e, #ff7a1a);
  cursor: default;
}

.pending-table td:nth-child(3) {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pending-table td:nth-child(3) {
    white-space: normal;
  }
  .more-indicator {
    margin-left: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    display: inline-block;
  }
}
.pending-table{
  table-layout: fixed;
  width: 100%;
}

.pending-table th:nth-child(1),
.pending-table td:nth-child(1){
  width: 300px;
  min-width: 300px;
  white-space: nowrap;
}

.pending-table th:nth-child(2),
.pending-table td:nth-child(2){
  width: 170px;
}

.pending-table th:nth-child(3),
.pending-table td:nth-child(3){
  width: 260px;
  white-space: nowrap;
}

.pending-table th:nth-child(4),
.pending-table td:nth-child(4){
  width: 180px;
  min-width: 180px;
  white-space: normal;
  padding-left: 28px !important;
}

.pending-table th:nth-child(5),
.pending-table td:nth-child(5){
  width: 120px;
  text-align: right;
}

.pending-table th:nth-child(6),
.pending-table td:nth-child(6){
  width: 150px;
}

.pending-table .order-link,
.pending-table td:first-child a{
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.pending-page{
  max-width: 1250px;
}

.pending-wrapper{
  max-width: 1250px;
}

.pending-table td:nth-child(3){
  padding-right: 35px !important;
}

.pending-table th:nth-child(4),
.pending-table td:nth-child(4) {
  width: 190px !important;
  white-space: normal;
  padding-left: 14px !important;
}

@media (max-width: 900px) {
  .pending-card {
    overflow-x: hidden !important;
  }

  .pending-table,
  .pending-table thead,
  .pending-table tbody {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .pending-table th:nth-child(2),
  .pending-table td:nth-child(2),
  .pending-table th:nth-child(3),
  .pending-table td:nth-child(3),
  .pending-table th:nth-child(5),
  .pending-table td:nth-child(5),
  .pending-table th:nth-child(6),
  .pending-table td:nth-child(6) {
    display: none !important;
  }

  .pending-table th:nth-child(1),
  .pending-table td:nth-child(1) {
    width: 64% !important;
    min-width: 0 !important;
    padding: 12px 10px !important;
  }

  .pending-table th:nth-child(4),
  .pending-table td:nth-child(4) {
    width: 36% !important;
    min-width: 0 !important;
    padding: 12px 8px !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .pending-table th:nth-child(4)::before {
    content: "Created At";
    font-size: 13px;
  }

  .pending-table th:nth-child(4) {
    font-size: 0 !important;
  }

  .pending-table .order-link {
    max-width: calc(100% - 36px) !important;
    display: inline-block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: middle;
  }

  .tracker-btn {
    width: 30px !important;
    margin-right: 6px !important;
    vertical-align: middle;
  }

  .tracker-btn img {
    width: 26px !important;
    height: 26px !important;
  }

  .pending-table tbody td {
    font-size: 12px !important;
  }
}

@media (max-width: 900px) {
  .pending-table th:nth-child(2),
  .pending-table td:nth-child(2),
  .pending-table th:nth-child(3),
  .pending-table td:nth-child(3),
  .pending-table th:nth-child(5),
  .pending-table td:nth-child(5),
  .pending-table th:nth-child(6),
  .pending-table td:nth-child(6) {
    display: none !important;
  }

  .pending-table th:nth-child(1),
  .pending-table td:nth-child(1) {
    width: 64% !important;
  }

  .pending-table th:nth-child(4),
  .pending-table td:nth-child(4) {
    display: table-cell !important;
    width: 36% !important;
    text-align: left !important;
  }

  .pending-table th:nth-child(4) {
    font-size: 0 !important;
  }

  .pending-table th:nth-child(4)::before {
    content: "Created At";
    font-size: 13px;
  }
}

.order-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.order-dot.green {
  background: #00d54b;
}

.order-dot.red {
  background: #dc3545;
}