/* 1. estructura */

.formx {

}

.formx .form-module {
    width: 100%;
}

/* 2.a estructura para modo horizontal */

.formx.formxh {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 103px;
}

.formx.formxh .main-field-group {
    flex: 1 1 auto;
    align-content: center;
    width: auto;
}

.formx.formxh  .field-group-product {
}

.formx.formxh  .field-group-form {
}

.formx.formxh  .field-group-submit {
    text-align: right;
}

.formx.formxh .form-area {
    display: flex;
    align-items: initial;
}

.formx.formxh .form-area .field-group {
    flex: 1 1 auto;
    padding: 10pt;
}

@media (min-width: 1200px) {
    .formx.formxh {
    }
    .formx.formxh .main-field-group {
    }
    .formx.formxh .form-area {
    }
    .formx.formxh .form-area .field-group {
        flex: 0 0 auto;
        padding-top: 0;
    }
    .formx.formxh .form-area .field-group-total {
    }
    .formx.formxh .field-group-product {
        flex: 0;
    }
    .formx.formxh .field-group-submit {
        flex: 0;
    }
}

@media (min-width: 750px) and (max-width: 1199px) {
    .formx.formxh {
        flex-wrap: wrap;
    }
    .formx.formxh .main-field-group {
        min-width: 500px;
    }
    .formx.formxh .form-area {
        flex-wrap: wrap;
    }
    .formx.formxh .form-area .field-group {
    }
    .formx.formxh .form-area .field-group-total {
    }
}

@media (max-width: 749px) {
    .formx.formxh {
        flex-wrap: wrap;
    }
    .formx.formxh .main-field-group {
        min-width: unset;
        width: 100%;
    }
    .formx.formxh  .field-group-product {
        text-align: center;
    }
    .formx.formxh  .field-group-submit {
        text-align: center;
    }
    .formx.formxh  .main-field-group .main-control {
        width: 100%;
    }
    .formx.formxh .form-area {
        flex-wrap: wrap;
    }
    .formx.formxh .form-area .field-group {
    }
}

.formx.formxh .form-area .field-group-total {
    margin-left: auto;
    text-align: right;
}

/* 2.b estructura para modo horizontal */

.formx.formxv {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
}

.formx.formxv .main-field-group {
    flex-grow: 1;
    padding: 5pt;
}

.formx.formxv .form-area .field-group-total {
    margin-left: auto;
    text-align: right;
    padding: 5pt;
}

.formx.formxv  .field-group-product {
}

.formx.formxv  .field-group-form {
}

.formx.formxv  .field-group-submit {
    text-align: center;
}

.formx.formxv .form-area {
    display: flex;
    flex-direction: column;
}

.formx.formxv .form-area .field-group {
    flex-grow: 1;
    margin-bottom: 5pt;
}

/* 2.c estructura para el form vertical con un panel al lado */

.formxv .formx-row {
    display: flex;
}

.formxv .formx-row .formx-col {
    flex-grow: 1;
}

.formxv .formx-row .formx-col.xcol1 {

}

.formxv .formx-row .formx-col.xcol2 {

}

/* 3. elementos individuales. son independientes de data-mode */

.formx .main-control {
    border-radius: 5pt;
}

