/* (c) 2014-2019 Business Collaborator Ltd */
/* General */

body.app {
    padding-top: 70px; /* For Fixed Navbar */
    padding-bottom: 60px; /* For fixed pagination footer */
}

body.app.brava {
    padding-bottom: 0; /* No pagination footer for Brava */
}

/* Important - defines the fixed heights of portals (in non-mobile view)
   by setting portal widget config 'tab-style' to
       fixed-height
   Height sizes can also be specified:
       fixed-height-large
       fixed-height-small
   fixed-height-large is the default
   no fixed-height setting will render each portlet in a panel sized to fit it
*/
@media (min-width: 768px) {
    .portal-wrapper.fixed-height .panel .widget {
        overflow-y: auto;
    }

    .portal-wrapper.fixed-height .panel,
    .portal-wrapper.fixed-height.fixed-height-large .panel {
        height: 480px;
    }

    .portal-wrapper.fixed-height.fixed-height-large .panel .widget {
        height: 440px;
    }

    .portal-wrapper.fixed-height.fixed-height-small .panel {
        height: 330px;
    }

    .portal-wrapper.fixed-height.fixed-height-small .panel .widget {
        height: 290px;
    }

    .portal-wrapper.fixed-height.fixed-height-small-x2 .panel {
        height: 680px;
    }

    .portal-wrapper.fixed-height.fixed-height-small-x2 .panel .widget {
        height: 640px;
    }

    .portal-wrapper.fixed-height.fixed-height-xsmall .panel {
        height: 240px;
    }

    .portal-wrapper.fixed-height.fixed-height-xsmall .panel .widget {
        height: 200px;
    }

    .fixed-height-large .hidden-portlet-large,
    .fixed-height-small .hidden-portlet-small,
    .fixed-height-small-x2 .hidden-portlet-small-x2,
    .fixed-height-xsmall .hidden-portlet-xsmall {
        display: none;
    }
}

