/* Panel sinkron katalog — MitraJual & lab admin */
.mj-sync {
    --mj-sync-brand: #0ea5e9;
    --mj-sync-brand-dark: #0284c7;
    --mj-sync-ok: #059669;
    --mj-sync-warn: #d97706;
    --mj-sync-danger: #dc2626;
    --mj-sync-muted: #64748b;
    --mj-sync-border: #e2e8f0;
    --mj-sync-bg: #f8fafc;
    max-width: 920px;
    margin: 0 auto;
}

.admin-body .mj-sync {
    max-width: none;
}

.mj-sync-hero {
    margin-bottom: 1.25rem;
}

.mj-sync-hero h1,
.mj-sync-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.mj-sync-lead {
    margin: 0;
    color: var(--mj-sync-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.mj-sync-lead strong {
    color: inherit;
    font-weight: 600;
}

.mj-sync-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
    .mj-sync-grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.mj-sync-card {
    background: var(--mj-sync-bg);
    border: 1px solid var(--mj-sync-border);
    border-radius: 12px;
    padding: 1rem 1.05rem;
}

.mj-sync-card.is-catalog {
    border-color: #7dd3fc;
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
}

.mj-sync-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.mj-sync-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.mj-sync-card-sub {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--mj-sync-muted);
}

.mj-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.mj-sync-badge.is-ok {
    background: #d1fae5;
    color: #065f46;
}

.mj-sync-badge.is-warn {
    background: #fef3c7;
    color: #92400e;
}

.mj-sync-badge.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.mj-sync-badge.is-muted {
    background: #e2e8f0;
    color: #475569;
}

.mj-sync-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.55rem 0 0.65rem;
}

.mj-sync-role {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--mj-sync-border);
    color: #334155;
}

.mj-sync-role.is-primary {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.mj-sync-meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--mj-sync-muted);
    line-height: 1.45;
}

.mj-sync-meta strong {
    color: #0f172a;
}

.mj-sync-flow {
    margin-bottom: 1.25rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--mj-sync-border);
    border-radius: 12px;
    background: #fff;
}

.mj-sync-flow h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.mj-sync-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.55;
}

.mj-sync-steps li + li {
    margin-top: 0.35rem;
}

.mj-sync-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .mj-sync-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mj-sync-stat {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--mj-sync-border);
    border-radius: 10px;
    background: #fff;
}

.mj-sync-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--mj-sync-muted);
    margin-bottom: 0.2rem;
}

.mj-sync-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.mj-sync-stat-hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--mj-sync-muted);
}

.mj-sync-section {
    margin-bottom: 1.15rem;
}

.mj-sync-section h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
}

.mj-sync-alert {
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.mj-sync-alert.is-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.mj-sync-alert.is-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.mj-sync-alert.is-ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.mj-sync-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.mj-sync-details {
    border: 1px solid var(--mj-sync-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.mj-sync-details summary {
    cursor: pointer;
    padding: 0.75rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    list-style: none;
}

.mj-sync-details summary::-webkit-details-marker {
    display: none;
}

.mj-sync-details summary::before {
    content: '▸ ';
    color: var(--mj-sync-muted);
}

.mj-sync-details[open] summary::before {
    content: '▾ ';
}

.mj-sync-details-body {
    padding: 0 0.95rem 0.85rem;
    font-size: 0.82rem;
}

.mj-sync-variant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.mj-sync-variant-table th,
.mj-sync-variant-table td {
    padding: 0.35rem 0.45rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.mj-sync-variant-table th {
    color: var(--mj-sync-muted);
    font-weight: 600;
}

.mj-sync-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--mj-sync-border);
}

.mj-sync-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.mj-sync-actions-label {
    width: 100%;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mj-sync-muted);
}

.mj-sync-btn-primary.shop-btn {
    font-weight: 700;
}

.mj-sync-last {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--mj-sync-muted);
}

.mj-sync-last strong {
    color: #0f172a;
}
