/* Hospital Patient Records — form & table */

.hps-notice {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.hps-notice--success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #1b5e20;
}

.hps-notice--warning {
	background: #fff8e1;
	border: 1px solid #ffe082;
	color: #5d4037;
}

.hps-form {
	max-width: 960px;
}

.hps-fieldset {
	border: 1px solid #d0dce8;
	border-radius: 10px;
	padding: 1.25rem 1.5rem 1.5rem;
	margin: 0 0 1.5rem;
	background: #fff;
}

.hps-fieldset legend {
	font-weight: 600;
	font-size: 1.05rem;
	color: #0d47a1;
	padding: 0 0.5rem;
}

.hps-grid {
	display: grid;
	gap: 1rem;
}

.hps-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
	.hps-grid--2 {
		grid-template-columns: 1fr;
	}
}

.hps-field--full {
	grid-column: 1 / -1;
}

.hps-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	color: #37474f;
}

.hps-field .required {
	color: #c62828;
}

.hps-field input[type="text"],
.hps-field input[type="date"],
.hps-field select,
.hps-field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #b0bec5;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	box-sizing: border-box;
}

.hps-field input:focus,
.hps-field select:focus,
.hps-field textarea:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.hps-lab-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.hps-checkbox {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	font-size: 0.9rem;
	cursor: pointer;
}

.hps-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.hps-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.hps-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.hps-btn--primary {
	background: #1565c0;
	color: #fff;
}

.hps-btn--primary:hover {
	background: #0d47a1;
	color: #fff;
}

.hps-btn--secondary {
	background: #eceff1;
	color: #37474f;
}

.hps-btn--secondary:hover {
	background: #cfd8dc;
}

.hps-patient-list-wrap {
	margin-top: 2.5rem;
}

.hps-list-title {
	font-size: 1.25rem;
	color: #0d47a1;
	margin-bottom: 1rem;
}

.hps-table-responsive {
	overflow-x: auto;
}

.hps-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hps-table th,
.hps-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.hps-table th {
	background: #1565c0;
	color: #fff;
	font-weight: 600;
}

.hps-table tbody tr:hover {
	background: #f5f9fc;
}

.hps-empty {
	color: #78909c;
	font-style: italic;
}

.hps-admin-table th {
	width: 180px;
}
