/* =====================================================================
   CGP.Blazor.Componentes: ESTILO DOS COMPONENTES EQUIVALENTES AO WEB.NET (EXT.NET),
   NAS CORES DO PROJETO CGP (GRADIENTE #2f3c6a > #2e85ba, HOVER #ffefbb, CHAVE #ececec) E EM POPPINS.
   INCLUI AS CLASSES DO forms.css LEGADO (lblcad, lblcadDir, txtcad, txtchave, cont, botao-forms, botao-verde, botao-vermelho)
   ===================================================================== */
:root
{
    --wn-font: 'Poppins', Tahoma, Helvetica, Arial, sans-serif;
    --wn-texto: #404040;
    --wn-borda: #cfcfcf;
    --wn-fundo: #ffffff;
    --wn-chave: #ececec;
    --wn-realce: #ffefbb;
    --wn-azul: #2e85ba;
    --wn-azul-escuro: #2f3c6a;
    --wn-gradiente: linear-gradient(to top, #2f3c6a, #2e85ba);
    --wn-verde: #5cb85c;
    --wn-vermelho: #d9534f;
    --wn-cinza: #7f7979;
    --wn-sombra: 0 4px 14px rgba(0, 0, 0, .16);
}

.wn-container, .wn-panel, .wn-form, .wn-field, .wn-button, .wn-label, .wn-toolbar, .wn-menu, .wn-window, .wn-infopanel, .wn-callout, .wn-tag, .wn-statusbar
{
    font-family: var(--wn-font);
    font-size: 12px;
    color: var(--wn-texto);
    box-sizing: border-box;
}

.wn-container *, .wn-panel *, .wn-window *
{
    box-sizing: border-box;
}

/* ---------------------------------------------------------------- LAYOUTS */
.wn-hbox
{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
}

.wn-vbox
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.wn-fit
{
    display: flex;
    flex-direction: column;
}

.wn-fit > *
{
    flex: 1 1 auto;
    width: 100%;
}

.wn-center
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.wn-column
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.wn-anchor
{
    display: block;
}

.wn-border
{
    display: flex;
    flex-wrap: wrap;
}

.wn-fieldcontainer
{
    margin-bottom: 5px;
}

.wn-fieldcontainer.cont
{
    margin-bottom: 5px;
    margin-right: 10px;
}

.wn-rolagem
{
    overflow: auto;
}

.wn-clicavel
{
    cursor: pointer;
}

.wn-alinha-left   { text-align: left; }
.wn-alinha-center { text-align: center; }
.wn-alinha-right  { text-align: right; }

/* ---------------------------------------------------------------- RÓTULOS (forms.css) */
.wn-label
{
    display: inline-block;
    line-height: 1.3;
}

.lblcad, .lblCad, .lblcadDir, .lblcadlite, .lblIdent, .lblIdentDir
{
    font-size: 12px;
    margin-top: 7px;
    font-weight: bold;
}

.lblcad, .lblCad, .lblcadDir
{
    padding-left: 10px;
    padding-right: 10px;
}

.lblcadDir, .lblIdentDir
{
    text-align: right;
}

.lblIdent, .lblIdentDir
{
    font-size: 13px;
    padding-left: 1px;
}

.lblIdentDir
{
    padding-right: 15px;
}

.lblRotulo
{
    font-size: 12px;
    font-weight: bold;
    color: var(--wn-cinza);
}

/* ---------------------------------------------------------------- CAMPOS */
.wn-field
{
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    margin: 2px 0;
    min-width: 0;
}

.wn-field.wn-com-label
{
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.wn-field-label
{
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    color: var(--wn-texto);
}

.wn-field-caixa
{
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.wn-input, .wn-select, .wn-textarea
{
    width: 100%;
    min-height: 26px;
    padding: 2px 6px;
    border: 1px solid var(--wn-borda);
    border-radius: 3px;
    background: var(--wn-fundo);
    font-family: var(--wn-font);
    font-size: 12px;
    color: var(--wn-texto);
    outline: none;
}

.wn-input:focus, .wn-select:focus, .wn-textarea:focus, .wn-editor-area:focus
{
    border-color: var(--wn-azul);
    background: var(--wn-realce);
}

.wn-input[readonly], .wn-input[disabled], .wn-select[disabled], .wn-textarea[readonly]
{
    background: var(--wn-chave);
    color: #555;
}

.wn-input.wn-invalido, .wn-select.wn-invalido, .wn-textarea.wn-invalido, .wn-editor.wn-invalido
{
    border-color: var(--wn-vermelho);
    box-shadow: 0 0 0 2px rgba(217, 83, 79, .18);
    background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(217, 83, 79, .12) 6px 7px);
}

.wn-textarea
{
    min-height: 60px;
    resize: vertical;
}

/*CLASSES DO LEGADO*/
.txtcad, .txtcad2
{
    font-size: 12px;
    min-height: 26px;
    font-weight: bold;
    text-transform: uppercase;
}

.txtchave
{
    font-size: 12px;
    min-height: 26px;
    font-weight: bold;
    background-color: var(--wn-chave) !important;
    text-transform: uppercase;
}

.wn-numero
{
    text-align: right;
}

.wn-field-caixa .wn-input:not(:last-child)
{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.wn-trigger
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 0 6px;
    border: 1px solid var(--wn-borda);
    border-left: 0;
    border-radius: 0 3px 3px 0;
    background: #f6f6f6;
    color: var(--wn-cinza);
    cursor: pointer;
}

.wn-trigger:hover
{
    background: var(--wn-realce);
}

.wn-checkbox, .wn-radio
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 10px 0 0;
    cursor: pointer;
    user-select: none;
}

.wn-boxlabel
{
    font-size: 12px;
    font-weight: bold;
}

.wn-radiogroup, .wn-checkboxgroup
{
    gap: 4px;
}

.wn-display
{
    display: inline-block;
    min-height: 26px;
    padding: 4px 0;
    font-weight: bold;
}

/*COMBO COM BUSCA*/
.wn-combo .wn-combo-lista
{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: 240px;
    margin: 0;
    padding: 2px 0;
    list-style: none;
    overflow: auto;
    background: var(--wn-fundo);
    border: 1px solid var(--wn-borda);
    box-shadow: var(--wn-sombra);
}

.wn-combo .wn-combo-lista li
{
    padding: 5px 8px;
    font-size: 12px;
    white-space: normal;
    border-bottom: 1px solid #eeeeee;
    cursor: pointer;
}

.wn-combo .wn-combo-lista li.wn-realce, .wn-combo .wn-combo-lista li:hover
{
    background: var(--wn-realce);
}

.wn-combo .wn-combo-lista li.wn-selecionado
{
    font-weight: bold;
}

.wn-combo .wn-combo-aviso
{
    color: var(--wn-cinza);
    cursor: default;
}

/*UPLOAD*/
.wn-upload-nome
{
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #666;
}

/*EDITOR HTML*/
.wn-editor
{
    width: 100%;
    border: 1px solid var(--wn-borda);
    border-radius: 3px;
    background: var(--wn-fundo);
}

.wn-editor-barra
{
    display: flex;
    gap: 2px;
    padding: 3px;
    border-bottom: 1px solid var(--wn-borda);
    background: #f3f3f3;
}

.wn-editor-barra button
{
    min-width: 26px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    font-family: var(--wn-font);
    cursor: pointer;
}

.wn-editor-barra button:hover
{
    border-color: var(--wn-borda);
    background: var(--wn-realce);
}

.wn-editor-area
{
    min-height: 120px;
    padding: 6px 8px;
    outline: none;
    font-size: 12px;
    overflow: auto;
}

/* ---------------------------------------------------------------- BOTÕES */
.wn-button-caixa
{
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin: 2px;
}

.wn-button
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: var(--wn-fundo);
    font-family: var(--wn-font);
    font-size: 12px;
    color: var(--wn-texto);
    white-space: nowrap;
    cursor: pointer;
}

