/**
 * Administration Layout
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 *
 * @category  phpMyFAQ
 * @package   Layout
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @copyright 2009-2012 phpMyFAQ Team
 * @license   http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License Version 1.1
 * @link      http://www.phpmyfaq.de
 * @since     2009-08-05
 */

/* extended HTML5 reset */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,small, strong, sub, sup, 
var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td, 
article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, 
section, summary, time, mark, audio, video {
    margin: 0; padding: 0; border: 0; outline:0; font-size:100%; vertical-align: baseline;
    background: transparent;
}                  

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block;
}

nav ul { 
    list-style: none; }
blockquote, q { 
    quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { 
    content: ''; content: none; }
a { 
    margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
ins { 
    background-color: #ff9; color: #000; text-decoration: none; }
mark { 
    background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { 
    text-decoration: line-through; }
abbr[title], dfn[title] { 
    border-bottom: 1px dotted; cursor: help; }
table { 
    border-collapse: collapse; border-spacing: 0; }
hr { 
    display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
input, select { 
    vertical-align: middle; }
/* end of reset part */

/* basic styles */
body {  
    font: 13px/1.231 sans-serif; *font-size: small; background: #f0f0f0;
}

select, input, textarea, button {  
    font: 99% sans-serif; }
pre, code, kbd, samp {  
    font-family: monospace, sans-serif; }
body, select, input, textarea {  
    color: #444; }
h1,h2,h3,h4,h5,h6 {  
    font-weight: bold; }
h1 {  
    font-size: 3.571em; }
h2 {  
    font-size: 1.571em; }
h3 {  
    font-size: 1.429em; }
h4 {  
    font-size: 1.286em; }
h5 {  
    font-size: 1.143em; }
h6 {  
    font-size: 1em; }
html {  
    overflow-y: scroll; }
a:hover, a:active {  
    outline: none; }
a, a:active, a:visited {  
    color: #607890; }
a:hover {  
    color: #036; }
ul, ol {  
    margin-left: 1.8em; }
ol {  
    list-style-type: decimal; }
small {  
    font-size: 85%; }
strong, th { font-weight: bold; }
td, td img {  
    vertical-align: top; } 
sub {  
    vertical-align: sub; font-size: smaller; }
sup {  
    vertical-align: super; font-size: smaller; }
pre {  
    padding: 5px; white-space: pre; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word;
    border: 1px dashed #000000; }
textarea {  
    overflow: auto; }
.ie6 legend, .ie7 legend {  
    margin-left: -7px; }
input[type="radio"] {  
    vertical-align: text-bottom; }
input[type="checkbox"] {  
    vertical-align: bottom; }
.ie7 input[type="checkbox"] {  
    vertical-align: baseline; }
.ie6 input {  
    vertical-align: text-bottom; }
label, input[type=button], input[type=submit], button {  
    cursor: pointer; }
button, input, select, textarea {  
    margin: 0; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { 
      border-radius: 1px;
    -moz-box-shadow: 0px 0px 5px red; 
 -webkit-box-shadow: 0px 0px 5px red; 
         box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { 
    background-color: #f0dddd; }
::-moz-selection{ 
    background: #F67600; color: #fff; text-shadow: none; }
::selection { 
    background: #F67600; color: #fff; text-shadow: none; }
a:link { 
    -webkit-tap-highlight-color: #F67600; }
button { 
    width: auto; overflow: visible; }
.ie7 img { 
    -ms-interpolation-mode: bicubic; }
.ir { 
    display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.hidden { 
    display: none; visibility: hidden; } 
.visuallyhidden { 
    position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }
.invisible { 
    visibility: hidden; }
.clearfix:after  { 
    content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { 
    zoom: 1; }

/* phpMyFAQ layout */
body {
    margin: 0 auto; font: 13px/22px Helvetica, Arial, sans-serif; background-color: #F0F0F0; }
body.mceContentBody {
    margin: 5px; background: #FFF; }
code {
    display: block; font-size: 16px; background-color: black; color: white; padding: 10px; width: 100%;
    margin-bottom: 22px; }

/* Header */
#header {
    width: 980px; margin: 0 auto; padding: 2.5em 0 0 0; }
#header h1 {
    font-size: 48px; padding-top: 5px; line-height: .6; }
#header h1 a:link, header h1 a:visited {
    color: #444; display: block; margin: 0; text-decoration: none; }
#header h1 a:hover, header h1 a:active {
    background: none; text-shadow: none; }
#header #loginBox {
    float: right; top: 0; width: 215px; margin-top: -2.5em; background: #F67600; color: #fff;
    border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; }
#header #languageSelection {
    text-align: center; padding: 5px; }
#header #languageSelection a:link, #header #languageSelection a:visited {
    color: #fff; }

/* Navigation */
.i8 nav {
    position: absolute; left: 0; top: 108px; width: 100%; background: url(../images/nav_background.png); }
nav {
    position: absolute; left: 0; top: 108px; width: 100%; overflow: hidden; background: url(../images/nav_background.png); }
nav ul {
    margin: 0 auto; width: 980px; list-style: none; }
nav ul li {
    float: left; }
nav ul li a, nav ul li a:visited {
    display: block; padding-right: 15px; padding-left: 15px; font: 16px/44px Helvetica, Arial, sans-serif; 
    text-align: center; text-decoration: none; color: #F67600; }
nav ul li a:hover {
    color: #fff; }
nav ul li.active a {
    background-color: #333; }
nav ul li a.logout {
    color: #f71e1b; }

/* Categories */
#categories, #worklog, #bugreport {
    width: 180px; background: #f0f0f0 url(../images/category_background.png) repeat-x; margin-bottom: 15px;
    border: 1px solid #d7d7d7; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#categories h3, #worklog h3, #bugreport h3 {
    padding-top: 5px; padding-left: 5px; padding-bottom: 5px; font-size: 16px; }
#categories ul {
    margin: 0 1px 0 1px; list-style: none outside none; padding: 0; }
#categories ul li {
    }
#categories ul li a {
    padding-left: 5px; line-height: 30px; text-decoration: none; display: block; color: #222; }
#categories ul li a:hover {
    color: #F67600; }
#categories a.active {
    background-color: #fff; font-weight: bold; }
#categories .subcat li a {
    padding-left: 10px; }
#categories .subcat li li a {
    padding-left: 15px; }
#categories .subcat .active {
    }
#bugreport p {
    padding: 5px;
    }

/* Content */
#content {
    display: table; width: 980px; margin: 88px auto 0; }
#leftContent {
    display: table-cell; width: 180px; vertical-align: top; padding-top: 11px; }
#mainContent {
    display: table-cell; width: 800px; vertical-align: top; padding: 11px 22px 0; }
#mainContent section h2, #mainContent section h3 {
    display: block; margin-bottom: 11px; }
#mainContent p, ul, ol, table {
    padding-bottom: 11px; }
#mainContent p.error { 
    margin: 10px auto; padding: 10px; background-color: #f97c7c; color: #222; border-radius: 5px; 
    -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#mainContent p.success { 
    margin: 10px auto; padding: 10px; background-color: #7dfd77; color: #222; border-radius: 5px; 
    -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#mainContent ul.adminAttachments {
    margin-left: 190px; }
    
/* phpMyFAQ forms */
#mainContent form p {
    display: table; margin-bottom: 11px; padding: 0 11px; }
#mainContent form label {
    display: table-cell; width: 150px; padding-right: 10px; text-align: right; font-weight: bold;
    vertical-align: top; }
#mainContent form label.config {
    width: 250px; }
#mainContent form label.small {
    width: 100px; }
#mainContent form input[type="text"], #mainContent form input[type="email"], #mainContent form input[type="url"],
#mainContent form input[type="search"], #mainContent form input[type="password"] {
    display: table-cell; height: 20px; border: 1px solid #d7d7d7; font-size: 14px; border-radius: 5px;
    -moz-border-radius: 5px; -webkit-border-radius: 5px; padding-left: 4px; }
