.error-popup.pc{
    position: absolute;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);

    transition: opacity 300ms ease;
    /*display: none; !* hidden for now *!*/
}
.error-popup.pc .popup-message {
    z-index: 5;
    padding: 10px 10px;
    border: 1px solid transparent;
    color: #333;
    background-color: #FFF;
    border-color: #FFF;
    border-radius: 2px;
    -ms-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.error-popup.pc .arrow-down-border {
    z-index: 4;
    border-color: #00000040 transparent transparent transparent;
    border-style: solid;
    border-width: 5px;
    height: 0;
    width: 0;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.error-popup.pc .arrow-down {
    z-index: 6;
    border-color: #ffffff transparent transparent transparent;
    border-style: solid;
    border-width: 5px;
    height: 0;
    width: 0;
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
}
/* Keep old arrow classes for backward compatibility but hide them */
.error-popup.pc .arrow-right-border,
.error-popup.pc .arrow-right,
.error-popup.pc .arrow-left-border,
.error-popup.pc .arrow-left {
    display: none;
}

.error-popup.mobile{
    z-index: 100;
}
.error-popup.mobile .popup-message {
    padding: 2px 2px;
    color: #FFF;
    background-color: #FF6969;
    border-color: #FF6969;
    border-radius: 2px;
    -ms-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.error-popup.mobile .arrow-right-border {
    display: none;
    z-index: 4;
    border-color: transparent transparent transparent #31b0d5;
    border-style: solid;
    border-width: 5px;
    height: 0;
    width: 0;
    position: absolute;
    top: 12px;
    right: -10px;
}
.error-popup.mobile .arrow-right {
    display: none;
    z-index: 6;
    border-color: transparent transparent transparent #5bc0de;
    border-style: solid;
    border-width: 5px;
    height: 0;
    width: 0;
    position: absolute;
    top: 12px;
    right: -9px;
}
.error-popup.mobile .arrow-left-border {
    display: none;
    z-index: 4;
    border-color: transparent #31b0d5 transparent transparent;
    border-style: solid;
    border-width: 5px;
    height: 0;
    width: 0;
    position: absolute;
    top: 12px;
    left: -10px;
}
.error-popup.mobile .arrow-left {
    display: none;
    z-index: 6;
    border-color: transparent #5bc0de transparent transparent;
    border-style: solid;
    border-width: 5px;
    height: 0;
    width: 0;
    position: absolute;
    top: 12px;
    left: -9px;
}


.formview-container .formview-column-holder{
    &.with_validation_error{
        background: #ff000012;

        &:hover .error-popup{
            visibility: visible;
            opacity: 1;
        }
    }
}

/* Validation Error Messages Area Styles */
.form_view_view_mode .validation_errors_area {
    display: none;
}

.validation_errors_area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    right: 50px;
    top: 5px;
    z-index: 999999;
    background: white;
}

.validation_error_item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-left: 3px solid #DC2626;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 24px;
}

.validation_error_item:hover {
    background: #FEE2E2;
    border-color: #F87171;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
}

.validation_error_icon {
    font-size: 14px;
    line-height: 1;
    color: #DC2626;
    flex-shrink: 0;
}

.validation_error_text {
    flex: 1;
    line-height: 1.3;
    font-size: 11px;
}

.validation_error_column_name {
    font-weight: 600;
    font-size: 11px;
    color: #991B1B;
}

.validation_error_subform_indicator {
    font-weight: 400;
    font-size: 10px;
    color: #B91C1C;
    font-style: italic;
}

.validation_error_message {
    font-size: 11px;
    color: #7C2D12;
    font-weight: 400;
}

.validation_error_close {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #991B1B;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    font-weight: bold;
    margin-left: 4px;
}

.validation_error_close:hover {
    background: #DC2626;
    color: white;
    transform: scale(1.1);
}

/* Highlighted field animation */
.formview-column-holder.validation_error_highlighted {
    animation: validation-highlight 2s ease;
}

@keyframes validation-highlight {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: #FEF2F2;
        box-shadow: 0 0 0 4px #FCA5A5;
    }
}

/* Dark theme support for validation errors area */
.dark-theme .validation_error_item {
    background: #4C1D1D;
    border-color: #7C2D12;
    border-left-color: #DC2626;
}

.dark-theme .validation_error_item:hover {
    background: #5C2424;
    border-color: #991B1B;
}

.dark-theme .validation_error_column_name {
    color: #FCA5A5;
}

.dark-theme .validation_error_message {
    color: #FED7AA;
}

.dark-theme .validation_error_icon {
    color: #F87171;
}

.dark-theme .validation_error_close {
    color: #FCA5A5;
}

.dark-theme .validation_error_close:hover {
    background: #DC2626;
    color: white;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .validation_errors_area {
        padding: 4px;
        max-height: 200px;
    }
    
    .validation_error_item {
        padding: 4px 6px;
        gap: 6px;
    }
    
    .validation_error_icon {
        font-size: 12px;
    }
    
    .validation_error_text {
        font-size: 10px;
    }
    
    .validation_error_column_name {
        font-size: 10px;
    }
    
    .validation_error_message {
        font-size: 10px;
    }
    
    .validation_error_close {
        width: 14px;
        height: 14px;
        font-size: 16px;
    }
}



.simpleDataTableRowValidationError{
    padding: 3px;
    color: rgb(139, 106, 106);
    background: rgb(243, 228, 209);
    font-size: 12px;
    display: none;
}



