/* Estrutura compartilhada: a janela de cada tela acompanha o viewport real,
   inclusive quando o Telerik conservou as dimensoes anteriores ao resize. */
@media screen {
    body.yc-shell { --yc-shell-left: 53px; --yc-shell-content-top: 92px; }
    html:root body.yc-shell #menu {
        box-sizing: border-box; width: var(--yc-shell-width, 100vw); max-width: 100%;
    }
    html:root body.yc-shell .screen-tabs-bar {
        box-sizing: border-box; left: var(--yc-shell-left) !important; right: auto;
        width: calc(var(--yc-shell-width, 100vw) - var(--yc-shell-left));
        top: var(--yc-shell-menu-height, 56px);
    }
    html:root body.yc-shell #RestrictionZone,
    html:root body.yc-shell .RadWindow.rwMaximizedWindow[id^="RadWindowWrapper_windowsMenu"] {
        box-sizing: border-box; position: fixed !important;
        left: var(--yc-shell-left) !important; top: var(--yc-shell-content-top) !important;
        width: calc(var(--yc-shell-width, 100vw) - var(--yc-shell-left)) !important;
        height: calc(var(--yc-shell-height, 100vh) - var(--yc-shell-content-top)) !important;
        height: calc(var(--yc-shell-height, 100dvh) - var(--yc-shell-content-top)) !important;
        min-width: 0; min-height: 0; margin: 0;
    }
    html:root body.yc-shell .RadWindow.rwMaximizedWindow[id^="RadWindowWrapper_windowsMenu"] > .rwContent {
        box-sizing: border-box; width: 100% !important; height: 100% !important; min-width: 0;
    }
}

/* Interfaces do manifesto: somente apresentacao em tela. Nenhuma regra de
   impressao, selecao de dados ou comando de negocio e substituido aqui. */
