* {
    font-family: "Public Sans", sans-serif;
}

:root {
    --dt-row-selected: 238, 0, 51;
    --bs-form-check-bg: 238, 0, 51;
    --vt-main-color: rgb(238, 0, 51);
}


/*  Root Color  */
.btn-success {
    background-color: green !important;
    border-color: green !important;
}

.text-link {
    color: #1572E8;
    cursor: pointer;
}

.text-red {
    color: #ee0033 !important;
}

.text-green {
    color: green !important;
}

.text-orange {
    color: orange !important;
}

.text-black {
    color: black !important;
}

.text-yellow {
    color: #FE9705 !important;
}

/*  End Root Color  */

:root .table {
    --bs-table-bg: white;
}

.gg-menu-right,
.red-icon,
.gg-more-vertical-alt,
.gg-menu-right::after {
    color: #ee0033 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.red-icon:hover {
    color: blue !important;
}

.bg-red {
    background-color: #ee0033;
}

/* layout start */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
}

.breadcrumbs {
    padding-left: 0 !important;
}

.page-inner {
    padding-top: 0 !important;
}

.page-header {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fff;
    border-radius: 10px;
}

.page__title {
    display: flex;
    align-items: center;
}

.icon-home,
.fw-title {
    margin-bottom: -1px !important;
}

.nav-item {
    margin-right: 7px;
}

.page__title:hover,
.nav-item__v2:hover {
    background: rgba(77, 89, 149, 0.06);
    border-radius: 5px;
}

/* layout end */
/* custom button start */
.btn-custom {
    position: relative;
    overflow: hidden;
    background: white;
    color: black;
    border: 1px solid black;
    transition: color 0.3s, border-color 0.3s;
    z-index: 1;
    font-weight: bold;
}

.btn-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #4b4b4b;
    transition: left 0.3s;
    z-index: -1;
}

.btn-custom:hover::before {
    left: 0;
}

.btn-custom:hover {
    color: white;
    border-color: #4b4b4b;
}

.btn-custom .fa-sync {
    transition: transform 0.5s ease-in-out;
    transform: rotate(0deg);
}


.btn-custom:hover .fa-sync {
    transform: rotate(360deg);
}

.btn-red {
    position: relative;
    overflow: hidden;
    background: #ee0033 !important;
    color: white;
    border: 1px solid #ee0033;
    font-weight: bold;
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
    z-index: 1;
}

a.btn-red:focus {
    color: white !important;
}

.btn-red::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: left 0.3s;
    z-index: -1;
}

.btn-red:hover::before {
    left: 0;
}

.btn-red:hover {
    color: black;
    border-color: black;
}


.help-block {
    color: red;
}

/* custom button end */

/* switch-button custom start */
.form-check.form-switch {
    align-items: center;
    position: relative;
    width: 80px;
}

.form-check.form-switch .form-check-input {
    width: 75px;
    height: 34px;
    background-color: transparent;
    border-radius: 20px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.form-check.form-switch .form-check-input:checked {
    background-color: #dc3545;
}

.form-check.form-switch .form-check-input:checked:before {
    transform: translateX(36px);
}

.form-check.form-switch .form-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.form-check.form-switch .toggle-text-yes {
    position: absolute;
    line-height: 34px;
    color: black;
    transition: opacity 0.3s;
    font-weight: bold;
}

.form-check.form-switch .toggle-text-no {
    color: black;
    font-weight: bold;
    position: absolute;
    right: -5px;
    bottom: 6px;
}

.form-check.form-switch .toggle-text-yes {
    color: white;
    right: 24px;
    top: -34px;
}

/* switch-button custom end */

.information_border {
    border: 1px solid #ccc;
    padding: 10px;
}

.form-check-input:checked {
    background-color: rgb(238, 0, 51) !important;
}

.w-35 {
    width: 35% !important;
}


/* toast */
.jq-toast-single {
    background-color: #ee0033;
    width: 420px;
    font-size: 20px
}

.jq-toast-wrap.top-right {
    right: 183px;
}

.has-success label {
    color: black !important;
}

.has-success .form-control {
    border-color: #ebedf2 !important;
    color: black !important;
}

.form-check.form-check-inline {
    padding-left: 0px !important;
}

/*  Login   */
/*.form-floating input:not(:placeholder-shown) + label,*/
/*.form-floating input:focus + label {*/
/*    font-weight: 600;*/
/*    top: -15px;*/
/*    color: #3e93ff !important;*/
/*    z-index: 999;*/
/*}*/
/*  End Login   */

/*  Toggle Sidebar */
.toggle-sidebar {
    width: 20px;
    height: 100px;
}

/*  Breadcrumb  */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 3px;
}

.breadcrumb li:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb li:not(:first-child) {
    padding: 5px 10px;
}

.breadcrumb li:first-child {
    padding: 5px 10px 5px 0;
}

.breadcrumb-item {
    font-weight: bold;
}

