/* Toolbar */
.kf-editor-toolbar {
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 1px 10px;
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #f6f5ee;
    border-bottom: 1px solid #ccc;
    -moz-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
    -webkit-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
    box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
    color: #000;
    font-family: Helvetica, Arial, "微软雅黑", "Microsoft YaHei", "宋体", sans-serif;
}

/* Button */
.kf-editor-inner-toolbar {
    width: 100%;
    white-space: nowrap;
}

.kf-editor-ui-button-mount-point,
.kf-editor-ui-area-mount,
.kf-editor-ui-box,
.kf-editor-ui-box-container,
.kf-editor-ui-box-group,
.kf-editor-ui-box-group-item-container,
.kf-editor-ui-overlap-container,
.kf-editor-ui-wrap-group,
.kf-editor-ui-list,
.kf-editor-ui-list-item-container {
    white-space: normal;
}

.kf-editor-ui-button {
    padding: 8px 6px;
    height: 79px;
    font-size: 12px;
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: default;
    position: relative;
    top: 0;
    left: 0;
    z-index: 3;
    vertical-align: top;
    opacity: 0.5;
    margin-right: 1px;
}

.kf-editor-toolbar .kf-editor-ui-overlap-button {
    width: 100%;
    height: 25px;
    background: #53b856;
    border-radius: 0;
}

.kf-editor-ui-button-icon {
    width: 32px;
    height: 32px;
    margin: 2px auto;
}

.kf-editor-ui-button-label {
    color: #666;
    text-align: center;
    display: block;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
}

.kf-editor-ui-overlap-button .kf-editor-ui-button-label {
    padding: 3px 5px;
    text-align: left;
    color: white;
    font-size: 12px;
}

.kf-editor-ui-button-sign {
    border: 4px solid transparent;
    border-top-color: #2d2d2d;
    width: 0;
    height: 0;
    display: inline-block;
    margin: 8px auto;
    vertical-align: top;
}

.kf-editor-ui-button-mount-point {
    display: none;
    position: absolute;
    bottom: -2px;
    left: -1px;
}

.kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
    width: 100%;
    height: 10000px;
}

.kf-editor-ui-wrap-group {
    overflow-x: hidden;
    overflow-y: auto;
}

.kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
    top: 27px;
}

.kf-editor-toolbar .kf-editor-ui-button-in {
    border-color: #8fcc91!important;
    background: #e0f0dd!important;
}

.kf-editor-toolbar .kf-editor-ui-overlap-button {
    padding-top: 0;
    padding-bottom: 0;
    border-color: #61b864!important;
    background: #61b864!important;
}

/* Delimiter */
.kf-editor-ui-delimiter {
    width: 11px;
    height: 100%;
    display: none;
}

.kf-editor-ui-enabled.kf-editor-ui-button:hover {
    border: 1px solid #a9d9ab;
    background: #ebf7e6;
}

.kf-editor-ui-enabled.kf-editor-ui-overlap-button:hover {
    border: 1px solid #53b856;
    background: #53b856;
}

.kf-editor-ui-delimiter-line {
    width: 1px;
    height: 100%;
    margin: 0 auto;
    background: -webkit-linear-gradient(top, rgba(233, 233, 233, 0.11), rgba(92, 92, 92, 0.20) 60%, rgba(92, 92, 92, 0.41) 80%, rgba(123, 123, 123, 0.50));
}

/* box */
.kf-editor-ui-box {
    border: 1px solid #b3aead;
    border-radius: 3px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
    background: white;
    position: absolute;
    top: 0;
    left: -1px;
    overflow-x: hidden;
    overflow-y: auto;
}

.kf-editor-ui-area .kf-editor-ui-box {
    border-color: #61b864;
}

.kf-editor-ui-box-container {
    font-size: 12px;
}

.kf-editor-ui-box-group-title {
    background-color: #f7f6f0;
    min-height: 23px;
    line-height: 1.35;
    font-size: 12px;
    border: 1px solid #ebeae4;
    border-width: 1px 0;
    padding: 4px 12px;
    white-space: normal;
}

.kf-editor-ui-box-group-item-container {
    padding: 7px 9px 17px 9px;
}

.kf-editor-ui-overlap-container {
    overflow: hidden;
}

.kf-editor-ui-area .kf-editor-ui-box {
    top: -1px;
}

.kf-editor-ui-overlap-container .kf-editor-ui-button-sign {
    border-top-color: white;
    border-width: 4px;
    margin-left: 10px;
    margin-top: 8px;
}

.kf-editor-ui-yushe-btn .kf-editor-ui-box-item {
    display: block;
    border: 1px solid transparent;
    padding: 5px;
    margin: 0 0 12px;
}

.kf-editor-ui-yushe-btn .kf-editor-ui-box-item:last-child {
    margin-bottom: 0;
}

.kf-editor-ui-yushe-btn .kf-editor-ui-box-item-content {
    display: block;
}

