/* here you can put your own css to customize and override the theme */
/*
    primary: #039be5
    accent: #fed766
    warn: #fe4a49
    background: whitesmoke
    color: #666
*/

@font-face {
    font-family: 'Poppins-Regular';
    src: url('../../../fonts/poppins/Poppins-Regular.ttf') format('truetype');
}

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

.page-content {
    background: #eef6ff;
}

/* Theme colour */
.primary {
    color: #039be5;
}

.accent {
    color: #fed766;
}

.warn {
    color: #fe4a49 !important;
}

.gray {
    color: gray;
}

.bg {
    background: #eff3f8;
}

.bg-primary {
    background-color: #039be5;
    color: white;
}

.bg-accent {
    background-color: #fed766;
    color: black;
}

.bg-warn {
    background-color: #fe4a49;
    color: white;
}

.bg-lightgray {
    background: lightgray;
}

.bg-whitesmoke {
    background: whitesmoke;
}

/* Top menu */


.page-header-top .container-fluid {
    /*background: #3a434f;*/
    /*background: #0089cb;*/
}

.page-footer {
    background: #25aae1;
    color: white;
}

/* Portlet */
.portlet {
    border-radius: 8px !important;
}

    .portlet.light > .portlet-title > .caption > i {
        font-size: 16px;
        margin-top: 2px;
        margin-right: 12px;
        color: #67809F;
    }

.portlet-toolbar {
    padding: 4px 20px;
}

/* Breadcrumb */
.breadcrumb li {
    margin-top: 0px;
}

    .breadcrumb li a {
        /*background: #fed766;*/
        padding: 4px 16px;
        color: #039be5;
        border-radius: 16px !important;
        font-weight: 600 !important;
        text-decoration: none;
        margin-top: 12px;
        transition: 0.2s ease-out;
    }

    .breadcrumb li span {
        /*background: #fed766;*/
        padding: 4px 16px;
        color: #aeaeae;
        font-weight: bold !important;
        text-decoration: none;
        margin-top: 12px;
    }

    .breadcrumb li a:hover, .breadcrumb li a:focus {
        background: #fed766;
        color: black;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.18); /* Cause leftover when out of focus in IE */
    }

    .breadcrumb li a:active {
        background: #e4c15f;
        box-shadow: none !important;
    }

/* Fix for radio not content fitting */
.mt-radio-list {
    display: inline-block;
}

/* Fix for checkbox list not content fitting */
.mt-checkbox-list > div > .mt-checkbox {
    display: inline-block;
}

/* Set the max-width for form-controls */
.max-w,
.max-w-xlarge,
.max-w-large-xlarge
.max-w-large,
.max-w-medium-large,
.max-w-medium,
.max-w-small-medium,
.max-w-small,
.max-w-mini-small,
.max-w-mini {
    width: 100%;
}

.max-w-xlarge {
    max-width: 800px;
}

.max-w-large-xlarge {
    max-width: 700px;
}

.max-w-large {
    max-width: 600px;
}

.max-w-medium-large {
    max-width: 500px;
}

.max-w-medium {
    max-width: 400px;
}

.max-w-small-medium {
    max-width: 300px;
}

.max-w-small {
    max-width: 200px;
}

.max-w-mini-small {
    max-width: 152px;
}

.max-w-mini {
    max-width: 100px;
}


.hidden {
    visibility: hidden;
}

.table-checkable tr > td:first-child, .table-checkable tr > th:first-child {
    max-width: none;
}

.page-content {
    padding: 18px 0 18px;
    min-height: 90vh;
}

/* top bar */
.page-header .page-header-top .top-menu .navbar-nav > li.dropdown-user .dropdown-toggle > img {
    margin-top: -4px;
    margin-left: 8px;
    height: 32px;
}

/* Sweet alert */
body.stop-scrolling {
    overflow: hidden !important;
}

/* To fix overlay with modal */
.sweet-overlay {
    z-index: 9999999;
}

.sweet-alert {
    z-index: 99999999;
}

    /* To fix error text overflow if too long */
    .sweet-alert p.lead.text-muted {
        max-height: 300px;
        overflow: auto;
    }

