﻿
/*#region Summernote*/
.note-editor.note-airframe .note-editing-area .note-editable, .note-editor.note-frame .note-editing-area .note-editable {
    padding: 10px 30px !important;
}
/*#endregion*/

/*#region Contract & Quotation Item List Table*/
.red {
    background-color: red !important;
}

.table-responsive .table tbody tr:nth-child(2n) td {
    background: unset;
}

#contractListTable, #quotationListTable {
    position: relative;
}

    #contractListTable th, #quotationListTable th {
        position: sticky;
        top: 0;
    }

.sticky-col {
    position: sticky;
    background-color: #f8fafb !important;
}

.col-custom-0 {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    left: 0px;
}

.col-custom-1 {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    left: 20px;
}

.col-custom-2 {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    left: 60px;
}

.col-custom-3 {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    left: 310px;
}
/*#endregion*/


.steps-wrapper {
    max-width: 100%;
}

/*#region Global Setting */
:root {
    --main-color: #081F41;
    --heading-font-size: 3.5rem;
    --button-font-size: 1.8rem;
    --text-color-white: #ffffff;
    --color-black: #000;
}

::-moz-selection, ::selection {
    background: var(--main-color);
    color: white;
}

::placeholder {
    color: #c0c0c0;
}

.p-0 {
    padding: 0;
}

.p-15 {
    padding: 15px;
}

p-t-4 {
    padding-top: 4rem;
}

.p-lr-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.p-tb-15 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.m-0 {
    margin: 0;
}

.m-15 {
    margin: 15px;
}

.m-t-3 {
    margin-top: 3rem;
}

.m-t-5 {
    margin-top: 5rem;
}

.m-t-10 {
    margin-top: 10rem;
}

.m-tb-15 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.m-lr-15 {
    margin-left: 15px;
    margin-right: 15px;
}

.w-100 {
    width: 100%;
}

.color-main {
    color: var(--main-color);
}

.color-black {
    color: var(--color-black);
}
/*#endregion */

.popup-container .overlay {
    z-index: 9 !important;
}

.title--1 {
    color: #081F41;
    font-weight: normal;
    font-size: 25px;
    width: 100%;
}

/*#region Style Settings */

/*#region Titles, Text*/
.main-navigation .line .nav-list li a .title, .main-navigation .line .cate-title h3 {
    font-size: 2rem;
}

.title-style-1 {
    color: var(--main-color);
    font-weight: normal;
    font-size: var(--heading-font-size);
    width: 100%;
}

.title-caption {
    font-size: calc(var(--heading-font-size) - 2rem);
    color: var(--main-color);
    width: 100%;
}

.center {
    text-align: center;
}
/*#endregion*/

/*#region Button styling*/
.button {
    display: inline-block;
    text-align: center;
    font-size: var(--button-font-size);
    background: var(--main-color);
    color: var(--text-color-white) !important;
    min-width: 20rem;
    height: 5.5rem;
    padding: 1.5rem 4rem;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    border-radius: .5rem;
}

    .button:hover {
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }

    .button.outline {
        border: solid .1px var(--main-color);
        background: none;
        color: var(--main-color) !important;
    }
/*#endregion*/

/*#region Form styling*/
.label-style-1 {
    color: var(--main-color);
    padding-top: 2rem;
}

.form-label {
    color: var(--main-color);
    font-size: 1.8rem;
    margin-top: 20px;
    width: 100%;
}

/*#endregion*/

/*#region Select2 styling */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 10px !important
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 10px
}

.select2-container--default .select2-selection--single {
    height: 50px !important
}
/*#endregion */

/*#region DataTable styling*/
td.details-control {
    background: url('https://datatables.net/examples/resources/details_open.png') no-repeat center center !important;
    cursor: pointer;
}

tr.shown td.details-control {
    background: url('https://datatables.net/examples/resources/details_close.png') no-repeat center center !important;
}

.dataTables_wrapper
.dataTables_paginate
.paginate_button:hover {
    border: none;
    background: none;
    background-color: #none;
    text-decoration: underline !important;
    text-decoration-color: #081F41 !important;
    text-decoration-thickness: 2px !important;
}

table.dataTable thead th {
    border-bottom: none;
}
/*#endregion DataTable */

/*#region Dropdown menu styling*/
.dropbtn:hover {
    color: white;
}

.dropbtn {
    background-color: #081F41;
    color: white;
    padding: 16px 30px;
    font-size: 18px;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    right: 100%;
    bottom: 0;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none !important;
        text-align: left;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #081F41;
}

table tbody tr:nth-child(-n+3) td .dropdown .dropdown-content {
    bottom: unset;
    top: 0;
}


/*#endregion */

/*#region Misc*/
.space-apart {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.f-right {
    float: right;
}

.box ul li {
    width: unset;
    word-wrap: break-word;
}

    .box ul li:not(:last-child) {
        margin-right: 2rem
    }

    .box ul li a {
        text-decoration: none !important;
        font-size: 1.2rem;
    }

        .box ul li a:hover {
            color: var(--main-color) !important;
        }
/*#endregion*/

/*#endregion */
.icon__color {
    color: #081F41;
}

tr.empty td {
    background: transparent url('http://davidrhysthomas.co.uk/linked/strike.png') 0 50% repeat-x !important;
}



/*#region Custom Modals */

.fileupload, .createcategory, .createap, .editap, .popup2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    transition: opacity .5s;
    border: .1rem solid #9f9f9f;
    background: #fff;
    padding: 9rem 5rem 5rem;
    width: 65%;
    height: 90%;
    overflow-y: scroll;
}

