/* ▓▓▓ CUSTOM REGION WITH HEADER ▓▓▓ */
.customRegionWithHeader {
    min-height: 50px;
    background: linear-gradient(to bottom right, #f0f8ff, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

.customRegionWithHeader .t-Region-header {
    font-size: 14px;
    padding: 5px;
    min-height: 31px;
    max-height: 36px;
}

.customRegionWithHeader .t-Region-bodyWrap {
    border-top: none;
    padding: 1px;
    min-height: 64px;
}

.customRegionWithHeader .t-Region-body {
    padding: 1px;
}

/* ▓▓▓ FORM ELEMENTS (INPUTS, SELECTS, DISPLAY-ONLY, RATING) ▓▓▓ */
.customRegionWithHeader .t-Form-fieldContainer .apex-item-text,
.customRegionWithHeader .t-Form-fieldContainer .apex-item-select,
.customRegionWithHeader .t-Form-fieldContainer .apex-item-display-only,
.customRegionWithHeader .t-Form-fieldContainer .apex-rater {
    height: 40px;
    min-height: 40px;
    font-size: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    line-height: 20px;
}

/* DISPLAY-ONLY FIELDS */
.customRegionWithHeader .apex-item-display-only {
    display: flex;
    align-items: center;
    background-color: #d6ebff;
    font-weight: 600;
}

/* STAR RATING */
.customRegionWithHeader .apex-rater {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

/* ▓▓▓ TEXTAREA STYLING (SHARED) ▓▓▓ */
.customRegionWithHeader textarea,
.customRegionWithoutHeader textarea,
.customTextarea {
    max-height: 30px;
    line-height: 20px;
    font-size: 12px;
    background-color: #f6fafd;
    resize: none;
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
}

/* ▓▓▓ LABELS ▓▓▓ */
.customRegionWithHeader .t-Form-labelContainer {
    display: flex;
    align-items: center;
    padding-left: 4px;
}

.customRegionWithHeader .t-Form-label {
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

/* FIELD CONTAINER SPACING */
.customRegionWithHeader .t-Form-fieldContainer {
    margin-bottom: 8px;
}

/* GRID LAYOUT SPACING */
.customRegionWithHeader .row .col {
    padding: 4px;
}

/* ▓▓▓ RESPONSIVE FIX ▓▓▓ */
@media screen and (max-width: 768px) {
    .customRegionWithHeader .row .col,
    .customRegionWithoutHeader .row .col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ▓▓▓ CUSTOM REGION WITHOUT HEADER ▓▓▓ */
.customRegionWithoutHeader .t-Region {
    min-height: 88px;
    background: linear-gradient(to bottom right, #f0f8ff, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customRegionWithoutHeader .t-Region-bodyWrap {
    border-top: none;
    padding: 2px;
    min-height: 64px;
}

.customRegionWithoutHeader .t-Region-body {
    padding: 2px;
}

/* ▓▓▓ FORM ELEMENTS (INPUTS, SELECTS, DISPLAY-ONLY, RATING) ▓▓▓ */
.customRegionWithoutHeader .t-Form-fieldContainer .apex-item-text,
.customRegionWithoutHeader .t-Form-fieldContainer .apex-item-select,
.customRegionWithoutHeader .t-Form-fieldContainer .apex-item-display-only,
.customRegionWithoutHeader .t-Form-fieldContainer .apex-rater {
    height: 40px;
    min-height: 40px;
    font-size: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    line-height: 20px;
}

/* DISPLAY-ONLY FIELDS */
.customRegionWithoutHeader .apex-item-display-only {
    display: flex;
    align-items: center;
    background-color: #d6ebff;
    font-weight: 600;
}