/* ------------------------------------------------------

  *Filename:            global.css
  *Description:         Global CSS
  *Version:             1.0.0 (2010-03-10) YYYY-MM-DD
  *Website:             domain.tld
  *Author:              moono.cz, e-mail: studio@moono.cz
  
  === STRUCTURE =========================================
  
  *Page width:          960px
  *Number of columns:   1
  
  === SWATCH COLORS =====================================
  
  #fff    - white
  #666    - gray

-------------------------------------------------------*/

/* === RESETS ======================================== */

html, body, div, span, object, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, tt, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

a img {
  border: 0;
}

address {
  font-style: normal;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
}

blockquote, q {
  quotes: "" "";
}


/* === TYPOGRAPHY ==================================== */

/* The font-size percentage is of 16px. (i.e.: 0.85 * 16px = 14px) */ 

html { 
  font-size: 100.01%; 
}

body { 
  font-family: "Trebuchet MS", "Geneva CE", lucida, sans-serif;
  font-size: 80%; /* sensible type sizes: 75% (12px), 80% (13px), 85% (14px) */ 
  line-height: 1.5;
  color: #333; 
}

h1 {
  background: #5d9adf;
  position: absolute;
  top: 117px; left: 0;
  font-size: 1.6em;
  color: #fff;
  line-height: 40px;
  text-transform: uppercase;
  text-shadow: 0px 1px 3px #666;
  width: 100%;
  height: 40px;
  text-indent: 23px; 
}

h1 span {
  background: url('/res/img/bgr-h1-span.png') no-repeat 0 50%;
  font-size: .8em;
  font-weight: normal;
  text-shadow: none;
  padding: 0 0 0 20px;
  margin: 0 0 0 10px;
}

h1 a {
  color: #fff;
  text-decoration: none;
}

h1 a:hover {
  color: #fff;
}

h2, h3, h4, h5 {
  margin: 0 0 0.6em 0;
}

h2 { font-size: 1.4em; }

h3 { font-size: 1.2em; }

h4, h5 { font-size: 1.0em; }

p, #main ul, #main ol, table  {
  margin-bottom: 1.4em;
}

a {
  color: #297bd6;
}

a:hover  {
  color: #5d9adf;
}

a.set {
  color: #000;
}

a h3 {
  text-decoration: none;
}

abbr, abbr label, acronym {
  border-bottom: 1px dotted;
  cursor: help !important;
}


/* TABLES */

table.grid {
  width: 100%;
  color: #777;
  border-bottom: 1px solid #e6e6e6;
}

table.grid td, table.grid th {
  padding: .5em;
  border: 1px solid #e6e6e6;  
}

table.grid td {    
  background: #f9f9f9;
}

table.grid th, table.grid tfoot td {
  color: #333;
  font-weight: bold;
  background: #e6e6e6;
  border-bottom: 1px solid #bbb;  
}

table.grid tfoot td {          
  border-top: 1px solid #bbb;  
}

table.grid tr.odd th,
table.grid tr.odd td {
  background: #fff;
}

table.grid tbody tr.highlight td,
table.grid tbody tr.highlight-perm td {
  background: #e1ffd1;
  color: #333;  
}

table.grid img {
  display: block;
  float: left;
}

.sort { 
  background: url("/res/img/table-sort.png") no-repeat 100% 5px;
  padding-right: 17px;
}

.sort.desc {
  background-position: 100% -197px; 
}

table.grid th a {
  color: #333;
}


table.grid th a, 
a.sort {
  text-decoration: none;
}

table.grid th a:hover {
  text-decoration: underline;
}

a.sort {
  color: #297bd6 !important;
}

table.grid td.level1 { padding-left: 2em; }
table.grid td.level2 { padding-left: 4em; }
table.grid td.level3 { padding-left: 6em; }
table.grid td.level4 { padding-left: 8em; }
table.grid td.level5 { padding-left: 10em; }

.sublevel {
  background: url('/res/img/sublevel.png') no-repeat -4px 60%; 
  padding: 0 0 0 20px;
}


/* FORMS */

