/* SGW V167 - corrige espaço duplo do conteúdo quando a sidebar V39/V53 está ativa */
body.sgw-sidebar-v39-on .content-area,
body.sgw53-sidebar-fixed .content-area{
  margin-left:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
body.sgw-sidebar-v39-on main.container,
body.sgw53-sidebar-fixed main.container,
body.sgw-sidebar-v39-on .container,
body.sgw53-sidebar-fixed .container{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding:12px 14px 28px!important;
}

.v167-dashboard{width:100%;max-width:none;margin:0;padding:0}
.v167-hero{background:#fff;border:1px solid #dfe5ec;border-left:4px solid #2476d2;padding:28px 30px;margin:0 0 14px;box-shadow:0 2px 7px #0000000a}
.v167-hero h1{font-size:38px;font-weight:300;margin:0 0 8px;color:#15283b}
.v167-hero p{margin:0;color:#66788a}
.v167-payments-card,.v167-informativos,.v167-platform-billing{background:#fff;border:1px solid #dfe5ec;border-radius:8px;margin:0 0 14px;overflow:hidden;box-shadow:0 2px 8px #0000000a}
.v167-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #e2e8f0}
.v167-section-head.compact{padding:16px 20px}.v167-section-head h2{margin:0 0 4px;font-size:21px}.v167-section-head p{margin:0;color:#718096;font-size:13px}
.v167-payment-total{display:flex;align-items:center;gap:10px;white-space:nowrap}.v167-payment-total strong{font-size:28px;color:#16a34a}.v167-payment-total span{color:#64748b}.v167-payment-total b{font-size:20px;color:#15803d;border-left:1px solid #dbe3ea;padding-left:12px}
.v167-payment-table-wrap{min-height:260px;max-height:390px;overflow:auto}.v167-payment-table th{position:sticky;top:0;background:#f8fafc;z-index:1;font-weight:700;color:#475569}.v167-payment-table td,.v167-payment-table th{padding:11px 13px}.v167-empty{text-align:center!important;color:#7b8794;padding:80px 20px!important}
.v167-section-title{font-size:17px;font-weight:800;padding:15px 18px;border-bottom:1px solid #e2e8f0}
.v167-billing-alert{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px;padding:14px 16px;border-radius:7px;border:1px solid}.v167-billing-alert>div{display:flex;flex-direction:column;gap:3px}.v167-billing-alert a{padding:9px 14px;border-radius:5px;text-decoration:none;font-weight:800;white-space:nowrap}.v167-billing-alert.proxima{background:#fff8d8;border-color:#f4c430;color:#6a5000}.v167-billing-alert.proxima a{background:#f4c430;color:#2f2500}.v167-billing-alert.vencida{background:#fff0f0;border-color:#ef4444;color:#8b1e1e}.v167-billing-alert.vencida a{background:#dc2626;color:#fff}
.v167-info-list{padding:12px;display:grid;grid-template-columns:1fr;gap:12px}.v167-info-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,38%);gap:18px;border:1px solid #cbd5e1;border-left:6px solid #3b82f6;border-radius:7px;padding:18px;background:#f8fbff;min-height:110px}.v167-info-card.texto{grid-template-columns:1fr}.v167-info-card.alerta{background:#fff9d9;border-color:#eab308;border-left-color:#eab308}.v167-info-card.perigo{background:#fff0f0;border-color:#ef4444;border-left-color:#dc2626}.v167-info-card.sucesso{background:#effdf4;border-color:#22c55e;border-left-color:#16a34a}.v167-info-title{font-size:18px;margin-bottom:10px}.v167-info-message{font-size:15px;line-height:1.5;white-space:pre-wrap}.v167-info-content small{display:block;margin-top:12px;color:#64748b}.v167-info-media{display:flex;align-items:center;justify-content:center;background:#0f172a0a;border-radius:6px;overflow:hidden;min-height:120px}.v167-info-media img,.v167-info-media video{display:block;width:100%;max-height:360px;object-fit:contain;background:#000}.v167-no-info{text-align:center;color:#718096;padding:35px}

/* Financeiro/Carnês ocupam a largura útil imediatamente após a sidebar */
body.sgw-sidebar-v39-on .f151-page,
body.sgw53-sidebar-fixed .f151-page,
body.sgw-sidebar-v39-on .f164-page,
body.sgw53-sidebar-fixed .f164-page{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}

@media(max-width:900px){
  .v167-info-card{grid-template-columns:1fr}.v167-section-head{align-items:flex-start;flex-direction:column}.v167-payment-total{flex-wrap:wrap}.v167-hero h1{font-size:30px}.v167-billing-alert{align-items:flex-start;flex-direction:column}
}




/* SGW V378 - PAGAMENTOS COMPACTO */
.v167-payments-card.v378-payments-compact{display:block!important;width:100%!important;min-height:0!important;height:auto!important}
.v378-payments-compact .v167-section-head{padding:14px 20px!important;min-height:72px!important;box-sizing:border-box!important}
.v378-payments-compact .v167-section-head h2{font-size:21px!important;margin:0 0 3px!important}
.v378-payments-compact .v167-section-head p{font-size:12px!important}
.v378-payments-compact .v167-payment-total strong{font-size:25px!important}
.v378-payments-compact .v167-payment-total b{font-size:18px!important}
.v378-payments-compact .v167-payment-table-wrap{min-height:135px!important;max-height:215px!important;overflow:auto!important}
.v378-payments-compact .v167-payment-table td,
.v378-payments-compact .v167-payment-table th{padding:8px 10px!important}
.v378-payments-compact .v167-empty{padding:45px 20px!important;height:auto!important}
@media(max-width:900px){
  .v378-payments-compact .v167-section-head{min-height:0!important;padding:12px 14px!important}
  .v378-payments-compact .v167-payment-table-wrap{min-height:120px!important;max-height:200px!important}
  .v378-payments-compact .v167-empty{padding:36px 12px!important}
}
/* FIM SGW V378 */


/* SGW PAGAMENTOS LATERAL V387 START */

/* BOX DE PAGAMENTOS NA LATERAL DIREITA */
.v167-payments-card{
    width: 340px !important;
    max-width: 340px !important;

    min-height: 580px !important;
    height: 580px !important;

    margin-left: auto !important;
    margin-right: 0 !important;
    margin-top: 12px !important;

    display: flex !important;
    flex-direction: column !important;

    border-radius: 0 !important;
    overflow: hidden !important;
}

/* CABEÇALHO COMPACTO */
.v167-payments-card .v167-section-head{
    display: block !important;
    padding: 14px 16px !important;
    min-height: auto !important;
}

.v167-payments-card .v167-section-head h2{
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.v167-payments-card .v167-section-head p{
    display: none !important;
}

/* CONTADOR / VALOR NA PARTE DE BAIXO */
.v167-payments-card .v167-payment-total{
    margin-top: 8px !important;
    justify-content: flex-end !important;
    font-size: 12px !important;
}

/* TABELA OCUPA O MEIO */
.v167-payment-table-wrap{
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
}

/* ESCONDE COLUNAS PARA CABER NO BOX ESTREITO */
.v167-payment-table th:nth-child(4),
.v167-payment-table td:nth-child(4),
.v167-payment-table th:nth-child(5),
.v167-payment-table td:nth-child(5),
.v167-payment-table th:nth-child(6),
.v167-payment-table td:nth-child(6){
    display: none !important;
}

.v167-payment-table{
    min-width: 100% !important;
    width: 100% !important;
}

.v167-payment-table th,
.v167-payment-table td{
    padding: 7px 8px !important;
    font-size: 11px !important;
}

/* EM CELULAR VOLTA PARA LARGURA TOTAL */
@media (max-width: 900px){
    .v167-payments-card{
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 220px !important;
        margin-left: 0 !important;
    }

    .v167-payment-table th:nth-child(4),
    .v167-payment-table td:nth-child(4),
    .v167-payment-table th:nth-child(5),
    .v167-payment-table td:nth-child(5),
    .v167-payment-table th:nth-child(6),
    .v167-payment-table td:nth-child(6){
        display: table-cell !important;
    }
}

/* SGW PAGAMENTOS LATERAL V387 END */

