/* New layout styles */
@import "layout.css";
@import "navbar.css";
@import "sidebar.css";
@import "footer.css";
@import "collapse.css";
@import "fieldset.css";

.container-fluid {
    max-width: 98%;
}

.no-margins {
    margin: 0;
}

.header-alert {
    margin-top: 20px;
}

.has-feedback label ~ .form-control-feedback {
    top: 29px;
}

#category-header.category-header-solid {
    background: #00539b;
}
.table {
    /* Overwrite the frankly bizarre choice of "calc(3vw + 1em)" imposed by DPL */
    margin-bottom: 20px;
}
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td {
    padding: 10px;
}

.panel {
    margin: 0 auto 2em;
}

.form-control {
    height: 38px; /* Otherwise any letter with a tail gets cut off */
}

#accordion {
    margin-bottom: 20px;
}

#accordion h3 {
    font-size: 18px;
    line-height: 27px;
}
#summary-header > h1,
#summary-header{
    margin-top: 0;
}

.control-group {
    padding-bottom: 5px;
}

form .form-group label {
    color: #454545;
    font-weight: bold;
}

form label.radio {
    font-weight: normal;
}

[class^="status-"], [class*=" status-"] {
    background-repeat: no-repeat;
    display: inline-block;
    height: 16px;
    line-height: 16px;
    vertical-align: text-top;
    width: 20px;
}

.status- {
    background-image: url("../img/attention.png");
}

.status-true {
    background-image: url("../img/tick.png");
}

.status-false {
    background-image: url("../img/incomplete.png");
}

.status-optional {
    background-image: url("../img/optional.png");
}

.status-attention {
    background-image: url("../img/attention.png");
}

.status-edit {
    background-image: url("../img/edit.png");
}

.ref-count {
    margin-left: 4px;
}

#users {
    margin-top: 20px;
}

#add-user {
    margin-top: 10px;
}

#user-found {
    display: none;
    cursor: pointer;
}

#add-form-container {
    margin-top: 10px;
}

#add-file-container {
    padding: 10px 0;
    margin-bottom: 10px;
}

.expense-amount {
    font-size: smaller;
}

.select2-hidden-accessible {
    display: none !important;
    visibility: hidden !important;
}
/*
    This function layers the datepicker popup above bootstrap's modal window
    We previously did this in JS but screen.css has "z-index: 1000 !important" in it <sigh>
*/
.ui-datepicker {
    z-index: 2000 !important;
}
.ui-datepicker-trigger {
    cursor: pointer;
}

.offset1 {
    margin-left: 100px !important;
}

.ui-widget {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 13px;
}

.ui-widget .ui-widget {
    font-size: 1em;
}

.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 13px;
}

.ui-widget-content a {
    color: #0088CC;
}

span.requiredField {
    color: red;
    font-size: 1.2em;
    padding: 0 2px;
}

.summary-edit-button{
    position:absolute;
    top:-1px;
    right:-1px;    
}

pre {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important;
    word-wrap: normal;
    background: white;
    border: none;
    white-space:pre-wrap;
}

.justify-text{
    text-align: justify;
}

.watermark,
#print-header {
    display: none;
}

.nav-stacked-padding {
    color: #ffffff !important;
}

.unfilledMandatory{
    padding: 10px 35px 10px 15px;
    background-color: #fff4f4;
    border: 1px solid #ff5e5e;
    border-radius: 4px;
}

#login-alert{
    margin-top: 10px;
    margin-bottom: 0;
    padding:5px 10px 0 10px !Important;
}

#ajax-modal1 {
    width: 25%;
    position: fixed;
    top:50%;
    margin-left:auto;
    margin-right:auto;
    min-width: 300px;
    width:115px;
    height:142px
}
#ajax-modal {
    position: fixed;
    background:none;
    margin:auto;
    overflow: hidden;
    border: none;
    display: flex;
    align-items: center;
}

.wordwrap {
    word-wrap: break-word;     
}

.thick-border td {
    border-top: 2px solid #000 !important;
}

