/* wManage 4.2 color scheme */
body .navbar .brand {
    text-indent: -9999px;
    overflow: hidden;
    background: transparent url(../img/logo.png) no-repeat 50% 50%;
    width: 140px;
    height: 20px;
}
body .navbar-inner {
    background: #0a3d4d;
}
body .navbar-inner .navbar-search .search-query {
    background: #476e7a;
    line-height: normal;
}
body .navbar-inner .navbar-search .search-query:focus {
    background: #fff;
}
body .navbar .divider-vertical {
    background: #062d39;
    border-right: 1px solid #0f4a5d;
}
body .navbar .nav a {
    border-left: 1px solid #0a3d4d;
    border-right: 1px solid #0a3d4d;
}
body .navbar .nav a:hover {
    border-left: 1px solid #062d39;
    border-right: 1px solid #0f4a5d;
}
body .navbar .nav .active > a, 
body .navbar .nav .active > a:hover {
    background: #3d6b7a;
    border-left: 1px solid #062d39;
    border-right: 1px solid #0f4a5d;
}
body .navbar .dropdown a,
body .navbar .dropdown .active a,
body .navbar .dropdown a:hover {
    border-left: none;
    border-right: none;
}
body .table thead th {
    background: #e0dede;
}
/* Notifications */
#wmanage-notifications {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    
    display: block;
    width: 100%;
}
#wmanage-notifications .wmanage-notification {
    position: relative;
    background: #fff;
    border: 1px solid #000;
    padding: 4px 4px 4px 24px;
    line-height: 16px;
    margin: 0 0 -1px 0;
}
#wmanage-notifications .wmanage-notification .wmanage-notification-close {
    position: absolute;
    right: 4px;
    top: 4px;
    background: transparent url("img/cross-small.png") no-repeat 0 0;
    display: block;
    width: 16px;
    height: 16px;
    text-indent: -9999px;
    overflow: hidden;
}
#wmanage-notifications .wmanage-notification-success {
    background: #dfd url("img/tick-button.png") no-repeat 4px 4px;
    border: 1px solid #696;
    color: #030;
}
#wmanage-notifications .wmanage-notification-notice {
    background: #ffd url("img/exclamation-button.png") no-repeat 4px 4px;
    border: 1px solid #996;
    color: #330;
}
#wmanage-notifications .wmanage-notification-error {
    background: #fdd url("img/cross-button.png") no-repeat 4px 4px;
    border: 1px solid #966;
    color: #300;
}
/* General */
#wrap {
    margin-top: 80px;
}
.input-append .max, .input-prepend .max {
    width: 80%;
}
.max, .ui-autolist {
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
}
input.max {
    height: 28px;
}

*::selection {
    background: #000;
    color: #fff;
}
input[lang=fi] {
    background-image: url(../img/flags/fi.png);
    background-repeat: no-repeat;
    background-position: 5px 7px;
    text-indent: 20px;
}
input[lang=en] {
    background-image: url(../img/flags/gb.png);
    background-repeat: no-repeat;
    background-position: 5px 7px;
    text-indent: 20px;
}
input[lang=se] {
    background-image: url(../img/flags/se.png);
    background-repeat: no-repeat;
    background-position: 5px 7px;
    text-indent: 20px;
}
input[lang=ru] {
    background-image: url(../img/flags/ru.png);
    background-repeat: no-repeat;
    background-position: 5px 7px;
    text-indent: 20px;
}

.form-controls {
    padding: 15px 15px 0 0;
}

#wmanage-quicksearch-results {
    display: none;
    position: absolute;
    left: 10px;
    top: 32px;
    background: #fff;
    min-width: 400px;
    max-height: 600px;
    overflow: auto;
    padding: 10px;
    z-index: 50;
    box-shadow: #ccc 0 5px 8px;
    border-radius: 0 0 10px 10px;
}

/* Ribbons */
.wmanage-ribbon {
    display: block;
    height: 80px;
    border: 1px solid #ddd;
    margin: 0 0 10px 0;
    border-radius: 7px;
}
.wmanage-ribbon dl.wmanage-ribbon-cell {
    display: block;
    float: left;
    height: 80px;
    overflow: visible;
    padding: 0 15px 0 15px;
    position: relative;
    margin: 0;
    border-radius: 7px;
    box-shadow: #ddd 3px 0 4px;
}
.wmanage-ribbon dl.wmanage-ribbon-cell dt {
    display: block;
    font-size: 20px;
    font-weight: normal;
    color: #aaa;
    padding: 0;
    margin: 0;
    height: 40px;
    line-height: 40px;
    text-align: center;
    width: 100%;
}
.wmanage-ribbon dl.wmanage-ribbon-cell dd {
    display: block;
    padding: 0;
    margin: 0;
    height: 40px;
    line-height: 30px;
    color: #333;
    font-size: 20px;
    width: 100%;
    text-align: left;
}
.wmanage-ribbon dl.wmanage-ribbon-cell dd select {
    border: none;
    background: transparent;
    font-size: 100%;
    margin: 0;
    padding: 0;
}