.portal-wrapper .panel-portlet {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.classification-color-bar {
    height: 15px;
    margin-bottom: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.portal_custom_color {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
    padding-top: 20px;
}

.portal_custom_color .portal_custom_color {
    border: none;
    margin: 0;
    padding: 0;
}

.classification-color-bar ~ div .portal_custom_color {
    border-top: none;
    margin-top: -15px;
}

.classification-color-bar ~ div .portal_custom_color .portal_custom_color {
    margin-top: 0;
}

.portal_custom_color {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
    padding-top: 20px;
}

.portal_custom_color .portal_custom_color {
    border: none;
    margin: 0;
    padding: 0;
}

.classification-color-bar ~ div .portal_custom_color {
    border-top: none;
    margin-top: -15px;
}

.classification-color-bar ~ div .portal_custom_color .portal_custom_color {
    margin-top: 0;
}


/* reduce container and container-fluid padding when on smartphone to maximise space */
@media (max-width: 767px) {
    body.app {
        padding-top: 60px;
    }

    .navbar {
        margin-bottom: 10px;
    }

    .container-fluid .container {
        padding-left: 0px;
        padding-right: 0px;
    }

    .fixed-height-xsmall .hidden-portlet-xsmall {
        display: none;
    }
}


/* reduce container and container-fluid padding when sm or md size */
@media (min-width: 768px) and (max-width:1199px) {
    /* Container should only narrow at lg size - otherwise set it to auto */
    .container {
        width: auto;
    }

    .container-fluid .container {
        padding-left: 0px;
        padding-right: 0px;
    }
}

a.navbar-brand.navbar-brand-logo {
    padding-top: 9px;
    padding-bottom: 9px;
}

/* Changed as Sainsburys are using a custom logo that doesn't need it */
a.navbar-brand.navbar-brand-logo > img.mobile-logo {
    padding-top: 0px;
}

h5.navbar-brand {
    padding: 3px 15px;
    height: 20px;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 0;
}

h4.divider {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 0px 5px 0px;
}

.text-default {
  color: #333333;
}

div.text-center {
    text-align: center;
}

/* ensure popovers have correct cursor - if no href, they don't by default */
a.dynamicpopover {
    cursor: pointer;
}


/* Browser Compatibility */

div.browser-compatibility {
    border: 1px solid #ffde24;
    background-color: #fff8e5;
    padding: 5px 10px 5px 10px;
    color: #888888;
    font-size: 85%;
    margin-bottom: 15px;
    text-align: center;
}

/* Menu */

/* Tweak the dropdown menu separation for touch devices */
.dropdown-menu > li > a {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Location Bar */

.location-bar {
    background-color: white;
    vertical-align: middle;
    margin-bottom: 15px;
}

.location-bar-content {
    clear: left;
}

.btn-heading {
    font-size: 30px;
    color: #337ab7;
    cursor: pointer;
    vertical-align: top;
}

.btn-search {
  background-color: #FFB;
  padding: 0px 5px 0px 5px;
}

.btn-membership {
  color: orange;
}

.btn-membership:hover {
  color: red;
}

.location-bar-controls .btn-group {
    margin-left: 5px;
}

.btn-heading > span.truncate,
.location-context > span.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 1000px;
    vertical-align: middle;
}

.location-menu {
    padding: 10px 0;
    width: 480px;
}

.location-menu a.location-name,
.location-menu span.location-name {
    width: 400px;
    display: block !important;
    float: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 20px 5px 15px;
    clear: none;
}

.location-menu span.location-name {
    color: #777;
}

.location-menu .location-name span {
    margin-right: 5px;
}

.location-menu a.members-indicator {
    width: 50px;
    display: block !important;
    float: left;
    clear: none;
}

.location-menu a.members-indicator {
    color: orange !important;
}

.location-menu a.members-indicator:hover {
    color: red !important;
}

@media (max-width: 320px) {
    .location-bar {
        margin-bottom: 10px;
    }
    .btn-heading {
        font-size: 14px;
    }
    .btn-heading > span.truncate,
    .location-context > span.truncate {
        max-width: 200px;
    }
    .location-menu {
        width: 275px;
    }
    .location-menu a.location-name {
        width: 225px;
    }
    .location-menu a.members-indicator {
        width: 30px;
    }
    .dropdown-menu {

    }

}

@media (min-width: 321px) and (max-width: 767px) {
    .location-bar {
        margin-bottom: 10px;
    }
    .btn-heading {
        font-size: 14px;
    }
    .btn-heading > span.truncate,
    .location-context > span.truncate {
        max-width: 260px;
    }
    .location-menu {
        width: 275px;
    }
    .location-menu a.location-name {
        width: 225px;
    }
    .location-menu a.members-indicator {
        width: 30px;
    }
    .dropdown-menu {

    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .btn-heading {
        font-size: 18px;
    }
    .btn-heading > span.truncate,
    .location-context > span.truncate {
        max-width: 548px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .btn-heading {
        font-size: 24px;
    }
    .btn-heading > span.truncate,
    .location-context > span.truncate {
        max-width: 772px;
    }
}


/* Gantt Key */

ul.icon-key li {
    border-top: 0px solid #DDDDDD;
    list-style-type: none;
    font-size: 0.875em;
}

.nav-link-key {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 0px;
    background: #595959 url(../jquery.gantt/img/icon_sprite.png) !important;
    border: 1px solid #454546;
    vertical-align: top;
}

.nav-link-key-text {
    display: inline-block;
}

ul.icon-key .nav-page-back {
    background-position: 1px 0 !important;
    margin: 0;
}

ul.icon-key .nav-page-next {
    background-position: 1px -16px !important;
}

ul.icon-key .nav-begin {
    background-position: 1px -112px !important;
}

ul.icon-key .nav-prev-week {
    background-position: 1px -128px !important;
}

ul.icon-key .nav-prev-day {
    background-position: 1px -48px !important;
}

ul.icon-key .nav-next-day {
    background-position: 1px -64px !important;
}

ul.icon-key .nav-next-week {
    background-position: 1px -160px !important;
}

ul.icon-key .nav-end {
    background-position: 1px -144px !important;
}

ul.icon-key .nav-zoomOut {
    background-position: 1px -96px !important;
}

ul.icon-key .nav-zoomIn {
    background-position: 1px -80px !important;
}

ul.icon-key .nav-now {
    background-position: 1px -32px !important;
}

/* Intranet */

div.intranet-tile ul,
div.intranet-tile ol {
    padding-left: 0px;
}

div.intranet-tile ul li,
div.intranet-tile ol li {
    list-style-type: none;
}

div.intranet-tile p {
    margin-bottom: 0px;
}

div.intranet-tile {
    min-height: 300px;
}

/* Intranet striped */

div.intranet-tile.intranet-tile-striped ul,
div.intranet-tile.intranet-tile-striped ol {
    margin-left: -15px;
    margin-right: -15px;
}

div.intranet-tile.intranet-tile-striped ul li,
div.intranet-tile.intranet-tile-striped ol li {
    list-style-type: none;
    /* border-top: 1px solid #ddd;*/
    padding: 3px 5px;
}

div.intranet-tile.intranet-tile-striped ul li:nth-child(odd),
div.intranet-tile.intranet-tile-striped ol li:nth-child(odd) {
    background-color: #f0f0f0;
}

div.intranet-tile.intranet-tile-striped {
    padding-bottom: 0;
}


/* Masonry Grid */

.masonryItem {
    width: 23%;
    max-width: 250px;
    border: 1px solid #d0d0d0;
    background-color: #d0d0d0;
    margin-bottom: 15px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
}

/* When the screen is xs, aim to show two columns, rather than 4 */
@media (max-width: 419px) {
    .masonryContainer {
        margin-top: 10px;
    }
    .masonryItem {
        width: 98% !important;
    }
    .masonryItem .listingSelectCheckbox,
    .masonryItem .masonry-menu {
        display: none;
    }
}

@media (min-width: 420px) and (max-width:767px) {
    .masonryContainer {
        margin-top: 10px;
    }
    .masonryItem {
        width: 48% !important;
    }
    .masonryItem .listingSelectCheckbox,
    .masonryItem .masonry-menu {
        display: none;
    }
}

.masonryItem.fluid {
    min-height: 150px;
}

.masonryItem.rigid {
    height: 150px;
}

.masonryItem h5 {
    margin: 0px;
    padding: 5px 5px 5px 5px;
    font-size: 1em;
}

.masonryItem.saved-search {
    border: 1px solid #e0e0e0;
    background-color: #e0e0e0;
}

.masonryItem.folder {
    border: 1px solid #f0f0f0;
    background-color: #f0f0f0;
}

.masonryItem img {
    height: auto;
    max-width: 100%;
}



/* Field values */
dd.field-value {
    border: 1px solid #e0e0e0;
    padding: 5px;
    background-color: #f8f8f8;
    color: #222222;
    min-height: 2em;
    margin-bottom: 10px;
}

div.document-modal-thumbnail {
    margin-bottom: 20px;
    height: 300px;
}

div.document-modal-thumbnail .img-thumbnail {
    max-height: 300px;
}

/* Align modal dialog buttons to the left */
div.modal-footer {
    text-align: left;
}

/* More Info page tabs */

div.tab-content-info {
    padding-top: 15px;
    padding-bottom: 15px;
}

div.tab-content-info #inf_access h2 {
    font-size: 20px;
}


div.access-rights-set-name {
    text-align: center;
}

ul.access-rights-set-actions {
    margin: 0;
    padding: 0;
}
ul.access-rights-set-actions li {
    list-style-type: none;
    text-align: center;
    font-weight: normal;
    font-size: 0.85em;
    color: #777;
}


table.access tr td span.icon-yes,
table.access tr td span.icon-no {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

table.access tr td span.yes,
table.access tr td span.no {
    display: none;
}
table.access tr td span.icon-yes:before {
  content: "\e013";
  color: #3c763d;
}
table.access tr td span.icon-no:before {
  content: "\e014";
  color: #a94442;
}

table.access tr td {
    text-align: center;
}

table.access tr td.member {
    text-align: left;
}

/* Fixes for the version history table in the more info page */

div.versionHistory table tr td table tr.even,
div.versionHistory table tr td table tr.alt,
div.versionHistory table tr td table tr:nth-of-type(even) {
    background: transparent;
}

div.versionHistory table {
    width: 100%;
}

div.versionHistory table tr th {
    border-bottom: 2px solid #dddddd;
}
div.versionHistory table tr td {
    border-bottom: 1px solid #dddddd;
}

div.versionHistory table tr td table tr th {
    border-bottom: 0px;
}

div.versionHistory table tr td table tr td {
    border-bottom: 0px;
}

div.versionHistory table tr td table {
    width: auto;
}

div.versionHistory table tr th,
div.versionHistory table tr td table tr th {
    text-align: left;
}

/* Fixes for the version info table  */

div.versionInfo table tr th {
    border-bottom: 2px solid #dddddd;
}

div.versionInfo table tr td table.generic tr th {
    background-color: #f5f5f5;
    border-bottom: 1px solid #dddddd;
}

div.versionInfo table tr td table.generic tr td {
    border-bottom: 1px solid #dddddd;
}



/* Fixes for the renditions table */

div.renditionsTable table {
    width: 100%;
}

div.renditionsTable table tr th {
    border-bottom: 2px solid #dddddd;
}

div.renditionsTable table tr td {
    border-bottom: 1px solid #dddddd;
}

/* If the cancel is preceded by an input or button, add a margin */
input + #cancel-button, button + #cancel-button {
    margin-left: 15px;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Buttons which should be full width on a mobile */
@media (max-width: 767px) {
    .btn-mobile, .btn-mobile + #cancel-button {
        width: 100%;
        margin: 5px;
    }
}


/* Bootstrap tooltips */

.tooltip.in {
  filter: alpha(opacity=100);
  opacity: 1;
}

.tooltip > .tooltip-inner {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
    text-align: left;
    max-width: 300px;
    white-space: pre-wrap;
}

.tooltip.top > .tooltip-arrow {
    border-top: 5px solid #bce8f1;
}
.tooltip.bottom > .tooltip-arrow {
    border-bottom: 5px solid #bce8f1;
}
.tooltip.left > .tooltip-arrow {
    border-left: 5px solid #bce8f1;
}
.tooltip.right > .tooltip-arrow {
    border-right: 5px solid #bce8f1;
}

.klang-tooltip {
    margin: 0;
    padding: 10px 20px;
}


div.panel-primary div.panel-heading a {
    color: white;
}

/* Forms */

div.main-form-container-ajax h1 {
    display: none;
}

div.main-form-container {
    margin: 10px 0px 10px 0px;
    padding: 25px 15px 25px 15px;
    border: 1px solid #cccccc;
    box-shadow: 0px 0px 3px #aaaaaa;
    /*overflow: auto;*/
}

/* render as h2; increase margin at bottom for gap to form content */
div.main-form-container h1 {
    font-size: 30px;
    margin-bottom: 20px;
}


div.main-form-container label {
    font-weight: normal;
}

div.main-form-container legend.revise_legend {
    display:none;
}

span.type-default {
    color: #cccccc;
}

.popover {
  max-width: inherit;
}

a[data-toggle="popover"] {
    cursor: pointer;
}

table.generic {
  border-spacing: 0;
  border-collapse: collapse;
}

table.generic th,
table.generic td {
    padding: 8px;
    line-height: 1.1;
    vertical-align: top;
}

table.generic th.fieldname,
table.generic th.fieldname a {
    white-space: nowrap;
}


table.generic > tbody > tr:first-child > th {
    border-bottom: 2px solid #ddd;
    vertical-align: bottom;
}


/* non-rich forms */

div.main-form-container h2 {
    background-color: #f5f5f5!important;
    font-size: 1.3em;
    padding: 5px;
    margin-top: 5px;
}

/* Inputs, Selects, Textareas  in forms */
/* For tablets */
@media (max-width:991px) {
    div.main-form-container form table.generic td {
        min-width:155px;
    }
    div.main-form-container form table.generic input[type="text"],
    div.main-form-container form table.generic textarea {
        min-width:150px;
    }
    div.main-form-container div.input-group.ui-metadata-autocomplete input,
    div.main-form-container form table.generic select {
        min-width:100px;
    }
}

/* For small desktops */
@media (min-width: 992px) and (max-width:1279px) {
    div.main-form-container form table.generic td {
        min-width:185px;
    }
    div.main-form-container form table.generic input[type="text"],
    div.main-form-container form table.generic textarea {
        min-width:180px;
    }
    div.main-form-container div.input-group.ui-metadata-autocomplete input,
    div.main-form-container form table.generic select {
        min-width:110px;
    }
}

/* For medium desktops */
@media (min-width: 1280px) and (max-width:1599px) {
    div.main-form-container form table.generic td {
        min-width:225px;
    }
    div.main-form-container form table.generic input[type="text"],
    div.main-form-container form table.generic textarea {
        min-width:220px;
    }
    div.main-form-container div.input-group.ui-metadata-autocomplete input,
    div.main-form-container form table.generic select {
        min-width:125px;
    }
}

/* For large desktops */
@media (min-width: 1600px) and (max-width:1919px) {
    div.main-form-container form table.generic td {
        min-width:255px;
    }
    div.main-form-container form table.generic input[type="text"],
    div.main-form-container form table.generic textarea {
        min-width:250px;
    }
    div.main-form-container div.input-group.ui-metadata-autocomplete input,
    div.main-form-container form table.generic select {
        min-width:150px;
    }
}

/* For very large desktops */
@media (min-width: 1920px) {
    div.main-form-container form table.generic td {
        min-width:305px;
    }
    div.main-form-container form table.generic input[type="text"],
    div.main-form-container form table.generic textarea {
        min-width:300px;
    }
    div.main-form-container div.input-group.ui-metadata-autocomplete input,
    div.main-form-container form table.generic select {
        min-width:170px;
    }
}



/* Multi Metadata type/edit */

div.main-form-container.multiMetadataEdit {
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

@media (max-width:767px) {
    div.main-form-container.multiMetadataType {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}

div.main-form-container.multiMetadataType table.generic tr:first-child th,
div.main-form-container.multiMetadataEdit table.generic tr:first-child th,
div.main-form-container.multiMetadataEdit table.generic tr:nth-child(2) th {
  white-space: nowrap;
}

div.main-form-container.multiMetadataType table.generic tr:first-child th a img,
div.main-form-container.multiMetadataEdit table.generic tr:nth-child(2) th a img {
  margin-right: 4px;
}

div.main-form-container.multiMetadataEdit .fieldvalue input.form-control,
div.main-form-container.multiMetadataEdit .fieldvalue textarea.form-control {
  display: inherit;
}

div.radio span.help-block {
    padding-left: 20px;
}

/* issuing */

.issue-details .panel-body {
  padding-bottom: 0px;
}

.issue-details .panel-heading span {
    margin-top: -20px;
    font-size: 15px;
}
.issue-details .clickable,
.issue-responses .clickable {
    cursor: pointer;
}

.issue-response-select {
    border-top: 1px solid #ddd;
    padding-top: 8px;
}


div.issue-document-response {
    padding-bottom: 10px;
    border-bottom: 1px solid #cccccc;
    font-weight: bold;
}

div.issue-document-response .issue-document-description {
    padding-left: 10px;
    font-weight: normal;
}

div.issue-document-response img {
    padding-right: 5px;
}

.reason-for-issue-table {
    margin-bottom: 10px;
}


/* issue reponse form */

div.panel-response-form {
    position: relative;
}

table#issue_response_form {
    background-color: white;
}

th.issue_select_responses_heading {
    white-space: nowrap;
}
th.issue_select_responses_heading input {
    margin: 0px;
}

table#issue_response_form th.fieldname {
    white-space: nowrap;
}
table#issue_response_form th.fieldname a {
    margin-right: 4px;
}
table#issue_response_form th.fieldname a img {
    vertical-align: baseline;
}

@media (max-width: 767px) {
    table#issue_response_form tr td {
        border-top: none;
        display: block;
    }
    table#issue_response_form tr th {
        display: none;
    }
    .issue_response_form_section_heading {
        padding: 5px;
        background-color: #f5f5f5;
        color: #333;
    }
}

