.eaw-app,
.eaw-login-card {
	--eaw-navy: #173b5e;
	--eaw-blue: #256aa5;
	--eaw-blue-dark: #1c537f;
	--eaw-sky: #eef6fc;
	--eaw-border: #d7e2ec;
	--eaw-text: #1f2937;
	--eaw-muted: #667789;
	--eaw-danger: #b42318;
	--eaw-success: #18794e;
	box-sizing: border-box;
	color: var(--eaw-text);
	font-family: inherit;
}

.eaw-app *,
.eaw-login-card * {
	box-sizing: border-box;
}

.eaw-login-card {
	width: min(100%, 460px);
	margin: 48px auto;
	padding: 36px;
	background: #fff;
	border: 1px solid var(--eaw-border);
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(23, 59, 94, .12);
	text-align: center;
}

.eaw-login-card h2 {
	margin: 14px 0 6px;
	font-size: 30px;
	color: var(--eaw-navy);
}

.eaw-login-card p {
	margin: 0 0 22px;
	color: var(--eaw-muted);
}

.eaw-login-card form {
	display: grid;
	gap: 10px;
	margin-top: 18px;
	text-align: left;
}

.eaw-login-card input {
	width: 100%;
	min-height: 46px;
	padding: 9px 12px;
	border: 1px solid var(--eaw-border);
	border-radius: 9px;
	font: inherit;
}

.eaw-login-card small {
	display: block;
	margin-top: 18px;
	color: var(--eaw-muted);
}

.eaw-login-icon {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--eaw-navy), var(--eaw-blue));
	color: #fff;
	font-size: 25px;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(37, 106, 165, .24);
}

.eaw-app {
	width: min(100%, 1180px);
	margin: 28px auto;
	background: #fff;
	border: 1px solid var(--eaw-border);
	border-radius: 18px;
	box-shadow: 0 20px 55px rgba(23, 59, 94, .1);
	overflow: hidden;
}

.eaw-app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 32px;
	background: linear-gradient(130deg, #173b5e 0%, #246da8 100%);
	color: #fff;
}

.eaw-app-header h2 {
	margin: 2px 0 0;
	color: #fff;
	font-size: 30px;
	line-height: 1.15;
}

.eaw-app-header p {
	margin: 4px 0 0;
	opacity: .84;
}

.eaw-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	opacity: .82;
	text-transform: uppercase;
}

.eaw-logout {
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	color: #fff !important;
	font-size: 14px;
	text-decoration: none !important;
}

.eaw-logout:hover {
	background: rgba(255, 255, 255, .12);
}

.eaw-tabs {
	display: flex;
	gap: 4px;
	padding: 10px 20px 0;
	background: #f8fbfd;
	border-bottom: 1px solid var(--eaw-border);
}

.eaw-tab {
	position: relative;
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	background: transparent;
	color: var(--eaw-muted);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.eaw-tab::after {
	position: absolute;
	right: 16px;
	bottom: -1px;
	left: 16px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: transparent;
	content: '';
}

.eaw-tab.is-active {
	color: var(--eaw-blue);
}

.eaw-tab.is-active::after {
	background: var(--eaw-blue);
}

.eaw-panel {
	padding: 28px 30px 34px;
}

.eaw-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.eaw-section-heading h3 {
	margin: 0;
	color: var(--eaw-navy);
	font-size: 22px;
}

.eaw-section-heading p {
	margin: 5px 0 0;
	color: var(--eaw-muted);
}

.eaw-filter-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 20px;
	padding: 16px;
	background: var(--eaw-sky);
	border: 1px solid #dbeaf5;
	border-radius: 12px;
}

.eaw-filter-grid label,
.eaw-form-grid label {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #3f5263;
	font-size: 13px;
	font-weight: 700;
}

.eaw-filter-grid select,
.eaw-form-grid select,
.eaw-form-grid input,
.eaw-form-grid textarea,
.eaw-table input,
.eaw-table select {
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 7px 9px;
	border: 1px solid #cbd8e3;
	border-radius: 7px;
	background: #fff;
	color: var(--eaw-text);
	font: inherit;
	font-size: 14px;
}

.eaw-filter-grid select:focus,
.eaw-form-grid select:focus,
.eaw-form-grid input:focus,
.eaw-form-grid textarea:focus,
.eaw-table input:focus,
.eaw-table select:focus {
	border-color: var(--eaw-blue);
	box-shadow: 0 0 0 3px rgba(37, 106, 165, .12);
	outline: none;
}

