
.m-dialog {
  font-size: 1em;
  position: relative;
  top: 0px;
  left: 0px;
  width: 300px;
  height: 100px;
  border: 1px solid #333;
  border-left: 1px solid #888;
  border-top: 1px solid #888;
  background: #fff;
  margin: 0px;
  padding: 5px;
  /*opacity: 0.9;*/
}
.m-dialog .body {
  color: #333;
}
.m-dialog .m-buttons {
  position: absolute;
  bottom: 0px;
  right: 0px;
  display: block;
  padding: 3px;
}
.m-dialog .body input {
  padding: 2px;
  font-size: 1.2em;
  border: 1px solid #eee;
  border-top: 1px solid #888;
  border-left: 1px solid #888;
}
.m-dialog .body input:hover, .dialog .body input:focus {
  color: #000;
}
.m-dialog .m-buttons button {
  background: #FFFB9F;
  border: 1px solid #F3EE77;
  color: #666;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #E7C73B;
  border-right: 1px solid #E7C73B;
  margin: 2px;
}
.m-dialog .m-buttons button:hover {
  color: #000;
}
/* WINDOW */

.m-popup {
  position: absolute;
  top: 0px;
  left: 0px;
  background: #fff;
  margin: 0px;
  padding: 0px;
  width: 300px;
  width: 300px;
}

.m-popup .title {
  height: 18px;
  display: block;
  padding: 3px;
  text-align: center;
  background: #eee;
  color: #333;
  cursor:move;
}

.m-popup .m-buttons {
  display: block;
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 2px;
  height: 16px;
}
.m-popup .m-buttons div {
  display: block;
  width: 16px;
  height: 16px;
  cursor: pointer;
  float: left;
  margin: 3px;
}

.m-popup .m-buttons div:hover {
  opacity: 0.5;
}

.m-popup .m-buttons .close {
  background: #f00;
}
.m-popup .m-buttons .minimize {
  background: #ff0;
}
.m-popup .m-buttons .maximize {
  background: #f0f;
}

.m-popup .content {
  padding: 0px;
}

.m-popup .contentHolder {
  display: block;
  padding: 0px;
  overflow: auto;
}
.m-popup .status {
  overflow: hidden;
}
.m-popup .resize {
  position: absolute;
  width: 10px;
  height: 10px;
  display: block;
}
.m-lock {
  background: #222;
}
.m-lock .m-popup {
  opacity: 0.9;
}
.m-panel {
  background: #333;
  border-top: 1px solid #eee;
  border-left: none;
  border-right: none;
  opacity: 0.9;

  left: 0px;
  bottom: 0px;
  right: 0px;
  position: absolute;
  position: fixed;
  height: 52px;
  overflow: auto;
}
.m-panel .m-popup {
  position: relative;
  display: table-cell;
  float: left;
  top: 0px;
  left: 0px;
  vertical-align: middle;
}
.m-panel .resize, .m-panel .content, .m-panel .status, .m-panel .m-buttons {
  display: none;
}

/* DATAGRID */
.m-datagrid .frame {
  overflow: auto;
  height: 200px;
}
.m-datagrid input {
  border: 1px solid #eee;
  padding: 2px;
}
.m-datagrid table td {
  margin: 0px;
  padding: 0px;
}
.m-datagrid table thead td {
  border: 1px solid #aaa;
  background: #eee;
  font-size: small;
  text-align: center;
  font-weight: bold;
  color: black;
}
.m-datagrid .id {
  width: 30px;
}
.m-datagrid .selected, .m-datagrid tr.selected input {
  color: #fff;
  background: #06c;
  border: 1px solid #00b;
}
.m-datagrid .focus, .m-datagrid tr.focus td {
  color: #000;
  background: #fff;
  border: 1px solid #06c;
}
.m-datagrid tbody .id {
  background: #eee;
  border: 1px solid #e5e5e5;
  border-bottom: 1px solid #888;
  border-right: 1px solid #888;
  text-align: center;
  color: #000;
  font-weight: bold;
}