/* task number on respond to issue (xs-size) */
table#issue_response_form tr h3.respond-to-issue-task-number {
    color: #337ab7;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 1px solid #dddddd;
    padding-top: 20px;
    padding-bottom: 4px;
}
table#issue_response_form tr:first-child h3.respond-to-issue-task-number,
table#issue_response_form tr:nth-child(2) h3.respond-to-issue-task-number {
    padding-top: 0px;
}


/* larger screens - allow more width for field headings */
@media (min-width: 992px) and (max-width: 1199px) {
    .panel.issue-details .dl-horizontal dt,
    .panel.issue-responses .dl-horizontal dt {
        width: 220px;
    }
    .panel.issue-details .dl-horizontal dd,
    .panel.issue-responses .dl-horizontal dd {
        margin-left: 240px;
    }
}

@media (min-width: 1200px) {
    .panel.issue-details .dl-horizontal dt,
    .panel.issue-responses .dl-horizontal dt {
        width: 260px;
    }
    .panel.issue-details .dl-horizontal dd,
    .panel.issue-responses .dl-horizontal dd {
        margin-left: 280px;
    }
}


/* Responses */

ul.issueResponses {
    margin: 5px 0px 5px 5px;
    padding: 0px;
}

ul.issueResponses li {
    list-style-type: none;
}

ul.issueResponses li a,
ul.issueResponses li a:visited {
    text-decoration: none;
}

ul.issueResponses li.release {
    margin-left: -20px;
}

ul.userResponse {
    margin: 0px 0px 5px 0px;
    padding: 0px;
}

ul.userDiscussion {
    margin: 5px 15px;
    padding: 0px;
}

/* first-level doc responses/discussions - extra indentation */
.issue-document-response-content > ul.userResponse,
.issue-document-response-content > ul.userDiscussion {
    margin: 5px 0px 5px 15px;
}
@media (min-width: 768px) and (max-width: 991px) {
    .issue-document-response-content > ul.userResponse,
    .issue-document-response-content > ul.userDiscussion {
        margin: 5px 0px 5px 30px;
    }
}
@media (min-width: 992px) {
    .issue-document-response-content > ul.userResponse,
    .issue-document-response-content > ul.userDiscussion {
        margin: 5px 0px 5px 40px;
    }
}

ul.userResponse li.userResponse {
    list-style-type: none;
    border-left: 2px solid #aaaaaa;
    padding: 5px;
    background-color: #f0f0f0;
}

ul.list-unstyled > ul.userResponse > li.userResponse {
    margin: 0px 0px 5px 0px;
}

ul.userResponse li.userResponse.unread {
    border-left: 2px solid #cab900;
    background-color: #fffcd5;
}

ul.userResponse li.userResponse span.userName,
ul.userDiscussion li.userResponse span.userName {
    font-weight: none;
}

ul.userResponse li.userResponse dl,
ul.userDiscussion li.userResponse dl {
    margin: 5px 0px 15px 0px;
}
@media (max-width: 767px) {
    ul.userResponse li.userResponse dl,
    ul.userDiscussion li.userResponse dl {
        margin: 5px 0px 15px 15px;
    }
}

ul.userResponse li.userResponse dl dt,
ul.userDiscussion li.userResponse dl dt {
    color: #555555;
    font-weight: bold;
}
@media (max-width: 767px) {
    ul.userResponse li.userResponse dl dt,
    ul.userDiscussion li.userResponse dl dt {
        margin-top: 10px;
    }
}

ul.userResponse li.userResponse dl dd ul li.userResponse,
ul.userDiscussion li.userResponse dl dd ul li.userResponse {
    list-style-type: none;
    border-left: 0px;
    margin-bottom: 0px;
    padding: 0px;
}

ul.userResponse li.userResponse dl dd ol li.userResponse,
ul.userDiscussion li.userResponse dl dd ol li.userResponse {
    list-style-type: none;
    border-left: 0px;
    margin-bottom: 0px;
    padding: 0px;
}

ul.userResponse li.userResponse dl dd span.status,
ul.userDiscussion li.userResponse dl dd span.status {
    font-style: italic;
}

ul.list-unstyled > ul.userDiscussion,
.panel-superseded > ul.userDiscussion {
    margin: 5px 0px;
}


ul.userDiscussion li.userResponse {
    list-style-type: none;
    border-left: 2px solid #aaaaaa;
    padding: 5px;
    background-color: #fafafa;
}

ul.userDiscussion li.userResponse.unread {
    border-left: 2px solid #cab900;
    background-color: #fffcd5;
}


/* Responses - internal panels */

.panel-body-issue .list-unstyled {
    margin-bottom: 5px;
}

.panel-superseded {
    margin: 0px 15px 5px 15px;
}
@media (max-width: 767px) {
    .panel-superseded {
        margin: 0px 10px 5px 10px;
    }
}

