/* ==========================================================================
   1. إعدادات الشاشة الكاملة والخلفية الأساسية واستدعاء الخطوط الفاخرة
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');
 
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #333;
    height: 100vh;
    overflow: hidden;
}
 
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}
 
/* ==========================================================================
   2. استايل القائمة الجانبية (Sidebar Menu)
   ========================================================================== */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 10;
}
 
.sidebar-brand {
    padding: 20px;
    text-align: center;
    background: #1a252f;
    border-bottom: 1px solid #34495e;
}
 
.sidebar-brand h2 {
    color: #3498db;
    margin: 0;
    border: none;
    padding: 0;
    font-weight: 700;
}
 
.sidebar-menu {
    flex: 1;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
 
.menu-btn {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    color: #ecf0f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
 
.menu-btn:hover {
    background: #34495e;
    color: #3498db;
}
 
.menu-btn.active {
    background: #3498db;
    color: white;
}
 
.sidebar-backup-zone {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #34495e;
    background: #1f2d3d;
}
 
.backup-btn-side {
    width: 100%;
    padding: 10px;
    background: #16a085;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
 
.backup-btn-side:hover { background: #11816b; }
.backup-btn-side.restore { background: #8e44ad; }
.backup-btn-side.restore:hover { background: #732694; }
 
.sidebar-footer {
    padding: 15px;
    text-align: center;
    background: #1a252f;
    font-size: 12px;
    color: #7f8c8d;
}
 
/* ==========================================================================
   3. منطقة المحتوى الرئيسي والأقسام (Main Content & Tabs)
   ========================================================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
    overflow-y: auto;
    padding: 30px;
}
 
.main-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
 
.main-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 15px;
}
 
.tab-content {
    display: none;
}
 
.tab-content.active-tab {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
 
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
 
/* ==========================================================================
   4. تصميم الكروت والعناصر الهيكلية (Cards & Grid)
   ========================================================================== */
.dashboard-grid, .dashboard-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}
 
@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}
 
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
}
 
h2, h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    border-right: 4px solid #3498db;
    padding-right: 10px;
    font-weight: 600;
}
 
/* ==========================================================================
   5. النماذج وحقول الإدخال (Forms & Inputs)
   ========================================================================== */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
 
.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
 
.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}
 
input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    background-color: #f8fafc;
    box-sizing: border-box;
}
 
textarea {
    height: 80px;
    resize: none;
}
 
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
 
