/* ==================== */
/* تعریف فونت وزیر */
/* ==================== */
@font-face {
    font-family: 'Vazir';
    src: url('../vazir-font-v16.1.0/Vazir.eot');
    src: url('../vazir-font-v16.1.0/Vazir.eot?#iefix') format('embedded-opentype'),
         url('../vazir-font-v16.1.0/Vazir.woff2') format('woff2'),
         url('../vazir-font-v16.1.0/Vazir.woff') format('woff'),
         url('../vazir-font-v16.1.0/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../vazir-font-v16.1.0/Vazir-Bold.eot');
    src: url('../vazir-font-v16.1.0/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('../vazir-font-v16.1.0/Vazir-Bold.woff2') format('woff2'),
         url('../vazir-font-v16.1.0/Vazir-Bold.woff') format('woff'),
         url('../vazir-font-v16.1.0/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../vazir-font-v16.1.0/Vazir-Light.eot');
    src: url('../vazir-font-v16.1.0/Vazir-Light.eot?#iefix') format('embedded-opentype'),
         url('../vazir-font-v16.1.0/Vazir-Light.woff2') format('woff2'),
         url('../vazir-font-v16.1.0/Vazir-Light.woff') format('woff'),
         url('../vazir-font-v16.1.0/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../vazir-font-v16.1.0/Vazir-Medium.eot');
    src: url('../vazir-font-v16.1.0/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('../vazir-font-v16.1.0/Vazir-Medium.woff2') format('woff2'),
         url('../vazir-font-v16.1.0/Vazir-Medium.woff') format('woff'),
         url('../vazir-font-v16.1.0/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* ==================== */
/* تنظیمات عمومی */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    direction: rtl;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ==================== */
/* صفحات لاگین و دسترسی غیرمجاز */
/* ==================== */
.login-body, .access-denied-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* صفحه دسترسی غیرمجاز */
.access-denied-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.access-denied-box h1 {
    color: #dc3545;
    margin-bottom: 20px;
}

.access-denied-box p {
    margin-bottom: 15px;
}

.access-denied-box .btn-logout {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.access-denied-box .btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ==================== */
/* هدر و ناوبری */
/* ==================== */
.navbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 20px;
    font-weight: bold;
    color: #f0f0f0;
}

.nav-user {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-logout:hover {
    background: #c82333;
}

/* ==================== */
/* داشبورد و سایدبار */
/* ==================== */
.dashboard {
    display: flex;
    gap: 20px;
    padding: 5px;
    flex-wrap: wrap;
}

.sidebar {
    width: 30%;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu {
    list-style: none;
}

.menu-item {
    display: block;
    padding: 12px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
}

.menu-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(-5px);
}
.version-item {
    display: block;
    padding: 12px 15px;
    margin: 8px 0;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
}


.main-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-card {
    text-align: center;
}

.roles {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.badge.admin {
    background: #dc3545;
    color: white;
}

.badge.super {
    background: #ffc107;
    color: #333;
}

.badge.accountant {
    background: #28a745;
    color: white;
}

/* ==================== */
/* هدر صفحات */
/* ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 24px;
    color: #333;
}

.btn-back {
    background: #6c757d;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #5a6268;
}

/* ==================== */
/* دکمه‌ها */
/* ==================== */
.btn-add {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 20px 20px 20px;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-submit {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-edit {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-save {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-toggle {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle:hover {
    background: #e0a800;
}

.btn-edit-roles {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-edit-roles:hover {
    background: #138496;
}

/* ==================== */
/* جدول کاربران */
/* ==================== */
.users-table-container {
    overflow-x: auto;
    padding: 20px;
}

.users-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.users-table th {
    background: #667eea;
    color: white;
}

.roles-cell {
    min-width: 150px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

.role-badge.admin { background: #dc3545; color: white; }
.role-badge.super { background: #ffc107; color: #333; }
.role-badge.accountant { background: #28a745; color: white; }

.protected {
    color: #999;
    font-size: 12px;
}

/* ==================== */
/* فرم‌ها */
/* ==================== */
.form-container {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.help-text {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

.customer-info {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 8px;
    font-size: 14px;
    color: #004085;
}

/* ==================== */
/* مودال */
/* ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
}

.modal-large {
    max-width: 700px;
}

.close {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

/* ==================== */
/* مدیریت مشتریان */
/* ==================== */
.customers-list {
    padding: 20px;
}

.customer-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.customer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.customer-name {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

.customer-code {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.customer-detail-item {
    display: flex;
    flex-direction: column;
}

.customer-detail-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.customer-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}



/* ==================== */
/* مدیریت تراکنش‌ها */
/* ==================== */


.transaction-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.transaction-code {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

.transaction-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-completed {
    background: #28a745;
    color: white;
}

.transaction-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.detail-row {
    margin: 5px 0;
}

.detail-row strong {
    color: #555;
}

.transaction-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.btn-complete {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-complete:hover {
    background: #218838;
}

.btn-view {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-view:hover {
    background: #138496;
}

/* ==================== */
/* جستجو و فیلتر */
/* ==================== */
.search-box {
    padding: 20px;
    background: white;
    margin: 0 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.status-filter {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-btn {
    padding: 8px 25px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    color: white;
}

/* ==================== */
/* صفحه‌بندی */
/* ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.pagination button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ==================== */
/* اطلاعات تراکنش */
/* ==================== */
.transaction-info {
    padding: 20px;
    margin: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* ==================== */
/* بدون داده */
/* ==================== */
.no-data {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    color: #999;
    font-size: 16px;
}

/* ==================== */
/* ریسپانسیو برای موبایل */
/* ==================== */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    
    .transaction-info {
        margin: 10px;
        padding: 15px;
    }

    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .users-table th,
    .users-table td {
        font-size: 12px;
        padding: 8px;
    }
    
    .customers-list {
        padding: 10px;
    }
    
    .customer-card {
        margin-bottom: 10px;
    }
    
    .customer-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .customer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    
    
    .transaction-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-actions {
        width: 100%;
    }
    
    .transaction-actions button {
        flex: 1;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        margin: 0 10px 15px 10px;
        padding: 15px;
    }
    
    .status-filter {
        padding: 0 10px 15px 10px;
    }
    
    .btn-add {
        margin: 0 10px 15px 10px;
        width: calc(100% - 20px);
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== */
/* مدیریت کاربران - کارت‌های جدید */
/* ==================== */
.users-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.user-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.user-username {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.user-date {
    font-size: 12px;
    color: #888;
}

.user-status .status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.user-roles {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.roles-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.roles-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.role-badge.admin { 
    background: #dc3545; 
    color: white; 
}

.role-badge.super { 
    background: #ffc107; 
    color: #333; 
}

.role-badge.accountant { 
    background: #28a745; 
    color: white; 
}

.role-badge.none {
    background: #6c757d;
    color: white;
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.btn-toggle-user {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-toggle-user:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-edit-roles-user {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-edit-roles-user:hover {
    background: #138496;
    transform: translateY(-2px);
}

.protected-user {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    color: #6c757d;
    font-size: 13px;
}

.user-info-modal {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.user-info-modal p {
    margin: 0;
    font-size: 16px;
}

/* پاسخگو برای موبایل */
@media (max-width: 768px) {
    .users-list {
        padding: 10px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .user-roles {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .user-actions {
        width: 100%;
    }
    
    .user-actions button {
        flex: 1;
        text-align: center;
    }
    
    .protected-user {
        width: 100%;
        text-align: center;
    }
}

/* ==================== */
/* پرونده مشتری - نسخه حرفه‌ای */
/* ==================== */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-title {
    background: #667eea;
    color: white;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
}

.card-content {
    padding: 20px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    width: 35%;
}

.info-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
    width: 65%;
    text-align: left;
    direction: ltr;
}

.copy-value {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-icon {
    font-size: 11px;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    color: #495057;
    transition: all 0.2s;
}

.copy-value:hover .copy-icon {
    background: #667eea;
    color: white;
}

.edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: ltr;
    text-align: left;
}

.edit-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-label {
        width: 100%;
    }
    
    .info-value {
        width: 100%;
        text-align: right;
    }
    
    .card-title {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .card-content {
        padding: 15px;
    }
}

/* کارت‌های تراکنش - نسخه حرفه‌ای */
.transaction-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.transaction-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.code-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-label {
    font-size: 13px;
    color: #6c757d;
}

.code-value {
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.code-value:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.copy-icon {
    font-size: 11px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.card-body {
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 12px;
    color: #6c757d;
}

.info-text {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.info-text.price {
    color: #28a745;
    font-weight: 600;
}

.card-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #218838;
}

.btn-secondary {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-info:hover {
    background: #138496;
}

/* مودال */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.detail-key {
    font-size: 13px;
    color: #6c757d;
}

.detail-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.detail-value.price {
    color: #28a745;
    font-weight: 600;
}

.copy-text {
    cursor: pointer;
    transition: color 0.2s;
}

.copy-text:hover {
    color: #667eea;
}

.tracking-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tracking-item {
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.tracking-item:hover {
    background: #667eea;
    color: white;
}

.images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.image-link {
    background: #e9ecef;
    padding: 5px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #667eea;
    font-size: 13px;
    transition: all 0.2s;
}

.image-link:hover {
    background: #667eea;
    color: white;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.btn-close {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.btn-close:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .modal-container {
        width: 95%;
    }
}


/* بزرگتر و بولد کردن متن دکمه‌ها */
.btn-primary, .btn-secondary, .btn-info, .btn-close, .btn-submit, .btn-back, .btn-add, .btn-edit, .btn-save, .btn-toggle, .btn-edit-roles, .btn-view-customer, .btn-complete, .btn-view {
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
}

/* دکمه تکمیل تراکنش در کارت‌ها */
.card-footer button {
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
    border-radius: 15px;
}

/* دکمه‌های مودال */
.modal-footer .btn-close {
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 10px 30px !important;
}

/* دکمه لاگین */
.btn-login {
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 12px !important;
}

/* دکمه خروج */
.btn-logout {
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
}

/* دکمه افزودن */
.btn-add {
    font-weight: bold !important;
    font-size: 15px !important;
}

/* دکمه بازگشت */
.btn-back {
    font-weight: bold !important;
    font-size: 14px !important;
}

/* دکمه‌های جدول کاربران */
.btn-toggle, .btn-edit-roles {
    font-weight: bold !important;
    font-size: 12px !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-info, .btn-close, .btn-submit {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
    
    .card-footer button {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
}


.highlight-box {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #b8daff;
}

.highlight-box label {
    color: #004085;
    font-weight: bold;
}

.highlight-box input {
    background: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

/* رنگ‌های مبالغ در کارت تراکنش */
.total-amount {
    color: #d4a017 !important;
    font-weight: bold !important;
}

.cash-amount {
    color: #dc3545 !important;
    font-weight: bold !important;
}

.pending-amount {
    color: #fd7e14 !important;
    font-weight: bold !important;
}

.completed-amount {
    color: #28a745 !important;
    font-weight: bold !important;
}

/* کمرنگ و کوچک کردن تاریخ‌ها */
.info-text.date-text {
    color: #6c757d !important;
    font-size: 12px !important;
    font-weight: normal !important;
}

/* مستطیل آبی برای نام کاربر */
.user-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #bbdef5;
}

/* خط جداکننده بین المان‌ها */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 8px;
}

.info-item:last-child {
    border-bottom: none;
}

/* جداکننده بین بخش‌های کارت */
.card-body {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* استایل تاریخ در مودال */
.modal-body .detail-value.date-value {
    color: #6c757d;
    font-size: 12px;
}

.subtitle {
    text-align: center;
    color: #b8860b;
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* رفع مشکل کیبورد در گوشی */
.input-group input {
    font-size: 16px !important;
    letter-spacing: normal !important;
}

/* ماسک پسورد در گوشی */
input[type="password"] {
    font-family: monospace !important;
    letter-spacing: 2px !important;
}
input, select, textarea, button {
    font-size: 16px !important;
    touch-action: manipulation;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

/* دکمه ثبت تراکنش جدید */
.add-transaction-btn {
    padding: 0 20px 20px 20px;
}

.btn-add-transaction {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-add-transaction:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* استایل جدید برای نقش‌ها */
.roles-container {
    margin: 20px 0;
}

.role-option {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s;
}

.role-option:hover {
    background: #f0f4ff;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-wrap: wrap;
}

.role-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.role-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.role-desc {
    font-size: 11px;
    color: #888;
    flex: 1;
}

.user-info-box {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-label {
    font-size: 13px;
    color: #666;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-save-roles {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
}

.btn-save-roles:hover {
    background: #218838;
}

.btn-cancel-roles {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
}

.btn-cancel-roles:hover {
    background: #5a6268;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .role-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .role-title {
        min-width: auto;
    }
    
    .user-info-box {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.subtitle {
    text-align: center;
    color: #b8860b;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 25px;
    font-weight: 500;
}

.input-group input {
    font-size: 16px !important;
}

/*强制执行 ماسک پسورد */
input[type="password"] {
    -webkit-text-security: disc !important;
    -moz-text-security: disc !important;
    text-security: disc !important;
}

/* تاریخچه پرداخت‌ها */
.payments-history {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.payments-history-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
    color: #495057;
}

.payments-count {
    background: #e9ecef;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #6c757d;
}

.payments-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payments-table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.payments-table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.payments-table-row:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.col-amount {
    font-weight: bold;
    color: #28a745;
}

.col-date {
    color: #6c757d;
    font-size: 12px;
}

.col-tracking {
    font-family: monospace;
    font-size: 12px;
    color: #17a2b8;
}

.no-tracking {
    color: #adb5bd;
    font-style: italic;
}

@media (max-width: 768px) {
    .payments-table-header, .payments-table-row {
        grid-template-columns: 0.8fr 1.2fr 1.5fr;
        gap: 5px;
        font-size: 10px;
    }
    
    .col-amount, .col-date, .col-tracking {
        font-size: 10px;
    }
}

.payments-table-header {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr 1.2fr 0.5fr;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.payments-table-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr 1.2fr 0.5fr;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #f0f0f0;
    align-items: center;
}

.col-user {
    color: #6c757d;
    font-size: 12px;
}

.receipt-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.receipt-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.no-receipt {
    color: #adb5bd;
    font-size: 11px;
}

@media (max-width: 768px) {
    .payments-table-header, .payments-table-row {
        grid-template-columns: 0.7fr 1fr 0.7fr 1fr 0.4fr;
        font-size: 10px;
        gap: 4px;
    }
    
    .receipt-btn {
        padding: 2px 6px;
        font-size: 9px;
    }
}

/* پلتفرم‌های ارتباطی */
.platforms-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.platform-checkbox:hover {
    background: #e9ecef;
}

.platform-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.platforms-edit-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.platforms-edit-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
}

.platforms-edit-group input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.platforms-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.platform-badge.whatsapp {
    background: #25D366;
}

.platform-badge.telegram {
    background: #26A5E4;
}

.platform-badge.ita {
    background: #7C3AED;
}

.platform-badge.rubika {
    background: #FF5722;
}

.platform-badge.bale {
    background: #00A859;
}


/* روزهای مانده به موعد */
.days-overdue {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 11px;
}

.days-today {
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 11px;
}

.days-soon {
    background: #fd7e14;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 11px;
}

.days-normal {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 11px;
}

/* کارت‌های عقب افتاده */
.transaction-card.overdue {
    border-right: 4px solid #dc3545;
}

.transaction-card.today {
    border-right: 4px solid #ffc107;
}

.transaction-card.soon {
    border-right: 4px solid #fd7e14;
}

/* دکمه اطلاعات بانکی */
.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-right: 8px;
    padding: 0 4px;
    transition: transform 0.2s;
}

.info-btn:hover {
    transform: scale(1.1);
}

/* مودال کوچک برای اطلاعات بانکی */
.modal-small {
    max-width: 400px;
}

.bank-info {
    padding: 10px;
}

.bank-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.bank-info .info-row:last-child {
    border-bottom: none;
}

.bank-info .info-label {
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.bank-info .info-value {
    font-size: 13px;
    direction: ltr;
    text-align: left;
}

/* اطلاعات دسترسی در داشبورد */
.access-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.access-note {
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

/* مودال نمایش عکس */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.close-modal:hover {
    color: #bbb;
}

@media (max-width: 768px) {
    .image-modal-content {
        width: 95%;
    }
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* استایل‌های بخش تحویل */
.delivery-toggle {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.toggle-option:hover {
    background-color: #e9ecef;
}

.toggle-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-option input[type="radio"]:checked + span {
    color: #4CAF50;
    font-weight: bold;
}

.toggle-option:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background-color: #e8f5e8;
}

/* استایل تقویم جلالی */
.jdp-datepicker {
    direction: rtl;
    font-family: inherit;
}

#delivery_date {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
/* رفع مشکل نمایش تقویم جلالی */
.jdp-datepicker {
    z-index: 10000 !important;
    position: fixed !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    font-family: inherit !important;
    right: auto !important;
    left: auto !important;
}

.jdp-container {
    z-index: 10000 !important;
}

.form-container {
    overflow: visible !important;
}

.container {
    overflow: visible !important;
}


/* استایل برای روزهای باقی مانده */
.days-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.days-badge.days-passed {
    background-color: #dc3545;
    color: white;
}

.days-badge.days-today {
    background-color: #ff9800;
    color: white;
    animation: blink 1s infinite;
}

.days-badge.days-urgent {
    background-color: #ff4444;
    color: white;
}

.days-badge.days-warning {
    background-color: #ffc107;
    color: #333;
}

.days-badge.days-normal {
    background-color: #28a745;
    color: white;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* استایل برای بخش تحویل */
.delivery-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.delivery-label {
    font-weight: bold;
    color: #ff9800;
}

.delivery-label-immediate {
    font-weight: bold;
    color: #17a2b8;
}

.delivery-date {
    color: #333;
    font-weight: 500;
}

.transaction-type-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.future-badge {
    background-color: #ff9800;
    color: white;
}

.immediate-badge {
    background-color: #17a2b8;
    color: white;
}

.future-delivery-card {
    border-right: 4px solid #ff9800;
    margin-bottom: 15px;
    background: #fffaf5;
}

.immediate-delivery-card {
    border-right: 4px solid #17a2b8;
    margin-bottom: 15px;
}

/* جداساز بین بخش‌ها */
.future-transactions {
    margin-bottom: 30px;
}

.immediate-transactions {
    margin-top: 20px;
}

.code-text {
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
}
.card-type-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.future-title {
    background-color: #ff9800;
    color: white;
}

.immediate-title {
    background-color: #17a2b8;
    color: white;
}

.delivery-immediate-badge {
    color: #17a2b8;
    font-weight: bold;
}
/* روزهای باقی مانده */
.days-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.days-badge.days-passed {
    background-color: #dc3545;
    color: white;
}

.days-badge.days-today {
    background-color: #ff9800;
    color: white;
    animation: blink 1s infinite;
}

.days-badge.days-urgent {
    background-color: #ff4444;
    color: white;
}

.days-badge.days-warning {
    background-color: #ffc107;
    color: #333;
}

.days-badge.days-normal {
    background-color: #28a745;
    color: white;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.card-type-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.future-title {
    background-color: #ff9800;
    color: white;
}

.immediate-title {
    background-color: #17a2b8;
    color: white;
}

.future-delivery-card {
    border-right: 4px solid #ff9800;
    margin-bottom: 15px;
    background: #fffaf5;
}

.immediate-delivery-card {
    border-right: 4px solid #17a2b8;
    margin-bottom: 15px;
}

.code-text {
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
}
.btn-deliver {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-deliver:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
    transform: translateY(-1px);
}

.delivered-title {
    background-color: #28a745;
    color: white;
}

.delivered-card {
    border-right: 4px solid #28a745;
    background: #f0fff4;
}

.days-badge.days-delivered {
    background-color: #28a745;
    color: white;
}

.delivery-success {
    color: #28a745;
    font-weight: bold;
}


 /* استایل برای دسته‌بندی تراکنش‌ها */
 .transactions-section {
     margin-bottom: 30px;
 }
 
 .section-title {
     font-size: 18px;
     font-weight: bold;
     padding: 10px 15px;
     margin: 20px 0 15px 0;
     border-radius: 8px;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     display: inline-block;
 }
 
 .days-remaining {
     display: inline-block;
     padding: 4px 12px;
     border-radius: 20px;
     font-size: 12px;
     font-weight: bold;
     margin-right: 10px;
 }
 
 .days-remaining.urgent {
     background-color: #dc3545;
     color: white;
 }
 
 .days-remaining.warning {
     background-color: #ffc107;
     color: #333;
 }
 
 .days-remaining.normal {
     background-color: #28a745;
     color: white;
 }
 
 .delivery-badge {
     display: inline-block;
     padding: 4px 12px;
     border-radius: 20px;
     font-size: 12px;
     font-weight: bold;
 }
 
 .delivery-immediate {
     background-color: #17a2b8;
     color: white;
 }
 
 .delivery-future {
     background-color: #ff9800;
     color: white;
 }
 
 .transaction-card {
     transition: all 0.3s ease;
 }
 
 .transaction-card.future-delivery {
     border-right: 4px solid #ff9800;
 }
 
 .transaction-card.immediate-delivery {
     border-right: 4px solid #17a2b8;
     opacity: 0.85;
 }
 .filter-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}
.delivery-toggle, .delivery-status-toggle {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.toggle-option:hover {
    background-color: #e9ecef;
}

.toggle-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-option:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background-color: #e8f5e8;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    color: #667eea;
    font-size: 14px;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* استایل‌های پایه داشبورد */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
}



.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

.dashboard {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}


.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 10px;
}

.menu-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: #f0f0f0;
    color: #667eea;
}

.main-content {
    flex: 1;
    min-width: 300px;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.welcome-card h2 {
    margin-top: 0;
    color: #333;
}

.roles {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge.admin {
    background: #dc3545;
    color: white;
}

.badge.super {
    background: #ff9800;
    color: white;
}

.badge.accountant {
    background: #4caf50;
    color: white;
}

.access-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.access-note {
    margin: 0;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .navbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* فیلتر تاریخ */
.date-filter-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
}

.date-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.date-filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-filter-item label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.date-filter-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 150px;
}

.btn-filter-apply {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.btn-filter-clear {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-filter-clear:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .date-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-filter-item input {
        width: auto;
    }
    
    .date-filter-item {
        width: 100%;
    }
}


/* دکمه ارسال پیامک آماده‌باش */
.btn-sms {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-sms:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.btn-sms:active {
    transform: translateY(0);
}

/* دکمه تحویل شد */
.btn-deliver {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-deliver:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* کارت‌های فوتر */
.card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}


/* استایل‌های سابقه تراکنش مشتری */
.history-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-card.sell-card {
    border-right: 4px solid #dc3545;
}

.summary-card.buy-card {
    border-right: 4px solid #28a745;
}

.summary-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
}

.stat-value.paid {
    color: #28a745;
}

.stat-value.remaining.text-danger {
    color: #dc3545;
}

.stat-value.remaining.text-success {
    color: #28a745;
}

.history-filters {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.history-filters .filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.history-filters .filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.history-section {
    margin-bottom: 25px;
}

.section-header {
    font-size: 15px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.section-header.sell-header {
    background: #dc3545;
    color: white;
}

.section-header.buy-header {
    background: #28a745;
    color: white;
}

.transactions-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow-x: auto;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8f9fa;
    padding: 12px;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    gap: 10px;
    align-items: center;
}


.table-row:hover {
    background: #f8f9fa;
}

.code-text {
    cursor: pointer;
    color: #667eea;
    font-weight: bold;
    display: inline-block;
}

.copy-hint {
    font-size: 10px;
    opacity: 0.5;
    margin-right: 5px;
}

.code-text:hover .copy-hint {
    opacity: 1;
}

.amount {
    color: #d4a017;
    font-weight: bold;
}

.paid {
    color: #28a745;
    font-weight: bold;
}

.remaining.text-danger {
    color: #dc3545;
    font-weight: bold;
}

.remaining.text-success {
    color: #28a745;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.delivery-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.immediate-badge {
    background: #17a2b8;
    color: white;
}

.future-badge {
    background: #ff9800;
    color: white;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-view-transactions {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-view-transactions:hover {
    background: #138496;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .history-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        font-size: 11px;
    }

}

.col-action {
    width: 50px;
    text-align: center;
}

.btn-delete-payment {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-delete-payment:hover {
    background: #c82333;
    transform: scale(1.05);
}

.payments-table-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr 0.5fr;
}

.payments-table-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr 0.5fr;
    align-items: center;
}

.col-action {
    width: 50px;
    text-align: center;
}

.btn-delete-payment {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-delete-payment:hover {
    background: #c82333;
    transform: scale(1.05);
}

.payments-table-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr 0.5fr;
}

.payments-table-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr 0.5fr;
    align-items: center;
    gap: 10px;
}

.btn-edit-customer:hover {
    background: #45a049 !important;
}

/* استایل آیکون‌های کنار کد یکتا */
.code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.code-icons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    color: #555;
}

.icon-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.icon-btn.copy-icon:hover {
    color: #2196F3;
}

.icon-btn.view-icon:hover {
    color: #4CAF50;
}

.icon-btn.sms-icon:hover {
    color: #FF9800;
}

.copy-message {
    font-size: 10px;
    color: #4CAF50;
    margin-right: 2px;
}
/* ========== استایل‌های بخش امانات ========== */

/* لیست امانات */
.trusts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.trust-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-right: 4px solid #667eea;
}

.trust-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.trust-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* استایل‌های info-item در کارت امانات - مثل بقیه صفحات */
.trust-card .card-body .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.trust-card .card-body .info-item:last-child {
    border-bottom: none;
}

.trust-card .card-body .info-item .label {
    color: #6c757d;
    font-weight: normal;
    font-size: 13px;
    min-width: 120px;
    flex-shrink: 0;
    text-align: right;
}

.trust-card .card-body .info-item .value {
    color: #2c3e50;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    direction: ltr;
}

/* ====== استایل برای ❗ و ❓ ====== */
.trust-card .card-body .info-item .value .history-icon {
    cursor: pointer;
    color: #667eea;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0 2px;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-card .card-body .info-item .value .history-icon:hover {
    transform: scale(1.2);
}

.trust-card .card-body .info-item .value .info-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-card .card-body .info-item .value .info-btn:hover {
    transform: scale(1.2);
}

/* ====== کپی ====== */
.trust-card .card-body .info-item .value.copy-value {
    cursor: pointer;
}

.trust-card .card-body .info-item .value.copy-value:hover {
    color: #667eea;
}

/* ====== استایل کارت‌های تحویل شده/نشده ====== */
.trust-card.returned {
    border-right-color: #28a745;
}

.trust-card.pending {
    border-right-color: #ff9800;
}

.trust-card .status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.trust-card .badge-success {
    background: #d4edda;
    color: #155724;
}

.trust-card .badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* ====== دکمه‌های کارت امانات ====== */
.trust-card .card-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.trust-card .card-footer button {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-return {
    background: #27ae60;
    color: white;
}

.btn-return:hover {
    background: #219a52;
    transform: scale(1.02);
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-edit:hover {
    background: #e0a800;
    transform: scale(1.02);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
    transform: scale(1.02);
}

/* ====== آیکون‌های کد یکتا ====== */
.code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.code-icons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    color: #555;
}

.icon-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.icon-btn.copy-icon:hover {
    color: #2196F3;
}

.icon-btn.view-icon:hover {
    color: #4CAF50;
}

.icon-btn.sms-icon:hover {
    color: #FF9800;
}

.copy-message {
    font-size: 10px;
    color: #4CAF50;
    margin-right: 2px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .trust-card .card-body .info-item {
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px 0;
    }
    
    .trust-card .card-body .info-item .label {
        min-width: 100px;
        font-size: 12px;
    }
    
    .trust-card .card-body .info-item .value {
        font-size: 13px;
        justify-content: flex-start;
        flex: 1;
        text-align: left;
    }
    
    .trust-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .trust-card .card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .trust-card .card-footer button {
        width: 100%;
        text-align: center;
    }
    
    .code-section {
        flex-wrap: wrap;
    }
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: scale(1.02);
}

.customer-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: none;
}

.btn-add-customer {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-add-customer:hover {
    background: #218838;
}

.btn-bank-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-bank-info:hover {
    background: #138496;
}

.bank-info {
    padding: 10px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: bold;
    color: #495057;
}

.info-value {
    color: #212529;
    direction: ltr;
    text-align: left;
}

.copy-value {
    cursor: pointer;
}

.copy-value:hover {
    color: #007bff;
}

.platforms-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platforms-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete-customer {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-delete-customer:hover {
    background-color: #c82333;
    transform: scale(1.02);
}

.btn-delete-customer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ====== دکمه‌های عملیات مشتری ====== */
.customer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap; /* اجازه می‌دهد دکمه‌ها در صورت نیاز به خط بعد بروند */
}

.btn-view-customer,
.btn-view-transactions,
.btn-delete-customer {
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    white-space: nowrap; /* جلوگیری از شکستن متن دکمه */
    height: 42px; /* ارتفاع ثابت برای همه دکمه‌ها */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-view-customer {
    background: #667eea;
    color: white;
}

.btn-view-customer:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-view-transactions {
    background: #48bb78;
    color: white;
}

.btn-view-transactions:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.btn-delete-customer {
    background: #dc3545;
    color: white;
}

.btn-delete-customer:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-delete-customer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ====== ریسپانسیو برای موبایل ====== */
@media (max-width: 768px) {
    .customer-actions {
        flex-direction: column; /* دکمه‌ها زیر هم قرار می‌گیرند */
        gap: 8px;
    }
    
    .btn-view-customer,
    .btn-view-transactions,
    .btn-delete-customer {
        width: 100%; /* دکمه‌ها تمام عرض را بگیرند */
        text-align: center;
        padding: 10px 15px;
        font-size: 15px; /* کمی بزرگتر برای لمس آسان‌تر */
        height: 48px; /* ارتفاع بیشتر برای لمس آسان‌تر در موبایل */
        min-width: unset; /* حذف حداقل عرض در موبایل */
    }
}

/* ====== برای صفحه‌های بسیار کوچک (گوشی‌های کوچک) ====== */
@media (max-width: 480px) {
    .customer-actions {
        gap: 6px;
    }
    
    .btn-view-customer,
    .btn-view-transactions,
    .btn-delete-customer {
        padding: 12px 15px;
        font-size: 14px;
        height: 50px; /* ارتفاع بیشتر برای لمس راحت‌تر */
    }
}

/* ====== برای صفحه‌های بزرگتر (تنظیم عرض دکمه‌ها) ====== */
@media (min-width: 769px) {
    .btn-view-customer,
    .btn-view-transactions,
    .btn-delete-customer {
       
        min-width: 0; /* اجازه می‌دهد دکمه‌ها کوچکتر شوند */
    }
}