* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: #263238;
	background: #ffffff;
	font-family: Arial, sans-serif;
	line-height: 1.5;
}

.container {
	width: min(1100px, 92%);
	margin: 0 auto;
}

.site-header {
	background: #1f5f8b;
	color: white;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

h1, h2, h3, p {
	margin-top: 0;
}

h1 {
	margin-bottom: 0;
	font-size: 1.4rem;
}

nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

nav a {
	padding: 7px 10px;
	color: white;
	text-decoration: none;
	border-radius: 4px;
}

nav a:hover, nav a.active {
	background: #16476a;
}

main {
	min-height: calc(100vh - 150px);
	padding: 38px 0 55px;
}

.welcome {
	margin-bottom: 28px;
}

.welcome h2, .content-section h2 {
	margin-bottom: 6px;
	color: #1f5f8b;
}

.welcome p {
	margin-bottom: 0;
}

.summary-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 36px;
}

.summary-card {
	padding: 18px;
	background: #f0f6fa;
	border: 1px solid #d8e5ed;
	border-radius: 6px;
}

.summary-card h3 {
	margin-bottom: 8px;
	font-size: 0.95rem;
	font-weight: normal;
}

.summary-card p {
	margin-bottom: 0;
	color: #1f5f8b;
	font-size: 1.7rem;
	font-weight: bold;
}

.content-section, .form-section, .about-section {
	padding: 24px;
	border: 1px solid #dce3e7;
	border-radius: 6px;
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-heading h2 {
	margin-bottom: 0;
}

.button, button {
	display: inline-block;
	padding: 9px 14px;
	color: white;
	background: #1f5f8b;
	border: 1px solid #1f5f8b;
	border-radius: 4px;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.button:hover, button:hover {
	background: #16476a;
}

.button.secondary, button.secondary {
	color: #1f5f8b;
	background: white;
}

.table-wrapper {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

th, td {
	padding: 12px 10px;
	border-bottom: 1px solid #e1e6e9;
	white-space: nowrap;
}

th {
	color: #344955;
	background: #f4f6f7;
	font-size: 0.9rem;
}

.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.search-box {
	width: min(350px, 100%);
	padding: 10px;
	border: 1px solid #b8c5cc;
	border-radius: 4px;
	font: inherit;
}

.action-buttons {
	display: flex;
	gap: 5px;
}

.small-button {
	padding: 5px 8px;
	font-size: 0.85rem;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

label {
	font-weight: bold;
	font-size: 0.92rem;
}

input, select, textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #b8c5cc;
	border-radius: 4px;
	font: inherit;
}

textarea {
	min-height: 90px;
	resize: vertical;
}

.form-actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.about-section p {
	max-width: 700px;
}

footer {
	padding: 18px;
	color: #56636a;
	background: #f4f6f7;
	text-align: center;
}

footer p {
	margin-bottom: 0;
	font-size: 0.9rem;
}

@media (max-width: 700px) {
	.header-content, .toolbar, .section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.summary-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.form-group.full-width {
		grid-column: auto;
	}
}

@media (max-width: 420px) {
	.summary-cards {
		grid-template-columns: 1fr;
	}

	.content-section, .form-section, .about-section {
		padding: 16px;
	}
}
