/* _content/ATOP.IDMS.Playground/Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-4tnjq6sgdb] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-4tnjq6sgdb] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/ATOP.IDMS.Playground/Components/Pages/Formula.razor.rz.scp.css */
/* ======= Design tokens ======= */
/* 색상 (slate + indigo) */
/* --bg: #fafafa, --surface: #ffffff, --border: #e5e7eb */
/* --text: #0f172a (slate-900), --text-muted: #64748b (slate-500) */
/* --accent: #4f46e5 (indigo-600), --accent-soft: #eef2ff (indigo-50) */
/* --success: #10b981, --danger: #ef4444, --warning: #f59e0b */

.playground[b-2q5tug2nre] {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 32px 64px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background: #fafafa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ======= Top nav ======= */
.top-nav[b-2q5tug2nre] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    color: #64748b;
}

.nav-back[b-2q5tug2nre] {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-back:hover[b-2q5tug2nre] {
    color: #4338ca;
    text-decoration: underline;
}

.nav-divider[b-2q5tug2nre] {
    color: #cbd5e1;
}

.nav-current[b-2q5tug2nre] {
    color: #0f172a;
    font-weight: 500;
}

/* ======= Header ======= */
.header[b-2q5tug2nre] {
    margin-bottom: 24px;
}

.header h1[b-2q5tug2nre] {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.subtitle[b-2q5tug2nre] {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ======= Context bar ======= */
.context-bar[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.context-field[b-2q5tug2nre] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.context-field-wide[b-2q5tug2nre] {
    grid-column: 1 / -1;
}

.context-field label[b-2q5tug2nre] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.current-record-input[b-2q5tug2nre] {
    display: flex;
    gap: 10px;
    align-items: center;
}

.current-record-input input[b-2q5tug2nre] {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    font-size: 0.85rem;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.current-record-input input:focus[b-2q5tug2nre] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.current-record-input input:disabled[b-2q5tug2nre] {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.badge-success[b-2q5tug2nre] {
    padding: 4px 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-error[b-2q5tug2nre] {
    padding: 4px 10px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.context-error[b-2q5tug2nre] {
    grid-column: 1 / -1;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.85rem;
}

/* ======= Columns =======
 * 세로 배치: 위 = 수식 입력 + 변수 패널 + 변수 행, 아래 = 평가 결과.
 * 변수 사전 패널이 300px 고정이라 좌우 1:1 컬럼 안에 욱여넣으면 에디터가 너무 좁아져 UI 깨짐.
 * 평가 결과는 세로 blocks 구성이라 아래로 내려도 시각 흐름이 자연스러움.
 */
.columns[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 평가 결과 패널이 아래로 내려오면 세로로 길어지므로 카드 내부를 좌우 2열로 펼침 */
.panel-output[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 20px;
    align-items: start;
}

/* ======= Panels / Cards ======= */
.panel[b-2q5tug2nre] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel-output[b-2q5tug2nre] {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.panel-section[b-2q5tug2nre] {
    margin-bottom: 20px;
}

.panel-section:last-of-type[b-2q5tug2nre] {
    margin-bottom: 0;
}

.section-header[b-2q5tug2nre] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.section-header h2[b-2q5tug2nre] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.005em;
}

.preset-group[b-2q5tug2nre] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.preset-group select[b-2q5tug2nre] {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.8rem;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.preset-group select:hover[b-2q5tug2nre] {
    border-color: #cbd5e1;
}

/* ======= Formula editor + reference panel =======
 * FormulaVariablePanel 은 width 300px (min 260 / max 340) 를 자체 관리하므로
 * 그리드 트랙은 고정값 대신 auto 로 두고 에디터 쪽이 남은 폭 전부 사용. */
.formula-row[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 900px) {
    /* 좁은 화면에선 에디터 위, 변수 패널 아래로 세로 배치 */
    .formula-row[b-2q5tug2nre] { grid-template-columns: 1fr; }
}

.ref-panel[b-2q5tug2nre] {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    min-height: 0;
    max-height: 340px;
}

.ref-panel-header[b-2q5tug2nre] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.ref-panel-hint[b-2q5tug2nre] {
    font-size: 0.65rem;
    font-weight: 400;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
}

.ref-search[b-2q5tug2nre] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #ffffff;
    margin-bottom: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.ref-search:focus[b-2q5tug2nre] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.ref-scroll[b-2q5tug2nre] {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.ref-scroll[b-2q5tug2nre]::-webkit-scrollbar { width: 6px; }
.ref-scroll[b-2q5tug2nre]::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.ref-group[b-2q5tug2nre] {
    margin-bottom: 10px;
}

.ref-group-label[b-2q5tug2nre] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 4px 6px;
}

.ref-item[b-2q5tug2nre] {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.75rem;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s, border-color 0.12s;
    margin-bottom: 1px;
}

.ref-item:hover[b-2q5tug2nre] {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.ref-item:active[b-2q5tug2nre] {
    background: #e0e7ff;
}

.ref-expr[b-2q5tug2nre] {
    color: #4338ca;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ref-type-badge[b-2q5tug2nre] {
    display: inline-flex;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: "Inter", sans-serif;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ref-item:hover .ref-type-badge[b-2q5tug2nre] {
    background: #c7d2fe;
    color: #3730a3;
}

.ref-empty[b-2q5tug2nre] {
    padding: 8px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

@media (max-width: 900px) {
    .formula-row[b-2q5tug2nre] { grid-template-columns: 1fr; }
    .ref-panel[b-2q5tug2nre] { max-height: 220px; }
}

/* ======= Formula editor ======= */
.formula-editor[b-2q5tug2nre] {
    width: 100%;
    font-family: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.formula-editor:focus[b-2q5tug2nre] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.formula-editor[b-2q5tug2nre]::placeholder {
    color: #94a3b8;
}

/* ======= Variable table ======= */
.var-table[b-2q5tug2nre] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.var-table thead[b-2q5tug2nre] {
    background: transparent;
}

.var-table th[b-2q5tug2nre] {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #e5e7eb;
}

.var-table td[b-2q5tug2nre] {
    padding: 8px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.var-table tr:last-child td[b-2q5tug2nre] {
    border-bottom: none;
}

.var-table input[b-2q5tug2nre],
.var-table select[b-2q5tug2nre] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.var-table input:focus[b-2q5tug2nre],
.var-table select:focus[b-2q5tug2nre] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.var-table input[type="number"][b-2q5tug2nre] {
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-variant-numeric: tabular-nums;
}

.empty-row[b-2q5tug2nre] {
    text-align: center;
    color: #94a3b8;
    padding: 24px 16px !important;
    font-style: italic;
    font-size: 0.85rem;
}

/* ======= Buttons ======= */
.action-buttons[b-2q5tug2nre] {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn[b-2q5tug2nre] {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    letter-spacing: -0.005em;
}

.btn:disabled[b-2q5tug2nre] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm[b-2q5tug2nre] {
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-primary[b-2q5tug2nre] {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover:not(:disabled)[b-2q5tug2nre] {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.btn-secondary[b-2q5tug2nre] {
    background: #ffffff;
    color: #475569;
    border-color: #e5e7eb;
}

.btn-secondary:hover:not(:disabled)[b-2q5tug2nre] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-icon[b-2q5tug2nre] {
    background: transparent;
    color: #94a3b8;
    padding: 4px 10px;
    font-size: 1rem;
    line-height: 1;
    border-color: transparent;
}

.btn-icon:hover:not(:disabled)[b-2q5tug2nre] {
    background: #fef2f2;
    color: #dc2626;
}

.busy-indicator[b-2q5tug2nre] {
    color: #64748b;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ======= Result blocks ======= */
.result-block[b-2q5tug2nre] {
    margin-bottom: 16px;
}

.result-block:last-child[b-2q5tug2nre] {
    margin-bottom: 0;
}

.result-block h3[b-2q5tug2nre] {
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.result-value[b-2q5tug2nre] {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.result-value > div + div[b-2q5tug2nre] {
    margin-top: 4px;
}

.result-value .label[b-2q5tug2nre] {
    color: #64748b;
    font-weight: 500;
    margin-right: 6px;
    font-size: 0.8rem;
}

.result-value code[b-2q5tug2nre] {
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    color: #4f46e5;
    background: transparent;
    padding: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.code-block[b-2q5tug2nre] {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    overflow-x: auto;
}

.mapping-list[b-2q5tug2nre] {
    list-style: none;
    padding: 12px 14px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
}

.mapping-list li[b-2q5tug2nre] {
    padding: 3px 0;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    line-height: 1.7;
}

.mapping-list code[b-2q5tug2nre] {
    color: #db2777;
    background: transparent;
    padding: 1px 6px;
    background: #fdf4ff;
    border-radius: 4px;
    font-size: 0.8rem;
}

.mapping-type[b-2q5tug2nre] {
    color: #94a3b8;
    font-style: italic;
    margin-left: 8px;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
}

.placeholder[b-2q5tug2nre] {
    padding: 12px 14px;
    background: transparent;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85rem;
}

.error-box[b-2q5tug2nre] {
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.error-box strong[b-2q5tug2nre] {
    margin-right: 4px;
    color: #7f1d1d;
}

/* ======= Inline fields (bindings) ======= */
.inline-fields[b-2q5tug2nre] {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.inline-fields > *[b-2q5tug2nre] {
    flex: 1;
    min-width: 0;
}

.binding-stack[b-2q5tug2nre] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agg-fields[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 6px;
    align-items: start;
}

.agg-func[b-2q5tug2nre] {
    padding: 7px 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    color: #4f46e5 !important;
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 7px !important;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 011.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px;
    padding-right: 20px !important;
}

.agg-func:hover[b-2q5tug2nre] {
    background-color: #e0e7ff !important;
    border-color: #a5b4fc !important;
}

.agg-func:focus[b-2q5tug2nre] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.readonly-type[b-2q5tug2nre] {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-weight: 500;
}

/* ======= Filter panel ======= */
.filter-panel[b-2q5tug2nre] {
    margin-top: 6px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-header[b-2q5tug2nre] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label[b-2q5tug2nre] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
    flex: 1;
    text-transform: uppercase;
}

.filter-logical[b-2q5tug2nre] {
    padding: 3px 10px;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    background: #eef2ff;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.filter-row[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1.4fr auto;
    gap: 6px;
    align-items: center;
}

.filter-row > select[b-2q5tug2nre],
.filter-row > input[b-2q5tug2nre] {
    padding: 5px 8px;
    font-size: 0.78rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    min-width: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-row > select:focus[b-2q5tug2nre],
.filter-row > input:focus[b-2q5tug2nre] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.filter-no-value[b-2q5tug2nre] {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    padding: 5px 8px;
}

.right-operand[b-2q5tug2nre] {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 4px;
    min-width: 0;
}

.right-operand > *[b-2q5tug2nre] {
    min-width: 0;
}

.right-operand .right-type[b-2q5tug2nre] {
    padding: 4px 6px;
    font-size: 0.68rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.right-operand > select:not(.right-type)[b-2q5tug2nre],
.right-operand > input[b-2q5tug2nre] {
    padding: 5px 8px;
    font-size: 0.78rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.right-operand > select:not(.right-type):focus[b-2q5tug2nre],
.right-operand > input:focus[b-2q5tug2nre] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}
/* _content/ATOP.IDMS.Playground/Components/Pages/Home.razor.rz.scp.css */
.landing[b-o3denzij1a] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px 96px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background: #fafafa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.hero[b-o3denzij1a] {
    text-align: center;
    margin-bottom: 64px;
}

.hero h1[b-o3denzij1a] {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #0f172a;
    line-height: 1.1;
}

.tagline[b-o3denzij1a] {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

.cards[b-o3denzij1a] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card[b-o3denzij1a] {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-active[b-o3denzij1a] {
    cursor: pointer;
}

.card-active:hover[b-o3denzij1a] {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1), 0 4px 8px rgba(15, 23, 42, 0.04);
    border-color: #c7d2fe;
}

.card-coming[b-o3denzij1a] {
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.85;
}

.card-icon[b-o3denzij1a] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 14px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 10px;
}

.card-coming .card-icon[b-o3denzij1a] {
    color: #94a3b8;
    background: #f1f5f9;
}

.card h2[b-o3denzij1a] {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card p[b-o3denzij1a] {
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
}

.card-cta[b-o3denzij1a] {
    font-size: 0.85rem;
    color: #4f46e5;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
}

.card-active:hover .card-cta[b-o3denzij1a] {
    gap: 8px;
}

.card-badge[b-o3denzij1a] {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}
/* _content/ATOP.IDMS.Playground/Components/Shared/FormulaEditor.razor.rz.scp.css */
/* FormulaEditor 기본 외형 — 부모가 CssClass 로 추가 스타일링 가능 */
.formula-editor[b-v7qqazo7q5] {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-family: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
}

.formula-editor:focus[b-v7qqazo7q5],
.formula-editor.ce-root:focus[b-v7qqazo7q5] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
/* _content/ATOP.IDMS.Playground/Components/Shared/FormulaVariablePanel.razor.rz.scp.css */
.fv-panel[b-5swinvqs03] {
    width: 300px;
    min-width: 260px;
    max-width: 340px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.fv-header[b-5swinvqs03] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.fv-title[b-5swinvqs03] {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.fv-hint[b-5swinvqs03] {
    font-size: 11px;
    color: #94a3b8;
}

.fv-search[b-5swinvqs03] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    box-sizing: border-box;
    outline: none;
}

.fv-search:focus[b-5swinvqs03] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.fv-group[b-5swinvqs03] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fv-group-label[b-5swinvqs03] {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 2px 0;
}

.fv-subtle[b-5swinvqs03] {
    color: #94a3b8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.fv-empty[b-5swinvqs03] {
    font-size: 11px;
    color: #94a3b8;
    padding: 4px 0;
}

.fv-chip-row[b-5swinvqs03] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fv-chip[b-5swinvqs03] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid transparent;
    background: #f8fafc;
    border-radius: 4px;
    font-family: "JetBrains Mono", "SF Mono", monospace;
    font-size: 12px;
    cursor: pointer;
    max-width: 100%;
}

.fv-chip:hover[b-5swinvqs03] {
    filter: brightness(0.96);
}

.fv-chip-var[b-5swinvqs03] {
    background: #faf5ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

.fv-chip-sys[b-5swinvqs03] {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.fv-chip-kw[b-5swinvqs03] {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    font-weight: 600;
}

.fv-chip .fv-name[b-5swinvqs03] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv-chip .fv-type[b-5swinvqs03] {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ========= Tree (hierarchy 필드) ========= */
.fv-tree[b-5swinvqs03] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fv-tree-row[b-5swinvqs03] {
    display: block;
}

.fv-tree-btn[b-5swinvqs03] {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
    font-family: "JetBrains Mono", "SF Mono", monospace;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fv-tree-btn:hover[b-5swinvqs03] {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.fv-caret[b-5swinvqs03] {
    display: inline-block;
    width: 12px;
    color: #64748b;
    font-size: 10px;
    flex-shrink: 0;
}

.fv-tree-row .fv-name[b-5swinvqs03] {
    font-weight: 500;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fv-tree-row.is-rel .fv-name[b-5swinvqs03] {
    color: #475569;
}

.fv-tree-row.is-leaf .fv-tree-btn[b-5swinvqs03] {
    color: #c2410c;
    padding-left: 20px;  /* caret 자리만큼 들여씀 */
}

.fv-tree-row.is-leaf .fv-name[b-5swinvqs03] {
    color: #c2410c;
}

.fv-tree-row .fv-type[b-5swinvqs03] {
    margin-left: auto;
    font-size: 10px;
    color: #94a3b8;
    font-family: "Inter", sans-serif;
    padding: 1px 6px;
    background: #f1f5f9;
    border-radius: 3px;
    flex-shrink: 0;
}
/* _content/ATOP.IDMS.Playground/Components/Shared/MiniSelect.razor.rz.scp.css */
.mini-select[b-ngluu6zqaz] {
    position: relative;
    display: inline-block;
    outline: none;
    min-width: 0;
}

.mini-select-button[b-ngluu6zqaz] {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 6px 10px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.mini-select-button:hover:not(:disabled)[b-ngluu6zqaz] {
    background: #e0e7ff;
    border-color: #a5b4fc;
}

.mini-select-button:disabled[b-ngluu6zqaz] {
    opacity: 0.5;
    cursor: not-allowed;
}

.mini-select.open .mini-select-button[b-ngluu6zqaz] {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.mini-select-label[b-ngluu6zqaz] {
    flex: 1;
    text-align: left;
    letter-spacing: 0.02em;
}

.mini-select-chevron[b-ngluu6zqaz] {
    color: #6366f1;
    font-size: 0.7rem;
    transition: transform 0.15s;
}

.mini-select.open .mini-select-chevron[b-ngluu6zqaz] {
    transform: rotate(180deg);
}

.mini-select-panel[b-ngluu6zqaz] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 240px;
    z-index: 60;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12),
                0 4px 6px -4px rgba(15, 23, 42, 0.08);
    padding: 4px;
}

.mini-select-item[b-ngluu6zqaz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    font-size: 0.82rem;
    color: #0f172a;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.1s;
    font-weight: 500;
}

.mini-select-item:hover[b-ngluu6zqaz] {
    background: #eef2ff;
    color: #312e81;
}

.mini-select-item.selected[b-ngluu6zqaz] {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.mini-select-check[b-ngluu6zqaz] {
    color: #4f46e5;
    font-size: 0.8rem;
    margin-left: 8px;
}
/* _content/ATOP.IDMS.Playground/Components/Shared/RecordPickerSelect.razor.rz.scp.css */
.record-picker[b-ph9giclx7l] {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.record-picker input[b-ph9giclx7l] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    font-size: 0.85rem;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.record-picker input:focus[b-ph9giclx7l] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.record-picker input:disabled[b-ph9giclx7l] {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.record-picker input.unmatched[b-ph9giclx7l] {
    border-color: #f87171;
}

.rp-dropdown[b-ph9giclx7l] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px -5px rgba(15, 23, 42, 0.15),
                0 4px 8px -4px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rp-meta[b-ph9giclx7l] {
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 6px;
    align-items: center;
}

.rp-hint[b-ph9giclx7l] {
    color: #94a3b8;
}

.rp-error[b-ph9giclx7l] {
    color: #dc2626;
    font-weight: 500;
}

.rp-scroll[b-ph9giclx7l] {
    height: 280px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.rp-scroll[b-ph9giclx7l]::-webkit-scrollbar { width: 6px; }
.rp-scroll[b-ph9giclx7l]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.rp-item[b-ph9giclx7l] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #0f172a;
    cursor: pointer;
    border-radius: 5px;
    height: 36px;
    box-sizing: border-box;
    transition: background-color 0.1s;
}

.rp-item:hover[b-ph9giclx7l] {
    background: #eef2ff;
    color: #312e81;
}

.rp-label[b-ph9giclx7l] {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.rp-id[b-ph9giclx7l] {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    flex-shrink: 0;
}

.rp-item:hover .rp-id[b-ph9giclx7l] {
    background: #c7d2fe;
    color: #4338ca;
}

.rp-empty[b-ph9giclx7l],
.rp-loading[b-ph9giclx7l],
.rp-placeholder[b-ph9giclx7l] {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
}
/* _content/ATOP.IDMS.Playground/Components/Shared/SearchableSelect.razor.rz.scp.css */
.searchable-select[b-2a11y8jz7h] {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.searchable-select input[b-2a11y8jz7h] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.searchable-select input[b-2a11y8jz7h]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.searchable-select input:hover:not(:disabled)[b-2a11y8jz7h] {
    border-color: #cbd5e1;
}

.searchable-select input:focus[b-2a11y8jz7h] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.searchable-select input:disabled[b-2a11y8jz7h] {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #f1f5f9;
}

.searchable-select input.unmatched[b-2a11y8jz7h] {
    border-color: #f87171;
    background: #fff1f2;
}

.searchable-select input.unmatched:focus[b-2a11y8jz7h] {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.hint-error[b-2a11y8jz7h] {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    color: #dc2626;
    font-weight: 500;
}

/* ======= Custom dropdown ======= */
.ss-dropdown[b-2a11y8jz7h] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    /* 입력 너비에 갇히지 않고 콘텐츠에 맞춰 확장. 최대 420px. */
    min-width: 100%;
    width: max-content;
    max-width: 420px;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12),
                0 4px 6px -4px rgba(15, 23, 42, 0.08);
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    /* Smooth scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.ss-dropdown[b-2a11y8jz7h]::-webkit-scrollbar {
    width: 8px;
}

.ss-dropdown[b-2a11y8jz7h]::-webkit-scrollbar-track {
    background: transparent;
}

.ss-dropdown[b-2a11y8jz7h]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #ffffff;
}

.ss-dropdown[b-2a11y8jz7h]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ss-item[b-2a11y8jz7h] {
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #0f172a;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.1s, color 0.1s;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-item:hover[b-2a11y8jz7h],
.ss-item.highlighted[b-2a11y8jz7h] {
    background: #eef2ff;
    color: #312e81;
}

/* ======= Hierarchical path item (ItemDisplay) ======= */
[b-2a11y8jz7h] .path-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

[b-2a11y8jz7h] .path-chevron {
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

[b-2a11y8jz7h] .path-leaf {
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-2a11y8jz7h] .path-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

[b-2a11y8jz7h] .ss-item.highlighted .path-type-badge {
    background: #c7d2fe;
    color: #3730a3;
}

[b-2a11y8jz7h] .path-parent {
    margin-left: auto;
    font-size: 0.68rem;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    padding-left: 10px;
}

[b-2a11y8jz7h] .ss-item.highlighted .path-parent {
    color: #6366f1;
}

.ss-empty[b-2a11y8jz7h] {
    padding: 12px 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}

.ss-more[b-2a11y8jz7h] {
    padding: 8px 10px;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    font-style: italic;
}