.panel-title-superseded {
    font-size: 14px;
}

.panel-superseded > .panel-body > ul.userResponse,
.panel-superseded > .panel-body > ul.userResponse > li.userResponse,
.panel-superseded > .panel-body > ul.userDiscussion {
    margin: 0px 0px 5px 0px;
}


.panel.issue-responses .dropdown {
    margin-right: 8px;
}
.panel.issue-responses .pull-right .glyphicon {
    top: -16px;
}



/* used to separate out responses per document more clearly */
hr.black {
    border-color: #000 -moz-use-text-color -moz-use-text-color;
}

div.markAsRead {
    margin-top: 20px;
    margin-right: 5px;
    margin-bottom: 0px;
    margin-left: 15px;
}

div.markAsRead form input {
    margin-right: 15px;
}

/* Log in */

.countdown_full {
  margin-left: 20px;
  margin-top: 10px;
}

div.info-box {
    margin-top: 25px;
}


/* Colours for due dates and RAG statuses*/
.colour-complete, .rag-green {
    color: green;
}
.colour-future {
    color: #999999;
}
.colour-later, .rag-pending {
    color: royalblue;
}
.colour-28-days {
    color: skyblue;
}
.colour-7-days, .rag-amber {
    color: gold;
}
.colour-today {
    color: orange;
}
.colour-overdue, .rag-red {
    color: red;
}
.colour-to-be-completed {
    color: purple;
}
.colour-unsent {
    color: #777777;
}

/* Background Colours for RAG Rollup*/
.colour-complete-background, .rag-green {
    background-color: green;
    color: white;
}
.colour-future-background {
    background-color: #999999;
    color: white;
}
.colour-later-background, .rag-pending {
    background-color: royalblue;
    color: white;
}
.colour-28-days-background {
    background-color: skyblue;
    color: white;
}
.colour-7-days-background, .rag-amber {
    background-color: gold;
    color: #333;
}
.colour-today-background {
    background-color: orange;
    color: white;
}
.colour-overdue-background, .rag-red {
    background-color: red;
    color: white;
}
.colour-to-be-completed-background {
    background-color: purple;
    color: white;
}
.colour-unsent-background {
    background-color: #777777;
    colour: white;
}
#document-listing .rag_rollup {
    margin-top: 1px !important;
    margin-bottom: 0px !important;
}

#document-listing .rag_rollup .rag_rollup_total {
    margin-top: 3px;
}

.rag_rollup {
    float: left;
    min-width: 10%;
}

.rag_rollup_total {
    float: left;
    padding-right: 5px;
    text-align: right;
    width: 2em;
}

.rag_rollup a {
    color: white;
}
.rag_rollup_content {
    list-style: none;
    padding-left: 10px;
}
.rag_rollup .progress-bar {
    cursor: pointer;
}

.rag_rollup .rag-spacer {
    float: left;
    height: 20px;
    width: 1%;
}

.rag_rollup_content .percentage {
    font-size: 75%;
    vertical-align: middle;
}

.rag_rollup .rag-total-count {
    float: left;
    height: 20px;
    min-width: 12px;
    width: 99%;
}

/* Label Colours for due dates */
.label-complete {
    color: white;
    border: 1px solid green;
    background-color: green;
}
.label-future {
    color: white;
    border: 1px solid #999;
    background-color: #999;
}
.label-later {
    color: white;
    border: 1px solid royalblue;
    background-color: royalblue;
}
.label-28-days {
    color: white;
    border: 1px solid skyblue;
    background-color: skyblue;
}
.label-7-days {
    color: #333;
    border: 1px solid gold;
    background-color: gold;
}
.label-today {
    color: white;
    border: 1px solid orange;
    background-color: orange;
}
.label-overdue {
    color: white;
    border: 1px solid red;
    background-color: red;
}
.label-to-be-completed {
    color: white;
    border: 1px solid purple;
    background-color: purple;
}
.label-unsent {
    color: white;
    border: 1px solid #777777;
    background-color: #777777;
}

/* Label Outline */

.label-outline {
    background-color: transparent;
    color: inherit;
    transition: all .5s;
}

.label-default.label-outline {
    color: #777;
    border: 1px solid #777;
}

.label-primary.label-outline {
    color: #428bca;
    border: 1px solid #428bca;
}

.label-success.label-outline {
    color: #5cb85c;
    border: 1px solid #5cb85c;
}

.label-info.label-outline {
    color: #5bc0de;
    border: 1px solid #5bc0de;
}

.label-warning.label-outline {
    color: #f0ad4e;
    border: 1px solid #f0ad4e;
}

.label-danger.label-outline {
    color: #d9534f;
    border: 1px solid #d9534f;
}

/* actx */

.actx_uploader {
    margin: 0;
    padding: 0;
}

#actximg {
    padding-left: 1px;
}


/* extensions */

.extensions .panel-body {
  padding-bottom: 0px;
}

.extensions .panel-heading span {
    margin-top: -20px;
    font-size: 15px;
}
.extensions .clickable {
    cursor: pointer;
}

.color-white {
    color: white;
}

.extensions li.recent_subitem {
    margin-left: 1.2em;
}

.widget.RecentItemsWidget span.entry_action_cell,
.widget.RecentItemsWidget span.bracket {
    display: none;
}

.widget.RecentItemsWidget .bracket {
    display: none;
}

.widget.RecentItemsWidget .odd {
    background-color: transparent !important;
}

/* fixed height portals - ensure footer is at the bottom of the panel */
@media (min-width: 768px) {
    .fixed-height .panel-footer {
        position: absolute;
        bottom: 21px;
        left: 16px;
        right: 16px;
        margin: 0;
    }
}


/* Size column */

.entrysm-right {
    text-align: right;
}

.editdetails {
  display: inline;
}

.btn-toolbar {
  margin-bottom: 15px;
}

.btn-toolbar-outline {
  border-radius: 3px;
  border: 1px solid #e7e7e7;
  padding: 5px;
  background-color: #f8f8f8;
}

.btn-toolbar-mobile {
    margin-bottom: 10px;
}

.btn-toolbar-secondary {
    margin-bottom: 15px;
}

.btn-toolbar-secondary > button,
.btn-toolbar-secondary > a {
    margin-right: 15px;
}
.btn-toolbar-secondary > span {
    margin-right: 5px;
}

/* title and description */

h1.listing-title {
  display: inline-block;
}

.listingDescription{
    margin-left: 1em;
    margin-bottom: 1rem;
}

.listingDescription ul,
.listingDescription ol {
    font-size: 0.875em;
    margin-bottom: 0.5rem;
}