form fieldset {
  background: #f9f9f9;
  padding: 20px 20px 20px 20px;
  border-bottom-left-radius: 10px;  
  border-bottom-right-radius: 10px;
  -moz-border-bottom-left-radius: 10px;
  -moz-border-bottom-right-radius: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -webkit-border-bottom-right-radius: 10px;
  -khtml-border-bottom-left-radius: 10px;  
  -khtml-border-bottom-right-radius: 10px;
  margin: 0 0 1.4em 0;
}

form fieldset.fullround {
  border-top-left-radius: 10px;  
  border-top-right-radius: 10px;
  -moz-border-top-left-radius: 10px;
  -moz-border-top-right-radius: 10px;
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -khtml-border-top-left-radius: 10px;  
  -khtml-border-top-right-radius: 10px;  
}

form table {
  width: 100%;
  margin: 0;
}

form {
  padding: 0;
}

form fieldset table th {
  width: 20%;
  vertical-align: top;
  color: #777;
}

form fieldset table td {
  width: 80%;
}

input, select, textarea {
  font-family: "Trebuchet MS", "Geneva CE", lucida, sans-serif; 
  border: 1px solid #d8d8d8;
  background: url('/res/img/bgr-input.png') no-repeat 0 0;
  font-size: 1em;
  height: 25px;
  margin: 0 0 1em 0;
  padding: 3px 7px; 
  line-height: 25px;  
  outline: none;
}

input,
input.short {
  width: 200px;
}

input.long,
textarea {
  width: 97%;
}

input.tiny {
  width: 70px;
}

input.highlight, select.highlight, textarea.highlight {
  background-image: url('/res/img/bgr-input-highlight.png');
}

input[type=file] {
  background: none;
  border: 0;
  padding: 0;
}

select {
  width: 217px;
  height: 33px;
  padding: 1px 1px 1px 6px; 
}


textarea {
  height: 100px;
}                     

textarea.texyla {
  height: 300px;
}

textarea.large {
  height: 400px;
}

div.texyla {
  margin-bottom: 1.4em;
}

#main div.texyla ul li {margin-left: 0;}

form .submit {
  margin: 0 20px;
}

.req {
  float: right;
  line-height: 36px;
  color: #888;
}

input.default,
input.small,
a.button {
  background: url('/res/img/btn-green.png') no-repeat 0 0;
  border: 0;
  width: 144px; height: 36px;
  font-size: 1.3em;
  margin: 0 0 1.3em 0;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.5);
}

a.button {
  line-height: 36px;
  text-align: center;
  display: block;
  text-decoration: none;
}

input.default:hover,
input.small:hover,
a:hover.btn {
  text-shadow: none;
  color: #111;
}

input.small {
  background-image: url('/res/img/btn-grey.png');
  width: 110px; height: 31px;
  font-size: 1em;
  color: #555;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.3);
}

input.small:hover {
  color: green;
}

input.cancel {
  border: 0;
  background: 0;
  display: inline;
  width: auto; height: auto;
  color: red;
  text-decoration: underline;
}

input.cancel:hover {
  color: #333;
  cursor: pointer;
}

input.checkbox {
  width: auto;
  margin: 5px 10px 7px 0;  
  vertical-align: middle;
}

table.grid input.checkbox {
  margin: 0 !important;
}

/*
form table.grid td,
form table.grid th {
  width: auto;
}
*/

label.required {
  color: #333;
  font-weight: bold;
}

abbr {
  position: relative;
}

.context-help {
  background: #e1ffd1;
  color: #333;
  position: absolute;
  top: 30px; left: 10px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  -khtml-border-radius: 8px;
  border-radius: 8px;
  padding: 15px;
  width: 200px;
  z-index: 10;
  -moz-box-shadow: 2px 2px 3px #ddd;
  -webkit-box-shadow: 2px 2px 3px #ddd;
  box-shadow: 2px 2px 3px #ddd;    
  display: none;
}

.help {
  color: #888;  
  font-weight: bold;
  margin: 0 0 0 1em;
}


/* LIST */

#main ul {
  list-style-type: square;
}


#main ol {
  list-style-type: decimal;
}

#main ul li, #main ol li {
  margin-left: 1.6em;
  list-style-position: outside;
}

/*
.list li {
  margin-bottom: .8em;
  list-style-position: outside;
  list-style: disc;
  margin-left: 1.1em;
  padding-left: .5em;
}
*/

