.tool-header {
	margin-bottom: 28px;
}

.tool-title {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	margin-bottom: 4px;
}

.tool-lead {
	font-size: 0.9rem;
	line-height: 1.55;
}

.tool-inline-actions {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 0.82rem;
}

.tool-inline-actions a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

.tool-inline-fav {
	color: var(--c-text-2);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
}

.tool-inline-fav:hover,
.tool-inline-fav.is-favorited {
	color: var(--c-warning);
}

.tool-inline-report {
	color: var(--c-text-2);
}

.tool-header-actions {
	display: none !important;
}

.tool-top-ad-primary {
	margin: 16px 0 20px;
}

.salary-summary-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(150px, 1fr));
	gap: 12px;
}

.salary-summary-card {
	min-height: 92px;
	padding: 16px;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	background: var(--c-surface);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.salary-summary-card span {
	color: var(--c-text-2);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.35;
}

.salary-summary-card strong {
	color: var(--c-text);
	font-size: 1.1rem;
	line-height: 1.2;
	word-break: break-word;
}

.salary-summary-card.accent {
	border-color: rgba(22, 163, 74, 0.3);
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), var(--c-surface));
}

.salary-summary-card.balance.is-negative {
	border-color: rgba(220, 38, 38, 0.35);
	background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), var(--c-surface));
}

.salary-workspace {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	align-items: start;
}

.salary-panel {
	min-width: 0;
}

.salary-panel-actions {
	display: flex;
	justify-content: flex-end;
	padding: 12px 14px 14px;
}

.salary-table-wrap {
	overflow-x: visible;
	max-width: 100%;
}

.salary-table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
}

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

.salary-table thead {
	display: none;
}

.salary-table tbody {
	display: grid;
	gap: 12px;
}

.salary-table tr {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	padding: 14px;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	background: var(--c-bg);
}

.salary-table td {
	min-width: 0;
	padding: 0;
	border-bottom: 0;
	font-size: 0.82rem;
}

.salary-table td::before {
	content: attr(data-label);
	display: block;
	margin-bottom: 5px;
	color: var(--c-text-2);
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1.3;
}

.salary-table td:last-child {
	grid-column: 1 / -1;
}

.salary-table td:last-child::before {
	display: none;
}

.salary-table input,
.salary-table select {
	width: 100%;
	min-width: 0;
	height: 38px;
	font-size: 0.82rem;
	line-height: 1.25;
	padding-left: 8px;
	padding-right: 28px;
}

.salary-table .salary-name-input {
	min-width: 0;
}

.salary-table .salary-note-input {
	min-width: 0;
}

.salary-hour-fields {
	display: grid;
	grid-template-columns: minmax(84px, 0.9fr) minmax(76px, 0.8fr) minmax(68px, 0.7fr);
	gap: 6px;
}

.salary-hour-fields.is-monthly-salary {
	grid-template-columns: 1fr;
}

.salary-hour-fields.is-monthly-salary select,
.salary-hour-fields.is-monthly-salary input {
	display: none;
}

.salary-hour-fields.is-monthly-salary::before {
	content: "-";
	display: flex;
	align-items: center;
	height: 38px;
	color: var(--c-text-2);
}

.salary-hour-fields.is-hourly input[style*="none"] {
	display: none !important;
}

.salary-delete-row {
	width: 42px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid var(--c-border);
	background: transparent;
	color: var(--c-text-2);
}

.salary-delete-row:hover {
	color: var(--c-error);
	border-color: rgba(220, 38, 38, 0.35);
}

.salary-breakdown {
	margin-top: 14px;
	padding: 16px;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	background: var(--c-surface);
}

.salary-results {
	margin-top: 18px;
}

.salary-subtitle {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 12px;
}

.salary-breakdown-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.salary-breakdown-item {
	padding: 12px;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	background: var(--c-bg);
}

.salary-breakdown-name {
	font-size: 0.84rem;
	font-weight: 800;
	margin-bottom: 6px;
}

.salary-breakdown-meta {
	color: var(--c-text-2);
	font-size: 0.78rem;
	line-height: 1.5;
}

.salary-breakdown-value {
	margin-top: 8px;
	font-size: 0.95rem;
	font-weight: 800;
}

.salary-info-section {
	margin-top: 34px !important;
	padding-top: 28px !important;
}

.salary-info-section .tab-pane {
	display: none;
}

.salary-info-section .tab-pane.show.active {
	display: block;
}

.salary-info-section .faq-item {
	margin-bottom: 12px;
	border-radius: 16px;
}

.salary-info-section .faq-q {
	font-size: 0.9rem;
	padding: 14px 18px;
}

.salary-info-section .faq-a {
	font-size: 0.86rem;
	line-height: 1.7;
	padding-top: 12px;
}

.salary-info-section .rk-item {
	padding: 18px 0;
}

.salary-info-section .rk-thumb {
	width: 84px;
	height: 84px;
	border-radius: 14px;
	flex-shrink: 0;
}

.salary-info-section .tab-btn.active::after {
	display: none;
}

.related-section {
	margin-top: 36px;
	padding-top: 34px;
}

.related-grid {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 14px;
}

[data-bs-theme="dark"] .salary-summary-card,
[data-bs-theme="dark"] .salary-breakdown,
[data-theme="dark"] .salary-summary-card,
[data-theme="dark"] .salary-breakdown {
	background: var(--c-surface);
	box-shadow: none;
}

@media (max-width: 1180px) {
	.salary-summary-grid {
		grid-template-columns: repeat(3, minmax(150px, 1fr));
	}
}

@media (max-width: 991.98px) {
	.salary-panel-actions {
		justify-content: flex-start;
	}

	.salary-summary-card {
		min-height: 78px;
	}

	.salary-table tr {
		grid-template-columns: 1fr;
		padding: 12px;
	}

	.salary-hour-fields,
	.salary-hour-fields.is-monthly-salary {
		grid-template-columns: 1fr;
	}

	.salary-hour-fields.is-monthly-salary::before {
		height: 34px;
	}

	.salary-delete-row {
		width: 100%;
	}

	.salary-panel-actions .btn {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.salary-summary-grid {
		grid-template-columns: 1fr;
	}
}
