﻿* {
    /*Colour Pallete*/
    --oconsoft-red: #e41515;
    --oconsoft-red-darker: #d40505;
    --oconsoft-red-darkest: #c40303;
    user-select: none;
}

/*Stop ContextMenus from overflowing*/
body {
    overflow: clip;
}

/*General Button Styling*/
.e-control.e-btn, .e-toolbar .e-toolbar-item .e-tbar-btn, .e-control.e-btn:hover, .e-toolbar .e-toolbar-item .e-tbar-btn:hover, .e-control.e-btn:focus, .e-toolbar .e-toolbar-item .e-tbar-btn:focus {
    border-radius: 10px;
}


/*Buttons using the Oconsoft Red*/
.ocon-red .e-btn.e-btn, .ocon-red.e-btn, .e-primary .e-btn.e-btn, .e-primary.e-btn {
    background: var(--oconsoft-red) !important;
    border: none !important;
    box-shadow: none !important;
}

.ocon-red .e-btn.e-btn:hover:not(:disabled), .ocon-red.e-btn:hover:not(:disabled), .e-primary .e-btn.e-btn:hover:not(:disabled), .e-primary.e-btn:hover:not(:disabled) {
    background: var(--oconsoft-red-darker) !important;
}

.ocon-red .e-btn.e-btn:active:not(:disabled), .ocon-red.e-btn:active:not(:disabled), .e-primary .e-btn.e-btn:active:not(:disabled), .e-primary.e-btn:active:not(:disabled) {
    background: var(--oconsoft-red-darkest) !important;
}

.ocon-red.ocon-red .e-icons.e-icons, .ocon-red.ocon-red .e-tbar-btn-text.e-tbar-btn-text, .e-primary.ocon-red .e-icons.e-icons, .e-primary.e-primary .e-tbar-btn-text.e-tbar-btn-text {
    color: #fff !important;
}

.ocon-red:disabled, .e-primary:disabled {
    background: #ccc !important;
}


/*Dropdown Items*/
.e-dropdown-popup ul .e-item:active, .e-dropdown-popup ul .e-item.e-selected, .e-contextmenu-container ul .e-menu-item.e-selected {
    background: #c7cdd3;
    color: #212529;
}

.e-dropdown-popup ul .e-item:active .e-menu-icon {
    color: #6c757d;
}


/*Dropdown List Style*/
.e-input-group.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon, .e-input-group.e-control-wrapper.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon 
{
    padding: 0px;
}

/*Home More dialog*/
.home-more-dialog.e-dialog {
    width: min-content;
}

.home-more-dialog .e-dlg-content {
    min-width: 424px;
    min-height: 50vh;
    display: flex;
    flex-wrap: wrap;
}

.home-more-dialog button img {
    width: 50px;
    margin: -10px;
}

.home-more-dialog button {
    font-size: 10px;
}

.home-more-dialog button.e-control.e-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    height: 60px;
    margin-top: 15px;
    background: none;
    color: #333;
    border: none;
    box-shadow: none;
    border-radius: 0px;
}

.home-more-dialog button.e-control.e-btn:hover {
    background: #0001;
    border-radius: 0px;
}

.home-more-dialog button.e-control.e-btn:active {
    background: #0002;
    border-radius: 0px;
}

/*Dialogs styling*/
.dialog .e-spinner-pane {
    position: relative;
    height: 50px;
}

.dialog .e-dlg-content {
    max-height: 600px;
}

.dialog.e-dialog div.fields {
    display: flex;
    flex-wrap: wrap;
    
}

.dialog .fields .header {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
}

.dialog .fields .sub-header {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
}

..dialog .fields .sub-header div {
    font-size: 12px;
    font-weight: 600;
}

.dialog.e-dialog .fields .e-input-group, .dialog.e-dialog .fields > .e-control, .dialog .fields > .e-wrapper {
    width: calc(50% - 20px);
    margin: 10px;
    margin-top: 0px; 
}

.dialog.e-dialog .fields .e-chip-list {
    border: solid 1px #aaa;
    border-radius: 5px;
    max-height: 165px;
    min-height: 30px; 
    overflow: auto;
}

.dialog .fields div:has(.e-input-group) {
    width: calc(50% - 20px);
    margin: 10px;
    margin-top: 0px;
}

.dialog.e-dialog .fields > div > .e-input-group {
    width: 100%;
    margin: 0px;
}

.dialog.e-dialog .fields .e-input-group > span {
    display: none;
}

.dialog .field-text {
    font-size: 12px;
    width: calc(50% - 20px);
    margin-right: 10px;
    position: relative;
}

.dialog .field-text div {
    font-size: 12px;
}

.dialog .field-label {
    margin-left: 10px;
    margin-top: 10px;
    font-size: 10px;
    width: calc(50% - 20px);
    margin-right: 10px;
}

.dialog .flex-field .field-label {
    margin: 0px;
    width: 100%;
}

.dialog.e-dialog .fields .full-length {
    width: 100%;
}

