﻿::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #417386;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #2d4146;
    }

.spinner {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top: 10px solid #2d4146;
    -webkit-animation: spin 2s linear infinitxe;
    animation: spin 2s linear infinite;
    left: calc(50% - 65px);
    top: calc(50% - 65px);
    position: fixed;
    z-index: 2000;
}

    .spinner::before,
    .spinner::after {
        position: absolute;
        content: "";
        border-radius: 50%;
        border: 10px solid transparent;
    }

    .spinner::before {
        left: 5px;
        top: 5px;
        right: 5px;
        bottom: 5px;
        border-top-color: #417386;
        -webkit-animation: spin 3s linear infinite;
        animation: spin 3.5s linear infinite;
    }

    .spinner::after {
        left: 20px;
        top: 20px;
        right: 20px;
        bottom: 20px;
        border-top-color: #82b4be;
        -webkit-animation: spin 1.5s linear infinite;
        animation: spin 1.75s linear infinite;
    }

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.ErrorControl {
    background-color: #FBE3E4 !important;
    border-color: Red !important;
}

.ErrorControl ~ .select2-container .select2-selection--single {
    background-color: #FBE3E4 !important;
    border-color: Red !important;
}

.bg-modal {
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    position: fixed;
    background: black;
    z-index: 1999;
    opacity: 0.5
}


.sidebar,
#show-sidebar,
#close-sidebar {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

html, body {
    height: 100%;
}

    body .bg-dark {
        background-color: #2d4146;
    }

h2 {
    color: #2d4146
}

.sidebar {
    padding-bottom: 0.1rem;
    padding-left: 0;
    padding-right: 0;
    position: fixed;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #2d4146;
    z-index: 10 !important;
}

    .sidebar::-webkit-scrollbar {
        display: none;
    }


.dashboard-value {
    color: #2d4146
}

.sidebar-menu {
}

.menu-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3b4f54;
    cursor: pointer;
}

    .menu-header > span {
        font-size: larger;
        min-width: 40px;
        color: #417386;
        text-align: center;
    }

    .menu-header:hover > span {
        color: #82b4be;
    }

    .menu-header > a {
        text-decoration: none;
        color: white;
    }

    .menu-header:hover > a {
        color: #82b4be;
    }

    .menu-header:hover {
        color: #82b4be;
        border-bottom: 1px solid #82b4be;
    }

    .menu-header span:nth-child(3) {
        transition: transform 0.15s;
    }

.menu-header-selected span:nth-child(3) {
    transform: rotate(90deg);
}

.menu-content {
    padding-left: 2rem;
    display: block;
    background-color: #4b5a5f;
    border-bottom: 1px solid #3b4f54;
}

    .menu-content > a {
        padding: 0.5rem;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        display: block;
        text-decoration: none;
        color: white;
    }

        .menu-content > a:hover {
            color: #82b4be;
        }

    .menu-content > .active-menu {
        color: #82b4be;
    }

#nav {
    background: #417386;
    position: sticky;
    top: 0;
    left: 0;
    min-height: 65px;
    z-index: 2 !important;
}

.nav-link .active {
    background: #417386 !important;
}

@media (min-width: 768px) {
    .sub-hover {
        display: none;
    }

    .hover:hover {
        background-color: rgba(0,0,0,0.03);
    }

        .hover:hover .sub-hover {
            position: relative;
            display: inline;
        }
}

.bg-aml {
    background-color: #417386 !important;
    color: white !important;
}

    .bg-aml:hover {
        background-color: #417386 !important;
        color: white !important;
    }

.aml-primary {
    background-color: #417386;
    color: white;
    border: 1px solid #417386;
}

    .aml-primary:hover {
        background-color: #2d4146;
        color: white;
        border: 1px solid #2d4146;
    }

.aml-outline-primary {
    color: #417386;
    border: 1px solid #417386;
}

    .aml-outline-primary:hover {
        background-color: #417386;
        color: white;
        border: 1px solid #417386;
    }

