/* Rutu Labs PACS additions on top of the shared Rutu Labs styles (style.css, rutu.css, seasons.css). */
.pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pipe .stage { text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; font: inherit; color: inherit; }
.pipe .stage .n { font-size: 26px; font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1080px) { .two { grid-template-columns: 1fr !important; } }
.tbl .sub2 { display: block; color: var(--ink-3); font-size: 13px; }
.tbl tr[data-action] { cursor: pointer; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.priors { border-top: 1px solid var(--line); padding: 8px 0; }
.doc h3 { margin: 12px 0 4px; font-size: 15px; } .doc p { margin: 0 0 2px; }
textarea { width: 100%; }
body.signed-out .side nav, body.signed-out .side-foot { display: none; }

/* ---------- printing (bills, reports, daily collection) ---------- */
#print-area { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block !important; position: absolute; left: 0; top: 0; width: 100%; }
  .print-doc { font: 11.5pt/1.45 system-ui, sans-serif; color: #000; }
}
.pd-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
.pd-head img { max-height: 64px; max-width: 160px; }
.pd-head b { font-size: 16pt; }
.pd-meta, .pd-items { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.pd-meta td { padding: 2px 0; }
.pd-items th, .pd-items td { border-bottom: 1px solid #999; padding: 4px 2px; text-align: left; }
.pd-items .num { text-align: right; }
.pd-title { text-align: center; font-size: 14pt; margin: 6px 0 12px; text-decoration: underline; }
.print-doc h3 { font-size: 12pt; margin: 10px 0 4px; }
.print-doc p { margin: 0 0 2px; }
.pd-sign { margin-top: 36px; text-align: right; }
.pd-add { margin-top: 14px; border-top: 1px dashed #999; padding-top: 6px; }
.pd-foot { margin-top: 18px; font-size: 9.5pt; color: #333; border-top: 1px solid #999; padding-top: 6px; }
.fieldgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 14px; }
.fieldgrid .fld input, .fieldgrid .fld select, .frow .fld input, .frow .fld select { width: 100%; min-width: 0; }
.fld label { white-space: normal; }
form.panel h3 { margin: 16px 0 8px; font-size: 15px; }
.panel + .panel, .two + .panel, .panel + .two, .pipe + .two { margin-top: 16px; }
.head .sub .pill { width: auto; display: inline-block; vertical-align: middle; }
/* ---------- version 2 ---------- */
.token { display: inline-block; min-width: 2.2em; text-align: center; font-weight: 700; background: var(--accent, #0b6b58); color: #fff; border-radius: 8px; padding: 1px 6px; }
.token-big { font-size: 72px; font-weight: 800; text-align: center; line-height: 1.1; margin: 8px 0; }
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.alert span { flex: 1; } .alert.bad { border-color: #d14b3c; background: rgba(209, 75, 60, .08); } .alert.warn { border-color: #d9a21e; background: rgba(217, 162, 30, .08); }
tr.crit td:first-child { box-shadow: inset 4px 0 #d14b3c; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.thumbs figure { margin: 0; display: grid; gap: 4px; width: 132px; }
.thumbs.small figure { width: 104px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; border-radius: 6px; border: 2px solid transparent; }
.thumbs figure.key img { border-color: #d9a21e; }
select.room { max-width: 150px; }
.checks span { margin-right: 6px; white-space: nowrap; }
img.ph { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.slip { max-width: 80mm; text-align: center; }
.tbl td.act { white-space: normal; text-align: right; max-width: 380px; }
.tbl td.act .btn { margin: 2px 0 2px 4px; }
.pill { white-space: nowrap; }