.dialog.e-dialog .fields .fifth-length {
    width: calc(20% - 20px);
}

.dialog .fields .flex-field {
    width: 50%;
}

.dialog.e-dialog .fields .e-input-group.address-street {
    width: calc(80% - 20px);
    margin-top: 40px;
}

.dialog.e-dialog .fields .e-input-group.address-nr {
    width: calc(20% - 20px);
    margin-top: 40px;
}

.dialog.e-dialog .fields .e-checkbox-wrapper {
    margin: 10px;
}

.dialog.e-dialog .buttons {
    display: flex;
    justify-content: end;
    margin: 10px;
}

.dialog.e-dialog .buttons button {
    margin-left: 10px;
    border-radius: 5px;
    box-shadow: none;
}


.dialog.e-dialog .buttons button:first-child, .dialog.e-dialog .buttons .e-split-btn-wrapper:first-child button {
    background-color: var(--oconsoft-red);
    border: none;
    color: #fff;
}

.dialog.e-dialog .buttons .e-split-btn-wrapper button {
    margin-left: 1px;
}

.dialog.e-dialog .buttons > button:last-child, .dialog.e-dialog .buttons div:last-child button {
    background: none;
    border: #555 solid 1px;
    color: #555;
}

.dialog.e-dialog .buttons button:first-child:hover, .dialog.e-dialog .buttons .e-split-btn-wrapper:first-child button:hover {
    background-color: var(--oconsoft-red-darker);
    border: none;
}

.dialog.e-dialog .buttons button:last-child:hover {
    background-color: #ddd;
    border: #555 solid 1px;
}

.dialog.e-dialog .buttons button:first-child:active, .dialog.e-dialog .buttons .e-split-btn-wrapper:first-child button:active {
    background-color: var(--oconsoft-red-darkest);
    border: none;
}

.dialog.e-dialog .buttons button:last-child:active {
    background-color: #ccc;
    border: #555 solid 1px;
}

.dialog .buttons button:focus {
    box-shadow: 0px 0px 3px 3px #2225;
}

.dialog .fields > div.info, .dialog .e-dlg-header > div.info {
    display: flex;
}

.dialog .fields > div.info .e-tooltip, .dialog .e-dlg-header > div.info .e-tooltip {
    margin-left: 5px;
    align-content: center;
    font-size: 16px;
}

.dialog .fields > div.info.field-label .e-tooltip {
    font-size: 10px;
}

.fields > div.info, .e-dlg-header > div.info {
    display: flex;
}

.fields > div.info .e-tooltip, .e-dlg-header > div.info .e-tooltip {
    margin-left: 5px;
    align-content: center;
    font-size: 16px;
}

.fields > div.info.field-label .e-tooltip {
    font-size: 10px;
}

.dialog.e-dialog .buttons button:disabled, .dialog.e-dialog .buttons button:disabled:hover {
    background-color: #ccc;
}

.dialog .fields .e-chip-list .e-chip-text {
    align-content: center;
}

.dialog .fields .e-chip-list .e-chip-icon {
    background: #666;
    color: #fff;
}


.dialog .header:has(.e-chevron-right), .dialog .header:has(.e-chevron-down) {
    display: flex;
    align-items: center;
    margin-right: calc(100% - 65px);
    width: 65px;
    justify-content: space-between;
}

.dialog .header .e-icons.e-chevron-right, .dialog .header .e-icons.e-chevron-down {
    font-size: 14px;
    margin-left: 5px;
}

.dialog .header .e-icons.e-chevron-right:hover , .dialog .header .e-icons.e-chevron-down:hover {
    cursor: pointer;
}


/*Dialog Grid*/
.dialog .e-rowcell > div {
    display: flex;
    align-items: center;
}

.dialog .e-rowcell {
    cursor: pointer;
}

.dialog .e-rowcell > div img {
    width: auto;
    height: 30px;
}

.dialog .project-list {
    border-left: none;
    border-right: none;
}

.dialog .e-grid .e-toolbar {
    border: none;
}

.dialog .e-grid td.e-focused.e-rowcell, .dialog .e-grid .e-gridheader th.e-focused {
    box-shadow: none;
}

.dialog .e-grid td, div .e-gridheader {
    border: none;
    border-bottom: #aaa 1px solid;
}

/*No Margin Dialog*/
.dialog.no-margin .e-dlg-content{
    padding: 0px;
}

/*Dialog Toolbar*/
.load-dialog .e-toolbar, .load-dialog .e-toolbar-items {
    background: none;
}

.load-dialog .fields .e-toolbar .e-toolbar-items {
    width: calc(100% - 20px);
}

.load-dialog .e-toolbar .e-toolbar-items:first-child:not(.e-toolbar-multirow) > .e-toolbar-item:last-child {
    margin: auto;
    width: 100%;
}

/*Row And Header*/
.load-dialog .e-grid {
    border: none;
}

.load-dialog .e-error  {
    background: #feea;
}

.load-dialog .e-error * {
    background: none;
}