#mainContent form input[readonly] {
    color: #d3d3d3; }
#mainContent form select {
    display: table-cell; border: 1px solid #d7d7d7; border-radius: 5px; -moz-border-radius: 5px;
    -webkit-border-radius: 5px; }
#mainContent form textarea {
    display: table-cell; border: 1px solid #d7d7d7; font-size: 14px; border-radius: 5px; overflow: auto;
    padding-left: 4px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#mainContent form input[type="submit"] {
    }
#mainContent form input[type="submit"].submit, #mainContent form input[type="submit"].reset  {
    margin-left: 160px; }
#mainContent fieldset {
    border: 1px solid #d7d7d7; font-size: 14px; margin-right: 10px; padding: 5px; border-radius: 5px;
    -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#mainContent legend {
    padding: 5px; }
    
/* Tables */
#mainContent table.list {
    border-collapse: collapse; margin-bottom: 22px; }
#mainContent table.list th {
    padding: 8px; background-color: #333; border-top: 2px solid #222; border-bottom: 2px solid #f0f0f0; color: #F67600; 
    font-size: 14px; text-align: left; word-wrap: normal; }
#mainContent table.list th a {
    text-decoration: none; color: #F67600; float: left; }
#mainContent table.list th a:hover {
    text-decoration: none; color: #FFFFFF; }
#mainContent table.list tr:nth-child(odd) {
    background-color: #fdfdfd; }
#mainContent table.list td { 
    padding: 8px; border-top: 1px solid transparent; border-bottom: 1px solid #333; }

/* User and Group administration */
#userInterface, #groupInterface {
    display: table; width: 750px; }
#userAccounts {
    display: table-cell; width: 225px; vertical-align: top; }
#userDetails {
    display: table-cell; width: 300px; vertical-align: top; }
#userRights {
    display: table-cell; width: 225px; vertical-align: top; }
#groupsAvailable {
    display: table-cell; width: 200px; vertical-align: top; }
#groupMemberships {
    display: table-cell; width: 250px; vertical-align: top; }
#groupDetails {
    display: table-cell; width: 300px; vertical-align: top; }

/* Misc */
/* datePicker CSS definitions */
a.dp-choose-date {
    width: 16px; height: 16px; padding: 0; margin: 5px 3px 0; display: block; text-indent: -2000px; overflow: hidden;
    background: url(../images/calendar.png) no-repeat; float: left; }
a.dp-choose-date.dp-disabled {
    background-position: 0 -20px; cursor: default; }
input.dp-applied {
    width: 140px; float: left; }

/* Footer */
footer {
    position: absolute; left: 0; width: 100%; background: #222; }
footer div {
    display: table; margin: 0 auto; padding: 44px 0; width: 960px; color: #777; }
#copyrightnote {
    color: #fff; margin: auto; text-align: right; padding-right: 10px; }
#copyrightnote a:link, #copyrightnote a:visited {
    color: #F67600; }
#copyrightnote a:hover {
    color: #fff; }

/* print styles */
@media print {
  * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a:after { content: " (" attr(href) ")"; } 
  abbr:after { content: " (" attr(title) ")"; }
  ir a:after { content: ""; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; }
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
}

@media all and (orientation:portrait) { 
  /* Style adjustments for portrait mode goes here */
}

@media all and (orientation:landscape) { 
  /* Style adjustments for landscape mode goes here */
}