
.dialog_content.orcamento {
    width: 97vw;
    max-height: 85vh;
    overflow-y: auto !important;
}

div#div_doc_pedido {
    /*width: 97%;
    height: 72.5vh;*/
    width: 93vw;
    height: 130vw; /*Proporção do A4*/
    overflow: auto;
    border-width: 2px;
}

div#folha_orcamento {
    width: 7.668in;
    min-height: 11.093in;
    padding: 0.3in;
    border: none !important;
    transform: scale(1);
    transform-origin: top left;
}

div#folha-declaracao {
    width: 7.668in;
    min-height: 11.093in;
    padding: 0.3in;
    border: none !important;
    transform: scale(1);
    transform-origin: top left;
}

div#folha-recibo  {
    width: 7.668in;
    min-height: 11.093in;
    padding: 0.3in;
    border: none !important;
    transform: scale(1);
    transform-origin: top left;
}

table#table_orcamento {
    width: 98%;
    margin-left: 1%;
}

h1#titulo_orcamento {
    font-size: 28px;
}

table#table_orcamento img#img_logo {
    height: 1.2in !important;
    max-height: 3vw;
}

td.orcamento {
    height: 0.3in;
}

img.image-item-orcamento {
    height: 2vh !important;
    width: 2vh !important;
    margin: 0.5vh 2vw 0.5vh 1vw !important;
}

img.image-item-orcamento+p.orcamento {
    height: 0.6in !important;
    margin: 5px 0 !important;
    font-size: inherit;
}

label#orcamento-image-filter {
    font-size: 12px;
    line-height: 20px;
    margin-top: 10px !important;
}

div.image-switcher-orcamento {
    width: 60px !important;
    height: 25px !important;
    margin-top: 8px !important;
}

div.dialog_content.orcamento .dx-switch-container {
    height: 25px !important;
}

button#b_imprime_orcamento {
    display: none !important;
    font-size: 12px !important;
    border-radius: 5px !important;
    margin-left: 10px !important;
}

button#b_fecha_orcamento {
    font-size: 12px !important;
    border-radius: 5px !important;
    margin-left: 10px !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}

div#btn-share-orcamento .dx-button-content {
    padding: 3px 0;
}

div#btn-share-orcamento {
    float: right;
    margin-top: 5px !important;
}

div#btn-download-orcamento .dx-button-content {
    padding: 3px 0;
}

div#btn-download-orcamento {
    float: right;
    margin-right: 10px;
    margin-top: 5px !important;
}

label.field_label.tipo-doc-pedido-radio {
    padding-left: 0 !important;
}

fieldset#rb_tipo_doc_pedido {
    padding: 5px 15px;
}

div.dialog_content.orcamento fieldset.radiogroup legend label.field_label {
    padding-left: 5px !important;
}

div.dialog_content.orcamento fieldset#rb_tipo_doc_pedido li.inline {
    margin-right: 10px;
}


.orcamento {
    font-size: 14px;
}

.orcamento.destaque {
    font-size: 22px;
}

td.orcamento.grid-cell label.orcamento {
    font-size: 14px;
}

div.dialog_content.orcamento > div.row {
    height: fit-content !important;
}

td.orcamento.grid-header label.orcamento {
    font-size: 14px;
    font-weight: normal;
}

td.orcamento.mastercol1 {
    width: 17.78%;
}
td.orcamento.mastercol2 {
    width: 3.08%;
}
td.orcamento.mastercol3 {
    width: 11.74%;
}
td.orcamento.mastercol4 {
    width: 18.02%;
}
td.orcamento.mastercol5 {
    width: 16.02%;
}
td.orcamento.mastercol6 {
    width: 13.42%;
}
td.orcamento.mastercol7 {
    width: 6.62%;
}
td.orcamento.mastercol8 {
    width: 13.24%;
}

label#label_itens_pedido {
    font-size: 22px;
    padding: 0.05in 0;
}

label#label_observacao_cliente_header {
    font-size: 22px;
    padding: 0.05in 0;
}

tr.orcamento.destaque label.orcamento.destaque {
    font-size: 14px;
}

pre.orcamento {
    width: 7.4in;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: visible;
}

img.image-item-orcamento {
    width: 0.5in !important;
    height: 0.5in !important;
    margin: 5px !important;
}

tr.orcamento.grid-row-odd td, tr.orcamento.grid-row-even td, td.orcamento.grid-header{
    padding: 0 5px;
}

textarea#input_txt_solicitacao_frete {
    font-size: 28px !important;
}

pre#pre_input_txt_solicitacao_frete {
    width: 95%;
}

label#label_atencao {
    padding: 0.1in;
    line-height: 0.25in !important;
}

label.orcamento.etiqueta {
    font-size: 18px;
    padding: 0.05in;
}

div#folha-declaracao td.orcamento.declaracao {
    height: 0.15in;
}

tr.orcamento.mestre td {
    height: 0;
}

div#folha-declaracao td.orcamento.declaracao label.orcamento.h2 {
    font-size: 12px;
}

div#folha-declaracao td.orcamento.declaracao label.orcamento.note.assinatura {
    font-size: 10px !important;
}

div#folha-declaracao td.orcamento.declaracao label.orcamento.note.assinatura-label {
    font-size: 12px !important;
}

h1#titulo_declaracao {
    font-size: 14px;
}

div#div-container-param-recibo {
    width: 100%;
}

p.recibo-param-tip {
    font-size: 12px;
    padding: 10px;
    text-indent: 10px;
}

div#div-param-recibo {
    padding: 10px;
}

div#div-tabs-recibo div.dx-tab {
    width: fit-content;
    font-size: 14px;
}

