.sf-exam-front-wrapper {
    border: 1px solid #ddd;
    padding: 16px;
    margin: 16px 0;
    background: #fff;
}

.sf-exam-title {
    margin-top: 0;
    margin-bottom: 12px;
}

.sf-exam-section {
    margin-bottom: 20px;
}

.sf-exam-field {
    margin-bottom: 8px;
}

.sf-exam-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.sf-exam-field input[type="text"],
.sf-exam-field input[type="date"],
.sf-exam-field input[type="number"],
.sf-exam-field select,
.sf-exam-overall-comment,
.sf-exam-front-table textarea {
    width: 100%;
    box-sizing: border-box;
}

.sf-exam-help {
    font-size: 11px;
    color: #666;
}

.sf-exam-front-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sf-exam-front-table th,
.sf-exam-front-table td {
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: top;
}

.sf-exam-front-table thead th {
    background: #f5f5f5;
}

.sf-col-cat {
    width: 12%;
    white-space: nowrap;
}

.sf-col-score {
    width: 22%;
}

.sf-col-comment {
    width: 30%;
}

.sf-score-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sf-score-option {
    position: relative;
    display: inline-block;
}

.sf-score-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sf-score-option span {
    display: inline-block;
    min-width: 28px;
    padding: 4px 6px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    background: #f0f2f5;
}

.sf-score-option input[type="radio"]:checked + span {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.sf-exam-actions {
    text-align: right;
    margin-top: 16px;
}

.sf-exam-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.sf-exam-submit:hover {
    background: #005d89;
}

.sf-exam-success {
    padding: 8px 10px;
    background: #e5f8e7;
    border: 1px solid #6abf6f;
    margin-bottom: 10px;
}

.sf-exam-error {
    padding: 8px 10px;
    background: #ffecec;
    border: 1px solid #e57373;
    margin-bottom: 10px;
}

.sf-exam-result-box {
    padding: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    margin-bottom: 16px;
}

.sf-exam-alert {
    color: #c00;
    font-weight: 700;
}
