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

/* === modern-modal-design.css === */
.client-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-modal.show {
opacity: 1;
visibility: visible;
}
.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);
z-index: 0;
}
.client-modal .client-modal-content,
.client-modal-content {
z-index: 1;
}
.client-modal-container {
position: relative;
width: 90%;
max-width: 1400px;
height: 90vh;
max-height: 900px;
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;
transform: scale(0.9);
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-modal.show .client-modal-container {
transform: scale(1);
}
.client-modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 0;
border-bottom: none;
position: relative;
overflow: hidden;
}
.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;
}
.modal-header-content {
display: flex;
align-items: center;
padding: 24px 32px;
gap: 24px;
position: relative;
z-index: 1;
}
.modal-header-avatar {
position: relative;
width: 80px;
height: 80px;
border-radius: 50%;
overflow: hidden;
border: 4px solid rgba(255, 255, 255, 0.3);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.2),
0 0 0 8px rgba(255, 255, 255, 0.1);
flex-shrink: 0;
transition: all 0.3s ease;
}
.modal-header-avatar:hover {
transform: scale(1.05);
border-color: rgba(255, 255, 255, 0.5);
}
.modal-header-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.modal-header-avatar-placeholder {
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 32px;
font-weight: 700;
text-transform: uppercase;
}
.modal-header-info {
flex: 1;
min-width: 0;
}
.modal-header-title {
font-size: 28px;
font-weight: 700;
color: white;
margin: 0 0 8px 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.modal-header-subtitle {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
}
.modal-header-meta {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
background: rgba(255, 255, 255, 0.2);
border-radius: 20px;
font-size: 13px;
color: white;
font-weight: 500;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.modal-header-meta i {
font-size: 12px;
opacity: 0.9;
}
.modal-header-actions {
display: flex;
gap: 12px;
align-items: center;
}
.modal-header-btn {
width: 44px;
height: 44px;
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;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.modal-header-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.modal-header-btn i {
font-size: 16px;
}
.modal-header-btn.btn-close {
background: rgba(239, 68, 68, 0.3);
border-color: rgba(239, 68, 68, 0.5);
}
.modal-header-btn.btn-close:hover {
background: rgba(239, 68, 68, 0.5);
}
.modal-progress-indicator {
padding: 20px 32px;
background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
border-bottom: 1px solid #e2e8f0;
}
.progress-stats {
display: flex;
align-items: center;
gap: 24px;
margin-bottom: 12px;
}
.progress-stat-item {
display: flex;
align-items: center;
gap: 8px;
}
.progress-stat-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: 14px;
}
.progress-stat-content {
display: flex;
flex-direction: column;
gap: 2px;
}
.progress-stat-label {
font-size: 11px;
color: #718096;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.progress-stat-value {
font-size: 16px;
font-weight: 700;
color: #2d3748;
}
.progress-bar-container {
position: relative;
height: 8px;
background: #e2e8f0;
border-radius: 10px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 10px;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.progress-bar-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.3) 50%,
transparent 100%
);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.client-tabs-nav {
display: flex;
gap: 4px;
padding: 16px 32px;
background: #f7fafc;
border-bottom: 2px solid #e2e8f0;
overflow-x: auto;
scrollbar-width: thin;
}
.client-tabs-nav::-webkit-scrollbar {
height: 4px;
}
.client-tabs-nav::-webkit-scrollbar-track {
background: #e2e8f0;
}
.client-tabs-nav::-webkit-scrollbar-thumb {
background: #667eea;
border-radius: 4px;
}
.client-tab-btn {
position: relative;
padding: 12px 20px;
background: transparent;
border: none;
border-radius: 12px;
font-size: 14px;
font-weight: 600;
color: #718096;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
display: flex;
align-items: center;
gap: 10px;
}
.client-tab-btn i {
font-size: 16px;
transition: transform 0.3s ease;
}
.client-tab-btn:hover {
color: #667eea;
background: rgba(102, 126, 234, 0.1);
}
.client-tab-btn:hover i {
transform: scale(1.1);
}
.client-tab-btn.active {
color: white;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.client-tab-btn.active::before {
content: '';
position: absolute;
bottom: -18px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #667eea;
}
.tab-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
padding: 0 6px;
background: rgba(239, 68, 68, 0.9);
color: white;
font-size: 11px;
font-weight: 700;
border-radius: 10px;
}
.client-tab-btn.active .tab-badge {
background: rgba(255, 255, 255, 0.3);
}
.client-modal-body {
flex: 1;
overflow-y: auto;
padding: 32px;
background: #f8fafc;
}
.client-modal-body::-webkit-scrollbar {
width: 10px;
}
.client-modal-body::-webkit-scrollbar-track {
background: #f1f5f9;
}
.client-modal-body::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 10px;
}
.tab-content {
display: none;
animation: fadeInUp 0.4s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.data-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 24px;
margin-bottom: 32px;
}
.data-card {
background: white;
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.data-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
transform: scaleY(0);
transform-origin: bottom;
transition: transform 0.3s ease;
}
.data-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.data-card:hover::before {
transform: scaleY(1);
}
.data-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.data-card-title {
display: flex;
align-items: center;
gap: 12px;
font-size: 16px;
font-weight: 700;
color: #2d3748;
}
.data-card-icon {
width: 40px;
height: 40px;
border-radius: 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.data-card-action {
width: 32px;
height: 32px;
border-radius: 8px;
background: #f7fafc;
border: 1px solid #e2e8f0;
color: #718096;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.data-card-action:hover {
background: #667eea;
color: white;
border-color: #667eea;
}
.data-card-body {
display: flex;
flex-direction: column;
gap: 12px;
}
.data-field {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #f1f5f9;
}
.data-field:last-child {
border-bottom: none;
}
.data-field-label {
font-size: 13px;
color: #718096;
font-weight: 500;
}
.data-field-value {
font-size: 14px;
color: #2d3748;
font-weight: 600;
text-align: left;
}
.quick-actions-bar {
position: sticky;
top: 0;
background: white;
padding: 16px 32px;
border-bottom: 1px solid #e2e8f0;
display: flex;
gap: 12px;
flex-wrap: wrap;
z-index: 10;
}
.quick-action-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 18px;
background: white;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-size: 13px;
font-weight: 600;
color: #4a5568;
cursor: pointer;
transition: all 0.3s ease;
}
.quick-action-btn:hover {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-color: transparent;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.quick-action-btn i {
font-size: 14px;
}
.modal-loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
gap: 20px;
}
.loading-spinner {
width: 60px;
height: 60px;
border: 4px solid #e2e8f0;
border-top-color: #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.loading-text {
font-size: 16px;
color: #718096;
font-weight: 500;
}
.modal-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
gap: 16px;
}
.empty-state-icon {
font-size: 64px;
opacity: 0.3;
}
.empty-state-text {
font-size: 18px;
color: #718096;
font-weight: 500;
}
.empty-state-subtext {
font-size: 14px;
color: #a0aec0;
}
.client-modal-footer {
padding: 20px 32px;
background: #f7fafc;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}
.modal-footer-info {
font-size: 13px;
color: #718096;
}
.modal-footer-actions {
display: flex;
gap: 12px;
}
.modal-footer-btn {
padding: 12px 24px;
border-radius: 12px;
font-size: 14px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s ease;
}
.modal-footer-btn.btn-secondary {
background: white;
color: #4a5568;
border: 2px solid #e2e8f0;
}
.modal-footer-btn.btn-secondary:hover {
background: #f7fafc;
border-color: #cbd5e0;
}
.modal-footer-btn.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.modal-footer-btn.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
@media (max-width: 1024px) {
.client-modal-container {
width: 95%;
height: 95vh;
}
.data-cards-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.modal-header-content {
flex-direction: column;
align-items: flex-start;
padding: 20px;
}
.modal-header-avatar {
width: 60px;
height: 60px;
}
.modal-header-title {
font-size: 22px;
}
.client-tabs-nav {
padding: 12px 20px;
}
.client-modal-body {
padding: 20px;
}
.quick-actions-bar {
padding: 12px 20px;
}
.client-modal-footer {
padding: 16px 20px;
flex-direction: column;
}
.modal-footer-actions {
width: 100%;
}
.modal-footer-btn {
flex: 1;
}
}
@media (prefers-color-scheme: dark) {
.client-modal-container {
background: #1a202c;
}
.client-modal-body {
background: #0f1419;
}
.data-card {
background: #2d3748;
border-color: #4a5568;
}
.data-card-title,
.data-field-value {
color: #e2e8f0;
}
.data-field-label {
color: #a0aec0;
}
.client-modal-footer {
background: #2d3748;
border-top-color: #4a5568;
}
}
.client-modal-container:focus {
outline: 3px solid #667eea;
outline-offset: 4px;
}
.client-tab-btn:focus,
.modal-header-btn:focus,
.quick-action-btn:focus,
.modal-footer-btn:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
}
@media print {
.client-modal-backdrop,
.modal-header-actions,
.client-tabs-nav,
.quick-actions-bar,
.client-modal-footer {
display: none !important;
}
.client-modal-container {
width: 100%;
height: auto;
max-height: none;
box-shadow: none;
border-radius: 0;
}
.client-modal-body {
overflow: visible;
}
.tab-content {
display: block !important;
page-break-after: always;
}
}

