/**
 * Admin Styles: Restaurant Workflow
 *
 * Responsibility: Custom styles for admin workflow dashboard pages.
 * Provides clean, consistent styling for admin interface.
 *
 * @package PAME_Restaurant_Workflow_System
 */

/* Admin Wrapper */
.pame-rw-admin-wrap {
	max-width: 1400px;
	margin: 20px 20px 0 0;
}

.pame-rw-admin-content {
	margin-top: 20px;
}

/* Admin Cards */
.pame-rw-admin-card {
	background: #ffffff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 20px;
	margin-bottom: 20px;
}

.pame-rw-admin-card h2 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.pame-rw-admin-card p {
	margin: 0 0 12px 0;
	color: #646970;
	line-height: 1.6;
}

.pame-rw-admin-card p:last-child {
	margin-bottom: 0;
}

/* Ticket Management Table */
.pame-rw-tickets-table-wrapper {
	margin: 20px 0;
	overflow-x: auto;
}

.pame-rw-tickets-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #ddd;
}

.pame-rw-tickets-table thead {
	background-color: #f5f5f5;
}

.pame-rw-tickets-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #113A77;
	border-bottom: 2px solid #ddd;
	font-size: 14px;
}

.pame-rw-tickets-table td {
	padding: 12px;
	border-bottom: 1px solid #e0e0e0;
}

.pame-rw-tickets-table tbody tr:hover {
	background-color: #f9f9f9;
}

.pame-rw-ticket-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	color: #113A77;
	background-color: #fff;
}

.pame-rw-ticket-input:focus {
	outline: none;
	border-color: #Daa112;
	box-shadow: 0 0 0 2px rgba(218, 161, 18, 0.1);
}

.pame-rw-ticket-delete-btn,
.pame-rw-ticket-move-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	margin: 0 2px;
	color: #666;
	transition: color 0.2s ease;
}

.pame-rw-ticket-delete-btn:hover,
.pame-rw-ticket-delete-btn:focus {
	color: #dc3232;
}

.pame-rw-ticket-move-btn:hover,
.pame-rw-ticket-move-btn:focus {
	color: #113A77;
}

.pame-rw-ticket-delete-btn .dashicons,
.pame-rw-ticket-move-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.pame-rw-add-ticket-btn {
	background-color: #113A77;
	color: #fff;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	transition: background-color 0.3s ease;
	font-family: 'Reforma', serif;
}

.pame-rw-add-ticket-btn:hover,
.pame-rw-add-ticket-btn:focus {
	background-color: #0d2d5a;
	outline: none;
}

.pame-rw-add-ticket-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.pame-rw-save-tickets-btn {
	background-color: #Daa112;
	color: #fff;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	font-family: 'Reforma', serif;
}

.pame-rw-save-tickets-btn:hover,
.pame-rw-save-tickets-btn:focus {
	background-color: #b8870e;
	outline: none;
}

/* Admin Table Styles */
.pame-rw-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.pame-rw-status-pending {
	background: #fff3cd;
	color: #856404;
}

.pame-rw-status-needs-changes {
	background: #d1ecf1;
	color: #0c5460;
}

.pame-rw-status-approved {
	background: #d4edda;
	color: #155724;
}

.pame-rw-status-rejected {
	background: #f8d7da;
	color: #721c24;
}

.pame-rw-meta-empty {
	color: #999;
	font-style: italic;
}

/* Review Page Layout */
.pame-rw-review-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.pame-rw-review-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pame-rw-review-sidebar {
	display: flex;
	flex-direction: column;
}

/* Summary Table */
.pame-rw-summary-table {
	width: 100%;
	border-collapse: collapse;
}

.pame-rw-summary-table th {
	text-align: left;
	padding: 8px 12px 8px 0;
	font-weight: 600;
	color: #1d2327;
	width: 150px;
	vertical-align: top;
}

.pame-rw-summary-table td {
	padding: 8px 0;
	color: #646970;
}

.pame-rw-summary-table tr {
	border-bottom: 1px solid #f0f0f1;
}

.pame-rw-summary-table tr:last-child {
	border-bottom: none;
}

/* Request Content */
.pame-rw-request-content {
	margin-top: 16px;
}

.pame-rw-request-content h3 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

/* Admin Action Form */
.pame-rw-admin-action-form {
	margin-top: 0;
}

.pame-rw-admin-action-form .pame-rw-form-group {
	margin-bottom: 20px;
}

.pame-rw-admin-action-form .pame-rw-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #1d2327;
}

.pame-rw-form-select,
.pame-rw-form-textarea {
	width: 100%;
	padding: 8px 12px;
	border: 2px solid rgba(218, 161, 18, 0.2);
	border-radius: 4px;
	font-size: 14px;
	color: #2c3338;
	background-color: #ffffff;
	box-sizing: border-box;
}

.pame-rw-form-select:focus,
.pame-rw-form-textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.pame-rw-form-textarea {
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
}

.pame-rw-admin-action-form .description {
	margin-top: 6px;
	font-size: 13px;
	color: #646970;
	font-style: italic;
}

.pame-rw-form-actions {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f1;
}

