#cp_colorPane{
    padding:5px;
    overflow: auto;
    width:260px;
    height:170px;
    background-color: #3A3A3A;
    border:3px solid #555;
    box-shadow:inset 0px 0px 0px 1px #000000, 4px 4px 6px 0px rgba(0,0,0,.5);
    border-radius:2px;
    z-index:999999;
    position:absolute;
}
#cp_colorBox, #cp_colorSlider, #cp_inputs{
    height:100%;
    float:left;
    position:relative;
}
#cp_colorBox, #cp_colorSlider{
    margin-right:2%;
    outline:1px solid #444444;
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    -user-select: none;
}
#cp_colorBox{
    width:60%;
}
#cp_colorSlider{
    width:8%;
}
#cp_sliderColorBack{
    background-color:#ff0000;
}
#cp_blackOverlay, #cp_whiteOverlay, .cp_overlay, .cp_overlayWrap{
    width:100%;
    height:100%;
}
#cp_boxWhiteBack{
    background-color:#ffffff;
}
.cp_overlay{
    position:absolute;
    top:0;
    left:0;
}
.cp_transFill{
    background-image:url(data:image/gif;base64,R0lGODlhBgAGAIAAAP///97e3iH5BAAHAP8ALAAAAAAGAAYAAAIKjIEWCMrs0pGhAAA7);
}


#cp_colorHandle{width:6px; height:6px;-webkit-border-radius: 50%; border-radius: 50%; border:1px solid #ffffff;  position:absolute; top:0; left:0;-webkit-box-shadow: inset 0px 0px 0px 1px #000000;
box-shadow: inset 0px 0px 0px 1px #000000; margin:-3px 0 0 -3px;}
#cp_sliderHandle{width:100%; height:1px; background-color:#ffffff; border-bottom:1px solid #444444;position:absolute; top:1px; margin-top:-1px;}
.cp_dragCatcher{width:100%; height:100%; position:absolute; top:0; left:0; cursor:crosshair;}

#cp_inputs{
    width:28%;
    height:100%;
    text-align:right;
}
#cp_inputs label{
    text-align:left;
    display:block;
}
#cp_inputs label input{
    
}
#cp_inputs input{
    /*max-width:50%;*/
    resize:none;
    height:18px;
    margin-top:1px;
    margin-right:2px;
}

#cp_colorPane .numDrag{
    width:26px;
    text-indent:0;
    text-align:center;
}

#color_hex{
    width:100%;
    text-align:center;
}

#cp_colorDisplayWrap{
    width:100%;
    height:16px;
    border:1px solid #000;
    
}
#cp_colorDisplay{
    background-color:#ff0000;
    border:1px solid #000;
    height:16px;
}
#cp_inputs_hsl, #cp_inputs_rgba{

}
.cp_inputs_left, .cp_inputs_right{
    
}
.cp_inputs_left{
    width:60%;
    float:left;
}
.cp_inputs_right{
    float:right;
    width:40%;
}
.rainbow_horz{
    background: -moz-linear-gradient(left,  rgba(255,0,0,1) 0%, rgba(255,255,0,1) 16%, rgba(0,255,0,1) 33%, rgba(0,255,255,1) 50%, rgba(0,0,255,1) 66%, rgba(255,0,255,1) 83%, rgba(255,0,4,1) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,0,0,1)), color-stop(16%,rgba(255,255,0,1)), color-stop(33%,rgba(0,255,0,1)), color-stop(50%,rgba(0,255,255,1)), color-stop(66%,rgba(0,0,255,1)), color-stop(83%,rgba(255,0,255,1)), color-stop(100%,rgba(255,0,4,1)));
    background: -webkit-linear-gradient(left,  rgba(255,0,0,1) 0%,rgba(255,255,0,1) 16%,rgba(0,255,0,1) 33%,rgba(0,255,255,1) 50%,rgba(0,0,255,1) 66%,rgba(255,0,255,1) 83%,rgba(255,0,4,1) 100%);
    background: -o-linear-gradient(left,  rgba(255,0,0,1) 0%,rgba(255,255,0,1) 16%,rgba(0,255,0,1) 33%,rgba(0,255,255,1) 50%,rgba(0,0,255,1) 66%,rgba(255,0,255,1) 83%,rgba(255,0,4,1) 100%);
    background: -ms-linear-gradient(left,  rgba(255,0,0,1) 0%,rgba(255,255,0,1) 16%,rgba(0,255,0,1) 33%,rgba(0,255,255,1) 50%,rgba(0,0,255,1) 66%,rgba(255,0,255,1) 83%,rgba(255,0,4,1) 100%);
    background: linear-gradient(to right,  rgba(255,0,0,1) 0%,rgba(255,255,0,1) 16%,rgba(0,255,0,1) 33%,rgba(0,255,255,1) 50%,rgba(0,0,255,1) 66%,rgba(255,0,255,1) 83%,rgba(255,0,4,1) 100%);
}
.trans_black{
    background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1)));
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
    background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
    background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
}