.breadcrumb a {
    color: #ee0033;
    font-weight: bold;
    font-style: normal;
}

/*  End Breadcrumb  */
.selectize-input {
    font-size: 1rem;
    border-color: #ebedf2;
    padding: 0.6rem 1rem;
    height: inherit !important;
    border-width: 2px;
}

.w-20 {
    width: 20%;
}

/* Date Range Picker */
.kv-drp-dropdown .left-ind, .kv-drp-dropdown .right-ind {
    position: absolute;
    top: 0.7rem;
}

.rank-container {
    display: inline-flex;
    position: relative;
    width: 40px;
    height: 40px;
}

.rank-container .fa-bookmark {
    font-size: 24px;
    color: #333;
}

.rank-container .rank-text {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    top: 25%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.rank-container.top-1 .fa-bookmark {
    color: var(--vt-main-color);
}

.custom-chart {
    width: 920px;
    height: 600px;
}

.progress {
    height: 18px ! important;
    background-color: #c0c0c0;
}

.selectize-input.locked {
    pointer-events: none;
    background-color: #e9ecef;
    opacity: 0.65;
}

.select2-selection {
    font-size: 1rem;
    padding: 0.6rem 1rem !important;
    height: 42px !important;
}

.select2-container--krajee-bs5 .select2-selection--single .select2-selection__clear, .select2-container--krajee-bs5 .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 25px;
    top: 13px;
}

.multiple-select2 + .select2-container--krajee-bs5 .select2-selection {
    font-size: 1rem;
    padding: 0.2rem 0.5rem !important;
    height: inherit !important;
}

.multiple-select2 + .select2-container--krajee-bs5 .select2-selection__choice {
    position: relative;
    padding: 3px 15px 3px 5px;
}

.multiple-select2 + .select2-container--krajee-bs5 .select2-selection__choice__remove {
    position: absolute;
    right: 2px;
    top: 25%;
}
@media (min-width: 1920px) {
    .dashboard-responsive {
        width: 70px;
        height: 70px;
        padding-left: 0;
        padding-right: 0;
        margin-left: 15px;
    }
}

@media (max-width: 1281px) {
    .select-w-1280 {
        width: 45%;
    }

    .disk-io {
        margin-left: 20px !important;
    }
}

@media (min-width: 1280px) and (max-width: 1600px) {
    .disk-io {
        margin-left: 55px !important;
    }
}

@media (max-width: 1600px) {
    .row-2 {
        display: block !important;
    }

    .fault-list {
        width: 100% !important;
        margin-top: 20px;
    }

    .task-detail-chart {
        width: 100% !important;
    }

    #taskExecutionResultStatistics {
        margin: 0 auto;
    }

    .firmware-detail-tbl.custom-data-table {
        overflow-x: auto;
    }

    .firmware-detail-tbl.custom-data-table td, .custom-data-table th {
        font-size: 12px;
        padding: 8px;
    }

    .firmware-detail-tbl.custom-data-table td {
        max-width: 100%;
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }

    .firmware-detail-tbl.custom-data-table td:nth-child(4) {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .firmware-detail-tbl.custom-data-table th:nth-child(5),
    .firmware-detail-tbl.custom-data-table td:nth-child(5) {
        display: none;
    }

    #monitorTbl {
        display: block !important;
    }

    .kv-drp-dropdown .kv-clear {
        right: 18px !important;
    }

    .open-check-task-modal {
        margin-top: 0.7rem;
    }

    .monitor__chart--gauges div div {
        width: 400px !important;
    }

    .monitor__chart {
        display: block !important;
    }

}

.monitor__chart--line {
    width: 100%;
    height: 300px;
}

@media (max-width: 991px) {
    .main-header .navbar-header {
        min-height: 54px !important;
    }
}

.disk-io {
    margin-left: 125px;
}

.select2-selection__rendered {
    max-width: 85%;
}

.form-select {
    text-overflow: ellipsis;
}

.btn:hover, .btn:focus {
    opacity: 1 !important;
}

.row {
    row-gap: .5rem;
}

select.is-valid + .select2-container--krajee-bs5 .select2-selection--single,
.has-success.select2-container--krajee-bs5 .select2-dropdown,
.has-success .select2-container--krajee-bs5 .select2-selection {
    border-color: #ebedf2;
}

.disable-button {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.dt-scroll {
    position: relative;
}

.dt-scroll {
    position: relative;
    overflow: hidden;
}

.dt-scroll .loading-overlay {
    display: flex;
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(200, 200, 200, 0.3);
    z-index: 10;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.dt-scroll .loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.progress-bar-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    height: 18px ! important;
    background-color: #c0c0c0;
    transition: width 0.6s ease;
}

.daterangepicker.ltr.single.auto-apply.opensright.show-calendar {
    display: none !important;
}

.hide {
    display: none !important;
}

.custom-percent{
    font-size: 0.8rem;
    margin-left: 5px;
}