.kf-editor-ui-yushe-btn .kf-editor-ui-box-item-val {
    display: block;
}

.kf-editor-ui-box-item {
    display: inline-block;
    margin: 4px;
}

.kf-editor-ui-box-item-content:hover {
    border-color: #dff3df;
}

.kf-editor-ui-box-item-content:hover .kf-editor-ui-box-item-val {
    border-color: #6eb864;
}

.kf-editor-ui-area .kf-editor-ui-box-item {
    position: relative;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 0;
    margin: 3px;
    padding: 0;
    z-index: 1;
}

.kf-editor-ui-area .kf-editor-ui-box-item img {
    width: 32px;
    height: 32px;
}


.kf-editor-ui-box-item-label {
    margin-bottom: 5px;
    line-height: 1.35;
    white-space: normal;
}

.kf-editor-ui-box-item-content {
    background: white;
    border: 1px solid white;
}

.kf-editor-ui-area .kf-editor-ui-box-item-content {
    position: absolute;
    top: 0;
    left: 0;
}

.kf-editor-ui-area .kf-editor-ui-box-item-content:hover {
    border: 1px solid #dff3df;
}

.kf-editor-ui-box-item-val {
    padding: 5px;
    line-height: 0;
    border: 1px solid #808080;
}

.kf-editor-ui-area .kf-editor-ui-box-item-val {
    padding: 0;
    margin: 0;
}

/* area */
.kf-editor-ui-area {
    height: 79px;
    display: inline-block;
    cursor: default;
    position: relative;
    top: 0;
    left: 0;
    vertical-align: top;
    opacity: 0.5;
    z-index: 4;
    border: 1px solid #e0dfd5;
    border-radius: 4px;
    background: white;
    margin: 8px 10px;
}

.kf-editor-ui-area-container {
    width: 293px;
    height: 70px;
    /*margin: 7px 5px 5px 5px;*/
    margin: 5px;
    display: inline-block;
    border-right: 0;
    vertical-align: top;
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
}

.kf-editor-ui-area-panel {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 0;
    background: white;
    -webkit-transition: top 0.5s linear;
    -moz-transition: top 0.5s linear;
    transition: top 0.5s linear;
}

.kf-editor-ui-area-button-container {
    display: inline-block;
    width: 16px;
    height: 100%;
    overflow: hidden;
    text-align: center;
    border: 0 solid #D3D3D3;
    border-left-width: 1px;
    background-color: #f2f0e6;
}

.kf-editor-ui-moveup-button, .kf-editor-ui-movedown-button {
    line-height: 25px;
    height: 30px;
}

.kf-editor-ui-moveup-button {
    background: url( "./images/toolbar/btn.png" ) -304px 9px no-repeat;
}

.kf-editor-ui-movedown-button {
    border: 1px solid #D3D3D3;
    border-width: 1px 0;
    background: url( "./images/toolbar/btn.png" ) -325px 9px no-repeat;
}

.kf-editor-ui-area-button {
    width: 100%;
    height: 50px;
    line-height: 26px;
    background: url( "./images/toolbar/btn.png" ) -346px 0 no-repeat;
}

.kf-editor-ui-enabled .kf-editor-ui-area-button:hover {
    background-color: #e5e4e1;
}

.kf-editor-ui-enabled .kf-editor-ui-moveup-button:hover {
    background-color: #e5e4e1;
}

.kf-editor-ui-enabled .kf-editor-ui-movedown-button:hover {
    background-color: #e5e4e1;
}

.kf-editor-ui-area-button-container .kf-editor-ui-disabled {
    opacity: 0.25;
    background-color: transparent!important;
}

.kf-editor-ui-area-mount {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.kf-editor-ui-overlap-title {
    width: 100%;
    line-height: 1.5;
}

/* list */
.kf-editor-ui-list {
    background: #f9f8f5;
    border: 1px solid #b3aead;
    border-radius: 3px;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
}

.kf-editor-ui-list-bg {
    display: none;
}

.kf-editor-ui-list-item-container {
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
}

.kf-editor-ui-list-item {
    line-height: 24px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-width: 1px 0;
}

.kf-editor-ui-list-item-select {
    color: #61b864;
    font-weight: bold;
}

.kf-editor-ui-list-item-select .kf-editor-ui-list-item-icon {
    visibility: visible;
    width: 16px;
    height: 16px;
    background: url( ./images/toolbar/btn.png ) no-repeat -367px 0;
}

.kf-editor-ui-list-item:hover {
    border-color: #beddbf;
    background-color: #ecf3e9;
}

.kf-editor-ui-list-item-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px;
    margin-right: 4px;
    visibility: hidden;
}

/* area content area */
.kf-editor-ui-area-item {
    width: 26px;
    height: 26px;
    position: absolute;
    top: 0;
    left: 0;
}