.eaw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.eaw-button:disabled {
	cursor: wait;
	opacity: .55;
}

.eaw-button-primary {
	background: var(--eaw-blue);
	color: #fff !important;
}

.eaw-button-primary:hover {
	background: var(--eaw-blue-dark);
}

.eaw-button-secondary {
	border-color: #b9cbd9;
	background: #fff;
	color: var(--eaw-blue) !important;
}

.eaw-button-secondary:hover {
	border-color: var(--eaw-blue);
	background: #f7fbfe;
}

.eaw-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--eaw-border);
	border-radius: 11px;
}

.eaw-table {
	width: 100%;
	min-width: 760px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
}

.eaw-table th {
	padding: 11px 10px;
	background: #eef4f8;
	border: 0;
	border-bottom: 1px solid var(--eaw-border);
	color: #344b5f;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
}

.eaw-table td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid #edf1f4;
	vertical-align: middle;
}

.eaw-table tr:last-child td {
	border-bottom: 0;
}

.eaw-table tr.is-weekend td {
	background: #fafafa;
	color: #6f7780;
}

.eaw-attendance-table th:nth-child(1),
.eaw-attendance-table th:nth-child(2),
.eaw-attendance-table td:nth-child(1),
.eaw-attendance-table td:nth-child(2) {
	width: 72px;
	text-align: center;
}

.eaw-attendance-table th:nth-child(3),
.eaw-attendance-table th:nth-child(4),
.eaw-attendance-table td:nth-child(3),
.eaw-attendance-table td:nth-child(4) {
	width: 130px;
}

.eaw-attendance-table th:nth-child(5),
.eaw-attendance-table td:nth-child(5) {
	width: 140px;
}

.eaw-sticky-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
	padding: 14px 16px;
	background: #f8fbfd;
	border: 1px solid var(--eaw-border);
	border-radius: 10px;
}

.eaw-sticky-actions span {
	color: var(--eaw-muted);
	font-size: 13px;
}

.eaw-form-card {
	margin: 22px 0;
	padding: 20px;
	background: #fbfcfd;
	border: 1px solid var(--eaw-border);
	border-radius: 12px;
}

.eaw-form-title,
.eaw-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.eaw-form-title {
	margin-bottom: 16px;
}

.eaw-form-title h4 {
	margin: 0;
	color: var(--eaw-navy);
	font-size: 18px;
}

.eaw-form-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.eaw-form-grid textarea {
	resize: vertical;
}

.eaw-span-2 {
	grid-column: span 2;
}

.eaw-form-actions {
	justify-content: flex-end;
	margin-top: 18px;
}

.eaw-link-button {
	padding: 3px 0;
	border: 0;
	background: transparent;
	color: var(--eaw-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.eaw-notice {
	margin: 18px 30px 0;
	padding: 12px 14px;
	border-radius: 9px;
	font-weight: 700;
}

.eaw-notice.is-success {
	background: #e9f7ef;
	color: var(--eaw-success);
}

.eaw-notice.is-error {
	background: #fff0ef;
	color: var(--eaw-danger);
}

.eaw-alert {
	margin: 14px 0;
	padding: 11px 13px;
	border-radius: 8px;
	font-size: 14px;
	text-align: left;
}

.eaw-alert-error {
	background: #fff0ef;
	color: var(--eaw-danger);
}

.eaw-alert-warning {
	background: #fff8e6;
	color: #8a5700;
}

@media (max-width: 900px) {
	.eaw-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eaw-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.eaw-app {
		margin: 12px auto;
		border-radius: 12px;
	}

	.eaw-app-header,
	.eaw-panel {
		padding: 22px 18px;
	}

	.eaw-app-header h2 {
		font-size: 25px;
	}

	.eaw-section-heading,
	.eaw-sticky-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.eaw-filter-grid,
	.eaw-form-grid {
		grid-template-columns: 1fr;
	}

	.eaw-span-2 {
		grid-column: auto;
	}

	.eaw-filter-button {
		width: 100%;
	}

	.eaw-notice {
		margin: 14px 18px 0;
	}

	.eaw-login-card {
		margin: 20px auto;
		padding: 26px 20px;
	}
}

