/* Staff site, 7 of 13: quotes and invoices (line tables, money, the client link) and the client's own pages. */

/* Line tables and money */
.line-table th.num, .line-table td.num, th.num, td.num { text-align: right; white-space: nowrap; }
/* Off-screen, not display:none, so every browser still treats it as the form's Enter button. */
.default-submit { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.line-table input, .line-table select { padding: .3rem .4rem; }
.line-table select { padding-right: 2rem; }
.line-table td.num input { text-align: right; min-width: 5rem; }
.line-table td { vertical-align: middle; }
tr.past td { color: var(--muted); }
/* No column gap: the space between label and figure is the figure's own padding, so the rule over
   the grand total runs unbroken across both. */
.totals { display: grid; grid-template-columns: 1fr max-content; gap: .2rem 0; margin: .75rem 0 0; max-width: 22rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; padding-left: 1rem; text-align: right; }
.totals .grand { font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: .3rem; }

/* Client link */
.link-box { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.link-box label { flex: 1 1 20rem; margin: 0; }
.link-box input { background: var(--well); }
/* Email to client posts its own small form; it sits in the row as a button would. */
.link-box-form { display: contents; }
.email-status { margin: .5rem 0 0; font-size: var(--fs-small); }
.invite-status { display: block; margin-top: .25rem; font-size: var(--fs-small); }

/* Client-facing pages */
.public-shell { min-height: 100%; padding: 1.5rem 1rem 2rem; display: flex; flex-direction: column; align-items: center; }
.public-card {
    width: 100%; max-width: 720px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.public-card h1 { font-size: 1.35rem; }
.public-card h2 { margin-top: 1.5rem; }
.public-company { font-weight: 700; color: var(--primary); margin: 0 0 .5rem; }
.public-foot { margin: 1rem 0 0; font-size: var(--fs-small); }
.alert-neutral { background: var(--well); color: var(--text); }
.addons { list-style: none; margin: .5rem 0; padding: 0; }
.addons li {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    border-bottom: 1px solid var(--border); padding: .5rem 0;
}

@media (max-width: 480px) {
    .public-shell { padding: .75rem .5rem 1.5rem; }
    .public-card { padding: 1rem; }
    .line-table th, .line-table td { padding: .4rem .25rem; }
}
