/* Workaround for IE8 navbar */
.navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
.navbar-inverse .nav li.dropdown.active > .dropdown-toggle,
.navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle,
.navbar, .navbar-inverse .navbar-inner, .navbar-inner {
    filter: none;
    background-image: none;
}

.visible-print { display: none !important; }

.control-group .controls #attribute_value {
    padding-top: 5px;
}

.accordion-content {
    display:none;
}

.loading-modal {
    padding: 20px;
    background-position: center center;
}

.cleaner {
    clear: both;
}

.grid-view-loading.pull-right {
    width: 16px;
    height: 16px;
    margin-top: 7px;
}

.before-input {
    padding-top: 5px;
    padding-bottom: 9px;
}

.force-black label {
    color: #333333 !important;
}

.postcode {
    padding-top: 6px;
}

.nopad {
    padding: 0 !important;
}

.nopad thead{
    padding: 0 !important;
    line-height: 0;
}

.nopad thead th, .profile-nopad thead td {
    line-height: 0;
}

#detail-view th {
    width: 250px;
}

.table .detail-view tr:first-child td {
    border-top: 0;
}

.input-append > textarea {
    cursor: pointer;
    overflow-y: hidden;
    resize: none;
    padding-right: 20px;
    width: 100%;

    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.input-append.span3 {
    position: relative;
    margin: 0;
}

.input-append > .icon-search {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 999;
    cursor: pointer;
    opacity: .5;
}

.form-horizontal .control-group > .controls > .help-block,
.form-horizontal > .help-block.error,
.control-group.error .help-block,
.form-horizontal .control-group .controls .help-block.error {
    display: block;
    vertical-align: middle;
    padding-left: 5px;
    font-size: 11px;
    font-style: italic;
    font-weight: normal;
    margin-top: 3px;
}

.form-horizontal .control-group > .controls > .help-inline {
    font-size: 11px;
    font-style: italic;
}

.form-vertical .control-group > .controls > .help-block,
.form-vertical > .help-block,
.form-vertical .help-block.error {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-style: italic;
}
@media screen {
.container .btn-primary {
    background-color: #002859;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#00527B), to(#002859));
    background-image: -webkit-linear-gradient(top, #00527B, #002859);
    background-image: -o-linear-gradient(top, #00527B, #002859);
    background-image: linear-gradient(to bottom, #00527B, #002859);
    border-color: #002859;
}

.btn-primary {
    background-color: #002859;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#00527B), to(#002859));
    background-image: -webkit-linear-gradient(top, #00527B, #002859);
    background-image: -o-linear-gradient(top, #00527B, #002859);
    background-image: linear-gradient(to bottom, #00527B, #002859);
    border-color: #002859;
    color: #FFFFFF !important;
}
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
    background-color: #002859;
}

.nav>li>a:hover,
.nav>li>a:focus,
.pagination ul>li>a:hover,
.pagination ul>li>a:focus,
.pagination ul>.active>a,
.pagination ul>.active>span {
    background-color: #CCC;
}

.text-disabled,
div.pagination a,
.placeholder {
    color: #999;
}

.pagination ul>li>a,
.pagination ul>li>span {
    background: transparent;
    border: none;
}

div.pagination {
    text-align: center;
}

.pagination ul>li>a:hover,
.pagination ul>li>a:focus,
.pagination ul>.active>a,
.pagination ul>.active>span {
    background: none;
    font-weight: bold;
    color: #002859;
}

.pagination ul.yiiPager>li.next>a,
.pagination ul.yiiPager>li.previous>a {
    border: 1px solid #999;
    padding-right: 8px;
    padding-left: 8px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;

    background: #ffffff; /* Old browsers */
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNmU2ZTYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  #ffffff 0%, #e6e6e6 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e6e6e6)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #ffffff 0%,#e6e6e6 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #ffffff 0%,#e6e6e6 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #ffffff 0%,#e6e6e6 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #ffffff 0%,#e6e6e6 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e6e6e6',GradientType=0 ); /* IE6-8 */
}

.pagination ul.yiiPager>li.next>a:hover,
.pagination ul.yiiPager>li.next>a:focus,
.pagination ul.yiiPager>li.previous>a:hover,
.pagination ul.yiiPager>li.previous>a:focus {
    color: #999;
    background: #f7f7f7; /* Old browsers */
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y3ZjdmNyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlN2U3ZTciIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  #f7f7f7 0%, #e7e7e7 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7f7f7), color-stop(100%,#e7e7e7)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #f7f7f7 0%,#e7e7e7 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #f7f7f7 0%,#e7e7e7 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #f7f7f7 0%,#e7e7e7 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #f7f7f7 0%,#e7e7e7 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#e7e7e7',GradientType=0 ); /* IE6-8 */
}

.modal {
    position: absolute;
}

.modal > .modal-header > h4 {
    word-break: break-all;
}

.modal .control-label {
    width: auto;
    min-width: 50px !important;
    max-width: 200px !important;
}

.modal .controls {
    margin-left: 0px;
}

.modal input.span3,
.modal select.span3,
.modal textarea.span3,
.modal .input-append.span3 {
    width: 98%;
}

.modal .controls > input {
    height: auto;
    padding: 6px;

    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.modal .modal-footer div:first-child {
    width: 50%;
    text-align: center !important;
}

.modal .modal-footer div:first-child + div {
    width: 50%;
}

td {
    word-wrap:break-word;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
    display: block;
    z-index: 99999;
}

.nomargin-t {
    margin-top: 0;
}

textarea {
    resize:vertical;
}

.hint {
    color: #999999;
    padding-bottom: 10px;
    font-size: 11px;
    font-style: italic;
}

.international_address fieldset {
    border: 1px solid #DDDDDD;
    padding-top: 10px;
    margin: 0;
    margin-bottom: 10px;
}

.modal-header h4 {
    font-weight: normal;
}

.ui-datepicker td .ui-state-hover {
    background: #002859;
    background-color: #002859;
    background-image: linear-gradient(to bottom, #00527B, #002859);
    border-color: #002859;
    filter:none;
}

table [id*="relatedinfo"] > td {
    padding: 0 !important;
}

.page-header {
    padding: 0px;
}
.page-header .nav {
    margin-bottom:0px;
}
.page-header h2 {
    float:left;
}
div.clear {
    clear:both;
}

.nav-pills a {


}
.nav-pills a i {
    display: block;
    float:left;
    margin-right:5px;
    padding-top:3px;
}
.nav-pills a span {
    display: block;
    float:left;
    line-height: 18px;
    vertical-align: middle;
}

.grid-view table.items th:hover a:after {
    display:none;
}

#deliveryAddresses-grid th:last-child {
    width: 36px;
}

.full-width {
    width: 100%;
}

body.loading, body.loading .linkDisabled {
    cursor: wait !important;
}

.linkDisabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.3;
}
