:root {
    --main-color: #dee6ea;
    --body-bg-color: #dbe6ec;

    --sidebar-width: 215px;
    --sidebar-narrow-bg-color: #dbe6ec;

    --toolbar-bg-color: #053c58;
    --sidebar-toolbar-bg-color: #053c58;
    --toolbar-icon-opacity: 0.8;
    --toolbar-icon-bg-color: #dbe6ec;
    --toolbar-icon-hover-bg-color: #ffffff;
    --toolbar-border-color: #06364f;
    --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 #06364f, 0 1px 0 #06364f, 0 0 1px #06364f;

    --progressBar-bg-color: #053c58;
    --progressBar-color: #0073ae;
    --progressBar-blend-color: #9cbdcd;

    --button-hover-color: #ffffff22;
    --toggled-btn-color: #dbe6ec;
    --dropdown-btn-bg-color: #02537e;
    --separator-color: #ffffff55;

    --doorhanger-bg-color: #032639;
    --doorhanger-border-color: #04354e;
    --doorhanger-hover-color: #dbe6ec;
    --doorhanger-hover-bg-color: #ffffff22;
    --doorhanger-separator-color: #afb8bd;
    --dialog-button-border: 1px solid #dbe6ec88;
    --dialog-button-bg-color: #ffffff05;
    --dialog-button-hover-bg-color: #ffffff33;

    --thumbnail-hover-color: #1e5977;
    --thumbnail-selected-color: #053c58;

    --field-color: rgb(6 6 6);
    --field-bg-color: rgb(255 255 255);
    --field-border-color: rgb(187 187 188);
    --treeitem-color: rgb(0 0 0 / 0.8);
    --treeitem-bg-color: rgb(0 0 0 / 0.15);
    --treeitem-hover-color: rgb(0 0 0 / 0.9);
    --treeitem-selected-color: rgb(0 0 0 / 0.9);
    --treeitem-selected-bg-color: rgb(0 0 0 / 0.25);
}

#sidebarContent {
    inset-block: 34px 0;
}

:is(.toolbar, .editorParamsToolbar, .findbar, #sidebarContainer) :is(input, button, select),
.secondaryToolbar :is(input, button, a, select) {
    font-size: 12px !important;
}

#pageNumber {
    width: 30px;
    padding: 5px 7px;
}

.toolbarButton,
.splitToolbarButton > .toolbarButton {
    margin-left: 2px;
    margin-right: 2px;
}

.secondaryToolbarButton {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

#secondaryToolbarButtonContainer {
    max-width: 240px;
}

#secondaryOpenFile {
    display: none !important;
}

.govbr-widget-assinatura-pdf {
    --escala: 1;
    --posicao-x: 0;
    --posicao-y: 0;

    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px;
    opacity: 0;

    cursor: move;
    border: 2px solid #00000033;
    border-radius: 3px;
    background: #bbd2dde9;

    transform-origin: 0 0;
    transform: translate(var(--posicao-x), var(--posicao-y)) scale(var(--escala));
    transition: opacity 0.25s;

    z-index: 2;
}

.govbr-widget-assinatura-pdf.govbr-widget-assinatura-pdf-visivel {
    pointer-events: all;
    opacity: 1;
}

.govbr-widget-assinatura-pdf::before {
    display: block;
    grid-column: 1;
    grid-row: 1;
    content: 'AREA DA ASSINATURA NÃO SOBREPONHA';
    max-width: 160px;
    color: #00000044;

    font-size: 12px;
    line-height: 1;
    font-family: sans-serif;
    font-weight: 800;
    text-align: center;

    pointer-events: none;
    white-space: initial;
}

.govbr-widget-assinatura-pdf canvas {
    display: none;
}

.govbr-widget-assinatura-pdf.govbr-widget-assinatura-possui-canvas::before {
    display: none;
}

.govbr-widget-assinatura-pdf.govbr-widget-assinatura-possui-canvas canvas {
    display: block;
    pointer-events: none;
    grid-column: 1;
    grid-row: 1;
    background: #ffffff;
    opacity: 0.5;
}

.govbr-assinatura-pdf {
    --escala: 1;
    --posicao-x: 0;
    --posicao-y: 0;
    --tamanho-x: 0;
    --tamanho-y: 0;

    position: absolute;
    top: 0;
    left: 0;
    width: var(--tamanho-x);
    height: var(--tamanho-y);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 1;
    background: #efefef99;
    opacity: 0.05;
    border: 1px solid var(--toolbar-bg-color);

    transform-origin: 0 0;
    transform: translate(var(--posicao-x), var(--posicao-y)) scale(var(--escala));
    transition: opacity 0.25s;

    overflow: hidden;
}

.govbr-assinatura-pdf:hover {
    opacity: 0.75;
}

.govbr-assinatura-pdf::before {
    content: 'Assinatura';
    display: block;
    color: var(--toolbar-bg-color);
    font-weight: bold;
    font-size: 1.25rem;
    font-family: sans-serif;
    text-align: center;
}

.govbr-assinatura-pdf::after {
    content: 'Clique para mais informações';
    color: var(--toolbar-bg-color);
    font-weight: bold;
    font-size: 1rem;
    font-family: sans-serif;
    text-align: center;
}
