/*!
 * Bootstrap Blazor v5 (https://www.blazor.zone/)
 * Copyright 2020-2021 The Longbow Argo (argo@163.com)
 * Licensed under MIT (https://github.com/dotnetcore/BootstrapBlazor/blob/main/LICENSE)
 */

:root {
    --bs-border-radius: .25rem;
    --bs-bg-disabled: #ebeef5;
    --bs-border-color: #ebeef5;
}

:fullscreen {
    background-color: #fff;
}

body, .form-control, .dropdown-menu, .form-select,
.btn:not(.btn-xs):not(.btn-sm):not(.btn-md):not(.btn-lg):not(.btn-xl),
.input-group-text {
    font-size: 0.875rem;
}

.btn-close:focus {
    box-shadow: none;
}

:focus, button:focus {
    outline: none;
}

a {
    cursor: pointer;
}

    a, a:hover, a:focus {
        text-decoration: none;
        outline: none;
    }

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-control.is-valid,
.was-validated .form-control:valid,
.form-control.valid.modified:not([type=checkbox]) {
    outline: none;
}

.form-control.is-display {
    height: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-cell .form-control.is-display,
form .form-control.is-display {
    background-color: var(--bs-bg-disabled);
}

[disabled],
:disabled,
.disabled,
.disabled > * {
    cursor: not-allowed !important;
}

.form-control:focus {
    border-color: #66afe9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.control-label {
    margin-right: 10px;
    width: 90px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus,
.was-validated .custom-select:invalid:focus,
.custom-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(220, 53, 69,.6);
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus,
.was-validated .custom-select:valid:focus,
.custom-select.is-valid:focus {
    border-color: #28a745;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(40, 167, 69,.6);
}

.arrow-primary {
    border-color: transparent transparent #0d6efd;
}

.arrow-success {
    border-color: transparent transparent #198754;
}

.arrow-info {
    border-color: transparent transparent #0dcaf0;
}

.arrow-warning {
    border-color: transparent transparent #ffc107;
}

.arrow-danger {
    border-color: transparent transparent #dc3545;
}

.show .shadow-primary, .shadow-primary:hover, .shadow-primary:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(0, 123, 255, 0.5);
    border-color: #0d6efd !important;
}

.show .shadow-success, .shadow-success:hover, .shadow-success:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(40, 167, 69, 0.5);
    border-color: #198754 !important;
}

.show .shadow-info, .shadow-info:hover, .shadow-info:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(23, 162, 184, 0.5);
    border-color: #0dcaf0 !important;
}

.show .shadow-warning, .shadow-warning:hover, .shadow-warning:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(255, 193, 7, 0.5);
    border-color: #ffc107 !important;
}

.show .shadow-danger, .shadow-danger:hover, .shadow-danger:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(220, 53, 69, 0.5);
    border: 1px solid #dc3545 !important;
}

.show .shadow-secondary, .shadow-secondary:hover, .shadow-secondary:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #c0c4cc;
    border: 1px solid #6c757d !important;
}

.show .shadow-dark, .shadow-dark:hover, .shadow-dark:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #c0c4cc;
    border: 1px solid #343a40 !important;
}

.show .shadow-default, .shadow-default:hover, .shadow-default:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    border: 1px solid #337ab7;
}

/*swal*/
.swal .modal-header {
    display: none;
}

.swal2-icon,
.swal2-actions {
    display: flex;
}

.swal2-actions {
    margin-bottom: 1rem;
}
/*end swal*/

.close {
    display: flex;
}

/*captcha*/
.captcha {
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.125);
}

.captcha-refresh {
    float: right;
    cursor: pointer;
    padding-left: 0.5rem;
}

