/* Header */
.header-nav {
    border-top: solid 1px #e1e1e1;
    border-bottom: solid 1px #e1e1e1;
    background: #f2f5f7;
    padding: 10px 0;
}

.header-nav-column {
    text-align: right;
    line-height: 35px;
}

.btn-new-submission {
    font-weight: 500;
}

/* .new-search-container {
    float:left;
    padding-top: 5px;
}

.logout-container {
    float:right;
    padding-top: 5px;
} */

form {
    margin-bottom: 0;
}

.form-controls { /* Container for the back and next buttons */
    padding-top: 20px;
}

.logout-form {
    margin-bottom: 0;
    color: #454e5c;
    font-weight: 400;
    display: inline-block;
}

.logout-form input[type="button"],
.logout-form input[type="submit"] {
    background-color: #424b5a;
}

#page-container {
    margin-top: 50px;
}

.row .column.column-offset-25 {
    margin: 0 auto;
}


/*Typography*/
.text-center {
    text-align: center;
}

a {
    color: #454e5c;
    font-weight: 400;
}

/* Inputs */
input:focus,
input[type=search]:focus,
input[type=text]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=email]:focus,
input:not([type]):focus,
textarea:focus {
    border: 0.1rem solid #454e5c;
    /*border: solid #424b5a 1px;*/
}

select:focus {
    border: 0.1rem solid #454e5c;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23d1d1d1" d="M0,0l6,8l6-8"/></svg>') center right no-repeat;
}

/* Disabled Inputs */
select:focus:disabled,
input:focus:disabled,
input[type=text]:disabled,
input[type=number]:disabled,
input[type=password]:disabled,
input[type=email]:disabled,
input:not([type]):disabled,
textarea:disabled {
    background-color: #e3e3e3;
}

/* Error Handling */
input.invalid-input {
    border: solid #424b5a 2px;
}

/* Buttons */
button,
.button {
    background-color: #424b5a;
    border: 0;
    color: #fff;
    padding: 1em 3em;
    height: auto;
    line-height: 1;
    font-size: 1.1rem;
}


.btn-next,
.btn-final-submit {
    background-color: #d03035;
}

.btn-next::after {
    display: inline-block;
    content: "\f054";
    /*noinspection CssNoGenericFontName*/
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: .5em;
}

.btn-back::before {
    display: inline-block;
    content: "\f053";
    /*noinspection CssNoGenericFontName*/
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: .5em;
}

.btn-approve,
.btn-primary {
    background-color: #d03035;
}

.btn-deny {
    background-color: rgb(241, 174, 18);
}

.btn-close {
    background-color: transparent;
    color: #444444;
    padding: 5px;
}

.btn-popup-info {
    background-color: #eeeeee;
    color: #222222;
    padding: 13px 30px;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, .8);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}


#theBackForm {
    height: 0;
    width: 0;
    visibility: hidden;
}

.btn-cancel,
.logout-form input[type="button"],
.logout-form input[type="submit"] {
    background-color: transparent;
    font-size: 1rem;
    color: #424b5a;
    border: 1px solid #606c76;
}


/* Noty Alerts */
#noty_layout__topRight {
    top: 50px;
}

.flash-message-template {
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    min-height: 150px;
    background-color: #fff;
    position: relative;
}

.flash-message-template:before {
    content: "X";
    display: block;
    color: black;
    background-color: white;
    width: 12px;
    height: 12px;
    padding: 0;
    margin: 0;
    line-height: 12px;
    font-size: 8px;
    text-align: center;
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 50%;
}

.flash-message-template-success {
    border-color: #28d036;
    background-color: #28d036;
    color: white;
}

.flash-message-template-error {
    border-color: #d02828;
    background-color: #d02828;
    color: white;
}

.flash-message-template-success a,
.flash-message-template-error a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.flash-message-template-success a:hover,
.flash-message-template-error a:hover {
    color: #fff;
    opacity: .9;
    text-decoration: underline;
}

.flash-message-description {
    padding: 25px 25px 15px 15px;
    margin-bottom: 0;
}

.input-error-message {
    font-weight: 500;
    color: #e3342f;
}


/* Datatables */
.table-wrapper {
    padding-bottom: 40px;
}

#pagination-wrapper {
    text-align: center;
}

#pagination-wrapper a {
    color: #505d68;
    padding: 4px;
    cursor: pointer;
}