.listingDescription p
 {
    font-size: 0.875em;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

div.container-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.message-box-header {
  font-weight: bold;
}


/* Correction marker in event trails */

.correction_marker {
    vertical-align: bottom;
    width: 0px;
    display: inline-block;
    overflow: visible;
    border: 0px;
    z-index: 400;
    background-color: white;
}
.correction_marker span {
    z-index: 400;
    margin-top: 0px;
    height: 0px;
    vertical-align: top;
    display: block;
    background-color: transparent;
    border-bottom: 2px solid red;
    width: 10em;
    position: absolute;
/* Somehow these two lines stop everything going entirely screwy in IE6
*/
    *margin-top: -1.25em;
    *height: 1.25em;
}

.reveal-icon {
/* The setting to make these icons look nice and aligned*/
    margin-top: 4px;
    margin-left: -18px;
/* IE6 parses this next one as "margin-left" and it overrides.
IE6 can't handle this nicely at all.
*/
    _margin-left: 0px;
}

/* position the before/after table in events better */
div.revealable {
    margin: 8px 0px -16px 24px;
}

/* .. and style it better */
div.revealable table.generic tr th {
    background-color: #f5f5f5;
    font-size: 75%;
}

div.revealable table.generic tr td {
    border-bottom: 1px solid #ddd;
    font-size: 75%;
}

/* version info table needs bottom margin to prevent buttons merging into the bottom of it */
.version-stack {
    margin-bottom: 16px;
}

/* space out the individual events a bit more */
span.event,
table.generic.version-stack td {
    line-height: 2em;
}

/* ...but don't add space to tables version-stack */
table.generic.version-stack td table td {
    line-height: 1.1em;
}

/* underline needs bumping up a bit in event listings/version info */
.event .correction_marker span,
.version-stack .correction_marker span {
    margin-top: -4px;
}

/* version selects */

div.main-form-container form select.version-select,
div.main-form-container form table.generic select.version-select {
    width: auto;
    min-width: 40px;
    display: inline;
}

td.fieldvalue {
    white-space: nowrap;
}

/* catalogue specials */

.catalogue-entry {
    margin-top: 6px;
    margin-bottom: 6px;
    text-align: center;
}


/* show metadata specials */

.show-metadata-container-title {
    display: inline-block;
}

.show-metadata-container-last-mod {
    margin-left: 1em;
    font-style: italic;
}

.show-metadata-mobile {
    margin-top: 12px;
    margin-bottom: 12px;
}

.show-metadata-mobile h3 {
    margin-bottom: 2px;
}

.show-metadata-mobile-container-last-mod {
    font-style: italic;
    font-size: 12px;
}


.img-container {
    margin-top: 18px;
    margin-bottom: 10px;
/*    text-align: center; */
}

.img-container ol {
    margin-top: 12px;
}


hr.no-margin {
    margin: 0;
}

hr.margin-sm {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* image selector */

.table.table-selector > tbody > tr > td {
    vertical-align: middle;
    cursor: pointer;
}

/* news/blog specials */

.blog-creator,
.news-creator {
    margin-bottom: 1em;
    font-style: italic;
}

.discussion {
    margin-bottom: 0.5em;
}

.reply .discussion {
    margin-bottom: 1.5em;
}


.discussion blockquote {
    font-size: inherit;
    padding: 4px 16px;
    margin: 0 0 8px;
    color: #777;

}

.news-image {
    margin-right: 1em;
    margin-bottom: 1em;
    float:left;
    max-width: 350px;
}

.news-content {
    text-align: justified;
}

.news-end {
  clear: both;
}

.blog > h4.info {
  background-color: #d9edf7;
}

/* BIM Viewer - Article List on Form View in BIM  Viewer */
ul.artifact-list.long-list {
    list-style-type: none;
}

/* Assign Companies */

div.main-form-container table.invisible {
    visibility: visible; /*Override bootstrap invisible class setting which interferes */
}

/* Render filter inputs in a single line */
div.filter_control input.form-control {
    width: auto;
    display: inline;
}

/* My Projects widget search results */
.top-search-results ul {
    margin-bottom: 20px;
    padding-left: 0;
}

.top-search-results ul li {
    overflow: hidden;
    width: 100%;
    list-style: outside none none;
    white-space: nowrap;
    border: 1px solid #ddd;
    display: block;
    margin-bottom: -1px;
    padding: 10px 15px;
    position: relative;
}

.top-search-results ul li img {
    margin-right: 0.5em;
    vertical-align: middle;
}

/* Tasks widgets */
ul.tasks .tasks-header {
    border-left: 1px solid #ddd;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

/* no centring, no left border */
ul.tasks .tasks-due-header {
    font-weight: bold;
    padding: 10px;
}

ul.tasks .list-group-item {
    padding-top: 0px;   /* prevent gaps in vertical borders */
    padding-bottom: 0px;
    line-height: 22px;  /* align rows with other widgets */
}

ul.tasks .tasks-row-title {
    padding-top: 10px;
    padding-bottom: 10px;  /* vertical spacing restored */
}

ul.tasks .tasks-row-title.overdue {
    color: red;
}

ul.tasks .task-item {
    border-left: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

/* task counts in listings */
div.task-count {
  padding-left: 25px; /* looks better aligned to the middle of the column heading text */
}

div.task {
    margin-top: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
}

div.task span.glyphicon {
    margin-right: 5px;
}

div.task span.glyphicon.task_overdue {
    color: #d9534f;
}

div.task span.glyphicon.task_due {
    color: #449d44;
}

div.task span.glyphicon.task {
    color: #f0ad4e;
}

div.task span.glyphicon.task_pending {
    color: #777777;
}

/* name column in listings - prevent from wrapping */
.name,
.user-name {
    white-space: nowrap;
}

/* Truncation of names */

/* truncate long names (listing) */
.truncate {
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-full-width  {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 767px) {
    .truncate {
        max-width: 700px;
    }
    /* browser quirk - underscores disappear without this */
    h5.truncate {
        line-height: 16px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .truncate {
        max-width: 300px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .truncate {
        max-width: 380px;
    }
}

/* (doc) name in location bar, and issues (summary) - truncate long names */
.truncate-location,
.truncate-issue {
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.truncate-issue {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 400px) {
    .truncate-location,
    .truncate-issue {
        max-width: 160px;
    }
}
@media (min-width: 401px) and (max-width: 480px) {
    .truncate-location,
    .truncate-issue {
        max-width: 240px;
    }
}
@media (min-width: 481px) and (max-width: 767px) {
    .truncate-location,
    .truncate-issue {
        max-width: 320px;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .truncate-location,
    .truncate-issue {
        max-width: 380px;
    }
}

/* (doc) name in issues (details) - truncate long names */
.truncate-issue-detailed {
    display: inline-block;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 991px) {
    .truncate-issue-detailed {
        max-width: 140px;
    }
}

img.vertical_aligned {
    vertical-align: top;
}

/* Listing Status Column */

td.entrysm.artifact-inline-actions {
    white-space: nowrap;
}

/* responsive pull-right */
@media (max-width: 767px) {
    .pull-right-xs {
         float: right !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .pull-right-sm {
         float: right !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .pull-right-md {
         float: right !important;
    }
}
@media (min-width: 1200px) {
    .pull-right-lg {
         float: right !important;
    }
}

.display-inline-block {
    display: inline-block;
    vertical-align: top;
}

div.clear-filters {
    margin-top: 0px;
    margin-bottom: 10px;
}

div.clear-filters:empty {
    margin-top: 0px;
    margin-bottom: 0px;
}


/* responsive dropdown-menu-right */
@media (min-width: 768px) and (max-width: 991px) {
    .dropdown-menu-right-sm {
        right: 0;
        left: auto;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .dropdown-menu-right-md {
        right: 0;
        left: auto;
    }
}
@media (min-width: 1200px) {
    .dropdown-menu-right-lg {
        right: 0;
        left: auto;
    }
}

@media (max-width: 767px) {
    .dropdown-menu-right-xs {
        right: 0;
        left: auto;
    }
}

@media (max-width: 479px) {
    .dropdown-menu-right-xss {
        right: 0;
        left: auto;
    }
}

/* Listings - widths for checkbox/menus columns */

.listing-checkbox-td {
  width: 32px;
}

.listing-menu-td {
  width: 38px;
}

/* Listing - Offline files */

/* Mobile */
@media (max-width: 767px) {
    .label-offline {
        margin-right: 5px;
    }

    .list-group-item.offline,
    .list-group-item.not_required,
    .modal-dialog.offline .modal-header,
    .modal-dialog.offline a {
        opacity: 0.4;
    }
}

/* Fullscreen */
@media (min-width: 768px) {
    .offline td,
    .offline .dropdown > a,
    .offline .dropdown li,
    .not_required td,
    .not_required .dropdown > a,
    .not_required .dropdown li {
        opacity: 0.4;
    }

    .offline td.listing-menu-td,
    .not_required td.listing-menu-td {
        opacity: 1;
    }
}


/* Portals */

.portlet-loading-message {
    margin: 10px 15px;
}

/* Portal title from widget */

div.no-title {
    display: none;
}

/* portlet headings - handle long names, prevent wrapping */
.panel-portlet .panel-heading {
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
}
.panel-portlet .panel-heading .clickable {
    cursor: pointer;
}
.panel-portlet .panel-heading .clickable span.pull-right {
    position: absolute;
    right: 25px;
}

.panel-heading .panel-heading-button {
    position: absolute;
    margin-top: -23px;
    right: 30px;
    padding: 4px 12px;
}


/* portlets hidden (closed) by default in xs size interface */
@media (max-width: 767px) {
    .panel-portlet {
        margin-bottom: 10px;
    }
    /* Hide the portlet at xs size UNLESS it has an open-xs class on it */
    .portlet-xs {
        display: none;
    }
    .portlet-xs.open-xs {
        display: block;
    }
    /* move any button across to make room for the open/close toggle */
    .panel-heading .panel-heading-button {
        right: 50px;
    }
}
@media (min-width: 768px) {
    .portlet-xs {
        display:block;
    }
    /* Allow scrolling in fixed height portlets */
    .portal-wrapper.fixed-height .portlet-content-no-margin > div.widget {
        overflow-y: auto;
    }
}

/* panel with no inner margin - bear in mind that bootstrap adds 15px padding around content */

.portlet-content-no-margin {
    margin: -15px;
}
/* hosted widget version - revert to standard popover margins */
.portlet-content-no-margin.popover-margin {
    margin: -9px -14px;
}


/* default settings for list groups (used by Recent X widgets and others) */

/* only a bottom border around list group items if no inner margin in portlet */
.portlet-content-no-margin ul.list-group li.list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0px;
    padding: 8px 15px;
}

.portlet-content-no-margin ul.list-group li.list-group-item:first-child {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.portlet-content-no-margin ul.list-group li.list-group-item:last-child {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.panel-portlet ul.list-group {
    margin-bottom: 0px;
}

/* handle long names, prevent wrapping */
.panel-portlet ul.list-group li.list-group-item {
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
}

/* widgets in global dashboard tab */
.tab-content-widgets {
    margin-top: 10px;
}
/* for non-mobile size, set a minimum width */
/* for mobile size (tasks only), bootstrap default handles it better so no setting */
@media (min-width: 768px) and (max-width: 991px) {
    .tab-content-widgets {
        min-width: 750px;
    }
}
@media (min-width: 992px) {
    .tab-content-widgets {
        min-width: 980px;
    }
}



/* portlets - graphite handling */

div.widget th,
div.widget label {
    font-weight: normal;
}


/* copydown menu in panel */

.panel-heading .panel-heading-copydownmenu {
    position: absolute;
    top: 5px;
    right: 10px;
    padding: 4px 12px;
}


.dropdown-menu.copydownmenu {
    margin-top: -2px;
    right: 10px;
}


/* tasks - graphite handling - issuing dashboard */

table.dashboard th.label {
    color: #444;
    font-weight: normal;
    font-size: 100%;
}

table.dashboard {
    line-height: 1.6em;
    width: 100%;
    min-width: 200px;
}
table.dashboard tbody {
    border-bottom: 1em solid white;
}
table.dashboard thead th {
    background-color: #eee;
    border: 2px solid white;
    font-weight: bold;
    padding: 1px;
    text-align: left;
    vertical-align: middle;
}
table.dashboard tbody th {
    font-weight: normal;
    padding: 1px;
    text-align: left;
}
table.dashboard tbody td {
    padding: 1px;
    text-align: right;
}
table.dashboard tr.overdue {
    color: red;
}

table.dashboard tr.overdue th.label {
    color: inherit;
}
/* make the click area a bit bigger
   not great, but binding clicks to parent rows in popovers is troublesome */
table.dashboard tr td.stat a {
    padding: 10px 0px 10px 20px;
}

table.dashboard tr.all th, table.dashboard tr.all td, table.dashboard tr.all td a {
    font-weight: bold;
}
table.dashboard .lowlight,
table.dashboard th.label.lowlight {
    color: gray;
    font-weight: normal;
}
table.dashboard tfoot td {
    text-align: right;
}
table.dashboard p {
    padding: 2px;
}

/* FORM CSS for issue forms */

.container-form {
    background-color: #eeeeee;
    margin-bottom: 20px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    box-shadow: 0px 0px 6px #eeeeee;
}

.container-form-heading,
.container-form-content,
.container-form-footer
{
    margin: 0;
    padding: 15px 15px;
}

@media (max-width: 767px) {
    .container-form-heading,
    .container-form-content,
    .container-form-footer
    {
        margin: 0;
        padding: 10px 10px;
    }
}

.container-form-heading {
    border-bottom: 1px solid #dddddd;

}

.container-form-heading span {
    margin-top: -35px;
}

.container-form-content {
    background-color: white;
}

.container-form h1 {
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 28px;
}

.container-form h2 {
    border-bottom: 1px solid #dddddd;
    padding-bottom: 4px;
    font-size: 20px;
}

/* H3 underlined styles */
.container-form h3,
.modal-body h3,
#inf_details h3,
.issue-sheet-section-title h3,
h3.primary-caps-underlined {
    color: #337ab7;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 4px;
}

/* h4 underlined styles */
h4.primary-caps-underlined,
h4.default-caps-underlined {
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 4px;
}
h4.primary-caps-underlined {
    color: #337ab7;
}
h4.default-caps-underlined {
    color: #777;
}

h4.primary-underlined,
h4.default-underlined {
    font-size: 12px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 4px;
}
h4.primary-underlined {
    color: #337ab7;
}
h4.default-underlined {
    color: #777;
}

.container-form-footer {
    border-top: 1px solid #dddddd;
}

.container-form-description {
    margin-top: 10px;
    margin-bottom: 20px;
}

.container-form dl {
    margin-top: 10px;
}

dl.dl-sparse dt,
dl.dl-sparse dd,
ul.ul-sparse li,
ol.ol-sparse li {
    margin-bottom: 10px;
}

.alert h5 {
    margin-top: 0px;
}

.required {
    color: red;
}

.container-form textarea {
    max-width: 450px;
}

.container-form textarea.form-control {
    max-width: none;
}

.table .table-row-group {
    font-weight: bold;
    color: #666666;
    background-color: #eeeeee;
}

.table .table-row-group td {
    padding-top: 20px;
    /*border-bottom: 1px solid black;*/

}

/* Responsive button block */
/* xxs - for iphone 5 */
@media (max-width: 320px) {
    .btn-block-xxs {
        display: block;
        width: 100%;
    }
}
/* xs - for phones */
@media (min-width: 321px) and (max-width: 767px) {
    .btn-block-xs {
        display: block;
        width: 100%;
    }
}
/* sm - for tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .btn-block-sm {
        display: block;
        width: 100%;
    }
}
/* md - for smaller laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    .btn-block-md {
        display: block;
        width: 100%;
    }
}
/* lg - for larger laptops and desktops */
@media (min-width: 1200px) {
    .btn-block-lg {
        display: block;
        width: 100%;
    }
}


/* Responsive location truncation */

/* xxs - for iphone 5 */
@media (max-width: 320px) {
    div.main-form-container h1,
    .container-form h1 {
        font-size: 22px;
    }

    div.main-form-container h2,
    .container-form h2 {
        font-size: 16px;
    }
}
/* xs - for phones */
@media (min-width: 321px) and (max-width: 767px) {
    div.main-form-container h1,
    .container-form h1 {
        font-size: 22px;
    }

    div.main-form-container h2,
    .container-form h2 {
        font-size: 16px;
    }
}

/* responsive pull-right */
@media (max-width: 767px) {
    .text-left-xs {
      text-align: left;
    }
    .text-right-xs {
      text-align: right;
    }
    .text-center-xs {
      text-align: center;
    }
    .text-justify-xs {
      text-align: justify;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .text-left-sm {
      text-align: left;
    }
    .text-right-sm {
      text-align: right;
    }
    .text-center-sm {
      text-align: center;
    }
    .text-justify-sm {
      text-align: justify;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .text-left-md {
      text-align: left;
    }
    .text-right-md {
      text-align: right;
    }
    .text-center-md {
      text-align: center;
    }
    .text-justify-md {
      text-align: justify;
    }
}
@media (min-width: 1200px) {
    .text-left-lg {
      text-align: left;
    }
    .text-right-lg {
      text-align: right;
    }
    .text-center-lg {
      text-align: center;
    }
    .text-justify-lg {
      text-align: justify;
    }
}



/* issue sheet */

/* heading next to tabs - align with dd element */
.issue-sheet-section-title {
    width: 180px;
}

/* lower the tab heading, remove bottom border */
.issue-sheet-section-title h3 {
    margin-top: 20px;
    margin-bottom: 0px;
    border-bottom: none;
}

/* no tabs, so no margin top */
.issue-sheet-section-title-no-tab h3 {
    margin-top: 0px;
    margin-bottom: 2px;
}

/* vertical space added below tab bar */
.panel-body-issue .tab-content {
    margin-top: 20px;
}

/* extra bottom margin for lists */
.list-extra-vertical-margin li {
    margin-bottom: 10px;
}

/* well for deadline/tasks/notes details on issue sheet - reduce padding */
.well.well-issue-sheet {
    padding: 19px 0 0;
}
/* add LH padding for phones */
@media (max-width: 767px) {
    .well.well-issue-sheet {
        padding: 19px 10px 0 10px;
    }
}

/* well fixed height definition */
div.well-fixed-height {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 767px) {
    div.well-fixed-height {
        max-height: 175px;
        overflow-y: auto;
    }
}

/* general pointer class, used on distribution matrix ticks for clarity */
.pointer {
    cursor: pointer;
}

/* general class to indent left */
.indent-left {
    padding-left: 20px !important;
}


/* wide tables - reduce font size at smaller resolution */
@media (max-width: 1199px) {
    .table-wide th,
    .table-wide td {
        font-size: smaller;
    }
}

/* Small table font */
table.table-sm th,
table.table-sm td {
    font-size: smaller;
}

/* hide titles in info tabs */
.tab-content-info #links H1 {
    display: none;
}

/* links fomatting */
.dl-horizontal-info {
    padding-top: 10px;
}
.dl-horizontal-info dt {
    width: 60px !important;
}
.dl-horizontal-info dd {
    margin-left: 80px !important;
}
@media (max-width: 767px) {
    .dl-horizontal-info dd {
        margin-left: 0px !important;
    }
}

/* event history - hide toggleable extra info completely */

.revealable {
    display: none;
}

/* asset labels */

.de-emphasize {
    color: #a1a1a1;
}

form[name=create_asset_labels] input[type=checkbox] {
  margin-right: 5px;
}


/* mobile menus */

.btn-mobile-menu {
  margin-left: 10px;
  margin-top: 2px;
}

.btn-mobile-menu-vertical-centre {
  margin-top: 14px;
}

/* vertically align glyphicon correctly in button */
.btn-mobile-menu .glyphicon {
  top: 5px;
}

/* version/item count number labels */

.version.label,
.collection-total.label {
    line-height: inherit;
    margin-right: 5px;
}

@media (max-width: 767px) {
    .item-date-size {
        font-size: 75%;
    }
}

@media (max-width: 359px) {
    .item-time {
        display: none;
    }
}

/* event label */
.label-event {
  margin-left: 10px;
}
.label-event-mobile {
  margin-right: 5px;
}


#interfaceModalMobileMenu .modal-body {
    padding: 0;
}

#interfaceModalMobileMenu .divider {
    background-color: #ddd;
    height: 4px;
    margin: 0;
    overflow: hidden;
}

#interfaceModalMobileMenu a {
    text-align: center;
}

/* Navbar - Disable responsiveness - this will be handled manually. */
.navbar-nav > li {
    float: left !important;
}

.navbar-right {
    float: right !important;
    margin-right: -15px;
}

.navbar-left {
    margin-left: -15px;
}

@media (max-width: 767px) {
    .navbar-left {
        margin-left: 0px;
    }
}

.navbar-header:after {
    clear: none;
}

.navbar-nav:after {
    clear: none;
}

.navbar-form .form-group {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
}

.navbar-form .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.navbar-form {
    width: auto;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
}

.navbar-nav > li > a {
    padding-bottom: 15px;
    padding-top: 15px;
}

.navbar-right .dropdown-menu {
    left: auto;
    right: 0;
}

@media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu {
        position: absolute;
        float: left;
        width: auto;
        margin-top: 0;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
    }
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #333;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #555;
    background-color: #e7e7e7;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #555;
    background-color: #e7e7e7;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
    color: #555;
    background-color: #e7e7e7;
  }
}

.nav-tabs.nav-tabs-margin-bottom {
    margin-bottom: 10px;
}

/* Wizard */

ol.wizard-steps {
    margin-top: 10px;
}

ol.wizard-steps li {
    margin-bottom: 20px;
}


/* Reporting */

span.input-wrapper.input-klang {
    display: block;
}

.input-wrapper input {
    padding-left: 20px !important;
}

/* Select2 */

.form-control-select2 {
    width: 80%;
}

@media (max-width: 767px) {
  .navbar-text {
    float: left;
    margin-right: 15px;
    margin-left: 15px;
  }
}

/* Wizard */

ol.wizard-steps {
    margin-top: 10px;
}

ol.wizard-steps li {
    margin-bottom: 20px;
}

/* Mobile listing */

p.list-group-item-text.mobile-listing span.label {
    font-weight: normal;
}

p.list-group-item-text.mobile-metadata:empty {
    display: none;
}

p.list-group-item-text.mobile-metadata {
    margin-bottom: 5px;
    overflow: hidden;
    max-height: 1.5em;
}

p.list-group-item-text.mobile-metadata span.label {
    margin-right: 5px;
    font-weight: normal;
    display: inline-block;
}

p.list-group-item-text.mobile-listing-metadata .label-default {
    color: #777777;
    border-color: #777777;
}

p.list-group-item-text.mobile-description {
    font-size: 75%;
    margin-bottom: 5px;
}

.saml-bypass-text {
    color: #337ab7;
    font-size: 14px;
    text-transform: uppercase;
}

/* Brava */

.brava-document-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100px;
}

@media (min-width: 767px) {
    .dl-brava-details {
        min-width: 400px;
    }
}

.margin-bottom-xs {
    margin-bottom: 5px;
}
.margin-bottom-sm {
    margin-bottom: 10px;
}
.margin-bottom-md {
    margin-bottom: 15px;
}

.margin-xs {
    margin-top: 5px;
    margin-bottom: 5px;
}
.margin-sm {
    margin-top: 10px;
    margin-bottom: 10px;
}
.margin-md {
    margin-top: 15px;
    margin-bottom: 15px;
}

div.bc-brava-compare {
    margin-right: 5px;
}

/* List Group Customisations */

.list-group-no-borders .list-group-item {
    border: 0px;
}

.list-group-compact {
    margin-bottom: 10px;
}

.list-group-compact .list-group-item {
    padding: 5px 0px;
}

/* Additional hidden styles for small screens */

.visible-xxxs-block,
.visible-xxxs-inline,
.visible-xxxs-inline-block,
.visible-xxs-block,
.visible-xxs-inline,
.visible-xxs-inline-block {
    display: none !important;
}

@media (max-width: 374px) {
    .hidden-xxxs {
        display: none !important;
    }

    .visible-xxxs-block {
        display: block !important;
    }

    .visible-xxxs-inline {
        display: inline !important;

    }
    .visible-xxxs-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 375px) and (max-width: 479px) {
    .hidden-xxs {
        display: none !important;
    }

    .visible-xxs-block {
        display: block !important;
    }

    .visible-xxs-inline {
        display: inline !important;

    }
    .visible-xxs-inline-block {
        display: inline-block !important;
    }
}

.select2 .required-select2-option .select2-selection__choice__remove {
    display: none !important;
}

/* ADVANCED USER PICKER CSS */
#advanced_user_picker .modal-dialog {
    min-width: 95%;
}

#advanced_user_picker .modal-body {
    padding-top: 5px;
}

#advanced_user_picker .user_info {
    display: inline;
}

#advanced_user_picker .tab-content {
    padding-top: 10px;
}

#advanced_user_picker .group_message {
    padding-top: 10px;
}

#advanced_user_picker .advanced_available_users {
    padding-right: 2em;
}

#advanced_user_picker .selected_users_members,
#advanced_user_picker .selected_users_not_members,
#advanced_user_picker .selected_users_external,
#advanced_user_picker .selected_groups_roles {
    list-style-type: none;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 10px;
}

#advanced_user_selected_users li {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#advanced_user_selected_users li:last-child {
    border-bottom: none;
}

