:root {
    --pinnacle-data-entry-status-border-missing: #ef4444;
    --pinnacle-data-entry-status-border-complete: #22c55e;
    --pinnacle-data-entry-status-border-missing-hover: #dc2626;
    --pinnacle-data-entry-status-border-complete-hover: #16a34a;
}

.cf-economic-card {
    position: relative; 
    padding: 1rem 0;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.75rem 1rem;
}

.cf-economic-card--missing-data {
    padding-top: 2.75rem;
}

.cf-missing-data-badge-slot {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 2;
    max-width: calc(100% - 2rem);
    pointer-events: none;
}

.cf-missing-data-badge-slot .gcx-metric-missing-data-badge {
    pointer-events: auto;
}

.cf-input--missing {
    background-color: #fef2f2 !important;
    border-color: var(--pinnacle-data-entry-status-border-missing) !important;
    color: #991b1b;
}

.cf-input--complete {
    background-color: #ecfdf5 !important;
    border-color: var(--pinnacle-data-entry-status-border-complete) !important;
    color: #166534;
}

.cf-economic-card:not(:has(.data-review-checkbox)) {
    align-items: center;
}

.cf-economic-card:has(.data-review-checkbox) {
    align-items: flex-start;
}

.cf-economic-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0%; 
    width: 100%; 
    border-bottom: 1px solid #89CFD3;
}


.cf-icon-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}

.economic-section-heading-sub {
    color: #00ADCF;   
    font-family: Lato;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    text-transform: uppercase;
}

.economic-section-heading-sub-line {
    width: 39px;
    height: 4px;
    border-radius: 4px;
    background-color: #00B6D5;
}

.economic-section-heading {
    color: #006DB2;
    font-size: 22px;
    line-height: 100%;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: Montserrat;
}

.cf-icon-bx {
    border-radius: 50%;
    margin-right: 0.5rem;
    display: flex;
    padding: 5px;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cf-heading {
    font-size: 20px;
    font-weight: 400;
    font-family: 'Lato';
    line-height: 26px;
    color: #444445;
    display: flex;
    align-self: start;
}

.economic-section {
    padding: 1rem;
    border-radius: 10px;
    background-color: white;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}


.economic-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 1rem;
}

.economic-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: #00ADCF;
    margin: 1rem 0;
}


.cf-checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cf-checkbox-row input[type="checkbox"] {
    margin-right: 0.5rem;
}

.cf-label {
    font-size: 0.9rem;
    color: #555;
}

/* Frequency Section (ANNUALLY, QUARTERLY, MONTHLY) */
.cf-frequency-section {
    display: flex;
    flex-direction: column;
}

.cf-frequency-label, .cf-calculated-label {
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 700;
    color: #00ADCF;
    font-family: 'Lato';
    margin-bottom: 0%;
}

.cf-frequency-label--above-grid {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cf-icon-heading .cf-frequency-label {
    margin-right: 10px;
}

.frequency-container .cf-frequency-label {
    margin-top: 7px;
}

.frequency-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cf-frequency-container-with-total {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 100px;
    gap: 0.5rem;
}

.cf-data-entry-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    max-width: 140px;
}

.cf-data-entry-total--heading {
    align-items: flex-start;
    margin-top: 0.35rem;
    max-width: none;
}

.cf-data-entry-total-label {
    color: #00ADCF;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.cf-data-entry-total-value {
    color: #444445;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.cf-input-group-bx-sub {
    display: flex;
    min-width: 119px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
    min-width: 120px;
}

/* Input Group (for years, quarters, months) */
.cf-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cf-year, .cf-quarter, .cf-month {
    font-family: 'Lato';
    color: #444445;
    font-weight: 400;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.cf-input-group-bx {
    display: flex;
    margin-bottom: 1rem;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0.75rem;
    min-width: 0;
}

input-kpi-description {
    width: 90%;
    line-height: 100%;
    font-size: 18px;
    font-weight: 400;
}

.cf-input {
    border: 1px solid #00ADCF;
    background-color: #ffffff;
    border-radius: 25px;
    text-align: center;
    width: 100% !important;
    min-width: 100px !important;
    padding: 0.75rem 1rem !important;
    font-size: 19px;
    box-sizing: border-box;
    font-weight: 700;
    color: #444445;
    min-height: 50px;
    height: auto;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}

textarea.cf-input {
    resize: none;
    overflow: hidden;
    field-sizing: content;
    display: block;
}

.cf-domain-title-input {
    font-family: Inter;
    font-weight: 700;
    font-size: 22px;
    line-height: 100%;
    color: #006DB2;
    margin: 1rem 0;
}

/* Edit Button */
.cf-edit-btn {
    margin-left: auto;
    padding: 0.3rem 1rem;
    background-color: #00B6D5;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.cf-edit-btn:hover {
    background-color: #007bff;
    color: white;
}

.group-heading, domain-title {
    font-size: 22px;
    color: #006DB2;
}

.topic-heading {
    color: #00ADCF;
    font-size: 18px;
    text-transform: uppercase;
    font-family: Lato;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    margin-bottom: 0.5rem;
}

.element-heading {
    font-family: "Inter", sans-serif;
    color: #00ADCF;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 3px
}

/* Chrome, Safari, Edge, Opera */
.cf-input::-webkit-outer-spin-button,
.cf-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.cf-input[type="number"] {
    -moz-appearance: textfield;
}

/* Mobile Responsiveness */
@media (max-width: 1199px) {
    .cf-economic-card .cf-icon-heading,
    .cf-economic-card .cf-checkbox-section,
    .cf-economic-card .frequency-container {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cf-economic-card .frequency-container {
        justify-content: flex-start;
        margin-bottom: 0.25rem;
    }

    .cf-input-group-bx {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .cf-economic-card {
        padding: 0.5rem 0;
    }

    .cf-icon-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .cf-icon-bx {
        margin-bottom: 0.5rem;
    }

    .cf-heading {
        font-size: 0.9rem;
    }

    .cf-input-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .cf-input {
        width: 100%;
    }

    .cf-edit-btn {
        margin-top: 0.5rem;
        margin-left: 0;
    }

    .cf-frequency-label {
        margin-top: 1rem;
    }
}


@media (max-width: 1199px) {
    .custom-container {
        max-width: 100%;
    }
    .cf-input {
        width: 100% !important;
    }
}

@media (max-width: 1035px) {
    .cf-input-group-bx-sub {
        min-width: unset;
    }
   
}

