﻿.xsrv-popup-form-size1 {
    --dxbl-popup-max-width: 600px;
}

.xsrv-popup-form-size2 {
    --dxbl-popup-max-width: 800px;
}

.xsrv-popup-form-size3 {
    --dxbl-popup-max-width: 1000px;
}

.xsrv-popup-form-size4 {
    --dxbl-popup-max-width: 1200px;
}
.xsrv-compact-layout {
    /* Reduce vertical space between items/groups */
    --dxbl-form-layout-v-gap: 2px !important;
    /* Reduce horizontal space if you have multiple columns */
    --dxbl-form-layout-h-gap: 2px !important;
}

    /* Force the group elements to obey the new spacing */
    .xsrv-compact-layout .dxbl-form-layout-group,
    .xsrv-compact-layout dxbl-form-layout-group {
        margin-bottom: 5px !important;
        margin-top: 0 !important;
    }

    .xsrv-compact-layout .dxbl-group-body-content,
    .xsrv-compact-layout dxbl-group-layout-content {
        padding-bottom: 0 !important;
    }

/*.combo-color-swatch {
    display: block;
    width: 100%;*/
    /* 1.5em is the standard text height; 
       adding 0.5rem padding matches default Bootstrap sizing */
    /*min-height: 1.5rem;
    border-radius: 4px;
    border: 1px solid;
}*/

/* Ensure the DevExpress container doesn't shrink */
/*.dxbl-combobox .dxbl-input-text-edit {
    display: flex;
    align-items: center;
    min-height: calc(1.5em + 0.75rem + 2px);*/ /* Standard Bootstrap Height */
/*}*/

/* Not used */
.xsrv-popup-form {
    --dxbl-popup-max-width: 1200px;
}

    .xsrv-popup-form .dx-formlayout {
        width: 100%;
    }

    .xsrv-popup-form.dxbl-popup-fixed-width {
        width: 1200px;
        max-width: 90%; /* roughly same width as article */
        left: 50%;
        top: 100px; /* aligns with content inside article */
        transform: translateX(-50%);
    }

/* Not used */
/*.checkbox-container .dx-formlayout-item {
    display: flex;
    align-items: center;*/ /* vertically center */
    /*gap: 10px;*/ /* optional spacing between checkboxes if side by side */
/*}*/

/* Not used */
/*.checkbox-container .dx-checkbox {
    flex-grow: 1;*/ /* stretch to fill column if needed */
/*}*/

.xsrv-text-right {
    text-align: right;
}

.xsrv-inline-inputs {
    display: flex;
    gap: 2px;
    space between inputs
}

    .xsrv-inline-inputs > * {
        flex: 1;
        equal width
    }

.xsrv-stack-item {
    padding: 8px;
    cursor: pointer;
}

    .xsrv-stack-item.selected {
        background-color: #e7f1ff;
        border-left: 3px solid #3b82f6;
    }