/* NOTEBOOK */

.m-notebook {
  display: block;
  width: 600px;
  padding: 0px;
  margin: 0px;
  margin-top: 5px;
  margin-bottom: 5px;
}
.m-notebook .frametable {
  width: 100%;
  margin: 0px;
  margin: 0px;
}
.m-notebook .contents {
  display: block;
  margin: 0px;
}
.m-notebook .tabs {
  font-size: small;
  line-height: 100%;
  margin: 0px;
  padding: 4px;
  padding-left: 5px;
  
  border-bottom: 1px solid #ddd;
}
.m-notebook .tabs li {
  display: inline;
  list-style-position: outside;
  list-style-image: none;
  list-style-type: none;
  border: 1px solid #ddd;
  padding: 2px;
  margin: 0px;
  margin-left: 1px;
  cursor: pointer;
  background: #fff url('default/notebook-tab-bg.png') bottom left;
  color: #888;
}
.m-notebook .tabs li.selected {
  border: 1px solid #B1C6FF;
  background: #fff url('default/notebook-tab-sel.png') bottom left;
  color: #000;
}
.m-notebook .page {
  display: block;
  width: 100%;
}
.m-notebook .tabs li:hover {
  color: #666;
}
.m-notebook .close {
  display: none;
}
.m-notebook .selected .close {
  color: #888;
  font-size: 12px;
  margin-left: 5px;
  margin-right: 5px;
  display: inline;
  line-height: 0%;
}
.m-notebook .selected .close:hover {
  color: #f00;
}
.m-notebook iframe {
  height: 300px;
}

/* CALENDAR */

.m-calendar {
  background: #fafafa;
  border: 1px solid #888;
  padding: 5px;
  border-collapse: collapse;
}
.m-calendar .text {
  font-size: small;
  font-weight: bold;
}
.m-calendar .head {
  background: #eee;
  border-bottom: 1px solid #aaa;
  padding: 2px;
}
.m-calendar td {
  padding: 3px;
}
.m-calendar .main {
  background: #fefefe;
  padding: 4px;
}
.m-calendar .grid {
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}
.m-calendar .frame {
  display: block;
}
.m-calendar .frame .grid {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}
.m-calendar .m-buttons {
  text-align: right;
}
.m-calendar .m-buttons button {
  margin-left: 10px;
}
.m-calendar .m-buttons button.today {
  border: 2px groove #eee;
}
.m-calendar .frame .grid thead th {
  color: #888;
  font-size: small;
  background: #efefef;
  border-bottom: 1px solid #ddd;
}
.m-calendar input {
  border: 1px solid #eee;
  padding: 1px;
}
.m-calendar .frame .grid td {
  font-size: small;
  text-align: center;
  color: #aaa;
  padding: 1px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0px;
  border-bottom: 1px solid #eee;
}
.m-calendar .frame .grid td.day:hover {
  background: #ffffaa;
  color: #111;
}
.m-calendar .frame .grid td.day {
  color: #222;
  cursor: pointer;
}
.m-calendar .frame .grid td.today {
  color: #000;
  background: #ffffbb;
}


/* EDITOR */
.m-editor {
  display: block;
}
.m-editor .contents {
  padding: 5px;
}
.m-editor textarea {
}
.m-editor iframe {
  height: 100px;
  background: #fff;
  width: 100%;
  border: 1px solid #eee;
  margin-top: 5px;
  letter-spacing:normal;
  white-space:normal;
}
.m-editor iframe p {
margin:0px;
padding:0px;
}
.m-editor-buttons {
  overflow: auto;
}
.m-editor-buttons button {
  border: none;
  display: block;
  padding: 0px;
  margin: 0px;
  float: left;
  font-size: 0px;
  height: 24px;
  width: 24px;
  border: 1px solid #aaa;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  margin: 1px;
  background: #fff;
  opacity: 0.7;
}
.m-editor-buttons button:hover {
  opacity: 1;
}
.m-editor-buttons button img {
  padding: 0px;
  margin: 0px;
  height: 22px;
  width: 22px;
  border-collapse: collapse;
}
.m-editor-buttons span {
  display: block;
  float: left;
}
.m-editor-buttons span img, .m-editor-buttons span select {
  display: inline;
  background: #fff;
}
.m-editor-buttons .active {
  border: 1px solid #06c;
}