/* Login */
.login .content {
    background: white;
}

    .login .content .form-title {
        margin-top: 28px;
        margin-bottom: 36px;
        color: #666
    }

    .login .content .form-control {
        color: black;
        background: #f3fbff;
    }

    .login .content .form-actions {
        border-bottom: 0px;
    }

    .login .content .form-actions {
        padding-top: 12px;
    }

        .login .content .form-actions > .btn.btn-raised-primary-accent {
            width: 100%;
        }

        .login .content .form-actions > .btn.btn-text-primary-accent {
            padding: 0px 4px !important;
            margin-top: 0px;
            margin-bottom: 16px;
        }

/* List */
.list-title {
    padding: 8px 24px;
    display: inline-block;
    border-top-right-radius: 4px !important;
    border-top-left-radius: 4px !important;
}

.list-wrapper {
    padding: 12px 40px;
    background: whitesmoke;
}

.title-sub {
    padding: 8px 24px;
    margin-bottom: 4px;
    display: inline-block;
    border-radius: 4px !important;
    color: #666;
    background: whitesmoke;
}

.folder {
    background: whitesmoke;
    padding: 40px;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    margin-bottom: 40px;
}

@media only screen and (max-width: 991px) {
    .folder {
        padding: 12px 0px;
    }

    .list-wrapper {
        padding-left: 0px;
    }
}

.caption-center {
    text-align: center;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #666
}

.caption-subject {
    color: #5a7391;
}

.sidebar-title {
    background: whitesmoke;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 0px;
    margin-right: 0px;
    margin-right: 8px;
}

/* To fix shadow not appearing */
.profile-content {
    padding: 2px;
}

/*
@font-face {
    font-family: Poppins-Regular;
    font-style: normal;
    font-weight: 300;
    src: url('/Assets/fonts/OpenSans-Regular.ttf');
    src: local('Open Sans Semibold'), local('OpenSansSemibold'), url('/Assets/fonts/OpenSans-Semibold.ttf') format('truetype');
}
    */

.table-input {
    margin-top: 5px;
    margin-bottom: 5px;
}

    .table-input tr {
        height: 44px;
    }

        .table-input tr.input-label {
            height: auto;
            vertical-align: bottom;
        }

            .table-input tr.input-label th {
                padding-left: 2px;
                color: gray;
            }

        .table-input tr .action {
            text-align: center;
            min-width: 80px;
        }

        .table-input tr th {
            padding-left: 2px;
            color: gray;
            height: auto;
        }

        .table-input tr td.actions {
            padding-right: 4px;
        }

    .table-input tbody {
        background: whitesmoke;
    }

        .table-input tbody tr td {
            padding: 4px 12px;
            vertical-align: top;
        }

/* NOT A GOOD IMPLEMENTATION PLEASE FIX*/
.row-table tbody tr {
    background: transparent !important;
}

.portlet-body-title {
    margin-top: 0px;
    margin-bottom: 28px;
    color: #666;
}

.tab-form-main-title {
    margin-top: -8px;
    margin-bottom: 28px;
    color: #666;
}

.helper-popover {
    color: #67809F;
}

.popover {
    border: 0px !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2) !important;
    margin-left: 15px !important;
}

.popover-title {
    background-color: #039be5 !important;
    color: white !important;
    font-size: 18px;
}

/*.notification-unread {
    background-color: #c3eafd;
}

.notification-icon {
    float: left;
}

.notification-content {
    display: block;
    padding-left: 16px;
}*/

/*.modal-content {
    border-radius: 4px !important;
    border: none;
}

.modal-header {
    background-color: #039be5 !important;
    border-radius: 4px 4px 0px 0px !important;
}


    .modal-header h4 {
        font-weight: bold !important;
        color: white !important;
    }

    .modal-header button {
        font-size: 13px !important;
    }*/

.collapse-filter {
    position: absolute;
    width: 80vw;
    max-width: 700px;
    background: white;
    border: 1px solid lightgray;
    z-index: 2;
    margin-top: -20px;
}

.collapse-filter-wrapper {
    padding: 40px;
}

