/*
 * workspace.css — Workspace-namespace CSS classes (workspace-* prefix)
 * All definitions here are renamed counterparts of legacy sv_* classes,
 * scoped exclusively to the workspace stack.
 */

/* Required field label */
.workspace-required { color: #954120; }

/* Editable field input — emitted by HasSchema on all workspace controls.
   Replaces legacy model_input. Logical hook for dirty/required/invalid state. */
.workspace-input {
    background-color: rgb(255, 255, 255);
    color: #0033cc;
}
.workspace-input[data-required="true"] {
    border: 1px solid #954120;
}
.workspace-input[data-dirty="true"] {
    background-color: rgb(255, 255, 132);
    color: rgb(0, 0, 255);
}
.workspace-input[data-invalid="true"] {
    background-color: rgba(100, 13, 13, 0.28);
}
.workspace-input[readonly],
.workspace-input:disabled {
    background-color: #f2f2f2;
    color: #5d5d5d;
}

/* Warning / info boxes */
.workspace-warning {
    color: #2b2b2b;
    background-color: #fdf5ce;
    font-weight: bold;
    font-size: 80%;
    border-radius: 5px;
    padding: 7px;
    box-shadow: 3px 3px 5px grey;
    text-align: left;
    z-index: 5;
    margin: 5px auto;
    width: fit-content;
}

/* Tree node selection (records-tree-nodes; sv_node kept, only selected renamed) */
.sv_node.workspace-selected { background-color: rgb(220, 220, 220); }
.sv_node.workspace-selected > span { background-color: rgb(230, 245, 250); }