/* GRIDO */
form table.grido {
  margin-bottom: 1.4em;
}

.grido input,
.grido select {
  margin: 0;
  padding: 0;  
}

.grido .filter input,
.grido .filter select {
  width: 100% !important;
 
}

.grido select {
  width: auto;
  height: 26px;
}

.grido .operations {
  float: left;
}

.grido .paginator span,
.grido .paginator a {
  margin: 0 .3em;
  line-height: 30px;
}

.grido .count {
  float: right;
}

.btn_icon {
  background: url('/res/img/btn-small-icons.png') no-repeat 0 0;
  border: 0;
  width: 31px; height: 31px; 
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
}

.btn_icon.search {
  background-position: 0 -200px;
}

.btn_icon.reset {
  background-position: 0 -100px;
}

.btn_icon.export {
  background-position: 0 -300px;
}

a.btn_icon {
  display: block;
}

.grido .filter .btn_icon {
  width: 33px !important;
}


/* === COMMON STYLES ================================ */

body {
  background: #e6e6e6;
  padding: 35px 20px 20px 20px;
  text-align: center;
}

/* === COMMON CLASSES ================================ */

.dspln {
  display: none;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.fright {
  float: right
}

.fleft {
  float: left;
}

div.cleaner {
  clear: both;
  font-size: 1%;
  height: 0px;
  text-indent: -9999px;
}

.grp {
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;  
}

.grp span {
  background: no-repeat 0 0;
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

a.grp {
  cursor: pointer;
}

.w5p { width: 5%; }
.w10p { width: 10%; }
.w15p { width: 15%; }
.w20p { width: 20%; }
.w25p { width: 25%; }
.w30p { width: 30%; }
.w40p { width: 40%; }
.w50p { width: 50%; }
.w60p { width: 60%; }
.w70p { width: 70%; }
.w80p { width: 80%; }
.w90p { width: 90%; }
.w100p { width: 100%; }

.w10px { width: 10px; }
.w15px { width: 15px !important; }

.small {
  font-size: .8em;
  font-weight: normal;
}


/* === CLASSES ======================================== */

div.flash,
ul.error {
  background: url('/res/img/icon-oki.png') no-repeat 15px center #fff9d7;
  padding: 15px 48px;
  margin: 0 0 2em 0; 
  border-radius: 10px; 
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -khtml-border-radius: 10px;  
}

div.flash.err,
ul.error {
  background-image: url('/res/img/icon-err.png');
  color: red; 
}

div.flash.info {
  background-color: #f5f2ff;
  background-image: url('/res/img/icon-info.png');
  border-color: #a6c8ee;
}

div.highlight,
p.highlight {
  background: #fff9d7;
  border-radius: 10px; 
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -khtml-border-radius: 10px;  
  padding: 1em;
  margin: 0 0 2em 0;  
}

.highlight.grey {
  background: #e6e6e6;
}

a[href^="error:"] {
  background: red;
  color: white;
}

.icon {
  background: no-repeat 0 3px;
  padding: 3px 0 2px 23px;
  height: 1.4em;
}

.icon.add {
  background-image: url('/res/img/icon-add.png');
}

.icon.delete {
  background-image: url('/res/img/icon-delete.png');
  color: red;
  margin: 0 .5em 0 0;
}

.icon.edit {
  background-image: url('/res/img/icon-edit.png');
  margin: 0 .5em 0 0;
}

.icon.ok {
  margin: 0 0 0 .5em;
}

.icon.no-mr {
  margin-right: 0;
}

.icon.view {
  background-image: url('/res/img/icon-view.png');
  margin: 0 .7em 0 0;
}

.icon.folder {
  background-image: url('/res/img/icon-folder.png');
}

.icon.envelope {
  background-image: url('/res/img/icon-envelope.png');
}

.icon.info {
  background-image: url('/res/img/icon-info.png');
  background-size: 18px auto;
}

.icon.default {
  background-image: url('/res/img/icon-default.png');
  margin: 0 0 0 .5em;
  text-indent: -9999px;
  float: right;
}

.icon.default.noactive {
  background-image: url('/res/img/icon-default-transp.png');
}

.icon.default.noactive:hover {
  background-image: url('/res/img/icon-default.png');
}

.icon.alone {
  width: 18px;
  padding-left: 0;
  overflow: hidden;
  display: block;
  text-indent: -9999px;
}

.icon.back {
  background-image: url('/res/img/icon-back.png');
}

.icon.next {
  background-image: url('/res/img/icon-next.png');
}

.icon.ok {
  background-image: url('/res/img/icon-ok.png');
}

.icon.ko {
  background-image: url('/res/img/icon-ko.png');
}

.icon.up {
  background-image: url('/res/img/icon-arrow-up.png');
}

.icon.down {
  background-image: url('/res/img/icon-arrow-down.png');
}

.icon.up,
.icon.down {
  width: 10px;
}

.icon.download {
  background-image: url('/res/img/icon-download.png');
}

.icon.red {
  background-image: url('/res/img/icon-red.png');
}

.icon.blue {
  background-image: url('/res/img/icon-blue.png');
}

.icon.green {
  background-image: url('/res/img/icon-green.png');
}

.icon.hand-ok {
  background-image: url('/res/img/icon-hand-ok.png');
}

.icon.hand-ko {
  background-image: url('/res/img/icon-hand-ko.png');
}

.icon.plus {
  background-image: url('/res/img/icon-plus.png');
}

.icon.minus {
  background-image: url('/res/img/icon-minus.png');
}

#main ul.images {
  list-style: none;
}

#main ul.images li {
  margin-left: 0;
}

