.custom-info-box {
    min-height: 110px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--panel-border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.custom-info-box:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-info-icon {
    width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-info-content {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.custom-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.custom-info-data {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-progress-bar-wrapper {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.custom-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.custom-progress-description,
.custom-info-description {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.custom-info-box.custom-info-horizontal {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-height: 108px;
    height: auto;
    padding: 16px 18px;
    background: var(--panel-background, #fff);
    border: 1px solid var(--panel-border-color);
    box-shadow: none;
    border-radius: 12px;
    overflow: visible;
    position: relative;
}

.custom-info-box.custom-info-horizontal:hover {
    transform: none;
    box-shadow: none;
    z-index: 6;
}

.custom-info-horizontal .custom-info-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin-top: 2px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    align-self: flex-start;
}

.custom-info-horizontal .custom-info-icon i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px !important;
    background: color-mix(in srgb, currentColor 20%, var(--panel-background, #fff));
}

.custom-info-horizontal .custom-info-content {
    flex: 1;
    min-width: 0;
    margin: 0;
    height: auto;
    padding: 0;
    gap: 2px;
    justify-content: flex-start;
    overflow: visible;
}

.custom-info-horizontal .custom-info-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-color-strong) !important;
    line-height: 1.2;
}

.custom-info-horizontal .custom-info-title-texto {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-info-horizontal .custom-info-ajuda {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.custom-info-horizontal .custom-info-ajuda i {
    font-family: "Font Awesome 5 Free";
    font-size: 12px !important;
    font-weight: 900 !important;
    color: var(--text-color-light, #8694B0) !important;
    cursor: help;
}

.custom-info-horizontal .custom-info-ajuda-texto {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    width: max-content;
    max-width: 240px;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--panel-border-color, #E4EAF2);
    background: var(--panel-background, #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: var(--text-color-strong, #1b2a3a) !important;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
}

.custom-info-horizontal .custom-info-ajuda-texto::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.custom-info-horizontal .custom-info-ajuda:hover .custom-info-ajuda-texto,
.custom-info-horizontal .custom-info-ajuda:focus-within .custom-info-ajuda-texto {
    display: block;
}

.custom-info-horizontal .custom-info-data {
    font-size: var(--info-valor-size, 28px) !important;
    font-weight: 700 !important;
    color: var(--text-color-strong) !important;
    line-height: 1.15;
}

.custom-info-horizontal .custom-info-description,
.custom-info-horizontal .custom-progress-description {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 12px !important;
    font-weight: 400;
    color: var(--text-color-light) !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-info-box.custom-info-compacto {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 74px;
    min-height: 74px;
    box-sizing: border-box;
    padding: 14px 16px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    background: var(--field-background, #F7F9FC);
    border: 1px solid var(--panel-border-color, #E4EAF2);
    box-shadow: none;
    border-radius: 12px;
}

.custom-info-box.custom-info-compacto:hover {
    transform: none;
    box-shadow: none;
}

.custom-info-compacto-esq {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.custom-info-compacto .custom-info-title,
.custom-info-compacto .custom-info-data {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-info-compacto .custom-info-title {
    color: var(--text-color-light, #8694B0) !important;
    font-size: 13px !important;
    font-weight: 500;
}

.custom-info-compacto .custom-info-data {
    color: var(--text-color-strong, #1b2a3a) !important;
    font-size: var(--info-valor-size, 20px) !important;
    font-weight: 700;
    line-height: 1.15;
}

.custom-info-compacto-dir {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 46%;
    overflow: hidden;
    text-align: right;
}

.custom-info-compacto-dir .custom-info-description,
.custom-info-compacto-dir .custom-progress-description {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: color-mix(in srgb, #81C784 62%, var(--text-color-strong, #1b2a3a));
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.custom-info-compacto-dir .custom-progress-bar-wrapper {
    width: 100%;
    max-width: 72px;
    min-width: 0;
}

.custom-info-compacto-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.custom-info-situacao {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 108px;
    height: auto;
    padding: 16px 18px;
    border: none;
    box-shadow: none;
    border-radius: 12px;
}

.custom-info-box.custom-info-situacao:hover {
    transform: none;
    box-shadow: none;
}

.custom-info-situacao .custom-info-title {
    font-size: 15px !important;
    font-weight: 600;
}

.custom-info-situacao .custom-info-data {
    color: var(--text-color-strong, #1b2a3a);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.custom-info-situacao .custom-info-description,
.custom-info-situacao .custom-progress-description {
    color: var(--text-color-light, #8694B0);
    font-size: 13px;
    font-weight: 500;
}

.tformrow.indicador-destaque {
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
}

.tformrow.indicador-destaque > .fb-field-container {
    flex: 1 1 100%;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 576px) {
    .tformrow.indicador-destaque > .fb-field-container {
        flex: 1 1 0;
        min-width: 0;
    }
}

.tformrow.indicador-destaque > .fb-field-container > .fb-inline-field-container,
.tformrow.indicador-resumo > .col-resumo > .fb-inline-field-container,
.tformrow.indicador-destaque > .fb-field-container > .fb-inline-field-container > div,
.tformrow.indicador-resumo > .col-resumo > .fb-inline-field-container > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tformrow.indicador-destaque .custom-info-box {
    width: 100%;
    max-width: 100%;
}

.tformrow.indicador-resumo {
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
}

.tformrow.indicador-resumo > .col-resumo {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}