.wn-button:hover:not(:disabled), .wn-button.wn-aberto
{
    background: var(--wn-realce);
}

.wn-button:disabled, .wn-desabilitado
{
    opacity: .5;
    cursor: default;
}

.wn-button.wn-flat, .wn-button.wn-sem-borda
{
    border-color: transparent;
    background: transparent;
}

.wn-button.wn-pressed
{
    background: #e4e4e4;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15);
}

.wn-button.wn-icone-top, .wn-button.wn-icone-bottom
{
    flex-direction: column;
    gap: 3px;
}

.wn-button.wn-icone-bottom
{
    flex-direction: column-reverse;
}

.wn-button.wn-icone-right
{
    flex-direction: row-reverse;
}

.wn-button.wn-texto-left
{
    justify-content: flex-start;
}

.wn-button.wn-texto-right
{
    justify-content: flex-end;
}

.wn-button .wn-button-glifo
{
    color: #5a5a5a;
}

/*CLASSES DO LEGADO*/
.wn-button.botao-forms
{
    background: var(--wn-gradiente);
    border-color: var(--wn-azul-escuro);
    color: #fff;
}

.wn-button.botao-forms .glifo, .wn-button.botao-verde .glifo, .wn-button.botao-vermelho .glifo
{
    color: #fff;
}

.wn-button.botao-forms:hover:not(:disabled)
{
    background: #696969;
    border-color: #555;
}

.wn-button.botao-verde
{
    border-radius: 4px;
    background: var(--wn-verde);
    border: 1px solid #357935;
    color: #fff;
}

.wn-button.botao-vermelho
{
    border-radius: 4px;
    background: var(--wn-vermelho);
    border: 1px solid #a02622;
    color: #fff;
}

.wn-button.botao-verde:hover:not(:disabled), .wn-button.botao-vermelho:hover:not(:disabled)
{
    filter: brightness(.92);
}

