/* ============================================================
   ESTEIO CONECTA — DASHBOARD DO CANDIDATO
   Sombra inferior semi-transparente acentuada no header (via ::after)
   ============================================================ */

/* ------------------------------------------------------------
   Variáveis
   ------------------------------------------------------------ */
:root {
    /* Layout */
    --sidebar-largura: 275px;
    --sidebar-largura-mini: 68px;
    --header-altura: 64px;
    --transicao: 0.25s ease-in-out;

    /* Paleta da marca */
    --azul-primario: #0d6efd;
    --azul-escuro: #0a58ca;
    --azul-profundo: #084298;
    --azul-claro: #e7f1ff;

    /* Sidebar escura azulada */
    --sidebar-bg-inicio: #1e293b;
    --sidebar-bg-fim: #0f172a;
    --sidebar-bg-hover: rgba(255, 255, 255, 0.08);
    --sidebar-borda: rgba(255, 255, 255, 0.08);

    /* Textos */
    --texto-escuro: #1e293b;
    --texto-muted: #64748b;
    --sidebar-texto: rgba(255, 255, 255, 0.72);
    --sidebar-texto-ativo: #ffffff;

    /* Apoio */
    --cinza-fundo: #f4f6f9;
    --branco: #ffffff;
    --vermelho-erro: #dc3545;

    /* Sombras */
    --sombra-suave: 0 8px 24px rgba(13, 110, 253, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --sombra-media: 0 16px 36px rgba(0, 0, 0, 0.16);
    --sombra-azul: 0 4px 12px rgba(13, 110, 253, 0.35);

    /* Raios */
    --raio-pequeno: 6px;
    --raio-medio: 8px;
    --raio-grande: 12px;
}

/* ------------------------------------------------------------
   Reset básico
   ------------------------------------------------------------ */
html, body {
    height: 100%;
}

body {
    background-color: var(--cinza-fundo);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--texto-escuro);
    overflow: hidden;
}

.hidden { display: none !important; }

/* ------------------------------------------------------------
   Wrapper principal
   ------------------------------------------------------------ */
#tela-dashboard {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

#wrapper-dashboard {
    display: flex;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
    width: var(--sidebar-largura);
    background: linear-gradient(180deg, var(--sidebar-bg-inicio) 0%, var(--sidebar-bg-fim) 100%);
    color: #fff;
    flex-shrink: 0;
    transition: width var(--transicao), transform var(--transicao);
    position: sticky;
    top: 0;
    height: 100vh;                          /* fallback universal */
    height: 100dvh;                         /* altura real visível */
    height: var(--sidebar-height, 100dvh);  /* sobrescrito via JS em mobile */
    z-index: 1040;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;                       /* scroll fica no .nav */
}

.sidebar-header {
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.18) 0%, rgba(13, 110, 253, 0) 100%);
    text-align: center;
    border-bottom: 1px solid var(--sidebar-borda);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    transition: padding 0.25s ease;
    flex-shrink: 0;                          /* nunca encolhe */
}

.sidebar-header::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.28) 0%, transparent 70%);
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.sidebar-logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.sidebar-logo-link:hover { transform: scale(1.03); }

.sidebar-logo {
    max-width: 170px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: max-width 0.25s ease;
}

#badge-user-type {
    font-size: 0.7rem;
    padding: 0.35em 0.75em;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-escuro) 100%) !important;
    color: #fff !important;
    border-radius: 999px;
    box-shadow: var(--sombra-azul);
    position: relative;
    z-index: 1;
    font-weight: 700;
    transition: font-size 0.25s ease, padding 0.25s ease;
}

#sidebar .nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    transition: padding 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    min-height: 0;                           /* essencial para flex+scroll */
}

#sidebar .nav::-webkit-scrollbar { width: 6px; }
#sidebar .nav::-webkit-scrollbar-track { background: transparent; }
#sidebar .nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
#sidebar .nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#sidebar .nav-link {
    color: var(--sidebar-texto);
    padding: 12px 18px;
    border-radius: var(--raio-medio);
    font-weight: 500;
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
    margin: 4px 12px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    border: none;
    background: transparent;
    text-align: left;
    width: calc(100% - 24px);
    text-decoration: none;
}

