@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.de-em {
    color: #ddd;
    font-weight: 300;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.boxgrid {
    display: grid;
    gap: 2rem;
    /*grid-auto-flow: column;*/
    /*grid-auto-columns: 1fr;*/
}

@media (min-width: 50em) {
    .boxgrid {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
}
/* - makes them squishy and horizontally scrollable
@media (min-width: 30em) and (max-width: 50em) {
    .boxgrid {
        grid-auto-flow: column;
        grid-template-columns: repeat(auto-fit, minmax(20em, 30em));
    }
}
*/

    .boxgrid > gridbox {
        padding: 0.2rem 0.5rem;
        border-radius: 0.5rem;
        
    }
.gridboxcontent {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.5rem;
    outline: 0;
}
.gridboxcontent > boxheader {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.3rem-1px);
    border-top-right-radius: calc(.3rem-1px);
    text-align: center;
}
.gridbox > boxbody {
    vertical-align: middle;
    border:solid;
    border-color: gray;
}


.buttongrid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem,100%),1fr));
}
.buttongrid > btn-3 {
    height: 3em;
}



.buttonbox-spaced {
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
    column-gap: 5px;
    justify-content: space-around;
}
.buttonbox-justified {
    display: flex;
    flex-wrap: wrap;
    row-gap: 15px;
    column-gap: 15px;
    justify-content: space-between;
}
.buttonbox-evenly {
    display: flex;
    flex-wrap: wrap;
    row-gap: 15px;
    column-gap: 15px;
    justify-content: space-evenly;
}
.buttonbox-vertical{
    display: flex;
    flex-direction:column;
    row-gap:3px;
    width:100%;
}
.btn-sub {
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    padding: 0.2rem 0.2rem;
    margin: 3px;
    border-radius: 2px;
    background-color: rgb(0,0,0,0.1)
}
.btn-sub:disabled {
    background-color: slategray;
    pointer-events: none;
}

.btn-common {
    /* display: inline-block; */
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    transition-duration: 0.15s, 0.15s, 0.15s, 0.15s;
    transition-timing-function: ease-in-out, ease-in-out, ease-in-out, ease-in-out;
    transition-delay: 0s, 0s, 0s, 0s;
    transition-property: color, background-color, border-color, box-shadow
}
    .btn-common:disabled {
        background-color: slategray;
        pointer-events: none;
    }

.btn-mar{
    margin:3px;
}

.inv-namoi {
    color: #fff;
    background-color: #006FB9;
}
.inv-p2g {
    color: #fff;
    background-color: #009096;
}
.inv-deere {
    color: #fff;
    background-color: #4CAF50;
}
.btn-deere {
    color: #fff;
    background-color: #4CAF50;
    border-color: none;
    border: none;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

    .btn-deere:hover {
        color: #fff;
        background-color: #45a049;
        border-color: none;
    }

.btn-p2g {
    color: #fff;
    background-color: #009BA6;
    border-color: none;
    border: none;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

    .btn-p2g:hover {
        color: #fff;
        background-color: #009096;
        border-color: none;
    }

.btn-namoi {
    color: #fff;
    background-color: #006FB9;
    border: none;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

    .btn-namoi:hover {
        color: #fff;
        background-color: #0060B0;
        border-color: none;
    }

.btn-notreally {
    color: #fff;
    background-color: #707070;
    border: none;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}
.btn-notreally:hover{

}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5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em;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.dialog-container {
    
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    animation: dialog-container-entry 0.2s;
}

@keyframes dialog-container-entry {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.dialog-fullsize {
    background-color: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    width: calc(100% - 3rem);
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

.dialog {
    background-color: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    /*width: 700px;*/
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

.modal-content {
    overflow: auto;
    max-height: calc(100vh - 40px);
}

.modal-body {
    overflow-y: auto;
}
@keyframes dialog-entry {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateX(0px) scale(1.0);
    }
}

.dialog > .stronger {
    font-weight: bold
}

.dialog-title {
    background-color: #444;
    color: #fff2cc;
    padding: 1.3rem 2rem;
}

    .dialog-title h2 {
        color: white;
        font-size: 1.4rem;
        margin: 0;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        line-height: 1.3rem;
    }


.dialog-body {
    flex-grow: 1;
    padding: 0.5rem 1rem 1rem 0;
}

    .dialog-body > div {
        
        margin-top: 1rem;
        /*align-items: center;*/
    }


    .dialog-body label {
        text-align: right;
        /*width: 200px;*/
        margin: 0 1.0rem;
    }

.dialog-body input-grow {
    flex-grow: 5;
}

.dialog-body input, .dialog-body select {
    flex-grow: 1;
    width: unset;
}

    .dialog-body input[type=range] {
        width: 100%;
        flex-grow: 10;
    }

.dialog-body .size-label {
    min-width: 40px;
    text-align: right;
}

.dialog-buttons {
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #eee;
    padding: 0 1rem;
}

.cell-label-r {
    text-align: right;
    padding: 0.5rem;
}
.cell-vallabel {
    font-style: italic;
    font-weight: 700;
    padding: 0.5rem;
}


.datebox {
    display: flex;
    flex-direction: column;
    row-gap: 0.2em;
}

    .datebox > db-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }

.db-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    flex-wrap:nowrap;
    margin-left: 0;
}

.db-col-leftwrap {
    text-align: left;
    font-size: smaller;
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
}

.db-col-rightwrap {
    font-size: smaller;
    text-align: right;
    display: flex;
    align-content: flex-end;
    flex-wrap: wrap;
}
.db-col-rightwrapreverse {
    font-size: smaller;
    text-align: right;
    display: flex;
    flex-direction: row-reverse;
    /*align-content: flex-end;*/
    flex-wrap: wrap;
}

.gridlist-m {

}

.spare {
    align-content: flex-end;
    flex-direction: row-reverse;
}