body {
	margin: 0;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5em;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

* {
	box-sizing: border-box;
}

a {
	color: inherit;
}

h1, h2 {
	margin-top: 0;
}

button {
	appearance: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	padding: 8px;
	font-family: inherit;
	font-size: inherit;
	font-weight: 500;
	line-height: inherit;
}

section {
	margin: 36px 0;
}

header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 16px;
	row-gap: 8px;
	padding: 24px;
	background-color: #000;
	color: #fff;
	font-weight: 500;
}

header .claim {
	display: block;
	font-size: 24px;
	font-weight: 700;
	text-decoration: none;
}

header nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
	row-gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

footer form button,
header nav form button {
	margin: 0;
	padding: 0;
}
footer form button:hover,
header nav form button:hover {
	text-decoration: underline;
}

header a,
footer a {
	color: inherit;
	text-decoration: none;
}

header nav a:hover,
footer a:hover {
	text-decoration: underline;
}

footer {
	padding: 24px;
	background-color: #000;
	color: #fff;
	font-weight: 500;
}

footer div {
	text-align: center;
}

footer form {
	display: inline-block;
}

main {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
main > * {
	padding: 24px;
}

.has-sidebar {
	display: flex;
	flex-direction: row;
	padding: 0;
}
.has-sidebar > *:first-child {
	flex: 1;
}
@media (max-width: 768px) {
	.has-sidebar {
		flex-direction: column;
	}
	.sidebar {
		margin-top: 24px;
	}
}

.sidebar {
	background-color: #ededed;
}
.secondary-main {
	margin-top: 36px;
	background-color: #ededed;
}

.existing-codes-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.existing-codes-grid > div {
	display: grid;
	grid-template-columns: 80px 200px auto;
	gap: 16px;
}
.existing-codes-grid p {
	margin: 0;
}
.existing-codes-grid .actions {
	position: relative;
	display: flex;
	flex-direction: row;
	gap: 4px;
}
.existing-codes-grid .actions .action {
	display: inline-flex;
	cursor: pointer;
}
.existing-codes-grid .actions .action.disabled {
	cursor: auto;
	color: grey;
}
.existing-codes-grid .actions .purpose-action:not(.disabled):hover + .purpose-content {
	display: block;
	width: max-content;
	background-color: #22BABB;
	color: #fff;
	padding: 16px;
	position: absolute;
	bottom: calc(100% + 4px);
	right: calc(100% - 24px);
	z-index: 1;
}
.existing-codes-grid .actions .purpose-content {
	display: none;
}
.existing-codes-grid .actions .actions-sub {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.existing-codes-grid .actions {
		justify-content: space-between;
	}
	.existing-codes-grid .actions .purpose-action {
		display: none;
	}
	.existing-codes-grid .actions .purpose-content {
		display: block;
	}
}
@media (max-width: 576px) {
	.existing-codes-grid {
		row-gap: 0;
	}
	.existing-codes-grid > div {
		display: flex;
		flex-direction: column;
		row-gap: 8px;
	}
	.existing-codes-grid > div:not(:last-child) {
		padding-bottom: 8px;
		border-bottom: 1px solid #000;
	}
	.existing-codes-grid > div:not(:first-child) {
		padding-top: 16px;
	}
	.existing-codes-grid .actions .action {
		align-self: flex-end;
	}
}

form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
form > div {
	display: flex;
	flex-direction: column;
	row-gap: 8px;
}
form button {
	background-color: #000;
	color: #fff;
	margin-top: 16px;
	max-width: 200px;
}

input, textarea, select {
	max-width: 200px;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}
textarea {
	height: 80px;
}

.button {
	display: block;
	background-color: #000;
	color: #fff;
	padding: 8px;
	max-width: 200px;
	text-decoration: none;
	text-align: center;
	font-weight: 500;
}

@media (max-width: 432px) {
	input, textarea,
	form button,
	.button {
		max-width: none;
	}
}

/* input[type="text"][readonly="readonly"] {
	font-size: 24px;
	font-weight: 500;
	color: inherit;
	border: 0;
	outline: 0;
} */
 .errorlist li {
	list-style: none;
 }

.message, .errorlist {
	margin: 24px 0;
	padding: 24px;
	background-color: #000;
	color: #fff;
	width: fit-content;
}
.message > *:first-child {
	margin-top: 0;
}
.message > *:last-child {
	margin-bottom: 0;
}
.message.error, .errorlist {
	background-color: #BD2A2E;
}
.message.warning {
	background-color: #FFB30D;
}
.message.success {
	background-color: #008C72;
}
.message.info {
	background-color: #00BBC9;
}
.message strong {
	font-size: 24px;
}
@media (max-width: 432px) {
	.message, .errorlist {
		width: 100%;
	}
}

.m-background--red {
	background-color: #BD2A2E !important;
}
.m-background--yellow {
	background-color: #FFB30D !important;
}
.m-background--green {
	background-color: #008C72 !important;
}
.m-background--blue {
	background-color: #00BBC9 !important;
}
