﻿body {
    color: #2f2f2f !important;
}

/* Fix modal footer padding */
.modal-footer {
    padding: 14px 15px 15px;
}

    .modal-footer > a.btn {
        margin-left: 2px;
        margin-right: 2px;
    }

    .modal-footer > button {
        margin-left: 2px;
        margin-right: 2px;
    }

/* Generic Modal pagination */
.pnl-pagination {
    margin-top: 20px !important;
}

/* Round image */
.img-rounded {
    border-radius: 50px !important;
}

/* Fix accordian style */
.accordion-item {
    background-color: transparent !important;
}

.accordion-button.collapsed {
    background-color: #f1f1f1 !important;
    border: 0px;
}

/* Change Readonly like disabled */
.form-control[readonly] {
    background: #e5e9ed;
    opacity: .6;
}

/* field error */
.error {
    color: #f05050;
}

/* required */
.required:after {
    content: " *";
    font-weight: bold;
    color: red;
    font-size: 18px;
}

/* Grand Total */
.grand-total-value-label {
    padding-top: 7px;
    margin-bottom: 0;
    text-align: left;
}

/* xs */
@media (min-width: 0px) {
    .m-b-xs-15 {
        margin-bottom: 15px !important;
    }

    .col-pr-5 {
        padding-right: 5px !important;
    }

    .col-pr-10 {
        padding-right: 10px !important;
    }

    .col-pr-15 {
        padding-right: 15px !important;
    }

    .col-pr-20 {
        padding-right: 20px !important;
    }

    .col-pr-25 {
        padding-right: 25px !important;
    }

    .col-pr-30 {
        padding-right: 30px !important;
    }

    .col-pr-35 {
        padding-right: 35px !important;
    }

    .col-pr-40 {
        padding-right: 40px !important;
    }

    .col-pr-45 {
        padding-right: 45px !important;
    }

    .col-pr-50 {
        padding-right: 50px !important;
    }
}

/* sm */
@media (min-width: 576px) {
    .m-b-sm-15 {
        margin-bottom: 15px !important;
    }

    .m-b-5-xs {
        margin-bottom: 5px;
    }

    .col-sm-pr-5 {
        padding-right: 5px !important;
    }

    .col-sm-pr-10 {
        padding-right: 10px !important;
    }

    .col-sm-pr-15 {
        padding-right: 15px !important;
    }

    .col-sm-pr-20 {
        padding-right: 20px !important;
    }

    .col-sm-pr-25 {
        padding-right: 25px !important;
    }

    .col-sm-pr-30 {
        padding-right: 30px !important;
    }

    .col-sm-pr-35 {
        padding-right: 35px !important;
    }

    .col-sm-pr-40 {
        padding-right: 40px !important;
    }

    .col-sm-pr-45 {
        padding-right: 45px !important;
    }

    .col-sm-pr-50 {
        padding-right: 50px !important;
    }
}

/* md */
@media (min-width: 768px) {
    .text-right-sm {
        text-align: right;
    }

    .m-b-md-15 {
        margin-bottom: 15px !important;
    }

    .m-b-5-sm {
        margin-bottom: 5px;
    }

    .col-md-pr-5 {
        padding-right: 5px !important;
    }

    .col-md-pr-10 {
        padding-right: 10px !important;
    }

    .col-md-pr-15 {
        padding-right: 15px !important;
    }

    .col-md-pr-20 {
        padding-right: 20px !important;
    }

    .col-md-pr-25 {
        padding-right: 25px !important;
    }

    .col-md-pr-30 {
        padding-right: 30px !important;
    }

    .col-md-pr-35 {
        padding-right: 35px !important;
    }

    .col-md-pr-40 {
        padding-right: 40px !important;
    }

    .col-md-pr-45 {
        padding-right: 45px !important;
    }

    .col-md-pr-50 {
        padding-right: 50px !important;
    }
}

