html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.table-con {
    overflow-x: auto;
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.toolbar {
    display: flex;
    flex-direction: row-reverse;
}

.toolbar .form-group {
    margin-bottom: 0;
}

.toolbar .filter-fields {
    display: flex;
    flex-direction: row;
}

.length-box {
    display: flex;
    flex-direction: column-reverse;
}

.filterCon {
    margin: 0 5px;
}

.dt-filter-area {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;

    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;

    width: 100% !important;
}

.hover-bg-complement :hover {
    /*/background-color: var(--primary-complement)!important;*/
    /*font-weight:700;*/
    /*text-decoration: underline;*/
}

.dropdownQuestionArea .row {
    max-height: 300px;
    overflow-y: auto;
    padding-top: 10px;
}

.dropdownQuestionArea .line-container {
    padding: 0 15px;
    overflow: hidden;
    border: 1px solid grey;
    border-radius: 5px;
}
.save-icon{
    width: 16%;
    height: 16%;
    position: absolute;
    right: 0;
    margin-right: -5%;
    top: 51%;
    color: green;
    display:none;
}
.icon-color-green{
    color:green;
}
.question-input-group.save-success input, .question-input-group.save-success select{
    border-color:green;
    appearance: none;
}

.question-input-group.save-success input::-webkit-outer-spin-button,
.question-input-group.save-success input::-webkit-inner-spin-button
{
    -webkit-appearance: none;
    margin: 0;
}
.question-input-group.save-success input[type=number] {
    -moz-appearance: textfield;
}
.question-input-group.save-success .save-icon{
    display: block;
    -webkit-animation: fadeOut 1s;
    animation: fadeOut 10s;
    animation-fill-mode: forwards;
}
@-webkit-keyframes fadeOut {
    0% { opacity: 1;}
    50% {opacity:1;}
    100% { opacity: 0;}
}
@keyframes fadeOut {
    0% { opacity: 1;}
    50% {opacity:1; }
    100% { opacity: 0;}
}
.logo-default, .logo-sticky {
    background: white !important;
}

.survey-container {
    margin-bottom: 10px;
    /*background-color: #d3d3d3 !important;*/
}

.survey-container .card-header {
    background-color: #e5e5e5 !important;
}
.survey-size-header{
    width: 100%;
    font-weight: bold;
    border-top:1px solid black;
    padding: 10px 10px 0;
}
.survey-size-header:first-of-type{
    border-top: none;
}
.survey-commodity-card{
    display:flex;
    flex-wrap: wrap;
}

.button-box {
    display: flex;
    gap: 5px;
    justify-content: end;
    align-content: end;
}
.error-text{
    color: #F64E60;
}
.success-text {
    color: var(--primary);
}
.commodity-selection .survey-commodity-card{
    justify-content: space-between;
}
.commodity-image-tile{
    width: 30%;
    max-width: 30%;
    cursor:pointer;
    display: flex;
    flex-direction: column;
}
.commodity-image-tile img{
    max-width:100%;
    border:3px solid black
}
.back-button-row{
    display: flex;
    justify-content: end;
    margin-bottom:1rem;
}
/*Lifted from MRM licenses*/
.bgCucumbers,
.bgCucumberSqft {
    background-color: #b8e276;
    color: #fff; }

.bgPeppers,
.bgPepperSqft {
    background-color: #ffceb9;
    color: #fff; }

.bgTomatoes,
.bgTomatoSqft {
    background-color: #e96f79;
    color: #fff; }

.survey-container[commodity-type=CUCUMBER] .card-header{
    background-color: #b8e276 !important;
    /*color:#FFF;*/
}
.survey-container[commodity-type=PEPPER] .card-header{
    background-color: #ffceb9 !important;
    /*color:#FFF;*/
}
.survey-container[commodity-type=TOMATO] .card-header{
    background-color: #e96f79 !important;
    /*color:#FFF;*/
}

@media(max-width:576px){

    .toolbar {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
    }

    .toolbar .form-group {
        margin-bottom: 0;
    }

    .toolbar .filter-fields {
        display: flex;
        flex-direction: column-reverse;
    }

    .length-box {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
    }

    .filterCon {
        margin: 0 5px;
    }

    .dt-filter-area {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;

        -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
        justify-content: space-between !important;
        flex-direction: column;
        width: 100% !important;
    }
    .save-icon{
        width: 16%;
        height: 16%;
        position: absolute;
        right: 0;
        margin-right: -5%;
        top: 51%;
        color: green;
        display:none;
    }
    .commodity-selection .survey-commodity-card{
        flex-direction: column;
    }
    .commodity-image-tile{
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
    .survey-container .card-header h4 {
        flex-direction:column;
        justify-content: center!important;
        align-content: center;
        flex-wrap: wrap;
    }
    .survey-container .card-header h4 span {
        text-align: center;
    }
}