#pagination-wrapper a.current {
    color: red;
    cursor: text;
    font-size: 1.3em;
}

.datatables-link-icon {
    padding-right: 5px;
}

th.sorting, th.sorting_asc, th.sorting_desc {
    cursor: pointer;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    /*noinspection CssNoGenericFontName*/
    font-family: "Font Awesome 5 Free";
    padding-left: 15px;
}

table.dataTable thead th.sorting:after {
    content: "\f0dc";
}

table.dataTable thead th.sorting_asc:after {
    content: "\f0de";
}

table.dataTable thead th.sorting_desc:after {
    content: "\f0dd";
}

tr.admin-request-row {
    cursor: pointer;
}

tbody tr {
    cursor: pointer;
}

tr.attention-needed {
    background-color: #fef7f7;
}

.attention-needed-cell {
    color: red;
}

tr.invalid-row {
    outline: solid 1px red;
}

tbody tr[role=row] {
    padding: 5px;
}

td:first-child {
    padding-left: 1.2rem;
}


table#download-table tbody tr {
    cursor: default;
}

.site_logo {
    height: 35px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.site_title {
    display: inline-block;
    vertical-align: middle;
    color: #424b5a;
    font-weight: bold;
    padding: 0 10px;
    border-left: 1px solid rgba(66, 75, 90, 0.3);
    font-size: 1.6rem;
    transform: translateY(1px);
}

.title-row {
    /*border-bottom: 2px solid #d03035;*/
    background-color: #fafafa;
    margin-bottom: .5em;
}

.title-row .column {
    margin-bottom: 0;
}

.section {
    border: 1px solid #a1a1a1; /* #d03035; */
    /* border-left: 5px solid #a1a1a1; */ /* #d03035; */
    border-radius: 4px;
    display: block;
    margin-bottom: 24px;
}

.section .row {
    margin-left: 0;
    width: 100%;
}

.section h5 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section .row .column {
    padding: 0;
}

.section .title-row,
.section .content-row,
.section h5 {
    padding: 0 0 0 12px;
}

.section .column-55 .content-row, .section .column-40 .content-row {
    padding-right: 12px;
}

.section.additional-parts .row:not(.title-row) .column {
    padding-left: 12px;
}

.section .input-error-message {
    padding: 0 0 0 12px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* *********** STYLING FOR PHOTO ROWS ************************/


.photo-review-photo-column {
    text-align: center;
    background-color: #f0f0f0;
    position: relative;
    padding: 4px !important;
    margin: 0 10px 25px 10px !important;
}

.photo-review-photo-column img {
    max-height: 530px;
    width: auto;
    margin: auto;
    display: block;
}

#api-response-modal {
    padding: 30px;
    max-width: 900px;
}


.submission-complete-details p {
    margin-bottom: 1.0em;
}

.daterangepicker .drp-calendar {
    max-width: 1270px;
}

@media (min-width: 730px) {
    .daterangepicker .drp-calendar.left {
        margin-right: 25px;
    }
}

.request-history h4 {
    margin-bottom: 0.5rem;
}

.request-history ul {
    list-style-type: none;
    margin-bottom: 2rem;
}

.request-history li {
    margin-bottom: 0;
}

/* Repair Request Styles
---------------------------------*/
.field-display,
.field-display-group {
    max-width: 500px;
    border: 1px solid #e1e1e1;
    padding: 12px;
    background-color: #fafafa;
    font-weight: bold;
    margin-bottom: .5em;
    border-radius: 4px;
    line-height: 1;
}

.field-display-group {
    width: 100%;
    max-width: 100%;
    padding: 10px 6px;

    font-size: .9em;
    margin-bottom: 60px;
}

.request-history .field-display-group {
    margin-bottom: .5em;
}

.request-history .field-display-group.history-group {
    margin-bottom: 30px;
}

.field-display-group > div {
    display: inline-block;
    padding: 6px;
    width: 49%;
}

.request-history .field-display-group > div {
    width: 33%;
}


.field-display label,
.field-display-group label {
    display: inline-block;
    font-size: .9em;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0 .5em 0 0;
}

.field-display a,
.field-display-group a {
    font-weight: bold;
    color: #004085;
}

.field-display ol,
.field-display-group ol {
    list-style-type: none;
    margin-top: 1rem;
    margin-left: 4.5rem;
}

.submission-test-data .field-display li,
.submission-test-data .field-display-group li {
    margin-bottom: 2.5rem;
    font-weight: normal;
    text-transform: none;
}

.submission-test-data .field-display {
    text-transform: uppercase;
}

.submission-test-data .field-display.yes::before {
    content: "\f058";
    color: #1e8135;
    /*noinspection CssNoGenericFontName*/
    font-family: "Font Awesome 5 Free";
    /* font-weight: 400; */
    display: inline-block;
    padding-right: 12px;
    border-right: 1px solid #e1e1e1;
    margin-right: 12px;
    font-weight: bold;
}

.submission-test-data .field-display.no::before {
    content: "\f057";
    color: #d03035;
    /*noinspection CssNoGenericFontName*/
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    padding-right: 12px;
    border-right: 1px solid #e1e1e1;
    margin-right: 12px;
    font-weight: bold;
}

.submission-test-data .field-display.neutral::before {
    content: "\f058";
    color: #666666;
    /*noinspection CssNoGenericFontName*/
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    padding-right: 12px;
    border-right: 1px solid #e1e1e1;
    margin-right: 12px;
    font-weight: bold;
}


.field-display label.mt-1rem,
.field-display-group label.mt-1rem,
.mt-1rem {
    margin-top: 1rem;
}

.modal {
    padding: 0;
    margin: 0 auto;
    max-width: 98%;
    width: 500px;
    position: absolute;
    left: 50%;
    top: 50vh;
    transform: translate(-50%, -50%);
}

.modal-header {
    padding: 30px 30px 10px;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 10px;
}

.modal-header h3 {
    margin-bottom: 0;
}

.modal-body {
    padding: 10px 30px 30px;
}

.modal-footer {
    padding: 10px 30px 10px;
    background-color: #e1e1e1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.modal-footer .btn {
    margin-bottom: 0;
}

.modal-footer .btn-secondary {
    background-color: transparent;
    color: #444;
    outline: 1px solid #444;
    outline-offset: -1px;
}

.modal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.modal-footer {
    padding-top: 15px;
}

.pswp img {
    max-width: none;
    object-fit: contain !important;
}

.pswp__img--placeholder--blank,
.pswp__img--placeholder {
    display: none !important;
}

div.gallery {
    margin-left: 0;
    text-align: center;
}

.gallery img {
    width: 200px;

}

.gallery .crop-contain {
    overflow: hidden;
    height: 150px;
    width: 100%;
}

.gallery a {
    display: inline-block;
    width: 210px;
    margin: 5px;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.gallery .part-title {
    margin-bottom: 5px;
}

.gallery .notes,
.gallery .purpose {
    font-size: 80%;
    color: #444444;
    font-weight: normal;
}

div .column.flex-image-container {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0 2rem 0;
}

div .column.flex-image-container .image-label {
    font-style: italic;
    font-size: 0.9em;
}

div .column.flex-image-container img {
    height: 200px;
    background-color: #333333;
    padding: 1px;
}

div .column.flex-radio-container {
    display: flex;
    gap: 1.5rem;
}

/******* Magnific Popup ***************/

.magnific-popup {
    position: relative;
    background: #ffffff;
    padding: 20px;
    width: auto;
    max-width: 800px;
    margin: 30px auto;
}

.magnific-popup .code-description-code {
    font-weight: bold;
}

.magnific-popup td {
    vertical-align: top;
}

.mfp-ready {
    height: 100% !important;
}

/******* STATUS COLORS ****************/

tr.ready-for-review {
    background-color: #fff3cd;
    border-color: #ecd797;
}

tr.approved {
    background-color: #a6e3c7;
    border-color: #7bcfa9;
}

tr.denied {
    background-color: #ebb2ae;
    border-color: #ed9d97;
}

/******* Display *********************/

.display-none {
    display: none;
}

.display-inline {
    display: inline;
}

.display-inline-block {
    display: inline-block;
}

.max-height-200 {
    max-height: 200px;
}

/******** Overlay ************************/

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .2);
    z-index: 10000;
}

