:root {
    --oxford-blue: #002147;
}

body {
    background: whitesmoke !important;
}

.login-page {
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    height: calc(100vh - 56px);
    -ms-flex-pack: center;
    justify-content: center;
}

.nav-item .active {
    border-bottom: 2px solid #0d6efd;
}

@media (max-width: 760px) {
    .collapse .nav-link {
        margin-left: 8px;
        padding-left: 10px !important;
    }

    .nav-item .active {
        border-left: 2px solid #0d6efd;
        border-bottom: none;
    }

    .nav-link {
        padding-left: 5px;
    }
}

.dx-invalid-message>.dx-overlay-content {
    background-color: transparent !important;
    color: #d13438 !important;
}

.login-page-header-img {
    width: 150px;
}

.footer-container {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.active .bs-stepper-circle {
    background-color: #0f6cbd !important;
}

.profile-dropdown-menu {
    left: -110px !important;
}

.main-body-margin-bottom {
    margin-bottom: 70px;
}

input[type="password"]::-ms-reveal {
    display: none !important;
}

.dx-drawer-wrapper {
    height: 100vh !important;
}

.dx-drawer-panel-content {
    width: 200px !important;
}

.side-bar-container {
    width: 200px;
    background: var(--oxford-blue) !important;
    height: 100vh;
}

.side-bar-container .dx-list-item-content {
    padding: 12px !important;
}

.side-bar-container .dx-item-content {
    color: white;
    cursor: pointer;
}

.nav-container .dx-icon {
    color: white !important;
}

.nav-container .dx-state-hover .dx-icon {
    color: var(--oxford-blue) !important;
}

.filter-button .dx-button-content {
    color: white !important;
}

.filter-button .dx-state-hover .dx-button-content {
    color: var(--oxford-blue) !important;
}

.side-bar-container .dx-state-hover .dx-item-content {
    color: var(--oxford-blue) !important;
}

.nav-container .dx-button-mode-text.dx-state-focused:not(.dx-state-hover) {
    background: transparent !important;
}

.bg-oxford-blue {
    background: var(--oxford-blue) !important;
}

.dx-item-content:has(.nav-item.active) {
    background: white;
}

.dx-list-item-content .active {
    color: var(--oxford-blue) !important;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item:not(.acitve) .dx-icon {
    color: white;
}

.nav-item.active .dx-icon,
.dx-state-hover .dx-icon {
    color: var(--oxford-blue) !important;
}

.remember-me .dx-field-item-label {
    margin-bottom: 0px !important;
}

.remember-me .dx-checkbox {
    display: block;
    margin-top: 2px;
}

.custom-add-row-button .dx-button-mode-outlined {
    border-color: var(--oxford-blue) !important;
    color: var(--oxford-blue) !important;
}

.custom-add-row-button .dx-button-mode-outlined .dx-icon {
    color: var(--oxford-blue) !important;
}

.custom-add-row-button .dx-button:hover {
    color: white !important;
    background: var(--oxford-blue) !important;
}

.custom-add-row-button .dx-button:hover .dx-icon {
    color: white !important;
}

.dx-fileuploader-wrapper {
    border: 1px solid #d3d3d3;
}

.main {
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

.user-avatar-dropdown .dx-button-text {
    color: white;
}

.user-avatar-dropdown.dx-state-hover .dx-button-text {
    color: var(--oxford-blue) !important;
}


.user-avatar-dropdown .dx-button-mode-text {
    height: 42px;
    border-radius: 50%;
    border: 2px solid white;
}

.dx-field-item-required-mark {
    color: red;
}

.dx-command-edit img {
    cursor: pointer !important;
}

.legend-box {
    width: 15px;
    height: 15px;
    display: inline-block;
}

.bg-voided-order {
    background-color: #f2a6a6 !important;
}

.bg-updated-field {
    background-color: #fff7c5 !important;
}

.bg-cancelled-order {
    background-color: #E0B0FF !important;
}

.bg-order-approved {
    background-color: #d4edda !important;
}

.bg-configuration-pending {
    background-color: #D8EAFF !important;
}

.dx-datagrid-table tr:first-child .dx-datagrid-text-content {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal !important;
    word-wrap: break-word;
}

.dx-item-content:has(.hidden-field) {
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.inputCheckbox label {
    order: 1;
}

#saleOrderGrid .dx-datagrid-header-panel {
    height: 105px;
}

#workOrderGrid .dx-datagrid-header-panel {
    height: 70px;
}

.dx-tag-container input {
    min-height: 30px !important;
}

.form-action-buttons .dx-item-content.dx-box-item-content.dx-box-flex.dx-box.dx-widget.dx-collection {
    flex-direction: row-reverse !important;
}

.accordion-header-custom {
    background-color: #f9fafb;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.accordion-header-custom:hover {
    background-color: #f1f3f5;
}

.accordion-email-card {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

.email-body {
    line-height: 1.6;
    font-size: 0.95rem;
}

.attachment-item:hover {
    background-color: #e9ecef;
}

.collapse-icon {
    font-size: 1.25rem;
    margin-left: 0.5rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.dx-accordion-item-opened .collapse-icon {
    transform: rotate(180deg);
}

.email-readonly a,
.email-readonly button {
    pointer-events: none;
    text-decoration: none !important;
    cursor: default;
}


.adjustment-comment-cell.has-comment {
    cursor: pointer;
    color: #000;
}

.adjustment-comment-cell.no-comment {
    color: #6c757d;
}

.email-chip-textbox .dx-tagbox-popup-wrapper .dx-overlay-content {
    display: none !important;
}

.email-container {
    height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
}

.save-btn:hover .dx-icon-save,
.send-email-btn:hover .dx-icon {
    color: #fff !important;
}

.dx-htmleditor-content p {
    margin-bottom: 10px !important;
}

.dx-state-readonly:not(.dx-state-disabled) .dx-checkbox-icon {
    color: #212121 !important;
    border-color: #9e9e9e !important;
}

.label-bold .dx-field-item-label-text {
    font-weight: bold !important;
}

.layout-card:has(.config-form-container) {
    overflow: hidden !important;
}

.save-btn.dx-button.dx-button-default, 
.send-email-btn.dx-button.dx-button-default,
.email-history-btn.dx-button.dx-button-default,
.add-btn.dx-button.dx-button-default {
    background-color: var(--oxford-blue) !important;
}

.scroll-pane {
    overflow-y: auto;
    overflow-x: hidden;
}

.scroll-pane-left {
    height: calc(100vh - 145px);
}

.scroll-pane-right {
    height: calc(100vh - 260px);
}

.scroll-pane::-webkit-scrollbar {
    width: 4px;
}

.scroll-pane::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    /* dark, semi-transparent */
    border-radius: 2px;
}

.scroll-pane::-webkit-scrollbar-track {
    background-color: transparent;
}

.scroll-pane {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.scroll-pane:hover {
    scrollbar-width: thin;
}

/* Hide scrollbar by default (Chrome) */
.scroll-pane::-webkit-scrollbar {
    display: none;
}

.scroll-pane:hover::-webkit-scrollbar {
    display: block;
}

.file-thumb-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.file-thumb-container:hover .download-icon {
    opacity: 1;
}

.file-thumb-container:hover .remove-icon {
    opacity: 1;
}

.download-icon .dx-icon,
.remove-icon .dx-icon {
    font-size: 15px;
}

.download-icon,
.remove-icon {
    position: absolute;
    top: 0;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 18px;
    cursor: pointer;
}

.download-icon {
    left: 45%;
    color: #0d6efd;
    border-radius: 50%;
}

.remove-icon {
    right: 0;
    color: red;
}

.file-thumb-image,
.file-thumb-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.proof-line-group .dx-item-content {
    align-items: center !important;
}

.save-button .dx-button.dx-button-success {
    background: var(--oxford-blue) !important;
}

.cancel-button .dx-button-mode-outlined.dx-button-default,
.download-button .dx-button-mode-outlined.dx-button-default {
    color: var(--oxford-blue) !important;
    border-color: var(--oxford-blue) !important;
}

.scroll-pane-right
.dx-layout-manager .dx-field-item {
    padding-bottom: 0 !important;
}

.dx-item .hide-order {
    display: none !important;
}