.add-btn {
    width: 100%;
    padding: 14px;
    background: #27ae60;
    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.add-btn:hover { background: #219653; }
 
.add-cat-btn {
    padding: 12px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
}
 
.add-category-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
 
/* ==========================================================================
   6. المؤشرات الذكية وأشرطة التقدم (Analytics & Progress Bars)
   ========================================================================== */
.budget-progress-container {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}
 
.budget-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
 
.budget-progress-bar-bg {
    background: #e2e8f0;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
 
.budget-progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #27ae60;
    border-radius: 5px;
    transition: width 0.4s ease, background-color 0.4s ease;
}
 
.finance-display { margin: 20px 0; }
.profit-box {
    font-size: 26px;
    font-weight: bold;
    background: #e8f8f5;
    color: #117a65;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #a3e4d7;
}
 
.alert-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}
.alert-box.success { background: #d4edda; color: #155724; }
.alert-box.danger { background: #f8d7da; color: #721c24; animation: shake 0.5s; }
.alert-box.info { background: #e2e3e5; color: #383d41; }
 
.chart-container {
    position: relative;
    height: 260px;
    width: 100%;
}
 
.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}
 
.insight-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
 
.insight-item span { font-size: 13px; color: #64748b; font-weight: 500; }
.insight-item strong { font-size: 18px; color: #1e293b; }
 
.goal-progress-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}
 
/* ==========================================================================
   7. شريط الفلترة وإدارة الفئات والموردين (Filters & Category Manager)
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
 
.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}
 
.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}
 
.actions-group {
    display: flex;
    gap: 10px;
    margin-right: auto;
}
 
.pdf-btn { background: #f39c12; color: white; padding: 12px 18px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; font-family: 'Cairo', sans-serif; }
.pdf-btn:hover { background: #d68910; }
.reset-btn { background: #e74c3c; color: white; padding: 12px 18px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; font-family: 'Cairo', sans-serif; }
.reset-btn:hover { background: #c0392b; }
.excel-btn { background: #217346; color: white; padding: 12px 18px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; font-family: 'Cairo', sans-serif; }
.excel-btn:hover { background: #154c2e; }
 
.categories-badge-container { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
.manage-badge { background: #ebf5fb; color: #2980b9; padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 14px; border: 1px solid #a9cce3; display: inline-flex; align-items: center; gap: 8px; }
.delete-cat-badge-btn { background: transparent; color: #c0392b; border: none; font-size: 16px; cursor: pointer; font-weight: bold; padding: 0; }
 
/* ==========================================================================
   8. الجداول المتقدمة والتقارير (Data Tables)
   ========================================================================== */
.responsive-table-container {
    width: 100%;
    overflow-x: auto;
}
 
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}
 
.data-table th {
    background: #2c3e50;
    color: white;
    padding: 14px;
    font-weight: 600;
}
 
.data-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
 
.category-badge {
    background: #eef2f7;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}
 
.project-badge {
    background: #e8f4fd;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #2980b9;
    font-weight: 600;
    border: 1px solid #d4e6f1;
}
 
.supplier-linked-badge {
    background: #f4efe8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #d35400;
    font-weight: 600;
    border: 1px solid #f5b041;
}
 
.invoice-link-btn {
    background: #eafaf1;
    color: #2ecc71;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #2ecc71;
    transition: all 0.2s;
}
.invoice-link-btn:hover {
    background: #2ecc71;
    color: white;
}
 
.amount-text { font-weight: bold; color: #2c3e50; }
.del-btn { background: #e74c3c; color: white; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.del-btn:hover { background: #c0392b; }
.edit-btn-table { background: #2980b9; color: white; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; margin-left: 5px; font-weight: bold; }
.edit-btn-table:hover { background: #1f618d; }
 
/* ==========================================================================
   9. نظام الإشعارات اللحظية والـ Animations
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
 
.toast {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-right: 5px solid #cbd5e1;
    min-width: 250px;
    animation: toastSlide 0.3s ease forwards;
}
 
.toast.success { border-right-color: #27ae60; background: #f4fbf7; color: #196f3d; }
.toast.info { border-right-color: #2980b9; background: #f2f7fb; color: #1a5276; }
.toast.error { border-right-color: #e74c3c; background: #fdf4f3; color: #943126; }
 
@keyframes toastSlide {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
 
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
 
/* ==========================================================================
   10. كلاسات نظام تلوين الديون والمستحقات الذكي (Urgency Highlighter)
   ========================================================================== */
.debt-row-overdue { background-color: #fff5f5 !important; border-bottom: 2px solid #feb2b2 !important; }
.debt-row-urgent { background-color: #fffaf0 !important; border-bottom: 2px solid #fbd38d !important; animation: urgentPulse 2s infinite ease-in-out; }
.debt-row-safe { background-color: #f0fff4 !important; border-bottom: 1px solid #c6f6d5 !important; }
.debt-row-settled { background-color: #f7fafc !important; opacity: 0.65; font-style: italic; text-decoration: line-through #cbd5e1; }
 
.badge-urgency { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; display: inline-block; }
.badge-urgency.overdue { background: #e74c3c; color: white; }
.badge-urgency.urgent { background: #f39c12; color: white; }
.badge-urgency.safe { background: #2ecc71; color: white; }
 
@keyframes urgentPulse {
    0%, 100% { background-color: #fffaf0; }
    50% { background-color: #fff3cd; }
}
/* ==========================================================================
   11. شاشة تسجيل الدخول (Login Screen)
   ========================================================================== */
.login-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #1a252f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
 
.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    border: 1px solid #e1e8ed;
}
 
.login-brand {
    text-align: center;
    margin-bottom: 30px;
}
 
.login-brand h1 {
    color: #2c3e50;
    font-size: 2em;
    font-weight: 800;
    margin: 0 0 5px 0;
    border: none;
    padding: 0;
}
 
.login-brand p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}
 
.login-error {
    background: #fdf4f3;
    color: #943126;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    border-right: 4px solid #e74c3c;
}
 
.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 12px;
}
 
/* ==========================================================================
   12. بادج المستخدم الحالي في السايدبار
   ========================================================================== */
.current-user-badge {
    margin-top: 8px;
    padding: 8px;
    background: rgba(52,152,219,0.1);
    border-radius: 8px;
    border: 1px solid rgba(52,152,219,0.3);
}
 
/* ==========================================================================
   13. تحسينات جدول Audit Trail (إضافة عمود المستخدم)
   ========================================================================== */
#audit-list-body td:nth-child(2) {
    font-size: 12px;
    color: #3498db;
    font-weight: 600;
    white-space: nowrap;
}
 
/* ==========================================================================
   14. بطاقات تحليلات AI
   ========================================================================== */
#ai-predictions-container .insight-item {
    text-align: right;
    padding: 15px;
}
 
#ai-predictions-container .insight-item strong {
    font-size: 20px;
}
 
/* ═══════════════════════════════════════
   ERP ENTERPRISE STYLES
═══════════════════════════════════════ */

/* Sidebar section title */
.sidebar-section-title {
    padding: 10px 15px 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ERP KPI Grid */
.erp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.erp-kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-right: 4px solid #3498db;
    transition: transform .2s, box-shadow .2s;
}
.erp-kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.erp-kpi-icon { font-size: 32px; }
.erp-kpi-val { font-size: 22px; font-weight: 800; color: #1e293b; }
.erp-kpi-lbl { font-size: 12px; color: #64748b; margin-top: 2px; }

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 4px 0;
}
.kanban-col {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 14px;
    min-height: 200px;
}
.kanban-col-header {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 12px;
    color: #374151;
    display: flex;
    align-items: center;
}
.kanban-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-right: 3px solid #3498db;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.kanban-card-title { font-weight: 700; font-size: 13px; color: #1e293b; margin-bottom: 6px; }
.kanban-card-meta { font-size: 12px; color: #64748b; }

/* Action buttons */
.action-btn {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: Cairo;
    font-size: 13px;
    margin: 2px;
    transition: opacity .2s;
}
.action-btn:hover { opacity: 0.8; }
.action-btn.edit { background: #eff6ff; color: #3498db; }
.action-btn.delete { background: #fef2f2; color: #e74c3c; }

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: Cairo;
    font-size: 13px;
    background: #f8fafc;
}

/* Alert box */
.alert-box {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.8;
}
.alert-box.info { background: #eff6ff; border-right: 4px solid #3498db; color: #1e3a5f; }
.alert-box.success { background: #f0fdf4; border-right: 4px solid #27ae60; color: #14532d; }
.alert-box.warning { background: #fffbeb; border-right: 4px solid #f39c12; color: #78350f; }

/* Modal box */
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideIn .25s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .erp-kpi-grid { grid-template-columns: 1fr 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-bar .filter-group { width: 100%; }
    .filter-bar .filter-group input,
    .filter-bar .filter-group select { width: 100%; }
}

/* ═══════════════════════════════════════
   ERP PHASE 2 — Orders | Inventory | Accounting | Integrations
═══════════════════════════════════════ */

/* Accounting tabs */
.acc-tab-btn {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: Cairo;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    color: #374151;
}
.acc-tab-btn:hover, .acc-tab-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Company card hover */
.company-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Orders table risk bar */
.risk-bar {
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-top: 3px;
    overflow: hidden;
}

/* Order detail modal */
#order-detail-modal .modal-overlay {
    z-index: 9999;
}

/* Timeline dot */
.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3498db;
    flex-shrink: 0;
    margin-top: 5px;
}
.timeline-dot.latest { background: #27ae60; }

/* Notification queue badge */
#notif-queue-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* Orders badge in sidebar */
#orders-badge {
    vertical-align: middle;
    min-width: 20px;
    text-align: center;
}

/* Responsive orders table */
@media (max-width: 768px) {
    #orders-main-table th:nth-child(3),
    #orders-main-table td:nth-child(3),
    #orders-main-table th:nth-child(7),
    #orders-main-table td:nth-child(7),
    #orders-main-table th:nth-child(8),
    #orders-main-table td:nth-child(8) { display: none; }
}

/* ═══════════════════════════════════════
   CRITICAL FIXES — Modal Overlay + Animations
═══════════════════════════════════════ */

/* Modal overlay — backdrop */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.modal-overlay.active {
    display: flex;
}

/* slideIn animation for modal-box */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal heading */
.modal-box h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}
.modal-box .input-group {
    margin-bottom: 14px;
}
.modal-box .input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
}
.modal-box .input-group input,
.modal-box .input-group select,
.modal-box .input-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: Cairo;
    font-size: 13px;
    background: #f9fafb;
    transition: border-color .2s;
}
.modal-box .input-group input:focus,
.modal-box .input-group select:focus,
.modal-box .input-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
}

/* ═══════════════════════════════════════
   PHASE 4 — Analytics | Emp Notif | Pricing Cards
═══════════════════════════════════════ */

/* Pricing result cards */
.price-result-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    border-right: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}
.price-result-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}
.price-result-val {
    font-size: 18px;
    font-weight: 800;
}

/* Employee notification item hover */
#emp-notif-list > div:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateX(-2px);
    transition: all .15s;
}

/* WA template list code tag */
#wa-templates-list code {
    font-size: 11px;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Analytics KPI grid */
#analytics-kpis > div {
    transition: transform .2s, box-shadow .2s;
}
#analytics-kpis > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Order stats panel */
#order-stats-panel > div > div {
    transition: transform .15s;
}
#order-stats-panel > div > div:hover {
    transform: translateY(-2px);
}

/* Employee notif badge */
.emp-notif-badge {
    vertical-align: middle;
    min-width: 20px;
    text-align: center;
}

/* Fraud flag row */
tr[style*="background:#fff5f5"] td { color: #c0392b; }