﻿:root {
    --menu-color: #F0F0F0;
    --sub-menu-color: #F5F5F5;
    --doc-color: #B4C8B4;
    --doc-divider-color: #D2D2D2;
    --form-header-color: #FFFFCF;
    --card-border-color: #DFDFDF;
    --formsmgr-color: var(--form-header-color);
    --formslib-color: #D9D9B0;
    --dropzone-color: #F8F8F8;
    --dropzone-border-color: #DDDDDD;
    --dropzone-dragover-color: #E2FAE5;
}

.agstyle-document-tabs {
    height: 39px;
    width: 100vw;
}

.agstyle-document-menu {
    height: 30px;
    width: 100vw;
}

.agstyle-invisible-button {
    background-color: transparent;
    border: none;
    color: transparent;
    width: 38px;
    height: 22px;
    cursor: pointer;
}

.agstyle-document-manager {
    background-color: var(--formsmgr-color);
    height: 100%;
}

.agstyle-forms-manager-mh {
    max-height: calc(100vh - 214px);
}

.agstyle-sales-manager-mh {
    max-height: calc(100vh - 214px);
}

.agstyle-document-manager-tabs .dxbl-tabs-tablist {
    --dxbl-tabs-bg: var(--formsmgr-color);
}

.dxbl-grid .dxbl-grid-table td.agstyle-formsmgr-isinview {
    border-right-width: 2px;
}

.agstyle-forms-library {
    background-color: var(--formslib-color);
    height: 100%;
}

.agstyle-forms-library-mh {
    max-height: calc(100vh - 104px);
}

.agstyle-document-divider {
    background-color: var(--doc-divider-color);
    height: 1px;
}

.agstyle-document-bottom {
    height: Calc(100vh - 70px);
    width: 100vw;
}

.agstyle-document-bottom > .dxbl-splitter > .dxbl-splitter-pane > .dxbl-splitter-pane-content {
        height: 100%;
        padding: 0;
        width: 100%
    }

.agstyle-document {
    background-color: var(--doc-color);
    height: 100%;
    overflow: auto;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.agstyle-form {
    width: 1000px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.agstyle-form-header {
    background-color: var(--form-header-color);
    height: 26px;
    font-weight: bold;
    padding-top: 2px;
    padding-left: 10px;
    padding-right: 2px;
    padding-bottom: 2px;
    margin-bottom: 10px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.agstyle-image-container-p {
    height: 360px;
    width: 288px;
    display: flex;
    flex-direction: column;
}

.agstyle-image-p {
    align-self: center;
    height: 300px;
    width: 240px;
    object-fit: contain;
}

.agstyle-image-p-caption {
    align-self: center;
    width: 240px;
    padding-top: 4px;
}

.agstyle-richedit-container {
    width: 100%;
    height: 100%;
    padding-top: 4px;
    padding-left: 2px;
    padding-right: 2px;
}

.agstyle-courier {
    font-family: 'Courier New', Courier, monospace;
}

.agstyle-sub-menu {
    background-color: var(--sub-menu-color);
    height: 100%;
    width: 100%;
}

.agstyle-comments-editor-mh {
    height: 100%;
    width: 100%;
    max-height: 50vh;
}

.agstyle-splitter-padding-0 > .dxbl-splitter > .dxbl-splitter-pane > .dxbl-splitter-pane-content {
    padding: 0px;
}

.agstyle-pl14 {
    padding-left: 14px;
    font-weight: 500;
}

.agstyle-p-2 {
    padding: 2px;
}

.agstyle-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.agstyle-inline {
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* Align items at the bottom */
}

.agstyle-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.agstyle-v1 {
    border-left: 1px solid #D2D2D2;
    height: auto;   /*Calc(50vh - 156px);*/
    margin-left: 16px;
}

.agstyle-pl-16 {
    padding-left: 16px;
}

.agstyle-pr-16 {
    padding-right: 16px;
}

.agstyle-blockcellsplit {
    padding-left: 2px;
    padding-right: 2px;
}

.agstyle-dropzone {
    height: 100%;
    border-style: dashed;
    border-width: 2px;
    border-color: var(--dropzone-border-color);
    background-color: var(--dropzone-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.agstyle-dropzone > * {
    pointer-events: none;
}

.agstyle-dropzone.agstyle-dropzone-dragover {
    background-color: var(--dropzone-dragover-color);
    border-style: solid;
    cursor: copy;
}

.grid-icon {
    display: inline-block;
    width: 1em;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    vertical-align: middle;
    margin: -0.125rem;
}

.grid-icon-add {
    -webkit-mask-image: url("../images/icons/grid-icon-add.svg");
    mask-image: url("../images/icons/grid-icon-add.svg");
}

.grid-icon-edit {
    -webkit-mask-image: url("../images/icons/grid-icon-edit.svg");
    mask-image: url("../images/icons/grid-icon-edit.svg");
}

.grid-icon-delete {
    -webkit-mask-image: url("../images/icons/grid-icon-delete.svg");
    mask-image: url("../images/icons/grid-icon-delete.svg");
}

.chevron-left {
    -webkit-mask-image: url("../images/icons/chevron-left.svg");
    mask-image: url("../images/icons/chevron-left.svg");
}

.chevron-right {
    -webkit-mask-image: url("../images/icons/chevron-right.svg");
    mask-image: url("../images/icons/chevron-right.svg");
}

.chevron-double-left {
    -webkit-mask-image: url("../images/icons/chevron-double-left.svg");
    mask-image: url("../images/icons/chevron-double-left.svg");
}

.chevron-double-right {
    -webkit-mask-image: url("../images/icons/chevron-double-right.svg");
    mask-image: url("../images/icons/chevron-double-right.svg");
}

.tree-icon {
    display: inline-block;
    width: 1em;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    vertical-align: middle;
    margin-right: 0.75em;
}

.tree-icon-folder {
    -webkit-mask-image: url("../images/icons/tree-icon-folder.svg");
    mask-image: url("../images/icons/tree-icon-folder.svg");
}

.tree-icon-comment {
    -webkit-mask-image: url("../images/icons/tree-icon-comment.svg");
    mask-image: url("../images/icons/tree-icon-comment.svg");
}
