:root{
  --muted:#6c757d;
  --chip:#e9ecef;
  --border:#eee;
}

body{background:#fff}
.muted{color:var(--muted)}

/* ===== Top actions (consisten dgn index/tabung) ===== */
.top-actions{
  max-width:1140px;margin:12px auto 0;padding:0 12px;
  display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap
}
/* pill status "Log masuk sebagai ..." */
.pill{
  display:inline-block;background:#f8f9fa;border:1px solid #e9ecef;
  border-radius:999px;padding:2px 10px;font-size:12px
}
.pill-admin{background:#e8f7ee;border-color:#c9ecd8;color:#157347;font-weight:600}
/* butang kecil atas dibulatkan */
.top-actions .btn{border-radius:12px}
/* optional: gaya chip untuk link/penapis ringkas */
.btn-chip{border-radius:999px;padding:.35rem .9rem}

/* ===== Page wrapper ===== */
.page-wrap{max-width:1140px;margin:12px auto 48px;padding:0 12px}
.section-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px}
.section-card+.section-card{margin-top:14px}

/* ===== Table ===== */
table.tb{width:100%;border-collapse:collapse}
table.tb th,table.tb td{padding:12px;border-bottom:1px solid var(--border);vertical-align:middle}
table.tb thead th{background:#f7f7f7;font-weight:700}
.right{text-align:right}
.clickable{cursor:pointer}

/* =========== Modal Design =========== */
.preview-wrap{
  width:100%;border:1px solid var(--border);border-radius:12px;padding:10px;
  display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;
  background:#fafafa
}
.preview-wrap img{
  max-width:100%;height:auto;display:block;border-radius:10px;object-fit:contain;
}
.big-name{font-weight:600}

.design-grid{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:992px){ .design-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

.design-thumb{
  border:1px solid var(--border);border-radius:12px;padding:8px;
  display:flex;flex-direction:column;gap:6px;align-items:center;cursor:pointer;background:#fff;
  transition:box-shadow .15s,border-color .15s,transform .05s;
}
.design-thumb:hover{transform:translateY(-1px)}
.design-thumb.selected{border-color:#0d6efd;box-shadow:0 0 0 2px rgba(13,110,253,.15)}

.thumb-img{width:100%;height:110px;border-radius:8px;object-fit:cover;background:#f4f4f4}
.thumb-name{font-size:13px;text-align:center}

/* Ringkas */
.summary b{font-size:15px}

/* =========== Modal Sahkan Pembelian =========== */
.payment-note{color:#198754;font-weight:600}
.price-line{display:flex;justify-content:space-between;align-items:center}
.price-line b{font-size:1rem}
.modal-footer{flex-wrap:wrap;gap:.5rem}
.btn-wide{min-width:220px}
@media (max-width:576px){ .btn-wide{min-width:100%} }

.ship-box{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}
.ship-box .form-check{margin-right:10px}

.method-box{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}
.method-box .form-check{margin-right:10px}

.coupon-box{border:1px dashed #cfcfcf;border-radius:10px;padding:10px;background:#fcfcfc}