/* Custom styles for EBizPortal */

/* Ensure proper spacing and layout */
/* Note: page-wrapper padding-top: 65px is needed for fixed header, don't override it */
.page-wrapper {
    /* Keep the original padding-top: 65px from style.css for fixed header */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.content {
    padding: 24px;
    padding-bottom: 0;
}

/* Fix for dropdown menus */
.dropdown-menu {
    z-index: 1050;
}

/* Ensure modals work properly */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

/* Chart container fixes */
#sales-daychart,
#customer-chart,
#sales-statistics {
    min-height: 200px;
}

/* Responsive adjustments */
@@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .sale-widget .card-body {
        flex-direction: column;
        text-align: center;
    }
}

/* Fix for Select2 in modals */
.select2-container {
    width: 100% !important;
}

/* Ensure proper display of icons */
[data-feather] {
    width: 16px;
    height: 16px;
}

/* Fix for date range picker */
.daterangepicker {
    z-index: 9999 !important;
}

/* ===== Image preview: 120x120 thumbnails, no narrow strip or distortion ===== */
.add-choosen-image-upload {
    flex-direction: column !important;
    align-items: flex-start;
}
.add-choosen-image-upload .image-preview-list {
    width: 100%;
}
.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}
.image-preview-item {
    width: 120px;
    min-width: 120px;
    flex: 0 0 120px;
}
.image-preview-item > div {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 0.25rem;
    border: 1px solid rgba(145, 158, 171, 0.32);
    background: #fff;
}
.image-preview-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
/* Add Images 120x120 box: fit content, avoid cramped strip */
.image-upload.image-upload-two .image-uploads {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.image-upload.image-upload-two .image-uploads p {
    display: none;
}
.image-upload.image-upload-two .image-uploads h4 {
    font-size: 11px;
}
