/* المخازن: the Stores */
.st-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.st-fig { display: flex; flex-direction: column; gap: 3px; background: #fffdf8; border: 1px solid #e4dab8; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: inherit; }
.st-fig small { font-size: 11.5px; color: #8a8466; }
.st-fig b { font-size: 19px; font-variant-numeric: tabular-nums; }
.st-fig.bad b { color: #9b2c2c; }
.st-fig.warn b { color: #8a5a20; }
.st-cats { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.st-cats .chip { text-decoration: none; padding: 3px 11px; border-radius: 99px; border: 1px solid #d8cb9f; background: #fffdf8; color: #6f6843; font-size: 12.5px; }
.st-cats .chip.on { background: #26231f; color: #f3ecda; border-color: #26231f; }
.section-h.bad { color: #9b2c2c; }

/* ---- the review of 2026-10-24 */
/* An empty tile on the Arabic page says «لا شيء» in the tile's own weight, not a dot that reads as a speck. */
.st-fig b.st-none { font-size: 15px; line-height: 27px; color: var(--ui-muted); font-weight: 600; }
/* One toolbar above a list: the choices at the start, the search and the action at the end. */
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.st-tools .grow { flex: 1; }
.st-tools .st-cats { display: flex; margin: 0; }
.st-tools input[type="search"] { flex: 0 1 280px; min-width: 0; width: auto; }
@media (max-width: 760px) {
  .st-tools .grow { display: none; }
  .st-tools input[type="search"] { order: -1; flex: 1 1 100%; }
  .st-tools .st-cats { flex: 1 1 auto; }
}
/*
 * The side menu on a narrower screen: one dark row («Work · My desk ▾») that opens into an even grid of two equal
 * columns — the People section's pattern (hr-reports.css), drawn here for this room's own menu so it holds whatever
 * that file does.
 */
.hrm-side.st-side .hrm-tog { display: none; }
@media (max-width: 1000px) {
  .hrm > .hrm-side.st-side { display: block; padding: 0; border-radius: 12px; }
  .hrm > .hrm-side.st-side .hrm-tog { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: none; border: 0; color: #f6f1e3; font: inherit; font-size: 14px; cursor: pointer; text-align: start; }
  .hrm-side.st-side .hrm-tog .hrm-tog-s { color: var(--ui-gold); font-size: 12px; letter-spacing: .04em; flex: none; }
  .hrm-side.st-side .hrm-tog b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hrm-side.st-side .hrm-tog i { font-style: normal; color: var(--ui-gold); transition: transform .15s; flex: none; }
  .hrm > .hrm-side.st-side.open .hrm-tog i { transform: rotate(180deg); }
  .hrm > .hrm-side.st-side .hrm-brand, .hrm > .hrm-side.st-side .hrm-g { display: none; }
  .hrm > .hrm-side.st-side.open { padding-bottom: 10px; }
  .hrm > .hrm-side.st-side.open .hrm-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 4px; padding: 0 8px; margin: 0; }
  .hrm > .hrm-side.st-side.open .hrm-l { font-size: 13px; padding: 8px; min-width: 0; line-height: 1.3; }
}
/* An empty count is a muted figure, like the operations' tiles; the Arabic zero is set larger so it reads as one. */
.st-fig.zero b { color: var(--ui-muted); }
[dir=rtl] .st-fig b { font-size: 22px; }

/* ---- the review of 2026-10-24, third round (faults3-ops) */
/* A tile's figure stands on the same line as its neighbours' whether its label takes one line or two. */
.st-fig b { margin-top: auto; }
/* The number a thing carries in the Stores (ST-0014), small beside its name. */
.st-code { white-space: nowrap; font-weight: 400; }
.st-tbl .st-l { display: none; }
/*
 * On a phone every list of the Stores is a card per row, as the office's other lists are (Operations, Work rules, Dues):
 * the item's name on top, then each value under its column's name, two to a row, and the buttons at the foot. Nothing
 * is squeezed into a column of 55 px, and nothing hides past the screen's edge.
 */
@media (max-width: 760px) {
  #view .card.st-tcard, #view .card:has(> table.st-tbl) { overflow: hidden; overflow: clip; }
  #view .card.st-tcard { padding: 0; }
  #view table.grid.st-tbl, #view table.st-tbl > tbody { display: block; width: 100%; min-width: 0; max-width: 100%; overflow: visible; background: transparent; }
  #view table.st-tbl > thead { display: none; }
  #view table.st-tbl > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid var(--ui-line); }
  #view table.st-tbl > tbody > tr:last-child { border-bottom: 0; }
  #view table.st-tbl > tbody > tr > td { display: block; width: auto; padding: 0; border: 0; min-width: 0; background: transparent; white-space: normal; overflow-wrap: anywhere; }
  #view table.st-tbl > tbody > tr > td.st-w { grid-column: 1 / -1; }
  #view table.st-tbl > tbody > tr > td:empty { display: none; }
  #view table.st-tbl > tbody > tr > td.st-t { font-size: 14px; }
  #view table.st-tbl .st-l { display: block; font-size: 11px; line-height: 1.3; color: var(--ui-muted); margin-bottom: 3px; }
  #view table.st-tbl > tbody > tr > td.st-acts { display: flex; flex-wrap: wrap; gap: 6px; }
  #view table.st-tbl .tag { white-space: nowrap; }
  #view table.st-tbl .st-code, #view table.st-tbl .ltr { overflow-wrap: normal; }
  /* A booking: its two dates side by side under the item, then the commission and the note. */
  #view table.st-bk > tbody > tr > td:nth-child(3) { order: 1; }
  #view table.st-bk > tbody > tr > td:nth-child(4) { order: 2; }
  #view table.st-bk > tbody > tr > td:nth-child(2) { order: 3; }
  #view table.st-bk > tbody > tr > td:nth-child(5) { order: 4; }
  #view table.st-bk > tbody > tr > td:nth-child(6) { order: 5; }
}