#sidebar .nav-link:hover {
    color: var(--sidebar-texto-ativo);
    background: var(--sidebar-bg-hover);
}

#sidebar .nav-link:focus-visible {
    outline: 2px solid var(--azul-primario);
    outline-offset: 2px;
}

#sidebar .nav-link.active {
    color: var(--sidebar-texto-ativo);
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-escuro) 100%);
    font-weight: 600;
    box-shadow: var(--sombra-azul);
}

#sidebar .nav-link i {
    font-size: 1.15rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: color 0.2s ease, font-size 0.25s ease;
}

#sidebar .nav-link span {
    transition: font-size 0.25s ease, opacity 0.25s ease;
}

#sidebar .nav-link:nth-child(1) i { color: #60a5fa; }
#sidebar .nav-link:nth-child(2) i { color: #34d399; }
#sidebar .nav-link:nth-child(3) i { color: #22d3ee; }
#sidebar .nav-link:nth-child(4) i { color: #fbbf24; }
#sidebar .nav-link:nth-child(5) i { color: #a78bfa; }

#sidebar .nav-link.active i { color: #fff !important; }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-borda);
    background: rgba(0, 0, 0, 0.22);
    transition: padding 0.25s ease;
    flex-shrink: 0;                          /* nunca encolhe */
}

.sidebar-footer #dash-email-sidebar,
.sidebar-footer #db-user-display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: font-size 0.25s ease;
}

.sidebar-footer #dash-email-sidebar {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.sidebar-footer #db-user-display {
    color: rgba(255, 255, 255, 0.5);
}

#btn-sair {
    border-radius: var(--raio-medio);
    border-width: 1.5px;
    font-size: 0.85rem;
    transition: all 0.2s ease, padding 0.25s ease, font-size 0.25s ease;
}

#btn-sair:hover {
    background: var(--vermelho-erro);
    border-color: var(--vermelho-erro);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

/* ============================================================
   MINI-SIDEBAR (desktop)
   ============================================================ */
#sidebar.collapsed {
    width: var(--sidebar-largura-mini);
}

#sidebar.collapsed .sidebar-header {
    padding: 0.85rem 0.5rem;
}

#sidebar.collapsed .sidebar-logo {
    max-width: 40px;
    margin: 0 auto;
}

#sidebar.collapsed #badge-user-type,
#sidebar.collapsed .nav-link > span,
#sidebar.collapsed #dash-email-sidebar,
#sidebar.collapsed #db-user-display,
#sidebar.collapsed #btn-sair span {
    display: none !important;
}

#sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
    margin: 4px 8px;
    width: calc(100% - 16px);
    text-align: center;
}

#sidebar.collapsed .nav-link i {
    margin: 0;
    font-size: 1.3rem;
    width: auto;
}

#sidebar.collapsed #btn-sair {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sidebar.collapsed .nav-link[data-tooltip]:hover::after,
#sidebar.collapsed #btn-sair[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-escuro) 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--raio-pequeno);
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
    z-index: 99999;
    pointer-events: none;
}

#sidebar.collapsed #btn-sair[data-tooltip]:hover::after {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
}

/* ============================================================
   ÁREA DE CONTEÚDO
   ============================================================ */
#content-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    position: relative;
}

#content-area::-webkit-scrollbar { width: 8px; }
#content-area::-webkit-scrollbar-track { background: transparent; }
#content-area::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
}
#content-area::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- Header do app --- */
.app-header {
    background: linear-gradient(135deg, var(--sidebar-bg-inicio) 0%, var(--sidebar-bg-fim) 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: var(--header-altura);
    position: sticky;
    top: 0;
    z-index: 1031;
    gap: 0.75rem;
    transition:
        padding 0.25s ease,
        min-height 0.25s ease,
        border-color 0.25s ease;
}

/* Sombra inferior via ::after — acentuada */
.app-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 32px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.28) 30%,
        rgba(0, 0, 0, 0.14) 55%,
        rgba(0, 0, 0, 0.05) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: -1;
    transition: height 0.25s ease, background 0.25s ease;
}

.header-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: font-size 0.25s ease, opacity 0.2s ease;
}

.header-user-greeting {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    color: rgba(255, 255, 255, 0.7);
    transition: font-size 0.25s ease;
}

