/* WC Frontend Admin Panel - Styles */

.fap-wrap {
	max-width: 1100px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	line-height: 1.5;
}

.fap-wrap * {
	box-sizing: border-box;
}

.fap-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

.fap-header h1 {
	font-size: 26px;
	margin: 0;
}

.fap-user {
	color: #6b7280;
	font-size: 14px;
}

.fap-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 24px;
}

.fap-tab {
	padding: 10px 18px;
	text-decoration: none;
	color: #4b5563;
	font-weight: 500;
	border-radius: 6px 6px 0 0;
	transition: background 0.15s, color 0.15s;
}

.fap-tab:hover {
	background: #f3f4f6;
	color: #111827;
}

.fap-tab-active {
	background: #2563eb;
	color: #fff !important;
}

.fap-content {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
}

.fap-content h2 {
	margin-top: 0;
	font-size: 20px;
}

.fap-content h3 {
	font-size: 16px;
	margin: 24px 0 12px;
}

.fap-flex-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.fap-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.fap-alert-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.fap-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.fap-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 30px;
}

.fap-card {
	flex: 1 1 150px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px;
	text-align: center;
}

.fap-card-number {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: #2563eb;
}

.fap-card-label {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-top: 4px;
}

.fap-form-box {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.fap-form-row {
	margin-bottom: 14px;
}

.fap-form-row-half {
	display: flex;
	gap: 14px;
}

.fap-form-row-half > div {
	flex: 1;
}

.fap-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #374151;
}

.fap-form input[type="text"],
.fap-form input[type="number"],
.fap-form input[type="date"],
.fap-form input[type="file"],
.fap-form select,
.fap-form textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

.fap-form textarea {
	resize: vertical;
}

.fap-multiselect {
	min-height: 90px;
}

.fap-checkbox-row {
	display: flex;
	align-items: center;
	margin-top: 22px;
}

.fap-checkbox-row label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
}

.fap-hint {
	font-size: 12px;
	color: #9ca3af;
	margin: 4px 0 0;
}

.fap-btn {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 6px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s;
}

.fap-btn:hover {
	opacity: 0.9;
}

.fap-btn-primary {
	background: #2563eb;
	color: #fff !important;
}

.fap-btn-secondary {
	background: #e5e7eb;
	color: #374151 !important;
	margin-left: 8px;
}

.fap-btn-small {
	padding: 6px 12px;
	font-size: 12px;
}

.fap-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fap-table th,
.fap-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
}

.fap-table th {
	background: #f9fafb;
	font-weight: 600;
	color: #374151;
}

.fap-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fap-link {
	color: #2563eb;
	text-decoration: none;
	font-size: 13px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.fap-link-danger {
	color: #dc2626;
}

.fap-inline-form {
	display: inline;
}

.fap-status-form {
	display: flex;
	gap: 6px;
	align-items: center;
}

.fap-status-form select {
	padding: 5px 8px;
	font-size: 12px;
}

.fap-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	background: #e5e7eb;
	color: #374151;
}

.fap-badge-completed {
	background: #d1fae5;
	color: #065f46;
}

.fap-badge-processing {
	background: #dbeafe;
	color: #1e40af;
}

.fap-badge-pending,
.fap-badge-on-hold {
	background: #fef3c7;
	color: #92400e;
}

.fap-badge-cancelled,
.fap-badge-failed,
.fap-badge-refunded {
	background: #fee2e2;
	color: #991b1b;
}

.fap-badge-vendor {
	background: #ede9fe;
	color: #5b21b6;
	margin-left: 8px;
}

.fap-chart-box {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 30px;
}

.fap-import-box {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.fap-inline-flex-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fap-inline-flex-form input[type="file"] {
	width: auto;
}

.fap-filter-form {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fap-filter-form select {
	padding: 7px 10px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
}

.fap-pagination {
	display: flex;
	gap: 6px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.fap-page {
	padding: 6px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	text-decoration: none;
	color: #374151;
	font-size: 13px;
}

.fap-page-active {
	background: #2563eb;
	color: #fff !important;
	border-color: #2563eb;
}

/* Invoice styles */
.fap-invoice-wrap {
	max-width: 800px;
	margin: 0 auto;
}

.fap-invoice-actions {
	margin-bottom: 16px;
	display: flex;
	gap: 10px;
}

.fap-invoice-box {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 30px;
	background: #fff;
}

.fap-invoice-header {
	display: flex;
	justify-content: space-between;
	border-bottom: 2px solid #e5e7eb;
	padding-bottom: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 16px;
}

.fap-invoice-meta {
	text-align: right;
}

.fap-invoice-billing {
	margin-bottom: 20px;
}

.fap-invoice-table {
	margin-top: 10px;
}

.fap-text-right {
	text-align: right;
}

.fap-invoice-grand-total td {
	border-top: 2px solid #374151;
	font-size: 16px;
}

.fap-invoice-footer {
	margin-top: 24px;
	text-align: center;
	color: #6b7280;
	font-size: 13px;
}

@media print {
	.fap-no-print {
		display: none !important;
	}
	.fap-invoice-box {
		border: none;
		padding: 0;
	}
}

@media (max-width: 640px) {
	.fap-form-row-half {
		flex-direction: column;
		gap: 0;
	}
	.fap-invoice-header {
		flex-direction: column;
	}
	.fap-invoice-meta {
		text-align: left;
	}
}
