Introduce a comprehensive design system across WordPress and Laravel to ensure visual consistency. Implement new financial reporting capabilities and Excel export functionality within the Filament admin panel. - Add `DESIGN_SYSTEM.md` to define brand colors, typography, and spacing - Implement `FinancialReport` page in Filament for transaction and shipment summaries - Add Excel export support for `ShipmentResource` and `WalletTransactionResource` using Laravel Excel - Refactor WordPress plugin and Filament CSS to utilize the new design system variables - Update project status to reflect new reporting and design milestones
451 lines
12 KiB
CSS
451 lines
12 KiB
CSS
/**
|
|
* IFNEX Bridge Styles
|
|
* استایلهای پلاگین IFNEX Logistics Bridge
|
|
* بر اساس IFNEX Design System
|
|
*/
|
|
|
|
:root {
|
|
--ifnex-primary: #f59e0b;
|
|
--ifnex-primary-dark: #d97706;
|
|
--ifnex-primary-light: #fbbf24;
|
|
--ifnex-success: #059669;
|
|
--ifnex-success-light: #d1fae5;
|
|
--ifnex-danger: #dc2626;
|
|
--ifnex-danger-light: #fee2e2;
|
|
--ifnex-warning: #f59e0b;
|
|
--ifnex-warning-light: #fef3c7;
|
|
--ifnex-info: #2563eb;
|
|
--ifnex-info-light: #dbeafe;
|
|
--ifnex-gray-900: #111827;
|
|
--ifnex-gray-700: #374151;
|
|
--ifnex-gray-600: #4b5563;
|
|
--ifnex-gray-500: #6b7280;
|
|
--ifnex-gray-400: #9ca3af;
|
|
--ifnex-gray-300: #d1d5db;
|
|
--ifnex-gray-200: #e5e7eb;
|
|
--ifnex-gray-100: #f3f4f6;
|
|
--ifnex-gray-50: #f9fafb;
|
|
--ifnex-white: #ffffff;
|
|
--ifnex-font-family: 'Vazirmatn', 'IranYekan', ui-sans-serif, system-ui, sans-serif;
|
|
--ifnex-radius-sm: 0.375rem;
|
|
--ifnex-radius-md: 0.5rem;
|
|
--ifnex-radius-lg: 0.75rem;
|
|
}
|
|
|
|
/* ============================================
|
|
GLOBAL
|
|
============================================ */
|
|
.ifnex-widget,
|
|
.ifnex-tracking-container,
|
|
.ifnex-tracking-result,
|
|
.ifnex-transactions,
|
|
.ifnex-wallet-balance {
|
|
font-family: var(--ifnex-font-family) !important;
|
|
direction: rtl !important;
|
|
text-align: right !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
WALLET BALANCE
|
|
============================================ */
|
|
.ifnex-wallet-balance {
|
|
background: var(--ifnex-white) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
padding: 1.25rem !important;
|
|
margin: 1rem 0 !important;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
|
|
}
|
|
|
|
.ifnex-balance-main {
|
|
display: flex !important;
|
|
justify-content: space-between !important;
|
|
align-items: center !important;
|
|
margin-bottom: 1rem !important;
|
|
padding-bottom: 1rem !important;
|
|
border-bottom: 1px solid var(--ifnex-gray-200) !important;
|
|
}
|
|
|
|
.ifnex-balance-label {
|
|
font-size: 0.875rem !important;
|
|
color: var(--ifnex-gray-500) !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
.ifnex-balance-amount {
|
|
font-size: 1.5rem !important;
|
|
font-weight: 700 !important;
|
|
color: var(--ifnex-success) !important;
|
|
}
|
|
|
|
.ifnex-balance-details {
|
|
margin-top: 1rem !important;
|
|
}
|
|
|
|
.ifnex-balance-details p {
|
|
margin: 0.5rem 0 !important;
|
|
font-size: 0.875rem !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
}
|
|
|
|
.ifnex-balance-details strong {
|
|
color: var(--ifnex-gray-500) !important;
|
|
margin-left: 0.5rem !important;
|
|
}
|
|
|
|
.ifnex-wallet-frozen {
|
|
color: var(--ifnex-danger) !important;
|
|
font-weight: 600 !important;
|
|
margin-top: 1rem !important;
|
|
padding: 0.75rem 1rem !important;
|
|
background: var(--ifnex-danger-light) !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
border-right: 3px solid var(--ifnex-danger) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
TRANSACTIONS
|
|
============================================ */
|
|
.ifnex-transactions {
|
|
margin: 1rem 0 !important;
|
|
}
|
|
|
|
.ifnex-transactions h3 {
|
|
font-size: 1.125rem !important;
|
|
font-weight: 600 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin-bottom: 1rem !important;
|
|
padding-bottom: 0.5rem !important;
|
|
border-bottom: 2px solid var(--ifnex-primary) !important;
|
|
}
|
|
|
|
.ifnex-transactions-list {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
gap: 0.75rem !important;
|
|
}
|
|
|
|
.ifnex-transaction-item {
|
|
background: var(--ifnex-white) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
padding: 1rem !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.ifnex-transaction-item:hover {
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
|
|
border-color: var(--ifnex-primary-light) !important;
|
|
}
|
|
|
|
.ifnex-transaction-header {
|
|
display: flex !important;
|
|
justify-content: space-between !important;
|
|
align-items: center !important;
|
|
margin-bottom: 0.5rem !important;
|
|
}
|
|
|
|
.ifnex-transaction-type {
|
|
display: inline-block !important;
|
|
padding: 0.25rem 0.75rem !important;
|
|
border-radius: var(--ifnex-radius-sm) !important;
|
|
font-size: 0.75rem !important;
|
|
font-weight: 500 !important;
|
|
text-transform: uppercase !important;
|
|
background: var(--ifnex-info-light) !important;
|
|
color: var(--ifnex-info) !important;
|
|
}
|
|
|
|
.ifnex-transaction-type.deposit {
|
|
background: var(--ifnex-success-light) !important;
|
|
color: var(--ifnex-success) !important;
|
|
}
|
|
|
|
.ifnex-transaction-type.withdrawal,
|
|
.ifnex-transaction-type.order_payment {
|
|
background: var(--ifnex-danger-light) !important;
|
|
color: var(--ifnex-danger) !important;
|
|
}
|
|
|
|
.ifnex-transaction-type.refund {
|
|
background: var(--ifnex-info-light) !important;
|
|
color: var(--ifnex-info) !important;
|
|
}
|
|
|
|
.ifnex-transaction-amount {
|
|
font-size: 1rem !important;
|
|
font-weight: 700 !important;
|
|
font-family: var(--ifnex-font-family) !important;
|
|
}
|
|
|
|
.ifnex-transaction-amount.positive {
|
|
color: var(--ifnex-success) !important;
|
|
}
|
|
|
|
.ifnex-transaction-amount.negative {
|
|
color: var(--ifnex-danger) !important;
|
|
}
|
|
|
|
.ifnex-transaction-details {
|
|
margin-top: 0.5rem !important;
|
|
}
|
|
|
|
.ifnex-transaction-description {
|
|
color: var(--ifnex-gray-700) !important;
|
|
font-size: 0.875rem !important;
|
|
margin: 0 0 0.5rem 0 !important;
|
|
}
|
|
|
|
.ifnex-transaction-meta {
|
|
display: flex !important;
|
|
gap: 0.75rem !important;
|
|
font-size: 0.75rem !important;
|
|
color: var(--ifnex-gray-500) !important;
|
|
}
|
|
|
|
.ifnex-transaction-status {
|
|
display: inline-block !important;
|
|
padding: 0.125rem 0.5rem !important;
|
|
border-radius: var(--ifnex-radius-sm) !important;
|
|
background: var(--ifnex-gray-100) !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
font-size: 0.75rem !important;
|
|
}
|
|
|
|
.ifnex-transaction-status.completed {
|
|
background: var(--ifnex-success-light) !important;
|
|
color: var(--ifnex-success) !important;
|
|
}
|
|
|
|
.ifnex-transaction-status.pending {
|
|
background: var(--ifnex-warning-light) !important;
|
|
color: #92400e !important;
|
|
}
|
|
|
|
.ifnex-transaction-status.failed {
|
|
background: var(--ifnex-danger-light) !important;
|
|
color: var(--ifnex-danger) !important;
|
|
}
|
|
|
|
.ifnex-transaction-ref {
|
|
margin-top: 0.5rem !important;
|
|
font-size: 0.75rem !important;
|
|
color: var(--ifnex-gray-500) !important;
|
|
font-family: monospace !important;
|
|
}
|
|
|
|
/* ============================================
|
|
TRACKING FORM
|
|
============================================ */
|
|
.ifnex-tracking-container {
|
|
max-width: 700px !important;
|
|
margin: 1.5rem auto !important;
|
|
padding: 1.5rem !important;
|
|
background: var(--ifnex-white) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
|
|
}
|
|
|
|
.ifnex-tracking-container h2 {
|
|
font-size: 1.25rem !important;
|
|
font-weight: 700 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin-bottom: 1rem !important;
|
|
padding-bottom: 0.5rem !important;
|
|
border-bottom: 2px solid var(--ifnex-primary) !important;
|
|
}
|
|
|
|
.ifnex-tracking-form {
|
|
margin-bottom: 1.5rem !important;
|
|
}
|
|
|
|
.ifnex-form-group {
|
|
display: flex !important;
|
|
gap: 0.75rem !important;
|
|
}
|
|
|
|
.ifnex-form-group input {
|
|
flex: 1 !important;
|
|
padding: 0.75rem 1rem !important;
|
|
border: 1px solid var(--ifnex-gray-300) !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
font-size: 0.9375rem !important;
|
|
font-family: var(--ifnex-font-family) !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
}
|
|
|
|
.ifnex-form-group input:focus {
|
|
outline: none !important;
|
|
border-color: var(--ifnex-primary) !important;
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
|
|
}
|
|
|
|
.ifnex-form-group button {
|
|
padding: 0.75rem 1.5rem !important;
|
|
background: var(--ifnex-primary) !important;
|
|
color: var(--ifnex-white) !important;
|
|
border: none !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
cursor: pointer !important;
|
|
font-size: 0.9375rem !important;
|
|
font-weight: 600 !important;
|
|
font-family: var(--ifnex-font-family) !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
}
|
|
|
|
.ifnex-form-group button:hover {
|
|
background: var(--ifnex-primary-dark) !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: var(--ifnex-shadow-md) !important;
|
|
}
|
|
|
|
.ifnex-form-group button:disabled {
|
|
background: var(--ifnex-gray-400) !important;
|
|
cursor: not-allowed !important;
|
|
transform: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.ifnex-tracking-result {
|
|
margin-top: 1.5rem !important;
|
|
padding: 1.25rem !important;
|
|
background: var(--ifnex-gray-50) !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
}
|
|
|
|
.ifnex-error {
|
|
color: var(--ifnex-danger) !important;
|
|
font-weight: 500 !important;
|
|
padding: 0.75rem 1rem !important;
|
|
background: var(--ifnex-danger-light) !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
border-right: 3px solid var(--ifnex-danger) !important;
|
|
}
|
|
|
|
.ifnex-tracking-status h3 {
|
|
margin-top: 0 !important;
|
|
font-size: 1.125rem !important;
|
|
font-weight: 700 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
}
|
|
|
|
.ifnex-status-badge {
|
|
display: inline-block !important;
|
|
padding: 0.375rem 0.875rem !important;
|
|
background: var(--ifnex-primary) !important;
|
|
color: var(--ifnex-white) !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
margin-bottom: 0.75rem !important;
|
|
font-weight: 600 !important;
|
|
font-size: 0.875rem !important;
|
|
}
|
|
|
|
.ifnex-status-badge.delivered {
|
|
background: var(--ifnex-success) !important;
|
|
}
|
|
|
|
.ifnex-status-badge.failed {
|
|
background: var(--ifnex-danger) !important;
|
|
}
|
|
|
|
.ifnex-status-badge.in_transit {
|
|
background: var(--ifnex-info) !important;
|
|
}
|
|
|
|
.ifnex-tracking-details {
|
|
margin-top: 1rem !important;
|
|
}
|
|
|
|
.ifnex-tracking-details p {
|
|
margin: 0.5rem 0 !important;
|
|
font-size: 0.875rem !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
}
|
|
|
|
.ifnex-tracking-details strong {
|
|
color: var(--ifnex-gray-700) !important;
|
|
margin-left: 0.5rem !important;
|
|
}
|
|
|
|
.ifnex-timeline {
|
|
margin-top: 1.5rem !important;
|
|
padding-top: 1rem !important;
|
|
border-top: 1px solid var(--ifnex-gray-200) !important;
|
|
}
|
|
|
|
.ifnex-timeline h4 {
|
|
font-size: 1rem !important;
|
|
font-weight: 600 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin-bottom: 0.75rem !important;
|
|
}
|
|
|
|
.ifnex-timeline ul {
|
|
list-style: none !important;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.ifnex-timeline li {
|
|
padding: 0.75rem !important;
|
|
border-bottom: 1px solid var(--ifnex-gray-100) !important;
|
|
display: flex !important;
|
|
gap: 0.75rem !important;
|
|
align-items: flex-start !important;
|
|
font-size: 0.875rem !important;
|
|
}
|
|
|
|
.ifnex-timeline li:last-child {
|
|
border-bottom: none !important;
|
|
}
|
|
|
|
.ifnex-timeline li strong {
|
|
color: var(--ifnex-primary) !important;
|
|
font-weight: 600 !important;
|
|
white-space: nowrap !important;
|
|
min-width: 100px !important;
|
|
}
|
|
|
|
.ifnex-timeline li span {
|
|
color: var(--ifnex-gray-700) !important;
|
|
flex: 1 !important;
|
|
}
|
|
|
|
.ifnex-timeline li small {
|
|
color: var(--ifnex-gray-400) !important;
|
|
font-size: 0.75rem !important;
|
|
white-space: nowrap !important;
|
|
}
|
|
|
|
/* ============================================
|
|
RESPONSIVE
|
|
============================================ */
|
|
@media (max-width: 768px) {
|
|
.ifnex-tracking-container {
|
|
max-width: 100% !important;
|
|
padding: 1rem !important;
|
|
margin: 1rem 0 !important;
|
|
}
|
|
|
|
.ifnex-form-group {
|
|
flex-direction: column !important;
|
|
}
|
|
|
|
.ifnex-form-group button {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.ifnex-balance-amount {
|
|
font-size: 1.25rem !important;
|
|
}
|
|
|
|
.ifnex-transaction-header {
|
|
flex-direction: column !important;
|
|
align-items: flex-start !important;
|
|
gap: 0.5rem !important;
|
|
}
|
|
}
|