.images li {
  background: #f5f2ff;
  float: left;
  margin: 0 10px 10px 0;
  padding: 5px;
  border: solid 1px #a6c8ee;
  min-width: 170px;
  position: relative;
}

#media .images li {
  min-width: 0;
}

.images li.default {
  border-color: #666; 
}

.images li.last {
  margin-right: 0;
}

.images img {
  display: block;
  margin: 0 0 7px 0;
}

.images input.pos {
  border: 1px solid #777;  
  width: 20px !important; height: 20px !important;
  position: absolute;
  top: 10px; right: 10px;
  line-height: 20px !important;
  padding: 0;
  margin: 0;
  text-align: center;
}

.corner {
  background: url('/res/img/corners.png') no-repeat 0 0;
  width: 15px;
  height: 15px;
  position: absolute;
}

.corner.tl {
  top: 0; left: 0;
}

.corner.tr {
  background-position: -15px 0;
  top: 0; right: 0;
}

.corner.bl {
  background-position: -30px 100%;
  bottom: 0; left: 0;
}

.corner.br {
  background-position: -45px 100%;
  bottom: 0; right: 0;
}

.line {
  border-bottom: 1px solid #ccc;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1%;
  clear: both;
}

.controls {
  background: #00ffff;
  line-height: 33px;
  margin: 0 0 20px 0;
  padding: 3px 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -khtml-border-radius: 10px;  
}


/* === LAYOUT ========================================= */

#screen {
  background: url('/res/img/bgr-body.png') repeat-x 0 0 #fff;
  position: relative;
  padding: 20px;
  padding-top: 180px;
  min-width: 960px;  
  text-align: left;
}

#content {
  background: url('/res/img/bgr-content.png') repeat-y 80% 0; 
}

#content.no-right {
  background: none;
}

#main {
  width: 80%;
  float: left;
}

#content.no-right #main {
  width: 100%;
}

#main .cont {
  padding: 0 20px 0 0;
}

#content.no-right #main .cont {
  padding-right: 0;
}

#right {
  width: 20%;
  float: right;
  color: #888;
}

#right .cont {
  padding: 0 0 0 20px; 
}


/* === HEADER ========================================= */

#header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 117px;
  color: #b7b7b7;  
}

#header .cont {
  padding: 20px;
}

#logo, #logo span {
  width: 87px; height: 21px;
  position: absolute;
  display: block;
  top: 0;
  overflow: hidden;
}

#logo {
  top: 28px; right: 20px;
}

#logo span {
  background: url('/res/img/logo.png') no-repeat 0 0;
}

#logo a span {
  cursor: pointer;
}

#title {
  float: left;
  width: 100%;
}

