.cw-store-layout,
.cw-store-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 1rem;
    align-items: start;
}

.cw-store-layout > div,
.cw-store-fields > div,
.cw-store-detail .ui-fieldset {
    min-width: 0;
}

.cw-store-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.cw-store-scroll:focus-visible {
    outline: 2px solid #16766c;
    outline-offset: -2px;
}

body.carewex-modern .cw-store-scroll .ui-datatable table {
    min-width: 31rem;
}

.cw-store-detail .ui-fieldset {
    margin-bottom: 1rem;
}

.cw-store-facts {
    width: 100%;
    overflow-wrap: anywhere;
}

.cw-store-editor {
    max-width: 60rem;
}

.cw-store-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.cw-store-fields label,
.cw-store-type dt {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.cw-store-type {
    margin: 0 0 1rem;
}

.cw-store-type dd {
    margin: 0;
}

body.carewex-modern .cw-store-fields .ui-inputfield,
body.carewex-modern .cw-store-fields .ui-selectonemenu {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.cw-store-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1rem;
}

body.carewex-modern .cw-store-actions .ui-button {
    margin: 0;
}
