:root {
	color-scheme: light;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	background: #f4f6f8;
	color: #18202a;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
}

main {
	width: min(1120px, calc(100vw - 32px));
	margin: 40px auto;
	display: grid;
	gap: 20px;
}

.panel,
.result {
	background: #ffffff;
	border: 1px solid #d9e0e7;
	border-radius: 8px;
	box-shadow: 0 12px 36px rgba(20, 31, 43, 0.08);
}

.panel {
	padding: 24px;
	display: grid;
	gap: 22px;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.logout {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	color: #006b5f;
	text-decoration: none;
}

.logout:hover {
	text-decoration: underline;
}

.login {
	width: min(420px, calc(100vw - 32px));
}

.login form {
	grid-template-columns: 1fr;
}

.error {
	margin: 0;
	padding: 12px 14px;
	border-radius: 6px;
	background: #fdecea;
	border: 1px solid #f5c6c2;
	color: #a32219;
	font-size: 14px;
	font-weight: 700;
}

.error[hidden] {
	display: none;
}

h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.1;
}

p {
	margin: 0;
	color: #5c6978;
}

form {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 180px)) auto;
	gap: 14px;
	align-items: end;
}

label {
	display: grid;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: #344255;
}

input,
select {
	width: 100%;
	height: 42px;
	border: 1px solid #bfccd8;
	border-radius: 6px;
	padding: 0 12px;
	font: inherit;
	background: #ffffff;
	color: #18202a;
}

select:disabled,
button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

button {
	height: 42px;
	border: 0;
	border-radius: 6px;
	padding: 0 18px;
	font: inherit;
	font-weight: 800;
	color: #ffffff;
	background: #006b5f;
	cursor: pointer;
}

button:hover {
	background: #00564d;
}

.summary {
	min-height: 24px;
	padding: 18px 20px 0;
	font-weight: 800;
	color: #006b5f;
}

.actions {
	padding: 16px 20px 0;
}

.actions button[hidden] {
	display: none;
}

.status {
	margin: 0;
	padding: 16px 20px 20px;
	font-size: 14px;
	color: #5c6978;
}

.status[hidden] {
	display: none;
}

.report {
	padding: 4px 20px 20px;
	overflow-x: auto;
}

.report:empty {
	display: none;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

th,
td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e6ebf0;
	white-space: nowrap;
}

th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5c6978;
}

td.numeric,
th.numeric {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

tbody tr:hover {
	background: #f7f9fb;
}

tfoot td {
	font-weight: 800;
	border-top: 2px solid #d9e0e7;
	border-bottom: 0;
	color: #18202a;
}

@media (max-width: 820px) {
	main {
		margin: 20px auto;
	}

	form {
		grid-template-columns: 1fr;
	}
}
