﻿body {
    background-color: #E5E0EE;
}
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
}
.dl-horizontal dt {
    white-space: normal;
}
.bbHeader {
    padding: 5px 30px 10px 30px;
    color: white;
    background: white;
    box-shadow: 2px 0 5px -1px rgba(0, 0, 0, 0.1), -2px 0 5px -1px rgba(0, 0, 0, 0.1);
}
#datepaginator_business {
    margin-bottom: 10px;
}
.tools-button {
    margin-top: -5px !important;
    font-size: 0.9em !important;
    height: inherit !important;
}
.sectionCodeLabel {
    margin-top: -5px;
    cursor: default;
    font-size: 0.9em !important;
}
.bbHeader,
.bbHeader h1 a {
    color: #663399;
}
.bbHeader h1 a:hover {
    text-decoration: none;
}

.bbHeader h1 {
    font-weight: bold;
    margin: 7px 5px 0 0 !important;
}
.bbHeader p {
    margin-top: 7px !important;
    margin-bottom: 0 !important;
    font-size: 17px !important;
}

.spLogo a:focus img {
    outline-style: dotted;
    outline-width: thin;
    outline-color: #7a52a8;
}

.spLogo img {
    height: 70%;
    width: 70%;
    margin: 3px 7px 3px 0;
    float: right;
}
.bbNav .navbar-static-top {
    border-width: 0 0 0;
}
.bbNav .navbar-inverse {
    /*background-color: #A998C6;*/
    background-color: transparent;
    border-color: #663399;
}
.bbNav .container > .navbar-collapse {
    margin-right: -15px;
    margin-left: -15px;
}

@media (max-width: 1200px) {
    .bbNav .gaelic-head {
        display: none;
    }
}
.bbNav {
    background-color: #7a52a8;
}
.bbNav .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
    border-color: #663399;
}
.bbNav .navbar-inverse .navbar-toggle {
    border-color: #663399;
}
.bbNav .navbar-inverse .navbar-toggle .icon-bar {
    background-color: #A998C6;
}
.bbNav .navbar-inverse .nav > li > a {
    text-align: center;
    color: #EDEDED;
    background-color: #663399;
    /*background-color: #866FAF;*/
    border: 1px solid #663399;
    border-top: 2px solid #663399;
    border-bottom: 2px solid #663399;
    min-height: 65px;
}
.bbNav .navbar-inverse .nav > li.bus-calendar > a {
        background: #523376 url(/public/20170914140608oe_/https://bb.parliament.scot/images/icons/note-white.png) no-repeat 18px 60px !important;
}
.bbNav .navbar-inverse .nav > li:last-child a {
    border-right: 2px solid #663399;
}
.bbNav .navbar-inverse .nav > li:first-child a {
    border-left: 2px solid #663399;
}
.bbNav .navbar-inverse .nav > li > a:hover, 
.bbNav .navbar-inverse .nav > li.active > a, 
.bbNav .navbar-inverse .nav > li > a:focus {
    color: #663399;
    background-color: #fff;
}

h2#sectionHeading {
    text-transform: uppercase !important;
    font-size: 16px !important;
    line-height: 18px !important;
    display:inline;
}

 #calendarPortlet .nav-tabs > li.active > a:focus{
    background-color: #eee !important;
}

#sectionSpinner {
    min-height: 50px;
}

/* Business calendar */
/*--------------------------------------------*/
#dailyAnnouncements {
    margin-bottom: 10px;
}
#dailyAnnouncements a {
    text-decoration: underline;
    color: blue;
}
#dailyAnnouncements .alert h4.alert-heading {
    margin-bottom: 3px;
    font-weight: bold;
    color: rgb(68, 68, 68);
}
#dailyAnnouncements .alert {
    background-color: rgba(137, 196, 244, 0.4);
    padding: 10px 35px 10px 10px;
    margin: 0 0px 5px 0px;
    color: rgb(68, 68, 68);
}
    #dailyAnnouncements .alert .close {
        margin-top: 10px;
    }
