input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.elinor-form{
    max-width:1200px;
    margin:auto;
    background:#ffffff;
    padding:30px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    font-family:system-ui;
}

.elinor-form h3{
    margin-top:20px;
    margin-bottom:10px;
}

.elinor-form .form-row {
    margin-bottom:12px;
}

.elinor-form input,
.elinor-form textarea,
.elinor-form select {
    width:100%;
    padding:1px;
    border-radius:6px;
    border:1px solid #ddd;
    font-size:12px;
    box-sizing: border-box;
}

.elinor-form textarea {
    resize:vertical;
    max-height:200px;
}

.elinor-form .button{
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.elinor-form .button.primary-button {
    background:#2271b1;
    padding:12px 20px;
}

.elinor-form .button.secondary-button {
    background:#1fb37e;
    padding:10px 14px;
}

.elinor-form button:hover{
    background:#135e96;
}


#materialsTable {
    width:100%;
    margin:20px 0;
}

#materialsTable .material-row{
    background:#fff;
    padding:15px;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

#materialsTable .material-row.hidden {
    display:none;
}

#materialsTable th {
    font-size:15px;
}

#materialsTable .material-value.num {
    width:30px;
    text-align:center;
    font-size:20px;
}

#materialsTable .material-value.small {
    width:70px;
    box-sizing:border-box;
}

#materialsTable .material-value.error input,
#materialsTable .material-value.error select,
.elinor-form .form-row.error input {
    border-color:#b44646;
}

#materialsTable .mobile-title {
    display:none;
}

#materialsTable input{
    width:100%;
    border-radius:6px;
    border:1px solid #ddd;
    box-sizing: border-box;
}

.wrap h1{
    font-size:26px;
    margin-bottom:20px;
}

.dataTables_wrapper{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.elinor-card{
    background:#fff;
    padding:20px;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

.elinor-success{
    background:#46b450;
    color:white;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}
.elinor-error, .errors-wrap{
    background: #b44646;
    color:white;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}

@media only screen and (max-width:1200px) {
    #materialsTable, #materialsTable .material-row, #materialsTable .material-value {
        display:block;
    }

    #materialsTable .material-value.num {
        font-size: 30px;
    }

    #materialsTable .material-value.small {
        display:inline-block;
        width:49%;
    }

    #materialsTable .material-row {
        position:relative;
    }

    #materialsTable .material-row .remove-row {
        position:absolute;
        top:15px;
        right:15px;
    }

    #materialsTable tbody {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:15px;
    }

    #materialsTable .thead {
        display:none;
    }
    #materialsTable .mobile-title {
        display:block;
    }
}

@media only screen and (max-width:690px) {
    #materialsTable tbody {
        grid-template-columns:1fr;
    }
}