/* Manual Plugin - Frontend & Admin styles */

.manual-plugin-wrapper {
	max-width: 900px;
	margin: 0 auto;
}

.manual-notice {
	padding: 10px 15px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.manual-notice-success {
	background: #e6f4ea;
	color: #1e4620;
	border: 1px solid #b7dfc1;
}

.manual-notice-error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6c3;
}

.manual-upload-form {
	background: #f9f9fb;
	border: 1px solid #e2e2ea;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.manual-field {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
}

.manual-field label {
	font-weight: 600;
	margin-bottom: 6px;
}

.manual-field input[type="text"],
.manual-field textarea,
.manual-field input[type="file"] {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.manual-upload-form button {
	background: #4f46e5;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
}

.manual-upload-form button:hover {
	background: #4338ca;
}

.manual-table-title {
	margin-bottom: 12px;
}

.manual-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.manual-table th,
.manual-table td {
	border: 1px solid #e2e2ea;
	padding: 10px 12px;
	text-align: left;
	font-size: 14px;
	vertical-align: top;
}

.manual-table th {
	background: #f4f4f8;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.03em;
	color: #555;
}

.manual-empty {
	color: #777;
	font-style: italic;
}

/* Responsive stacking on small screens */
@media (max-width: 600px) {
	.manual-table thead {
		display: none;
	}
	.manual-table, .manual-table tbody, .manual-table tr, .manual-table td {
		display: block;
		width: 100%;
	}
	.manual-table tr {
		margin-bottom: 12px;
		border: 1px solid #e2e2ea;
		border-radius: 6px;
		overflow: hidden;
	}
	.manual-table td {
		border: none;
		border-bottom: 1px solid #eee;
	}
	.manual-table td::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
		font-size: 11px;
		text-transform: uppercase;
		color: #888;
		margin-bottom: 4px;
	}
}

/* Aksi edit / hapus di halaman depan */
.manual-actions {
	white-space: nowrap;
}

.manual-inline-form {
	display: inline;
	margin: 0;
}

.manual-btn {
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.3;
}

.manual-btn-edit,
.manual-btn-save {
	background: #4f46e5;
	color: #fff;
}
.manual-btn-edit:hover,
.manual-btn-save:hover {
	background: #4338ca;
}

.manual-btn-delete {
	background: #dc2626;
	color: #fff;
}
.manual-btn-delete:hover {
	background: #b91c1c;
}

.manual-btn-cancel {
	background: #e5e7eb;
	color: #333;
}
.manual-btn-cancel:hover {
	background: #d1d5db;
}

.manual-table tr.manual-edit-row {
	display: none;
}
.manual-table tr.manual-edit-row.is-open {
	display: table-row;
}
.manual-table tr.manual-edit-row td {
	background: #f9f9fb;
	padding: 16px;
}

.manual-edit-form .manual-field-buttons {
	flex-direction: row;
	gap: 8px;
}

@media (max-width: 600px) {
	.manual-table tr.manual-edit-row.is-open {
		display: block;
	}
	.manual-table tr.manual-edit-row td::before {
		display: none;
	}
}

/* Admin */
.manual-admin-wrap .manual-admin-edit-form {
	max-width: 700px;
	background: #fff;
	padding: 20px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}