.revisedPreamble .alert {
    padding: 10px 15px;
    margin-bottom: 5px;
}
.revisedPreamble .alert.alert-warning {
    background-color: rgba(255, 87, 34, 0.6);
    color: rgb(68, 68, 68);
}
.revisedPreamble .alert.alert-info {
    background-color: rgba(137, 196, 244, 0.4);
    color: rgb(68, 68, 68);
}
.revisedPreamble .alert-dismissable .close, 
.revisedPreamble .alert-dismissible .close {
    top: 5px;
    right: 0;
}
#calendarPortlet .tab-content {
    min-height: 150px;
    padding-bottom: 0;
}
#calendarPortlet .tab-pane {
    padding-bottom: 15px;
}
#calendarPortlet .lastUpdated {
    position: absolute;
    right: 0;
    top: -7px;
    font-size: 0.65em;
}
#calendarPortlet {
    position: relative;
}
#calendarPortlet,
#parliamentPortlet .portlet {
    margin-bottom: 0;
}
#calendarPortlet .nav-tabs > li.active > a {
    font-weight: bold;
}
#calendarPortlet .nav-tabs > li.active > a, 
#calendarPortlet .nav-tabs > li > a:focus, 
#calendarPortlet .nav-tabs > li > a:hover {
    color: #603494;
}
#calendarPortlet .casAgendaItem blockquote {
    font-size: 1em;
    padding: 5px;
    margin: 0;
}
#calendarPortlet .casAgendaItem a {
    line-height: 21px;
}
#calendarPortlet .casAgendaItem blockquote > a:first-of-type:before,
#calendarPortlet .casAgendaItem br + a:before {
    content: "" !important;
    white-space: normal !important;
}
#calendarPortlet .casAgendaItem a:before {
    content:"\A";
    white-space: pre;
}
.motionsScreen.lastUpdated {
    right: 5px;
    top: 5px;
}
#motionsScreen .portlet-body {
    position: relative;
}
.questionsScreen.lastUpdated {
    right: 5px;
    top: 5px;
}
#questionsScreen .portlet-body {
    position: relative;
}
.lastUpdated {
    position: absolute;
    font-size: 0.65em;
}
#otherPortlet .lastUpdated {
    right: 5px;
    bottom: 0;
}
#otherPortlet {
    position: relative;
}

/* Share Buttons */

ul.share-buttons{
    list-style: none;
    padding: 0;
    margin-top: -15px !important;
}
ul.share-buttons li{
    display: inline;
}
ul.share-buttons li button {
    height: 25px !important;
    margin-left: 20px;
}
ul.share-buttons img {
    width: 25px;
    height: 25px;
}
ul.share-buttons a:hover, 
ul.share-buttons a:focus {
    text-decoration: none;
}

/*footer*/
.page-footer {
    padding: 10px 0;
    background: #523376;
}
.page-footer .container {
    text-align: center;
}
.page-footer span,
.page-footer a {
    color: #aaa;
    padding: 0 10px;
}
.scroll-to-top {
    color: #dadee3;
    bottom: 2px;
}
.scroll-to-top span {
    opacity: 0.7;
    vertical-align: super;
    padding-right: 5px;
}
    .scroll-to-top span:hover {
        opacity: 1;
    }
.scroll-to-top > i {
    font-size: 25px;
    color: #dadee3;
}

.portlet-title.slim {
    min-height: 0 !important;
}
.portlet-title.slim .caption,
.portlet-title.slim .actions,
.portlet-title.slim .tools {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.portlet-title .caption.slim {
    padding: 0 !important;
}
.personLabel {
    margin-right: 10px;
}
.parlAgendaItem .general-item-list > .item > .item-body {
    color: rgb(68, 68, 68);
}
/*.parlAgendaItem hr {
    margin: 10px 0;
    border-top-color: #ccc;
}
    .parlAgendaItem hr:last-of-type {
        display: none;
    }*/
.parlAgendaItem .general-item-list > .item {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}
#motionsPortlet {
    min-height: 100px;
}
#questionsPortlet {
    min-height: 100px;
}
.motionsDisplay .mix-grid,
.questionsDisplay .mix-grid {
    margin-top: 10px !important;
}
.motionsDisplay ul.mix-filter,
.questionsDisplay ul.mix-filter {
    margin-bottom: 0;
}

.announcements h4 {
    margin-top: 0;
    margin-bottom: 2px;
}
.news-blocks a.news-block-btn:hover > i,
.news-blocks a.news-block-btn:hover {
    color: #78cff8 !important;
    text-decoration: none;
}
.news-blocks a.news-block-btn.clickForDetails {
    text-align: left;
    text-decoration: underline;
    font-size: 1em;
    padding: 0 0 8px 0;
    margin-top: -8px
}
.news-blocks div.news-block-btn.supports {
    max-height: 54px;
    overflow: hidden;
}
.news-blocks h3 {
    line-height: 25px;
}
.news-blocks .news-bottom a.news-block-btn {
    float: right;
    display: inline;
}
.news-blocks ul.share-buttons {
    margin-bottom: 0;
    margin-top: 0 !important;
    float: left;
}
.news-blocks .news-bottom {
    position: absolute;
    bottom: 5px;
    width: 100%;
    padding-right: 10px;
}
.news-blocks .news-bottom ul.share-buttons {
    margin-bottom: 5px;
}

