/* FORM ELEMENTS */

/* Hides the increment button thingy of number input fields.
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

form{
    padding: 0px;
}

.kgIF { /* the gram symbol after input fields*/
    padding-left: 10px;
    justify-self: right;
}
input, textarea, select{
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input, textarea, select{
    padding: 5px 10px 5px 10px;
    border: 2px solid black;
    border-radius: none;
    font-family: 'Work Sans', Tahoma, Helvetica, Arial, sans-serif;
    width:100%;
    font-weight:400;
    font-size: clamp(18px, 2vw, 20px);
    box-sizing: border-box;
}


select{
    background-color: #e6e6ff;
    border-color: #e6e6ff;
    border-radius: 80px;
}
select:focus{
    outline: none;
}


input:focus, textarea:focus{
    border: 2px solid #590af2;
    outline: none;
    box-shadow: none; /* ← This disables macOS accent highlight */
}


.more-padding{
    padding: 10px 10px 10px 10px;
}

.input-error{
    color: #e00000 !important;
    font-weight: 500;
}
.input-error-magenta{
    color: magenta !important;
    font-weight: 500;
}

textarea.input-error::placeholder {
    color: #e00000;
    font-weight: 500;
}

.duplicate{
    color: #008710 !important;
    font-weight: 500;
}
.label-error{
    color: #e00000 !important;
}

input[type="checkbox"]{
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    width: auto; /* override width: 100% */
    height: auto;
    margin-right: 8px; /* optional */
}

textarea{
    resize: none;
    min-height: 2em;
}

.table-input{
    appearance: none;
    padding: 10px;
    width: 100%;
    border: none;
    box-sizing: border-box;
}
.table-input:focus{
    border: none;
    background-color: #e6e6ff;
}

.days-input{
    background-color: transparent;
    border: 2px solid #590af2;
    color: #590af2;
    font-weight: 700;
    justify-self: right;
    width: 100%;
}

.subcategory-name{
    border: none;
    border-bottom: 2px solid #590af2;
    color: #590af2;
}

/*
input[type=text]:focus {
    border: 2px solid #590af2;
    border-radius: none;
}
*/

.input-div{
    display: inline-block;
    display: flex;
    align-items: center;
    width:30%; 
    justify-content: flex-end;
}

label{
    justify-content: flex-start; 
}

.label-div{
    width: 70%;
    padding-right: 16px;
}

/* Mobile horizontal */
@media only screen and (max-width: 999px) and (max-height: 499px) and (min-resolution: 190dpi) {
    input, textarea, select{
        font-size: clamp(22px, 2vw, 25px);
    }
}

/* Mobile vertical */
@media only screen and (max-width: 999px) and (min-width: 800px) and (min-height: 800px) and (min-resolution: 190dpi) {
    input, textarea, select{
        font-size: clamp(45px, 5vw, 48px);
        padding: 10px 20px 10px 20px;
    }
    select{
        background-size: 40px;
        background-position: right 20px center;
    }
    input, textarea{
        border: 3.5px solid black;
    }
    input:focus, textarea:focus{
        border: 4px solid #590af2;
        outline: none;
        box-shadow: none; /* ← This disables macOS accent highlight */
    }
    .more-padding{
        padding: 20px 20px 20px 20px;
    }
    .days-input{
        border: 5px solid #590af2;
        width: 100%;
    }
    .table-input{
        padding: 25px;
    }
    .unit { /* the gram symbol after input fields*/
        padding-left: 15px;
    }
    .label-div{
        padding-right: 20px;
    }
    .kgIF { /* the gram symbol after input fields*/
        padding-left: 20px;
        padding-right: 0px;
        justify-self: right;
    }
    
}