@telerik-selected: rgba(red(@theme-color), green(@theme-color), blue(@theme-color), .6);

.wf-edit-mode, body {
    .RadDockableObjectInnerContainer {
        font: inherit;
        text-align: inherit;
    }

    .RadDockingZone {
        font: inherit;
    }
}

.rlbButton {
    min-width: 0;
}

.RadGrid, table.grid, .RadComboBox {
    background-color: inherit;
    color: @color !important;
    font-family: @font-family !important;
    font-size: inherit !important;
    line-height: auto !important;
    border: 0 !important;

    input[type=button], input[type=submit], input[type=reset], button {
        min-width: 0;
    }

    th {
        text-align: center !important;
        font-weight: 600 !important;
        background-color: @theme-color !important;

        &, & a, & .rgActionButton {
            color: @theme-contrast !important;
        }
    }

    tr.rgSelectedRow {
        background: @telerik-selected !important;

        td {
            border-color: @theme-contrast !important;
        }
    }
}

table.grid {
    border: solid 1px @theme-color !important;
    border-top-width: 0 !important;

    th, td {
        border-left: solid 1px;

        &:first-child {
            border-left: none;
        }
    }

    td {
        border-color: #e5e5e5;
    }
}

.RadWindow {
    .rwTitleBar {
        background-color: @theme-color !important;
    }

    .rwResize {
        color: @theme-color !important;
        bottom: -0.45em !important;
    }
}

.RadTabStrip {
    &.rtsTop {
        .rtsLevel1 .rtsUL {
            background-color: @theme-color;
            width: 100%;
        }
    }

    .rtsLevel1 {
        border-color: @theme-color !important;

        .rtsLink {
            padding: .3em 1em !important;
        }

        .rtsSelected .rtsLink {
            border-color: @theme-color !important;
            background-color: @theme-color !important;
        }
    }
}

.RadEditor, .RadEditor_Metro {
    .reToolBar, &.rePopupContainer, .rePopupTitle, .reCommentInfoPanel, .reCommentView, .reCommentViewText, .reCommentEdit {
        border-color: @telerik-selected !important;
    }

    .reModes a, .reModes a .reIcon:before, .reDOMElement, .reCustomColor, .reTool, .reTool:before, .reTool.reToolDisabled:hover:before, .reTool.reToolDisabled:active:before, .reTool.reToolDisabled:focus:before, .reTool.reToolDisabled:hover .reSplitArrow:before, .reTool.reToolDisabled:hover .reSplitArrow:hover:before, .reDropdown, .reDropdown.reToolDisabled, .reDropdown.reToolDisabled:hover, .reDropdown.reToolDisabled:active, .reDropdown.reToolDisabled:focus, .reDropdown:before, .reDropdown.reToolDisabled:before, .reDropdown.reToolDisabled:hover:before, .reDropdown.reToolDisabled:active:before, .reDropdown.reToolDisabled:focus:before, .reCustomLinks a, .RadEditor_Metro.reInsertTable .reTableWizard.reTool:hover:before {
        color: @theme-color !important;
    }

    .reTool:active, .reTool:focus,
    .reToolText:active, .reToolText:focus,
    .reToolSelected, .reToolSelected:hover,
    .reModes a:active, .reModes a:focus,
    .reModes .reSelectedMode, .reModes .reSelectedMode:hover,
    .reDropdown:active, .reDropdown:focus,
    .reSpinBoxButtons span:active, .reSpinBoxButtons span:focus,
    .rePopupButton:active, .rePopupButton:focus,
    .reCommentButton:active, .reCommentButton:focus,
    .reAjaxSpellButton:focus, .reAjaxSpellButton:active {
        background-color: @telerik-selected !important;
        border-color: @telerik-selected !important;
    }
}

html.rwPreventPageScrolling, body.rwPreventPageScrolling {
    max-height: none;
    max-width: none;
}

.RadComboBox {
    &.RadComboBox_Metro .rcbFocused {
        &, .rcbInputCell {
            border-color: @theme-color;
        }

        .rcbActionButton, .rcbArrowCell {
            color: @theme-contrast;
            border-color: @theme-color;
            background-color: @theme-color;
        }
    }

    .rcbActionButton {
        padding: 0 !important;
    }
}

.wf-designer {
    .props {
        .RadComboBox {
            width: 100%;

            .rcbInner {
                /*background:#d1d0d0 !important;*/
                border: solid 1px @theme-color;

                input {
                    border: none;
                }
            }
        }
    }
}

.rcWeek > th {
    color: @theme-contrast !important;
}

.RadDockableObjectCommandButton {
    width: 22px !important;
}
