/* 原项目 BindView / 登录页补充样式（从 Vue scoped 样式迁移） */
.qrcode-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 190px;
    margin-bottom: 12px;
}

.qrcode-wrap svg {
    width: 180px;
    height: 180px;
    display: block;
}

.qrcode-placeholder {
    font-size: 12px;
    color: #8694a6;
}

.secret-wrap {
    font-size: 12px;
    border: 1px dashed #b8c6d8;
    background: #f7fbff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
    word-break: break-all;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid var(--ext-field-border, #c7d2df);
    background: #fff;
    color: var(--ext-text-color, #333);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.action-btn.ghost {
    background: #f6f9fd;
    color: #4b5d70;
}

.action-btn.ghost:hover {
    background: #edf4fb;
    border-color: var(--ext-primary, #2a72b5);
}

.action-btn.primary {
    border-color: var(--ext-primary, #2a72b5);
    background: var(--ext-primary, #2a72b5);
    color: #fff;
}

.action-btn.primary:hover {
    background: var(--ext-primary-dark, #1e5a92);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ExtButton text 模式（原组件 scoped v-bind 的固定色适配） */
.ext-btn.ext-btn-text {
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding-left: 4px;
    padding-right: 4px;
}

.ext-btn.ext-btn-text:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05) !important;
}

.ext-btn.ext-btn-text.ext-btn-primary { color: var(--ext-primary, #2a72b5) !important; }
.ext-btn.ext-btn-text.ext-btn-success { color: #3a9e3a !important; }
.ext-btn.ext-btn-text.ext-btn-danger { color: #d05050 !important; }
.ext-btn.ext-btn-text.ext-btn-warning { color: #e09020 !important; }
.ext-btn.ext-btn-text.ext-btn-info { color: #2e8ab8 !important; }

.ext-btn-icon {
    margin-right: 3px;
}

/* ExtGrid 结构与工具类 */
.ext-grid {
    border: none;
    position: relative;
}

.ext-grid-wrapper {
    height: 100%;
}

.ext-grid select {
    padding: 2px 4px;
    border: 1px solid var(--ext-field-border, #b5b8c8);
    font-size: 11px;
    background: var(--ext-field-bg, #fff);
    color: var(--ext-text-color, #333);
}

.ext-grid input[type='number'] {
    padding: 2px 4px;
    border: 1px solid var(--ext-field-border, #b5b8c8);
    font-size: 11px;
    background: var(--ext-field-bg, #fff);
    color: var(--ext-text-color, #333);
}

.ext-grid .actions {
    white-space: nowrap;
}

.ext-grid .actions .ext-btn {
    margin: 0 1px;
}

.sort-input {
    width: 78px;
}

/* 工具栏输入框（对应原 Vue 内联样式） */
.toolbar-input {
    width: 100px;
    padding: 3px 6px;
    border: 1px solid var(--ext-field-border, #b5b8c8);
    border-radius: 1px;
    background: var(--ext-field-bg, #fff);
    color: var(--ext-text-color, #333);
    font-size: 11px;
    outline: none;
}

.toolbar-input:focus {
    border-color: var(--ext-field-focus-border, #7eadd9);
}

.toolbar-input-sm {
    width: 110px;
}

.toolbar-input-date {
    width: 120px;
}

.toolbar-input-num {
    width: 80px;
}

/* 通用工具类 */
.center { text-align: center !important; }
.mono { font-family: Consolas, Monaco, "Courier New", monospace; font-size: 11px; }
.muted { color: var(--ext-text-muted, #666); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.money-positive { color: #3a9e3a; }
.money-negative { color: #d05050; }
.cell-title { font-weight: 600; }

.ellipsis {
    display: inline-block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.dialog-form {
    display: grid;
    gap: 8px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    cursor: pointer;
}

.field-hint {
    margin-top: 4px;
    color: var(--ext-text-muted, #666);
    font-size: 11px;
}

.state {
    padding: 20px;
    text-align: center;
    color: #999;
}

.state.error {
    color: #d05050;
}

.state-title {
    margin-bottom: 4px;
    color: var(--ext-text-color, #333);
    font-weight: 600;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ext-field-border, #ccc);
    border-top-color: var(--ext-primary, #2a72b5);
    border-radius: 50%;
    vertical-align: middle;
    animation: ext-spin 0.6s linear infinite;
}