.select2-wrapper {
    position: relative;
}

.select2-container .select2-choice > .select2-chosen {
    white-space: normal;
}

.select2-wrapper select, .select2-wrapper input {
    position: absolute;
    top: 88%;
    left: 50%;
    height: 0;
    width: 0;
    display: block !important; /* Not very nice but we need to do this as 3.5.2 breaks html validation */
    z-index: -1;
}

@media (min-width: 769px) {
    .card-list-uls{
        break-inside: avoid-column; /* W3C */
        -webkit-column-break-inside: avoid; /* Safari & Chrome */
        -moz-column-break-inside: avoid; /* Firefox */
        -ms-column-break-inside: avoid; /* Internet Explorer */
        -o-column-break-inside: avoid; /* Opera */
        page-break-inside: avoid
    }
    .card-list{
        -moz-column-count: 3;
        -moz-column-gap: 10px;
        -webkit-column-count: 3;
        -webkit-column-gap: 10px;
        column-count: 3;
        column-gap: 10px;
    }

    .two-col-block{
        -moz-column-count: 2;
        -moz-column-gap: 15px;
        -webkit-column-count: 2;
        -webkit-column-gap: 15px;
        column-count: 2;
        column-gap: 15px;
    }
}

.row_success{
    font-weight:bold;
    color:#194214;
    border-left:4px solid #194214;
}

td > ul,
td > ul{
    padding-left: 10px;
}
.row_danger{
    font-weight:bold;
    color:#7D241F;
    border-left:4px solid #7D241F;
}
.date > .input-group-addon:hover{
    cursor: pointer;
}

.panel-heading {
    font-size: 21px;
}

.panel.section .panel-heading .totals {
    display: inline-block;
    text-align: right;
    font-size: 18px;
}

.totals .claimed-total, .totals .authorised-total, .panel-controls {
    display: inline-block;
    margin-left: 1em;
    vertical-align: top;
}

.section .totals h4 {
    margin: 0;
}

.panel.section .panel-title {
    margin: 0;
}

.panel-title {
    font-size: 21px;
}

.section .panel-body {
    padding-bottom: 0;
}

.section .panel-heading a {
    color: white;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 2px;
    margin-right: 10px;
}

.section .btn-sm {
    /* So all the buttons appear the same width as the button with the most text */
    min-width: 103px;
}

.section .subtotal {
    margin: 10px 0;
}

.panel-left, .panel-right {
    display: inline-block;
}

.panel-right {
    float: right;
}

form .form-group label.error {
    color: #ee3224;
}

#account {
    position: relative;
}

#existing-accounts .callout {
    cursor: pointer;
}

#existing-accounts .callout p {
    word-wrap: break-word;
}

.account h4 {
    position: relative;
}

.button-bar {
    white-space: nowrap;
    text-align: center;
    width: 5em;
}
.fa.seamless-button {
    background: none;
    border: none;
    width: 2em;
    margin-left: 3px;
    margin-right: 3px;
    padding: 0;
}
.fa.seamless-button:hover, .fa.seamless-button:focus {
    text-decoration: none;
}
.fa.edit-button, .fa.delete-button, .fa.close-button {
    color: #fff;
}
.edit-data {
    display: none;
}

.delete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9A3B36;
    filter:alpha(opacity=50);
    -moz-opacity:0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
    z-index: 9000;

}
.abort-delete{
    margin: 0 auto;
    vertical-align: middle;
        opacity: 1;
    display: block;
}

#current-files {
    table-layout: fixed;
}

.associated-expenses {
    font-size: smaller;
}

.badge {
    vertical-align: bottom;
}

/* Callout */
.account {
    padding: 15px;
}

/* bug fixes - Start */

.input-group.col-lg-12{
    padding-left: 0;
    padding-right: 0;
}

.page-header .row,
.controls.row{
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
}

a.panel-heading{
    display:block;
}

/* decoration of checkbox and radio in the controls -- Start */

