﻿.content-fixed {
    min-height: calc(100vh - 115px) !important;
}

.w-10px {
    width: 10px;
}

.w-20px {
    width: 20px;
}

.w-30px {
    width: 30px;
}

.w-40px {
    width: 40px;
}

.w-50px {
    width: 50px;
}

.w-60px {
    width: 60px;
}

.w-70px {
    width: 70px;
}

.w-80px {
    width: 80px;
}

.w-90px {
    width: 90px;
}

.w-100px {
    width: 100px;
}

.w-110px {
    width: 110px;
}

.w-120px {
    width: 120px;
}

.w-130px {
    width: 130px;
}

.w-140px {
    width: 140px;
}

.w-150px {
    width: 150px;
}

.w-160px {
    width: 160px;
}

.w-170px {
    width: 170px;
}

.w-180px {
    width: 180px;
}

.w-190px {
    width: 190px;
}

.w-200px {
    width: 200px;
}

.w-250px {
    width: 250px;
}

.w-300px {
    width: 300px;
}

.w-500px {
    width: 500px;
}

.has-float-label label::after, .has-float-label > span::after {
    background: #fff;
}

.has-float-label label, .has-float-label > span, .has-top-label label, .has-top-label > span {
    color: rgba(58, 58, 58, .7);
}

.number-input {
    text-align: right;
}

.topnav-navbar .app-search {
    float: none;
}

/*.app-search .form-control {
    padding: .45rem .9rem !important;
}

.app-search .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--gray) !important;
}*/

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-top: 5px;
    margin-right: 35px;
}

.topnav .nav-link i {
    padding-right: 5px;
}

.topnav .navbar-nav .nav-link {
    padding: 1rem 1rem;
}

.sticky-topnav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

    .sticky-topnav + .container-fluid {
        padding-top: 70px;
    }

.mvc-grid-table {
    min-height: 150px;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--blue);
    color: var(--white);
    font-weight: 600;
}

dt,
dd {
    float: left;
    border-bottom: 1px solid #d7d7d7;
    line-height: 27px;
    padding-left: 10px;
}

dt {
    width: 25%;
    background-color: #e5e9f2;
}

dd {
    width: 75%;
    min-height: 27px;
}

/***CKEditor****/
textarea.form-control {
    line-height: 1.5;
}

.has-float-label label, .has-float-label > span, .has-top-label label, .has-top-label > span {
    color: rgba(58, 58, 58, .7);
}

.ck.ck-editor__main > .ck-editor__editable {
    border-color: #d7d7d7 !important;
}

.ck.ck-content.ck-editor__editable.ck-rounded-corners {
    box-shadow: initial !important;
}

.ck-rounded-corners .ck.ck-editor__main > .ck-editor__editable, .ck.ck-editor__main > .ck-editor__editable.ck-rounded-corners {
    height: 500px;
    background: #fff;
}

/********Icon*****************/
.icon {
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 15px;
    margin-left: 5px;
}

.icon-add-bullet:hover {
    color: #9c2c18
}

.icon-add {
    background-image: url(images/add.png);
    margin-top: 5px;
    float: left;
    margin-left: 2px;
}

