/* Solar Estimator — frontend */
.se-app {
	max-width: 100%;
	margin: 0 auto;
	font-size: 15px;
}

.se-form {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 24px;
}

.se-form-title {
	margin: 0 0 18px;
	font-size: 20px;
	color: rgb(28, 94, 46);
	text-align: center;
}

.se-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.se-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.se-field input,
.se-field select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	box-sizing: border-box;
	height: 45px;
}

.se-field input:focus,
.se-field select:focus {
	outline: none;
	border-color: #f39c12;
	box-shadow: 0 0 0 2px rgba(243, 156, 18, .18);
}

.se-actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.se-btn {
	border: none;
	border-radius: 6px;
	padding: 11px 28px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s;
}

.se-btn:hover {
	opacity: .88;
}

.se-btn-calc {
	background: #f39c12;
	color: #fff;
}

.se-btn-pdf {
	background: rgb(28, 94, 46);
	color: #fff;
}

.se-btn[disabled] {
	opacity: .55;
	cursor: wait;
}

.se-error {
	margin-top: 14px;
	color: #c0392b;
	background: #fdecea;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
}

/* Ket qua */
.se-results-title {
	font-size: 17px;
	color: rgb(28, 94, 46);
	text-align: center;
	margin: 0 0 16px;
}

table.se-summary {
	border-collapse: collapse;
	margin: 0 auto 10px;
}

table.se-summary th,
table.se-summary td {
	border: 1px solid #d7dee5;
	padding: 6px 14px;
	font-size: 14px;
}

table.se-summary th {
	text-align: left;
	background: rgb(240, 247, 238);
	font-weight: 600;
}

table.se-summary td {
	text-align: right;
}

.se-payback {
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: #c0392b;
	margin: 10px 0 18px;
}

.se-payback-value {
	font-size: 22px;
}

.se-table-wrap {
	overflow-x: auto;
	border: 1px solid #d7dee5;
	border-radius: 6px;
}

table.se-table {
	border-collapse: collapse;
	width: max-content;
	min-width: 100%;
	font-size: 12px;
}

table.se-table th,
table.se-table td {
	border: 1px solid #d7dee5;
	padding: 4px 6px;
	white-space: nowrap;
}

table.se-table thead th {
	background: rgb(28, 94, 46);
	color: #fff;
	text-align: center;
	position: sticky;
	top: 0;
}

table.se-table .se-c-label {
	text-align: left;
	font-weight: 600;
	position: sticky;
	left: 0;
	background: #fff;
	box-shadow: 1px 0 0 #d7dee5;
}

table.se-table thead .se-c-label {
	background: rgb(28, 94, 46);
}

td.se-num {
	text-align: right;
}

tr.se-r-pvout td,
tr.se-r-prod td {
	background: #fdf3e3;
	font-weight: 600;
}

tr.se-r-pvout td.se-c-label,
tr.se-r-prod td.se-c-label {
	background: #fdf3e3;
}

tr.se-r-sub td {
	background: #f4f6f8;
	text-align: center;
	font-style: italic;
	color: #64748b;
}

tr.se-r-sub td.se-c-label {
	background: #f4f6f8;
}

tr.se-r-total td,
tr.se-r-vat td {
	background: rgb(240, 247, 238);
	font-weight: 600;
}

tr.se-r-total td.se-c-label,
tr.se-r-vat td.se-c-label {
	background: rgb(240, 247, 238);
}

tr.se-r-grand td {
	background: #d5e8d4;
	font-weight: 700;
}

tr.se-r-grand td.se-c-label {
	background: #d5e8d4;
}