/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px !important;
}

#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex;
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1501;
}

.responsive-max-height {
    max-height: 60vh;
}

@media (max-width: 767.98px) {
    .responsive-max-height {
        max-height: 40vh;
    }
}

.responsive-schedule-width {
    width: 82px;
}

@media (max-width: 767.98px) {
    .responsive-schedule-width {
        width: 132px;
    }
}

.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

    .dx-toolbar .dx-toolbar-item.menu-button > .dx-toolbar-item-content .dx-icon {
        color: #ff5722;
    }

.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

    .dx-card.wide-card {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        border-right: 0;
        border-left: 0;
    }

.with-footer > div > div > .dx-scrollable-content {
    height: 100%;
}

    .with-footer > div > div > .dx-scrollable-content > .dx-scrollview-content {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

    .layout-body .menu-container {
        height: 100%;
        width: 250px;
    }

    .layout-body .content {
        flex-grow: 1;
        height: 100%;
        line-height: 1.5;
    }

        .layout-body .content h2 {
            font-size: 30px;
            font-weight: 300;
            letter-spacing: -.5px;
        }

    .layout-body .content-block {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 20px;
    }

    .layout-body .content-footer {
        display: block;
        color: rgba(0,0,0,.609);
        border-top: 1px solid rgba(0,0,0,.1);
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .layout-body .responsive-paddings {
        padding: 20px;
    }

.layout-body-hidden {
    visibility: hidden;
}

@media screen and (min-width: 600px) {
    .layout-body .content-block {
        margin-left: 40px;
        margin-right: 40px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

.menu-container .dx-widget {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: Roboto,RobotoFallback,Helvetica,Arial,sans-serif;
    line-height: 24px;
}

.menu-container .dx-treeview {
    white-space: nowrap;
}

    .menu-container .dx-treeview .dx-treeview-item {
        padding-left: 0;
        padding-right: 0;
    }

        .menu-container .dx-treeview .dx-treeview-item .dx-icon {
            width: 60px !important;
            margin: 0 !important;
        }

    .menu-container .dx-treeview .dx-treeview-node {
        padding: 0 0 !important;
    }

    .menu-container .dx-treeview .dx-treeview-toggle-item-visibility {
        right: 10px;
        left: auto;
    }

    .menu-container .dx-treeview .dx-rtl .dx-treeview-toggle-item-visibility {
        left: 10px;
        right: auto;
    }

    .menu-container .dx-treeview .dx-treeview-node[aria-level="1"] {
        font-weight: bold;
        border-bottom: 1px solid #515159;
    }

    .menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
        font-weight: normal;
        padding: 0 60px;
    }

    .menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node.dx-state-selected:not(.dx-state-focused) > .dx-treeview-item {
        background: transparent;
    }

    .menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node.dx-state-selected > .dx-treeview-item * {
        color: #FF5722;
    }

    .menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node:not(.dx-state-focused) > .dx-treeview-item.dx-state-hover {
        background-color: #3F3F4B;
    }

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.dropdown-menu {
    top: 100%;
    left: 0;
    width: 100% !important;
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-menu .dropdown-item:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    z-index: 1000;
}

.nav-link.dropdown-toggle::after {
    content: '';
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    display: inline-block;
    vertical-align: middle; /* Adjust the vertical alignment */
    margin-left: 10px; /* Adjust the space between text and triangle */
    margin-top: -2px; /* Adjust the vertical position of the triangle */
    transform: rotate(270deg); /* Rotate the triangle if needed */
}

.dx-menu-item {
    color: rgba(0, 0, 0, .87);
}

/*.table-responsive {
    overflow-y: auto;
    max-height: 400px;
}

.table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.table thead tr:nth-child(2) th {
    position: sticky;
    top: 51px;
    z-index: 1;
    background-color: #f8f9fa;
}

.table thead tr:nth-child(3) th {
    position: sticky;
    top: 114px;
    z-index: 1;
    background-color: #f8f9fa;
}

.table thead tr:nth-child(4) th {
    position: sticky;
    top: 151px;
    z-index: 1;
    background-color: #f8f9fa;
}*/

/*Legends for Schedule*/
.sDraft {
    background-color: palevioletred !important;
}

.sConfirmed {
    background-color: goldenrod !important;
}

.sApproved {
    background-color: #55d377 !important;
}

.sPermanentSched {
    background-color: #eaf4f7 !important;
}
/*Legends for Schedule*/

/*Legends for Deployment*/
/*.sPromPend {
    background-color: #b4caa4;
}

.sPromSched {
    background-color: #55d377;
}*/

.sPromDep {
    background-color: seagreen !important;
}

.sCnlD {
    text-decoration: line-through;
    /*color: black;*/
}

.sPromRem {
    font-weight: bold;
    background-color: seagreen !important;
    color: firebrick !important;
}

.sPromAdhoc {
    background-color: salmon !important;
}

/*.sWDPast {
    background-color: #C2C2B2 !important;
}*/

.text-bg-sApproved {
    color: #fff;
    background-color: #55d377;
    transition: background-color 0.3s ease;
}

    .text-bg-sApproved:hover {
        background-color: #55d377;
    }

.btn-outline-sApproved {
    color: #55d377;
    border-color: #55d377;
    background-color: transparent;
}

    .btn-outline-sApproved:hover {
        color: #fff;
        background-color: #55d377;
        border-color: #55d377;
    }

.btn-sPromDep {
    color: #fff;
    background-color: seagreen;
    border-color: seagreen;
}

    .btn-sPromDep:hover {
        background-color: darkseagreen;
        color: #fff;
    }

.btn-sPromRem {
    color: firebrick;
    background-color: seagreen;
    border-color: seagreen;
}

    .btn-sPromRem:hover {
        background-color: darkseagreen;
        color: firebrick;
    }

.btn-sPromAdhoc {
    color: #fff;
    background-color: salmon;
    border-color: salmon;
}

    .btn-sPromAdhoc:hover {
        background-color: darksalmon;
        color: #fff;
    }

.btn-outline-sPromAdhoc {
    color: salmon;
    border-color: salmon;
    background-color: transparent;
}

    .btn-outline-sPromAdhoc:hover {
        color: #fff;
        background-color: salmon;
        border-color: salmon;
    }

/*Legends for Deployment*/

td.offDay {
    border: 1px dashed red !important;
}

td.halfOffDay {
    border: 1px dotted orange !important;
}

td.holiday {
    background-color: #FFFF00 !important;
}

.popup-custom-style .dx-overlay-content {
    max-width: 90%;
    max-height: 90%;
    min-width: 30%;
    /*min-height: 30%;*/
    overflow: auto;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-animated .dx-icon-refresh {
    animation: spin 1s linear infinite;
}

.vertical-list .dx-buttongroup-wrapper {
    flex-flow: column nowrap;
}

.disabled-row {
    cursor: not-allowed;
}

.dx-button {
    height: auto !important;
}

[id^="dropzone-external"] {
    width: 100%;
    max-height: 150px;
    background-color: rgb(183 183 183 / 10%);
    border-width: 2px;
    border-style: dashed;
    padding: 10px;
    border-color: var(--dx-color-border);
}

    [id^="dropzone-external"] > * {
        pointer-events: none;
    }

    [id^="dropzone-external"].dropzone-active {
        border-style: solid;
        border-color: var(--dx-color-primary);
    }

.widget-container > span {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
}

[id^="dropzone-image"] {
    max-width: 100%;
    max-height: 120px;
}

[id^="dropzone-text"] > span {
    font-weight: 100;
    opacity: 0.5;
}

[id^="dropzone-progress"] {
    display: flex;
    margin-top: 10px;
}

.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.disable-date {
    background-image: repeating-linear-gradient( 135deg, rgba(247, 234, 224, 1), rgba(247, 234, 224, 1) 4px, transparent 4px, transparent 9px );
    color: rgba(178, 74, 0, 1);
    height: 100%;
    width: 100%;
}

.past-date {
    background-image: repeating-linear-gradient( 135deg, rgba(224, 232, 247, 1), rgba(224, 232, 247, 1) 4px, transparent 4px, transparent 9px );
    color: rgba(51, 85, 139, 1);
    height: 100%;
    width: 100%;
}

.dx-scheduler-appointment-collector.dx-button {
    height: 18px !important;
}

.dx-button-text {
    white-space: normal !important;
}

.force-nowrap .dx-button-text {
    white-space: nowrap !important;
}

/*#accAllTransaction .dx-accordion-item {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

    #accAllTransaction .dx-accordion-item .dx-accordion-item-title {
        padding: 10px 14px;
        font-weight: 600;
        border-bottom: 1px solid #ddd;
    }

#accAllTransaction .dx-accordion-item-opened .dx-accordion-item-title .dx-accordion-item-title-caption {
    color: #fff;
}*/

/* container that defines the scroll context */
.table-responsive {
    overflow-y: auto; /* must be the scroll container */
    max-height: 70vh;
    position: relative; /* good to have for positioning children */
}

/* make sticky work better on table cells */
.table {
    border-collapse: separate; /* important: avoid 'collapse' for sticky on some browsers */
    border-spacing: 0;
    width: 100%;
}

    /* header cells: keep them sticky but we'll compute top values in JS (optional) */
    .table thead th {
        position: sticky;
        z-index: 3;
        background-color: #f8f9fa;
    }

    /* FOOTER: use bottom, not top */
    .table tfoot th,
    .table tfoot td {
        position: sticky;
        bottom: 0; /* <-- this is the key change */
        z-index: 4; /* higher than most header z-index if needed */
        background-color: #f8f9fa;
    }