.wn-split .wn-split-principal
{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.wn-split .wn-split-seta
{
    padding: 3px 6px;
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ---------------------------------------------------------------- MENUS */
.wn-menu-fundo
{
    position: fixed;
    inset: 0;
    z-index: 1090;
}

.wn-menu
{
    min-width: 200px;
    padding: 3px 0;
    background: var(--wn-fundo);
    border: 1px solid #c4c4c4;
    box-shadow: var(--wn-sombra);
}

.wn-menu-solto
{
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 1100;
}

.wn-menu-solto.wn-menu-direita
{
    left: auto;
    right: 0;
}

.wn-menu-item-caixa
{
    position: relative;
}

.wn-menu-item
{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    font-family: var(--wn-font);
    font-size: 12px;
    color: var(--wn-texto);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.wn-menu-item:hover:not(:disabled), .wn-menu-item-caixa.wn-tem-filhos:hover > .wn-menu-item
{
    background: var(--wn-realce);
}

.wn-menu-item:disabled
{
    opacity: .45;
    cursor: default;
}

.wn-menu-glifo
{
    display: inline-flex;
    justify-content: center;
    width: 16px;
    color: #5a5a5a;
}

.wn-menu-seta
{
    margin-left: auto;
    color: var(--wn-cinza);
}

.wn-submenu
{
    display: none;
    position: absolute;
    top: -4px;
    left: 100%;
    z-index: 1110;
}

.wn-menu-item-caixa.wn-tem-filhos:hover > .wn-submenu
{
    display: block;
}

.wn-menu-separator
{
    height: 1px;
    margin: 3px 0;
    background: #e4e4e4;
}

/* ---------------------------------------------------------------- PAINÉIS, FORMULÁRIOS E JANELAS */
.wn-panel
{
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--wn-fundo);
    border: 1px solid #d0d0d0;
}

.wn-panel.wn-sem-borda
{
    border: 0;
}

.wn-panel-header, .wn-window-header
{
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 4px 10px;
    background: var(--wn-gradiente);
    color: #fff;
}

.wn-panel-header .glifo, .wn-window-header .glifo
{
    color: #fff;
}

.wn-panel-titulo, .wn-window-titulo
{
    flex: 1;
    font-size: 13px;
    font-weight: bold;
}

.wn-panel-tools, .wn-window-tools
{
    display: inline-flex;
    gap: 2px;
}

.wn-tool
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.wn-panel-header .wn-tool, .wn-window-header .wn-tool
{
    color: #fff;
}

.wn-tool:hover
{
    background: rgba(255, 255, 255, .25);
}

.wn-panel-body, .wn-window-body
{
    flex: 1 1 auto;
    min-height: 0;
    padding: 6px;
}

.wn-panel-topbar, .wn-panel-bottombar
{
    background: var(--wn-chave);
}

.wn-panel-buttons
{
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    border-top: 1px solid #e4e4e4;
    background: #f7f7f7;
}

.wn-panel-buttons.wn-alinha-center { justify-content: center; }
.wn-panel-buttons.wn-alinha-right  { justify-content: flex-end; }
.wn-panel-buttons.wn-alinha-left   { justify-content: flex-start; }

.wn-fieldset
{
    margin: 4px 0 8px;
    padding: 4px 8px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    min-width: 0;
}

.wn-fieldset-titulo
{
    padding: 0 6px;
    font-size: 12.5px;
    font-weight: bold;
    color: var(--wn-cinza);
}

/*JANELA*/
.wn-window-fundo
{
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    outline: none;
}

.wn-window-fundo.wn-modal
{
    background: rgba(0, 0, 0, .45);
}

.wn-window
{
    display: flex;
    flex-direction: column;
    max-width: 100%;
    max-height: calc(100vh - 20px);
    background: var(--wn-fundo);
    border: 1px solid var(--wn-azul-escuro);
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(20, 30, 60, .35);
    overflow: hidden;
    font-family: var(--wn-font);
}

.wn-window.wn-maximizada
{
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh;
    border-radius: 0;
}

.wn-window-body
{
    overflow: auto;
}

/*ABAS*/
.wn-tabpanel
{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wn-tabpanel.wn-tabs-left
{
    flex-direction: row;
}

.wn-tabbar
{
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 4px 0;
    background: var(--wn-gradiente);
}

.wn-tabs-left .wn-tabbar
{
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 4px 4px;
}

.wn-tab
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 0;
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, .16);
    font-family: var(--wn-font);
    font-size: 12.5px;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
}

.wn-tab .glifo
{
    color: inherit;
}

.wn-tab:hover
{
    background: rgba(255, 255, 255, .28);
}

.wn-tab.wn-ativa
{
    background: var(--wn-fundo);
    color: gray;
    font-weight: bold;
}

.wn-tab-fechar
{
    opacity: .7;
}

.wn-tab-fechar:hover
{
    opacity: 1;
}

.wn-tabpanel-body
{
    flex: 1;
    min-height: 0;
    border: 1px solid #d0d0d0;
    border-top: 0;
    background: var(--wn-fundo);
}

.wn-tab-body
{
    padding: 6px;
}

/* ---------------------------------------------------------------- BARRAS */
.wn-toolbar
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 6px;
    background: var(--wn-chave);
    border-bottom: 1px solid #d0d0d0;
}

.wn-toolbar-bottom
{
    border-top: 1px solid #d0d0d0;
    border-bottom: 0;
}

.wn-toolbar .wn-button-caixa
{
    margin: 0;
}

.wn-toolbar .wn-field
{
    margin: 0;
}

.wn-toolbar-fill
{
    flex: 1;
}

.wn-toolbar-separator
{
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: #bdbdbd;
}

.wn-toolbar-spacer
{
    display: inline-block;
}

.wn-statusbar
{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-top: 1px solid #d0d0d0;
    background: #f3f3f3;
    font-size: 12px;
    color: #555;
}

/* ---------------------------------------------------------------- CALLOUT, INFOPANEL, TAG, PROGRESS */
.wn-tem-callout
{
    position: relative;
}