#title h2 {
  font-size: 2.2em;
  text-transform: uppercase;
  float: left;
  margin: 0 20px 0 0;
  line-height: 1em;
}

#title h2,
#title a {
  color: #fff;
  text-decoration: none;
}

#title a:hover {
  /* color: #00ffff; */
}

#title p {
  line-height: 2.2em;
}

#userinfo, 
#topmenu { 
  position: absolute;
  top: -27px;
  color: #666;
}

#userinfo {
  text-align: right;
  right: 20px;
}

#topmenu, 
#topmenu a { color: #666; }
#topmenu a:hover { color: #999; }
#topmenu a.set { color: #297bd6; }

#clock {
  position: absolute;
  top: 80px;
  right: 20px;
  color: #999;
}

/* === MENU =========================================== */

#menu {
  position: absolute;
  top: 73px; left: 20px;  
  margin: 0; padding: 0;
  width: 100%; height: 37px; 
}

#menu li {
  width: 111px; height: 100%;
  list-style: none;
  margin: 0 2px 0 0; padding: 0;
  float: left;
}

#menu li a {
  background: url('/res/img/btn-menu.png') no-repeat 0 0;
  background-position: 0 -37px;
  position: relative;
  width: 100%; height: 100%;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 37px;
}

#menu li a:hover,
#menu li.set a {
  background-position: 0 0;
}
  
  
/* === FOOTER ========================================= */

#footer {
  margin: 10px 0 0 0;
  color: #999;
  text-align: center;
}

#footer a {
  color: #999;
}


/* === PAGES ========================================== */

  /* ROOT */


/* === OTHERS ========================================= */

.links {
  margin: 0 0 1.8em 0;
}

.links li {
  margin-bottom: .8em;
}

/* Tabs */

#tabs {
  background: #ccc;
  border-top-left-radius: 10px;  
  border-top-right-radius: 10px;
  -moz-border-top-left-radius: 10px;
  -moz-border-top-right-radius: 10px;
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -khtml-border-top-left-radius: 10px;  
  -khtml-border-top-right-radius: 10px;  
}

#tabs a {
  color: #666;
  height: 40px;
  line-height: 40px;
  display: block;
  float: left;
  width: 111px;
  text-align: center;
  margin: 0 2px 0 0; 
  text-decoration: none; 
  border-top-left-radius: 10px;  
  border-top-right-radius: 10px;
  -moz-border-top-left-radius: 10px;
  -moz-border-top-right-radius: 10px;
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -khtml-border-top-left-radius: 10px;  
  -khtml-border-top-right-radius: 10px;    
  /* background: #eee; */
}

#tabs .fright a {
  margin: 0 0 0 2px; 
}

#tabs a.set,
#tabs a:hover {
  color: #297bd6;    
  background: #f9f9f9;  
}

/* MEDIA LIBRARY */
.imagepreview {
  margin: 0 10px 0 0;
}

.code {
  border: 1px dashed #ccc;
  background: #f9f9f9;
  padding: 5px;
  margin: 10px 0;
}

.align.set {
  font-weight: bold;
}

.align {
  width: 30px; height: 30px;
  overflow: hidden;
  background: url('/res/img/icon-align.png');
  text-indent: -9999px;
  float: left;
  margin: 0 5px 0 0;
}

.align.set, .align:hover { background-position: 0 -30px; }
.align.aleft { background-position: -30px 0; }
.align.aleft.set, .align.aleft:hover { background-position: -30px -30px; }
.align.aright, .align.aright:hover { background-position: -60px 0; }
.align.aright.set, .align.aright:hover { background-position: -60px -30px; }


/* PAGE NAV STRIP */

.nav,
#paginator {
  background: #e6e6e6;  
  padding: 5px 10px;
  margin: 0 0 10px 0;
}

#paginator a, 
#paginator span, 
#paginator strong {
  margin: 0 .5em 0 0;
}

#paginator strong {
  color: #333;
}

/* AJAX */

#ajax-spinner {
  position: fixed;
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
  background: url('/res/img/ajax-spinner.gif') no-repeat 50% 50% transparent;
  padding: 13px;
  font-size: 0;
  width: 50px; height: 50px;
  display: none;
}