.captcha-body {
    position: relative;
}

    .captcha-body .captcha-load {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .captcha-body .captcha-body-bg, .captcha-body .captcha-body-bar {
        position: absolute;
        border-radius: 2px;
        top: 0;
        left: 0;
    }

.captcha-footer {
    text-align: center;
    background: #f7f9fa;
    color: #45494c;
    border-radius: 2px;
    margin-top: 0.5rem;
    position: relative;
}

.captcha-footer, .captcha-bar-bg {
    line-height: 40px;
    height: 40px;
}

.captcha-bar-bg {
    position: absolute;
    border-radius: 4px;
}

.captcha-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-footer.is-move .captcha-bar-text {
    display: none;
}

.captcha-footer.is-move .captcha-bar-bg {
    border: 1px solid #1991FA;
    background-color: #D1E9FE;
}


.captcha-footer.is-valid .captcha-bar .fa-arrow-right:before {
    content: "\f00c";
}

.captcha-footer.is-invalid .captcha-bar {
    border: 1px solid #f57a7a;
    background-color: #f57a7a;
}

.captcha-footer.is-invalid .captcha-bar-bg {
    border: 1px solid #f57a7a;
    background-color: #fce1e1;
    border-width: 1px 0 1px 1px;
}

.captcha-footer.is-invalid .captcha-bar .fa-arrow-right:before {
    content: "\f00d";
}

.captcha-footer.is-valid .captcha-bar {
    border: 1px solid #52CCBA;
    background-color: #52CCBA;
}

.captcha-footer.is-valid .captcha-bar-bg {
    border: 1px solid #52CCBA;
    border-width: 1px 0 1px 1px;
    background-color: #D2F4EF;
}

.captcha-footer.is-valid .captcha-bar .fa-arrow-right:before {
    content: "\f00c";
}
/*end captcha*/

/*divider*/
.divider {
    background-color: #dcdfe6;
    position: relative;
}

    .divider .divider-text {
        position: absolute;
        background-color: #fff;
        padding: 0 20px;
        font-weight: 500;
        color: #303133;
        font-size: 14px;
    }

    .divider.divider-horizontal {
        display: block;
        height: 1px;
        width: 100%;
        margin: 1rem 0;
    }

        .divider.divider-horizontal .divider-text.is-left {
            left: 20px;
            transform: translateY(-50%);
        }

        .divider.divider-horizontal .divider-text.is-center {
            left: 50%;
            transform: translateX(-50%) translateY(-50%);
        }

        .divider.divider-horizontal .divider-text.is-right {
            right: 20px;
            transform: translateY(-50%);
        }

.divider-vertical {
    width: 1px;
    margin: 0 1rem;
}

.divider.divider-vertical .divider-text {
    padding: 20px 0;
}

    .divider.divider-vertical .divider-text.is-left {
        top: 20px;
        transform: translateX(-50%);
    }

    .divider.divider-vertical .divider-text.is-center {
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .divider.divider-vertical .divider-text.is-right {
        bottom: 20px;
        transform: translateX(-50%);
    }
/*end divider*/

/*avatar*/
.avatar {
    border-radius: 4px;
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #c0c4cc;
    color: #fff;
}

    .avatar img {
        width: 100%;
        object-fit: cover;
    }

    .avatar.is-circle {
        border-radius: 50%;
    }

    .avatar.is-xl {
        width: 70px;
        height: 70px;
    }

    .avatar.is-lg {
        width: 60px;
        height: 60px;
    }

    .avatar.is-sm {
        width: 40px;
        height: 40px;
    }

    .avatar.is-xs {
        width: 30px;
        height: 30px;
    }

    .avatar i {
        font-size: 1.4rem;
    }
/*end avatar*/

/*timeline*/
.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .timeline .time-line-item {
        position: relative;
        padding-bottom: 1rem;
    }

        .timeline .time-line-item:last-child {
            padding-bottom: 0;
        }

        .timeline .time-line-item .time-line-item-tail {
            position: absolute;
            left: 4px;
            height: 100%;
            border-left: 2px solid #e4e7ed;
        }

        .timeline .time-line-item:last-child .time-line-item-tail {
            display: none
        }

    .timeline .timeline-item-node-normal {
        left: -1px;
        width: 12px;
        height: 12px;
    }

    .timeline .timeline-item-node {
        position: absolute;
        background-color: #e4e7ed;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .timeline .timeline-item-node.is-icon {
            background-color: transparent;
        }

    .timeline .timeline-item-wrapper {
        position: relative;
        padding-left: 1.5rem;
        top: -4px;
    }

    .timeline .timeline-item-content {
        color: #303133;
    }

    .timeline .timeline-item-timestamp {
        margin-top: 0.5rem;
        color: #909399;
    }

    .timeline.is-alternate .time-line-item-tail,
    .timeline.is-alternate .timeline-item-node {
        left: 50%;
    }

    .timeline.is-alternate .timeline-item-node {
        margin-left: -5px;
    }

    .timeline.is-alternate .time-line-item:nth-child(odd) .timeline-item-wrapper {
        left: calc(50% - 5px);
        width: calc(50% - 1rem);
        text-align: left;
    }

    .timeline.is-alternate .time-line-item:nth-child(even) .timeline-item-wrapper {
        width: calc(50% - 1rem);
        margin: 0;
        text-align: right;
    }

    .timeline.is-left .time-line-item-tail,
    .timeline.is-left .timeline-item-node {
        left: 100%;
    }

    .timeline.is-left .timeline-item-node {
        margin-left: -5px;
    }

    .timeline.is-left .time-line-item .timeline-item-wrapper {
        width: calc(100% - 1rem);
        margin: 0;
        text-align: right;
    }
/*end timeline*/

/*footer*/
.footer {
    background: #5b6e84;
    color: #fff;
    padding: 10px 4px;
    height: 40px;
    display: flex;
}

    .footer .footer-text {
        flex: 1 1 auto;
        text-align: center;
    }
/*end footer*/

/*circle*/
.circle {
    display: inline-block;
    position: relative;
}

.circle-progress {
    transition: stroke-dashoffset .3s linear;
}

.circle-primary {
    stroke: #1593FF;
}

.circle-danger {
    stroke: #dc3545;
}

.circle-success {
    stroke: #28a745;
}

.circle-warning {
    stroke: #ffc107;
}

.circle-info {
    stroke: #17a2b8;
}

.circle-secondary {
    stroke: #6c757d;
}

.circle-dark {
    stroke: #343a40;
}

.circle-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
/*end circle*/

/* InputNumber */
.input-number-fix::-webkit-outer-spin-button,
.input-number-fix::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}
/*end InputNumber*/

/*Textarea*/
@media (min-width: 576px) {
    .row.form-inline textarea.form-control {
        width: calc(100% - 100px);
    }
}
/*End Textarea*/

/*editor-form*/
.ef-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;
}
/*end editor-form*/

