﻿
/* FORM CONTROLS */

.input-group .custom-select:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .custom-select:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.k-dropdown .k-dropdown-wrap {
    border-color: inherit;
}

.k-combobox .k-dropdown-wrap .k-select {
    border: none;
    color: inherit;
    background-color: inherit;
    border-radius: inherit;
}

.validate.k-state-valid .k-dropdown-wrap,
.validate.k-autocomplete.k-state-valid {
    border-color: #93c54b;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2393c54b' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validate.k-state-valid .k-dropdown-wrap .k-clear-value,
.validate.k-autocomplete.k-state-valid .k-clear-value {
    right: calc(0.75rem + 50px);
}

.k-state-invalid .k-dropdown-wrap,
.k-autocomplete.k-state-invalid {
    border-color: #d9534f;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23d9534f' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d9534f' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.k-state-invalid .k-dropdown-wrap .k-clear-value,
.k-autocomplete.k-state-invalid .k-clear-value {
    right: calc(0.75rem + 50px);
}

.validation-message {
    font-size: 80%;
    color: #d9534f;
    margin-top: 0.25rem;
}

.data-field.text i.bool {
    font-size: 1.2rem;
}

.b-numeric-handler-wrap {
    display: none !important;
}

.b-is-autocomplete .dropdown-menu {
    overflow-y: auto;
}

.b-is-autocomplete .dropdown-menu .dropdown-item {
    padding: 0 1rem;
}

/* clears the ‘X’ from Chrome */
.b-is-autocomplete input[type="search"]::-webkit-search-decoration,
.b-is-autocomplete input[type="search"]::-webkit-search-cancel-button,
.b-is-autocomplete input[type="search"]::-webkit-search-results-button,
.b-is-autocomplete input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* GRID */

.k-grid-content a,
.k-grid-content a:hover,
.k-grid-content a:visited {
    text-decoration: underline !important;
}

.k-grid.fixed-rows .k-grid-content {
    overflow-y: auto;
}

.k-grid.fixed-rows .k-grid-content .k-grid-table th,
.k-grid.fixed-rows .k-grid-content .k-grid-table td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.k-grid .k-grid-toolbar {
    display: flex;
    align-items: center;
    overflow: visible;
}

.k-grid .k-grid-toolbar .dropdown.btn-group {
    display: inline-block;
}

.k-grid.hide-toolbar .k-grid-toolbar {
    display: none;
}

.k-grid > .k-grid-container > .k-grid-content tr.k-master-row.no-details > td.k-hierarchy-cell span.k-icon {
    display: none;
}

.k-grid .k-grid-norecords {
    text-align: left;
    height: 50px;
}

/* Blazorise Autocomplete fix */
.dropdown-menu-position-strategy {
    top: auto;
    margin-top: 5px !important;
}

/* CONTAINERS */

.container-fluid {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.container-fluid.full-height {
    height: 100%;
}

.container-fluid.full-height .container {
    height: 100%;
}

.container-fluid .row.full-height {
    height: 100%;
}

.container-fluid row.full-height .column {
    height: 100%;
}

.w-1-col {
    max-width: 30rem;
}

.w-2-col {
    max-width: 60rem;
}

.w-3-col {
    max-width: 90rem;
}

.w-4-col {
    max-width: 100rem;
}

/* PAGER */

.pager button {
    opacity: 1 !important;
    white-space: nowrap;
}

.pager button:not(.pager-label):disabled i {
    opacity: .3;
}

/* MISC */

.snackbar {
    z-index: 10000;
}

.modal-dialog {
    z-index: 1100;
}

.input-group-prepend .btn,
.input-group-append .btn {
    z-index: 0;
}

.multiline {
    white-space: pre-wrap;
}

.blink-me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* ERRORS */

#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;
}