/*Timeline override*/
.timeline li.timeline-parl-dark-blue .timeline-body {
    background: #223A57 !important;
    background: rgba(34, 58, 87, 1) !important;
}
.timeline li.timeline-parl-dark-blue .timeline-body:after {
    border-right-color: #223A57 !important;
    border-right-color: rgba(34, 58, 87, 1) !important;
}
.timeline li.timeline-parl-green .timeline-body {
    background: #6F9048 !important;
    background: rgba(111, 144, 72, 1) !important;
}
.timeline li.timeline-parl-green .timeline-body:after {
    border-right-color: #6F9048 !important;
    border-right-color: rgba(111, 144, 72, 1) !important;
}
.timeline li.timeline-parl-jade .timeline-body {
    background: #2B936F !important;
    background: rgba(43,147,111, 1) !important;
}
.timeline li.timeline-parl-jade .timeline-body:after {
    border-right-color: #2B936F !important;
    border-right-color: rgba(43,147,111, 1) !important;
}
#calendarPortlet .time {
    font-size: 1.2em !important;
    font-weight: bold !important;
    padding-top: 0 !important;
    color: #777 !important;
}
#calendarPortlet .timeline > li .timeline-body h2 {
    color: #fff;
}
#calendarPortlet .timeline-time {
    z-index: 1;
}
#calendarPortlet .timeline:before {
    left: 23% !important;
}
#calendarPortlet .timeline-icon {
    left: 24% !important;
}
#calendarPortlet .timeline > li .timeline-body {
    margin: 0 0 15px 29% !important;
}
#calendarPortlet .timeline-body h2 {
    font-size: 1em !important;
    margin-bottom: 0 !important;
}
#calendarPortlet .timeline > li .timeline-body:after {
    top: 10px !important;
}
#calendarPortlet .timeline > li .timeline-icon {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}
.timeline li.timeline-parlPurple .timeline-body:after {
  border-right-color: #7a52a8 !important;
}
.timeline li.timeline-parlPurple .timeline-body {
  background: #7a52a8 !important;
}
.timeline li.timeline-parlPurple .timeline-time span.time {
  color: #7a52a8 !important;
}

#calendarPortlet .parlMeeting,
#calendarPortlet .casMeeting {
    cursor: pointer;
}

/*Date paginator*/
.datepaginator a {
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
}
.dp-off {
    background-color: #3FB5EE !important;
    background-color: rgba(63,181,238,0.4) !important;
    color: rgb(68, 68, 68) !important;
}
.datepicker table tr td.disabled, .datepicker table tr td.disabled {
    text-decoration: line-through !important;
}

.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
    color: #6b4892 !important;
}

.datepicker table tr td.old, .datepicker table tr td.new {
    color: #6b4892 !important;
}

.dp-selected {
    background-color: #DBB432 !important;
    background-color: rgba(219,180,50, 0.6) !important;
    color: #000 !important;
    width: 140px !important;
}
.dp-selected i {
    color: #000 !important;
}
a.dp-item.dp-selected:focus {
    background-color: #f7e797 !important;
}
.pagination > li > a, 
.pagination > li > span {
    border: 1px solid #aaa !important;
}

.popover {
    background: #7a52a8;
    color: #fff;
    text-align: center;
}

div[id^="ajaxModal_BB"] .modal-header,
div[id^="ajaxModal_BB"] .modal-body {
    padding-left: 30px;
    padding-right: 30px;
}

.docHtml {
    max-height: 450px;
    overflow-y: scroll;
}
.docHtml p span {
    width: 90% !important;
    line-height: 18px;
}
.docHtml p {
    padding: 4px 0 !important;
}

/*Motion/Question details page*/
#questionPortlet,
#motionPortlet,
#drawPortlet {
    position: relative;
}
#questionPortlet .lastUpdated,
#motionPortlet .lastUpdated,
#drawPortlet .lastUpdated {
    right: -15px;
    bottom: -15px;
}
#questionPortlet .personLink,
#motionPortlet .personLink {
    font-size: 1.3em;
}
#drawPortlet .personLink {
    font-size: 1em;
    padding-right: 15px;
}
#drawPortlet blockquote {
    font-size: 1.3em;
}
#drawPortlet blockquote .row {
    margin-bottom: 4px;
}
#drawPortlet .general-item-list > .item {
    padding: 0;
}
#questionPortlet .item-status,
#motionPortlet .item-status {
    top: 3px
}
#questionScreen .portlet-title,
#motionScreen .portlet-title {
    min-height: 35px
}
#questionPortlet blockquote,
#motionPortlet blockquote {
    font-size: 15px;
    color: #666 !important;
}
#questionScreen .portlet-title .caption,
#questionScreen .portlet-title .tools,
#motionScreen .portlet-title .caption,
#motionScreen .portlet-title .tools {
    padding-bottom: 0px !important;
}
#questionScreen.portlet.light,
#motionScreen.portlet.light {
    margin-bottom: 0 !important;
}
div[id^="ajaxModal_Question"] .modal-body,
div[id^="ajaxModal_Motion"] .modal-body {
    padding: 0;
}
#questionPortlet .questionText,
#motionPortlet .motionText,
#drawPortlet .questionText {
    max-height: 400px;
}
.text-black {
    color: black !important;
}
.text-white {
    color: white !important;
}
.text-grey {
    color: #9d9d9d;
}

