﻿.masterdata-popup-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.masterdata-popup-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.masterdata-popup-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem 2rem;
    align-content: start;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    font-size: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.masterdata-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    align-items: start;
}

    .masterdata-field > * {
        min-width: 0;
    }

.masterdata-field-full {
    grid-column: 1 / -1;
}

@container (min-width: 400px) {
    .masterdata-field {
        grid-template-columns: var(--form-label-width) minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }
}

@container (min-width: 600px) {
    .masterdata-popup-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/*.masterdata-Popup {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto;
    overflow-x: hidden;
}*/

.masterdata-PopupTree {
    height: calc(100vh - 24rem) !important;
    min-height: calc(100vh - 24rem) !important;
    max-height: calc(100vh - 24rem) !important;
    overflow: auto;
    overflow-x: hidden;
}

.masterdata-PopupGrid {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: visible;
}

.masterdata-tree-shell {
    container-type: inline-size;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.masterdata-field-prefix {
    grid-template-columns: var(--form-label-width) minmax(0, 1fr) minmax(0, 1fr) clamp(9rem, 20%, 13rem);
    align-items: center;
}

    .masterdata-field-prefix .prefix-control {
        grid-column: span 2;
        min-width: 0;
    }

    .masterdata-field-prefix .prefix-combo {
        min-width: 0;
        width: 100%;
    }