@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body, #app {
    height: 100%;
    overflow: hidden;
}

#app {
    background-color: inherit;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Custom Global CSS */
.global-form-layout-item-right-aligned {
    text-align: right;
}

.global-grid {
    caret-color: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.global-grid .dxbl-grid-sort-asc, .dxbl-grid-sort-desc{
    height: 1rem;
    width: 1rem;
}

.global-form {
    height: 100%;
    overflow-y: scroll;
}

.global-form-button {
    width: 90px;
}

.global-form-title {
    display: flex;
}

.global-icon {
    color: black;
    font-size: 12px;
}

.global-icon:hover {
    color: black;
}

.global-icon-button {
    background-color: transparent !important;
    border: none !important;
    color: black !important;
    font-size: 12px !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.global-icon-button:hover {
    /*border: 1px solid lightgray !important;*/
    background-color: lightgray !important;
    color: black;
}

.global-button {
    background-color: white !important;
    border-color: lightgray !important;
    color: black !important;
    --dxbl-btn-border-color: lightgray !important;
    justify-content: space-evenly !important;
    align-items: baseline !important;
}

.combobox-item-template {
    display: flex;
    align-items: center;
}

.combobox-item-template-text {
    display: flex;
    flex-flow: column;
}

.form-control[readonly] {
    background-color: white !important;
}

/* scrollbar */
/* width */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* DevExpress Blazor Grid */
.dxbs-grid-selected-row {
    background-color: rgba(0, 0, 0, 0.1);
}

/* DevExpress button*/
.dxbl-btn-primary {
    --dxbl-btn-bg: #003e73;
    --dxbl-btn-border-color: none;
    --dxbl-btn-hover-bg: #003e73;
}

.dxbs-grid-group-panel-content-container {
    color: gray;
}

/* DevExpress textbox */
.dxbl-grid-search-box-container > .dxbl-text-edit {
    --dxbl-text-edit-focus-border-color: gray !important;
}

/* DevExpress checkbox */
.dxbl-checkbox {
    --dxbl-checkbox-check-element-checked-bg: #003e73 !important;
    --dxbl-checkbox-check-checked-hover-bg: transparent !important;
    --dxbl-checkbox-check-element-checked-hover-bg: transparent !important;
    --dxbl-checlbox-checked-focus-shadow-color: transparent !important;
    --dxbl-checlbox-unchecked-focus-shadow-color: transparent !important;
}

/* DevExpress form */
.dxbl-fl {
    width: 99% !important;
}

/* DevExpress tab */
.dxbl-tabs {
    margin-bottom: 4px !important;
}

.sign-in-box {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    max-width: 440px;
    width: calc(100% - 40px);
    padding: 44px;
    margin-bottom: 28px;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
    -moz-box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
    min-width: 320px;
    min-height: 338px;
    overflow: hidden;
}
.menu-icon {
    width: 1rem;
    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;
}

.menu-icon-home {
    mask-image: url("_content/TLV.PMOP.Common.RCL/images/Home.svg");
    -webkit-mask-image: url("/images/Home.svg");
}

.menu-icon-survey {
    mask-image: url("../images/Survey.svg");
    -webkit-mask-image: url("/images/Survey.svg");
}

.menu-icon-map {
    mask-image: url("/images/Map.svg");
    -webkit-mask-image: url("/images/Map.svg");
}

.menu-icon-companies {
    mask-image: url("/images/Companies.svg");
    -webkit-mask-image: url("/images/Companies.svg");
}

.menu-icon-user {
    mask-image: url("/images/UserProfile.svg");
    -webkit-mask-image: url("/images/UserProfile.svg");
}

.menu-icon-devices {
    mask-image: url("/images/Devices.svg");
    -webkit-mask-image: url("/images/Devices.svg");
}

.menu-icon-report {
    mask-image: url("../images/report-menu.svg");
    -webkit-mask-image: url("../images/report-menu.svg");
    mask-size: 16px;
    -webkit-mask-size: 16px;
}

.menu-icon-purchase {
    mask-image: url("../images/purchase-order.svg");
    -webkit-mask-image: url("../images/purchase-order.svg");
    mask-size: 16px;
    -webkit-mask-size: 16px;
}

.toolbar-icon-draw {
    mask-image: url("../images/Draw.svg");
    -webkit-mask-image: url("../images/Devices.svg");
}

.dxbl-menu.dxbl-menu-horizontal {
    background-color: #003e73;
}

.menu-item-separator {
    border-bottom: 1px solid #ccc; 
    margin-bottom: 5px; 
}

.grid-icon-button {
    width: 100%;
    height: 100%;
    padding: 6px;
    user-select: none;
    text-decoration: none;
}

    .grid-icon-button.grouped {
        width: 15%;
    }

    .grid-icon-button:hover {
        text-decoration: none;
    }

    .grid-icon-button:before {
        top: 50%;
        left: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
    }
