.ps-dashboard {
	max-width: 600px;
	margin: 0 auto;
	padding: 1.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ps-dashboard-title {
	margin: 0 0 0.25rem 0;
	font-size: 1.5rem;
}
.ps-order-number {
	color: #6b7280;
	font-size: 0.9rem;
	margin: 0 0 1rem 0;
}
.ps-status-box {
	background: #f9fafb;
	border-left: 4px solid #6b7280;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 0 8px 8px 0;
}
.ps-status-text {
	margin: 0;
	font-size: 1.05rem;
}
.ps-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}
.ps-section:last-child {
	border-bottom: none;
}
.ps-section-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
}
.ps-description {
	color: #4b5563;
	font-size: 0.95rem;
	margin: 0 0 0.75rem 0;
}
.ps-upload-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}
.ps-upload-form input[type="file"] {
	flex: 1;
	min-width: 180px;
}
.ps-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}
.ps-btn-primary {
	background: #2563eb;
	color: #fff;
}
.ps-btn-primary:hover {
	background: #1d4ed8;
	color: #fff;
}
.ps-btn-secondary {
	background: #f3f4f6;
	color: #1f2937;
	border: 1px solid #d1d5db;
}
.ps-btn-secondary:hover {
	background: #e5e7eb;
	color: #1f2937;
}
.ps-btn-success {
	background: #16a34a;
	color: #fff;
}
.ps-btn-success:hover {
	background: #15803d;
	color: #fff;
}
.ps-message {
	margin: 0.75rem 0 0 0;
	padding: 0.5rem 0;
	font-size: 0.95rem;
}
.ps-message.ps-success { color: #059669; font-weight: 600; }
.ps-message.ps-error { color: #dc2626; font-weight: 600; }
.ps-data-link-section .ps-btn { margin-top: 0.25rem; }

.ps-messages-section .ps-messages-list { margin-bottom: 1rem; }
.ps-msg-item { margin-bottom: 0.75rem; padding: 0.75rem 1rem; border-radius: 6px; border-left: 4px solid #d1d5db; }
.ps-msg-item.ps-msg-admin { background: #eff6ff; border-left-color: #2563eb; }
.ps-msg-item.ps-msg-customer { background: #f0fdf4; border-left-color: #059669; }
.ps-msg-meta { font-size: 0.85rem; color: #6b7280; }
.ps-msg-text { margin-top: 0.25rem; white-space: pre-wrap; }
.ps-reply-form { margin-top: 1rem; }
.ps-reply-label { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.ps-reply-form .ps-input { width: 100%; max-width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box; margin-bottom: 0.5rem; }

.ps-register-wrap { max-width: 500px; margin: 0 auto; padding: 1.5rem; }
.ps-form-group { margin-bottom: 1rem; }
.ps-form-group label { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.ps-input { width: 100%; max-width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box; }
.ps-input.large-text { margin-bottom: 0.5rem; }

/* Auswertung Frontend */
.ps-auswertung-wrap { max-width: 720px; margin: 0 auto; padding: 1.5rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ps-auswertung-title { margin: 0 0 1rem 0; font-size: 1.5rem; }
.ps-auswertung-subtitle { margin: 1.5rem 0 0.5rem 0; font-size: 1.15rem; }
.ps-stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ps-stat-card { background: #f9fafb; border: 1px solid #e5e7eb; border-left-width: 4px; border-left-color: #6b7280; border-radius: 8px; padding: 1rem; text-align: center; }
.ps-stat-card .ps-stat-number { display: block; font-size: 1.75rem; font-weight: 700; color: #1f2937; }
.ps-stat-card .ps-stat-label { font-size: 0.85rem; color: #6b7280; }
.ps-stat-card.ps-stat-warning .ps-stat-number { color: #d97706; }
.ps-stat-card.ps-stat-overdue .ps-stat-number { color: #dc2626; }
.ps-auswertung-table { width: 100%; max-width: 400px; border-collapse: collapse; margin-bottom: 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ps-auswertung-table th, .ps-auswertung-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
.ps-auswertung-table th { background: #f3f4f6; font-weight: 600; font-size: 0.9rem; }
.ps-auswertung-table .ps-numeric { text-align: right; }
.ps-auswertung-table .ps-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }

/* Kunde aus Liefermanagement (Frontend Register) */
.ps-dm-results-frontend { max-height: 200px; overflow-y: auto; border: 1px solid #d1d5db; background: #fff; margin-top: 6px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ps-dm-reg-item { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f3f4f6; font-size: 0.95rem; }
.ps-dm-reg-item:hover { background: #f0f9ff; }
.ps-dm-reg-item:last-child { border-bottom: none; }
.ps-dm-results-frontend .ps-dm-no-results { padding: 10px 12px; color: #6b7280; }

.ps-reg-new-customer-wrap { margin-top: 1rem; padding: 1rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; }
.ps-reg-new-customer-wrap strong { display: block; margin-bottom: 0.75rem; }

/* Mitarbeiter-Dashboard: Modal + DM-Suchergebnisse */
.ps-mitarbeiter-dashboard .ps-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000; }
.ps-mitarbeiter-dashboard .ps-modal-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.ps-mitarbeiter-dashboard .ps-modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; width: calc(100% - 32px); max-width: 440px; max-height: 90vh; overflow-y: auto; background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.ps-mitarbeiter-dashboard .ps-modal-title { margin: 0 0 12px 0; font-size: 1.25rem; }
.ps-mitarbeiter-dashboard .ps-modal-content p { margin: 0 0 16px 0; }
.ps-mitarbeiter-dashboard .ps-modal-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.ps-mitarbeiter-dashboard .ps-modal-buttons .ps-btn { margin: 0; }
.ps-mitarbeiter-dashboard .ps-dm-results .ps-dm-result-item { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.ps-mitarbeiter-dashboard .ps-dm-results .ps-dm-result-item:hover { background: #f0f9ff; }
.ps-mitarbeiter-dashboard .ps-dm-results .ps-dm-result-item:last-child { border-bottom: none; }
