﻿li.primary-navigation--active {
    background-color: #0a78cd;
}

.primary-navigation--active .moj-primary-navigation__link {
    padding-left: 10px;
    padding-right: 10px;
    color: #fff;
}

    .primary-navigation--active .moj-primary-navigation__link:focus {
        color: #000;
    }
.close {
    float: right;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    filter: alpha(opacity=20)
}

    .close:hover, .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
        opacity: .4;
        filter: alpha(opacity=40)
    }

button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000
}

    .modal-backdrop.fade {
        opacity: 0
    }

        .modal-backdrop, .modal-backdrop.fade.in {
            opacity: .8;
            filter: alpha(opacity=80)
        }

.modal {
    position: fixed;
    top: 10%;
    left: 50%;
    z-index: 1050;
    width: 560px;
    margin-left: -280px;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0,0,0,.3);
    *border: 1px solid #999;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    outline: 0;
    -webkit-box-shadow: 0 3px 7px rgba(0,0,0,.3);
    -moz-box-shadow: 0 3px 7px rgba(0,0,0,.3);
    box-shadow: 0 3px 7px rgba(0,0,0,.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box
}

    .modal.fade {
        top: -25%;
        -webkit-transition: opacity .3s linear,top .3s ease-out;
        -moz-transition: opacity .3s linear,top .3s ease-out;
        -o-transition: opacity .3s linear,top .3s ease-out;
        transition: opacity .3s linear,top .3s ease-out
    }

        .modal.fade.in {
            top: 10%
        }

.modal-header {
    padding: 9px 15px;
    border-bottom: 1px solid #eee
}

    .modal-header .close {
        margin-top: 2px
    }

    .modal-header h3 {
        margin: 0;
        line-height: 30px
    }

.modal-body {
    position: relative;
    max-height: 400px;
    padding: 15px;
    overflow-y: auto
}

.modal-form {
    margin-bottom: 0
}

.modal-footer {
    padding: 14px 15px 15px;
    margin-bottom: 0;
    text-align: right;
    background-color: white;
    border-top: 1px solid #ddd;
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px;
    *zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 #fff;
    -moz-box-shadow: inset 0 1px 0 #fff;
    box-shadow: inset 0 1px 0 #fff
}

    .modal-footer:before, .modal-footer:after {
        display: table;
        line-height: 0;
        content: ""
    }

    .modal-footer:after {
        clear: both
    }

    .modal-footer .btn + .btn {
        margin-bottom: 0;
        margin-left: 5px
    }

    .modal-footer .btn-group .btn + .btn {
        margin-left: -1px
    }

    .modal-footer .btn-block + .btn-block {
        margin-left: 0
    }

.hide {
    display: none
}

.show {
    display: block
}

.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -moz-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear
}

    .fade.in {
        opacity: 1
    }


/*Custom modal*/
body .modal {
    /* new custom width */
    width: auto;
    /* must be half of the width, minus scrollbar on the left (30px) */
    margin-left: -280px;
}

// this fixes the above body .modal custom width and margin left when the window is resized
@media (max-width: 767px) {
    .modal

{
    margin: 0 !important;
    width: auto !important;
}

}

.modal-count {
    color: blue;
}

.modal-body {
    .control-label

{
    width: 250px;
}

.controls {
    //Should be the same as the content-label width. margin-left: 250px;
}

.spacer {
    margin-bottom: 20px;
}

}

.ajaxLoaderCenter {
    img

{
    margin: 20px 0px;
}

}

.ie8 {
    .modal-backdrop.fade.in

{
    background: transparent !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#D5000000,endColorstr=#D5000000) !important;
    zoom: 1;
}
}

.govuk-notification-banner--warning {
    border-color: #B58840;
    background-color: #B58840;
}

.govuk-notification-banner--danger {
    border-color: #d4351c;
    background-color: #d4351c;
}

.govuk-section-break--s {
    margin-top: 5px;
    margin-bottom: 5px;
}

@media (min-width: 40.0625em) {
    .govuk-section-break--s {
        margin-top: 10px;
    }
}

@media (min-width: 40.0625em) {
    .govuk-section-break--s {
        margin-bottom: 10px;
    }
}

/* Sortable table - Ascending icon for the table header */
th[aria-sort="ascending"]:after {
    content: "\25b2";
}

/* Sortable table - Descending icon for the table header */
th[aria-sort="descending"]:after {
    content: "\25bc";
}

.app-custom-width-container {
    max-width: 90%;
}

@media print {
    header, footer {
        display: none;
    }

    div#page {
        border: none;
    }

    a[href]:after {
        content: none !important;
    }

    .top-nav {
        display: none;
    }

    .govuk-button-group {
        display: none;
    }

    .nidirect_footer {
        display: none;
    }

    .govuk-link {
        display: none;
    }

    #printAddress {
        width: 300px !important;
        word-wrap: break-word !important;
        margin-top: 0px !important;
    }

    #printPhone {
        width: 300px !important;
    }

    #printEmail {
        width: 200px !important;
    }


    .order-details, .amendment-details {
        .priority
    }


    .print-option {
        display: none;
    }

    .page-break {
        display: block;
        page-break-before: always;
    }

    .print-header {
        display: block;
    }

    .screen-header {
        display: none;
    }

    .screen-order-details, .screen-amendment-details {
        display: none;
    }

    .refund-link {
        display: none;
    }

    .control-label {
        float: left !important;
    }

    .control-group {
        margin-bottom: 0px;
        line-height: 1.25;
    }

    .additionalInfo {
        width: 85%;
        margin-bottom: 5px;
    }

    .hero-unit {
        margin-bottom: 5px;
    }

    @page {
        size: auto;
        margin: 8mm 8mm 8mm 8mm;
    }
}

@media (max-width: 768px) {

    .collapsibleTable,
    .collapsibleTable table,
    .collapsibleTable thead,
    .collapsibleTable tbody,
    .collapsibleTable th,
    .collapsibleTable td,
    .collapsibleTable tr {
        display: block;
        width: 100%;
        float: left;
        clear: left;
    }

        .collapsibleTable,
        .collapsibleTable table {
            width: 98%;
        }


    br {
        display: none;
    }


    .collapsibleTable td {
        padding-left: 0px;
        padding-right: 0px;
        input [type='text']

{
    clear: left;
    width: 95%;
}}


.collapsibleTable td * {
    margin-left: 8px;
}

.collapsibleTable tr:hover {
    background-color: none;
}

.collapsibleTable thead tr, .collapsibleTable tr th {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.collapsibleTable td:before {
    content: attr(data-label);
    margin-left: 8px;
    font-weight: bold;
    color: #0C1E63;
}

.collapsibleTable td > .govuk-button {
    margin-left: 0 !important;
}

.collapsibleTable tr {
    border: 1px solid #dddddd;
    margin-bottom: 16px;
}

.text-wrap {
    word-wrap: break-word;
    word-break: break-word;
}

.loader {
    border: 8px solid #f3f3f3;
    /* Light grey */
    border-top: 8px solid #3498db;
    border-bottom: 8px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

}

/* Disabled and read-only form control styling */
input[disabled]:not(.govuk-button),
select[disabled],
textarea[disabled],
input[readonly]:not(.govuk-button),
select[readonly],
textarea[readonly] {
    background-color: #eee;
    opacity: 0.5;
}