/* Responsive */
@media (max-width: 1200px) {
	.pame-rw-review-layout {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Admin Help Text & Warnings
   ============================================ */

.pame-rw-help-card {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
}

.pame-rw-help-content {
	margin-top: 16px;
}

.pame-rw-help-section {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #dcdcde;
}

.pame-rw-help-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.pame-rw-help-status {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px 0;
	padding: 8px 12px;
	border-radius: 4px;
	display: inline-block;
}

.pame-rw-help-status.pame-rw-status-pending {
	background: #f0f0f1;
	color: #646970;
}

.pame-rw-help-status.pame-rw-status-needs-changes {
	background: #fff3cd;
	color: #856404;
}

.pame-rw-help-status.pame-rw-status-approved {
	background: #d1e7dd;
	color: #0f5132;
}

.pame-rw-help-status.pame-rw-status-rejected {
	background: #f8d7da;
	color: #842029;
}

.pame-rw-help-section p {
	margin: 0 0 12px 0;
	line-height: 1.6;
}

.pame-rw-help-list {
	margin: 12px 0;
	padding-left: 24px;
}

.pame-rw-help-list li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.pame-rw-help-warning {
	background: #fff3cd;
	border-left: 4px solid #ffb900;
	padding: 12px 16px;
	margin: 16px 0 0 0;
	border-radius: 4px;
}

.pame-rw-help-warning strong {
	color: #856404;
}

/* Action Warning Box */
.pame-rw-action-warning {
	background: #fff3cd;
	border: 1px solid #ffb900;
	border-left: 4px solid #ffb900;
	border-radius: 4px;
	padding: 16px;
	margin: 16px 0;
}

.pame-rw-warning-hidden {
	display: none;
}

.pame-rw-action-warning p {
	margin: 0;
	line-height: 1.6;
}

.pame-rw-warning-icon {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px 0;
	color: #856404;
	font-weight: 600;
}

.pame-rw-warning-icon svg {
	flex-shrink: 0;
	color: #ffb900;
}

.pame-rw-action-warning p:last-child {
	margin-top: 8px;
	color: #646970;
}

/* Form Actions */
.pame-rw-form-actions {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #dcdcde;
}

.pame-rw-submit-btn {
	margin-right: 8px;
}

/* ============================================
   Testing Tools
   ============================================ */

.pame-rw-testing-section {
	margin: 32px 0;
	padding: 24px 0;
	border-top: 1px solid #dcdcde;
}

.pame-rw-testing-section:first-child {
	border-top: none;
	padding-top: 0;
}

.pame-rw-testing-section h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 600;
}

.pame-rw-verification-results {
	margin-top: 24px;
}

.pame-rw-verification-results h4 {
	margin: 24px 0 12px 0;
	font-size: 14px;
	font-weight: 600;
}

.pame-rw-check-pass {
	color: #00a32a;
	font-weight: 600;
	font-size: 16px;
}

.pame-rw-check-fail {
	color: #d63638;
	font-weight: 600;
	font-size: 16px;
}

/* ============================================
   Sessions Display (Admin)
   ============================================ */

.pame-rw-sessions-display {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pame-rw-session-display-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: #f9f9f9;
	border-left: 3px solid #Daa112;
	border-radius: 4px;
}

.pame-rw-session-display-item .pame-rw-session-number {
	font-weight: 600;
	color: #113A77;
	min-width: 25px;
}

.pame-rw-session-display-item .pame-rw-session-datetime {
	color: #113A77;
}

/* ============================================
   Payment Status Toggle
   ============================================ */

.pame-rw-payment-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.pame-rw-payment-status-toggle {
	position: relative;
	width: 44px;
	height: 24px;
	appearance: none;
	background-color: #c3c4c7;
	border-radius: 12px;
	outline: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin: 0;
}

.pame-rw-payment-status-toggle:checked {
	background-color: #00a32a;
}

.pame-rw-payment-status-toggle:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pame-rw-toggle-slider {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.3s ease;
	pointer-events: none;
}

.pame-rw-payment-status-toggle:checked + .pame-rw-toggle-slider {
	transform: translateX(20px);
}

.pame-rw-payment-status-label {
	font-size: 14px;
	font-weight: 500;
	color: #2c3338;
	min-width: 60px;
}

.pame-rw-payment-status-display {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.pame-rw-payment-status-display.pending {
	background: #fff3cd;
	color: #856404;
}

.pame-rw-payment-status-display.paid {
	background: #d4edda;
	color: #155724;
}

/* ============================================
   Pending Payments Section
   ============================================ */

.pame-rw-pending-payments-section {
	margin: 30px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pame-rw-pending-payments-section h2 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
}

.pame-rw-pending-payments-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pame-rw-pending-payment-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.pame-rw-pending-payment-item:hover {
	background: #f0f0f0;
}

.pame-rw-payment-info {
	flex: 1;
}

.pame-rw-payment-title {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 6px;
}

.pame-rw-payment-title a {
	color: #2271b1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.pame-rw-payment-title a:hover,
.pame-rw-payment-title a:focus {
	color: #135e96;
	text-decoration: underline;
}

.pame-rw-payment-meta {
	font-size: 14px;
	color: #646970;
}

.pame-rw-payment-action {
	margin-left: 20px;
}

.pame-rw-view-all {
	margin-top: 20px;
	text-align: center;
}

.pame-rw-view-all-link {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.pame-rw-view-all-link:hover,
.pame-rw-view-all-link:focus {
	color: #135e96;
	text-decoration: underline;
}

/* ============================================
   Instructor Payment Status Display
   ============================================ */

.pame-rw-class-payment-status {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pame-rw-class-payment-status .pame-rw-payment-status-label {
	font-size: 13px;
	font-weight: 500;
	color: #646970;
	min-width: auto;
}

.pame-rw-payment-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.pame-rw-payment-status-badge.pending {
	background: #fff3cd;
	color: #856404;
}

.pame-rw-payment-status-badge.paid {
	background: #d4edda;
	color: #155724;
}

/* ============================================
   Corporate Ordering Card Styles (Admin Dashboard)
   ============================================ */

.pame-rw-co-card {
	background: #ffffff;
	border: 2px solid rgba(218, 161, 18, 0.2);
	padding: 24px;
	margin-bottom: 20px;
}

.pame-rw-co-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #113A77;
	margin: 0 0 16px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(218, 161, 18, 0.2);
}

