/* Fixed Width Theme - simple overlay for standard theme. */

/* First, some CSS that will be migrated to core after a trial in fixed width.
   Once migrated to core it will load first, hence placing it first here. */

/* wiki content width control
---------------------------------------------------------------------- */
.wiki-content .table-wrap {
    overflow: auto;
}
.wiki-content .table-wrap table {
    margin: 5px 1px;
}
.wiki-content p {
    word-wrap: break-word;
}
.panel .codeContent {
    max-width: 100%;
    overflow: auto;
}
.panel .codeContent pre {
    overflow: visible;
}

.image-wrap {
    display:inline-block;
    overflow-y: hidden;
    overflow-x:auto;
    max-width:100%;
}

/* otherwise webkit makes a total hash of personal spaces */
.wiki-content table.tableview,
table.sectionMacro {
    clear: both; 
}

/* ...end of CSS that will be migrated to core. CSS from here on is theme-specific */

/* theme layout and basic colour changes
---------------------------------------------------------------------- */
body {
    background: #d5d5d5 url("gradient-background.gif") 50% 0 repeat-y;
}

#page {
    text-align: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.content-preview #preview-header,
.content-preview #content {
    padding: 18px 18px 0 18px;
}

#full-height-container {
    background: #fff;
    margin: 0 auto;
    width: 980px;
    text-align: left;
    display: block;
}

.editor-fullheight #savebar-container {
    width: 980px;
    left: auto;
}

.contenteditor .active-preview #main-header {
    padding: 15px 34px 0 0;
}

.contenteditor .active-preview #savebar-container {
    margin-left: -34px;
}

/* note: sidebar.js adjusts further. This sets minimum/baseline. */
.has-personal-sidebar #content {
    min-height: 800px;
}

.fixedwidth #main {
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    border: 0;
    margin: 0;
    min-height: 88%;
    padding: 15px 34px 2em 34px;
    
}

.content-preview #main {
    padding: 0 0 10px 0;
}

.fixedwidth.contenteditor #main.active-richtext {
    padding: 0;
}

#header {
    line-height: 34px;
    min-height: 34px;
    padding: 0 34px;
}

#breadcrumbs {
    line-height:1.3;
    padding: 9px 0 7px 0;
    overflow: visible;
}

.contenteditor #full-height-container #header ol {
    padding: 7px 0;
}

#breadcrumbs li {
    white-space: normal; /* otherwise we get a scrollbar on long links */
    word-wrap: break-word; /* get long, unbroken words to break to new line */
    background-position: 3px 5px;
    margin-bottom: 3px;
}

#header .quick-nav-drop-down {
    right: 34px;
}

#header .quick-nav-drop-down .ajs-dropdown {
    border-top-style: solid;
    border-top-width: 1px;
}

#header #header-menu-bar .ajs-drop-down {
    margin-top: 2px !important;
}

#header .ajs-menu-bar li.ajs-menu-item.opened {
    padding-bottom: 2px;
}

#header-menu-bar .ajs-menu-title {
    -moz-border-radius-topright: 5px;
    -moz-border-radius-topleft: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

#header-menu-bar {
    margin-top: 4px;
}

#navigation {
    margin-top: 1px;
}

#navigation .ajs-menu-bar {
    margin-top: 0;
}

#footer {
    background: transparent; /* clear default colour */
    margin: 0;
}

#footer-warning {
    margin: 0.5em 0; /* lift clear of footer */
}

#footer #poweredby {
    background: #fff;
    border: 0;
    color:#666666;
}

/* don't change login page */
.login #full-height-container {
    background: #f0f0f0;
    border: 0;
    color: #000;
    width: 100%;
}

/* popup window adjustments */
body.popup-window, body.mce-popup, body.mceContentBody, body.content-preview {
    background: #fff;
}

.popup-window #full-height-container {
    width: 100%;    
}

.mce-popup h1, .mce-popup h2 {
    margin: 0;
    padding: 10px;
}

.popup-window #main {
    padding: 10px;
}

/* page headings and titles*/

h1.pagetitle {
    word-wrap: break-word;
    line-height: 1.2;
    padding: 0;
    width: auto;
}

.sectionMacro,
.panelMacro {
    margin: 1em 0;
}

ul.alternate {
    list-style-type: square;
}

/* remove incorrect margin on blogs page */
.has-sidebar .wiki-content {
    margin-right: 1em;
}

.has-blog-sidebar .wiki-content {
    margin-right: 1em;
    margin-top: 1em;
}

#main .quick-search-query {
    width: 22.5em;
}

/* panels inside content tables should take the table's spacing
   may need to narrow the table selector to table.sectionMacro */
.wiki-content table .panel {
    margin: 0;
}

.wiki-content .table-wrap td.confluenceTd,
.wiki-content .table-wrap th.confluenceTh {
    padding-right:17px;
}
.wiki-content td.confluenceTd,
.wiki-content th.confluenceTh {
    padding-right:17px;
}

table.blogcalendar .calendarhead {
    letter-spacing: 0;    
}

/* keep comments from going nuts */
#full-height-container .has-personal-sidebar #content .pageSection {
    margin-right: 0;
    padding: 0;
}
#comments-section .comment  {
    margin-right: 0;
}

/* attachment page table */
table.attachments td.comment,
table.attachments td.attachment-actions {
    white-space: normal;
    vertical-align: top;
    padding-left: 0;
    padding-right: 5px;
}
table.attachments td.attachment-actions {
    width: 18%;
}
table.attachments td.attachment-actions ul {
    margin-left: 0;
    padding-left: 0.5em;
}
table.attachments td.attachment-actions ul li {
    display: inline-block;
    border-color: #ccc;
    padding-left: 0.5em;
    margin-bottom: 0.25em;
}
table.attachments td.attachment-actions ul li.first {
    padding-left: 0;
}
table.attachments td.attachment-actions ul li a {
    white-space: nowrap;
}