.aml-link-primary {
    color: #417386;
    border: 0px solid #417386;
}

    .aml-link-primary:hover {
        color: #2d4146;
        border: 1px solid #417386;
    }

.aml-danger {
    background-color: #810000;
    color: white;
    border: 1px solid #810000;
}

    .aml-danger:hover {
        background-color: #ae0000;
        color: white;
        border: 1px solid #ae0000;
    }

.aml-outline-danger {
    color: #810000;
    border: 1px solid #810000;
}

    .aml-outline-danger:hover {
        color: #ae0000;
        border: 1px solid #ae0000;
    }

.aml-link-danger {
    color: #810000;
    border: 1px solid rgba(255,255,255,.5);
}

    .aml-link-danger:hover {
        color: #ae0000;
        border: 1px solid #ae0000;
    }

.aml-secondary {
    background-color: #828282;
    color: #ffffff;
    border: 1px solid #828282;
}

    .aml-secondary:hover {
        background-color: #424242;
        color: #ffffff;
        border: 1px solid #424242;
    }

.aml-outline-secondary {
    color: #828282;
    border: 1px solid #828282;
}

    .aml-outline-secondary:hover {
        color: #424242;
        border: 1px solid #424242;
    }

.aml-link-secondary {
    color: #828282;
    border: 1px solid rgba(255,255,255,.5);
}

    .aml-link-secondary:hover {
        color: #424242;
        border: 1px solid #424242;
    }



.aml-success {
    background-color: #358a5a;
    color: #ffffff;
    border: 1px solid #358a5a;
}

    .aml-success:hover {
        background-color: #2d6947;
        color: #ffffff;
        border: 1px solid #2d6947;
    }

.aml-outline-success {
    color: #358a5a;
    border: 1px solid #358a5a;
}

    .aml-outline-success:hover {
        color: #2d6947;
        border: 1px solid #2d6947;
    }

.aml-link-success {
    color: #358a5a;
    border: 1px solid rgba(255,255,255,.5);
}

    .aml-link-success:hover {
        color: #2d6947;
        border: 1px solid #2d6947;
    }

.google-visualization-orgchart-node, .google-visualization-orgchart-nodesel {
    background: #417386 !important;
    border: none !important;
    color: white !important;
    font-family: inherit !important;
    font-weight: normal !important;
    font-size: 16px !important;
    padding: 15px !important;
    width: 160px !important;
}

.google-visualization-orgchart-lineleft {
    border-left: 1px solid #2d4146 !important;
}


.google-visualization-orgchart-linebottom {
    border-bottom: 1px solid #2d4146 !important;
}


#close-sidebar {
    position: fixed;
    z-index: 10;
}

@media (min-width: 768px) {
    #close-sidebar {
        display: none;
    }

    #show-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    .sidebar {
        left: -100%;
    }

    .toggled {
        width: calc(100% - 4.28rem);
        z-index: 1;
        left: 0;
    }


    #show-sidebar {
        display: inline;
        width: 35px;
    }

    .larger-font {
        margin-top: +1px;
        font-size: 2rem;
    }
}

.page-header {
    padding-bottom: 1rem !important;
    padding-top: 1rem !important;
    align-items: center;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 65px;
    z-index: 1;
    background-color: #f8f9fa;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    margin-bottom: 15px;
}

    .page-header > div {
        width: auto;
    }

        .page-header > div:nth-child(2) {
            margin-left: auto;
        }




.card-active {
    border-color: #417386;
}

.card-action {
    border-color: #fabe64;
}

    .card-action .card-header {
        background-color: #fabe64;
        border-color: #fabe64;
    }

    .card-action .btn-primary {
        background-color: #fabe64;
        border-color: #fabe64;
    }

    .card-action .btn-outline-primary {
        border-color: #fabe64;
        color: #fabe64
    }

    .card-action textarea {
        border-color: #fabe64;
    }


.card-header {
    background-color: white;
}

    .card-header h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0px;
    }