/* lg */
@media (min-width: 992px) {
    .m-b-5-md {
        margin-bottom: 5px;
    }

    .col-lg-pr-5 {
        padding-right: 5px !important;
    }

    .col-lg-pr-10 {
        padding-right: 10px !important;
    }

    .col-lg-pr-15 {
        padding-right: 15px !important;
    }

    .col-lg-pr-20 {
        padding-right: 20px !important;
    }

    .col-lg-pr-25 {
        padding-right: 25px !important;
    }

    .col-lg-pr-30 {
        padding-right: 30px !important;
    }

    .col-lg-pr-35 {
        padding-right: 35px !important;
    }

    .col-lg-pr-40 {
        padding-right: 40px !important;
    }

    .col-lg-pr-45 {
        padding-right: 45px !important;
    }

    .col-lg-pr-50 {
        padding-right: 50px !important;
    }
}

/* xl */
@media (min-width: 1200px) {
    .m-b-0-lg {
        margin-bottom: 0px;
    }
}

.m-t-50 {
    margin-top: 50px !important;
}

.m-w-50 {
    max-width: 50px;
}

/* Action Grid Width */
.button-1-mini-width {
    min-width: 40px;
    max-width: 50px;
}

.button-1-width {
    min-width: 75px;
    max-width: 90px;
}

.button-2-width {
    min-width: 150px;
    max-width: 165px;
}

.button-3-width {
    min-width: 225px;
    max-width: 240px;
}

.button-4-width {
    min-width: 300px;
    max-width: 315px;
}

/* Loading Spinner */
.spin {
    height: auto;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

    .spin span {
        height: 56px;
        width: 56px;
        border: 1px solid white;
        display: block;
        border-radius: 50%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        animation: spin 1500ms ease-in-out infinite;
    }

    .spin .one {
        animation-delay: 500ms;
        animation: spin 2000ms ease-in-out infinite;
    }

    .spin .two {
        animation: spin 1700ms ease-in-out infinite;
        animation-delay: 300ms;
        border: 10px solid teal;
    }

    .spin .two {
        animation: spin 2000ms ease-in-out infinite;
        border-color: #008a8a;
    }

@keyframes spin {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes hide {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.loading-spin {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin2 2s linear infinite;
    margin: auto;
}

@keyframes spin2 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* datepicker overlap menu */
.datepicker {
    z-index: 1151 !important;
}

    /* datepicker today highlight color */
    .datepicker table tr td.today,
    .datepicker table tr td.today:hover,
    .datepicker table tr td.today.disabled,
    .datepicker table tr td.today.disabled:hover {
        background: #ffe1ab !important;
    }

/* Hide edge & chrome datepicker */
input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

input[type="date"]::-webkit-input-placeholder {
    visibility: hidden !important;
    -webkit-appearance: none;
}

/* datepicker color */
.datepicker table tr td.new, .datepicker table tr td.old {
    color: #999 !important;
    background: #f8f8f8;
}

.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
    color: #c2c2c2 !important;
}

    .datepicker table tr td.disabled.new, .datepicker table tr td.disabled.new:hover {
        color: #c2c2c2 !important;
        background: #f8f8f8;
    }

.btn span.active.fa {
    display: none;
}

.btn span.non-active.fa {
    display: block;
}

.btn.active span.active.fa {
    display: block;
}

.btn.active span.non-active.fa {
    display: none;
}

/* btn-darkgrey */
.btn.btn-darkgrey {
    color: #fff;
    background: #656565;
    border-color: #656565;
}

.btn-darkgrey:hover,
.btn-darkgrey:focus,
.btn-darkgrey:active,
.btn-darkgrey.active,
.open .dropdown-toggle.btn-darkgrey {
    background: #202020;
    border-color: #202020;
}

.btn-group .btn.btn-darkgrey:not(.active) + .btn.btn-darkgrey,
.input-group-btn .btn.btn-darkgrey:not(.active) + .btn.btn-darkgrey {
    border-left-color: #202020;
}

/* 5th Column Bootstrap */
.col-2dot4,
.col-sm-2dot4,
.col-md-2dot4,
.col-lg-2dot4,
.col-xl-2dot4 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-2dot4 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}

@media (min-width: 540px) {
    .col-sm-2dot4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 720px) {
    .col-md-2dot4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 960px) {
    .col-lg-2dot4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1140px) {
    .col-xl-2dot4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Give media a link a cursor pointer */
.media a {
    cursor: pointer;
}

/* Center the image inside a modal */
.center-modal-image {
    margin: auto;
}

/* Bulletin and Generic use */
.text-decoration-underline {
    text-decoration: underline;
}

.text-link {
    color: #337ab7 !important;
    margin-top: 0;
    margin-bottom: 0;
}

    .text-link:hover {
        text-decoration: underline;
    }

    .text-link a {
        color: #337ab7 !important;
    }

.bulletin-date {
    font-size: 11px;
    color: #bdbfc1;
}

.bulletin-image {
    margin: auto;
    max-height: 200px;
    cursor: pointer;
}

/* Fix input placeholder style */
.form-control::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: #999;
    font-size: 14px;
}

.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #999;
    font-size: 14px;
    opacity: 1; /* Firefox */
}