.header-user-greeting strong {
    color: #7dd3fc;
    font-weight: 700;
}

#btn-toggle-sidebar {
    color: #fff;
    line-height: 1;
    border-radius: var(--raio-pequeno);
    transition: all 0.2s ease;
}

#btn-toggle-sidebar:hover {
    color: var(--azul-primario);
    background: rgba(255, 255, 255, 0.08);
}

#btn-toggle-sidebar:focus-visible {
    outline: 2px solid var(--azul-primario);
    outline-offset: 2px;
}

/* ============================================================
   BOTÃO DE NOTIFICAÇÕES (sino) + BADGE DO CONTADOR
   ============================================================ */
#btn-notificacoes-bell {
    color: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
    overflow: visible !important;
    position: relative;
}

#btn-notificacoes-bell:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.3);
}

#btn-notificacoes-bell:focus-visible {
    outline: 2px solid var(--azul-primario);
    outline-offset: 2px;
}

#container-notificacoes-header {
    position: relative;
    overflow: visible;
}

#badge-notificacoes-contador {
    position: absolute !important;
    top: 4px !important;
    right: -4px !important;
    left: auto !important;
    transform: none !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.5) !important;
    z-index: 5;
    pointer-events: none;
}

#badge-notificacoes-contador.d-none {
    display: none !important;
}

#main-dashboard-content {
    flex-grow: 1;
    background: var(--cinza-fundo);
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   DROPDOWN DE NOTIFICAÇÕES
   ============================================================ */
#dropdown-menu-notificacoes {
    width: 390px;
    max-width: calc(100vw - 24px);
    border-radius: var(--raio-grande) !important;
    overflow: hidden;
    box-shadow: var(--sombra-media) !important;
}

#lista-notificacoes-corpo {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#lista-notificacoes-corpo::-webkit-scrollbar { width: 6px; }
#lista-notificacoes-corpo::-webkit-scrollbar-track { background: transparent; }
#lista-notificacoes-corpo::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
#lista-notificacoes-corpo::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.35);
}

.item-notificacao {
    transition: background-color 0.15s ease;
    border-left: 3px solid transparent;
}

.item-notificacao:hover {
    background-color: #f8fafc !important;
}

.item-notificacao.nao-lida {
    border-left: 3px solid var(--azul-primario);
    background-color: var(--azul-claro);
}

.item-notificacao .flex-grow-1.min-w-0 {
    cursor: pointer !important;
}

/* ============================================================
   OVERLAY MOBILE
   ============================================================ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1035;
    animation: fadeIn 0.2s ease-out;
    backdrop-filter: blur(2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   TRANSIÇÕES GENÉRICAS
   ============================================================ */
.transition-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-suave) !important;
}

/* ============================================================
   DESKTOP: modo compacto ao rolar
   ============================================================ */
@media (min-width: 769px) {
    body.header-compact .app-header {
        padding: 0.5rem 1rem;
        min-height: 52px;
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    body.header-compact .app-header::after {
        height: 40px;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.34) 30%,
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.06) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    body.header-compact .header-title { font-size: 0.92rem; }
    body.header-compact .header-user-greeting { font-size: 0.8rem; }

    body.header-compact .sidebar-header {
        padding: 0.85rem 1rem 0.75rem;
    }

    body.header-compact .sidebar-logo { max-width: 140px; }

    body.header-compact #badge-user-type {
        font-size: 0.65rem;
        padding: 0.28em 0.6em;
    }

    body.header-compact #sidebar .nav { padding: 0.25rem 0; }

    body.header-compact #sidebar .nav-link {
        padding: 8px 16px;
        margin: 2px 12px;
        font-size: 0.88rem;
    }

    body.header-compact #sidebar .nav-link i { font-size: 1.05rem; }
    body.header-compact #sidebar .nav-link span { font-size: 0.88rem; }

    body.header-compact .sidebar-footer { padding: 0.75rem 0.85rem; }
    body.header-compact .sidebar-footer #dash-email-sidebar { font-size: 0.75rem; }
    body.header-compact .sidebar-footer #db-user-display { font-size: 0.7rem; }

    body.header-compact #btn-sair {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    body.header-compact #sidebar.collapsed .nav-link {
        padding: 10px 0;
        margin: 3px 8px;
    }

    body.header-compact #sidebar.collapsed .nav-link i { font-size: 1.2rem; }
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 992px) {
    .header-user-greeting { max-width: 180px; }
}