.card-body {
}

    .card-body .table-responsive {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

.table-responsive tr:nth-child(1) {
    /*background-color: #82b4be;*/
    color: #2d4146;
    border-bottom: 0.15rem solid #417386;
}

.control-group {
    margin-bottom: 1rem;
}

.table {
    margin-bottom: 0px;
}

    .table th,
    .table td {
        border-top: none;
        border-bottom: 1px solid #dee2e6;
    }


/*table, th, td {
    padding: 0px;
}*/

legend {
    margin-bottom: initial;
    font-size: inherit;
    text-align: center;
}

.datepicker {
    padding: .375rem .75rem;
}

.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        height: auto;
        padding: .375rem .75rem;
        align-content: center;
    }

        .select2-container .select2-selection--single .select2-selection__rendered {
            line-height: inherit !important;
            padding-left: 0px;
            padding-right: 0px;
        }

.select2-container--default .select2-selection--single {
    border: 1px solid #ccc;
}

.pagination-ys {
    /*display: inline-block;*/
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

    .pagination-ys table > tbody > tr > td {
        display: inline;
        border: none;
    }

        .pagination-ys table > tbody > tr > td > a,
        .pagination-ys table > tbody > tr > td > span {
            position: relative;
            float: left;
            padding: 8px 12px;
            line-height: 1.42857143;
            text-decoration: none;
            border: 1px solid #dddddd;
            margin-left: -1px;
        }

        .pagination-ys table > tbody > tr > td > span {
            position: relative;
            float: left;
            padding: 8px 12px;
            line-height: 1.42857143;
            text-decoration: none;
            margin-left: -1px;
            z-index: 2;
            color: #aea79f;
            background-color: #f5f5f5;
            border-color: #dddddd;
            cursor: default;
        }

        .pagination-ys table > tbody > tr > td:first-child > a,
        .pagination-ys table > tbody > tr > td:first-child > span {
            margin-left: 0;
            border-bottom-left-radius: 4px;
            border-top-left-radius: 4px;
        }

        .pagination-ys table > tbody > tr > td:last-child > a,
        .pagination-ys table > tbody > tr > td:last-child > span {
            border-bottom-right-radius: 4px;
            border-top-right-radius: 4px;
        }

        .pagination-ys table > tbody > tr > td > a:hover,
        .pagination-ys table > tbody > tr > td > span:hover,
        .pagination-ys table > tbody > tr > td > a:focus,
        .pagination-ys table > tbody > tr > td > span:focus {
            color: #97310e;
            background-color: #eeeeee;
            border-color: #dddddd;
        }


    .pagination-ys table > tbody > tr:hover {
        background-color: transparent;
    }




@media print {

    body {
        background-color: #ffffff !important;
    }

    #sidebar {
        width: 0px;
        display: none !important;
    }

    #content {
        width: 100%;
        max-width: 100%;
    }

    #content-body {
        padding: 2rem;
    }

    #page-counter:after {
        content: counter(page);
        counter-increment: page;
    }

    .page-header {
        box-shadow: none !important;
        margin-bottom: 0px;
    }


        .page-header > div:not(:first-child), #Remark, #History, .btn, .card-header > :not(:first-child) {
            display: none !important;
        }

        .page-header > div:nth-child(1) {
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            padding-left: 0;
            border-bottom: 0.15rem solid #417386;
        }

    select {
        -webkit-appearance: none;
    }

    .col-form-label {
        font-size: 1.25vh;
        font-weight: bold;
    }

    .form-control {
        border: none;
    }

    .select2-container .select2-selection--single {
        border: none;
    }

    .select2-selection__arrow {
        display: none;
    }

    .table-responsive tr:nth-child(1) {
        background-color: #82b4be;
        color: black;
        border-bottom: 0.15rem solid #417386;
    }

    .print-break {
        page-break-after: always;
    }

    .border-print-0 {
        border: none !important;
    }

    .bg-aml {
        background-color: #ffffff !important;
        color: #417386 !important;
    }
}
