.flat .dcdPalette {
    width: 80px;
    text-align: center;
    overflow: auto;
    margin-left: 2px; /* center align with whitespace */
    overflow: hidden;
}

.flat .dcdPalette .dojoxExpandoIcon {
    display: none;
}

.flat .dcdPaletteContainer {
    display: grid;
    grid-auto-rows: 75px;
    justify-content: center;
    grid-column-gap: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}

.flat .dcdPaletteContainer.expanded {
    grid-template-columns: repeat(2, 55px);
}

.flat .dcdPaletteGroup {
    padding: 0;
    line-height: 1.1;
    overflow: hidden;
}

.flat .dcdPaletteGroupSize2 {
    grid-row-end: span 2;
}
.flat .dcdPaletteGroupSize3 {
    grid-row-end: span 3;
}
.flat .dcdPaletteGroupSize4 {
    grid-row-end: span 4;
}

.flat .dcdPaletteGroupSize5 {
    grid-row-end: span 5;
}

.flat .dcdPaletteGroupSize6 {
    grid-row-end: span 6;
}

.flat .dcdPaletteGroupSize7 {
    grid-row-end: span 7;
}

.flat .dcdPaletteGroupSize8 {
    grid-row-end: span 8;
}

.flat .dcdPaletteItem {
    padding: 0;
    width: 55px;
    height: 75px;
    overflow: hidden;
}

.flat .dcdPaletteLabel {
    margin: auto;
    overflow: visible;
    text-transform: capitalize;
    width: 50px;
    padding: 0;
}

.flat .dcdPaletteTitle {
    margin: 5px 0; /* align with other content */
}

/* --- DND --- */

.flat .dcdDnd {
    margin-bottom: 2px;
}

/* holder for drag and drop movement */
.flat .dcdDndGhost {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    z-index: 5000;
    background: #2C2C2C;
    pointer-events: none;
    border-radius: 5px;
}

.flat .dcdDndItem {
    display: -ms-flexbox;
    -ms-flex-align: center;
    -ms-flex-wrap: wrap;
    -ms-flex-pack: center;

    position: relative;
    background: #2C2C2C;
    border-radius: 4px;
    color: #fff;
    cursor: move;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: auto;
}

.flat .dcdDndItem.disabled {
    border: 1px dashed #666;
    background-color: #EEE;
}

.flat .dcdDndItem.disabled .dcdIcon{
    filter: invert(100%);
}

.flat .dcdDndItem .newFeatureRibbon {
    position: absolute;
    width: 60px;
    height: 10px;
    font-size: 8px;
    background-color: green;
    transform: translate(-12px, -12px) rotate(-45deg);
    text-align: center;
}

.flat .dcdDndItem .betaFeatureRibbon {
    position: absolute;
    width: fit-content;
    left: 3px;
    top: 3px;
    font-size: 7px;
    font-weight: bold;
    background-color: white;
    color: #000000;
    padding: 2px;
    border-radius: 2px;
    line-height: 1;
}

.flat .dcdDndItem .iconSubScript {
    font-size: 9px;
    margin-top: -10px;
}

.flat .dcdDndInfo {
    width: 99%;
    text-align: center;
}
