
/*
 * Forms are too dense otherweise
 */
.form-group.row {
    margin-top: 0.5rem;
}

.select2-selection__clear {
    margin-right: 2em !important;
    color: darkgrey !important;
    height: 36px !important;
}

/*
 * Not applied within app-sass.css for some reason
 */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--ct-primary);
    color: #fff;
}

.select2-container .select2-selection--clearable.select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 26px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    float: left;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover span {
    color: var(--ct-red);
}

.toggle-content[aria-expanded=false] .toggle-content-expanded {
    display: none;
}
.toggle-content[aria-expanded=true] .toggle-content-collapsed {
    display: none;
}

.table-primary-row {
    border: 1px solid var(--ct-gray-300);
}

.table-secondary-row:last-child {
    border-bottom: 1px solid var(--ct-gray-300);
}

.table-secondary-row + .table-secondary-row  {
    border-color: transparent;
    border-top: 2px solid var(--ct-gray-100)
}

.table-secondary-row td:first-child {
    border-left: 1px solid var(--ct-gray-300);
}

.table-secondary-row td:last-child {
    border-right: 1px solid var(--ct-gray-300);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 5px;
}

.grid-selected {
    background-color: var(--ct-primary);
    color: var(--ct-white);
}

#dragGhost {
    position: absolute;
    top: -1000px;
    cursor: move;
}

.drag-item {
    cursor: move !important;
}

.drag-disabled {
    cursor: not-allowed !important;
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            #fff 10px,
            #fff 20px
    ),
    linear-gradient(
            to bottom,
            var(--ct-gray-100),
            var(--ct-gray-200)
    );
}