/* THE CUSTOMER'S PAGE. Deliberately not the laboratory's chrome.
 *
 * A customer opens this once or twice a year to answer one question - when is
 * my gauge due - so it is one column, one table, and nothing to navigate. The
 * type scale is the ERP's (base.css), because a second scale is how the
 * observation sheet came to read as two designs stacked. */
#portal { min-height: 100vh; background: var(--bg); color: var(--ink); }

.pt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px; background: var(--brand); color: #fff;
}
.pt-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pt-logo { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.pt-lab { font-weight: 600; }
.pt-accred { font-size: var(--fs-label); opacity: .8; }
.pt-head button { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.pt-head button:hover { background: rgba(255,255,255,.22); opacity: 1; }

.pt-main { max-width: 1000px; margin: 0 auto; padding: 22px; }
.pt-title { font-size: var(--fs-head); font-weight: 600; margin: 0 0 4px; }
.pt-sub2 { color: var(--ink-soft); margin: 0 0 14px; }

.pt-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; }
.pt-table { width: 100%; border-collapse: collapse; }
.pt-table th {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-faint); white-space: nowrap;
}
.pt-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-sub { color: var(--ink-faint); font-size: var(--fs-label); margin-top: 2px; }
.pt-none { color: var(--ink-faint); }
/* OVERDUE IS THE ONE THING THAT SHOUTS. Everything else on this page is
   information; this one is a thing the customer has to act on. */
.pt-over { color: var(--danger); }

.pt-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; color: var(--ink-soft); }
.pt-empty b { color: var(--ink); display: block; margin-bottom: 4px; }
.pt-foot { color: var(--ink-faint); margin-top: 16px; }

@media (max-width: 620px) {
  .pt-head { padding: 10px 14px; }
  .pt-main { padding: 14px; }
  .pt-accred { display: none; }
  /* ON A PHONE THE TABLE STOPS BEING A TABLE.
     Six columns do not fit 390px, and hiding two was not enough: "Next due"
     was still clipped at the right-hand edge, which is the one answer this
     page exists to give. So each row becomes a block and each cell carries
     its own label - nothing is off-screen and nothing scrolls sideways. */
  .pt-wrap { border: 0; background: transparent; overflow-x: visible; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: auto; }
  .pt-table thead { display: none; }
  .pt-table tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 4px 12px; margin-bottom: 10px;
  }
  .pt-table td { border-bottom: 0; padding: 5px 0; display: flex; gap: 10px;
    align-items: baseline; }
  .pt-table td::before {
    content: attr(data-l); flex: 0 0 116px; color: var(--ink-faint);
    font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em;
  }
  /* the instrument is the row's heading, not one of its fields */
  .pt-table td:first-child { display: block; padding: 6px 0 8px; }
  .pt-table td:first-child::before { content: none; }
}
