/* Force responsive visibility - override alle anderen Styles */
@media screen and (min-width: 1200px) {
    /* Admin Wrap auf Mitarbeiter-Seite auf 50% Breite - NUR Desktop */
    .wrap.simpbook-admin-wrap {
        max-width: 80% !important;
    }
    
    .simpbook-admin-wrap .desktop-mitarbeiter-form {
        display: table !important;
        width: 100% !important;
        visibility: visible !important;
    }
    .simpbook-admin-wrap .mobile-mitarbeiter-form-card {
        display: none !important;
        visibility: hidden !important;
    }
}

@media screen and (max-width: 1199px) {
    .simpbook-admin-wrap .desktop-mitarbeiter-form {
        display: none !important;
        visibility: hidden !important;
    }
    .simpbook-admin-wrap .mobile-mitarbeiter-form-card {
        display: block !important;
        visibility: visible !important;
    }
}

/* ============================================
   Global Admin Wrap Styles
   ============================================ */
.simpbook-admin-wrap {
    margin-right: 10px !important;
}

/* ============================================
   Heading Styles
   ============================================ */
.wrap h1.wp-heading-inline {
    display: inline-block;
    margin-right: 5px;
    margin-left: 10px;
	
}

/* ============================================
   View Toggle Button
   ============================================ */
.view-toggle-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-left: 10px;
	margin-right: 10px;
}

.view-toggle-container .page-title-action {
	flex-shrink: 0;
	order: 1;
}

.view-toggle-container .reservierungen-search-container {
	order: 2;
}

.view-toggle-container #toggle-view-btn {
	flex-shrink: 0;
	order: 3;
}

/* ============================================
   Suchfeld Styling
   ============================================ */
.reservierungen-search-container {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 400px;
}

.reservierungen-search-container .dashicons-search {
	position: absolute;
	left: 12px;
	color: #8c8f94;
	font-size: 18px;
	pointer-events: none;
	z-index: 1;
}

#mitarbeiter-search-input {
	width: 100%;
	padding: 8px 35px 8px 38px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	transition: all 0.2s ease;
	background-color: #fff;
}

#mitarbeiter-search-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

#mitarbeiter-search-input::placeholder {
	color: #8c8f94;
}

#clear-search-btn-mitarbeiter {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	color: #8c8f94;
	cursor: pointer;
	padding: 4px;
	font-size: 16px;
	transition: color 0.2s ease;
	z-index: 1;
}

#clear-search-btn-mitarbeiter:hover {
	color: #d63638;
}

#clear-search-btn-mitarbeiter:focus {
	outline: none;
	color: #2271b1;
}

/* Mobile: Container anpassen */
@media screen and (max-width: 782px) {
	.view-toggle-container {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 10px;
	}
	
	.view-toggle-container .page-title-action {
		order: 1;
		text-align: center;
	}
	
	.reservierungen-search-container {
		max-width: none;
		width: 100%;
		order: 2;
	}
	
	#toggle-view-btn {
		order: 3;
	}
}

#toggle-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	font-weight: 500;
	transition: all 0.2s ease;
	border-radius: 4px;
}

#toggle-view-btn:hover {
	background-color: #2271b1;
	color: white;
	border-color: #2271b1;
}

/* Toggle-Button unter 1200px ausblenden, Container sichtbar lassen */
@media screen and (max-width: 1199px) {
	.view-toggle-container {
		display: flex !important;
	}
	
	#toggle-view-btn {
		display: none !important;
	}
}

/* Mobile: Container anpassen */
@media screen and (max-width: 782px) {
	.view-toggle-container {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		margin-bottom: 0px;
	}
}

/* ============================================
   Mitarbeiter Admin Styles
   Basierend auf Quote Requests Modal Design & Tischreservierungen-Pro
   ============================================ */

/* Wrap Container */
.simpbook-admin-wrap {
	max-width: 90% !important;
	margin: 20px 0 !important;
}

.simpbook-admin-wrap h1 {
	font-size: 28px !important;
	font-weight: 600 !important;
	color: #1d2327 !important;
	margin-bottom: 24px !important;
	padding-bottom: 12px !important;
	border-bottom: 3px solid #28a745 !important;
}

/* ============================================
   Tabellen Styles
   ============================================ */