label.checkbox{
    font-weight: normal;

}
label input[type=radio],
label input[type=checkbox]{
    margin: 2px 0 0;
}
.controls .radio:first-child,
.controls .checkbox:first-child{
    margin-top: 0;
}
.controls .radio.col-xs-6:first-child,
.controls .checkbox.col-xs-6:first-child{
    margin-top: -5px;
}

/* decoration of checkbox radio in the controls --- END */

/* bug fixes - END */

.input-full{
    width: 100%;
}

#reset-search {
    margin-right: 10px;
}

@media (max-width: 767px) {
    .input-mini,
    .input-small,
    .input-medium,
    .input-large,
    .input-xlarge,
    .input-xxlarge{
        width: 100%;
    }
    .select2-wrapper {
        font-size: small;
    }
  #user-actions{
      padding-left: 30px !important;
      max-width: 150px;
      color:white;
  }
}

/* C. Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 991px) {
   .input-mini {
        width: 20%;
    }
    .input-small {
        width: 25%;
    }
    .input-medium {
        width: 40%;
    }
    .input-large {
        width: 60%;
    }
    .input-xlarge {
        width: 75%;
    }
    .input-xxlarge {
        width: 90%;
    }
    .select2-wrapper {
        font-size: small;
    }
}

/* D. Standard Desktop */
@media (min-width: 992px) {
    .input-mini {
        width: 15%;
    }
    .input-small {
        width: 20%;
    }
    .input-medium {
       width: 45%;
    }
    .input-large {
        width: 60%;
    }
    .input-xlarge {
        width: 75%;
    }
    .input-xxlarge {
        width: 85%;
    }
    .set-right{
        float: right;
    }
    .set-left{
        float: left;
    }
}

/* E. Large desktop */
@media (min-width: 1200px) {

    .input-mini {
        width: 15%;
    }
    .input-small {
        width: 20%;
    }
    .input-medium {
        width: 35%;
    }
    .input-large {
        width: 50%;
    }
    .input-xlarge {
        width: 65%;
    }
    .input-xxlarge {
        width: 80%;
    }
}

.white-card {
    position: relative;
    background: white;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    padding: 15px;
    margin: 0 0 15px 0;
    border: 1px solid rgb(204, 204, 204);

}

.white-card .card-title{
    margin-left: -23px;
    margin-bottom: 7px;
    margin-top: -14px !Important;
    border-left: 3px solid #464646;
    padding: 3px 5px 3px 5px;
    background-color: #f5f5f5;
}

.card-title.card-danger {
    color: #8A3736;
    background-color: #fcf2f2;
    border-color: #D02024;
}

.card-title.card-warning {
    color: #714E0A;
    background-color: #FFF7CF;
    border-color: #F6D10B;
}

.card-title.card-info {
    color: #004F6A;
    background-color: #F0F8FF !Important;
    border-color: rgb(0, 136, 204);
}

.card-title.card-success {
    color: #468847;
    background-color: #dff0d8;
    border-color: #85b65b;
}

.white-card legend{
    font-weight: bold;
    margin-bottom: 0;
    margin-top: -10px;
    padding-bottom: 3px !Important;
}

.white-card ul{
    margin: 10px 0 0 0;
    list-style: none;
    padding: 0;
}

.white-card address {
    margin: 10px 0 0 0;
}

.white-card strong {
    color: #468847;
}

.white-card p {
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .white-card p {
        margin: 20px 0 0 0 !important;
    }
}

.white-card small {
    font-size: 80%;
}

.white-card .card-actions {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 3px 10px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    z-index:999;
}

.white-card .card-attachments {
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 3px 10px;
    font-weight: bold;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.white-card .claim-processing {
    margin-top: 20px;
}

.alert-success a {
    color: #fff;
}

.alert>p+p {
    margin-top: 10px;
}

input:invalid, textarea:invalid {
    border: 1px solid #c22a22;
}

#save-purpose {
    margin-top: 10px;
}

#claim-checked {
    display: inline-block;
}

.further-info {
    display: none;
    font-size: smaller;
}