/* sidebars
---------------------------------------------------------------------- */

.has-personal-sidebar #content,
.has-personal-sidebar #content.sidebar-collapsed {
    margin-right: 0;
}

#sidebar {
    margin-top: 50px;
}

#personal-info-sidebar {
    margin: 65px -34px 17px 34px;
    background-color: #f0f0f0;
    clear: both;
}

.view-blog-post #personal-info-sidebar {
    margin-top: 47px;
}

#personal-info-sidebar .sidebar-content {
    padding: 17px 25px 18px 17px;
}

#main #personal-info-sidebar.collapsed {
    position: absolute;
    right: 0;
    top: 165px;
    margin: 0;
    width: 17px;
    padding: 0;
}

#personal-info-sidebar a.sidebar-collapse {
    width: 17px;
    background-position: 50% 50%;
    background-color: #ddd;
}

#personal-info-sidebar.collapsed a.sidebar-collapse {
    margin-right: 0;
}

.blog-post-listing .blogHeading {
    padding-bottom: 0;    
}

.blog-post-listing .endsection{
    padding-top: 0;
}

/* space admin pages
---------------------------------------------------------------------- */

#space-admin-body,
#space-admin-body table {
    background: #fff;
}
#space-admin-body {
    width: 750px;
    padding-right: 0;
}

#content.view-space-administration {
    margin-left: -10px;
}

#space-admin-body td,
#space-admin-body th {
    font-size: 12px;
    padding-left: 0.1em;
    padding-right: 0.1em;
}

#space-admin-body table,
.space-administration table {
    max-width: 730px !important;
    font-size: 12px;
    margin-right: 0;
}

#uPermissionsTable td {
    max-width: 100px;
    min-height: 30px;
}
#uPermissionsTable td.permissionCell {
    min-height: 40px;
    vertical-align: top;
}

.space .monospaceInput {
    max-width: 645px;
}

.space #previewpane {
    background: #fff;
    margin: 0;
}

.has-sidebar #space-admin-body,
.has-sidebar #space-admin-body table {
    max-width: 480px;
}

#space-admin-menu,
#space-advanced-menu {
    white-space: normal; /* particularly for i18n */
    width: 180px;
}

/* error pages
---------------------------------------------------------------------- */
/* 404 inserts duplicate full-height-container - undo the damage. */
#main #full-height-container {
    width: 100% !important;
}

/* heading, font size and spacing changes
---------------------------------------------------------------------- */

body, p, td, table, th, .bodytext, .stepfield, .wiki-content, .wiki-content p, .wiki-content table, .wiki-content tr, .wiki-content td, .wiki-content th, .wiki-content ol, .wiki-content ul, .wiki-content li, h4.author {
    font-size: 14px; /* zomg px! controversial? maybe. but font sizes are very busted. */
}

h1.pagetitle { font-size: 26px; }
#toolbar #format-dropdown .format-h1 a, .wiki-content h1 { font-size: 26px; }
#toolbar #format-dropdown .format-h2 a, .wiki-content h2 { font-size: 23px; }
#toolbar #format-dropdown .format-h3 a, .wiki-content h3 { font-size: 21px; }
#toolbar #format-dropdown .format-h4 a, .wiki-content h4 { font-size: 18px; }
#toolbar #format-dropdown .format-h5 a, .wiki-content h5 { font-size: 16px; }
#toolbar #format-dropdown .format-h6 a, .wiki-content h6 { font-size: 14px; }


.wiki-content, .wiki-content p, .wiki-content table, .wiki-content th, .wiki-content td, .wiki-content li, .wiki-content dt, .wiki-content dd, .wiki-content span, .wiki-content div, h4.author {
    color: #222;
}

.wiki-content p {
    margin: 17px 0;
}

.wiki-content, .wiki-content p, .wiki-content table, .wiki-content tr, .wiki-content td, .wiki-content th, .wiki-content ol, .wiki-content ul, .wiki-content li {
    line-height: 1.4;
}

.wiki-content {
    margin: 30px 0 2em 0;
}

/* some pages double up, so remove the space on the inner. */
.wiki-content .wiki-content {
    margin: 0;
}

.comment-body .wiki-content,
.mceContentBody {
    margin: 0;
}

.wiki-content td.confluenceTd,
.wiki-content th.confluenceTh {
    padding-left: 0;
    margin-left: 0;
}

.wiki-content ul, .wiki-content ol {
    display: block;
    padding-left: 34px;
} 
.wiki-content .results-container ul {
    padding-left: 0;
}

.wiki-content .plugin_pagetree ul {
    padding: 0 0 0 1em;
}

.tabletitle,
.recently-updated-concise h4.sub-heading {
    border-width: 0 0 1px 0;
    border-style: solid;
    font-size:12pt;
    padding-bottom: 2px;  
}

.page-metadata  {
    font-size:0.8em;
    margin: 3px 0 0 0;
}

/* get rid of header logos
---------------------------------------------------------------------- */
h1 img.logo {
    display: none;
}

/* dashboard
---------------------------------------------------------------------- */
table.dashboard td.left {
    padding-right:20px;
}

/* this is why you should never use presentational class names */
.dashboard .padded {
    padding: 0;
}

/* Gadget fixes
---------------------------------------------------------------------- */
/* Since the gadget doesn't have a #main div */
body.page-gadget {
    background: transparent none repeat scroll 0 0;
}

/* We don't want a min-height */
body.page-gadget #content {
    min-height: inherit;
}
