/*
 INNOVA ESTRATEGIA
 RELATORIOS GLOBAIS V1
*/

.innova-relatorio-global {
    --innova-azul: #163a5f;
    --innova-borda: #dce6ef;
    --innova-texto: #263d52;

    width: min(1120px, calc(100vw - 48px));
    max-width: none !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 22px 0 55px;
    color: var(--innova-texto);
}

/* CABECALHO */

.innova-relatorio-global .innova-report-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 44px;
    margin-bottom: 26px;
    border-radius: 20px;
    background: linear-gradient(
        115deg,
        #102b49,
        #17476f 55%,
        #276c98
    );
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(16,43,73,.17);
}

.innova-relatorio-global .innova-report-hero h1 {
    color: #ffffff !important;
    font-size: clamp(27px,3vw,38px);
    font-weight: 800;
    letter-spacing: -.7px;
}

.innova-relatorio-global .innova-report-hero p {
    color: #d7e9f7;
    font-size: 15px;
    line-height: 1.7;
}

/* FORMULARIOS */

.innova-relatorio-global form {
    width: 100%;
    padding: 32px 36px;
    margin-bottom: 26px;
    border: 1px solid var(--innova-borda);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22,58,95,.08);
}

.innova-relatorio-global form fieldset {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px 26px;
    min-width: 0;
    border: 0;
}

.innova-relatorio-global form fieldset > .row {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.innova-relatorio-global form fieldset > .row > [class*="col-"] {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
}

.innova-relatorio-global label {
    margin-bottom: 8px;
    color: #25445f;
    font-size: 13px;
    font-weight: 700;
}

.innova-relatorio-global .form-control,
.innova-relatorio-global .custom-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cedce8;
    border-radius: 11px;
    background-color: #fbfdff;
}

.innova-relatorio-global .form-control:focus {
    border-color: #3278ad;
    box-shadow: 0 0 0 4px rgba(50,120,173,.12);
}

/* BOTOES */

.innova-relatorio-global .btn {
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 11px;
    font-weight: 700;
}

.innova-relatorio-global .btn-primary {
    color: #ffffff;
    background: linear-gradient(120deg,#163a5f,#2874a8);
    border: 1px solid #163a5f;
    box-shadow: 0 7px 17px rgba(22,58,95,.17);
}

.innova-relatorio-global .btn-primary:hover {
    color: #ffffff;
    background: linear-gradient(120deg,#204e78,#3184bb);
}

/* TABELAS */

.innova-relatorio-global table.table {
    width: 100%;
    border: 1px solid var(--innova-borda);
    border-radius: 15px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(22,58,95,.07);
}

.innova-relatorio-global table.table thead th {
    padding: 15px 17px;
    background: #eaf2f9;
    color: #163a5f;
    font-weight: 800;
}

.innova-relatorio-global table.table tbody td {
    padding: 15px 17px;
    border-color: #e5edf4;
    color: #344d63;
}

.innova-relatorio-global table.table tbody tr:hover {
    background: #f4f9fd;
}

/* MOBILE */

@media(max-width:767.98px) {
    .innova-relatorio-global {
        width: calc(100vw - 24px);
    }

    .innova-relatorio-global .innova-report-hero {
        padding: 28px 24px;
    }

    .innova-relatorio-global form {
        padding: 22px 18px;
    }

    .innova-relatorio-global form fieldset {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .innova-relatorio-global table.table {
        font-size: 13px;
    }
}

/* === INNOVA AUTOR PADRAO V1 === */

.innova-autor-pesquisar {
    min-height: 44px !important;
    padding: 10px 20px !important;
    border: 1px solid #246da6 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #287eb8, #17476f) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(23, 71, 111, .15) !important;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .2s;
}

.innova-autor-pesquisar:hover {
    background: linear-gradient(135deg, #236b9d, #103653) !important;
    box-shadow: 0 7px 16px rgba(23, 71, 111, .22) !important;
    transform: translateY(-1px);
}

.innova-autor-limpar {
    min-height: 44px !important;
    padding: 10px 20px !important;
    border: 1px solid #c7d9e8 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #194c76 !important;
    -webkit-text-fill-color: #194c76 !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}

.innova-autor-limpar:hover {
    background: #edf6fd !important;
    border-color: #91bbda !important;
    transform: translateY(-1px);
}

/* === FIM INNOVA AUTOR PADRAO V1 === */

/* === INNOVA MODAL AUTOR UNIFICADO V2 === */

html body .ui-dialog[aria-describedby="modal_autor"],
html body .ui-dialog:has(#modal_autor) {
    width: min(560px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d7e4f0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 75px rgba(15,39,68,.22) !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] .ui-dialog-titlebar {
    padding: 19px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(115deg,#112c4b,#2473a7) !important;
    color: #ffffff !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] .ui-dialog-title {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] .ui-dialog-titlebar-close {
    top: 50% !important;
    right: 17px !important;
    margin-top: -12px !important;
    width: 25px !important;
    height: 25px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.17) !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] #modal_autor {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 260px !important;
    padding: 25px !important;
    background: #ffffff !important;
    color: #193a59 !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] #modal_autor form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] #modal_autor input[type="text"] {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 43px !important;
    padding: 10px 13px !important;
    border: 1px solid #cfdae7 !important;
    border-radius: 9px !important;
    background: #f8fbff !important;
    box-sizing: border-box !important;
}

html body .ui-dialog[aria-describedby="modal_autor"] #pesquisar {
    flex: 0 0 auto !important;
    height: 43px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #176aab !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    cursor: pointer;
}

html body .ui-dialog[aria-describedby="modal_autor"] #div-resultado {
    width: 100% !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

@media (max-width: 520px) {
    html body .ui-dialog[aria-describedby="modal_autor"] #modal_autor form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* === FIM INNOVA MODAL AUTOR UNIFICADO V2 === */

/* INNOVA - MODAL PESQUISAR AUTOR RESPONSIVO V1 */
@media screen and (max-width: 600px) {

    .ui-dialog:has(#modal_autor) {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        left: 12px !important;
        box-sizing: border-box !important;
    }

    .ui-dialog #modal_autor {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #modal_autor .innova-modal-autor-busca {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #modal_autor #q {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    #modal_autor #pesquisar {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    #modal_autor #div-resultado,
    #modal_autor #resultados {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* FIM INNOVA MODAL MOBILE V1 */