/* ======================================================
   RESET TOTAL DO DIALOG - PF4 LEGADO
   ====================================================== */

.dialog-2026,
.dialog-2026 * {
    box-sizing: border-box;
    float: none !important;
}

/* container do dialog */

.dialog-2026.ui-dialog {
    width: 900px !important;
    max-width: 95% !important;
}

/* titulo */

.dialog-2026 .ui-dialog-titlebar {
    background: #5b3fb5 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border: 0 !important;
}

.dialog-2026 .ui-dialog-title {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* conteúdo */

.dialog-2026 .ui-dialog-content {
    background: #f7f8fc !important;
    padding: 14px !important;
}

/* tabs */

.dialog-2026 .ui-tabs-nav li {
    float: left !important;
    margin-right: 6px !important;
}

.dialog-2026 .ui-tabs-nav li a {
    padding: 6px 12px !important;
}

/* panelGrid */

.dialog-2026 .ui-panelgrid td {
    padding: 6px !important;
}

/* tabelas */

.dialog-2026 table {
    width: 100% !important;
}

.dialog-2026 .ui-datatable thead th {
    padding: 8px !important;
}

.dialog-2026 .ui-datatable tbody td {
    padding: 8px !important;
}

/* blocos simples */

.dialog-2026 .bloco {
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

/* títulos */

.dialog-2026 .titulo {
    font-weight: 600;
    margin-bottom: 8px;
    color: #5b3fb5;
}

/* texto */

.dialog-2026 .texto {
    line-height: 1.5;
}

/* responsivo */

@media (max-width: 768px) {

    .dialog-2026.ui-dialog {
        width: 95% !important;
    }

}

/* ======================================================
   DIALOG MODERNO 2026 (PF4 ESTÁVEL)
   ====================================================== */

.dialog-2026.ui-dialog{
    width:900px !important;
    max-width:95% !important;
    border-radius:10px;
    overflow:hidden;
}

/* HEADER */

.dialog-2026 .ui-dialog-titlebar{
    background:linear-gradient(135deg,#5b3fb5,#7a5ce0) !important;
    color:#fff !important;
    padding:12px 16px !important;
    border:0 !important;
}

.dialog-2026 .ui-dialog-title{
    font-size:16px !important;
    font-weight:600 !important;
    color:#fff !important;
}

/* BOTÃO FECHAR */

.dialog-2026 .ui-dialog-titlebar-close{
    position:absolute !important;
    right:12px;
    top:10px;
    border:none !important;
    background:transparent !important;
}

.dialog-2026 .ui-dialog-titlebar-close span{
    background:none !important;
}

.dialog-2026 .ui-dialog-titlebar-close:before{
    content:"✕";
    font-size:18px;
    color:#fff;
}

/* CONTEÚDO */

.dialog-2026 .ui-dialog-content{
    background:#f6f7fb !important;
    padding:16px !important;
}

/* TABS */

.tabs-empenho-simples .ui-tabs-nav{
    border:0 !important;
    background:transparent !important;
    margin-bottom:16px;
}

.tabs-empenho-simples .ui-tabs-nav li{
    border-radius:20px !important;
    border:1px solid #dde2f3 !important;
    background:#eceffa !important;
    margin-right:6px !important;
}

.tabs-empenho-simples .ui-tabs-nav li a{
    padding:6px 14px !important;
    font-weight:600;
}

.tabs-empenho-simples .ui-tabs-nav li.ui-tabs-selected{
    background:#5b3fb5 !important;
    border-color:#5b3fb5 !important;
}

.tabs-empenho-simples .ui-tabs-nav li.ui-tabs-selected a{
    color:#fff !important;
}

/* CARDS */

.bloco-simples{
    background:#fff;
    border:1px solid #e6e8f2;
    border-radius:10px;
    padding:14px;
    margin-bottom:14px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.titulo-bloco-simples{
    font-size:13px;
    font-weight:700;
    color:#5b3fb5;
    margin-bottom:8px;
    border-bottom:1px solid #eceff5;
    padding-bottom:4px;
}

/* RESUMO */

.grid-resumo-simples td{
    padding:8px;
}

.campo-resumo{
    background:#f8f9fc;
    border:1px solid #eceff5;
    border-radius:8px;
    padding:10px;
}

.rotulo-mini{
    display:block;
    font-size:11px;
    color:#7a8199;
    margin-bottom:4px;
}

.valor-resumo{
    font-size:16px;
    font-weight:700;
    color:#2c234d;
   
}

/* HISTÓRICO */

.caixa-texto-simples{
    background:#f8f9fc;
    border:1px solid #eceff5;
    border-radius:8px;
    padding:10px;
    line-height:1.6;
}

/* LINHAS INFO */

.linha-info-simples{
    background:#f8f9fc;
    border:1px solid #eceff5;
    border-radius:8px;
    padding:10px;
    margin-bottom:6px;
}

/* TABELAS */

.tabela-simples-dialogo.ui-datatable{
    border:0;
}

.tabela-simples-dialogo thead th{
    background:#f3f5fb !important;
    border:0;
    border-bottom:1px solid #e5e9f4 !important;
    font-size:12px;
    font-weight:700;
    padding:8px;
}

.tabela-simples-dialogo tbody td{
    border:0;
    border-bottom:1px solid #edf0f6;
    padding:8px;
}

.tabela-simples-dialogo tbody tr:hover td{
    background:#fafbff;
}

/* ======================================================
   DIALOG MODERNO 2026 (PF4 ESTÁVEL)
   COM SCROLL INTERNO
   ====================================================== */

.dialog-2026.ui-dialog{
    width:900px !important;
    max-width:95% !important;
    border-radius:10px;
    overflow:hidden;
}

/* HEADER */

.dialog-2026 .ui-dialog-titlebar{
    background:linear-gradient(135deg,#5b3fb5,#7a5ce0) !important;
    color:#fff !important;
    padding:12px 16px !important;
    border:0 !important;
}

.dialog-2026 .ui-dialog-title{
    font-size:16px !important;
    font-weight:600 !important;
    color:#fff !important;
}

/* BOTÃO FECHAR */

.dialog-2026 .ui-dialog-titlebar-close{
    position:absolute !important;
    right:12px;
    top:10px;
    border:none !important;
    background:transparent !important;
    width:24px !important;
    height:24px !important;
    text-indent:0 !important;
}

.dialog-2026 .ui-dialog-titlebar-close span{
    display:none !important;
    background:none !important;
}

.dialog-2026 .ui-dialog-titlebar-close:before{
    content:"✕";
    font-size:18px;
    line-height:24px;
    color:#fff;
}

/* CONTEÚDO */

.dialog-2026 .ui-dialog-content{
    background:#f6f7fb !important;
    padding:16px !important;
    max-height:70vh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}

/* TABS */

.tabs-empenho-simples .ui-tabs-nav{
    border:0 !important;
    background:transparent !important;
    margin-bottom:16px;
}

.tabs-empenho-simples .ui-tabs-nav li{
    border-radius:20px !important;
    border:1px solid #dde2f3 !important;
    background:#eceffa !important;
    margin-right:6px !important;
}

.tabs-empenho-simples .ui-tabs-nav li a{
    padding:6px 14px !important;
    font-weight:600;
}

.tabs-empenho-simples .ui-tabs-nav li.ui-tabs-selected{
    background:#5b3fb5 !important;
    border-color:#5b3fb5 !important;
}

.tabs-empenho-simples .ui-tabs-nav li.ui-tabs-selected a{
    color:#fff !important;
}

/* CARDS */

.bloco-simples{
    background:#fff;
    border:1px solid #e6e8f2;
    border-radius:10px;
    padding:14px;
    margin-bottom:14px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.titulo-bloco-simples{
    font-size:13px;
    font-weight:700;
    color:#5b3fb5;
    margin-bottom:8px;
    border-bottom:1px solid #eceff5;
    padding-bottom:4px;
}

/* RESUMO */

.grid-resumo-simples{
    width:100%;
}

.grid-resumo-simples td{
    padding:8px;
    vertical-align:top;
}

.campo-resumo{
    background:#f8f9fc;
    border:1px solid #eceff5;
    border-radius:8px;
    padding:10px;
}

.rotulo-mini{
    display:block;
    font-size:11px;
    color:#7a8199;
    margin-bottom:4px;
    font-weight:600;
}

.valor-resumo{
    font-size:16px;
    font-weight:700;
    color:#2c234d;
    word-break:break-word;
}

/* HISTÓRICO */

.caixa-texto-simples{
    background:#f8f9fc;
    border:1px solid #eceff5;
    border-radius:8px;
    padding:10px;
    line-height:1.6;
}

/* LINHAS INFO */

.linha-info-simples{
    background:#f8f9fc;
    border:1px solid #eceff5;
    border-radius:8px;
    padding:10px;
    margin-bottom:6px;
}

.linha-info-simples:last-child{
    margin-bottom:0;
}

/* TABELAS */

.tabela-simples-dialogo.ui-datatable{
    border:0;
}

.tabela-simples-dialogo thead th{
    background:#f3f5fb !important;
    border:0;
    border-bottom:1px solid #e5e9f4 !important;
    font-size:12px;
    font-weight:700;
    padding:8px;
}

.tabela-simples-dialogo tbody td{
    border:0;
    border-bottom:1px solid #edf0f6;
    padding:8px;
}

.tabela-simples-dialogo tbody tr:hover td{
    background:#fafbff;
}