/*Archive filters*/
.archive-filter li {
    color: #555;
    cursor: pointer;
    padding: 6px 15px;
    margin-right: 2px;
    margin-bottom: 5px;
    background: #eee;
    display: inline-block;
}
.archive-filter {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}
.archive-filter li:hover, 
.archive-filter li.active {
    color: #fff;
    background: #0da3e2;
}
.pdfBtn {
    position: relative;
    float: left;
    width: 150px;
    height: 80px;
    margin: 5px;
    cursor: default;
}
.pdfBtn h4 {
    margin: 0 0 6px 0;
 }
.pdfBtn h5 {
    margin: 0 0 5px 0;
 }
.height80 { height: 80px; }
.height100 { height: 100px; }
.height120 { height: 120px; }
.height140 { height: 140px; }
.height160 { height: 160px; }
.height180 { height: 180px; }
.height200 { height: 200px; }

.grid:after {
  content: '';
  display: block;
  clear: both;
}
.publicStatus {
    color: #666;
}
#archiveControl {
    min-height: 60px;
}


/*caption-helper Override*/
.portlet > .portlet-title > .caption > .caption-helper {
    color: #445159 !important;
}

.bb-sitemap li {
	padding-top: 10px;
	list-style: none;
}
.bb-sitemap label {
	border-bottom: 1px solid #ccc;
	width: 100%;
	padding-bottom: 10px;
	cursor: pointer;
}
.bb-sitemap li ul li {
	list-style: inside;
	color: #00CDAB;
	padding-left: 10px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 10px;
}
.bb-sitemap a {
	color: #444;
}
.bb-sitemap h4 {
    padding-left: 40px;
}
.bpError {
    margin-top: 150px;
    margin-bottom: 150px;
}
.bpError .btn {
    margin-bottom: 25px;
}
.bpError .page-500 .btn {
    margin-bottom: 10px;
}
.bpError,
.bpError h3 {
    font-weight: 600;
}
.bpError a[data-target]:hover,
.bpError a[data-target]:active,
.bpError a[data-target]:focus {
    text-decoration: none;
}
.bpError .page-404 .number {
    top: 0;
}
#errorModal .modal-footer {
    padding: 0;
}
#errorModal .isInfo {
    padding: 15px;
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}
#errorModal .isError {
    color: #a94442 !important;
    background-color: #f2dede !important;
    border-color: #ebccd1 !important;
    color: #a94442 !important;
    padding: 15px;
}

.portlet.errorPortlet {
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 5px;
}
    .portlet.errorPortlet .sectionCodeLabel {
        margin-top: -2px;
    }

.share-buttons .custombb.social-icon {
    margin-bottom: -9px;
    width: 25px;
    height: 25px;
    background: url(/public/20170914140608oe_/https://bb.parliament.scot/img/social/custombb-unselected.png) no-repeat;
}
    .share-buttons .custombb.social-icon.unselected {
    }
    .share-buttons .custombb.social-icon.selected {
        background: url(/public/20170914140608oe_/https://bb.parliament.scot/img/social/custombb-selected.png) no-repeat;
    }
.share-buttons .custombb.social-icon:hover {
    background-position: 0 -35px;
}
#accordionCustomBB .lastUpdated,
#accordionCustomBB .custombb.social-icon {
    display: none !important;
}
#accordionCustomBB .partialContents > .portlet {
    margin-bottom: 0;
}
.min-height60 {
    min-height: 60px;
}

#parlBusCalendar_custom .tabbable-tabdrop ul.nav li a h5,
#comBusCalendar_custom .tabbable-tabdrop ul.nav li a h5 {
    margin-top: 0;
    margin-bottom: 0;
}
.tools ul.share-buttons {
    display: inline-block;
}
.tools .btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: not-allowed !important;
    filter: alpha(opacity=65) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    opacity: .65 !important;
}

#accordionCustomBB .mix-grid .mix {
     opacity: inherit; 
     display: block; 
}

#calendarPortlet ul.nav ul.share-buttons {
    margin-top: 0 !important; 
}