.load-dialog .e-rowcell > div {
    display: flex;
    align-items: center;
}

.load-dialog .e-rowcell {
    cursor: pointer;
}

.load-dialog .project-list {
    border-left: none;
    border-right: none;
}

.load-dialog .e-grid .e-toolbar {
    border: none;
}

.load-dialog .e-grid td.e-focused.e-rowcell, .load-dialog .e-grid .e-gridheader th.e-focused {
    box-shadow: none;
}

.load-dialog .e-grid td, .load-dialog .e-gridheader {
    border: none;
    border-bottom: #aaa 1px solid;
}

/*Loading Dialog*/
.loading-dialog.e-dialog {
    width: min-content;
    background: none;
    border: none;
    box-shadow: none;
}

.loading-dialog .e-dlg-content {
    background: none;
}

.loading-dialog .e-spin-bootstrap5 {
    scale: 2;
}

.loading-dialog .loading-container > div:not(.e-spinner-pane) {
    margin: auto;
    margin-top: 120px;
    color: #fff;
    font-size: large;
    font-weight: 600;
    text-align: center;
    width: max-content;
    max-width: 90vw;
}


/*Share dialog*/
.share-dialog.e-dialog .e-footer-content {
    text-align: left;
}

.share-dialog .colab-icons {
    display: flex;
    flex-wrap: wrap;
}

.share-dialog .colab-icons>div {
    width: 30px;
}

.share-dialog img {
    width: 30px;
    height: 30px;
}

.share-dialog .user-search {
    height: 100px;
    margin-top: 30px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.share-dialog .align-right {
    text-align: end;
}

.share-dialog .edit-colab {
    cursor: pointer;
}

.share-dialog .profile-image, .share-dialog .user > div.profile-image {
    width: 25px;
    height: 25px;
    border-radius: 20px;
    margin: 4px;
}

.share-dialog div.profile-image {
    align-content: center;
    background: #ccc;
    font-weight: 600;
    font-size: 12px;
    padding-bottom: 1px;
    text-align: center;
}

/*Share dialog Edit Colaborators*/
.share-dialog .e-dlg-header {
    display: flex;
}

.share-dialog .e-dlg-header span {
    padding: 2px;
    margin-right: 5px;
    height: 20px;
    cursor: pointer;
}

.share-dialog .colab-editor > span.e-input-group {
    border: none;
    border-bottom: solid #0004 1px;
    border-radius: 0px;
    margin-top: 10px;
    margin-bottom: 10px
}

.share-dialog .users {
    height: 300px;
    overflow: auto;
}

.share-dialog .user {
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 10px;
    border-bottom: solid #0002 1px;
}

.share-dialog .user .span.e-input-group {
    width: 50%;
}

.share-dialog .delete-btn {
    padding: 2px;
    margin: 5px;
    cursor: pointer;
}

.share-dialog .user > div {
    width: 70%;
    margin-left: 10px;
    margin-right: 10px;
}



/*Context Menu*/
.e-contextmenu-container.e-sfcontextmenu.hidden {
    visibility: hidden;
}

/*Spinner*/
.e-ddl.e-control.e-lib.e-popup.e-popup-open div.container {
    height: 50px;
    min-width: 80px;
}

.e-ddl.e-control.e-lib.e-popup.e-popup-open div.container div {
    color: var(--bs-body-color);
}

.e-spinner-pane .e-spinner-inner .e-path-circle {
    stroke: var(--oconsoft-red);
}

/*Context Menu Shortcuts*/
.e-contextmenu-container li.e-menu-item {
    display: flex;
} 

.e-contextmenu-container span.shortcut {
    color: #aaa;
    font-size: 10px;
    margin-left: auto;
    padding-left: 20px; 
}  

/*Multiselect Badge*/
.e-multiselect .e-chipcontent > span {
    display: flex;
    align-items: center
}

.e-multiselect .e-chipcontent span.e-badge {
    background: #333;
    padding: 2px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 10px;
    height: 15px;
    width: min-content;
    border-radius: 7px;
    margin-right: 4px;
}


/*Product Preview Styling*/
.e-dropdownbase .e-list-item:has(.product-preview) {
    padding: 0px;
}

.product-preview {
    padding-right: 16px;
    display: flex;
    justify-content: space-between;
}

.product-preview.near-fit {
    background: #faa3;
}

/*Cladding Preview Styling*/
.e-dropdownbase .e-list-item:has(.cladding-preview) {
    padding: 0px;
}

.cladding-preview {
    padding-right: 16px;
    display: flex;
    justify-content: space-between;
}


/*Warning Badge*/
span.e-badge.e-badge-circle{
    height: 18px;
    width: 18px;
    padding: 0px;
    align-content: center;
    justify-content: center;
}

span.e-badge.e-image-badge img {
    height: 12px;
    width: 12px;
}

span.e-badge.e-badge-left {
    left: 0px;
}

iconcontainer span.e-badge.e-image-badge.e-badge-overlap:has(img) {
    background: none;
    padding: 0px;
}