
   .tab-content { transition: all 0.3s ease; }
    .file-item { transition: all 0.2s ease; }
    .modal { backdrop-filter: blur(4px); }
    .progress-bar { transition: width 0.3s ease; }
    
    /* استایل تب فعال */
    .tab-btn.active {
      background-color: #3b82f6 !important;
      color: white !important;
      border-bottom: 2px solid #3b82f6 !important;
    }
    .tab-btn.active svg { stroke: white !important; }
    .tab-btn {
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .tab-btn:hover {
      background-color: #e2e8f0;
    }
    
    /* تب‌ها در موبایل - کنار هم با اسکرول افقی */
    @media (max-width: 768px) {
      .tabs-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 0.25rem;
        padding: 0.5rem 0;
      }
      .tab-btn {
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        border-bottom-width: 2px;
        border-radius: 0.5rem 0.5rem 0 0;
      }
      .tab-btn svg {
        width: 1rem;
        height: 1rem;
        margin-left: 0.25rem;
      }
      .tab-btn span {
        font-size: 0.7rem;
      }
    }
    
    /* ریسپانسیو کامل برای موبایل */
    @media (max-width: 768px) {
      .material-row, .property-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background: #f8fafc;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
        border: 1px solid #e2e8f0;
      }
      .material-row > div, .property-row > div { width: 100%; }
      .material-row label, .property-row label { 
        font-weight: 600; 
        margin-bottom: 0.25rem; 
        display: block;
        font-size: 0.75rem;
      }
      .order-item-card .grid-cols-4 {
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }
      .file-item-responsive {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
      }
      .file-item-responsive .file-info {
        width: 100%;
      }
      .file-item-responsive .download-btn {
        width: 100%;
        text-align: center;
      }
    }
    
    /* دکمه‌های نوع فروش */
    .sales-type-btn {
      transition: all 0.2s ease;
      background-color: #f1f5f9;
      color: #475569;
      border-color: #cbd5e1;
      cursor: pointer;
    }
    .sales-type-btn:hover {
      background-color: #e2e8f0;
    }
    .sales-type-btn.active {
      background-color: #3b82f6 !important;
      color: white !important;
      border-color: #3b82f6 !important;
      box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    }
    
    /* دکمه‌های عمومی - رنگ خنثی */
    .neutral-btn {
      background-color: #f1f5f9;
      color: #475569;
      border: 1px solid #e2e8f0;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .neutral-btn:hover {
      background-color: #e2e8f0;
    }
    
    /* استایل سایدبار - واکنش به hover و active */
    .sidebar-nav-item {
      transition: all 0.2s ease;
      cursor: pointer;
      border-radius: 0.75rem;
    }
    .sidebar-nav-item:hover {
      background-color: #334155;
    }
    .sidebar-nav-item.active {
      background: linear-gradient(to left, #2563eb, #3b82f6);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    .sidebar-details {
      transition: all 0.2s ease;
      border-radius: 0.75rem;
    }
    .sidebar-details:hover {
      background-color: #334155;
    }
    .sidebar-details[open] {
      background-color: #1e293b;
    }
    .sidebar-details summary {
      cursor: pointer;
      list-style: none;
      border-radius: 0.75rem;
      transition: all 0.2s ease;
    }
    .sidebar-details summary::-webkit-details-marker {
      display: none;
    }
    .sidebar-link {
      transition: all 0.2s ease;
      cursor: pointer;
      border-radius: 0.5rem;
    }
    .sidebar-link:hover {
      background-color: #475569;
    }
    
    .file-progress-container {
      background-color: #e2e8f0;
      border-radius: 9999px;
      overflow: hidden;
      height: 6px;
    }
    .file-progress-bar {
      transition: width 0.3s ease;
      background-color: #10b981;
      height: 100%;
    }
    
    .move-btn { transition: all 0.2s ease; cursor: pointer; }
    .move-btn:hover { transform: scale(1.1); background-color: #e2e8f0; }
    
    .item-files-list {
      max-height: 150px;
      overflow-y: auto;
    }
    
    /* استایل شماره آیتم قابل فهم */
    .item-order-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 2rem;
      height: 2rem;
      background-color: #e2e8f0;
      color: #1e293b;
      border-radius: 0.5rem;
      font-size: 0.875rem;
      font-weight: 700;
      margin-left: 0.5rem;
    }
    
    /* استایل Persian Datepicker هماهنگ با Tailwind */
    .persian-datepicker {
      width: 100%;
    }
    .persian-datepicker .picker-input {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid #cbd5e1;
      border-radius: 0.75rem;
      background-color: white;
      text-align: right;
      font-size: 0.875rem;
    }
    .persian-datepicker .picker-input:focus {
      outline: none;
      ring: 2px solid #3b82f6;
      border-color: #3b82f6;
    }
    /* استایل کاستوم برای datepicker */
    .datepicker-plot-area {
      font-family: inherit;
    }

    /* استایل برای لینک active */
        .sidebar-link.active {
            background: linear-gradient(to left, #3b82f6, #2563eb) !important;
            color: white !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        
        .sidebar-link.active svg {
            stroke: white !important;
        }
        
        /* زیرمنوها به صورت full-width */
        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 100%;
            transition: all 0.2s;
        }
        
        /* انیمیشن برای باز و بسته شدن */
        .sidebar-details[open] .summary-icon {
            transform: rotate(180deg);
        }
        
        .summary-icon {
            transition: transform 0.2s;
        }



        toggle-password {
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}

.toggle-password:focus {
  outline: none;
}

/* تنظیم padding برای جا شدن دکمه چشم */
input[type="password"],
input[type="text"] {
  padding-left: 2.75rem !important;
}



        /* Drag & Drop Styles */
        .dragging {
            opacity: 0.4;
            cursor: grabbing !important;
        }

        .drag-over {
            border-top: 3px solid #3b82f6;
            background-color: #f0f9ff;
        }

        .priority-item {
            transition: all 0.2s ease;
            user-select: none;
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loading-spinner {
            background: white;
            padding: 20px 30px;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #e2e8f0;
            border-top: 4px solid #3b82f6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            display: none;
            z-index: 1100;
            font-size: 14px;
            white-space: nowrap;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
        }

        .toast.show {
            display: block;
            animation: slideUp 0.3s ease;
        }

        .toast.success { background: #10b981; }
        .toast.error { background: #ef4444; }

        @keyframes slideUp {
            from {
                transform: translateX(-50%) translateY(100px);
                opacity: 0;
            }
            to {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }

        


         .modal-enter {
            animation: modalFadeIn 0.2s ease;
        }
        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

/* استایل آکائردون صفحه جزئیات سفارش*/

     @media print {
      .no-print { display: none !important; }
      body { background: white; }
      .accordion-content { display: block !important; }
      .mobile-order-reverse { display: block !important; }
    }
    
    /* ترنزیشن نرم برای اکاردئون‌ها */
    .accordion-item {
      border-bottom: 1px solid #e2e8f0;
    }
    .accordion-item:last-child {
      border-bottom: none;
    }
    .accordion-header {
      cursor: pointer;
      transition: background-color 0.2s ease;
    }
    .accordion-header:hover {
      background-color: #f8fafc;
    }
    .accordion-icon {
      transition: transform 0.3s ease;
    }
    .accordion-item.open .accordion-icon {
      transform: rotate(180deg);
    }
    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      background-color: #f8fafc;
    }
    .accordion-item.open .accordion-content {
      max-height: 2000px;
    }
    
    /* دکمه دانلود زیبا */
    .btn-download {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      background-color: #2563eb;
      color: white;
      font-size: 12px;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.2s ease;
      border: none;
      cursor: pointer;
      text-decoration: none;
    }
    .btn-download:hover {
      background-color: #1d4ed8;
      transform: translateY(-1px);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    .btn-download:active {
      transform: translateY(0);
    }
    
    /* دکمه دانلود کوچک برای فایل‌های آیتم */
    .btn-download-sm {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      background-color: #e2e8f0;
      color: #1e293b;
      font-size: 11px;
      font-weight: 500;
      border-radius: 6px;
      transition: all 0.2s ease;
      text-decoration: none;
    }
    .btn-download-sm:hover {
      background-color: #cbd5e1;
      transform: translateY(-1px);
    }
    
    /* جدول‌های داخلی */
    .info-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    .info-table tr {
      border-bottom: 1px solid #e2e8f0;
    }
    .info-table tr:last-child {
      border-bottom: none;
    }
    .info-table th {
      width: 130px;
      text-align: right;
      padding: 8px 0;
      font-weight: 500;
      color: #64748b;
      background: transparent;
    }
    .info-table td {
      padding: 8px 0;
      color: #1e293b;
    }
    
    .materials-table, .properties-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    .materials-table th, .properties-table th {
      background-color: #f1f5f9;
      padding: 8px 10px;
      text-align: right;
      font-weight: 600;
      color: #475569;
      border-bottom: 1px solid #e2e8f0;
    }
    .materials-table td, .properties-table td {
      padding: 8px 10px;
      border-bottom: 1px solid #e2e8f0;
    }
    .materials-table tr:last-child td, .properties-table tr:last-child td {
      border-bottom: none;
    }
    
    /* فایل‌ها لیست */
    .file-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 12px;
      background-color: white;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      transition: all 0.2s ease;
    }
    .file-item:hover {
      border-color: #cbd5e1;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* ریسپانسیو */
    @media (max-width: 1024px) {
      .mobile-order-reverse {
        display: flex;
        flex-direction: column;
      }
      .mobile-order-reverse > .order-items-section {
        order: 1;
      }
      .mobile-order-reverse > .files-section {
        order: 2;
      }
    }
    
    @media (max-width: 640px) {
      .info-table th, .info-table td {
        display: block;
        padding: 6px 0;
      }
      .info-table th {
        width: 100%;
        padding-bottom: 0;
      }
      .materials-table thead, .properties-table thead {
        display: none;
      }
      .materials-table tr, .properties-table tr {
        display: block;
        margin-bottom: 8px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: white;
      }
      .materials-table td, .properties-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
        border-bottom: none;
      }
      .materials-table td::before, .properties-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 11px;
      }
      .file-item {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
      }
      .btn-download, .btn-download-sm {
        justify-content: center;
      }
    }



    /* orders list*/
    /* =====================================================
       تمام کلاس‌های این صفحه با پیشوند order-list- شروع می‌شوند
       تا با سایر صفحات تداخل نداشته باشند
    ===================================================== */
    
    /* =====================================================
       تمام کلاس‌های این صفحه با پیشوند order-list- شروع می‌شوند
    ===================================================== */
    .order-list-table-container { overflow-x: auto; }
    .order-list-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1200px; }
    .order-list-table th { text-align: right; padding: 14px 12px; background-color: #f8fafc; border-bottom: 2px solid #e2e8f0; font-weight: 600; color: #1e293b; cursor: pointer; white-space: nowrap; user-select: none; }
    .order-list-table th:hover { background-color: #f1f5f9; }
    .order-list-table th i { margin-right: 6px; font-size: 11px; color: #94a3b8; }
    .order-list-table td { padding: 14px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }
    .order-list-table tr:hover { background-color: #fafcff; }
    
    .order-list-priority-high, .order-list-priority-medium, .order-list-priority-low { color: #1e293b; font-weight: 500; }
    .order-list-status-progress, .order-list-status-pending, .order-list-status-completed,
    .order-list-approved-text, .order-list-pending-text { color: #1e293b; font-weight: 500; }
    
    .order-list-btn-icon { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; transition: all 0.2s; cursor: pointer; border: 1px solid #e2e8f0; background: white; color: #1e293b; }
    .order-list-btn-icon:hover { background-color: #f8fafc; }
    .order-list-btn-primary { background-color: #2563eb; color: white; border: none; }
    .order-list-btn-primary:hover { background-color: #1d4ed8; }
    .order-list-btn-danger { background-color: #fee2e2; color: #dc2626; border: none; }
    .order-list-btn-danger:hover { background-color: #fecaca; }
    .order-list-file-icon { display: inline-flex; align-items: center; gap: 6px; background: transparent; padding: 3px 8px; border-radius: 8px; font-size: 12px; color: #2563eb; cursor: pointer; }
    .order-list-file-icon:hover { background: #eff6ff; }
    .order-list-clickable-link { color: #2563eb; cursor: pointer; text-decoration: none; }
    .order-list-clickable-link:hover { text-decoration: underline; }
    
    /* کارت موبایل */
    @media (max-width: 768px) {
      .order-list-table-container .order-list-table thead,
      .order-list-table-container .order-list-table tbody,
      .order-list-table-container .order-list-table tr,
      .order-list-table-container .order-list-table td { display: none; }
      .order-list-mobile-cards-container { display: block !important; }
      .order-list-mobile-card {
        background: white;
        border-radius: 16px;
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      }
      .order-list-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
      .order-list-card-order-code { font-family: monospace; font-size: 13px; font-weight: 600; color: #1e293b; background: #f1f5f9; padding: 2px 10px; border-radius: 20px; }
      .order-list-card-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
      .order-list-card-customer { font-size: 12px; color: #64748b; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
      .order-list-card-status-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 6px 0; font-size: 12px; font-weight: 500; color: #1e293b; }
      .order-list-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; padding: 8px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
      .order-list-card-grid-item { display: flex; flex-direction: column; gap: 2px; }
      .order-list-card-grid-label { font-size: 10px; color: #94a3b8; }
      .order-list-card-grid-value { font-size: 12px; font-weight: 500; color: #1e293b; }
      .order-list-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
      .order-list-card-actions .order-list-btn-icon { flex: 1; justify-content: center; padding: 6px 8px; font-size: 11px; }
    }
    
    @media (min-width: 769px) { .order-list-mobile-cards-container { display: none !important; } }
    
    .order-list-error-message { color: #dc2626; font-size: 11px; margin-top: 4px; display: none; }
    .order-list-filter-error { border-color: #dc2626 !important; }
    .order-list-page-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #e2e8f0; color: #64748b; transition: all 0.2s; cursor: pointer; background: white; }
    .order-list-page-btn:hover:not(:disabled) { background-color: #f8fafc; }
    .order-list-page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    
    .order-list-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 12px; font-size: 13px; z-index: 1200; background: #1e293b; color: white; display: none; }
    .order-list-toast.show { display: block; animation: order-list-slideUp 0.3s ease; }
    .order-list-toast-success { background: #10b981; }
    .order-list-toast-error { background: #ef4444; }
    @keyframes order-list-slideUp { from { transform: translateX(-50%) translateY(100px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
    @keyframes order-list-modalFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
    .order-list-modal-enter { animation: order-list-modalFadeIn 0.2s ease; }
    
    .order-list-user-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer; border: 1px solid #e2e8f0; background: white; }
    .order-list-user-item:hover { background-color: #f8fafc; }
    .order-list-user-item.selected { background-color: #eff6ff; border-color: #3b82f6; }
    .order-list-user-avatar { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #e2e8f0; }

    /* end orders list*/


    /*list karhaye man*/
            
        .task-progress-track { background-color: #e2e8f0; height: 6px; border-radius: 10px; overflow: hidden; }
        .task-progress-filled { background-color: #2563eb; height: 100%; border-radius: 10px; transition: width 0.3s ease; }
        
        @media (max-width: 768px) { .task-desktop-table { display: none; } }
        @media (min-width: 769px) { .task-mobile-cards { display: none !important; } }
        
        .task-sort-icon { font-size: 11px; margin-right: 4px; color: #94a3b8; display: inline-block; }
        .task-table td, .task-table th { color: #1e293b !important; }
        
        .task-user-item { transition: all 0.2s ease; }
        .task-user-item:hover { background-color: #f8fafc; border-color: #cbd5e1; }
        .task-user-item.selected { background-color: #eff6ff; border-color: #3b82f6; }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }
        .empty-state i {
            font-size: 48px;
            color: #cbd5e1;
            margin-bottom: 16px;
        }
        
        /* Hover روی ردیف */
        .task-table tbody tr {
            transition: all 0.2s ease;
        }
        .task-table tbody tr:hover {
            background-color: #f8fafc;
        }
        
        /* رنگ‌های متن اولویت و وضعیت */
        .priority-foori { color: #dc2626; font-weight: 500; }
        .priority-mohem { color: #2563eb; font-weight: 500; }
        .priority-adi { color: #475569; font-weight: 500; }
        .status-completed { color: #10b981; font-weight: 500; }
        .status-progress { color: #f59e0b; font-weight: 500; }
        .status-pending { color: #64748b; font-weight: 500; }
        
        /* فرم فیلتر ۴ ستونه */
        .filter-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 12px;
        }
        @media (min-width: 640px) {
            .filter-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (min-width: 1024px) {
            .filter-grid { grid-template-columns: repeat(4, 1fr); }
        }

    /*end list */