.simpbook-admin-wrap .wp-list-table {
	background: #fff !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
	border: 2px solid #667eea !important;
	margin-top: 20px !important;
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;

}

.simpbook-admin-wrap .wp-list-table thead {
	background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%) !important;
}

.simpbook-admin-wrap .wp-list-table thead th {
	padding: 16px 12px !important;
	font-weight: 600 !important;
	color: #333 !important;
	font-size: 14px !important;
	border-bottom: 2px solid #28a745 !important;
	text-align: left !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
}

.simpbook-admin-wrap .wp-list-table thead th:first-child {
	border-left: none !important;
}

.simpbook-admin-wrap .wp-list-table thead th:last-child {
	border-right: none !important;
}

.simpbook-admin-wrap .wp-list-table thead th a {
	color: #333 !important;
	text-decoration: none !important;
	transition: color 0.2s !important;
}

.simpbook-admin-wrap .wp-list-table thead th a:hover {
	color: #28a745 !important;
}

.simpbook-admin-wrap .wp-list-table tbody tr {
	transition: background-color 0.2s !important;
	cursor: pointer !important;
}

.simpbook-admin-wrap .wp-list-table tbody tr:hover {
	background-color: #f0f0f1 !important;
}

.simpbook-admin-wrap .wp-list-table tbody td {
	padding: 14px 12px !important;
	font-size: 14px !important;
	color: #555 !important;
	border-bottom: 1px solid #e8e8e8 !important;
	vertical-align: middle !important;
}

.simpbook-admin-wrap .wp-list-table tbody tr:last-child td {
	border-bottom: none !important;
}

.simpbook-admin-wrap .wp-list-table tbody td a {
	color: #0073aa !important;
	text-decoration: none !important;
	transition: color 0.2s !important;
}

.simpbook-admin-wrap .wp-list-table tbody td a:hover {
	color: #005177 !important;
	text-decoration: underline !important;
}

.simpbook-admin-wrap .wp-list-table tbody td strong {
	color: #1d2327 !important;
	font-weight: 600 !important;
}

/* WordPress Core CSS Überschreibung - Verhindert width: auto !important von WP Core */
.simpbook-admin-wrap .wp-list-table.widefat tr:not(.inline-edit-row):not(.no-items) td:not(.check-column),
.simpbook-admin-wrap .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
	position: relative !important;
	width: inherit !important;
	min-width: inherit !important;
}

/* Globale Spaltenbreiten */
.simpbook-admin-wrap .wp-list-table thead th,
.simpbook-admin-wrap .wp-list-table tbody td {
	min-width: 100px !important;
}

/* Spezifische Spaltenbreiten für Mitarbeiter - Foto ist jetzt 1. Spalte (ID wurde entfernt) */
.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(1),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(1) {
	width: 10% !important;
	min-width: 80px !important;
}

.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(2),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(2) {
	width: 18% !important;
	min-width: 150px !important;
}

.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(3),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(3) {
	width: 20% !important;
	min-width: 180px !important;
}

.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(4),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(4) {
	width: 15% !important;
	min-width: 120px !important;
}

.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(5),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(5) {
	width: 8% !important;
	min-width: 70px !important;
	text-align: center !important;
}

.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(6),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6) {
	width: 9% !important;
	min-width: 80px !important;
}

.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(7),
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(7) {
	width: 15% !important;
	min-width: 180px !important;
	white-space: nowrap !important;
}

/* Mitarbeiter Foto in Liste */
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(1) img {
	border-radius: 4px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
	width: 50px !important;
	height: 50px !important;
	object-fit: cover !important;
	display: block !important;
}

/* Foto Placeholder in Liste */
.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(1) > div {
	width: 50px !important;
	height: 50px !important;
	background: #ddd !important;
	border-radius: 4px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 24px !important;
	font-weight: bold !important;
	color: #666 !important;
}

.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(1) > div > span {
	font-size: 24px !important;
	font-weight: bold !important;
	color: #666 !important;
}

/* ============================================
   View Toggle Styles - Desktop Tabelle
   ============================================ */

/* Desktop-Tabelle - wird standardmäßig versteckt */
.desktop-mitarbeiter-tabelle {
	display: none;
	width: 100%;
	margin-bottom: 20px;
}

.desktop-mitarbeiter-tabelle.active {
	display: block;
}