@media (max-width: 768px) {
    :root {
        --sidebar-largura: 260px;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #tela-dashboard {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    #wrapper-dashboard {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    /* --------------------------------------------------------
       SIDEBAR (drawer mobile) — altura real visível
       -------------------------------------------------------- */
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;                             /* fallback antigo */
        height: var(--sidebar-height, 100dvh);     /* JS ou dvh moderno */
        width: var(--sidebar-largura);
        transform: translateX(-100%);
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        overflow: hidden;                          /* scroll só no .nav */
    }

    #sidebar.mobile-open {
        transform: translateX(0);
    }

    #sidebar .sidebar-header,
    #sidebar .sidebar-footer {
        flex-shrink: 0;
    }

    /* Rodapé cola na base, respeitando safe area (iPhone) */
    .sidebar-footer {
        margin-bottom: 0 !important;
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Desfaz o mini-sidebar quando em mobile */
    #sidebar.collapsed {
        width: var(--sidebar-largura);
    }

    #sidebar.collapsed .sidebar-logo { max-width: 170px; }

    #sidebar.collapsed #badge-user-type,
    #sidebar.collapsed .nav-link > span,
    #sidebar.collapsed #dash-email-sidebar,
    #sidebar.collapsed #db-user-display,
    #sidebar.collapsed #btn-sair span {
        display: revert !important;
    }

    #sidebar.collapsed .nav-link {
        justify-content: flex-start;
        padding: 12px 18px;
        margin: 4px 12px;
        width: calc(100% - 24px);
        text-align: left;
    }

    #sidebar.collapsed .nav-link i {
        margin: 0 0.75rem 0 0;
        font-size: 1.15rem;
        width: 22px;
    }

    #sidebar.collapsed .nav-link[data-tooltip]:hover::after,
    #sidebar.collapsed #btn-sair[data-tooltip]:hover::after {
        display: none;
    }

    /* --------------------------------------------------------
       ÁREA DE CONTEÚDO
       -------------------------------------------------------- */
    #content-area {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        padding-top: 56px;
    }

    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0.6rem 0.85rem;
        min-height: 56px;
        backdrop-filter: blur(8px);
        background: linear-gradient(
            135deg,
            rgba(30, 41, 59, 0.96) 0%,
            rgba(15, 23, 42, 0.96) 100%
        );
    }

    .app-header::after {
        height: 34px;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.32) 30%,
            rgba(0, 0, 0, 0.16) 55%,
            rgba(0, 0, 0, 0.05) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    #main-dashboard-content {
        padding-top: 0.5rem;
    }

    .header-title {
        font-size: 1rem;
    }

    body.header-compact .app-header {
        padding: 0.4rem 0.75rem;
        min-height: 48px;
    }

    body.header-compact .app-header::after {
        height: 40px;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.38) 30%,
            rgba(0, 0, 0, 0.2) 55%,
            rgba(0, 0, 0, 0.08) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    body.header-compact .header-title { font-size: 0.82rem; }
    body.header-compact .header-user-greeting { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.55rem 0.7rem;
    }

    .header-title {
        font-size: 0.95rem;
    }

    body.header-compact .header-title {
        font-size: 0.78rem;
    }

    #dropdown-menu-notificacoes {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }
}

.nav-link:focus-visible,
#btn-toggle-sidebar:focus-visible,
#btn-notificacoes-bell:focus-visible,
#btn-sair:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.4);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #sidebar,
    #sidebar .nav-link,
    #btn-sair,
    #btn-toggle-sidebar,
    .app-header,
    .app-header::after,
    .header-title,
    .sidebar-header,
    .sidebar-logo,
    #badge-user-type,
    .sidebar-footer,
    .transition-hover {
        transition: none !important;
    }
    .sidebar-overlay {
        animation: none !important;
    }
}

/* ============================================================
   CORREÇÃO GLOBAL DE MODAIS BOOTSTRAP 5 (Z-INDEX & FOCO)
   ============================================================ */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1065 !important;
    position: relative;
}