/* Time Office on the register model (MVP cut S1, docs/mockups/time-office.html):
   the register's row actions, the vehicle modal's kind segments and item grid,
   New weighment's net, and the weighment slip (with its print rules). */
.to-acts { display: flex; gap: var(--s2); align-items: center; justify-content: flex-end; }
form.inline { display: inline; }
.btn-shell.sm { height: var(--ctl-sm); padding: 0 var(--s3); font-size: var(--t13); }
.btn-shell.icon { width: var(--ctl-sm); padding: 0; }
.btn-shell[disabled] { opacity: .45; cursor: not-allowed; }
table.reg a.strong { font-weight: 600; }

.to-form { display: grid; gap: var(--s3); }
.to-kind a { height: 100%; }
.ro-v { min-height: var(--ctl); display: flex; align-items: center; }
.to-brk { border: 0; border-top: 1px solid var(--edge); margin: var(--s1) 0; width: 100%; }
.to-items-now { display: grid; gap: 2px; }
.to-items-now .chk.off { color: var(--ink-3); cursor: not-allowed; }
.to-itms { display: grid; gap: var(--s2); }
.to-itm { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) 124px 84px var(--ctl-sm); gap: var(--s2); align-items: center; }
.to-itm.hd { font-size: var(--t12); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.to-itm input, .to-itm select {
  width: 100%; height: var(--ctl); background: var(--well); color: var(--ink);
  border: 1px solid var(--edge-2); border-radius: var(--r); padding: 0 var(--s2); font: var(--t14) var(--body); min-width: 0;
}
.to-itm input.num { text-align: right; font-family: var(--mono); }
.to-itm .to-ro { font-size: var(--t12); }
@media (max-width: 559.98px) {
  .to-itm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--ctl-sm); padding-bottom: var(--s2); border-bottom: 1px solid var(--edge); }
  .to-itm .w { grid-column: 1 / -1; }
  .to-itm.hd { display: none; }
}

.pos { color: var(--green-ink); }
.neg { color: var(--rust-ink); }

.to-slip { padding: var(--s5); display: grid; gap: var(--s4); max-width: 760px; }
.to-slip-h { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; border-bottom: 1px solid var(--edge-2); padding-bottom: var(--s3); }
.to-slip-h .co { font-family: var(--disp); font-weight: 700; font-size: var(--t16); letter-spacing: .06em; color: var(--ink); }
.to-slip-h .no { margin-left: auto; font: 600 var(--t20) var(--mono); color: var(--ink); }
.to-slip dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 9rem minmax(0, 1fr); gap: var(--s2) var(--s3); margin: 0; }
.to-slip dt { font-size: var(--t12); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding-top: 2px; }
.to-slip dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.to-wts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--edge-2); border-radius: var(--r); overflow: hidden; }
.to-wts > div { padding: var(--s3) var(--s4); display: grid; gap: 2px; border-left: 1px solid var(--edge-2); }
.to-wts > div:first-child { border-left: 0; }
.to-wts .k { font-size: var(--t12); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.to-wts .v { font: 600 var(--t20) var(--mono); color: var(--ink); }
.to-wts .t { font: var(--t12) var(--mono); color: var(--ink-3); }
.to-wts .t.pos { color: var(--green-ink); }
.to-wts .t.neg { color: var(--rust-ink); }
.to-wts .net { background: var(--well); }
.to-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); padding-top: var(--s6); }
.to-signs div { border-top: 1px solid var(--edge-2); padding-top: var(--s1); font-size: var(--t12); color: var(--ink-3); }
@media (max-width: 640px) {
  .to-slip { padding: var(--s4); }
  .to-slip dl { grid-template-columns: 8rem minmax(0, 1fr); }
  .to-wts { grid-template-columns: 1fr; }
  .to-wts > div { border-left: 0; border-top: 1px solid var(--edge-2); }
  .to-wts > div:first-child { border-top: 0; }
}
@media print {
  :root, :root[data-theme] { --deck: #fff; --panel: #fff; --well: #f3f3f3; --edge: #999; --edge-2: #555; --ink: #000; --ink-2: #000; --ink-3: #333; --ink-4: #666; }
  body:has(.to-slip) { background: #fff; }
  body:has(.to-slip) .side, body:has(.to-slip) .top, body:has(.to-slip) .crumbs, body:has(.to-slip) .head, .noprint { display: none !important; }
  body:has(.to-slip) .panel { border: 0; }
  /* The sidebar is hidden; its space goes too, so the slip starts at the margin. */
  body:has(.to-slip) .content { margin-left: 0 !important; max-width: none; }
  body:has(.to-slip) main { padding: 0; }
  body:has(.to-slip) main > .row:has(.text-success, .text-danger) { display: none; }
  .to-slip { max-width: none; padding: 0; }
}
.to-kind { justify-self: start; }
/* A modal's form opened as its own page: the card grows with the form instead of
   scrolling inside a dialog-high panel. */
.content .pmodal-card .pmodal-panel { max-height: none; }