.collapse-filter .form-actions {
    margin-top: 20px;
}

input:focus {
    border-color: #039be5 !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(3, 155, 229, 0.6) !important;
    box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075), 0 0 3px rgba(3, 155, 229, 0.6) !important;
}

/*** MODULE MENU ***/
.menu-header {
    text-align: center;
}

.search-bar {
    margin-bottom: 20px;
}

    .search-bar input {
        color: #2e2f2f;
        height: 45px;
        border-radius: 3px !important;
    }

.menu-group-container {
    display: flex;
    flex-wrap: wrap;
}

    .menu-group-container .menu-group h4 {
        font-weight: 600;
        margin-bottom: 20px;
    }

    .menu-group-container .menu-group {
        flex: 1 1 30%;
    }

        .menu-group-container .menu-group ul {
            display: flex;
            flex-flow: column wrap;
            list-style-type: none;
            height: 290px;
        }

        .menu-group-container .menu-group li {
            margin-bottom: 10px;
            margin-left: -30px;
        }

@media screen and (max-width:1500px) {
    .menu-group-container .menu-group {
        flex: 1 1 50%;
    }
}

@media screen and (max-width:991px) {
    .menu-group-container .menu-group {
        flex: 1 1 100%;
    }

        .menu-group-container .menu-group ul {
            display: block;
            flex-flow: row nowrap;
            height: auto;
        }
}

.menu-group-container .menu-group li a {
    text-decoration: none !important;
    color: black;
}

    .menu-group-container .menu-group li a:hover {
        text-decoration: none !important;
        color: #1064ad;
    }

/*** END MODULE MENU ***/

/*** COMPANY SELECTION ***/
.company-container {
    display: flex;
    flex-wrap: wrap;
}

.company-card {
    width: 33%;
}

.company-card-wrapper {
    display: flex;
    margin: 1%;
    border-radius: 4px !important;
    transition: 0.2s ease-out;
    background: white;
    padding: 8px;
    min-height: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.18);
}

@media only screen and (max-width:991px) {
    .company-card {
        width: 100%;
    }
}

@media only screen and (min-width:992px) {
    .company-card {
        width: 50%;
    }
}

@media only screen and (min-width:1439px) {
    .company-card {
        width: 33%;
    }
}

a.company-card {
    text-decoration: none;
    color: #585858;
    font-weight: 600;
}

a:hover .company-card-wrapper, a:focus .company-card-wrapper {
    background: white;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
}

.company-image {
    height: 100px;
    width: 100px;
    min-height: 100px;
    min-width: 100px;
    display: inline-block;
    vertical-align: top;
    position: relative;
}

    .company-image img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }

.company-name {
    margin-left: 20px;
    display: inline-block;
}

/*** CODE LIST ***/
.code-list-title {
    padding: 25px 0px;
}

.code-list-body {
    overflow-y: auto;
    min-height: 300px;
    max-height: 65vh;
    margin-bottom: 0;
    padding-left: 0;
}

    .code-list-body ul {
        list-style: none;
        padding: 0px;
    }

        .code-list-body ul li {
            display: block !important;
            position: relative;
            border-bottom: 1px solid #f0f4f7;
        }

            .code-list-body ul li a {
                display: block;
                text-decoration: none;
                color: #93a3b5;
                font-size: 16px;
                font-weight: 400;
                padding: 10px 15px;
            }

            .code-list-body ul li.active a {
                color: #5b9bd1;
                background-color: #f6f9fb;
                border-left: 2px solid #5b9bd1;
            }

            .code-list-body ul li a:hover {
                background-color: #fafcfd;
                color: #5b9bd1;
            }

/*Multi Select (2 columns)*/
.ms-container {
    width: 100%;
}

    .ms-container .ms-list {
        height: 500px;
    }

    .ms-container .ms-selectable li.ms-elem-selectable, .ms-container .ms-selection li.ms-elem-selection {
        padding: 10px;
    }

    .ms-container .ms-selectable li.ms-hover, .ms-container .ms-selection li.ms-hover {
        color: #333;
        background-color: #fff6de;
    }