form .form-label:before {
    content: "";
    position: relative;
    top: 2px;
    margin-right: 2px;
    display: inline-block;
    min-width: 5px;
}

form .form-label[required]:before {
    content: "*";
    color: red;
}

/*form-control*/
.form-control.is-valid[type="number"],
.form-control.is-invalid[type="number"] {
    padding-right: .75rem;
    background-image: none;
}
/*end*/

.transfer-panel-empty {
    position: absolute;
    top: 35%;
    width: 100%;
}

/*pulse*/
.pulse {
    position: relative
}

    .pulse.pulse-white .pulse-ring {
        border-color: #fff
    }

    .pulse.pulse-light .pulse-ring {
        border-color: #f5f8fa
    }

    .pulse.pulse-primary .pulse-ring {
        border-color: #009ef7
    }

    .pulse.pulse-secondary .pulse-ring {
        border-color: #e4e6ef
    }

    .pulse.pulse-success .pulse-ring {
        border-color: #50cd89
    }

    .pulse.pulse-info .pulse-ring {
        border-color: #7239ea
    }

    .pulse.pulse-warning .pulse-ring {
        border-color: #ffc700
    }

    .pulse.pulse-danger .pulse-ring {
        border-color: #f1416c
    }

    .pulse.pulse-dark .pulse-ring {
        border-color: #181c32
    }

.pulse-ring {
    display: block;
    border-radius: 40px;
    height: 40px;
    width: 40px;
    position: absolute;
    animation: animation-pulse 3.5s ease-out;
    animation-iteration-count: infinite;
    opacity: 0;
    border-width: 3px;
    border-style: solid;
    border-color: #a1a5b7
}

@keyframes animation-pulse {
    0% {
        -webkit-transform: scale(.1,.1);
        opacity: 0
    }

    60% {
        -webkit-transform: scale(.1,.1);
        opacity: 0
    }

    65% {
        opacity: 1
    }

    100% {
        -webkit-transform: scale(1.2,1.2);
        opacity: 0
    }
}
/*end pulse*/

.fs-on,
.fs-open .fs {
    display: none;
}

.fs-open .fs-on {
    display: block;
}

.arrow-danger {
    border-color: transparent transparent var(--bs-danger);
}

.arrow-success {
    border-color: transparent transparent var(--bs-success);
}

.arrow-primary {
    border-color: transparent transparent var(--bs-primary);
}

.arrow-warning {
    border-color: transparent transparent var(--bs-warning);
}

.arrow-info {
    border-color: transparent transparent var(--bs-info);
}
