﻿.myCategories_titl {
    background-color: #367fa9;
    margin-bottom: 14px;
    margin-top: 3px;
    text-align: center;
    color: #fff;
    border-radius: 9px;
    padding-top: 8px;
    padding-bottom: 8px;
}
/* Ensure right-side-section takes full width when left-side-section is hidden */
.left-side-section.hidden + .right-side-section {
    flex: 0 0 100%;
    max-width: 100%;
}

.box-note {
    border-top: 0px;
    box-shadow: 0 1px 9px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    margin-bottom: 20px;
    width: 100%;
}

#map {
    height: 500px;
    width: 100%;
}


.promotion-preview-box {
    border: 1px solid #d6e4f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    padding: 14px;
    margin-top: 12px;
}

.promotion-preview-title {
    font-weight: 700;
    color: #1f4c73;
    margin-bottom: 8px;
}

.promotion-preview-summary {
    color: #4e6478;
    margin-bottom: 8px;
}

.promotion-preview-item {
    padding: 8px 10px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(31, 76, 115, 0.08);
}

.promotion-preview-link {
    display: block;
    text-decoration: none !important;
}

    .promotion-preview-link:hover .promotion-preview-item,
    .promotion-preview-link:focus .promotion-preview-item {
        box-shadow: 0 4px 10px rgba(31, 76, 115, 0.16);
        transform: translateY(-1px);
    }

.promotion-preview-name {
    font-weight: 600;
    color: #18344a;
}

.promotion-preview-meta {
    color: #5f7385;
    font-size: 12px;
    margin-top: 3px;
}

.promotion-pill-wrap {
    margin-top: 6px;
}

.promotion-pill {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: #dff3e7;
    color: #1f6a42;
    font-size: 11px;
    font-weight: 600;
}

.sales-date-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    direction: rtl;
}

.sales-date-label {
    flex: 0 0 30%;
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

.sales-date-field {
    position: relative;
    flex: 1 1 auto;
    width: auto;
    height: 38px;
    margin: 0;
}

    .sales-date-field .SalesExpirationDate {
        width: 100%;
        height: 38px;
        margin: 0;
        padding: 6px 12px;
        box-sizing: border-box;
        text-align: right;
        direction: ltr;
        line-height: 1.42857143;
    }

        .sales-date-field
        .SalesExpirationDate[type="date"]::-webkit-calendar-picker-indicator {
            display: none !important;
            opacity: 0 !important;
            -webkit-appearance: none !important;
        }

        .sales-date-field
        .SalesExpirationDate[type="date"] {
            width: 100%;
            height: 38px;
            padding: 6px 12px;
            appearance: none;
            -webkit-appearance: none;
            box-sizing: border-box;
        }

    .sales-date-field.is-picker-open
    .SalesExpirationDate {
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        caret-color: transparent;
    }

    .sales-date-field.is-picker-open::after {
        content: attr(data-display-date);
        position: absolute;
        top: 50%;
        right: 12px;
        left: 12px;
        transform: translateY(-50%);
        z-index: 2;
        pointer-events: none;
        color: #212529;
        -webkit-text-fill-color: #212529;
        direction: ltr;
        text-align: right;
        line-height: 1;
        white-space: nowrap;
    }

/*  تصميم خاص با خصائص الصنف */

.sales-property-row > td {
    padding: 8px 12px 12px !important;
    background: #fff;
}

.sales-property-panel {
    width: 100%;
    padding: 12px;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    background: #fafbfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 13px;
}

.sales-property-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

    .sales-property-header strong {
        font-size: 13px;
        font-weight: 700;
    }

.sales-property-group {
    width: 100%;
}



.sales-property-field .form-label {
    display: block;
    margin: 0 0 7px;
    min-height: 20px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: start;
}

.sales-property-field .form-control,
.sales-property-field .form-select {
    width: 100%;
    min-height: 38px;
}


/* Radio / Boolean */

.sales-property-radio-container {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 7px 10px;
    border: 1px solid #d2d6de;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
}

.sales-property-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    cursor: pointer;
}

    .sales-property-radio-option input {
        margin-bottom: 0;
    }

/* Select2 */

.sales-property-field .select2-container {
    width: 100% !important;
}

    .sales-property-field
    .select2-container
    .select2-selection--single {
        height: 38px !important;
        border: 1px solid #d2d6de;
        border-radius: 4px;
        background: #fff;
    }

        .sales-property-field
        .select2-container
        .select2-selection--single
        .select2-selection__rendered {
            line-height: 28px !important;
        }

        .sales-property-field
        .select2-container
        .select2-selection--single
        .select2-selection__arrow {
            height: 36px !important;
        }


    /* Select2 Multiple */

    .sales-property-field
    .select2-container
    .select2-selection--multiple {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        border: 1px solid #d2d6de;
        border-radius: 4px;
        background: #fff;
        overflow: hidden;
        box-sizing: border-box;
    }


/* المحتوى الداخلي */

.sales-property-field
.select2-container--default
.select2-selection--multiple
.select2-selection__rendered {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    width: 100%;
    height: 36px;
    padding: 0 6px !important;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}


/* القيم المختارة */

.sales-property-field
.select2-container--default
.select2-selection--multiple
.select2-selection__choice {
    flex: 0 0 auto;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    white-space: nowrap;
}

.sales-property-field
.select2-container--default
.select2-selection--multiple
.select2-search--inline {
    flex: 1 0 80px;
    min-width: 80px;
}

    .sales-property-field
    .select2-container--default
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field {
        height: 34px !important;
        line-height: 34px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 4px !important;
    }


/* Validation */

.sales-property-error {
    margin-top: 8px;
    min-height: 18px;
    font-size: 13px;
}

/* Mobile */

@media (max-width: 768px) {
    .sales-property-panel {
        padding: 10px;
    }
}

.select2-container--open {
    z-index: 99999 !important;
}

.select2-dropdown {
    z-index: 99999 !important;
}

.sales-property-field
.select2-container--default
.select2-selection--multiple
.select2-selection__rendered {
    scrollbar-width: thin;
    scrollbar-color: #9e9e9e transparent;
}

    /* Chrome / Edge / Safari */

    .sales-property-field
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered::-webkit-scrollbar {
        height: 3px;
    }

    .sales-property-field
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered::-webkit-scrollbar-track {
        background: transparent;
    }

    .sales-property-field
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered::-webkit-scrollbar-thumb {
        background: #9e9e9e;
        border-radius: 10px;
    }