.wn-callout
{
    position: absolute;
    z-index: 1150;
    min-width: 160px;
    max-width: 300px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: normal;
    text-align: left;
    white-space: normal;
    color: #fff;
    background: #404040;
    box-shadow: var(--wn-sombra);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease;
}

.wn-callout::after
{
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: inherit;
    transform: rotate(45deg);
}

.wn-callout-titulo
{
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.wn-tem-callout:hover > .wn-callout.wn-gatilho-hover,
.wn-tem-callout:focus-within > .wn-callout.wn-gatilho-focus,
.wn-callout.wn-gatilho-manual:not(.wn-oculto)
{
    opacity: 1;
    visibility: visible;
}

/*POSIÇÕES (AnchorPoint)*/
.wn-callout-top, .wn-callout-topleft, .wn-callout-topright
{
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

.wn-callout-top::after, .wn-callout-topleft::after, .wn-callout-topright::after
{
    bottom: -5px;
    left: calc(50% - 5px);
}

.wn-callout-bottom, .wn-callout-bottomleft, .wn-callout-bottomright
{
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

.wn-callout-bottom::after, .wn-callout-bottomleft::after, .wn-callout-bottomright::after
{
    top: -5px;
    left: calc(50% - 5px);
}

.wn-callout-left, .wn-callout-lefttop, .wn-callout-leftbottom
{
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.wn-callout-left::after, .wn-callout-lefttop::after, .wn-callout-leftbottom::after
{
    right: -5px;
    top: calc(50% - 5px);
}

.wn-callout-right, .wn-callout-righttop, .wn-callout-rightbottom, .wn-callout-center
{
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.wn-callout-right::after, .wn-callout-righttop::after, .wn-callout-rightbottom::after, .wn-callout-center::after
{
    left: -5px;
    top: calc(50% - 5px);
}

/*CORES (UI)*/
.wn-callout.wn-ui-warning { background: #f0ad4e; color: #3b2a00; }
.wn-callout.wn-ui-info    { background: #5bc0de; color: #082f3a; }
.wn-callout.wn-ui-danger  { background: var(--wn-vermelho); }
.wn-callout.wn-ui-success { background: var(--wn-verde); }
.wn-callout.wn-ui-primary { background: var(--wn-azul); }

.wn-infopanel
{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 12.5px;
}

.wn-infopanel-texto
{
    flex: 1;
}

.wn-infopanel.wn-ui-danger  { background: #f8d7da; border-color: #f5c2c7; color: #842029; }
.wn-infopanel.wn-ui-warning { background: #fff3cd; border-color: #ffecb5; color: #664d03; }
.wn-infopanel.wn-ui-info    { background: #cfe2ff; border-color: #b6d4fe; color: #084298; }
.wn-infopanel.wn-ui-success { background: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.wn-infopanel.wn-ui-primary { background: var(--wn-azul); border-color: var(--wn-azul-escuro); color: #fff; }
.wn-infopanel.wn-ui-default { background: #f3f3f3; border-color: #d0d0d0; color: var(--wn-texto); }

.wn-infopanel .wn-tool
{
    color: inherit;
}

.wn-taglabel
{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wn-tag
{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: var(--wn-fundo);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.wn-tag .glifo
{
    color: var(--wn-azul);
}

.wn-tag.wn-ui-primary { background: var(--wn-azul); border-color: var(--wn-azul-escuro); color: #fff; }
.wn-tag.wn-ui-success { background: var(--wn-verde); border-color: #357935; color: #fff; }
.wn-tag.wn-ui-danger  { background: var(--wn-vermelho); border-color: #a02622; color: #fff; }
.wn-tag.wn-ui-warning { background: #f0ad4e; border-color: #c48a2a; color: #fff; }
.wn-tag.wn-ui-info    { background: #5bc0de; border-color: #31a3c6; color: #fff; }
.wn-tag.wn-ui-primary .glifo, .wn-tag.wn-ui-success .glifo, .wn-tag.wn-ui-danger .glifo, .wn-tag.wn-ui-warning .glifo, .wn-tag.wn-ui-info .glifo
{
    color: #fff;
}

.wn-tag-fechar
{
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .7;
}

.wn-progress
{
    position: relative;
    height: 20px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #f3f3f3;
    overflow: hidden;
}

.wn-progress-barra
{
    height: 100%;
    background: var(--wn-gradiente);
    transition: width .3s ease;
}

.wn-progress-texto
{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--wn-texto);
    mix-blend-mode: difference;
    color: #fff;
}

/* ---------------------------------------------------------------- GRADE */
.wn-grid .wn-grid-corpo
{
    flex: 1;
    min-height: 0;
}

.wn-grid .table th.ordenavel
{
    cursor: pointer;
}

.wn-grid .wn-ordem
{
    margin-left: 3px;
    color: var(--wn-cinza);
}

.wn-grid .table.wn-sem-colunas th, .wn-grid .table.wn-sem-colunas td
{
    border-right: 0;
}

.wn-grid .table.wn-sem-linhas td
{
    border-bottom: 0;
}

.wn-grid .table.wn-sem-zebra tbody tr:nth-child(even) td
{
    background: transparent;
}

.wn-grid .table.wn-forcefit
{
    table-layout: fixed;
}

.wn-grid .wn-col-check
{
    width: 32px;
}

.wn-grid .wn-grid-filtros th
{
    padding: 3px 4px;
    background: #f7f7f7;
}

.wn-grid .wn-grid-filtro
{
    min-height: 24px;
    font-weight: normal;
    text-transform: none;
}

.wn-grid .wn-grid-sumario td
{
    font-weight: bold;
    background: #f3f3f3;
    border-top: 2px solid #d0d0d0;
}

.wn-grid .wn-alinha-center { text-align: center; }
.wn-grid .wn-alinha-right  { text-align: right; }

.wn-paging
{
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-top: 1px solid #d0d0d0;
    background: var(--wn-chave);
}

.wn-paging .wn-button
{
    min-height: 24px;
    padding: 2px 6px;
}

.wn-paging-texto
{
    padding: 0 8px;
    font-size: 12px;
    color: #555;
}

/*TEMPLATE grid-items DO LEGADO (TemplateColumn)*/
.wn-grid .grid-items
{
    font-size: 12px;
    font-weight: bold;
    white-space: normal;
    color: #555;
}

.wn-grid .grid-items h3, .wn-grid .grid-items h4
{
    display: block;
    margin: 0;
    padding: 0;
    font: inherit;
}

.wn-grid .grid-items h3 { color: #444; }
.wn-grid .grid-items h4 { color: gray; }

/* ---------------------------------------------------------------- TEMA ESCURO DO PORTAL */
html[data-tema="escuro"]
{
    --wn-texto: #d7dbe6;
    --wn-borda: #343b52;
    --wn-fundo: #1b1f2b;
    --wn-chave: #262b3a;
    --wn-realce: #3a3a1f;
}

html[data-tema="escuro"] .wn-button
{
    border-color: #343b52;
}

html[data-tema="escuro"] .wn-panel, html[data-tema="escuro"] .wn-tabpanel-body, html[data-tema="escuro"] .wn-fieldset, html[data-tema="escuro"] .wn-menu
{
    border-color: #343b52;
}

html[data-tema="escuro"] .wn-panel-buttons, html[data-tema="escuro"] .wn-statusbar, html[data-tema="escuro"] .wn-editor-barra, html[data-tema="escuro"] .wn-grid .wn-grid-filtros th, html[data-tema="escuro"] .wn-grid .wn-grid-sumario td
{
    background: #20253a;
    border-color: #343b52;
}

/*ELEMENTOS OCULTOS (ABAS INATIVAS, GATILHOS, ETIQUETAS): O hidden VENCE O display DOS LAYOUTS*/
.wn-tab-body[hidden], .wn-trigger[hidden], .wn-tag[hidden], .wn-tool[hidden], .wn-container[hidden], .wn-field[hidden]
{
    display: none !important;
}

/*GRÁFICOS (CartesianChart / PolarChart / SpaceFillingChart): SVG CALCULADO NO SERVIDOR, DICA E PAINEL DE INFORMAÇÕES EM HTML*/
.wn-grafico
{
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: Poppins, "Segoe UI", sans-serif;
    background: var(--wn-fundo, #fff);
    box-sizing: border-box;
}

.wn-grafico-svg
{
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
}

.wn-grafico-svg text
{
    font-family: inherit;
    pointer-events: none;
}

.wn-grafico-svg .wn-legenda-item.wn-clicavel, .wn-grafico-svg text.wn-clicavel
{
    cursor: pointer;
    pointer-events: all;
}

.wn-grafico-svg .wn-grafico-serie, .wn-grafico-svg .wn-grafico-marcador
{
    transition: opacity .15s, transform .15s;
}

.wn-grafico-svg .wn-realce
{
    stroke: #2f3c6a;
    stroke-width: 2;
    filter: brightness(1.12);
}

.wn-grafico-anima .wn-grafico-serie
{
    animation: wn-grafico-surgir .45s ease-out;
}

@keyframes wn-grafico-surgir
{
    from { opacity: 0; }
    to { opacity: 1; }
}

.wn-grafico-dica
{
    position: absolute;
    z-index: 5;
    pointer-events: none;
    padding: 4px 8px;
    font-size: 11px;
    color: #fff;
    background: rgba(47, 60, 106, .92);
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.wn-grafico-info
{
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 6;
    min-width: 160px;
    max-width: 60%;
    max-height: calc(100% - 16px);
    overflow: auto;
    font-size: 11px;
    background: #fff;
    border: 1px solid #b5b5b5;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.wn-grafico-info-titulo
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 6px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #2f3c6a, #2e85ba);
}

.wn-grafico-info-titulo button
{
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.wn-grafico-info table
{
    border-collapse: collapse;
    width: 100%;
}

.wn-grafico-info th, .wn-grafico-info td
{
    padding: 2px 6px;
    border-bottom: 1px solid #ececec;
    text-align: left;
    vertical-align: top;
}

.wn-grafico-info th
{
    color: #2f3c6a;
    white-space: nowrap;
}

/*MINIGRÁFICOS (SparkLine)*/
.wn-sparkline
{
    display: inline-block;
    vertical-align: middle;
}

html[data-tema="escuro"] .wn-grafico-svg text
{
    fill: #d7dbe6;
}

html[data-tema="escuro"] .wn-grafico-info
{
    background: #1b1f2b;
    border-color: #343b52;
    color: #d7dbe6;
}

/*TabMenu: SETA NA ABA QUE ABRE O MENU DA ABA*/
.wn-tab-caixa
{
    position: relative;
    display: inline-flex;
}

.wn-tab-menu-seta
{
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    padding: 0 2px;
    border-left: 1px solid rgba(128, 128, 128, .35);
    opacity: .75;
}

.wn-tab-menu-seta:hover
{
    opacity: 1;
}

.wn-tab-menu
{
    top: 100%;
    left: 0;
}

.wn-grafico-dica.wn-dica-esquerda
{
    transform: translateX(-100%);
}

/*VISUAL LEVE (TRITON): PAINÉIS E GRADES ANINHADOS NÃO DESENHAM BORDA PRÓPRIA; SÓ O CONTÊINER EXTERNO TEM CONTORNO*/
.wn-panel .wn-panel,
.wn-tab-body > .wn-panel,
.wn-tab-body > .wn-grid
{
    border-color: transparent;
    box-shadow: none;
}

.wn-panel .wn-panel-topbar .wn-toolbar
{
    border: 0;
}

/* ---------------------------------------------------------------- CAMPOS SEM O AMARELO DO LEGADO: FOCO COM ANEL AZUL SUAVE */
.wn-input:focus, .wn-select:focus, .wn-textarea:focus, .wn-editor-area:focus
{
    background: var(--surface, #fff);
    border-color: var(--accent, #2e85ba);
    box-shadow: 0 0 0 3px var(--accent-50, rgba(46, 133, 186, .15));
}

.wn-trigger:hover
{
    background: var(--primary-50, #eef4fb);
    color: var(--accent, #2e85ba);
}

.wn-combo-texto.wn-combo-fixo
{
    cursor: pointer;
}

.wn-trigger-limpar
{
    border-left-width: 0;
    color: #a0a7b5;
}

.wn-trigger-limpar:hover
{
    color: #d9534f;
    background: rgba(217, 83, 79, .08);
}

/*LISTA SUSPENSA DO COMBO: CARTÃO COM SOMBRA, CANTOS ARREDONDADOS E REALCE AZUL*/
.wn-combo .wn-combo-lista
{
    margin-top: 4px;
    padding: 4px;
    border: 1px solid var(--border, #e4e7ef);
    border-radius: 8px;
    background: var(--surface, #fff);
    box-shadow: 0 10px 28px rgba(20, 30, 60, .16);
}

.wn-combo .wn-combo-lista li
{
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    color: var(--text, #1d2233);
}

.wn-combo .wn-combo-lista li.wn-realce,
.wn-combo .wn-combo-lista li:hover
{
    background: var(--primary-50, #eef4fb);
    color: var(--primary, #2f3c6a);
}

.wn-combo .wn-combo-lista li.wn-selecionado
{
    font-weight: 600;
    color: var(--accent, #2e85ba);
    box-shadow: inset 3px 0 0 var(--accent, #2e85ba);
}

.wn-combo .wn-combo-lista li.wn-combo-aviso,
.wn-combo .wn-combo-lista li.wn-combo-aviso:hover
{
    background: transparent;
    color: var(--cinza-texto, #8a93a6);
    font-style: italic;
    cursor: default;
}

/* ---------------------------------------------------------------- CALENDÁRIO (DateField / CampoData) */
.wn-datefield .wn-field-caixa,
.campo-data
{
    position: relative;
}

.wn-cal-fundo
{
    position: fixed;
    inset: 0;
    z-index: 1190;
}

.wn-cal
{
    width: 272px;
    padding: 10px 10px 8px;
    border: 1px solid var(--border, #e4e7ef);
    border-radius: 12px;
    background: var(--surface, #fff);
    color: var(--text, #1d2233);
    box-shadow: 0 16px 40px rgba(20, 30, 60, .2);
    font-family: Poppins, Segoe UI, sans-serif;
    font-size: 12.5px;
    user-select: none;
}

.wn-cal.wn-cal-suspenso
{
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1200;
    animation: wn-cal-surgir .16s ease-out;
}

@keyframes wn-cal-surgir
{
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.wn-cal-cab
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary, #2f3c6a), var(--accent, #2e85ba));
}

.wn-cal-nav,
.wn-cal-titulo
{
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

.wn-cal-nav
{
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.wn-cal-nav .glifo,
.wn-cal-titulo .glifo
{
    color: #fff;
}

.wn-cal-nav:hover,
.wn-cal-titulo:not(.wn-sem-clique):hover
{
    background: rgba(255, 255, 255, .18);
}

.wn-cal-titulo
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
}

.wn-cal-titulo.wn-sem-clique
{
    cursor: default;
}

.wn-cal-semana,
.wn-cal-dias
{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.wn-cal-semana span
{
    padding: 4px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--cinza-texto, #8a93a6);
}

.wn-cal-dia
{
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text, #1d2233);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.wn-cal-dia.wn-fds
{
    color: var(--accent, #2e85ba);
}

.wn-cal-dia.wn-fora
{
    color: #c3c8d2;
}

.wn-cal-dia:hover:not(:disabled)
{
    background: var(--primary-50, #eef4fb);
}

.wn-cal-dia.wn-hoje
{
    box-shadow: inset 0 0 0 1.5px var(--accent, #2e85ba);
    font-weight: 600;
}

.wn-cal-dia.wn-sel,
.wn-cal-dia.wn-sel:hover
{
    background: linear-gradient(135deg, var(--primary, #2f3c6a), var(--accent, #2e85ba));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(46, 133, 186, .35);
}

.wn-cal-dia:disabled
{
    opacity: .35;
    cursor: not-allowed;
}

.wn-cal-meses
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px 0;
}

.wn-cal-mes
{
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text, #1d2233);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.wn-cal-mes:hover
{
    background: var(--primary-50, #eef4fb);
}

.wn-cal-mes.wn-sel
{
    background: linear-gradient(135deg, var(--primary, #2f3c6a), var(--accent, #2e85ba));
    color: #fff;
    font-weight: 600;
}

.wn-cal-rodape
{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #eef0f5);
}

.wn-cal-hoje,
.wn-cal-limpar
{
    padding: 5px 16px;
    border: 1px solid var(--border, #d9dde6);
    border-radius: 16px;
    background: var(--surface, #fff);
    color: var(--primary, #2f3c6a);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.wn-cal-hoje:hover
{
    border-color: var(--accent, #2e85ba);
    background: var(--primary-50, #eef4fb);
}

.wn-cal-limpar
{
    color: var(--cinza-texto, #8a93a6);
}

.wn-cal-limpar:hover
{
    color: #d9534f;
    border-color: rgba(217, 83, 79, .4);
}

html[data-tema="escuro"] .wn-cal-dia.wn-fora
{
    color: #4a5266;
}

/*LISTA FIXA DO COMBO: O readonly É SÓ PARA NÃO DIGITAR; O CAMPO CONTINUA COM APARÊNCIA DE EDITÁVEL (txtchave MANTÉM O CINZA)*/
.wn-input.wn-combo-texto.wn-combo-fixo[readonly]:not(.txtchave)
{
    background: var(--surface, #fff);
    color: var(--text, #1d2233);
    cursor: pointer;
}

/* ---------------------------------------------------------------- CAMPO COM BOTÕES (ComboBox, DateField, TextField COM Triggers): UMA CAIXA SÓ, ARREDONDADA,
   COM OS BOTÕES DENTRO (SEM BORDAS PRÓPRIAS) E ANEL DE FOCO NO CAMPO INTEIRO */
.wn-field-caixa:has(> .wn-trigger)
{
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--border, #d9dde6);
    border-radius: 7px;
    background: var(--surface, #fff);
    transition: border-color .15s, box-shadow .15s;
}

.wn-field-caixa:has(> .wn-trigger):hover
{
    border-color: var(--primary-200, #b9c6dd);
}

.wn-field-caixa:has(> .wn-trigger):focus-within,
.wn-combo.wn-aberta > .wn-field-caixa,
.wn-datefield.wn-aberta > .wn-field-caixa
{
    border-color: var(--accent, #2e85ba);
    box-shadow: 0 0 0 3px var(--accent-50, rgba(46, 133, 186, .15));
}

.wn-field-caixa:has(> .wn-trigger) > .wn-input,
.wn-field-caixa:has(> .wn-trigger) > .wn-input:focus
{
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 7px 0 0 7px;
    background: transparent;
    box-shadow: none;
}

/*CAMPO CHAVE (txtchave) E INVÁLIDO REFLETEM NA CAIXA*/
.wn-field-caixa:has(> .wn-input.txtchave)
{
    background: var(--wn-chave, #ececec);
}

.wn-field-caixa:has(> .wn-input.txtchave) > .wn-input
{
    background: transparent !important;
}

.wn-field-caixa:has(> .wn-input.wn-invalido)
{
    border-color: var(--wn-vermelho, #d9534f);
    box-shadow: 0 0 0 2px rgba(217, 83, 79, .15);
}

.wn-field-caixa > .wn-trigger,
.wn-field-caixa > .wn-trigger:hover,
.wn-field-caixa > .wn-trigger:focus
{
    flex: 0 0 auto;
    align-self: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--cinza-texto, #8a93a6);
    outline: none;
    box-shadow: none;
    transition: background .15s, color .15s, transform .2s;
}

.wn-field-caixa > .wn-trigger .glifo
{
    color: inherit;
}

.wn-field-caixa > .wn-trigger:hover:not(:disabled)
{
    background: var(--primary-50, #eef4fb);
    color: var(--accent, #2e85ba);
}

.wn-field-caixa > .wn-trigger:disabled
{
    opacity: .45;
    cursor: default;
}

/*SETA: GIRA COM A LISTA ABERTA*/
.wn-combo.wn-aberta .wn-trigger-seta
{
    color: var(--accent, #2e85ba);
    transform: rotate(180deg);
}

/*X DE LIMPAR: DISCRETO, VERMELHO AO PASSAR O MOUSE, SEPARADO DA SETA POR UM FILETE*/
.wn-field-caixa > .wn-trigger.wn-trigger-limpar
{
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin-right: 0;
    border-radius: 50%;
    color: #b3b9c6;
}

.wn-field-caixa > .wn-trigger.wn-trigger-limpar:hover
{
    background: rgba(217, 83, 79, .1);
    color: #d9534f;
}

.wn-field-caixa > .wn-trigger.wn-trigger-limpar + .wn-trigger::before
{
    content: "";
    position: relative;
    left: -3px;
    width: 1px;
    height: 14px;
    margin-right: -1px;
    background: var(--border, #e4e7ef);
}

.wn-field-caixa > .wn-trigger.wn-trigger-limpar + .wn-trigger
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*CAMPOS SIMPLES COM O MESMO ARREDONDAMENTO E TRANSIÇÃO DOS CAMPOS COM BOTÕES*/
.wn-input, .wn-select, .wn-textarea
{
    min-height: 28px;
    border-color: var(--border, #d9dde6);
    border-radius: 7px;
    transition: border-color .15s, box-shadow .15s;
}

.wn-input:hover:not(:focus):not([readonly]):not([disabled]), .wn-textarea:hover:not(:focus)
{
    border-color: var(--primary-200, #b9c6dd);
}

/* ---------------------------------------------------------------- CALLOUT ELEGANTE: CARTÃO ESCURO, FAIXA COLORIDA PELO TIPO (UI), SETA E ENTRADA SUAVE */
.wn-callout
{
    --wn-callout-bg: #1f2a44;
    --wn-callout-faixa: var(--accent, #2e85ba);
    min-width: 180px;
    max-width: 280px;
    padding: 9px 13px 10px 15px;
    border: 0;
    border-radius: 10px;
    background: var(--wn-callout-bg);
    color: #eef2f8;
    font-family: Poppins, Segoe UI, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .01em;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .28), 0 2px 6px rgba(15, 23, 42, .18);
    transition: opacity .18s ease, visibility .18s ease, margin .18s ease;
}

/*FAIXA DE COR À ESQUERDA (TIPO DO BALÃO)*/
.wn-callout::before
{
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--wn-callout-faixa);
}

.wn-callout::after
{
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--wn-callout-bg);
}

.wn-callout-titulo
{
    margin-bottom: 4px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

/*ENTRADA: O BALÃO SOBE / DESCE 4PX ENQUANTO APARECE*/
.wn-callout-top, .wn-callout-topleft, .wn-callout-topright
{
    margin-bottom: -4px;
}

.wn-callout-bottom, .wn-callout-bottomleft, .wn-callout-bottomright
{
    margin-top: -4px;
}

.wn-tem-callout:hover > .wn-callout.wn-gatilho-hover,
.wn-tem-callout:focus-within > .wn-callout.wn-gatilho-focus,
.wn-callout.wn-gatilho-manual:not(.wn-oculto)
{
    margin-top: 0;
    margin-bottom: 0;
}

/*TIPOS (UI): O FUNDO CONTINUA ESCURO; SÓ A FAIXA MUDA DE COR*/
.wn-callout.wn-ui-warning { background: var(--wn-callout-bg); color: #eef2f8; --wn-callout-faixa: #f5b041; }
.wn-callout.wn-ui-info    { background: var(--wn-callout-bg); color: #eef2f8; --wn-callout-faixa: #5bc0de; }
.wn-callout.wn-ui-danger  { background: var(--wn-callout-bg); color: #eef2f8; --wn-callout-faixa: #f16a64; }
.wn-callout.wn-ui-success { background: var(--wn-callout-bg); color: #eef2f8; --wn-callout-faixa: #5cc66a; }
.wn-callout.wn-ui-primary { background: var(--wn-callout-bg); color: #eef2f8; --wn-callout-faixa: #6fb7ea; }

.wn-callout b, .wn-callout strong
{
    color: #fff;
}

/*TEMA ESCURO: CARTÃO UM POUCO MAIS CLARO QUE O FUNDO, COM CONTORNO SUTIL*/
html[data-tema="escuro"] .wn-callout
{
    --wn-callout-bg: #2a3450;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}

/*BALÃO SOBRE QUADRO COM TÍTULO (FieldSet): AFASTADO PARA NÃO COBRIR A LEGENDA; LARGURA QUE EVITA TEXTO EM MUITAS LINHAS*/
.wn-fieldset > .wn-callout-top, .wn-fieldset > .wn-callout-topleft, .wn-fieldset > .wn-callout-topright
{
    bottom: calc(100% + 22px);
}

.wn-callout
{
    min-width: 220px;
    max-width: 320px;
    width: max-content;
}

/* ---------------------------------------------------------------- RESPONSIVIDADE: TELAS ESTREITAS */
@media (max-width: 600px)
{
    /*LINHAS DE CAMPOS (FieldContainer HBox): CADA PAR RÓTULO + CAMPO OCUPA UMA LINHA, O CAMPO PREENCHE O RESTANTE*/
    .wn-fieldcontainer.wn-hbox
    {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .wn-fieldcontainer.wn-hbox > .wn-label
    {
        flex: 0 0 110px;
        width: 110px !important;
        padding-left: 0;
        text-align: left;
    }

    .wn-fieldcontainer.wn-hbox > .wn-field
    {
        flex: 1 1 calc(100% - 120px) !important;
        width: auto !important;
        min-width: 0;
    }

    /*JANELAS: OCUPAM A LARGURA DA TELA COM UMA PEQUENA MARGEM*/
    .wn-window
    {
        max-width: calc(100vw - 16px);
    }

    /*ABAS: A FAIXA ROLA NA HORIZONTAL EM VEZ DE ULTRAPASSAR A TELA*/
    .wn-tabbar
    {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .wn-tabbar > *
    {
        flex-shrink: 0;
    }
}
