/* Salary slips — employee portal */

.adat-portal-content .adat-salary-card {
	margin-bottom: 0;
}

.adat-salary-card {
	padding: 0;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.adat-salary-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 20px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #ecfdf5 100%);
	border-bottom: 1px solid #e2e8f0;
}

.adat-salary-card__intro {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.adat-salary-card__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(145deg, #047857 0%, #059669 100%);
	color: #fff;
	box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.adat-salary-card__icon svg {
	width: 22px;
	height: 22px;
}

.adat-salary-card__title {
	margin: 0 0 6px;
	padding: 0;
	border: none;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	line-height: 1.25;
}

.adat-salary-card__subtitle {
	margin: 0;
	max-width: 56ch;
	font-size: 0.94rem;
	line-height: 1.55;
	color: #64748b;
}

.adat-salary-card__badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.adat-salary-card__body {
	padding: 18px 20px 22px;
	background: #fff;
}

.adat-salary-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.adat-salary-filters__label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.adat-salary-filters__select {
	min-width: 120px;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
}

.adat-salary-filters__meta {
	margin-left: auto;
	font-size: 0.88rem;
	color: #64748b;
}

.adat-salary-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 36px 24px;
	text-align: center;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.adat-salary-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #f1f5f9;
	color: #64748b;
}

.adat-salary-empty__icon svg {
	width: 26px;
	height: 26px;
}

.adat-salary-empty__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #334155;
}

.adat-salary-empty p {
	margin: 0;
	max-width: 42ch;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #64748b;
}

.adat-salary-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.adat-salary-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.adat-salary-table thead th {
	padding: 12px 16px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
	text-align: left;
}

.adat-salary-table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.95rem;
	color: #334155;
	vertical-align: middle;
}

.adat-salary-table tbody tr:last-child td {
	border-bottom: none;
}

.adat-salary-table tbody tr:hover td {
	background: #f8fafc;
}

.adat-salary-table__month {
	font-weight: 700;
	color: #0f172a;
}

.adat-salary-table__actions {
	width: 180px;
	text-align: right;
}

.adat-salary-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #059669;
	color: #fff !important;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.adat-salary-download:hover,
.adat-salary-download:focus {
	background: #047857;
	box-shadow: 0 6px 14px rgba(5, 150, 105, 0.25);
	color: #fff !important;
}

.adat-salary-download svg {
	width: 16px;
	height: 16px;
}

.adat-salary-unavailable {
	font-size: 0.88rem;
	color: #94a3b8;
}

@media (max-width: 720px) {
	.adat-salary-card__header {
		flex-direction: column;
		padding: 18px 16px 16px;
	}

	.adat-salary-card__body {
		padding: 14px 12px 16px;
	}

	.adat-salary-filters {
		align-items: stretch;
	}

	.adat-salary-filters__meta {
		margin-left: 0;
		width: 100%;
	}

	.adat-salary-filters__select {
		flex: 1;
	}

	.adat-salary-table,
	.adat-salary-table thead,
	.adat-salary-table tbody,
	.adat-salary-table tr,
	.adat-salary-table th,
	.adat-salary-table td {
		display: block;
		width: 100%;
	}

	.adat-salary-table thead {
		display: none;
	}

	.adat-salary-table tbody tr {
		padding: 12px 14px;
		border-bottom: 1px solid #e2e8f0;
	}

	.adat-salary-table tbody tr:last-child {
		border-bottom: none;
	}

	.adat-salary-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 8px 0;
		border-bottom: none;
	}

	.adat-salary-table tbody td::before {
		content: attr(data-label);
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #94a3b8;
	}

	.adat-salary-table__actions {
		width: 100%;
		text-align: left;
	}

	.adat-salary-table__actions .adat-salary-download {
		width: 100%;
	}
}
