/**
 * 
 */
@media (min-width: 900px) {}
@media (min-width: 768px) {}
@media (max-width: 768px) {
    #logo-saude {
        display: none !important;
    }
}


li.menu_multinivel ul {
    left: 100%;
    position: absolute;
    top: 0;
    width: 225px;
    z-index: 4000;
    background: #2A3F54 none repeat scroll 0% 0%;
    display: none !important;
    /*list-style: outside none none;*/
}
li.menu_multinivel:hover>ul {
    display: block !important;
}
body.nav-sm li.menu_multinivel span.fa {
    display: block !important;
}
ul.side-menu li a {
    cursor: pointer;
}
.shadow {
    text-shadow:1px 1px #000;
}

.system_title {
    font-weight: 400;
    font-size: 22px;
    display: block;
    color: #73879c;
}
.system_subtitle {
    font-weight: 200;
    font-size: 10px;
    display: block;
    color: #73879c;
    margin-top: -20px;
    margin-left: 60px;
}
.system_title:hover,
.system_title:focus {
    text-decoration: none
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

.select2 .select2-container .select2-container--default {
    width: 100% !important;
}

/* PAGINACAO */
.page-number {}
.page-number span {
    padding: 6px 12px;
    float: left;
}
.page-number input {
    font-size: 10px;
    float: left;
    height: 30px;
    width: 80px;
}

.required:before {
    color: #FF0000;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 2px;
    content: "\2a";
}

.pull-right {
    float: right;
}
.version {
    color: white;
    float: right;
    padding-right: 10px;
    padding-top: 9px;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

/* =========================================
   GESTÃO DE ANAMNESE - Estilos visuais
   ========================================= */

/* ---- Dados Gerais (card superior) ---- */
.anamnese-dados-gerais-card {
    background: #f9fafb;
    border: 1px solid #e3e8ef;
    border-left: 4px solid #73879c;
    border-radius: 4px;
    padding: 14px 6px 4px;
    margin: 0 15px 18px;
}

/* Label principal (Código, Nome, Versão) */
.anamnese-label-principal {
    font-weight: 600;
    font-size: 13px;
    color: #3d4f60;
    margin-bottom: 5px;
}
.anamnese-label-principal .text-muted {
    font-size: 12px;
    margin-right: 3px;
}

/* Campo versão */
.anamnese-versao-wrapper {
    position: relative;
}
.anamnese-versao-input {
    background-color: #f0f2f5 !important;
    cursor: not-allowed;
    color: #6c7a8a;
    font-weight: 600;
}
.anamnese-versao-hint {
    display: block;
    margin-top: 4px;
    color: #95a5a6;
    font-size: 11px;
}

/* ---- Toolbar "Nova Seção" ---- */
.anamnese-secao-toolbar {
    margin-bottom: 10px;
}
.anamnese-secao-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f5f7fa;
    border: 1px dashed #c8d4de;
    border-radius: 5px;
}
.anamnese-btn-nova-secao {
    white-space: nowrap;
}
.anamnese-secao-contagem {
    background-color: #1ABB9C;
    font-size: 11px;
    padding: 3px 8px;
}

/* ---- Nome da seção input ---- */
.anamnese-secao-nome-input {
    font-weight: 600;
    font-size: 14px;
    border-color: #c8d4de;
    background: #fff;
    transition: border-color 0.2s;
}
.anamnese-secao-nome-input:focus {
    border-color: #1ABB9C;
    box-shadow: 0 0 0 2px rgba(26,187,156,0.12);
}

/* ---- Labels internos dos campos da pergunta ---- */
.anamnese-campo-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a8ea0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    display: block;
}
.anamnese-campo-label .fa {
    font-size: 10px;
    margin-right: 2px;
}