.loading-overlay::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    background-image: url("/images/loading-spinner.gif");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.loading-overlay-visible {
    display: block !important;
}

/* Print Only styles
--------------------------------*/
@media print,dompdf {
    .header-nav .header-nav-column,
    #page-container .text-right,
    .modal,
    .download-pdf-modal,
    .btn,
    .decision-row,
    .d-print-none {
        display: none !important;
    }
}

/* Mobile Styles
---------------------------------*/

/* media queries pulled from https://gist.github.com/gokulkrishh/242e68d1ee94ad05f488 */
/*
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) {
    .request-history .field-display-group {
        column-count: 2;
        /*noinspection CssInvalidPropertyValue*/
        column-width: 50%;
        column-gap: 40px;
        gap: 12px 40px;
    }

    .site_title {
        display: inline-block;
        border-left: 0;
        border-top: 1px solid rgba(66, 75, 90, .3);
        padding: 0 0 5px 43px;
    }
}

/*
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

}

/*
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 850px
*/
@media (min-width: 481px) and (max-width: 850px) {
    .field-display-group > div {
        width: 100%;
    }

    .request-history .field-display-group > div {
        width: 50%;
    }

    .site_title {
        display: block;
        border-left: 0;
        border-top: 1px solid rgba(66, 75, 90, .3);
        padding: 0 0 5px;
    }

    .row .column.column-66,
    .row .column.column-67,
    .row .column.column-50,
    .row .column.column-25 {
        max-width: 75%;
        flex: 0 0 75%;
    }
}

