/* Camada responsiva do Manual Online. Navegacao recolhivel em desktop e mobile. */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

.top .logo img {
    max-width: 100%;
    height: auto;
}

.manual-layout-row {
    position: relative;
    width: 100%;
    margin-left: 0;
}

.manual-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    min-height: 44px;
    margin: 8px 0 14px;
    padding: 9px 13px;
    border: 1px solid #c8d7e2;
    border-radius: 7px;
    background: #f6fafc;
    color: #075f9b;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}

.manual-menu-button:hover,
.manual-menu-button:focus {
    background: #eaf4fa;
    color: #064d7c;
}

.manual-menu-button:focus {
    outline: 2px solid #1677a8;
    outline-offset: 2px;
}

.manual-menu-button .manual-menu-icon {
    width: 22px;
    height: 22px;
    margin-left: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.manual-menu-button[aria-expanded="true"] .manual-menu-icon {
    transform: rotate(180deg);
}

.manual-sidebar {
    display: none !important;
    position: absolute;
    z-index: 1000;
    top: 58px;
    left: 0;
    float: none !important;
    width: 370px !important;
    max-width: calc(100vw - 30px);
    width: min(370px, calc(100vw - 30px)) !important;
    margin-left: 0 !important;
}

.manual-sidebar.is-open {
    display: block !important;
}

.manual-sidebar .nav-list {
    max-height: calc(100vh - 175px);
    margin: 0;
    padding: 9px;
    overflow-y: auto;
    border: 1px solid #d6e1e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 55, 75, .18);
    -webkit-overflow-scrolling: touch;
}

/*
 * O Bootstrap antigo desloca .nav-header para fora da lista com margens
 * negativas. Dentro da caixa recolhivel isso cortava as primeiras letras dos
 * titulos de topico. Mantemos o recuo alinhado aos links, sem alterar os itens
 * gravados no banco.
 */
.manual-sidebar .nav-list .nav-header {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 4px;
    padding-left: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.manual-sidebar .nav > li > a,
.manual-sidebar .nav-list > li > a {
    white-space: normal;
    overflow-wrap: anywhere;
}

.manual-layout-row > .span10,
.manual-layout-row > .manual-content.span10 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
}

/*
 * O Bootstrap antigo aplica margin-left negativo em .row e largura fixa nos
 * spans. Quando o artigo passou a ocupar a linha inteira, essas regras faziam
 * as primeiras letras sairem da tela no desktop. Neutralizamos somente as
 * tres linhas estruturais criadas por page.php, sem alterar grades que possam
 * existir dentro do HTML salvo nos artigos.
 */
#manual-conteudo > .row {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#manual-conteudo > .row > [class*="span"] {
    display: block;
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
}

@media (min-width: 768px) {
    .manual-layout-row > .manual-content.span10 {
        width: calc(100% - 16px) !important;
        max-width: 1560px;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-bottom: 32px;
    }
}

.manual-content,
.row-fluid > .span10 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.manual-content img,
.manual-content video,
.manual-content object,
.manual-content embed,
.row-fluid > .span10 img,
.row-fluid > .span10 video,
.row-fluid > .span10 object,
.row-fluid > .span10 embed {
    max-width: 100% !important;
    height: auto !important;
}

.manual-content iframe,
.row-fluid > .span10 iframe {
    max-width: 100%;
}

.manual-content pre,
.row-fluid > .span10 pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.manual-content code,
.row-fluid > .span10 code {
    overflow-wrap: normal;
}

.manual-content table,
.row-fluid > .span10 table {
    max-width: 100%;
}

/* Blocos didaticos usados nos guias iniciais do SYSWEB. */
.manual-guide {
    color: #263942;
}

.manual-lead,
.manual-guide .manual-lead {
    max-width: 980px;
    margin: 0 0 20px;
    color: #425b67;
    font-size: 18px;
    line-height: 1.6;
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.manual-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #d6e3e9;
    border-radius: 10px;
    background: #f8fbfc;
}

.manual-card h3,
.manual-card h4 {
    margin-top: 0;
    color: #145f88;
}

.manual-note {
    margin: 17px 0;
    padding: 14px 16px;
    border-left: 4px solid #1677a8;
    border-radius: 7px;
    background: #edf7fc;
}