.popup-container .fileupload.show, .popup-container .createcategory.show, .popup-container .createap.show, .popup-container .editap.show, .popup-container .popup2.show {
    visibility: visible;
    opacity: 1;
}

.createcategory h2, .createap h2, .editap h2, .fileupload h2, .popup2 h2 {
    color: #081F41;
    text-align: center;
}

/*#endregion */

.top-navigation, .searchbox-wrapper {
    max-width: 100%
}

    .searchbox-wrapper .searchbox .form-group input {
        width: 800px;
    }

    .searchbox-wrapper .searchbox .add-filter {
        padding-left: 15px;
        cursor: pointer;
    }



.form-group {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group-readonly {
    width: 80%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    background-color: transparent;
    border: none;
}

    .form-group-readonly:read-only {
        background-color: transparent;
    }

.form-group:focus {
    border-color: #081F41;
}

.form-group:active {
    border-color: #081F41;
}

.form-group::selection {
    background: var(--main-color);
    color: white;
    border-color: #081F41;
}

/*input:read-only {
    background-color: #e7e7e7;
}*/

.label {
    color: white;
    margin: 10px 0;
    padding: 20px;
    width: 100%;
}

.success {
    background-color: #5fb962;
}
/* Green */
.info {
    background-color: #2196F3;
}
/* Blue */
.warning {
    background-color: #ffad33;
}
/* Orange */
.danger {
    background-color: #f44336;
}
/* Red */
.other {
    background-color: #e7e7e7;
    color: #262626;
}
/* Gray */

.gray-bg {
    background-color: #e7e7e7;
}

.btn {
    background: #081F41;
    color: #ffffff !important;
    cursor: pointer;
}

.btn--brounded {
    background: #fff;
}

/*#region Filter Box */

.filter--box {
    width: 300px;
    height: 100%;
    background: #ffffff;
    position: fixed;
    right: -300px;
    z-index: 100;
    padding: 20px;
    box-shadow: inset -1px 0 0 0 #eaeaef;
    border-left: 1px solid #eaeaef;
    opacity: 0;
    transition: all .4s ease;
    transform: translateX(0);
}

    .filter--box.active {
        right: 0;
        transition: all .4s ease;
        transform: translateX(0);
        opacity: 1;
    }

.filter--box--title {
    display: inline-flex;
    color: #081F41;
    width: 100%;
    color: #081F41;
    font-size: 2rem;
    font-weight: 400;
    text-align: left;
    text-transform: capitalize;
    justify-content: space-between
}

.filter--box--close {
    padding: 10px;
    margin: auto 0;
    cursor: pointer;
}

.back-drop.active.z {
    z-index: 99
}
/*#endregion */

/*#region Login form */

.login-form {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
    grid-template-areas: "form img";
    min-height: 100vh;
}

.login-form__item1 {
    grid-area: form;
    justify-self: center;
    margin: auto 0;
    padding: 30px;
}

.login-form__item1-logo {
    margin: auto;
    padding-bottom: 30px;
    visibility: hidden;
    opacity: 0;
    height: 0;
}

.login-form__item2 {
    justify-self: stretch;
    background: url("../img/login-background.jpg");
    background-size: cover;
}

.login-form__item2-logo {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translateX(-50%);
    visibility: visible;
    opacity: 1;
}


@media only screen and (max-width:768px) {
    .login-form {
        grid-template-columns: 100%;
    }

    .login-form__item1-logo {
        visibility: visible;
        opacity: 1;
        height: 80px;
    }

    .login-form__item2-logo {
        visibility: hidden;
        opacity: 0;
    }
}


@media only screen and (max-width:425px) {
}

/*#endregion */

@media only screen and (max-width: 1440px) {

    .searchbox-wrapper .searchbox .form-group input {
        width: 400px;
    }
}

@media only screen and (max-width: 768px) {

    .top-navigation, .searchbox-wrapper {
        max-width: 100%
    }

        .searchbox-wrapper .searchbox .form-group {
            width: 45%
        }

        .searchbox-wrapper .searchbox .add-filter {
            padding-left: 10px
        }

        .searchbox-wrapper .searchbox .form-group input {
            width: 400px;
        }
}

@media only screen and (max-width: 500px) {
    #form-readonly-wrapper {
        display: unset !important;
    }

    .searchbox-wrapper {
        width: 100% !important;
    }

    .tabs [class^="tab"] .tab-label,
    .tabs [class*=" tab"] .tab-label {
        color: #262626;
        cursor: pointer;
        display: block;
        font-size: .8em;
        font-weight: 500;
        line-height: 1em;
        padding: 1.5rem 0;
        margin: 0 1.5rem;
        min-height: 60px;
        text-align: center;
    }

    .tabs .tab-4 [type="radio"] + div {
        width: 400%;
    }

    .tabs .form-label {
        width: 50% !important;
    }

    .tabs .form-group-readonly {
        width: 100px !important;
    }

    .searchbox .form-group input {
        width: 100px !important;
    }

    .top-navigation {
        max-width: 100%;
    }
}