#advanced_user_selected_users h3 {
    color: black;
    background-color: #EEEEEE;
    padding-top: 5px;
    padding-left: 15px;
}

#manual_input_errors {
    max-height: 30vh;
    overflow: auto;
}

.group_token {
    /* bootstrap bg-info colour */
    background-color: #d9edf7 !important;
}

#advanced_actions_dropdown {
    margin-left: 5px;
}

#advanced_user_picker li.user-picker-hidden {
    display: none;
}

div.distribution-settings {
    margin-top: 10px;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    div.distribution-settings .datetimepicker {
        margin-top: 5px;
    }
}

div.distribution-settings .comment {
    resize: vertical;
}

div.distribution-settings .checkbox {
    margin-top: 5px;
    margin-bottom: 0px;
}

#advanced_user_picker .selected-user-label {
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 320px) {
    #advanced_user_picker .selected-user-label {
        width: 85%;
    }
}

#advanced_user_selected_users {
    padding-top: 0px;
    border: 1px solid #cccccc;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: auto;
}

#advanced_user_picker .advanced_user_selected_users .user_info {
    line-height: 2em !important;
}

#advanced_user_picker ul.fancytree-container {
    border: 1px solid #cccccc;
    margin-top: 10px;
    height: 100%;
    padding-left: 10px;
}