/* TOOLBOX */
.m-toolbox {
  background: #fff;
  padding: 0px;
  margin: 0px;
}

.m-form-message {
  font-size: x-small;
  color: #06c;
  padding: 2px;
  border: 1px solid #81C0F5;
  margin-left: 2px;
  padding: 3px;
  background: #E1F1FF;
}

.m-form-mask {
  background: #fff;
  position: absolute;
  text-align: center;
  vertical-align: middle;
}
.m-form-mask img {
  margin: 10px;
}

.m-rpc-success, .m-rpc-error {
  position: fixed;
  top: 0px;
  font-size: small;
  padding: 0px;
  margin: 0px;
  width: 100%;
  left: 0px;
  border: 0px;
  padding-bottom: 10px;
  padding-top: 10px;
  color: #06c;
  background: #DBF7FF;
  border-bottom: 1px solid #06c;
}
.m-rpc-success {
  color: #06c;
  background: #DBF7FF;
  border-bottom: 1px solid #06c;
}
.m-rpc-error {
  color: #c00;
  background: #FFF7DB;
  border-bottom: 1px solid #c00;
}
.m-rpc-error span, .m-rpc-success span {
  margin: 10px;
}

/**/
.m-filebrowser {
  width: 500px;
}
.m-filebrowser .m-address {
  border: 1px solid #eee;
  padding: 3px;
}
.m-filebrowser .m-fileview {
  padding: 2px;
  margin: 0px;
  width: 340px;
  overflow: auto;
  float: left;
}  
.m-filebrowser .m-fileinfo {
  border: 1px solid #eee;
  width: 150px;
  float: right;
}
.m-filebrowser .m-fileview .m-file {
  display: block;
  border: 1px solid #eee;
  width: 160px;
  float: left;
  padding: 1px;
  margin: 1px;
  cursor: pointer;
  font-size: small;
  overflow: hidden;
}
.m-filebrowser .m-navigation button {
  color: #333;
  background: #eee;
  border: 1px solid #aaa;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  height: 24px;
  width: 24px;
  margin-left: 1px;
  margin-right: 1px;
  padding: 0px;
  font-size: 0px;
  opacity: 0.7;
}
.m-filebrowser .m-navigation button img {
  padding: 2px;
}
.m-filebrowser .m-navigation button:hover {
  opacity: 1;
}

/* SPINBUTTON */
.m-spinbutton {
  overflow: auto;
}
.m-spinbutton input {
}
.m-spinbutton table {
  border: 0px;
  margin: 0px;
  font-size: 1px;
  border-collapse: collapse;
}
.m-spinbutton td {
  border: 0px;
  margin: 0px;
  width: 16px;
  padding: 0px;
}
.m-spinbutton tr {
  border: 0px;
  margin: 0px;
}
.m-spinbutton .m-buttons img {
  cursor: pointer;
  padding: 0px;
  margin: 0px;
  width: 16px;
  height: 9px;
}
/* AUTOCOMPLETE */
.m-autocomplete {
  width: 300px; 
  z-index: 10;
  position: absolute;
  border: 1px solid #F7F7F7;  
  background: #FFFFFF;
  height: 150px;
  overflow: auto;
}
.m-autocomplete ul {
  list-style-type: none;
  border: 1px solid #FFFFFF;
  margin: 0px;
  padding: 0px;
}
.m-autocomplete ul li {
  color: #888;
  display: block;
  width: 280px;
}
.m-autocomplete .selected {
  background: #F7FEFF;
  cursor: pointer;
  color: #06c;
}

