
/* Stiluri generale pentru conținutul OMFP/ASF */
body, .omfp-content, .omfp-content * {
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
}

/* Padding și spacing pentru conținut - override pentru a fixa spațiul alb */
.page {
    padding: 1.5rem !important;
    
    margin-top: 0 !important; /* ELIMINĂM margin-top pentru a nu trage conținutul în sus */
    min-height: calc(100vh - 200px) !important;
}


/* Padding și spacing pentru conținut */
.omfp-content {
    padding: 1rem;
    line-height: 1.6;
}

/* Stiluri pentru secțiuni de conținut */
.content-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
}

/* Stiluri pentru containerul principal de conținut OMFP */
#ifrsAllContent, #continutSectiune, #codFiscalContinutTitlu {
    padding: 1.5rem !important;
    margin: 1rem auto !important;
    background: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    border: 1px solid #e5e7eb !important;
    max-width: 100% !important;
    line-height: 1.6 !important;
}

/* Stiluri pentru text și paragrafe în conținut */
#ifrsAllContent p, #continutSectiune p, #codFiscalContinutTitlu p {
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
}

/* Stiluri pentru headings în conținut */
#ifrsAllContent h1, #ifrsAllContent h2, #ifrsAllContent h3, #ifrsAllContent h4,
#continutSectiune h1, #continutSectiune h2, #continutSectiune h3, #continutSectiune h4,
#codFiscalContinutTitlu h1, #codFiscalContinutTitlu h2, #codFiscalContinutTitlu h3, #codFiscalContinutTitlu h4 {
    /* margin-top: 5rem !important; */
    margin-bottom: 1rem !important;
    font-weight: bold !important;
}

.highlight {
        background-color: yellow;
        color: black;
        font-weight: bold;
    }
    #codFiscalSuggestionsContainer {
        position: absolute;
        z-index: 50;
        left: 0;
        right: 0;
        top: 100%;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 0.75rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 15rem;
        overflow-y: auto;
    }
    #codFiscalSearchInput {
        border: none !important;
    }

    /* Tom.js styling */
    .ts-wrapper.form-control.single {
        border: 1px solid #d1d5db;
        border-radius: 0.75rem;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        background: linear-gradient(90deg, #e0f2fe 0%, #bbf7d0 100%);
        color: #1f2937;
        padding: 0.5rem 0.75rem;
        min-height: 2.5rem;
        font-size: 1rem;
    }
    .ts-wrapper .ts-control {
        padding: 0;
        border: none;
        background: transparent;
        min-height: 1.5rem;
        font-size: 1rem;
    }
    .ts-control input {
        display: none !important;
    }
    .ts-dropdown {
        border: 1px solid #ccc;
        border-radius: 0.75rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background: linear-gradient(90deg, #e0f2fe 0%, #bbf7d0 100%);
        overflow-y: auto;
        z-index: 60;
        max-height: 50rem !important;
        height: auto !important;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    .ts-dropdown .option {
        padding: 0.75rem 1rem;
        cursor: pointer;
        font-size: 1rem;
        color: #374151;
    }
    .ts-dropdown .option.active {
        background-color: #e0f2fe;
        color: #1f2937;
    }
    .ts-dropdown-content {
        max-height: none !important;
        height: auto !important;
    }
    .ts-dropdown .ts-dropdown-content {
        max-height: 50rem !important;
    }
    .ts-wrapper.form-control.single.ts-placeholder .ts-control {
        color: #6b7280;
    }
    @media (max-width: 768px) {
        .ts-wrapper.form-control.single {
            font-size: 0.9rem;
        }
        .ts-wrapper .ts-control input {
            font-size: 0.9rem;
        }
        .ts-dropdown {
            max-height: 20rem;
            width: calc(100% - 2rem);
            left: 1rem;
            right: 1rem;
            top: auto !important;
            bottom: auto !important;
            position: absolute;
        }
        .ts-dropdown.mobile {
            position: absolute !important;
            top: auto !important;
            bottom: auto !important;
            left: 1rem !important;
            right: 1rem !important;
            width: calc(100% - 2rem) !important;
            max-height: 20rem !important;
        }
        #codFiscalContinutTitlu {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }