/* PHOTOP Gallery Function Zoom - Start */
/* Gallery Overlay styles */
.gallery-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dim gray background */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
}

.gallery-overlay.active {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.gallery-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 50%;
    height: 100%;*/
    height: fit-content;
}

.gallery-overlay-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image fits without cropping, maintaining aspect ratio */
    border-radius: 0.75rem; /* More rounded corners for enlarged image */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Shadow for enlarged image */
    transition: transform 0.3s ease-in-out;
}

.gallery-overlay-content img.zoomed {
    transform: scale(1.5); /* Zoom effect */
    /*cursor: zoom-out;*/
}

.gallery-overlay-nav-buttons.previous-button {
  justify-content: flex-end;
}

.gallery-overlay-content img:not(.zoomed) {
    /*cursor: zoom-in;*/
}

.gallery-overlay-buttons {
  display: flex;
  gap: 1.5rem;
  flex-direction: row;
}

.gallery-overlay-nav-buttons {
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 2rem;
    height: 50%;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1;
}

.gallery-overlay-nav-buttons button,
.gallery-overlay-buttons button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 9999px; /* Fully rounded buttons */
    cursor: pointer;
    font-size: 2.5rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    margin-top: 10px;
    width: 36px;
}

.gallery-overlay-nav-buttons button:hover,
.gallery-overlay-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Specific height for gallery images to ensure consistent grid layout, object-cover will handle aspect ratio */
/* Fixed height for gallery thumbnails */
/* Crop to cover the area while maintaining aspect ratio */
/*
.PhotoGalleryItem .PhotoCell img {
    height: 200px;
    object-fit: cover;
  }
 */

/* Loading indicator styles */
.gallery-loading-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: gallery-spin 1s linear infinite;
    position: absolute; /* Position over the image area */
    z-index: 1001; /* Above the image */
    display: none; /* Hidden by default */
}

@keyframes gallery-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PHOTOP Gallery Function Zoom - End */


.x-grid-row-selected .x-grid-cell {
  border-radius: 0px;
}

.x-grid-row .x-grid-cell.GridAttribute {
  border-color: #d3d4d3;
  border-width: 1px;
  border-style: solid;
}
.x-grid-row .x-grid-cell.GridAttribute:focus-within {
    background-image: none !important;
}

.x-grid-row .x-grid-cell.GridAttribute .x-grid-cell-inner{
  margin-left: -5px;
  padding-left: 8px;
}

table.ViewTable .data_table_cell_parameters {
  background-size: contain;
}

.tab_cell_top .tab_cell_tab_image:first-of-type img {
  margin-top: 2px;
}

span.BaseRBtn.RActionButtons {
  display: inline-block;
}

.RActionButtons .BtnBackground {
  background-repeat: repeat-x !important;
}

.BaseRBtn input.BtnText {
  background: inherit;
}

tr.x-grid-row > td > div.x-grid-cell-inner {
  width: calc(100% + 1px);
  padding-left: 4px;
}

.x-toolbar .x-btn-button .x-btn-icon-el {
    background-repeat: no-repeat;
    bottom: 0;
    left: 0;
    margin-left: 2px;
    margin-top: 4px;
    position: absolute;
    right: 0;
    top: 0;
    height: 16px;
    width: 16px;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.x-toolbar .x-btn-button .x-btn-inner {
    text-align: center;
}

.FormDetalleProductos #TABLE5_MPAGE {
  padding-left: 40px;
  padding-left: 40px;
}
