﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body, #app {
    font-family: 'Roboto', sans-serif;
    height: 100dvh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--mud-pallette-surface) !important;
    font-size: var(--default-font-size);
}

* {
    box-sizing: border-box;
}
#measles-img-id {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-select: none;
}
.mud-main-content.no-drawer{
    margin-left: 0;
}
.mud-badge.mud-badge-top.right.mud-badge-overlap.defect-req-badge {
    inset: auto auto calc(100% - 9px) calc(100% - 9px);
}

.mud-badge.mud-badge-bordered.mud-badge-icon {
    padding: 5px 7px;
}

.mud-badge.mud-badge-bordered {
    border-width: 1px;
    border-color: var(--mud-palette-error-text);
}
.mud-badge {
    transition: none;
}
.overflow-y-scroll {
    overflow-y: scroll;
    /*height: 500px;*/
}

.mud-appbar {
    background-color: rgba(39,39,47);
    color: #ffffffb2;
}
.dark-bg {
    background-color: rgba(50,51,61);
}
.mud-layout {
    height: 100%;
    display: flex;
    overflow: hidden;
    flex-direction: column;
}
.hello {
    overflow: hidden;
    flex: 1 !important;
}
.dismiss {
    text-decoration: none;
}
.mud-main-content {
    overflow: hidden;
    flex: 1;
    padding: 0;
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.grid-list{
    display: grid;
    grid-gap: 8px;
    width: 100%;
}
.grid-container {
    display: grid;
    grid-gap: 8px;
    height: 100%;
    width: 100%;
}

.grid-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scrollable-div {
    overflow-y: auto;
}

.flex-fill {
    flex: 1 1 auto;
}
    
.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.selection-button {
    text-align: center;
    border-radius: 5px;
    height: 100%;
    padding: 5px;
    padding-top: 2px;
}
.hovered {
    opacity: 0.5 !important;
}
.selection-cell {
    width: auto;
    height: auto;
}
.expand-error {
    outline: solid red 3px;
    border-radius: 5px;
}

.loader-container {
    display: flex;
    flex-direction: column;    
    width: 100%;
    height: 100%;    
}
.loader-text{
    margin: .75rem auto auto auto;    
}
.loader {
    margin: auto auto 0 auto;
    width: 40px;
    height: 40px;
    border: 3px solid rgb(63,81,181);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.elevation {
    box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
}
.mud-main-content {
    margin-left: var(--mud-drawer-width-mini-left);
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.no-wrap {
    white-space: nowrap;
}

.equal-width-chips {
    display: flex;
    justify-content: end;
}

    .equal-width-chips .mud-chip {
        flex: 1;
        justify-content: center;
        text-align: center;        
    }
    .equal-width-chips .maxwidth-chip-small {
        max-width: 4.5rem;
    }
@keyframes slide-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}
a:hover {
    color: var( --mud-palette-text-primary);
}

.light-border-bottom {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.floating-update-button {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    padding: 1rem 1.5rem;
    animation: fadein 2s ease-out;
}

@keyframes fadein {
    from {
        right: -100%;
    }

    to {
        right: 2rem;
    }
}

.mud-snackbar-location-top-right{
    top: 40px;
    right: 25px;
}


.square-icon-button .mud-icon-button {
    border-radius: 0;
}


.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.mud-input-label {
    color: var(--mud-palette-text-primary) !important;
}

.product-image-button {
    height: 40px;
    transition: border-width,border-color 200ms cubic-bezier(.4,0,.2,1) 0ms;
    border-color: var(--mud-palette-lines-inputs);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-image-button:hover {
        border-color: var(--mud-palette-text-primary);
    }


.req {
    border-color: var(--mud-palette-error) !important;
    border-width: 2px !important;
}

    .req:hover {
        border-color: var(--mud-palette-error-darken) !important;
    }

    .req .mud-input-outlined-border {
        border-color: var(--mud-palette-error) !important;
        border-width: 2px !important;
    }

    .req:hover .mud-input-outlined-border {
        border-color: var(--mud-palette-error-darken) !important;
    }

input[type="file"] {
    display: none;
}
.selected {
    border: solid 1px var(--mud-palette-primary) !important;
}
.selector-container {
    height: 50px;
    width: 100%;
}
.selector {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    cursor: pointer;
    height: 100%;
    width: 100%;
    border: solid 1px var(--mud-palette-lines-inputs);
}
.mud-button-filled-size-large{
    font-size: 1rem;
}
.active-status {
    background-color: #2dbc4e;
    animation: pulse 2s infinite;
}
.active-status-border {
    border: solid 2px #28A745;
    animation: pulse 3s infinite;
}
@keyframes pulse {
    0% {
        background-color: var(--active-color);
    }

    50% {
        background-color: var(--active-color-light);
    }

    100% {
        background-color: var(--active-color);        
    }
}


#install-button {
    display: none;
}

@media (display-mode: browser) {
    #install-button {
        display: inline-flex;
    }
}

:root {
    --default-font-size: 1rem;
    --small-font-size: .75rem;
    --mud-appbar-height: 4rem;
    --bin-audit-bar-height: 1.3rem;
    --active-color: #2dbc4e;
    --active-color-light: #34ce57;
    --offline-color: #B22222;
    --font-size-large: 2rem;
    /*custom variables defaults*/
    --static-product-button-font-size: 1rem;
    --static-cavity-button-font-size: 2rem;
    --static-defect-button-font-size: 1rem;
    --static-fg-code-button-font-size: 2rem;
    --static-fg-description-button-font-size: .5em;
    --product-numpad-font-size: 1.5rem;
    --product-list-font-size: 1.5rem;
}
.mud-button-filled-size-large {
    font-size: var(--font-size-large);
}

.font-size-large {
    font-size: var(--font-size-large);
}
.product-entry-button {
    font-size: var(--static-product-button-font-size) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
.defect-entry-button {    
    font-size: var(--static-defect-button-font-size) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.dynamic-defect-entry-button {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.cavity-entry-button{
    font-size: var(--static-cavity-button-font-size) !important;
}
.fg-entry-button {
    font-size: var(--static-fg-code-button-font-size) !important;
}
.fg-description {
    font-size: var(--static-fg-description-button-font-size) !important;
    font-weight: 400;
}
.full-width-alert .mud-alert-position, .full-width-alert .mud-alert-message {
    width: 100%;
    display: flex;
    align-items: center;
}

.crosshair-cursor {
    /*cursor: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'> <line x1='18' y1='0' x2='18' y2='36' stroke='white' stroke-width='4'/> <line x1='0' y1='18' x2='36' y2='18' stroke='white' stroke-width='4'/> <line x1='18' y1='0' x2='18' y2='36' stroke='black' stroke-width='2'/> <line x1='0' y1='18' x2='36' y2='18' stroke='black' stroke-width='2'/> </svg>") 18 18, crosshair;*/
    cursor: crosshair;
}
/*resolving bootstrap and mudblazor breakpoint diffs, could use bs with sass in the future?*/
/*bs md: 768px  mb md: 960px*/
@media (min-width: 960px) {
    .d-md-block-no-bs {
        display: block !important;
    }
}

.numpad-wrapper {
    height: 40% !important;
}
.product-list-wrapper {
    height: 60% !important;
}

@media (min-width: 600px) {
    .numpad-wrapper {
        height: 100% !important;
        min-height: 250px !important;
    }
    .product-list-wrapper {
        height: 100% !important;
    }
}