.help-block {
    font-size: smaller;
}

.collapse-wrapper {
    cursor: pointer;
}

.collapse-toggle {
    float: right;
}

.collapse-wrapper[aria-expanded='false'] .collapse-toggle {
    transform: rotate(90deg);
}

.loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(27,116,195, 0.2);
    border-right: 1.1em solid rgba(27,116,195, 0.2);
    border-bottom: 1.1em solid rgba(27,116,195, 0.2);
    border-left: 1.1em solid #1b74c3;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu {
        background-color:#1b74c3
    }
}

.morecontent span {
    display: none;
}

#attachments label {
    cursor: pointer;
}

#attachments .attachment-checkbox {
    height: 20px;
    width: 20px;
}

.attachment-link {
    margin-left: 5px;
}

.attachment-link:not(:last-of-type):after {
    content: ",";
}

#fast-track-authorise {
    margin-right: 20px;
}

section.last-section,
section.only-section,
section.section {
    margin-top: 20px;
}
section.first-section {
    margin-top: 0;
}
section.last-section, section.only-section {
    margin-bottom: 30px;
}
section.no-margin {
    margin-top: 0;
}

.dt-pre {
    margin-bottom: 10px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    color: #999 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #f9f9f9;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #d1eeff;
    border: 1px solid #a9eeff;
    color: #333 !important;
}
.dt-post {
    margin-top: 10px;
}

/* Manage claimants page */
.user-select,
#new-claimant,
#new-claim {
    cursor: pointer;
}
.user-select .fa,
#new-claimant .fa,
#new-claim .fa {
    margin-top: 5px;
}
#new-claim-panel {
    margin-top: 20px;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    border-color: #ddd;
    background: #d1eeff;
}

/* Search for claims page */
span#search-results-export {
    display: inline-block;
    margin-top: -6px;
}

.claim-summary {
    display: flex;
}
.claim-summary span {
    flex: 1;
}
.claim-summary span:nth-of-type(1) {
    text-align: center;
}
.claim-summary span:last-of-type {
    text-align: right;
}

.secondary-legend {
    font-size: 22px;
}

.well p {
    margin-bottom: 10px;
}

/* Expense form */
.attachment-list {
    overflow-wrap: break-word;
}

.attachment-relation {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 4px;
    margin-right: 4px;
}

.modal-content {
    padding-top: 10px;
}
.modal-body {
    padding: 0;
}
.modal-footer {
    margin-top: 20px;
    padding-right: 0;
    padding-left: 0;
}

.excludeCell a {
    display: block;
    margin: 6px 0;
}

#claim-controls {
    margin-top: 2rem;
}

@media (max-width: 979px) and (min-width: 768px) {
    body {
        padding-top: 0;
    }
}

.callout {
    padding: 20px;
    margin-bottom: 20px
}

.callout.no-siblings {
    margin-bottom: 0
}

.callout h4 {
    margin-top: 0;
    margin-bottom: 5px
}

.callout p:last-child {
    margin-bottom: 0
}

.callout.callout-default {
    border-left: 5px solid #202024
}

.callout.callout-default h4, .callout.callout-default a {
    color: #202024
}

.callout.callout-primary {
    border-left: 5px solid #00539b
}

.callout.callout-primary h4, .callout.callout-primary a {
    color: #00539b
}

.callout.callout-success {
    border-left: 5px solid #00853f
}

.callout.callout-success h4, .callout.callout-success a {
    color: #00853f
}

.callout.callout-danger {
    border-left: 5px solid #ea1a13
}

.callout.callout-danger h4, .callout.callout-danger a {
    color: #ea1a13
}

.callout.callout-warning {
    border-left: 5px solid #bf5909
}

.callout.callout-warning h4, .callout.callout-warning a {
    color: #bf5909
}

.callout.callout-info {
    border-left: 5px solid #007bc2
}

.callout.callout-info h4, .callout.callout-info a {
    color: #007bc2
}

.toggle-information {
    margin-right: 2rem;
}
