/* css/pages/desk.css
   Owns: the Desk pages' own looks: Chemicals, Customers (and the printed statement), the Front desk
   (js/pages/desk/*.js); the shared parts are in kit.css, the narrower screens' in css/mobile.css. */

/* Tanks and alarms: 6-8 tiles a row at 1920, 4-5 at 1366. */
.chem .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.chem-pos { font-size: var(--fs-xs); color: var(--muted); }
.chem-bay + .chem-bay { margin-top: var(--s3); }
#chemInvSec.counting .dt td[data-col="tanks"], #chemInvSec.counting .dt th:last-child { display: none; }

/* Customers: the list (560 px, its own scroll) beside the open account (the rest, its own scroll); one under the other
   on narrow screens. */
.cus { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cus-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5) 0; }
.cus-top .sync-line { flex: 1 1 400px; margin: 0; }
.cus-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 560px minmax(0, 1fr); }
.cus-list { min-width: 0; overflow-y: auto; padding: var(--s3) var(--s4) var(--s6) var(--s5); border-right: 1px solid var(--line); }
.cus-detail { min-width: 0; overflow-y: auto; padding: var(--s3) var(--s5) var(--s6); }
.cus-reports { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s3) var(--s5) var(--s6); max-width: 1200px; }
.cus-pick { padding-top: var(--s6); }
.cus-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.cus-head h2 { margin: 0; font-size: 1.3rem; }
.big-num { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.lost-form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3); margin-bottom: var(--s3); }
.stmt-bar { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.stmt-month { display: flex; align-items: center; gap: var(--s2); color: var(--muted); }
.acct-statement > h3 { margin-top: 0; }
table.stmt { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
table.stmt th, table.stmt td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--row-line); vertical-align: top; }
table.stmt .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media print {
  /* the monthly statement alone, black on white */
  body.printing-statement * { visibility: hidden; }
  body.printing-statement #cusStatement, body.printing-statement #cusStatement * { visibility: visible; color: var(--black) !important; background: none !important; }
  body.printing-statement #cusStatement { position: absolute; left: 0; top: 0; width: 100%; }
  body.printing-statement .noprint { display: none !important; }
}

/* Front desk: the till and the card search on top; the bays (4 across at 1920, 2 by 2 at 1366) beside the comps and
   what needs attention. */
.fd-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.fd-till { display: flex; align-items: center; gap: var(--s2); }
.fd-till .page-status { margin: 0; }
.fd-find input { height: var(--ctl-h); min-width: 22em; padding: 0 var(--s2); background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.fd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s4); align-items: start; }
.fd-side .kit-card + .kit-card { margin-top: var(--s4); }
.fd .tiles.fd-tiles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.fd .tiles > .bay-tile { cursor: default; gap: var(--s2); padding: var(--s2) var(--s3) var(--s3); }
.fd .tiles > .bay-tile:hover { background: var(--panel); }
.bay-still { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--black); cursor: pointer; }
.bay-still:disabled { cursor: default; }
.bay-still img { display: block; width: 100%; height: 100%; object-fit: fill; }   /* fill: the stills are the whole 16:9 frame squeezed */
.bay-still img:not([src]) { visibility: hidden; }
.bay-still-none { position: absolute; inset: 0; display: grid; place-content: center; color: var(--muted); font-size: var(--fs-sm); }
.bay-display { margin: 0; min-height: 1.3em; font-family: var(--font-mono); color: var(--text-2); }
.bay-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--muted); }
.bay-acts { display: flex; flex-wrap: wrap; gap: var(--s1); }
.comps .comp { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.comps .comp:last-child { border-bottom: 0; }
.comp-acts { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 4px; }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
/* The till's count (actions/acw.js countBox): a box per bill, two to a row; the running total under them. */
.till-count { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.till-total { margin: var(--s1) 0 var(--s2); }