/* Span styled like button */
.label-block {
    padding: 8px 20px;
    background: whitesmoke;
    display: inline-block;
    border-radius: 40px !important;
}

/* Tab */
.tab-pane-padding {
    padding: 20px;
    background: #f9fbff;
    border-left: 8px solid #1fa363;
}

/*Dashboard*/
.dashboard-section {
    margin-bottom: 30px;
}

    .dashboard-section p {
        font-size: 20px;
        font-weight: 600;
    }

.dashboard-counter {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    grid-column-gap: 28px;
}

@media only screen and (max-width: 991px) {
    .dashboard-counter {
        display: block;
    }
}

.dashboard-section .card {
    margin-top: 35px;
    min-width: 180px;
    height: 120px;
    background-color: white;
    border-radius: 6px !important;
    transition: all 250ms ease-in-out;
}

    .dashboard-section .card:hover {
        margin-top: 30px;
        box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
        transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    }

    .dashboard-section .card a {
        text-decoration: none;
        color: black;
    }

        .dashboard-section .card a:hover {
            text-decoration: none;
        }

    .dashboard-section .card .card-icon {
        position: absolute;
        width: 39.6px;
        height: 39.6px;
        border-radius: 50% !important;
        text-align: center;
        font-size: 22px;
        border: 1px solid white;
        background: white;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        line-height: 39px;
    }

    .dashboard-section .card .card-body {
        position: relative;
        padding-top: 30px;
        text-align: center;
    }

        .dashboard-section .card .card-body span {
            font-size: 32px;
            font-weight: 100;
        }

        .dashboard-section .card .card-body .card-desc {
            font-weight: 300;
        }

.card-table {
    background-color: white;
    padding-top: 25px;
}

.card-table-title {
    font-weight: 600;
    margin-left: 10px;
    margin-bottom: 10px;
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50% !important;
    border-top: 8px solid #039be5;
    border-right: 8px solid rgba(255, 0, 0, 0);
    border-bottom: 8px solid #fed766;
    border-left: 8px solid rgba(255, 0, 0, 0);
    width: 60px;
    height: 60px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

a.attachment {
    padding: 8px;
    transition: 0.2s ease-out;
}

    a.attachment span {
        margin-left: 8px;
    }

a:hover.attachment, a:focus.attachment {
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px #fff9e6 inset;
}

.border-bottom-divider {
    border-bottom: 1px solid #eee;
}

.code-input {
    font-size: 12px;
    font-family: 'Roboto Mono', monospace;
}

/* Modal */
.modal-xlg {
    width: 1140px;
}

@media only screen and (max-width: 1270px) {
    .modal-xlg {
        width: 90vw;
    }
}

/* Full Calendar */
.fc th {
    background: whitesmoke;
}

/* Text chip */
.text-chip {
    border-radius: 40px !important;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    color: black;
    display: inline-block;
    padding: 4px 12px;
    background: whitesmoke;
}

/* Note */
.portlet-note {
    margin-top: -10px;
    margin-left: -5px;
}

/* Portlet Nav Bar */
.portlet-nav {
    background: whitesmoke;
    margin-top: -10px;
}

    .portlet-nav.fixed {
        position: fixed;
        z-index: 10;
    }

        .portlet-nav.fixed a {
            display: block;
        }

@media only screen and (max-width: 991px) {
    .portlet-nav.fixed {
        position: relative;
    }

        .portlet-nav.fixed a {
            display: none;
        }
}

/* Module Menu */
.portlet.menu-list {
    max-width: 1100px;
    margin: 40px auto;
}

.menu-header-container {
    margin-top: 30%;
    margin-left: 30px; /* To fix alignment caused by row/col */
    text-align: center;
}

    .menu-header-container .menu-header-img {
        max-height: 120px;
    }

    .menu-header-container .menu-header-title {
        padding-top: 28px;
        padding-bottom: 40px;
        font-weight: bold;
        color: #3e4f5e;
    }

@media only screen and (max-width: 991px) {
    .menu-header-container {
        margin-top: 72px;
        margin-left: 0px;
    }
}
