/* Dream Riser's own styles (project-owned; loaded after custom.css, on prints and in a report's new tab). */

/* Special Items PO print (IMS #2436): the client's PO layout with even spacing (owner, 2026-12-01). */
.psi-po {
	font-size: 11px;
}

.psi-po .table {
	margin-bottom: 12px;
}

.psi-po .table > :not(caption) > * > * {
	padding: 6px 8px;
}

/* Title lines under the letterhead, right-aligned, with room before the first box, as on the old prints (IMS #2582). */
.psi-po-title {
	text-align: right;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	margin: 12px 0 14px;
}

/* Materials / Equipment PO (IMS #2583): notes under the items, three sign-off boxes, the permit footer. */
.psi-po-notes {
	margin-top: 12px;
}

.psi-po-signoff {
	width: 33%;
}

.psi-po-signoff > div {
	min-height: 2.5em;
	margin-top: 1em;
}

.psi-po-footer {
	font-size: 10px;
	margin-top: 6px;
}

/* Every box and row starts at its top, so side-by-side blocks line up. */
.psi-po td,
.psi-po th {
	vertical-align: top !important;
}

.psi-po-left {
	width: 40%;
}

.psi-po-block + .psi-po-block {
	margin-top: 8px;
}

/* Label-value rows inside a box: no borders of their own. */
.psi-po-sub {
	width: 100%;
}

.psi-po-sub th,
.psi-po-sub td {
	border: 0 !important;
	padding: 1px 12px 1px 0 !important;
	vertical-align: top;
}

.psi-po-sub th {
	width: 20%;
	white-space: nowrap;
}

/* The invoice line: its own line above the items, never over a border. Red as on the client's PO: the print
   copies force every text dark (#report-pane, helper.mjs and report_tab.php), so this one keeps the theme's red. */
.psi-po-note {
	font-weight: 700;
	font-style: italic;
	font-size: 14px;
	margin-bottom: 8px;
}

#report-pane .psi-po .psi-po-note.text-danger {
	color: var(--bs-danger) !important;
}

.psi-po-lines,
.psi-po-totals {
	width: 100%;
}

.psi-po-lines th,
.psi-po-lines td,
.psi-po-totals th,
.psi-po-totals td {
	border: 0 !important;
	padding: 3px 8px 3px 0 !important;
}

.psi-po-lines thead th {
	white-space: nowrap;
	font-size: 13px;
	padding-bottom: 6px !important;
}

.psi-po-lines .psi-po-num,
.psi-po-totals .psi-po-num {
	text-align: right !important;
	width: 20%;
}

.psi-po-totals {
	margin-top: 12px;
}

.psi-po-totals th {
	width: 30%;
	text-align: left;
}

.psi-po-totals .psi-po-gap {
	width: 25%;
}

.psi-po-totals .psi-po-rule {
	border-bottom: 1px solid currentColor !important;
}

.psi-po-sign {
	display: flex;
	flex-wrap: wrap;
	column-gap: 160px;
}

/* Instructions: wrapped text stays under its own text, never under the number. */
.psi-po-steps {
	margin: 6px 0 0;
	padding-left: 40px;
	font-size: 10px;
}

.psi-po-steps > li {
	padding-left: 6px;
	margin-bottom: 4px;
}

.psi-po-steps ul {
	margin: 2px 0 0;
	padding-left: 20px;
}

/* Typeable on screen; the hint is never printed. */
@media screen {
	.psi-po [contenteditable="true"]:empty::before {
		content: attr(data-ph);
		opacity: 0.6;
	}
}

/* The invoice line is blank unless staff type it (owner): an empty one leaves no gap on paper. */
@media print {
	.psi-po .psi-po-note:empty {
		display: none;
	}
}
