﻿/*
 * Bundle: components.min.css
 * Generated: 2025-11-09 23:26:49
 * Files: 20
 */

/* === client-badges-enhancements.css === */
.counter-badge {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: default;
}
.counter-badge:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.counter-badge.tasks-badge {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
color: #1e40af !important;
border: 1px solid #93c5fd !important;
font-weight: 700 !important;
padding: 5px 12px !important;
border-radius: 20px !important;
display: inline-flex !important;
align-items: center !important;
gap: 5px !important;
font-size: 13px !important;
}
.counter-badge.tasks-badge:hover {
background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%) !important;
box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
}
.counter-badge.appeals-badge {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
color: #92400e !important;
border: 1px solid #fcd34d !important;
font-weight: 700 !important;
padding: 5px 12px !important;
border-radius: 20px !important;
display: inline-flex !important;
align-items: center !important;
gap: 5px !important;
font-size: 13px !important;
}
.counter-badge.appeals-badge:hover {
background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%) !important;
box-shadow: 0 4px 12px rgba(146, 64, 14, 0.25) !important;
}
.counter-badge.docs-active-badge {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
color: #065f46 !important;
border: 1px solid #6ee7b7 !important;
font-weight: 700 !important;
padding: 5px 12px !important;
border-radius: 20px !important;
display: inline-flex !important;
align-items: center !important;
gap: 5px !important;
font-size: 13px !important;
}
.counter-badge.docs-active-badge:hover {
background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%) !important;
box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25) !important;
}
.counter-badge.docs-expiring-badge {
background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
color: #9a3412 !important;
border: 1px solid #fb923c !important;
font-weight: 700 !important;
padding: 5px 12px !important;
border-radius: 20px !important;
display: inline-flex !important;
align-items: center !important;
gap: 5px !important;
font-size: 13px !important;
}
.counter-badge.docs-expiring-badge:hover {
background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%) !important;
box-shadow: 0 4px 12px rgba(154, 52, 18, 0.25) !important;
}
.counter-badge.docs-expired-badge {
background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%) !important;
color: #991b1b !important;
border: 1px solid #f87171 !important;
font-weight: 700 !important;
padding: 5px 12px !important;
border-radius: 20px !important;
display: inline-flex !important;
align-items: center !important;
gap: 5px !important;
font-size: 13px !important;
animation: pulse-red 2s ease-in-out infinite;
}
.counter-badge.docs-expired-badge:hover {
background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%) !important;
box-shadow: 0 4px 12px rgba(153, 27, 27, 0.35) !important;
animation: none;
}
@keyframes pulse-red {
0%, 100% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
}
50% {
box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
}
}
.counter-badge i {
font-size: 12px !important;
opacity: 0.9;
}
.progress-bar-container {
height: 14px !important;
border-radius: 7px !important;
}
.progress-fill {
border-radius: 7px !important;
}
.progress-text {
font-size: 10px !important;
}
.contributors-bar-wrapper,
.contributors-bar {
height: 14px !important;
border-radius: 7px !important;
}
.contributor-segment {
height: 14px !important;
}
.edit-cell-container {
padding: 6px 0 !important;
}
.progress-wrapper {
margin-bottom: 5px !important;
}
.completion-details {
font-size: 10px !important;
}
@media (max-width: 768px) {
.counter-badge {
font-size: 11px !important;
padding: 4px 10px !important;
}
.counter-badge i {
font-size: 10px !important;
}
.progress-bar-container,
.contributors-bar-wrapper {
height: 12px !important;
}
.progress-text {
font-size: 9px !important;
}
}
@media (max-width: 480px) {
.counter-badge {
font-size: 10px !important;
padding: 3px 8px !important;
}
.counter-badge i {
font-size: 9px !important;
}
}
[data-theme="dark"] .counter-badge.tasks-badge {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
color: #dbeafe !important;
border-color: #3b82f6 !important;
}
[data-theme="dark"] .counter-badge.appeals-badge {
background: linear-gradient(135deg, #78350f 0%, #92400e 100%) !important;
color: #fef3c7 !important;
border-color: #f59e0b !important;
}
[data-theme="dark"] .counter-badge.docs-active-badge {
background: linear-gradient(135deg, #064e3b 0%, #065f46 100%) !important;
color: #d1fae5 !important;
border-color: #10b981 !important;
}
[data-theme="dark"] .counter-badge.docs-expiring-badge {
background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%) !important;
color: #fed7aa !important;
border-color: #f97316 !important;
}
[data-theme="dark"] .counter-badge.docs-expired-badge {
background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
color: #fecaca !important;
border-color: #ef4444 !important;
}
@media print {
.counter-badge {
background: #f3f4f6 !important;
border: 1px solid #d1d5db !important;
color: #000 !important;
box-shadow: none !important;
}
.progress-bar-container {
border: 1px solid #000;
}
.progress-fill {
background: #000 !important;
}
}

/* === table-toolbar.css === */
.table-toolbar {
animation: slideInDown 0.4s ease-out;
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.toolbar-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}
.toolbar-btn:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
#export-excel-btn:hover {
background: #059669 !important;
}
#export-pdf-btn:hover {
background: #dc2626 !important;
}
#print-table-btn:hover {
background: #2563eb !important;
}
#refresh-table-btn:hover {
background: rgba(255,255,255,0.3) !important;
}
#refresh-table-btn.loading .fa-sync-alt {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.view-btn {
transition: all 0.3s ease;
}
.view-btn:hover:not(.active) {
background: rgba(255,255,255,0.1) !important;
color: white !important;
}
.view-btn.active {
background: white !important;
color: #667eea !important;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.view-container {
transition: opacity 0.3s ease;
}
.view-container:not(.active) {
display: none;
}
.cards-grid {
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.client-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
border: 1px solid #e5e7eb;
position: relative;
overflow: hidden;
}
.client-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}
.client-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.card-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #e5e7eb;
}
.card-avatar {
width: 60px;
height: 60px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
font-size: 24px;
font-weight: 600;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.card-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 12px;
}
.card-main-info {
flex: 1;
min-width: 0;
}
.card-title {
font-size: 16px;
font-weight: 600;
color: #1f2937;
margin: 0 0 4px 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-file-number {
font-size: 13px;
color: #6b7280;
display: flex;
align-items: center;
gap: 6px;
}
.card-file-number i {
color: #667eea;
}
.card-file-number.dasht {
color: #ef4444;
font-weight: 600;
}
.card-file-number.dasht i {
color: #ef4444;
}
.card-body {
display: flex;
flex-direction: column;
gap: 12px;
}
.card-info-row {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 14px;
}
.card-info-row i {
width: 20px;
color: #667eea;
margin-top: 2px;
flex-shrink: 0;
}
.card-info-label {
font-weight: 500;
color: #6b7280;
min-width: 100px;
flex-shrink: 0;
}
.card-info-value {
color: #1f2937;
flex: 1;
word-break: break-word;
}
.card-footer {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
}
.card-date {
color: #6b7280;
display: flex;
align-items: center;
gap: 6px;
}
.card-date i {
color: #667eea;
}
.card-actions {
display: flex;
gap: 8px;
}
.card-action-btn {
width: 32px;
height: 32px;
border-radius: 6px;
border: 1px solid #e5e7eb;
background: white;
color: #667eea;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
font-size: 14px;
}
.card-action-btn:hover {
background: #667eea;
color: white;
border-color: #667eea;
transform: translateY(-2px);
}
.card-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
}
.card-badge {
padding: 4px 10px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 4px;
}
.card-badge.vat-badge {
background: #dbeafe;
color: #1e40af;
}
.card-badge.law6-badge {
background: #fef3c7;
color: #92400e;
}
.card-badge.inv-badge {
background: #d1fae5;
color: #065f46;
}
.card-badge.social-insurance-badge {
background: #e0e7ff;
color: #3730a3;
}
@media (max-width: 768px) {
.table-toolbar {
flex-direction: column;
gap: 12px;
align-items: stretch !important;
}
.toolbar-right,
.toolbar-left {
justify-content: center;
}
.toolbar-btn span,
.view-btn span {
display: none;
}
.toolbar-btn,
.view-btn {
padding: 8px 12px !important;
}
.cards-grid {
grid-template-columns: 1fr !important;
}
}
@media (max-width: 480px) {
.toolbar-right {
flex-wrap: wrap;
}
.card-header {
flex-direction: column;
text-align: center;
}
.card-info-row {
flex-direction: column;
gap: 4px;
}
.card-info-label {
min-width: auto;
}
}
@media print {
.table-toolbar {
display: none !important;
}
#cards-view {
display: none !important;
}
#table-view {
display: block !important;
}
}
@media (prefers-color-scheme: dark) {
.client-card {
background: #1f2937;
border-color: #374151;
}
.card-header {
border-bottom-color: #374151;
}
.card-title {
color: #f9fafb;
}
.card-info-label {
color: #9ca3af;
}
.card-info-value {
color: #e5e7eb;
}
.card-footer {
border-top-color: #374151;
}
.card-action-btn {
background: #374151;
border-color: #4b5563;
color: #9ca3af;
}
.card-action-btn:hover {
background: #667eea;
color: white;
border-color: #667eea;
}
}

/* === chat-fab.css === */
.chat-fab {
position: fixed;
bottom: 20px;
right: 20px;
left: auto;
width: auto;
min-width: 56px;
height: 48px;
padding: 0 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 999px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
cursor: pointer;
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6),
0 4px 16px rgba(118, 75, 162, 0.5),
0 0 0 0 rgba(102, 126, 234, 0.4);
z-index: 2147483647 !important;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: none;
outline: none;
opacity: 0;
transform: scale(0) rotate(-180deg);
pointer-events: none;
}
body.client-modal-open .chat-fab {
opacity: 1;
transform: scale(1) rotate(0deg);
pointer-events: all;
animation: chatFabEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
chatFabPulse 3s ease-in-out 0.6s infinite;
}
.chat-fab-icon {
color: white;
font-size: 20px;
transition: transform 0.3s ease;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.chat-fab-label {
color: #fff;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.2px;
line-height: 1;
white-space: nowrap;
}
.chat-fab:hover {
transform: scale(1.05);
box-shadow: 0 12px 32px rgba(102, 126, 234, 0.7),
0 6px 20px rgba(118, 75, 162, 0.6),
0 0 40px rgba(102, 126, 234, 0.4);
}
.chat-fab:hover .chat-fab-icon {
transform: scale(1.15) rotate(15deg);
}
.chat-fab:active {
transform: scale(0.95);
}
.chat-fab-badge {
position: absolute;
top: -6px;
right: -6px;
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
font-size: 12px;
font-weight: 700;
min-width: 24px;
height: 24px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 7px;
box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5),
0 0 0 3px rgba(255, 255, 255, 0.9);
animation: chatBadgePulse 1.5s infinite;
z-index: 1;
}
@keyframes chatBadgePulse {
0%, 100% {
transform: scale(1);
box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5),
0 0 0 3px rgba(255, 255, 255, 0.9);
}
50% {
transform: scale(1.15);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.7),
0 0 0 3px rgba(255, 255, 255, 0.9),
0 0 20px rgba(239, 68, 68, 0.3);
}
}
.chat-fab-tooltip {
position: absolute;
left: 80px;
right: auto;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
color: white;
padding: 10px 16px;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3),
0 0 0 2px rgba(102, 126, 234, 0.3);
z-index: 2147483647 !important;
}
.chat-fab-tooltip::after {
content: '';
position: absolute;
right: 100%;
left: auto;
top: 50%;
transform: translateY(-50%);
border: 8px solid transparent;
border-right-color: #1f2937;
}
.chat-fab:hover .chat-fab-tooltip {
opacity: 1;
left: 85px;
right: auto;
}
.chat-fab::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
width: calc(100% + 6px);
height: calc(100% + 6px);
border-radius: inherit;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
opacity: 0;
z-index: -1;
}
body.client-modal-open .chat-fab::before {
animation: chatFabRipple 2.5s ease-out infinite;
}
@keyframes chatFabEntrance {
0% {
transform: scale(0) rotate(-180deg);
opacity: 0;
}
60% {
transform: scale(1.2) rotate(20deg);
opacity: 1;
}
100% {
transform: scale(1) rotate(0deg);
opacity: 1;
}
}
@keyframes chatFabPulse {
0%, 100% {
transform: scale(1) rotate(0deg);
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6),
0 4px 16px rgba(118, 75, 162, 0.5);
}
50% {
transform: scale(1.05) rotate(0deg);
box-shadow: 0 12px 32px rgba(102, 126, 234, 0.8),
0 6px 20px rgba(118, 75, 162, 0.7);
}
}
@keyframes chatFabRipple {
0% {
transform: scale(1);
opacity: 0.7;
}
50% {
transform: scale(1.5);
opacity: 0.4;
}
100% {
transform: scale(2);
opacity: 0;
}
}
.chat-fab.active {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6),
0 4px 16px rgba(5, 150, 105, 0.5);
}
.chat-fab.active::before {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.chat-fab.closing .chat-fab-icon {
transform: rotate(180deg);
}
@media (max-width: 768px) {
.chat-fab {
bottom: 15px;
right: 15px;
left: auto;
min-width: 48px;
height: 44px;
padding: 0 12px;
}
.chat-fab-icon {
font-size: 18px;
}
.chat-fab-tooltip { display: none; }
.chat-fab-label   { display: none; }
}
body.dark-mode .chat-fab-tooltip {
background: #374151;
color: #f3f4f6;
}
body.dark-mode .chat-fab-tooltip::after {
border-right-color: #374151;
border-left-color: transparent;
}
body[dir="rtl"].dark-mode .chat-fab-tooltip::after {
border-right-color: #374151;
border-left-color: transparent;
}
.chat-fab.has-notification {
animation: chatFabNotificationPulse 1.5s infinite;
}
@keyframes chatFabNotificationPulse {
0%, 100% {
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4),
0 2px 8px rgba(118, 75, 162, 0.3);
}
50% {
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6),
0 4px 16px rgba(239, 68, 68, 0.4);
}
}
.chat-fab:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35),
0 8px 24px rgba(102, 126, 234, 0.6),
0 4px 16px rgba(118, 75, 162, 0.5);
}
.chat-fab:focus:not(:focus-visible) {
outline: none;
}
.chat-fab,
.chat-fab::before,
.chat-fab-icon,
.chat-fab-tooltip {
will-change: transform, opacity;
}

/* === sparklines.css === */
.stat-sparkline-container {
width: 80px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 5px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
transition: all 0.3s ease;
}
.stat-sparkline {
display: block;
max-width: 100%;
height: auto;
}
.stat-sparkline-container:hover {
background: rgba(255, 255, 255, 0.08);
transform: scale(1.02);
}
.stat-sparkline-container.loading {
opacity: 0.5;
pointer-events: none;
}
.stat-sparkline-container.loading::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.stat-sparkline-container {
width: 60px;
}
.stat-sparkline {
width: 60px;
height: 45px;
}
}
body.dark-mode .stat-sparkline-container {
background: rgba(0, 0, 0, 0.2);
}
body.dark-mode .stat-sparkline-container:hover {
background: rgba(0, 0, 0, 0.3);
}