/* ---- Header da pergunta: badges inline ---- */
.anamnese-tipo-badge {
    display: inline-block;
    background: #e8f5f2;
    color: #1a8a74;
    border: 1px solid #b2dfd7;
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}
.anamnese-dependencia-badge {
    display: inline-block;
    background: #fff8e8;
    color: #8a6d1a;
    border: 1px solid #e0d0a0;
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---- Botão remover pergunta ---- */
.anamnese-btn-remover-pergunta {
    margin-top: 2px;
}

/* ---- Bloco visual de dependência ---- */
.anamnese-dependencia-bloco {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbf0;
    border: 1px solid #f0e4b0;
    border-left: 3px solid #f0c040;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 15px 12px;
}
.anamnese-dependencia-icone {
    color: #c8a020;
    font-size: 16px;
    margin-top: 22px;
    flex-shrink: 0;
}
.anamnese-dependencia-campo {
    flex: 1;
}
.anamnese-dependencia-input {
    max-width: 280px;
    border-color: #e0c870;
}
.anamnese-dependencia-input:focus {
    border-color: #c8a020;
    box-shadow: 0 0 0 2px rgba(200,160,32,0.15);
}

/* ---- Rodapé de pergunta + "adicionar mais" ---- */
.anamnese-adicionar-pergunta-rodape {
    padding: 8px 0 4px;
    border-top: 1px dashed #e0e6ec;
    margin-top: 8px;
}
.anamnese-btn-adicionar-pergunta {
    color: #73879c;
    border-color: #c8d4de;
    font-size: 12px;
    transition: color 0.15s, border-color 0.15s;
}
.anamnese-btn-adicionar-pergunta:hover {
    color: #1ABB9C;
    border-color: #1ABB9C;
    background: #f0faf8;
}

/* ---- Botão principal "Salvar Modelo" ---- */
.anamnese-btn-salvar {
    padding: 7px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ---- Hover na linha de pergunta ---- */
.anamnese-pergunta-row {
    transition: box-shadow 0.15s, border-color 0.15s;
}
.anamnese-pergunta-row:hover {
    border-color: #c8d6e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Ícone de informação ao lado dos labels */
.anamnese-info-icon {
    color: #aab4be;
    font-size: 12px;
    margin-left: 4px;
    cursor: help;
    transition: color 0.2s;
}
.anamnese-info-icon:hover {
    color: #1ABB9C;
}

/* Dica de apoio ao usuário (estado inicial vazio) */
.anamnese-hint {
    margin-left: 12px;
    color: #95a5a6;
    font-size: 13px;
    font-style: italic;
}

/* Painel de cada seção */
.anamnese-secao-panel {
    border-left: 4px solid #1ABB9C !important;
    margin-bottom: 18px;
}

/* Cabeçalho da seção */
.anamnese-secao-title {
    background-color: #f8f9fa;
    padding: 8px 5px !important;
    border-radius: 2px 2px 0 0;
}

/* Número da seção (indicador de etapa) */
.anamnese-secao-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}
.anamnese-secao-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.anamnese-secao-step-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1ABB9C;
    line-height: 1;
}
.anamnese-secao-step-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1ABB9C, #15a085);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(26, 187, 156, 0.40);
    line-height: 1;
}

/* Estado vazio de perguntas */
.anamnese-empty-perguntas {
    text-align: center;
    padding: 24px 0 16px;
    color: #b0bec5;
}
.anamnese-empty-perguntas p {
    margin-top: 8px;
    font-size: 13px;
}

/* Cada linha de pergunta */
.anamnese-pergunta-row {
    background: #fdfdfd;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    margin: 0 0 12px 0;
    padding: 10px 10px 4px 10px;
}
.anamnese-pergunta-row:last-child {
    margin-bottom: 4px;
}

/* Cabeçalho interno da pergunta */
.anamnese-pergunta-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
}

/* Badge de número da pergunta */
.anamnese-badge-pergunta {
    background-color: #73879c;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    vertical-align: middle;
}

/* Campos internos da pergunta */
.anamnese-pergunta-campos {
    margin: 0;
}

/* Grupo de checkbox (Obrigatória) com alinhamento vertical */
.anamnese-obrigatoria-group label {
    display: block;
}
.anamnese-checkbox-wrapper {
    padding-top: 7px;
    text-align: center;
}
.anamnese-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Container das opções de resposta */
.anamnese-opcoes-container {
    background: #f5f7fa;
    border: 1px solid #d5dce6;
    border-radius: 6px;
    padding: 0;
    margin-top: 6px;
    overflow: hidden;
}