/*
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/
@media (max-width: 480px) {
    .field-display-group > div {
        width: 100%;
    }

    .request-history .field-display-group > div {
        width: 49%;
    }

    .field-display-group.history-group > div {
        width: 100%;
    }

    .field-display-group label {
        width: 100%;
    }

    .header-nav-column {
        text-align: left;
    }

    .site_title {
        display: block;
        border-left: 0;
        border-top: 1px solid rgba(66, 75, 90, .3);
        padding: 0 0 5px;
    }

    .row .column.column-50,
    .row .column.column-25 {
        max-width: 100%;
    }

    .section {
        border-left: 0;

    }

    .section.additional-parts .title-row {
        display: none;
    }

    .section .row .column {
        max-width: 100%;
        margin-bottom: .5rem;
    }

    .section .title-row {
        margin-bottom: 3px;
        border-color: #e1e1e1;
    }

    .section .column-55 .title-row {
        margin-bottom: 6px;
    }

    .gallery a {
        display: inline-block;
        width: 100%;

    }
}

ul.horizontal-list {
    list-style: none;
}
ul.horizontal-list li {
    display: inline-block;
}
ul.horizontal-list li:not(:last-child) {
    margin-right: 1rem;
}

div.panel {
    border: 1px solid #666666;
    padding: 2rem;
}
div.panel p:last-of-type {
    margin-bottom: 0;
}

.margin-top-2rem {
    margin-top: 2rem;
}

label.label-inside-styled-container {
    font-size: inherit;
    font-weight: inherit;
    display: inherit;
    margin-bottom: inherit;
}

div.remedy-form-container {
    padding: 1rem;
    border: 1px solid #aaaaaa;
    margin-bottom: 2rem;
}
label.hidden-label {
    display: none !important;
}

textarea.textarea-4-rows {
    height: 9rem;
}

/* Modal */
.modal-backdrop {
    background-color: rgba(0,0,0,.8);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}
#api-response-modal {
    padding: 30px;
    max-width: 900px;
}
.modal {
    padding: 0;
    margin: 0 auto;
    max-width: 98%;
    width: 500px;
    position: absolute;
    left: 50%;
    top: 50vh;
    transform:translate(-50%, -50%);
}
.modal-header {
    padding: 30px 30px 10px;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 10px;
}
.modal-header h3 {
    margin-bottom: 0;
}
.modal-body {
    padding: 10px 30px 30px;
}
.modal-footer {
    padding: 10px 30px 10px;
    background-color: #e1e1e1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.modal-footer .btn {
    margin-bottom: 0;
}
.modal-footer .btn-secondary {
    background-color: transparent;
    color: #444;
    outline: 1px solid #444;
    outline-offset: -1px;
}
.modal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.modal-footer {
    padding-top: 15px;
}

.d-print-only {
    display: none !important;
}

.mb-2 {
    margin-bottom: 2.0rem !important;
}

.mb-3 {
    margin-bottom: 3.0rem !important;
}

/* Print Only styles
--------------------------------*/
@media print {
    .header-nav .header-nav-column,
    #page-container .text-right,
    .modal,
    .download-pdf-modal,
    .btn,
    .decision-row, .d-print-none {
        display: none !important;
    }

    .d-print-only {
        display: inherit !important;
    }
}
