/* Fase 9.5 — CSS verbatim de los bloques de estilo de Pages/Common/VantasticQREditPage.razor. Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el bloque. Cambios: @@ → @ y capas D-51. */
.e-dialog.product-edit-dialog .e-dlg-content {
    padding: 1.5rem; /* Padding for the content area */
    overflow-y: auto; /* Allow content inside to scroll if it overflows */
    max-height: calc(90vh - 120px); /* Adjust based on header/footer height */
    /* 90vh is the dialog's max height. Subtract header/footer estimated height.
       You might need to fine-tune 120px based on your actual header/footer size. */
}
/* Main dialog container */
.e-dialog.product-edit-dialog {
    /* Syncfusion's default positioning is usually good. */
    /* Remove width/height from here if you use percentages in SfDialog component props */
    /* For responsiveness, Width="90%" and Height="auto" in razor are better */
    min-width: 320px; /* Minimum width for smaller screens */
    border-radius: 15px; /* Rounded corners for the whole dialog */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Soft shadow */
    background-color: #ffffff; /* Explicit background */
}

    /* Dialog Header */
    .e-dialog.product-edit-dialog .e-dlg-header-content {
        background-color: #f8f9fa; /* Light background for header */
        padding: 1rem 1.5rem; /* Padding for header */
        border-bottom: 1px solid #e9ecef; /* Separator line */
        border-top-left-radius: 15px; /* Match dialog border-radius */
        border-top-right-radius: 15px;
    }

    .e-dialog.product-edit-dialog .dialog-header-title {
        color: #343a40; /* Darker text color */
        font-size: 1.5rem; /* Header font size */
        font-weight: bold;
        margin: 0; /* Remove default margin */
    }

    /* Dialog Content Area */
    .e-dialog.product-edit-dialog .e-dlg-content {
        padding: 1.5rem; /* Padding for the content area */
        overflow-y: auto; /* Allow content inside to scroll if it overflows */
        max-height: calc(90vh - 120px); /* Adjust based on header/footer height */
        /* 90vh is the dialog's max height. Subtract header/footer estimated height.
       You might need to fine-tune 120px based on your actual header/footer size. */
    }

/* New wrapper for content inside dialog to manage scroll */
.dialog-content-wrapper {
    /* No specific styles needed here, its purpose is structural for overflow-y:auto above */
}

/* Dialog Footer (Buttons) */
.e-dialog.product-edit-dialog .e-footer-content {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef; /* Separator line */
    background-color: #f8f9fa; /* Light background for footer */
    border-bottom-left-radius: 15px; /* Match dialog border-radius */
    border-bottom-right-radius: 15px;
    display: flex; /* Use flexbox for button alignment */
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; /* Space between buttons */
}

/* Close button (top right 'x') */
.e-dialog.product-edit-dialog .e-dlg-closeicon {
    font-size: 1.5rem; /* Size of the 'x' */
    color: #6c757d; /* Color of the 'x' */
    right: 15px; /* Position it nicely */
    top: 15px;
}

    .e-dialog.product-edit-dialog .e-dlg-closeicon:hover {
        color: #343a40;
    }
/* General Syncfusion input styling (adjust as needed) */
.e-input-group.e-control-wrapper {
    margin-bottom: 1rem; /* Space between inputs */
}

.e-numerictextbox .e-input,
.e-textbox .e-input {
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 0.25rem; /* Match Bootstrap inputs */
    border: 1px solid #ced4da;
}

.e-numerictextbox.e-float-input .e-float-text,
.e-textbox.e-float-input .e-float-text {
    transform: translateY(-120%) scale(0.85);
    font-size: 0.8rem;
    color: #6c757d;
}

.e-input-group:not(.e-disabled) .e-input:focus,
.e-input-group:not(.e-disabled) .e-input.e-focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Specific styling for the memo box */
.e-textbox.e-multi-line {
    min-height: 100px;
    resize: vertical;
    width: 100%; /* Ensure it takes full width */
}
.custom-dialog .e-dialog {
    border-radius: 8px !important;
    max-height: 90% !important;
    max-width: 90% !important;
    Width: 90% !important;
    min-width: 90% !important;
    Height: 90% !important;
    min-height: 90% !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
}