/* === client-docs-modal.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
--modal-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
--modal-font-numbers: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.docs-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
animation: fadeIn 0.3s ease;
font-family: var(--modal-font-arabic);
padding: 20px;
}
.docs-modal .client-modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
backdrop-filter: none;
}
.docs-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: 94vw;
max-width: 1500px;
height: 90vh;
max-height: 94vh;
display: flex;
flex-direction: column;
z-index: 10000;
opacity: 0;
animation: slideUpCentered 0.3s ease forwards;
transition: box-shadow 0.3s ease;
border: 1px solid rgba(148, 163, 184, 0.25);
overflow: hidden;
}
.docs-modal-content:hover {
box-shadow: 0 30px 85px rgba(15, 23, 42, 0.35), 0 12px 35px rgba(0, 0, 0, 0.18);
}
.docs-modal .client-modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 24px;
border-radius: 16px 16px 0 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.modal-header-content {
display: flex;
align-items: center;
gap: 16px;
}
.modal-header-icon {
font-size: 32px;
opacity: 0.9;
}
.modal-header-text h2 {
margin: 0;
font-size: 24px;
font-weight: 700;
}
.modal-subtitle {
margin: 4px 0 0 0;
font-size: 14px;
opacity: 0.85;
}
.close-docs-modal {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
font-size: 20px;
}
.close-docs-modal:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
.close-docs-modal-top {
position: absolute;
top: 16px;
left: 16px;
background: #ef4444;
border: none;
color: white;
width: 44px;
height: 44px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
font-size: 20px;
z-index: 10001;
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.close-docs-modal-top:hover {
background: #dc2626;
transform: scale(1.1) rotate(90deg);
box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}
.close-docs-modal-top:active {
transform: scale(0.95);
}
[dir="rtl"] .close-docs-modal-top,
body.rtl .close-docs-modal-top {
left: 16px;
right: auto;
}
.docs-modal .client-modal-body {
padding: 24px;
overflow-y: auto;
flex: 1;
}
.docs-tabs {
display: flex;
gap: 12px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.docs-tab-btn {
display: flex;
align-items: center;
gap: 10px;
background: #f3f4f6;
border: 2px solid #e5e7eb;
border-radius: 10px;
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 700;
color: #4b5563;
transition: all 0.25s ease;
position: relative;
}
.docs-tab-btn:hover {
border-color: #667eea;
color: #334155;
background: #eef2ff;
}
.docs-tab-btn.active {
background: linear-gradient(135deg, #667eea, #764ba2);
border-color: #5b6ee0;
color: #ffffff;
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.25);
}
.docs-tab-btn i {
font-size: 16px;
}
.tab-badge {
background: rgba(255, 255, 255, 0.2);
color: inherit;
font-size: 12px;
font-weight: 700;
padding: 2px 10px;
border-radius: 999px;
line-height: 1.6;
}
.docs-tab-btn.active .tab-badge {
background: rgba(0, 0, 0, 0.2);
}
.docs-tab-panel {
display: none;
animation: fadeIn 0.3s ease;
}
.docs-tab-panel.active {
display: block;
}
.docs-tab-panel[hidden] {
display: none !important;
}
.docs-section-intro {
display: flex;
align-items: center;
gap: 12px;
background: #eef2ff;
border: 1px solid #d1d5fe;
color: #4338ca;
padding: 16px;
border-radius: 12px;
margin-bottom: 20px;
}
.docs-section-intro i {
font-size: 20px;
}
.docs-section-intro p {
margin: 0;
font-size: 14px;
}
.docs-stats-overview {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.doc-stat-card {
background: white;
border: 2px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
display: flex;
align-items: center;
gap: 16px;
transition: all 0.3s ease;
}
.doc-stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.doc-stat-card i {
font-size: 36px;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
}
.stat-total {
border-color: #3b82f6;
}
.stat-total i {
background: linear-gradient(135deg, #3b82f6, #2563eb);
color: white;
}
.stat-completed {
border-color: #10b981;
}
.stat-completed i {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
}
.stat-expiring {
border-color: #f59e0b;
}
.stat-expiring i {
background: linear-gradient(135deg, #f59e0b, #d97706);
color: white;
}
.stat-expired {
border-color: #ef4444;
}
.stat-expired i {
background: linear-gradient(135deg, #ef4444, #dc2626);
color: white;
}
.stat-info {
display: flex;
flex-direction: column;
}
.stat-value {
font-size: 28px;
font-weight: 700;
line-height: 1;
margin-bottom: 4px;
}
.stat-label {
font-size: 14px;
color: #6b7280;
}
.docs-filters {
display: flex;
gap: 12px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.doc-filter-btn {
background: white;
border: 2px solid #e5e7eb;
border-radius: 8px;
padding: 10px 20px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: #6b7280;
transition: all 0.3s ease;
}
.doc-filter-btn:hover {
border-color: #667eea;
color: #667eea;
background: #f3f4f6;
}
.doc-filter-btn.active {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border-color: #667eea;
}
.doc-filter-btn i {
font-size: 16px;
}
.docs-list {
display: flex;
flex-direction: column;
gap: 12px;
min-height: 200px;
}
.doc-item {
background: white;
border: 2px solid #e5e7eb;
border-radius: 12px;
padding: 16px;
display: flex;
align-items: center;
justify-content: space-between;
transition: all 0.3s ease;
}
.doc-item:hover {
border-color: #667eea;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
.doc-item-info {
display: flex;
align-items: center;
gap: 16px;
flex: 1;
}
.doc-item-icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
font-size: 24px;
color: white;
}
.doc-item-details {
flex: 1;
}
.doc-item-title {
font-size: 16px;
font-weight: 600;
margin: 0 0 4px 0;
color: #1f2937;
}
.doc-item-meta {
display: flex;
gap: 16px;
font-size: 13px;
color: #6b7280;
}
.doc-item-actions {
display: flex;
gap: 8px;
}
.doc-action-btn {
background: #f3f4f6;
border: none;
border-radius: 8px;
padding: 8px 16px;
cursor: pointer;
font-size: 13px;
font-weight: 600;
color: #6b7280;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 6px;
}
.doc-action-btn:hover {
background: #e5e7eb;
color: #1f2937;
}
.doc-status-badge {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
.status-completed {
background: #d1fae5;
color: #065f46;
}
.status-expiring {
background: #fef3c7;
color: #92400e;
}
.status-expired {
background: #fee2e2;
color: #991b1b;
}
.doc-item.expired {
border-color: #fee2e2;
background: #fef2f2;
}
.doc-item.expired .doc-item-icon {
background: linear-gradient(135deg, #ef4444, #dc2626);
}
.doc-item.expiring {
border-color: #fef3c7;
background: #fffbeb;
}
.doc-item.expiring .doc-item-icon {
background: linear-gradient(135deg, #f59e0b, #d97706);
}
.doc-item.completed {
border-color: #d1fae5;
}
.doc-item.completed .doc-item-icon {
background: linear-gradient(135deg, #10b981, #059669);
}
.docs-empty-state {
text-align: center;
padding: 60px 20px;
color: #9ca3af;
}
.docs-empty-state i {
font-size: 64px;
margin-bottom: 16px;
opacity: 0.5;
}
.docs-empty-state h3 {
font-size: 20px;
margin: 0 0 8px 0;
color: #6b7280;
}
.docs-empty-state p {
font-size: 14px;
margin: 0;
}
.loading-spinner {
text-align: center;
padding: 60px 20px;
color: #9ca3af;
}
.full-file-editor {
border: 2px solid #e5e7eb;
border-radius: 16px;
overflow: hidden;
margin-bottom: 20px;
background: #ffffff;
}
.full-file-editor-header {
display: flex;
align-items: center;
gap: 14px;
padding: 18px 24px;
border-bottom: 1px solid #e5e7eb;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.12));
}
.full-file-editor-header h3 {
margin: 0;
font-size: 18px;
color: #1f2937;
}
.full-file-editor-header p {
margin: 2px 0 0 0;
font-size: 13px;
color: #6b7280;
}
.full-file-editor-area {
min-height: 260px;
padding: 24px;
font-size: 15px;
line-height: 1.7;
color: #1f2937;
outline: none;
}
.full-file-editor-area:focus {
box-shadow: inset 0 0 0 2px rgba(102, 126, 234, 0.35);
background: #f8fafc;
}
.full-file-editor-area:empty::before {
content: 'لا يوجد محتوى بعد. ابدأ بالكتابة هنا...';
color: #9ca3af;
}
.full-file-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.full-file-actions-left,
.full-file-actions-right {
display: flex;
align-items: center;
gap: 12px;
}
.full-file-status {
font-size: 14px;
color: #6b7280;
min-height: 20px;
}
.full-file-status.success {
color: #15803d;
}
.full-file-status.error {
color: #b91c1c;
}
.btn-secondary[disabled],
.btn-primary[disabled] {
opacity: 0.6;
cursor: not-allowed;
box-shadow: none;
}
.full-file-editor-area img,
.full-file-editor-area iframe,
.full-file-editor-area table {
max-width: 100%;
}
.loading-spinner i {
font-size: 48px;
margin-bottom: 16px;
}
.loading-spinner p {
font-size: 14px;
margin: 0;
}
.docs-modal .client-modal-footer {
padding: 20px 24px;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.footer-left-actions,
.footer-right-actions {
display: flex;
gap: 10px;
align-items: center;
}
.footer-right-actions {
flex-wrap: wrap;
}
.btn-primary,
.btn-secondary,
.btn-success {
padding: 12px 24px;
border-radius: 8px;
border: none;
cursor: pointer;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
white-space: nowrap;
}
.btn-icon {
padding: 10px 18px;
font-size: 13px;
}
.btn-primary {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}
.btn-success {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
}
.btn-success:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
background: #f3f4f6;
color: #6b7280;
}
.btn-secondary:hover {
background: #e5e7eb;
color: #1f2937;
}
.drive-url-input-wrapper {
margin-bottom: 24px;
}
.input-group {
display: flex;
gap: 12px;
align-items: stretch;
}
.drive-url-input {
flex: 1;
padding: 14px 16px;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 14px;
font-family: 'Courier New', monospace;
transition: all 0.3s ease;
}
.drive-url-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.drive-url-input::placeholder {
color: #9ca3af;
font-family: 'Tajawal', sans-serif;
}
.drive-url-hint {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
color: #6b7280;
font-size: 13px;
}
.drive-url-hint i {
color: #3b82f6;
}
.drive-content-viewer {
background: #f9fafb;
border: 2px dashed #e5e7eb;
border-radius: 12px;
min-height: 400px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.drive-iframe {
width: 100%;
height: 500px;
border: none;
border-radius: 12px;
}
.drive-empty-state,
.drive-error-state {
text-align: center;
padding: 48px 24px;
}
.drive-empty-state i,
.drive-error-state i {
font-size: 64px;
margin-bottom: 16px;
opacity: 0.3;
}
.drive-empty-state i {
color: #4285f4;
}
.drive-error-state i {
color: #ef4444;
}
.drive-empty-state p,
.drive-error-state p {
margin: 8px 0;
color: #6b7280;
}
.drive-empty-state p:first-of-type,
.drive-error-state p:first-of-type {
font-size: 16px;
font-weight: 600;
color: #374151;
}
.drive-folder-card {
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
border: 2px solid #e5e7eb;
border-radius: 16px;
padding: 32px;
text-align: center;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.3s ease-out;
}
.drive-folder-icon {
margin-bottom: 24px;
}
.drive-folder-icon i {
font-size: 80px;
color: #4285f4;
filter: drop-shadow(0 4px 8px rgba(66, 133, 244, 0.3));
}
.drive-folder-info h4 {
font-size: 24px;
font-weight: 700;
color: #1f2937;
margin-bottom: 16px;
}
.drive-folder-id {
font-family: 'Courier New', monospace;
font-size: 13px;
color: #6b7280;
background: #f3f4f6;
padding: 8px 16px;
border-radius: 8px;
display: inline-block;
margin-bottom: 16px;
}
.drive-folder-id code {
color: #4285f4;
font-weight: 600;
}
.drive-folder-note {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
color: #6b7280;
font-size: 14px;
margin-bottom: 24px;
}
.drive-folder-note i {
color: #3b82f6;
}
.drive-folder-actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}
.btn-open-drive-large {
background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
color: white;
border: none;
padding: 16px 32px;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}
.btn-open-drive-large:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(66, 133, 244, 0.5);
}
.btn-open-drive-large i {
font-size: 24px;
}
.btn-copy-link {
background: white;
color: #4285f4;
border: 2px solid #4285f4;
padding: 16px 32px;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.3s ease;
}
.btn-copy-link:hover {
background: #4285f4;
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}
.btn-copy-link i {
font-size: 18px;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes slideUpCentered {
from {
transform: translate(-50%, calc(-50% + 30px));
opacity: 0;
}
to {
transform: translate(-50%, -50%);
opacity: 1;
}
}
@media (max-width: 900px) {
.docs-modal {
padding: 10px;
}
.docs-modal-content {
width: 95%;
max-width: 100%;
height: 82vh;
max-height: 82vh;
}
.docs-stats-overview {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.doc-stat-card {
padding: 16px;
}
.doc-stat-card i {
font-size: 28px;
width: 48px;
height: 48px;
}
.stat-value {
font-size: 24px;
}
}
@media (max-width: 600px) {
.docs-modal {
padding: 5px;
}
.docs-modal-content {
width: 98%;
max-width: 100%;
height: 85vh;
max-height: 85vh;
}
.doc-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.doc-item-info {
width: 100%;
}
.doc-item-actions {
width: 100%;
justify-content: flex-start;
}
.docs-modal .client-modal-footer {
flex-direction: column;
}
.btn-primary,
.btn-secondary {
width: 100%;
justify-content: center;
}
}
.drive-files-loading,
.drive-files-error,
.drive-files-empty {
text-align: center;
padding: 64px 24px;
}
.drive-files-loading i {
font-size: 48px;
color: #4285f4;
margin-bottom: 16px;
}
.drive-files-error i {
font-size: 48px;
color: #ef4444;
margin-bottom: 16px;
}
.drive-files-empty i {
font-size: 64px;
color: #d1d5db;
margin-bottom: 16px;
}
.drive-files-error h4,
.drive-files-empty h4 {
font-size: 20px;
font-weight: 600;
color: #374151;
margin-bottom: 8px;
}
.drive-files-error p,
.drive-files-empty p,
.drive-files-loading p {
color: #6b7280;
margin-bottom: 16px;
}
.btn-retry {
background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
.btn-retry:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}
.drive-files-stats {
display: flex;
gap: 16px;
padding: 16px;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border-radius: 12px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.drive-files-stats .stat-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: white;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
color: #374151;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.drive-files-stats .stat-item i {
color: #4285f4;
font-size: 18px;
}
.drive-files-list {
max-height: calc(92vh - 300px);
overflow-y: auto;
padding-right: 4px;
}
.drive-files-list::-webkit-scrollbar {
width: 8px;
}
.drive-files-list::-webkit-scrollbar-track {
background: #f3f4f6;
border-radius: 4px;
}
.drive-files-list::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 4px;
}
.drive-files-list::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
}
.drive-file-item {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background: white;
border: 2px solid #f3f4f6;
border-radius: 12px;
margin-bottom: 8px;
transition: all 0.3s ease;
cursor: pointer;
}
.drive-file-item:hover {
border-color: #4285f4;
background: #f8faff;
transform: translateX(-4px);
box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}
.drive-file-item .file-icon {
font-size: 32px;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: #f9fafb;
border-radius: 10px;
flex-shrink: 0;
}
.drive-file-item .file-info {
flex: 1;
min-width: 0;
}
.drive-file-item .file-name {
font-size: 15px;
font-weight: 600;
color: #1f2937;
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.drive-file-item .file-meta {
font-size: 13px;
color: #6b7280;
display: flex;
align-items: center;
gap: 8px;
}
.drive-file-item .file-actions {
display: flex;
gap: 8px;
opacity: 0;
transition: opacity 0.3s ease;
}
.drive-file-item:hover .file-actions {
opacity: 1;
}
.btn-file-action {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border: 2px solid #e5e7eb;
border-radius: 8px;
color: #6b7280;
text-decoration: none;
transition: all 0.2s ease;
cursor: pointer;
}
.btn-file-action:hover {
background: #4285f4;
border-color: #4285f4;
color: white;
transform: scale(1.1);
}
.btn-file-action i {
font-size: 14px;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.drive-file-item {
animation: fadeInUp 0.3s ease;
}
.drive-file-item:nth-child(1) { animation-delay: 0.05s; }
.drive-file-item:nth-child(2) { animation-delay: 0.1s; }
.drive-file-item:nth-child(3) { animation-delay: 0.15s; }
.drive-file-item:nth-child(4) { animation-delay: 0.2s; }
.drive-file-item:nth-child(5) { animation-delay: 0.25s; }
.doc-custody-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
.doc-custody-badge.custody-requested {
background: #fef3c7;
color: #92400e;
}
.doc-custody-badge.custody-active {
background: #dbeafe;
color: #1e40af;
}
.doc-duration-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
background: #f1f5f9;
color: #475569;
margin-inline-start: 8px;
}
.doc-request-btn {
background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
color: white !important;
border: none;
}
.doc-request-btn:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
color: white !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.doc-custody-btn {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
color: white !important;
border: none;
}
.doc-custody-btn:hover {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
color: white !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.doc-release-btn {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
color: white !important;
border: none;
}
.doc-release-btn:hover {
background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
color: white !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px (245, 158, 11, 0.3);
}
.docs-upload-section {
margin: 20px 0;
padding: 20px;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
border-radius: 12px;
}
.upload-drop-zone {
border: 3px dashed #4a90e2;
border-radius: 12px;
padding: 50px 40px;
text-align: center;
background: white;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
position: relative;
overflow: hidden;
}
.upload-drop-zone::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.3s ease;
}
.upload-drop-zone:hover::before {
opacity: 1;
}
.upload-drop-zone:hover {
border-color: #357abd;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}
.upload-drop-zone.drag-over {
border-color: #27ae60;
background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
transform: scale(1.02);
box-shadow: 0 12px 30px rgba(39, 174, 96, 0.3);
}
.upload-icon {
font-size: 64px;
color: #4a90e2;
margin-bottom: 20px;
display: block;
animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.upload-drop-zone h4 {
color: #2c3e50;
font-size: 20px;
font-weight: 600;
margin-bottom: 10px;
}
.upload-hint {
color: #7f8c8d;
font-size: 14px;
margin-bottom: 20px;
}
.btn-select-files {
padding: 12px 30px;
font-size: 16px;
font-weight: 600;
border-radius: 8px;
border: none;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-select-files:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.upload-progress-list {
margin-top: 20px;
}
.upload-progress-item {
background: white;
padding: 16px 20px;
margin: 12px 0;
border-radius: 10px;
border-left: 5px solid #4a90e2;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.upload-progress-item.success {
border-left-color: #27ae60;
animation: successPulse 0.5s ease;
}
.upload-progress-item.error {
border-left-color: #e74c3c;
}
@keyframes successPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
}
.progress-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.file-name {
font-weight: 600;
color: #2c3e50;
font-size: 15px;
}
.file-size {
color: #95a5a6;
font-size: 13px;
}
.progress-bar {
height: 8px;
background: #ecf0f1;
border-radius: 10px;
overflow: hidden;
margin: 10px 0;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
transition: width 0.3s ease;
border-radius: 10px;
}
.progress-status {
font-size: 13px;
color: #7f8c8d;
margin-top: 8px;
}
.upload-progress-item.success .progress-status {
color: #27ae60;
font-weight: 600;
}
.upload-progress-item.error .progress-status {
color: #e74c3c;
font-weight: 600;
}
@media (max-width: 768px) {
.upload-drop-zone {
padding: 40px 20px;
}
.upload-icon {
font-size: 48px;
}
.upload-drop-zone h4 {
font-size: 18px;
}
}
.sub-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2147483647;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.2s ease;
}
.sub-modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.sub-modal-content {
position: relative;
background: white;
border-radius: 16px;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 2;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.sub-modal-header {
padding: 24px 28px;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px 16px 0 0;
}
.sub-modal-header h3 {
margin: 0;
font-size: 20px;
font-weight: 600;
color: white;
}
.sub-modal-header #editDocTitle {
color: #fbbf24;
font-weight: 700;
}
.sub-modal-close {
background: rgba(255, 255, 255, 0.2);
border: none;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 18px;
transition: all 0.3s ease;
}
.sub-modal-close:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
.sub-modal-body {
padding: 28px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #374151;
font-size: 14px;
}
.form-control {
width: 100%;
padding: 12px 16px;
border: 2px solid #e5e7eb;
border-radius: 10px;
font-size: 15px;
font-family: var(--modal-font-arabic);
transition: all 0.3s ease;
background: white;
}
.form-control:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.form-control:hover {
border-color: #cbd5e1;
}
textarea.form-control {
resize: vertical;
min-height: 80px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.form-hint {
display: block;
margin-top: 6px;
font-size: 13px;
color: #6b7280;
font-style: italic;
}
.sub-modal-footer {
padding: 20px 28px;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: flex-end;
gap: 12px;
background: #f9fafb;
border-radius: 0 0 16px 16px;
}
.sub-modal-footer .btn-primary,
.sub-modal-footer .btn-secondary {
padding: 12px 24px;
font-size: 15px;
font-weight: 600;
border-radius: 10px;
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
.sub-modal-footer .btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.sub-modal-footer .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.sub-modal-footer .btn-secondary {
background: #e5e7eb;
color: #374151;
}
.sub-modal-footer .btn-secondary:hover {
background: #d1d5db;
}
@media (max-width: 768px) {
.sub-modal-content {
width: 95%;
max-height: 95vh;
}
.form-row {
grid-template-columns: 1fr;
}
.sub-modal-footer {
flex-direction: column;
}
.sub-modal-footer .btn-primary,
.sub-modal-footer .btn-secondary {
width: 100%;
justify-content: center;
}
}
.doc-delete-btn {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
color: white !important;
border: none;
}
.doc-delete-btn:hover {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.confirm-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2147483647;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.2s ease;
}
.confirm-modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
}
.confirm-modal-content {
position: relative;
background: white;
border-radius: 20px;
width: 90%;
max-width: 480px;
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
z-index: 2;
overflow: hidden;
}
@keyframes bounceIn {
0% {
opacity: 0;
transform: scale(0.3);
}
50% {
transform: scale(1.05);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.confirm-modal-icon {
text-align: center;
padding: 40px 30px 20px;
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}
.confirm-modal-icon i {
font-size: 72px;
color: #f59e0b;
animation: shake 0.5s ease;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.confirm-modal-body {
padding: 30px;
text-align: center;
}
.confirm-modal-body h3 {
font-size: 24px;
font-weight: 700;
color: #1f2937;
margin: 0 0 12px 0;
}
.confirm-modal-body p {
font-size: 16px;
color: #6b7280;
margin: 0 0 8px 0;
line-height: 1.6;
}
.confirm-modal-body .doc-name-highlight {
display: block;
font-weight: 700;
color: #dc2626;
font-size: 17px;
margin-top: 16px;
padding: 12px;
background: #fee2e2;
border-radius: 8px;
}
.confirm-modal-footer {
padding: 20px 30px;
display: flex;
gap: 12px;
background: #f9fafb;
border-top: 1px solid #e5e7eb;
}
.confirm-modal-footer button {
flex: 1;
padding: 14px 24px;
font-size: 16px;
font-weight: 600;
border-radius: 12px;
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s ease;
}
.btn-confirm-delete {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-confirm-delete:hover {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.btn-confirm-cancel {
background: #e5e7eb;
color: #374151;
}
.btn-confirm-cancel:hover {
background: #d1d5db;
}
@media (max-width: 768px) {
.confirm-modal-content {
width: 95%;
}
.confirm-modal-footer {
flex-direction: column-reverse;
}
.confirm-modal-footer button {
width: 100%;
}
}
.docs-search-bar {
margin: 20px 0;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
.search-input-wrapper {
position: relative;
margin-bottom: 15px;
}
.search-input {
width: 100%;
padding: 16px 50px 16px 50px;
font-size: 16px;
border: 2px solid transparent;
border-radius: 12px;
background: white;
color: #1f2937;
font-family: var(--modal-font-arabic);
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.search-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
transform: translateY(-2px);
}
.search-input::placeholder {
color: #9ca3af;
}
.search-icon {
position: absolute;
right: 18px;
top: 50%;
transform: translateY(-50%);
color: #667eea;
font-size: 18px;
pointer-events: none;
}
.clear-search {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
background: #ef4444;
color: white;
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
opacity: 0.9;
}
.clear-search:hover {
opacity: 1;
transform: translateY(-50%) scale(1.1);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.advanced-filters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
margin-bottom: 15px;
}
.filter-select {
padding: 12px 16px;
font-size: 15px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 10px;
background: rgba(255, 255, 255, 0.95);
color: #1f2937;
font-family: var(--modal-font-arabic);
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.filter-select:hover {
background: white;
border-color: rgba(255, 255, 255, 0.6);
}
.filter-select:focus {
outline: none;
background: white;
border-color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-reset-filters {
padding: 12px 20px;
font-size: 15px;
font-weight: 600;
border: 2px solid rgba(255, 255, 255, 0.4);
border-radius: 10px;
background: rgba(255, 255, 255, 0.2);
color: white;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
white-space: nowrap;
}
.btn-reset-filters:hover {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.6);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-reset-filters i {
font-size: 14px;
}
.search-results-info {
padding: 12px 16px;
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
color: white;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.search-results-info i {
font-size: 16px;
}
@media (max-width: 768px) {
.docs-search-bar {
padding: 15px;
}
.search-input {
padding: 14px 45px 14px 45px;
font-size: 15px;
}
.advanced-filters {
grid-template-columns: 1fr;
}
.filter-select {
padding: 10px 14px;
}
.btn-reset-filters {
width: 100%;
}
}
.doc-preview-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2147483647;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.3s ease;
}
.doc-preview-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(10px);
z-index: 1;
}
.doc-preview-content {
position: relative;
background: #1f2937;
border-radius: 16px;
width: 95%;
max-width: 1400px;
height: 90vh;
box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
z-index: 2147483646;
overflow: hidden;
animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
.doc-preview-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px 30px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-title {
display: flex;
align-items: center;
gap: 12px;
color: white;
}
.preview-title i {
font-size: 24px;
}
.preview-title h3 {
margin: 0;
font-size: 20px;
font-weight: 700;
}
.preview-actions {
display: flex;
gap: 8px;
}
.preview-action-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
border-radius: 10px;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
}
.preview-action-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
.preview-close-btn {
background: rgba(239, 68, 68, 0.8);
color: white;
border: none;
border-radius: 10px;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
font-size: 18px;
margin-left: 8px;
}
.preview-close-btn:hover {
background: rgba(239, 68, 68, 1);
transform: scale(1.1);
}
.doc-preview-body {
flex: 1;
position: relative;
background: #111827;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.preview-loading {
text-align: center;
color: #9ca3af;
}
.preview-loading i {
font-size: 48px;
color: #667eea;
margin-bottom: 16px;
display: block;
}
.preview-loading p {
font-size: 16px;
font-weight: 500;
}
.preview-error {
text-align: center;
color: #ef4444;
padding: 40px;
}
.preview-error i {
font-size: 64px;
margin-bottom: 20px;
display: block;
}
.preview-error p {
font-size: 18px;
margin-bottom: 24px;
color: #9ca3af;
}
.preview-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
background: white;
}
.preview-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
transition: transform 0.3s ease;
}
.doc-preview-footer {
background: #1f2937;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 16px 30px;
display: flex;
align-items: center;
justify-content: space-between;
}
.preview-info {
display: flex;
gap: 20px;
color: #9ca3af;
font-size: 14px;
}
.preview-info span {
display: flex;
align-items: center;
gap: 6px;
}
.preview-zoom-controls {
display: flex;
align-items: center;
gap: 12px;
}
.preview-zoom-controls button {
background: rgba(102, 126, 234, 0.2);
color: white;
border: 1px solid rgba(102, 126, 234, 0.4);
border-radius: 8px;
padding: 8px 16px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
font-weight: 500;
}
.preview-zoom-controls button:hover {
background: rgba(102, 126, 234, 0.4);
border-color: rgba(102, 126, 234, 0.6);
}
.preview-zoom-controls span {
color: #667eea;
font-weight: 700;
font-size: 15px;
min-width: 60px;
text-align: center;
}
.doc-preview-modal.fullscreen .doc-preview-content {
width: 100%;
max-width: none;
height: 100vh;
border-radius: 0;
}
@media (max-width: 768px) {
.doc-preview-content {
width: 100%;
height: 100vh;
border-radius: 0;
}
.doc-preview-header {
padding: 15px 20px;
}
.preview-title h3 {
font-size: 16px;
}
.preview-action-btn,
.preview-close-btn {
width: 38px;
height: 38px;
font-size: 14px;
}
.preview-zoom-controls {
flex-wrap: wrap;
gap: 8px;
}
.preview-zoom-controls button {
padding: 6px 12px;
font-size: 13px;
}
}
.toast-container {
position: fixed;
top: 20px;
left: 20px;
z-index: 999999999;
display: flex;
flex-direction: column;
gap: 12px;
max-width: 400px;
}
.toast {
background: white;
border-radius: 12px;
padding: 16px 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
gap: 12px;
transform: translateX(-120%);
opacity: 0;
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
font-family: var(--modal-font-arabic);
font-size: 15px;
border-right: 5px solid #3b82f6;
min-width: 320px;
}
.toast.show {
transform: translateX(0);
opacity: 1;
}
.toast i:first-child {
font-size: 20px;
flex-shrink: 0;
}
.toast span {
flex: 1;
color: #1f2937;
font-weight: 500;
}
.toast-close {
background: transparent;
border: none;
color: #6b7280;
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.toast-close:hover {
background: #f3f4f6;
color: #1f2937;
}
.toast-success {
border-right-color: #10b981;
}
.toast-success i:first-child {
color: #10b981;
}
.toast-error {
border-right-color: #ef4444;
}
.toast-error i:first-child {
color: #ef4444;
}
.toast-warning {
border-right-color: #f59e0b;
}
.toast-warning i:first-child {
color: #f59e0b;
}
.toast-info {
border-right-color: #3b82f6;
}
.toast-info i:first-child {
color: #3b82f6;
}
@media (max-width: 768px) {
.toast-container {
left: 10px;
right: 10px;
max-width: none;
}
.toast {
min-width: auto;
}
}

/* === client-credentials-modal.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
--modal-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
--modal-font-mono: 'Courier New', 'SF Mono', Monaco, 'Cascadia Code', monospace;
}
.credentials-modal {
font-family: var(--modal-font-arabic);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999999;
display: none;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.credentials-modal.active {
display: flex;
opacity: 1;
}
.credentials-modal .modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.credentials-modal .modal-container {
position: relative;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 95%;
width: 95%;
max-height: 90vh;
overflow: hidden;
animation: slideInDown 0.3s ease-out;
z-index: 1;
display: flex;
flex-direction: column;
}
@keyframes slideInDown {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.credentials-modal .modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
border-bottom: none;
}
.credentials-modal .modal-title {
margin: 0;
font-size: 20px;
font-weight: 600;
display: flex;
align-items: center;
gap: 12px;
font-family: var(--modal-font-arabic);
letter-spacing: -0.02em;
}
.credentials-modal .modal-title i {
font-size: 24px;
opacity: 0.9;
}
.credentials-modal .client-name {
font-weight: 700;
background: rgba(255, 255, 255, 0.15);
padding: 4px 12px;
border-radius: 6px;
font-size: 16px;
font-family: var(--modal-font-arabic);
}
.credentials-modal .modal-close {
background: rgba(255, 255, 255, 0.15);
border: none;
color: #ffffff;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
font-size: 18px;
}
.credentials-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.25);
transform: rotate(90deg);
}
.credentials-modal .modal-body {
padding: 24px;
background: #f8f9fa;
overflow-y: auto;
flex: 1;
}
.credentials-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
align-items: start;
}
.credential-group {
background: #ffffff;
border-radius: 12px;
padding: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 2px solid transparent;
transition: all 0.3s;
height: 100%;
display: flex;
flex-direction: column;
}
.credential-group:hover {
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
border-color: #667eea;
}
.credential-group-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding-bottom: 10px;
border-bottom: 2px solid #f1f5f9;
}
.credential-group-header i {
font-size: 18px;
color: #667eea;
}
.credential-group-header h3 {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #1e293b;
font-family: var(--modal-font-arabic);
letter-spacing: -0.01em;
}
.credential-field {
margin-bottom: 10px;
}
.credential-field:last-child {
margin-bottom: 0;
}
.credential-field label {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 600;
color: #64748b;
margin-bottom: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-family: var(--modal-font-arabic);
}
.credential-field label i {
font-size: 12px;
color: #667eea;
}
.credential-value-wrapper {
display: flex;
align-items: center;
gap: 8px;
}
.credential-value {
flex: 1;
font-size: 13px;
font-weight: 600;
color: #1e293b;
font-family: var(--modal-font-mono);
padding: 8px 10px;
background: #f1f5f9;
border-radius: 6px;
border: 1px dashed #cbd5e1;
direction: ltr;
text-align: left;
word-break: break-all;
line-height: 1.5;
}
.credential-value.website-url {
font-family: var(--modal-font-arabic);
}
.credential-value.website-url a {
color: #667eea;
text-decoration: none;
transition: color 0.2s;
}
.credential-value.website-url a:hover {
color: #764ba2;
text-decoration: underline;
}
.credential-value.empty {
color: #94a3b8;
font-style: italic;
font-family: inherit;
font-weight: 400;
}
.copy-credential-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: #ffffff;
width: 32px;
height: 32px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
flex-shrink: 0;
font-size: 13px;
}
.copy-credential-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.copy-credential-btn:active {
transform: translateY(0);
}
.copy-credential-btn.copied {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.copy-credential-btn.copied i:before {
content: "\f00c";
}
.credentials-empty {
text-align: center;
padding: 40px 20px;
}
.credentials-empty i {
font-size: 64px;
color: #cbd5e1;
margin-bottom: 16px;
}
.credentials-empty p {
font-size: 16px;
color: #64748b;
margin: 0 0 8px 0;
font-weight: 600;
}
.credentials-empty span {
font-size: 14px;
color: #94a3b8;
}
.credentials-loading {
text-align: center;
padding: 60px 20px;
}
.credentials-loading .spinner {
width: 48px;
height: 48px;
border: 4px solid #f1f5f9;
border-top-color: #667eea;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 20px auto;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.credentials-loading p {
font-size: 15px;
color: #64748b;
margin: 0;
}
.credentials-error {
text-align: center;
padding: 40px 20px;
}
.credentials-error i {
font-size: 56px;
color: #ef4444;
margin-bottom: 16px;
}
.credentials-error p {
font-size: 16px;
color: #64748b;
margin: 0;
}
.credentials-modal .modal-footer {
background: #ffffff;
padding: 20px 28px;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: flex-end;
gap: 12px;
}
.credentials-modal .btn {
padding: 10px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: none;
display: flex;
align-items: center;
gap: 8px;
}
.credentials-modal .btn-secondary {
background: #f1f5f9;
color: #475569;
}
.credentials-modal .btn-secondary:hover {
background: #e2e8f0;
}
@media (max-width: 768px) {
.credentials-modal .modal-container {
max-width: 95%;
margin: 20px;
}
.credentials-container {
grid-template-columns: 1fr !important;
}
.credentials-modal .modal-header {
padding: 16px;
}
.credentials-modal .modal-body {
padding: 16px;
}
.credentials-modal .modal-title {
font-size: 16px;
}
.credentials-modal .client-name {
font-size: 13px;
}
.credential-value {
font-size: 12px;
padding: 8px 10px;
}
}
@media (min-width: 769px) and (max-width: 1200px) {
.credentials-container {
grid-template-columns: repeat(2, 1fr) !important;
}
}
@media (min-width: 1201px) {
.credentials-container {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}
}
@media (prefers-color-scheme: dark) {
.credentials-modal .modal-container {
background: #1e293b;
}
.credentials-modal .modal-body {
background: #0f172a;
}
.credential-field {
background: #1e293b;
border-color: #334155;
}
.credential-field:hover {
border-color: #667eea;
}
.credential-value {
background: #0f172a;
color: #e2e8f0;
border-color: #475569;
}
.credentials-modal .modal-footer {
background: #1e293b;
border-top-color: #334155;
}
}
[dir="rtl"] .credential-value {
direction: ltr;
text-align: left;
}
.credentials-modal *:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
.copy-credential-btn[aria-label]::after {
content: attr(aria-label);
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
background: #1e293b;
color: #ffffff;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
}
.copy-credential-btn:hover::after {
opacity: 1;
}

/* === client-notifications-modal.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
--modal-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
--modal-font-numbers: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
#client-notifications-modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
font-family: var(--modal-font-arabic);
}
#client-notifications-modal.active {
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.2s ease;
}
#client-notifications-modal .modal-backdrop {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
animation: fadeIn 0.2s ease;
}
#client-notifications-modal .modal-container {
position: relative;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
width: 90%;
max-width: 900px;
max-height: 85vh;
display: flex;
flex-direction: column;
animation: slideUp 0.3s ease;
z-index: 1;
}
#client-notifications-modal .modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 28px;
border-bottom: 1px solid #e2e8f0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px 16px 0 0;
}
#client-notifications-modal .modal-title {
margin: 0;
font-size: 20px;
font-weight: 600;
color: #ffffff;
display: flex;
align-items: center;
gap: 12px;
font-family: var(--modal-font-arabic);
letter-spacing: -0.02em;
}
#client-notifications-modal .modal-title i {
font-size: 22px;
}
#client-notifications-modal .modal-close {
background: rgba(255, 255, 255, 0.2);
border: none;
border-radius: 8px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #ffffff;
font-size: 18px;
transition: all 0.2s ease;
}
#client-notifications-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.05);
}
#client-notifications-modal .modal-body {
padding: 24px 28px;
overflow-y: auto;
flex: 1;
}
#client-notifications-modal .notifications-loading {
text-align: center;
padding: 60px 20px;
}
#client-notifications-modal .notifications-loading .spinner {
width: 48px;
height: 48px;
border: 4px solid #e2e8f0;
border-top-color: #667eea;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 16px;
}
#client-notifications-modal .notifications-loading p {
color: #64748b;
font-size: 15px;
margin: 0;
}
#client-notifications-modal .notifications-error {
text-align: center;
padding: 60px 20px;
color: #ef4444;
}
#client-notifications-modal .notifications-error i {
font-size: 48px;
margin-bottom: 16px;
opacity: 0.8;
}
#client-notifications-modal .notifications-error p {
font-size: 16px;
margin: 0;
}
.notifications-summary {
margin-bottom: 28px;
}
.notifications-summary .summary-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
padding: 20px 24px;
display: flex;
align-items: center;
gap: 16px;
color: #ffffff;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
.notifications-summary .summary-card i {
font-size: 32px;
opacity: 0.9;
}
.notifications-summary .summary-info {
display: flex;
flex-direction: column;
}
.notifications-summary .summary-count {
font-size: 28px;
font-weight: 700;
line-height: 1;
margin-bottom: 4px;
}
.notifications-summary .summary-label {
font-size: 14px;
opacity: 0.9;
}
.notification-section {
margin-bottom: 24px;
border-radius: 12px;
border: 1px solid #e2e8f0;
background: #ffffff;
overflow: hidden;
transition: all 0.2s ease;
}
.notification-section:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
border-color: #cbd5e1;
}
.notification-section:last-child {
margin-bottom: 0;
}
.notification-section .section-header {
padding: 16px 20px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
}
.notification-section .section-title {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #1e293b;
display: flex;
align-items: center;
gap: 10px;
}
.notification-section .section-title i {
font-size: 18px;
}
.notification-section .section-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
padding: 0 8px;
background: #e2e8f0;
color: #475569;
border-radius: 12px;
font-size: 13px;
font-weight: 600;
margin-right: auto;
}
.notification-section--warning .section-header {
background: #fef3c7;
border-bottom-color: #fde047;
}
.notification-section--warning .section-title {
color: #92400e;
}
.notification-section--warning .section-title i {
color: #f59e0b;
}
.notification-section--danger .section-header {
background: #fee2e2;
border-bottom-color: #fca5a5;
}
.notification-section--danger .section-title {
color: #991b1b;
}
.notification-section--danger .section-title i {
color: #ef4444;
}
.notification-section--info .section-header {
background: #dbeafe;
border-bottom-color: #93c5fd;
}
.notification-section--info .section-title {
color: #1e40af;
}
.notification-section--info .section-title i {
color: #3b82f6;
}
.notification-section--secondary .section-header {
background: #f1f5f9;
border-bottom-color: #cbd5e1;
}
.notification-section .section-content {
padding: 8px;
}
.notification-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 14px 16px;
border-radius: 8px;
margin-bottom: 8px;
background: #fafafa;
border: 1px solid transparent;
transition: all 0.2s ease;
}
.notification-item:last-child {
margin-bottom: 0;
}
.notification-item:hover {
background: #f8f9fa;
border-color: #e2e8f0;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.notification-item .item-content {
flex: 1;
}
.notification-item .item-title {
font-size: 15px;
font-weight: 500;
color: #1e293b;
margin-bottom: 6px;
line-height: 1.4;
}
.notification-item .item-meta {
font-size: 13px;
color: #64748b;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 6px;
}
.notification-item .item-meta i {
font-size: 12px;
opacity: 0.7;
}
.notification-item .item-meta--danger {
color: #ef4444;
font-weight: 500;
}
.notification-item .item-meta--warning {
color: #f59e0b;
font-weight: 500;
}
.notification-item .item-progress {
display: flex;
align-items: center;
gap: 10px;
margin-top: 8px;
}
.notification-item .progress-bar {
flex: 1;
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.notification-item .progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 4px;
transition: width 0.3s ease;
}
.notification-item .progress-text {
font-size: 12px;
font-weight: 600;
color: #475569;
min-width: 36px;
text-align: left;
}
.notification-item .item-badge {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
flex-shrink: 0;
}
.notification-item .badge-danger {
background: #fee2e2;
color: #991b1b;
}
.notification-item .badge-warning {
background: #fef3c7;
color: #92400e;
}
.notification-item .badge-secondary {
background: #f1f5f9;
color: #475569;
}
.notification-item .priority-high {
background: #fee2e2;
color: #991b1b;
}
.notification-item .priority-medium {
background: #fef3c7;
color: #92400e;
}
.notification-item .priority-low {
background: #dbeafe;
color: #1e40af;
}
.notification-item .priority-normal {
background: #f1f5f9;
color: #475569;
}
.no-notifications {
text-align: center;
padding: 60px 20px;
color: #64748b;
}
.no-notifications i {
font-size: 64px;
color: #10b981;
margin-bottom: 16px;
opacity: 0.8;
}
.no-notifications p {
font-size: 18px;
font-weight: 600;
color: #1e293b;
margin: 0 0 8px 0;
}
.no-notifications span {
font-size: 14px;
color: #64748b;
}
#client-notifications-modal .modal-footer {
padding: 16px 28px;
border-top: 1px solid #e2e8f0;
background: #f8fafc;
border-radius: 0 0 16px 16px;
display: flex;
justify-content: flex-end;
gap: 12px;
}
#client-notifications-modal .btn {
padding: 10px 20px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
border: none;
outline: none;
}
#client-notifications-modal .btn-secondary {
background: #e2e8f0;
color: #475569;
}
#client-notifications-modal .btn-secondary:hover {
background: #cbd5e1;
transform: translateY(-1px);
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (max-width: 768px) {
#client-notifications-modal .modal-container {
width: 95%;
max-height: 90vh;
border-radius: 12px;
}
#client-notifications-modal .modal-header,
#client-notifications-modal .modal-body,
#client-notifications-modal .modal-footer {
padding-left: 20px;
padding-right: 20px;
}
#client-notifications-modal .modal-title {
font-size: 18px;
}
.notifications-summary .summary-count {
font-size: 24px;
}
.notification-section .section-title {
font-size: 15px;
}
.notification-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.notification-item .item-badge {
align-self: flex-start;
}
}
html[dir="rtl"] #client-notifications-modal .modal-title,
html[dir="rtl"] .notification-section .section-title,
html[dir="rtl"] .notification-item {
text-align: right;
}
html[dir="rtl"] .notification-section .section-count {
margin-right: 0;
margin-left: auto;
}
html[dir="rtl"] .notification-item .progress-text {
text-align: right;
}
#client-notifications-modal .modal-close:focus,
#client-notifications-modal .btn:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
#client-notifications-modal,
#client-notifications-modal .modal-backdrop,
#client-notifications-modal .modal-container,
.notification-item,
.notification-section {
animation: none !important;
transition: none !important;
}
}
body.modal-open {
overflow: hidden;
}

/* === client-inspection-modal.css === */
.inspection-modal .client-modal-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
gap: 16px;
flex-wrap: wrap;
}
.inspection-modal .footer-actions-left,
.inspection-modal .footer-actions-right {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.inspection-modal .footer-actions-right {
margin-left: auto;
}
.inspection-modal #printInspectionReportBtn {
background: #64748b;
color: white;
transition: all 0.2s ease;
}
.inspection-modal #printInspectionReportBtn:hover {
background: #475569;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}
.inspection-modal #exportInspectionPDFBtn {
background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
color: white;
transition: all 0.2s ease;
}
.inspection-modal #exportInspectionPDFBtn:hover {
background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.inspection-modal #exportInspectionExcelBtn {
background: #059669;
color: white;
transition: all 0.2s ease;
}
.inspection-modal #exportInspectionExcelBtn:hover {
background: #047857;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
#inspectionSummarySections {
display: flex;
gap: 24px;
flex-wrap: wrap;
margin-bottom: 24px;
}
#inspectionStats {
flex: 1;
min-width: 260px;
background: #f8f8f8;
padding: 16px;
border-radius: 8px;
box-shadow: 0 1px 4px #eee;
}
#inspectionChart {
flex: 2;
min-width: 320px;
background: #f8f8f8;
padding: 16px;
border-radius: 8px;
box-shadow: 0 1px 4px #eee;
}
.inspection-alerts-card {
background: #fff8e6;
border: 1px solid #facc15;
border-radius: 10px;
padding: 16px;
margin-bottom: 24px;
box-shadow: 0 6px 18px rgba(251, 191, 36, 0.18);
}
#inspectionContainer {
flex: 1;
min-width: 360px;
background: #ffffff;
border-radius: 12px;
padding: 18px;
box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
border: 1px solid rgba(148, 163, 184, 0.25);
}
#inspectionFormModal {
flex: 1;
min-width: 360px;
background: #ffffff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 16px 36px rgba(79, 70, 229, 0.18);
border: 1px solid rgba(99, 102, 241, 0.25);
}
.inspection-stage {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 16px;
margin-bottom: 16px;
transition: all 0.2s ease;
}
.inspection-stage:hover {
border-color: #cbd5e1;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.inspection-stage .stage-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #e2e8f0;
}
.inspection-stage .stage-index {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 14px;
flex-shrink: 0;
}
.inspection-stage .stage-title {
font-weight: 700;
color: #0f172a;
font-size: 15px;
}
.inspection-stage .stage-subtitle {
font-size: 12px;
color: #64748b;
display: block;
margin-top: 2px;
}
.inspection-stage .stage-fields {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
}
@media print {
.inspection-modal .client-modal-header,
.inspection-modal .client-modal-footer,
#inspectionFormModal,
.btn,
button {
display: none !important;
}
.inspection-modal .client-modal-content {
box-shadow: none !important;
border: none !important;
width: 100% !important;
max-width: 100% !important;
}
#inspectionSummarySections,
#inspectionContainer {
page-break-inside: avoid;
}
.inspection-stage {
page-break-inside: avoid;
}
}
.inspection-loading {
text-align: center;
padding: 32px 12px;
color: #1d4ed8;
font-weight: 600;
font-size: 15px;
}
.inspection-empty {
text-align: center;
padding: 32px 12px;
color: #94a3b8;
font-size: 14px;
}
@media (max-width: 768px) {
.inspection-modal .client-modal-footer {
flex-direction: column;
gap: 12px;
}
.inspection-modal .footer-actions-left,
.inspection-modal .footer-actions-right {
width: 100%;
justify-content: center;
}
.inspection-modal .footer-actions-right {
margin-left: 0;
}
#inspectionSummarySections {
flex-direction: column;
}
.inspection-main-layout {
flex-direction: column;
}
}
.inspection-record-card {
background: white;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 16px;
margin-bottom: 12px;
transition: all 0.2s ease;
}
.inspection-record-card:hover {
border-color: #4facfe;
box-shadow: 0 4px 16px rgba(79, 172, 254, 0.15);
transform: translateY(-2px);
}
.inspection-record-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.inspection-record-period {
font-weight: 700;
font-size: 16px;
color: #0f172a;
}
.inspection-record-actions {
display: flex;
gap: 8px;
}
.inspection-record-body {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 12px;
font-size: 13px;
}
.inspection-record-field {
padding: 8px;
background: #f8fafc;
border-radius: 6px;
}
.inspection-record-field strong {
color: #475569;
font-size: 12px;
display: block;
margin-bottom: 4px;
}
.inspection-record-field span {
color: #0f172a;
font-weight: 600;
}
.inspection-modal .table-scroll-container {
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
border-radius: 12px;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
margin-top: 16px;
overflow-x: auto;
position: relative;
}
.inspection-modal .inspection-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 14px;
}
.inspection-modal .inspection-table thead {
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
position: sticky;
top: 0;
z-index: 10;
}
.inspection-modal .inspection-table thead th {
padding: 16px 12px;
text-align: right;
color: #ffffff;
font-weight: 700;
font-size: 13px;
letter-spacing: 0.3px;
text-transform: uppercase;
border-bottom: 3px solid #1e3a8a;
white-space: nowrap;
position: relative;
}
.inspection-modal .inspection-table thead th:first-child {
border-top-right-radius: 12px;
padding-right: 20px;
}
.inspection-modal .inspection-table thead th:last-child {
border-top-left-radius: 12px;
padding-left: 20px;
}
.inspection-modal .inspection-table thead th i {
margin-left: 6px;
opacity: 0.9;
font-size: 12px;
}
.inspection-modal .inspection-table tbody {
background: #ffffff;
}
.inspection-modal .inspection-table tbody tr {
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.inspection-modal .inspection-table tbody tr::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1px;
background: linear-gradient(90deg,
transparent 0%,
#e2e8f0 10%,
#e2e8f0 90%,
transparent 100%);
}
.inspection-modal .inspection-table tbody tr:last-child::after {
display: none;
}
.inspection-modal .inspection-table tbody tr:hover {
background: linear-gradient(90deg,
#eff6ff 0%,
#dbeafe 50%,
#eff6ff 100%);
transform: scale(1.01);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}
.inspection-modal .inspection-table tbody td {
padding: 14px 12px;
text-align: right;
color: #334155;
font-size: 13px;
vertical-align: middle;
border: none;
}
.inspection-modal .inspection-table tbody tr:first-child td {
padding-top: 18px;
}
.inspection-modal .inspection-table tbody td:first-child {
padding-right: 20px;
font-weight: 600;
color: #0f172a;
}
.inspection-modal .inspection-table tbody td:last-child {
padding-left: 20px;
}
.inspection-modal .inspection-table tbody tr:nth-child(even) {
background: linear-gradient(90deg,
#f8fafc 0%,
#f1f5f9 50%,
#f8fafc 100%);
}
.inspection-modal .inspection-table tbody tr:nth-child(even):hover {
background: linear-gradient(90deg,
#eff6ff 0%,
#dbeafe 50%,
#eff6ff 100%);
}
.inspection-modal .inspection-table tbody td[data-type="number"] {
font-family: 'Segoe UI', 'Cairo', sans-serif;
font-variant-numeric: tabular-nums;
direction: ltr;
text-align: left;
font-weight: 600;
color: #1e40af;
}
.inspection-modal .inspection-table tbody td.amount-cell {
font-weight: 700;
color: #059669;
font-size: 14px;
}
.inspection-modal .inspection-table tbody td.amount-cell::after {
content: ' ر.س';
font-size: 11px;
color: #64748b;
margin-right: 4px;
}
.inspection-modal .inspection-table .status-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.3px;
text-transform: uppercase;
white-space: nowrap;
}
.inspection-modal .inspection-table .status-badge i {
font-size: 10px;
}
.inspection-modal .inspection-table .status-badge.status-final {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: #ffffff;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.inspection-modal .inspection-table .status-badge.status-draft {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: #ffffff;
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.inspection-modal .inspection-table .status-badge.status-pending {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: #ffffff;
box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.inspection-modal .inspection-table .actions-cell {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
}
.inspection-modal .inspection-table .actions-cell .btn-icon {
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 8px;
border: 2px solid transparent;
background: #f1f5f9;
color: #475569;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
position: relative;
overflow: hidden;
}
.inspection-modal .inspection-table .actions-cell .btn-icon::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}
.inspection-modal .inspection-table .actions-cell .btn-icon:hover::before {
width: 100%;
height: 100%;
}
.inspection-modal .inspection-table .actions-cell .btn-icon i {
font-size: 14px;
position: relative;
z-index: 1;
}
.inspection-modal .inspection-table .actions-cell .btn-icon:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.inspection-modal .inspection-table .actions-cell .btn-icon:active {
transform: translateY(0) scale(0.95);
}
.inspection-modal .inspection-table .actions-cell .edit-inspection-btn {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: #ffffff;
border-color: #1d4ed8;
}
.inspection-modal .inspection-table .actions-cell .edit-inspection-btn:hover {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.inspection-modal .inspection-table .actions-cell .delete-inspection-btn {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: #ffffff;
border-color: #b91c1c;
}
.inspection-modal .inspection-table .actions-cell .delete-inspection-btn:hover {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.inspection-modal .inspection-table tbody tr.no-records td {
padding: 48px 24px;
text-align: center;
color: #94a3b8;
font-size: 15px;
font-weight: 500;
}
.inspection-modal .inspection-table tbody tr.no-records td i {
display: block;
font-size: 48px;
color: #cbd5e1;
margin-bottom: 12px;
}
.inspection-modal .inspection-table tbody tr.loading-row td {
padding: 32px 24px;
text-align: center;
}
.inspection-modal .inspection-table .loading-spinner {
display: inline-block;
width: 32px;
height: 32px;
border: 3px solid #e2e8f0;
border-top-color: #3b82f6;
border-radius: 50%;
animation: inspection-spin 0.8s linear infinite;
}
@keyframes inspection-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@media (max-width: 1024px) {
.inspection-modal .inspection-table {
font-size: 13px;
}
.inspection-modal .inspection-table thead th,
.inspection-modal .inspection-table tbody td {
padding: 12px 8px;
}
}
@media (max-width: 768px) {
.inspection-modal .table-scroll-container {
border-radius: 8px;
}
.inspection-modal .inspection-table {
font-size: 12px;
}
.inspection-modal .inspection-table thead th {
padding: 12px 6px;
font-size: 11px;
}
.inspection-modal .inspection-table tbody td {
padding: 10px 6px;
font-size: 12px;
}
.inspection-modal .inspection-table .actions-cell .btn-icon {
width: 30px;
height: 30px;
}
.inspection-modal .inspection-table .status-badge {
font-size: 10px;
padding: 4px 8px;
}
}
@media print {
.inspection-modal .inspection-table thead {
background: #1e40af !important;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.inspection-modal .inspection-table tbody tr:nth-child(even) {
background: #f8fafc !important;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.inspection-modal .inspection-table .actions-cell {
display: none !important;
}
.inspection-modal .inspection-table .status-badge {
border: 1px solid #000;
}
}
#compareInspectionsBtn {
transition: all 0.3s ease;
}
#compareInspectionsBtn.btn-warning {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: #ffffff;
animation: pulse 2s ease-in-out infinite;
}
#compareInspectionsBtn.btn-success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: #ffffff;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.compare-checkbox-wrapper {
background: rgba(255, 255, 255, 0.95);
padding: 8px 12px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(4px);
}
.compare-checkbox-wrapper:hover {
background: rgba(255, 255, 255, 1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.compare-modal .client-modal-content {
max-width: 1200px;
width: 95%;
}
.compare-modal .compare-body {
max-height: 70vh;
overflow-y: auto;
}
.comparison-grid {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.comparison-grid > div {
min-height: 48px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.comparison-grid .increase {
background: linear-gradient(90deg, #fff 0%, #ecfdf5 100%) !important;
}
.comparison-grid .decrease {
background: linear-gradient(90deg, #fff 0%, #fef2f2 100%) !important;
}
.comparison-stats > div {
transition: all 0.2s ease;
}
.comparison-stats > div:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}
@media (max-width: 768px) {
.comparison-grid {
grid-template-columns: 1fr !important;
font-size: 13px;
}
.comparison-grid > div:nth-child(3n+1) {
background: #1e40af !important;
color: #fff;
font-weight: 700;
}
.comparison-stats {
grid-template-columns: 1fr !important;
}
.compare-checkbox-wrapper {
font-size: 11px;
padding: 6px 10px;
}
}

/* === client-obligations-modal.css === */
.obligations-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;
}
.obligations-modal.show {
display: flex;
}
.obligations-modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.obligations-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: 94vw;
max-width: 1500px;
height: 90vh;
max-height: 94vh;
display: flex;
flex-direction: column;
z-index: 10000;
opacity: 0;
animation: slideUpCentered 0.3s ease forwards;
transition: box-shadow 0.3s ease;
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;
}
}
.obligations-modal-content:hover {
box-shadow: 0 30px 85px rgba(15, 23, 42, 0.35), 0 12px 35px rgba(0, 0, 0, 0.18);
}
.obligations-modal-header {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
padding: 24px 32px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.obligations-modal-title-section {
display: flex;
align-items: center;
gap: 16px;
}
.obligations-modal-icon {
font-size: 32px;
opacity: 0.9;
}
.obligations-modal-title {
margin: 0;
font-size: 26px;
font-weight: 700;
}
.obligations-modal-subtitle {
margin: 4px 0 0 0;
font-size: 14px;
opacity: 0.85;
}
.obligations-modal-actions {
display: flex;
gap: 12px;
}
.btn-open-interactions {
padding: 10px 14px;
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.35);
color: white;
border-radius: 10px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
}
.btn-open-interactions:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
.btn-close-obligations {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.btn-close-obligations:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
.obligations-modal-body {
flex: 1;
overflow: auto;
padding: 24px 32px;
background: #f8f9fa;
}
.obligations-toolbar {
background: white;
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
display: flex;
gap: 16px;
align-items: flex-end;
flex-wrap: wrap;
}
.obligations-toolbar-group {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-width: 200px;
}
.obligations-toolbar-label {
font-size: 13px;
font-weight: 600;
color: #64748b;
}
.obligations-toolbar-input {
padding: 10px 14px;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 14px;
transition: all 0.2s ease;
}
.obligations-toolbar-input:focus {
outline: none;
border-color: #10b981;
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.btn-load-obligations {
padding: 10px 24px;
background: linear-gradient(135deg, #10b981 0%, #059669 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;
align-self: flex-end;
}
.btn-load-obligations:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-load-obligations:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.btn-open-interactions {
padding: 10px 24px;
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 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;
align-self: flex-end;
}
.btn-open-interactions:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.obligations-table-wrapper {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.obligations-table {
width: 100%;
border-collapse: collapse;
}
.obligations-table thead {
background: #f1f5f9;
}
.obligations-table th {
padding: 14px 16px;
text-align: right;
font-size: 13px;
font-weight: 700;
color: #1e293b;
border-bottom: 2px solid #e2e8f0;
}
.obligations-table tbody tr {
transition: background-color 0.2s ease;
}
.obligations-table tbody tr:hover {
background: #f8fafc;
}
.obligations-table td {
padding: 14px 16px;
font-size: 14px;
color: #475569;
border-bottom: 1px solid #e2e8f0;
}
.obligation-status {
display: inline-block;
padding: 4px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
}
.obligation-status.pending {
background: #fef3c7;
color: #d97706;
}
.obligation-status.submitted {
background: #dcfce7;
color: #16a34a;
}
.obligation-status.overdue {
background: #fee2e2;
color: #dc2626;
}
.obligations-empty-state {
text-align: center;
padding: 60px 20px;
color: #64748b;
}
.obligations-empty-state i {
font-size: 64px;
opacity: 0.3;
margin-bottom: 16px;
}
.obligations-empty-state h3 {
margin: 16px 0 8px;
font-size: 18px;
font-weight: 600;
color: #1e293b;
}
.obligations-empty-state p {
margin: 0;
font-size: 14px;
}
.obligations-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
gap: 16px;
}
.obligations-loading-spinner {
width: 50px;
height: 50px;
border: 4px solid #e2e8f0;
border-top-color: #10b981;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.obligations-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.obligation-stat-card {
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
gap: 16px;
}
.obligation-stat-icon {
width: 48px;
height: 48px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.obligation-stat-icon.total {
background: #dbeafe;
color: #2563eb;
}
.obligation-stat-icon.pending {
background: #fef3c7;
color: #d97706;
}
.obligation-stat-icon.submitted {
background: #dcfce7;
color: #16a34a;
}
.obligation-stat-icon.overdue {
background: #fee2e2;
color: #dc2626;
}
.obligation-stat-content h4 {
margin: 0 0 4px;
font-size: 13px;
color: #64748b;
font-weight: 600;
}
.obligation-stat-content .value {
margin: 0;
font-size: 24px;
font-weight: 700;
color: #1e293b;
}
@media (max-width: 900px) {
.obligations-modal-content {
width: 95vw;
height: 92vh;
}
.obligations-toolbar {
flex-direction: column;
align-items: stretch;
}
.obligations-toolbar-group {
min-width: 100%;
}
.btn-load-obligations {
align-self: stretch;
}
}
@media (max-width: 600px) {
.obligations-modal-content {
width: 98vw;
height: 95vh;
}
.obligations-modal-header {
padding: 16px 20px;
}
.obligations-modal-title {
font-size: 20px;
}
.obligations-modal-body {
padding: 16px;
}
.obligations-stats {
grid-template-columns: 1fr;
}
}
body.dark-mode .obligations-modal-content {
background: #1e293b;
}
body.dark-mode .obligations-toolbar,
body.dark-mode .obligations-table-wrapper,
body.dark-mode .obligation-stat-card {
background: #334155;
}
body.dark-mode .obligations-modal-body {
background: #0f172a;
}
body.dark-mode .obligations-table th {
background: #475569;
color: #f1f5f9;
}
body.dark-mode .obligations-table td {
color: #cbd5e0;
border-color: #475569;
}
body.dark-mode .obligations-toolbar-input {
background: #1e293b;
border-color: #475569;
color: #f1f5f9;
}
.interactions-modal {
position: absolute;
inset: 0;
display: none;
z-index: 10001;
}
.interactions-modal.show { display: block; }
.interactions-backdrop {
position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.interactions-content {
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
width: min(720px, 92vw);
background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
overflow: hidden;
}
.interactions-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #0ea5e9; color: #fff; }
.interactions-form { padding: 16px 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.form-group label { font-size: 13px; color: #475569; font-weight: 600; }
.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea { padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.btn-cancel-interactions { background: #e2e8f0; border: 1px solid #cbd5e1; padding: 10px 16px; border-radius: 8px; cursor: pointer; }
.btn-save-interactions { background: #0ea5e9; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; display:flex; align-items:center; gap:8px; }
.btn-save-interactions:hover { filter: brightness(1.05); }
.btn-close-interactions { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35); color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.form-status { margin-top: 10px; }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.alert.info { background: #eff6ff; color: #1d4ed8; }
.alert.success { background: #ecfdf5; color: #065f46; }
.alert.error { background: #fef2f2; color: #b91c1c; }
@media (max-width: 600px) {
.form-grid { grid-template-columns: 1fr; }
}

/* === client-modal.css === */
.basic-subtabs-section {
margin-top: 32px;
}
.basic-subtabs-nav {
display: flex;
gap: 12px;
margin-bottom: 18px;
}
.basic-subtab-btn {
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
color: #fff;
border: none;
border-radius: 10px 10px 0 0;
padding: 10px 22px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s, color 0.2s;
outline: none;
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
opacity: 0.85;
}
.basic-subtab-btn:not(.active) {
background: #ede9fe;
color: #5b21b6;
opacity: 0.7;
}
.basic-subtab-btn.active {
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
color: #fff;
opacity: 1;
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}
.basic-subtab-panel {
display: none;
background: #f8fafc;
border-radius: 0 0 12px 12px;
padding: 24px 18px 18px 18px;
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
}
.basic-subtab-panel.active {
display: block;
}
.client-actions-section.left {
margin-left: auto;
margin-right: 0 !important;
order: -1;
}
.tasks-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { padding: 10px 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; }
.tasks-block { display: flex; flex-direction: column; gap: 12px; }
.tasks-controls { display: flex; justify-content: flex-start; }
.tasks-controls .task-add-btn { padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tasks-controls .task-add-btn i { font-size: 14px; }
.task-add-form { padding: 12px; border: 1px dashed #cbd5e1; background: #f8fafc; border-radius: 10px; }
.task-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-form-grid .field { display: flex; flex-direction: column; gap: 6px; }
.task-form-grid .field.full { grid-column: 1 / -1; }
.task-form-grid label { font-size: 12px; color: #374151; }
.task-form-grid input, .task-form-grid textarea, .task-form-grid select { font: inherit; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: var(--radius-md); background: #fff; color: #111827; }
.task-form-grid select.admin-users-select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: left 10px center;
padding-left: 30px;
}
.task-form-grid select.admin-users-select:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.task-form-actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 6px; }
.task-form-actions .btn { padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid #e5e7eb; background: #fff; color: #111827; cursor: pointer; }
.empty-tasks { color: #6b7280; font-size: 13px; background: #f3f4f6; border: 1px dashed #e5e7eb; border-radius: 10px; padding: 10px; text-align: center; }
.task-row-1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.task-name { font-weight: 700; }
.task-type.tag { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.task-row-2 { display: flex; flex-wrap: wrap; gap: 10px; color: #475569; font-size: 13px; }
.task-row-2 .task-meta i { margin-inline-end: 6px; color: #64748b; }
.task-note { margin-top: 6px; font-size: 12px; color: #6b7280; }
.client-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
align-items: stretch;
justify-content: center;
z-index: 9999;
padding: 0;
}
#clientInspectModal {
position: fixed;
inset: 0;
z-index: 2147483647 !important;
}
#clientInspectModal .client-modal-content {
z-index: 2147483647 !important;
}
#clientInspectModal .client-modal-backdrop {
z-index: 0;
}
#clientInspectModal .client-modal-content * {
pointer-events: auto;
}
.client-modal.show { display: flex; }
.client-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
z-index: 0;
}
.client-modal-content {
position: absolute;
width: 94vw;
height: 90vh;
max-width: 1500px;
max-height: 94vh;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #ffffff;
color: #111827;
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 20px;
box-shadow: 0 25px 70px rgba(15, 23, 42, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
overflow: hidden;
transition: box-shadow 0.3s ease, transform 0.2s ease;
z-index: 1;
}
.client-modal-content:hover {
box-shadow: 0 30px 85px rgba(15, 23, 42, 0.35), 0 12px 35px rgba(0, 0, 0, 0.18);
}
.inspection-stages {
display: flex;
flex-direction: column;
gap: 18px;
margin: 24px 0 16px;
}
.inspection-stage {
background: #ffffff;
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: 16px;
padding: 18px 20px;
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.inspection-stage .stage-header {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 14px;
}
.inspection-stage .stage-index {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 18px;
box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}
.inspection-stage .stage-meta {
display: flex;
flex-direction: column;
gap: 4px;
}
.inspection-stage .stage-title {
font-weight: 700;
font-size: 16px;
color: #1e293b;
}
.inspection-stage .stage-subtitle {
font-size: 12px;
color: #64748b;
}
.inspection-stage .stage-fields {
display: flex;
gap: 16px;
align-items: flex-end;
flex-wrap: wrap;
}
.inspection-stage .stage-fields .form-group {
flex: 1 1 180px;
min-width: 160px;
}
.inspection-stage .stage-fields input,
.inspection-stage .stage-fields select {
height: 44px;
}
.client-modal-header {
display: flex;
flex-direction: column;
gap: 20px;
padding: 24px 28px 18px;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
color: #ffffff;
cursor: grab;
user-select: none;
border-bottom: 2px solid rgba(59, 130, 246, 0.2);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.client-modal-header:active {
cursor: grabbing;
}
.client-header-redesigned {
display: flex;
align-items: center;
gap: 20px;
pointer-events: none;
}
.client-header-redesigned > * {
pointer-events: auto;
}
.client-header-redesigned .client-avatar {
width: 64px;
height: 64px;
border-radius: 16px;
background: rgba(15, 23, 42, 0.65);
border: 1px solid rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
flex-shrink: 0;
}
.client-header-redesigned .client-avatar::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(148,163,184,0.05) 100%);
opacity: 0.75;
}
.client-header-redesigned .client-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
position: relative;
z-index: 1;
}
.client-header-redesigned .client-avatar img[hidden] {
display: none;
}
.client-header-redesigned .client-avatar-initials {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 22px;
color: #f8fafc;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.client-name-section {
flex: 0 0 auto;
min-width: 180px;
display: flex;
flex-direction: column;
gap: 6px;
}
.client-name-section .client-modal-title {
margin: 0;
font-size: clamp(20px, 2vw, 28px);
font-weight: 700;
color: #ffffff;
line-height: 1.2;
}
.client-file-number {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: rgba(226, 232, 240, 0.85);
font-weight: 500;
position: relative;
}
.client-file-number i {
color: #93c5fd;
font-size: 14px;
}
.client-file-number strong {
color: #dbeafe;
font-weight: 700;
font-size: 14px;
}
.client-file-number .file-number-display {
transition: all 0.3s ease;
}
.client-file-number .file-number-input {
padding: 4px 8px;
background: rgba(30, 41, 59, 0.8);
border: 1px solid rgba(148, 163, 184, 0.3);
border-radius: 6px;
color: #dbeafe;
font-size: 14px;
font-weight: 700;
min-width: 100px;
transition: all 0.3s ease;
outline: none;
}
.client-file-number .file-number-input:focus {
border-color: #667eea;
background: rgba(30, 41, 59, 0.95);
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.edit-file-number-btn,
.save-file-number-btn,
.cancel-file-number-btn {
padding: 4px 8px;
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 6px;
color: #93c5fd;
cursor: pointer;
transition: all 0.3s ease;
font-size: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
}
.edit-file-number-btn:hover {
background: rgba(102, 126, 234, 0.2);
border-color: #667eea;
color: #667eea;
}
.save-file-number-btn {
background: rgba(34, 197, 94, 0.2);
border-color: rgba(34, 197, 94, 0.3);
color: #4ade80;
}
.save-file-number-btn:hover {
background: rgba(34, 197, 94, 0.3);
border-color: #22c55e;
color: #22c55e;
}
.cancel-file-number-btn {
background: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.3);
color: #f87171;
}
.cancel-file-number-btn:hover {
background: rgba(239, 68, 68, 0.3);
border-color: #ef4444;
color: #ef4444;
}
.client-completion-section {
display: flex;
align-items: center;
gap: 16px;
padding: 10px 18px;
background: rgba(15, 23, 42, 0.4);
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.12);
flex: 0 0 auto;
}
.client-completion-section .client-completion-big {
font-size: clamp(32px, 4vw, 48px);
font-weight: 800;
color: #f8fafc;
line-height: 1;
letter-spacing: 0.5px;
text-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
min-width: 85px;
text-align: center;
}
.client-completion-section .client-completion-indicator {
display: flex;
align-items: center;
gap: 10px;
}
.client-completion-section .client-completion-indicator .progress-ring {
position: relative;
width: 42px;
height: 42px;
border-radius: 50%;
background: conic-gradient(#22c55e 0deg, rgba(148, 163, 184, 0.4) 0deg);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.client-completion-section .client-completion-indicator .progress-ring::after {
content: '';
position: absolute;
inset: 6px;
background: rgba(17, 24, 39, 0.9);
border-radius: 50%;
z-index: 0;
}
.client-completion-section .client-completion-indicator .progress-ring-value {
position: relative;
z-index: 1;
font-size: 11px;
font-weight: 700;
color: #f8fafc;
}
.client-completion-section .client-completion-indicator .progress-info {
display: flex;
flex-direction: column;
gap: 2px;
}
.client-completion-section .client-completion-indicator .progress-label {
font-size: 12px;
font-weight: 600;
color: rgba(226, 232, 240, 0.9);
}
.client-completion-section .client-completion-indicator .progress-details {
font-size: 11px;
color: rgba(148, 163, 184, 0.85);
}
.client-contributors-section {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px 16px;
background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(79, 70, 229, 0.1) 100%);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.12);
flex: 1 1 auto;
min-width: 0;
}
.client-contributors-section .contributors-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: #f8fafc;
}
.client-contributors-section .contributors-label i {
color: #fbbf24;
font-size: 14px;
}
.client-contributors-section .contributors-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.client-contributors-section .contributor-chip {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px 6px 6px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.95);
border: 1px solid rgba(148, 163, 184, 0.2);
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
transition: all 0.2s ease;
cursor: pointer;
}
.client-contributors-section .contributor-chip:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
background: rgba(255, 255, 255, 1);
}
.client-contributors-section .contributor-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.client-contributors-section .contributor-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.client-contributors-section .contributor-initials {
color: #ffffff;
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
}
.client-contributors-section .contributor-info {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1 1 auto;
min-width: 0;
}
.client-contributors-section .contributor-name {
font-size: 12px;
font-weight: 600;
color: #1f2937;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.client-contributors-section .contributor-percent {
font-size: 11px;
font-weight: 700;
color: #6366f1;
}
.client-contributors-section .contributor-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
color: #ffffff;
font-size: 11px;
font-weight: 700;
box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}
.client-contributors-section .contributors-empty {
display: none;
font-size: 11px;
color: rgba(226, 232, 240, 0.6);
text-align: center;
}
.client-contributors-section.is-empty .contributors-empty {
display: block;
}
.client-contributors-section.is-empty .contributors-list {
display: none;
}
.client-actions-section {
display: flex;
align-items: center;
gap: 10px;
flex: 0 0 auto;
margin-right: auto;
}
.client-actions-section .client-header-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
border-radius: 10px;
border: 1px solid transparent;
background: rgba(255, 255, 255, 0.1);
color: #f8fafc;
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.client-actions-section .client-header-btn.btn-primary {
background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
border-color: rgba(255, 255, 255, 0.15);
}
.client-actions-section .client-header-btn.btn-secondary {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.12);
}
.client-actions-section .client-header-btn:hover:not([disabled]) {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.18);
}
.client-actions-section .client-header-btn.btn-primary:hover:not([disabled]) {
background: linear-gradient(135deg, #1d4ed8 0%, #3730a3 100%);
}
.client-actions-section .client-header-btn[disabled] {
opacity: 0.5;
cursor: not-allowed;
filter: grayscale(0.3);
}
.client-actions-section .client-header-btn i {
font-size: 13px;
}
.client-actions-section .client-modal-btn.close {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(248, 113, 113, 0.3);
color: #fecaca;
padding: 10px;
border-radius: 10px;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
}
.client-actions-section .client-modal-btn.close:hover {
background: rgba(248, 113, 113, 0.25);
color: #fee2e2;
transform: translateY(-2px);
}
.client-actions-section .client-modal-btn.close i {
font-size: 16px;
}
@media (max-width: 1200px) {
.client-header-redesigned {
gap: 14px;
}
.client-completion-section {
padding: 8px 14px;
gap: 12px;
}
.client-completion-section .client-completion-big {
font-size: clamp(28px, 3.5vw, 40px);
min-width: 70px;
}
}
@media (max-width: 900px) {
.client-header-redesigned {
flex-wrap: wrap;
gap: 12px;
}
.client-name-section {
flex: 1 1 auto;
min-width: 140px;
}
.client-completion-section {
order: 3;
flex: 1 1 100%;
}
.client-contributors-section {
order: 4;
flex: 1 1 100%;
}
.client-actions-section {
order: 5;
flex: 1 1 100%;
justify-content: flex-start;
margin-right: 0;
}
}
@media (max-width: 640px) {
.client-modal-header {
padding: 16px;
}
.client-header-redesigned {
gap: 10px;
}
.client-header-redesigned .client-avatar {
width: 52px;
height: 52px;
}
.client-name-section .client-modal-title {
font-size: 18px;
}
.client-completion-section .client-completion-big {
font-size: 28px;
}
.client-actions-section {
flex-wrap: wrap;
}
.client-actions-section .client-header-btn {
flex: 1 1 auto;
justify-content: center;
}
}
.client-modal-title {
margin: 0;
font-size: clamp(24px, 2.4vw, 34px);
font-weight: 800;
color: #ffffff;
line-height: 1.05;
}
.client-header-main {
display: grid;
grid-template-columns: minmax(0, 2.15fr) minmax(220px, 1.05fr) minmax(0, 1.5fr);
align-items: stretch;
gap: 20px;
pointer-events: none;
}
.client-header-main > * {
min-width: 0;
pointer-events: auto;
}
.client-header-left {
display: flex;
align-items: center;
gap: 18px;
min-width: 0;
}
.client-avatar {
width: 72px;
height: 72px;
border-radius: 18px;
background: rgba(15, 23, 42, 0.65);
border: 1px solid rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
flex-shrink: 0;
}
.client-avatar::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(148,163,184,0.05) 100%);
opacity: 0.75;
}
.client-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
position: relative;
z-index: 1;
}
.client-avatar img[hidden] {
display: none;
}
.client-avatar-initials {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 24px;
color: #f8fafc;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.client-name-stack {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
}
.client-name-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.client-file-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 999px;
background: rgba(59, 130, 246, 0.15);
border: 1px solid rgba(96, 165, 250, 0.35);
color: #dbeafe;
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.4px;
}
.client-file-badge i {
color: #93c5fd;
font-size: 14px;
}
.client-file-badge strong {
color: #ffffff;
font-weight: 700;
}
.client-meta-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
min-width: 0;
}
.client-meta-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 12px;
background: rgba(15, 23, 42, 0.35);
border: 1px solid rgba(148, 163, 184, 0.2);
font-size: 12px;
color: rgba(226, 232, 240, 0.9);
line-height: 1.4;
}
.client-meta-chip i {
font-size: 13px;
color: rgba(148, 163, 184, 0.9);
}
.client-meta-chip .label {
color: rgba(203, 213, 225, 0.85);
}
.client-meta-chip strong {
font-size: 12px;
color: #f8fafc;
font-weight: 700;
}
.client-meta-item {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
background: rgba(15, 23, 42, 0.35);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
line-height: 1.4;
}
.client-meta-item i {
color: rgba(148, 163, 184, 0.9);
}
.client-meta-item strong {
color: #f8fafc;
font-weight: 700;
font-size: 13px;
}
.client-header-center {
display: flex;
align-items: center;
justify-content: center;
gap: 18px;
background: rgba(15, 23, 42, 0.35);
border-radius: 18px;
padding: 14px 18px;
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.client-header-center .client-completion-indicator {
flex: 0 0 auto;
}
.client-header-center .completion-texts {
align-items: flex-start;
}
.client-completion-text {
font-size: 12px;
color: rgba(226, 232, 240, 0.85);
}
.client-completion-big {
font-size: clamp(28px, 5vw, 60px);
font-weight: 800;
color: #f8fafc;
line-height: 1;
letter-spacing: 0.6px;
text-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}
.completion-texts {
display: flex;
flex-direction: column;
gap: 4px;
align-items: flex-start;
min-width: 120px;
}
.client-header-right {
display: flex;
flex-direction: column;
gap: 14px;
min-width: 0;
}
.client-header-topline {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.client-custody-status {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
background: rgba(148, 163, 184, 0.22);
color: #e2e8f0;
border: 1px solid rgba(148, 163, 184, 0.35);
transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.client-custody-status i {
font-size: 13px;
}
.client-custody-status.is-available {
background: rgba(148, 163, 184, 0.22);
color: #e2e8f0;
border-color: rgba(148, 163, 184, 0.4);
}
.client-custody-status.is-owned {
background: rgba(245, 158, 11, 0.22);
color: #fde68a;
border-color: rgba(245, 158, 11, 0.45);
}
.client-custody-status.is-mine {
background: rgba(34, 197, 94, 0.22);
color: #bbf7d0;
border-color: rgba(34, 197, 94, 0.45);
}
.client-header-topline .client-modal-btn.close {
position: relative;
inset: auto;
background: rgba(239, 68, 68, 0.12);
border: 1px solid rgba(248, 113, 113, 0.3);
color: #fecaca;
padding: 6px;
border-radius: 10px;
transition: all 0.25s ease;
}
.client-header-topline .client-modal-btn.close:hover {
background: rgba(248, 113, 113, 0.22);
color: #fee2e2;
}
.client-top-contributors {
display: flex;
flex-direction: column;
gap: 10px;
background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(79, 70, 229, 0.1) 100%);
padding: 14px 16px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}
.client-top-contributors .contributors-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 600;
color: #f8fafc;
letter-spacing: 0.2px;
}
.client-top-contributors .contributors-label i {
color: #fbbf24;
filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.35));
}
.client-top-contributors .contributors-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.client-top-contributors .contributor-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
color: #0f172a;
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(148, 163, 184, 0.25);
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.client-top-contributors .contributor-chip i {
color: #6366f1;
}
.client-top-contributors .contributors-empty {
display: none;
font-size: 12px;
color: rgba(226, 232, 240, 0.75);
}
.client-top-contributors.is-empty .contributors-empty {
display: block;
}
.client-header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
flex-wrap: wrap;
}
.client-header-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
border-radius: 10px;
border: 1px solid transparent;
background: rgba(255, 255, 255, 0.1);
color: #f8fafc;
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.client-header-btn.btn-primary {
background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
border-color: rgba(255, 255, 255, 0.15);
}
.client-header-btn.btn-secondary {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.12);
}
.client-header-btn:hover:not([disabled]) {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.18);
}
.client-header-btn.btn-primary:hover:not([disabled]) {
background: linear-gradient(135deg, #1d4ed8 0%, #3730a3 100%);
}
.client-header-btn[disabled] {
opacity: 0.6;
cursor: not-allowed;
filter: grayscale(0.2);
}
.client-modal-header button {
pointer-events: auto;
}
.client-modal-header button i {
font-size: 14px;
}
.client-header-tabs {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.client-subtab-row {
background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
border-bottom: 1px solid #e2e8f0;
}
.client-subtab-row:has(.client-modal-tabs:empty) {
display: none;
}
.client-modal-tabs {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 12px;
justify-content: flex-start;
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
direction: rtl;
width: auto;
min-width: max-content;
}
.client-modal-tabs::-webkit-scrollbar {
height: 4px;
}
.client-modal-tabs::-webkit-scrollbar-track {
background: transparent;
}
.client-modal-tabs::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 2px;
}
.client-modal-tabs::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.client-modal-tabs:empty {
display: none;
}
@media (max-width: 1400px) {
.client-header-main {
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
grid-template-rows: auto auto;
align-items: start;
}
.client-header-right {
grid-column: 1 / -1;
grid-row: 2 / 3;
flex-direction: row;
align-items: stretch;
}
.client-top-contributors {
flex: 1;
}
.client-header-actions {
flex: 0 0 auto;
justify-content: flex-start;
align-items: flex-start;
}
}
@media (max-width: 1080px) {
.client-header-main {
grid-template-columns: 1fr;
grid-template-rows: auto auto auto auto;
}
.client-header-progress {
justify-content: flex-start;
}
.client-header-right {
flex-direction: column;
}
.client-header-actions {
justify-content: flex-start;
}
}
@media (max-width: 640px) {
.client-modal-header {
padding: 16px 16px 12px;
}
.client-header-main {
gap: 16px;
}
.client-avatar {
width: 56px;
height: 56px;
}
.client-header-center {
flex-direction: column;
align-items: flex-start;
gap: 12px;
padding: 12px;
}
.client-header-progress {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.completion-texts {
align-items: flex-start;
}
.client-header-topline {
flex-direction: column;
align-items: stretch;
gap: 10px;
}
.client-custody-status {
justify-content: center;
}
.client-header-topline .client-modal-btn.close {
align-self: flex-end;
}
.client-top-contributors {
padding: 12px;
}
.client-header-actions {
gap: 8px;
}
.client-header-btn {
width: 100%;
justify-content: center;
}
}
.client-completion-indicator {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: rgba(15, 23, 42, 0.35);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
transition: transform 0.3s ease, background 0.3s ease;
min-width: 180px;
}
.client-completion-indicator .progress-ring {
position: relative;
width: 54px;
height: 54px;
border-radius: 50%;
background: conic-gradient(#22c55e 0deg, rgba(148, 163, 184, 0.4) 0deg);
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
overflow: hidden;
}
.client-completion-indicator .progress-ring::after {
content: '';
position: absolute;
inset: 7px;
background: rgba(17, 24, 39, 0.9);
border-radius: 50%;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
z-index: 0;
}
.client-completion-indicator .progress-ring-value {
position: relative;
z-index: 1;
font-size: 13px;
font-weight: 700;
color: #f8fafc;
}
.client-completion-indicator .progress-info {
display: flex;
flex-direction: column;
gap: 2px;
line-height: 1.3;
}
.client-completion-indicator .progress-label {
font-size: 12px;
color: rgba(226, 232, 240, 0.85);
}
.client-completion-indicator .progress-details {
font-size: 11px;
color: rgba(148, 163, 184, 0.95);
}
.client-completion-indicator.is-loading .progress-ring-value {
font-style: italic;
color: rgba(248, 250, 252, 0.75);
}
.client-completion-indicator.is-loading .progress-details {
color: rgba(148, 163, 184, 0.7);
}
.client-completion-indicator.is-empty .progress-ring-value {
color: rgba(248, 250, 252, 0.75);
}
.client-modal.show .client-completion-indicator:hover {
transform: translateY(-2px);
background: rgba(15, 23, 42, 0.45);
}
.acf-field .field-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acf-field .field-label { font-weight: 600; color: var(--text-primary, #1f2937); display: inline-flex; align-items: center; gap: 8px; }
.acf-field .field-label > i { color: var(--text-secondary, #6b7280); font-size: 0.95em; }
.acf-field .badge-readonly { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; padding: 2px 6px; border-radius: 6px; font-size: 11px; }
.client-completion-indicator {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 6px 10px;
background: rgba(15, 23, 42, 0.35);
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
transition: transform 0.3s ease, background 0.3s ease;
min-width: 150px;
}
.client-completion-indicator .progress-ring {
position: relative;
width: 46px;
height: 46px;
border-radius: 50%;
background: conic-gradient(#22c55e 0deg, rgba(148, 163, 184, 0.4) 0deg);
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
overflow: hidden;
}
.client-completion-indicator.compact {
gap: 8px;
padding: 4px 8px;
background: transparent;
border: none;
box-shadow: none;
}
.client-completion-indicator.compact .progress-ring { width: 38px; height: 38px; }
.client-completion-indicator.compact .progress-ring::after { inset: 6px; }
.client-completion-indicator.compact .progress-label { display: none; }
.client-completion-indicator.compact .progress-details { display: none; }
.client-modal-btn {
background: transparent;
border: none;
color: #e5e7eb;
padding: 6px;
border-radius: 6px;
cursor: pointer;
}
.client-modal-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.client-modal-btn.close { color: #fca5a5; }
.client-modal-btn.close:hover { background: rgba(252,165,165,0.15); color: #fecaca; }
.client-modal-body {
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
padding: 0;
background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
display: flex;
flex-direction: column;
}
.appeals-table-wrapper {
width: 100%;
overflow-x: auto;
margin-top: 8px;
}
.appeals-table {
width: 100%;
border-collapse: collapse;
background: #fff;
border: 1px solid #e5e7eb;
}
.appeals-table th,
.appeals-table td {
padding: 8px 10px;
border-bottom: 1px solid #f1f5f9;
text-align: right;
font-size: 13px;
}
.appeals-table thead th {
background: #f8fafc;
color: #334155;
font-weight: 600;
}
.appeals-table tbody tr:nth-child(even) {
background: #fafafa;
}
.empty-appeals {
color: #6b7280;
}
.client-modal-action {
background: #e5e7eb;
color: #111827;
border: 1px solid #d1d5db;
padding: 6px 10px;
border-radius: 6px;
cursor: pointer;
}
.client-modal-action.btn-primary { background: #2563eb; border-color: #1d4ed8; color: #fff; }
.client-modal-action.btn-primary:hover { background: #1d4ed8; }
.client-modal-action.btn-danger { background: #dc2626; border-color: #b91c1c; color: #fff; }
.client-modal-action.btn-danger:hover { background: #b91c1c; }
.client-modal-action.btn-chat {
background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
border-color: #128C7E;
color: #fff;
font-weight: 600;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.client-modal-action.btn-chat::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.client-modal-action.btn-chat:hover {
background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
box-shadow: 0 4px 12px rgba(18, 140, 126, 0.4);
transform: translateY(-2px);
}
.client-modal-action.btn-chat:hover::before {
width: 300px;
height: 300px;
}
.client-modal-action.btn-chat:active {
transform: translateY(0);
}
.client-modal-action.btn-chat i {
margin-left: 6px;
font-size: 16px;
}
.ai-chat-input-wrapper {
position: relative;
display: flex;
align-items: center;
flex: 1;
max-width: 400px;
background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(220, 252, 231, 0.9) 100%);
border: 0;
border-radius: 24px;
padding: 0 16px;
margin-right: 12px;
transition: all 0.3s ease;
box-shadow: 0 6px 18px rgba(16, 185, 129, 0.18);
backdrop-filter: blur(6px);
}
.ai-chat-input-wrapper:hover {
box-shadow: 0 8px 22px rgba(16, 185, 129, 0.25);
}
.ai-chat-input-wrapper:focus-within {
background: linear-gradient(135deg, #ffffff 0%, rgba(240, 253, 244, 0.95) 100%);
box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), 0 10px 24px rgba(16, 185, 129, 0.25);
transform: translateY(-1px);
}
.ai-chat-icon {
color: #16a34a;
font-size: 18px;
margin-left: 8px;
transition: all 0.3s ease;
animation: pulse-icon 2s ease-in-out infinite;
}
@keyframes pulse-icon {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.8; }
}
.ai-chat-input-wrapper:focus-within .ai-chat-icon {
color: #15803d;
animation: none;
transform: scale(1.15);
}
.ai-chat-quick-input {
flex: 1;
border: none;
background: transparent;
padding: 10px 8px;
font-size: 14px;
color: #1f2937;
outline: none;
font-family: inherit;
}
.ai-chat-quick-input::placeholder {
color: #16a34a;
opacity: 0.6;
font-style: italic;
}
.ai-chat-quick-input:focus::placeholder {
opacity: 0.4;
}
.ai-chat-send-icon {
color: #16a34a;
font-size: 16px;
margin-right: 4px;
cursor: pointer;
transition: all 0.2s ease;
padding: 6px;
border-radius: 50%;
}
.ai-chat-send-icon:hover {
color: #15803d;
background: rgba(22, 163, 74, 0.1);
transform: scale(1.15);
}
.ai-chat-send-icon:active {
transform: scale(0.95);
}
.ai-chat-input-wrapper.has-text {
border-color: #22c55e;
background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.ai-chat-input-wrapper.has-text .ai-chat-send-icon {
color: #15803d;
background: rgba(22, 163, 74, 0.15);
}
.client-modal-content.maximized {
position: fixed;
inset: 0;
width: 100vw;
height: 100dvh;
max-width: 100vw;
max-height: 100dvh;
top: 0;
left: 0;
transform: none;
border-radius: 0;
border: 0;
box-shadow: none;
}
.client-modal-content.minimized {
width: 340px;
height: auto;
top: auto;
left: auto;
right: 16px;
bottom: 16px;
transform: none;
border-radius: 12px;
}
.client-modal-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 24px;
color: #6b7280;
}
.client-modal-loading .spinner {
width: 18px;
height: 18px;
border: 3px solid #e5e7eb;
border-top-color: #2563eb;
border-radius: 50%;
animation: clientModalSpin 1s linear infinite;
}
@keyframes clientModalSpin { to { transform: rotate(360deg); } }
.doc-thumb { position: relative; overflow: hidden; }
.doc-thumb.is-pdf .pdf-placeholder {
display: flex; align-items: center; justify-content: center; gap: 6px;
width: 100%; height: 100%; color: #9ca3af; background: #f3f4f6;
font-size: 12px; border-radius: var(--radius-md);
}
.doc-thumb.is-pdf .pdf-placeholder i { color: #ef4444; }
.doc-thumb .pdf-badge {
position: absolute; top: 6px; left: 6px;
background: rgba(239, 68, 68, 0.92); color: #fff;
padding: 2px 6px; font-size: 11px; border-radius: 6px;
box-shadow: 0 1px 2px rgba(0,0,0,0.15); letter-spacing: .3px;
}
.doc-thumb .pdf-shimmer::after {
content: ""; position: absolute; inset: 0; border-radius: var(--radius-md);
background: linear-gradient(100deg, rgba(255,255,255,0.0) 20%, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0.0) 60%);
transform: translateX(-100%);
animation: pdfShimmer 1.2s ease-in-out infinite;
}
@keyframes pdfShimmer { to { transform: translateX(100%); } }
.doc-card.is-expired {
border: 1px solid #fecaca; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(239,68,68,.08);
}
.doc-card.is-expired .doc-thumb { filter: grayscale(.25) brightness(.92); }
.doc-expired-note {
display: flex; align-items: center; gap: 6px;
margin-top: 6px; padding: 6px 8px; font-size: 12px; color: #991b1b;
background: #fff1f2; border: 1px solid #fecaca; border-radius: var(--radius-md);
}
.doc-expired-note i { color: #ef4444; }
html.dark .doc-card.is-expired { border-color: rgba(239,68,68,0.45); box-shadow: inset 0 0 0 2px rgba(239,68,68,.12); }
html.dark .doc-card.is-expired .doc-thumb { filter: grayscale(.3) brightness(.85); }
html.dark .doc-expired-note { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.35); color: #fecaca; }
.client-name-with-actions {
display: inline-flex;
align-items: center;
gap: 10px;
}
.client-name-core {
display: inline-flex;
align-items: center;
gap: 6px;
}
.client-modal-tabs .acf-tab-nav--header {
display: flex;
align-items: center;
gap: 4px;
padding: 0;
background: transparent;
flex-wrap: nowrap;
direction: rtl;
width: auto;
min-width: max-content;
}
.client-modal-tabs .acf-tab-nav--header .acf-tab-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 10px;
border-radius: 20px;
border: 1px solid #cbd5e1;
background: #e2e8f0;
color: #0f172a;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
white-space: nowrap;
text-align: center;
line-height: 1.3;
flex: 0 0 auto;
min-width: auto;
}
.client-modal-tabs .acf-tab-nav--header .acf-tab-btn i {
font-size: 12px;
color: #1e40af;
}
.client-modal-tabs .acf-tab-nav--header .acf-tab-btn:hover {
background: #dbeafe;
border-color: #93c5fd;
color: #1e3a8a;
transform: translateY(-1px) scale(1.02);
}
.client-modal-tabs .acf-tab-nav--header .acf-tab-btn:hover i {
color: #1e3a8a;
}
.client-modal-tabs .acf-tab-nav--header .acf-tab-btn.active {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
border-color: #1d4ed8;
color: #ffffff;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.client-modal-tabs .acf-tab-nav--header .acf-tab-btn.active i {
color: #ffffff;
}
.client-subtabs {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.client-subtab-btn {
flex: 0 0 auto;
min-width: auto;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.12);
color: rgba(226, 232, 240, 0.92);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.client-subtab-btn i { font-size: 13px; }
.client-subtab-btn:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; transform: translateY(-1px); }
.client-subtab-btn.is-active { background: #f8fafc; color: #0f172a; border-color: transparent; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32); }
body.dark-mode .client-subtab-btn {
border-color: rgba(148, 163, 184, 0.25);
background: rgba(148, 163, 184, 0.12);
color: rgba(226, 232, 240, 0.92);
}
body.dark-mode .client-subtab-btn:hover { background: rgba(148, 163, 184, 0.22); color: #ffffff; }
body.dark-mode .client-subtab-btn.is-active { background: #e2e8f0; color: #0f172a; }
body.dark-mode .client-subtab-row {
background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 100%);
border-bottom-color: rgba(148, 163, 184, 0.25);
}
body.dark-mode .client-modal-tabs {
scrollbar-width: thin;
}
body.dark-mode .client-modal-tabs::-webkit-scrollbar-track {
background: rgba(30, 41, 59, 0.85);
}
body.dark-mode .client-modal-tabs::-webkit-scrollbar-thumb {
background: rgba(148, 163, 184, 0.4);
}
body.dark-mode .client-modal-tabs .acf-tab-nav--header .acf-tab-btn {
border-color: rgba(148, 163, 184, 0.35);
background: rgba(30, 41, 59, 0.85);
color: rgba(226, 232, 240, 0.92);
}
body.dark-mode .client-modal-tabs .acf-tab-nav--header .acf-tab-btn i {
color: rgba(129, 161, 255, 0.9);
}
body.dark-mode .client-modal_tabs .acf-tab-nav--header .acf-tab-btn:hover {
background: rgba(37, 99, 235, 0.25);
border-color: rgba(37, 99, 235, 0.45);
color: #dbeafe;
}
body.dark-mode .client-modal_tabs .acf-tab-nav--header .acf-tab-btn:hover i {
color: #dbeafe;
}
body.dark-mode .client-modal_tabs .acf-tab-nav--header .acf-tab-btn.active {
background: #2563eb;
border-color: #1d4ed8;
color: #ffffff;
box-shadow: 0 12px 22px rgba(15, 23, 42, 0.55);
}
body.dark-mode .client-modal_tabs .acf-tab-nav--header .acf-tab-btn.active i {
color: #ffffff;
}
body.dark-mode .client-modal-footer { background: var(--dm-bg-elev-2); border-top-color: var(--dm-border); }
body.dark-mode .client-modal-action { background: var(--dm-bg-elev-3); color: var(--dm-text); border-color: var(--dm-border); }
body.dark-mode .client-modal-action.btn-primary { background: #1d4ed8; border-color: #1e40af; }
body.dark-mode .client-modal-action.btn-danger { background: #b91c1c; border-color: #991b1b; }
body.dark-mode .client-modal-action.btn-chat {
background: linear-gradient(135deg, #0a5c52 0%, #053f3a 100%);
border-color: #0a5c52;
}
body.dark-mode .client-modal-action.btn-chat:hover {
background: linear-gradient(135deg, #053f3a 0%, #0a5c52 100%);
box-shadow: 0 4px 12px rgba(10, 92, 82, 0.5);
}
body.dark-mode .client-modal-body { background: var(--dm-bg-elev-2); }
body.dark-mode .client-completion-indicator {
background: rgba(15, 23, 42, 0.7);
border-color: rgba(148, 163, 184, 0.25);
box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}
body.dark-mode .client-completion-indicator .progress-ring::after {
background: rgba(17, 24, 39, 0.85);
}
body.dark-mode .client-completion-indicator .progress-details {
color: rgba(186, 199, 216, 0.85);
}
@media (max-width: 900px) {
.client-modal-content {
width: 95%;
height: 82vh;
}
.client-modal-heading { grid-template-columns: 1fr; grid-template-areas: 'title' 'right'; }
.client-modal-heading .header-right-wrap { align-items: flex-start; }
.client-modal-tabs {
padding: 8px 12px;
}
.client-modal_tabs .acf-tab-nav--header {
justify-content: flex-start;
gap: 6px;
}
}
@media (max-width: 600px) {
.client-modal-content {
width: 98%;
height: 85vh;
}
.client-modal_tabs .acf-tab-nav--header {
flex-wrap: wrap;
gap: 8px;
}
}
.docs-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.doc-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.doc-card.is-expired { border-color: #fca5a5; box-shadow: 0 0 0 2px rgba(252,165,165,0.25) inset; }
.doc-card .doc-badge-top { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; }
.doc-card { position: relative; overflow: hidden; }
.doc-thumb { display: block; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden; background: #f1f5f9; border: 1px solid #e2e8f0; position: relative; }
.doc-card.is-expired .doc-thumb { filter: grayscale(0.2) brightness(0.95); }
.doc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.doc-thumb.is-pdf { background: #f8fafc; }
.doc-thumb.is-pdf .pdf-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #334155; font-weight: 700; }
.doc-thumb.is-pdf .pdf-placeholder i { color: #ef4444; }
.doc-thumb.pdf-render-failed { background: #fef2f2; }
.doc-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 36px; }
.doc-card-body { display: flex; flex-direction: column; gap: 8px; }
.doc-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.doc-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0f172a; }
.doc-title i { color: #64748b; }
.doc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; color: #475569; font-size: 13px; }
.doc-expired-note { display: inline-flex; align-items: center; gap: 8px; color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; border-radius: var(--radius-md); padding: 4px 8px; font-size: 12px; width: fit-content; }
.doc-expired-note i { color: #ef4444; }
.doc-meta .doc-type, .doc-meta .doc-expiry, .doc-meta .doc-issue, .doc-meta .doc-file { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta i { color: #64748b; }
.doc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; border: 1px solid transparent; }
.doc-status-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.doc-status-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.doc-status-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.doc-status-neutral { background: #e5e7eb; color: #111827; border-color: #d1d5db; }
.doc-actions { display: flex; justify-content: flex-end; }
.doc-open-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-md); border: 1px solid #e5e7eb; color: #111827; background: #f8fafc; text-decoration: none; font-size: 12px; }
.doc-open-link:hover { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.docs-note { margin-top: 8px; font-size: 12px; color: #64748b; text-align: left; }
.docs-group { display: block; margin: 10px 0 16px; }
.docs-group-title { margin: 0 0 8px 0; font-size: 14px; font-weight: 800; color: #334155; display: inline-flex; align-items: center; gap: 8px; }
.doc-card.tax-card { border-color: #c7d2fe; box-shadow: 0 0 0 2px rgba(199,210,254,0.35) inset; }
.doc-card.tax-card .doc-title i { color: #3730a3; }
.doc-card.tax-card .doc-open-link:hover { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
@media (max-width: 1100px) { .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .docs-grid { grid-template-columns: 1fr; } }
body.dark-mode .doc-card { background: var(--dm-bg-elev-1, #0b1220); border-color: var(--dm-border, #273247); }
body.dark-mode .doc-title { color: var(--dm-text, #e2e8f0); }
body.dark-mode .doc-title i { color: #94a3b8; }
body.dark-mode .doc-meta { color: var(--dm-text-muted, #b6c2d4); }
body.dark-mode .doc-open-link { background: var(--dm-bg-elev-2, #0e1627); color: var(--dm-text, #e2e8f0); border-color: var(--dm-border, #273247); }
body.dark-mode .doc-open-link:hover { background: rgba(148,163,184,0.15); border-color: rgba(148,163,184,0.3); color: #fff; }
body.dark-mode .doc-card.tax-card { border-color: rgba(199,210,254,0.35); box-shadow: 0 0 0 2px rgba(199,210,254,0.15) inset; }
body.dark-mode .doc-card.tax-card .doc-title i { color: #c7d2fe; }
body.dark-mode .doc-card.is-expired { border-color: rgba(252,165,165,0.6); box-shadow: 0 0 0 2px rgba(252,165,165,0.2) inset; }
.body.dark-mode .doc-card.is-expired .doc-thumb { filter: grayscale(0.25) brightness(0.9); }
.doc-thumb canvas { display: block; max-width: none; max-height: none; }
.doc-thumb.is-pdf .pdf-placeholder { color: #cbd5e1; }
.docs-group-title i { color: #64748b; }
body.dark-mode .docs-group-title { color: var(--dm-text, #e2e8f0); }
body.dark-mode .docs-group-title i { color: #94a3b8; }
#Documents .doc-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
#Documents .chip { display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; font-size:12px; border:1px solid #e5e7eb; background:#f8fafc; color:#111827; }
#Documents .chip i { color:#64748b; }
#Documents .chip-client { background:#eef2ff; border-color:#e0e7ff; color:#3730a3; }
#Documents .chip-type { background:#ecfeff; border-color:#a5f3fc; color:#0e7490; }
#Documents .chip-status { background:#f1f5f9; border-color:#e2e8f0; color:#334155; }
#Documents .chip-success { background:#dcfce7; border-color:#bbf7d0; color:#166534; }
#Documents .chip-warn { background:#fef3c7; border-color:#fde68a; color:#92400e; }
#Documents .chip-danger { background:#fee2e2; border-color:#fecaca; color:#991b1b; }
#Documents .docs-group-title { cursor:pointer; user-select:none; }
#Documents .docs-group-title .group-count { font-weight:700; color:#64748b; }
#Documents .docs-group .group-more { display:flex; justify-content:center; margin:8px 0 2px; }
#Documents .docs-group .group-more .btn.load-more { padding:8px 12px; border-radius:8px; border:1px solid #e5e7eb; background:#ffffff; color:#111827; cursor:pointer; }
#Documents .docs-group .group-more .btn.load-more:hover { background:#f8fafc; }
#Documents .doc-title { gap:10px; flex-wrap:wrap; }
#Documents .title-status-pill { display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; font-size:11px; border:1px solid transparent; }
#Documents .title-status-pill.valid { background:#dcfce7; color:#166534; border-color:#bbf7d0; }
#Documents .title-status-pill.soon { background:#fef3c7; color:#92400e; border-color:#fde68a; }
#Documents .title-status-pill.expired { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.doc-title .title-status-pill { display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; font-size:11px; border:1px solid transparent; }
.doc-title .title-status-pill.valid { background:#dcfce7; color:#166534; border-color:#bbf7d0; }
.doc-title .title-status-pill.soon { background:#fef3c7; color:#92400e; border-color:#fde68a; }
.doc-title .title-status-pill.expired { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
#docs-lightbox { position:fixed; inset:0; background:rgba(2,6,23,0.75); display:none; align-items:center; justify-content:center; z-index:99999; }
#docs-lightbox.show { display:flex; }
#docs-lightbox .dlb-content { position:relative; width:92vw; height:92vh; max-width:1200px; max-height:92vh; background:#0b1220; border:1px solid #273247; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,0.4); display:flex; align-items:center; justify-content:center; overflow:hidden; }
#docs-lightbox .dlb-close { position:absolute; top:8px; inset-inline-end:8px; background:rgba(255,255,255,0.1); color:#fff; border:none; width:36px; height:36px; border-radius:8px; cursor:pointer; font-size:20px; }
#docs-lightbox .dlb-frame { width:100%; height:100%; border:none; background:#111827; }
#docs-lightbox .dlb-img { max-width:100%; max-height:100%; object-fit:contain; }
html.dark #docs-lightbox .dlb-content { background:#0b1220; border-color:#273247; }
#docs-lightbox .dlb-footer .dlb-open:hover { background:#111827; border-color:#334155; }
#docs-lightbox .dlb-footer .dlb-open i { opacity:.9; }
.stats-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.stat-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px;
min-height: 260px;
display: flex;
flex-direction: column;
}
.stat-card h4 {
margin: 0 0 8px 0;
font-size: 14px;
color: #334155;
}
.stat-card canvas {
flex: 0 0 auto;
height: 200px !important;
max-height: 200px;
}
@media (max-width: 900px) {
.stats-grid { grid-template-columns: 1fr; }
}
.stats-toolbar {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 12px;
}
.stats-toolbar .kpis {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.stats-toolbar .kpi-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 6px;
min-height: 72px;
}
.stats-toolbar .kpi-label { font-size: 12px; color: #6b7280; }
.stats-toolbar .kpi-value { font-size: 22px; font-weight: 800; color: #0f172a; }
.stats-toolbar .kpi-delta { font-size: 12px; color: #64748b; }
.stats-toolbar .toolbar-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.stats-toolbar .active-filters-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.stats-toolbar .filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stats-toolbar .filter-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
background: #f1f5f9;
color: #0f172a;
border: 1px solid #e2e8f0;
border-radius: 999px;
font-size: 12px;
}
.stats-toolbar .filter-chip .remove-chip {
background: transparent; border: none; color: #64748b; cursor: pointer; padding: 0 2px;
}
.stats-toolbar .filter-chip .chip-count{
background: #e2e8f0;
color: #0f172a;
border-radius: 999px;
padding: 0 6px;
font-size: 11px;
line-height: 18px;
}
.stats-toolbar .compare-controls,
.stats-toolbar .export-controls {
display: inline-flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.stats-toolbar label { font-size: 12px; color: #334155; display: inline-flex; align-items: center; gap: 6px; }
.stats-toolbar select { padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: var(--radius-md); background: #fff; color: #111827; }
.stats-toolbar .checkbox-inline input { margin-left: 6px; }
@media (max-width: 900px) {
.stats-toolbar .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
.stats-toolbar .kpis { grid-template-columns: 1fr; }
}
.client-modal-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
background: #f8fafc;
border-top: 1px solid #e5e7eb;
}
.client-modal-footer .footer-left-actions,
.client-modal-footer .footer-right-actions {
display: inline-flex;
align-items: center;
gap: 8px;
}
.client-modal .client-modal-action.btn-danger.is-hidden-by-default { display: none !important; }
.client-modal[data-allow-delete="true"] .client-modal-action.btn-danger.is-hidden-by-default { display: inline-flex !important; }
.client-summary-bar {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
background: #ffffff;
border: 1px solid #e7eaf3;
border-radius: 12px;
padding: 12px;
margin: 4px 0 16px 0;
}
.client-summary-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
background: linear-gradient(180deg, #f9fafb 0%, #ffffff 80%);
border: 1px solid #eef2f7;
border-radius: 10px;
}
.client-summary-item .item-icon { color: #64748b; font-size: 16px; width: 22px; text-align: center; }
.client-summary-item .item-texts { display: flex; flex-direction: column; gap: 4px; }
.client-summary-item .item-label { font-size: 12px; color: #6b7280; }
.client-summary-item .item-value { font-size: 14px; color: #111827; font-weight: 600; }
@media (max-width: 1024px) {
.client-summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
.client-summary-bar { grid-template-columns: 1fr; }
}
.stats-toolbar .active-filters-row button,
.stats-toolbar .toolbar-actions button,
.stats-toolbar .client-modal-action {
--btn-bg: #0ea5e9;
--btn-bg-end: #0284c7;
--btn-text: #ffffff;
--btn-ring: rgba(14,165,233,0.45);
appearance: none;
border: none;
outline: none;
cursor: pointer;
padding: 10px 16px;
font-size: 14px;
font-weight: 800;
color: var(--btn-text);
background: linear-gradient(135deg, var(--btn-bg), var(--btn-bg-end));
border-radius: 12px;
box-shadow:
0 10px 15px -3px rgba(2, 132, 199, 0.25),
0 4px 6px -2px rgba(2, 132, 199, 0.15);
transition: transform 120ms ease, box-shadow 200ms ease, filter 120ms ease;
}
.stats-toolbar .active-filters-row button:hover,
.stats-toolbar .toolbar-actions button:hover,
.stats-toolbar .client-modal-action:hover {
transform: translateY(-1px);
filter: brightness(1.03);
box-shadow:
0 15px 25px -5px rgba(2, 132, 199, 0.35),
0 10px 10px -5px rgba(2, 132, 199, 0.2);
}
.stats-toolbar .active-filters-row button:active,
.stats-toolbar .toolbar-actions button:active,
.stats-toolbar .client-modal-action:active {
transform: translateY(0);
box-shadow:
0 8px 12px -5px rgba(2, 132, 199, 0.25),
0 4px 6px -4px rgba(2, 132, 199, 0.18);
}
.stats-toolbar .active-filters-row button:focus-visible,
.stats-toolbar .toolbar-actions button:focus-visible,
.stats-toolbar .client-modal-action:focus-visible {
box-shadow:
0 0 0 3px #fff,
0 0 0 6px var(--btn-ring),
0 15px 25px -5px rgba(2, 132, 199, 0.35),
0 10px 10px -5px rgba(2, 132, 199, 0.2);
}
.stats-toolbar .active-filters-row button:disabled,
.stats-toolbar .toolbar-actions button:disabled,
.stats-toolbar .client-modal-action:disabled {
opacity: 0.6;
cursor: not-allowed;
filter: grayscale(0.2);
}
#resetFiltersBtn {
--btn-bg: #f59e0b;
--btn-bg-end: #d97706;
--btn-ring: rgba(245, 158, 11, 0.45);
}
#exportChartsPng {
--btn-bg: #2563eb;
--btn-bg-end: #1d4ed8;
--btn-ring: rgba(37, 99, 235, 0.45);
}
#exportChartsPdf {
--btn-bg: #dc2626;
--btn-bg-end: #b91c1c;
--btn-ring: rgba(220, 38, 38, 0.45);
}
.stats-toolbar .toolbar-actions button,
.stats-toolbar .active-filters-row button {
display: inline-flex;
align-items: center;
gap: 8px;
}
.stats-toolbar .toolbar-actions button > svg,
.stats-toolbar .active-filters-row button > svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform 120ms ease, filter 150ms ease; }
.stats-toolbar .toolbar-actions button > i,
.stats-toolbar .active-filters-row button > i { font-size: 18px; line-height: 1; transition: transform 120ms ease, filter 150ms ease; }
.stats-toolbar .toolbar-actions button > img,
.stats-toolbar .active-filters-row button > img { height: 20px; width: auto; flex-shrink: 0; transition: transform 120ms ease, filter 150ms ease; }
.stats-toolbar .toolbar-actions button svg path,
.stats-toolbar .toolbar-actions button svg circle,
.stats-toolbar .toolbar-actions button svg rect,
.stats-toolbar .toolbar-actions button svg polygon,
.stats-toolbar .toolbar-actions button svg line,
.stats-toolbar .toolbar-actions button svg polyline,
.stats-toolbar .active-filters-row button svg path,
.stats-toolbar .active-filters-row button svg circle,
.stats-toolbar .active-filters-row button svg rect,
.stats-toolbar .active-filters-row button svg polygon,
.stats-toolbar .active-filters-row button svg line,
.stats-toolbar .active-filters-row button svg polyline { fill: currentColor !important; stroke: currentColor !important; }
.stats-toolbar .toolbar-actions button:hover > svg,
.stats-toolbar .active-filters-row button:hover > svg,
.stats-toolbar .toolbar-actions button:hover > i,
.stats-toolbar .active-filters-row button:hover > i,
.stats-toolbar .toolbar-actions button:hover > img,
.stats-toolbar .active-filters-row button:hover > img { transform: translateY(-1px) scale(1.05); filter: drop-shadow(0 2px 6px rgba(255,255,255,0.25)); }
.stats-toolbar .toolbar-actions button:active > svg,
.stats-toolbar .active-filters-row button:active > svg,
.stats-toolbar .toolbar-actions button:active > i,
.stats-toolbar .active-filters-row button:active > i,
.stats-toolbar .toolbar-actions button:active > img,
.stats-toolbar .active-filters-row button:active > img { transform: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15)); }
@media (prefers-reduced-motion: reduce) {
.stats-toolbar .toolbar-actions button > svg,
.stats-toolbar .active-filters-row button > svg,
.stats-toolbar .toolbar-actions button > i,
.stats-toolbar .active-filters-row button > i,
.stats-toolbar .toolbar-actions button > img,
.stats-toolbar .active-filters-row button > img { transition: none; }
}
.client-tabs-wrapper {
display: flex;
flex-direction: column;
height: 100%;
}
.client-tab-nav {
display: flex;
align-items: center;
gap: 6px;
padding: 12px 16px;
background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
backdrop-filter: blur(8px) saturate(1.2);
border-bottom: 2px solid #e2e8f0;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
position: sticky;
top: 0;
z-index: 10;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.client-tab-nav::-webkit-scrollbar {
height: 4px;
}
.client-tab-nav::-webkit-scrollbar-track {
background: #f1f5f9;
}
.client-tab-nav::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 2px;
}
.client-tab-nav::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.client-tab-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 14px 20px;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
color: #64748b;
font-family: 'Cairo', 'Tajawal', sans-serif;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
white-space: nowrap;
position: relative;
border-radius: 12px 12px 0 0;
}
.client-tab-btn i {
font-size: 18px;
transition: transform 0.3s ease, color 0.25s ease;
}
.client-tab-btn:hover {
color: #334155;
background: rgba(148, 163, 184, 0.15);
transform: translateY(-2px);
}
.client-tab-btn:hover i {
transform: scale(1.2);
color: #3b82f6;
}
.client-tab-btn.active {
color: #0f172a;
border-bottom-color: #3b82f6;
background: rgba(59, 130, 246, 0.1);
box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2), inset 0 -3px 0 #3b82f6;
}
.client-tab-btn.active i {
color: #3b82f6;
transform: scale(1.1);
}
.client-tab-btn.client-ai-tab {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
color: #667eea;
border: 1px solid rgba(102, 126, 234, 0.15);
border-bottom: 3px solid transparent;
box-shadow: 0 2px 6px rgba(102, 126, 234, 0.08);
}
.client-tab-btn.client-ai-tab i {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.client-tab-btn.client-ai-tab:hover {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%, rgba(118, 75, 162, 0.18) 100%);
border-color: rgba(102, 126, 234, 0.4);
color: #5a67d8;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.18);
transform: translateY(-1px);
}
.client-tab-btn.client-ai-tab.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
border-color: #764ba2;
border-bottom-color: #764ba2;
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35), inset 0 -3px 0 rgba(118, 75, 162, 0.8);
}
.client-tab-btn.client-ai-tab.active i {
-webkit-text-fill-color: #ffffff;
color: #ffffff;
}
.client-ai-tab-nav {
display: none !important;
}
.client-tab-content {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
position: relative;
background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 40px);
}
.client-tab-panel {
display: none;
padding: 20px;
animation: fadeInUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-tab-panel.active {
display: block;
}
.client-ai-tab-content {
border-top: 1px solid #e2e8f0;
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
min-height: 200px;
}
.client-ai-tab-panel {
display: none;
padding: 24px;
animation: fadeIn 0.3s ease;
}
.client-ai-tab-panel.active {
display: block;
}
.tab-content-placeholder,
.ai-content-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 300px;
text-align: center;
color: #64748b;
}
.tab-content-placeholder i,
.ai-content-placeholder i {
font-size: 64px;
color: #cbd5e1;
margin-bottom: 20px;
}
.ai-content-placeholder i.ai-icon {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.tab-content-placeholder h3,
.ai-content-placeholder h3 {
font-size: 24px;
font-weight: 700;
color: #334155;
margin: 0 0 12px;
}
.tab-content-placeholder p,
.ai-content-placeholder p {
font-size: 15px;
color: #64748b;
margin: 0;
max-width: 500px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.client-tab-btn:focus-visible {
outline: 3px solid rgba(59, 130, 246, 0.5);
outline-offset: 2px;
z-index: 1;
}
.client-tab-btn.client-ai-tab:focus-visible {
outline-color: rgba(102, 126, 234, 0.5);
}
.chat-panel {
display: flex;
flex-direction: column;
gap: 16px;
height: 100%;
}
.chat-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
border-radius: 12px;
border: 1px solid rgba(102, 126, 234, 0.1);
}
.chat-panel-header h3 {
margin: 0;
display: flex;
align-items: center;
gap: 10px;
font-size: 18px;
font-weight: 700;
color: #1e293b;
}
.chat-panel-header h3 i {
color: #667eea;
font-size: 20px;
}
#chatBotContainer {
flex: 1;
min-height: 400px;
background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
border: 1px solid #e5e7eb;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.dark-mode .client-tab-nav {
background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
backdrop-filter: blur(8px) saturate(1.2);
border-bottom-color: #334155;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
body.dark-mode .client-tab-btn {
color: #94a3b8;
}
body.dark-mode .client-tab-btn:hover {
color: #cbd5e1;
background: rgba(148, 163, 184, 0.15);
}
body.dark-mode .client-tab-btn.active {
color: #e2e8f0;
background: rgba(59, 130, 246, 0.2);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), inset 0 -3px 0 #3b82f6;
}
body.dark-mode .client-tab-content {
background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, transparent 40px);
}
body.dark-mode #chatBotContainer {
background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
border-color: #334155;
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.dark-mode .chat-panel-header {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
border-color: rgba(102, 126, 234, 0.2);
}
body.dark-mode .chat-panel-header h3 {
color: #e2e8f0;
}
body.dark-mode .client-ai-tab-content {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-top-color: #334155;
}
body.dark-mode .tab-content-placeholder,
body.dark-mode .ai-content-placeholder {
color: #94a3b8;
}
body.dark-mode .tab-content-placeholder i,
body.dark-mode .ai-content-placeholder i {
color: #475569;
}
body.dark-mode .tab-content-placeholder h3,
body.dark-mode .ai-content-placeholder h3 {
color: #cbd5e1;
}
body.dark-mode .tab-content-placeholder p,
body.dark-mode .ai-content-placeholder p {
color: #94a3b8;
}
@media (max-width: 768px) {
.client-tab-btn {
padding: 10px 14px;
font-size: 13px;
}
.client-tab-btn i {
font-size: 16px;
}
.client-ai-tab-btn {
padding: 6px 12px;
font-size: 12px;
}
.client-ai-tab-btn i {
font-size: 14px;
}
.tab-content-placeholder i,
.ai-content-placeholder i {
font-size: 48px;
}
.tab-content-placeholder h3,
.ai-content-placeholder h3 {
font-size: 20px;
}
.chat-panel-header h3 {
font-size: 16px;
}
}
.acf-skeleton-loading-advanced {
padding: 32px;
display: flex;
flex-direction: column;
gap: 32px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
min-height: 500px;
}
.skeleton-loading-header {
display: flex;
flex-direction: column;
gap: 16px;
}
.skeleton-header-title {
display: flex;
align-items: center;
gap: 12px;
}
.pulse-dot {
width: 12px;
height: 12px;
background: #3b82f6;
border-radius: 50%;
animation: pulse-glow 1.5s ease-in-out infinite;
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}
@keyframes pulse-glow {
0%, 100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}
50% {
transform: scale(1.2);
box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
}
}
.skeleton-header-title h3 {
margin: 0;
font-size: 20px;
font-weight: 700;
color: #1e293b;
background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.skeleton-progress-container {
display: flex;
align-items: center;
gap: 16px;
}
.skeleton-progress-bar {
flex: 1;
height: 8px;
background: #e5e7eb;
border-radius: 999px;
overflow: hidden;
position: relative;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.skeleton-progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
background-size: 200% 100%;
border-radius: 999px;
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
animation: progress-shimmer 2s ease-in-out infinite;
box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}
@keyframes progress-shimmer {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.skeleton-progress-text {
font-size: 14px;
font-weight: 700;
color: #3b82f6;
min-width: 40px;
text-align: right;
}
.skeleton-sources {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
}
.skeleton-source {
display: flex;
align-items: center;
gap: 14px;
padding: 16px 20px;
background: #ffffff;
border: 2px solid #e5e7eb;
border-radius: 12px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.skeleton-source::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
transition: left 0.5s ease;
}
.skeleton-source.loading::before {
animation: scan 1.5s ease-in-out infinite;
}
@keyframes scan {
0% {
left: -100%;
}
100% {
left: 100%;
}
}
.skeleton-source.connected {
border-color: #10b981;
background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.source-icon {
position: relative;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
border-radius: 10px;
flex-shrink: 0;
}
.skeleton-source.connected .source-icon {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.source-icon i {
font-size: 20px;
color: #3b82f6;
z-index: 1;
}
.skeleton-source.connected .source-icon i {
color: #10b981;
}
.source-pulse {
position: absolute;
inset: -4px;
border: 2px solid #3b82f6;
border-radius: 12px;
animation: source-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
opacity: 0;
}
@keyframes source-pulse {
0% {
transform: scale(1);
opacity: 0.8;
}
100% {
transform: scale(1.3);
opacity: 0;
}
}
.skeleton-source.connected .source-pulse {
border-color: #10b981;
animation: none;
}
.source-info {
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
}
.source-label {
font-size: 14px;
font-weight: 700;
color: #1e293b;
}
.source-status {
font-size: 12px;
color: #64748b;
font-weight: 500;
}
.skeleton-source.connected .source-status {
color: #10b981;
font-weight: 600;
}
.skeleton-source.loading .source-status {
color: #3b82f6;
}
.skeleton-content-wrapper {
display: flex;
flex-direction: column;
gap: 24px;
}
.skeleton-group {
display: flex;
flex-direction: column;
gap: 14px;
animation: fadeInUp 0.5s ease-out backwards;
}
.skeleton-group:nth-child(1) { animation-delay: 0.1s; }
.skeleton-group:nth-child(2) { animation-delay: 0.2s; }
.skeleton-group:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.skeleton-title {
width: 200px;
height: 24px;
border-radius: 8px;
}
.skeleton-title.shimmer,
.skeleton-field.shimmer {
background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
background-size: 200% 100%;
animation: shimmer 2s ease-in-out infinite;
}
.skeleton-fields {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
.skeleton-field {
height: 72px;
background: #ffffff;
border-radius: 12px;
border: 1px solid #e5e7eb;
position: relative;
overflow: hidden;
}
.skeleton-field::before {
content: '';
position: absolute;
top: 12px;
left: 12px;
width: 100px;
height: 12px;
background: #e2e8f0;
border-radius: 4px;
}
.skeleton-field::after {
content: '';
position: absolute;
bottom: 12px;
left: 12px;
right: 12px;
height: 24px;
background: #cbd5e1;
border-radius: 6px;
}
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.skeleton-stats {
display: flex;
align-items: center;
gap: 24px;
padding: 16px 20px;
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
border: 1px solid #bfdbfe;
border-radius: 12px;
margin-top: auto;
}
.skeleton-stat {
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
font-weight: 600;
color: #1e40af;
}
.skeleton-stat i {
font-size: 16px;
color: #3b82f6;
}
.stat-counter {
display: inline-block;
min-width: 20px;
text-align: center;
font-weight: 700;
color: #1d4ed8;
}
body.dark-mode .acf-skeleton-loading-advanced {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
body.dark-mode .skeleton-header-title h3 {
background: linear-gradient(135deg, #e2e8f0 0%, #60a5fa 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
body.dark-mode .skeleton-progress-bar {
background: #1e293b;
}
body.dark-mode .skeleton-source {
background: #1e293b;
border-color: #334155;
}
body.dark-mode .skeleton-source.connected {
border-color: #10b981;
background: linear-gradient(135deg, #1e293b 0%, #064e3b 100%);
}
body.dark-mode .source-icon {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
body.dark-mode .skeleton-source.connected .source-icon {
background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}
body.dark-mode .source-icon i {
color: #60a5fa;
}
body.dark-mode .skeleton-source.connected .source-icon i {
color: #34d399;
}
body.dark-mode .source-label {
color: #e2e8f0;
}
body.dark-mode .source-status {
color: #94a3b8;
}
body.dark-mode .skeleton-source.connected .source-status {
color: #34d399;
}
body.dark-mode .skeleton-source.loading .source-status {
color: #60a5fa;
}
body.dark-mode .skeleton-title.shimmer,
body.dark-mode .skeleton-field.shimmer {
background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
background-size: 200% 100%;
}
body.dark-mode .skeleton-field {
background: #0f172a;
border-color: #334155;
}
body.dark-mode .skeleton-field::before {
background: #334155;
}
body.dark-mode .skeleton-field::after {
background: #475569;
}
body.dark-mode .skeleton-stats {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
border-color: #1e40af;
}
body.dark-mode .skeleton-stat {
color: #bfdbfe;
}
body.dark-mode .skeleton-stat i {
color: #60a5fa;
}
body.dark-mode .stat-counter {
color: #93c5fd;
}
@media (max-width: 768px) {
.acf-skeleton-loading-advanced {
padding: 20px;
gap: 24px;
}
.skeleton-sources {
grid-template-columns: 1fr;
}
.skeleton-header-title h3 {
font-size: 18px;
}
.skeleton-stats {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
}
@media (max-width: 768px) {
.tab-content-placeholder h3,
.ai-content-placeholder h3 {
font-size: 20px;
}
.chat-panel-header h3 {
font-size: 16px;
}
}
.upload-mode-toggle {
display: inline-flex;
background: #e0e7ff;
border-radius: 10px;
padding: 4px;
gap: 4px;
}
.upload-mode-btn {
padding: 8px 16px;
border: none;
border-radius: 8px;
background: transparent;
color: #4f46e5;
cursor: pointer;
transition: all 0.2s ease;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
}
.upload-mode-btn:hover {
background: rgba(79, 70, 229, 0.1);
}
.upload-mode-btn.active {
background: #4f46e5;
color: #fff;
box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.upload-mode-btn i {
font-size: 14px;
}
.upload-section {
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#existingFileSelect,
#existingFileType {
width: 100%;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 14px;
transition: border-color 0.2s ease;
}
#existingFileSelect:focus,
#existingFileType:focus {
outline: none;
border-color: #4f46e5;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.btn-link-existing-file {
background: #10b981;
color: #fff;
border: none;
padding: 10px 18px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 600;
}
.btn-link-existing-file:hover {
background: #059669;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-link-existing-file:active {
transform: translateY(0);
}
.btn-link-existing-file i {
font-size: 14px;
}
.doc-item-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.doc-location-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
color: #0f172a;
background: #ecfeff;
border: 1px solid #a5f3fc;
}
.doc-location-badge i {
color: #0891b2;
}
.doc-location-badge--office {
background: #ecfeff;
border-color: #a5f3fc;
color: #0e7490;
}
.doc-location-badge--office i { color: #0891b2; }
.doc-location-badge--client {
background: #dcfce7;
border-color: #bbf7d0;
color: #166534;
}
.doc-location-badge--client i { color: #059669; }
.doc-location-badge--tax_office {
background: #fef3c7;
border-color: #fde68a;
color: #b45309;
}
.doc-location-badge--tax_office i { color: #d97706; }
.doc-location-badge--archive {
background: #f1f5f9;
border-color: #e2e8f0;
color: #334155;
}
.doc-location-badge--archive i { color: #475569; }
.doc-location-badge--unknown {
background: #eef2ff;
border-color: #e0e7ff;
color: #3730a3;
}
.doc-location-badge--unknown i { color: #6366f1; }
.inspection-table .actions-cell {
display: flex;
align-items: center;
gap: 10px;
}
.inspection-table .actions-cell .btn-icon {
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 10px;
border: 1px solid rgba(148,163,184,0.35);
background: #ffffff;
color: #334155;
transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}
.inspection-table .actions-cell .btn-icon i {
pointer-events: none;
font-size: 14px;
}
.inspection-table .actions-cell .btn-icon:hover {
background: #f8fafc;
box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}
.inspection-table .actions-cell .btn-icon:active {
transform: translateY(1px);
}
.inspection-table .actions-cell .edit-inspection-btn {
border-color: rgba(59,130,246,0.25);
color: #2563eb;
}
.inspection-table .actions-cell .edit-inspection-btn:hover {
background: rgba(59,130,246,0.08);
color: #1d4ed8;
}
.inspection-table .actions-cell .delete-inspection-btn {
border-color: rgba(239,68,68,0.25);
color: #dc2626;
}
.inspection-table .actions-cell .delete-inspection-btn:hover {
background: rgba(239,68,68,0.08);
color: #b91c1c;
}
.inspection-table .final-status-chip {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.2px;
}
.inspection-table .final-status-chip.final {
background: #ecfdf5;
color: #065f46;
border: 1px solid #a7f3d0;
}
.inspection-table .final-status-chip.draft {
background: #fef2f2;
color: #991b1b;
border: 1px solid #fecaca;
}

/* === client-tasks-modal.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
--modal-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
--modal-font-numbers: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
--tasks-primary: #667eea;
--tasks-secondary: #764ba2;
--tasks-success: #10b981;
--tasks-warning: #f59e0b;
--tasks-danger: #ef4444;
--tasks-info: #3b82f6;
--tasks-bg: #f8fafc;
--tasks-border: #e2e8f0;
--tasks-text: #1e293b;
--tasks-text-light: #64748b;
}
#clientTasksModal {
position: fixed !important;
inset: 0 !important;
z-index: 2147483647 !important;
}
.tasks-modal .client-modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.5);
backdrop-filter: blur(4px);
z-index: 2147483646 !important;
}
.tasks-modal-content {
position: fixed;
display: flex;
flex-direction: column;
background: white;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
overflow: hidden;
z-index: 2147483647 !important;
font-family: var(--modal-font-arabic);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 92vw;
height: 92vh;
max-width: 1400px;
max-height: 900px;
}
.tasks-charts {
margin: 0 0 12px 0;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
padding: 0 28px 8px 28px;
}
.chart-card {
background: white;
border: 1px solid var(--tasks-border);
border-radius: 10px;
padding: 14px;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
position: relative;
transition: all 0.2s ease;
}
.chart-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.chart-title {
margin: 0 0 10px 0;
color: var(--tasks-text);
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
}
.chart-card canvas {
width: 100% !important;
height: 140px !important;
max-height: 150px;
display: block;
}
.chart-title i {
color: var(--tasks-primary);
font-size: 14px;
}
@media (max-width: 992px) {
.tasks-charts {
margin: 0 0 20px 0;
padding: 0 20px;
grid-template-columns: 1fr;
gap: 12px;
}
}
.tasks-modal .client-modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 14px 20px;
display: flex;
align-items: center;
border-bottom: none;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
position: relative;
min-height: 0;
}
.modal-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.header-action-btn {
background: rgba(255,255,255,0.2);
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: white;
font-size: 16px;
position: relative;
}
.header-action-btn:hover {
background: rgba(255,255,255,0.3);
transform: translateY(-2px);
}
.header-action-btn:active {
transform: translateY(0);
}
.close-tasks-modal {
background: rgba(255,255,255,0.2);
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: white;
font-size: 18px;
}
.close-tasks-modal:hover {
background: rgba(255,255,255,0.3);
transform: rotate(90deg);
}
.notification-bell {
position: relative;
margin: 0;
background: rgba(255,255,255,0.18);
width: 32px;
height: 32px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.notification-bell i {
color: #fff;
font-size: 14px;
}
.notification-bell:hover {
background: rgba(255,255,255,0.28);
transform: translateY(-2px);
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
background: #ef4444;
color: #fff;
border-radius: 999px;
font-size: 10px;
padding: 1px 5px;
font-weight: 600;
box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}
.notifications-panel {
position: absolute;
right: 24px;
top: 70px;
width: 360px;
max-height: 60vh;
overflow: auto;
background: #fff;
color: #0f172a;
border-radius: 12px;
box-shadow: 0 10px 28px rgba(0,0,0,0.18);
border: 1px solid #e2e8f0;
z-index: 10000;
}
.notif-header {
padding: 12px 16px;
font-weight: 800;
border-bottom: 1px solid #e2e8f0;
background: #f8fafc;
}
.notif-list { padding: 8px; }
.notif-item {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid #e2e8f0;
margin-bottom: 8px;
transition: background 0.2s ease;
}
.notif-item i { font-size: 14px; color: #334155; }
.notif-item .notif-text { flex: 1; }
.notif-title { font-size: 13px; font-weight: 800; color: #0f172a; }
.notif-message { font-size: 12px; color: #475569; margin-top: 2px; }
.notif-item:hover { background: #f8fafc; }
.notif-item .notif-action {
background: #e2e8f0;
border: none;
width: 28px; height: 28px; border-radius: 8px;
display: inline-flex; align-items: center; justify-content: center;
color: #334155; cursor: pointer; transition: all 0.2s ease;
}
.notif-item .notif-action:hover { background: #cbd5e1; transform: translateY(-1px); }
.notif-item.notif-overdue { border-left: 3px solid #ef4444; }
.notif-item.notif-today { border-left: 3px solid #f59e0b; }
.notif-item.notif-soon { border-left: 3px solid #3b82f6; }
.notif-empty { color: #64748b; padding: 16px; text-align: center; }
.notif-prefs {
padding: 10px 12px 14px;
border-top: 1px solid #e2e8f0;
display: grid; gap: 8px;
}
.notif-prefs label { font-size: 12px; color: #334155; display: flex; align-items: center; gap: 6px; }
.notif-prefs input[type="number"] { width: 64px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; }
.notif-prefs .notif-clear { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; border: none; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.notif-prefs .notif-clear:hover { filter: brightness(1.05); }
.toast-container {
position: fixed;
right: 28px;
top: 28px;
z-index: 10001;
}
.toast {
display: flex; align-items: center; gap: 8px;
background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 10px;
box-shadow: 0 10px 24px rgba(0,0,0,0.25);
opacity: 0; transform: translateY(-10px);
transition: all 0.3s ease; margin-bottom: 8px;
font-size: 13px; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast i { font-size: 14px; }
.toast-success { background: #16a34a; }
.toast-info { background: #2563eb; }
.toast-warn { background: #f59e0b; }
.toast-error { background: #ef4444; }
.tasks-modal .modal-header-content {
display: flex;
align-items: center;
gap: 16px;
}
.tasks-modal .modal-header-icon {
font-size: 32px;
opacity: 0.9;
}
.tasks-modal .modal-header-text h2 {
margin: 0;
font-size: 24px;
font-weight: 600;
}
.tasks-modal .modal-subtitle {
margin: 4px 0 0;
font-size: 14px;
opacity: 0.85;
}
.close-tasks-modal {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.close-tasks-modal:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
.tasks-modal .client-modal-body {
padding: 0;
overflow-y: auto;
flex: 1;
background: var(--tasks-bg);
}
.tasks-stats-overview {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
padding: 16px 28px 12px 28px;
margin-bottom: 0;
position: relative;
}
.tasks-stats-overview .stats-active-indicator {
position: absolute;
bottom: 4px;
height: 3px;
background: linear-gradient(90deg, var(--tasks-primary), var(--tasks-secondary));
border-radius: 3px;
transition: all 0.35s cubic-bezier(.4,.0,.2,1);
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
pointer-events: none;
}
.task-stat-card.active {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transform: translateY(-1px);
border-color: var(--tasks-primary);
}
.task-stat-card.active i {
outline: 2px solid rgba(102,126,234,0.2);
outline-offset: 1px;
}
.task-stat-card {
background: white;
border: 1px solid var(--tasks-border);
border-radius: 10px;
padding: 12px 14px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
transition: all 0.2s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}
.task-stat-card::before {
display: none;
}
.task-stat-card:hover::before {
display: none;
}
.task-stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.task-stat-card.active {
border-color: transparent;
transform: translateY(0);
}
.task-stat-card i {
font-size: 24px;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 10px;
flex-shrink: 0;
transition: all 0.2s ease;
position: relative;
z-index: 1;
}
.task-stat-card:hover i {
transform: scale(1.03);
}
.task-stat-card.stat-total {
background: white;
color: var(--tasks-text);
}
.task-stat-card.stat-total i {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: none;
}
.task-stat-card.stat-pending {
background: white;
color: var(--tasks-text);
}
.task-stat-card.stat-pending i {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: #d97706;
box-shadow: none;
}
.task-stat-card.stat-progress {
background: white;
color: var(--tasks-text);
}
.task-stat-card.stat-progress i {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: #1d4ed8;
box-shadow: none;
animation: none;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.task-stat-card.stat-progress:hover i {
animation: none;
}
.task-stat-card.stat-completed {
background: white;
color: var(--tasks-text);
}
.task-stat-card.stat-completed i {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
color: #047857;
box-shadow: none;
}
.task-stat-card.stat-overdue {
background: white;
color: var(--tasks-text);
}
.task-stat-card.stat-overdue i {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
color: #b91c1c;
box-shadow: none;
animation: none;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.stat-info {
flex: 1;
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 0;
}
.stat-value {
display: block;
font-size: 22px;
font-weight: 700;
line-height: 1;
margin-bottom: 2px;
font-family: var(--modal-font-numbers);
color: var(--tasks-text);
}
.stat-label {
display: block;
font-size: 11px;
font-weight: 500;
color: var(--tasks-text-light);
letter-spacing: 0;
margin-top: 0;
line-height: 1.2;
}
.tasks-content-wrapper {
background: var(--tasks-bg);
border-radius: 12px;
padding: 14px 20px;
margin-top: 8px;
}
.tasks-toolbar {
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
border: 1px solid #e9ecef;
border-radius: 12px;
padding: 10px 16px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tasks-toolbar-left {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
flex: 1;
}
.tasks-toolbar-right {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.tasks-view-toggle {
display: inline-flex;
gap: 4px;
margin: 0;
background: white;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 3px;
}
.view-toggle-btn {
border: none;
background: transparent;
color: var(--tasks-text-light);
padding: 6px 14px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
white-space: nowrap;
}
.view-toggle-btn:hover {
background: rgba(102, 126, 234, 0.08);
color: var(--tasks-primary);
}
.view-toggle-btn.active {
background: linear-gradient(135deg, var(--tasks-primary) 0%, var(--tasks-secondary) 100%);
color: white;
box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}
.tasks-filters {
display: inline-flex;
gap: 6px;
margin: 0;
padding-inline-start: 12px;
border-inline-start: 2px solid #e9ecef;
}
.task-filter-btn {
background: white;
border: 1px solid #dee2e6;
color: var(--tasks-text-light);
padding: 6px 12px;
border-radius: 7px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
display: flex;
align-items: center;
gap: 5px;
transition: all 0.2s ease;
position: relative;
white-space: nowrap;
}
.task-filter-btn:hover {
background: rgba(102, 126, 234, 0.08);
border-color: var(--tasks-primary);
color: var(--tasks-primary);
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.task-filter-btn.active {
background: linear-gradient(135deg, var(--tasks-primary) 0%, var(--tasks-secondary) 100%);
border-color: var(--tasks-primary);
color: white;
box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}
.tasks-toolbar .tasks-search-box {
position: relative;
min-width: 200px;
max-width: 280px;
}
.tasks-toolbar .tasks-search-box input {
width: 100%;
padding: 7px 12px 7px 34px;
border: 1px solid #dee2e6;
border-radius: 8px;
font-size: 13px;
transition: all 0.2s ease;
background: white;
}
.tasks-toolbar .tasks-search-box input:focus {
outline: none;
border-color: var(--tasks-primary);
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.tasks-toolbar .tasks-search-box i {
position: absolute;
left: 11px;
top: 50%;
transform: translateY(-50%);
color: #adb5bd;
font-size: 13px;
}
.tasks-toolbar .toolbar-actions {
display: flex;
gap: 6px;
align-items: center;
}
.tasks-toolbar .toolbar-btn {
background: white;
border: 1px solid #dee2e6;
color: var(--tasks-text);
padding: 7px 12px;
border-radius: 7px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
white-space: nowrap;
}
.tasks-toolbar .toolbar-btn:hover {
background: rgba(102, 126, 234, 0.08);
border-color: var(--tasks-primary);
color: var(--tasks-primary);
transform: translateY(-1px);
}
.tasks-toolbar .toolbar-btn.btn-primary {
background: linear-gradient(135deg, var(--tasks-primary) 0%, var(--tasks-secondary) 100%);
border-color: var(--tasks-primary);
color: white;
}
.tasks-toolbar .toolbar-btn.btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}
#filtersToggleBtn { position: relative; }
#filtersToggleBtn .filters-badge {
position: absolute;
top: -4px;
inset-inline-end: -6px;
background: var(--tasks-primary);
color: #fff;
border-radius: 999px;
font-size: 10px;
padding: 2px 6px;
font-weight: 800;
box-shadow: 0 2px 6px rgba(102, 126, 234, 0.35);
line-height: 1;
}
#refreshTasksBtn.is-loading { opacity: .7; pointer-events: none; }
#refreshTasksBtn.is-loading i { animation: spin 0.9s linear infinite; }
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }
.task-item.is-overdue { border-inline-start: 4px solid var(--tasks-danger); }
.task-item .overdue-dot {
width: 9px; height: 9px; border-radius: 50%; background: var(--tasks-danger);
display: inline-block; margin-inline-end:6px; box-shadow: 0 0 0 2px #fff, 0 0 4px rgba(239,68,68,.5);
}
@media (max-width: 768px) {
.tasks-toolbar {
flex-direction: column;
align-items: stretch;
}
.tasks-toolbar-left,
.tasks-toolbar-right {
width: 100%;
justify-content: space-between;
}
.tasks-filters {
padding-inline-start: 0;
border-inline-start: none;
padding-top: 8px;
border-top: 1px solid #e9ecef;
width: 100%;
justify-content: center;
}
.tasks-toolbar .tasks-search-box {
min-width: auto;
max-width: none;
flex: 1;
}
}
.tasks-content-wrapper > div:first-child {
display: none;
}
.tasks-board {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-top: 12px;
}
.board-column {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 10px;
display: flex;
flex-direction: column;
min-height: 240px;
max-height: 60vh;
}
.board-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 10px;
border-bottom: 1px solid #e5e7eb;
font-weight: 600;
color: #111827;
}
.board-count { color: #6b7280; font-weight: 500; }
.board-list {
padding: 8px;
overflow: auto;
flex: 1;
}
.board-item {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 8px;
margin-bottom: 8px;
cursor: grab;
}
.board-item:active { cursor: grabbing; }
.board-item .title { font-weight: 600; margin-bottom: 4px; color: #111827; }
.board-item .meta { font-size: 12px; color: #6b7280; display: flex; gap: 8px; flex-wrap: wrap; }
.board-item .meta .priority { font-weight: 600; }
.board-drop-hover { outline: 2px dashed #3b82f6; outline-offset: -6px; }
@media (max-width: 900px) {
.tasks-board { grid-template-columns: repeat(2, 1fr); }
}
.comments-list, .attachments-list {
list-style: none;
margin: 0;
padding: 0;
}
.comments-list li, .attachments-list li {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 8px 10px;
margin-bottom: 8px;
}
.comments-list li .c-text { color: #111827; margin-bottom: 4px; }
.comments-list li .c-meta { font-size: 12px; color: #6b7280; }
.attachments-list li a { color: #1f2937; text-decoration: none; }
.attachments-list li a:hover { text-decoration: underline; }
.attachments-list li button.btn-link.btn-sm {
background: transparent; border: none; color: #ef4444; margin-right: 8px; cursor: pointer;
}
.attachments-list li button.btn-link.btn-sm:hover { color: #b91c1c; }
@media (max-width: 600px) {
.tasks-board { grid-template-columns: 1fr; }
}
.task-attachments-badge {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 4px;
font-size: 12px;
background: var(--tasks-bg);
color: var(--tasks-text);
border-radius: 999px;
padding: 3px 10px;
width: fit-content;
border: 1px solid var(--tasks-border);
}
.task-attachments-badge i {
color: var(--tasks-text-light);
}
.chart-download-btn {
position: absolute;
top: 12px;
right: 12px;
border: none;
background: transparent;
color: var(--tasks-text-light);
cursor: pointer;
padding: 6px;
border-radius: 6px;
transition: all 0.2s ease;
}
.chart-download-btn:hover {
color: var(--tasks-primary);
background: var(--tasks-bg);
}
.chart-card canvas {
width: 100% !important;
min-height: 200px;
}
.tasks-list {
display: flex;
flex-direction: column;
gap: 14px;
min-height: 300px;
}
.task-item {
background: white;
border-radius: 12px;
position: relative;
padding: 18px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
border: 1px solid var(--tasks-border);
transition: all 0.2s ease;
border-left: 4px solid transparent;
}
.task-item:hover {
transform: translateY(-3px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
border-color: var(--tasks-border);
}
.task-item.pending {
border-left-color: var(--tasks-warning);
}
.task-item.in_progress {
border-left-color: var(--tasks-info);
}
.task-item.completed {
border-left-color: var(--tasks-success);
opacity: 0.8;
}
.task-item-info {
display: flex;
align-items: flex-start;
gap: 14px;
flex: 1;
}
.task-item-icon {
width: 50px;
height: 50px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
flex-shrink: 0;
background: var(--tasks-bg);
color: var(--tasks-text-light);
}
.task-item-icon.priority-high {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
color: white;
}
.task-item-icon.priority-medium {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
}
.task-item-icon.priority-low {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.task-item-details {
flex: 1;
}
.task-item-title {
margin: 0 0 8px;
font-size: 16px;
font-weight: 600;
color: #1e293b;
}
.task-item-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
.task-action-btn[disabled] {
opacity: 0.6;
cursor: not-allowed;
filter: grayscale(0.2);
}
.task-action-btn.is-loading {
pointer-events: none;
}
.task-action-btn.is-loading i {
margin-inline-end: 6px;
}
.task-inline-error {
margin-top: 6px;
color: #b42318;
background: #fee4e2;
border: 1px solid #fecdca;
border-radius: 6px;
padding: 6px 8px;
font-size: 12px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.task-inline-error i {
color: #d92d20;
}
.task-inline-error .retry-btn {
margin-inline-start: 8px;
padding: 4px 8px;
font-size: 12px;
border-radius: 6px;
border: 1px solid #ea580c;
background: #fff7ed;
color: #9a3412;
cursor: pointer;
}
.task-inline-error .retry-btn:hover {
background: #ffedd5;
}
.tasks-skeleton {
display: flex;
flex-direction: column;
gap: 12px;
}
.task-item.skeleton {
border: 1px solid rgba(0,0,0,0.06);
border-radius: 12px;
padding: 12px;
background: var(--tp-surface, #ffffff);
}
.task-item.skeleton .task-item-info {
display: flex;
gap: 12px;
}
.skeleton-block {
position: relative;
display: inline-block;
background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 75%);
background-size: 200% 100%;
border-radius: 6px;
animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-block.circle { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-block.title { width: 220px; height: 16px; }
.skeleton-block.badge { width: 64px; height: 16px; }
.skeleton-block.tag { width: 84px; height: 12px; }
.skeleton-block.tag.wide { width: 140px; height: 12px; }
.skeleton-block.text { width: 90%; height: 12px; margin-top: 10px; }
.skeleton-block.btn { width: 84px; height: 32px; border-radius: 8px; }
.skeleton-block.btn.wide { width: 120px; }
@keyframes skeleton-shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
align-items: center;
margin-bottom: 8px;
}
.task-status-badge {
padding: 4px 10px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
}
.task-status-badge.status-pending {
background: #fef3c7;
color: #f59e0b;
}
.task-status-badge.status-in_progress {
background: #dbeafe;
color: #3b82f6;
}
.task-status-badge.status-completed {
background: #d1fae5;
color: #10b981;
}
.task-item-date {
font-size: 13px;
color: #64748b;
}
.task-item-date.overdue {
color: #ef4444;
font-weight: 600;
}
.task-item-date.today {
color: #f59e0b;
font-weight: 600;
}
.task-item-date.soon {
color: #3b82f6;
font-weight: 600;
}
.task-item-type,
.task-item-user {
font-size: 13px;
color: #64748b;
}
.task-item-note {
margin: 8px 0 0;
font-size: 14px;
color: #64748b;
line-height: 1.5;
}
.task-item-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.task-action-btn {
padding: 8px 16px;
border: none;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 6px;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
}
.task-action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}
.task-action-btn.btn-success {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.task-action-btn.btn-secondary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.loading-spinner {
text-align: center;
padding: 60px 20px;
color: #64748b;
}
.loading-spinner i {
font-size: 48px;
margin-bottom: 16px;
color: #4facfe;
}
.loading-spinner p {
font-size: 16px;
margin: 0;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #94a3b8;
}
.empty-state i {
font-size: 64px;
margin-bottom: 16px;
opacity: 0.5;
}
.empty-state p {
font-size: 16px;
margin: 0;
}
.tasks-modal .client-modal-footer {
padding: 20px 24px;
background: var(--tasks-bg);
border-top: 1px solid var(--tasks-border);
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
border-radius: 0 0 16px 16px;
}
.tasks-modal .btn-primary,
.tasks-modal .btn-secondary {
padding: 11px 24px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}
.tasks-modal .btn-primary {
background: linear-gradient(135deg, var(--tasks-primary) 0%, var(--tasks-secondary) 100%);
color: white;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.tasks-modal .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.tasks-modal .btn-secondary {
background: white;
color: var(--tasks-text-light);
border: 2px solid var(--tasks-border);
}
.tasks-modal .btn-secondary:hover {
background: var(--tasks-bg);
border-color: var(--tasks-primary);
color: var(--tasks-primary);
transform: translateY(-2px);
}
@media (max-width: 768px) {
.tasks-stats-overview {
grid-template-columns: repeat(2, 1fr);
}
.task-item {
flex-direction: column;
align-items: flex-start;
}
.task-item-actions {
width: 100%;
justify-content: flex-end;
}
.tasks-filters {
flex-direction: column;
}
.task-filter-btn {
width: 100%;
justify-content: center;
}
}
.task-header-row {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.task-priority-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
text-transform: uppercase;
flex-shrink: 0;
transition: all 0.2s ease;
}
.task-priority-badge i {
font-size: 10px;
}
.task-priority-badge.priority-urgent {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
color: #dc2626;
border: 1px solid #fca5a5;
box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}
.task-priority-badge.priority-high {
background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
color: #ea580c;
border: 1px solid #fb923c;
box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}
.task-priority-badge.priority-medium {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: #2563eb;
border: 1px solid #93c5fd;
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.task-priority-badge.priority-low {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
color: #64748b;
border: 1px solid #cbd5e1;
box-shadow: 0 2px 8px rgba(100, 116, 139, 0.1);
}
.task-item-icon.priority-urgent {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
color: #dc2626;
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.task-item-icon.priority-high {
background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
color: #ea580c;
box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
.task-item-icon.priority-medium {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: #2563eb;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.task-item-icon.priority-low {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
color: #64748b;
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}
.task-item:hover .task-item-icon {
transform: scale(1.05);
}
.user-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
transition: all 0.2s ease;
flex-shrink: 0;
}
.user-avatar:hover {
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.task-item-user {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: #475569;
font-weight: 500;
background: #f8fafc;
padding: 4px 10px 4px 4px;
border-radius: 999px;
}
.task-item-date {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 500;
padding: 4px 10px;
border-radius: 6px;
transition: all 0.2s ease;
}
.task-item-date i {
font-size: 12px;
}
.task-item-date.overdue {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
color: #dc2626;
font-weight: 700;
box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}
.task-item-date.today {
background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
color: #ea580c;
font-weight: 700;
box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}
.task-item-date.soon {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: #ca8a04;
font-weight: 600;
box-shadow: 0 2px 8px rgba(202, 138, 4, 0.15);
}
.task-item-type {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: #6366f1;
background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
padding: 4px 10px;
border-radius: 6px;
font-weight: 600;
}
.task-item-type i {
font-size: 11px;
}
.task-action-btn {
padding: 10px 18px;
border: none;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.task-action-btn i {
font-size: 14px;
transition: transform 0.2s ease;
}
.task-action-btn:hover i {
transform: scale(1.1);
}
.task-action-btn:active {
transform: scale(0.98);
}
.task-action-btn.btn-edit {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.task-action-btn.btn-edit:hover {
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
transform: translateY(-2px);
}
.task-action-btn.btn-complete {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: white;
}
.task-action-btn.btn-complete:hover {
box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
transform: translateY(-2px);
}
.task-action-btn.btn-reopen {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
color: white;
}
.task-action-btn.btn-reopen:hover {
box-shadow: 0 4px 16px rgba(250, 112, 154, 0.3);
transform: translateY(-2px);
}
.task-item-note {
margin: 12px 0 0;
font-size: 13px;
color: #64748b;
line-height: 1.6;
padding: 10px 14px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-radius: 8px;
border-left: 3px solid #cbd5e1;
position: relative;
}
.task-item-note:before {
content: '\f05a';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
position: absolute;
right: 14px;
top: 10px;
color: #94a3b8;
font-size: 12px;
}
@media (max-width: 768px) {
.task-header-row {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.task-priority-badge {
align-self: flex-start;
}
.user-avatar {
width: 24px;
height: 24px;
font-size: 10px;
}
.task-action-btn {
padding: 8px 14px;
font-size: 12px;
}
.tasks-stats-overview {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.task-stat-card {
padding: 16px;
gap: 12px;
}
.task-stat-card i {
width: 48px;
height: 48px;
font-size: 24px;
}
.stat-value {
font-size: 24px;
}
.stat-label {
font-size: 11px;
}
}
@media (max-width: 480px) {
.tasks-stats-overview {
grid-template-columns: 1fr;
}
.task-stat-card {
padding: 14px;
}
.task-stat-card i {
width: 44px;
height: 44px;
font-size: 20px;
}
.stat-value {
font-size: 20px;
}
}
.tasks-results-count {
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
padding: 12px 20px;
border-radius: 10px;
margin-bottom: 16px;
font-size: 14px;
font-weight: 600;
color: #475569;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.tasks-results-count i {
color: #4facfe;
font-size: 16px;
}
.tasks-advanced-filters {
background: white;
border-radius: 16px;
padding: 24px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
border: 2px solid #f1f5f9;
}
.filter-group {
margin-bottom: 20px;
}
.filter-group:last-child {
margin-bottom: 0;
}
.filter-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
color: #1e293b;
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.filter-label i {
color: #4facfe;
font-size: 16px;
}
.search-input-wrapper {
position: relative;
width: 100%;
}
.search-input-wrapper i.fa-search {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
font-size: 16px;
pointer-events: none;
}
.task-search-input {
width: 100%;
padding: 14px 48px 14px 48px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-size: 15px;
font-family: var(--modal-font-arabic);
transition: all 0.3s ease;
background: #f8fafc;
}
.task-search-input:focus {
outline: none;
border-color: #4facfe;
background: white;
box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}
.task-search-input::placeholder {
color: #94a3b8;
}
.clear-search {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
background: #ef4444;
border: none;
width: 28px;
height: 28px;
border-radius: 50%;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.clear-search:hover {
background: #dc2626;
transform: translateY(-50%) scale(1.1);
}
.filter-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.filter-btn {
background: #f8fafc;
border: 2px solid #e2e8f0;
color: #64748b;
padding: 10px 16px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 6px;
position: relative;
}
.filter-btn i {
font-size: 12px;
}
.filter-btn:hover {
background: #e2e8f0;
border-color: #cbd5e1;
transform: translateY(-2px);
}
.filter-btn.active {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
border-color: #4facfe;
color: white;
box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}
.filter-count {
background: rgba(0, 0, 0, 0.1);
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
margin-left: 4px;
}
.filter-btn.active .filter-count {
background: rgba(255, 255, 255, 0.25);
}
.filter-btn.priority-urgent.active {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
border-color: #fca5a5;
color: #dc2626;
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.filter-btn.priority-high.active {
background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
border-color: #fb923c;
color: #ea580c;
box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
.filter-btn.priority-medium.active {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
border-color: #93c5fd;
color: #2563eb;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.filter-btn.priority-low.active {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
border-color: #cbd5e1;
color: #64748b;
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}
.filter-select {
width: 100%;
padding: 12px 16px;
border: 2px solid #e2e8f0;
border-radius: 10px;
font-size: 14px;
font-family: var(--modal-font-arabic);
background: #f8fafc;
cursor: pointer;
transition: all 0.3s ease;
}
.filter-select:focus {
outline: none;
border-color: #4facfe;
background: white;
box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}
.btn-clear-filters {
background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
border: none;
color: white;
padding: 12px 20px;
border-radius: 10px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
width: 100%;
justify-content: center;
}
.btn-clear-filters:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.btn-clear-filters:active {
transform: translateY(0);
}
.btn-clear-filters i {
font-size: 14px;
}
@media (max-width: 768px) {
.tasks-advanced-filters {
padding: 16px;
}
.filter-buttons {
gap: 6px;
}
.filter-btn {
padding: 8px 12px;
font-size: 12px;
}
.task-search-input {
padding: 12px 40px;
font-size: 14px;
}
}
@media (max-width: 480px) {
.filter-buttons {
flex-direction: column;
}
.filter-btn {
width: 100%;
justify-content: center;
}
}
.tasks-export-bar {
background: #ffffff;
border: 2px solid #f1f5f9;
border-radius: 12px;
padding: 12px 16px;
margin: 16px 0 20px;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
flex-wrap: wrap;
}
.export-label {
display: flex; align-items: center; gap: 8px;
font-size: 14px; font-weight: 700; color: #334155;
}
.export-label i { color: #0ea5e9; }
.export-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.export-btn {
background: #f8fafc; border: 2px solid #e2e8f0; color: #475569;
padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
transition: all 0.2s ease;
}
.export-btn:hover { background: #e2e8f0; transform: translateY(-2px); }
.export-btn i { font-size: 14px; }
.export-btn.btn-csv { border-color: #22c55e; color: #16a34a; }
.export-btn.btn-print { border-color: #0ea5e9; color: #0284c7; }
.export-btn.btn-copy { border-color: #a855f7; color: #7e22ce; }
@media (max-width: 768px) {
.tasks-export-bar { padding: 10px 12px; }
.export-btn { padding: 8px 12px; font-size: 12px; }
}
.tasks-sort-bar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
padding: 16px 20px;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 16px;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
flex-wrap: wrap;
}
.sort-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
color: white;
text-transform: uppercase;
letter-spacing: 0.5px;
flex-shrink: 0;
}
.sort-label i {
font-size: 16px;
}
.sort-buttons {
display: flex;
gap: 8px;
flex-wrap: wrap;
flex: 1;
}
.sort-btn {
background: rgba(255, 255, 255, 0.15);
border: 2px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 10px 16px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
position: relative;
backdrop-filter: blur(10px);
}
.sort-btn i:first-child {
font-size: 14px;
}
.sort-btn:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.sort-btn.active {
background: white;
color: #667eea;
border-color: white;
box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}
.sort-btn.active:hover {
transform: translateY(-2px) scale(1.02);
}
.sort-direction {
font-size: 11px;
margin-left: 4px;
transition: transform 0.3s ease;
opacity: 0.8;
}
.sort-btn.active .sort-direction {
opacity: 1;
}
.sort-btn:not(.active) .sort-direction {
opacity: 0;
}
.sort-btn.active:hover .sort-direction {
transform: scale(1.2);
}
@media (max-width: 768px) {
.tasks-sort-bar {
padding: 14px 16px;
}
.sort-label {
font-size: 13px;
}
.sort-buttons {
gap: 6px;
width: 100%;
}
.sort-btn {
padding: 8px 12px;
font-size: 12px;
flex: 1;
justify-content: center;
}
}
@media (max-width: 480px) {
.tasks-sort-bar {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.sort-label {
justify-content: center;
}
.sort-buttons {
flex-direction: column;
}
.sort-btn {
width: 100%;
}
}
.tasks-content-wrapper {
position: relative;
}
.sort-indicator {
display: inline-flex;
align-items: center;
gap: 6px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
margin-right: 8px;
}
.sort-indicator i {
font-size: 11px;
}
.tasks-bulk-bar {
position: fixed;
bottom: -80px;
left: 50%;
transform: translateX(-50%);
width: 90%;
max-width: 1100px;
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
border-radius: 16px 16px 0 0;
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
padding: 16px 24px;
z-index: 10002;
transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tasks-bulk-bar.active {
bottom: 0;
}
.bulk-bar-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.bulk-bar-info {
display: flex;
align-items: center;
gap: 12px;
}
.bulk-select-all-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
width: 36px;
height: 36px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.bulk-select-all-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
}
.bulk-count {
color: #fff;
font-weight: 700;
font-size: 14px;
}
.bulk-bar-actions {
display: flex;
align-items: center;
gap: 8px;
}
.bulk-action-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
padding: 8px 16px;
border-radius: 8px;
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
transition: all 0.2s ease;
font-size: 13px;
font-weight: 600;
}
.bulk-action-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
}
.bulk-action-btn i {
font-size: 14px;
}
.bulk-action-btn.bulk-danger {
background: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.4);
}
.bulk-action-btn.bulk-danger:hover {
background: rgba(239, 68, 68, 0.3);
}
.bulk-clear-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
width: 36px;
height: 36px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
margin-inline-start: 8px;
}
.bulk-clear-btn:hover {
background: rgba(239, 68, 68, 0.2);
}
.task-checkbox-wrapper {
display: flex;
align-items: center;
margin-inline-end: 12px;
position: relative;
cursor: pointer;
}
.task-bulk-checkbox {
position: absolute;
opacity: 0;
cursor: pointer;
}
.task-checkbox-custom {
width: 20px;
height: 20px;
border: 2px solid #cbd5e1;
border-radius: 6px;
background: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.task-bulk-checkbox:checked ~ .task-checkbox-custom {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
border-color: #2563eb;
}
.task-bulk-checkbox:checked ~ .task-checkbox-custom::after {
content: '\f00c';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
color: #fff;
font-size: 11px;
}
.task-checkbox-wrapper:hover .task-checkbox-custom {
border-color: #3b82f6;
transform: scale(1.1);
}
.task-item {
display: flex;
align-items: flex-start;
gap: 0;
}
.bulk-priority-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 10003;
display: flex;
align-items: center;
justify-content: center;
}
.bulk-priority-modal {
background: #fff;
border-radius: 16px;
padding: 24px;
max-width: 400px;
width: 90%;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.bulk-priority-modal h3 {
margin: 0 0 20px;
color: #0f172a;
font-size: 18px;
font-weight: 700;
}
.priority-options {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 20px;
}
.priority-option {
background: #f8fafc;
border: 2px solid #e2e8f0;
border-radius: 12px;
padding: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.priority-option:hover {
background: #fff;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.priority-option i {
font-size: 24px;
}
.priority-option span {
font-weight: 600;
color: #334155;
}
.bulk-modal-cancel {
width: 100%;
background: #f1f5f9;
border: none;
border-radius: 8px;
padding: 12px;
color: #64748b;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.bulk-modal-cancel:hover {
background: #e2e8f0;
}
@media (max-width: 768px) {
.tasks-bulk-bar {
width: 100%;
border-radius: 12px 12px 0 0;
padding: 12px 16px;
}
.bulk-bar-content {
flex-direction: column;
gap: 12px;
}
.bulk-bar-actions {
width: 100%;
flex-wrap: wrap;
justify-content: center;
}
.bulk-action-btn span {
display: none;
}
.bulk-action-btn {
padding: 8px 12px;
}
}
.sub-modal {
position: fixed !important;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2147483650 !important;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--modal-font-arabic);
direction: rtl;
}
.sub-modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
z-index: 2147483649 !important;
}
.sub-modal-content {
position: relative;
background: white;
z-index: 2147483651 !important;
border-radius: 16px;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow: hidden;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
display: flex;
flex-direction: column;
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-30px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.sub-modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sub-modal-header h3 {
margin: 0;
font-size: 20px;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
}
.sub-modal-header h3 i {
font-size: 22px;
}
.close-sub-modal {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.close-sub-modal:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
.sub-modal-body {
padding: 24px;
overflow-y: auto;
flex: 1;
max-height: calc(90vh - 140px);
}
.sub-modal-body::-webkit-scrollbar {
width: 8px;
}
.sub-modal-body::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.sub-modal-body::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
.sub-modal-body::-webkit-scrollbar-thumb:hover {
background: #a1a1a1;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 14px;
color: #374151;
display: flex;
align-items: center;
gap: 8px;
}
.form-group label i {
color: #667eea;
font-size: 16px;
}
.form-group label .required {
color: #dc2626;
font-size: 16px;
}
.form-control {
width: 100%;
padding: 12px 16px;
border: 2px solid #e5e7eb;
border-radius: 10px;
font-size: 14px;
font-family: var(--modal-font-arabic);
transition: all 0.2s ease;
background: white;
color: #1f2937;
}
.form-control:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.form-control::placeholder {
color: #9ca3af;
}
textarea.form-control {
resize: vertical;
min-height: 80px;
}
select.form-control {
cursor: pointer;
padding-right: 40px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: left 16px center;
background-size: 12px;
}
.form-row {
display: flex;
gap: 16px;
margin-bottom: 20px;
}
.form-row .form-group {
margin-bottom: 0;
}
.col-md-6 {
flex: 1;
}
.sub-modal-footer {
padding: 16px 24px;
background: #f9fafb;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 12px;
justify-content: flex-start;
}
.sub-modal-footer button {
padding: 12px 24px;
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
font-family: var(--modal-font-arabic);
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #e5e7eb;
color: #374151;
}
.btn-secondary:hover {
background: #d1d5db;
}
.btn-danger {
background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
color: white;
}
.btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}
.confirm-modal {
position: fixed !important;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2147483647 !important;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--modal-font-arabic);
direction: rtl;
}
.confirm-modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: -1;
}
.confirm-modal-content {
position: relative;
background: white;
border-radius: 16px;
width: 90%;
max-width: 450px;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
animation: modalBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes modalBounceIn {
0% {
opacity: 0;
transform: scale(0.5);
}
50% {
transform: scale(1.05);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.confirm-modal-header {
padding: 24px;
text-align: center;
border-bottom: 1px solid #e5e7eb;
}
.warning-icon {
font-size: 64px;
color: #dc2626;
margin-bottom: 16px;
animation: shake 0.5s ease;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.confirm-modal-header h3 {
margin: 0;
font-size: 20px;
font-weight: 700;
color: #1f2937;
}
.confirm-modal-body {
padding: 24px;
text-align: center;
}
.confirm-modal-body p {
margin: 0 0 12px 0;
font-size: 15px;
color: #6b7280;
}
.task-title-preview {
font-weight: 700;
color: #1f2937;
background: #f3f4f6;
padding: 12px 16px;
border-radius: 8px;
font-size: 16px !important;
margin: 16px 0 !important;
}
.warning-text {
color: #dc2626;
font-weight: 600;
font-size: 13px !important;
margin-top: 16px !important;
}
.confirm-modal-footer {
padding: 16px 24px;
background: #f9fafb;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 12px;
justify-content: center;
}
.settings-modal.sub-modal,
#tasksNotificationSettingsModal {
z-index: 2147483660 !important;
}
#tasksNotificationSettingsModal .sub-modal-backdrop {
z-index: 2147483659 !important;
}
#tasksNotificationSettingsModal .sub-modal-content {
z-index: 2147483661 !important;
position: relative;
}
.settings-modal .settings-section {
background: #f8fafc;
border-radius: 12px;
padding: 16px;
margin-bottom: 16px;
border: 1px solid #e2e8f0;
}
.settings-modal .settings-section h4 {
margin: 0 0 12px 0;
color: #0f172a;
font-size: 16px;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
}
.settings-modal .settings-section h4 i {
color: #4facfe;
font-size: 18px;
}
.settings-modal .setting-item {
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px solid #e2e8f0;
}
.settings-modal .setting-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.settings-modal .setting-label {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
font-weight: 600;
color: #334155;
font-size: 14px;
margin-bottom: 4px;
}
.settings-modal .setting-label input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: #4facfe;
}
.settings-modal .setting-description {
margin: 4px 0 0 30px;
color: #64748b;
font-size: 13px;
line-height: 1.5;
}
.settings-modal .settings-info {
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 10px;
padding: 12px 16px;
display: flex;
gap: 12px;
align-items: flex-start;
margin-top: 16px;
}
.settings-modal .settings-info i {
color: #3b82f6;
font-size: 18px;
margin-top: 2px;
}
.settings-modal .settings-info p {
margin: 0;
color: #1e40af;
font-size: 13px;
line-height: 1.6;
}
.btn-sm {
padding: 6px 12px;
font-size: 13px;
}
@media (max-width: 768px) {
.sub-modal-content {
width: 95%;
max-height: 95vh;
}
.sub-modal-header {
padding: 16px 20px;
}
.sub-modal-header h3 {
font-size: 18px;
}
.sub-modal-body {
padding: 20px;
}
.form-row {
flex-direction: column;
gap: 0;
}
.form-row .form-group {
margin-bottom: 20px;
}
.sub-modal-footer {
flex-direction: column-reverse;
}
.sub-modal-footer button {
width: 100%;
justify-content: center;
}
.confirm-modal-content {
width: 95%;
}
.warning-icon {
font-size: 48px;
}
}
@media (max-width: 480px) {
.form-control {
padding: 10px 14px;
font-size: 14px;
}
.sub-modal-footer button {
padding: 10px 20px;
font-size: 14px;
}
}
.tasks-modal .client-modal-header.compact-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 10px 16px;
min-height: 0;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.compact-header .modal-title-section {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
padding-inline-end: 84px;
}
.compact-header .modal-title-section > i {
font-size: 18px;
color: white;
opacity: 0.95;
}
.compact-header .title-text {
display: flex;
align-items: center;
gap: 10px;
}
.compact-header .title-text h2 {
margin: 0;
font-size: 15px;
font-weight: 600;
color: white;
line-height: 1;
white-space: nowrap;
}
.compact-header .client-name-badge {
background: rgba(255, 255, 255, 0.18);
color: #fff;
padding: 4px 10px;
border-radius: 10px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
}
.compact-header .header-actions-compact {
display: flex;
align-items: center;
gap: 6px;
position: absolute;
top: 8px;
inset-inline-end: 12px;
}
.compact-header .action-btn-icon {
background: rgba(255, 255, 255, 0.15);
border: none;
width: 32px;
height: 32px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: white;
font-size: 14px;
}
.compact-header .action-btn-icon:hover {
background: rgba(255, 255, 255, 0.25);
transform: scale(1.05);
}
.compact-header .action-btn-icon:active {
transform: scale(0.95);
}
.compact-header .action-btn-icon.btn-close:hover {
background: rgba(239, 68, 68, 0.9);
}
@media (max-width: 768px) {
.compact-header .client-name-badge {
max-width: 120px;
font-size: 12px;
padding: 3px 10px;
}
.compact-header .title-text h2 {
font-size: 15px;
}
.compact-header .modal-title-section > i {
font-size: 16px;
}
}
@media (max-width: 480px) {
.tasks-modal .client-modal-header.compact-header {
padding: 10px 16px;
min-height: 48px;
}
.compact-header .client-name-badge {
display: none;
}
.compact-header .action-btn-icon {
width: 28px;
height: 28px;
font-size: 13px;
}
}

/* === settings-modal.css === */
.settings-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 100000;
opacity: 0;
transition: opacity 0.3s ease;
overflow-y: auto;
padding: 20px;
}
.settings-modal.show {
display: flex !important;
align-items: center;
justify-content: center;
opacity: 1;
animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.settings-modal-content {
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.98) 0%,
rgba(248, 250, 252, 0.95) 100%);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 20px;
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.3),
0 10px 30px rgba(0, 0, 0, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
width: 100%;
max-width: 700px;
max-height: 90vh;
display: flex;
flex-direction: column;
transform: scale(0.9);
opacity: 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-modal.show .settings-modal-content {
transform: scale(1);
opacity: 1;
animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes slideUp {
from {
transform: translateY(30px) scale(0.95);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}
.settings-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 28px;
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
border-radius: 20px 20px 0 0;
}
.settings-modal-header h2 {
margin: 0;
font-size: 24px;
font-weight: 700;
color: #1e293b;
font-family: 'Cairo', 'Tajawal', sans-serif;
display: flex;
align-items: center;
gap: 12px;
}
.settings-modal-header h2 i {
color: #3b82f6;
font-size: 26px;
}
.close-settings {
background: rgba(239, 68, 68, 0.1);
border: none;
width: 36px;
height: 36px;
border-radius: 10px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #ef4444;
font-size: 18px;
transition: all 0.3s ease;
}
.close-settings:hover {
background: #ef4444;
color: white;
transform: rotate(90deg) scale(1.1);
}
.settings-modal-body {
padding: 24px 28px;
overflow-y: auto;
flex: 1;
max-height: calc(90vh - 180px);
}
.settings-modal-body::-webkit-scrollbar {
width: 8px;
}
.settings-modal-body::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 10px;
}
.settings-modal-body::-webkit-scrollbar-thumb {
background: rgba(59, 130, 246, 0.3);
border-radius: 10px;
}
.settings-modal-body::-webkit-scrollbar-thumb:hover {
background: rgba(59, 130, 246, 0.5);
}
.settings-section {
margin-bottom: 32px;
padding: 20px;
background: rgba(255, 255, 255, 0.6);
border-radius: 16px;
border: 1px solid rgba(0, 0, 0, 0.06);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.settings-section:last-child {
margin-bottom: 0;
}
.settings-section h3 {
margin: 0 0 20px 0;
font-size: 18px;
font-weight: 700;
color: #334155;
font-family: 'Cairo', 'Tajawal', sans-serif;
display: flex;
align-items: center;
gap: 10px;
padding-bottom: 12px;
border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}
.settings-section h3 i {
color: #3b82f6;
font-size: 20px;
}
.setting-item {
margin-bottom: 20px;
}
.setting-item:last-child {
margin-bottom: 0;
}
.setting-item label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: 600;
color: #475569;
font-family: 'Cairo', 'Tajawal', sans-serif;
}
.setting-input {
width: 100%;
padding: 12px 16px;
border: 2px solid rgba(0, 0, 0, 0.1);
border-radius: 12px;
font-size: 15px;
font-family: 'Cairo', 'Tajawal', sans-serif;
background: white;
color: #1e293b;
transition: all 0.3s ease;
}
.setting-input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.setting-input:hover {
border-color: rgba(59, 130, 246, 0.3);
}
.checkbox-label {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
padding: 12px;
border-radius: 10px;
transition: background 0.3s ease;
}
.checkbox-label:hover {
background: rgba(59, 130, 246, 0.05);
}
.checkbox-label input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: #3b82f6;
}
.checkbox-label span {
font-size: 15px;
font-weight: 500;
color: #475569;
font-family: 'Cairo', 'Tajawal', sans-serif;
}
.settings-modal-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 28px;
border-top: 1px solid rgba(0, 0, 0, 0.08);
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border-radius: 0 0 20px 20px;
}
.footer-actions {
display: flex;
gap: 12px;
}
.btn-primary,
.btn-success,
.btn-secondary {
padding: 12px 24px;
border: none;
border-radius: 12px;
font-size: 15px;
font-weight: 600;
font-family: 'Cairo', 'Tajawal', sans-serif;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
}
.btn-primary:hover {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
}
.btn-success:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
background: linear-gradient(135deg, #64748b 0%, #475569 100%);
color: white;
}
.btn-secondary:hover {
background: linear-gradient(135deg, #475569 0%, #334155 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}
.btn-primary:active,
.btn-success:active,
.btn-secondary:active {
transform: translateY(0);
}
body.dark-mode .settings-modal-content {
background: linear-gradient(135deg,
rgba(15, 23, 42, 0.98) 0%,
rgba(30, 41, 59, 0.95) 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .settings-modal-header {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .settings-modal-header h2 {
color: #f1f5f9;
}
body.dark-mode .settings-modal-footer {
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .settings-section {
background: rgba(15, 23, 42, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .settings-section h3 {
color: #e2e8f0;
border-bottom-color: rgba(59, 130, 246, 0.3);
}
body.dark-mode .setting-item label {
color: #cbd5e1;
}
body.dark-mode .setting-input {
background: rgba(15, 23, 42, 0.8);
border-color: rgba(255, 255, 255, 0.1);
color: #e2e8f0;
}
body.dark-mode .setting-input:focus {
border-color: #3b82f6;
background: rgba(15, 23, 42, 0.9);
}
body.dark-mode .checkbox-label span {
color: #cbd5e1;
}
body.dark-mode .checkbox-label:hover {
background: rgba(59, 130, 246, 0.1);
}
@media (max-width: 768px) {
.settings-modal {
padding: 10px;
}
.settings-modal-content {
max-width: 100%;
border-radius: 16px;
}
.settings-modal-header,
.settings-modal-body,
.settings-modal-footer {
padding: 16px 20px;
}
.settings-modal-header h2 {
font-size: 20px;
}
.settings-section {
padding: 16px;
}
.settings-modal-footer {
flex-direction: column;
gap: 12px;
}
.footer-actions {
width: 100%;
flex-direction: column;
}
.btn-primary,
.btn-success,
.btn-secondary {
width: 100%;
justify-content: center;
}
}

/* === client-declarations-modal.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
--modal-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}
.declarations-modal {
font-family: var(--modal-font-arabic);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999999;
display: none;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.declarations-modal.active {
display: flex;
opacity: 1;
}
.declarations-modal .modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.declarations-modal .modal-container {
position: relative;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 90%;
width: 90%;
max-height: 90vh;
overflow: hidden;
animation: slideInDown 0.3s ease-out;
z-index: 1;
display: flex;
flex-direction: column;
}
@keyframes slideInDown {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.declarations-modal .modal-header {
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
color: #ffffff;
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
border-bottom: none;
}
.declarations-modal .modal-title {
margin: 0;
font-size: 20px;
font-weight: 600;
display: flex;
align-items: center;
gap: 12px;
font-family: var(--modal-font-arabic);
letter-spacing: -0.02em;
}
.declarations-modal .modal-title i {
font-size: 24px;
opacity: 0.9;
}
.declarations-modal .client-name {
font-weight: 700;
background: rgba(255, 255, 255, 0.15);
padding: 4px 12px;
border-radius: 6px;
font-size: 16px;
font-family: var(--modal-font-arabic);
}
.declarations-modal .modal-close {
background: rgba(255, 255, 255, 0.15);
border: none;
color: #ffffff;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
font-size: 18px;
}
.declarations-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.25);
transform: rotate(90deg);
}
.declarations-modal .modal-tabs {
display: flex;
background: #f8f9fa;
border-bottom: 2px solid #e2e8f0;
padding: 0 16px;
gap: 8px;
overflow-x: auto;
}
.declarations-modal .modal-tab {
background: transparent;
border: none;
padding: 16px 20px;
font-size: 14px;
font-weight: 500;
color: #64748b;
cursor: pointer;
transition: all 0.2s;
border-bottom: 3px solid transparent;
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
font-family: var(--modal-font-arabic);
}
.declarations-modal .modal-tab i {
font-size: 16px;
}
.declarations-modal .modal-tab:hover {
color: #22c55e;
background: rgba(34, 197, 94, 0.05);
}
.declarations-modal .modal-tab.active {
color: #22c55e;
border-bottom-color: #22c55e;
font-weight: 600;
}
.declarations-modal .modal-body {
padding: 24px;
background: #ffffff;
overflow-y: auto;
flex: 1;
}
.declarations-modal .tab-content {
display: none;
}
.declarations-modal .tab-content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.declarations-placeholder {
text-align: center;
padding: 80px 20px;
color: #94a3b8;
}
.declarations-placeholder .placeholder-icon {
font-size: 64px;
color: #cbd5e1;
margin-bottom: 20px;
}
.declarations-placeholder h3 {
font-size: 20px;
font-weight: 600;
color: #475569;
margin: 0 0 12px 0;
font-family: var(--modal-font-arabic);
}
.declarations-placeholder p {
font-size: 15px;
color: #94a3b8;
margin: 0;
}
.declarations-modal .modal-footer {
background: #ffffff;
padding: 16px 24px;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: flex-end;
gap: 12px;
flex-shrink: 0;
}
.declarations-modal .btn {
padding: 10px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: none;
display: flex;
align-items: center;
gap: 8px;
font-family: var(--modal-font-arabic);
}
.declarations-modal .btn-secondary {
background: #f1f5f9;
color: #475569;
}
.declarations-modal .btn-secondary:hover {
background: #e2e8f0;
}
@media (max-width: 768px) {
.declarations-modal .modal-container {
max-width: 95%;
margin: 20px;
}
.declarations-modal .modal-header {
padding: 16px;
}
.declarations-modal .modal-body {
padding: 16px;
}
.declarations-modal .modal-title {
font-size: 16px;
}
.declarations-modal .client-name {
font-size: 13px;
}
.declarations-modal .modal-tab {
padding: 12px 16px;
font-size: 13px;
}
.declarations-placeholder {
padding: 40px 20px;
}
.declarations-placeholder .placeholder-icon {
font-size: 48px;
}
}
@media (prefers-color-scheme: dark) {
.declarations-modal .modal-container {
background: #1e293b;
}
.declarations-modal .modal-body {
background: #0f172a;
}
.declarations-modal .modal-tabs {
background: #1e293b;
border-bottom-color: #334155;
}
.declarations-modal .modal-tab {
color: #94a3b8;
}
.declarations-modal .modal-tab:hover {
background: rgba(34, 197, 94, 0.1);
}
.declarations-modal .modal-footer {
background: #1e293b;
border-top-color: #334155;
}
}
[dir="rtl"] .declarations-modal .modal-tab {
text-align: right;
}
.declarations-modal *:focus-visible {
outline: 2px solid #22c55e;
outline-offset: 2px;
}
.vat-returns-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.vat-return-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.vat-return-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.vat-return-header {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #e2e8f0;
}
.vat-return-title {
display: flex;
align-items: center;
gap: 12px;
font-family: var(--modal-font-arabic);
color: #1e293b;
}
.vat-return-title i {
color: #22c55e;
font-size: 18px;
}
.period-badge {
background: #22c55e;
color: white;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.status-badge {
padding: 6px 14px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
font-family: var(--modal-font-arabic);
}
.status-primary {
background: #dbeafe;
color: #1e40af;
}
.status-warning {
background: #fef3c7;
color: #92400e;
}
.status-pending {
background: #fef3c7;
color: #92400e;
}
.status-success {
background: #d1fae5;
color: #065f46;
}
.status-danger {
background: #fee2e2;
color: #991b1b;
}
.vat-return-body {
padding: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.vat-section {
background: #f9fafb;
padding: 16px;
border-radius: 8px;
border-right: 4px solid #22c55e;
}
.vat-section h4 {
margin: 0 0 12px 0;
font-size: 15px;
font-weight: 600;
color: #1f2937;
display: flex;
align-items: center;
gap: 8px;
font-family: var(--modal-font-arabic);
}
.vat-section h4 i {
color: #22c55e;
}
.vat-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid #e5e7eb;
font-family: var(--modal-font-arabic);
}
.vat-row:last-child {
border-bottom: none;
}
.vat-row span {
color: #6b7280;
font-size: 14px;
}
.vat-row strong {
color: #1f2937;
font-size: 14px;
font-weight: 600;
}
.vat-row .tax-amount {
color: #22c55e;
}
.vat-row .net-tax.positive {
color: #dc2626;
}
.vat-row .net-tax.negative {
color: #22c55e;
}
.vat-row.notes {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.vat-row.notes p {
margin: 0;
padding: 8px 12px;
background: white;
border-radius: 6px;
font-size: 13px;
color: #475569;
width: 100%;
}
.vat-summary {
grid-column: 1 / -1;
background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
border-right-color: #10b981;
}
.vat-return-footer {
padding: 12px 20px;
background: #f9fafb;
border-top: 1px solid #e2e8f0;
}
.vat-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
color: #6b7280;
font-family: var(--modal-font-arabic);
}
.vat-meta small {
display: flex;
align-items: center;
gap: 6px;
}
.vat-file-link {
display: flex;
align-items: center;
gap: 6px;
color: #3b82f6;
text-decoration: none;
transition: color 0.2s;
}
.vat-file-link:hover {
color: #2563eb;
text-decoration: underline;
}
@media (max-width: 768px) {
.vat-return-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.vat-return-body {
grid-template-columns: 1fr;
padding: 16px;
}
.vat-meta {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
}
.vat-chart-container {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 20px;
margin-bottom: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.vat-chart-header {
margin-bottom: 20px;
}
.vat-chart-header h3 {
font-family: var(--modal-font-arabic);
font-size: 18px;
font-weight: 700;
color: #1e293b;
margin: 0;
display: flex;
align-items: center;
gap: 10px;
}
.vat-chart-header h3 i {
color: #3b82f6;
font-size: 20px;
}
.vat-year-group {
margin-bottom: 20px;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
background: #ffffff;
transition: box-shadow 0.3s ease;
}
.vat-year-group:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.vat-year-header {
background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
padding: 16px 20px;
cursor: pointer;
transition: background 0.3s ease;
border-bottom: 2px solid #e2e8f0;
}
.vat-year-header:hover {
background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}
.vat-year-title {
display: flex;
align-items: center;
gap: 12px;
font-family: var(--modal-font-arabic);
margin-bottom: 12px;
}
.vat-year-icon {
color: #3b82f6;
font-size: 14px;
transition: transform 0.3s ease;
}
.vat-year-title strong {
font-size: 17px;
font-weight: 700;
color: #1e293b;
}
.vat-year-count {
background: #3b82f6;
color: white;
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.vat-year-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
font-family: var(--modal-font-arabic);
}
.vat-summary-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.vat-summary-label {
font-size: 12px;
color: #64748b;
font-weight: 500;
}
.vat-summary-value {
font-size: 16px;
font-weight: 700;
}
.vat-summary-value.sales {
color: #22c55e;
}
.vat-summary-value.purchases {
color: #3b82f6;
}
.vat-summary-value.tax.positive {
color: #dc2626;
}
.vat-summary-value.tax.negative {
color: #22c55e;
}
.vat-year-content {
padding: 16px;
background: #f9fafb;
}
.vat-year-content .vat-return-card {
margin-bottom: 16px;
}
.vat-year-content .vat-return-card:last-child {
margin-bottom: 0;
}
@media (max-width: 768px) {
.vat-year-summary {
grid-template-columns: 1fr;
gap: 12px;
}
.vat-chart-container {
padding: 16px;
}
.vat-year-header {
padding: 12px 16px;
}
.vat-year-title {
flex-wrap: wrap;
}
}
.declarations-modal-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
border-top: 2px solid #e2e8f0;
gap: 16px;
flex-wrap: wrap;
flex-shrink: 0;
}
.declarations-modal-footer .footer-actions-left,
.declarations-modal-footer .footer-actions-right {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.declarations-modal-footer .footer-actions-right {
margin-left: auto;
}
.declarations-modal-footer .btn {
padding: 10px 20px;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
font-family: var(--modal-font-arabic);
}
.declarations-modal-footer .btn i {
font-size: 16px;
}
.declarations-modal-footer .btn-print {
background: linear-gradient(135deg, #64748b 0%, #475569 100%);
color: #ffffff;
box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}
.declarations-modal-footer .btn-print:hover {
background: linear-gradient(135deg, #475569 0%, #334155 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.35);
}
.declarations-modal-footer .btn-print:active {
transform: translateY(0);
}
.declarations-modal-footer .btn-pdf {
background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
color: #ffffff;
box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}
.declarations-modal-footer .btn-pdf:hover {
background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.declarations-modal-footer .btn-pdf:active {
transform: translateY(0);
}
.declarations-modal-footer .btn-excel {
background: linear-gradient(135deg, #059669 0%, #10b981 100%);
color: #ffffff;
box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}
.declarations-modal-footer .btn-excel:hover {
background: linear-gradient(135deg, #047857 0%, #059669 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}
.declarations-modal-footer .btn-excel:active {
transform: translateY(0);
}
.declarations-modal-footer .btn-secondary {
background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
color: #334155;
box-shadow: 0 2px 6px rgba(148, 163, 184, 0.15);
}
.declarations-modal-footer .btn-secondary:hover {
background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(148, 163, 184, 0.25);
}
@media print {
.declarations-modal-footer,
.modal-tabs,
.modal-close,
.vat-return-footer,
.status-badge {
display: none !important;
}
.declarations-modal {
position: static;
width: 100%;
height: auto;
}
.modal-backdrop {
display: none !important;
}
.modal-container {
max-width: 100%;
width: 100%;
max-height: none;
box-shadow: none;
border-radius: 0;
}
.modal-header {
background: #22c55e !important;
color: #ffffff !important;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.vat-return-card {
page-break-inside: avoid;
border: 1px solid #e2e8f0;
margin-bottom: 12px;
}
.vat-year-group {
page-break-inside: avoid;
}
.vat-summary-value.sales,
.vat-summary-value.purchases,
.vat-summary-value.tax {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
}
@media (max-width: 768px) {
.declarations-modal-footer {
flex-direction: column;
gap: 12px;
padding: 16px;
}
.declarations-modal-footer .footer-actions-left,
.declarations-modal-footer .footer-actions-right {
width: 100%;
justify-content: center;
margin-left: 0;
}
.declarations-modal-footer .btn {
flex: 1;
justify-content: center;
min-width: 100px;
}
}
@media (max-width: 480px) {
.declarations-modal-footer .btn {
font-size: 13px;
padding: 8px 16px;
}
.declarations-modal-footer .btn i {
font-size: 14px;
}
}
.tax-summary-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
padding: 0 5px;
}
.tax-card {
display: flex;
align-items: center;
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tax-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.tax-card-icon {
width: 60px;
height: 60px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-left: 16px;
color: white;
font-size: 28px;
flex-shrink: 0;
}
.tax-card-content {
flex: 1;
}
.tax-card-content h4 {
margin: 0 0 8px 0;
font-size: 14px;
font-weight: 500;
color: #64748b;
}
.tax-card-value {
margin: 0;
font-size: 28px;
font-weight: 700;
color: #1e293b;
}
.tax-year-group {
background: white;
border-radius: 12px;
margin-bottom: 20px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.tax-year-header {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
padding: 18px 24px;
cursor: pointer;
border-bottom: 1px solid #e2e8f0;
transition: background 0.3s ease;
}
.tax-year-header:hover {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.tax-year-title {
display: flex;
align-items: center;
gap: 12px;
}
.tax-year-icon {
color: #64748b;
font-size: 14px;
transition: transform 0.3s ease;
}
.tax-year-title strong {
font-size: 18px;
color: #1e293b;
font-weight: 700;
}
.tax-year-count {
background: #3b82f6;
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
}
.tax-year-content {
padding: 16px;
}
.tax-return-card {
background: white;
border: 1px solid #e2e8f0;
border-radius: 10px;
margin-bottom: 16px;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tax-return-card:last-child {
margin-bottom: 0;
}
.tax-return-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.tax-return-header {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #e2e8f0;
}
.tax-return-title {
display: flex;
align-items: center;
gap: 10px;
}
.tax-return-title i {
color: #3b82f6;
font-size: 18px;
}
.tax-return-title strong {
font-size: 16px;
color: #1e293b;
font-weight: 600;
}
.tax-return-body {
padding: 20px;
}
.tax-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid #f1f5f9;
}
.tax-row:last-child {
border-bottom: none;
}
.tax-row span:first-child {
color: #64748b;
font-size: 14px;
font-weight: 500;
}
.tax-row strong {
color: #1e293b;
font-size: 15px;
font-weight: 600;
}
.tax-row .highlight-value {
color: #3b82f6;
font-size: 16px;
}
.tax-row .tax-due {
color: #dc2626;
font-size: 16px;
}
.tax-row.notes {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.tax-row.notes span:last-child {
color: #475569;
font-size: 14px;
line-height: 1.6;
}
.income-tax-returns-container {
padding: 10px;
}
.salary-tax-returns-container {
padding: 10px;
}
.withholding-tax-returns-container {
padding: 10px;
}
@media (max-width: 768px) {
.tax-summary-cards {
grid-template-columns: 1fr;
gap: 16px;
}
.tax-card {
padding: 16px;
}
.tax-card-icon {
width: 50px;
height: 50px;
font-size: 24px;
margin-left: 12px;
}
.tax-card-value {
font-size: 24px;
}
.tax-year-header {
padding: 14px 16px;
}
.tax-year-title strong {
font-size: 16px;
}
.tax-return-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.tax-row {
flex-direction: column;
align-items: flex-start;
gap: 6px;
padding: 10px 0;
}
}

/* === client-profile.css === */
.client-profile-wrapper {
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 16px;
box-sizing: border-box;
}
.client-profile {
background: #ffffff;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
overflow: hidden;
}
.profile-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 20px 24px;
background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
border-bottom: 1px solid rgba(0,0,0,0.06);
}
.profile-header .avatar {
width: 80px;
height: 80px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 28px;
color: #111827;
background: linear-gradient(135deg, #93c5fd 0%, #a78bfa 100%);
border: 3px solid rgba(255,255,255,0.9);
box-shadow: 0 6px 18px rgba(59,130,246,0.25);
flex-shrink: 0;
}
.title-area {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.client-name {
margin: 0;
font-size: clamp(1.2rem, 2.5vw, 1.8rem);
font-weight: 800;
color: #111827;
}
.client-meta {
display: flex;
flex-wrap: wrap;
gap: 10px 14px;
color: #374151;
}
.client-meta .meta-item i { margin-inline-end: 6px; color: #2563eb; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip {
display: inline-flex;
align-items: center;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
letter-spacing: .2px;
border: 1px solid rgba(0,0,0,0.08);
background: #f8fafc;
color: #0f172a;
}
.chip-green { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.chip-purple { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.chip-blue { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.profile-actions .btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 10px;
text-decoration: none;
background: #2563eb;
color: #fff;
border: 1px solid #1d4ed8;
box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}
.profile-actions .btn:hover { background: #1d4ed8; }
.profile-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
padding: 20px 24px 24px;
}
.profile-section {
background: #ffffff;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 12px;
padding: 16px;
}
.section-title {
margin: 0 0 10px 0;
font-size: 1.05rem;
font-weight: 700;
color: #111827;
display: flex;
align-items: center;
gap: 10px;
}
.section-title i { color: #2563eb; }
.kv { display: grid; gap: 10px; }
.kv-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: center; }
.kv-row .k { color: #374151; font-weight: 600; }
.kv-row .v { color: #111827; }
.status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.status.on { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status.off { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 900px) {
.profile-grid { grid-template-columns: 1fr; }
.kv-row { grid-template-columns: 140px 1fr; }
}
@media (max-width: 600px) {
.profile-header { flex-direction: column; align-items: flex-start; }
.profile-actions { width: 100%; display: flex; justify-content: flex-start; }
.kv-row { grid-template-columns: 1fr; }
}
body.dark-mode .client-profile {
background: #0f172a;
border-color: rgba(255,255,255,0.08);
}
body.dark-mode .profile-header {
background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-mode .client-name { color: #e5e7eb; }
body.dark-mode .client-meta { color: #9ca3af; }
body.dark-mode .profile-section { background: #0f172a; border-color: rgba(255,255,255,0.08); }
body.dark-mode .section-title { color: #e5e7eb; }
body.dark-mode .kv-row .k { color: #9ca3af; }
body.dark-mode .kv-row .v { color: #e5e7eb; }
body.dark-mode .chip { background: #111827; color: #e5e7eb; border-color: rgba(255,255,255,0.08); }
.profile-section-report .report-content {
color: #111827;
font-size: 15px;
line-height: 1.7;
}
.profile-section-report h1,
.profile-section-report h2,
.profile-section-report h3,
.profile-section-report h4,
.profile-section-report h5,
.profile-section-report h6 {
color: #111827;
margin: 0 0 12px;
line-height: 1.3;
}
.profile-section-report h1 { font-size: 1.6rem; }
.profile-section-report h2 { font-size: 1.35rem; }
.profile-section-report h3 { font-size: 1.2rem; }
.profile-section-report h4 { font-size: 1.08rem; }
.profile-section-report h5 { font-size: 1rem; }
.profile-section-report h6 { font-size: 0.95rem; }
.profile-section-report .report-content p { margin: 0 0 10px; }
.profile-section-report .report-content p + p { margin-top: 8px; }
.profile-section-report .report-content ul,
.profile-section-report .report-content ol {
margin: 0 0 12px;
padding-inline-start: 22px;
}
.profile-section-report .report-content li { margin: 4px 0; }
.profile-section-report .report-content a {
color: #2563eb;
text-decoration: underline;
text-underline-offset: 2px;
}
.profile-section-report .report-content a:hover { color: #1d4ed8; }
.profile-section-report .report-content img,
.profile-section-report .report-content video,
.profile-section-report .report-content iframe {
max-width: 100%;
height: auto;
border-radius: 8px;
}
.profile-section-report .report-content table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
border: 1px solid rgba(0,0,0,0.08);
}
.profile-section-report .report-content th,
.profile-section-report .report-content td {
padding: 8px 10px;
border: 1px solid rgba(0,0,0,0.08);
text-align: start;
}
.profile-section-report .report-content thead th {
background: #f8fafc;
color: #111827;
}
.profile-section-report .report-content blockquote {
margin: 10px 0;
padding: 10px 14px;
border-inline-start: 3px solid #2563eb;
background: #f8fafc;
border-radius: 8px;
}
.profile-section-report .report-content pre,
.profile-section-report .report-content code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
background: #f8fafc;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 6px;
}
.profile-section-report .report-content code { padding: 0 4px; }
.profile-section-report .report-content pre { padding: 10px; overflow: auto; }
.profile-section-report .report-content hr {
border: 0;
border-top: 1px solid rgba(0,0,0,0.08);
margin: 14px 0;
}
body.dark-mode .profile-section-report .report-content { color: #e5e7eb; }
body.dark-mode .profile-section-report h1,
body.dark-mode .profile-section-report h2,
body.dark-mode .profile-section-report h3,
body.dark-mode .profile-section-report h4,
body.dark-mode .profile-section-report h5,
body.dark-mode .profile-section-report h6 { color: #e5e7eb; }
body.dark-mode .profile-section-report .report-content a { color: #93c5fd; }
body.dark-mode .profile-section-report .report-content a:hover { color: #60a5fa; }
body.dark-mode .profile-section-report .report-content table { border-color: rgba(255,255,255,0.08); }
body.dark-mode .profile-section-report .report-content th,
body.dark-mode .profile-section-report .report-content td { border-color: rgba(255,255,255,0.08); }
body.dark-mode .profile-section-report .report-content thead th { background: #0b1220; color: #e5e7eb; }
body.dark-mode .profile-section-report .report-content blockquote { background: #0b1220; border-inline-start-color: #3b82f6; }
body.dark-mode .profile-section-report .report-content pre,
body.dark-mode .profile-section-report .report-content code { background: #0b1220; border-color: rgba(255,255,255,0.06); color: #e5e7eb; }
body.dark-mode .profile-section-report .report-content hr { border-top-color: rgba(255,255,255,0.08); }

/* === client-accounting-modal.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
--modal-font-arabic: 'Cairo', 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
--accounting-primary: #f97316;
--accounting-dark: #ea580c;
}
.accounting-modal {
font-family: var(--modal-font-arabic);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999999;
display: none;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.accounting-modal.active {
display: flex;
opacity: 1;
}
.accounting-modal .modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
}
.accounting-modal .modal-container {
position: relative;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 90%;
width: 90%;
max-height: 90vh;
overflow: hidden;
animation: slideInDown 0.3s ease-out;
z-index: 1;
display: flex;
flex-direction: column;
}
@keyframes slideInDown {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.accounting-modal .modal-header {
background: linear-gradient(135deg, var(--accounting-primary) 0%, var(--accounting-dark) 100%);
color: #ffffff;
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
border-bottom: none;
}
.accounting-modal .modal-title {
margin: 0;
font-size: 20px;
font-weight: 600;
display: flex;
align-items: center;
gap: 12px;
font-family: var(--modal-font-arabic);
letter-spacing: -0.02em;
}
.accounting-modal .modal-title i {
font-size: 24px;
opacity: 0.9;
}
.accounting-modal .client-name {
font-weight: 700;
background: rgba(255, 255, 255, 0.15);
padding: 4px 12px;
border-radius: 6px;
font-size: 16px;
font-family: var(--modal-font-arabic);
}
.accounting-modal .modal-close {
background: rgba(255, 255, 255, 0.15);
border: none;
color: #ffffff;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
font-size: 18px;
}
.accounting-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.25);
transform: rotate(90deg);
}
.access-warning-banner {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border: 2px solid #fbbf24;
border-radius: 12px;
padding: 16px 20px;
margin: 16px 20px 0;
display: flex;
gap: 16px;
align-items: flex-start;
box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
animation: warningPulse 2s ease-in-out infinite;
}
@keyframes warningPulse {
0%, 100% {
box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}
50% {
box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}
}
.access-warning-banner .warning-icon {
font-size: 32px;
color: #d97706;
flex-shrink: 0;
margin-top: 4px;
}
.access-warning-banner .warning-content {
flex: 1;
}
.access-warning-banner .warning-title {
margin: 0 0 8px 0;
font-size: 16px;
font-weight: 700;
color: #92400e;
display: flex;
align-items: center;
gap: 8px;
font-family: var(--modal-font-arabic);
}
.access-warning-banner .warning-title i {
font-size: 18px;
animation: warningBlink 1.5s ease-in-out infinite;
}
@keyframes warningBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.access-warning-banner .warning-message {
margin: 0;
font-size: 14px;
color: #78350f;
line-height: 1.6;
}
.access-warning-banner .warning-message strong {
font-weight: 700;
color: #92400e;
}
.accounting-modal .modal-tabs {
display: flex;
background: #f8f9fa;
border-bottom: 2px solid #e2e8f0;
padding: 0 16px;
gap: 8px;
overflow-x: auto;
margin-top: 16px;
}
.accounting-modal .modal-tab {
background: transparent;
border: none;
padding: 16px 20px;
font-size: 14px;
font-weight: 500;
color: #64748b;
cursor: pointer;
transition: all 0.2s;
border-bottom: 3px solid transparent;
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
font-family: var(--modal-font-arabic);
}
.accounting-modal .modal-tab i {
font-size: 16px;
}
.accounting-modal .modal-tab:hover {
color: var(--accounting-primary);
background: rgba(249, 115, 22, 0.05);
}
.accounting-modal .modal-tab.active {
color: var(--accounting-primary);
border-bottom-color: var(--accounting-primary);
font-weight: 600;
}
.accounting-modal .modal-body {
padding: 24px;
background: #ffffff;
overflow-y: auto;
flex: 1;
}
.accounting-modal .tab-content {
display: none;
}
.accounting-modal .tab-content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.accounting-placeholder {
text-align: center;
padding: 80px 20px;
color: #94a3b8;
}
.accounting-placeholder .placeholder-icon {
font-size: 64px;
color: #fed7aa;
margin-bottom: 20px;
}
.accounting-placeholder h3 {
font-size: 20px;
font-weight: 600;
color: #475569;
margin: 0 0 12px 0;
font-family: var(--modal-font-arabic);
}
.accounting-placeholder p {
font-size: 15px;
color: #94a3b8;
margin: 0;
}
.accounting-modal .modal-footer {
background: #ffffff;
padding: 16px 24px;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: flex-end;
gap: 12px;
flex-shrink: 0;
}
.accounting-modal .btn {
padding: 10px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: none;
display: flex;
align-items: center;
gap: 8px;
font-family: var(--modal-font-arabic);
}
.accounting-modal .btn-secondary {
background: #f1f5f9;
color: #475569;
}
.accounting-modal .btn-secondary:hover {
background: #e2e8f0;
}
@media (max-width: 768px) {
.accounting-modal .modal-container {
max-width: 95%;
margin: 20px;
}
.accounting-modal .modal-header {
padding: 16px;
}
.accounting-modal .modal-body {
padding: 16px;
}
.accounting-modal .modal-title {
font-size: 16px;
}
.accounting-modal .client-name {
font-size: 13px;
}
.accounting-modal .modal-tab {
padding: 12px 16px;
font-size: 13px;
}
.access-warning-banner {
margin: 12px 12px 0;
padding: 12px 16px;
}
.access-warning-banner .warning-icon {
font-size: 24px;
}
.access-warning-banner .warning-title {
font-size: 14px;
}
.access-warning-banner .warning-message {
font-size: 13px;
}
.accounting-placeholder {
padding: 40px 20px;
}
.accounting-placeholder .placeholder-icon {
font-size: 48px;
}
}
@media (prefers-color-scheme: dark) {
.accounting-modal .modal-container {
background: #1e293b;
}
.accounting-modal .modal-body {
background: #0f172a;
}
.accounting-modal .modal-tabs {
background: #1e293b;
border-bottom-color: #334155;
}
.accounting-modal .modal-tab {
color: #94a3b8;
}
.accounting-modal .modal-tab:hover {
background: rgba(249, 115, 22, 0.1);
}
.accounting-modal .modal-footer {
background: #1e293b;
border-top-color: #334155;
}
.accounting-modal .btn-print,
.accounting-modal .btn-pdf,
.accounting-modal .btn-excel {
border-color: rgba(255, 255, 255, 0.1);
}
}
.accounting-modal-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
gap: 16px;
}
.accounting-modal-footer .footer-actions-left,
.accounting-modal-footer .footer-actions-right {
display: flex;
gap: 10px;
align-items: center;
}
.accounting-modal-footer .btn {
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid transparent;
font-family: var(--modal-font-arabic);
}
.accounting-modal-footer .btn-secondary {
background: #64748b;
color: white;
border-color: #475569;
}
.accounting-modal-footer .btn-secondary:hover {
background: #475569;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}
.accounting-modal-footer .btn-print {
background: #71717a;
color: white;
border-color: #52525b;
}
.accounting-modal-footer .btn-print:hover {
background: #52525b;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(113, 113, 122, 0.3);
}
.accounting-modal-footer .btn-pdf {
background: #dc2626;
color: white;
border-color: #b91c1c;
}
.accounting-modal-footer .btn-pdf:hover {
background: #b91c1c;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.accounting-modal-footer .btn-excel {
background: #16a34a;
color: white;
border-color: #15803d;
}
.accounting-modal-footer .btn-excel:hover {
background: #15803d;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.accounting-modal-footer .btn i,
.accounting-modal-footer .btn svg {
margin-left: 6px;
font-size: 16px;
}
@media (max-width: 768px) {
.accounting-modal-footer {
flex-direction: column-reverse;
gap: 12px;
padding: 12px 16px;
}
.accounting-modal-footer .footer-actions-left,
.accounting-modal-footer .footer-actions-right {
width: 100%;
justify-content: center;
}
.accounting-modal-footer .btn {
flex: 1;
min-width: 100px;
}
}
@media print {
.accounting-modal-footer {
display: none !important;
}
}
[dir="rtl"] .accounting-modal .modal-tab {
text-align: right;
}
.financial-summary-container {
padding: 24px;
}
.financial-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.financial-card {
display: flex;
align-items: center;
gap: 20px;
background: white;
padding: 24px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.financial-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.financial-card-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
font-size: 28px;
color: white;
}
.financial-card.revenue .financial-card-icon {
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.financial-card.expenses .financial-card-icon {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.financial-card.profit .financial-card-icon {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.financial-card.balance .financial-card-icon {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.financial-card-content h4 {
margin: 0 0 8px 0;
color: #64748b;
font-size: 14px;
font-weight: 600;
}
.financial-card-value {
margin: 0;
font-size: 24px;
font-weight: 700;
color: #1e293b;
}
.financial-card-period {
font-size: 12px;
color: #94a3b8;
}
.financial-chart-section {
background: white;
padding: 24px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.financial-chart-header {
margin-bottom: 20px;
}
.financial-chart-header h3 {
margin: 0;
font-size: 18px;
color: #1e293b;
display: flex;
align-items: center;
gap: 10px;
}
.invoices-container,
.payments-container {
padding: 24px;
}
.invoices-stats,
.payments-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card,
.summary-card {
display: flex;
align-items: center;
gap: 16px;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.stat-card i,
.summary-card i {
font-size: 32px;
color: var(--accounting-primary);
}
.stat-content,
.summary-card > div {
flex: 1;
}
.stat-value,
.summary-value {
display: block;
font-size: 24px;
font-weight: 700;
color: #1e293b;
margin: 4px 0;
}
.stat-label {
font-size: 13px;
color: #64748b;
}
.summary-card h4 {
margin: 0 0 4px 0;
font-size: 14px;
color: #64748b;
}
.accounting-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.accounting-table thead {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.accounting-table thead th {
padding: 16px;
text-align: right;
color: white;
font-weight: 600;
font-size: 14px;
}
.accounting-table tbody tr {
border-bottom: 1px solid #e2e8f0;
transition: background 0.2s ease;
}
.accounting-table tbody tr:hover {
background: #f8fafc;
}
.accounting-table tbody td {
padding: 14px 16px;
color: #475569;
font-size: 14px;
}
.accounting-table td.amount {
font-weight: 600;
color: #1e293b;
font-family: 'Courier New', monospace;
}
.btn-action {
padding: 6px 12px;
border: 1px solid #cbd5e1;
background: white;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-action:hover {
background: var(--accounting-primary);
border-color: var(--accounting-primary);
color: white;
}
.outstanding-container {
padding: 24px;
}
.outstanding-header {
margin-bottom: 32px;
}
.outstanding-total-card {
display: flex;
align-items: center;
gap: 24px;
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
padding: 32px;
border-radius: 16px;
border: 2px solid #ef4444;
}
.outstanding-icon {
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 50%;
font-size: 40px;
color: #ef4444;
}
.outstanding-content h3 {
margin: 0 0 8px 0;
color: #991b1b;
font-size: 16px;
}
.outstanding-amount {
margin: 0;
font-size: 32px;
font-weight: 700;
color: #dc2626;
}
.outstanding-note {
font-size: 14px;
color: #991b1b;
}
.outstanding-invoices h4 {
margin: 0 0 16px 0;
font-size: 18px;
color: #1e293b;
display: flex;
align-items: center;
gap: 10px;
}
.outstanding-row.critical {
background: #fef2f2 !important;
}
.outstanding-row.warning {
background: #fffbeb !important;
}
.urgency-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.urgency-badge.critical {
background: #dc2626;
color: white;
}
.urgency-badge.warning {
background: #f59e0b;
color: white;
}
.urgency-badge.normal {
background: #22c55e;
color: white;
}
.no-outstanding {
text-align: center;
padding: 60px 20px;
background: #f0fdf4;
border-radius: 12px;
border: 2px dashed #22c55e;
}
.no-outstanding i {
font-size: 64px;
color: #22c55e;
margin-bottom: 16px;
}
.no-outstanding p {
color: #166534;
font-size: 16px;
margin: 0;
}
.reports-container {
padding: 24px;
}
.reports-options h3 {
margin: 0 0 24px 0;
font-size: 20px;
color: #1e293b;
display: flex;
align-items: center;
gap: 10px;
}
.reports-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.report-card {
background: white;
padding: 24px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.report-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.report-icon {
width: 80px;
height: 80px;
margin: 0 auto 16px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--accounting-primary) 0%, var(--accounting-dark) 100%);
border-radius: 50%;
font-size: 36px;
color: white;
}
.report-card h4 {
margin: 0 0 12px 0;
font-size: 18px;
color: #1e293b;
}
.report-card p {
margin: 0 0 20px 0;
color: #64748b;
font-size: 14px;
line-height: 1.6;
}
.generate-report {
width: 100%;
}
.accounting-placeholder,
.accounting-error {
text-align: center;
padding: 80px 20px;
}
.placeholder-icon,
.error-icon {
font-size: 64px;
color: #cbd5e1;
margin-bottom: 20px;
}
.error-icon {
color: #ef4444;
}
.accounting-placeholder h3,
.accounting-error h3 {
margin: 0 0 12px 0;
color: #64748b;
font-size: 20px;
}
.accounting-placeholder p,
.accounting-error p {
margin: 0;
color: #94a3b8;
font-size: 16px;
}
.accounting-error button {
margin-top: 20px;
}
.status-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
display: inline-block;
}
.status-badge.status-success {
background: #dcfce7;
color: #166534;
}
.status-badge.status-warning {
background: #fef3c7;
color: #92400e;
}
.status-badge.status-danger {
background: #fee2e2;
color: #991b1b;
}
.status-badge.status-secondary {
background: #f1f5f9;
color: #475569;
}
@media (max-width: 768px) {
.financial-cards-grid,
.invoices-stats,
.payments-summary,
.reports-grid {
grid-template-columns: 1fr;
}
.accounting-table {
font-size: 12px;
}
.accounting-table thead th,
.accounting-table tbody td {
padding: 10px;
}
.financial-card-value,
.outstanding-amount {
font-size: 20px;
}
}
.accounting-modal *:focus-visible {
outline: 2px solid var(--accounting-primary);
outline-offset: 2px;
}