/* === category-cards-inline.css === */
.category-section {
direction: rtl;
margin-bottom: 24px;
padding: 22px 24px 26px;
border-radius: 18px;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #0ea5e9 100%);
box-shadow: 0 35px 60px -45px rgba(79, 70, 229, 0.8);
position: relative;
overflow: hidden;
color: #ffffff;
}
.category-section::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 55%);
pointer-events: none;
z-index: 0;
}
.category-section__header,
.category-section__body,
.category-section__footer,
.category-section__controls,
.category-section__title {
position: relative;
z-index: 1;
}
.category-section__header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 20px;
}
.category-section__title {
display: flex;
align-items: center;
gap: 14px;
}
.category-section__title i {
background: rgba(255,255,255,0.15);
border-radius: 16px;
padding: 12px;
font-size: 20px;
}
.category-section__title h3 {
margin: 0;
font-size: 20px;
font-weight: 800;
letter-spacing: 0.02em;
color: #ffffff;
}
.category-section__title p {
margin: 4px 0 0;
font-size: 13px;
color: rgba(255,255,255,0.85);
}
.category-section__controls {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
gap: 12px;
}
.category-type-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.category-view-toggle {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px;
border-radius: 999px;
background: rgba(255,255,255,0.18);
border: 1px solid rgba(255,255,255,0.25);
}
.category-view-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
border-radius: 999px;
border: 0;
background: transparent;
color: rgba(255,255,255,0.85);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.category-view-btn.active {
background: rgba(255,255,255,0.92);
color: #4f46e5;
box-shadow: 0 10px 24px -12px rgba(255,255,255,0.8);
}
.category-view-btn i {
font-size: 14px;
}
.category-loading {
display: none;
text-align: center;
padding: 28px 10px;
}
.category-loading .loading-spinner {
display: inline-block;
width: 32px;
height: 32px;
border-radius: 50%;
border: 3px solid rgba(255,255,255,0.35);
border-top-color: #ffffff;
animation: spin 1s linear infinite;
}
.category-loading p {
margin-top: 12px;
font-size: 13px;
color: rgba(255,255,255,0.85);
}
.category-section__body {
position: relative;
z-index: 1;
}
.category-section__footer {
margin-top: 18px;
text-align: center;
}
.category-empty {
display: none;
text-align: center;
padding: 36px 20px;
border-radius: 14px;
background: rgba(255,255,255,0.16);
border: 1px dashed rgba(255,255,255,0.3);
margin-top: 18px;
}
.category-empty i {
font-size: 42px;
margin-bottom: 10px;
opacity: 0.75;
}
.category-empty h4 {
margin: 0 0 6px;
font-size: 16px;
}
.category-empty p {
margin: 0;
font-size: 13px;
color: rgba(255,255,255,0.82);
}
@media (max-width: 992px) {
.category-section {
padding: 20px;
}
.category-section__header {
flex-direction: column;
align-items: flex-start;
}
.category-section__controls {
width: 100%;
justify-content: space-between;
gap: 10px;
}
.category-view-toggle {
margin-inline-start: auto;
}
}
@media (max-width: 640px) {
.category-section {
padding: 18px;
border-radius: 16px;
}
.category-section__controls {
flex-direction: column;
align-items: stretch;
}
.category-view-toggle {
width: 100%;
justify-content: space-between;
}
}
.category-cards-grid-inline {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 18px;
padding: 4px 0;
}
.category-cards-grid-inline[data-view="list"] {
grid-template-columns: 1fr;
}
.category-cards-grid-inline .category-card {
display: none;
flex-direction: column;
gap: 16px;
padding: 20px 22px;
border-radius: 18px;
background: rgba(255,255,255,0.92);
border: 1px solid rgba(255,255,255,0.6);
box-shadow: 0 24px 45px -28px rgba(15, 23, 42, 0.45);
cursor: pointer;
position: relative;
overflow: hidden;
min-height: 170px;
transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.category-cards-grid-inline .category-card::after {
content: '';
position: absolute;
inset-inline-start: -40px;
inset-block-start: -60px;
width: 120px;
height: 120px;
background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 60%);
transform: rotate(25deg);
}
.category-cards-grid-inline .category-card.is-visible {
display: flex !important;
}
.category-cards-grid-inline .category-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 30px 60px -32px rgba(15, 23, 42, 0.55);
border-color: rgba(79, 70, 229, 0.25);
}
.category-cards-grid-inline[data-view="list"] .category-card.is-visible {
flex-direction: row;
align-items: center;
gap: 22px;
min-height: 140px;
padding-inline: 28px;
}
.category-cards-grid-inline[data-view="list"] .category-card::after {
inset-inline-start: -20px;
inset-block-start: auto;
bottom: -40px;
}
.category-type-btn {
padding: 8px 16px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}
.category-type-btn:not(.active) {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.category-type-btn:not(.active):hover {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-2px);
}
.category-type-btn.active {
background: rgba(255, 255, 255, 0.95);
color: #667eea;
border: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.category-type-btn i {
margin-left: 6px;
}
#show-more-categories {
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
50% {
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}
}
#show-more-categories:hover {
background: #667eea;
color: white;
transform: translateY(-50%) scale(1.1);
}
.category-cards-grid-inline .category-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
position: relative;
z-index: 1;
}
.category-cards-grid-inline .category-card-icon {
width: 58px;
height: 58px;
border-radius: 18px;
display: grid;
place-items: center;
font-size: 28px;
color: #4f46e5;
background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(129,140,248,0.25));
transition: all 0.35s ease;
}
.category-cards-grid-inline .category-card:hover .category-card-icon {
transform: translateY(-4px) scale(1.07);
background: linear-gradient(135deg, rgba(79,70,229,0.25), rgba(59,130,246,0.28));
}
.category-cards-grid-inline .category-card-count {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
background: linear-gradient(135deg, #4f46e5, #6366f1);
color: #ffffff;
border-radius: 999px;
font-size: 18px;
font-weight: 700;
box-shadow: 0 12px 30px -18px rgba(79, 70, 229, 0.8);
}
.category-cards-grid-inline[data-view="list"] .category-card-header {
flex-direction: row-reverse;
justify-content: flex-start;
gap: 24px;
}
.category-cards-grid-inline[data-view="list"] .category-card-count {
font-size: 20px;
padding-inline: 18px;
}
.category-cards-grid-inline .category-card-title {
font-size: 17px;
font-weight: 700;
color: #0f172a;
margin: 0 0 6px;
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.category-cards-grid-inline[data-view="list"] .category-card-title {
white-space: normal;
max-width: 420px;
}
.category-cards-grid-inline .category-card-subtitle {
font-size: 13px;
color: #475569;
margin: 0;
display: flex;
align-items: center;
gap: 6px;
}
.category-cards-grid-inline .category-card-subtitle::before {
content: '\f201';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
font-size: 11px;
color: #6366f1;
}
.category-cards-grid-inline .category-card-body {
display: flex;
flex-direction: column;
gap: 8px;
position: relative;
z-index: 1;
color: #1f2937;
}
.category-cards-grid-inline[data-view="list"] .category-card-body {
flex: 1;
}
.category-cards-grid-inline .category-card-progress {
height: 7px;
margin: 8px 0 4px;
background: #e0e7ff;
border-radius: 999px;
overflow: hidden;
}
.category-cards-grid-inline .category-card-progress-fill {
height: 100%;
border-radius: inherit;
background: linear-gradient(135deg, #6366f1, #a855f7);
box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}
.category-cards-grid-inline .category-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding-top: 12px;
border-top: 1px dashed rgba(148,163,184,0.4);
margin-top: auto;
}
.category-cards-grid-inline .category-card-percentage {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: #334155;
font-weight: 600;
}
.category-cards-grid-inline .category-card-percentage i {
color: #6366f1;
}
.category-cards-grid-inline .category-card-action {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #6366f1;
font-weight: 600;
transition: transform 0.25s ease;
}
.category-cards-grid-inline .category-card-action i {
font-size: 11px;
}
.category-cards-grid-inline .category-card:hover .category-card-action {
transform: translateX(-4px);
}
.category-cards-grid-inline .category-card.active,
.category-cards-grid-inline .category-card.selected {
border-color: rgba(79, 70, 229, 0.45);
box-shadow: 0 32px 60px -32px rgba(79, 70, 229, 0.75);
transform: translateY(-6px) scale(1.01);
}
.category-cards-grid-inline .category-card.active .category-card-count,
.category-cards-grid-inline .category-card.selected .category-card-count {
background: linear-gradient(135deg, #22c55e, #16a34a);
box-shadow: 0 16px 32px -20px rgba(22, 163, 74, 0.65);
}
.category-cards-grid-inline .category-card.active::after,
.category-cards-grid-inline .category-card.selected::after {
background: radial-gradient(circle, rgba(34,197,94,0.22), transparent 60%);
}
@media (max-width: 768px) {
.category-type-buttons {
overflow-x: auto;
scrollbar-width: none;
}
.category-type-buttons::-webkit-scrollbar {
display: none;
}
.category-cards-grid-inline {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.category-cards-grid-inline[data-view="list"] {
grid-template-columns: 1fr;
}
.category-cards-grid-inline .category-card {
min-height: 150px;
padding: 18px;
}
}
.show-all-cards-btn {
display: none;
align-items: center;
gap: 8px;
padding: 10px 22px;
background: rgba(255,255,255,0.92);
color: #4338ca;
border: 1px solid rgba(255,255,255,0.6);
border-radius: 999px;
cursor: pointer;
font-size: 14px;
font-weight: 700;
transition: all 0.3s ease;
box-shadow: 0 18px 30px -24px rgba(15, 23, 42, 0.55);
}
.show-all-cards-btn:hover {
background: #4338ca;
color: #ffffff;
border-color: rgba(67, 56, 202, 0.4);
box-shadow: 0 26px 40px -28px rgba(67, 56, 202, 0.55);
transform: translateY(-2px);
}
.show-all-cards-btn.is-visible {
display: inline-flex;
}
.show-all-cards-btn i {
margin-left: 0;
}

/* === compare-clients.css === */
.compare-checkbox-cell {
text-align: center !important;
vertical-align: middle !important;
padding: 8px !important;
width: 40px !important;
overflow: hidden !important;
font-size: 0 !important;
line-height: 0 !important;
white-space: nowrap !important;
}
.compare-checkbox-cell::before,
.compare-checkbox-cell::after,
.compare-checkbox-cell *::before,
.compare-checkbox-cell *::after {
content: none !important;
display: none !important;
}
.compare-checkbox-cell > *:not(input[type="checkbox"]) {
display: none !important;
visibility: hidden !important;
}
.compare-checkbox-cell input[type="checkbox"] {
display: inline-block !important;
margin: 0 auto !important;
padding: 0 !important;
font-size: initial !important;
}
.compare-checkbox {
width: 18px;
height: 18px;
cursor: pointer;
accent-color: #667eea;
transition: transform 0.2s ease;
}
.compare-checkbox:hover {
transform: scale(1.15);
}
.compare-checkbox:checked {
transform: scale(1.1);
}
tr.selected-for-compare {
background-color: #f3f4f6 !important;
border-left: 4px solid #667eea !important;
}
tr.selected-for-compare:hover {
background-color: #e5e7eb !important;
}
.compare-toolbar {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%) translateY(100%);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 16px 24px;
border-radius: 16px 16px 0 0;
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
gap: 20px;
z-index: 9998;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-width: 400px;
max-width: 600px;
}
.compare-toolbar.show {
transform: translateX(-50%) translateY(0);
}
.compare-selection-info {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
}
.compare-selection-info i {
font-size: 24px;
opacity: 0.9;
}
.compare-selection-text {
display: flex;
flex-direction: column;
gap: 2px;
}
.compare-selection-count {
font-size: 18px;
font-weight: 700;
}
.compare-selection-label {
font-size: 13px;
opacity: 0.85;
}
.compare-actions {
display: flex;
gap: 12px;
}
.btn-compare,
.btn-clear-selection {
padding: 12px 24px;
border: none;
border-radius: 12px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-compare {
background: white;
color: #667eea;
}
.btn-compare:hover {
background: #f8f9ff;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-compare:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
background: #e5e7eb !important;
color: #9ca3af !important;
}
.btn-compare:disabled:hover {
transform: none !important;
box-shadow: none !important;
}
.btn-clear-selection {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-clear-selection:hover {
background: rgba(255, 255, 255, 0.3);
}
.select-column {
text-align: center !important;
vertical-align: middle !important;
width: 50px !important;
min-width: 50px !important;
max-width: 50px !important;
padding: 8px !important;
overflow: hidden !important;
font-size: 0 !important;
line-height: 0 !important;
white-space: nowrap !important;
}
.select-column::before,
.select-column::after,
.select-column *::before,
.select-column *::after {
content: none !important;
display: none !important;
}
.select-column > *:not(input[type="checkbox"]) {
display: none !important;
visibility: hidden !important;
}
.select-column input[type="checkbox"] {
display: inline-block !important;
margin: 0 auto !important;
padding: 0 !important;
font-size: initial !important;
}
.select-column span,
.select-column div,
.select-column p,
.select-column a,
.select-column label {
display: none !important;
visibility: hidden !important;
font-size: 0 !important;
}
.select-column-header {
width: 50px !important;
min-width: 50px !important;
max-width: 50px !important;
text-align: center !important;
padding: 8px !important;
overflow: hidden !important;
font-size: 0 !important;
}
.select-column-header > *:not(input[type="checkbox"]) {
display: none !important;
}
#select-all-clients {
width: 20px !important;
height: 20px !important;
cursor: pointer !important;
accent-color: #667eea !important;
margin: 0 auto !important;
display: inline-block !important;
transform: scale(1.3) !important;
}
.client-select-checkbox {
width: 20px !important;
height: 20px !important;
cursor: pointer !important;
accent-color: #667eea !important;
margin: 0 auto !important;
display: inline-block !important;
transform: scale(1.3) !important;
}
tr.selected-for-compare {
background-color: rgba(102, 126, 234, 0.08) !important;
}
tr.selected-for-compare td {
border-color: rgba(102, 126, 234, 0.25) !important;
}
.compare-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
animation: fadeIn 0.3s ease;
padding: 20px;
}
.compare-modal.show {
display: flex;
}
.compare-modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.compare-modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border-radius: 20px;
box-shadow: 0 25px 70px rgba(15, 23, 42, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
width: 96vw;
max-width: 1600px;
height: 92vh;
max-height: 95vh;
display: flex;
flex-direction: column;
z-index: 10000;
opacity: 0;
animation: slideUpCentered 0.3s ease forwards;
border: 1px solid rgba(148, 163, 184, 0.25);
overflow: hidden;
}
@keyframes slideUpCentered {
from {
transform: translate(-50%, calc(-50% + 30px));
opacity: 0;
}
to {
transform: translate(-50%, -50%);
opacity: 1;
}
}
.compare-modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 24px 32px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.compare-modal-title-section {
display: flex;
align-items: center;
gap: 16px;
}
.compare-modal-icon {
font-size: 32px;
opacity: 0.9;
}
.compare-modal-title {
margin: 0;
font-size: 26px;
font-weight: 700;
}
.compare-modal-subtitle {
margin: 4px 0 0 0;
font-size: 14px;
opacity: 0.85;
}
.compare-modal-actions {
display: flex;
gap: 12px;
}
.btn-export-comparison,
.btn-close-compare {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 10px 20px;
border-radius: 10px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-export-comparison:hover,
.btn-close-compare:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
.compare-filters {
padding: 16px 24px;
background: #f8f9fa;
border-bottom: 1px solid #e2e8f0;
display: flex;
gap: 16px;
align-items: center;
flex-shrink: 0;
}
.compare-search {
flex: 1;
position: relative;
}
.compare-search input {
width: 100%;
padding: 10px 16px 10px 40px;
border: 1px solid #cbd5e0;
border-radius: 10px;
font-size: 14px;
transition: all 0.2s ease;
}
.compare-search input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.compare-search i {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: #64748b;
}
.compare-filter-tags {
display: flex;
gap: 8px;
}
.filter-tag {
padding: 8px 16px;
background: white;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 13px;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-tag.active {
background: #667eea;
color: white;
border-color: #667eea;
}
.filter-tag:hover {
border-color: #667eea;
}
.compare-modal-body {
flex: 1;
overflow: auto;
padding: 24px;
}
.comparison-table-wrapper {
overflow-x: auto;
}
.comparison-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 14px;
}
.comparison-table thead {
position: sticky;
top: 0;
z-index: 10;
background: white;
}
.comparison-table th {
background: #f8f9fa;
padding: 16px;
text-align: right;
font-weight: 700;
border-bottom: 2px solid #e2e8f0;
white-space: nowrap;
}
.comparison-table th.field-name-col {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
width: 250px;
position: sticky;
right: 0;
z-index: 11;
}
.comparison-table th.client-col {
min-width: 200px;
}
.comparison-table tbody tr:nth-child(even) {
background: #f8f9fa;
}
.comparison-table td {
padding: 14px 16px;
border-bottom: 1px solid #e2e8f0;
vertical-align: top;
}
.comparison-table td.field-name-cell {
background: white;
font-weight: 600;
color: #1e293b;
position: sticky;
right: 0;
border-left: 2px solid #e2e8f0;
display: flex;
align-items: center;
gap: 8px;
}
.field-category-icon {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
}
.field-category-icon.general { background: #e0f2fe; color: #0284c7; }
.field-category-icon.contact { background: #fef3c7; color: #d97706; }
.field-category-icon.business { background: #ddd6fe; color: #7c3aed; }
.field-category-icon.financial { background: #dcfce7; color: #16a34a; }
.field-category-icon.documents { background: #ffe4e6; color: #e11d48; }
.comparison-table td.client-value-cell {
color: #475569;
}
.comparison-table tr.has-difference td.client-value-cell {
background: #fef3c7;
border-right: 3px solid #f59e0b;
}
.comparison-table tr.all-same td.client-value-cell {
background: #dcfce7;
border-right: 3px solid #22c55e;
}
.comparison-table tr.has-empty td.client-value-cell.empty-value {
background: #fee2e2;
color: #dc2626;
font-style: italic;
}
.comparison-table td.client-value-cell.empty-value::before {
content: 'غير محدد';
}
.value-badge {
display: inline-block;
padding: 4px 10px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
}
.value-badge.status-active { background: #dcfce7; color: #16a34a; }
.value-badge.status-inactive { background: #fee2e2; color: #dc2626; }
.value-badge.status-pending { background: #fef3c7; color: #d97706; }
.compare-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
gap: 16px;
}
.compare-loading-spinner {
width: 50px;
height: 50px;
border: 4px solid #e2e8f0;
border-top-color: #667eea;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.compare-empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding: 60px 20px;
gap: 16px;
color: #64748b;
}
.compare-empty-state i {
font-size: 64px;
opacity: 0.3;
}
@media (max-width: 900px) {
.compare-toolbar {
min-width: 90%;
flex-direction: column;
gap: 12px;
}
.compare-actions {
width: 100%;
}
.btn-compare,
.btn-clear-selection {
flex: 1;
justify-content: center;
}
.compare-modal-content {
width: 98vw;
height: 95vh;
}
.compare-filters {
flex-direction: column;
align-items: stretch;
}
.comparison-table th.field-name-col {
width: 180px;
}
}
@media (max-width: 600px) {
.compare-modal-header {
padding: 16px 20px;
}
.compare-modal-title {
font-size: 20px;
}
.compare-modal-icon {
font-size: 24px;
}
.compare-modal-body {
padding: 16px;
}
.comparison-table th,
.comparison-table td {
padding: 10px 12px;
font-size: 13px;
}
}

/* === floating-chat-window.css === */
.floating-chat-window {
position: fixed !important;
bottom: 20px !important;
left: 20px !important;
top: auto !important;
right: auto !important;
transform: scale(0.95);
width: 400px;
max-width: calc(100vw - 40px);
height: 600px;
max-height: calc(100vh - 100px);
background: #fff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
0 10px 30px rgba(0, 0, 0, 0.3),
0 5px 20px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 999999 !important;
overflow: hidden;
}
.floating-chat-window.show {
opacity: 1 !important;
visibility: visible !important;
transform: scale(1) !important;
pointer-events: all !important;
}
.floating-chat-window.minimized {
height: 70px;
width: 360px;
bottom: 20px !important;
left: 20px !important;
top: auto !important;
right: auto !important;
transform: none !important;
overflow: hidden;
border-radius: 35px;
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4),
0 4px 16px rgba(118, 75, 162, 0.3);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
animation: minimizedPulse 2s ease-in-out infinite;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-chat-window.minimized:hover {
transform: scale(1.05) !important;
box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5),
0 6px 20px rgba(118, 75, 162, 0.4);
}
@keyframes minimizedPulse {
0%, 100% {
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4),
0 4px 16px rgba(118, 75, 162, 0.3);
}
50% {
box-shadow: 0 10px 28px rgba(102, 126, 234, 0.5),
0 5px 18px rgba(118, 75, 162, 0.4);
}
}
.floating-chat-window.minimized .floating-chat-messages,
.floating-chat-window.minimized .floating-chat-input-container {
display: none;
}
.floating-chat-window.minimized .floating-chat-header {
cursor: pointer;
transition: all 0.3s ease;
background: transparent !important;
border: none !important;
padding: 15px 20px;
}
.floating-chat-window.minimized .floating-chat-header-content {
gap: 12px;
}
.floating-chat-window.minimized .floating-chat-avatar {
width: 45px;
height: 45px;
background: rgba(255, 255, 255, 0.2);
border: 2px solid rgba(255, 255, 255, 0.5);
}
.floating-chat-window.minimized .floating-chat-title h3 {
color: #fff;
font-size: 15px;
font-weight: 700;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.floating-chat-window.minimized .floating-chat-status {
color: rgba(255, 255, 255, 0.9);
font-size: 13px;
}
.floating-chat-window.minimized .floating-chat-actions {
display: none;
}
.floating-chat-backdrop {
position: fixed !important;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease;
z-index: 999998 !important;
pointer-events: none;
}
.floating-chat-backdrop.show {
opacity: 1 !important;
visibility: visible !important;
pointer-events: all !important;
}
.floating-chat-window.show {
display: flex !important;
}
body .floating-chat-window {
z-index: 2147483647 !important;
}
body.client-modal-open .floating-chat-window {
z-index: 2147483647 !important;
}
.floating-chat-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
color: white;
border-radius: 16px 16px 0 0;
flex-shrink: 0;
}
.floating-chat-header-content {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
}
.floating-chat-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
position: relative;
flex-shrink: 0;
}
.floating-chat-avatar i {
font-size: 24px;
color: white;
}
.floating-chat-status-dot {
position: absolute;
bottom: 2px;
right: 2px;
width: 12px;
height: 12px;
background: #25D366;
border: 2px solid #128C7E;
border-radius: 50%;
animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.floating-chat-title {
display: flex;
flex-direction: column;
gap: 2px;
}
.floating-chat-title h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
line-height: 1.2;
color: white;
}
.floating-chat-status {
font-size: 12px;
color: rgba(255, 255, 255, 0.85);
font-weight: 400;
}
.floating-chat-actions {
display: flex;
align-items: center;
gap: 4px;
}
.floating-chat-action-btn {
width: 32px;
height: 32px;
border: none;
background: rgba(255, 255, 255, 0.15);
color: white;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.floating-chat-action-btn:hover {
background: rgba(255, 255, 255, 0.25);
transform: scale(1.05);
}
.floating-chat-action-btn i {
font-size: 14px;
}
.floating-chat-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
background: #E5DDD5;
background-image:
repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
rgba(0, 0, 0, 0.01) 10px,
rgba(0, 0, 0, 0.01) 20px
);
display: flex;
flex-direction: column;
gap: 8px;
}
.floating-chat-messages::-webkit-scrollbar {
width: 6px;
}
.floating-chat-messages::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
}
.floating-chat-messages::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 3px;
}
.floating-chat-messages::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.3);
}
.floating-chat-message {
display: flex;
gap: 8px;
margin-bottom: 4px;
animation: messageSlideIn 0.3s ease-out;
}
@keyframes messageSlideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.floating-chat-message.user {
flex-direction: row-reverse;
}
.floating-chat-message-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
align-self: flex-end;
}
.floating-chat-message.bot .floating-chat-message-avatar {
background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
color: white;
}
.floating-chat-message.user .floating-chat-message-avatar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.floating-chat-message-bubble {
max-width: 75%;
padding: 8px 12px;
border-radius: 8px;
position: relative;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.floating-chat-message.bot .floating-chat-message-bubble {
background: white;
border-radius: 0 8px 8px 8px;
}
.floating-chat-message.user .floating-chat-message-bubble {
background: #DCF8C6;
border-radius: 8px 0 8px 8px;
}
.floating-chat-message-text {
font-size: 14px;
line-height: 1.5;
color: #000;
word-wrap: break-word;
margin: 0;
}
.floating-chat-message-time {
font-size: 11px;
color: rgba(0, 0, 0, 0.45);
margin-top: 4px;
display: flex;
align-items: center;
gap: 4px;
justify-content: flex-end;
}
.floating-chat-message.user .floating-chat-message-time {
color: rgba(0, 0, 0, 0.55);
}
.floating-chat-quick-replies {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.floating-chat-quick-reply-btn {
padding: 6px 12px;
background: white;
border: 1px solid #128C7E;
color: #128C7E;
border-radius: 16px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 6px;
}
.floating-chat-quick-reply-btn:hover {
background: #128C7E;
color: white;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}
.floating-chat-quick-reply-btn i {
font-size: 12px;
}
.floating-chat-input-container {
display: flex;
align-items: flex-end;
gap: 8px;
padding: 12px 16px;
background: #F0F0F0;
border-radius: 0 0 16px 16px;
flex-shrink: 0;
}
.floating-chat-emoji-btn {
width: 36px;
height: 36px;
border: none;
background: transparent;
color: #54656f;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s ease;
flex-shrink: 0;
}
.floating-chat-emoji-btn:hover {
background: rgba(0, 0, 0, 0.05);
color: #128C7E;
}
.floating-chat-emoji-btn i {
font-size: 20px;
}
.floating-chat-input-wrapper {
flex: 1;
background: white;
border-radius: 20px;
padding: 8px 16px;
display: flex;
align-items: center;
}
.floating-chat-input {
flex: 1;
border: none;
outline: none;
font-size: 14px;
line-height: 1.5;
color: #000;
background: transparent;
resize: none;
font-family: inherit;
max-height: 100px;
}
.floating-chat-input::placeholder {
color: #8696a0;
}
.floating-chat-send-btn {
width: 36px;
height: 36px;
border: none;
background: #128C7E;
color: white;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
}
.floating-chat-send-btn:hover {
background: #075E54;
transform: scale(1.05);
}
.floating-chat-send-btn:active {
transform: scale(0.95);
}
.floating-chat-send-btn i {
font-size: 16px;
}
.floating-chat-typing {
display: flex;
align-items: center;
gap: 8px;
padding: 12px;
background: white;
border-radius: 0 8px 8px 8px;
max-width: 70px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.floating-chat-typing-dot {
width: 8px;
height: 8px;
background: #8696a0;
border-radius: 50%;
animation: typingBounce 1.4s infinite;
}
.floating-chat-typing-dot:nth-child(2) {
animation-delay: 0.2s;
}
.floating-chat-typing-dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typingBounce {
0%, 60%, 100% {
transform: translateY(0);
}
30% {
transform: translateY(-8px);
}
}
.floating-chat-welcome {
text-align: center;
padding: 24px 16px;
color: #54656f;
}
.floating-chat-welcome-icon {
font-size: 48px;
color: #128C7E;
margin-bottom: 12px;
}
.floating-chat-welcome h4 {
margin: 0 0 8px 0;
font-size: 16px;
color: #000;
}
.floating-chat-welcome p {
margin: 0;
font-size: 13px;
line-height: 1.5;
}
@media (max-width: 768px) {
.floating-chat-window {
bottom: 90px;
right: 10px;
left: 10px;
width: auto;
max-width: none;
height: 500px;
max-height: calc(100vh - 120px);
}
.floating-chat-header {
padding: 10px 12px;
}
.floating-chat-avatar {
width: 38px;
height: 38px;
}
.floating-chat-avatar i {
font-size: 20px;
}
.floating-chat-title h3 {
font-size: 15px;
}
.floating-chat-messages {
padding: 12px;
}
.floating-chat-input-container {
padding: 10px 12px;
}
}
body.dark-mode .floating-chat-window {
background: #0b141a;
}
body.dark-mode .floating-chat-messages {
background: #0b141a;
}
body.dark-mode .floating-chat-message.bot .floating-chat-message-bubble {
background: #202c33;
color: #e9edef;
}
body.dark-mode .floating-chat-message-text {
color: #e9edef;
}
body.dark-mode .floating-chat-input-container {
background: #202c33;
}
body.dark-mode .floating-chat-input-wrapper {
background: #2a3942;
}
body.dark-mode .floating-chat-input {
color: #e9edef;
}
body.dark-mode .floating-chat-input::placeholder {
color: #8696a0;
}
body.dark-mode .floating-chat-emoji-btn {
color: #8696a0;
}
body.dark-mode .floating-chat-emoji-btn:hover {
background: rgba(255, 255, 255, 0.05);
color: #25D366;
}
body.dark-mode .floating-chat-quick-reply-btn {
background: #202c33;
border-color: #25D366;
color: #25D366;
}
body.dark-mode .floating-chat-quick-reply-btn:hover {
background: #25D366;
color: #0b141a;
}
.floating-chat-document .document-card {
transition: all 0.2s ease;
}
.floating-chat-document .document-card:hover {
background: #e8f5e9 !important;
border-color: #25D366 !important;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
body.dark-mode .floating-chat-document .document-card {
background: #202c33 !important;
border-color: #2a3942 !important;
}
body.dark-mode .floating-chat-document .document-card:hover {
background: #2a3942 !important;
border-color: #25D366 !important;
}

/* === dashboard-widget.css === */
.welcome-dashboard {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99999;
display: none;
opacity: 0;
transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-dashboard.show {
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
}
.dashboard-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
animation: fadeIn 0.4s ease-out;
}
.dashboard-container {
position: relative;
width: 90%;
max-width: 1200px;
max-height: 85vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 24px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
overflow: hidden;
animation: slideInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
display: flex;
flex-direction: column;
}
.dashboard-header {
background: rgba(255, 255, 255, 0.95);
padding: 24px 28px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header-content {
display: flex;
align-items: center;
gap: 16px;
}
.header-icon {
width: 56px;
height: 56px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: white;
box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}
.header-text {
flex: 1;
}
.dashboard-title {
margin: 0;
font-size: 26px;
font-weight: 700;
color: #1a202c;
line-height: 1.2;
}
.dashboard-title span {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.dashboard-subtitle {
margin: 4px 0 0 0;
font-size: 14px;
color: #718096;
}
.header-actions {
display: flex;
gap: 8px;
}
.dashboard-btn {
width: 40px;
height: 40px;
border: none;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
background: #f7fafc;
color: #4a5568;
}
.dashboard-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dashboard-btn--minimize:hover {
background: #fef5e7;
color: #f39c12;
}
.dashboard-btn--close:hover {
background: #fee;
color: #e53e3e;
}
.dashboard-datetime {
padding: 20px 28px;
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
}
.datetime-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 16px;
padding: 20px 24px;
display: flex;
align-items: center;
gap: 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.datetime-icon {
font-size: 36px;
line-height: 1;
}
.datetime-info {
flex: 1;
}
.datetime-date {
font-size: 18px;
font-weight: 600;
color: #2d3748;
margin-bottom: 4px;
}
.datetime-time {
font-size: 24px;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-family: 'Courier New', monospace;
}
.dashboard-content {
flex: 1;
overflow-y: auto;
padding: 24px 28px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
background: rgba(255, 255, 255, 0.1);
}
.dashboard-col {
display: flex;
flex-direction: column;
gap: 20px;
}
.dashboard-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.dashboard-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.card-header {
padding: 20px 24px;
border-bottom: 1px solid #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
}
.card-title {
margin: 0;
font-size: 18px;
font-weight: 700;
color: #2d3748;
}
.card-action-btn {
padding: 6px 14px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.card-action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.card-body {
padding: 20px 24px;
}
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.stat-item {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: #f7fafc;
border-radius: 12px;
transition: all 0.3s ease;
}
.stat-item:hover {
background: #edf2f7;
transform: translateX(-4px);
}
.stat-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
flex-shrink: 0;
}
.stat-icon--blue {
background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}
.stat-icon--green {
background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}
.stat-icon--orange {
background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}
.stat-icon--purple {
background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}
.stat-info {
flex: 1;
}
.stat-value {
font-size: 28px;
font-weight: 800;
color: #2d3748;
line-height: 1;
margin-bottom: 4px;
}
.stat-label {
font-size: 13px;
color: #718096;
font-weight: 500;
}
.tasks-list {
max-height: 300px;
overflow-y: auto;
}
.task-item {
padding: 14px;
background: #f7fafc;
border-radius: 10px;
margin-bottom: 10px;
border-right: 4px solid #667eea;
transition: all 0.3s ease;
cursor: pointer;
}
.task-item:hover {
background: #edf2f7;
transform: translateX(-4px);
}
.task-item:last-child {
margin-bottom: 0;
}
.task-title {
font-size: 15px;
font-weight: 600;
color: #2d3748;
margin-bottom: 6px;
}
.task-meta {
display: flex;
align-items: center;
gap: 12px;
font-size: 13px;
color: #718096;
}
.task-priority {
padding: 3px 10px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
}
.task-priority--high {
background: #fee;
color: #e53e3e;
}
.task-priority--medium {
background: #fef5e7;
color: #f39c12;
}
.task-priority--low {
background: #e6f7ff;
color: #3182ce;
}
.activity-list {
max-height: 280px;
overflow-y: auto;
}
.activity-item {
padding: 14px;
background: #f7fafc;
border-radius: 10px;
margin-bottom: 10px;
display: flex;
align-items: flex-start;
gap: 12px;
transition: all 0.3s ease;
}
.activity-item:hover {
background: #edf2f7;
transform: translateX(-4px);
}
.activity-item:last-child {
margin-bottom: 0;
}
.activity-icon {
width: 36px;
height: 36px;
border-radius: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.activity-content {
flex: 1;
}
.activity-text {
font-size: 14px;
color: #2d3748;
margin-bottom: 4px;
}
.activity-time {
font-size: 12px;
color: #a0aec0;
}
.contributions-summary {
margin-bottom: 24px;
}
.contribution-item {
display: flex;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid #e2e8f0;
}
.contribution-item:last-child {
border-bottom: none;
}
.contribution-label {
font-size: 14px;
color: #4a5568;
}
.contribution-value {
font-size: 16px;
font-weight: 700;
color: #667eea;
}
.contributions-progress {
background: #f7fafc;
padding: 16px;
border-radius: 12px;
}
.progress-bar {
height: 12px;
background: #e2e8f0;
border-radius: 20px;
overflow: hidden;
margin-bottom: 12px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 20px;
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-text {
margin: 0;
font-size: 13px;
color: #718096;
text-align: center;
}
.progress-text span {
font-weight: 700;
color: #667eea;
}
.empty-state {
text-align: center;
padding: 40px 20px;
color: #a0aec0;
}
.empty-icon {
font-size: 48px;
margin-bottom: 12px;
opacity: 0.5;
}
.empty-state p {
margin: 0;
font-size: 14px;
}
.dashboard-footer {
padding: 20px 28px;
background: rgba(255, 255, 255, 0.95);
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-tip {
margin: 0;
text-align: center;
font-size: 14px;
color: #718096;
}
.control-btn.dashboard-btn {
position: relative;
}
.control-btn.dashboard-btn .dashboard-icon-svg {
width: 40px;
height: 40px;
transition: all 0.3s ease;
color: #6ee7b7;
stroke: #6ee7b7;
filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.85)) drop-shadow(0 0 18px rgba(16, 185, 129, 0.45));
}
.control-btn.dashboard-btn:hover .dashboard-icon-svg {
transform: translateY(-1px) scale(1.08) rotate(5deg);
filter: drop-shadow(0 0 12px rgba(110, 231, 183, 0.95)) drop-shadow(0 0 22px rgba(16, 185, 129, 0.55)) brightness(1.1);
}
.control-btn.dashboard-btn:active .dashboard-icon-svg {
transform: none;
filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.85)) drop-shadow(0 0 18px rgba(16, 185, 129, 0.45)) brightness(0.98);
}
@media (max-width: 640px) {
.control-btn.dashboard-btn .dashboard-icon-svg {
width: 28px;
height: 28px;
}
}
body.dark-mode .control-btn.dashboard-btn .dashboard-icon-svg {
filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.85)) drop-shadow(0 0 18px rgba(16, 185, 129, 0.45)) saturate(1.1);
}
.control-btn.dashboard-btn .icon-badge {
position: absolute;
top: -2px;
right: -2px;
width: 16px;
height: 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 50%;
font-size: 9px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--dark-bg);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.15);
opacity: 0.85;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideInScale {
from {
opacity: 0;
transform: scale(0.9) translateY(20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.8;
}
}
.welcome-dashboard.minimizing .dashboard-container {
animation: minimizeToIcon 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes minimizeToIcon {
to {
transform: scale(0) translate(-500px, -400px);
opacity: 0;
}
}
body.dark-mode .dashboard-container {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
body.dark-mode .dashboard-header,
body.dark-mode .dashboard-footer,
body.dark-mode .datetime-card,
body.dark-mode .dashboard-card {
background: rgba(45, 55, 72, 0.95);
}
body.dark-mode .dashboard-title,
body.dark-mode .card-title,
body.dark-mode .stat-value,
body.dark-mode .task-title,
body.dark-mode .activity-text {
color: #e2e8f0;
}
body.dark-mode .dashboard-subtitle,
body.dark-mode .stat-label,
body.dark-mode .task-meta,
body.dark-mode .activity-time,
body.dark-mode .contribution-label,
body.dark-mode .progress-text,
body.dark-mode .footer-tip {
color: #a0aec0;
}
body.dark-mode .stat-item,
body.dark-mode .task-item,
body.dark-mode .activity-item,
body.dark-mode .contributions-progress {
background: rgba(74, 85, 104, 0.3);
}
body.dark-mode .stat-item:hover,
body.dark-mode .task-item:hover,
body.dark-mode .activity-item:hover {
background: rgba(74, 85, 104, 0.5);
}
body.dark-mode .datetime-date {
color: #e2e8f0;
}
body.dark-mode .card-header {
border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .contribution-item {
border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .progress-bar {
background: rgba(74, 85, 104, 0.5);
}
@media (max-width: 968px) {
.dashboard-content {
grid-template-columns: 1fr;
}
.stats-grid {
grid-template-columns: 1fr;
}
.dashboard-container {
width: 95%;
max-height: 90vh;
}
.dashboard-header {
padding: 20px;
}
.dashboard-content {
padding: 16px 20px;
}
.card-body {
padding: 16px;
}
}
@media (max-width: 640px) {
.dashboard-title {
font-size: 20px;
}
.datetime-time {
font-size: 20px;
}
.stat-value {
font-size: 24px;
}
.dashboard-icon-wrapper {
top: 15px;
left: 15px;
}
.dashboard-toggle-icon {
width: 44px;
height: 44px;
}
}

/* === quick-add-fab.css === */
.quick-add-container {
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.quick-action-btn.fab-main-btn {
width: auto;
min-width: 120px;
height: 44px;
padding: 0 20px;
border-radius: 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
box-shadow:
0 4px 12px rgba(102, 126, 234, 0.3),
0 2px 6px rgba(0, 0, 0, 0.15);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
color: white;
font-size: 14px;
font-weight: 600;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.quick-action-btn.fab-main-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
45deg,
transparent 30%,
rgba(255, 255, 255, 0.15) 50%,
transparent 70%
);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.quick-action-btn.fab-main-btn:hover {
transform: translateY(-2px);
box-shadow:
0 6px 20px rgba(102, 126, 234, 0.4),
0 3px 10px rgba(0, 0, 0, 0.2);
}
.quick-action-btn.fab-main-btn:active {
transform: translateY(0);
}
.quick-action-btn.fab-main-btn i {
position: relative;
z-index: 1;
font-size: 18px;
transition: transform 0.3s ease;
}
.quick-action-btn.fab-main-btn.active i {
transform: rotate(45deg);
}
.quick-action-btn.fab-main-btn span {
position: relative;
z-index: 1;
}
.fab-menu {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(10px);
display: flex;
flex-direction: column;
gap: 8px;
min-width: 220px;
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: none;
z-index: 100000;
}
.fab-menu.active {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
pointer-events: all;
}
.fab-menu-item {
display: flex;
align-items: center;
gap: 12px;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
padding: 14px 20px;
border-radius: 12px;
box-shadow:
0 4px 16px rgba(0, 0, 0, 0.12),
0 2px 8px rgba(0, 0, 0, 0.08);
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
border: 1px solid rgba(0, 0, 0, 0.06);
}
.fab-menu.active .fab-menu-item {
animation: slideInUp 0.3s ease forwards;
}
.fab-menu.active .fab-menu-item:nth-child(1) { animation-delay: 0.05s; }
.fab-menu.active .fab-menu-item:nth-child(2) { animation-delay: 0.1s; }
.fab-menu.active .fab-menu-item:nth-child(3) { animation-delay: 0.15s; }
.fab-menu.active .fab-menu-item:nth-child(4) { animation-delay: 0.2s; }
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fab-menu-item:hover {
transform: translateY(-2px) scale(1.02);
box-shadow:
0 8px 20px rgba(0, 0, 0, 0.15),
0 4px 10px rgba(0, 0, 0, 0.1);
border-color: rgba(0, 0, 0, 0.12);
}
.fab-menu-item-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: white;
flex-shrink: 0;
}
.fab-menu-item[data-action="add-client"] .fab-menu-item-icon {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.fab-menu-item[data-action="add-user"] .fab-menu-item-icon {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.fab-menu-item[data-action="add-task"] .fab-menu-item-icon {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.fab-menu-item[data-action="add-document"] .fab-menu-item-icon {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.fab-menu-item-text {
font-size: 14px;
font-weight: 600;
color: #2d3748;
}
.add-client-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100000;
display: none;
align-items: center;
justify-content: center;
}
.add-client-modal.active {
display: flex;
}
.add-client-modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.add-client-modal-container {
position: relative;
width: 90%;
max-width: 900px;
max-height: 85vh;
background: white;
border-radius: 24px;
box-shadow:
0 30px 90px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
overflow: hidden;
animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.add-client-modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 24px 32px;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
overflow: hidden;
}
.add-client-modal-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
pointer-events: none;
}
.add-client-modal-title {
display: flex;
align-items: center;
gap: 16px;
position: relative;
z-index: 1;
}
.add-client-modal-title-icon {
width: 48px;
height: 48px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
}
.add-client-modal-title h2 {
margin: 0;
font-size: 24px;
font-weight: 700;
color: white;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.add-client-modal-close {
width: 40px;
height: 40px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
z-index: 1;
}
.add-client-modal-close:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
.add-client-modal-body {
flex: 1;
overflow-y: auto;
padding: 32px;
}
.add-client-form-section {
margin-bottom: 32px;
}
.add-client-form-section:last-child {
margin-bottom: 0;
}
.add-client-form-section-title {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid #e2e8f0;
}
.add-client-form-section-icon {
width: 36px;
height: 36px;
border-radius: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
}
.add-client-form-section-title h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: #2d3748;
}
.add-client-form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.add-client-form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.add-client-form-label {
font-size: 13px;
font-weight: 600;
color: #4a5568;
display: flex;
align-items: center;
gap: 6px;
}
.add-client-form-label .required {
color: #ef4444;
}
.add-client-form-input,
.add-client-form-select,
.add-client-form-textarea {
padding: 12px 16px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-size: 14px;
color: #2d3748;
transition: all 0.3s ease;
font-family: inherit;
}
.add-client-form-input:focus,
.add-client-form-select:focus,
.add-client-form-textarea:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.add-client-form-textarea {
min-height: 100px;
resize: vertical;
}
.add-client-form-help {
font-size: 12px;
color: #718096;
}
.add-client-modal-footer {
padding: 20px 32px;
background: #f7fafc;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}
.add-client-modal-footer-info {
font-size: 13px;
color: #718096;
}
.add-client-modal-footer-actions {
display: flex;
gap: 12px;
}
.add-client-modal-btn {
padding: 12px 24px;
border-radius: 12px;
font-size: 14px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.add-client-modal-btn-secondary {
background: white;
color: #4a5568;
border: 2px solid #e2e8f0;
}
.add-client-modal-btn-secondary:hover {
background: #f7fafc;
border-color: #cbd5e0;
}
.add-client-modal-btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.add-client-modal-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.add-client-modal-btn-primary:active {
transform: translateY(0);
}
.print-options-wrapper {
position: relative;
display: inline-block;
margin-left: 12px;
vertical-align: middle;
}
.print-options-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border: none;
border-radius: 12px;
font-size: 14px;
font-weight: 600;
color: white;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.print-options-btn:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
transform: translateY(-2px) scale(1.05);
box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.print-options-btn:active {
transform: translateY(0) scale(1);
}
.print-options-btn i {
font-size: 16px;
}
.print-options-btn span {
letter-spacing: 0.3px;
}
.print-options-btn.new {
animation: pulse 2s ease-in-out 3;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.print-options-panel {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 99999;
padding: 20px;
}
.print-options-panel.active {
opacity: 1;
visibility: visible;
}
.print-options-panel-content {
background: white;
border-radius: 20px;
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.3),
0 8px 20px rgba(0, 0, 0, 0.2);
max-width: 900px;
width: 100%;
max-height: 90vh;
display: flex;
flex-direction: column;
transform: scale(0.9);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.print-options-panel.active .print-options-panel-content {
transform: scale(1);
}
.print-options-header {
padding: 24px 28px;
border-bottom: 2px solid #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 20px 20px 0 0;
}
.print-options-header h3 {
margin: 0;
font-size: 22px;
font-weight: 700;
color: white;
display: flex;
align-items: center;
gap: 12px;
}
.print-options-header h3::before {
content: "🖨️";
font-size: 28px;
}
.print-options-select-all {
font-size: 14px;
color: white;
cursor: pointer;
font-weight: 600;
background: rgba(255, 255, 255, 0.2);
padding: 8px 16px;
border-radius: 8px;
transition: all 0.3s ease;
}
.print-options-select-all:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
.print-options-close:hover {
background: rgba(255, 255, 255, 0.3) !important;
transform: scale(1.1);
}
.print-options-body {
padding: 24px;
max-height: calc(90vh - 200px);
overflow-y: auto;
flex: 1;
}
.print-options-group {
margin-bottom: 16px;
}
.print-options-group:last-child {
margin-bottom: 0;
}
.print-options-group-title {
font-size: 15px;
font-weight: 700;
color: #667eea;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid #e2e8f0;
}
.print-option-item {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
border-radius: 10px;
cursor: pointer;
transition: all 0.2s ease;
margin-bottom: 8px;
}
.print-option-item:hover {
background: #f7fafc;
transform: translateX(-4px);
}
.print-option-checkbox {
width: 22px;
height: 22px;
border: 2px solid #cbd5e0;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
flex-shrink: 0;
}
.print-option-item input[type="checkbox"] {
display: none;
}
.print-option-item input[type="checkbox"]:checked + .print-option-checkbox {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: #667eea;
}
.print-option-checkbox i {
color: white;
font-size: 12px;
opacity: 0;
transition: opacity 0.3s ease;
}
.print-option-item input[type="checkbox"]:checked + .print-option-checkbox i {
opacity: 1;
}
.print-option-label {
flex: 1;
font-size: 16px;
color: #2d3748;
font-weight: 500;
}
.print-options-footer {
padding: 20px 28px;
border-top: 2px solid #e2e8f0;
display: flex;
gap: 16px;
background: #f8fafc;
border-radius: 0 0 20px 20px;
}
.print-options-footer button {
flex: 1;
padding: 14px 24px;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.print-options-cancel {
background: #f7fafc;
color: #4a5568;
}
.print-options-cancel:hover {
background: #e2e8f0;
}
.print-options-print {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.print-options-print:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
@media (max-width: 768px) {
.quick-add-fab {
bottom: 70px;
}
.fab-main-btn {
width: 56px;
height: 56px;
font-size: 24px;
}
.add-client-modal-container {
width: 95%;
max-height: 90vh;
}
.add-client-modal-header,
.add-client-modal-body,
.add-client-modal-footer {
padding: 20px;
}
.add-client-form-row {
grid-template-columns: 1fr;
}
.print-options-panel {
width: 300px;
right: auto;
left: 0;
}
}
@media (prefers-color-scheme: dark) {
.fab-menu-item {
background: #2d3748;
}
.fab-menu-item-text {
color: #e2e8f0;
}
.add-client-modal-container {
background: #1a202c;
}
.add-client-form-section-title h3 {
color: #e2e8f0;
}
.add-client-form-input,
.add-client-form-select,
.add-client-form-textarea {
background: #2d3748;
border-color: #4a5568;
color: #e2e8f0;
}
.add-client-modal-footer {
background: #2d3748;
border-top-color: #4a5568;
}
.print-options-panel {
background: #2d3748;
border-color: #4a5568;
}
.print-option-item:hover {
background: #1a202c;
}
}
.add-client-modal-btn-primary.loading {
position: relative;
color: transparent;
pointer-events: none;
}
.add-client-modal-btn-primary.loading::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
top: 50%;
left: 50%;
margin-left: -10px;
margin-top: -10px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.quick-actions-bar .quick-add-container {
margin-right: auto;
}
.quick-actions-bar .quick-action-btn.fab-main-btn {
height: auto;
padding: 10px 20px;
}
body.dark-mode .quick-action-btn.fab-main-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow:
0 4px 12px rgba(102, 126, 234, 0.4),
0 2px 6px rgba(0, 0, 0, 0.2);
}
body.dark-mode .fab-menu-item {
background: rgba(45, 55, 72, 0.98);
border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .fab-menu-item-text {
color: #e2e8f0;
}
body.dark-mode .fab-menu-item:hover {
background: rgba(26, 32, 44, 0.98);
border-color: rgba(102, 126, 234, 0.3);
}
body.dark-mode .print-options-btn {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
body.dark-mode .print-options-panel {
background: #2d3748;
border-color: #4a5568;
}
body.dark-mode .print-options-header,
body.dark-mode .print-options-body {
border-bottom-color: #4a5568;
}
body.dark-mode .print-options-group-title,
body.dark-mode .print-option-label {
color: #e2e8f0;
}
body.dark-mode .print-option-item:hover {
background: rgba(26, 32, 44, 0.5);
}
body.dark-mode .print-options-cancel {
background: #1a202c;
color: #e2e8f0;
}
body.dark-mode .print-options-cancel:hover {
background: #2d3748;
}
@media (max-width: 768px) {
.print-options-wrapper {
margin-left: 8px;
}
.print-options-btn {
padding: 8px 12px;
font-size: 13px;
}
.print-options-btn span {
display: none;
}
.print-options-panel {
padding: 10px;
}
.print-options-panel-content {
max-width: 100%;
max-height: 95vh;
border-radius: 16px;
}
.print-options-header {
padding: 16px 20px;
}
.print-options-header h3 {
font-size: 18px;
}
.print-options-body {
padding: 16px;
max-height: calc(95vh - 180px);
}
.print-option-item {
padding: 12px;
}
.print-option-label {
font-size: 15px;
}
.print-options-footer button {
padding: 12px 16px;
font-size: 14px;
}
.print-options-btn i {
font-size: 18px;
margin: 0;
}
}

/* === stats-change-indicators.css === */
.stat-change-indicator {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-top: 12px;
animation: fadeInUp 0.5s ease-out;
}
.stat-change-indicator .change-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
background: rgba(255, 255, 255, 0.2);
border-radius: 20px;
font-size: 11px;
color: white;
transition: all 0.3s ease;
cursor: pointer;
backdrop-filter: blur(5px);
}
.stat-change-indicator .change-badge:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.stat-change-indicator .period-label {
opacity: 0.8;
font-weight: 500;
}
.stat-change-indicator .change-value {
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 2px;
}
.stat-change-indicator .change-badge.positive {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.25) 100%);
border: 1px solid rgba(16, 185, 129, 0.4);
}
.stat-change-indicator .change-badge.positive:hover {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.35) 100%);
}
.stat-change-indicator .change-badge.positive .change-value {
color: #6ee7b7;
}
.stat-change-indicator .change-badge.positive .change-value::before {
content: "↑";
font-size: 14px;
font-weight: 900;
color: #10b981;
margin-right: 2px;
}
.stat-change-indicator .change-badge.negative {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%);
border: 1px solid rgba(239, 68, 68, 0.4);
}
.stat-change-indicator .change-badge.negative:hover {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(220, 38, 38, 0.35) 100%);
}
.stat-change-indicator .change-badge.negative .change-value {
color: #fca5a5;
}
.stat-change-indicator .change-badge.negative .change-value::before {
content: "↓";
font-size: 14px;
font-weight: 900;
color: #ef4444;
margin-right: 2px;
}
.stat-change-indicator .change-badge.neutral {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.25);
}
.stat-change-indicator .change-badge.neutral:hover {
background: rgba(255, 255, 255, 0.25);
}
.stat-change-indicator .change-badge.neutral .change-value {
color: rgba(255, 255, 255, 0.9);
}
.stat-change-indicator .change-badge.neutral .change-value::before {
content: "=";
font-size: 12px;
font-weight: 700;
color: rgba(255, 255, 255, 0.7);
margin-right: 2px;
}
.stat-change-indicator .change-badge.loading {
opacity: 0.6;
pointer-events: none;
}
.stat-change-indicator .change-badge.loading .change-value::after {
content: "...";
animation: loading-dots 1.5s infinite;
}
.stat-change-indicator .change-percentage {
font-size: 10px;
opacity: 0.8;
margin-left: 2px;
}
.stat-change-indicator .change-badge[data-tooltip] {
position: relative;
}
.stat-change-indicator .change-badge[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(-8px);
background: rgba(0, 0, 0, 0.9);
color: white;
padding: 6px 12px;
border-radius: 6px;
font-size: 11px;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1000;
}
.stat-change-indicator .change-badge[data-tooltip]:hover::after {
opacity: 1;
transform: translateX(-50%) translateY(-4px);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes loading-dots {
0%, 20% {
content: ".";
}
40% {
content: "..";
}
60%, 100% {
content: "...";
}
}
@media (max-width: 768px) {
.stat-change-indicator {
gap: 6px;
}
.stat-change-indicator .change-badge {
font-size: 10px;
padding: 3px 8px;
}
.stat-change-indicator .change-value::before {
font-size: 12px;
}
}
body.dark-mode .stat-change-indicator .change-badge {
background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .stat-change-indicator .change-badge:hover {
background: rgba(255, 255, 255, 0.15);
}
body.dark-mode .stat-change-indicator .change-badge.positive {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
}
body.dark-mode .stat-change-indicator .change-badge.negative {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
}
.stat-change-indicator .change-badge[data-period="daily"] {
border-left: 3px solid rgba(59, 130, 246, 0.5);
}
.stat-change-indicator .change-badge[data-period="weekly"] {
border-left: 3px solid rgba(168, 85, 247, 0.5);
}
.stat-change-indicator .change-badge[data-period="monthly"] {
border-left: 3px solid rgba(251, 146, 60, 0.5);
}
.stat-change-indicator .change-badge[data-period="yearly"] {
border-left: 3px solid rgba(236, 72, 153, 0.5);
}
.stat-change-indicator .change-badge.significant {
animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
0%, 100% {
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
}
50% {
box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
}
}
.stat-change-indicator.compact {
gap: 4px;
}
.stat-change-indicator.compact .change-badge {
padding: 2px 6px;
font-size: 10px;
}
.stat-change-indicator.compact .change-value::before {
font-size: 11px;
}
.stat-sparkline-container {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-width: 120px;
height: 60px;
opacity: 0.9;
transition: opacity 0.3s ease;
}
.stat-sparkline-container:hover {
opacity: 1;
}
.stat-sparkline {
display: block;
max-width: 100%;
height: auto;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
transition: filter 0.3s ease;
}
.stat-sparkline:hover {
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
@media (max-width: 768px) {
.stat-sparkline-container {
display: none;
}
}
body.dark-mode .stat-sparkline {
filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.1));
}
body.dark-mode .stat-sparkline:hover {
filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.2));
}

/* === activity-timeline.css === */
.activity-timeline-btn {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
font-size: 14px;
transition: all 0.3s ease;
}
.activity-timeline-btn i {
font-size: 16px;
}
.activity-timeline-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.activity-timeline-btn .activity-badge {
position: absolute;
top: -8px;
right: -8px;
background: #e74c3c;
color: white;
border-radius: 12px;
padding: 2px 6px;
font-size: 11px;
font-weight: bold;
min-width: 20px;
text-align: center;
animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
.activity-timeline-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999999;
display: none;
opacity: 0;
transition: opacity 0.3s ease;
}
.activity-timeline-modal.active {
display: flex;
opacity: 1;
}
.activity-timeline-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.activity-timeline-content {
position: relative;
width: 600px;
max-width: 90vw;
height: 80vh;
max-height: 800px;
margin: auto;
background: white;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
animation: slideInUp 0.3s ease;
overflow: hidden;
}
@keyframes slideInUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.activity-timeline-header {
padding: 24px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.activity-timeline-header h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
display: flex;
align-items: center;
gap: 12px;
}
.activity-timeline-header h2 i {
font-size: 24px;
}
.activity-timeline-actions {
display: flex;
align-items: center;
gap: 8px;
}
.activity-filter-btn,
.activity-clear-btn,
.activity-close-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 6px;
}
.activity-filter-btn:hover,
.activity-clear-btn:hover,
.activity-close-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
.activity-filter-btn.active {
background: white;
color: #667eea;
font-weight: 600;
}
.activity-clear-btn,
.activity-close-btn {
padding: 6px 10px;
}
.activity-close-btn {
background: rgba(231, 76, 60, 0.3);
border-color: rgba(231, 76, 60, 0.5);
}
.activity-close-btn:hover {
background: rgba(231, 76, 60, 0.5);
}
.activity-timeline-body {
flex: 1;
overflow-y: auto;
padding: 24px;
background: #f8f9fa;
}
.activity-timeline-body::-webkit-scrollbar {
width: 8px;
}
.activity-timeline-body::-webkit-scrollbar-track {
background: #e9ecef;
}
.activity-timeline-body::-webkit-scrollbar-thumb {
background: #adb5bd;
border-radius: 4px;
}
.activity-timeline-body::-webkit-scrollbar-thumb:hover {
background: #6c757d;
}
.activity-timeline-list {
display: flex;
flex-direction: column;
gap: 24px;
}
.activity-day-group {
display: flex;
flex-direction: column;
gap: 12px;
}
.activity-day-header {
font-size: 13px;
font-weight: 700;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
padding-bottom: 8px;
border-bottom: 2px solid #dee2e6;
}
.activity-item {
display: flex;
gap: 16px;
padding: 16px;
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.activity-item::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 4px;
height: 100%;
background: var(--activity-color, #3498db);
transition: width 0.3s ease;
}
.activity-item:hover {
transform: translateX(4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.activity-item:hover::before {
width: 6px;
}
.activity-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 20px;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.activity-content {
flex: 1;
min-width: 0;
}
.activity-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 6px;
}
.activity-header strong {
font-size: 15px;
color: #2c3e50;
font-weight: 600;
}
.activity-time {
font-size: 12px;
color: #95a5a6;
white-space: nowrap;
}
.activity-description {
font-size: 14px;
color: #7f8c8d;
line-height: 1.5;
margin-bottom: 8px;
}
.activity-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.meta-item {
background: #ecf0f1;
padding: 4px 10px;
border-radius: 6px;
font-size: 12px;
color: #34495e;
}
.meta-item strong {
color: #2c3e50;
margin-left: 4px;
}
.activity-timeline-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: #95a5a6;
text-align: center;
}
.activity-timeline-empty i {
font-size: 64px;
margin-bottom: 16px;
opacity: 0.3;
}
.activity-timeline-empty p {
font-size: 16px;
margin: 0;
}
.activity-item[data-type="clients"] {
--activity-color: #2ecc71;
}
.activity-item[data-type="documents"] {
--activity-color: #3498db;
}
.activity-item[data-type="tasks"] {
--activity-color: #f39c12;
}
.activity-item[data-type="chat"] {
--activity-color: #9b59b6;
}
.activity-item[data-type="general"] {
--activity-color: #95a5a6;
}
@media (max-width: 768px) {
.activity-timeline-content {
width: 95vw;
height: 90vh;
border-radius: 12px;
}
.activity-timeline-header {
padding: 16px;
}
.activity-timeline-header h2 {
font-size: 18px;
}
.activity-timeline-actions {
flex-wrap: wrap;
gap: 4px;
}
.activity-filter-btn {
font-size: 11px;
padding: 4px 8px;
}
.activity-filter-btn span {
display: none;
}
.activity-timeline-body {
padding: 16px;
}
.activity-item {
padding: 12px;
}
.activity-icon {
width: 40px;
height: 40px;
font-size: 16px;
}
.activity-header strong {
font-size: 14px;
}
.activity-description {
font-size: 13px;
}
}
@media (prefers-color-scheme: dark) {
.activity-timeline-content {
background: #1a1a2e;
color: #eee;
}
.activity-timeline-body {
background: #16213e;
}
.activity-item {
background: #0f3460;
color: #eee;
}
.activity-header strong {
color: #fff;
}
.activity-description {
color: #bdc3c7;
}
.activity-day-header {
color: #95a5a6;
border-bottom-color: #34495e;
}
.meta-item {
background: #16213e;
color: #ecf0f1;
}
.meta-item strong {
color: #fff;
}
.activity-timeline-body::-webkit-scrollbar-track {
background: #0f3460;
}
.activity-timeline-body::-webkit-scrollbar-thumb {
background: #95a5a6;
}
}
.activity-item.new {
animation: highlight 1s ease;
}
@keyframes highlight {
0%, 100% {
background: white;
}
50% {
background: #fff3cd;
}
}
.activity-timeline-loading {
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
color: #95a5a6;
}
.activity-timeline-loading::after {
content: '';
width: 40px;
height: 40px;
border: 4px solid #ecf0f1;
border-top-color: #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}

/* === all-documents.css === */
.documents-page-wrapper {
padding: 20px;
max-width: 1600px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.documents-header {
margin-bottom: 30px;
}
.documents-title-section {
margin-bottom: 20px;
}
.documents-main-title {
font-size: 28px;
font-weight: 700;
color: #1f2937;
margin: 0 0 8px 0;
display: flex;
align-items: center;
gap: 12px;
}
.documents-main-title i {
color: #667eea;
font-size: 32px;
}
.documents-subtitle {
font-size: 14px;
color: #6b7280;
margin: 0;
}
.documents-stats-cards {
margin-top: 20px;
}
.documents-stats-cards .main-stat-card.stat-total {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.documents-stats-cards .main-stat-card.stat-active {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.documents-stats-cards .main-stat-card.stat-expiring {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.documents-stats-cards .main-stat-card.stat-expired {
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}
.documents-stats-cards .main-stat-card {
animation: fadeInUp 0.6s ease-out;
animation-fill-mode: both;
}
.documents-stats-cards .main-stat-card:nth-child(1) { animation-delay: 0.1s; }
.documents-stats-cards .main-stat-card:nth-child(2) { animation-delay: 0.2s; }
.documents-stats-cards .main-stat-card:nth-child(3) { animation-delay: 0.3s; }
.documents-stats-cards .main-stat-card:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.documents-filters-section {
background: white;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.filters-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
align-items: end;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.filter-group label {
font-size: 13px;
font-weight: 600;
color: #374151;
display: flex;
align-items: center;
gap: 6px;
}
.filter-group label i {
color: #667eea;
font-size: 14px;
}
.filter-input,
.filter-select {
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
transition: all 0.2s ease;
background: white;
}
.filter-input:focus,
.filter-select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.filter-search {
grid-column: span 2;
}
.btn-reset-filters {
padding: 10px 16px;
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
color: #374151;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
justify-content: center;
}
.btn-reset-filters:hover {
background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
transform: translateY(-1px);
}
.active-filters {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #e5e7eb;
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.active-filters-label {
font-size: 13px;
font-weight: 600;
color: #6b7280;
}
.active-filters-tags {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.filter-tag {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
border: 1px solid #c4b5fd;
border-radius: 6px;
font-size: 12px;
color: #5b21b6;
font-weight: 500;
}
.filter-tag .remove-filter {
background: none;
border: none;
color: #7c3aed;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
transition: color 0.2s ease;
}
.filter-tag .remove-filter:hover {
color: #6d28d9;
}
.view-mode-section {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.results-info {
font-size: 14px;
color: #6b7280;
font-weight: 500;
}
.view-mode-toggle {
display: flex;
gap: 4px;
background: #f3f4f6;
padding: 4px;
border-radius: 8px;
}
.view-mode-btn {
padding: 8px 12px;
background: transparent;
border: none;
border-radius: 6px;
cursor: pointer;
color: #6b7280;
transition: all 0.2s ease;
font-size: 16px;
}
.view-mode-btn:hover {
color: #374151;
}
.view-mode-btn.active {
background: white;
color: #667eea;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.documents-loading {
text-align: center;
padding: 60px 20px;
}
.loading-spinner {
font-size: 48px;
color: #667eea;
margin-bottom: 16px;
}
.documents-loading p {
color: #6b7280;
font-size: 16px;
}
.documents-empty {
text-align: center;
padding: 80px 20px;
}
.empty-icon {
font-size: 64px;
color: #d1d5db;
margin-bottom: 20px;
}
.documents-empty h3 {
font-size: 20px;
color: #374151;
margin: 0 0 8px 0;
}
.documents-empty p {
color: #6b7280;
font-size: 14px;
}
.documents-container.view-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
align-items: start;
width: 100%;
}
.documents-container.view-list {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
}
.document-card-grid {
background: white;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
width: 100%;
box-sizing: border-box;
}
.document-card-grid:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
border-color: #667eea;
}
.document-card-grid.expired {
border-color: #fca5a5;
background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}
.document-card-grid.expired:hover {
border-color: #ef4444;
box-shadow: 0 12px 32px rgba(239, 68, 68, 0.15);
}
.document-card-list {
background: white;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 16px;
display: grid;
grid-template-columns: auto 1fr auto;
gap: 16px;
align-items: center;
transition: all 0.2s ease;
}
.document-card-list:hover {
border-color: #667eea;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.document-card-header {
display: flex;
align-items: start;
gap: 16px;
margin-bottom: 16px;
}
.document-thumbnail-small {
width: 80px;
height: 80px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 36px;
flex-shrink: 0;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.document-thumbnail-small::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
.document-card-grid:hover .document-thumbnail-small::before,
.document-card-list:hover .document-thumbnail-small::before {
opacity: 1;
}
.document-card-grid:hover .document-thumbnail-small,
.document-card-list:hover .document-thumbnail-small {
transform: scale(1.05);
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}
.document-title-area {
flex: 1;
min-width: 0;
}
.document-card-title {
font-size: 15px;
font-weight: 600;
color: #1f2937;
margin: 0 0 6px 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.document-meta-line {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: #6b7280;
}
.document-type-badge {
background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
color: #5b21b6;
padding: 3px 8px;
border-radius: 4px;
font-weight: 600;
font-size: 11px;
}
.document-id {
color: #9ca3af;
}
.status-badge {
padding: 4px 10px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.status-badge.status-active {
background: #dcfce7;
color: #166534;
}
.status-badge.status-expiring {
background: #fef3c7;
color: #92400e;
}
.status-badge.status-expired {
background: #fee2e2;
color: #991b1b;
}
.document-card-body {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 12px;
}
.document-client-info,
.document-date-info,
.document-notes-preview {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #4b5563;
}
.document-client-info i {
color: #667eea;
}
.document-date-info i {
color: #f59e0b;
}
.document-date-info.expired-date {
color: #dc2626;
font-weight: 600;
}
.document-notes-preview {
background: #f9fafb;
padding: 8px;
border-radius: 6px;
font-size: 12px;
border-right: 3px solid #667eea;
}
.document-notes-preview i {
color: #667eea;
font-size: 14px;
}
.document-notes-preview span {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.file-number {
color: #9ca3af;
font-size: 12px;
}
.document-card-footer {
display: flex;
gap: 8px;
padding-top: 12px;
border-top: 1px solid #f3f4f6;
}
.btn-doc-view,
.btn-doc-download {
flex: 1;
padding: 8px 12px;
border-radius: 6px;
text-align: center;
font-size: 13px;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.btn-doc-view {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-doc-view:hover {
background: linear-gradient(135deg, #5568d3 0%, #6d42a3 100%);
transform: translateY(-1px);
}
.btn-doc-download {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
}
.btn-doc-download:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
transform: translateY(-1px);
}
.no-file-notice {
flex: 1;
text-align: center;
padding: 8px;
background: #f9fafb;
color: #6b7280;
border-radius: 6px;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.documents-pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 30px;
padding: 20px;
}
.pagination-btn {
padding: 10px 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}
.pagination-btn:hover:not(:disabled) {
background: linear-gradient(135deg, #5568d3 0%, #6d42a3 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.pagination-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.pagination-info {
font-size: 14px;
color: #6b7280;
font-weight: 500;
}
@media (min-width: 1400px) {
.documents-container.view-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (min-width: 1024px) and (max-width: 1399px) {
.documents-container.view-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.documents-container.view-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 767px) {
.documents-page-wrapper {
padding: 16px;
}
.documents-main-title {
font-size: 22px;
}
.documents-stats-cards {
grid-template-columns: 1fr;
}
.filters-row {
grid-template-columns: 1fr;
}
.filter-search {
grid-column: span 1;
}
.documents-container.view-grid {
grid-template-columns: 1fr;
}
.view-mode-section {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.view-mode-toggle {
justify-content: center;
}
}
.document-thumbnail-small.file-type-pdf {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.document-thumbnail-small.file-type-word {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.document-thumbnail-small.file-type-excel {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.document-thumbnail-small.file-type-image {
background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}
.document-thumbnail-small.file-type-default {
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* === client-name-cell.css === */
.client-name-wrapper-v2 {
display: flex !important;
gap: 10px;
align-items: flex-start;
padding: 8px 0;
direction: rtl;
text-align: right;
}
.client-avatar-container {
flex-shrink: 0;
}
.client-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #e5e7eb;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 18px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-transform: uppercase;
}
.client-avatar:hover {
border-color: #3b82f6;
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.client-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
.client-avatar.default.initials {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
font-size: 16px;
font-weight: 700;
}
.client-info-container {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.client-name-line {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 2px;
}
.client-name-main {
font-weight: 600;
font-size: 14px;
line-height: 1.4;
color: #1f2937;
}
.client-name-link {
color: #2563eb;
text-decoration: none;
transition: color 0.2s;
font-weight: 600;
}
.client-name-link:hover {
color: #1d4ed8;
text-decoration: underline;
}
.client-name-text {
color: #1f2937;
font-weight: 600;
}
.legal-entity-inline {
color: #6b7280;
font-size: 0.9em;
font-weight: 500;
white-space: nowrap;
}
.completion-badge {
display: inline-flex;
align-items: center;
padding: 3px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 700;
white-space: nowrap;
}
.completion-badge.high {
background: #d1fae5;
color: #059669;
}
.completion-badge.medium {
background: #fef3c7;
color: #f59e0b;
}
.completion-badge.low {
background: #fee2e2;
color: #dc2626;
}
.age-gender-line {
font-size: 13px;
color: #1f2937;
margin-top: 4px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.age-gender-line i {
font-size: 13px;
}
color: #0891b2;
}
.child-files-badge {
background: #cffafe;
color: #06b6d4;
}
.vat-badge:hover {
background: #a7f3d0;
}
.invoice-badge:hover {
background: #ddd6fe;
}
.law6-badge:hover {
background: #fecaca;
}
.insurance-badge:hover {
background: #a5f3fc;
}
.docs-total-badge:hover {
background: #c7d2fe;
}
.tasks-badge:hover {
background: #bfdbfe;
}
.appeals-badge:hover {
background: #e9d5ff;
}
@media (max-width: 1024px) {
.client-name-wrapper-v2 {
gap: 8px;
}
.client-avatar {
width: 40px;
height: 40px;
font-size: 14px;
}
.client-name-main {
font-size: 13px;
}
.client-badge {
font-size: 10px;
padding: 2px 6px;
}
.badge-group-label {
font-size: 9px;
}
}
@media (max-width: 768px) {
.client-name-wrapper-v2 {
gap: 6px;
padding: 6px 0;
}
.client-avatar {
width: 36px;
height: 36px;
font-size: 12px;
}
.client-name-main {
font-size: 12px;
}
.legal-entity-inline {
font-size: 0.85em;
}
.age-gender-line {
font-size: 0.8em;
}
.client-badge {
font-size: 9px;
padding: 2px 5px;
}
.badge-group {
gap: 3px;
}
}
@media print {
.client-avatar {
border: 1px solid #000;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.client-badge {
border: 1px solid #ccc;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.client-name-link {
color: #000 !important;
text-decoration: none !important;
}
}
.client-badge:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
.client-name-link:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
border-radius: 2px;
}
@keyframes badgeFadeIn {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.client-badge {
animation: badgeFadeIn 0.3s ease-out;
}
.badge-group:nth-child(1) .client-badge {
animation-delay: 0.05s;
}
.badge-group:nth-child(2) .client-badge {
animation-delay: 0.1s;
}
.badge-group:nth-child(3) .client-badge {
animation-delay: 0.15s;
}
.badge-group:nth-child(4) .client-badge {
animation-delay: 0.2s;
}
table.dataTable tbody td .client-name-wrapper-v2 {
max-width: 100%;
}
table.dataTable tbody tr:hover .client-avatar {
border-color: #3b82f6;
}
table.dataTable tbody tr:hover .client-name-link {
color: #1d4ed8;
}

/* === stats.css === */
.statistics-container {
padding: 20px;
background: #f8f9fa;
min-height: 100vh;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.main-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.main-stat-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 15px;
padding: 25px;
color: white;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.main-stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
pointer-events: none;
}
.main-stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.main-stat-card.total-files {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.main-stat-card.active-files {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.main-stat-card.closed-files {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.main-stat-card.completion-rate {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.main-stat-card .stat-icon {
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
margin-bottom: 15px;
backdrop-filter: blur(10px);
}
.main-stat-card .stat-icon i {
font-size: 24px;
color: white;
}
.main-stat-card .stat-content {
text-align: center;
}
.main-stat-card .stat-number {
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 5px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.main-stat-card .stat-label {
font-size: 1rem;
opacity: 0.9;
font-weight: 500;
}
.detailed-stats-section {
background: white;
border-radius: 15px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.section-title {
font-size: 1.5rem;
font-weight: bold;
color: #2c3e50;
margin-bottom: 25px;
text-align: center;
position: relative;
}
.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 50px;
height: 3px;
background: linear-gradient(90deg, #667eea, #764ba2);
border-radius: 2px;
}
.stats-categories {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
}
.stat-category {
background: #f8f9fa;
border-radius: 12px;
padding: 20px;
border: 1px solid #e9ecef;
transition: all 0.3s ease;
}
.stat-category:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.category-title {
font-size: 1.1rem;
font-weight: 600;
color: #495057;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
}
.category-title i {
color: #667eea;
font-size: 1.2rem;
}
.category-stats {
display: flex;
flex-direction: column;
gap: 8px;
}
.category-stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background: white;
border-radius: 8px;
border-left: 4px solid #667eea;
transition: all 0.2s ease;
}
.category-stat-item:hover {
background: #f1f3f4;
border-left-color: #764ba2;
}
.stat-key {
font-weight: 500;
color: #495057;
}
.stat-value {
font-weight: bold;
color: #667eea;
background: #e8f0fe;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.9rem;
}
.time-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.time-stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
background: white;
border-radius: 10px;
border: 1px solid #e9ecef;
transition: all 0.2s ease;
}
.time-stat-item:hover {
background: #f8f9fa;
border-color: #667eea;
}
.time-stat-label {
font-weight: 500;
color: #6c757d;
font-size: 0.9rem;
}
.time-stat-value {
font-weight: bold;
color: #495057;
background: #e3f2fd;
padding: 4px 10px;
border-radius: 15px;
font-size: 0.9rem;
}
.charts-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 25px;
margin-bottom: 30px;
}
.chart-container {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.chart-container:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.chart-title {
font-size: 1.2rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 20px;
text-align: center;
padding-bottom: 10px;
border-bottom: 2px solid #f8f9fa;
}
.chart-container canvas {
max-height: 300px;
width: 100% !important;
height: auto !important;
}
.statistics-preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.9);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
backdrop-filter: blur(5px);
}
.preloader-spinner {
width: 50px;
height: 50px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.statistics-preloader p {
font-size: 1.1rem;
color: #495057;
font-weight: 500;
}
@media (max-width: 768px) {
.statistics-container {
padding: 15px;
}
.main-stats-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.main-stat-card {
padding: 20px;
}
.main-stat-card .stat-number {
font-size: 2rem;
}
.detailed-stats-section {
padding: 20px;
}
.stats-categories {
grid-template-columns: 1fr;
gap: 20px;
}
.charts-section {
grid-template-columns: 1fr;
gap: 20px;
}
.chart-container {
padding: 20px;
}
.time-stats {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.main-stat-card .stat-number {
font-size: 1.8rem;
}
.section-title {
font-size: 1.3rem;
}
.chart-title {
font-size: 1.1rem;
}
.category-title {
font-size: 1rem;
}
}
.stat-category {
position: relative;
overflow: hidden;
}
.stat-category::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, #667eea, #764ba2);
}
.main-stat-card,
.stat-category,
.chart-container {
animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.main-stat-card:nth-child(1) { animation-delay: 0.1s; }
.main-stat-card:nth-child(2) { animation-delay: 0.2s; }
.main-stat-card:nth-child(3) { animation-delay: 0.3s; }
.main-stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-category:nth-child(1) { animation-delay: 0.5s; }
.stat-category:nth-child(2) { animation-delay: 0.6s; }
.stat-category:nth-child(3) { animation-delay: 0.7s; }
.stat-category:nth-child(4) { animation-delay: 0.8s; }
.chart-container:nth-child(1) { animation-delay: 0.9s; }
.chart-container:nth-child(2) { animation-delay: 1.0s; }
.chart-container:nth-child(3) { animation-delay: 1.1s; }
.chart-container:nth-child(4) { animation-delay: 1.2s; }

/* === compact-filters.css === */
.compact-filters-bar {
background: white;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 12px 15px;
margin-bottom: 15px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
transition: box-shadow 0.3s ease;
}
.compact-filters-bar:hover {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}
.compact-filters-bar input[type="text"],
.compact-filters-bar select {
width: 100%;
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
font-family: inherit;
transition: all 0.3s ease;
outline: none;
background: white;
}
.compact-filters-bar input[type="text"]:focus,
.compact-filters-bar select:focus {
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
background: #fafbff;
}
.compact-filters-bar input[type="text"]:hover,
.compact-filters-bar select:hover {
border-color: #9ca3af;
}
.compact-filters-bar input[type="text"]:not(:placeholder-shown),
.compact-filters-bar select:not([value=""]) {
background: #f0f9ff;
border-color: #3b82f6;
font-weight: 500;
}
.filters-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
align-items: center;
}
.direct-access-field {
position: relative;
display: flex;
flex-direction: column;
gap: 6px;
}
.direct-access-field input {
font-weight: 600;
letter-spacing: 0.5px;
padding-inline-end: 16px !important;
padding-inline-start: 88px !important;
}
.direct-access-field .direct-access-badge {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
font-size: 11px;
font-weight: 700;
color: #fff;
min-width: 52px;
border-radius: 999px;
padding: 4px 12px;
background: linear-gradient(135deg, #f97316 0%, #fb7185 100%);
box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
animation: directAccessPulse 1.6s ease-in-out infinite alternate;
position: absolute;
top: 12px;
inset-inline-start: 16px;
pointer-events: none;
z-index: 1;
}
.direct-access-hint {
font-size: 12px;
color: #475569;
}
@keyframes directAccessPulse {
from {
transform: translateY(0) scale(1);
box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
}
to {
transform: translateY(-2px) scale(1.07);
box-shadow: 0 10px 24px rgba(251, 113, 133, 0.35);
}
}
.filters-controls-row {
display: grid;
grid-template-columns: 2fr 2fr 1fr;
gap: 10px;
margin-top: 10px;
align-items: center;
}
.clear-filters-btn {
padding: 8px 16px;
background: #ef4444;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.clear-filters-btn:hover {
background: #dc2626;
box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
transform: translateY(-1px);
}
.clear-filters-btn:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}
.clear-filters-btn:disabled {
background: #d1d5db;
cursor: not-allowed;
opacity: 0.6;
box-shadow: none;
}
.filter-stats-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #e5e7eb;
}
.filter-stats-card {
display: flex;
align-items: center;
gap: 12px;
padding: 6px 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 6px;
color: white;
font-size: 13px;
font-weight: 500;
white-space: nowrap;
box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}
#filter-stats-percentage {
background: rgba(255, 255, 255, 0.2);
padding: 2px 8px;
border-radius: 4px;
backdrop-filter: blur(10px);
}
.active-filters-bar {
display: flex;
flex-wrap: wrap;
gap: 6px;
flex: 1;
min-height: 30px;
}
.chips-container {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.filter-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
animation: chipSlideIn 0.3s ease;
}
.filter-chip .chip-remove {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-chip .chip-remove:hover {
background: rgba(255, 255, 255, 0.4);
transform: scale(1.1);
}
@keyframes chipSlideIn {
from {
opacity: 0;
transform: translateY(-10px) scale(0.8);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (max-width: 1024px) {
.filters-row {
grid-template-columns: repeat(3, 1fr);
}
.filters-controls-row {
grid-template-columns: 1fr;
gap: 8px;
}
}
@media (max-width: 768px) {
.compact-filters-bar {
padding: 10px;
}
.filters-row {
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.compact-filters-bar input[type="text"],
.compact-filters-bar select {
font-size: 13px;
padding: 7px 10px;
}
.clear-filters-btn {
width: 100%;
justify-content: center;
}
.filter-stats-bar {
flex-direction: column;
gap: 10px;
align-items: stretch;
}
.filter-stats-card {
justify-content: center;
}
}
@media (max-width: 480px) {
.filters-row {
grid-template-columns: 1fr;
}
.compact-filters-bar input[type="text"],
.compact-filters-bar select {
font-size: 12px;
}
}
@media (prefers-color-scheme: dark) {
.compact-filters-bar {
background: #1f2937;
border-color: #374151;
}
.compact-filters-bar input[type="text"],
.compact-filters-bar select {
background: #111827;
border-color: #374151;
color: #f9fafb;
}
.compact-filters-bar input[type="text"]:focus,
.compact-filters-bar select:focus {
background: #1f2937;
border-color: #667eea;
}
.compact-filters-bar input[type="text"]::placeholder,
.compact-filters-bar select option:first-child {
color: #9ca3af;
}
.direct-access-hint {
color: #9ca3af;
}
.filter-stats-bar {
border-top-color: #374151;
}
}
.compact-filters-bar .loading {
opacity: 0.6;
pointer-events: none;
position: relative;
}
.compact-filters-bar .loading::after {
content: '';
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
width: 14px;
height: 14px;
border: 2px solid #667eea;
border-top-color: transparent;
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to { transform: translateY(-50%) rotate(360deg); }
}
.compact-filters-bar.no-data {
opacity: 0.5;
pointer-events: none;
}
@media print {
.compact-filters-bar {
display: none !important;
}
}

/* === client-name.css === */
.client-name-wrapper {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 8px 0;
}
.client-avatar-container {
flex-shrink: 0;
}
.client-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #e5e7eb;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.client-avatar.default {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
font-weight: 600;
font-size: 14px;
text-transform: uppercase;
}
.client-avatar.initials {
font-size: 16px;
}
.client-info-container {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.client-name-with-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.client-name-core {
font-weight: 600;
font-size: 14px;
color: #1f2937;
}
.client-name-link {
color: #007cba;
text-decoration: none;
transition: all 0.2s ease;
}
.client-name-link:hover {
color: #005a87;
text-decoration: underline;
}
.client-name-text {
color: #1f2937;
}
.acf-completion-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
cursor: help;
}
.acf-completion-pill .pct {
line-height: 1;
}
.acf-completion-pill .ring-icon {
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid currentColor;
display: inline-block;
}
.acf-completion-pill.high {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
}
.acf-completion-pill.medium {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: white;
}
.acf-completion-pill.low {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
}
.acf-completion-pill.empty {
background: #e5e7eb;
color: #6b7280;
}
.client-meta-inline {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: #6b7280;
flex-wrap: wrap;
}
.client-meta-inline .legal-entity {
background: #f3f4f6;
padding: 2px 8px;
border-radius: 4px;
color: #374151;
}
.client-meta-inline .age-display {
color: #007cba;
font-weight: 500;
}
.client-meta-inline .gender-icon {
font-size: 14px;
}
.client-badges {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: center;
}
.client-badges .badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 4px;
font-size: 10px;
font-weight: 600;
white-space: nowrap;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
transition: all 0.2s ease;
cursor: default;
}
.client-badges .badge:hover {
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.badge.vat-badge.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.badge.law6-badge.active {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: white;
}
.badge.inv-badge.active {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
}
.badge.social-insurance-badge.active {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
}
.badge.more-badge {
background: #e5e7eb;
color: #374151;
cursor: pointer;
}
.badge.more-badge:hover {
background: #d1d5db;
}
.hidden-badges-tooltip {
animation: fadeInUp 0.2s ease;
}
.hidden-badges-tooltip .badge {
margin: 0;
width: 100%;
justify-content: flex-start;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.client-name-wrapper {
flex-direction: column;
gap: 8px;
}
.client-avatar {
width: 32px;
height: 32px;
}
.client-name-core {
font-size: 13px;
}
.acf-completion-pill {
font-size: 10px;
padding: 2px 6px;
}
.client-meta-inline {
font-size: 11px;
}
.client-badges .badge {
font-size: 9px;
padding: 2px 6px;
}
}
body.dark-mode .client-name-wrapper {
color: #e5e7eb;
}
body.dark-mode .client-name-core,
body.dark-mode .client-name-text {
color: #f3f4f6;
}
body.dark-mode .client-name-link {
color: #60a5fa;
}
body.dark-mode .client-name-link:hover {
color: #93c5fd;
}
body.dark-mode .client-avatar {
border-color: #374151;
}
body.dark-mode .client-meta-inline {
color: #9ca3af;
}
body.dark-mode .client-meta-inline .legal-entity {
background: #374151;
color: #e5e7eb;
}
body.dark-mode .badge.more-badge {
background: #374151;
color: #e5e7eb;
}
body.dark-mode .badge.more-badge:hover {
background: #4b5563;
}
body.dark-mode .hidden-badges-tooltip {
background: #1f2937;
border-color: #374151;
color: #e5e7eb;
}

/* === tasks-view.css === */
.tasks-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 20px;
padding: 10px 0;
}
.task-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
overflow: hidden;
display: flex;
flex-direction: column;
}
.task-card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
transform: translateY(-4px);
border-color: #3b82f6;
}
.task-card-header {
padding: 16px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-bottom: 1px solid #e5e7eb;
}
.task-card-title {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.task-card-title i {
color: #3b82f6;
font-size: 18px;
}
.task-card-title h4 {
margin: 0;
font-size: 16px;
font-weight: 700;
color: #1e293b;
line-height: 1.4;
}
.task-card-badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.status-badge,
.priority-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
color: #ffffff;
white-space: nowrap;
}
.status-badge i {
font-size: 11px;
}
.task-card-body {
padding: 16px;
flex: 1;
}
.task-info-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
font-size: 14px;
color: #475569;
}
.task-info-row i {
color: #64748b;
width: 16px;
font-size: 13px;
}
.task-info-label {
font-weight: 600;
color: #334155;
min-width: 80px;
}
.task-info-value {
color: #475569;
}
.task-notes {
margin-top: 12px;
padding: 12px;
background: #f8fafc;
border-radius: 8px;
border-right: 3px solid #3b82f6;
}
.task-notes i {
color: #3b82f6;
margin-left: 6px;
font-size: 13px;
}
.task-notes p {
margin: 4px 0 0 0;
font-size: 13px;
color: #64748b;
line-height: 1.6;
}
.task-card-footer {
padding: 12px 16px;
background: #f8fafc;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 8px;
justify-content: flex-end;
}
.task-card-footer .btn {
padding: 6px 12px;
font-size: 13px;
border-radius: 6px;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.task-card-footer .btn i {
font-size: 12px;
}
.task-card-footer .btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.tasks-group {
margin-bottom: 30px;
}
.tasks-group-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
color: #ffffff;
border-radius: 10px 10px 0 0;
margin-bottom: 16px;
}
.tasks-group-header h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
display: flex;
align-items: center;
gap: 10px;
}
.tasks-count {
background: rgba(255, 255, 255, 0.2);
padding: 4px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
}
.tasks-group-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 20px;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #94a3b8;
}
.empty-state i {
font-size: 64px;
margin-bottom: 20px;
opacity: 0.4;
}
.empty-state p {
font-size: 18px;
font-weight: 600;
margin: 0;
}
.tasks-view-toggle button {
min-width: 120px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.tasks-view-toggle button i {
font-size: 14px;
}
.tasks-view-toggle button.active {
background: #3b82f6;
color: #ffffff;
border-color: #3b82f6;
}
@media (max-width: 768px) {
.tasks-cards-grid,
.tasks-group-cards {
grid-template-columns: 1fr;
gap: 16px;
}
.task-card-footer {
flex-direction: column;
}
.task-card-footer .btn {
width: 100%;
justify-content: center;
}
.tasks-view-toggle button {
min-width: auto;
padding: 8px 12px;
font-size: 12px;
}
.tasks-view-toggle button i {
font-size: 12px;
}
.tasks-group-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
}
@media (prefers-color-scheme: dark) {
.task-card {
background: #1e293b;
border-color: #334155;
}
.task-card-header {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-bottom-color: #334155;
}
.task-card-title h4 {
color: #f1f5f9;
}
.task-info-label {
color: #e2e8f0;
}
.task-info-value {
color: #cbd5e1;
}
.task-notes {
background: #0f172a;
border-right-color: #60a5fa;
}
.task-notes p {
color: #94a3b8;
}
.task-card-footer {
background: #0f172a;
border-top-color: #334155;
}
}

/* === chat-bot.css === */
.chat-bot-container {
display: flex;
flex-direction: column;
height: 600px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.chat-bot-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
display: flex;
align-items: center;
gap: 15px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chat-bot-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.chat-bot-info h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
}
.chat-bot-status {
font-size: 12px;
opacity: 0.9;
display: flex;
align-items: center;
gap: 6px;
}
.status-indicator {
width: 8px;
height: 8px;
background: #10b981;
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 15px;
}
.chat-messages::-webkit-scrollbar {
width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}
.chat-messages::-webkit-scrollbar-thumb {
background: #667eea;
border-radius: 10px;
}
.chat-message {
display: flex;
gap: 10px;
animation: messageSlideIn 0.3s ease-out;
}
@keyframes messageSlideIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-message.bot {
align-items: flex-start;
}
.chat-message.user {
align-items: flex-end;
flex-direction: row-reverse;
}
.message-avatar {
width: 35px;
height: 35px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.message-avatar.bot {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.message-avatar.user {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
}
.message-content {
max-width: 70%;
}
.message-bubble {
padding: 12px 16px;
border-radius: 18px;
word-wrap: break-word;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.message-bubble.bot {
background: white;
border-bottom-left-radius: 4px;
color: #1f2937;
}
.message-bubble.user {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-bottom-right-radius: 4px;
color: white;
}
.message-time {
font-size: 11px;
opacity: 0.6;
margin-top: 4px;
text-align: right;
}
.quick-replies {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.quick-reply-btn {
padding: 8px 16px;
background: white;
border: 2px solid #667eea;
color: #667eea;
border-radius: 20px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: all 0.2s;
}
.quick-reply-btn:hover {
background: #667eea;
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.quick-reply-btn i {
margin-left: 6px;
}
.service-cards {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 8px;
margin-top: 10px;
overflow-x: auto;
padding: 5px 0;
}
.service-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
border-radius: 20px;
padding: 8px 16px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
white-space: nowrap;
flex-shrink: 0;
display: flex;
align-items: center;
gap: 6px;
}
.service-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.service-card-icon {
font-size: 16px;
color: white;
}
.service-card-title {
font-size: 13px;
font-weight: 600;
color: white;
}
.document-list {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 10px;
}
.document-item {
background: white;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 12px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
transition: all 0.2s;
}
.document-item:hover {
border-color: #667eea;
background: #f9fafb;
transform: translateX(5px);
}
.document-icon {
width: 40px;
height: 40px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.document-info {
flex: 1;
}
.document-title {
font-size: 13px;
font-weight: 600;
color: #1f2937;
margin-bottom: 2px;
}
.document-meta {
font-size: 11px;
color: #6b7280;
}
.typing-indicator {
display: flex;
align-items: center;
gap: 4px;
padding: 12px 16px;
background: white;
border-radius: 18px;
border-bottom-left-radius: 4px;
width: fit-content;
}
.typing-dot {
width: 8px;
height: 8px;
background: #667eea;
border-radius: 50%;
animation: typingDot 1.4s infinite;
}
.typing-dot:nth-child(2) {
animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typingDot {
0%, 60%, 100% {
transform: translateY(0);
}
30% {
transform: translateY(-10px);
}
}
.chat-input-container {
padding: 20px;
background: white;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 10px;
}
.chat-input {
flex: 1;
padding: 12px 16px;
border: 2px solid #e5e7eb;
border-radius: 25px;
font-size: 14px;
font-family: 'Tajawal', sans-serif;
transition: all 0.2s;
}
.chat-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.chat-send-btn {
width: 45px;
height: 45px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
transition: all 0.2s;
}
.chat-send-btn:hover {
transform: scale(1.1);
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.chat-send-btn:active {
transform: scale(0.95);
}
[dir="rtl"] .message-bubble.bot {
border-bottom-left-radius: 18px;
border-bottom-right-radius: 4px;
}
[dir="rtl"] .message-bubble.user {
border-bottom-right-radius: 18px;
border-bottom-left-radius: 4px;
}
@media (max-width: 768px) {
.chat-bot-container {
height: 500px;
}
.message-content {
max-width: 85%;
}
.service-cards {
grid-template-columns: 1fr;
}
}

/* === quick-actions.css === */
:root {
--tp-qa-primary: #2271b1;
--tp-qa-primary-dark: #135e96;
--tp-qa-danger: #dc3545;
--tp-qa-success: #28a745;
--tp-qa-warning: #ffc107;
--tp-qa-info: #17a2b8;
--tp-qa-bg: #ffffff;
--tp-qa-bg-dark: #f0f0f1;
--tp-qa-text: #2c3338;
--tp-qa-text-light: #646970;
--tp-qa-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
--tp-qa-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
--tp-qa-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
--tp-qa-shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
--tp-qa-radius: 8px;
--tp-qa-radius-full: 50%;
--tp-qa-duration: 300ms;
--tp-qa-easing: cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-fab {
position: fixed;
z-index: 9999;
direction: ltr;
}
.tp-fab-bottom-right {
bottom: 24px;
right: 24px;
}
.tp-fab-bottom-left {
bottom: 24px;
left: 24px;
}
.tp-fab-top-right {
top: 80px;
right: 24px;
}
.tp-fab-top-left {
top: 80px;
left: 24px;
}
.tp-fab-trigger {
width: 56px;
height: 56px;
border: none;
border-radius: var(--tp-qa-radius-full);
background: var(--tp-qa-primary);
color: #ffffff;
font-size: 24px;
cursor: pointer;
box-shadow: var(--tp-qa-shadow-lg);
display: flex;
align-items: center;
justify-content: center;
transition: all var(--tp-qa-duration) var(--tp-qa-easing);
position: relative;
z-index: 2;
}
.tp-fab-trigger:hover {
background: var(--tp-qa-primary-dark);
box-shadow: var(--tp-qa-shadow-xl);
transform: scale(1.05);
}
.tp-fab-trigger:active {
transform: scale(0.95);
}
.tp-fab-icon {
display: block;
transition: transform var(--tp-qa-duration) var(--tp-qa-easing);
}
.tp-fab-active .tp-fab-icon {
transform: rotate(45deg);
}
.tp-fab-menu {
position: absolute;
bottom: 70px;
right: 0;
display: flex;
flex-direction: column;
gap: 12px;
opacity: 0;
visibility: hidden;
transform: scale(0.8) translateY(20px);
transition: all var(--tp-qa-duration) var(--tp-qa-easing);
}
.tp-fab-active .tp-fab-menu {
opacity: 1;
visibility: visible;
transform: scale(1) translateY(0);
}
.tp-fab-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--tp-qa-bg);
border: 1px solid #dcdcde;
border-radius: var(--tp-qa-radius);
box-shadow: var(--tp-qa-shadow-md);
cursor: pointer;
transition: all var(--tp-qa-duration) var(--tp-qa-easing);
white-space: nowrap;
min-width: 200px;
text-align: right;
direction: rtl;
}
.tp-fab-item:hover {
background: var(--tp-qa-bg-dark);
box-shadow: var(--tp-qa-shadow-lg);
transform: translateX(-4px);
}
.tp-fab-item-icon {
font-size: 20px;
flex-shrink: 0;
}
.tp-fab-item-label {
font-size: 14px;
color: var(--tp-qa-text);
font-weight: 500;
}
.tp-fab-active .tp-fab-item {
animation: tp-fab-item-in 0.3s var(--tp-qa-easing) backwards;
}
.tp-fab-active .tp-fab-item:nth-child(1) { animation-delay: 0.05s; }
.tp-fab-active .tp-fab-item:nth-child(2) { animation-delay: 0.1s; }
.tp-fab-active .tp-fab-item:nth-child(3) { animation-delay: 0.15s; }
.tp-fab-active .tp-fab-item:nth-child(4) { animation-delay: 0.2s; }
.tp-fab-active .tp-fab-item:nth-child(5) { animation-delay: 0.25s; }
.tp-fab-active .tp-fab-item:nth-child(6) { animation-delay: 0.3s; }
@keyframes tp-fab-item-in {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tp-command-palette {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
display: none;
align-items: flex-start;
justify-content: center;
padding-top: 100px;
pointer-events: none;
}
.tp-command-palette.tp-palette-active {
display: flex;
pointer-events: auto;
}
.tp-palette-backdrop {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
opacity: 0;
pointer-events: none;
transition: opacity var(--tp-qa-duration) var(--tp-qa-easing);
}
.tp-command-palette.tp-palette-active .tp-palette-backdrop {
opacity: 1;
pointer-events: auto;
animation: tp-palette-backdrop-in var(--tp-qa-duration) var(--tp-qa-easing);
}
@keyframes tp-palette-backdrop-in {
from { opacity: 0; }
to { opacity: 1; }
}
.tp-palette-container {
position: relative;
width: 90%;
max-width: 640px;
background: var(--tp-qa-bg);
border-radius: var(--tp-qa-radius);
box-shadow: var(--tp-qa-shadow-xl);
max-height: 60vh;
display: flex;
flex-direction: column;
animation: tp-palette-in var(--tp-qa-duration) var(--tp-qa-easing);
overflow: hidden;
}
@keyframes tp-palette-in {
from {
opacity: 0;
transform: scale(0.95) translateY(-20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.tp-palette-header {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
border-bottom: 1px solid #dcdcde;
}
.tp-palette-search {
flex: 1;
border: none;
outline: none;
font-size: 16px;
padding: 8px 0;
color: var(--tp-qa-text);
direction: rtl;
}
.tp-palette-search::placeholder {
color: var(--tp-qa-text-light);
}
.tp-palette-close {
width: 32px;
height: 32px;
border: none;
background: transparent;
color: var(--tp-qa-text-light);
font-size: 20px;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.tp-palette-close:hover {
background: var(--tp-qa-bg-dark);
color: var(--tp-qa-text);
}
.tp-palette-body {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.tp-palette-results {
flex: 1;
overflow-y: auto;
padding: 8px;
}
.tp-palette-results::-webkit-scrollbar {
width: 8px;
}
.tp-palette-results::-webkit-scrollbar-track {
background: transparent;
}
.tp-palette-results::-webkit-scrollbar-thumb {
background: #c3c4c7;
border-radius: 4px;
}
.tp-palette-results::-webkit-scrollbar-thumb:hover {
background: #a7aaad;
}
.tp-palette-category {
font-size: 12px;
font-weight: 600;
color: var(--tp-qa-text-light);
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 12px 12px 8px;
direction: rtl;
}
.tp-palette-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
direction: rtl;
}
.tp-palette-item:hover,
.tp-palette-item-selected {
background: var(--tp-qa-bg-dark);
}
.tp-palette-item-selected {
background: linear-gradient(90deg, rgba(34, 113, 177, 0.1) 0%, transparent 100%);
}
.tp-palette-icon {
font-size: 20px;
flex-shrink: 0;
}
.tp-palette-content {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.tp-palette-label {
font-size: 14px;
color: var(--tp-qa-text);
}
.tp-palette-shortcut {
font-size: 12px;
color: var(--tp-qa-text-light);
background: var(--tp-qa-bg-dark);
padding: 4px 8px;
border-radius: 4px;
font-family: 'Courier New', monospace;
}
.tp-palette-empty {
text-align: center;
padding: 40px 20px;
color: var(--tp-qa-text-light);
font-size: 14px;
}
.tp-palette-footer {
padding: 12px 16px;
border-top: 1px solid #dcdcde;
background: var(--tp-qa-bg-dark);
}
.tp-palette-hint {
font-size: 12px;
color: var(--tp-qa-text-light);
display: flex;
gap: 12px;
justify-content: center;
}
.tp-palette-hint kbd {
background: var(--tp-qa-bg);
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 2px 6px;
font-size: 11px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.tp-context-menu {
position: absolute;
z-index: 99999;
background: var(--tp-qa-bg);
border-radius: var(--tp-qa-radius);
box-shadow: var(--tp-qa-shadow-xl);
min-width: 200px;
padding: 4px;
opacity: 0;
visibility: hidden;
transform: scale(0.95);
transition: all 0.15s var(--tp-qa-easing);
}
.tp-context-menu.tp-context-menu-active {
opacity: 1;
visibility: visible;
transform: scale(1);
}
.tp-context-menu-items {
display: flex;
flex-direction: column;
}
.tp-context-menu-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border: none;
background: transparent;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s;
text-align: right;
direction: rtl;
width: 100%;
}
.tp-context-menu-item:hover {
background: var(--tp-qa-bg-dark);
}
.tp-context-menu-item:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.tp-context-menu-item:disabled:hover {
background: transparent;
}
.tp-context-icon {
font-size: 16px;
width: 20px;
text-align: center;
}
.tp-context-label {
flex: 1;
font-size: 14px;
color: var(--tp-qa-text);
}
.tp-context-shortcut {
font-size: 11px;
color: var(--tp-qa-text-light);
font-family: 'Courier New', monospace;
}
.tp-context-menu-item[data-action="separator"] {
height: 1px;
padding: 0;
margin: 4px 0;
background: #dcdcde;
cursor: default;
pointer-events: none;
}
.tp-context-menu-item[data-action="separator"]:hover {
background: #dcdcde;
}
.tp-bulk-bar {
position: fixed;
bottom: -80px;
left: 50%;
transform: translateX(-50%);
z-index: 9998;
background: var(--tp-qa-bg);
border-radius: var(--tp-qa-radius);
box-shadow: var(--tp-qa-shadow-xl);
padding: 16px 24px;
display: flex;
align-items: center;
gap: 24px;
min-width: 400px;
transition: bottom var(--tp-qa-duration) var(--tp-qa-easing);
direction: rtl;
}
.tp-bulk-bar.tp-bulk-bar-active {
bottom: 24px;
}
.tp-bulk-info {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: var(--tp-qa-text);
}
.tp-bulk-count {
font-weight: 600;
color: var(--tp-qa-primary);
font-size: 16px;
}
.tp-bulk-actions {
display: flex;
gap: 8px;
}
.tp-bulk-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border: 1px solid #dcdcde;
background: var(--tp-qa-bg);
border-radius: 6px;
cursor: pointer;
font-size: 14px;
color: var(--tp-qa-text);
transition: all 0.2s;
}
.tp-bulk-btn:hover {
background: var(--tp-qa-bg-dark);
border-color: var(--tp-qa-primary);
color: var(--tp-qa-primary);
}
.tp-bulk-btn span {
font-size: 16px;
}
.tp-bulk-danger:hover {
background: var(--tp-qa-danger);
border-color: var(--tp-qa-danger);
color: #ffffff;
}
.tp-bulk-close {
width: 28px;
height: 28px;
border: none;
background: transparent;
color: var(--tp-qa-text-light);
font-size: 18px;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
margin-right: auto;
}
.tp-bulk-close:hover {
background: var(--tp-qa-bg-dark);
color: var(--tp-qa-text);
}
@media (max-width: 768px) {
.tp-fab-bottom-right,
.tp-fab-bottom-left {
bottom: 16px;
}
.tp-fab-bottom-right {
right: 16px;
}
.tp-fab-bottom-left {
left: 16px;
}
.tp-fab-trigger {
width: 48px;
height: 48px;
font-size: 20px;
}
.tp-fab-menu {
bottom: 60px;
}
.tp-fab-item {
min-width: 160px;
padding: 10px 14px;
}
.tp-palette-container {
width: 95%;
max-height: 70vh;
}
.tp-palette-search {
font-size: 14px;
}
.tp-bulk-bar {
min-width: auto;
width: 90%;
padding: 12px 16px;
flex-wrap: wrap;
gap: 12px;
}
.tp-bulk-actions {
width: 100%;
justify-content: space-between;
}
.tp-bulk-btn {
flex: 1;
justify-content: center;
padding: 8px 12px;
font-size: 13px;
}
}
@media (prefers-color-scheme: dark) {
:root {
--tp-qa-bg: #1e1e1e;
--tp-qa-bg-dark: #2d2d2d;
--tp-qa-text: #e0e0e0;
--tp-qa-text-light: #a0a0a0;
}
.tp-fab-trigger {
background: #3c8dbc;
}
.tp-fab-trigger:hover {
background: #2c7aa8;
}
.tp-fab-item,
.tp-palette-container,
.tp-context-menu,
.tp-bulk-bar {
border-color: #3d3d3d;
}
.tp-palette-search::placeholder {
color: #808080;
}
.tp-palette-results::-webkit-scrollbar-thumb {
background: #4d4d4d;
}
.tp-palette-results::-webkit-scrollbar-thumb:hover {
background: #606060;
}
}
@media print {
.tp-fab,
.tp-command-palette,
.tp-context-menu,
.tp-bulk-bar {
display: none !important;
}
}
.tp-fab-trigger:focus,
.tp-fab-item:focus,
.tp-palette-search:focus,
.tp-palette-close:focus,
.tp-palette-item:focus,
.tp-context-menu-item:focus,
.tp-bulk-btn:focus,
.tp-bulk-close:focus {
outline: 2px solid var(--tp-qa-primary);
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
@media (prefers-contrast: high) {
.tp-fab-trigger,
.tp-fab-item,
.tp-palette-container,
.tp-context-menu,
.tp-bulk-bar {
border: 2px solid currentColor;
}
}

/* === notifications-system.min.css === */
:root{--tp-notif-primary:#2563eb;--tp-notif-success:#10b981;--tp-notif-warning:#f59e0b;--tp-notif-error:#ef4444;--tp-notif-info:#3b82f6;--tp-notif-bg:#ffffff;--tp-notif-text:#1f2937;--tp-notif-border:#e5e7eb;--tp-notif-shadow:0 10px 25px rgba(0, 0, 0, 0.1);--tp-notif-duration:300ms;--tp-notif-easing:cubic-bezier(0.4, 0, 0.2, 1);}.dark-mode{--tp-notif-bg:#1e293b;--tp-notif-text:#f1f5f9;--tp-notif-border:#334155;--tp-notif-shadow:0 10px 25px rgba(0, 0, 0, 0.3);}.tp-notification-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--tp-notif-text);cursor:pointer;transition:all var(--tp-notif-duration) var(--tp-notif-easing);}.tp-notification-trigger:hover{background:rgba(0, 0, 0, 0.05);transform:scale(1.05);}.dark-mode .tp-notification-trigger:hover{background:rgba(255, 255, 255, 0.1);}.tp-notification-trigger i{font-size:18px;}.tp-notification-badge{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;color:#ffffff;background:var(--tp-notif-error);border-radius:9px;border:2px solid var(--tp-notif-bg);animation:tp-notif-badge-pulse 2s ease-in-out infinite;}@keyframes tp-notif-badge-pulse{0%, 100%{transform:scale(1);}50%{transform:scale(1.1);}}.tp-notification-center{position:fixed;top:60px;right:-400px;width:380px;max-height:calc(100vh - 80px);background:var(--tp-notif-bg);border-radius:12px;box-shadow:var(--tp-notif-shadow);border:1px solid var(--tp-notif-border);z-index:99999;display:flex;flex-direction:column;opacity:0;transition:all var(--tp-notif-duration) var(--tp-notif-easing);}.tp-notification-center.tp-nc-active{right:20px;opacity:1;}.tp-nc-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--tp-notif-border);}.tp-nc-title{display:flex;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:600;color:var(--tp-notif-text);}.tp-nc-title i{color:var(--tp-notif-primary);}.tp-nc-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;font-size:12px;font-weight:600;color:#ffffff;background:var(--tp-notif-primary);border-radius:11px;}.tp-nc-actions{display:flex;gap:4px;}.tp-nc-action-btn, .tp-nc-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;color:var(--tp-notif-text);cursor:pointer;transition:all 200ms ease;}.tp-nc-action-btn:hover, .tp-nc-close:hover{background:rgba(0, 0, 0, 0.05);}.dark-mode .tp-nc-action-btn:hover, .dark-mode .tp-nc-close:hover{background:rgba(255, 255, 255, 0.1);}.tp-nc-tabs{display:flex;gap:0;padding:12px 20px;border-bottom:1px solid var(--tp-notif-border);}.tp-nc-tab{flex:1;padding:8px 12px;border:none;border-radius:6px;background:transparent;color:var(--tp-notif-text);font-size:14px;font-weight:500;cursor:pointer;transition:all 200ms ease;display:flex;align-items:center;justify-content:center;gap:6px;}.tp-nc-tab:hover{background:rgba(0, 0, 0, 0.03);}.tp-nc-tab.active{background:var(--tp-notif-primary);color:#ffffff;}.tp-nc-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;font-size:11px;border-radius:10px;background:rgba(255, 255, 255, 0.2);}.tp-nc-list{flex:1;overflow-y:auto;overflow-x:hidden;}.tp-nc-list::-webkit-scrollbar{width:6px;}.tp-nc-list::-webkit-scrollbar-track{background:transparent;}.tp-nc-list::-webkit-scrollbar-thumb{background:var(--tp-notif-border);border-radius:3px;}.tp-nc-list::-webkit-scrollbar-thumb:hover{background:#9ca3af;}.tp-nc-item{position:relative;display:flex;gap:12px;padding:16px 20px;border-bottom:1px solid var(--tp-notif-border);cursor:pointer;transition:all 200ms ease;}.tp-nc-item:hover{background:rgba(0, 0, 0, 0.02);}.dark-mode .tp-nc-item:hover{background:rgba(255, 255, 255, 0.03);}.tp-nc-item.unread{background:rgba(37, 99, 235, 0.05);}.tp-nc-item.unread::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tp-notif-primary);}.tp-nc-item-icon{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;}.tp-nc-icon-success{background:rgba(16, 185, 129, 0.1);color:var(--tp-notif-success);}.tp-nc-icon-warning{background:rgba(245, 158, 11, 0.1);color:var(--tp-notif-warning);}.tp-nc-icon-error{background:rgba(239, 68, 68, 0.1);color:var(--tp-notif-error);}.tp-nc-icon-info{background:rgba(59, 130, 246, 0.1);color:var(--tp-notif-info);}.tp-nc-item-content{flex:1;min-width:0;}.tp-nc-item-title{font-size:14px;font-weight:600;color:var(--tp-notif-text);margin-bottom:4px;}.tp-nc-item-message{font-size:13px;color:#6b7280;margin-bottom:6px;line-height:1.4;word-wrap:break-word;}.dark-mode .tp-nc-item-message{color:#9ca3af;}.tp-nc-item-time{font-size:12px;color:#9ca3af;}.tp-nc-item-delete{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:#9ca3af;opacity:0;cursor:pointer;transition:all 200ms ease;}.tp-nc-item:hover .tp-nc-item-delete{opacity:1;}.tp-nc-item-delete:hover{background:rgba(239, 68, 68, 0.1);color:var(--tp-notif-error);}.tp-nc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#9ca3af;}.tp-nc-empty i{font-size:48px;margin-bottom:12px;opacity:0.5;}.tp-nc-empty p{font-size:14px;margin:0;}.tp-toast-container{position:fixed;z-index:999999;pointer-events:none;display:flex;flex-direction:column;gap:12px;}.tp-toast-top-right{top:20px;right:20px;}.tp-toast-top-left{top:20px;left:20px;}.tp-toast-bottom-right{bottom:20px;right:20px;}.tp-toast-bottom-left{bottom:20px;left:20px;}.tp-toast{position:relative;min-width:300px;max-width:400px;display:flex;align-items:flex-start;gap:12px;padding:16px;background:var(--tp-notif-bg);border-radius:8px;box-shadow:0 10px 25px rgba(0, 0, 0, 0.15);border-left:4px solid;pointer-events:auto;opacity:0;transform:translateX(400px);transition:all var(--tp-notif-duration) var(--tp-notif-easing);overflow:hidden;}.tp-toast-top-left .tp-toast, .tp-toast-bottom-left .tp-toast{transform:translateX(-400px);}.tp-toast.tp-toast-show{opacity:1;transform:translateX(0);}.tp-toast.tp-toast-hiding{opacity:0;transform:translateX(400px);}.tp-toast-top-left .tp-toast.tp-toast-hiding, .tp-toast-bottom-left .tp-toast.tp-toast-hiding{transform:translateX(-400px);}.tp-toast-success{border-left-color:var(--tp-notif-success);}.tp-toast-warning{border-left-color:var(--tp-notif-warning);}.tp-toast-error{border-left-color:var(--tp-notif-error);}.tp-toast-info{border-left-color:var(--tp-notif-info);}.tp-toast-icon{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:20px;}.tp-toast-success .tp-toast-icon{color:var(--tp-notif-success);}.tp-toast-warning .tp-toast-icon{color:var(--tp-notif-warning);}.tp-toast-error .tp-toast-icon{color:var(--tp-notif-error);}.tp-toast-info .tp-toast-icon{color:var(--tp-notif-info);}.tp-toast-content{flex:1;min-width:0;}.tp-toast-title{font-size:14px;font-weight:600;color:var(--tp-notif-text);margin-bottom:4px;}.tp-toast-message{font-size:13px;color:#6b7280;line-height:1.4;word-wrap:break-word;}.dark-mode .tp-toast-message{color:#9ca3af;}.tp-toast-close{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:#9ca3af;cursor:pointer;transition:all 200ms ease;}.tp-toast-close:hover{background:rgba(0, 0, 0, 0.1);color:var(--tp-notif-text);}.tp-toast-progress{position:absolute;bottom:0;left:0;height:3px;width:100%;background:currentColor;opacity:0.3;transform-origin:left;}.tp-toast-success .tp-toast-progress{color:var(--tp-notif-success);}.tp-toast-warning .tp-toast-progress{color:var(--tp-notif-warning);}.tp-toast-error .tp-toast-progress{color:var(--tp-notif-error);}.tp-toast-info .tp-toast-progress{color:var(--tp-notif-info);}@keyframes tp-toast-progress{from{transform:scaleX(1);}to{transform:scaleX(0);}}@media (max-width:768px){.tp-notification-center{right:-100%;width:100%;max-width:none;height:100vh;max-height:none;top:0;border-radius:0;}.tp-notification-center.tp-nc-active{right:0;}.tp-toast-container{left:10px;right:10px;top:10px;}.tp-toast{min-width:0;width:100%;}}.tp-notification-trigger:focus, .tp-nc-action-btn:focus, .tp-nc-close:focus, .tp-nc-tab:focus, .tp-nc-item:focus, .tp-toast-close:focus{outline:2px solid var(--tp-notif-primary);outline-offset:2px;}@media (prefers-reduced-motion:reduce){.tp-notification-center, .tp-toast, .tp-nc-item, .tp-notification-trigger{transition:none;animation:none;}}@media print{.tp-notification-trigger, .tp-notification-center, .tp-toast-container{display:none !important;}}
