/* Left Panel */
.filters-navbar .item,
.filters-navbar ul.dxnb-content
{
    border-right: none;
}

.filters-navbar .item
{
    padding-left: 24px !important;
}

/* GridView borders */
.grid-view:focus
{
    outline: none;
}

.grid-view .dxgvCSD,
.grid-view .pager
{
    border-left: none;
    border-right: none;
}
.grid-view .pager {
    border-bottom: none;
}

.grid-view .dxgvLVR > td.dxgv
{
    border-bottom: none !important;
}

/* GridView Custom Styles */
.grid-view .column-status.active
{
    font-weight: bold;
    text-transform: capitalize;
}

.grid-view .column-status.closed
{
    text-transform: capitalize;
}

.grid-view .column-status.active::after
{
    content: "active";
}

.grid-view .column-status.closed::after
{
    content: "closed";
}

.grid-view .priority1
{
    background-image: url('Images/priority1.svg');
}

.grid-view .priority2
{
    background-image: url('Images/priority2.svg');
}

.grid-view .priority3
{
    background-image: url('Images/priority3.svg');
}

.grid-view .focused .priority1
{
    background-image: url('Images/priority1-white.svg');
}

.grid-view .focused .priority2
{
    background-image: url('Images/priority2-white.svg');
}

.grid-view .focused .priority3
{
    background-image: url('Images/priority3-white.svg');
}

.grid-view .kind1
{
    background-image: url('Images/kind1.svg');
}

.grid-view .kind2
{
    background-image: url('Images/kind2.svg');
}

.grid-view .focused .kind1
{
    background-image: url('Images/kind1-white.svg');
}

.grid-view .focused .kind2
{
    background-image: url('Images/kind2-white.svg');
}

/* GridView filter panel */
.filter-panel
{
    padding: 16px;
    padding-left: 18px;
}

/* Alternative to scrollable filter panel */
/* ************************************** */
/* allow filter panel to scroll if required */
/*.filter-panel
{
    overflow-y: scroll;
}*/

/* set to view height minus header */
/*#filterPanelContainer {
    max-height: calc(100vh - 152px);
}*/

/* enable split filter / grid for tablet or mobile;
    - enough to display one rows + buttons
    - 40% of remaining height to filter */
/*@media (max-height: 700px) {
    #filterPanelContainer {
        min-height: 85px; 
        max-height: calc(0.4*(100vh - 152px)); 
    }
}*/

/* enable split filter / grid for mobile;
    - on mobile, enough to display two rows + buttons */
/*@media (max-width: 700px) {
    #filterPanelContainer {
        min-height: 130px;
    }
}*/
/* ************************************** */


/* allow filter captions to be truncated if required */
.filter-panel.adaptive-captions .truncate {
    max-width: calc(100vw - 275px) !important;
    min-width: calc(100vw - 275px) !important;
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;
}


/* GridView filter actions */
/*.filter-actions
{
    padding-top: 15px;
}*/



/* override gridview header */
.dxgvHeader_Office365 {
    font-weight: 600;
}

/* readonly grid row */
.grid-view .readonly {
    background-color: rgba(0, 0, 0, 0.1);
}

/* unread message grid row */
.grid-view .unread {
    font-weight: 600;
}

/* stocktake grid row */
.grid-view .stocktake {
    font-weight: 600;
}

/* deletable grid row */
.grid-view .deletable {
    background-color: rgba(0, 0, 0, 0.1);
}

/* inactive grid row */
.grid-view .inactive {
    background-color: rgba(0, 0, 0, 0.1);
}

/* null text in grid cell */
.grid-view .null-text {
    color: #bdbdbd;
}

.grid-view .focused .null-text {
    color: #fff !important;
}

/* hints in column */
.grid-view .hint-column:hover {
    cursor: help;
}

.grid-view .hint-column
{
    text-decoration: underline dashed #35B86B;
    text-decoration-thickness: 1px;
}

.grid-view .focused .hint-column
{
    text-decoration: underline dashed white;
    text-decoration-thickness: 1px;
}

/* image in column */
.grid-view .column-image
{
    width: 16px;
    height: 16px;
}