@media screen {
    html:root body.yc-responsive-page :is(.row > [class*="col-"],.RadPageView,.RadMultiPage,.panel-content,.card-body,fieldset) { min-width: 0; }
    html:root body.yc-responsive-page :is(.yc-form-table,.yc-native-table):focus-visible { outline: 2px solid var(--yc-link, #1976d2); outline-offset: 2px; }
}

/* No celular o gesto iniciado no grid fica nele. Com mouse ou trackpad,
   o navegador continua a rolagem na pagina ao atingir uma borda dos dados. */
@media screen and (pointer: coarse) and (hover: none) and (max-width: 767px),
       screen and (pointer: coarse) and (hover: none) and (orientation: landscape) and (max-height: 575px) {
    html:root body.yc-responsive-page .RadGrid .rgDataDiv {
        overscroll-behavior: contain;
        touch-action: pan-x pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 767px) {
    html:root body.yc-responsive-page { --yc-control-height: 44px; --yc-pager-size: 44px; }
    html:root body.yc-responsive-page,
    html:root body.yc-responsive-page > form {
        box-sizing: border-box; width: auto; min-width: 0 !important; max-width: 100% !important;
    }
    html:root body.yc-responsive-page :is(main,.container,.container-fluid,.panel-content,.card-body,.RadAjaxPanel,.RadMultiPage,.RadPageView,.yc-fluid-container) {
        box-sizing: border-box; min-width: 0 !important; max-width: 100% !important;
    }
    html:root body.yc-responsive-page .yc-fluid-container { width: 100% !important; }
    html:root body.yc-responsive-page .row.yc-contained-row { margin-left: 0; margin-right: 0; }
    html:root body.yc-responsive-page :is(.panel-content,.card-body,.yc-standard-main,.padrao-main,.yc-managed-content) { overflow-wrap: anywhere; }
    html:root body.yc-responsive-page :is(.row > [class*="col-"],fieldset) { box-sizing: border-box; max-width: 100%; }
    html:root body.yc-responsive-page :is(.yc-page-title,.titleMenu,.navbar-brand,.EstiloTitulo) { white-space: normal; overflow-wrap: anywhere; }
    html:root body.yc-responsive-page :is(.RadComboBox,.RadInput,.RadPicker,.RadSearchBox,.RadAutoCompleteBox,.RadDropDownList,.RadListBox,.RadProgressArea,.RadUpload) {
        box-sizing: border-box; min-width: 0; max-width: 100% !important;
    }
    html:root body.yc-responsive-page :is(.riTextBox,.rcbInput,.racInput,.rsbInput,.form-control,textarea,select) { font-size: 16px !important; }
    html:root body.yc-responsive-page :is(textarea,.form-control) { box-sizing: border-box; max-width: 100%; }
    html:root body.yc-responsive-page :is(.RadButton.rbButton,.RadButton.rbLinkButton,button.btn,input.btn,.yc-toolbar-action,.link-menu) {
        box-sizing: border-box; min-height: 44px; max-width: 100%; white-space: normal;
    }
    html:root body.yc-responsive-page :is(.yc-actions,.yc-view-toolbar,.yc-filter-actions,.titulo-acoes-linha,.modal-footer) { flex-wrap: wrap; gap: 8px; }
    html:root body.yc-responsive-page :is(.alert,[role="alert"],[role="status"],.validation-summary-errors,.EstiloLabelMensagem,.field-validation-error) {
        max-width: 100%; white-space: normal; overflow-wrap: anywhere;
    }
    /* Conserva a geometria das tabelas dos controles e sincronizacao nativa. */
    html:root body.yc-responsive-page :is(.RadGrid,.RadTreeList,.RadPivotGrid,.RadScheduler,.RadSplitter,.RadEditor) {
        box-sizing: border-box; min-width: 0; max-width: 100% !important; overflow-x: auto;
        overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    }
    html:root body.yc-responsive-page .RadGrid { width: 100% !important; }
    /* Nao herdar a quebra de palavras dos paineis: colunas financeiras mantem
       a largura declarada no controle e rolam localmente, sem espremer letras. */
    html:root body.yc-responsive-page .RadGrid { overflow-wrap: normal; word-break: normal; }
    html:root body.yc-responsive-page .RadGrid table.yc-grid-column-widths {
        min-width: var(--yc-grid-columns-width);
    }
    html:root body.yc-responsive-page .RadGrid table.yc-grid-column-widths > tbody > :is(.rgRow,.rgAltRow) > td:not([colspan]) {
        white-space: nowrap;
    }
    /* A soma pode ser maior que cada valor individual. Ela participa da
       largura natural da coluna, sem quebrar/cortar os ultimos digitos. */
    html:root body.yc-responsive-page .RadGrid table.yc-grid-column-widths > :is(tbody,tfoot) > .rgFooter > td {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    /* O corpo cresce pelo conteudo; so as tabelas separadas do cabecalho e
       rodape copiam a geometria resultante. Nunca fixar a largura dos dados. */
    html:root body.yc-responsive-page .RadGrid table.yc-grid-natural-table {
        table-layout: auto !important;
        width: max-content !important;
    }
    html:root body.yc-responsive-page .RadGrid table.yc-grid-natural-table > colgroup > col {
        width: var(--yc-grid-natural-column) !important;
    }
    html:root body.yc-responsive-page .RadGrid table.yc-grid-synced-table {
        table-layout: fixed;
        width: var(--yc-grid-synced-width) !important;
        min-width: var(--yc-grid-synced-width);
    }
    html:root body.yc-responsive-page .RadGrid table.yc-grid-synced-table > colgroup > col {
        width: var(--yc-grid-synced-column) !important;
    }
    html:root body.yc-responsive-page :is(.RadGrid .rgDataDiv,.RadEditor .reToolBarWrapper) { max-width: 100%; overflow-x: auto; }
    html:root body.yc-responsive-page .RadPivotGrid > table { min-width: 540px; }
    html:root body.yc-responsive-page .RadScheduler > :is(.rsHeader,.rsContent,.rsFooter) { min-width: 700px; }
    html:root body.yc-responsive-page .RadSplitter > table { min-width: 500px; }
    html:root body.yc-responsive-page .RadListBox .rlbList { overflow-wrap: anywhere; }
    html:root body.yc-responsive-page .RadHtmlChart { min-width: 0; max-width: 100%; }
    html:root body.yc-responsive-page .RadBarcode { max-width: 100%; }
    html:root body.yc-responsive-page :is(.RadTabStrip:not(.taskbar),.RadTabStrip:not(.taskbar) .rtsLevel1) {
        max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    /* Tabelas HTML de dados rolam localmente; nao escondemos o overflow do body. */
    html:root body.yc-responsive-page table.yc-native-table {
        display: block; box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 100%;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    html:root body.yc-responsive-page table.yc-form-table,
    html:root body.yc-responsive-page table.yc-form-table > :is(tbody,thead,tfoot),
    html:root body.yc-responsive-page table.yc-form-table > :is(tbody,thead,tfoot) > tr,
    html:root body.yc-responsive-page table.yc-form-table > :is(tbody,thead,tfoot) > tr > td {
        display: block; box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 100%; height: auto;
    }
    html:root body.yc-responsive-page table.yc-form-table > tbody > tr > td { white-space: normal; padding-block: 6px; }
    /* Dialogos conservam foco, fechar, arraste e callbacks dos componentes. */
    html:root body.yc-responsive-page .RadWindow:not(.rwMaximizedWindow) {
        box-sizing: border-box; max-width: calc(100vw - 16px) !important; min-width: 0 !important;
        max-height: calc(100dvh - 16px); left: 8px !important;
    }
    html:root body.yc-responsive-page .RadWindow :is(.rwContent,.rwWindowContent) { max-width: 100%; overflow: auto; }
    html:root body.yc-responsive-page :is(.yc-legacy-modal,.RadNotification,.RadToolTip) { box-sizing: border-box; max-width: calc(100vw - 16px) !important; }
    html:root body.yc-responsive-page :is(.yc-legacy-modal,.RadToolTip) { max-height: calc(100dvh - 16px); overflow: auto; }
    html:root body.yc-responsive-page .RadNotification { right: 8px !important; }
}

@media screen and (max-width: 575px) {
    /* Colunas de formulario antigas (inclusive col-xs) passam a uma coluna. */
    html:root body.yc-responsive-page .row > [class*="col-"]:not(.RadGrid *,.RadScheduler *,.RadEditor *,[data-yc-responsive="preserve"] *) {
        width: 100% !important; max-width: 100% !important; flex: 0 0 100%;
    }
    /* Periodos em col-6 passam a duas linhas: reserva o espaco entre datas
       mesmo quando a tela remove as margens inferiores dos filtros. */
    html:root body.yc-responsive-page .row:has(> [class*="col-"] > .RadPicker):not(.RadGrid *,[data-yc-responsive="preserve"] *) {
        row-gap: 12px;
    }
    html:root body.yc-responsive-page .RadCalendarMultiView { box-sizing: border-box; max-width: 100%; min-width: 0; }
    html:root body.yc-responsive-page .RadCalendarMultiView > .rcMain > .rcMainTable,
    html:root body.yc-responsive-page .RadCalendarMultiView > .rcMain > .rcMainTable > tbody,
    html:root body.yc-responsive-page .RadCalendarMultiView > .rcMain > .rcMainTable > tbody > tr,
    html:root body.yc-responsive-page .RadCalendarMultiView .rcCalendar { display: block; box-sizing: border-box; width: 100%; }
    html:root body.yc-responsive-page .RadCalendarPopup { left: 8px !important; max-width: calc(100vw - 16px); }
    html:root body.yc-responsive-page .RadCalendarPopup .RadCalendar { max-width: 100%; }
}

/* Apresentacao mobile reutilizavel, habilitada por data-yc-mobile-grid="cards".
   Mantem os mesmos checkboxes, comandos, links de ordenacao e totais. */
@media screen and (max-width: 767px) {
    /* Recupera o espaco consumido pelos paineis e etapas ao redor dos cards. */
    html:root body.yc-responsive-page .caixa-main:has(.yc-grid-cards-ready) { padding-inline: 6px !important; }
    html:root body.yc-responsive-page .caixa-card:has(.yc-grid-cards-ready) { padding-inline: 6px; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal :is(.rwzContent,.rwzStep):has(.yc-grid-cards-ready) { padding-inline: 0; }
    html:root body.yc-responsive-page .RadWizard .row:has(> [class*="col-"] > .yc-grid-cards-ready) {
        margin-inline: 0;
    }
    html:root body.yc-responsive-page .RadWizard .row > [class*="col-"]:has(> .yc-grid-cards-ready) {
        padding-inline: 0;
    }
    html:root body.yc-responsive-page .RadGrid.yc-grid-cards-ready { height: auto !important; overflow: hidden; }
    html:root body.yc-responsive-page .yc-grid-cards-ready :is(.rgHeaderWrapper,.rgHeaderDiv,.rgFooterWrapper,.rgFooterDiv) {
        width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: visible !important;
    }
    html:root body.yc-responsive-page .yc-grid-cards-ready .rgDataDiv {
        width: 100% !important; height: auto !important;
        max-height: clamp(360px, 70vh, 680px) !important;
        max-height: clamp(360px, 70svh, 680px) !important;
        overflow-x: hidden !important; overflow-y: auto !important;
        background: var(--yc-bg, #f4f6fa);
    }
    html:root body.yc-responsive-page .yc-grid-cards-ready table.yc-grid-card-table {
        display: flex; flex-direction: column; box-sizing: border-box; width: 100% !important; min-width: 0 !important;
        max-width: 100%; height: auto !important; table-layout: auto !important;
    }
    html:root body.yc-responsive-page .yc-grid-card-table > colgroup { display: none; }
    html:root body.yc-responsive-page .yc-grid-card-table > :is(thead,tbody,tfoot) { display: block; width: 100%; }
    /* RadGrid tambem renderiza tfoot antes de tbody quando usa uma so tabela. */
    html:root body.yc-responsive-page .yc-grid-card-table > tfoot { order: 1; }
    html:root body.yc-responsive-page .yc-grid-card-table .rgCommandRow,
    html:root body.yc-responsive-page .yc-grid-card-table .rgCommandCell {
        display: block; box-sizing: border-box; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
    }
    html:root body.yc-responsive-page .yc-grid-card-table .rgCommandCell .row { margin-inline: 0; }
    html:root body.yc-responsive-page .yc-grid-card-table > tbody:has(> .yc-grid-card) {
        box-sizing: border-box; display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
        gap: 8px; padding: 6px;
    }
    html:root body.yc-responsive-page .yc-grid-card-table > tbody > tr:not(.yc-grid-card) { grid-column: 1 / -1; }
    html:root body.yc-responsive-page .yc-grid-card {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start; box-sizing: border-box; min-width: 0; height: auto !important;
        margin: 0; padding: 0; overflow: clip;
        /* O gesto iniciado em um campo pertence ao viewport vertical do grid. */
        touch-action: pan-y pinch-zoom;
        border: 1px solid var(--yc-border, #c8d3df); border-radius: 10px;
        background-color: var(--yc-surface, #fff); box-shadow: var(--yc-shadow);
    }
    html:root body.yc-responsive-page .yc-grid-card.rgSelectedRow {
        border-color: var(--yc-link, var(--yc-primary)); box-shadow: inset 3px 0 var(--yc-link, var(--yc-primary));
    }
    html:root body.yc-responsive-page .RadGrid.yc-grid-cards-ready .rgMasterTable .yc-grid-card > td {
        display: block; box-sizing: border-box; min-width: 0; width: auto !important; height: auto !important;
        padding: 7px 10px; border: 0; border-bottom: 1px solid var(--yc-grid-line, #dfe7f0); text-align: start !important;
        white-space: normal !important; overflow: visible; overflow-wrap: anywhere;
        font-size: 14px; line-height: 1.4;
    }
    html:root body.yc-responsive-page .RadGrid.yc-grid-cards-ready .rgMasterTable .yc-grid-card > td:is([data-yc-label="Loja" i],[data-yc-label="Filial" i],[data-yc-label="Valor" i]) {
        order: -1; align-self: stretch; padding-block: 10px; font-weight: 700; font-size: 16px;
        border-bottom-color: var(--yc-border, #c8d3df);
    }
    html:root body.yc-responsive-page .yc-grid-card > td:is([data-yc-label="Loja" i],[data-yc-label="Filial" i],[data-yc-label="Valor" i]):not([bgcolor],[style*="background" i]) {
        background-color: var(--yc-subtle, #eaf0f7);
    }
    html:root body.yc-responsive-page .RadGrid.yc-grid-cards-ready .rgMasterTable .yc-grid-card > td[data-yc-label="Valor" i] {
        color: var(--yc-link, var(--yc-primary)); text-align: end !important; font-variant-numeric: tabular-nums;
        font-size: 17px; font-weight: 700;
    }
    html:root body.yc-responsive-page .yc-grid-card > td:is([data-yc-label="Fornecedor" i],[data-yc-label="Descrição" i],[data-yc-label="Histórico" i],[data-yc-label="Observação" i],:has(.card-text:not(:empty))) {
        order: 1; grid-column: 1 / -1;
    }
    html:root body.yc-responsive-page .yc-grid-card > td > .container {
        padding: 0 !important; margin: 0 !important; width: auto;
    }
    html:root body.yc-responsive-page .yc-grid-card > td > .container > .d-flex {
        padding: 0 !important; gap: 6px; align-items: baseline;
    }
    html:root body.yc-responsive-page .yc-grid-card > td > .container > .d-flex > * { min-width: 0; }
    html:root body.yc-responsive-page .yc-grid-card .card-title { margin: 0; font: inherit; font-weight: 600; }
    html:root body.yc-responsive-page .yc-grid-card .card-text { margin: 2px 0 0; }
    html:root body.yc-responsive-page .RadGrid.yc-grid-cards-ready .rgMasterTable .yc-grid-card > td:is([data-yc-label="Selecionar"],[data-yc-label="Ações"]) {
        order: 2; display: flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 4px; border: 0;
    }
    html:root body.yc-responsive-page :is(.yc-grid-card,.yc-grid-card-total) > td[data-yc-label]::before {
        content: attr(data-yc-label); display: block; margin-bottom: 2px;
        color: var(--yc-muted, #526579); font-size: 12px; font-weight: 600; line-height: 1.4;
    }
    html:root body.yc-responsive-page .yc-grid-card > td > :is(span,div,a,label) {
        max-width: 100%; white-space: normal !important; overflow-wrap: anywhere;
    }
    html:root body.yc-responsive-page .yc-grid-card-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem),1fr)); height: auto !important; padding: 8px; gap: 8px; }
    html:root body.yc-responsive-page .yc-grid-card-total > td {
        display: block; min-width: 0; padding: 4px; height: auto !important;
        white-space: normal !important; overflow-wrap: anywhere; text-align: left !important; overflow: visible;
    }
    html:root body.yc-responsive-page .yc-grid-card-total > td[data-yc-empty="true"] { display: none; }
    html:root body.yc-responsive-page .yc-grid-card-heading {
        display: flex; box-sizing: border-box; max-width: 100%; align-items: center;
        gap: 6px; padding: 4px 6px; overflow-x: auto; background: var(--yc-subtle, #eaf0f7) !important;
    }
    html:root body.yc-responsive-page .yc-grid-card-heading > :is(th,td) { display: none; }
    html:root body.yc-responsive-page .yc-grid-card-heading > :is(th,td):has(a,button,input) {
        display: flex; flex: none; align-items: center; gap: 6px; padding: 4px 8px; min-height: 40px; white-space: nowrap;
        border: 1px solid var(--yc-border, #c8d3df); border-radius: 6px; background: var(--yc-surface, #fff) !important;
    }
    html:root body.yc-responsive-page .yc-grid-card-heading > .rgHeader a { color: var(--yc-link, #174b82) !important; }
    html:root body.yc-responsive-page .yc-grid-card-heading > .rgHeader input[type="checkbox"] { border: 1px solid var(--yc-control-border, #7b8c9f); }
    html:root body.yc-responsive-page .yc-grid-card-heading > :is(th,td):has(input[type="checkbox"])::after { content: 'Selecionar todos'; color: var(--yc-text, #20364a); font-size: 12px; }
}

/* Catalogo de referencia. Migrar os blocos conforme a necessidade de cada tela;
   estas regras ficam restritas ao Padrao.aspx durante a validacao do modelo. */
@media screen {
    html:root body.padrao-page { --yc-control-height: 44px; }
    html:root body.padrao-page :is(.padrao-main,.padrao-card,.padrao-section-title > div,.padrao-intro > div,.RadMultiPage,.RadPageView) { min-width: 0; max-width: 100%; }
    html:root body.padrao-page :is(.padrao-section-title,.padrao-intro) { flex-wrap: wrap; }
    html:root body.padrao-page :is(.padrao-component,.padrao-guide,.padrao-feedback,.padrao-validation,.padrao-help,.padrao-mini-card) { overflow-wrap: anywhere; }
    html:root body.padrao-page .padrao-mobile-nav { display: none; }
    html:root body.padrao-page :is(.padrao-help-button,.padrao-grid-action,.padrao-guide summary) { color: var(--yc-link, var(--padrao-primary)); }
    html:root body.padrao-page .padrao-menu-direita { max-width: 100%; }
    html:root body.padrao-page :is(.padrao-grid-wrap,.padrao-calendar-wrap,.padrao-control-scroll) {
        min-width: 0; max-width: 100%; overflow: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    }
    html:root body.padrao-page .padrao-grid-wrap > .RadGrid { width: 100% !important; min-width: 0; max-width: 100%; overflow: auto; }
    html:root body.padrao-page #gridExemplos { overflow: hidden; }
    /* Somente as colunas rolam: legenda e paginacao conservam a largura da tela. */
    html:root body.padrao-page #gridExemplos .rgMasterTable:not(.yc-grid-pager-table):not([id$="_Pager"]):not([id$="_TopPager"]) { min-width: 1040px; }
    html:root body.padrao-page #gridExemplos .rgDataDiv { overflow: auto !important; }
    html:root body.padrao-page #gridExemplos :is(.rgHeaderDiv,.rgFooterDiv) { overflow: hidden; }
    html:root body.padrao-page .padrao-transfer > .RadListBox { flex: 1 1 0; width: 0 !important; min-width: 0; }
    html:root body.padrao-page :is(.RadEditor,.RadHtmlChart,.RadSearchBox,.RadWizard) { box-sizing: border-box; max-width: 100%; min-width: 0; }
    html:root body.padrao-page .padrao-control-scroll > .RadSplitter { min-width: 500px; }
    html:root body.padrao-page .padrao-grid-wrap > .RadScheduler { min-width: 720px; }
    html:root body.padrao-page .padrao-grid-wrap > .RadPivotGrid { min-width: 540px; }
    html:root body.padrao-page .padrao-control-scroll > .RadTreeList { min-width: 460px; }
    html:root body.padrao-page :is(.padrao-grid-wrap,.padrao-calendar-wrap,.padrao-control-scroll):focus-visible { outline: 2px solid var(--yc-focus, #1976d2); outline-offset: 2px; }
}

@media screen and (max-width: 767px) {
    html:root body.padrao-page { font-size: 16px; }
    html:root body.padrao-page .padrao-main { padding: 12px 10px; }
    html:root body.padrao-page .padrao-main .row { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
    html:root body.padrao-page .padrao-card { padding: 14px; }
    html:root body.padrao-page .padrao-header { padding: 10px; gap: 10px; }
    html:root body.padrao-page .padrao-header h1 { flex: 1 1 0; font-size: 18px; }
    html:root body.padrao-page .padrao-header .link-retorno { flex-basis: 44px; width: 44px; height: 44px; }
    html:root body.padrao-page .padrao-intro h2 { font-size: 22px; line-height: 1.3; }
    html:root body.padrao-page.padrao-responsive-ready .padrao-mobile-nav { display: block; margin-bottom: 12px; }
    html:root body.padrao-page .padrao-mobile-nav label { display: block; margin-bottom: 6px; font-weight: 600; }
    html:root body.padrao-page .padrao-mobile-nav select { min-height: 44px; font-size: 16px; }
    html:root body.padrao-page.padrao-responsive-ready .padrao-tabs { display: none; }
    html:root body.padrao-page :is(.padrao-actions > .RadButton,.padrao-actions > .padrao-help-button) {
        flex: 1 1 150px; min-width: 0; max-width: 100%; min-height: 44px; height: auto; white-space: normal;
    }
    html:root body.padrao-page :is(.riTextBox,.rcbInput,.rddlInner,.rsbInput,.racInput,.form-select) { font-size: 16px !important; }
    html:root body.padrao-page :is(.padrao-help,.padrao-component) { font-size: 13px; }
    html:root body.padrao-page :is(.RadRadioButtonList,.RadCheckBoxList) { gap: 8px 12px; }
    html:root body.padrao-page :is(.padrao-options label,.padrao-radio label) { display: inline-flex; align-items: center; min-height: 44px; }
    html:root body.padrao-page .padrao-grid-action { width: 44px; height: 44px; margin: 2px; }
    html:root body.padrao-page #gridExemplos td:has(> .padrao-grid-action) { padding-inline: 4px; white-space: nowrap; }
    html:root body.padrao-page #gridExemplos { height: clamp(320px, 65vh, 550px) !important; }
    html:root body.padrao-page .padrao-transfer { flex-direction: column; }
    html:root body.padrao-page .padrao-transfer > .RadListBox { flex: none; width: 100% !important; }
    html:root body.padrao-page .RadNotification { box-sizing: border-box; max-width: calc(100vw - 16px); right: 8px !important; }
    html:root body.padrao-page :is(.RadToolTip,.RadComboBoxDropDown,.RadDropDownListDropDown,.RadAutoCompleteBoxPopup,.RadSearchBoxPopup) { box-sizing: border-box; max-width: calc(100vw - 16px); }
    html:root body.padrao-page .padrao-modal :is(.modal-header,.modal-body,.modal-footer) { padding: 14px; }
    html:root body.padrao-page .padrao-modal .btn-close { box-sizing: border-box; flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -6px -6px 8px; padding: 12px; }
    html:root body.padrao-page .padrao-modal .modal-dialog-scrollable { height: calc(100% - 16px); }
}

@media screen and (max-width: 575px) {
    /* Cada mes conserva sua tabela, mas os dois meses empilham no celular. */
    html:root body.padrao-page .RadCalendarMultiView { box-sizing: border-box; width: 100%; min-width: 0; }
    html:root body.padrao-page .RadCalendarMultiView > .rcMain > .rcMainTable,
    html:root body.padrao-page .RadCalendarMultiView > .rcMain > .rcMainTable > tbody,
    html:root body.padrao-page .RadCalendarMultiView > .rcMain > .rcMainTable > tbody > tr,
    html:root body.padrao-page .RadCalendarMultiView .rcCalendar { display: block; width: 100%; box-sizing: border-box; }
    html:root body.padrao-page .RadCalendarMultiView .rcCalendar > .rcMainTable { width: 100%; }
    html:root body.padrao-page .RadCalendarMultiView .rcTitlebar .rcTitle { white-space: normal; }
    html:root body.padrao-page .RadCalendarPopup { left: 8px !important; max-width: calc(100% - 16px); }
    html:root body.padrao-page .RadCalendarPopup > .RadCalendar { box-sizing: border-box; max-width: 100%; }
}

@media screen and (max-width: 768px) {
    html:root body.yc-shell { --yc-shell-left: 0px; }
    html:root body.yc-shell #menu { min-height: 56px; flex-wrap: nowrap; }
    html:root body.yc-shell #menu .navbar-btn { flex: 0 0 auto; gap: 0; margin: 0; padding: 0; }
    html:root body.yc-shell #menu :is(.nav-shortcut-button,.navbar-btn > button) {
        box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; font-size: 22px;
    }
    html:root body.yc-shell #menu > .navbar-nav { min-width: 0; margin-left: auto; }
    html:root body.yc-shell #menu #LinkMensagem { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    html:root body.yc-shell .screen-tabs-bar { box-sizing: border-box; height: 50px; padding: 3px 6px; gap: 6px; align-items: center; }
    html:root body.yc-shell .screen-tabs-bar :is(.RadTabStrip.taskbar,.screen-tabs-scroll,.screen-tabs-toggle) { height: 44px; }
    html:root body.yc-shell .screen-tabs-bar .RadTabStrip.taskbar :is(.rtsLevel1,.rtsUL,.rtsLI) { box-sizing: border-box; height: 44px; padding-block: 0; margin-block: 0; border: 0; }
    html:root body.yc-shell .screen-tabs-bar .RadTabStrip.taskbar .rtsLink { min-height: 44px; height: 44px !important; max-width: 200px; border-radius: 8px; }
    html:root body.yc-shell .screen-tabs-bar .RadTabStrip.taskbar :is(.rtsOut,.rtsIn) { display: flex; align-items: center; min-width: 0; height: 100%; padding: 0; }
    html:root body.yc-shell .screen-tabs-bar .RadTabStrip.taskbar .rtsTxt { line-height: 20px !important; }
    html:root body.yc-shell .screen-tabs-bar .screen-tabs-scroll { flex-basis: 44px; width: 44px; }
    html:root body.yc-shell .screen-tabs-bar .RadTabStrip.taskbar { touch-action: pan-x pinch-zoom; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
}

/* Os filtros se reorganizam; tabelas largas rolam dentro do proprio grid. */
@media screen and (max-width: 767px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    html:root body, html:root body > form { box-sizing: border-box; min-width: 0; max-width: 100%; }
    html:root body :is(main,.container,.container-fluid,.yc-standard-main,.padrao-main,.titulo-modulo-conteudo) {
        box-sizing: border-box; min-width: 0; max-width: 100%;
    }
    html:root body :is(.row > [class*="col-"],.panel-content,.padrao-card,.titulo-card,.mensagens-card,.entrada-card) { min-width: 0; }
    html:root body :is(.RadGrid,.RadTreeList) { box-sizing: border-box; min-width: 0; max-width: 100% !important; overflow-x: auto; }
    html:root body :is(.RadGrid .rgDataDiv,.RadGrid .rgHeaderDiv,.table-responsive) { max-width: 100%; -webkit-overflow-scrolling: touch; }
    html:root body :is(.RadComboBox,.RadDropDownList,.RadAutoCompleteBox,.RadInput,.RadPicker,.RadAsyncUpload) { max-width: 100%; }
    html:root body :is(.rcbInput,.riTextBox,.racInput,.form-control,select:not([size])) { font-size: 16px; }
    html:root body :is(.yc-page-title,.yc-managed-caption,.padrao-header h1) { white-space: normal; overflow-wrap: anywhere; }
    html:root body :is(.yc-filter-actions,.padrao-actions,.titulo-acoes-linha) { flex-wrap: wrap; gap: 8px; }
    html:root body :is(.RadTabStrip:not(.taskbar),.RadTabStrip:not(.taskbar) .rtsLevel1) { max-width: 100%; overflow-x: auto; }

    /* Alertas e confirmacoes: leitura e botoes sempre dentro da tela. */
    html:root body .modal { padding: 8px !important; }
    html:root body .modal-dialog { box-sizing: border-box; width: auto !important; min-width: 0 !important; max-width: 100% !important; margin: 0 auto; }
    html:root body .modal-content { box-sizing: border-box; max-width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    html:root body .modal-body { min-height: 0; overflow: auto; overflow-wrap: anywhere; }
    html:root body .modal-footer { flex-wrap: wrap; gap: 8px; }
    html:root body .modal-footer > .row { width: 100%; margin: 0; }
    html:root body .modal-footer > .row > [class*="col-"] { flex: 1 1 120px; max-width: 100%; }
    html:root body .swal2-container { padding: 12px; }
    html:root body .swal2-popup { box-sizing: border-box; min-width: 0 !important; max-width: 100% !important; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; font-size: 16px; }
    html:root body :is(.swal2-title,.swal2-html-container,.swal2-content) { overflow-wrap: anywhere; }
    html:root body .swal2-title { font-size: 22px; }
    html:root body .swal2-actions { gap: 8px; flex-wrap: wrap; }
    html:root body .swal2-actions button { min-height: 44px; margin: 0; }
    html:root body #toast-container { box-sizing: border-box; left: 8px; right: 8px; width: auto; max-width: calc(100% - 16px); }
    html:root body #toast-container > div { box-sizing: border-box; width: 100%; max-width: 100%; overflow-wrap: anywhere; }

    /* Caixa de entrada, demais pastas e leitura compartilham tamanho legivel. */
    html:root body.mensagens-layout #main-content { width: 100% !important; margin-left: 0 !important; }
    html:root body.mensagens-layout #main-content > .container-fluid { padding-inline: 10px; }
    html:root body.mensagens-layout :is(.entrada-pesquisa input,.entrada-pesquisa select,.entrada-situacao) { font-size: 16px; min-height: 44px; }
    html:root body.mensagens-layout .entrada-pesquisa button { width: 44px; height: 44px; flex-basis: 44px; }
    html:root body.mensagens-layout :is(.entrada-mensagem-resumo,.saida-mensagem-assunto) { font-size: 16px; line-height: 1.45; }
    html:root body.mensagens-layout :is(.entrada-mensagem-resumo .small,.saida-mensagem-destinatario,.saida-mensagem-detalhes) { font-size: 13px; line-height: 1.5; }
    html:root body.mensagens-layout :is(.mensagem-remetente-card,.mensagem-conteudo-card,.mensagem-anexos) { min-width: 0; max-width: 100%; padding: 12px; }
    html:root body.mensagens-layout :is(.mensagem-corpo,.mensagem-historico-corpo,.note-editable) { box-sizing: border-box; max-width: 100%; padding: 12px; overflow-x: auto; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; }
    html:root body.mensagens-layout :is(.mensagem-corpo,.mensagem-historico-corpo,.note-editable) img { max-width: 100%; height: auto; }
    html:root body.mensagens-layout .mensagem-saida .mensagens-lista .rgMasterTable { min-width: 0; }
    /* Filtros empilhados nao podem consumir toda a altura util da lista.
       svh evita saltos quando a barra do Safari aparece/desaparece. */
    html:root body.mensagens-layout :is(.mensagem-entrada,.mensagens-lista) .RadGrid {
        height: clamp(360px, 65vh, 640px) !important;
        height: clamp(360px, 65svh, 640px) !important;
    }
    html:root body.mensagens-layout .entrada-mensagem-resumo .text-truncate { white-space: normal !important; }
    html:root body.mensagens-layout .mensagens-lista :is(.rgRow,.rgAltRow) > td { white-space: normal; overflow-wrap: anywhere; }
    html:root body.mensagens-layout :is(.entrada-acoes,.mensagens-acoes) { gap: 8px; }
    html:root body.mensagens-layout :is(.RadButton.entrada-botao,.RadButton.mensagens-botao) { width: auto; min-width: 44px; min-height: 44px; height: auto; padding: 8px 10px; gap: 6px; }
    html:root body.mensagens-layout :is(.entrada-botao-texto,.mensagens-botao-texto) { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; font-size: 13px; }
}

@media screen and (max-width: 575px) {
    html:root body :is(.yc-standard-main,.padrao-main,.titulo-card,.mensagem-formulario) .row > [class*="col-"]:not(:where(.RadGrid *,.RadTreeList *,.modal *)) {
        flex: 0 0 100%; width: 100%; max-width: 100%;
    }
    html:root body :is(.yc-standard-main,.padrao-main,.titulo-modulo-conteudo) { padding-inline: 10px; }
    html:root body :is(.titulo-card,.padrao-card) { padding: 12px; }
    html:root body.mensagens-layout .entrada-pesquisa {
        display: grid; grid-template-columns: minmax(0, 1fr) 44px;
    }
    html:root body.mensagens-layout .entrada-pesquisa select {
        grid-column: 1 / -1; width: 100%; border-right: 0; border-bottom: 1px solid var(--yc-border, #dce4ed); border-radius: 6px 6px 0 0;
    }
}

/* Medidas do modelo: os proximos modulos podem reutilizar estes tokens. */
@media screen {
    html:root body.padrao-page {
        --padrao-space: 16px;
        --padrao-action-gap: 8px;
        --padrao-action-width: 208px;
        --padrao-action-height: 48px;
        --padrao-icon-size: 44px;
    }
    html:root body.padrao-page .padrao-main { padding: var(--padrao-space) !important; }
    html:root body.padrao-page .padrao-header { padding-inline: var(--padrao-space) !important; }
    html:root body.padrao-page .padrao-card { padding: var(--padrao-space) !important; margin-bottom: var(--padrao-space); }
    html:root body.padrao-page .padrao-section-title { margin-bottom: var(--padrao-space); }
    html:root body.padrao-page .padrao-modal .modal-header { gap: 12px; align-items: center; }
    html:root body.padrao-page .padrao-modal .modal-title { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
    html:root body.padrao-page .padrao-modal .modal-header .btn-close {
        box-sizing: border-box; flex: 0 0 var(--padrao-icon-size);
        width: var(--padrao-icon-size); height: var(--padrao-icon-size);
        margin: 0; padding: 12px; opacity: 1;
    }
    html:root body.padrao-page .padrao-actions { gap: var(--padrao-action-gap); margin-bottom: var(--padrao-space); }
    html:root body.padrao-page .padrao-actions:last-child { margin-bottom: 0; }
    html:root body.padrao-page :is(.RadButton.rbButton:not(.rbToggleButton),.padrao-help-button) {
        box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
        width: var(--padrao-action-width); min-width: 0; max-width: 100%;
        height: var(--padrao-action-height); min-height: var(--padrao-action-height);
        padding: 6px 12px; margin: 0; gap: 8px; white-space: normal;
        font-size: 14px; line-height: 18px;
    }
    html:root body.padrao-page .padrao-actions > :is(.RadButton.rbButton,.padrao-help-button) { flex: 0 1 var(--padrao-action-width); }
    html:root body.padrao-page :is(.padrao-header-action,.padrao-grid-action) {
        box-sizing: border-box; width: var(--padrao-icon-size); height: var(--padrao-icon-size); flex-shrink: 0;
    }
    html:root body.padrao-page .RadBarcode {
        box-sizing: border-box; max-width: calc(100% - 16px); margin: 8px;
        background: #fff; outline: 8px solid #fff; color: #000;
    }
    /* Resumo e lancamentos usam a mesma coluna monetaria e o mesmo recuo. */
    html:root body.padrao-page .padrao-grid-wrap > #gridResumoExtrato {
        min-width: 520px; max-width: none !important; overflow: hidden;
        border: 1px solid var(--yc-border, #c8d3df); border-radius: 8px;
    }
    html:root body.padrao-page #gridResumoExtrato .rgMasterTable { border-spacing: 0; }
    html:root body.padrao-page #gridResumoExtrato th.rgHeader { border-radius: 0 !important; }
    html:root body.padrao-page #gridResumoExtrato > .rgMasterTable > colgroup > col:first-child { width: 44px !important; }
    html:root body.padrao-page #gridResumoExtrato > .rgMasterTable > tbody > tr > td:has(> .padrao-extrato-detalhes) { padding: 0 !important; }
    html:root body.padrao-page #gridResumoExtrato .padrao-extrato-detalhes {
        /* Compensa os 44px da coluna de expansao para deixar 12px dos dois lados. */
        width: calc(100% + 20px) !important; max-width: none !important; margin: 8px 12px 8px -32px;
        border: 0; border-radius: 0; overflow: hidden;
        /* Contorno sobreposto preserva a largura e o alinhamento das colunas. */
        position: relative;
    }
    html:root body.padrao-page #gridResumoExtrato .padrao-extrato-detalhes::after {
        content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
        border: 1px solid var(--yc-border, #c8d3df); border-radius: inherit;
    }
    html:root body.padrao-page #gridResumoExtrato :is(th.rgHeader,td:not([colspan])) { padding: 12px; vertical-align: middle; }
    /* Espaco apenas para a seta; descricoes e valores continuam alinhados. */
    html:root body.padrao-page #gridResumoExtrato > .rgMasterTable > :is(thead,tbody) > tr > :is(th,td):not(.rgExpandCol):not([colspan]) { padding-left: 12px; padding-right: 24px; }
    html:root body.padrao-page #gridResumoExtrato th.rgHeader { text-align: left !important; }
    html:root body.padrao-page #gridResumoExtrato :is(th.rgHeader,td:not([colspan])):last-child { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
    html:root body.padrao-page #gridResumoExtrato .rgExpandCol { padding: 0 !important; text-align: center !important; }
    html:root body.padrao-page #gridResumoExtrato td.rgExpandCol { background: transparent !important; }
    html:root body.padrao-page #gridResumoExtrato > .rgMasterTable > tbody > tr:has(> td > .padrao-extrato-detalhes) { background: var(--yc-surface, #fff) !important; }
    html:root body.padrao-page #gridResumoExtrato .rgExpandCol .rgActionButton {
        box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin: 0; padding: 0;
        border: 1px solid transparent; border-radius: 8px; box-shadow: none;
        background: transparent; color: var(--yc-link, #174b82); cursor: pointer;
    }
    html:root body.padrao-page #gridResumoExtrato .rgExpandCol .rgActionButton:hover {
        background: transparent; border-color: transparent; color: var(--yc-text, #172b43);
    }
    html:root body.padrao-page #gridResumoExtrato .rgExpandCol .rgActionButton:focus-visible {
        outline: 2px solid var(--yc-link, #1976d2); outline-offset: -2px;
    }
    html:root body.padrao-page #gridResumoExtrato .rgExpandCol .rgIcon {
        position: static; display: block; box-sizing: border-box; width: 9px; height: 9px;
        margin: 0; font-size: 0; background: none;
        border: solid currentColor; border-width: 0 2px 2px 0;
        transform: rotate(-45deg);
    }
    html:root body.padrao-page #gridResumoExtrato .rgExpandCol .rgIcon::before { content: none; }
    html:root body.padrao-page #gridResumoExtrato .rgCollapse .rgIcon { transform: translateY(-2px) rotate(45deg); }
    html:root body.padrao-page #gridResumoExtrato .rgCaption { caption-side: top; padding: 12px; text-align: left; }
    html:root body.padrao-page #gridResumoExtrato > .rgMasterTable > tbody > tr > td[colspan] { background: var(--yc-surface, #fff) !important; }
    /* Um contorno por componente, com a rolagem contida na mesma superficie. */
    html:root body.padrao-page .padrao-component-frame {
        box-sizing: border-box; border: 1px solid var(--yc-control-border, #aab9c9);
        border-radius: 8px; background: var(--yc-surface, #fff); overflow: auto;
    }
    html:root body.padrao-page .padrao-component-frame > :is(.RadTreeList,.RadPivotGrid) { border: 0 !important; border-radius: 0; }
    html:root body.padrao-page .padrao-component-frame > #divisor { min-width: 500px; }
    html:root body.padrao-page #divisor .RadSplitter { border: 0 !important; }
    html:root body.padrao-page #divisor :is(.rspPane,.rspResizeBar) { border-bottom: 0 !important; }
    html:root body.padrao-page #divisor .rspLastItem { border-right: 0 !important; }
    html:root body.padrao-page #paginadorCards {
        display: flex; justify-content: center; width: 100%; padding: 0;
        border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none;
    }
    html:root body.padrao-page #paginadorCards .rdpNumPart {
        display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; float: none; padding: 0; margin: 0;
    }
    html:root body.padrao-page #paginadorCards .rdpNumPart > a {
        box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; float: none;
        min-width: 44px; height: 44px; margin: 0; padding: 0 10px; border-radius: 6px;
        border: 1px solid var(--yc-border, #c8d3df); background: var(--yc-surface, #fff);
        color: var(--yc-link, #174b82); font-size: 14px; text-decoration: none;
    }
    html:root body.padrao-page #paginadorCards .rdpNumPart > a:hover { background: var(--yc-subtle, #eaf0f7); }
    html:root body.padrao-page #paginadorCards .rdpNumPart > a.rdpCurrentPage {
        background: var(--yc-primary, #174b82) !important; color: var(--yc-on-primary, #fff) !important;
        border-color: var(--yc-primary, #174b82); font-weight: 600;
    }
    html:root body.padrao-page #paginadorCards a:focus-visible { outline: 2px solid var(--yc-link, #1976d2); outline-offset: 2px; }
    html:root[data-yc-mode="dark"] body.padrao-page code { color: #f3aed3; }
    html:root[data-yc-mode="dark"] body.padrao-page .RadMenu :is(.rmRootGroup,.rmGroup,.rmLink) {
        background: var(--yc-surface, #1b2633) !important; color: var(--yc-text, #e6edf5) !important;
        border-color: var(--yc-border, #425166); box-shadow: none;
    }
    html:root[data-yc-mode="dark"] body.padrao-page .RadMenu :is(.rmLink:hover,.rmFocused > .rmLink,.rmExpanded > .rmLink) {
        background: var(--yc-subtle, #26384a) !important; color: var(--yc-link, #9dccfa) !important;
    }
    html:root body.padrao-page :is(.padrao-help-button,.padrao-grid-action):focus-visible { outline: 2px solid var(--yc-link, #1976d2); outline-offset: 2px; }
}

@media screen and (max-width: 575px) {
    html:root body.padrao-page { --padrao-space: 12px; }
    html:root body.padrao-page :is(.RadButton.rbButton:not(.rbToggleButton),.padrao-help-button) { width: 100%; }
    html:root body.padrao-page .padrao-actions > :is(.RadButton.rbButton,.padrao-help-button) { flex-basis: 100%; }
}

/* Componentes compartilhados: upload, assistente, carregamento e confirmacoes. */
@media screen {
    /* O carregamento desfoca a pagina, sem acrescentar uma camada escura. */
    html:root body.yc-responsive-page .RadAjax {
        background: transparent !important;
        -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    html:root body.yc-responsive-page .RadAjax .raColor {
        background: transparent !important; opacity: 1 !important; filter: none !important;
        -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 1;
    }
    html:root body.yc-responsive-page .RadAjax .raDiv {
        position: relative; z-index: 2; filter: none !important;
        -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    html:root body.yc-responsive-page .swal2-actions { gap: 12px; flex-wrap: wrap; justify-content: center; }
    html:root body.yc-responsive-page .swal2-actions:not(.swal2-loading) :is(.swal2-confirm,.swal2-cancel,.swal2-deny) {
        box-sizing: border-box; width: 136px; max-width: 100%; flex: 0 0 auto;
        height: 44px; min-height: 44px; margin: 0; padding: 8px 16px;
        font-size: 14px; line-height: 20px;
    }
    html:root body.yc-responsive-page .RadAsyncUpload { width: 100%; margin-bottom: 12px; }
    html:root body.yc-responsive-page .RadAsyncUpload .ruInputs { width: 100%; margin: 0; padding: 0; }
    html:root body.yc-responsive-page .RadAsyncUpload .ruInputs > li { padding: 0; max-width: 100%; }
    html:root body.yc-responsive-page .RadAsyncUpload .ruSelectWrap { width: 100%; }
    html:root body.yc-responsive-page .RadAsyncUpload .ruFileWrap {
        position: relative; display: inline-flex; box-sizing: border-box;
        width: var(--padrao-action-width, 208px); max-width: 100%; height: 48px;
        margin: 0; overflow: hidden; border-radius: 6px;
    }
    html:root body.yc-responsive-page .RadAsyncUpload .ruFakeInput { display: none; }
    html:root body.yc-responsive-page .RadAsyncUpload .ruBrowse {
        box-sizing: border-box; display: flex; align-items: center; justify-content: center;
        width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 16px;
        font: 600 14px/20px var(--yc-font); white-space: normal;
        border: 1px solid var(--yc-control-border, #aab9c9); border-radius: 6px;
        background: var(--yc-surface, #fff); color: var(--yc-link, #174b82);
    }
    html:root body.yc-responsive-page .RadAsyncUpload .ruFileInput {
        position: absolute; inset: 0 !important; box-sizing: border-box;
        width: 100% !important; height: 100% !important; margin: 0;
        opacity: 0; cursor: pointer; font-size: 16px;
    }
    html:root body.yc-responsive-page .RadAsyncUpload .ruFileWrap:hover .ruBrowse { background: var(--yc-subtle, #eaf0f7); }
    html:root body.yc-responsive-page .RadAsyncUpload .ruBrowse::before {
        content: ""; flex: 0 0 18px; height: 18px; margin-right: 8px; background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m8 13 6-6a3 3 0 0 1 4 4l-8 8a5 5 0 0 1-7-7l9-9a7 7 0 0 1 10 10l-9 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m8 13 6-6a3 3 0 0 1 4 4l-8 8a5 5 0 0 1-7-7l9-9a7 7 0 0 1 10 10l-9 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    }
    html:root body.yc-responsive-page .RadAsyncUpload .ruFileWrap:focus-within { outline: 2px solid var(--yc-link, #1976d2); outline-offset: 2px; }
    html:root body.yc-responsive-page .RadAsyncUpload .ruUploadProgress { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }

    /* A cor declarada no eixo identifica as linhas que acompanham o tema. */
    html:root body.padrao-page #grafico svg [stroke="#dbe3ec"] { stroke: var(--yc-border, #dbe3ec); }
    html:root body.padrao-page #grafico svg text { fill: var(--yc-text, #172b43) !important; }
    html:root body.padrao-page .padrao-barcode {
        box-sizing: border-box; width: fit-content; max-width: 100%; margin: 8px 0 0; padding: 16px;
        border: 1px solid var(--yc-control-border, #aab9c9); border-radius: 8px; background: #fff; color: #172b43;
    }
    html:root body.padrao-page .padrao-barcode .RadBarcode { display: block !important; max-width: 100%; margin: 0; outline: 0; }
    html:root body.padrao-page .padrao-barcode figcaption {
        margin-top: 10px; text-align: center; color: #172b43;
        font: 600 13px/20px var(--yc-font); letter-spacing: 2px; overflow-wrap: anywhere;
    }

    html:root body.yc-responsive-page .RadWizard.rwzHorizontal { padding: 0; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzBreadCrumb {
        display: flex; gap: 12px; width: 100%; max-width: 100%; padding: 0; margin: 0 0 16px;
        overflow: visible; counter-reset: padrao-step;
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzBreadCrumb .rwzLI {
        box-sizing: border-box; flex: 1 1 0; float: none; width: auto !important;
        min-width: 0; margin: 0; padding: 0; counter-increment: padrao-step;
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzLink {
        box-sizing: border-box; display: flex; align-items: center; width: 100%; min-height: 60px;
        margin: 0; padding: 12px; border: 1px solid var(--yc-border, #c8d3df); border-radius: 8px;
        background: var(--yc-surface, #fff); color: var(--yc-text, #172b43);
        text-decoration: none; transform: none; box-shadow: none;
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzLink::before,
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzLink::after { display: none; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzLink .rwzText {
        display: flex; align-items: center; gap: 10px; min-width: 0;
        padding: 0; line-height: 22px; white-space: normal; overflow-wrap: anywhere;
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzLink .rwzText::before {
        content: counter(padrao-step); display: inline-flex; align-items: center; justify-content: center;
        flex: 0 0 30px; height: 30px; border: 1px solid var(--yc-border, #c8d3df);
        border-radius: 50%; background: var(--yc-subtle, #eaf0f7); color: var(--yc-text, #172b43);
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal :is(.rwzHovered,.rwzSelected) .rwzLink {
        background: var(--yc-subtle, #eaf0f7); border-color: var(--yc-link, #174b82);
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzSelected .rwzLink .rwzText::before {
        background: var(--yc-primary, #174b82); border-color: var(--yc-primary, #174b82); color: var(--yc-on-primary, #fff);
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzProgressBar { margin: 0 0 16px; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzContentWrapper { padding: 0; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzContent {
        box-sizing: border-box; padding: 16px; margin: 0; min-height: 88px;
        border: 1px solid var(--yc-border, #c8d3df); border-radius: 8px; background: var(--yc-surface, #fff);
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzStep > p { padding: 0 !important; margin: 0; line-height: 1.6; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzNav {
        display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 8px;
        margin: 16px 0 0; padding: 0;
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzNav .rwzLI { float: none; padding: 0; margin: 0; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzButton {
        box-sizing: border-box; width: var(--padrao-action-width, 208px); max-width: 100%; height: 48px;
        padding: 0 16px; margin: 0; border-radius: 6px;
    }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal :is(.rwzLink,.rwzButton):focus-visible { outline: 2px solid var(--yc-link, #1976d2); outline-offset: 2px; }
}

@media screen and (max-width: 575px) {
    html:root body.yc-responsive-page .RadAsyncUpload .ruFileWrap { width: 100%; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzBreadCrumb { flex-direction: column; gap: 8px; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzLink { min-height: 54px; padding: 10px 12px; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzNav .rwzLI { width: 100%; }
    html:root body.yc-responsive-page .RadWizard.rwzHorizontal .rwzButton { width: 100%; }
}
