/* Modul Order Dropship */
.orders-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.orders-hero h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.stat-card .num {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.stat-card.warn .num { color: var(--warn); }
.stat-card.ok .num { color: var(--ok); }
.stat-card.danger .num { color: #f87171; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-status.tone-info { color: var(--accent2); border-color: #0369a1; background: #0c4a6e33; }
.badge-status.tone-warn { color: var(--warn); border-color: #a16207; background: #42200655; }
.badge-status.tone-ok { color: var(--ok); border-color: #15803d; background: #14532d44; }
.badge-status.tone-danger { color: #f87171; border-color: #991b1b; background: #450a0a55; }
.badge-status.tone-muted { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface2);
  position: sticky;
  top: 0;
}

.data-table tr:hover td {
  background: #ffffff08;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
}

.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-success {
  background: #15803d;
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kv {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.kv dt {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.kv dd {
  margin: 0.1rem 0 0;
}

.pay-box {
  background: linear-gradient(135deg, #0c4a6e 0%, #1e3a5f 100%);
  border: 1px solid #0369a1;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.pay-box a {
  word-break: break-all;
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.toolbar select,
.toolbar input[type="search"] {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.65rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px #0006;
  z-index: 100;
  display: none;
}

.toast.show { display: block; }

.pulse-dot {
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}
.notice p { margin: 0.35rem 0 0; color: var(--muted); }
.notice-warn { background: #422006; border: 1px solid #a16207; }
.notice-info { background: #0c4a6e; border: 1px solid #0369a1; }
.notice-success { background: #14532d; border: 1px solid #15803d; }

.flow-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
}
.flow-step {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
}
.flow-step strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }

.submit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000a;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.submit-overlay.show { display: flex; }
.submit-overlay .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 420px;
  text-align: center;
}
.submit-overlay .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
