/* Only Novo Orçamento on mobile screens; original print/PDF styles are preserved. */
@media screen and (max-width:760px){
  #quote.mobileQuoteFlow{padding-bottom:12px;scroll-margin-top:84px;}
  #quote.mobileQuoteFlow .mqInactive{display:none!important;}
  #quote.mobileQuoteFlow>.pagehead{margin-bottom:14px;}
  #quote.mobileQuoteFlow>.pagehead p,
  #quote.mobileQuoteFlow>.pagehead .backBtn,
  #quote.mobileQuoteFlow .quotegrid>div>.panel>h2,
  #quote.mobileQuoteFlow .mqProductPanel>.studioHead,
  #quote.mobileQuoteFlow [data-mq-stage="3"]>.sub,
  #quote.mobileQuoteFlow .screenSave{display:none!important;}
  #quote.mobileQuoteFlow .quotegrid{display:block!important;}
  #quote.mobileQuoteFlow .mqHeader{margin-bottom:18px;}
  #quote.mobileQuoteFlow .mqStepCaption{font-size:12px;color:#58718a;margin-bottom:12px;}
  #quote.mobileQuoteFlow .mqProgress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:0 0 20px;padding:0;}
  #quote.mobileQuoteFlow .mqProgress li{min-width:0;}
  #quote.mobileQuoteFlow .mqStepButton{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:3px 0!important;border:0;background:transparent;box-shadow:none;min-height:58px;}
  #quote.mobileQuoteFlow .mqStepButton>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e7eef6;color:#526b84;font-size:13px;font-weight:800;}
  #quote.mobileQuoteFlow .mqStepButton>small{font-size:10px;line-height:1.2;color:#667e95;font-weight:650;}
  #quote.mobileQuoteFlow .mqStepButton[aria-current="step"]>span{background:#087ee7;color:white;box-shadow:0 0 0 4px #dceeff;}
  #quote.mobileQuoteFlow .mqStepButton[aria-current="step"]>small{color:#075ca3;font-weight:800;}
  #quote.mobileQuoteFlow .mqStepButton.mqDone>span{background:#dcf6e8;color:#087a52;}
  #quote.mobileQuoteFlow .mqStepButton[aria-disabled="true"]{cursor:default;}
  #quote.mobileQuoteFlow .mqStageTitle{font-size:22px!important;line-height:1.25;margin:0 0 6px;color:#073b67;}
  #quote.mobileQuoteFlow .mqStageHint{font-size:13px;line-height:1.45;margin:0;color:#60758d;}
  #quote.mobileQuoteFlow .mqError{padding:12px;border:1px solid #f1c4bd;border-radius:10px;background:#fff4f1;color:#aa3020;font-size:13px;}
  #quote.mobileQuoteFlow .mqError[hidden]{display:none!important;}
  #quote.mobileQuoteFlow .panel{padding:18px!important;}
  #quote.mobileQuoteFlow .formgrid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;}
  #quote.mobileQuoteFlow .formgrid>label{grid-column:1/-1!important;}
  #quote.mobileQuoteFlow .mqCompanyField,
  #quote.mobileQuoteFlow .mqClientDocField,
  #quote.mobileQuoteFlow .setupAction.mqClientSelected{display:none!important;}
  #quote.mobileQuoteFlow .mqRegisterClient{display:block;margin-top:14px;font-size:14px;font-weight:700;}
  #quote.mobileQuoteFlow .mqRegisterClient[hidden]{display:none!important;}
  #quote.mobileQuoteFlow .mqSavedRegistration,
  #quote.mobileQuoteFlow .mqSavedRegistration:hover,
  #quote.mobileQuoteFlow .mqSavedRegistration:active{background:#edf0f3!important;background-image:none!important;border-color:#cbd5e1!important;color:#6b7280!important;box-shadow:none!important;transform:none!important;cursor:not-allowed;user-select:none;}
  #quote.mobileQuoteFlow .mqSavedRegistration .setupActionIcon{background:#f7f8fa!important;color:#94a3b8!important;}

  #quote.mobileQuoteFlow #replaceOrderBtn,
  #quote.mobileQuoteFlow #cancelDocumentBtn,
  #quote.mobileQuoteFlow .receiptPaymentActions button{font-size:14px!important;line-height:1.4;white-space:normal;}
  #quote.mobileQuoteFlow #replaceOrderBtn::first-letter,
  #quote.mobileQuoteFlow #cancelDocumentBtn::first-letter,
  #quote.mobileQuoteFlow .receiptPaymentActions button::first-letter{font-size:inherit;}
  #quote.mobileQuoteFlow .mqReceipts{grid-column:1/-1;padding:16px;border:1px solid #c9e1f3;border-radius:12px;background:#f2f8fd;margin:14px 0;}
  #quote.mobileQuoteFlow .preview:not(.pdfExportClone)>.mqReceipts{display:grid!important;}
  #quote.mobileQuoteFlow .mqReceiptTitle{grid-column:1/-1;margin:0;color:#073b67;font-size:16px;}
  #quote.mobileQuoteFlow .mqReceipts .receiptControls{grid-column:1/-1;min-width:0;}
  #quote.mobileQuoteFlow .mqOptions{margin:16px 0 4px;border:1px solid #d9e6f0;border-radius:12px;background:#f8fbfe;}
  #quote.mobileQuoteFlow .mqOptions>summary{padding:14px;color:#075eaa;font-size:14px;font-weight:750;cursor:pointer;}
  #quote.mobileQuoteFlow .mqOptions>summary span{display:block;font-size:11px;font-weight:400;color:#6b8197;margin:4px 0 0 15px;line-height:1.4;}
  #quote.mobileQuoteFlow .mqOptionsBody{padding:0 14px 14px;min-width:0;}
  #quote.mobileQuoteFlow .mqOptionsBody>label{min-width:0;}
  #quote.mobileQuoteFlow .mqOptionsBody>.studioNotes{margin-top:0;}
  #quote.mobileQuoteFlow .studioTop{display:block!important;margin:0!important;}
  #quote.mobileQuoteFlow .studioProductRow{display:block!important;margin:16px 0!important;}
  #quote.mobileQuoteFlow .studioProductCard{display:grid!important;grid-template-columns:100px minmax(0,1fr)!important;padding:12px!important;gap:12px!important;align-items:center;}
  #quote.mobileQuoteFlow .quoteProductImageBox{width:100px!important;height:116px!important;min-height:116px!important;background:white;border:1px solid #d4e5f1;}
  #quote.mobileQuoteFlow .quoteProductImageBox img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;}
  #quote.mobileQuoteFlow .selectedProductMeta{min-width:0;gap:8px;}
  #quote.mobileQuoteFlow #studioProductName{font-size:15px!important;line-height:1.4;color:#073b67;overflow-wrap:anywhere;}
  #quote.mobileQuoteFlow .mqUnitPrice{font-size:12px;font-weight:800;line-height:1.4;color:#078345;}
  #quote.mobileQuoteFlow .selectedProductMeta #studioProductDescription{font-size:12px;line-height:1.4;margin:0;color:#60758d;}
  #quote.mobileQuoteFlow .finishingCombobox,
  #quote.mobileQuoteFlow .finishingOptions,
  #quote.mobileQuoteFlow .paymentSelectControl,
  #quote.mobileQuoteFlow .paymentSelectOptions{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;}
  #quote.mobileQuoteFlow .finishingOptions,
  #quote.mobileQuoteFlow .paymentSelectOptions{touch-action:pan-y;}
  #quote.mobileQuoteFlow .studioMeasureQuantityRow{display:grid!important;grid-template-columns:1fr!important;margin:0;gap:16px!important;}
  #quote.mobileQuoteFlow[data-mq-hide-dimensions="true"] .measurePair,
  #quote.mobileQuoteFlow[data-mq-hide-dimensions="true"] .studioMeasures>label:first-child{display:none!important;}
  #quote.mobileQuoteFlow[data-mq-hide-dimensions="true"]:not([data-mq-product-mode="linear"]) .studioMeasures{display:none!important;}
  #quote.mobileQuoteFlow .measurePair{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)!important;}
  #quote.mobileQuoteFlow .measurePair input{font-size:19px!important;font-weight:700;text-align:center;}
  #quote.mobileQuoteFlow .studioQty{display:block;}
  #quote.mobileQuoteFlow .studioQty>small{font-size:13px;margin-top:8px;text-align:left;}
  #quote.mobileQuoteFlow .mqPickedProduct{padding:12px;border-radius:10px;background:#edf7ff;color:#075eaa;font-size:13px;line-height:1.5;font-weight:650;margin-bottom:16px;}
  #quote.mobileQuoteFlow .studioFinancial{display:none!important;}
  #quote.mobileQuoteFlow .studioFinancial .sectionMiniHead{display:none;}
  #quote.mobileQuoteFlow .studioChoices{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;margin-top:18px;}
  #quote.mobileQuoteFlow .inlinePricing{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
  #quote.mobileQuoteFlow #addItemButton{margin-top:18px!important;}
  #quote.mobileQuoteFlow .addedTitle{font-size:14px;gap:8px;}
  #quote.mobileQuoteFlow .itemrow{gap:7px;font-size:12px;}
  #quote.mobileQuoteFlow .itemrow .itemMain{min-width:0;}
  #quote.mobileQuoteFlow .itemrow .itemThumb{width:36px;height:42px;object-fit:contain;}
  #quote.mobileQuoteFlow .itemEditButton{font-size:11px;padding:7px;}
  #quote.mobileQuoteFlow .mqReviewTools{display:flex;gap:8px;margin-bottom:14px;}
  #quote.mobileQuoteFlow .mqReviewTools button{flex:1;padding:11px 8px;font-size:12px;background:#eaf5ff;color:#075eaa;border:1px solid #c9e1f3;border-radius:10px;}
  #quote.mobileQuoteFlow .mqReviewTools button[hidden]{display:none!important;}
  #quote.mobileQuoteFlow .summary .preview{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
  #quote.mobileQuoteFlow .summary .preview>.mqOptions{display:block;}
  #quote.mobileQuoteFlow .mqDock{position:static;margin-top:18px;border:1px solid #d4e3ef;background:#fff;border-radius:15px;padding:12px;box-shadow:0 3px 16px #073b670a;}
  #quote.mobileQuoteFlow .mqCompact{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 3px 10px;font-size:12px;color:#60758d;}
  #quote.mobileQuoteFlow .mqCompact strong{font-size:19px;color:#078345;}
  #quote.mobileQuoteFlow .mqNavigation{display:flex;gap:10px;}
  #quote.mobileQuoteFlow .mqNavigation button{min-height:48px!important;padding:12px!important;border-radius:10px;flex:1;border:1px solid #c9dfef;background:#f2f8fd;font-size:14px!important;font-weight:750;color:#075eaa;}
  #quote.mobileQuoteFlow .mqNavigation .mqContinue{background:#087ee7;color:#fff;border-color:#087ee7;}
  #quote.mobileQuoteFlow .mqNavigation button[hidden],#quote.mobileQuoteFlow .mqCompact[hidden]{display:none!important;}
  #quote.mobileQuoteFlow .mqOptionsBody .documentShareActions{width:100%;grid-template-columns:1fr!important;}
  #quote.mobileQuoteFlow .mqPdfPrimary{display:grid;grid-template-columns:1fr;margin:10px 0 14px;}
  #quote.mobileQuoteFlow .mqPdfPrimary button{min-height:48px;font-size:15px;font-weight:750;}
  #quote.mobileQuoteFlow .mqProductScreen[hidden]{display:none!important;}
  #quote.mobileQuoteFlow[data-mq-product-part="3"] .mqProductServices>:not(.addedTitle):not(#items){display:none!important;}
  #quote.mobileQuoteFlow[data-mq-product-part="3"] .mqProductServices .addedTitle{margin-top:0;}
  #quote.mobileQuoteFlow[data-mq-product-part="3"] #items .itemMain{cursor:default;user-select:none;-webkit-user-select:none;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"]>.pagehead{display:none!important;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqHeader{margin-bottom:12px;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqStepCaption{margin-bottom:6px;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqProgress{margin-bottom:12px;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqStepButton{min-height:50px;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqStepButton>span{width:28px;height:28px;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqStageTitle{font-size:20px!important;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqStageHint{font-size:12px;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqProductPanel{padding:14px!important;}
  #quote.mobileQuoteFlow[data-mq-current="2"][data-mq-product-part="1"] .mqDock{margin-top:12px;padding:10px;}
  #quote.mobileQuoteFlow .mqProductBasics .studioProductRow{margin:12px 0!important;}
  #quote.mobileQuoteFlow .mqProductBasics .studioProductCard{position:relative;grid-template-columns:76px minmax(0,1fr)!important;padding:8px!important;gap:8px!important;}
  #quote.mobileQuoteFlow .mqProductBasics .quoteProductImageBox{width:76px!important;height:84px!important;min-height:84px!important;}
  #quote.mobileQuoteFlow .mqProductBasics .selectedProductMeta{gap:5px;}
  #quote.mobileQuoteFlow .mqProductBasics #studioProductName{padding-right:28px;font-size:14px!important;}
  #quote.mobileQuoteFlow .mqProductBasics .orcupTipQuote{position:absolute;top:8px;right:8px;margin:0;}
  #quote.mobileQuoteFlow .mqProductBasics .studioMeasureQuantityRow{gap:12px!important;}
  #quote.mobileQuoteFlow .mqProductBasics #orcupTipQuote{display:contents;position:static;padding-bottom:0;}
  #quote.mobileQuoteFlow .mqProductBasics #orcupTipQuote .tipIcon{position:absolute;top:8px;right:8px;}
  #quote.mobileQuoteFlow .mqProductBasics #orcupTipQuote .tipBubble{
    left:50%;right:auto;top:42px;transform:translateX(-50%);
    width:min(340px,calc(100vw - 48px));box-sizing:border-box;
    white-space:normal;overflow-wrap:anywhere;word-break:normal;
  }
  #quote.mobileQuoteFlow .mqProductBasics .qtyInput input{padding-right:10px;}
  #quote.mobileQuoteFlow .mqProductBasics .qtyInput span{position:static;display:block;transform:none;margin-top:6px;text-align:center;}
  #quote.mobileQuoteFlow .mqProductServices .studioChoices{margin-top:0;}
  #quote.mobileQuoteFlow .mqProductServices .mqPickedProduct{margin-bottom:16px;}
}
@media screen and (min-width:360px) and (max-width:760px){
  #quote.mobileQuoteFlow .mqProductBasics .studioMeasureQuantityRow{grid-template-columns:minmax(0,1fr) 96px!important;align-items:start;}
  #quote.mobileQuoteFlow[data-mq-hide-dimensions="true"]:not([data-mq-product-mode="linear"]) .mqProductBasics .studioMeasureQuantityRow{grid-template-columns:minmax(0,1fr)!important;}
}
@media screen and (max-width:350px){
  #quote.mobileQuoteFlow .studioProductCard{grid-template-columns:82px minmax(0,1fr)!important;gap:9px!important;}
  #quote.mobileQuoteFlow .quoteProductImageBox{width:82px!important;height:102px!important;min-height:102px!important;}
  #quote.mobileQuoteFlow .panel{padding:14px!important;}
  #quote.mobileQuoteFlow .mqStepButton>small{font-size:9px;}
}
@media print{
  #quote [data-mq-ui]{display:none!important;}
}
.pdfExportClone [data-mq-ui]{display:none!important;}