#advanced_user_picker .advanced_selected_count {
    display: inline;
}

#advanced_user_picker span.fancytree-node {
    white-space: nowrap;
}

#advanced_user_picker span.fancytree-checkbox {
    cursor: default;
}

#advanced_user_picker span.fancytree-custom-icon {
    cursor: pointer;
}

#advanced_user_picker .selected_count {
    margin-left: 5px;
}

#advanced_user_picker .selected_user_count {
    text-align: center;
    display: inline;
    position: relative;
    top: 5px;
}

#advanced_user_picker #selected_panel_heading,
#advanced_user_picker #available_panel_heading {
    padding-top: 10px;
}

#advanced_user_picker .fancytree-plain.fancytree-container span.fancytree-node.fancytree-active span.fancytree-title {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}
/* END ADVANCED USER PICKER CSS */

/* Mobile select */
.container-fluid-mobile-select {
    padding: 0px 5px;
    line-height: 50px;
    vertical-align: middle;
    display: none;
}
.container-fluid-mobile-select {
    background-color: #d9edf7;
}

a.selectedCancelMobile {
    margin-top: 8px;
    float: right;
}
a.selectAllMobile {
    margin-top: 8px;
    margin-right: 8px;
    float: right;
}

.listingSelectCheckboxMobile {
    position: relative;
    top: 11px;
    left: 10px;
    display: none;
    z-index: 1;
}
/* no icon in membership listing */
.membership .listingSelectCheckboxMobile {
    top: 8px;
}

