922 lines
28 KiB
CSS
922 lines
28 KiB
CSS
/* ================================================================
|
|
AfterSales CRM — Design System v2
|
|
Material Design 3 inspired, Professional Real-estate CRM
|
|
================================================================ */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');
|
|
|
|
/* ---------- CSS Variables (Design Tokens) ---------- */
|
|
:root {
|
|
/* Primary palette — Indigo */
|
|
--crm-primary: #1a56db;
|
|
--crm-primary-hover: #1e40af;
|
|
--crm-primary-light: #e8effc;
|
|
--crm-primary-container: #dbeafe;
|
|
--crm-on-primary: #ffffff;
|
|
--crm-on-primary-container: #1e3a5f;
|
|
|
|
/* Secondary palette — Slate */
|
|
--crm-secondary: #64748b;
|
|
--crm-secondary-container: #f1f5f9;
|
|
--crm-on-secondary: #ffffff;
|
|
--crm-on-secondary-container: #334155;
|
|
|
|
/* Accent */
|
|
--crm-accent: #7c3aed;
|
|
--crm-accent-light: #ede9fe;
|
|
|
|
/* Surface / Background */
|
|
--crm-background: #f1f5f9;
|
|
--crm-surface: #ffffff;
|
|
--crm-surface-dim: #f8fafc;
|
|
--crm-surface-container: #f1f5f9;
|
|
--crm-surface-container-high: #e2e8f0;
|
|
--crm-surface-hover: #e8effc;
|
|
|
|
/* Text */
|
|
--crm-text-primary: #0f172a;
|
|
--crm-text-secondary: #475569;
|
|
--crm-text-tertiary: #94a3b8;
|
|
--crm-text-inverse: #ffffff;
|
|
|
|
/* Borders */
|
|
--crm-border: #e2e8f0;
|
|
--crm-border-strong: #cbd5e1;
|
|
--crm-border-focus: #1a56db;
|
|
|
|
/* Status colors */
|
|
--crm-pending: #d97706;
|
|
--crm-pending-bg: #fffbeb;
|
|
--crm-pending-border: #fde68a;
|
|
--crm-processing: #2563eb;
|
|
--crm-processing-bg: #eff6ff;
|
|
--crm-processing-border: #bfdbfe;
|
|
--crm-resolved: #059669;
|
|
--crm-resolved-bg: #ecfdf5;
|
|
--crm-resolved-border: #a7f3d0;
|
|
--crm-closed: #6b7280;
|
|
--crm-closed-bg: #f9fafb;
|
|
--crm-closed-border: #e5e7eb;
|
|
--crm-escalated: #dc2626;
|
|
--crm-escalated-bg: #fef2f2;
|
|
|
|
/* Spacing */
|
|
--crm-nav-height: 64px;
|
|
--crm-sidebar-width: 260px;
|
|
--crm-radius-sm: 6px;
|
|
--crm-radius-md: 10px;
|
|
--crm-radius-lg: 14px;
|
|
--crm-radius-xl: 18px;
|
|
--crm-radius-full: 9999px;
|
|
|
|
/* Shadows */
|
|
--crm-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
|
--crm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
|
|
--crm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
|
|
--crm-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
|
|
|
|
/* Fonts */
|
|
--crm-font-heading: 'Manrope', sans-serif;
|
|
--crm-font-body: 'Inter', sans-serif;
|
|
}
|
|
|
|
/* ---------- Override Filament Defaults ---------- */
|
|
|
|
/* Force font family everywhere */
|
|
body,
|
|
.fi-body,
|
|
.fi-main,
|
|
.fi-sidebar,
|
|
.fi-topbar {
|
|
font-family: var(--crm-font-body) !important;
|
|
}
|
|
|
|
.fi-header h1,
|
|
.fi-header h2,
|
|
.fi-header h3,
|
|
.fi-widget-heading,
|
|
.fi-section-header h3,
|
|
.fi-modal-heading,
|
|
h1, h2, h3 {
|
|
font-family: var(--crm-font-heading) !important;
|
|
}
|
|
|
|
/* Page background */
|
|
body {
|
|
background-color: var(--crm-background) !important;
|
|
color: var(--crm-text-primary) !important;
|
|
}
|
|
|
|
/* ---------- SIDEBAR ---------- */
|
|
.fi-sidebar {
|
|
background: var(--crm-surface) !important;
|
|
border-right: 1px solid var(--crm-border) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.fi-sidebar-header {
|
|
padding: 20px 20px !important;
|
|
border-bottom: 1px solid var(--crm-border) !important;
|
|
}
|
|
|
|
.fi-sidebar-brand {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-weight: 800 !important;
|
|
font-size: 18px !important;
|
|
color: var(--crm-text-primary) !important;
|
|
letter-spacing: -0.02em !important;
|
|
}
|
|
|
|
.fi-sidebar-nav {
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.fi-sidebar-group {
|
|
margin-bottom: 20px !important;
|
|
}
|
|
|
|
.fi-sidebar-group-label {
|
|
font-size: 11px !important;
|
|
font-weight: 700 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.08em !important;
|
|
color: var(--crm-text-tertiary) !important;
|
|
padding: 0 12px !important;
|
|
margin-bottom: 8px !important;
|
|
}
|
|
|
|
.fi-sidebar-item {
|
|
border-radius: var(--crm-radius-md) !important;
|
|
margin-bottom: 2px !important;
|
|
padding: 10px 12px !important;
|
|
transition: all 0.15s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-item:hover {
|
|
background: var(--crm-surface-container) !important;
|
|
}
|
|
|
|
.fi-sidebar-item-active {
|
|
background: var(--crm-primary-light) !important;
|
|
color: var(--crm-primary) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.fi-sidebar-item-active::before {
|
|
content: '' !important;
|
|
position: absolute !important;
|
|
left: 0 !important;
|
|
top: 50% !important;
|
|
transform: translateY(-50%) !important;
|
|
width: 3px !important;
|
|
height: 20px !important;
|
|
background: var(--crm-primary) !important;
|
|
border-radius: 0 4px 4px 0 !important;
|
|
}
|
|
|
|
.fi-sidebar-item-icon {
|
|
color: var(--crm-text-secondary) !important;
|
|
}
|
|
|
|
.fi-sidebar-item-active .fi-sidebar-item-icon {
|
|
color: var(--crm-primary) !important;
|
|
}
|
|
|
|
/* ---------- TOP BAR ---------- */
|
|
.fi-topbar {
|
|
height: var(--crm-nav-height) !important;
|
|
background: rgba(255,255,255,0.9) !important;
|
|
backdrop-filter: blur(8px) !important;
|
|
border-bottom: 1px solid var(--crm-border) !important;
|
|
box-shadow: var(--crm-shadow-sm) !important;
|
|
}
|
|
|
|
.fi-topbar .fi-logo {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-weight: 800 !important;
|
|
font-size: 20px !important;
|
|
color: var(--crm-primary) !important;
|
|
letter-spacing: -0.02em !important;
|
|
}
|
|
|
|
/* ---------- MAIN CONTENT ---------- */
|
|
.fi-main {
|
|
background: var(--crm-background) !important;
|
|
}
|
|
|
|
.fi-main-ctn {
|
|
max-width: 1400px !important;
|
|
margin-left: auto !important;
|
|
margin-right: auto !important;
|
|
padding: 28px 32px !important;
|
|
}
|
|
|
|
/* ---------- PAGE HEADER ---------- */
|
|
.fi-header {
|
|
margin-bottom: 28px !important;
|
|
}
|
|
|
|
.fi-header-heading {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-size: 28px !important;
|
|
font-weight: 800 !important;
|
|
color: var(--crm-text-primary) !important;
|
|
letter-spacing: -0.02em !important;
|
|
}
|
|
|
|
.fi-breadcrumbs a,
|
|
.fi-breadcrumbs span {
|
|
font-size: 13px !important;
|
|
color: var(--crm-text-tertiary) !important;
|
|
}
|
|
|
|
/* ---------- CARDS / SECTIONS ---------- */
|
|
.fi-card,
|
|
.fi-section {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
box-shadow: var(--crm-shadow-sm) !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-section-header {
|
|
padding: 20px 24px !important;
|
|
border-bottom: 1px solid var(--crm-border) !important;
|
|
background: var(--crm-surface-dim) !important;
|
|
}
|
|
|
|
.fi-section-header h3 {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-size: 16px !important;
|
|
font-weight: 700 !important;
|
|
color: var(--crm-text-primary) !important;
|
|
}
|
|
|
|
/* ---------- STAT CARDS (Dashboard) ---------- */
|
|
.fi-wi-stats-overview-stat {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
box-shadow: var(--crm-shadow-sm) !important;
|
|
padding: 24px !important;
|
|
position: relative !important;
|
|
overflow: hidden !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-stat:hover {
|
|
box-shadow: var(--crm-shadow-md) !important;
|
|
transform: translateY(-2px) !important;
|
|
}
|
|
|
|
/* Gradient top border for stat cards */
|
|
.fi-wi-stats-overview-stat::before {
|
|
content: '' !important;
|
|
position: absolute !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
right: 0 !important;
|
|
height: 3px !important;
|
|
background: linear-gradient(90deg, var(--crm-primary), #3b82f6) !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-size: 36px !important;
|
|
font-weight: 800 !important;
|
|
color: var(--crm-text-primary) !important;
|
|
line-height: 1 !important;
|
|
letter-spacing: -0.02em !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 13px !important;
|
|
font-weight: 500 !important;
|
|
color: var(--crm-text-secondary) !important;
|
|
margin-top: 6px !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-description {
|
|
font-size: 12px !important;
|
|
color: var(--crm-text-tertiary) !important;
|
|
}
|
|
|
|
/* ---------- TABLES ---------- */
|
|
.fi-ta {
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
background: var(--crm-surface) !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-ta-header {
|
|
background: var(--crm-surface-dim) !important;
|
|
border-bottom: 1px solid var(--crm-border) !important;
|
|
}
|
|
|
|
.fi-ta-header-cell {
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 12px !important;
|
|
font-weight: 700 !important;
|
|
color: var(--crm-text-secondary) !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.04em !important;
|
|
padding: 12px 16px !important;
|
|
}
|
|
|
|
.fi-ta-row {
|
|
border-bottom: 1px solid var(--crm-border) !important;
|
|
transition: background 0.12s ease !important;
|
|
}
|
|
|
|
.fi-ta-row:hover {
|
|
background: var(--crm-surface-hover) !important;
|
|
}
|
|
|
|
/* Alternating rows */
|
|
.fi-ta-row:nth-child(even) {
|
|
background: var(--crm-surface-dim) !important;
|
|
}
|
|
|
|
.fi-ta-row:nth-child(even):hover {
|
|
background: var(--crm-surface-hover) !important;
|
|
}
|
|
|
|
.fi-ta-cell {
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 14px !important;
|
|
color: var(--crm-text-primary) !important;
|
|
padding: 14px 16px !important;
|
|
vertical-align: middle !important;
|
|
}
|
|
|
|
/* ---------- STATUS BADGES ---------- */
|
|
.fi-badge {
|
|
border-radius: var(--crm-radius-full) !important;
|
|
font-size: 12px !important;
|
|
font-weight: 600 !important;
|
|
padding: 3px 10px !important;
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
gap: 5px !important;
|
|
}
|
|
|
|
/* Pending - amber */
|
|
.fi-badge-color-warning {
|
|
background-color: var(--crm-pending-bg) !important;
|
|
color: var(--crm-pending) !important;
|
|
border: 1px solid var(--crm-pending-border) !important;
|
|
}
|
|
|
|
/* Processing - blue */
|
|
.fi-badge-color-info {
|
|
background-color: var(--crm-processing-bg) !important;
|
|
color: var(--crm-processing) !important;
|
|
border: 1px solid var(--crm-processing-border) !important;
|
|
}
|
|
|
|
/* Resolved - green */
|
|
.fi-badge-color-success {
|
|
background-color: var(--crm-resolved-bg) !important;
|
|
color: var(--crm-resolved) !important;
|
|
border: 1px solid var(--crm-resolved-border) !important;
|
|
}
|
|
|
|
/* Closed - gray */
|
|
.fi-badge-color-gray {
|
|
background-color: var(--crm-closed-bg) !important;
|
|
color: var(--crm-closed) !important;
|
|
border: 1px solid var(--crm-closed-border) !important;
|
|
}
|
|
|
|
/* Danger badge */
|
|
.fi-badge-color-danger {
|
|
background-color: var(--crm-escalated-bg) !important;
|
|
color: var(--crm-escalated) !important;
|
|
border: 1px solid rgba(220,38,38,0.2) !important;
|
|
}
|
|
|
|
/* ---------- BUTTONS ---------- */
|
|
.fi-btn {
|
|
border-radius: var(--crm-radius-md) !important;
|
|
font-family: var(--crm-font-body) !important;
|
|
font-weight: 600 !important;
|
|
font-size: 14px !important;
|
|
transition: all 0.15s ease !important;
|
|
}
|
|
|
|
.fi-btn:hover {
|
|
transform: translateY(-1px) !important;
|
|
}
|
|
|
|
.fi-btn:active {
|
|
transform: translateY(0) !important;
|
|
}
|
|
|
|
/* Primary button */
|
|
.fi-btn.fi-btn-color-primary,
|
|
.fi-btn-primary {
|
|
background-color: var(--crm-primary) !important;
|
|
color: var(--crm-on-primary) !important;
|
|
box-shadow: 0 1px 3px rgba(26,86,219,0.3) !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.fi-btn.fi-btn-color-primary:hover,
|
|
.fi-btn-primary:hover {
|
|
background-color: var(--crm-primary-hover) !important;
|
|
box-shadow: 0 4px 12px rgba(26,86,219,0.3) !important;
|
|
}
|
|
|
|
/* Secondary / Outlined button */
|
|
.fi-btn.fi-btn-color-gray,
|
|
.fi-btn.fi-btn-color-secondary {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
color: var(--crm-text-secondary) !important;
|
|
}
|
|
|
|
.fi-btn.fi-btn-color-gray:hover,
|
|
.fi-btn.fi-btn-color-secondary:hover {
|
|
background: var(--crm-surface-container) !important;
|
|
border-color: var(--crm-border-strong) !important;
|
|
}
|
|
|
|
/* Danger button */
|
|
.fi-btn.fi-btn-color-danger {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid rgba(220,38,38,0.3) !important;
|
|
color: var(--crm-escalated) !important;
|
|
}
|
|
|
|
.fi-btn.fi-btn-color-danger:hover {
|
|
background: var(--crm-escalated-bg) !important;
|
|
}
|
|
|
|
/* ---------- FORM COMPONENTS ---------- */
|
|
.fi-fo-field-label {
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 13px !important;
|
|
font-weight: 600 !important;
|
|
color: var(--crm-text-primary) !important;
|
|
}
|
|
|
|
.fi-input-wrp input,
|
|
.fi-input-wrp select,
|
|
.fi-input-wrp textarea,
|
|
.fi-select-input,
|
|
select {
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-md) !important;
|
|
background: var(--crm-surface) !important;
|
|
color: var(--crm-text-primary) !important;
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 14px !important;
|
|
padding: 10px 14px !important;
|
|
box-shadow: var(--crm-shadow-sm) !important;
|
|
transition: all 0.15s ease !important;
|
|
}
|
|
|
|
.fi-input-wrp input:focus,
|
|
.fi-input-wrp select:focus,
|
|
.fi-input-wrp textarea:focus {
|
|
border-color: var(--crm-primary) !important;
|
|
box-shadow: 0 0 0 3px rgba(26,86,219,0.1) !important;
|
|
}
|
|
|
|
.fi-input-wrp input::placeholder,
|
|
.fi-input-wrp textarea::placeholder {
|
|
color: var(--crm-text-tertiary) !important;
|
|
}
|
|
|
|
/* ---------- TABS ---------- */
|
|
.fi-tabs {
|
|
border-bottom: 1px solid var(--crm-border) !important;
|
|
gap: 0 !important;
|
|
}
|
|
|
|
.fi-tabs .fi-tabs-item {
|
|
padding: 12px 20px !important;
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 14px !important;
|
|
font-weight: 600 !important;
|
|
color: var(--crm-text-secondary) !important;
|
|
border-bottom: 2px solid transparent !important;
|
|
transition: all 0.15s ease !important;
|
|
}
|
|
|
|
.fi-tabs .fi-tabs-item:hover {
|
|
color: var(--crm-text-primary) !important;
|
|
background: var(--crm-surface-dim) !important;
|
|
}
|
|
|
|
.fi-tabs .fi-tabs-item-active {
|
|
color: var(--crm-primary) !important;
|
|
border-bottom-color: var(--crm-primary) !important;
|
|
}
|
|
|
|
/* ---------- MODALS ---------- */
|
|
.fi-modal-window {
|
|
border-radius: var(--crm-radius-xl) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
box-shadow: var(--crm-shadow-xl) !important;
|
|
}
|
|
|
|
.fi-modal-heading {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-size: 18px !important;
|
|
font-weight: 700 !important;
|
|
color: var(--crm-text-primary) !important;
|
|
}
|
|
|
|
/* ---------- FILTER BAR ---------- */
|
|
.fi-filters {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
padding: 16px !important;
|
|
margin-bottom: 20px !important;
|
|
}
|
|
|
|
/* ---------- PAGINATION ---------- */
|
|
.fi-pagination .fi-pagination-item {
|
|
border-radius: var(--crm-radius-sm) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
background: var(--crm-surface) !important;
|
|
color: var(--crm-text-secondary) !important;
|
|
font-size: 13px !important;
|
|
font-weight: 600 !important;
|
|
transition: all 0.15s ease !important;
|
|
}
|
|
|
|
.fi-pagination .fi-pagination-item:hover {
|
|
background: var(--crm-surface-container) !important;
|
|
}
|
|
|
|
.fi-pagination .fi-pagination-item-active {
|
|
background-color: var(--crm-primary) !important;
|
|
color: var(--crm-on-primary) !important;
|
|
border-color: var(--crm-primary) !important;
|
|
}
|
|
|
|
/* ---------- TOGGLE SWITCH ---------- */
|
|
.fi-toggle .fi-toggle-input:checked ~ .fi-toggle-bg {
|
|
background-color: var(--crm-primary) !important;
|
|
}
|
|
|
|
/* ---------- CHECKBOX ---------- */
|
|
.fi-checkbox-input:checked {
|
|
background-color: var(--crm-primary) !important;
|
|
border-color: var(--crm-primary) !important;
|
|
}
|
|
|
|
/* ---------- WIDGETS ---------- */
|
|
.fi-widget {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
box-shadow: var(--crm-shadow-sm) !important;
|
|
}
|
|
|
|
.fi-widget-heading {
|
|
font-family: var(--crm-font-heading) !important;
|
|
font-size: 16px !important;
|
|
font-weight: 700 !important;
|
|
color: var(--crm-text-primary) !important;
|
|
}
|
|
|
|
/* Chart widget */
|
|
.fi-wi-chart {
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
}
|
|
|
|
/* ---------- NOTIFICATION BELL ---------- */
|
|
.fi-icon-btn {
|
|
color: var(--crm-text-secondary) !important;
|
|
border-radius: var(--crm-radius-md) !important;
|
|
transition: all 0.15s ease !important;
|
|
}
|
|
|
|
.fi-icon-btn:hover {
|
|
color: var(--crm-primary) !important;
|
|
background: var(--crm-surface-container) !important;
|
|
}
|
|
|
|
/* ---------- USER MENU ---------- */
|
|
.fi-user-menu .fi-user-menu-trigger {
|
|
font-family: var(--crm-font-body) !important;
|
|
font-size: 14px !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
/* ---------- BREADCRUMBS ---------- */
|
|
.fi-breadcrumbs {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
/* ---------- ALERT / NOTIFICATION ---------- */
|
|
.fi-notification {
|
|
border-radius: var(--crm-radius-md) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
box-shadow: var(--crm-shadow-md) !important;
|
|
}
|
|
|
|
/* ---------- RELATION MANAGER ---------- */
|
|
.fi-relation-manager {
|
|
margin-top: 24px !important;
|
|
}
|
|
|
|
/* ---------- FIX: Icon sizing ---------- */
|
|
svg.fi-icon,
|
|
.fi-icon svg,
|
|
.fi-btn svg.fi-icon,
|
|
.fi-icon-btn svg,
|
|
.fi-input-wrp svg,
|
|
.fi-select svg,
|
|
.fi-fo-field-wrp svg,
|
|
svg[class*="fi-icon"] {
|
|
width: 1.25rem !important;
|
|
height: 1.25rem !important;
|
|
max-width: 1.25rem !important;
|
|
max-height: 1.25rem !important;
|
|
flex-shrink: 0 !important;
|
|
}
|
|
|
|
/* Smaller icons in table cells and badges */
|
|
.fi-ta-cell svg.fi-icon,
|
|
.fi-badge svg {
|
|
width: 1rem !important;
|
|
height: 1rem !important;
|
|
}
|
|
|
|
/* ---------- Similar Cases footer panel ---------- */
|
|
.fi-footer {
|
|
margin-top: 2rem;
|
|
background: var(--crm-surface) !important;
|
|
border: 1px solid var(--crm-border) !important;
|
|
border-radius: var(--crm-radius-lg) !important;
|
|
}
|
|
|
|
/* ---------- DARK MODE ---------- */
|
|
.dark, [class*="dark"] {
|
|
--crm-background: #0f172a;
|
|
--crm-surface: #1e293b;
|
|
--crm-surface-dim: #1e293b;
|
|
--crm-surface-container: #334155;
|
|
--crm-surface-hover: #334155;
|
|
--crm-text-primary: #e2e8f0;
|
|
--crm-text-secondary: #94a3b8;
|
|
--crm-text-tertiary: #64748b;
|
|
--crm-border: #334155;
|
|
--crm-border-strong: #475569;
|
|
--crm-primary: #60a5fa;
|
|
--crm-primary-hover: #3b82f6;
|
|
--crm-primary-light: rgba(96,165,250,0.1);
|
|
}
|
|
|
|
.dark .fi-sidebar,
|
|
[class*="dark"] .fi-sidebar {
|
|
background: #1e293b !important;
|
|
border-right-color: #334155 !important;
|
|
}
|
|
|
|
.dark .fi-topbar,
|
|
[class*="dark"] .fi-topbar {
|
|
background: rgba(15,23,42,0.9) !important;
|
|
border-bottom-color: #334155 !important;
|
|
}
|
|
|
|
/* ---------- ANIMATIONS ---------- */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.fi-main {
|
|
animation: fadeIn 0.3s ease !important;
|
|
}
|
|
|
|
/* ---------- ESCALATED INDICATOR ---------- */
|
|
.fi-badge-color-danger::before {
|
|
content: '' !important;
|
|
width: 6px !important;
|
|
height: 6px !important;
|
|
border-radius: 50% !important;
|
|
background: var(--crm-escalated) !important;
|
|
animation: pulse 2s infinite !important;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
/* ---------- TAILWIND UTILITIES (for custom blade views) ---------- */
|
|
/* These are needed because custom blade views render inside Filament layout */
|
|
/* which doesn't include full Tailwind CSS build */
|
|
|
|
/* Display */
|
|
.inline-flex { display: inline-flex !important; }
|
|
.inline-block { display: inline-block !important; }
|
|
.block { display: block !important; }
|
|
|
|
/* Flexbox */
|
|
.flex { display: flex !important; }
|
|
.flex-1 { flex: 1 1 0% !important; }
|
|
.flex-shrink-0 { flex-shrink: 0 !important; }
|
|
.items-center { align-items: center !important; }
|
|
.items-start { align-items: flex-start !important; }
|
|
.justify-center { justify-content: center !important; }
|
|
.justify-between { justify-content: space-between !important; }
|
|
.flex-col { flex-direction: column !important; }
|
|
|
|
/* Gap */
|
|
.gap-1 { gap: 0.25rem !important; }
|
|
.gap-1\.5 { gap: 0.375rem !important; }
|
|
.gap-2 { gap: 0.5rem !important; }
|
|
.gap-3 { gap: 0.75rem !important; }
|
|
.gap-4 { gap: 1rem !important; }
|
|
|
|
/* Width/Height */
|
|
.w-3 { width: 0.75rem !important; }
|
|
.w-3\.5 { width: 0.875rem !important; }
|
|
.w-4 { width: 1rem !important; }
|
|
.w-5 { width: 1.25rem !important; }
|
|
.w-6 { width: 1.5rem !important; }
|
|
.w-7 { width: 1.75rem !important; }
|
|
.w-8 { width: 2rem !important; }
|
|
.w-10 { width: 2.5rem !important; }
|
|
.w-12 { width: 3rem !important; }
|
|
.w-full { width: 100% !important; }
|
|
.h-3 { height: 0.75rem !important; }
|
|
.h-3\.5 { height: 0.875rem !important; }
|
|
.h-4 { height: 1rem !important; }
|
|
.h-5 { height: 1.25rem !important; }
|
|
.h-6 { height: 1.5rem !important; }
|
|
.h-7 { height: 1.75rem !important; }
|
|
.h-8 { height: 2rem !important; }
|
|
.h-10 { height: 2.5rem !important; }
|
|
.h-12 { height: 3rem !important; }
|
|
.h-full { height: 100% !important; }
|
|
.min-w-0 { min-width: 0 !important; }
|
|
.max-w-full { max-width: 100% !important; }
|
|
|
|
/* Padding */
|
|
.p-3 { padding: 0.75rem !important; }
|
|
.p-4 { padding: 1rem !important; }
|
|
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
|
|
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
|
|
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
|
|
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
|
|
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
|
|
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
|
|
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
|
|
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
|
|
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
|
|
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
|
|
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
|
|
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
|
|
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
|
|
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
|
|
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
|
|
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
|
|
|
|
/* Margin */
|
|
.mt-1 { margin-top: 0.25rem !important; }
|
|
.mt-1\.5 { margin-top: 0.375rem !important; }
|
|
.mt-2 { margin-top: 0.5rem !important; }
|
|
.mt-3 { margin-top: 0.75rem !important; }
|
|
.mt-4 { margin-top: 1rem !important; }
|
|
.mt-6 { margin-top: 1.5rem !important; }
|
|
.mt-8 { margin-top: 2rem !important; }
|
|
|
|
/* Border */
|
|
.rounded { border-radius: 0.25rem !important; }
|
|
.rounded-md { border-radius: 0.375rem !important; }
|
|
.rounded-lg { border-radius: 0.5rem !important; }
|
|
.rounded-xl { border-radius: 0.75rem !important; }
|
|
.rounded-full { border-radius: 9999px !important; }
|
|
.border { border-width: 1px !important; border-style: solid !important; }
|
|
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
|
|
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; }
|
|
.divide-y > * + * { border-top-width: 1px !important; border-top-style: solid !important; }
|
|
.divide-gray-100 > * + * { border-color: #f3f4f6 !important; }
|
|
.divide-gray-200 > * + * { border-color: #e5e7eb !important; }
|
|
|
|
/* Border colors */
|
|
.border-gray-100 { border-color: #f3f4f6 !important; }
|
|
.border-gray-200 { border-color: #e5e7eb !important; }
|
|
.border-gray-300 { border-color: #d1d5db !important; }
|
|
.border-amber-200 { border-color: #fde68a !important; }
|
|
.border-blue-100 { border-color: #dbeafe !important; }
|
|
.border-blue-200 { border-color: #bfdbfe !important; }
|
|
.border-green-100 { border-color: #dcfce7 !important; }
|
|
.border-green-200 { border-color: #bbf7d0 !important; }
|
|
.border-red-100 { border-color: #fee2e2 !important; }
|
|
.border-red-200 { border-color: #fecaca !important; }
|
|
|
|
/* Background colors */
|
|
.bg-white { background-color: #ffffff !important; }
|
|
.bg-gray-50 { background-color: #f9fafb !important; }
|
|
.bg-gray-100 { background-color: #f3f4f6 !important; }
|
|
.bg-gray-200 { background-color: #e5e7eb !important; }
|
|
.bg-amber-50 { background-color: #fffbeb !important; }
|
|
.bg-blue-50 { background-color: #eff6ff !important; }
|
|
.bg-blue-100 { background-color: #dbeafe !important; }
|
|
.bg-green-50 { background-color: #f0fdf4 !important; }
|
|
.bg-green-100 { background-color: #dcfce7 !important; }
|
|
.bg-red-50 { background-color: #fef2f2 !important; }
|
|
.bg-red-100 { background-color: #fee2e2 !important; }
|
|
.bg-purple-50 { background-color: #faf5ff !important; }
|
|
.bg-purple-100 { background-color: #f3e8ff !important; }
|
|
|
|
/* Text colors */
|
|
.text-gray-300 { color: #d1d5db !important; }
|
|
.text-gray-400 { color: #9ca3af !important; }
|
|
.text-gray-500 { color: #6b7280 !important; }
|
|
.text-gray-600 { color: #4b5563 !important; }
|
|
.text-gray-700 { color: #374151 !important; }
|
|
.text-gray-900 { color: #111827 !important; }
|
|
.text-amber-500 { color: #f59e0b !important; }
|
|
.text-amber-700 { color: #b45309 !important; }
|
|
.text-blue-400 { color: #60a5fa !important; }
|
|
.text-blue-500 { color: #3b82f6 !important; }
|
|
.text-blue-600 { color: #2563eb !important; }
|
|
.text-blue-700 { color: #1d4ed8 !important; }
|
|
.text-blue-800 { color: #1e40af !important; }
|
|
.text-green-500 { color: #22c55e !important; }
|
|
.text-green-700 { color: #15803d !important; }
|
|
.text-red-400 { color: #f87171 !important; }
|
|
.text-red-500 { color: #ef4444 !important; }
|
|
.text-red-700 { color: #b91c1c !important; }
|
|
.text-purple-500 { color: #a855f7 !important; }
|
|
.text-white { color: #ffffff !important; }
|
|
|
|
/* Font sizes */
|
|
.text-\[9px\] { font-size: 9px !important; }
|
|
.text-\[10px\] { font-size: 10px !important; }
|
|
.text-\[11px\] { font-size: 11px !important; }
|
|
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
|
|
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
|
|
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
|
|
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
|
|
|
|
/* Font weight */
|
|
.font-normal { font-weight: 400 !important; }
|
|
.font-medium { font-weight: 500 !important; }
|
|
.font-semibold { font-weight: 600 !important; }
|
|
.font-bold { font-weight: 700 !important; }
|
|
|
|
/* Text decoration */
|
|
.no-underline { text-decoration: none !important; }
|
|
.underline { text-decoration: underline !important; }
|
|
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
|
|
.uppercase { text-transform: uppercase !important; }
|
|
.tracking-wider { letter-spacing: 0.05em !important; }
|
|
|
|
/* Overflow */
|
|
.overflow-hidden { overflow: hidden !important; }
|
|
.overflow-x-auto { overflow-x: auto !important; }
|
|
|
|
/* Shadow */
|
|
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05) !important; }
|
|
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important; }
|
|
|
|
/* Transition */
|
|
.transition-colors { transition-property: color, background-color, border-color !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
|
|
|
/* Cursor */
|
|
.cursor-pointer { cursor: pointer !important; }
|
|
|
|
/* Table */
|
|
.w-full { width: 100% !important; }
|
|
.text-left { text-align: left !important; }
|
|
.text-center { text-align: center !important; }
|
|
.border-collapse { border-collapse: collapse !important; }
|
|
|
|
/* Hover states */
|
|
.hover\:bg-blue-50\/50:hover { background-color: rgba(239, 246, 255, 0.5) !important; }
|
|
.hover\:bg-gray-50\/50:hover { background-color: rgba(249, 250, 251, 0.5) !important; }
|
|
.hover\:text-blue-600:hover { color: #2563eb !important; }
|
|
.hover\:text-blue-800:hover { color: #1e40af !important; }
|
|
.hover\:underline:hover { text-decoration: underline !important; }
|
|
.hover\:border-blue-300:hover { border-color: #93c5fd !important; }
|
|
.group:hover .group-hover\:text-blue-500 { color: #3b82f6 !important; }
|
|
.group:hover .group-hover\:text-blue-600 { color: #2563eb !important; }
|
|
|
|
/* Grid */
|
|
.grid { display: grid !important; }
|
|
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
|
|
|
|
@media (min-width: 768px) {
|
|
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
|
|
}
|