.main-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
}

.btn-separator {
    display: inline-block;
    border-left: 2px solid #bbb;
    margin: 0 10px;
    height: 25px;
    vertical-align: middle;
}

.component-toolbar {
    position: absolute;
    top: 44px;
    left: 0;
    width: 150px;
    bottom: 0;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-right: 1px solid #ddd;
}

.cmp-btn {
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 3px 10px;
}

.workspace {
    position: absolute;
    top: 44px;
    left: 150px;
    right: 300px;
    bottom: 0;
    overflow: hidden;
}

.workspace .grey-border {
    border: 1px solid #ddd;
}

.workspace .form-control {
    width: 200px;
}

.workspace .element-core {
    overflow: hidden;
}

.workspace .element-handler {
    position: absolute;
    border: 1px dashed transparent;
    cursor: default;
}

.workspace .element-handler button,
.workspace .element-handler input,
.workspace .element-handler select,
.workspace .element-handler textarea {
    cursor: default;
}

.workspace .element-handler.selected {
    border-color: #333;
}

.workspace .element-handler .hndl {
    display: none;
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: #333;
}

.workspace .element-handler.active .hndl {
    display: block;
}

.workspace .grid-canvas {
    display: block;
}

.workspace > .frame {
    position: absolute;
    border: 1px dashed black;
}

.drag-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.hndl-top-left {
    cursor: nw-resize;
    top: -3px;
    left: -3px;
}
.hndl-top-mid {
    cursor: ns-resize;
    top: -3px;
    left: 50%;
    margin-left: -3px;
}
.hndl-top-right {
    cursor: ne-resize;
    top: -3px;
    right: -3px;
}
.hndl-mid-left {
    cursor: ew-resize;
    top: 50%;
    left: -3px;
    margin-top: -3px;
}
.hndl-mid-right {
    cursor: ew-resize;
    top: 50%;
    right: -3px;
    margin-top: -3px;
}
.hndl-bottom-left {
    cursor: sw-resize;
    bottom: -3px;
    left: -3px;
}
.hndl-bottom-mid {
    cursor: ns-resize;
    bottom: -3px;
    left: 50%;
    margin-left: -3px;
}
.hndl-bottom-right {
    cursor: se-resize;
    bottom: -3px;
    right: -3px;
}

.elements-list {
    position: absolute;
    top: 44px;
    right: 0;
    width: 300px;
    height: 400px;
    background-color: #fff;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.elements-list .list {
    max-height: 272px;
    overflow-y: auto;
}

.elements-list .element-list-entry {
    padding: 2px 6px;
    cursor: pointer;
}

.elements-list .element-list-entry .type {
    color: #999;
    font-style: italic;
}

.elements-list .element-list-entry.selected {
    background-color: #8cb0e0;
    color: #fff;
}

.elements-list .element-list-entry.active {
    background-color: #558edb;
    color: #fff;
}

.elements-list .element-list-entry.selected .type {
    color: #ccc;
}

.elements-list .element-list-entry.active .type {
    color: #bbb;
}

.properties {
    position: absolute;
    top: 344px;
    right: 0;
    width: 300px;
    bottom: 0;
    background-color: #f0f0f0;
    border-left: 1px solid #ddd;
    overflow-y: auto;
}

.properties .table-header,
.elements-list .section-header {
    border: 1px solid #ddd;
    padding: 3px 6px;
    font-weight: bold;
    border-right: none;
    border-left: none;
    background-color: #f0f0f0;
}

.elements-list .section-header .title {
    margin-top: 1px;
    float: left;
}

.elements-list .section-header .buttons {
    text-align: right;
}

.properties table {
    background-color: white;
    width: 100%;
    table-layout: fixed;
    border-style: hidden;
}

.properties table td {
    padding: 3px 6px;
    width: 50%;
    border: 1px solid #ddd;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.properties table td.value {
    padding: 0;
}

.properties-entry.readonly {
    color: #999;
}

.properties-entry.auto-value .value {
    color: #999;
    font-style: italic;
}

.properties-entry .value input,
.properties-entry .value select {
    width: 100%;
    border: none;
    background-color: transparent;
    padding: 3px 6px;
}

.properties-entry .value select {
    padding: 3px 3px;
}

.multiline .value::after {
    content: "...";
    float: right;
    border: 1px solid #b7b7b7;
    background-color: #e0e0e0;
    color: #808080;
    padding: 2px 3px;
    position: absolute;
    right: 0px;
    cursor: default;
}

.centered {
    display: table;
    width: 100%;
    height: 100%;
}

.centered > .inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.centered > .inner > .content {
    display: inline-block;
    text-align: left;
}

.grid-dialog .modal-dialog {
    width: 400px;
}

.grid-dialog .entry {
    padding: 2px 0;
}

.grid-dialog .entry .info {
    width: 220px;
    display: inline-block;
}

.grid-dialog .entry input {
    width: 100px;
    display: inline-block;
    padding: 2px 8px;
    height: auto;
    text-align: right;
}

.grid-dialog .entry.entry-1 .info {
    padding-left: 10px;
}

.grid-dialog .entry.entry-2 .info {
    padding-left: 40px;
}

.grid-dialog .entry.entry-3 .info {
    padding-left: 70px;
}

.grid-dialog hr {
    margin: 15px 0;
}

.grid-dialog .entry-radio {
    padding-left: 10px;
}

.grid-dialog .entry-radio label {
    padding: 2px 0 2px 40px;
    display: block;
}

.input-dialog textarea {
    max-width: 100%;
    height: 200px;
}