.icon-only {
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
    display: inline-block;
    height: 16px;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.icon-edit {
    background-image: url(images/edit.png);
}

.icon-del {
    background-image: url(images/delete.png);
}

.icon-check {
    background-image: url(images/check.png);
}

.icon-close {
    background-image: url(images/close.png);
}

.table-detail table th {
    background-color: var(--gray);
    color: var(--white)
}

/***************************/
@media (max-width: 767px) {
    dt {
        width: 35%;
        background-color: #e9e9e9;
    }

    dd {
        width: 65%;
        min-height: 27px;
    }
}

@media(min-width: 767px) {
    dt {
        width: 35%;
        background-color: #e9e9e9;  
    }

    dd {
        width: 65%;
        min-height: 27px;
    }
}

@media (min-width: 1366px) {
    .modal-xl {
        max-width: 1024px !important;
    }
}

.ms-options-wrap > button:focus, .ms-options-wrap > button {
    height: 36px;
}

.ms-options-wrap > .ms-options {
    left: 5px;
}

.table td, .table th {
    vertical-align: middle !important;
}

.table td {
    vertical-align: middle !important;
    font-weight: 300;
}

.h5-color {
    color: #536de6;
}

.bootstrap-touchspin .spinner {
    text-align: center;
}

.bootstrap-touchspin-down {
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.bootstrap-touchspin-up {
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.url-link {
    color: blue;
    cursor: pointer;
}

.hide {
    display: none;
}

.mvc-grid-pager > button {
    border-radius: 50%;
}

.mvc-grid-page-sizes > select.mvc-grid-pager-rows {
    border-radius: 8px;
}

input[data-switch] + label {
    width: 66px;
}

input[data-switch]:checked + label:after {
    left: 44px;
}


tr.table-extend {
    background: lightgoldenrodyellow;
}

tr.tr-return > .input-daterange-text {
    display: none;
}

tr.tr-return:not(.table-extend) > .input-daterange {
    display: none;
}

a {
    text-decoration: none !important;
}

dt {
    font-weight: 600 !important;
    background-color: #FAFAFA;
}

.nav-tabs .nav-item {
    margin-bottom: 0px;
}

.nav-tabs .nav-link.active {
    color: rgb(73, 80, 87);
    background-color: rgb(255, 255, 255);
    border-color: rgb(222, 226, 230) rgb(222, 226, 230) rgb(255, 255, 255);
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.custom-control-label {
    line-height: 1.4 !important;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: var(--ct-gutter-x,0px);
    padding-left: var(--ct-gutter-x,0px);
    margin-right: auto;
    margin-left: auto
}

.select2-container {
    width: 100% !important;
}

/* --- Sidebar UX --- */
.sidebar .sidebar-brand {
    padding: 0.875rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar .sidebar-brand-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.sidebar .sidebar-search {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8f9fb;
}

.sidebar .sidebar-search-inner {
    position: relative;
}

.sidebar .sidebar-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8c98a4;
    font-size: 0.8rem;
    pointer-events: none;
}

.sidebar .sidebar-search-input {
    padding-left: 2rem;
    border-radius: 1.25rem;
    border-color: #dde2e8;
    background: #fff;
}

.sidebar .sidebar-search-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

.sidebar .nav > .nav-item > .nav-link,
.sidebar .submenu .nav-link {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.sidebar .submenu .nav-link {
    padding-left: 2.75rem;
    font-size: 0.92rem;
}

.sidebar .nav-item.active > .nav-link,
.sidebar .submenu .nav-item.active > .nav-link {
    font-weight: 600;
}

.sidebar .nav-item.sidebar-search-open > .nav-link {
    background-color: rgba(0, 123, 255, 0.06);
}

@media (max-width: 1199.98px) {
    .sidebar .ace-scroll,
    .sidebar .sidebar-section {
        width: 100%;
    }

    .sidebar .nav > .nav-item > .nav-link,
    .sidebar .submenu .nav-link {
        min-height: 3rem;
        font-size: 0.95rem;
    }

    .sidebar .submenu .nav-link {
        padding-left: 3rem;
    }
}

.btn-custom-mobile {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 3.25rem;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-name-mo {
    color: white;
    font-size: large;
    float: left;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.625rem 1rem;
    margin-bottom: 0.625rem;
    list-style: none;
    /*background-color: #f8f9fa;*/
    border-radius: 0.25rem;
    font-size: 16px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0;
    color: #007bff;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

    .breadcrumb-item a:hover {
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #6c757d;
}

@media (min-width: 769px) {
    .cus-ml-1 {
        margin-left: 5px;
    }

    select {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


}

@media (max-width: 767.98px) {
    .page-content {
        padding: 0.5rem 0.75rem 4.5rem;
    }

    .fixed-search,
    .fixed-search-dashboard {
        position: sticky !important;
        top: 0 !important;
        z-index: 900 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
        margin: 0 0 0.75rem 0 !important;
        background-color: #fff !important;
        border: 1px solid #e9ecef;
        border-radius: 0.25rem;
        box-sizing: border-box !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .fixed-search > div:not(.respon-btn-create),
    .fixed-search .d-flex {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .fixed-search > div:not(.respon-btn-create) > div,
    .fixed-search .d-flex > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 0.5rem;
    }

    .fixed-search .form-control,
    .fixed-search select,
    .fixed-search input,
    .fixed-search-dashboard select,
    .fixed-search-dashboard input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .fixed-search .disposition-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .fixed-search .respon-btn-create {
        position: fixed !important;
        bottom: 1rem !important;
        right: 1rem !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1000;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .fixed-search .respon-btn-create .btn,
    .fixed-search .respon-btn-create .btn-custom-mobile {
        position: fixed !important;
        bottom: 1rem !important;
        right: 1rem !important;
        width: 3.25rem !important;
        min-width: 3.25rem !important;
        max-width: 3.25rem !important;
        height: 3.25rem !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .fixed-search .respon-btn-create .btn .btn-text {
        display: none !important;
    }

    .mvc-grid-table,
    .pd-12,
    .pd-13,
    .pd-14,
    .pd-15,
    .pd-16,
    .pd-18,
    .pd-20,
    .pd-22,
    .pd-24,
    .pd-32,
    .pd-46,
    .pd-58 {
        padding-top: 0 !important;
    }

    .index-grid-body {
        width: 100%;
        overflow-x: auto;
    }

    .mobile-filter-form .form-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .page-header .form-inline,
    .page-header .d-flex {
        width: 100%;
        margin-top: 0.5rem;
    }

    .page-header .form-control,
    .page-header select {
        width: 100%;
    }

    .mvc-grid table.basictable {
        font-size: 0.875rem;
    }

    .mvc-grid .table td,
    .mvc-grid .table th {
        white-space: normal;
        word-break: break-word;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .card-body-detail {
        padding: 0.75rem;
    }

    .mobile-tree-detail.show-tree .mobile-list-panel,
    .mobile-tree-detail.show-list .mobile-tree-panel {
        display: none !important;
    }

    .mobile-tree-detail.show-tree .mobile-tree-panel,
    .mobile-tree-detail.show-list .mobile-list-panel {
        display: block !important;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mobile-tree-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}