/* make room for checkbox */
.listingSelectCheckboxMobileSpacer {
    margin-left: 16px;
}

/* prevent gaps between rows when checkbox enabled */
.mobileListingSelectionMode {
    margin-top: -22px;
}


a.mobile-list-group-item.info,
a.mobile-list-group-item.info:hover,
a.mobile-list-group-item.info:focus {
  background-color: #d9edf7;
}

/* mobile multi-metadata-type and multi-metadata-edit */

@media (max-width: 767px) {
    div.multiOp form table.generic {
        width: 100%;
    }
    div.multiOp form table.generic tr td,
    div.multiMetadataType form table.generic tr td {
        border-top: none;
        display: block;
    }
    div.multiOp form table.generic tr th {
        display: none;
    }
    div.multiOp form table.generic tr th.visible-mobile {
        margin-top: 4px;
        display: block;
        background-color: #f5f5f5;
    }
    div.multiOp h2 {
        padding: 0px;
    }
    div.multiOp .table-heading-copydownmenu {
        position: absolute;
        top: 5px;
        right: 5px;
        padding: 4px 12px;
    }
    div.multiOp .dropdown-menu.tablecopydownmenu {
        position: absolute;
        margin-top: -8px;
        right: 5px;
        top: 44px;
    }
}

/* TinyMCE */
.mce-tinymce.mce-container.mce-panel {
    min-width: 500px;
}

@media (max-width: 767px) {
    .mce-tinymce.mce-container.mce-panel {
        min-width: auto;
    }
}

/* Fix for over large status bar in TinyMCE */
.mce-path {
    padding: 0 !important;
}

/* Revision/version disabled */
.revision_disabled {
    text-decoration: line-through;
}

/* Pagination (page) Control panel */
div.pagination-footer.pagination-footer-fixed {
    position: fixed;
    bottom: 0px;
    width: 100%;
    margin-left: -15px; /* Correction for container-fluid margin and 100% width */
}

div.pagination-footer ul.pagination {
    padding: 10px;
    margin: 0;
    background-color: rgb(248,248,248); /* IE8 fallback */
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Metadata field formatting specifics */

span.dt_metadata_assigned_company {
    white-space: nowrap;
}

.view-rfc822-part-frame {
    width: 100%;
}

/* Responsive Headings */

@media (max-width: 767px) {
    h2.h2-responsive {
        font-size: 18px; /* h4 equivalent */
    }
}

/* Fix panel heading margins for headings */

.panel .panel-heading h1,
.panel .panel-heading h2,
.panel .panel-heading h3,
.panel .panel-heading h4,
.panel .panel-heading h5,
.panel .panel-heading h6 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Add a default bg colour */

.bg-default {
    background-color: #f5f5f5;
}

/* Give bg- contextual backgrounds a padding option */

.bg-padding-sm.bg-primary,
.bg-padding-sm.bg-default,
.bg-padding-sm.bg-success,
.bg-padding-sm.bg-info,
.bg-padding-sm.bg-warning,
.bg-padding-sm.bg-danger {
    padding: 10px 10px 10px 10px;
}

/* Fix for link colour when using headings, small and anchor tags */

h1 .small a, h1 a.small,
h2 .small a, h2 a.small,
h3 .small a, h3 a.small,
h4 .small a, h4 a.small,
h5 .small a, h5 a.small,
h6 .small a, h6 a.small {
    color: #337ab7;
}

.modal-body.modal-body-no-padding {
    padding: 0px;
}

/* Standard UX Framework Form Styles */

.file-upload-group label.input-group-addon {
    cursor: pointer;
}

.file-upload-group input[type='text'] {
    background-color: initial;
    cursor: pointer;
}

.file-upload-group input[type='file'] {
    display: none;
}

.panel .panel-heading h1.panel-title {
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 28px;
}
@media (max-width: 767px) {
    .panel .panel-heading h1.panel-title {
        margin: 0;
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 22px;
    }
}

.form-description {
    margin-bottom: 15px;
}

/* Remove panel border for old mako templates that aren't using new 3 part
 * format */
div.main-form-container .panel.panel-default {
    box-shadow: none;
    border: none;
}

#listing-collapse-controls {
    margin-top: -10px;
}

.listing-collapse-divider {
    margin: 10px 0;
}

.listing-collapsed {
    margin-bottom: -100px;
}

.listing-collapsed + hr {
    display: none;
}

/* Copied from the bootstrap.css .dropup .caret style */
.caret-up {
    content: "";
    border-top: 0;
    border-bottom: 4px dashed;
    /* \9 is a hack to only apply the style on ie <=9 */
    border-bottom: 4px solid\9;
}

/* Notification display settings */
#noty_layout__topRight {
    top: 65px; /* Move down to account for topbar */
    width: 400px;
}

#noty_layout__topRight .noty_bar {
    margin-bottom: 15px;
    text-align: center;
}

.suggestion-popover {
    border-radius: 0;
    left: 0 !important;
    margin-top: 0 !important;
    max-width: 85vw;
    min-width: 100%;
}

.mobile-search-popover {
    width: 95vw;
    max-width: 384px; /* Half the max xs screen width */
}

.suggestion-popover .popover-content-wrapper {
    overflow-y: auto;
}

.suggestion-popover .popover-content hr {
    margin: 10px 0;
}

.suggestion-popover .popover-content h3 {
    margin-top: 10px;
}

.suggestion-popover .popover-content h3:first-child {
    margin-top: 0;
}

.suggestion-popover .search-suggestion {
    padding: 2px 0;
}

.suggestion-popover .search-suggestion > div {
    width: 80%;
    width: calc(100%  - 25px);
    display: inline-block;
}

.suggestion-popover .classification-icon {
    margin-right: 5px;
}

.inline-search-form button.clear-inline-search-button {
    background: none;
    border: none;
    left: 0;
    position: absolute;
    top: 2px;
    transform: translateX(-100%);
}

/* Hide ie specific clear button */
.inline-search-form input[name="0_querytext"]::-ms-clear {
    height: 0;
    width: 0;
}

.well-inset {
    margin-bottom: -15px;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 10px;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

/* btn-block-mobile is full width button on small screens */
@media all and (max-width:480px) {
    div.btn-group-block-mobile {
        width: 100%;
    }

    div.btn-group-block-mobile .dropdown-menu {
        width: 100%;
    }

    a.btn-block-mobile,
    button.btn-block-mobile,
    div.btn-group-block-mobile a.btn,
    div.btn-group-block-mobile button.btn
    {
        display:block;
        margin: 0 0 5px 0 !important;
        width: 100%;
    }
}
