.ap-tools {
	max-width: 800px;
	margin: 2em auto;
}

.ap-tools-locked {
	max-width: 420px;
}

.ap-tools-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em;
	border-bottom: 2px solid #e2e2e2;
	margin-bottom: 1.5em;
}

.ap-tools-tab {
	padding: 0.7em 1.1em;
	text-decoration: none;
	color: #444;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-weight: 600;
}

.ap-tools-tab:hover {
	color: #2271b1;
}

.ap-tools-tab.is-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.ap-tools-tab.ap-tools-logout {
	margin-left: auto;
	color: #a3272c;
	font-weight: normal;
}

.ap-tools-panel {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1.75em;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ap-kv-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.ap-kv-table th,
.ap-kv-table td {
	text-align: left;
	padding: 0.5em 0.75em;
	border-bottom: 1px solid #eee;
}

.ap-kv-table th {
	width: 40%;
	color: #555;
	font-weight: 600;
}

.ap-tools-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1em;
	margin-top: 1.5em;
}

.ap-tools-card {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	padding: 1.1em;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	text-decoration: none;
	color: #222;
}

.ap-tools-card:hover {
	border-color: #2271b1;
}

.ap-tools-card span {
	color: #666;
	font-size: 0.9em;
}

.ap-calc-result {
	margin-top: 1.5em;
}

.ap-documents-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ap-documents-list li {
	padding: 0.9em 0;
	border-bottom: 1px solid #eee;
}

.ap-documents-list li:last-child {
	border-bottom: none;
}

.ap-documents-list p {
	margin: 0.25em 0 0;
	color: #666;
	font-size: 0.92em;
}

.ap-list-table {
	width: 100%;
	border-collapse: collapse;
}

.ap-list-table th,
.ap-list-table td {
	text-align: left;
	padding: 0.6em 0.75em;
	border-bottom: 1px solid #eee;
}

.ap-list-table th {
	color: #555;
	font-weight: 600;
}

.ap-status {
	display: inline-block;
	padding: 0.2em 0.6em;
	border-radius: 3px;
	font-size: 0.85em;
	background: #eee;
	color: #444;
}

.ap-status-new {
	background: #e7f0fb;
	color: #1c5da3;
}

.ap-status-contacted {
	background: #fff6e0;
	color: #97650f;
}

.ap-status-quoted {
	background: #f1e7fb;
	color: #6c2fa3;
}

.ap-status-closed {
	background: #e7fbee;
	color: #1a7a34;
}

.ap-link-button {
	background: none;
	border: none;
	padding: 0;
	color: #a3272c;
	text-decoration: underline;
	cursor: pointer;
	font-size: 1em;
}
