/* SQL 在线运行页面专属样式。 */
.editor-shell {
    min-height: 200px;
}

.editor-shell .CodeMirror {
    height: 200px;
}

.toolbar .btn-run {
    border-color: #009a61;
    background: #009a61;
    color: #fff;
}

.toolbar .btn-run:hover {
    border-color: #008552;
    background: #008552;
    color: #fff;
}

.run-status {
    margin: 10px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
}

.result-area {
    margin-top: 14px;
}

.result-set {
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
}

.result-set-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: #f6f8fa;
    border-bottom: 1px solid #edf0f3;
    color: #475467;
    font-size: 12px;
}

.result-table-wrap {
    max-height: 420px;
    overflow: auto;
}

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

.result-table th,
.result-table td {
    border-bottom: 1px solid #edf0f3;
    padding: 7px 12px;
    text-align: left;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-table th {
    position: sticky;
    top: 0;
    background: #fbfcfd;
    color: #1f2a37;
    font-weight: 600;
    z-index: 1;
}

.result-table td.null-value {
    color: #b6bec9;
    font-style: italic;
}

.result-message {
    padding: 10px 14px;
    font-size: 13px;
    color: #475467;
    line-height: 1.7;
}

.result-message.ok {
    color: #00875a;
}

.result-message.err {
    color: #c0392b;
}