.kf-editor-ui-area-item-inner {
    width: 34px;
    height: 34px;
    border: 1px solid white;
    position: absolute;
    top: -4px;
    left: -4px;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    transition: all 0.1s linear;

    -webkit-transform: scale( 0.76 );
    -moz-transform: scale( 0.76 );
    transform: scale( 0.76 );
}

.kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover {
    border-color: #dff3df;

    -webkit-transform: scale( 1 );
    -moz-transform: scale( 1 );
    transform: scale( 1 );
}

.kf-editor-ui-area-item-img {
    width: 32px;
    height: 32px;
    border: 1px solid #808080;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    transition: all 0.1s linear;
}

.kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover .kf-editor-ui-area-item-img {
    border-color: #6eb864;
}

/* unicode text area items */
.kf-editor-ui-area-item-unicode .kf-editor-ui-area-item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
}

.kf-editor-ui-area-item-text {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 20px;
    text-align: center;
    color: #000;
    border: 1px solid #808080;
    font-family: "KF AMS MAIN", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    transition: all 0.1s linear;
}

.kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover .kf-editor-ui-area-item-text {
    border-color: #6eb864;
}

/* unicode box items (popup) */
.kf-editor-ui-box-item-text {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 20px;
    text-align: center;
    color: #000;
    border: 1px solid #808080;
    font-family: "KF AMS MAIN", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;
    display: inline-block;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    transition: all 0.1s linear;

    -webkit-transform: scale( 1 );
    -moz-transform: scale( 1 );
    transform: scale( 1 );
}

.kf-editor-ui-box-item:hover .kf-editor-ui-box-item-text {
    border-color: #6eb864;

    -webkit-transform: scale( 1.2 );
    -moz-transform: scale( 1.2 );
    transform: scale( 1.2 );
}

.kf-editor-ui-enabled {
    opacity: 1;
}

.kf-editor-ui-overlap-container .kf-editor-ui-box-item {
    width: 34px;
    height: 34px;
    border: 1px solid white;
}

.kf-editor-ui-overlap-container .kf-editor-ui-box-item-val {
    width: 32px;
    height: 32px;
}

/* scrollbar */
.kf-editor-ui-box::-webkit-scrollbar {
    width: 17px;
    background: url(./images/scrollbar/custom/bg.png) 0 0 repeat-y white;
}

.kf-editor-ui-box::-webkit-scrollbar-button:end:increment {
    height: 5px;
    background: url(./images/scrollbar/custom/down.png) 0 0 repeat-y white;
}
/* Define styles for scrollbar decrement button */
.kf-editor-ui-box::-webkit-scrollbar-button:start:decrement {
    height: 5px;
    background: url(./images/scrollbar/custom/up.png) 0 0 repeat-y white;
}

/* Upper segment of vertical scrollbar track piece */
.kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:start {
    background-image: url(./images/scrollbar/custom/top.png), url(./images/scrollbar/custom/bg.png);
    background-repeat: no-repeat, repeat-y;
}
/* Lower segment of vertical scrollbar track piece */
.kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:end {
    background-image: url(./images/scrollbar/custom/bottom.png), url(./images/scrollbar/custom/bg.png);
    background-repeat: no-repeat, repeat-y;
    background-position: 0 bottom, 0 0;
}
/* Vertical scrollbar thumb */
.kf-editor-ui-box::-webkit-scrollbar-thumb:vertical {
    /*background: url(./images2/bar.png) 6px 0 no-repeat;*/
    /*background-size: 6px;*/
    -webkit-border-image: url(./images/scrollbar/custom/bar.png) 8;
    border-width: 10px;
}

.kf-editor-ui-wrap-group::-webkit-scrollbar {
    width: 17px;
    background: url(./images/scrollbar/custom/bg.png) 0 0 repeat-y white;
}

.kf-editor-ui-wrap-group::-webkit-scrollbar-button:end:increment {
    height: 5px;
    background: url(./images/scrollbar/custom/down.png) 0 0 repeat-y white;
}
/* Define styles for scrollbar decrement button */
.kf-editor-ui-wrap-group::-webkit-scrollbar-button:start:decrement {
    height: 5px;
    background: url(./images/scrollbar/custom/up.png) 0 0 repeat-y white;
}

/* Upper segment of vertical scrollbar track piece */
.kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:start {
    background-image: url(./images/scrollbar/custom/top.png), url(./images/scrollbar/custom/bg.png);
    background-repeat: no-repeat, repeat-y;
}
/* Lower segment of vertical scrollbar track piece */
.kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:end {
    background-image: url(./images/scrollbar/custom/bottom.png), url(./images/scrollbar/custom/bg.png);
    background-repeat: no-repeat, repeat-y;
    background-position: 0 bottom, 0 0;
}
/* Vertical scrollbar thumb */
.kf-editor-ui-wrap-group::-webkit-scrollbar-thumb:vertical {
    -webkit-border-image: url(./images/scrollbar/custom/bar.png) 8;
    border-width: 10px;
}
