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
567 lines
16 KiB
CSS
567 lines
16 KiB
CSS
:root {
|
|
/* IFNEX Brand Colors */
|
|
--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;
|
|
|
|
/* Neutral Colors */
|
|
--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;
|
|
|
|
/* Typography */
|
|
--ifnex-font-family: 'Vazirmatn', 'IranYekan', ui-sans-serif, system-ui, sans-serif;
|
|
--ifnex-font-size-base: 14px;
|
|
--ifnex-line-height: 1.6;
|
|
|
|
/* Spacing */
|
|
--ifnex-spacing-xs: 0.25rem;
|
|
--ifnex-spacing-sm: 0.5rem;
|
|
--ifnex-spacing-md: 1rem;
|
|
--ifnex-spacing-lg: 1.5rem;
|
|
--ifnex-spacing-xl: 2rem;
|
|
--ifnex-spacing-2xl: 3rem;
|
|
|
|
/* Border Radius */
|
|
--ifnex-radius-sm: 0.375rem;
|
|
--ifnex-radius-md: 0.5rem;
|
|
--ifnex-radius-lg: 0.75rem;
|
|
|
|
/* Shadows */
|
|
--ifnex-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--ifnex-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
--ifnex-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
|
|
/* Transitions */
|
|
--ifnex-transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Global Reset */
|
|
* {
|
|
box-sizing: border-box !important;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--ifnex-font-family) !important;
|
|
font-size: var(--ifnex-font-size-base) !important;
|
|
line-height: var(--ifnex-line-height) !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
SIDEBAR
|
|
============================================ */
|
|
.fi-sidebar {
|
|
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
|
|
border-left: 1px solid rgba(245, 158, 11, 0.2) !important;
|
|
}
|
|
|
|
.fi-sidebar-header {
|
|
background: transparent !important;
|
|
border-bottom: 1px solid rgba(245, 158, 11, 0.15) !important;
|
|
padding: 1.25rem !important;
|
|
}
|
|
|
|
.fi-sidebar-nav {
|
|
padding: 0.75rem !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group {
|
|
margin-bottom: 0.5rem !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-header {
|
|
background: rgba(245, 158, 11, 0.08) !important;
|
|
border-bottom: 1px solid rgba(245, 158, 11, 0.1) !important;
|
|
padding: 0.5rem 0.75rem !important;
|
|
color: rgba(255, 255, 255, 0.7) !important;
|
|
font-weight: 500 !important;
|
|
font-size: 0.75rem !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-header:hover {
|
|
background: rgba(245, 158, 11, 0.15) !important;
|
|
color: var(--ifnex-primary-light) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item {
|
|
margin: 0.15rem 0 !important;
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
position: relative !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item::before {
|
|
content: '' !important;
|
|
position: absolute !important;
|
|
right: 0 !important;
|
|
top: 50% !important;
|
|
transform: translateY(-50%) !important;
|
|
width: 3px !important;
|
|
height: 0 !important;
|
|
background: var(--ifnex-primary) !important;
|
|
border-radius: 3px 0 0 3px !important;
|
|
transition: height 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item:hover::before,
|
|
.fi-sidebar-nav-item.active::before {
|
|
height: 60% !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item:hover {
|
|
background: rgba(245, 158, 11, 0.1) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item.active {
|
|
background: rgba(245, 158, 11, 0.15) !important;
|
|
box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item.active .fi-sidebar-nav-item-label {
|
|
color: var(--ifnex-primary-light) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item-icon {
|
|
color: rgba(255, 255, 255, 0.6) !important;
|
|
transition: color 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item:hover .fi-sidebar-nav-item-icon,
|
|
.fi-sidebar-nav-item.active .fi-sidebar-nav-item-icon {
|
|
color: var(--ifnex-primary) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item-label {
|
|
color: rgba(255, 255, 255, 0.85) !important;
|
|
font-size: 0.875rem !important;
|
|
transition: color 0.2s ease !important;
|
|
}
|
|
|
|
/* ============================================
|
|
MAIN CONTENT
|
|
============================================ */
|
|
.fi-main {
|
|
max-width: 1400px !important;
|
|
margin: 0 auto !important;
|
|
padding: var(--ifnex-spacing-lg) !important;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.fi-main {
|
|
padding: var(--ifnex-spacing-md) !important;
|
|
max-width: 100% !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.fi-main {
|
|
padding: var(--ifnex-spacing-sm) !important;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
PAGE HEADER
|
|
============================================ */
|
|
.fi-page-header {
|
|
margin-bottom: var(--ifnex-spacing-lg) !important;
|
|
padding-bottom: var(--ifnex-spacing-md) !important;
|
|
border-bottom: 2px solid var(--ifnex-primary) !important;
|
|
}
|
|
|
|
.fi-page-header h1 {
|
|
font-size: 1.5rem !important;
|
|
font-weight: 700 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.fi-page-header h1 {
|
|
font-size: 1.25rem !important;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
CARDS
|
|
============================================ */
|
|
.fi-card {
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
box-shadow: var(--ifnex-shadow-sm) !important;
|
|
margin-bottom: var(--ifnex-spacing-md) !important;
|
|
overflow: hidden !important;
|
|
background: var(--ifnex-white) !important;
|
|
}
|
|
|
|
.fi-card-header {
|
|
background: var(--ifnex-gray-50) !important;
|
|
padding: 1rem 1.25rem !important;
|
|
border-bottom: 1px solid var(--ifnex-gray-200) !important;
|
|
}
|
|
|
|
.fi-card-header h2 {
|
|
font-size: 1.125rem !important;
|
|
font-weight: 600 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.fi-card-body {
|
|
padding: 1.25rem !important;
|
|
background: var(--ifnex-white) !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
STATS WIDGET
|
|
============================================ */
|
|
.fi-wi-stats-overview {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
|
|
gap: var(--ifnex-spacing-md) !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card {
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
padding: 1.25rem !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
background: var(--ifnex-white) !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card:hover {
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: var(--ifnex-shadow-md) !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card h3 {
|
|
font-size: 0.875rem !important;
|
|
font-weight: 500 !important;
|
|
color: var(--ifnex-gray-500) !important;
|
|
margin: 0 0 0.5rem 0 !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card p {
|
|
font-size: 1.5rem !important;
|
|
font-weight: 700 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.fi-wi-stats-overview {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card p {
|
|
font-size: 1.25rem !important;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
TABLES
|
|
============================================ */
|
|
.fi-ta-table {
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
overflow: hidden !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.fi-ta-header-cell {
|
|
background: var(--ifnex-gray-50) !important;
|
|
font-weight: 600 !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
font-size: 0.875rem !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.025em !important;
|
|
padding: 0.75rem 1rem !important;
|
|
}
|
|
|
|
.fi-ta-cell {
|
|
padding: 0.75rem 1rem !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
font-size: 0.875rem !important;
|
|
border-bottom: 1px solid var(--ifnex-gray-100) !important;
|
|
}
|
|
|
|
.fi-ta-row:hover {
|
|
background-color: #fffbeb !important;
|
|
}
|
|
|
|
/* ============================================
|
|
FORMS
|
|
============================================ */
|
|
.fi-input,
|
|
.fi-select,
|
|
.fi-textarea {
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
border-color: var(--ifnex-gray-300) !important;
|
|
font-size: 0.875rem !important;
|
|
padding: 0.625rem 0.875rem !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
width: 100% !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
}
|
|
|
|
.fi-input:focus,
|
|
.fi-select:focus,
|
|
.fi-textarea:focus {
|
|
border-color: var(--ifnex-primary) !important;
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
|
|
outline: none !important;
|
|
}
|
|
|
|
.fi-label {
|
|
font-weight: 500 !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
margin-bottom: 0.375rem !important;
|
|
display: block !important;
|
|
font-size: 0.875rem !important;
|
|
}
|
|
|
|
/* ============================================
|
|
BUTTONS
|
|
============================================ */
|
|
.fi-btn {
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
font-weight: 500 !important;
|
|
font-size: 0.875rem !important;
|
|
padding: 0.625rem 1.25rem !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
gap: 0.5rem !important;
|
|
}
|
|
|
|
.fi-btn-primary {
|
|
background: var(--ifnex-primary) !important;
|
|
border-color: var(--ifnex-primary) !important;
|
|
color: var(--ifnex-white) !important;
|
|
}
|
|
|
|
.fi-btn-primary:hover {
|
|
background: var(--ifnex-primary-dark) !important;
|
|
border-color: var(--ifnex-primary-dark) !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: var(--ifnex-shadow-md) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
REPORTS PAGE
|
|
============================================ */
|
|
.ifnex-report-page {
|
|
max-width: 1200px !important;
|
|
margin: 0 auto !important;
|
|
padding: var(--ifnex-spacing-lg) !important;
|
|
}
|
|
|
|
.ifnex-report-container {
|
|
background: var(--ifnex-white) !important;
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
padding: var(--ifnex-spacing-lg) !important;
|
|
box-shadow: var(--ifnex-shadow-sm) !important;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.125rem !important;
|
|
font-weight: 600 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
margin: var(--ifnex-spacing-lg) 0 var(--ifnex-spacing-md) 0 !important;
|
|
padding-bottom: var(--ifnex-spacing-sm) !important;
|
|
border-bottom: 2px solid var(--ifnex-primary) !important;
|
|
}
|
|
|
|
.report-summary-grid {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
|
|
gap: var(--ifnex-spacing-md) !important;
|
|
margin: var(--ifnex-spacing-md) 0 !important;
|
|
}
|
|
|
|
.report-card {
|
|
background: var(--ifnex-white) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
padding: 1.25rem !important;
|
|
text-align: center !important;
|
|
transition: var(--ifnex-transition) !important;
|
|
}
|
|
|
|
.report-card:hover {
|
|
box-shadow: var(--ifnex-shadow-sm) !important;
|
|
transform: translateY(-1px) !important;
|
|
}
|
|
|
|
.report-card-title {
|
|
font-size: 0.875rem !important;
|
|
font-weight: 500 !important;
|
|
color: var(--ifnex-gray-500) !important;
|
|
margin-bottom: var(--ifnex-spacing-sm) !important;
|
|
}
|
|
|
|
.report-card-value {
|
|
font-size: 1.5rem !important;
|
|
font-weight: 700 !important;
|
|
color: var(--ifnex-gray-900) !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.report-summary-grid {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
|
|
.report-card-value {
|
|
font-size: 1.25rem !important;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
REPORT TABLES
|
|
============================================ */
|
|
.report-table-container {
|
|
overflow-x: auto !important;
|
|
margin-top: var(--ifnex-spacing-lg) !important;
|
|
border-radius: var(--ifnex-radius-lg) !important;
|
|
border: 1px solid var(--ifnex-gray-200) !important;
|
|
}
|
|
|
|
.report-table {
|
|
width: 100% !important;
|
|
border-collapse: collapse !important;
|
|
font-size: 0.875rem !important;
|
|
}
|
|
|
|
.report-table thead {
|
|
background: var(--ifnex-gray-50) !important;
|
|
}
|
|
|
|
.report-table th {
|
|
padding: 0.75rem 1rem !important;
|
|
text-align: right !important;
|
|
font-weight: 600 !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
font-size: 0.875rem !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.025em !important;
|
|
border-bottom: 1px solid var(--ifnex-gray-200) !important;
|
|
}
|
|
|
|
.report-table td {
|
|
padding: 0.75rem 1rem !important;
|
|
color: var(--ifnex-gray-700) !important;
|
|
border-bottom: 1px solid var(--ifnex-gray-100) !important;
|
|
}
|
|
|
|
.report-table tbody tr:hover {
|
|
background-color: #fffbeb !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.report-table {
|
|
font-size: 0.8125rem !important;
|
|
}
|
|
|
|
.report-table th,
|
|
.report-table td {
|
|
padding: 0.5rem !important;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
ALERTS
|
|
============================================ */
|
|
.fi-alert {
|
|
border-radius: var(--ifnex-radius-md) !important;
|
|
padding: var(--ifnex-spacing-md) var(--ifnex-spacing-lg) !important;
|
|
margin-bottom: var(--ifnex-spacing-md) !important;
|
|
font-size: 0.875rem !important;
|
|
}
|
|
|
|
.fi-alert-success {
|
|
background: var(--ifnex-success-light) !important;
|
|
color: var(--ifnex-success) !important;
|
|
border-right: 4px solid var(--ifnex-success) !important;
|
|
}
|
|
|
|
.fi-alert-danger {
|
|
background: var(--ifnex-danger-light) !important;
|
|
color: var(--ifnex-danger) !important;
|
|
border-right: 4px solid var(--ifnex-danger) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
SCROLLBAR
|
|
============================================ */
|
|
::-webkit-scrollbar {
|
|
width: 8px !important;
|
|
height: 8px !important;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--ifnex-gray-100) !important;
|
|
border-radius: var(--ifnex-radius-sm) !important;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--ifnex-gray-300) !important;
|
|
border-radius: var(--ifnex-radius-sm) !important;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--ifnex-gray-400) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
TEXT COLORS
|
|
============================================ */
|
|
.text-gray-900 { color: var(--ifnex-gray-900) !important; }
|
|
.text-gray-700 { color: var(--ifnex-gray-700) !important; }
|
|
.text-gray-600 { color: var(--ifnex-gray-600) !important; }
|
|
.text-gray-500 { color: var(--ifnex-gray-500) !important; }
|
|
.text-white { color: var(--ifnex-white) !important; }
|
|
.text-green-700 { color: var(--ifnex-success) !important; }
|
|
.text-red-700 { color: var(--ifnex-danger) !important; }
|
|
.text-blue-700 { color: var(--ifnex-info) !important; }
|
|
|
|
/* ============================================
|
|
BACKGROUNDS
|
|
============================================ */
|
|
.bg-white { background-color: var(--ifnex-white) !important; }
|
|
.bg-gray-50 { background-color: var(--ifnex-gray-50) !important; }
|
|
.bg-gray-100 { background-color: var(--ifnex-gray-100) !important; }
|
|
.bg-green-50 { background-color: var(--ifnex-success-light) !important; }
|
|
.bg-red-50 { background-color: var(--ifnex-danger-light) !important; }
|
|
.bg-yellow-50 { background-color: var(--ifnex-warning-light) !important; }
|
|
.bg-blue-50 { background-color: var(--ifnex-info-light) !important; }
|
|
|
|
/* ============================================
|
|
BORDERS
|
|
============================================ */
|
|
.border-gray-200 { border-color: var(--ifnex-gray-200) !important; }
|
|
.border-gray-300 { border-color: var(--ifnex-gray-300) !important; }
|