.yxyh-cmn-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    color: var(--ls-text, #1f2937);
}

.yxyh-cmn-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.yxyh-cmn-head h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}

.yxyh-cmn-head p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.yxyh-cmn-test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--ls-primary, #3b82f6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.yxyh-cmn-test-btn:hover {
    background: var(--ls-primary-hover, #2563eb);
}

.yxyh-cmn-test-btn:disabled {
    cursor: not-allowed;
    background: #cbd5e1;
}

.yxyh-cmn-test-btn.is-loading {
    opacity: .75;
}

.yxyh-cmn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.yxyh-cmn-panel,
.yxyh-cmn-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.yxyh-cmn-panel {
    flex: 1 1 240px;
    min-height: 92px;
    padding: 18px;
}

.yxyh-cmn-label {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
}

.yxyh-cmn-stat-value {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 20px;
}

.yxyh-cmn-panel .is-ok {
    color: var(--ls-primary, #3b82f6);
}

.yxyh-cmn-panel .is-off {
    color: #b45309;
}

.yxyh-cmn-section {
    margin-top: 14px;
    padding: 18px;
}

.yxyh-cmn-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.yxyh-cmn-section-title h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.yxyh-cmn-clear-btn,
.yxyh-cmn-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.yxyh-cmn-clear-btn {
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

.yxyh-cmn-clear-btn:hover,
.yxyh-cmn-page-btn:hover {
    border-color: var(--ls-primary, #3b82f6);
    color: var(--ls-primary, #3b82f6);
}

.yxyh-cmn-clear-btn:disabled,
.yxyh-cmn-page-btn:disabled,
.yxyh-cmn-page-btn.is-disabled {
    cursor: not-allowed;
    border-color: #e5e7eb;
    color: #94a3b8;
    background: #f8fafc;
}

.yxyh-cmn-clear-btn.is-loading,
.yxyh-cmn-page-btn.is-loading {
    opacity: .72;
}

.yxyh-cmn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yxyh-cmn-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    background: var(--ls-primary-light, rgba(59, 130, 246, .08));
    color: var(--ls-primary, #3b82f6);
    font-size: 13px;
}

.yxyh-cmn-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-cmn-log-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
}

.yxyh-cmn-log-row:first-child {
    border-top: 0;
}

.yxyh-cmn-log-row > div {
    flex: 1 1 auto;
    min-width: 0;
}

.yxyh-cmn-log-message,
.yxyh-cmn-log-row p {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.yxyh-cmn-log-message {
    color: #111827;
    font-size: 14px;
}

.yxyh-cmn-log-row p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
}

.yxyh-cmn-log-row a {
    color: var(--ls-primary, #3b82f6);
    text-decoration: none;
}

.yxyh-cmn-log-row a:hover {
    text-decoration: underline;
}

.yxyh-cmn-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 28px;
    border-radius: 8px;
    font-size: 12px;
}

.yxyh-cmn-status-sent {
    background: #dcfce7;
    color: #166534;
}

.yxyh-cmn-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.yxyh-cmn-status-skipped {
    background: #fef3c7;
    color: #92400e;
}

.yxyh-cmn-empty {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

.yxyh-cmn-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.yxyh-cmn-pagination > span {
    color: #64748b;
    font-size: 12px;
}

.yxyh-cmn-page-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.yxyh-cmn-page-btn {
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.yxyh-cmn-page-btn.is-active {
    border-color: var(--ls-primary, #3b82f6);
    background: var(--ls-primary, #3b82f6);
    color: #fff;
}

@media (max-width: 720px) {
    .yxyh-cmn-page {
        padding: 20px 14px 34px;
    }

    .yxyh-cmn-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .yxyh-cmn-log-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .yxyh-cmn-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .yxyh-cmn-page-list {
        justify-content: flex-start;
    }
}
