/* pettyCash.css -- Finance > Petty Cash (public/pettyCash.js). xstyle: hairline borders, soft tints, state by text colour or a pill;
   no coloured side stripes. Tiles, chips, tabs, tables and the pop-up reuse the shared classes (ia-ubin, pp-chips, tab-btn, report);
   colours come from the shared variables (light and dark). */
.pc-tabel td.pc-cek { width: 28px; }
/* The reason wraps (it can be long) so the table stays narrow; the status takes two short lines. */
.pc-tabel td.pc-alasan { color: #9a4b0b; white-space: normal; min-width: 120px; max-width: 340px; overflow-wrap: anywhere; }
.pc-tabel td.pc-memo { white-space: normal; min-width: 150px; max-width: 175px; }
.pc-tabel td.pc-status small { color: var(--muted); font-size: 11px; }
#pcTabel:empty, #pwTabel:empty { display: none; }
.pc-cara { margin-top: 12px; max-width: 980px; line-height: 1.5; }
.pc-cara summary { cursor: pointer; font-weight: 600; }

/* Progress of a queued batch: one quiet bordered line per batch. */
.pc-jalan { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); font-size: 12.5px; }
.pc-jalan button { margin: 0 0 0 8px; }
.pc-jalan-gagal { margin: 6px 0 0; padding-left: 18px; color: #9a4b0b; }

/* Pop-up: facts of the claim as a small grid, then the two tabs. */
.pc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 22px; margin: 6px 0 4px; font-size: 12.5px; }
.pc-info div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pc-info span { color: var(--muted); font-size: 11.5px; }
.pc-info b { font-weight: 600; overflow-wrap: anywhere; }
tr.pc-total td { font-weight: 600; border-top: 1px solid var(--line); }
small.pc-catatan { color: var(--muted); font-size: 11px; }
td.pc-alasan small.pc-catatan { display: block; }
/* "Check NetSuite": when the rows were last compared with NetSuite, under the filter row. */
.pc-periksa { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.pc-periksa button { box-sizing: border-box; height: 30px; margin: 0; padding: 0 12px; white-space: nowrap; }
.pc-periksa span { color: var(--muted); font-size: 12px; }
.pc-periksa span.pc-periksa-galat { color: var(--danger); }
@media (max-width: 640px) { .pc-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Settings applied to a withdrawal journal (pop-up tab 2): a quiet tinted box, hairline border. */
.pc-aturan { margin: 8px 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-light); }
.pc-aturan-judul { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.pc-aturan .pc-info { margin: 2px 0 0; }

/* Filter row of both pages. Own layout (not the shared .report-filter-row): every control has the same height and box whatever its
   type (month, date, select, text), so the labels sit on one line and the inputs on one baseline. Fields start at a small width and
   grow up to a cap; the buttons stay on the same line and move to the right edge once the fields are at their caps. When the card
   is too narrow for one line (below about 1200 px), the buttons take their own line, left-aligned under the fields.
   Colours and backgrounds are left to the shared rules (light and dark). */
.pc-filter-kotak { container-type: inline-size; margin-top: 10px; }
.pc-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.pc-filter .pc-f { flex: 1 1 120px; min-width: 0; max-width: 220px; }
.pc-filter .pc-f-bulan { flex-basis: 140px; max-width: 200px; }
.pc-filter .pc-f-tgl { flex-basis: 130px; max-width: 160px; }
.pc-filter .pc-f-toko { flex-basis: 100px; max-width: 180px; }
.pc-filter .pc-f-cari { flex: 2 1 140px; max-width: 320px; }
.pc-filter label { display: block; margin: 0 0 4px; font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-filter input, .pc-filter select { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 36px; margin: 0; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 13px; line-height: 34px; }
.pc-filter .pc-f-aksi { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 8px; margin-left: auto; }
.pc-filter .pc-f-aksi button { box-sizing: border-box; height: 36px; margin: 0; padding: 0 16px; white-space: nowrap; }
@container (max-width: 1199px) { .pc-filter .pc-f-aksi { flex-basis: 100%; margin-left: 0; } }