/* count in column */
.grid-view .column-count
{
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
    font-size: 12px;
    line-height: .99;
    border-radius: 2em;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 3px 5px 2px;
    text-align: center;
}

/* status in column */
.grid-view .column-status
{
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
    font-size: 12px;
    line-height: .99;
    border-radius: 3px;
    border: solid 1px #ccc;
    padding: 2px 5px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.02);
}

.grid-view .focused .column-status
{
    border: solid 1px #fff;
}

/* status column - message priority */
.grid-view .message-priority
{
    min-width: 3em;
    text-transform: uppercase;
}

.grid-view .focused .message-priority
{
    border: solid 1px #fff !important;
    color: #fff !important;
}

.grid-view .message-priority.high
{
    border: solid 1px red;
    color: red;
}

.grid-view .message-priority.normal
{
    display: none;
}

.grid-view .message-priority.low
{
    /*default*/
}

/* image column - message status */
.grid-view .message-status {
}

.grid-view .message-status.acknowledge
{
    background-image: url('Images/mail-ack.svg');
}

.grid-view .focused .message-status.acknowledge
{
    background-image: url('Images/mail-ack-white.svg');
}

.grid-view .message-status.unread
{
    background-image: url('Images/mail-unread.svg');
}

.grid-view .focused .message-status.unread
{
    background-image: url('Images/mail-unread-white.svg');
}

.grid-view .message-status.read
{
    background-image: none;
}

.grid-view .focused .message-status.read
{
    background-image: none;
}



/* status column - chemical status */
.grid-view .chemical-status
{
    /*min-width: 3em;*/
    /*text-transform: uppercase;*/
}

.grid-view .focused .chemical-status
{
    border: solid 1px #fff !important;
    color: #fff !important;
}

.grid-view .chemical-status.stocktake
{
    border: solid 1px #666;
}

.grid-view .chemical-status.purchase
{
    border: solid 1px green;
    color: green;
}

.grid-view .chemical-status.activity
{
    /*default*/
}


/* hidden cell */
.grid-view .hidden-cell
{
    display: none;
}

/* image column - attachment status */
.grid-view .message-attachment {
    background-image: url('Images/attachment-rotated.svg');
}

.grid-view .focused .message-attachment
{
    background-image: url('Images/attachment-rotated-white.svg');
}

/* image column - reminder status */
.grid-view .reminder {
    background-image: url('Images/bell-yellow.svg');
    margin-top: 2px;
    margin-bottom: -2px;
}

.grid-view .focused .reminder
{
    background-image: url('Images/bell-white.svg');
}

/* filter buttons */
.filter-button {
    margin-left: 4px;
    margin-right: 4px;
}

/* edit form - heading */
.dxflGroupContainerSys .edit-form-heading .dxflGroupBoxCaption_Office365 {
    font-size: 1.1em;
    font-weight: 600;
    padding-left: 0px;
    left: 16px;
    /*margin-left: -0px;*/
    /*margin-bottom: 8px;*/
}

.dxflGroupContainerSys.dxflChildInFirstRowSys .edit-form-heading .dxflGroupBoxCaption_Office365 {
    padding-top: 12px;
}

.edit-form-heading .dxflHLSys {
    margin-left: 16px;
    margin-right: 16px;
    border-top: 1px solid #666 !important;
    margin-bottom: 8px;
}

/*.dxflGroupContainerSys .edit-form-heading .dxflGroupBox_Office365 {
    padding-bottom: 0px;
}*/


/* padding around edit form - column only */
.edit-form-column.dxflGroupCell_Office365 {
    padding: 0 0px !important;
}

.edit-form-column > .dxflGroupSys {
    padding-top: 0px;
    padding-bottom: 15px;
}

/* add padding between items regardless */
.dxflGroupContainerSys .edit-form-column {
    margin: 0px 8px 0px 8px;
}

.dxflGroupContainerSys.dxflFirstChildInRowSys .edit-form-column {
    margin-left: -4px;
}

.dxflGroupContainerSys.dxflLastChildInRowSys .edit-form-column {
    margin-right: -4px;
}