/* Mobile/Tablet Kartenansicht - wird standardmäßig angezeigt */
.mobile-mitarbeiter-karten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 5px;
	margin-bottom: 20px;
}

.mobile-mitarbeiter-karten.hidden {
	display: none;
}

/* Mitarbeiter Karte Styling */
.mitarbeiter-karte {
	background: #fff;
	border: 1px solid #b3bce3;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.mitarbeiter-karte:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.mitarbeiter-karte-header {
	padding: 16px;
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.mitarbeiter-foto {
	flex-shrink: 0;
}

.mitarbeiter-foto img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	
}

.mitarbeiter-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1a4a8a 0%, #0e7490 100%) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 24px;
	
}

.mitarbeiter-header-info {
	flex: 1;
}

.mitarbeiter-name {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 4px;
}

.mitarbeiter-id {
	display: none;
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

.mitarbeiter-karte-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mitarbeiter-info-gruppe {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mitarbeiter-info-zeile {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.info-label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-value {
	font-size: 14px;
	color: #333;
	word-break: break-word;
}

.status-aktiv {
	display: inline-block;
	padding: 4px 8px;
	background: #d4edda;
	color: #155724;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}

.status-inaktiv {
	display: inline-block;
	padding: 4px 8px;
	background: #f8d7da;
	color: #721c24;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}/* ============================================
   Formular Styles
   ============================================ */

.simpbook-admin-wrap .form-table {
	background: #fff !important;
	border-radius: 8px !important;
	padding: 24px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
	margin-top: 20px !important;
}

.simpbook-admin-wrap .form-table tr {
	border-bottom: 1px solid #e8e8e8 !important;
	transition: background-color 0.2s !important;
}

.simpbook-admin-wrap .form-table tr:last-child {
	border-bottom: none !important;
}

.simpbook-admin-wrap .form-table tr:hover {
	background-color: #f8f9fa !important;
}

.simpbook-admin-wrap .form-table th {
	padding: 18px 12px !important;
	font-weight: 600 !important;
	color: #555 !important;
	font-size: 14px !important;
	width: 200px !important;
	vertical-align: middle !important;
}

.simpbook-admin-wrap .form-table td {
	padding: 18px 12px !important;
	vertical-align: middle !important;
}

.simpbook-admin-wrap .form-table input[type="text"],
.simpbook-admin-wrap .form-table input[type="number"],
.simpbook-admin-wrap .form-table input[type="email"],
.simpbook-admin-wrap .form-table textarea,
.simpbook-admin-wrap .form-table select {
	width: 100% !important;
	max-width: 400px !important;
	padding: 10px 14px !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	transition: all 0.2s !important;
	background: #fff !important;
}

.simpbook-admin-wrap .form-table input[type="text"]:focus,
.simpbook-admin-wrap .form-table input[type="number"]:focus,
.simpbook-admin-wrap .form-table input[type="email"]:focus,
.simpbook-admin-wrap .form-table textarea:focus,
.simpbook-admin-wrap .form-table select:focus {
	outline: none !important;
	border-color: #28a745 !important;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}

.simpbook-admin-wrap .form-table .description {
	margin-top: 8px !important;
	font-size: 13px !important;
	color: #666 !important;
	font-style: italic !important;
	display: block !important;
}

/* Foto Upload Bereich */
.simpbook-foto-upload-area {
	margin-top: 10px !important;
}

.simpbook-foto-upload-area #foto_preview {
	margin-top: 10px !important;
}

.simpbook-foto-upload-area #foto_preview img {
	max-width: 200px !important;
	max-height: 200px !important;
	border-radius: 4px !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.simpbook-foto-upload-area .button {
	margin-right: 10px !important;
}

/* Dienstleistungen Zuweisung */
.simpbook-dienstleistungen-zuweisung {
	max-height: 200px !important;
	overflow-y: auto !important;
	border: 1px solid #ddd !important;
	padding: 10px !important;
	border-radius: 4px !important;
	background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.simpbook-dienstleistungen-zuweisung label {
	display: block !important;
	padding: 5px 0 !important;
}

.simpbook-dienstleistungen-zuweisung input[type="checkbox"] {
	margin-right: 8px !important;
}

/* Arbeitszeiten Bereich */
.simpbook-arbeitszeiten-container {
	margin-top: 20px !important;
}

.simpbook-arbeitszeiten-container .arbeitszeiten-table {
	width: 100% !important;
	border-collapse: collapse !important;
	background: #fff !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.simpbook-arbeitszeiten-container .arbeitszeiten-table th,
.simpbook-arbeitszeiten-container .arbeitszeiten-table td {
	padding: 12px !important;
	text-align: left !important;
	border-bottom: 1px solid #e8e8e8 !important;
}

.simpbook-arbeitszeiten-container .arbeitszeiten-table th {
	background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%) !important;
	font-weight: 600 !important;
	color: #333 !important;
	border-bottom: 2px solid #28a745 !important;
}

.simpbook-arbeitszeiten-container .arbeitszeiten-table input[type="time"] {
	padding: 8px 12px !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	transition: all 0.2s !important;
	background: #fff !important;
}

.simpbook-arbeitszeiten-container .arbeitszeiten-table input[type="time"]:focus {
	outline: none !important;
	border-color: #28a745 !important;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}

/* ============================================
   Modal Styles (von backend-style_vorlage.css)
   ============================================ */

/* Modal Overlay */
.simpbook-modal {
	display: none !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 100000 !important;
}

.simpbook-modal.active {
	display: block !important;
}

.simpbook-modal-overlay {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0, 0, 0, 0.7) !important;
	backdrop-filter: blur(2px) !important;
}

.simpbook-modal-container {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	box-sizing: border-box !important;
	overflow-y: auto !important;
}

/* Modal Content */
.simpbook-modal-container > div {
	position: relative !important;
	background: #fff !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
	max-width: 1100px !important;
	width: 100% !important;
	max-height: 90vh !important;
	display: flex !important;
	flex-direction: column !important;
	z-index: 1 !important;
}

.simpbook-modal-body {
	padding: 32px !important;
	overflow-y: auto !important;
	flex: 1 !important;
}

.simpbook-loading {
	text-align: center !important;
	padding: 40px !important;
}

.simpbook-loading p {
	font-size: 16px !important;
	color: #666 !important;
}

/* Details Grid */
.simpbook-details-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 20px !important;
	margin-bottom: 32px !important;
}

.simpbook-details-section {
	background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
	padding: 20px !important;
	border-radius: 8px !important;
	border: 1px solid #e0e0e0 !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
	transition: box-shadow 0.2s !important;
}

.simpbook-details-section:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.simpbook-details-section h3 {
	margin: 0 0 18px 0 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #333 !important;
	border-bottom: 3px solid #28a745 !important;
	padding-bottom: 10px !important;
}

.simpbook-detail-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid #e8e8e8 !important;
}

.simpbook-detail-row:last-child {
	border-bottom: none !important;
}

.simpbook-detail-row strong {
	flex: 0 0 45% !important;
	color: #555 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
}

.simpbook-detail-row span,
.simpbook-detail-row a {
	flex: 1 !important;
	text-align: right !important;
	color: #333 !important;
	font-size: 14px !important;
}

.simpbook-detail-row a {
	color: #0073aa !important;
	text-decoration: none !important;
}

.simpbook-detail-row a:hover {
	text-decoration: underline !important;
}

/* Form Elements */
.simpbook-select {
	width: 100% !important;
	padding: 8px 12px !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	background: #fff !important;
	cursor: pointer !important;
}

.simpbook-select:focus {
	outline: none !important;
	border-color: #28a745 !important;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}

/* Modal Actions */
.simpbook-modal-actions {
	display: flex !important;
	gap: 12px !important;
	justify-content: flex-end !important;
	padding: 24px 0 0 0 !important;
	border-top: 2px solid #e8e8e8 !important;
	margin-top: 8px !important;
}

.simpbook-modal-actions .button {
	padding: 10px 24px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	transition: all 0.2s !important;
}

.simpbook-modal-actions .button-primary {
	background: #28a745 !important;
	border-color: #28a745 !important;
}

.simpbook-modal-actions .button-primary:hover {
	background: #218838 !important;
	border-color: #1e7e34 !important;
}

/* Body Lock when modal open */
body.simpbook-modal-open {
	overflow: hidden !important;
}

/* ============================================
   Status Badges & Action Buttons
   ============================================ */

.simpbook-admin-wrap .status-aktiv {
	color: #46b450 !important;
	font-weight: 600 !important;
}

.simpbook-admin-wrap .status-inaktiv {
	color: #dc3232 !important;
	font-weight: 600 !important;
}

/* ============================================
   Aktionen Buttons
   ============================================ */

/* Aktionen-Spalte - Container für Buttons */
.simpbook-admin-wrap .wp-list-table.widefat tbody td:last-child,
.simpbook-admin-wrap .wp-list-table tbody td:last-child {
	white-space: normal !important;
}

/* Button-Small Styles mit !important */
.simpbook-admin-wrap .wp-list-table.widefat tbody td .button.button-small,
.simpbook-admin-wrap .wp-list-table tbody td .button.button-small {
	display: inline-block !important;
	margin: 2px 4px 2px 0 !important;
	padding: 6px 12px !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	height: auto !important;
	min-height: auto !important;
	text-decoration: none !important;
	border: 1px solid #ccc !important;
	border-radius: 4px !important;
	background: #f7f7f7 !important;
	color: #555 !important;
	transition: all 0.2s !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	box-sizing: border-box !important;
}

.simpbook-admin-wrap .wp-list-table.widefat tbody td .button.button-small:hover,
.simpbook-admin-wrap .wp-list-table tbody td .button.button-small:hover {
	background: #fafafa !important;
	border-color: #999 !important;
	color: #23282d !important;
}

.simpbook-admin-wrap .wp-list-table.widefat tbody td .button.button-small.button-primary,
.simpbook-admin-wrap .wp-list-table tbody td .button.button-small.button-primary {
	background: #2271b1 !important;
	border-color: #2271b1 !important;
	color: #fff !important;
}

.simpbook-admin-wrap .wp-list-table.widefat tbody td .button.button-small.button-primary:hover,
.simpbook-admin-wrap .wp-list-table tbody td .button.button-small.button-primary:hover {
	background: #135e96 !important;
	border-color: #135e96 !important;
	color: #fff !important;
}

/* Button-Link-Delete Styles mit !important */
.simpbook-admin-wrap .button-link-delete,
.simpbook-admin-wrap .wp-list-table.widefat tbody td .button.button-small.button-link-delete,
.simpbook-admin-wrap .wp-list-table tbody td .button.button-small.button-link-delete {
	color: #b32d2e !important;
	text-decoration: none !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	transition: all 0.2s !important;
	background: #f7f7f7 !important;
	border: 1px solid #dc3232 !important;
	display: inline-block !important;
	margin: 2px 4px 2px 0 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	box-sizing: border-box !important;
}

.simpbook-admin-wrap .button-link-delete:hover,
.simpbook-admin-wrap .wp-list-table.widefat tbody td .button.button-small.button-link-delete:hover,
.simpbook-admin-wrap .wp-list-table tbody td .button.button-small.button-link-delete:hover {
	background: #dc3545 !important;
	color: #fff !important;
	border-color: #dc3545 !important;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media screen and (max-width: 1200px) {
	.simpbook-admin-wrap {
		max-width: 95% !important;
	}
	
	/* Toggle-Buttons auf Tablet ausblenden */
	.view-toggle-container {
	flex-direction: row;
	}
	
	/* Tabellen als gestapelte Cards - Spezifisch für .widefat */
	.simpbook-admin-wrap .wp-list-table.widefat {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
		border: none !important;
		box-shadow: none !important;
		background: transparent !important;
		margin-top: 20px !important;
	}
	
	/* Tabellen als gestapelte Cards - Fallback für andere Tabellen */
	.simpbook-admin-wrap .wp-list-table {
		display: block !important;
		border: none !important;
		box-shadow: none !important;
		background: transparent !important;
		margin-top: 20px !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat thead,
	.simpbook-admin-wrap .wp-list-table thead {
		display: none !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody,
	.simpbook-admin-wrap .wp-list-table tbody {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody tr,
	.simpbook-admin-wrap .wp-list-table tbody tr {
		display: block !important;
		background: #fff !important;
		border: 1px solid #e8e8e8 !important;
		border-radius: 8px !important;
		margin-bottom: 16px !important;
		padding: 0 !important;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
		cursor: pointer !important;
		transition: all 0.2s !important;
		overflow: hidden !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody tr:hover,
	.simpbook-admin-wrap .wp-list-table tbody tr:hover {
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
		transform: translateY(-2px) !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody tr:last-child,
	.simpbook-admin-wrap .wp-list-table tbody tr:last-child {
		margin-bottom: 0 !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td,
	.simpbook-admin-wrap .wp-list-table tbody td {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 12px 16px !important;
		border: none !important;
		text-align: left !important;
		font-size: 14px !important;
		
		gap: 10px !important;
	}
	
	/* Inhalt nimmt den Rest des Platzes ein */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td > *,
	.simpbook-admin-wrap .wp-list-table tbody td > * {
		flex: 1 !important;
	}
	
	/* Aktionen-Spalte auf Tablet - Buttons in einer Zeile */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:last-child,
	.simpbook-admin-wrap .wp-list-table tbody td:last-child {
		flex-wrap: wrap !important;
		gap: 8px !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:last-child .button.button-small,
	.simpbook-admin-wrap .wp-list-table tbody td:last-child .button.button-small {
		flex: 0 0 auto !important;
		margin: 0 !important;
	}
	
	/* Spaltenbreiten auf Tablet/Mobile zurücksetzen */
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(1),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(2),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(3),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(4),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(5),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(6),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(7),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(8),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(1),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(2),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(3),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(4),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(5),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(7),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(8) {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:last-child,
	.simpbook-admin-wrap .wp-list-table tbody td:last-child {
		border-bottom: none !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:before,
	.simpbook-admin-wrap .wp-list-table tbody td:before {
		content: attr(data-label) ":" !important;
		font-weight: 600 !important;
		display: inline-block !important;
		flex-shrink: 0 !important;
		min-width: 120px !important;
		max-width: 150px !important;
		color: #23282d !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}
	
	/* Frontend-Spalte (6. Spalte) auf Tablet linksbündig */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6),
	.simpbook-admin-wrap .wp-list-table tbody td:nth-child(6) {
		text-align: left !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6) > *,
	.simpbook-admin-wrap .wp-list-table tbody td:nth-child(6) > * {
		text-align: left !important;
	}
	
	/* Modal Responsive */
	.simpbook-modal-container {
		padding: 10px !important;
	}
	
	.simpbook-modal-container > div {
		max-width: 95% !important;
		max-height: 95vh !important;
	}
	
	.simpbook-details-grid {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
	
	.simpbook-modal-body {
		padding: 20px !important;
	}
	
	.simpbook-modal-actions {
		flex-direction: column !important;
	}
	
	.simpbook-modal-actions .button {
		width: 100% !important;
	}
	
	/* Formular Responsive - Label und Inhalt nebeneinander */
	.simpbook-admin-wrap .form-table {
		padding: 20px 15px !important;
	}
	
	.simpbook-admin-wrap .form-table th,
	.simpbook-admin-wrap .form-table td {
		display: table-cell !important;
		width: auto !important;
		padding: 18px 12px !important;
		box-sizing: border-box !important;
		vertical-align: middle !important;
	}
	
	.simpbook-admin-wrap .form-table th {
		width: 200px !important;
		min-width: 150px !important;
		padding-right: 20px !important;
	}
	
	.simpbook-admin-wrap .form-table td {
		width: auto !important;
	}
	
	/* Arbeitszeiten Tabelle Responsive */
	.simpbook-arbeitszeiten-container .arbeitszeiten-table {
		display: block !important;
		overflow-x: auto !important;
		box-shadow: none !important;
	}
	
	.simpbook-arbeitszeiten-container .arbeitszeiten-table thead {
		display: none !important;
	}
	
	.simpbook-arbeitszeiten-container .arbeitszeiten-table tbody tr {
		display: block !important;
		margin-bottom: 15px !important;
		border: 1px solid #ddd !important;
		border-radius: 4px !important;
		padding: 10px !important;
		background: #fff !important;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
	}
	
	.simpbook-arbeitszeiten-container .arbeitszeiten-table tbody td {
		display: block !important;
		padding: 8px 0 !important;
		border: none !important;
	}
	
	.simpbook-arbeitszeiten-container .arbeitszeiten-table tbody td:before {
		content: attr(data-label) ": " !important;
		font-weight: 600 !important;
		margin-right: 10px !important;
	}
}

/* Mobile */
@media screen and (max-width: 782px) {
	.simpbook-admin-wrap {
		max-width: 100% !important;
	}
	
	/* Tabellen auf Mobile - 100% Breite */
	.simpbook-admin-wrap .wp-list-table.widefat {
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Formular Responsive - Label und Inhalt untereinander auf Mobile */
	.simpbook-admin-wrap .form-table {
		padding: 16px !important;
		display: table !important;
		width: 100% !important;
	}
	
	.simpbook-admin-wrap .form-table th,
	.simpbook-admin-wrap .form-table td {
		display: block !important;
		width: 100% !important;
		padding: 10px 0 !important;
		box-sizing: border-box !important;
	}
	
	.simpbook-admin-wrap .form-table th {
		padding-bottom: 5px !important;
		padding-top: 15px !important;
		font-weight: 600 !important;
		color: #555 !important;
	}
	
	.simpbook-admin-wrap .form-table th:first-child {
		padding-top: 0 !important;
	}
	
	.simpbook-admin-wrap .form-table td {
		padding-top: 5px !important;
		padding-bottom: 15px !important;
	}
	
	.simpbook-admin-wrap .form-table input[type="text"],
	.simpbook-admin-wrap .form-table input[type="number"],
	.simpbook-admin-wrap .form-table input[type="email"],
	.simpbook-admin-wrap .form-table textarea,
	.simpbook-admin-wrap .form-table select {
		max-width: 100% !important;
		width: 100% !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td,
	.simpbook-admin-wrap .wp-list-table tbody td {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 12px 16px !important;
		border: none !important;
		text-align: left !important;
		font-size: 14px !important;
		border-bottom: 1px solid #e8e8e8 !important;
		gap: 10px !important;
	}
	
	/* Mobile: Label neben dem Inhalt (wie Tablet) */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:before,
	.simpbook-admin-wrap .wp-list-table tbody td:before {
		content: attr(data-label) ":" !important;
		font-weight: 600 !important;
		display: inline-block !important;
		flex-shrink: 0 !important;
		min-width: 120px !important;
		max-width: 150px !important;
		color: #23282d !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}
	
	/* Mobile: Inhalt neben dem Label */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td > *,
	.simpbook-admin-wrap .wp-list-table tbody td > * {
		flex: 1 !important;
	}
	
	/* Mobile: Aktionen-Buttons */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:last-child .button.button-small,
	.simpbook-admin-wrap .wp-list-table tbody td:last-child .button.button-small {
		display: inline-block !important;
		margin: 4px 4px 4px 0 !important;
		width: auto !important;
		max-width: 100% !important;
	}
	
	/* Frontend-Spalte (6. Spalte) auf Mobile linksbündig */
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6),
	.simpbook-admin-wrap .wp-list-table tbody td:nth-child(6) {
		text-align: left !important;
	}
	
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6) > *,
	.simpbook-admin-wrap .wp-list-table tbody td:nth-child(6) > * {
		text-align: left !important;
	}
	
	/* Spaltenbreiten auf Mobile zurücksetzen */
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(1),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(2),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(3),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(4),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(5),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(6),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(7),
	.simpbook-admin-wrap .wp-list-table.widefat thead th:nth-child(8),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(1),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(2),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(3),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(4),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(5),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(6),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(7),
	.simpbook-admin-wrap .wp-list-table.widefat tbody td:nth-child(8) {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Modal Mobile */
	.simpbook-modal-container {
		padding: 0 !important;
	}
	
	.simpbook-modal-container > div {
		max-width: 100% !important;
		max-height: 100vh !important;
		border-radius: 0 !important;
		height: 100vh !important;
	}
	
	.simpbook-modal-body {
		padding: 16px !important;
	}
	
	.simpbook-details-section {
		padding: 12px !important;
	}
	
	.simpbook-detail-row {
		flex-direction: column !important;
		padding: 8px 0 !important;
	}
	
	.simpbook-detail-row strong {
		flex: 1 !important;
		margin-bottom: 4px !important;
	}
	
	.simpbook-detail-row span,
	.simpbook-detail-row a,
	.simpbook-detail-row select {
		text-align: left !important;
		width: 100% !important;
	}
	
	.simpbook-modal-actions .button {
		padding: 12px 16px !important;
		font-size: 16px !important;
	}
}

