﻿/* 2026.03.07 dxTextBox - editable: green border, no rounded corners. Readonly: invisible like old ASPxTextBox */
/*.custom-text-style.dx-editor-outlined {
    border-radius: 2px !important;
}

    .custom-text-style.dx-editor-outlined.dx-state-hover {
        border-color: rgba(90, 190, 91, 0.25);
    }

    .custom-text-style.dx-editor-outlined.dx-state-focused {
        border-color: rgb(90, 190, 91) !important;
    }

    .custom-text-style.dx-editor-outlined.dx-state-readonly {
        border-style: none;
        background: transparent;
        box-shadow: none;
    }

        .custom-text-style.dx-editor-outlined.dx-state-readonly .dx-texteditor-input {
            color: gray;
            font-weight: bold;
        }*/



/* 2026.03.07 dxTextBox inline validation message - red icon + red text to the right */
/*.custom-text-style .dx-invalid-message .dx-overlay-content {
    background-color: transparent;
    color: #cc0000;
    font-weight: 600;
    white-space: nowrap;
    padding-left: 4px;
}

    .custom-text-style .dx-invalid-message .dx-overlay-content::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        background-color: #cc0000;
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ctext x='6' y='13' font-size='13' font-weight='bold' fill='white'%3E!%3C/text%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: contain;
        vertical-align: middle;
        margin-right: 4px;
    }

.custom-text-style.dx-invalid.dx-editor-outlined {
    border-color: #cc0000;
}*/

/* FCTextBox Container Styles */
.fc-textbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
    max-width: none; /* Remove max-width restriction */
    min-width: 150px;
    flex-wrap: nowrap; /* Prevent wrapping */
}

/* FCTextBox Input Base Styles */
.fc-textbox-input {
    flex: 1 1 auto; /* Allow grow and shrink, but maintain auto basis */
    min-width: 100px; /* Ensure input never gets too small */
    box-sizing: border-box;
    border-radius: 2px;
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

/* FCTextBox Input - Editable State */
.fc-textbox-input--editable {
    border: 1px solid #ccc;
    background: #fff;
    color: inherit;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* FCTextBox Input - Read-only State */
.fc-textbox-input--readonly {
    border: none;
    background: transparent;
    box-shadow: none;
    color: gray;
    font-weight: bold;
    cursor: default;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* FCTextBox Input - Hover State (editable only) */
.fc-textbox-input--editable:hover {
    border-color: rgba(90, 190, 91, 0.25);
}

/* FCTextBox Input - Focus State (editable only) */
.fc-textbox-input--editable:focus {
    border-color: rgb(90, 190, 91);
}

/* FCTextBox Input - Error State */
.fc-textbox-input--error {
    border-color: #cc0000 !important;
}

/* FCTextBox Error Message */
.fc-textbox-error {
    display: none;
    white-space: nowrap;
    margin-left: 6px;
    color: #cc0000;
    font-weight: 600;
    font-size: inherit;
    align-items: center;
    flex-shrink: 0; /* Never shrink the error message */
    flex-grow: 0; /* Never grow the error message */
}

.fc-textbox-error--visible {
    display: inline-flex;
}

/* FCTextBox Copy Icon */
/*.fc-textbox-copy-icon {
    cursor: pointer;
    margin-left: 5px;
    font-size: 14px;
    user-select: none;
    flex-shrink: 0;*/ /* Never shrink the copy icon */
/*}*/
/* FCTextBox Copy Icon */
.fc-textbox-copy-icon {
    cursor: pointer;
    margin-left: 6px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    user-select: none;
    opacity: 0.65;
    transition: opacity 0.15s;
    vertical-align: middle;
}

    /* FCTextBox Copy Icon - Hover */
    .fc-textbox-copy-icon:hover {
        opacity: 1;
    }

/* FCTextBox Error Icon */
.fc-textbox-error-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #cc0000;
    border-radius: 50%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Ctext x=%276%27 y=%2713%27 font-size=%2713%27 font-weight=%27bold%27 fill=%27white%27%3E!%3C/text%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 3px;
    flex-shrink: 0; /* Never shrink the error icon */
}