.form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #999;
    font-size: 14px;
}

.form-control::-ms-input-placeholder { /* Microsoft Edge */
    color: #999;
    font-size: 14px;
}

.form-control:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #999;
    font-size: 14px;
}

.form-control::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #999;
    font-size: 14px;
}

/* Darken card img overlay */
.card-overlay:hover > .darken-overlay {
    border-radius: 4px;
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-transition: all ease-in-out 0.50s;
    -o-transition: all ease-in-out 0.50s;
    transition: all ease-in-out 0.50s;
}

/* time range */
.input-timerange {
    width: 100%;
}

    .input-timerange input {
        text-align: center;
    }

    .input-timerange .input-group-addon {
        width: auto;
        min-width: 16px;
        line-height: 1.42857143;
        margin-left: -5px;
        margin-right: -5px;
        background: #d6d8dd !important;
        border: none !important;
        text-shadow: none !important;
        padding: 6px 12px !important;
        border-radius: 0 !important;
        cursor: pointer;
    }

/* style vendor's log view page to make sure the border and text are align properly */
.form-bordered .form-group:last-child {
    border-bottom: 1px solid #eee;
}

.border-b-0 {
    border-bottom: 0px !important;
}

.value-label {
    padding: 22px 15px 15px;
}

.value-label {
    padding-top: 7px;
}

/* Datatable */
div.dataTables_filter {
    text-align: center !important;
}

.table.dataTable.table-bordered.collapsed { /* override */
    border-right: 1px solid #dee2e6 !important;
}

/* Clickable Row */
.table-row-click tbody tr:hover {
    cursor: pointer;
}

.table-row-click tbody tr.odd {
    background-color: #f6f6f6;
}

.table-row-click tbody tr.even {
    background-color: #fff;
}

.table-row-click tbody tr.odd:hover {
    background-color: #d9f5f5;
}

.table-row-click tbody tr.even:hover {
    background-color: #d9f5f5;
}

@media (min-width: 768px) {
    div .dataTables_filter {
        text-align: left !important;
    }
}

.dataTables_length {
    float: right;
    margin-right: 0px;
}

.left_length .dataTables_length {
    float: left;
    margin-right: 0px;
}

/* Accounting List */
.accounting-header > th {
    background: #242a30 !important;
    color: #fff !important;
}

.disabledLink {
    cursor: default;
    padding: 10px 15px;
    line-height: 20px;
    color: #6e7179;
}

table.table-bordered.dataTable tbody tr.group td {
    background-color: #ddd !important;
}

/* Announcement */
.announcement-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 1050;
    opacity: 0;
    border-radius: 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 500ms ease-out;
}

    .announcement-content.show {
        opacity: 1;
        transform: translateY(0%);
        transition-delay: 1000ms;
    }
/* End Announcement */

/* EU Cookie */
.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0;
    border-radius: 0;
    background: #212327;
    transform: translateY(100%);
    transition: all 500ms ease-out;
    color: #ecf0f1;
}

    .cookiealert.show {
        opacity: 1;
        transform: translateY(0%);
        transition-delay: 1000ms;
    }

    .cookiealert a {
        text-decoration: underline
    }

    .cookiealert .acceptcookies {
        margin-left: 10px;
        vertical-align: baseline;
    }