.formx label {
	display: block;
    margin-bottom: 5px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.formx input[type=text] , 
.formx input[type=number] , 
.formx input[type=checkbox] , 
.formx select {
	height: calc(1.5em + .75rem + 2px);
    height: auto;
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    margin: 0;
    background-color: #fff;
    color: #495057;
    max-width: 160px;
    box-sizing: border-box;
}

.formx select {
}

.formx input {
}

.formx .formx-product {
}

.formx [name=formx-submit] {
    width: 180px;
    padding: 8pt;
    cursor: pointer;
}


.formx  .field-group-submit input[disabled=""] {
    background-color: #cacaca;
}

.formx.formxh .field-group [name=size] {
}
.formx.formxh .field-group [name=sides] {
    width: 100px;
}
.formx.formxh .field-group [name=quantity] {
    width: 83px;
}
.formx.formxh .field-group [name=coroplast] {
    width: 100px;
}
.formx.formxh .field-group [name=colors] {
    width: 100px;
}
.formx.formxh .field-group [name=wirestands] {
}
.formx.formxh .field-group [name=wirestands_quantity] {
}


.formx.formxv input[type=text] , 
.formx.formxv input[type=number] , 
.formx.formxv input[type=checkbox] , 
.formx.formxv select {
    max-width: unset;
    width: 100%;
}


.formx-invisible {
    display: none !important;
}

.formx-atencion {
    border: 2px dashed red;
}

.formx .error-input {
    color: red;
    border: 1px solid red;
}

.formx .star::after {
  content: " *";
  width: 5pt;
  height: 5pt;
  color: red;
  margin-left: 1pt;
}

.formx .show-details {
	line-height: 0;
    left: 10px;
    text-decoration: underline;
}
.formx .show-details.modoh {
    padding: 5pt;
    margin-bottom: 5pt;
}

.formx .show-details::after {
    content: " see more";
    color: black;
    font-size: 8pt;
    cursor: pointer;
}

.formx .show-details::before {
    content: "";
    position: relative;
    left: -5px;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid black; 
}

.formx .errormsg {
    color: red;
    font-size: 8pt;
    display: inline;
}



.formx .small1 {
    display: flex;
    align-items: center;
}
.formx .small1 label {
    margin-right: 2pt;
}
.formx .small1 span {
    font-size: 10pt;
}
.formx .block {
    display: flex !important;
    align-items: first baseline;
    justify-content: center;
}
.formx .block label {
    display: inline !Important;
}
.formx .formx-form1-chkbox {
    display: flex;
    padding: 5pt;
    font-weight: 600;
}
.formx .formx-form1-chkbox label, .formx .formx-form1-chkbox input {
    display: inline !Important;
    width: auto;
    height: 8pt;
    font-size: 8pt;
}


.formx .opts {
    display: block;
    min-width: 150pt;
}

.formx .opts .opt {
    text-align: left;
    align-items: center;
}

.formx .opts .opt input {
    margin: 0;
    margin-right: 0px;
    padding: 0;
    width: 15pt;
    margin-right: 10pt;
}
.formx .opts .opt input:focus {
    outline: none;
    box-shadow: none;
}

.formx .opts .opt label {
    padding: 0;
    margin: 0;
    width: auto;
    display: inline;
}



.formx[data-formula] {
    cursor: pointer;
}

.formx .formx-formula {
    position: absolute;
    background-color: #f8a73f;
    width: 300px;
    transform: translate(-250px, 5pt);
    display: block;
    z-index: 9999;
    padding: 10pt;
    font-size: small;
    text-align: left; 
    box-shadow: 10px 10px 10px #0000005e;
    color: black;
}

@media (max-width: 500px){
    .formx .formx-formula {
        width: 150pt;
        transform: translate(-100px, 5pt);
    }
}

.formx .formx-formula::before {
    content: "";
    position: absolute;
    top: -7px;          /* sobre el borde superior */
    right: 10px;        /* hacia la derecha */
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f8a73f;   /* borde externo */
}

.formx .formx-formula .formula-row {
    display: flex;
}
.formx .formx-formula .formula-label {
    color: #755020;
}
.formx .formx-formula .formula-value {
    margin-left: auto;
}
.formx .formx-formula .formula-total {
    color: black;
    font-weight: 600;
}

.formx .form2_formula .sqft, 
.formx .form3_formula .sqft, 
.formx .form4_formula .sqft 
{
    color: black;
    font-weight: 600;
    font-size: 7pt;
    font-family: mono;
}

.formx .form2_formula .price_each, 
.formx .form3_formula .price_each,
.formx .form4_formula .price_each 
{
    color: #800808;
    font-weight: 600;
    font-size: 8pt;
    font-family: mono;
}

.formx .form2_formula .total,
.formx .form3_formula .total,
.formx .form4_formula .total 
{
    color: black;
    font-weight: 600;
    font-size: 10pt;
    font-family: mono;
}

.formx .formx-total-each-cont {
    display: grid;
}

.formx .formx-total-each {
	font-size: 12px;
    left: 8px;
    color: #f8a73f;
    cursor: pointer;
    flex: 0 0 auto;
}

.formx .formx-total-each::after {
    content: " ea";
    color: #f8a73f;
}

.formx .formx-total-each::before {
    content: "";
    position: relative;
    top: 0%;
    left: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid #f8a73f;
    display: inline-block;
    transform: rotateZ(-90deg) translateY(-4px) translateX(-2px);
}

.formx .formx-total-each.hide-arrow::before {
  content: none;
}

.formx .formx-total-each-old {
    font-size: 8pt;
    text-decoration: line-through;
}

.formx .formx-total-each-info {
    font-size: 7pt;
    color: red;
}
.formx .formx-total-each-info::before {
    content: "-";
}
.formx .formx-total-each-info::after {
    content: " off";
    font-size: 6pt;
}


.formx .formx-total-to-pay-cont {
    display: grid;
}

.formx .formx-total-to-pay {
    color: black;
    font-weight: 600;
    font-size: 1.5rem;
}

.formx .formx-total-to-pay-old {
    color: black;
    font-weight: normal;
    font-size: 0.8rem;
    text-decoration: line-through;
}


.formx .xquantities {
   padding: 5pt; 
}

.formx .xquantities .xprices {
    font-size: 10pt;
    width: 100%;
    border-collapse: collapse;
}

.formx .xquantities .xprices th,
.formx .xquantities .xprices td {
    vertical-align: top;
    word-break: keep-all;
    text-align: left;
    border: none;
    padding: 5pt;
}

.formx .xquantities .xprices tr:first-child {
  border-bottom: 1px solid #ced4da;
}

.formx .xquantities .xprices tr.selected {
    background-color: bisque;
}

.formx .xquantities .xprices th {
}

.formx .xquantities .xprices td {
    border-bottom: 1px solid #e0e0e0;
}

.formx .xquantities .xprices .prices-cont {
    display: grid;    
}

.formx .xquantities .xprices .prices-cont .ea-cur {
   font-weight: 600; 
}

.formx .xquantities .xprices .prices-cont .ea-old {
    text-decoration: line-through;
}

.formx .xquantities .xprices .prices-cont .ea-p {
    color: #a20b0b;
    font-weight: 600;
    font-size: 7pt;
}