div#form-param-recibo label.dx-field-item-label-location-top {
    margin-bottom: 5px;
}

div#form-param-recibo div.dx-radiobutton .dx-item-content {
    font-size: 13px;
}

div#form-param-recibo input, div#form-param-recibo textarea {
    font-size: 13px !important;
}

div#div-historico-recibo {
    padding: 0;
   /* width: fit-content;*/
}

div#list-historico-recibo td.dx-command-edit {
    min-width: 30px;
    width: 30px;
}

div#list-historico-recibo td.dx-command-adaptive {
    min-width: 20px;
    width: 20px;
}

div#btn-abre-recibo-historico {
    float: none;
    margin: 10px;
}

button#b_fecha_recibo {
    font-size: 12px !important;
    border-radius: 5px !important;
    margin-left: 10px !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
    margin-right: 0 !important;
}

h1#titulo-recibo {
    padding-bottom: 0.15in;
    font-size: 28px;
}

p.paragrafo-recibo {
    font-size: 18px;
    text-indent: 0.15in;
    padding: 0.15in 0.15in 0;
}

p.paragrafo-recibo li {
    font-size: 16px;
}

div#assinatura-recibo {
    font-size: 18px;
    margin: 0.7in auto 0;
}

div#list-historico-recibo {
    height: 100% !important;
}

div#btn-cancela-popup-recibo {
    float: right;
    font-size: 12px !important;
    border-radius: 5px !important;
    margin-left: 10px !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    padding: 0;
}

div#btn-imprime-popup-recibo {

    display: none;
    font-size: 12px !important;
    border-radius: 5px !important;
    margin-left: 10px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

div#btn-cancela-popup-recibo .dx-button-content {
    padding: 5px;
}

div#botoes-popup-recibo button#b_fecha_recibo {
    margin-right: 10px !important;
    float: left !important;
}

div#div-popup-recibo {
    width: 89vw;
    height: 124.41vw;
}

  .orcamento-header-flex {
    align-items: flex-start; 
  }

  .orcamento-header-col.cliente {
    text-align: left; /* Alinha o cliente à esquerda no mobile */
  }

/* ======================================================= */
/* === Font size overrides (match desktop specificity) ==== */
/* ======================================================= */

#table_orcamento td.orcamento,
#table_orcamento label.orcamento,
#table_orcamento p.orcamento,
#table_orcamento pre.orcamento,
#table_orcamento span.orcamento,
#table_ordem_servico td.orcamento,
#table_ordem_servico label.orcamento,
#table_ordem_servico p.orcamento,
#table_ordem_servico pre.orcamento,
#table_ordem_servico span.orcamento,
#orcamento-header label.orcamento,
#orcamento-header p.orcamento,
#orcamento-header span.orcamento {
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

#table_orcamento td.orcamento.grid-header,
#table_ordem_servico td.orcamento.grid-header {
    font-size: 14px;
}

#table_orcamento div.config_tab_section.orcamento label,
#table_ordem_servico div.config_tab_section.orcamento label {
    font-size: 22px;
}

#table_ordem_servico .os-product-detail-header label {
    font-size: 16px;
}

/* ======================================================= */
/* === OS Toolbar responsive ============================= */
/* ======================================================= */

.os-toolbar {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 5px 10px;
    min-height: auto;
}

.os-toolbar-label {
    font-size: 14px !important;
}

.os-toolbar-select {
    max-width: none;
    flex: 1;
    font-size: 14px !important;
    padding: 4px 6px;
}

/* Switch + buttons on the same row */
.os-toolbar-switches {
    width: auto;
    flex-direction: row;
}

.os-toolbar-switch-row {
    gap: 6px;
}

.os-toolbar-switch-row > label {
    min-width: auto;
    text-align: left;
    font-size: 14px !important;
}

.os-toolbar-buttons {
    width: auto;
    margin-left: auto;
    gap: 6px;
}

button#b_imprime_orcamento {
    display: none !important;
}

button#b_fecha_orcamento {
    font-size: 12px !important;
    border-radius: 5px !important;
    margin: 0 !important;
    padding: 4px 10px !important;
}

/* Fieldset-like layout for dual switches (OS mode) */
.os-switches-fieldset {
    position: relative;
    border: 2px solid #148C87;
    border-radius: 5px;
    padding: 10px 10px 6px;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.os-switches-fieldset::before {
    content: "Mostrar fotos";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-size: 14px;
    color: #000;
    font-weight: bold;
    line-height: 1;
}

.os-switches-fieldset .os-toolbar-switch-row {
    flex: 1;
    justify-content: center;
}

.os-switches-fieldset .os-toolbar-switch-row > label {
    font-size: 14px !important;
    min-width: auto;
}

.os-switches-fieldset .os-toolbar-switch-row > div {
    min-width: 60px;
}

.os-switches-fieldset .image-switcher-orcamento,
.os-switches-fieldset .image-switcher-material-orcamento {
    width: 60px !important;
    height: 25px !important;
}

.os-switches-fieldset .dx-switch-container {
    height: 25px !important;
}

/* ======================================================= */
/* === OS Document mobile styling ======================== */
/* ======================================================= */

div#folha_ordem_servico {
    width: 7.668in;
    min-height: 11.093in;
    padding: 0.3in;
    border: none !important;
    transform: scale(1);
    transform-origin: top left;
}

table#table_ordem_servico {
    width: 98%;
    margin-left: 1%;
}

.os-header-compact {
    padding: 4px 0;
}

.os-title {
    font-size: 22px;
}

.os-info-line {
    font-size: 14px;
}

.os-header-nome-empresa {
    font-size: 16px;
}

img.os-logo {
    max-height: 60px;
}