
/* ============ Transfer Antar Gudang (in-transit) + surat jalan / berita acara ============ */
.xs { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.xs.IN_TRANSIT { background: #fef3c7; color: #92400e; } .xs.COMPLETED, .xs.RECEIVED { background: #dcfce7; color: #166534; }
.xs.CANCELLED, .xs.RETURNED { background: #e5e7eb; color: #4b5563; }
.xs.PENDING_APPROVAL, .xs.PENDING { background: #ede9fe; color: #5b21b6; } .xs.REJECTED { background: #fee2e2; color: #991b1b; }
.xf-dir { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.xf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.xf-sum > div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.xf-sum small { display: block; color: #64748b; font-size: 12px; } .xf-sum b { font-size: 20px; }
.xf-pick { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.xf-tb { width: 100%; border-collapse: collapse; } .xf-tb td, .xf-tb th { padding: 5px 8px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.xf-tb th { position: sticky; top: 0; background: #f8fafc; z-index: 1; } .xf-tb input.input { width: 100%; box-sizing: border-box; min-width: 150px; }
.xf-tb td.r, .xf-tb th.r { text-align: right; }

/* ---- dokumen cetak ---- */
#printdoc { position: fixed; inset: 0; z-index: 9999; background: #cbd5e1; overflow: auto; padding: 0 12px 24px; }
#printdoc .pbar { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 10px 0; }
#printdoc .pbar span { margin-right: auto; font-weight: 600; color: #334155; }
.pdoc { background: #fff; max-width: 900px; margin: 0 auto; padding: 28px 34px; color: #111827; font: 12px/1.45 Arial, Helvetica, sans-serif; box-shadow: 0 2px 14px rgba(15,23,42,.25); }
.pdoc h1 { font-size: 17px; margin: 0; text-align: center; letter-spacing: .5px; } .pdoc .co { text-align: center; font-weight: 700; font-size: 14px; }
.pdoc .no { text-align: center; margin: 4px 0 14px; } .pdoc hr { border: 0; border-top: 2px solid #111827; margin: 8px 0 12px; }
.pdoc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.pdoc .box { border: 1px solid #94a3b8; padding: 7px 9px; border-radius: 4px; } .pdoc .box b.t { display: block; font-size: 11px; color: #475569; text-transform: uppercase; margin-bottom: 2px; }
.pdoc table.ptab { width: 100%; border-collapse: collapse; margin: 8px 0; } .pdoc .ptab th, .pdoc .ptab td { border: 1px solid #64748b; padding: 4px 6px; text-align: left; font-size: 11px; vertical-align: top; }
.pdoc .ptab th { background: #e2e8f0; } .pdoc .ptab .r { text-align: right; } .pdoc .ptab tfoot td { font-weight: 700; background: #f1f5f9; }
.pdoc .sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; text-align: center; page-break-inside: avoid; }
.pdoc .sign.q4 { grid-template-columns: 1fr 1fr 24mm 1fr; gap: 10px; } .pdoc .sign .qrc { min-height: 0; display: flex; align-items: center; justify-content: center; padding-top: 18px; }
.pdoc .sign div { min-height: 96px; } .pdoc .sign .ln { border-bottom: 1px solid #111827; height: 58px; margin: 0 14px 4px; } .pdoc .sign small { color: #475569; }
.pdoc .foot { margin-top: 14px; font-size: 10px; color: #64748b; text-align: center; } .pdoc p { margin: 6px 0; }
@media print {
  body > *:not(#printdoc) { display: none !important; }
  #printdoc { position: static !important; background: #fff !important; padding: 0 !important; overflow: visible !important; }
  #printdoc .pbar { display: none !important; }
  .pdoc { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  @page { size: A4; margin: 14mm; }
}
