:root { --primary: #00a884; --bg: #e1e1de; --sidebar: #ffffff; --chat-bg: #efeae2; --panel: #f0f2f5; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; margin: 0; display: flex; height: 100vh; background: var(--bg); overflow: hidden;}

.sidebar { width: 280px; background: var(--sidebar); display: flex; flex-direction: column; border-left: 1px solid #d1d7db; z-index: 10; height: 100vh; overflow: hidden; transition: 0.3s; flex-shrink: 0;}

.bills-sidebar { width: 320px; background: #fff; display: none; flex-direction: column; border-left: 1px solid #d1d7db; z-index: 9; height: 100vh; transition: 0.3s; flex-shrink: 0;}
.bills-header { padding: 12px 10px; background: #075E54; color: white; font-weight: bold; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1);}
.bills-header .stat { font-size: 0.8rem; background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 12px; font-weight: bold;}

.bill-details-sidebar { width: 320px; background: #fafafa; display: none; flex-direction: column; border-left: 1px solid #d1d7db; z-index: 8; height: 100vh; transition: 0.3s; flex-shrink: 0; box-shadow: -2px 0 5px rgba(0,0,0,0.05);}
.details-header { padding: 12px 15px; background: #00838f; color: white; font-weight: bold; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;}
.details-content { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.detail-item-card { border: 1px solid #e0e0e0; padding: 12px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05);}

.bills-filter { padding: 10px; background: #f0f2f5; border-bottom: 1px solid #ddd; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;}
.filter-row-container { display: flex; gap: 10px; width: 100%; }
.filter-row { display: flex; gap: 5px; align-items: flex-start; flex: 1; }
.filter-row label { font-size: 0.8rem; font-weight: bold; width: 25px; margin-top: 6px;}
.filter-row input[type="date"], .filter-row input[type="number"] { padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.75rem; width: 100%; box-sizing: border-box;}
.filter-btn { width: 100%; padding: 8px; background: var(--primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 5px;}

.date-adj-btn { flex: 1; font-size: 0.7rem; padding: 3px 0; cursor: pointer; background: #e0e0e0; border: 1px solid #ccc; border-radius: 3px; font-weight: bold; transition: 0.2s;}
.date-adj-btn:hover { background: #d0d0d0; border-color: #aaa;}

.all-bills-list { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto;}
.all-bills-list li { padding: 12px 10px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; gap: 5px; cursor: pointer;}
.all-bills-list li:hover, .all-bills-list li.active-bill { background: #e7f3f0; border-right: 4px solid var(--primary);}
.bill-top-info { display: flex; justify-content: space-between; font-weight: bold; color: #333; font-size: 0.9rem;}
.bill-bottom-info { display: flex; justify-content: space-between; color: #666; font-size: 0.8rem;}

.wa-status-bar { padding: 12px 10px; text-align: center; font-size: 0.85rem; font-weight: bold; background: #f8d7da; color: #721c24; border-bottom: 1px solid #ddd; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.wa-status-bar button { cursor: pointer; padding: 4px 10px; border-radius: 4px; border: none; font-weight: bold; font-size: 0.75rem;}

.search-area { padding: 15px; background: #fff; border-bottom: 1px solid #f0f2f5; position: relative; flex-shrink: 0;}
.search-dropdown { position: absolute; top: 100%; left: 15px; right: 15px; background: #fff; border: 1px solid #ccc; border-radius: 0 0 5px 5px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); max-height: 250px; overflow-y: auto; z-index: 9999; display: none; list-style: none; padding: 0; margin: 0;}
.search-dropdown li { padding: 12px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 0.85rem; transition: 0.2s;}
.search-dropdown li:hover, .search-dropdown li.selected { background: #e7f3f0; border-right: 3px solid var(--primary); }

.customer-form-area { padding: 15px; overflow-y: auto; background: #fafafa; font-size: 0.85rem; border-bottom: 1px solid #ddd; transition: 0.3s; flex: 1; display: block; }

.form-title { font-weight: bold; color: #075E54; margin-bottom: 15px; border-bottom: 2px solid var(--primary); display: inline-block;}
.form-group { margin-bottom: 8px; display: flex; align-items: center; gap: 10px;}
.form-group label { width: 90px; font-weight: bold; color: #444; font-size: 0.8rem;}
.form-group input, .form-group select, .form-group textarea { flex: 1; padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit;}

.form-actions { display: flex; gap: 5px; justify-content: flex-end; margin-top: 15px;}
.btn-sm { padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; color: white; font-size: 0.8rem;}

.customer-summary-boxes { display: none; gap: 10px; margin-top: 15px; }
.summary-box { flex: 1; background: #fff; border: 1px solid #d1d7db; border-radius: 8px; padding: 10px 5px; text-align: center; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: flex-start; align-items: center; position: relative;}
.summary-box:hover { background: #e7f3f0; border-color: var(--primary); transform: translateY(-2px); }
.summary-box-label { font-size: 0.75rem; color: #777; font-weight: bold; margin-bottom: 8px; display: block; width: 100%; border-bottom: 1px dashed #eee; padding-bottom: 5px;}
.summary-box-stats { width: 90%; display: flex; flex-direction: column; gap: 5px; font-size: 0.75rem; color: #555; }
.summary-box-stats > div { display: flex; justify-content: space-between; align-items: center; background: #fafafa; padding: 4px 6px; border-radius: 4px; border: 1px solid #f0f0f0;}
.summary-box-stats b { font-size: 0.85rem; direction: ltr;}

.wa-section { flex: 1; display: flex; flex-direction: column; background: #fff; border-top: 2px solid #075E54; transition: 0.3s; min-height: 0; display: none; }
.wa-header { padding: 12px 15px; background: #075E54; color: white; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;}
.wa-chat-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; outline: none;}
.chat-item { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: 0.2s; font-size: 0.9rem;}
.chat-item:hover, .chat-item.active { background: #e7f3f0; border-right: 4px solid var(--primary);}

.main-workspace { flex: 1; display: flex; background: #fff; position: relative;}

.empty-screen { position: absolute; inset: 0; display: flex; justify-content: flex-start; align-items: center; background: #f0f2f5; z-index: 5; flex-direction: column; overflow-y: auto; padding: 30px; box-sizing: border-box; }
.dash-main-container { display: flex; gap: 20px; width: 100%; max-width: 1200px; margin: 0 auto; align-items: stretch;}
.dash-grid { display: flex; flex-direction: column; gap: 15px; flex: 1.5; }
.dash-charts { flex: 1; display: flex; flex-direction: column; gap: 15px; }

.dash-card { border-radius: 10px; padding: 20px; color: white; cursor: pointer; position: relative; transition: transform 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px;}
.dash-card:hover { transform: scale(1.02); }
.dash-card .d-count { position: absolute; top: 10px; left: 15px; font-size: 1.5rem; font-weight: 900; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);}
.dash-card .d-title { position: absolute; top: 10px; right: 15px; font-size: 1.2rem; font-weight: 900; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);}
.dash-card .d-amt { font-size: 4.5rem; font-weight: 900; line-height: 1; margin-top: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);}

.dash-row { display: flex; gap: 10px; justify-content: space-between; }
.dash-sub-card { flex: 1; border-radius: 10px; color: white; cursor: pointer; position: relative; transition: 0.2s; padding: 10px; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1);}
.dash-sub-card:hover { transform: scale(1.05); }
.dash-sub-card .d-count { position: absolute; top: 5px; left: 5px; font-size: 0.85rem; font-weight: 900; color: black; text-shadow: none;}
.dash-sub-card .d-title { position: absolute; top: 5px; right: 5px; font-size: 0.75rem; font-weight: 900; color: black; text-shadow: none;}
.dash-sub-card .d-amt { font-size: 1.8rem; font-weight: 900; margin-top: 20px; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);}

.dash-chart-box { background: white; border-radius: 10px; padding: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); flex: 1; min-height: 250px; display: flex; justify-content: center; align-items: center;}

.chat-container { flex: 1; display: none; flex-direction: column; background: var(--chat-bg); border-left: 1px solid #d1d7db; height: 100vh; z-index: 10; min-width: 0;}
.chat-header { padding: 15px; background: #fff; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; font-weight: bold; flex-shrink: 0;}
.messages { flex: 1; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.msg-bubble { max-width: 75%; padding: 4px 8px; border-radius: 6px; position: relative; word-wrap: break-word; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,0.1); font-size: 0.85rem; line-height: 1.2; margin-bottom: 1px;}
.msg-in { background: #fff; align-self: flex-start; border-top-right-radius: 0; }
.msg-out { background: #d9fdd3; align-self: flex-end; border-top-left-radius: 0; }
.msg-meta { font-size: 0.6rem; color: #888; display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 2px;}

.chat-input { padding: 10px 15px; background: #f0f2f5; display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; border-top: 1px solid #ccc;}
.chat-input-row { display: flex; gap: 5px; align-items: center; width: 100%; }
.chat-input input[type="text"] { flex: 1; padding: 12px; border-radius: 8px; border: none; outline: none; font-size: 1rem;}
.chat-input button.send-btn { padding: 12px 20px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold;}

.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:100000; justify-content:center; align-items:center; }
.modal-content { background:#fff; padding:30px; border-radius:10px; text-align:center; box-shadow:0 5px 20px rgba(0,0,0,0.3); max-width: 400px; width: 90%; }
.qr-container { margin:20px auto; min-height: 256px; display:flex; justify-content:center; align-items:center; border: 10px solid #f0f0f0; border-radius: 10px;}

.receipt-container { background: #fff; padding: 20px; border-radius: 5px; width: 320px; font-family: 'Courier New', Courier, monospace; color: #000; text-align: right; font-size: 0.9rem; max-height: 80vh; overflow-y: auto;}
.receipt-header { text-align: center; border-bottom: 1px dashed #000; padding-bottom: 10px; margin-bottom: 10px; }
.receipt-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.receipt-table th, .receipt-table td { padding: 5px; border-bottom: 1px dashed #ccc; font-size: 0.85rem;}

@media print {
    body * { visibility: hidden !important; }
    #receiptModal { background: none !important; }
    #receiptPrintArea, #receiptPrintArea * { visibility: visible !important; }
    #receiptPrintArea { position: absolute; left: 0; top: 0; width: 100%; padding: 0; margin: 0; box-shadow: none; border-radius: 0; }
    .no-print { display: none !important; }
}

.pos-search-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.pos-result-count { position: absolute; left: 15px; color: #bbb; font-size: 0.8rem; pointer-events: none; font-weight: bold;}

.filter-row-horizontal { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 5px; flex: 1; align-items: center;}
.filter-btn-hz { padding: 8px 15px; background: #f0f2f5; border: 1px solid #ccc; border-radius: 20px; cursor: pointer; white-space: nowrap; font-weight: bold; color: #444; transition: 0.2s;}
.filter-btn-hz.active { background: #075E54; color: white; border-color: #075E54; }

/* إعدادات الشبكة الأساسية (القديمة) التي ستتغير برمجياً للأقسام الخاصة */
.pos-products-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; align-content: start; overflow-y: auto; padding-bottom: 80px;}

/* زرار المنتج القديم */
.product-btn { padding: 15px 10px; background: #fff; border: 2px solid #00838f; color: #333; border-radius: 8px; cursor: pointer; font-weight: bold; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: 0.2s;}
.product-btn:hover { background: #e7f3f0; border-color: var(--primary); transform: translateY(-3px);}

/* كارت المنتج الجديد (يظهر فقط في الأقسام المحددة) - تم تصغير الحجم */
.pos-product-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; min-height: 190px; }
.pos-product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: var(--primary); }
.pos-product-card .img-wrapper { width: 100%; height: 100px; min-height: 100px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; flex-shrink: 0; cursor: zoom-in; position: relative;}
.pos-product-card .img-wrapper:hover::after { content: '🔍'; position: absolute; font-size: 1.5rem; opacity: 0.7; }
.pos-product-card .img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 5px; box-sizing: border-box; }
.pos-product-card .prod-info { padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; justify-content: space-between; }
.pos-product-card .prod-name { font-size: 0.85rem; font-weight: bold; color: #00838f; text-align: center; line-height: 1.2; flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.pos-product-card .prod-price { font-size: 1.05rem; font-weight: bold; color: #e65100; margin-top: auto; }
.pos-product-card .add-to-cart-btn { width: 100%; background: #00a884; color: white; border: none; padding: 6px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: 0.2s; margin-top: auto;}
.pos-product-card .add-to-cart-btn:hover { background: #008f6f; }

.category-btn { padding: 15px 10px; background: #075E54; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 0.95rem; box-shadow: 0 2px 3px rgba(0,0,0,0.1); transition: 0.2s; width: 100%; text-align: center;}
.category-btn.active { background: #00838f; transform: scale(1.02); border-left: 4px solid #f57c00; }

.floating-cart-btn { position: fixed; right: 300px; bottom: 30px; background: #e65100; color: white; border: none; border-radius: 50px; padding: 15px 25px; font-size: 1.1rem; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 9999; display: none; align-items: center; gap: 10px; transition: 0.3s;}
.floating-cart-btn:hover { transform: scale(1.05); background: #ef6c00;}

.cart-sidebar-fixed { position: fixed; left: -350px; top: 0; bottom: 0; width: 340px; background: #fff; z-index: 9998; box-shadow: 5px 0 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; transition: left 0.3s ease-in-out; }
.cart-sidebar-fixed.open { left: 0; }

.prod-manager-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:20000; justify-content:center; align-items:center; }
.prod-manager-content { background:#fff; width:98%; max-width:1400px; height:95vh; border-radius:10px; display:flex; flex-direction:column; overflow:hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.prod-manager-header { padding: 15px 20px; background: #00838f; color: white; display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 1.2rem;}
.prod-manager-body { display: flex; flex: 1; overflow: hidden; }
.prod-list-side { width: 320px; background: #f4f6f8; border-left: 1px solid #ddd; display: flex; flex-direction: column; }
.prod-form-side { flex: 1; padding: 25px; overflow-y: auto; background: #fff; display: flex; flex-direction: column; gap: 15px; }
.prod-list { flex: 1; overflow-y: auto; list-style: none; padding: 0; margin: 0; }
.prod-list li { padding: 12px 15px; border-bottom: 1px solid #e0e0e0; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; gap: 4px;}
.prod-list li:hover { background: #e7f3f0; border-right: 4px solid var(--primary);}

.form-control { border: 1px solid #ccc; border-radius: 5px; outline: none; font-family: inherit; font-size: 0.95rem; padding: 8px; width: 100%; box-sizing: border-box; text-align: center;}
.form-control:focus { border-color: #00838f; box-shadow: 0 0 5px rgba(0, 131, 143, 0.2); }
.form-control[readonly] { background-color: #e9ecef; cursor: not-allowed; color: #495057; font-weight: bold;}

.prod-top-section { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: stretch;}
.img-preview-box { width: 100%; height: 100%; min-height: 200px; border: 2px dashed #00838f; border-radius: 8px; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #f9f9f9; position: relative; cursor: pointer; transition: 0.3s;}
.img-preview-box:hover { background: #e7f3f0; border-color: #005f6b; }
.img-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; z-index: 2;}
.img-preview-box span { position: absolute; color: #888; font-size: 0.9rem; z-index: 1; font-weight: bold; text-align: center;}

.info-grid-container { background: #e7f3f0; border: 1px solid #b2dfdb; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 10px; justify-content: center;}
.info-row { display: flex; gap: 10px; align-items: center; }
.info-col { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.info-col label { font-size: 0.85rem; font-weight: bold; color: #005f6b; text-align: center; }

.pricing-section { margin-top: 10px; }
.pricing-title { color: #005f6b; font-weight: bold; font-size: 1.1rem; border-bottom: 2px solid #b2dfdb; padding-bottom: 5px; margin-bottom: 10px; }
.pricing-table { width: 100%; border-collapse: collapse; text-align: center; }
.pricing-table th { background: #00838f; color: white; padding: 10px; font-size: 0.85rem; border: 1px solid #00707a;}
.pricing-table td { padding: 6px; border: 1px solid #ddd; background: #fff; vertical-align: middle;}
.pricing-table input[type="text"], .pricing-table input[type="number"] { width: 90%; padding: 6px; border: 1px solid #ccc; border-radius: 4px; text-align: center; font-family: inherit; font-size: 0.9rem;}
.pricing-table input[type="checkbox"] { transform: scale(1.3); cursor: pointer; }

#selectedProductArea {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 99999; justify-content: center; align-items: center;
    padding: 20px; box-sizing: border-box; direction: rtl;
}

.new-pos-modal {
    background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    width: 100%; max-width: 850px; position: relative; max-height: 95vh; overflow-y: auto;
    border: 3px solid var(--primary);
}

.new-pos-grid {
    display: flex; gap: 20px; margin-top: 15px; align-items: stretch; flex-wrap: wrap;
}

.new-pos-left { flex: 2; display: flex; flex-direction: column; gap: 12px; min-width: 300px; }
.new-pos-right { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 250px; }

.new-pos-box {
    background: #fff; border: 1px solid #b2dfdb; border-radius: 8px; padding: 8px; text-align: center;
}

.new-pos-label { font-size: 0.85rem; font-weight: bold; color: #005f6b; margin-bottom: 5px; display: block;}
.new-pos-value { font-size: 1.1rem; font-weight: bold; color: #333; }
.flex-row-box { display: flex; gap: 10px; justify-content: space-between; align-items: center;}

#customerFilesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 10px;
    align-content: start;
}
.file-thumb-box {
    border: 1px solid #ddd; border-radius: 5px; background: #fff;
    padding: 5px; position: relative; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    height: 105px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.file-thumb-box:hover { border-color: var(--primary); }
.file-thumb-box img { width: 100%; height: 50px; object-fit: cover; border-radius: 3px; cursor: pointer; }
.file-thumb-box .file-icon { font-size: 2rem; margin-top: 5px; cursor: pointer; line-height: 1;}
.file-thumb-box .file-name { font-size: 0.6rem; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; direction: ltr; font-weight: bold; margin-top: 2px;}
.file-thumb-box .file-size { font-size: 0.55rem; color: #888; font-weight: bold; }

.file-cb, .file-cb-download { 
    position: absolute; top: 3px; right: 3px; transform: scale(1.3); cursor: pointer; z-index: 5; margin: 0; 
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
}

.status-btn-group {
    display: flex; gap: 5px; background: #f0f2f5; padding: 5px; border-radius: 6px; margin-bottom: 10px; align-items: stretch;
}
.status-btn {
    flex: 1; padding: 8px 5px; border: 1px solid #ccc; border-radius: 4px; font-weight: bold; cursor: pointer; 
    transition: 0.2s; font-size: 0.8rem; background: #fff; color: #dc3545; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.status-btn.active {
    background: #28a745; color: white; border-color: #28a745;
}
.missing-badge {
    background: #ffebee; color: #c62828; font-size: 0.7rem; padding: 2px 5px; border-radius: 3px; border: 1px solid #ef9a9a; margin-right: 3px; font-weight: bold; display: inline-block; margin-bottom: 2px;
}

/* ستايل المودال الخاص بتكبير الصورة */
.image-zoom-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:1000000; justify-content:center; align-items:center; flex-direction:column; backdrop-filter: blur(5px);}
.image-zoom-modal img { max-width:90%; max-height:80vh; object-fit:contain; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,0.5); border: 3px solid #fff;}
.image-zoom-title { color:white; font-size:1.5rem; font-weight:bold; margin-top:15px; text-align:center;}
.image-zoom-close { position:absolute; top:20px; right:30px; color:white; font-size:3rem; font-weight:bold; cursor:pointer; line-height:1; transition: 0.2s;}
.image-zoom-close:hover { color: #f57c00; transform: scale(1.1); }

/* --- تصميم شاشة الطباعة الجديدة (تطابق الصورة تماماً وتصغير الأحجام) --- */
.print-new-container { display: flex; gap: 15px; background: #fff; padding: 15px; border-radius: 12px; max-width: 1300px; margin: 20px auto 0; height: calc(100vh - 50px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.print-settings-side { flex: 2.5; display: flex; flex-direction: column; }
.print-preview-side { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; background: #f0f0f0; border-radius: 8px; padding: 10px; border: 2px solid #ccc; }

.pr-row { display: flex; width: 100%; align-items: stretch; margin-bottom: 8px; }
.pr-box { border-radius: 6px; text-align: center; display: flex; flex-direction: column; justify-content: center; padding: 8px; }
.pr-dropzone { background: #cfdfdf; border-radius: 6px; text-align: center; font-size: 1.8rem; font-weight: 900; color: #a1b8b6; flex: 4; cursor: pointer; display: flex; align-items: center; justify-content: center; border: 3px dashed transparent; transition: 0.2s; }
.pr-dropzone:hover { background: #b2cece; }
.pr-custom-input { width: 100%; padding: 8px; border-radius: 6px; border: 2px solid #b2dfdb; outline: none; font-weight: bold; font-size: 0.9rem; text-align: center; margin-bottom: 8px; font-family: inherit;}

.pr-btn-group { display: flex; gap: 5px; }
.pr-btn { flex: 1; border: none; border-radius: 6px; font-weight: 900; font-size: 1rem; cursor: pointer; transition: 0.2s; background: #b0bec5; color: #fff; padding: 8px 5px; }
.pr-btn-size.active { background: #4db6ac; }
.pr-btn-face.active { background: #afb42b; }
.pr-btn-color.active { background: #fbc02d; color: #333; }

.pr-calc-card { flex: 1; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; color: white; }
.card-teal { background: #26a69a; } .card-green { background: #8bc34a; } .card-emerald { background: #4db6ac; }
.pr-card-header { text-align: center; padding: 5px; font-weight: 900; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.3); }
.pr-card-body { flex: 1; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; font-weight: 900; color: #000; }
.pr-card-body input { background: transparent; border: none; width: 100%; text-align: center; font-size: 2.5rem; font-weight: 900; outline: none; color: #000; font-family: inherit; }
.pr-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; font-weight: bold; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.3); }
.pr-card-footer input { background: transparent; border: none; width: 45px; font-weight: bold; font-size: 0.9rem; outline: none; text-align: center; color: #000; font-family: inherit; }

.pr-summary-box { flex: 4; background: #e0f2f1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; color: #000; text-align: center; padding: 8px; border: 2px solid #b2dfdb; }

.pr-select { flex: 3; border-radius: 6px; border: 2px solid #888; font-size: 1rem; font-weight: 900; text-align: center; outline: none; padding: 5px; }
.pr-add-btn { flex: 0.5; background: #4db6ac; border: none; border-radius: 6px; color: white; font-size: 1.5rem; font-weight: 900; cursor: pointer; }
.pr-print-btn { flex: 1.5; background: #4caf50; border: none; border-radius: 6px; color: white; font-size: 1.2rem; font-weight: 900; cursor: pointer; padding: 8px; }

.pdf-preview-container { flex: 1; background: #fff; border-radius: 6px; display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; border: 1px solid #ccc; }
.pdf-controls { display: flex; justify-content: space-between; align-items: center; background: #ddd; padding: 5px; border-radius: 6px; font-weight: 900; font-size: 0.9rem; }
.pdf-controls button { background: none; border: none; font-size: 1.1rem; cursor: pointer; font-weight: 900; }

.printer-queue-list { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; margin-top: 4px; }
.queue-item { display: flex; align-items: center; gap: 6px; background: #fff; padding: 4px; border-radius: 4px; border: 1px solid #ccc;}
.queue-del { background: none; border: none; font-size: 1rem; cursor: pointer; color: #888; }
.queue-count { background: #fff; border: 1px solid #888; border-radius: 3px; width: 40px; text-align: center; font-weight: bold; font-size: 0.9rem; padding: 2px; outline: none;}
.queue-name { flex: 1; text-align: center; font-weight: bold; font-size: 0.85rem; }
.deleted-page-overlay { position: absolute; inset:0; background:rgba(255,0,0,0.6); display:none; justify-content:center; align-items:center; color:white; font-size:1.5rem; font-weight:bold; z-index: 10;}
/* 🟢 تنسيق عناصر قائمة الواتساب 🟢 */
.wa-chat-list .chat-item {
    cursor: pointer;
    transition: 0.2s;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-right: none;
}

/* 🟢 العنصر النشط (المحدد) 🟢 */
.wa-chat-list .chat-item.chat-active {
    background: #e7f3f0 !important;
    border-right: 4px solid #00a884 !important;
}

/* 🟢 Hover effect - يعمل على كل العناصر 🟢 */
.wa-chat-list .chat-item:hover {
    background-color: #e8f5e9 !important;
    border-right: 4px solid #28a745 !important;
    transition: 0.1s ease-in-out;
}

/* 🟢 zebra effect للقائمة 🟢 */
.wa-chat-list .chat-item:nth-child(even) {
    background-color: #f1f1f1;
}

.wa-chat-list .chat-item:nth-child(odd) {
    background-color: #ffffff;
}