/****************************** basic layout elements *************************/
.cl {
  clear: both;
  height: 1px;
  font-size: 1px;
  padding: 0;
  margin: 0;
  margin-top: -1px;
  border: none;
  background: transparent;
  visibility: hidden;
  display: block;
}

.hdn {
  position: absolute;
  left: -3000px;
}

.nodsp {
  display: none;
}

.pointer {
  cursor: pointer;
}

.sys_waiting {
  background: #fff url('../img/loading.gif') no-repeat 50% 50%;
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
}
.sys_waiting_wrapper {
  min-height: 40px;
}

/* float */
.fl {
  float: left;
}
.fr {
  float: right;
}

/* text align */
.l {
  text-align: left;
}
.c {
  text-align: center;
}
.r {
  text-align: right;
}
.t {
  vertical-align: top;
}
.m {
  vertical-align: middle;
}
.b {
  vertical-align: bottom;
}

/* font */
.s {
  font-weight: bold;
}
.i {
  font-style: italic;
}
.u {
  text-decoration: underline;
}


/******************************* common rules ******************************/

/* Nav bar */
#nb {
  width: 100%;
  height: 45px;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
}

#nb .nbw {
  background: #000 url('../img/adm_top_bar.png') repeat-x 0 0;
  background-image: linear-gradient(top, #575757, #000);
  background-image: -o-linear-gradient(top, #575757, #000);
  background-image: -moz-linear-gradient(top, #575757, #000);
  background-image: -webkit-linear-gradient(top, #575757, #000);
  position: relative;
  width: 960px;
  margin: 0 auto;
  height: 45px;
}

#nb .m3_logo {
  background: url('../img/adm_m3_logo.png') no-repeat 0 0;
  width: 31px;
  height: 29px;
  position: absolute;
  top: 7px;
  left: 0;
  z-index: 1100;
}

#nb #special {
  position: absolute;
  top: 0;
  right: 0;
  height: 45px;
  line-height: 45px;
  font-size: 115%;
}

#content {
  position: relative;
}

/* javascript select */
.jssel {
  width: 150px;
  position: relative;
  z-index: 20;
}
.jssel .jssel_selected {
  height: 20px;
  border: 1px solid #e6e6e6;
  cursor: default;
  width: 138px;
  padding: 0 5px;
  background: #fff url('../img/sys_jssel_open.png') no-repeat 132px 50%;
}
.jssel .jssel_choose {
  border: 1px solid #e6e6e6;
  position: absolute;
  top: 21px;
  left: 0;
  width: 148px;
  cursor: default;
  z-index: 1000;
}
.jssel .jssel_choose ul {
  margin: 0;
  padding: 3px;
  list-style-type: none;
  background: #fff;
}
.jssel .jssel_choose ul li {
  background: #fff;
  padding: 0 5px;
  border-bottom: 1px solid #eaeaea;
}
.jssel .jssel_choose ul li.active,
.jssel .jssel_choose ul li:hover {
  background: #e6e6e6;
}
.jssel .jssel_choose ul li.last {
  border: 0;
}

/* modal box */
.modbox {
  font-size: 13px;
}
.modbox div.close {
  background: url('../img/close.png') no-repeat 0 bottom;
}
.modbox div.handle {
  width:100%;
  height:37px;
  background: #000;
  background-image: linear-gradient(top, #565556, #000);
  background-image: -o-linear-gradient(top, #565556, #000);
  background-image: -moz-linear-gradient(top, #565556, #000);
  background-image: -webkit-linear-gradient(top, #565556, #000);
  color: #fff;
  font-weight: bold;
  line-height: 37px;
  text-indent: 10px;
}
.modbox div.modal_box_wait {
  background: url('../img/loading.gif') no-repeat 10px 10px;
}
.modbox #messages_mb {
  margin: 0;
}
.modbox #messages_mb .message {
  text-align: center;
}

/* whisper */
.sys_whisper_wrapper {
  position: relative;
  z-index: 100;
}
.sys_whisper_wrapper ul {
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  list-style-type: none;
}
.sys_whisper_wrapper ul li {
  background: #fff;
  padding: 0 5px;
  cursor: pointer;
}
.sys_whisper_wrapper ul li:hover,
.sys_whisper_wrapper ul li.selected {
  background: #FEFFBF;
}

.sys_whisper_loading {
  position: absolute;
  top: 5px;
  right: 2px;
}

/* tree */
.sys_tree {
  font-size: 0.95em;
  margin: 10px 0;
  max-height: 200px;
  overflow: auto;
}
.sys_tree ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.sys_tree a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}
.sys_tree .lvl_2 a {
  font-weight: normal;
}
.sys_tree ul img {
  vertical-align: bottom;
}
.sys_tree ul ul {
  padding-left: 18px;
  background: url('../img/icon/tree/line.gif') repeat-y 0 0;
}
.sys_tree ul.empty {
  background: url('../img/icon/tree/empty.gif') repeat-y 0 0;
}
.sys_tree ul li.active {
  background: url('../img/icon/tree/selected_bg.png') no-repeat -3px 1px;
}

/*************** toolbar *********/
#tbbox {
  background: #eee;
  border: 1px solid #aaa;
  width: 180px;
  z-index: 1000;
}

#tb {
  text-align: center;
}

#tbbox .tbtitle {
  border-bottom: 1px solid #aaa;
  padding-left: 5px;
}

#tb div {
  padding: 5px;
}

#tb img {
  border: 0;
  margin: 0;
}

#tb a {
  text-decoration: none;
}

.tbheader {
  background: #ddd;
}

.tbheader strong {
  padding-left: 5px;
}

#tbhandle {
  cursor: move;
}

#tbclose, #tbmin {
  display: block;
  float: right;
  font-family: monospace;
  padding: 0 3px;
}

#tbclose {
  cursor: pointer;
  background: #800;
  color: #fff;
}

#tbclose:hover {
  background: #f00;
}

#tbmin {
  cursor: pointer;
  background: #666;
  color: #fff;
  margin-left: 5px;
}

#tbmin:hover {
  background: #999;
}