/* Customer Service Manager - styles dùng chung */

.csm-wrap .csm-inline-form,
.csm-front .csm-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin: 12px 0;
	padding: 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.csm-wrap .csm-inline-form label,
.csm-front .csm-inline-form label {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	font-size: 13px;
}

.csm-wrap .csm-inline-form input[type="text"],
.csm-wrap .csm-inline-form input[type="date"],
.csm-wrap .csm-inline-form input[type="number"],
.csm-wrap .csm-inline-form select,
.csm-front .csm-inline-form input,
.csm-front .csm-inline-form select {
	padding: 6px 8px;
	min-width: 180px;
}

.csm-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.csm-table th,
.csm-table td {
	border: 1px solid #dcdcde;
	padding: 8px 10px;
	text-align: left;
}

.csm-table th {
	background: #f0f0f1;
}

.csm-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin: 12px 0;
}

.csm-notice-success {
	background: #edfaef;
	border: 1px solid #46b450;
	color: #1e5f2e;
}

.csm-notice-error {
	background: #fbeaea;
	border: 1px solid #dc3232;
	color: #7a1414;
}

.csm-package-box {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 14px 16px;
	margin: 16px 0;
	background: #fff;
}

.csm-status {
	display: inline-block;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.csm-status-active { background: #d7f5df; color: #14632f; }
.csm-status-completed { background: #e2e3e4; color: #3c434a; }
.csm-status-cancelled { background: #f8dada; color: #8a1f1f; }

.csm-pagination {
	margin: 16px 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* Frontend */
.csm-front {
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
}

.csm-login-box,
.csm-lookup-box,
.csm-staff-panel {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 20px 0;
}

.csm-front label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.csm-front input[type="text"],
.csm-front input[type="password"],
.csm-front input[type="tel"],
.csm-front input[type="date"],
.csm-front input[type="number"],
.csm-front select {
	width: 100%;
	max-width: 320px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 8px;
}

.csm-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	border: 1px solid #ccc;
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	cursor: pointer;
}

.csm-btn-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.csm-btn-danger {
	background: #dc3232;
	border-color: #dc3232;
	color: #fff;
}

.csm-btn-small {
	padding: 4px 10px;
	font-size: 12px;
}

.csm-link-danger {
	background: none;
	border: none;
	color: #dc3232;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.csm-staff-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.csm-search-form {
	margin: 12px 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.csm-lookup-result h3 {
	margin-top: 24px;
}
