/* pipesize.css
 * Styles for pipesize.php — mirrors ductsize.css conventions.
 */

/* ── Page background ─────────────────────────────────────── */
body {
	background-color: #f4f6f9;
}

/* ── Page wrapper spacing ────────────────────────────────── */
.page-content {
	padding-top: 16px;
	padding-bottom: 40px;
}

/* ── Tab strip ───────────────────────────────────────────── */
.nav-tabs {
	border-bottom: none;
	gap: 4px;
	flex-wrap: wrap;
}
.nav-tabs .nav-item {
	flex: 1 1 auto;
}
.nav-tabs .nav-link {
	color: #495057;
	border-radius: 6px 6px 0 0;
	padding: 8px 10px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid transparent;
	transition: background 0.15s, color 0.15s;
	text-align: center;
	width: 100%;
	white-space: nowrap;
}
.nav-tabs .nav-link:hover {
	background-color: #e9ecef;
	color: #212529;
}
.nav-tabs .nav-link.active {
	background-color: #fff;
	color: #0d6efd;
	border-color: #dee2e6 #dee2e6 #fff;
}

/* ── Tab content card ────────────────────────────────────── */
.tab-content > .tab-pane {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0 0 8px 8px;
	padding: 24px;
}

/* ── Form labels ─────────────────────────────────────────── */
.form-label {
	font-weight: 500;
	font-size: 0.875rem;
	color: #343a40;
	margin-bottom: 4px;
}

/* ── Form controls ───────────────────────────────────────── */
.form-control,
.form-select {
	border-radius: 6px;
	font-size: 0.9rem;
}
.form-control[readonly] {
	background-color: #e9ecef;
	font-weight: 600;
	color: #0d6efd;
}

/* ── Radio option groups ─────────────────────────────────── */
.option-group {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 12px 16px;
}
.option-group legend {
	font-size: 0.8rem;
	font-weight: 600;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	float: none;
	width: auto;
	padding: 0 4px;
	margin-bottom: 8px;
}
.form-check-inline {
	margin-right: 16px;
}
.form-check-label {
	font-size: 0.875rem;
}

/* ── Hydronic results table ──────────────────────────────── */
#hydronictable {
	font-size: 0.85rem;
}
#hydronictable thead th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
	border-bottom: 2px solid #dee2e6;
	white-space: nowrap;
}
#hydronictable td {
	vertical-align: middle;
}

/* ── Table footnotes ─────────────────────────────────────── */
.table-footnote {
	font-size: 0.78rem;
	color: #6c757d;
}

/* ── Pipe type badges (copper / steel) ───────────────────── */
.badge-copper {
	background-color: #fd7e14;
	color: #fff;
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 600;
}
.badge-steel {
	background-color: #495057;
	color: #fff;
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 600;
}

/* ── Advanced tab result fields with color warnings ─────── */
.result-above { color: #dc3545 !important; }
.result-below { color: #0d6efd !important; }
.result-normal { color: #198754 !important; }

/* ── Gas error message ───────────────────────────────────── */
#inputErrorText {
	font-size: 0.875rem;
	font-weight: 600;
	color: #dc3545;
}
