body {
    background-color: #fafafa;
}

figure {
    padding: 0;
    margin: 0;
}

select {
    height: 40px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    width: 100%;
    max-width: 98%;
}

a {
    color: blue;
    text-decoration: none;
}

.table-container {
    display: none;
    width: 100%;
    overflow-x: auto;
    margin-top: 25px;
}

table {
    width: 100%;
}

th {
    padding-bottom: 0.5rem;
}

td {
    padding: 0.5rem;
}

td:last-of-type a {
    margin: 0 5px;
}

tbody tr td {
    text-align: center;
}

tbody tr td input {
    border: 1px solid #ccc;
    border-radius: 8px;
}

tbody tr td img {
    border-radius: 8px;
}

.btn {
    padding: 0.7rem;
    margin: 0.5rem auto;
    border: none;
    cursor: pointer;
    border-radius: 0.3rem;
    min-width: 5rem;
}

.container {
    width: 95%;
    padding: 10px 20px;
    margin: 0 auto;
    box-sizing: border-box;
    color: #4a4a4a;
    background-color: #fff;
    box-shadow: 0 .5em 1em -.125em rgba(10, 10, 10, .1), 0 0 0 1px rgba(10, 10, 10, .02);
}

.btn_contact {
    color: green;
    max-width: 100px;
}

.btn_contact a {
    display: flex;
    align-items: center;
}

.btn_contact button {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.flex {
    display: flex;
}

.flex-end {
    justify-content: end;
}

.two-links-flex {
    flex-direction: column;
}

.two-links-flex a {
    margin: 5px 0;
}

.align-center {
    align-items: center;
}

.grid-budget-header {
    display: grid;
    align-items: center;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
}

#grid-metal-label {
    grid-column-start: 1;
}

#grid-size-label {
    grid-column-start: 1;
}

#metal {
    margin: auto;
    grid-column-start: 2;
    grid-column-end: 3;
}

#size {
    margin: auto;
    grid-column-start: 2;
    grid-column-end: 3;
}

.item-img {
    grid-column-start: 3;
    grid-row-start: 1;
    grid-row-end: 4;
}

.item-img img {
    width: 300px;
    float: right;
    margin-left: 10px;
}

.perfil-img img {
    width: 150px;
}

.text-center {
    text-align: center;
}

.control {
    display: flex;
    align-items: center;
    flex-direction: row !important;
}

.control label {
    margin: 0 5px;
}

.columns {
    display: flex;
    margin: 10px 0;
    align-items: center;
    justify-content: space-between;
}

.column {
    flex: 1;
    max-width: 100%;
    margin: 0 10px 0 0;
}

.column:last-of-type {
    margin-right: 0;
}

.create_order_btn {
    background-color: #feef2d;
}

.budget-footer {
    margin: 10px 0;
}

.budget-footer button {
    width: 100%;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
}

.budget-footer .half-buttons {
    display: flex;
    margin-top: 5px;
    justify-content: space-between;
}

.long_text {
    margin: 0;
    padding: 0;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-less {
    cursor: pointer;
    color: blue;
}

.read-more {
    cursor: pointer;
    color: blue;
}

.is-correct {
    color: green;
}

.is-wrong {
    color: red;
}

.cursor-pointer {
    cursor: pointer;
}

.total-tax {
    flex-direction: column;
}

.total-tax p {
    margin: 0;
    display: flex;
    justify-content: end;
}

.total-tax p:last-of-type {
    margin-bottom: 10px;
}

#total_label {
    font-size: 20px;
}

.professional_summary_details {
    display: flex;
    align-items: center;
    margin: 8px 0;
    justify-content: space-evenly;
}

.professional_summary_details #total_after_adjustment {
    line-height: 25px;
}

.professional_summary_details .hidden_details {
    display: flex;
}

#total_after_adjustment div {
    display: flex;
    color: green;
    font-size: 22px;
    text-align: end;
    justify-content: end;
}

#total_after_adjustment p {
    margin: 0;
}

.including_taxes {
    color: #4a4a4a;
    font-size: 16px;
}

.hide {
    display: none;
}

.show {
    display: block;
}

.justifyEnd {
    justify-content: end !important;
}

.flex_column {
    flex-direction: column;
}

@media (width <=768px) {

    body {
        font-size: 14px;
    }

    .columns {
        margin: 16px 0;
    }

    .item-description {
        margin: 15px 0;
    }

    .item-img {
        grid-column-start: 1;
        grid-row-start: 1;
        grid-row-end: 2;
        grid-column-end: 4;
        text-align: center;
    }
    
    .item-img img {
        width: 135px;
        float: none;
        margin-left: 10px;
    }

    .perfil-img img {
        width: 100px;
    }

    .container {
        width: calc(100% - 10px);
        padding: 10px;
        overflow: hidden;
    }

    select {
        height: 25px;
        width: calc(100% + 4px);
        max-width: none;
    }

    .responsive-width-62 {
        width: 62%;
    }

    .grid-budget-header {
        text-align: center;
        grid-template-rows: repeat(1, 1fr);
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-center-column {
        display: flex;
        text-align: center;
        justify-content: center;
    }

    #grid-reference-label {
        grid-column-start: 2;
        grid-row-start: 2;
    }

    #size {
        text-align: center;
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 3;
    }

    #metal {
        text-align: center;
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 4;
    }

    #total_label {
        font-size: 22px;
    }

    .two-links-flex {
        flex-direction: row;
        justify-content: space-between;
    }

    .table-container input {
        width: 50px;
    }

    .table-container select {
        width: 100px;
    }

    .professional_summary_details {
        justify-content: space-between;
    }

    .professional_summary_details #total_after_adjustment {
        font-size: 22px;
    }

    .including_taxes {
        font-size: 14px;
    }
}