@themeCss: "black";
@import (less) "@{themeCss}.css";

    * {
        color: @font-normal;
        font-family: "Helvetica Neue", "Arial";
        font-style: bold;
        font-size: 14px;
    }

    * {
        margin: 0;
        padding: 0;
        transition: opacity .1s, background .1s, background-image .1s;
    }

    html {
        height: 100%;
        overflow: hidden;
    }

    body {
        background-color: @body-bg;
        height: 100%;
    }

    .wrapper {
        clear: both;

        &.separator {
            border-top: 1px solid @separator;
            margin: 10px 0;
        }
    }

    .widget {

        width: 300px;
        height: 100%;
        background-color: @widget-bg;
        position: relative;
        -webkit-overflow-scrolling: touch;
        float: left;

        &.touch-enabled {
            height:409px;
        }

    		& .row {
    			& .price {
	    			width: 100px;
	    			font-size: 18px;

	    			&.double{
	    				width: 90px;
	    			}
    			}
    			& .order-indicator {
    				width: 25px;
    			}
    			& .dom {
    				width: 40px;
    				font-size: 16px;
					&.double{
						width: 25px;
					}
    			}    			

				& .cell {
					&.touch-enabled{
		                height: 45px;

		                &.order-indicator {
		                    width: 30px;
		                }

		                &.price {
		                    width: 90px;
		                    &.double {
		                    	width: 80px;
		                    }
		                }
		    			
		    			& .dom {
		    				width: 40px;
		    			}    			
		            }
		        }
    		}

    		& .row.no-sidebar {
    		    & .price {
	    			width: 125px;
    			}
    			& .order-indicator {
    				width: 40px;
    			}
    			& .dom {
    				width: 60px;
    			}    				

				& .cell {
					&.touch-enabled{
		                height: 45px;

		                &.order-indicator {
		                    width: 40px;
		                }

		                &.price {
		                    width: 125px;
		                }
		    			
		    			& .dom {
		    				width: 60px;
		    			}    			
		            }
		        }
    		}

    		
    	&.widescreen {
    		width: 520px;

    		& .row {
    			& .price {
	    			width: 200px;
	    			font-size: 18px;
	    			&.double{
	    				width: 170px;
	    			}
    			}
    			& .order-indicator {
    				width: 60px;
    			}
    			& .dom {
    				width: 90px;
    				font-size: 16px;
    				&.double {
    					width: 60px;
    				}
    			}    			

				& .cell {
					&.touch-enabled{
		                height: 45px;

		                &.order-indicator {
		                    width: 60px;
		                }

		                &.price {
		                    width: 200px;
		                    &.double {
		                    	width: 170px;
		                    }		                    
		                }
		    			
		    			& .dom {
		    				width: 90px;
		    			}    			
		            }
		        }

    		}

    		& .row.no-sidebar {
    		    & .price {
	    			width: 220px;
    			}
    			& .order-indicator {
    				width: 80px;
    			}
    			& .dom {
    				width: 105px;
    			}    				

				& .cell {
					&.touch-enabled{
		                height: 45px;

		                &.order-indicator {
		                    width: 60px;
		                }

		                &.price {
		                    width: 260px;
		                }
		    			
		    			& .dom {
		    				width: 90px;
		    			}    			
		            }
		        }
    		}
    	}
    }

    .toolbar {
        position: absolute;
        width: 100%;
        height: 40px;
        z-index: 100;
        background: @widget-bg;

        &.top {
            top:0;
            border-bottom: 1px solid @separator;

            .account-picker {
                margin: 12px 0 0 5px ;
                float: left;
                cursor:pointer;
            }

            .open-positions {
                margin: 12px 5px 0 0;
                float: right;
                cursor: pointer;

                &.short {
                    color: @sell;
                }

                &.long {
                    color: @buy;
                }
                &.empty {

                }
            }

            .working-orders {
                margin: 12px 5px 0 0;
                float: right;
                font-size: 12px;
                color: @font-normal;
                border-radius: 20px;
                border: 1px solid @font-normal;
                padding: 0 5px;
                cursor: pointer;
            }

        }

        &.bottom{
            bottom:0;
            border-top: 1px solid @separator;

            & .symbol-name{
                position: absolute;
                display:block;
                float: left;
                width: 150px;
                height: 25px;
                margin-top: 7px;
                margin-left: 5px;
                &:hover {
                    border-color: @font-normal;
                }
                & input {
                    /* Make padding size included to element size */
                    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
                    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
                    box-sizing: border-box;   

                    width: calc(~"100% - 25px");
                    border-top-right-radius:0;
                    border-bottom-right-radius: 0;
                    padding: 0 5px;
                    text-transform: uppercase;

                    &.shrinked {
                        padding-right: 20px;
                    }

                    &.fake-input {
                        background: none;
                        border: 1px solid @separator;
                        border-right: none;
                        color: @font-normal;
                    }
                }
                & .symbol-search {
                    width: 25px;
                    border-top-left-radius:0;
                    border-bottom-left-radius: 0;
                    padding: 0 0;
                     &:after {
                        font-family: FontAwesome;
                        content: "\f002";
                    }
                }
                & .icon-disabled {
                    position: absolute;
                    display: inline-block;
                    height: 25px;
                    line-height: 25px;
                    right: 28px;
                }
            }

            & .ote-mvo{
                float: right;
                line-height: 40px;
                margin-right: 6px;
                font-size: 12px;
            }
        }
    }

    .working-orders-panel, .edit-order-panel{
        position: absolute;
        top: 41px;
        text-align: center;
        overflow-x: hidden;
        width: 100%;
        background: @working-orders-panel;
        z-index: 200;
        display: none;
        font-size: 14px;

        & .buy .direction {
            background: @buy;
        }

        & .sell .direction {
            background: @sell;
        }

        & .buy, & .sell {
            height: 30px;
            border-bottom: 1px solid @separator;
            //padding: 0 10px 0 0;
            &:hover {
                background: rgba(255,255,255, .1);
            }
        }

        & .edit {
            float: left;
            width: 20px;
            cursor: pointer;
            display: block;
            height: 30px;
            width: 30px;
            text-align: center;
            line-height: 30px;

            &:hover {
                opacity: .5;
            }
        }

        & .delete {
            display: block;
            height: 30px;
            width: 50px;
            text-align: center;
            line-height: 30px;
            float:right;
            cursor: pointer;
            font-size: 11px;
        }        

        .direction {
            border-radius: 2px;
            color: #fff;
            font-size: 10px;
            text-align: center;
            line-height: 15px;
            display: block;
            height: 15px;
            width: 15px;
            float: left;
            margin-top: 7px;
        }

        & .orderSize {
            float: left;
            width: 40px;
            text-align: center;
            line-height: 30px;
        }

        & .orderPrice {
            float: left;
            width: 80px;
            text-align: left;
            line-height: 30px;
        }

        & .orderType {
            float: left;
            width: 40px;
            text-align: center;
            line-height: 30px;
            font-size:10px;
        }

        & .orderDuration {
            float: left;
            width: 40px;
            text-align: center;
            line-height: 30px;
            font-size:10px;
        }

        & .remove-all {
            background: #fff;
            color: @working-orders-panel;
            height: 25px;
            padding: 0 10px;
            margin: 4px auto;
            cursor:pointer;
        }
    }

    & .edit-order-panel-holder {
        position: relative;
        z-index: 300;
        display: none;

        & .arrow {
            bottom:0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 8px 8px 8px;
            border-color: transparent transparent @working-orders-panel transparent;
            position: absolute;
            top:0;
            left: 190px;
        }

        & .edit-order-panel {
            //margin-top: 8px;
            position:relative;
            top: 8px;
            display: block;

            & .trade {
                color: @widget-bg;
                height: 25px;
                padding: 0 10px;
                margin: 4px 0 4px 4px;
                float:left;
                cursor:pointer;
                color: #fff;
                &.sell {
                    background-image: -webkit-linear-gradient(top, @sell-gradient-a 0%, @sell-gradient-b 100%);
                }
                &.buy {
                    background-image: -webkit-linear-gradient(top, @buy-gradient-a 0%, @buy-gradient-b 100%);
                }
            }



        }
    }

    .position-panel {
        position: absolute;
        top: 41px;
        text-align: center;
        overflow: scroll;
        width: 300px;
        background: lighten(@widget-bg, 20%);
        z-index: 200;
        display: none;
        font-size: 14px;

        & button {
            background: #fff;
            color: @widget-bg;
            height: 25px;
            padding: 0 10px;
            margin: 4px auto;
            cursor:pointer;
        }
    }

    .working-orders-top, .working-orders-bottom {
        display: none;
        position: absolute;
        z-index: 200;
        width: 190px;
        .buy, .sell {
            width: 25px;
            height: 25px;
            text-align: center;
            line-height: 25px;

            &.touch-enabled {
                width: 30px;
                height: 45px;
                line-height: 45px;
            }
        }
        .buy {
            float: left;
            background: @buy;
        }
        .sell {
            float: right;
            background: @sell;
        }
    }
    .working-orders-top {
        top: 40px;
    }
    .working-orders-bottom {
        bottom: 40px;
    }

    .offscreen-spread {
        display: none;
        opacity: .9;
        position: absolute;
        z-index: 200;
        width: 140px;
        margin-left: 25px;

        &.touch-enabled {
            margin-left: 30px;
            width: 130px;
            & .bb, & .ba {
                height: 45px;
                line-height: 45px; 
                &.half {
                    width: 65px;
                }           
            }
        }

        & .bb, .ba {
            height: 25px;
            text-align: center;
            line-height: 25px;

            &.half{
                width: 70px;
                float: left;
            }

            &.single {
                width: 100%;
            }
        }

        & .bb {
            background: @buy;
            &:after {
                font-size: 10px;
                content: "B";
            }
        }

        & .ba {
            background: @sell;
            &:after {
                font-size: 10px;
                content: "A";
            }            
        }

        &.top {
            top: 40px;
        }

        &.bottom {
            bottom: 40px;
        }
    }

    .ladder-holder {
        width: calc(~"100% - 110px");
        height: calc(~"100% - 80px");
        margin-top: 40px;
        overflow-y: scroll;
    }

    .ladder {
        height: calc(~'100% - 80px');

        width: 100%;
        position: absolute;
        top: 40px;
        overflow-y: scroll;

        & .priceDragHelper {
            border: 1px solid #f00;
            line-height: 23px;
            padding: 0 10px;
            background: fade(@widget-bg, 50%);
        }

        &.left-handed {
            margin-left: 110px;
        }

        &::-webkit-scrollbar {
            display: none;
        }

        &.split-dom-ladder {
            height: calc(~'100% - 80px - 25px');
            width: calc(~'(100% - 110px) / 2');
            top: 65px;

            &.touch-enabled {
                top: 85px;
                height: calc(~'100% - 80px - 40px');
            }

            &.right {
                float: right;
                right: 110px;
                border-left: 1px solid @separator;
            }

            & .row {
               width: 100%;
            }
        }

        .row {
            width: calc(~"100% - 110px");

            &.no-sidebar {
            	width: calc(~"100% - 35px");
            }

            &.toprow {
                border-bottom: 1px solid @separator;
            }

            &.split-top {
                &.splitter{
                    border-bottom: 2px solid @scale-splitter;
                    & .dom {
                        background: @nc-down;
                        color: #fff;
                        &.double-left {
                            background: none;
                        }
                    }
                }
                & .dom {
                    color:@nc-down;
                    &.clear {
                        background: none;
                    }
                }
            }

            &.split-bottom {
                background: @even-below-market;
                &.splitter{
                    border-top: 2px solid @scale-splitter;                    
                    & .dom {
                        background: @nc-up;
                        color: #fff;
                        &.double-right {
                            background: none;
                        }                           
                    }
                }

                & .dom {
                    color: @nc-up;
                }
            }

            &.odd {
                background: @odd-above-market;
                &.split-bottom {
                    background: @odd-below-market;
                }

            }

            &.inside-market {
                background: none;
                border-bottom: 1px solid @odd-below-market;
            }


            .cell {

                font-size: 12px;
                display: table-cell;
                vertical-align: middle;
                text-align: center;
                height: 25px;
                border-left: 1px solid @separator;
                -webkit-box-sizing:border-box;


                &:first-child {
                    border: none;
                }

                &.left-handed.order-indicator {
                    border-left: 1px solid @separator;
                    &:last-child {
                        border-right: none;
                    }
                }

                &.still {
                    //cursor: -webkit-grabbing;
                }
            }

            &.out-of-market {
                & .price, & .price em{
                    color: fade(@font-normal, 50%);
                }
            }

            .order-indicator {
                width: 25px;
                font-size: 8px;
                color: #aaa;
                cursor: pointer;

                &.buy:before {
                    content:attr(data-content);
                    color: @buy;
                    font-size: 12px;
                }

                &.sell:before {
                    content:attr(data-content);
                    color: @sell;
                    font-size: 12px;
                }

                &:hover {
                    background: rgba(255,255,255,.2);

                    &.above-market.buy:after {
                        content: "BUY STP";
                    }

                    &.buy:after {
                        content:"BUY LMT";
                    }
                    &.buy:before {
                        content: "";
                    }

                    &.sell:after {
                        content: "SELL LMT";
                    }

                    &.below-market.sell:after {
                        content:"SELL STP";
                    }
                    &.sell:before {
                        content: "";
                    }
                }

                &.no-hover:hover {
                    &.buy:after, &.sell:after{
                        content:"EDIT" !important;
                    }
                }

                &.sell {
                    border-right: 1px solid @separator;
                }
            }

            .volume {
                width: 40px;
                vertical-align: top;
                text-align: right;
            }

            .price {
                font-size: 14px;
                width: 100px;
                font-weight: 200;
                vertical-align: middle;

                em {
                    font-style: normal;
                    font-weight: bold;
                    font-size:inherit;
                }

                &:hover {
                    background: @pricehover;
                }

                cursor: -webkit-grab;
                cursor: -moz-grab;

                &.selected {
                    border: 1px solid @nc-down;
                    background: none !important;
                }

                &.dragging {
                    background: @widget-bg;
                    line-height:25px;
                    border: 1px solid @separator;
                    //cursor: -webkit-grabbing;
                    //cursor: -moz-grabbing;
                    z-index: 1000000000;
                }


                &.above-market{
                    color: @nc-down;
                    font-weight: bold;
                    //background: @nc-down;
                    //color: #fff;
                    & em {
                        color: inherit;
                    }
                }

                &.below-market{
                    font-weight: bold;
                    color: @nc-up;
                    //background: @nc-up;
                    //color: #fff;
                    & em {
                        color: inherit;
                    }
                }
            }

            .dom {
                width: 40px;
                vertical-align: top;
                text-align: right;

                &.below-market {
                    vertical-align: bottom;
                    text-align: left;
                }
            }

            & .settlement {
                position:absolute;
                width: 10px;
                height: 10px;
                background:#f00;
                line-height:10px;
                font-size: 10px;
                display:none;
            }
        }
    }

    .sidebar {
        position: absolute;
        right: 0;
        width: 110px;
        display: none;

        top: 50%;

        -webkit-transition: margin-top .5s;

        & button {
            padding:0;
        }

        &.left-handed {
            left:0;
        }

        & .buy {
            background-image: -webkit-linear-gradient(top, darken(@buy-gradient-b, 15%) 0%, darken(@buy-gradient-b, 5%) 100%);
            height: 45px;

            &.mkt {
                margin-bottom:5px;
            }

            &.agressive {
                background-image: -webkit-linear-gradient(top, darken(@buy-gradient-a, 15%) 0%, darken(@buy-gradient-a, 20%) 100%);
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                border-top: 1px solid darken(@buy-gradient-b, 15%);
                height: 45px;
                margin-bottom: 0px;
                &.touch-enabled {
                    border-radius: @b-radius;                    
                    width: 47px;
                    height: 25px;
                    float: left;
                    margin-right: 0;
                    margin-bottom: 10px;
                }                
            }

            &.regular {
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                margin-bottom: 0;
                &.touch-enabled {
                    border-radius: @b-radius;                    
                    width: 47px;
                    height: 25px;
                    float: left;
                    margin-right: 0;
                    margin-bottom: 0px;
                }                
            }

            &.home-mode {
                border-radius: 0;
                height: 45px;
                margin: -5px 0 0 5px !important;
            }
        }
        & .sell {
            background-image: -webkit-linear-gradient(top, darken(@sell-gradient-b, 5%) 0%, darken(@sell-gradient-b, 15%) 100%);
            height: 45px;

            &.mkt {
                margin-bottom:5px;
            }

            &.agressive {
                background-image: -webkit-linear-gradient(top, darken(@sell-gradient-a, 20%) 0%, darken(@sell-gradient-a, 15%) 100%);
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                border-bottom: 1px solid darken(@sell-gradient-b, 15%);
                height: 45px;
                margin-bottom: 0;
                &.touch-enabled {
                    border-radius: @b-radius;                    
                    width: 47px;
                    height: 25px;
                    float: left;
                    margin-right: 0;
                }
            }

            &.regular {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                margin-bottom: 5px;
                &.touch-enabled {
                    border-radius: @b-radius;
                    width: 47px;
                    height: 25px;
                    float: left;
                    margin-right: 0;
                }
            }

            &.home-mode {
                border-radius: 0;
                height: 45px;
                margin: -5px 0 0 5px !important;
            }
        }

        & .buy {
            &.big {
                margin-bottom: 0;
            }
        }

        & .buy, & .sell {
            width: 100px;
            margin-left: 5px;
            margin-right: 5px;
            margin-bottom: 5px;
            color: #ccc;

            font-size: 11px;
            line-height: 12px;

            &.mkt {
                height: 25px;
            }

            &.big {
                height: 90px;
                line-height: 18px;
                
                &.touch-enabled {
                    height: 55px;
                }
            }

            & em {
                font-weight: bold;
                font-style: normal;
                font-size: 18px;
                line-height: 12px;
                color: inherit;
            }

            &.mkt {
                font-size: 12px;
            }
        }

        & .stepper.size  {
            width: 100px;
            display: block;

            margin: 0 0 5px 5px;
        }

        & .stepper.stl  {
            width: 100px;
            display: block;

            margin-left: 5px;
            margin-top: 5px;
        }

        .separator {
            width: 100%;
            border-top: 1px solid @separator;
            margin: 5px 0 5px 0;
        }

        & .bbba {
            display: block;
            line-height: 20px;
            font-size: 10px;
            margin: 10px 5px 0 5px;
            padding: 0 5px;
            border-radius: @b-radius;
            background: fade(@separator, 25%);
            color: @separator;
            text-align: center;

            & .fa {
                color: inherit;
            }

            &.touch-enabled {
                margin-top: 35px;
            }
        }  

        @-webkit-keyframes blink {
            0% { background:  @input-invalid-bg}
            50% { background:none;  }
            100% {background:  @input-invalid-bg}
        }

        .date {
            outline: none;
            width: 100px;
            height: 25px;
            text-align: center;
            border-radius: 0px;
            margin-left: 5px;
            margin-top: 5px;

            border:0;
            color: #000;
            border-radius: 4px;
        }

        .order {
            font-size: 12px;
            width: 30px;
            margin-left: 5px;
        }

        .goodtill, .stop {
            width: 47px;
            margin: 0 0 0 5px;
            font-size: 12px;
            float: left;
        }

        .ladderScrollCenter {
            width: 100px;
            margin: 0 5px 5px 5px;
        }

        & .brackets {
            border: 1px solid #3f4246;
            border-radius: @b-radius;
            margin-top: 10px;
            margin-bottom: 10px;
            margin-left: 5px;
            height: 30px;
            width: 98px;
            cursor:pointer;


            & .left {
                float: left;
                line-height: 30px;
                color: @separator;
                margin-left:5px;
                font-size: 12px;
                width: 40px;
                text-align: center;                
            }

            & .small-brackets {
                width: 50px;
                position: absolute;
                right: 5px;

                & .bracket-display {
                    display:block;
                    font-size: 8px;
                    height: 11px;
                    border-left: 1px solid @separator;
                    padding: 2px;
                    border-top: none;
                    border-bottom: none;
                    text-align: center;
                    &:first-child {
                        border-bottom: 1px solid @separator;
                    }
                }
            }
        }

        & .trading-disabled {
            margin: -115px 5px 0px 5px;
            border: 1px solid @separator;
            border-radius: 5px;
            padding: 10px;
            text-align: center;
        }
    }
    
    & .restoreScroll {
        bottom: 40px;
        background: fade(darken(rgba(0,0,0,.4), 20%), 100%);
        height: 37px;
        width: 110px;
        position:absolute;
        right: 0;

        &.no-sidebar {
        	width: 35px;
        }

        & button.ladderScrollCenter {
            width: 70px;
            margin-left: 5px;
            float: left;
        }

        & button.hideSidebar {
            width: 25px;
            float: right;
            margin-right: 5px;
            padding: 0;
        }

        & .separator {
            border-top: 1px solid @separator;
            width:100%;
            margin-bottom: 5px;
        }
    }    

    .options {
        position: absolute;
        left: 320px;
        top: 20px;
        width: 300px;

        & input{
            margin-bottom: 20px;
            height: auto;
        }

        & label {
            -webkit-user-select: none;
            cursor: pointer;

            &:hover{
                color: lighten(@font-normal, 100%);
            }

            &:checked {
                color: @font-normal;
            }
        }
    }

    .dialog-overlay {

        display: none;

        & .overlay{
            position: absolute;
            width: 100%;
            height: 100%;
            background: @dialog-overlay;
            z-index: 400;
        }

        @dialog-width : 320px;

        & .dialog {
            position:absolute;
            width: @dialog-width;
            margin-left: calc(-@dialog-width / 2);
            left: 50%;
            top: 50%;
            z-index: 401;
            margin-top: -170px;

            & .footer {
                padding: 0 10px;
            }

            & .header {

                height: 40px;
                padding-left: 10px;

                background: @dialog-header-bg;
                border-top-left-radius: @dialog-b-radius;
                border-top-right-radius: @dialog-b-radius;

                &.with-border {
                    border-bottom: 1px solid @separator;
                }

                line-height: 40px;
                font-weight: bold;
                cursor: default;

                &.buy-bg {
                    background-color: @buy;
                }

                &.sell-bg {
                    background-color: @sell;
                }

                & .fa-close {
                    float: right;
                    width: 40px;
                    line-height: 40px;
                    text-align: center;
                    color: @dialog-header-text;
                    cursor: pointer;

                    -webkit-transition: all .5s;
                    &:hover {
                        -webkit-transform: scale(1.2) rotate(90deg);
                    }
                }

                & .title {
                    color: @dialog-header-text;
                }
            }

            & .body {
                background: @dialog-body-bg;
                text-align: center;
                padding: 0 10px;
                display:inline-block;

                & .direction {
                    margin: 10px 0;
                    height: 25px;
                    width: 100%;

                    & button{
                        width: 145px;
                        float:left;

                        &.sell {
                            margin-left: 5px;
                            background-image: -webkit-linear-gradient(top, @sell-gradient-a 0%, @sell-gradient-b 100%)
                        }
                        &.buy {
                            margin-right: 5px;
                            background-image: -webkit-linear-gradient(top, @buy-gradient-a 0%, @buy-gradient-b 100%)
                        }

                        &.inactive {
                            background: none;
                            border: 1px solid @separator;
                            color: @font-normal;
                        }

                    }
                }

                & .date {
                    width: calc( (@dialog-width /2 ) - 30px);
                    text-align: center;
                    margin-top: 5px;
                }

                & .stepper.size, & .stepper.price, &.stepper.offset {
                    float:left;
                    margin-bottom: 10px;
                    width: calc( ( ( @dialog-width ) / 2 ) - 30px);
                }

                & .order-history {
                    & button {
                       width: 95px;

                    &:first-child {
                        margin-right: 5px !important;
                        width: 97px;
                    }
                    &:last-child {
                        margin-left: 5px !important;
                        width: 97px;
                    }                    

                    }
                }

                & .stepper.offset {
                    margin-top: 5px;
                }

                & .atmark {
                    float:left;
                    width: 20px;
                    text-align: center;
                    line-height: 25px;
                    font-size: 20px;
                }

                & .price-mkt {
                    line-height: 25px;
                    font-size: 20px;
                    cursor:pointer;
                }

                & .size {
                    margin-right: 10px;
                }

                & .price {
                    margin-left: 10px;
                }

                & .type-selector {
                    width: calc( (@dialog-width /2 ) - 30px);
                    float:left;
                    margin-bottom: 10px;

                    & .type {
                        width: calc( (@dialog-width /2 ) - 30px);
                    }
                }

                & .duration-selector {
                    width: calc( (@dialog-width /2 ) - 30px);
                    float: left;
                    margin-left: 40px;
                    margin-bottom: 10px;

                    & .duration {
                        width: calc( (@dialog-width /2 ) - 30px);
                    }
                }

                & .brackets {

                    & .stepper.bracket-a {
                        width: calc( (@dialog-width / 2 ) - 35px);
                        display:block;
                        float: left;
                        margin-right: 10px;
                    }
                    & .stepper.bracket-b {
                        width: calc( (@dialog-width / 2 ) - 35px);
                        display:block;
                        float: left;

                    }

                    & .bracketa {
                            float: left;
                            width: calc( (@dialog-width / 2) - 10px);
                            margin-bottom: 10px;
                    }

                    & .stepper {
                        margin-bottom: 10px;
                        & .switch {
                            width: 35px;
                            padding: 0;
                            border-top-left-radius: 0;
                            border-bottom-left-radius: 0;
                            border-left: 1px solid @separator;
                        }
                        & input {
                            width: calc(~"100% - 50px - 35px");
                        }
                        & .up {
                            border-radius: 0;
                        }
                        & .label {
                            width: calc(~"100% - 50px - 35px") !important;
                        }
                    }
                    & input[type=checkbox]{
                        //width: 20px;
                        margin-right:5px;
                        float: left;

                    }
                }

                & .message {
                    margin: 10px 0;
                }
            }

            & .footer {
                background: @dialog-footer-bg;
                border-bottom-left-radius: @dialog-b-radius;
                border-bottom-right-radius: @dialog-b-radius;
                border-top: 1px solid @separator;
                text-align: right;

                & button {
                    //float: right;
                    margin: 10px 0 10px 10px;
                    height: 30px;
                    padding: 0 10px;

                    &.buy {
                        background-image: -webkit-linear-gradient(top, @buy-gradient-a 0%, @buy-gradient-b 100%);
                    }
                    &.sell {
                        background-image: -webkit-linear-gradient(top, @sell-gradient-a 0%, @sell-gradient-b 100%);
                    }
                }
            }

            &.confirm-brackets {
                display: none;
                & .header {
                    border-bottom: 1px solid @separator;
                }
                & .brackets {
                    margin: 10px 0;
                }
            }
        }
    }

    input, button {
        border: none;        
        outline: none;
        height: 25px;
        border-radius: @b-radius;
    }

    input {
        color: #000;
        &:disabled {
            opacity: .4;
        }
    }

    button {
        height: 25px;
        padding: 0 10px;
        border-radius: @b-radius;
        outline: none;
        border: @button-border;
        background-image: @button-gradient;
        cursor: pointer;
        color: @font-normal;
        &:hover {
            background-color: #35383b;
            opacity: .8;
        }
        &:active {
            box-shadow: inset 0px 0px 5px #000;
        }

        &:disabled {
            opacity: .3;
            &:hover{
                opacity:.3;
                cursor: default;
            }
        }
    }


    .stepper {
        height: 25px;
        & input {
            width: calc(~"100% - 50px");
            border-radius: 0;
            text-align: center;
            padding-bottom: 7px;
            height: 18px;
            vertical-align: top;
            &.invalid {
                background: @input-invalid-bg;
            }
            &.blink {
                -webkit-animation: blink .2s steps(5, start) 3;
            }
        }

        & .label {
            position: relative;
            font-size: 8px;
            font-weight:bold;
            top: -9px;
            left: 25px;
            width: calc(~"100% - 50px");
            color: #555;
            text-align: center;
            display: block;
            pointer-events: none;
        }

        button {
            width: 25px;

            &.up, &.down{
                padding:0;
            }

            &.up {
                border-bottom-left-radius: 0;
                border-top-left-radius: 0;

                &:before {
                    font-family: FontAwesome;
                    content: '\f0d8';
                }
            }
            &.down {
                border-bottom-right-radius: 0;
                border-top-right-radius: 0;
                border-left: 1px solid @separator;
                &:before {
                    font-family: FontAwesome;
                    content: '\f0d7';
                }
            }
        }
    }

    .symbol-disabled {
        position: absolute;
        width: calc(~"100% - 135px");
        height: 64px;
        top: 50%;
        margin: -45px 5px 0px 5px;
        border: 1px solid #3f4246;
        border-radius: 5px;
        padding: 10px;
        text-align: center;        
    }