.manual-note.warning {
    border-left-color: #c88b08;
    background: #fff7dd;
}

.manual-note.success {
    border-left-color: #2d8b57;
    background: #ebf8f0;
}

.manual-steps {
    padding-left: 24px;
}

.manual-steps li {
    margin: 9px 0;
}

.manual-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7f0f5;
    color: #0f4868;
    font-size: 13px;
    font-weight: bold;
}

.manual-figure {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #d6e3e9;
    border-radius: 10px;
    background: #f8fbfc;
}

.manual-figure img {
    display: block;
    width: 100%;
    border-radius: 7px;
}

.manual-figure figcaption {
    padding: 9px 3px 1px;
    color: #526772;
    font-size: 14px;
}

/* Navegacao didatica entre artigos. O modo EAD remove este bloco no servidor. */
.manual-related-links {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #d6e3e9;
}

.manual-related-links strong {
    display: block;
    margin-bottom: 8px;
}

.manual-related-links a {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 8px 11px;
    border-radius: 7px;
    color: #0f4868;
    background: #e7f0f5;
    font-weight: bold;
    text-decoration: none;
}

.manual-related-links a:hover,
.manual-related-links a:focus {
    color: #0b3d58;
    background: #d5e8f2;
    text-decoration: none;
}

.manual-guide .table th {
    color: #173d50;
    background: #edf4f7;
}

@media (max-width: 767px) {
    body {
        padding-right: 0 !important;
        padding-left: 0 !important;
        font-size: 16px;
        line-height: 1.55;
    }

    .container-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .top {
        height: auto !important;
        min-height: 74px;
        padding: 12px 0 8px;
    }

    .top .logo {
        float: none;
    }

    .top .logo img {
        width: auto;
        max-width: 210px;
        max-height: 58px;
    }

    .manual-menu-button {
        width: 100%;
        margin: 8px 0 12px;
    }

    .manual-sidebar {
        position: static;
        width: 100% !important;
    }

    .manual-sidebar .nav-list {
        max-height: 66vh;
        margin: 0 0 14px;
        box-shadow: 0 4px 14px rgba(20, 55, 75, .08);
    }

    .manual-sidebar .nav > li > a,
    .manual-sidebar .nav-list > li > a {
        min-height: 42px;
        padding-top: 10px;
        padding-bottom: 10px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .manual-sidebar .nav-header {
        margin-top: 7px;
        white-space: normal;
    }

    .manual-content.span10,
    .row-fluid > .span10 {
        float: none !important;
        width: 100% !important;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .manual-content .row,
    .row-fluid > .span10 .row {
        margin-left: 0;
    }

    .manual-content .row > [class*="span"],
    .row-fluid > .span10 .row > [class*="span"] {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .manual-content h2,
    .row-fluid > .span10 h2 {
        margin: 8px 0 16px;
        font-size: 25px;
        line-height: 1.2;
    }

    .manual-content h3,
    .row-fluid > .span10 h3 {
        font-size: 21px;
        line-height: 1.28;
    }

    .manual-content h4,
    .row-fluid > .span10 h4 {
        font-size: 18px;
        line-height: 1.32;
    }

    .manual-content p,
    .manual-content li,
    .manual-content td,
    .manual-content th,
    .row-fluid > .span10 p,
    .row-fluid > .span10 li,
    .row-fluid > .span10 td,
    .row-fluid > .span10 th {
        font-size: 16px;
        line-height: 1.55;
    }

    .manual-content table,
    .row-fluid > .span10 table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .manual-content table td,
    .manual-content table th,
    .row-fluid > .span10 table td,
    .row-fluid > .span10 table th {
        min-width: 130px;
        vertical-align: top;
    }

    .manual-content a,
    .row-fluid > .span10 a {
        overflow-wrap: anywhere;
    }

    .manual-content blockquote,
    .row-fluid > .span10 blockquote {
        margin-right: 0;
        margin-left: 0;
        padding: 12px 14px;
    }

    .manual-grid {
        grid-template-columns: 1fr;
    }

    .manual-card {
        padding: 14px;
    }

}
