 #uplatnica_form {
     width: 100%;
     max-width: 800px;
     padding: 34px 20px;
     margin: 15px auto;
     font-size: 15px;
     font-weight: 500;
     background-color: #fff;
     border: 1px solid gray;
 }

 #uplatnica_form label {
     text-align: left;
 }

 #uplatnica_form textarea {
     resize: none !important;
 }

 #uplatnica_form .error-message {
     font-size: 12px;
     line-height: 12px;
     height: 12px;
 }

 #uplatnica_form tr th {
     width: 35%;
 }

 #uplatnica_form tr td {
     width: 65%;
 }

 #uplatnica_form input::-webkit-input-placeholder,
 #uplatnica_form textarea::-webkit-input-placeholder {
     /* Edge */
     color: #a5a5a5;
 }

 #uplatnica_form input:-ms-input-placeholder,
 #uplatnica_form textarea:-ms-input-placeholder {
     /* Internet Explorer 10-11 */
     color: #a5a5a5;
 }

 #uplatnica_form input::placeholder,
 #uplatnica_form textarea::placeholder {
     color: #a5a5a5;
 }

 #uplatnica_form input[type="text"]:not(#shortcode):not(#qrshortcode),
 #uplatnica_form input[type="number"]:not(#shortcode):not(#qrshortcode),
 #uplatnica_form textarea {
     width: 100%;
 }

 #uplatnica_form select {
     width: 100%;
     max-width: 100%;
 }

 #uplatnica_form button#shortcode-copy {
     margin-left: 5px;
 }

 /* Chrome, Safari, Edge, Opera */
 #uplatnica_form input::-webkit-outer-spin-button,
 #uplatnica_form input::-webkit-inner-spin-button {
     -webkit-appearance: none;
     margin: 0;
 }

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

 .nalog-wrapper {
     max-width: 100%;
     margin: 15px 30px 15px 0;
     font-family: Arial,
     Helvetica,
     sans-serif;
     font-size: 15px;
     font-weight: 500;
     background-color: #fff;
 }

 .nalog-row {
     display: flex;
     flex-direction: row;
     flex-wrap: wrap;
     width: 100%;
     border: 1px solid gray;
 }

 .nalog-column {
     display: flex;
     flex-direction: column;
     flex-basis: 100%;
     flex: 1;
     margin: 0 20px;
 }

 .nalog-top {
     flex: 0 0 100%;
     flex-flow: row;
     align-items: center;
     display: flex;
     justify-content: end;
 }

 .nalog-top div {
     margin: 10px 50px 0 0;
     font-weight: 700;
     font-family: sans-serif;
 }

 .nalog-left {
     margin-right: 40px;
 }

 .nalog-right {
     margin-left: 20px;
 }

 .nalog-bottom {
     flex: 0 0 100%;
     /* Let it fill the entire space horizontally */
     height: 50px;
     margin-bottom: 20px;
     flex-flow: row;
     align-items: center;
     display: flex;
     justify-content: center;
 }

 .nalog-bottom div {
     width: 190px;
     margin-left: -5px;
 }

 .nalog-bottom div:nth-child(2) {
     width: 60px !important;
 }

 .nalog-column-separator {
     display: flex;
     flex: 0;
     margin: 0;
 }

 .nalog-first,
 .nalog-third {
     display: flex;
     flex-direction: row;
 }

 .nalog-input {
     margin-bottom: 10px;
 }

 .nalog-input span {
     margin-bottom: 2px;
     display: block;
 }

 .nalog-input.nalog-large div {
     padding: 5px;
     height: 50px;
     width: 100%;
     border: 1px solid #000;
     text-align: left;
     white-space: pre-wrap;
     max-width: 500px;
     overflow-wrap: anywhere;
     overflow: hidden;
 }

 .nalog-input.nalog-small div {
     font-size: 14px;
     line-height: 1.5;
     height: 25px;
     width: 100%;
     border: 2px solid #000;
     text-align: center;
 }

 .nalog-first div:last-child .nalog-input div,
 .nalog-second .nalog-input div,
 .nalog-third div:last-child .nalog-input div {
     text-align: left !important;
     padding-left: 5px;
 }

 .nalog-line {
     margin-top: 20px;
     border-top: 1px solid #000;
     padding-top: 5px;
     width: 60%;
 }

 .nalog-column-separator>div {
     background: #000;
     width: 1px;
     margin-top: 20px;
     height: 77%;
 }

 .nalog-first>div,
 .nalog-second>div,
 .nalog-third>div {
     margin: 0 10px;
     flex: 1;
 }

 .nalog-first>div:last-child {
     flex: 5;
 }

 .nalog-third>div {
     margin: 0 10px;
     flex: 1;
 }

 .nalog-third>div:last-child {
     flex: 7;
 }

 .label {
     margin: 10px 10px 5px;
 }

 .nalog-qr {
     text-align: left;
     padding: 5px 0 0 10px;
 }

 .wrapper-racun {
     display: flex;
     flex-direction: row;
     justify-content: space-between;
     width: 100% !important;
     line-height: 1.7;
 }

 .wrapper-racun input:first-child {
     flex: 1;
 }

 .wrapper-racun input:nth-child(2) {
     flex: 4;
 }

 .wrapper-racun input:nth-child(3) {
     flex: 0 0 50px;
 }

 .nalog-qr .qr_kod {
     height: 100px;
 }

 @media only screen and (max-width: 1500px) {
     #uplatnica_form tr th {
         width: 40%;
     }

     #uplatnica_form tr td {
         width: 60%;
     }
 }

 @media only screen and (min-width: 1200px) and (max-width: 1500px) {
     #uplatnica_form {
         padding: 15px;
     }

     #uplatnica_form tr th {
         width: 100%;
         display: block;
     }

     #uplatnica_form tr td {
         width: 100%;
         display: block;
     }
 }

 @media only screen and (max-width: 1200px) {
     #uplatnica_form {
         max-width: 95%;
     }

     .nalog-wrapper {
         max-width: 95%;
         margin: 15px auto;
     }

     .form-wrap p.submit {
         text-align: center;
     }

     #col-left .col-wrap,
     #col-right .col-wrap {
         padding: 0;
     }

     #uplatnica_form tr th {
         width: 30%;
     }

     #uplatnica_form tr td {
         width: 70%;
     }

     #col-left {
         float: left;
         width: 100%;
     }

     #col-right {
         float: left;
         width: 100%;
     }
 }

 @media only screen and (max-width: 768px) {
     #uplatnica_form tr th {
         width: 100%;
         padding: 2px 0;
         display: block;
     }

     #uplatnica_form tr td {
         width: 100%;
         padding: 2px 0;
         display: block;
     }
 }

 @media only screen and (max-width: 768px) {
     .nalog-row {
         flex-direction: column;
     }

     .nalog-top {
         justify-content: center;
     }

     .nalog-top div {
         margin: 20px auto 10px;
     }

     .nalog-line {
         width: 100%;
         text-align: center;
     }

     .nalog-bottom {
         flex-direction: column;
     }

     .nalog-bottom div {
         width: 100%;
         text-align: center;
     }

     .nalog-qr {
         text-align: center;
         padding: 10px 0;
     }
 }
