.rte { background: #f3f3f3; border: 1px solid #ccc; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; float: left; height: auto !important; margin: 10px 0 0 0; padding: 0 !important; position: relative; text-align: left; }
.rte.xwide { width: 100%; }
.rte.wide { width: 50%; }

.rte-head { display: block; background: #e6e6e6; min-height: 60px; }

.rte-menu { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; list-style-type: none; min-height: 30px; margin: 0; padding: 0; width: 100%; }
.rte-menu li { background: transparent url(rte.png) no-repeat 0 0; border-right: 1px solid #ccc; cursor: pointer; float: left; font-size: 0; height: 30px; list-style-type: none; margin: 0; position: relative; width: 30px; }
.rte-menu li:after { background: #e6e6e6; content: ''; display: block; height: 30px; left: 0; opacity: 0.4; position: absolute; top: 0; width: 30px; }
.rte-menu li.rte-menu-disabled { cursor: default; }
.rte-menu li.rte-menu-disabled:after { opacity: 0.9; }
.rte-menu li.rte-menu-active { background-color: #ccc; opacity: 1; }
.rte-menu li.rte-menu-active:after { display: none; }
.rte-menu li.rte-menu-seperate { border-width: 2px; }
.rte-menu li.rte-menu-p { background-position: 0 0; }
.rte-menu li.rte-menu-strong { background-position: -30px 0; }
.rte-menu li.rte-menu-em { background-position: -60px 0; }
.rte-menu li.rte-menu-a { background-position: -90px 0; }
.rte-menu li.rte-menu-table { background-position: -120px 0; }
.rte-menu li.rte-menu-field, .rte-menu li.rte-menu-content { background-position: -150px 0; border-right: none; float: right; }

.rte-option { background: #ccc; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; display: none; list-style-type: none; overflow: hidden; margin: 0; padding: 0 0 5px 5px; width: 100%; }
.rte-option input, .rte-option select { background: #f3f3f3; border: none; border-radius: 0 !important; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; float: left; font-size: 11px; height: 20px; margin: 5px 5px 0 0; outline: none; padding: 1px; }
.rte-option input.wide { max-width: 240px; width: 50%; }
.rte-option input.narrow { max-width: 120px; width: 25%; }
.rte-option select::-ms-expand { display: none; }
.rte-option select { -moz-appearance: none; -webkit-appearance: none; appearance: none; background: #f3f3f3 url(asset/rte-head.png) no-repeat 100% 100%; padding-right: 20px; text-indent: 1px; text-overflow: ''; }


.rte-field { background: transparent; border: none; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; display: none; font-family: "Courier New", Courier, monospace; font-size: 12px; overflow: hidden; overflow-y: auto; padding: 2px; width: 100%; }

.rte-content { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; color: #666; font-size: 12px; min-height: 20px; outline: none; overflow: hidden; overflow-y: auto; padding: 2px; text-align: left; width: 100%; }
.rte textarea { background: #f3f3f3; border: none; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; color: #666; display: block; font-size: 12px; min-height: 20px; outline: none; overflow: hidden; overflow-y: auto; padding: 2px; text-align: left; width: 100% !important; }
.rte.tall .rte-content, .rte.tall textarea { height: 400px !important; }
.rte.short .rte-content, .rte.short textarea { height: 200px !important; }

.rte-content a { color: #666; }
.rte-content h1, .rte-content h2, .rte-content p, .rte-content ul, .rte-content ol { border: 1px dotted #ccc; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; color: #666; margin: 5px 0 0 0; padding: 2px; }
.rte-content :first-child { margin-top: 0 !important; }
.rte-content h1 {  font-size: 18px;}
.rte-content h2 { font-size: 14px; }
.rte-content ul { list-style-type: none; }
.rte-content ul li { list-style-type: square; margin: 0 0 0 20px; padding: 0; }
.rte-content ol { list-style-type: none; }
.rte-content ol li { list-style-type: decimal; margin: 0 0 0 20px; padding: 0; }
.rte-content table { border-collapse: collapse; margin: 5px 0 0 0; padding: 0; width: 100%; }
.rte-content thead th { background: #e6e6e6; }
.rte-content th, .rte-content td { border: 1px solid #e6e6e6; padding: 5px; }

.rte-content span.rte-space:after { content: '\00a0'; }

