﻿/*!
 * Start Bootstrap - Modern Business (https://startbootstrap.com/template-overviews/modern-business)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-logomodern-business-nav/blob/master/LICENSE)
 */
body {
  padding-top: 56px;
}

.carousel-item {
  height: 65vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.portfolio-item {
  margin-bottom: 30px;
}
#searchName
{
    width:130px;
    border:2px solid #ccc;
    border-radius:2px;
    background-color:white;
}

/* تحسينات اللغة العربية */
body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
   
    text-align: right;
}

.arabic-content {
    direction: rtl;
    text-align: right;
}

.card-title {
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

.form-label {
    font-weight: 600;
    color: #34495e;
}

.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* تحسينات صفحة الطباعة */
@media print {
    body {
        font-family: 'Arial', sans-serif;
        direction: rtl;
        text-align: right;
        margin: 0;
        padding: 20px;
        background: white;
    }

    .container-fluid, .card, .card-body {
        border: none !important;
        box-shadow: none !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card-header, .btn, #priceListForm {
        display: none !important;
    }

    /* رأس الصفحة للطباعة */
    .print-header {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 3px solid #2c3e50;
        padding-bottom: 15px;
    }

    .print-title {
        font-size: 24px;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .print-date {
        font-size: 14px;
        color: #7f8c8d;
    }

    /* جدول المنتجات للطباعة */
    .price-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        font-size: 12px;
    }

        .price-table th {
            background-color: #ecf0f1 !important;
            color: #2c3e50 !important;
            font-weight: bold;
            padding: 12px 8px;
            border: 2px solid #bdc3c7;
            text-align: center;
        }

        .price-table td {
            padding: 10px 8px;
            border: 1px solid #bdc3c7;
            text-align: center;
        }

        /* خطوط بين المنتجات */
        .price-table tr:nth-child(even) {
            background-color: #f8f9fa !important;
        }

        .price-table tr:hover {
            background-color: transparent !important;
        }

    /* خط فاصل بين كل منتج */
    .product-separator {
        border-bottom: 2px solid #3498db !important;
    }

    /* تذييل الصفحة */
    .print-footer {
        position: fixed;
        bottom: 20px;
        width: 100%;
        text-align: center;
        font-size: 10px;
        color: #7f8c8d;
        border-top: 1px solid #bdc3c7;
        padding-top: 10px;
    }

    /* فواصل الصفحات */
    .page-break {
        page-break-before: always;
    }

    /* إخفاء العناصر غير المرغوب فيها في الطباعة */
    .no-print {
        display: none !important;
    }
}

/* تحسينات العرض على الشاشة */
@media screen {
    .print-only {
        display: none;
    }

    .card {
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 15px 15px 0 0 !important;
        padding: 20px;
    }

    .form-select {
        border-radius: 8px;
        border: 2px solid #e9ecef;
        padding: 12px;
        font-size: 14px;
        transition: border-color 0.3s ease;
    }

        .form-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

    #priceListContainer {
        margin-top: 30px;
        padding: 20px;
        border-radius: 10px;
        background-color: #f8f9fa;
    }
}
@media print {
    body

{
    direction: rtl;
    font-size: 16px;
    color: #000;
    background: #fff !important;
}

.no-print {
    display: none !important;
}

.print-footer {
    border: 1px solid #000;
    padding: 20px;
    margin-top: 20px;
    page-break-inside: avoid;
}

    .print-footer .row {
        display: flex;
        justify-content: space-between;
        text-align: center;
    }

        .print-footer .row > div {
            flex: 1;
        }

    .print-footer p {
        margin: 10px 0;
        font-weight: bold;
    }

    .print-footer hr {
        margin: 30px 0;
        border-top: 1px solid #000;
    }

}

@media print {
    body

{
    direction: rtl;
    font-size: 16px;
    color: #000;
    background: #fff !important;
}

.no-print {
    display: none !important;
}

.print-footer {
    border: 1px solid #000;
    padding: 20px;
    margin-top: 20px;
    page-break-inside: avoid;
}

    .print-footer .row {
        display: flex;
        justify-content: space-between;
        text-align: center;
    }

        .print-footer .row > div {
            flex: 1;
        }

    .print-footer p {
        margin: 10px 0;
        font-weight: bold;
    }

    .print-footer hr {
        margin: 30px 0;
        border-top: 1px solid #000;
    }

}