/* Título interno do bloco de opções */
.anamnese-opcoes-titulo {
    background: #e8edf3;
    border-bottom: 1px solid #d0d8e4;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}
.anamnese-opcoes-titulo .anamnese-info-icon {
    margin-left: 2px;
    color: #8fa0b2;
}
.anamnese-opcoes-count {
    margin-left: auto;
    background-color: #73879c;
    font-size: 10px;
}

/* Header e linhas dentro do container ajustado */
.anamnese-opcoes-container .anamnese-opcao-header,
.anamnese-opcoes-container .anamnese-opcao-row,
.anamnese-opcoes-container .anamnese-opcao-vazio,
.anamnese-opcoes-container .anamnese-opcao-adicionar {
    padding-left: 14px;
    padding-right: 14px;
}
.anamnese-opcoes-container .anamnese-opcao-header {
    padding-top: 8px;
    padding-bottom: 6px;
    margin-bottom: 4px;
}
.anamnese-opcoes-container .anamnese-opcao-row {
    margin: 0 14px 5px;
    padding: 5px 8px;
}
.anamnese-opcoes-container .anamnese-opcao-row:last-of-type {
    margin-bottom: 0;
}
.anamnese-opcoes-container .anamnese-opcao-adicionar {
    padding-top: 8px;
    padding-bottom: 10px;
    margin-top: 6px;
}

/* Estado vazio de opções */
.anamnese-opcao-vazio {
    padding: 8px 14px;
    color: #8fa0b2;
    font-size: 12px;
}

/* Input de valor da opção (geralmente numérico/pequeno) */
.anamnese-opcao-valor-input {
    font-family: monospace;
    color: #5a6a7e;
}

/* Cabeçalho e linhas de opção — layout flexbox */
.anamnese-opcao-header,
.anamnese-opcao-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.anamnese-opcao-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dde3ea;
    font-size: 12px;
}

/* Colunas de proporção fixa */
.anamnese-opcao-num-col        { flex: 0 0 28px;  text-align: center; }
.anamnese-opcao-descricao-col  { flex: 1 1 0; }
.anamnese-opcao-valor-col      { flex: 0 0 110px; }
.anamnese-opcao-acao-col       { flex: 0 0 30px;  text-align: center; }

/* Cada linha de opção */
.anamnese-opcao-row {
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 5px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.anamnese-opcao-row:last-of-type {
    margin-bottom: 0;
}
.anamnese-opcao-row:hover {
    border-color: #b0bec5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Inputs dentro das linhas de opção */
.anamnese-opcao-input {
    height: 28px;
    padding: 3px 8px;
    font-size: 12px;
    border-color: #d0d8e0;
}
.anamnese-opcao-input:focus {
    border-color: #1ABB9C;
    box-shadow: 0 0 0 2px rgba(26,187,156,0.15);
}

/* Badge de número da opção */
.anamnese-badge-opcao {
    background-color: #aab4be;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    color: #fff;
}

/* Botão remover opção */
.anamnese-opcao-remove-btn {
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.anamnese-opcao-remove-btn:hover {
    opacity: 1;
}

/* Área do botão "Adicionar Opção" */
.anamnese-opcao-adicionar {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #cfd8dc;
}
.anamnese-btn-adicionar-opcao {
    color: #555;
    border-color: #c8d0d8;
    background: #fff;
    font-size: 12px;
    transition: background 0.15s, border-color 0.15s;
}
.anamnese-btn-adicionar-opcao:hover {
    background: #edf6f4;
    border-color: #1ABB9C;
    color: #1ABB9C;
}

/* Aviso de código duplicado entre seções */
.anamnese-codigo-duplicado-aviso {
    font-size: 11px;
    color: #c0392b;
    font-weight: 500;
    margin-top: 3px;
}

/* Badge de rascunho na aba Anamnese */
.anamnese-label-rascunho {
    background-color: #e67e22;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Barra de ações principais (salvar/voltar) */
.anamnese-acoes-principais {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #e6e9ed;
}
