/* WmsDataGrid (design system §6.3). Header sticky lewat max-height container — ⛔ utak-atik overflow
   (lebar kolom header↔body putus). */
.app-grid-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.app-grid-toolbar .mud-input-control { margin-top: 0; margin-bottom: 0; }
.app-grid-search { flex: 0 1 340px; min-width: 220px; }
.app-grid-search-wide { flex: 1 1 420px; min-width: 330px; }
.app-grid-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* slot kanan: align-items CENTER (⛔ baseline — teks kecil melayang naik terhadap tombol) */
.app-grid-toolbar-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.app-grid.mud-table { border-radius: var(--app-radius-card); background: var(--app-surface); }
.app-grid .mud-table-container { border-radius: var(--app-radius-card) var(--app-radius-card) 0 0;
                                 max-height: calc(100dvh - var(--app-topbar-h) - 240px); }
.app-grid .mud-table-head .mud-table-cell { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
                                            color: var(--app-text-muted); background: var(--app-surface-alt); }
.app-grid .mud-table-body .mud-table-cell { font-size: 13px; color: var(--app-ink-3); }
.app-grid .mud-table-striped .mud-table-body .mud-table-row:nth-of-type(odd) { background: var(--app-surface-stripe); }
.app-grid-panel { background: var(--app-surface); border: 1px solid var(--app-border-firm); border-radius: var(--app-radius-card); }

.app-col-right { text-align: right !important; }
.app-col-right .column-header { justify-content: flex-end !important; }   /* header DataGrid = flex: text-align diabaikan */
.app-col-center { text-align: center !important; }
.app-col-center .column-header { justify-content: center !important; }
.app-col-nowrap { white-space: nowrap; }
.app-row-muted { opacity: .55; }

/* sel bertumpuk: utama + sub kecil (lot + batch, palet + lokasi) */
.app-cell-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-cell-sub { font-size: 11.5px; color: var(--app-text-muted); }
.app-cell-link { color: var(--app-brand); font-weight: 600; text-decoration: none; }
.app-cell-link:hover { text-decoration: underline; }
.app-row-actions { display: inline-flex; gap: 2px; }

/* pager bernomor kanan-bawah */
.app-grid-pager { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; padding: 10px 16px;
                  border-top: 1px solid var(--app-border); }
.app-grid-pager-info { margin-right: auto; font-size: 12px; color: var(--app-text-muted); }
.app-grid-pager-size.mud-input-control, .app-grid-pager-size .mud-input-control { width: 150px; flex: 0 0 auto; margin: 0; }

/* input di toolbar & pager: ukuran teks padat, setara sel tabel (bawaan Mud 16px terlalu besar untuk layar data) */
.app-grid-toolbar .mud-input, .app-grid-pager .mud-input { font-size: 13.5px; }
.app-grid-toolbar .mud-input-label { font-size: 13.5px; }

/* sel utama (ItemCell) + utilitas teks */
.app-cell-main { font-weight: 600; color: var(--app-ink-2); }
.app-cell-plain { font-weight: 400; color: var(--app-ink-3); }
.app-break-any { overflow-wrap: anywhere; }