/*****************/
.m-menu ul {
  font-size: x-small;
  margin: 0px;
  padding: 0px;
  list-style: none;
  width: 10em;
  border: 1px solid #ccc;
  color: #333;
  position: relative;
  background: #fff;
}
.m-menu ul li {
  position: static;
}
.m-menu ul a {
  display: block;
  padding: 4px;
  color: #333;
  text-decoration: none;
}
.m-menu ul a:hover {
  color: #00c;
  text-decoration: none;
}
.m-menu li ul {
  position: absolute;
  margin-top: -1.7em;
  margin-left: 9.5em;
}
.m-menu .parent {
  border-right: 3px solid #ddd;
}
.m-menu ul a:hover {
  background: #eee;
}
.m-menu a img {
  border: 0px;
  margin-right: 2px;
}

/* SELECTION CONTROL */
/* selection area */
.m-selection {
  border: 1px solid #06c;
  background: #DEEEFF;
  opacity: 0.6;
  overflow: visible;
}


/* SEARCH LIST */
.m-searchlist {
}
.m-searchlist ul {
  list-style-type: none;
  margin: 2px;
  padding: 2px;
  background: #fff;
  max-height: 300px;
  overflow: auto;
}
.m-searchlist ul li {
  display: block;
  margin: 2px;
  padding: 2px;
  background: #fff;
  color: black;
  font-size: small;
  cursor: pointer;
  overflow: hidden;
  width: 288px;
}
.m-searchlist ul li.odd {
  border: 1px solid #eee;
  background: #f8f8f8;
}
.m-searchlist ul li.even {
  border: 1px solid #f3f3f3;
  background: #fff;
}
/* log */
div#m-log {
  left: 0px;
  bottom: 0px;
  right: 0px;
  position: absolute;
  position: fixed;
}
div#m-log .m-log-handler {
  height: 16px;
  cursor: move;
  background: #EFFFC1;
}
div#m-log .m-log-handler:hover {
}
div#m-log .m-log-content {
  background: #EFFFC1;
  overflow: auto;
  font-size: 12px;
  font-family: "monaco", "courier new", "andale mono", monotype;
}
div#m-log .m-log-toggle {
  width: 16px;
  height: 16px;
  background: url('../media/icons/debug.png');
}
div#m-log .log-line {
  padding: 3px;
  margin: 2px;
  background: #fff;
  border: 1px solid #eee;
}
div#m-log .m-log-var {
  font-weight: bold;
  color: blue;
}
div#m-log .m-log-constant {
  color: red;
} 
div#m-log .m-log-indent {
  margin-left: 10px;
}


/* STYLESHEET */
.m-popup .title {
  background: #888 url('gilouche/title.png');
  color: #eee;
  border: 1px solid #333;
  font-size: 0.8em;
}
.m-popup .frame {
  border: 1px solid #aaa;
  border-top: none;
}
.m-popup .contentHolder {
  background: #eee;
  padding: 5px;
}
.m-popup .status {
  background: #eee;
  padding: 3px;
  border-top: 1px solid #eee;
  font-size: xx-small;
}
.m-popup .m-buttons div {
  width: 16px;
  height: 16px;
  border: 1px solid #000;
}
.m-popup .m-buttons div:hover {
  border: 1px solid #888;
}
.m-popup .m-buttons .close {
  background-image: url('gilouche/close.png');
}
.m-popup .m-buttons .minimize {
  background-image: url('gilouche/minimize.png');
}
.m-popup .m-buttons .maximize {
  background-image: url('gilouche/maximize.png');
}
.m-popup .resize {
}

/* IE Specific workarounds \*/
* html .m-menu ul li { float: left; height: 1%; }
* html .m-menu ul li a { height: 1%; }
/* */