.trans_white{
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,0.96)));
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.96) 100%);
    background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.96) 100%);
    background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.96) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.96) 100%);
}


 .tgui_cpbtn{
                        position:relative;
                        bottom:-1px;
                    }
                    
                    .tgui_cpbtn span{
                        position:absolute;
                        width:100%;
                        height:100%;
                        top:0;
                        left:0;
                        box-shadow:inset 0px 0px 0px 1px #636363;
                    }
                    
                    .tgui_cpbtn .icon-down-dir{
                        height:5px;
                        width:8px;
                        border-top:1px solid #636363;
                        border-left:1px solid #636363;
                        background-color:#333;
                        font-size:6px;
                        padding:0;
                        position:absolute;
                        bottom:0;
                        right:0;
                        border-radius:2px 0 0 0;
                        
                    }
                    .tgui_squareButton{
                        width:21px;
                        height:21px;
                    }
                    
                    /*debug only*/
                    .tgui_cpbtn_colorFill{
                        background-color:rgba(255,0,0,.5)
                    }
                    .tgui_cpbtn_transFill, .tgui_cpbtn_transFill:hover{
                        background-image:url(data:image/gif;base64,R0lGODlhBgAGAIAAAP///97e3iH5BAAHAP8ALAAAAAAGAAYAAAIKjIEWCMrs0pGhAAA7);
                    }
                    
                    .tgui_cpbtn_noFill{
                        background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjQ4JSIgc3RvcC1jb2xvcj0iI2RkZGRkZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQ4JSIgc3RvcC1jb2xvcj0iI2NjMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjU2JSIgc3RvcC1jb2xvcj0iI2NjMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjU2JSIgc3RvcC1jb2xvcj0iI2RkZGRkZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
                        background: -moz-linear-gradient(-45deg, #dddddd 48%, #cc0000 48%, #cc0000 56%, #dddddd 56%);
                        background: -webkit-gradient(linear, left top, right bottom, color-stop(48%,#dddddd), color-stop(48%,#cc0000), color-stop(56%,#cc0000), color-stop(56%,#dddddd));
                        background: -webkit-linear-gradient(-45deg, #dddddd 48%,#cc0000 48%,#cc0000 56%,#dddddd 56%);
                        background: -o-linear-gradient(-45deg, #dddddd 48%,#cc0000 48%,#cc0000 56%,#dddddd 56%);
                        background: -ms-linear-gradient(-45deg, #dddddd 48%,#cc0000 48%,#cc0000 56%,#dddddd 56%);
                        background: linear-gradient(135deg, #dddddd 48%,#cc0000 48%,#cc0000 56%,#dddddd 56%);
                    }
                    
                    .tgui_cpbtn_noFillspecial, .tgui_cpbtn_noFillspecial:hover{
                        background: linear-gradient(143deg, #dddddd 46%,#cc0000 49%,#cc0000 51%,#dddddd 57%);
                    }
                    
                    /* color picker buttons */
                    
                    
                    .tgui_cpbtn[value] .tgui_cpbtn_transFill,
                    .tgui_cpbtn[value] .tgui_cpbtn_colorFill,
                    .tgui_cpbtn[value="transparent"] .tgui_cpbtn_transFill,
                    .tgui_cpbtn[value="none"] .tgui_cpbtn_noFill{
                        visibility:visible;
                    }
                    .tgui_cpbtn .tgui_cpbtn_transFill,
                    .tgui_cpbtn .tgui_cpbtn_colorFill,
                    .tgui_cpbtn .tgui_cpbtn_noFill,
                    .tgui_cpbtn[value] .tgui_cpbtn_unsetFill,
                    .tgui_cpbtn[value="transparent"] .tgui_cpbtn_colorFill,
                    .tgui_cpbtn[value="none"] .tgui_cpbtn_transFill,
                    .tgui_cpbtn[value="none"] .tgui_cpbtn_colorFill,
                    .tgui_cpbtn[value=""] .tgui_cpbtn_transFill,
                    .tgui_cpbtn[value=""] .tgui_cpbtn_colorFill 
                    {
                        visibility:hidden;
                    }
                    
                    .tgui_cpbtn[value=""] .tgui_cpbtn_unsetFill{
                        visibility:visible;
                        line-height:16px;
                    }
                    
                        .tgui_cp_swatchBtns {
width: 21px;
height: 18px;
box-shadow: inset 0px 0px 0px 1px #626262;
margin-top: 1px;
}
                    /* end color picker buttons */