img {
    max-width: 100%; /* Fix overflowing images */
}
.modal {
    padding-top: 0;
}
.doc-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 80px;
}
.doc-card-container .clear {
    clear: both;
    font-size: 16px;
    margin-top: 5px;
}
.doc-card {
    flex-basis: calc(25% - 7.5px);
    background: #f0f0f0;
    margin-bottom: 10px;
    padding: 10px;
}
.doc-card.wildcard {
    background: #adc4e5;
    border: 1px solid #1b5278;
}

.doc-card h3 {
    min-height: 2.5em;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid rgb(51, 51, 51);
    padding-bottom: 5px;
}
.doc-card h3 input {
    display: inline-block;
    width: 75%;
    margin-right: 1em;
}
.doc-preview {
    border: 1px solid #cccccc;
    background: #ffffff;
    position: relative;
    height: 0;
    padding-top: 66.67%;
}
.doc-preview button {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    border: none;
    display: block;
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #666;
    background: #dddddd;
    outline: none;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
}

.doc-preview-order-at {

    position: absolute;
    top: 0;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.doc-preview-order-at div {
    text-align: center;
    transform: translateY(-50%);
    top: 50%;
    position: relative;
}
.doc-preview-order-at .order-date {
    display: block;
    font-size: 1.8em;
}

.doc-card-container .doc-preview-order-at.delivered {
    top: unset;
    height: 50px;
    bottom: 0;
}
.doc-card-container .doc-preview-order-at.delivered .order-date {
    font-size: 1em;
}

.doc-preview button.enabled {
    opacity: 1;
}

.doc-preview button:first-of-type {
    right: 45px;
}
.doc-preview img, .doc-preview object, .doc-preview iframe, .doc-preview embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.doc-preview img {
    cursor: zoom-in;
}
.doc-preview img:hover {
    opacity: 0.7;
}

.clearfix {
    content: '';
    display: block;
    clear: both;
}

.name-preview {
    position: absolute;
    width: 100%;
    /* height: 100%; */
    top: 0;
    left: 0;
    color: white;
    text-align: center;
    vertical-align: middle;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
}
.doc-preview .status {
    width: 50px;
    font-size: 40px;
    padding: 5px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.5);
}
.finance-row .status {
    width: 30px;
}

.fa-minus-circle {
    color: #cc1e3b;
    font-size: 1.5em;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}


.status {
    font-size: 24px;
    text-align: center;
    font-family: FontAwesome;
}
.status i {
    display: block;
}
.status-ok {
    color: #759964;
}
.status-fail {
    color: #cc1e3b;
}
.doc-preview img {
    max-height: 100%;
    width: auto;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.doc-actionplane {
    margin: 10px 0;
    min-height: 34px;
}
.doc-actionplane .vspacer {
    display: inline-block;
    background: #999;
    width: 1px;
    margin-right: 10px;
    height: 34px;
    vertical-align: middle;
}
.doc-actionplane .btn {
    margin: 0 10px 0 0;
}

.finance-docs {
    position: relative;
}
.finance-docs .btn-primary {
    position: absolute;
    top: 15px;
    right: 15px;
}

.zip-wrapper .download-link {
    margin-top: 0.5em;
}

.finance-form {
    display: flex;
    justify-content: space-around;
}
.finance-form .finance-container {
    width: 30%;
}

.finance-desc {
    width: calc(100% - 60px);
    display: inline-block;
}
.finance-body .finance-desc {
    font-weight: normal;
    margin-bottom: 0;
}
.finance-body .finance-desc[for] {
    cursor: pointer;
}
.finance-header {
    color: #1b5278;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: flex-end;
}
.finance-header .finance-desc {
    border-bottom: 1px solid #1b5278;
}
.finance-header .rotate {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}
.finance-header .rotate span {
    line-height: 30px;
}
.finance-body {
    padding-left: 1.2em;
}
.finance-body .finance-row {
    border-bottom: 1px solid #cccccc;
    display: flex;
    line-height: 30px;
    align-items: center;
}
.finance-row:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}
.finance-action {
    display: inline-block;
    width: 30px;
    vertical-align: middle;
    text-align: center;
}

.finance-status span, .finance-action span {
    transform: translateY(5px);
    display: inline-block;
}
.doc-status-desc {
    display: inline-block;
    min-width: 15%;
}

.segment {
    border-top: 2px solid #1b5278;
}

h2.segment {
    font-size: 24px;
    margin-top: 2em;
}
.segment span {
    display: inline-block;
    background: #1d5278;
    color: #ffffff;
    padding: 10px 20px;
    transform: translate(1em, -50%);
}

.buttonplane {
    float: right;
}

.less-more-trigger {
    text-decoration: underline;
    cursor: pointer;
    color: #1b5278;
    font-size: 12px;
}
.less-more-hidden {
    display: none;
}
legend .less-more-trigger {
    color: white;
}

.ui-widget.ui-widget-content {
    z-index: 10000;
}

/** Overwrite some bootstrap colors **/
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
    background-color: #1d5278;
}

.doc-card {
    flex-basis: calc(100% - 7.5px);
}

@media screen and ( min-width: 840px )
{
    .doc-card {
        flex-basis: calc(50% - 7.5px);
    }

}
@media screen and ( min-width: 1140px )
{
    .doc-card {
        flex-basis: calc(33% - 7.5px);
    }

}
@media screen and ( min-width: 1400px )
{
    .doc-card {
        flex-basis: calc(25% - 7.5px);
    }

}
@media screen and ( min-width: 1700px )
{
    .doc-card {
        /*flex-basis: calc(20% - 7.5px);*/
    }

}