/* End EU Cookie */

/* Custom Icon */
.list-item .icon {
    width: 50px;
    height: 50px;
    padding-top: 5px;
    padding-bottom: 5px;
}

    .list-item.icon i {
        display: block;
        width: 50px;
        height: 50px;
        border-radius: 8px;
        text-align: center;
        line-height: 50px;
        font-size: 14px;
        color: #fff;
    }

/* custom light bg */
.bg-teal-light-1 {
    background-color: #d4eeee !important;
}

.bg-teal-light-2 {
    background-color: #b7eeee !important;
}

/* Custom hover color for list group */
.list-group .list-group-item.bg-teal-light-1:hover {
    background-color: #e0fcfc !important;
}

.list-group .list-group-item.bg-white-transparent-8:hover {
    background-color: rgba(255,255,255,.5) !important;
}
/* Overwrite dropdown li */
.dropdown-menu > li.dropdown-footer > a {
    padding: 0 !important;
    display: inline-block !important;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.border-thin-grey {
    border: 1px solid #eeeeee;
}

.border-r-10 {
    border-radius: 10px;
}

/* summernote */
.note-editor.note-frame.card {
    border: 1px solid #a9a9a9 !important;
}

/* Loading */
.jFreezer {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 8000;
    background: #000;
    display: none;
}

.jLoading {
    text-align: center;
    z-index: 9000;
    position: absolute;
    color: #4ad2d2;
    display: none;
}
/* Ion Range Slider */
.irs--big .irs-handle {
    top: 16px !important;
}

/* Component - Button - Dark Green */
.btn.btn-green-dark,
.btn.btn-green-dark.disabled,
.btn.btn-green-dark.disabled:hover,
.btn.btn-green-dark.disabled:focus,
.btn.btn-green-dark[disabled],
.btn.btn-green-dark[disabled]:hover,
.btn.btn-green-dark[disabled]:focus {
    color: #fff;
    background: #288728;
    border-color: #288728;
}

.btn-green-dark:hover,
.btn-green-dark:focus,
.btn-green-dark:active,
.btn-green-dark.active,
.btn-green-dark.active.focus,
.btn-green-dark.active:focus,
.btn-green-dark.active:hover,
.btn-green-dark:active.focus,
.btn-green-dark:active:focus,
.btn-green-dark:active:hover,
.show > .btn-green-dark.dropdown-toggle,
.open > .dropdown-toggle.btn-green-dark,
.open > .dropdown-toggle.btn-green-dark:hover,
.open > .dropdown-toggle.btn-green-dark:focus,
.btn-green-dark:not(:disabled):not(.disabled).active,
.btn-green-dark:not(:disabled):not(.disabled):active {
    background: #1d5e1d;
    border-color: #1d5e1d;
}

.input-group-append .btn.btn-green-dark,
.btn-group .btn.btn-green-dark:not(.active) + .btn.btn-green-dark,
.input-group-btn .btn.btn-green-dark:not(.active) + .btn.btn-green-dark {
    border-left-color: #1d5e1d;
}

.input-group-prepend .btn.btn-green-dark {
    border-right-color: #1d5e1d;
}

/* Fix Table menu */
/*.table-responsive {
    overflow-x: visible !important;
    overflow-y: visible !important;
}*/

/* Dashboard Shortcut */
.shortcut-icon, .shortcut-icon:link, .shortcut-icon:visited, .shortcut-icon:active, .shortcut-icon:hover {
    width: 60px;
    height: 50px;
    display: block;
    font-size: 16px;
    text-align: left;
    margin-right: 5px;
    margin-bottom: 5px;
    float: left;
    color: #fff !important;
    padding: 10px;
    line-height: 1;
    text-decoration: none;
    transition: width 0.5s ease-out;
}

    .shortcut-icon i {
        font-size: 30px;
    }

    .shortcut-icon:hover {
        width: 210px;
    }

    .shortcut-icon .shortcut-caption {
        visibility: hidden;
        opacity: 0;
        transition: all 0.7s ease-out 0.2s;
    }

    .shortcut-icon:hover .shortcut-caption {
        visibility: visible;
        opacity: 1;
    }

@media (max-width: 540px) {
    .shortcut-icon, .shortcut-icon:link, .shortcut-icon:visited, .shortcut-icon:active, .shortcut-icon:hover {
        width: 40px;
        height: 30px;
        font-size: 12px;
        padding: 5px;
    }

        .shortcut-icon i {
            font-size: 20px;
        }

        .shortcut-icon:hover {
            width: 170px;
        }
}

.shortcut-icon-top, .shortcut-icon-top:link, .shortcut-icon-top:visited, .shortcut-icon-top:active, .shortcut-icon-top:hover {
    width: 100%;
    height: 50px;
    display: block;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
    color: #fff !important;
    padding: 10px;
    text-decoration: none;
    transition: height 0.2s ease-out;
}

    .shortcut-icon-top i {
        font-size: 30px;
    }

    .shortcut-icon-top:hover {
        height: 100px;
    }

    .shortcut-icon-top .shortcut-caption-top {
        display: none;
    }

    .shortcut-icon-top:hover .shortcut-caption-top {
        display: block;
    }

@media (max-width: 992px) {
    .shortcut-icon-top, .shortcut-icon-top:link, .shortcut-icon-top:visited, .shortcut-icon-top:active, .shortcut-icon-top:hover {
        height: 50px;
    }

        .shortcut-icon-top:hover {
            height: 80px;
        }
}

.bg-gradient-blue {
    background: linear-gradient(45deg,#4099ff,#73b4ff);
}

.bg-gradient-green {
    background: linear-gradient(45deg,#2ed8b6,#59e0c5);
}

.bg-gradient-yellow {
    background: linear-gradient(45deg,#FFB64D,#ffcb80);
}

.bg-gradient-pink {
    background: linear-gradient(45deg,#FF5370,#ff869a);
}

.bg-gradient-gray {
    background: linear-gradient(45deg,#f5f5f5,#fafafa);
}

/* Typeahead */
.typeahead:focus {
    border: 2px solid #0097cf;
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999
}

.tt-menu {
    width: 422px;
    margin: 12px 0;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion {
    padding: 3px 20px;
    font-size: 12px;
    line-height: 24px;
}

    .tt-suggestion:hover {
        cursor: pointer;
        color: #fff;
        background-color: #008181;
    }

    .tt-suggestion.tt-cursor {
        color: #fff;
        background-color: #008181;
    }

    .tt-suggestion p {
        margin: 0;
    }

/* jQuery.mccp.poptips */
.poptips-content {
    display: none;
}

.poptips-body {
    text-decoration: underline;
    color: #0056b3;
}

    .poptips-body:hover {
        text-decoration: none;
        cursor: pointer;
    }

/* Popover */
.popovertext {
    text-decoration: underline;
    color: #0056b3;
}

    .popovertext:hover {
        text-decoration: none;
        cursor: pointer;
    }

/* custom bg-gray */
.bg-dark-gray-200 {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-gray-200-rgb),var(--bs-bg-opacity)) !important;
}

/* custom width percent */
.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

/* custom height */
.h-700px {
    height: 700px !important;
}

.h-800px {
    height: 800px !important;
}

.h-900px {
    height: 900px !important;
}

.h-1000px {
    height: 1000px !important;
}

/* Override Timeline */
.timeline-override .timeline-time {
    width: 15% !important;
}

.timeline-override .timeline-icon {
    left: 13% !important;
}

.timeline-override .timeline-content {
    margin-left: 22% !important;
}

.timeline-override:before {
    left: 18% !important;
}

.timeline a {
    text-decoration: none;
}

    .timeline a:hover {
        text-decoration: underline;
    }

/* Avatar Size */
.avatar-xs {
    height: 1.5rem;
    width: 1.5rem;
}

.avatar-sm {
    height: 3rem;
    width: 3rem;
}

.avatar-md {
    height: 4.5rem;
    width: 4.5rem;
}