.edit-form-column .edit-form-heading {
    padding: 0px;
}

.edit-form-column .dxflChildInFirstRowSys .edit-form-heading .dxflHeadingLineGroupBoxSys {
    margin-top: 0px !important;
} 

.edit-form-column .dxflChildInLastRowSys .edit-form-heading .dxflHeadingLineGroupBoxSys {
    padding-bottom: 6px !important;
}

/*dxflGroupContainerSys*/


/* edit form - custom fields */
.dxflNestedControlCell_Office365 .item-container {
     width: 100%;
     display: flex;
}

.dxflNestedControlCell_Office365 .item-field {
    margin-left: 10px;
}

.dxflNestedControlCell_Office365 .item-field:first-child {
    margin-left: 0px;
}

.dxflNestedControlCell_Office365 .item-field.grow {
    flex-grow: 1;
}

.dxflNestedControlCell_Office365 .item-field.grow-truncate {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* edit form hidden item */
.item-error .dxeTextBoxSys {
    display: none;
}

.item-error .dxeErrorCellSys {
    padding: 0px;
}

.item-container + .item-error {
    margin-top: 4px;
}

/* edit form hidden control (textbox) */
/*.control-error {
    display: none;
}*/

/* edit form error frame - allow wrapping of errors */
.dxflItem_Office365 .dxeErrorFrameSys td {
	white-space: normal !important;
}


/* darker anchors */
/* https://www.hexcolortool.com/#35b66b 15% darkened */
/* ************** */
.grid-view .hint-column
{
    text-decoration: underline dashed #0F9245; /*green*/
    text-decoration-thickness: 1px;
}

.grid-view .focused .hint-column
{
    text-decoration: underline dashed white;
    text-decoration-thickness: 1px;
}
/* ************** */


/* high contrast mode */
/* https://www.hexcolortool.com/#35b66b 35% darkened */
/* ****************** */
.high-contrast .dxpLite_Office365,
.high-contrast .dxmLite_Office365
{
    color: #222;
}

.high-contrast .dxgvDataRow_Office365 /* .high-contrast .dxp-num */
{
    color: #222;
}

.high-contrast .dxgvFocusedRow_Office365 /* .high-contrast .dxp-current */
{
    color: white;
}

.high-contrast .grid-view .hint-column
{
    text-decoration: underline dashed #005F12; /*darkgreen*/
    text-decoration-thickness: 1px;
}

.high-contrast .grid-view .focused .hint-column
{
    text-decoration: underline dashed white;
    text-decoration-thickness: 1px;
}
/* ****************** */


/* CONSISTENTLY SHOW OR HIDE LEFT / RIGHT BORDER FOR GRID VIEW */
/* ****************** */

/*hide left and right border in grid view header (for some reason, already missing from data cells and footer)*/
.grid-view .dxgvHSDC {  
    border-left: 0px !important; 
    border-right: 0px !important;  
}


/*show left and right border in grid view cells and footer (for some reason, only showing in header)*/
/*.grid-view .pager,
.grid-view .dxgvCSD {  
   border-left: 1px solid rgba(0,0,0,0.1) !important;  
   border-right: 1px solid rgba(0,0,0,0.1) !important;  
}*/
/* ****************** */


/* GRID VIEW MARGINS TESTING */
/* ****************** */
/*.grid-view {
    margin: 0px 10px 0px 10px;
}

.page-toolbar-wrapper {
    margin: 0px 10px 0px 10px;
    border-left: 1px solid rgba(0,0,0,0.1) !important;  
    border-right: 1px solid rgba(0,0,0,0.1) !important;  
}*/
/* ****************** */


/* force height of pager to avoid affecting grid stretching */
.grid-view .pager {
    max-height: 40px !important;
    overflow: hidden;
}

/* show background colour if not many rows */
.grid-view .dxgvCSD {
    background-color: rgba(0, 0, 0, 0.04);
}

/* file icons */
/*.grid-view a.file {
}

.grid-view .focused a.file {
    background-image: url('Images/mail-ack.svg') !important;
}*/


/* hide vertical scroll bar when editing in popup - fixes padding glitch */
.grid-view .dxgvPopupEditForm_Office365 {
    overflow-y: hidden;
}




/* edit form - new style (smaller captions) */
.grid-view .dxflFormLayout_Office365 .dxflCaption_Office365 {
    color: #222 !important; /* #222 #666 #888 */
    font-weight: 600; /* bold */
    font-size: 12px;
}


.grid-view span.unit
{
    font-size: 11px;
    /*line-height: .99;*/
    margin-left: 5px;
    /*margin-top: 6px;*/
    color: #666;
    /*line-height: 21px;*/
    /*margin-bottom: -2px;*/
    padding-top: 3px;

    /*position: relative;
    font-size: 80%;
    margin-left: 5px;
    color: #666;
    bottom: -0.3em;*/

    float: inherit;
}

.grid-view .focused span.unit {
    color: #fff !important;
}


.grid-view span.sign
{
    font-size: 14px;
    margin-right: 3px;
    color: #666;

    float: inherit;
}

.grid-view .focused span.sign {
    color: #fff !important;
}

.grid-view span.sign.minus {
    color: red;
}

.grid-view span.sign.plus {
    color: green;
}


/*group rows*/
.grid-view span.group-text {
    /*color: #222;*/
    color: #666;
    font-weight: 600;
    margin-right: 10px;
}

.grid-view span.group-params {
    color: #666; 
    margin-right: 10px;
}

.grid-view span.group-link {
    color: #666; 
    /*float: right;*/
    /*margin: -5px 0px -5px 10px;*/
    margin-right: 10px;
    white-space: nowrap;
    display: inline-block;
}

.high-contrast .grid-view span.group-text,
.high-contrast .grid-view span.group-params,
.high-contrast .grid-view span.group-link {
    color: #222;
}

.grid-view .dxgvFocusedGroupRow_Office365 span {
    color: #fff !important;
}

/*
.grid-view .dxGridView_gvExpandedButton_Office365,
.grid-view .dxGridView_gvCollapsedButton_Office365 {
    cursor: default !important;
}
*/


/* group row style changes */
.grid-view .dxgvGroupRow_Office365.dxgvFGFixed {
    z-index: 0 !important; /* fix to allow filters and menu to appear above group row */
    border-left: 0px !important;
}

.grid-view .dxgvCSD {
    border: 0px !important;
}

.grid-view .dxgvFGI {
    display: none !important; /* hide image on fixed group row */
}


/*allow wrapping of long captions (e.g. for radio buttons) */
.grid-view .wrap-caption {
    white-space: normal;
}

/*fix padding form help text above controls*/
.grid-view .top-help-text {
    padding: 0px 0px 9px 0px !important;
}


/* corrective action item (e.g. corrective actions) */
/*.grid-view .corr-action-item {
    margin-top: 6px;
}

.grid-view .corr-action-content {
    margin-top: -2px;
}

.grid-view .corr-action-text {
    width: inherit !important;
    color: #222;
    margin-right: 10px;
}

.grid-view .corr-action-link {
    font-weight: 500;
    white-space: nowrap;
}*/

/* actionable item (e.g. close job tasking) */
/*.grid-view .action-item {
    margin-top: 6px;
}

.grid-view .action-content {
    margin-top: -2px;
}

.grid-view .action-text {
    color: #222;
}

.grid-view .action-link {
    font-weight: 500;
    white-space: nowrap;
    width: inherit !important;
    margin-right: 10px;
}


.grid-view .action-text {
    width: inherit !important;
    color: #222;
    margin-top: 0px;
    margin-left: 10px;
}*/


/* override edit form checkbox */
.edit-form-heading .checkbox {
    color: #222 !important;
    font-weight: 600;
    font-size: 12px;
    margin-top: 3px !important;
    margin-left: 1px !important;
}

.edit-form-heading .checkbox label {
    margin-left: 3px;
    display: inline-block;
}

.edit-form-heading .checkbox .dxichTextCellSys {
    /*padding-top: 4px !important;*/
    /*padding-bottom: 0px !important;*/
    /*padding: 4px 0px 2px 4px !important*/
}


/* override edit form toggle */
.edit-form-heading .toggle {
    display: inline;
    margin-left: -3px;
}

.edit-form-heading .toggle label {
    margin-right: 7px;
    color: #222 !important;
    font-weight: 600;
    font-size: 12px;
}

.edit-form-heading .toggle .dxToggle {
    margin-right: 7px;
}

.edit-form-heading .toggle-content {
    display: inline-block;
    margin-top: 3px;
    vertical-align: top;
    color: #222;
}

.edit-form-heading .toggle-content span {
    color: #222;
}


/*@media (min-width: 576px) {
    .dxmodalSys > .dxpclW {
        max-width: 500px;
        margin: 80px auto;
    }
}*/


/* child grid */
.child-grid {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.child-grid .dxgvTable_Office365 {

}

.child-grid .dxgvHeader_Office365 {
    color: #666;
    padding: 3px 6px 3px 6px;
}

.child-grid .dxgvDataRow_Office365 td.dxgv,
.child-grid .dxgvEditFormDisplayRow_Office365 td.dxgv {
    color: #222;
    font-weight: 600;
    padding: 3px 6px 3px 6px;
}

.child-grid .dxgvHeader_Office365:first-child,
.child-grid .dxgvDataRow_Office365 td:first-child,
.child-grid .dxgvEditFormDisplayRow_Office365 td:first-child {

}

/* child grid - new style (smaller captions) */
.child-grid .dxgvHeader_Office365 {
    color: #222 !important;
    font-weight: 600; /* bold */
    font-size: 12px;
}

.child-grid .dxgvDataRow_Office365 td.dxgv,
.child-grid .dxgvEditFormDisplayRow_Office365 td.dxgv {
    color: #222;
    font-weight: normal;
}

/* child grid empty data row - reduced height to match same height as "header + 1 row" */
.child-grid .dxgvEmptyDataRow_Office365 td.dxgv {
    padding: 15px 2px 16px 4px;
}

/* child grid - alternative header styling? */
/*.child-grid .dxgvTable_Office365 td.dxgvHeader_Office365 {
    color: #555 !important;
    background-color: #eee;
    font-style: italic;
}*/

.child-grid span.unit {
    /*margin-top: 6px;*/
}

.child-grid .warning,
.child-grid .warning td {
    color: red !important;
}


/* enable menu group for */
.dxm-main .dxm-item.menu-group {
    border-left: 1px solid #e2e2e2;
    /*border-left: 1px dashed #e2e2e2;*/
}

.dxm-popup .dxm-item:not(:first-child).menu-group {
    border-top: 1px solid #e2e2e2;
}

/* tree version node glyphs */
.node-tab {
    display: inline-block;
    text-align: right;
    
    width: 25px;
}

.node-arrow {
    display: inline-block;
    text-align: right;

    background-image: url('Images/node-arrow.svg');
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: right;
    height: 14px;

    width: 20px;
    margin-right: 5px;
}

.focused .node-arrow {
    background-image: url('Images/node-arrow-white.svg');
}

/* file manager in dialog (e.g. programs form) */
.file-manager .dxmLite_Office365 .dxm-main {
    font-size: inherit;
    padding: 0px !important;
    margin: 0px !important;
}

.file-manager .dxm-horizontal.dxm-autoWidth > ul > li, 
.file-manager .dxm-horizontal.dxm-noWrap > ul > li {
    vertical-align: middle;
}

.file-manager .dxm-item {
    padding-left: 10px;
    padding-right: 10px;
}

.file-manager .dxfm-toolbar .dxsplLCC {
    padding: 0px !important;
}

.file-manager .dxm-spacing {
    display: none !important;
    width: 0px !important;
}

.file-manager .dxm-separator {
    padding: 0px !important;
}

.file-manager .dxfm-filter {
    padding-right: 5px !important;
}

.file-manager .dxsplControl_Office365 {
    border: 1px solid rgba(0,0,0,0.15) !important;
}

.file-manager .dxfm-uploadPanelTableBCell a {  
       display: none;  
}

.file-manager .dxfm-uploadPanel .dxsplLCC {
    width: initial !important;
}

.file-manager .dxuc-root {
    margin-right: 0px !important;
}