/* Subcontractor Performance - shared validation appearance.
   Used with SCPerformanceValidation.js and the standard ASP.NET validators. Scoped to scp- class
   names so nothing here can reach the rest of the Portal.

   Referenced by: Administration.aspx, TierScopeSetup.aspx, AssessmentScorecard.aspx, BulkUpload.aspx. */

/* The offending control. Applied and removed by SCPerformanceValidation.js, which follows the
   validators' own state - so it clears the moment the user fixes the field, without a postback. */
.scp-invalid,
.form-control.scp-invalid {
    border-color: #d63c3d;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 0 2px rgba(214,60,61,.18);
}

    .scp-invalid:focus,
    .form-control.scp-invalid:focus {
        border-color: #c0392b;
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 0 2px rgba(214,60,61,.3);
    }

/* The message under the field. The validator's own span stays inline - ASP.NET sets its display
   directly when Display="Dynamic" - so this wrapper is what puts it on its own line. Wrapping is
   also why no !important is needed anywhere here. */
.scp-error-line {
    min-height: 0;
}

.scp-error {
    font-size: 11.5px;
    line-height: 1.5;
    color: #d63c3d;
    margin-top: 4px;
}

/* The all-at-once list, for screens that show one. */
.scp-summary {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #e0b4b4;
    border-radius: 4px;
    background: #fdf2f2;
    color: #a94442;
    font-size: 13px;
}

    .scp-summary ul {
        margin: 6px 0 0;
        padding-left: 20px;
    }

    .scp-summary li {
        margin-bottom: 2px;
    }