/* Sorters */
.wmanage-sort {
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 100% 50%;
    background-image: url(img/sort_default_bg.png);
    padding-right: 12px;
}
.wmanage-sort-asc {
    background-image: url(img/sort_asc_bg.png);
}
.wmanage-sort-desc {
    background-image: url(img/sort_desc_bg.png);
}

/* Tables */
table.table-striped td { vertical-align: middle; }

table.users .id { width: 5%; text-align: center; }
table.users .name { width: 40%; text-align: left; }
table.users .company { width: 35%; text-align: left; }

table.groups .id { width: 5%; text-align: center; }
table.groups .name { text-align: left; }

table .actions { width: 10%; text-align: right; }
table.collection .actions { width: 15%; }


/* CMS */
iframe#cmsview {
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    z-index: 5;
    border: none;
    background: #fff;
}
div#cmstree {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px;
    overflow: auto;
    overflow-x: hidden;
    z-index: 3;
    border-right: 1px dotted #999;
}
div.full-tree {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}
div#cmstree .ui-resizable-s {
    bottom: 0;
}

/* Legacy support */
iframe#legacy {
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    z-index: 5;
    border: none;
    background: #fff;
}


/* Subnav */
.subnav {
  width: 100%;
  height: 36px;
  overflow: visible !important;
  background-color: #eeeeee; /* Old browsers */
  background-repeat: repeat-x; /* Repeat the gradient */
  background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
  background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
  background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
  background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
  border: 1px solid #e5e5e5;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.subnav .nav {
  margin-bottom: 0;
}
.subnav .nav > li > a {
  margin: 0;
  padding-top:    11px;
  padding-bottom: 11px;
  border-left: 1px solid #f5f5f5;
  border-right: 1px solid #e5e5e5;
  -webkit-border-radius: 0;
     -moz-border-radius: 0;
          border-radius: 0;
}
.subnav .nav > .active > a,
.subnav .nav > .active > a:hover {
  padding-left: 13px;
  color: #777;
  background-color: #e9e9e9;
  border-right-color: #ddd;
  border-left: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
     -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
          box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
}
.subnav .nav > .active > a .caret,
.subnav .nav > .active > a:hover .caret {
  border-top-color: #777;
}
.subnav .nav > li:first-child > a,
.subnav .nav > li:first-child > a:hover {
  border-left: 0;
  padding-left: 12px;
  -webkit-border-radius: 4px 0 0 4px;
     -moz-border-radius: 4px 0 0 4px;
          border-radius: 4px 0 0 4px;
}
.subnav .nav > li:last-child > a {
  border-right: 0;
}
.subnav .dropdown-menu {
  -webkit-border-radius: 0 0 4px 4px;
     -moz-border-radius: 0 0 4px 4px;
          border-radius: 0 0 4px 4px;
}

.navbar #wmanage-quicksearch { float: left !important; }

/* Fixed submit area */
.tab-content .form-horizontal {
    margin-bottom: 100px;
}
.tab-content .form-horizontal .form-actions {
    position: fixed;
    left: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
}
.nav-tabs a.modified {
    color: #900;
    font-weight: bold;
}

#revision-publish {
    display: none;
}

tr.translation-local td {
    background: #fff;
}
tr.translation-global td {
    background: #ddd;
}

#copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 35px;
    background: #0a3d4d;
    color: #fff;
    text-align: center;
}
#copyright a { color: #fff; }
#copyright a:hover { color: #ccf; }

/* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
/*@media (min-width: 980px) {*/
    .subnav-fixed {
        overflow: visible !important;
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
        border-color: #d5d5d5;
        border-width: 0 0 1px; /* drop the border on the fixed edges */
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
        -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
        box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
        filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
    }
    .subnav-fixed .nav {
        margin: 0 auto;
        padding: 0 1px;
        border-bottom: 1px solid #E5E5E5;
    }
    .subnav .nav > li:first-child > a,
    .subnav .nav > li:first-child > a:hover {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }
/*}*/

@media (max-width: 499px) {
    #wmanage-quicksearch { display: none; }
}
@media (max-width: 979px) {
    .subnav-fixed {
        top: auto;
    }
    #copyright {
        position: relative;
        background: transparent;
        color: #000;
    }
    #copyright a { color: #000; }
    #copyright a:hover { color: #003; }
    .navbar {
        position: relative;
        z-index: 1030;
        margin-bottom: 0;
    }
    .navbar .navbar-search {
        border: none;
        padding: 0;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        margin: 6px 0;
    }
    #wrap {
        margin-top: 0;
    }
}